Add get ordered shots
This commit is contained in:
parent
5cb7df174b
commit
72ac956758
@ -157,6 +157,11 @@ export type DatetimeRangeAggregationInput = {
|
|||||||
startDatetime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
startDatetime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type DatetimeShotOrdering = {
|
||||||
|
descending?: Scalars["Boolean"]["input"];
|
||||||
|
startingAt?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
|
};
|
||||||
|
|
||||||
export type DeployedConfigGql = {
|
export type DeployedConfigGql = {
|
||||||
__typename?: "DeployedConfigGQL";
|
__typename?: "DeployedConfigGQL";
|
||||||
allowNewUsers: Scalars["Boolean"]["output"];
|
allowNewUsers: Scalars["Boolean"]["output"];
|
||||||
@ -1716,6 +1721,11 @@ export type FloatRangeFilter = {
|
|||||||
lessThanInclusive?: Scalars["Boolean"]["input"];
|
lessThanInclusive?: Scalars["Boolean"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type FloatShotOrdering = {
|
||||||
|
descending?: Scalars["Boolean"]["input"];
|
||||||
|
startingAt?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
|
};
|
||||||
|
|
||||||
export type GetProfileUploadLinkErrors = {
|
export type GetProfileUploadLinkErrors = {
|
||||||
__typename?: "GetProfileUploadLinkErrors";
|
__typename?: "GetProfileUploadLinkErrors";
|
||||||
error: TooManyProfileImageUploadsErr;
|
error: TooManyProfileImageUploadsErr;
|
||||||
@ -1726,6 +1736,10 @@ export type GetProfileUploadLinkReturn = {
|
|||||||
value: UploadLinkGetProfileUploadLinkErrors;
|
value: UploadLinkGetProfileUploadLinkErrors;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetShotsOrdering = {
|
||||||
|
orderings: Array<ShotsOrderingComponent>;
|
||||||
|
};
|
||||||
|
|
||||||
export type GetShotsPagination = {
|
export type GetShotsPagination = {
|
||||||
createdAfter: CreatedAfter;
|
createdAfter: CreatedAfter;
|
||||||
startFrameAfter: Scalars["Int"]["input"];
|
startFrameAfter: Scalars["Int"]["input"];
|
||||||
@ -1789,6 +1803,11 @@ export type IntPoint2D = {
|
|||||||
y: Scalars["Int"]["output"];
|
y: Scalars["Int"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type IntShotOrdering = {
|
||||||
|
descending?: Scalars["Boolean"]["input"];
|
||||||
|
startingAt?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
|
};
|
||||||
|
|
||||||
export type MakePercentageIntervalGql = {
|
export type MakePercentageIntervalGql = {
|
||||||
__typename?: "MakePercentageIntervalGQL";
|
__typename?: "MakePercentageIntervalGQL";
|
||||||
elapsedTime: Scalars["Float"]["output"];
|
elapsedTime: Scalars["Float"]["output"];
|
||||||
@ -1969,6 +1988,7 @@ export type Query = {
|
|||||||
getBucketSet?: Maybe<BucketSetGql>;
|
getBucketSet?: Maybe<BucketSetGql>;
|
||||||
getDeployedConfig: DeployedConfigGql;
|
getDeployedConfig: DeployedConfigGql;
|
||||||
getLoggedInUser?: Maybe<UserGql>;
|
getLoggedInUser?: Maybe<UserGql>;
|
||||||
|
getOrderedShots: GetShotsResult;
|
||||||
getPlayTime: UserPlayTimeGql;
|
getPlayTime: UserPlayTimeGql;
|
||||||
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
|
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
|
||||||
getShots: Array<ShotGql>;
|
getShots: Array<ShotGql>;
|
||||||
@ -1992,6 +2012,13 @@ export type QueryGetBucketSetArgs = {
|
|||||||
keyName: Scalars["String"]["input"];
|
keyName: Scalars["String"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type QueryGetOrderedShotsArgs = {
|
||||||
|
filterInput: FilterInput;
|
||||||
|
ids?: InputMaybe<Array<Scalars["Int"]["input"]>>;
|
||||||
|
limit?: Scalars["Int"]["input"];
|
||||||
|
shotsOrdering?: InputMaybe<GetShotsOrdering>;
|
||||||
|
};
|
||||||
|
|
||||||
export type QueryGetPlayTimeArgs = {
|
export type QueryGetPlayTimeArgs = {
|
||||||
userId: Scalars["Int"]["input"];
|
userId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
@ -2129,6 +2156,32 @@ export type ShotGql = {
|
|||||||
videoId: Scalars["Int"]["output"];
|
videoId: Scalars["Int"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type ShotsOrderingComponent =
|
||||||
|
| {
|
||||||
|
marginOfError: FloatShotOrdering;
|
||||||
|
startFrame?: never;
|
||||||
|
videoCreation?: never;
|
||||||
|
videoId?: never;
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
marginOfError?: never;
|
||||||
|
startFrame: IntShotOrdering;
|
||||||
|
videoCreation?: never;
|
||||||
|
videoId?: never;
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
marginOfError?: never;
|
||||||
|
startFrame?: never;
|
||||||
|
videoCreation: DatetimeShotOrdering;
|
||||||
|
videoId?: never;
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
marginOfError?: never;
|
||||||
|
startFrame?: never;
|
||||||
|
videoCreation?: never;
|
||||||
|
videoId: IntShotOrdering;
|
||||||
|
};
|
||||||
|
|
||||||
export type SpinTypeCountsGql = {
|
export type SpinTypeCountsGql = {
|
||||||
__typename?: "SpinTypeCountsGQL";
|
__typename?: "SpinTypeCountsGQL";
|
||||||
center: Scalars["Int"]["output"];
|
center: Scalars["Int"]["output"];
|
||||||
|
@ -9,6 +9,12 @@ type Query {
|
|||||||
videoId: ID!
|
videoId: ID!
|
||||||
intervalDuration: Int! = 300
|
intervalDuration: Int! = 300
|
||||||
): [MakePercentageIntervalGQL!]!
|
): [MakePercentageIntervalGQL!]!
|
||||||
|
getOrderedShots(
|
||||||
|
filterInput: FilterInput!
|
||||||
|
ids: [Int!] = null
|
||||||
|
shotsOrdering: GetShotsOrdering = null
|
||||||
|
limit: Int! = 500
|
||||||
|
): GetShotsResult!
|
||||||
getShotsWithMetadata(
|
getShotsWithMetadata(
|
||||||
filterInput: FilterInput!
|
filterInput: FilterInput!
|
||||||
ids: [Int!] = null
|
ids: [Int!] = null
|
||||||
@ -496,6 +502,32 @@ type VideoProcessingStatusGQL {
|
|||||||
updatedAt: DateTime
|
updatedAt: DateTime
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input GetShotsOrdering {
|
||||||
|
orderings: [ShotsOrderingComponent!]!
|
||||||
|
}
|
||||||
|
|
||||||
|
input ShotsOrderingComponent @oneOf {
|
||||||
|
videoCreation: DatetimeShotOrdering
|
||||||
|
marginOfError: FloatShotOrdering
|
||||||
|
videoId: IntShotOrdering
|
||||||
|
startFrame: IntShotOrdering
|
||||||
|
}
|
||||||
|
|
||||||
|
input DatetimeShotOrdering {
|
||||||
|
descending: Boolean! = true
|
||||||
|
startingAt: DateTime = null
|
||||||
|
}
|
||||||
|
|
||||||
|
input FloatShotOrdering {
|
||||||
|
descending: Boolean! = true
|
||||||
|
startingAt: Float = null
|
||||||
|
}
|
||||||
|
|
||||||
|
input IntShotOrdering {
|
||||||
|
descending: Boolean! = true
|
||||||
|
startingAt: Int = null
|
||||||
|
}
|
||||||
|
|
||||||
input GetShotsPagination {
|
input GetShotsPagination {
|
||||||
createdAfter: CreatedAfter!
|
createdAfter: CreatedAfter!
|
||||||
startFrameAfter: Int!
|
startFrameAfter: Int!
|
||||||
|
Loading…
Reference in New Issue
Block a user