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

View File

@ -149,11 +149,46 @@ type UploadStreamGQL {
id: ID!
linksRequested: Int!
uploadsCompleted: Int!
segmentProcessingCursor: Int!
isCompleted: Boolean!
homographyHistory: [HomographyInfoGQL!]!
errors: [StreamErrorGQL!]!
createdAt: 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 {
andFilters: AndFilter = null
orFilters: OrFilter = null
@ -163,8 +198,6 @@ input FilterInput {
cueBallSpeed: CueBallSpeedInput = null
intendedPocketType: IntendedPocketTypeInput = null
shotDirection: ShotDirectionInput = null
videoId: InListFilter = null
userId: InListFilter = null
}
input AndFilter {
@ -208,10 +241,6 @@ input ShotDirectionInput {
value: EnumFilter!
}
input InListFilter {
inList: [Int!] = null
}
type BucketSetGQL {
keyName: String!
feature: String!