Add get ordered shots

This commit is contained in:
Ivan Malison 2024-10-19 20:18:23 -06:00
parent 5cb7df174b
commit 72ac956758
2 changed files with 85 additions and 0 deletions

View File

@ -157,6 +157,11 @@ export type DatetimeRangeAggregationInput = {
startDatetime?: InputMaybe<Scalars["DateTime"]["input"]>;
};
export type DatetimeShotOrdering = {
descending?: Scalars["Boolean"]["input"];
startingAt?: InputMaybe<Scalars["DateTime"]["input"]>;
};
export type DeployedConfigGql = {
__typename?: "DeployedConfigGQL";
allowNewUsers: Scalars["Boolean"]["output"];
@ -1716,6 +1721,11 @@ export type FloatRangeFilter = {
lessThanInclusive?: Scalars["Boolean"]["input"];
};
export type FloatShotOrdering = {
descending?: Scalars["Boolean"]["input"];
startingAt?: InputMaybe<Scalars["Float"]["input"]>;
};
export type GetProfileUploadLinkErrors = {
__typename?: "GetProfileUploadLinkErrors";
error: TooManyProfileImageUploadsErr;
@ -1726,6 +1736,10 @@ export type GetProfileUploadLinkReturn = {
value: UploadLinkGetProfileUploadLinkErrors;
};
export type GetShotsOrdering = {
orderings: Array<ShotsOrderingComponent>;
};
export type GetShotsPagination = {
createdAfter: CreatedAfter;
startFrameAfter: Scalars["Int"]["input"];
@ -1789,6 +1803,11 @@ export type IntPoint2D = {
y: Scalars["Int"]["output"];
};
export type IntShotOrdering = {
descending?: Scalars["Boolean"]["input"];
startingAt?: InputMaybe<Scalars["Int"]["input"]>;
};
export type MakePercentageIntervalGql = {
__typename?: "MakePercentageIntervalGQL";
elapsedTime: Scalars["Float"]["output"];
@ -1969,6 +1988,7 @@ export type Query = {
getBucketSet?: Maybe<BucketSetGql>;
getDeployedConfig: DeployedConfigGql;
getLoggedInUser?: Maybe<UserGql>;
getOrderedShots: GetShotsResult;
getPlayTime: UserPlayTimeGql;
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
getShots: Array<ShotGql>;
@ -1992,6 +2012,13 @@ export type QueryGetBucketSetArgs = {
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 = {
userId: Scalars["Int"]["input"];
};
@ -2129,6 +2156,32 @@ export type ShotGql = {
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 = {
__typename?: "SpinTypeCountsGQL";
center: Scalars["Int"]["output"];

View File

@ -9,6 +9,12 @@ type Query {
videoId: ID!
intervalDuration: Int! = 300
): [MakePercentageIntervalGQL!]!
getOrderedShots(
filterInput: FilterInput!
ids: [Int!] = null
shotsOrdering: GetShotsOrdering = null
limit: Int! = 500
): GetShotsResult!
getShotsWithMetadata(
filterInput: FilterInput!
ids: [Int!] = null
@ -496,6 +502,32 @@ type VideoProcessingStatusGQL {
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 {
createdAfter: CreatedAfter!
startFrameAfter: Int!