Merge remote-tracking branch 'origin' into mk/add-init-file-uploaded-marking
All checks were successful
Tests / Tests (pull_request) Successful in 7s

This commit is contained in:
Mike Kalange 2024-07-16 14:23:32 -07:00
commit 7502a75753
4 changed files with 535 additions and 0 deletions

View File

@ -132,17 +132,23 @@ export type FilterInput =
| { | {
andFilters: Array<FilterInput>; andFilters: Array<FilterInput>;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection?: never; shotDirection?: never;
tags?: never; tags?: never;
@ -153,17 +159,23 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations: Array<ShotAnnotationInput>; annotations: Array<ShotAnnotationInput>;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection?: never; shotDirection?: never;
tags?: never; tags?: never;
@ -174,17 +186,77 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle: RangeFilter;
bankDistance?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
isDirect?: never;
isLeft?: never;
isLeftMiss?: never;
isRight?: never;
isRightMiss?: never;
isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never;
notFilter?: never;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
annotations?: never;
bankAngle?: never;
bankDistance: RangeFilter;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
isDirect?: never;
isLeft?: never;
isLeftMiss?: never;
isRight?: never;
isRightMiss?: never;
isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never;
notFilter?: never;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed: RangeFilter; cueBallSpeed: RangeFilter;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection?: never; shotDirection?: never;
tags?: never; tags?: never;
@ -195,17 +267,23 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle: RangeFilter; cueObjectAngle: RangeFilter;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection?: never; shotDirection?: never;
tags?: never; tags?: never;
@ -216,17 +294,23 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance: RangeFilter; cueObjectDistance: RangeFilter;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection?: never; shotDirection?: never;
tags?: never; tags?: never;
@ -237,17 +321,23 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty: RangeFilter; difficulty: RangeFilter;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection?: never; shotDirection?: never;
tags?: never; tags?: never;
@ -258,17 +348,23 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType: Array<PocketEnum>; intendedPocketType: Array<PocketEnum>;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection?: never; shotDirection?: never;
tags?: never; tags?: never;
@ -279,17 +375,50 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect: Array<Scalars["Boolean"]["input"]>;
isLeft?: never;
isLeftMiss?: never;
isRight?: never;
isRightMiss?: never;
isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never;
notFilter?: never;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
isDirect?: never;
isLeft: Array<Scalars["Boolean"]["input"]>; isLeft: Array<Scalars["Boolean"]["input"]>;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection?: never; shotDirection?: never;
tags?: never; tags?: never;
@ -300,17 +429,23 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss: Array<Scalars["Boolean"]["input"]>; isLeftMiss: Array<Scalars["Boolean"]["input"]>;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection?: never; shotDirection?: never;
tags?: never; tags?: never;
@ -321,17 +456,23 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight: Array<Scalars["Boolean"]["input"]>; isRight: Array<Scalars["Boolean"]["input"]>;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection?: never; shotDirection?: never;
tags?: never; tags?: never;
@ -342,17 +483,23 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss: Array<Scalars["Boolean"]["input"]>; isRightMiss: Array<Scalars["Boolean"]["input"]>;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection?: never; shotDirection?: never;
tags?: never; tags?: never;
@ -363,17 +510,23 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight: Array<Scalars["Boolean"]["input"]>; isStraight: Array<Scalars["Boolean"]["input"]>;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection?: never; shotDirection?: never;
tags?: never; tags?: never;
@ -384,17 +537,77 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle: RangeFilter;
kickDistance?: never;
make?: never;
notFilter?: never;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
isDirect?: never;
isLeft?: never;
isLeftMiss?: never;
isRight?: never;
isRightMiss?: never;
isStraight?: never;
kickAngle?: never;
kickDistance: RangeFilter;
make?: never;
notFilter?: never;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
isDirect?: never;
isLeft?: never;
isLeftMiss?: never;
isRight?: never;
isRightMiss?: never;
isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make: Array<Scalars["Boolean"]["input"]>; make: Array<Scalars["Boolean"]["input"]>;
notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection?: never; shotDirection?: never;
tags?: never; tags?: never;
@ -405,17 +618,50 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter: FilterInput;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
isDirect?: never;
isLeft?: never;
isLeftMiss?: never;
isRight?: never;
isRightMiss?: never;
isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never;
notFilter?: never;
orFilters: Array<FilterInput>; orFilters: Array<FilterInput>;
shotDirection?: never; shotDirection?: never;
tags?: never; tags?: never;
@ -426,17 +672,23 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection: Array<ShotDirectionEnum>; shotDirection: Array<ShotDirectionEnum>;
tags?: never; tags?: never;
@ -447,17 +699,23 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection?: never; shotDirection?: never;
tags: Array<VideoTagInput>; tags: Array<VideoTagInput>;
@ -468,17 +726,23 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection?: never; shotDirection?: never;
tags?: never; tags?: never;
@ -489,17 +753,23 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection?: never; shotDirection?: never;
tags?: never; tags?: never;
@ -510,17 +780,23 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection?: never; shotDirection?: never;
tags?: never; tags?: never;
@ -582,9 +858,11 @@ export type Mutation = {
deleteVideo: Scalars["Boolean"]["output"]; deleteVideo: Scalars["Boolean"]["output"];
editProfileImageUri: UserGql; editProfileImageUri: UserGql;
editUploadStream: Scalars["Boolean"]["output"]; editUploadStream: Scalars["Boolean"]["output"];
getHlsInitUploadLink: GetUploadLinkReturn;
getProfileImageUploadLink: GetUploadLinkReturn; getProfileImageUploadLink: GetUploadLinkReturn;
getUploadLink: GetUploadLinkReturn; getUploadLink: GetUploadLinkReturn;
setLoggerLevel: Scalars["Boolean"]["output"]; setLoggerLevel: Scalars["Boolean"]["output"];
setSegmentDuration: Scalars["Boolean"]["output"];
}; };
export type MutationCreateBucketSetArgs = { export type MutationCreateBucketSetArgs = {
@ -608,6 +886,10 @@ export type MutationEditUploadStreamArgs = {
videoMetadata: VideoMetadataInput; videoMetadata: VideoMetadataInput;
}; };
export type MutationGetHlsInitUploadLinkArgs = {
videoId: Scalars["Int"]["input"];
};
export type MutationGetProfileImageUploadLinkArgs = { export type MutationGetProfileImageUploadLinkArgs = {
fileExt?: InputMaybe<Scalars["String"]["input"]>; fileExt?: InputMaybe<Scalars["String"]["input"]>;
}; };
@ -622,6 +904,12 @@ export type MutationSetLoggerLevelArgs = {
path: Scalars["String"]["input"]; path: Scalars["String"]["input"];
}; };
export type MutationSetSegmentDurationArgs = {
duration: Scalars["Float"]["input"];
segmentId: Scalars["Int"]["input"];
videoId: Scalars["Int"]["input"];
};
export type PageInfoGql = { export type PageInfoGql = {
__typename?: "PageInfoGQL"; __typename?: "PageInfoGQL";
endCursor?: Maybe<Scalars["String"]["output"]>; endCursor?: Maybe<Scalars["String"]["output"]>;
@ -662,6 +950,7 @@ export type Query = {
getShots: Array<ShotGql>; getShots: Array<ShotGql>;
getUser?: Maybe<UserGql>; getUser?: Maybe<UserGql>;
getUserVideos: VideoHistoryGql; getUserVideos: VideoHistoryGql;
getUsernames: Array<Scalars["String"]["output"]>;
getVideo: VideoGql; getVideo: VideoGql;
getVideoMakePercentageIntervals: Array<MakePercentageIntervalGql>; getVideoMakePercentageIntervals: Array<MakePercentageIntervalGql>;
getVideos: Array<VideoGql>; getVideos: Array<VideoGql>;
@ -694,6 +983,12 @@ export type QueryGetUserVideosArgs = {
userId?: InputMaybe<Scalars["Int"]["input"]>; userId?: InputMaybe<Scalars["Int"]["input"]>;
}; };
export type QueryGetUsernamesArgs = {
after?: InputMaybe<Scalars["String"]["input"]>;
limit?: InputMaybe<Scalars["Int"]["input"]>;
matchString?: InputMaybe<Scalars["String"]["input"]>;
};
export type QueryGetVideoArgs = { export type QueryGetVideoArgs = {
videoId: Scalars["Int"]["input"]; videoId: Scalars["Int"]["input"];
}; };
@ -717,6 +1012,16 @@ export type SerializedShotPathsGql = {
b64EncodedBuffer?: Maybe<Scalars["String"]["output"]>; b64EncodedBuffer?: Maybe<Scalars["String"]["output"]>;
}; };
export type ShotAnnotationGql = {
__typename?: "ShotAnnotationGQL";
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
creator: UserGql;
notes: Scalars["String"]["output"];
shotId: Scalars["Int"]["output"];
type: ShotAnnotationTypeGql;
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
};
export type ShotAnnotationInput = { export type ShotAnnotationInput = {
name: Scalars["String"]["input"]; name: Scalars["String"]["input"];
}; };
@ -735,6 +1040,7 @@ export enum ShotDirectionEnum {
export type ShotGql = { export type ShotGql = {
__typename?: "ShotGQL"; __typename?: "ShotGQL";
annotations: Array<ShotAnnotationGql>;
bankFeatures?: Maybe<BankFeaturesGql>; bankFeatures?: Maybe<BankFeaturesGql>;
createdAt?: Maybe<Scalars["DateTime"]["output"]>; createdAt?: Maybe<Scalars["DateTime"]["output"]>;
cueObjectFeatures?: Maybe<CueObjectFeaturesGql>; cueObjectFeatures?: Maybe<CueObjectFeaturesGql>;
@ -753,6 +1059,11 @@ export type StreamErrorGql = {
message: Scalars["String"]["output"]; message: Scalars["String"]["output"];
}; };
export enum StreamSegmentTypeEnum {
FragmentedMp4 = "FRAGMENTED_MP4",
RbChunkedMp4 = "RB_CHUNKED_MP4",
}
export type TargetMetricsGql = { export type TargetMetricsGql = {
__typename?: "TargetMetricsGQL"; __typename?: "TargetMetricsGQL";
averageDifficulty?: Maybe<Scalars["Float"]["output"]>; averageDifficulty?: Maybe<Scalars["Float"]["output"]>;
@ -806,6 +1117,7 @@ export type UserGql = {
createdAt?: Maybe<Scalars["DateTime"]["output"]>; createdAt?: Maybe<Scalars["DateTime"]["output"]>;
firebaseUid: Scalars["String"]["output"]; firebaseUid: Scalars["String"]["output"];
id: Scalars["Int"]["output"]; id: Scalars["Int"]["output"];
isAdmin: Scalars["Boolean"]["output"];
profileImageUri?: Maybe<Scalars["String"]["output"]>; profileImageUri?: Maybe<Scalars["String"]["output"]>;
updatedAt?: Maybe<Scalars["DateTime"]["output"]>; updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
username: Scalars["String"]["output"]; username: Scalars["String"]["output"];
@ -858,6 +1170,7 @@ export type VideoMetadataInput = {
gameType?: InputMaybe<Scalars["String"]["input"]>; gameType?: InputMaybe<Scalars["String"]["input"]>;
lastIntendedSegmentBound?: InputMaybe<Scalars["Int"]["input"]>; lastIntendedSegmentBound?: InputMaybe<Scalars["Int"]["input"]>;
startTime?: InputMaybe<Scalars["DateTime"]["input"]>; startTime?: InputMaybe<Scalars["DateTime"]["input"]>;
streamSegmentType?: InputMaybe<StreamSegmentTypeEnum>;
tableSize?: InputMaybe<Scalars["String"]["input"]>; tableSize?: InputMaybe<Scalars["String"]["input"]>;
uploadStreamMetadataInput?: InputMaybe<UploadStreamMetadataInput>; uploadStreamMetadataInput?: InputMaybe<UploadStreamMetadataInput>;
videoName?: InputMaybe<Scalars["String"]["input"]>; videoName?: InputMaybe<Scalars["String"]["input"]>;
@ -1029,6 +1342,19 @@ export type GetShotsQuery = {
}>; }>;
}; };
export type GetShotAnnotationTypesQueryVariables = Exact<{
[key: string]: never;
}>;
export type GetShotAnnotationTypesQuery = {
__typename?: "Query";
getShotAnnotationTypes: Array<{
__typename?: "ShotAnnotationTypeGQL";
id: number;
name: string;
}>;
};
export type GetProfileImageUploadLinkMutationVariables = Exact<{ export type GetProfileImageUploadLinkMutationVariables = Exact<{
fileExt?: InputMaybe<Scalars["String"]["input"]>; fileExt?: InputMaybe<Scalars["String"]["input"]>;
}>; }>;
@ -1072,6 +1398,7 @@ export type GetLoggedInUserQuery = {
id: number; id: number;
firebaseUid: string; firebaseUid: string;
username: string; username: string;
isAdmin: boolean;
profileImageUri?: string | null; profileImageUri?: string | null;
activeVideoId?: number | null; activeVideoId?: number | null;
createdAt?: any | null; createdAt?: any | null;
@ -1088,6 +1415,17 @@ export type GetUserPlayTimeQuery = {
getPlayTime: { __typename?: "UserPlayTimeGQL"; totalSeconds: number }; getPlayTime: { __typename?: "UserPlayTimeGQL"; totalSeconds: number };
}; };
export type GetUsernamesQueryVariables = Exact<{
matchString: Scalars["String"]["input"];
limit?: InputMaybe<Scalars["Int"]["input"]>;
after?: InputMaybe<Scalars["String"]["input"]>;
}>;
export type GetUsernamesQuery = {
__typename?: "Query";
getUsernames: Array<string>;
};
export type GetStreamMonitoringDetailsQueryVariables = Exact<{ export type GetStreamMonitoringDetailsQueryVariables = Exact<{
videoId: Scalars["Int"]["input"]; videoId: Scalars["Int"]["input"];
}>; }>;
@ -1839,6 +2177,79 @@ export type GetShotsQueryResult = Apollo.QueryResult<
GetShotsQuery, GetShotsQuery,
GetShotsQueryVariables GetShotsQueryVariables
>; >;
export const GetShotAnnotationTypesDocument = gql`
query GetShotAnnotationTypes {
getShotAnnotationTypes {
id
name
}
}
`;
/**
* __useGetShotAnnotationTypesQuery__
*
* To run a query within a React component, call `useGetShotAnnotationTypesQuery` and pass it any options that fit your needs.
* When your component renders, `useGetShotAnnotationTypesQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
*
* @example
* const { data, loading, error } = useGetShotAnnotationTypesQuery({
* variables: {
* },
* });
*/
export function useGetShotAnnotationTypesQuery(
baseOptions?: Apollo.QueryHookOptions<
GetShotAnnotationTypesQuery,
GetShotAnnotationTypesQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useQuery<
GetShotAnnotationTypesQuery,
GetShotAnnotationTypesQueryVariables
>(GetShotAnnotationTypesDocument, options);
}
export function useGetShotAnnotationTypesLazyQuery(
baseOptions?: Apollo.LazyQueryHookOptions<
GetShotAnnotationTypesQuery,
GetShotAnnotationTypesQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useLazyQuery<
GetShotAnnotationTypesQuery,
GetShotAnnotationTypesQueryVariables
>(GetShotAnnotationTypesDocument, options);
}
export function useGetShotAnnotationTypesSuspenseQuery(
baseOptions?: Apollo.SuspenseQueryHookOptions<
GetShotAnnotationTypesQuery,
GetShotAnnotationTypesQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useSuspenseQuery<
GetShotAnnotationTypesQuery,
GetShotAnnotationTypesQueryVariables
>(GetShotAnnotationTypesDocument, options);
}
export type GetShotAnnotationTypesQueryHookResult = ReturnType<
typeof useGetShotAnnotationTypesQuery
>;
export type GetShotAnnotationTypesLazyQueryHookResult = ReturnType<
typeof useGetShotAnnotationTypesLazyQuery
>;
export type GetShotAnnotationTypesSuspenseQueryHookResult = ReturnType<
typeof useGetShotAnnotationTypesSuspenseQuery
>;
export type GetShotAnnotationTypesQueryResult = Apollo.QueryResult<
GetShotAnnotationTypesQuery,
GetShotAnnotationTypesQueryVariables
>;
export const GetProfileImageUploadLinkDocument = gql` export const GetProfileImageUploadLinkDocument = gql`
mutation getProfileImageUploadLink($fileExt: String = ".png") { mutation getProfileImageUploadLink($fileExt: String = ".png") {
getProfileImageUploadLink(fileExt: $fileExt) { getProfileImageUploadLink(fileExt: $fileExt) {
@ -1955,6 +2366,7 @@ export const GetLoggedInUserDocument = gql`
id id
firebaseUid firebaseUid
username username
isAdmin
profileImageUri profileImageUri
activeVideoId activeVideoId
createdAt createdAt
@ -2100,6 +2512,83 @@ export type GetUserPlayTimeQueryResult = Apollo.QueryResult<
GetUserPlayTimeQuery, GetUserPlayTimeQuery,
GetUserPlayTimeQueryVariables GetUserPlayTimeQueryVariables
>; >;
export const GetUsernamesDocument = gql`
query getUsernames(
$matchString: String!
$limit: Int = null
$after: String = null
) {
getUsernames(matchString: $matchString, limit: $limit, after: $after)
}
`;
/**
* __useGetUsernamesQuery__
*
* To run a query within a React component, call `useGetUsernamesQuery` and pass it any options that fit your needs.
* When your component renders, `useGetUsernamesQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
*
* @example
* const { data, loading, error } = useGetUsernamesQuery({
* variables: {
* matchString: // value for 'matchString'
* limit: // value for 'limit'
* after: // value for 'after'
* },
* });
*/
export function useGetUsernamesQuery(
baseOptions: Apollo.QueryHookOptions<
GetUsernamesQuery,
GetUsernamesQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useQuery<GetUsernamesQuery, GetUsernamesQueryVariables>(
GetUsernamesDocument,
options,
);
}
export function useGetUsernamesLazyQuery(
baseOptions?: Apollo.LazyQueryHookOptions<
GetUsernamesQuery,
GetUsernamesQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useLazyQuery<GetUsernamesQuery, GetUsernamesQueryVariables>(
GetUsernamesDocument,
options,
);
}
export function useGetUsernamesSuspenseQuery(
baseOptions?: Apollo.SuspenseQueryHookOptions<
GetUsernamesQuery,
GetUsernamesQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useSuspenseQuery<GetUsernamesQuery, GetUsernamesQueryVariables>(
GetUsernamesDocument,
options,
);
}
export type GetUsernamesQueryHookResult = ReturnType<
typeof useGetUsernamesQuery
>;
export type GetUsernamesLazyQueryHookResult = ReturnType<
typeof useGetUsernamesLazyQuery
>;
export type GetUsernamesSuspenseQueryHookResult = ReturnType<
typeof useGetUsernamesSuspenseQuery
>;
export type GetUsernamesQueryResult = Apollo.QueryResult<
GetUsernamesQuery,
GetUsernamesQueryVariables
>;
export const GetStreamMonitoringDetailsDocument = gql` export const GetStreamMonitoringDetailsDocument = gql`
query GetStreamMonitoringDetails($videoId: Int!) { query GetStreamMonitoringDetails($videoId: Int!) {
getVideo(videoId: $videoId) { getVideo(videoId: $videoId) {

View File

@ -36,3 +36,10 @@ query GetShots(
} }
} }
} }
query GetShotAnnotationTypes {
getShotAnnotationTypes {
id
name
}
}

View File

@ -24,6 +24,7 @@ query getLoggedInUser {
id id
firebaseUid firebaseUid
username username
isAdmin
profileImageUri profileImageUri
activeVideoId activeVideoId
createdAt createdAt
@ -36,3 +37,11 @@ query GetUserPlayTime($userId: Int!) {
totalSeconds totalSeconds
} }
} }
query getUsernames(
$matchString: String!
$limit: Int = null
$after: String = null
) {
getUsernames(matchString: $matchString, limit: $limit, after: $after)
}

View File

@ -12,6 +12,11 @@ type Query {
getShotAnnotationTypes: [ShotAnnotationTypeGQL!]! getShotAnnotationTypes: [ShotAnnotationTypeGQL!]!
getUser(userId: Int!): UserGQL getUser(userId: Int!): UserGQL
getLoggedInUser: UserGQL getLoggedInUser: UserGQL
getUsernames(
matchString: String = null
limit: Int = null
after: String = null
): [String!]!
getPlayTime(userId: Int!): UserPlayTimeGQL! getPlayTime(userId: Int!): UserPlayTimeGQL!
getUserVideos( getUserVideos(
userId: Int = null userId: Int = null
@ -66,6 +71,7 @@ input EnumAggregation {
input FilterInput @oneOf { input FilterInput @oneOf {
andFilters: [FilterInput!] andFilters: [FilterInput!]
orFilters: [FilterInput!] orFilters: [FilterInput!]
notFilter: FilterInput
cueObjectDistance: RangeFilter cueObjectDistance: RangeFilter
targetPocketDistance: RangeFilter targetPocketDistance: RangeFilter
cueObjectAngle: RangeFilter cueObjectAngle: RangeFilter
@ -83,6 +89,11 @@ input FilterInput @oneOf {
isLeft: [Boolean!] isLeft: [Boolean!]
isLeftMiss: [Boolean!] isLeftMiss: [Boolean!]
isRightMiss: [Boolean!] isRightMiss: [Boolean!]
isDirect: [Boolean!]
bankAngle: RangeFilter
bankDistance: RangeFilter
kickAngle: RangeFilter
kickDistance: RangeFilter
} }
input RangeFilter { input RangeFilter {
@ -149,6 +160,7 @@ type ShotGQL {
bankFeatures: BankFeaturesGQL bankFeatures: BankFeaturesGQL
serializedShotPaths: SerializedShotPathsGQL serializedShotPaths: SerializedShotPathsGQL
user: UserGQL user: UserGQL
annotations: [ShotAnnotationGQL!]!
} }
""" """
@ -189,12 +201,22 @@ type UserGQL {
id: Int! id: Int!
firebaseUid: String! firebaseUid: String!
username: String! username: String!
isAdmin: Boolean!
activeVideoId: Int activeVideoId: Int
profileImageUri: String profileImageUri: String
createdAt: DateTime createdAt: DateTime
updatedAt: DateTime updatedAt: DateTime
} }
type ShotAnnotationGQL {
shotId: Int!
type: ShotAnnotationTypeGQL!
creator: UserGQL!
notes: String!
createdAt: DateTime
updatedAt: DateTime
}
type ShotAnnotationTypeGQL { type ShotAnnotationTypeGQL {
id: Int! id: Int!
name: String! name: String!
@ -342,6 +364,8 @@ type Mutation {
videoMetadata: VideoMetadataInput! videoMetadata: VideoMetadataInput!
): CreateUploadStreamReturn! ): CreateUploadStreamReturn!
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn! getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
getHlsInitUploadLink(videoId: Int!): GetUploadLinkReturn!
setSegmentDuration(videoId: Int!, segmentId: Int!, duration: Float!): Boolean!
editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean! editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean!
deleteVideo(videoId: Int!): Boolean! deleteVideo(videoId: Int!): Boolean!
} }
@ -374,6 +398,7 @@ input VideoMetadataInput {
tableSize: String = null tableSize: String = null
uploadStreamMetadataInput: UploadStreamMetadataInput = null uploadStreamMetadataInput: UploadStreamMetadataInput = null
lastIntendedSegmentBound: Int = null lastIntendedSegmentBound: Int = null
streamSegmentType: StreamSegmentTypeEnum = null
endStream: Boolean! = false endStream: Boolean! = false
} }
@ -394,3 +419,8 @@ enum DeviceTypeEnum {
ANDROID ANDROID
BROWSER BROWSER
} }
enum StreamSegmentTypeEnum {
FRAGMENTED_MP4
RB_CHUNKED_MP4
}