Compare commits
1 Commits
kat/expose
...
kat/suppor
Author | SHA1 | Date | |
---|---|---|---|
35a8d71128 |
333
src/index.tsx
333
src/index.tsx
@@ -34,16 +34,6 @@ export type Scalars = {
|
||||
JSON: { input: any; output: any };
|
||||
};
|
||||
|
||||
export type AddShotAnnotationErrors = {
|
||||
__typename?: "AddShotAnnotationErrors";
|
||||
error: DoesNotOwnShotErrOtherErrorNeedsNote;
|
||||
};
|
||||
|
||||
export type AddShotAnnotationReturn = {
|
||||
__typename?: "AddShotAnnotationReturn";
|
||||
value: SuccessfulAddAddShotAnnotationErrors;
|
||||
};
|
||||
|
||||
export type AggregateInputGql = {
|
||||
aggregations: Array<AggregationInput>;
|
||||
filterInput?: InputMaybe<FilterInput>;
|
||||
@@ -132,7 +122,6 @@ export type DeployedConfigGql = {
|
||||
devMode: Scalars["Boolean"]["output"];
|
||||
environment: Scalars["String"]["output"];
|
||||
firebase: Scalars["Boolean"]["output"];
|
||||
minimumAllowedAppVersion: Scalars["String"]["output"];
|
||||
};
|
||||
|
||||
export enum DeviceTypeEnum {
|
||||
@@ -141,16 +130,6 @@ export enum DeviceTypeEnum {
|
||||
Ios = "IOS",
|
||||
}
|
||||
|
||||
export type DoesNotOwnShotErr = {
|
||||
__typename?: "DoesNotOwnShotErr";
|
||||
msg?: Maybe<Scalars["String"]["output"]>;
|
||||
shotId: Scalars["Int"]["output"];
|
||||
};
|
||||
|
||||
export type DoesNotOwnShotErrOtherErrorNeedsNote =
|
||||
| DoesNotOwnShotErr
|
||||
| OtherErrorNeedsNote;
|
||||
|
||||
export type EnumAggregation = {
|
||||
feature: Scalars["String"]["input"];
|
||||
};
|
||||
@@ -182,7 +161,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -214,7 +192,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -246,7 +223,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -278,7 +254,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -310,7 +285,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -342,7 +316,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -374,7 +347,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -406,7 +378,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -438,7 +409,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -470,7 +440,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -502,7 +471,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -534,7 +502,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -566,7 +533,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -598,7 +564,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -630,7 +595,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -662,7 +626,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -694,7 +657,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -726,7 +688,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -758,7 +719,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -790,7 +750,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -822,7 +781,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -854,7 +812,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -886,7 +843,6 @@ export type FilterInput =
|
||||
orFilters: Array<FilterInput>;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -918,7 +874,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection: Array<ShotDirectionEnum>;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -950,7 +905,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType: Array<Scalars["String"]["input"]>;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -982,39 +936,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize: RangeFilter;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
videoId?: never;
|
||||
}
|
||||
| {
|
||||
andFilters?: never;
|
||||
annotations?: never;
|
||||
bankAngle?: never;
|
||||
bankDistance?: never;
|
||||
cueAngleAfterObject?: never;
|
||||
cueBallSpeed?: never;
|
||||
cueObjectAngle?: never;
|
||||
cueObjectDistance?: never;
|
||||
cueSpeedAfterObject?: never;
|
||||
difficulty?: never;
|
||||
falsePositiveScore?: 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;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags: Array<VideoTagInput>;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
@@ -1046,7 +967,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance: RangeFilter;
|
||||
userId?: never;
|
||||
@@ -1078,7 +998,6 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId: Array<Scalars["Int"]["input"]>;
|
||||
@@ -1110,37 +1029,22 @@ export type FilterInput =
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
userId?: never;
|
||||
videoId: Array<Scalars["Int"]["input"]>;
|
||||
};
|
||||
|
||||
export type GetProfileUploadLinkErrors = {
|
||||
__typename?: "GetProfileUploadLinkErrors";
|
||||
error: TooManyProfileImageUploadsErr;
|
||||
};
|
||||
|
||||
export type GetProfileUploadLinkReturn = {
|
||||
__typename?: "GetProfileUploadLinkReturn";
|
||||
value: UploadLinkGetProfileUploadLinkErrors;
|
||||
};
|
||||
|
||||
export type GetShotsPagination = {
|
||||
createdAfter: CreatedAfter;
|
||||
startFrameAfter: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type GetUploadLinkErrors = {
|
||||
__typename?: "GetUploadLinkErrors";
|
||||
error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErr;
|
||||
};
|
||||
|
||||
export type GetUploadLinkReturn = {
|
||||
__typename?: "GetUploadLinkReturn";
|
||||
stream?: Maybe<UploadStreamGql>;
|
||||
value: UploadLinkGetUploadLinkErrors;
|
||||
headers: Array<Maybe<Header>>;
|
||||
uploadCompletionCursor?: Maybe<Scalars["Int"]["output"]>;
|
||||
uploadUrl: Scalars["String"]["output"];
|
||||
};
|
||||
|
||||
export type HlsPlaylistGql = {
|
||||
@@ -1183,30 +1087,16 @@ export type MakePercentageIntervalGql = {
|
||||
makePercentage: Scalars["Float"]["output"];
|
||||
};
|
||||
|
||||
export type MustHaveSetForUploadLinkErr = {
|
||||
__typename?: "MustHaveSetForUploadLinkErr";
|
||||
framesPerSecond?: Maybe<Scalars["Boolean"]["output"]>;
|
||||
resolution?: Maybe<Scalars["Boolean"]["output"]>;
|
||||
};
|
||||
|
||||
export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErr =
|
||||
|
||||
| MustHaveSetForUploadLinkErr
|
||||
| NoInitForChunkedUploadErr
|
||||
| ProcessingFailedErr
|
||||
| SegmentAlreadyUploadedErr
|
||||
| TooManyProfileImageUploadsErr;
|
||||
|
||||
export type Mutation = {
|
||||
__typename?: "Mutation";
|
||||
addAnnotationToShot: AddShotAnnotationReturn;
|
||||
addAnnotationToShot: Scalars["Boolean"]["output"];
|
||||
createBucketSet: BucketSetGql;
|
||||
createUploadStream: CreateUploadStreamReturn;
|
||||
deleteVideo: Scalars["Boolean"]["output"];
|
||||
editProfileImageUri: UserGql;
|
||||
editUploadStream: Scalars["Boolean"]["output"];
|
||||
getHlsInitUploadLink: GetUploadLinkReturn;
|
||||
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
||||
getProfileImageUploadLink: GetUploadLinkReturn;
|
||||
getUploadLink: GetUploadLinkReturn;
|
||||
setLoggerLevel: Scalars["Boolean"]["output"];
|
||||
setSegmentDuration: Scalars["Boolean"]["output"];
|
||||
@@ -1214,7 +1104,6 @@ export type Mutation = {
|
||||
|
||||
export type MutationAddAnnotationToShotArgs = {
|
||||
annotationName: Scalars["String"]["input"];
|
||||
notes?: InputMaybe<Scalars["String"]["input"]>;
|
||||
shotId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
@@ -1263,16 +1152,6 @@ export type MutationSetSegmentDurationArgs = {
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type NoInitForChunkedUploadErr = {
|
||||
__typename?: "NoInitForChunkedUploadErr";
|
||||
segmentType: StreamSegmentTypeEnum;
|
||||
};
|
||||
|
||||
export type OtherErrorNeedsNote = {
|
||||
__typename?: "OtherErrorNeedsNote";
|
||||
msg?: Maybe<Scalars["String"]["output"]>;
|
||||
};
|
||||
|
||||
export type PageInfoGql = {
|
||||
__typename?: "PageInfoGQL";
|
||||
endCursor?: Maybe<Scalars["String"]["output"]>;
|
||||
@@ -1302,11 +1181,6 @@ export type PocketingIntentionFeaturesGql = {
|
||||
targetPocketDistance?: Maybe<Scalars["Float"]["output"]>;
|
||||
};
|
||||
|
||||
export type ProcessingFailedErr = {
|
||||
__typename?: "ProcessingFailedErr";
|
||||
processing: VideoProcessingGql;
|
||||
};
|
||||
|
||||
export enum ProcessingStatusEnum {
|
||||
Created = "CREATED",
|
||||
Failed = "FAILED",
|
||||
@@ -1349,10 +1223,6 @@ export type QueryGetPlayTimeArgs = {
|
||||
userId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type QueryGetShotAnnotationTypesArgs = {
|
||||
errorTypes?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||
};
|
||||
|
||||
export type QueryGetShotsArgs = {
|
||||
filterInput: FilterInput;
|
||||
limit?: Scalars["Int"]["input"];
|
||||
@@ -1395,17 +1265,9 @@ export type QueryWaitForArgs = {
|
||||
};
|
||||
|
||||
export type RangeFilter = {
|
||||
greaterThan?: InputMaybe<Scalars["Float"]["input"]>;
|
||||
greaterThanEqualTo?: InputMaybe<Scalars["Float"]["input"]>;
|
||||
greaterThanInclusive?: Scalars["Boolean"]["input"];
|
||||
includeOnNone?: Scalars["Boolean"]["input"];
|
||||
lessThan?: InputMaybe<Scalars["Float"]["input"]>;
|
||||
lessThanInclusive?: Scalars["Boolean"]["input"];
|
||||
};
|
||||
|
||||
export type SegmentAlreadyUploadedErr = {
|
||||
__typename?: "SegmentAlreadyUploadedErr";
|
||||
segmentId: Scalars["Int"]["output"];
|
||||
};
|
||||
|
||||
export type SerializedShotPathsGql = {
|
||||
@@ -1417,7 +1279,6 @@ export type ShotAnnotationGql = {
|
||||
__typename?: "ShotAnnotationGQL";
|
||||
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
creator: UserGql;
|
||||
errorDefault: Scalars["Boolean"]["output"];
|
||||
notes: Scalars["String"]["output"];
|
||||
shotId: Scalars["Int"]["output"];
|
||||
type: ShotAnnotationTypeGql;
|
||||
@@ -1468,15 +1329,6 @@ export enum StreamSegmentTypeEnum {
|
||||
RbChunkedMp4 = "RB_CHUNKED_MP4",
|
||||
}
|
||||
|
||||
export type SuccessfulAdd = {
|
||||
__typename?: "SuccessfulAdd";
|
||||
value: Scalars["Boolean"]["output"];
|
||||
};
|
||||
|
||||
export type SuccessfulAddAddShotAnnotationErrors =
|
||||
| AddShotAnnotationErrors
|
||||
| SuccessfulAdd;
|
||||
|
||||
export type TagGql = {
|
||||
__typename?: "TagGQL";
|
||||
group?: Maybe<Scalars["String"]["output"]>;
|
||||
@@ -1491,23 +1343,6 @@ export type TargetMetricsGql = {
|
||||
makePercentage?: Maybe<Scalars["Float"]["output"]>;
|
||||
};
|
||||
|
||||
export type TooManyProfileImageUploadsErr = {
|
||||
__typename?: "TooManyProfileImageUploadsErr";
|
||||
linksRequested: Scalars["Int"]["output"];
|
||||
};
|
||||
|
||||
export type UploadLink = {
|
||||
__typename?: "UploadLink";
|
||||
headers: Array<Maybe<Header>>;
|
||||
uploadUrl: Scalars["String"]["output"];
|
||||
};
|
||||
|
||||
export type UploadLinkGetProfileUploadLinkErrors =
|
||||
| GetProfileUploadLinkErrors
|
||||
| UploadLink;
|
||||
|
||||
export type UploadLinkGetUploadLinkErrors = GetUploadLinkErrors | UploadLink;
|
||||
|
||||
export type UploadSegmentGql = {
|
||||
__typename?: "UploadSegmentGQL";
|
||||
durationInSeconds?: Maybe<Scalars["Float"]["output"]>;
|
||||
@@ -1591,7 +1426,6 @@ export type VideoGql = {
|
||||
shots: Array<ShotGql>;
|
||||
startTime?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
stream?: Maybe<UploadStreamGql>;
|
||||
tableSize: Scalars["Float"]["output"];
|
||||
tags: Array<VideoTag>;
|
||||
totalShots: Scalars["Int"]["output"];
|
||||
totalShotsMade: Scalars["Int"]["output"];
|
||||
@@ -1613,7 +1447,7 @@ export type VideoMetadataInput = {
|
||||
resolution?: InputMaybe<VideoResolution>;
|
||||
startTime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||
streamSegmentType?: InputMaybe<StreamSegmentTypeEnum>;
|
||||
tableSize?: InputMaybe<Scalars["Float"]["input"]>;
|
||||
tableSize?: InputMaybe<Scalars["String"]["input"]>;
|
||||
uploadStreamMetadataInput?: InputMaybe<UploadStreamMetadataInput>;
|
||||
videoName?: InputMaybe<Scalars["String"]["input"]>;
|
||||
};
|
||||
@@ -1708,7 +1542,6 @@ export type GetDeployedConfigQuery = {
|
||||
devMode: boolean;
|
||||
environment: string;
|
||||
firebase: boolean;
|
||||
minimumAllowedAppVersion: string;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1735,7 +1568,6 @@ export type GetFeedQuery = {
|
||||
startTime?: any | null;
|
||||
endTime?: any | null;
|
||||
elapsedTime?: number | null;
|
||||
tableSize: number;
|
||||
owner?: { __typename?: "UserGQL"; username: string } | null;
|
||||
stream?: { __typename?: "UploadStreamGQL"; isCompleted: boolean } | null;
|
||||
tags: Array<{
|
||||
@@ -1795,17 +1627,6 @@ export type GetShotsQuery = {
|
||||
createdAt?: any | null;
|
||||
updatedAt?: any | null;
|
||||
user?: { __typename?: "UserGQL"; id: number } | null;
|
||||
video?: {
|
||||
__typename?: "VideoGQL";
|
||||
stream?: {
|
||||
__typename?: "UploadStreamGQL";
|
||||
resolution: {
|
||||
__typename?: "VideoResolutionGQL";
|
||||
width?: number | null;
|
||||
height?: number | null;
|
||||
};
|
||||
} | null;
|
||||
} | null;
|
||||
cueObjectFeatures?: {
|
||||
__typename?: "CueObjectFeaturesGQL";
|
||||
cueObjectDistance?: number | null;
|
||||
@@ -1842,17 +1663,7 @@ export type GetProfileImageUploadLinkMutationVariables = Exact<{
|
||||
export type GetProfileImageUploadLinkMutation = {
|
||||
__typename?: "Mutation";
|
||||
getProfileImageUploadLink: {
|
||||
__typename?: "GetProfileUploadLinkReturn";
|
||||
value:
|
||||
| {
|
||||
__typename?: "GetProfileUploadLinkErrors";
|
||||
error: {
|
||||
__typename?: "TooManyProfileImageUploadsErr";
|
||||
linksRequested: number;
|
||||
};
|
||||
}
|
||||
| {
|
||||
__typename?: "UploadLink";
|
||||
__typename?: "GetUploadLinkReturn";
|
||||
uploadUrl: string;
|
||||
headers: Array<{
|
||||
__typename?: "Header";
|
||||
@@ -1860,7 +1671,6 @@ export type GetProfileImageUploadLinkMutation = {
|
||||
value: string;
|
||||
} | null>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
export type EditProfileImageUriMutationVariables = Exact<{
|
||||
@@ -1991,7 +1801,6 @@ export type GetVideoUpdatePageDetailsQuery = {
|
||||
totalShots: number;
|
||||
makePercentage: number;
|
||||
elapsedTime?: number | null;
|
||||
tableSize: number;
|
||||
tags: Array<{
|
||||
__typename?: "VideoTag";
|
||||
name: string;
|
||||
@@ -2030,7 +1839,6 @@ export type GetVideoDetailsQuery = {
|
||||
totalShotsMade: number;
|
||||
createdAt?: any | null;
|
||||
updatedAt?: any | null;
|
||||
tableSize: number;
|
||||
owner?: {
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
@@ -2055,11 +1863,13 @@ export type GetVideosQuery = {
|
||||
getVideos: Array<{
|
||||
__typename?: "VideoGQL";
|
||||
id: number;
|
||||
framesPerSecond: number;
|
||||
playlist?: {
|
||||
__typename?: "HLSPlaylistGQL";
|
||||
segmentDurations: Array<number>;
|
||||
} | null;
|
||||
stream?: {
|
||||
__typename?: "UploadStreamGQL";
|
||||
id: string;
|
||||
streamSegmentType: StreamSegmentTypeEnum;
|
||||
segments: Array<{
|
||||
__typename?: "UploadSegmentGQL";
|
||||
uploaded: boolean;
|
||||
@@ -2069,10 +1879,6 @@ export type GetVideosQuery = {
|
||||
framesPerSecond?: number | null;
|
||||
}>;
|
||||
} | null;
|
||||
playlist?: {
|
||||
__typename?: "HLSPlaylistGQL";
|
||||
segmentDurations: Array<number>;
|
||||
} | null;
|
||||
}>;
|
||||
};
|
||||
|
||||
@@ -2220,32 +2026,6 @@ export type GetUploadLinkMutation = {
|
||||
__typename?: "Mutation";
|
||||
getUploadLink: {
|
||||
__typename?: "GetUploadLinkReturn";
|
||||
value:
|
||||
| {
|
||||
__typename?: "GetUploadLinkErrors";
|
||||
error:
|
||||
| {
|
||||
__typename?: "MustHaveSetForUploadLinkErr";
|
||||
resolution?: boolean | null;
|
||||
framesPerSecond?: boolean | null;
|
||||
}
|
||||
| { __typename?: "NoInitForChunkedUploadErr" }
|
||||
| {
|
||||
__typename?: "ProcessingFailedErr";
|
||||
processing: {
|
||||
__typename?: "VideoProcessingGQL";
|
||||
status: ProcessingStatusEnum;
|
||||
errors: Array<{
|
||||
__typename?: "VideoProcessingErrorGQL";
|
||||
message: string;
|
||||
}>;
|
||||
};
|
||||
}
|
||||
| { __typename?: "SegmentAlreadyUploadedErr"; segmentId: number }
|
||||
| { __typename?: "TooManyProfileImageUploadsErr" };
|
||||
}
|
||||
| {
|
||||
__typename?: "UploadLink";
|
||||
uploadUrl: string;
|
||||
headers: Array<{
|
||||
__typename?: "Header";
|
||||
@@ -2253,11 +2033,6 @@ export type GetUploadLinkMutation = {
|
||||
value: string;
|
||||
} | null>;
|
||||
};
|
||||
stream?: {
|
||||
__typename?: "UploadStreamGQL";
|
||||
uploadCompletionCursor: number;
|
||||
} | null;
|
||||
};
|
||||
};
|
||||
|
||||
export type GetHlsInitUploadLinkMutationVariables = Exact<{
|
||||
@@ -2268,21 +2043,6 @@ export type GetHlsInitUploadLinkMutation = {
|
||||
__typename?: "Mutation";
|
||||
getHlsInitUploadLink: {
|
||||
__typename?: "GetUploadLinkReturn";
|
||||
value:
|
||||
| {
|
||||
__typename?: "GetUploadLinkErrors";
|
||||
error:
|
||||
| { __typename?: "MustHaveSetForUploadLinkErr" }
|
||||
| {
|
||||
__typename?: "NoInitForChunkedUploadErr";
|
||||
segmentType: StreamSegmentTypeEnum;
|
||||
}
|
||||
| { __typename?: "ProcessingFailedErr" }
|
||||
| { __typename?: "SegmentAlreadyUploadedErr" }
|
||||
| { __typename?: "TooManyProfileImageUploadsErr" };
|
||||
}
|
||||
| {
|
||||
__typename?: "UploadLink";
|
||||
uploadUrl: string;
|
||||
headers: Array<{
|
||||
__typename?: "Header";
|
||||
@@ -2290,7 +2050,6 @@ export type GetHlsInitUploadLinkMutation = {
|
||||
value: string;
|
||||
} | null>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
export type SetSegmentDurationMutationVariables = Exact<{
|
||||
@@ -2451,7 +2210,6 @@ export const GetDeployedConfigDocument = gql`
|
||||
devMode
|
||||
environment
|
||||
firebase
|
||||
minimumAllowedAppVersion
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -2546,7 +2304,6 @@ export const GetFeedDocument = gql`
|
||||
stream {
|
||||
isCompleted
|
||||
}
|
||||
tableSize
|
||||
tags {
|
||||
tagClasses {
|
||||
name
|
||||
@@ -2706,7 +2463,7 @@ export type GetVideoMakePercentageIntervalsQueryResult = Apollo.QueryResult<
|
||||
export const GetShotsDocument = gql`
|
||||
query GetShots(
|
||||
$filterInput: FilterInput!
|
||||
$shotsPagination: GetShotsPagination
|
||||
$shotsPagination: GetShotsPagination = null
|
||||
$limit: Int
|
||||
$includeCreatedAt: Boolean! = false
|
||||
$includeUpdatedAt: Boolean! = false
|
||||
@@ -2733,14 +2490,6 @@ export const GetShotsDocument = gql`
|
||||
id
|
||||
}
|
||||
falsePositiveScore
|
||||
video {
|
||||
stream {
|
||||
resolution {
|
||||
width
|
||||
height
|
||||
}
|
||||
}
|
||||
}
|
||||
createdAt @include(if: $includeCreatedAt)
|
||||
updatedAt @include(if: $includeUpdatedAt)
|
||||
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
||||
@@ -2908,23 +2657,12 @@ export type GetShotAnnotationTypesQueryResult = Apollo.QueryResult<
|
||||
export const GetProfileImageUploadLinkDocument = gql`
|
||||
mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
||||
getProfileImageUploadLink(fileExt: $fileExt) {
|
||||
value {
|
||||
... on UploadLink {
|
||||
uploadUrl
|
||||
headers {
|
||||
key
|
||||
value
|
||||
}
|
||||
}
|
||||
... on GetProfileUploadLinkErrors {
|
||||
error {
|
||||
... on TooManyProfileImageUploadsErr {
|
||||
linksRequested
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
export type GetProfileImageUploadLinkMutationFn = Apollo.MutationFunction<
|
||||
@@ -3396,7 +3134,6 @@ export const GetVideoUpdatePageDetailsDocument = gql`
|
||||
totalShots
|
||||
makePercentage
|
||||
elapsedTime
|
||||
tableSize
|
||||
tags {
|
||||
tagClasses {
|
||||
name
|
||||
@@ -3536,7 +3273,6 @@ export const GetVideoDetailsDocument = gql`
|
||||
totalShotsMade
|
||||
createdAt
|
||||
updatedAt
|
||||
tableSize
|
||||
owner {
|
||||
id
|
||||
firebaseUid
|
||||
@@ -3622,10 +3358,11 @@ export const GetVideosDocument = gql`
|
||||
query GetVideos($videoIds: [Int!]!) {
|
||||
getVideos(videoIds: $videoIds) {
|
||||
id
|
||||
framesPerSecond
|
||||
playlist {
|
||||
segmentDurations
|
||||
}
|
||||
stream {
|
||||
id
|
||||
streamSegmentType
|
||||
segments {
|
||||
uploaded
|
||||
valid
|
||||
@@ -3634,9 +3371,6 @@ export const GetVideosDocument = gql`
|
||||
framesPerSecond
|
||||
}
|
||||
}
|
||||
playlist {
|
||||
segmentDurations
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -4188,38 +3922,12 @@ export type CreateUploadStreamMutationOptions = Apollo.BaseMutationOptions<
|
||||
export const GetUploadLinkDocument = gql`
|
||||
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
||||
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
|
||||
value {
|
||||
... on UploadLink {
|
||||
uploadUrl
|
||||
headers {
|
||||
key
|
||||
value
|
||||
}
|
||||
}
|
||||
... on GetUploadLinkErrors {
|
||||
error {
|
||||
... on MustHaveSetForUploadLinkErr {
|
||||
resolution
|
||||
framesPerSecond
|
||||
}
|
||||
... on SegmentAlreadyUploadedErr {
|
||||
segmentId
|
||||
}
|
||||
... on ProcessingFailedErr {
|
||||
processing {
|
||||
status
|
||||
errors {
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stream {
|
||||
uploadCompletionCursor
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
export type GetUploadLinkMutationFn = Apollo.MutationFunction<
|
||||
@@ -4269,23 +3977,12 @@ export type GetUploadLinkMutationOptions = Apollo.BaseMutationOptions<
|
||||
export const GetHlsInitUploadLinkDocument = gql`
|
||||
mutation GetHlsInitUploadLink($videoId: Int!) {
|
||||
getHlsInitUploadLink(videoId: $videoId) {
|
||||
value {
|
||||
... on UploadLink {
|
||||
uploadUrl
|
||||
headers {
|
||||
key
|
||||
value
|
||||
}
|
||||
}
|
||||
... on GetUploadLinkErrors {
|
||||
error {
|
||||
... on NoInitForChunkedUploadErr {
|
||||
segmentType
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
export type GetHlsInitUploadLinkMutationFn = Apollo.MutationFunction<
|
||||
|
@@ -4,6 +4,5 @@ query getDeployedConfig {
|
||||
devMode
|
||||
environment
|
||||
firebase
|
||||
minimumAllowedAppVersion
|
||||
}
|
||||
}
|
||||
|
@@ -23,7 +23,6 @@ query GetFeed(
|
||||
stream {
|
||||
isCompleted
|
||||
}
|
||||
tableSize
|
||||
tags {
|
||||
tagClasses {
|
||||
name
|
||||
|
@@ -1,6 +1,6 @@
|
||||
query GetShots(
|
||||
$filterInput: FilterInput!
|
||||
$shotsPagination: GetShotsPagination
|
||||
$shotsPagination: GetShotsPagination = null
|
||||
$limit: Int
|
||||
$includeCreatedAt: Boolean! = false
|
||||
$includeUpdatedAt: Boolean! = false
|
||||
@@ -27,14 +27,6 @@ query GetShots(
|
||||
id
|
||||
}
|
||||
falsePositiveScore
|
||||
video {
|
||||
stream {
|
||||
resolution {
|
||||
width
|
||||
height
|
||||
}
|
||||
}
|
||||
}
|
||||
createdAt @include(if: $includeCreatedAt)
|
||||
updatedAt @include(if: $includeUpdatedAt)
|
||||
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
||||
|
@@ -1,22 +1,11 @@
|
||||
mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
||||
getProfileImageUploadLink(fileExt: $fileExt) {
|
||||
value {
|
||||
... on UploadLink {
|
||||
uploadUrl
|
||||
headers {
|
||||
key
|
||||
value
|
||||
}
|
||||
}
|
||||
... on GetProfileUploadLinkErrors {
|
||||
error {
|
||||
... on TooManyProfileImageUploadsErr {
|
||||
linksRequested
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mutation editProfileImageUri($profileImageUri: String!) {
|
||||
|
@@ -70,7 +70,6 @@ query GetVideoUpdatePageDetails($videoId: Int!) {
|
||||
totalShots
|
||||
makePercentage
|
||||
elapsedTime
|
||||
tableSize
|
||||
tags {
|
||||
tagClasses {
|
||||
name
|
||||
@@ -99,7 +98,6 @@ query GetVideoDetails($videoId: Int!) {
|
||||
totalShotsMade
|
||||
createdAt
|
||||
updatedAt
|
||||
tableSize
|
||||
owner {
|
||||
id
|
||||
firebaseUid
|
||||
@@ -118,10 +116,11 @@ query GetVideoDetails($videoId: Int!) {
|
||||
query GetVideos($videoIds: [Int!]!) {
|
||||
getVideos(videoIds: $videoIds) {
|
||||
id
|
||||
framesPerSecond
|
||||
playlist {
|
||||
segmentDurations
|
||||
}
|
||||
stream {
|
||||
id
|
||||
streamSegmentType
|
||||
segments {
|
||||
uploaded
|
||||
valid
|
||||
@@ -130,9 +129,6 @@ query GetVideos($videoIds: [Int!]!) {
|
||||
framesPerSecond
|
||||
}
|
||||
}
|
||||
playlist {
|
||||
segmentDurations
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -6,59 +6,22 @@ mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
||||
|
||||
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
||||
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
|
||||
value {
|
||||
... on UploadLink {
|
||||
uploadUrl
|
||||
headers {
|
||||
key
|
||||
value
|
||||
}
|
||||
}
|
||||
... on GetUploadLinkErrors {
|
||||
error {
|
||||
... on MustHaveSetForUploadLinkErr {
|
||||
resolution
|
||||
framesPerSecond
|
||||
}
|
||||
... on SegmentAlreadyUploadedErr {
|
||||
segmentId
|
||||
}
|
||||
... on ProcessingFailedErr {
|
||||
processing {
|
||||
status
|
||||
errors {
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stream {
|
||||
uploadCompletionCursor
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mutation GetHlsInitUploadLink($videoId: Int!) {
|
||||
getHlsInitUploadLink(videoId: $videoId) {
|
||||
value {
|
||||
... on UploadLink {
|
||||
uploadUrl
|
||||
headers {
|
||||
key
|
||||
value
|
||||
}
|
||||
}
|
||||
... on GetUploadLinkErrors {
|
||||
error {
|
||||
... on NoInitForChunkedUploadErr {
|
||||
segmentType
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mutation SetSegmentDuration(
|
||||
|
104
src/schema.gql
104
src/schema.gql
@@ -14,7 +14,7 @@ type Query {
|
||||
shotsPagination: GetShotsPagination = null
|
||||
limit: Int! = 500
|
||||
): [ShotGQL!]!
|
||||
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
||||
getShotAnnotationTypes: [ShotAnnotationTypeGQL!]!
|
||||
getUser(userId: Int!): UserGQL
|
||||
getLoggedInUser: UserGQL
|
||||
getUsernames(
|
||||
@@ -96,7 +96,6 @@ input FilterInput @oneOf {
|
||||
isLeftMiss: [Boolean!]
|
||||
isRightMiss: [Boolean!]
|
||||
isDirect: [Boolean!]
|
||||
tableSize: RangeFilter
|
||||
bankAngle: RangeFilter
|
||||
bankDistance: RangeFilter
|
||||
kickAngle: RangeFilter
|
||||
@@ -110,10 +109,7 @@ input FilterInput @oneOf {
|
||||
input RangeFilter {
|
||||
lessThan: Float = null
|
||||
greaterThanEqualTo: Float = null
|
||||
greaterThan: Float = null
|
||||
includeOnNone: Boolean! = false
|
||||
lessThanInclusive: Boolean! = false
|
||||
greaterThanInclusive: Boolean! = true
|
||||
}
|
||||
|
||||
enum PocketEnum {
|
||||
@@ -156,7 +152,6 @@ type DeployedConfigGQL {
|
||||
firebase: Boolean!
|
||||
devMode: Boolean!
|
||||
environment: String!
|
||||
minimumAllowedAppVersion: String!
|
||||
}
|
||||
|
||||
type MakePercentageIntervalGQL {
|
||||
@@ -231,7 +226,6 @@ type ShotAnnotationGQL {
|
||||
type: ShotAnnotationTypeGQL!
|
||||
creator: UserGQL!
|
||||
notes: String!
|
||||
errorDefault: Boolean!
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
}
|
||||
@@ -258,7 +252,6 @@ type VideoGQL {
|
||||
endTime: DateTime
|
||||
elapsedTime: Float
|
||||
framesPerSecond: Float!
|
||||
tableSize: Float!
|
||||
stream: UploadStreamGQL
|
||||
playlist: HLSPlaylistGQL
|
||||
tags: [VideoTag!]!
|
||||
@@ -435,14 +428,8 @@ scalar JSON
|
||||
type Mutation {
|
||||
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
||||
setLoggerLevel(path: String!, level: String!): Boolean!
|
||||
addAnnotationToShot(
|
||||
shotId: Int!
|
||||
annotationName: String!
|
||||
notes: String = null
|
||||
): AddShotAnnotationReturn!
|
||||
getProfileImageUploadLink(
|
||||
fileExt: String = ".png"
|
||||
): GetProfileUploadLinkReturn!
|
||||
addAnnotationToShot(shotId: Int!, annotationName: String!): Boolean!
|
||||
getProfileImageUploadLink(fileExt: String = ".png"): GetUploadLinkReturn!
|
||||
editProfileImageUri(profileImageUri: String!): UserGQL!
|
||||
createUploadStream(
|
||||
videoMetadata: VideoMetadataInput!
|
||||
@@ -464,46 +451,10 @@ input CreateBucketSetInput {
|
||||
buckets: [BucketInputGQL!]!
|
||||
}
|
||||
|
||||
type AddShotAnnotationReturn {
|
||||
value: SuccessfulAddAddShotAnnotationErrors!
|
||||
}
|
||||
|
||||
union SuccessfulAddAddShotAnnotationErrors =
|
||||
SuccessfulAdd
|
||||
| AddShotAnnotationErrors
|
||||
|
||||
type SuccessfulAdd {
|
||||
value: Boolean!
|
||||
}
|
||||
|
||||
type AddShotAnnotationErrors {
|
||||
error: DoesNotOwnShotErrOtherErrorNeedsNote!
|
||||
}
|
||||
|
||||
union DoesNotOwnShotErrOtherErrorNeedsNote =
|
||||
DoesNotOwnShotErr
|
||||
| OtherErrorNeedsNote
|
||||
|
||||
type DoesNotOwnShotErr {
|
||||
shotId: Int!
|
||||
msg: String
|
||||
}
|
||||
|
||||
type OtherErrorNeedsNote {
|
||||
msg: String
|
||||
}
|
||||
|
||||
type GetProfileUploadLinkReturn {
|
||||
value: UploadLinkGetProfileUploadLinkErrors!
|
||||
}
|
||||
|
||||
union UploadLinkGetProfileUploadLinkErrors =
|
||||
UploadLink
|
||||
| GetProfileUploadLinkErrors
|
||||
|
||||
type UploadLink {
|
||||
type GetUploadLinkReturn {
|
||||
uploadUrl: String!
|
||||
headers: [Header]!
|
||||
uploadCompletionCursor: Int
|
||||
}
|
||||
|
||||
type Header {
|
||||
@@ -511,14 +462,6 @@ type Header {
|
||||
value: String!
|
||||
}
|
||||
|
||||
type GetProfileUploadLinkErrors {
|
||||
error: TooManyProfileImageUploadsErr!
|
||||
}
|
||||
|
||||
type TooManyProfileImageUploadsErr {
|
||||
linksRequested: Int!
|
||||
}
|
||||
|
||||
type CreateUploadStreamReturn {
|
||||
videoId: Int!
|
||||
}
|
||||
@@ -528,7 +471,7 @@ input VideoMetadataInput {
|
||||
startTime: DateTime = null
|
||||
endTime: DateTime = null
|
||||
gameType: String = null
|
||||
tableSize: Float = null
|
||||
tableSize: String = null
|
||||
uploadStreamMetadataInput: UploadStreamMetadataInput = null
|
||||
lastIntendedSegmentBound: Int = null
|
||||
streamSegmentType: StreamSegmentTypeEnum = null
|
||||
@@ -559,38 +502,3 @@ input VideoResolution {
|
||||
width: Int!
|
||||
height: Int!
|
||||
}
|
||||
|
||||
type GetUploadLinkReturn {
|
||||
value: UploadLinkGetUploadLinkErrors!
|
||||
stream: UploadStreamGQL
|
||||
}
|
||||
|
||||
union UploadLinkGetUploadLinkErrors = UploadLink | GetUploadLinkErrors
|
||||
|
||||
type GetUploadLinkErrors {
|
||||
error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErr!
|
||||
}
|
||||
|
||||
union MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErr =
|
||||
MustHaveSetForUploadLinkErr
|
||||
| SegmentAlreadyUploadedErr
|
||||
| ProcessingFailedErr
|
||||
| NoInitForChunkedUploadErr
|
||||
| TooManyProfileImageUploadsErr
|
||||
|
||||
type MustHaveSetForUploadLinkErr {
|
||||
resolution: Boolean
|
||||
framesPerSecond: Boolean
|
||||
}
|
||||
|
||||
type SegmentAlreadyUploadedErr {
|
||||
segmentId: Int!
|
||||
}
|
||||
|
||||
type ProcessingFailedErr {
|
||||
processing: VideoProcessingGQL!
|
||||
}
|
||||
|
||||
type NoInitForChunkedUploadErr {
|
||||
segmentType: StreamSegmentTypeEnum!
|
||||
}
|
||||
|
Reference in New Issue
Block a user