Update gql for get-video resolver changes

This commit is contained in:
Ivan Malison 2024-03-08 17:15:37 -07:00
parent be59f7a2c6
commit 4ced3d39df
2 changed files with 73 additions and 10 deletions

View File

@ -51,6 +51,14 @@ export type BankFeaturesGql = {
wallsHit: Array<WallTypeEnum>; wallsHit: Array<WallTypeEnum>;
}; };
export type BoundingBoxGql = {
__typename?: "BoundingBoxGQL";
height: Scalars["Int"]["output"];
left: Scalars["Int"]["output"];
top: Scalars["Int"]["output"];
width: Scalars["Int"]["output"];
};
export type BucketGql = { export type BucketGql = {
__typename?: "BucketGQL"; __typename?: "BucketGQL";
lowerBound: Scalars["Float"]["output"]; lowerBound: Scalars["Float"]["output"];
@ -124,8 +132,6 @@ export type FilterInput = {
orFilters?: InputMaybe<OrFilter>; orFilters?: InputMaybe<OrFilter>;
shotDirection?: InputMaybe<ShotDirectionInput>; shotDirection?: InputMaybe<ShotDirectionInput>;
targetPocketDistance?: InputMaybe<TargetPocketDistanceInput>; targetPocketDistance?: InputMaybe<TargetPocketDistanceInput>;
userId?: InputMaybe<InListFilter>;
videoId?: InputMaybe<InListFilter>;
}; };
export type GetUploadLinkReturn = { export type GetUploadLinkReturn = {
@ -140,8 +146,18 @@ export type Header = {
value: Scalars["String"]["output"]; value: Scalars["String"]["output"];
}; };
export type InListFilter = { export type HomographyInfoGql = {
inList?: InputMaybe<Array<Scalars["Int"]["input"]>>; __typename?: "HomographyInfoGQL";
crop: BoundingBoxGql;
destPoints: PocketPointsGql;
pockets: Array<BoundingBoxGql>;
sourcePoints: PocketPointsGql;
};
export type IntPoint2D = {
__typename?: "IntPoint2D";
x: Scalars["Int"]["output"];
y: Scalars["Int"]["output"];
}; };
export type IntendedPocketTypeInput = { export type IntendedPocketTypeInput = {
@ -197,6 +213,16 @@ export enum PocketEnum {
Side = "SIDE", Side = "SIDE",
} }
export type PocketPointsGql = {
__typename?: "PocketPointsGQL";
bottomLeft: IntPoint2D;
bottomRight: IntPoint2D;
bottomSide: IntPoint2D;
topLeft: IntPoint2D;
topRight: IntPoint2D;
topSide: IntPoint2D;
};
export type PocketingIntentionFeaturesGql = { export type PocketingIntentionFeaturesGql = {
__typename?: "PocketingIntentionFeaturesGQL"; __typename?: "PocketingIntentionFeaturesGQL";
intendedPocketType?: Maybe<PocketEnum>; intendedPocketType?: Maybe<PocketEnum>;
@ -284,6 +310,11 @@ export type ShotGql = {
videoId?: Maybe<Scalars["Int"]["output"]>; videoId?: Maybe<Scalars["Int"]["output"]>;
}; };
export type StreamErrorGql = {
__typename?: "StreamErrorGQL";
message: Scalars["String"]["output"];
};
export type TargetFloatFeatureGql = { export type TargetFloatFeatureGql = {
__typename?: "TargetFloatFeatureGQL"; __typename?: "TargetFloatFeatureGQL";
average?: Maybe<Scalars["Float"]["output"]>; average?: Maybe<Scalars["Float"]["output"]>;
@ -305,9 +336,12 @@ export type TargetPocketDistanceInput = {
export type UploadStreamGql = { export type UploadStreamGql = {
__typename?: "UploadStreamGQL"; __typename?: "UploadStreamGQL";
createdAt: Scalars["DateTime"]["output"]; createdAt: Scalars["DateTime"]["output"];
errors: Array<StreamErrorGql>;
homographyHistory: Array<HomographyInfoGql>;
id: Scalars["ID"]["output"]; id: Scalars["ID"]["output"];
isCompleted: Scalars["Boolean"]["output"]; isCompleted: Scalars["Boolean"]["output"];
linksRequested: Scalars["Int"]["output"]; linksRequested: Scalars["Int"]["output"];
segmentProcessingCursor: Scalars["Int"]["output"];
updatedAt: Scalars["DateTime"]["output"]; updatedAt: Scalars["DateTime"]["output"];
uploadsCompleted: Scalars["Int"]["output"]; uploadsCompleted: Scalars["Int"]["output"];
}; };

View File

@ -149,11 +149,46 @@ type UploadStreamGQL {
id: ID! id: ID!
linksRequested: Int! linksRequested: Int!
uploadsCompleted: Int! uploadsCompleted: Int!
segmentProcessingCursor: Int!
isCompleted: Boolean! isCompleted: Boolean!
homographyHistory: [HomographyInfoGQL!]!
errors: [StreamErrorGQL!]!
createdAt: DateTime! createdAt: DateTime!
updatedAt: DateTime! updatedAt: DateTime!
} }
type HomographyInfoGQL {
crop: BoundingBoxGQL!
pockets: [BoundingBoxGQL!]!
sourcePoints: PocketPointsGQL!
destPoints: PocketPointsGQL!
}
type BoundingBoxGQL {
left: Int!
top: Int!
width: Int!
height: Int!
}
type PocketPointsGQL {
topLeft: IntPoint2D!
topSide: IntPoint2D!
topRight: IntPoint2D!
bottomLeft: IntPoint2D!
bottomSide: IntPoint2D!
bottomRight: IntPoint2D!
}
type IntPoint2D {
x: Int!
y: Int!
}
type StreamErrorGQL {
message: String!
}
input FilterInput { input FilterInput {
andFilters: AndFilter = null andFilters: AndFilter = null
orFilters: OrFilter = null orFilters: OrFilter = null
@ -163,8 +198,6 @@ input FilterInput {
cueBallSpeed: CueBallSpeedInput = null cueBallSpeed: CueBallSpeedInput = null
intendedPocketType: IntendedPocketTypeInput = null intendedPocketType: IntendedPocketTypeInput = null
shotDirection: ShotDirectionInput = null shotDirection: ShotDirectionInput = null
videoId: InListFilter = null
userId: InListFilter = null
} }
input AndFilter { input AndFilter {
@ -208,10 +241,6 @@ input ShotDirectionInput {
value: EnumFilter! value: EnumFilter!
} }
input InListFilter {
inList: [Int!] = null
}
type BucketSetGQL { type BucketSetGQL {
keyName: String! keyName: String!
feature: String! feature: String!