Compare commits
32 Commits
kat/add-st
...
b60cbe3854
Author | SHA1 | Date | |
---|---|---|---|
b60cbe3854 | |||
e0b150aa2a | |||
2bdfcb994e | |||
d5c6014548 | |||
de6fcacfd0 | |||
|
993f62b6cf | ||
aabd74d7d7 | |||
15b307a88f | |||
72b338bfc2 | |||
267486774c | |||
b94a568ef1 | |||
b773ccfc8f | |||
fd5c28e073 | |||
4c232829b6 | |||
ddf1036009 | |||
9b3e5c23a0 | |||
a7eae9d46b | |||
8c3e9d6273 | |||
f306cc6c16 | |||
643cdb29e3 | |||
89287a0100 | |||
f9b02f65e0 | |||
41169e2848 | |||
ba36bc709c | |||
4005416233 | |||
db4a6315cd | |||
172df69340 | |||
a030a0ef16 | |||
7a6cc2739f | |||
41c9701e18 | |||
16e79ed608 | |||
f401e1879b |
547
src/index.tsx
547
src/index.tsx
@@ -34,6 +34,16 @@ 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>;
|
||||
@@ -114,6 +124,7 @@ export type CueObjectFeaturesGql = {
|
||||
cueObjectAngle?: Maybe<Scalars["Float"]["output"]>;
|
||||
cueObjectDistance?: Maybe<Scalars["Float"]["output"]>;
|
||||
shotDirection?: Maybe<ShotDirectionEnum>;
|
||||
spinType?: Maybe<SpinTypeEnum>;
|
||||
};
|
||||
|
||||
export type DeployedConfigGql = {
|
||||
@@ -131,6 +142,16 @@ 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"];
|
||||
};
|
||||
@@ -929,7 +950,7 @@ export type FilterInput =
|
||||
notFilter?: never;
|
||||
orFilters?: never;
|
||||
shotDirection?: never;
|
||||
spinType: Array<Scalars["String"]["input"]>;
|
||||
spinType: Array<SpinTypeEnum>;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketDistance?: never;
|
||||
@@ -1097,14 +1118,30 @@ export type FilterInput =
|
||||
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 GetShotsResult = {
|
||||
__typename?: "GetShotsResult";
|
||||
count?: Maybe<Scalars["Int"]["output"]>;
|
||||
shots: Array<ShotGql>;
|
||||
};
|
||||
|
||||
export type GetUploadLinkErrors = {
|
||||
__typename?: "GetUploadLinkErrors";
|
||||
error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErr;
|
||||
error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr;
|
||||
};
|
||||
|
||||
export type GetUploadLinkReturn = {
|
||||
@@ -1141,6 +1178,11 @@ export enum InitPlaylistUploadStatusEnum {
|
||||
Uploaded = "UPLOADED",
|
||||
}
|
||||
|
||||
export type InitUploadAlreadyCompletedErr = {
|
||||
__typename?: "InitUploadAlreadyCompletedErr";
|
||||
segmentType: StreamSegmentTypeEnum;
|
||||
};
|
||||
|
||||
export type IntPoint2D = {
|
||||
__typename?: "IntPoint2D";
|
||||
x: Scalars["Int"]["output"];
|
||||
@@ -1159,24 +1201,26 @@ export type MustHaveSetForUploadLinkErr = {
|
||||
resolution?: Maybe<Scalars["Boolean"]["output"]>;
|
||||
};
|
||||
|
||||
export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErr =
|
||||
export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr =
|
||||
|
||||
| InitUploadAlreadyCompletedErr
|
||||
| MustHaveSetForUploadLinkErr
|
||||
| NoInitForChunkedUploadErr
|
||||
| ProcessingFailedErr
|
||||
| SegmentAlreadyUploadedErr
|
||||
| TooManyInitUploadsErr
|
||||
| TooManyProfileImageUploadsErr;
|
||||
|
||||
export type Mutation = {
|
||||
__typename?: "Mutation";
|
||||
addAnnotationToShot: Scalars["Boolean"]["output"];
|
||||
addAnnotationToShot: AddShotAnnotationReturn;
|
||||
createBucketSet: BucketSetGql;
|
||||
createUploadStream: CreateUploadStreamReturn;
|
||||
deleteVideo: Scalars["Boolean"]["output"];
|
||||
editProfileImageUri: UserGql;
|
||||
editUploadStream: Scalars["Boolean"]["output"];
|
||||
getHlsInitUploadLink: GetUploadLinkReturn;
|
||||
getProfileImageUploadLink: GetUploadLinkReturn;
|
||||
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
||||
getUploadLink: GetUploadLinkReturn;
|
||||
setLoggerLevel: Scalars["Boolean"]["output"];
|
||||
setSegmentDuration: Scalars["Boolean"]["output"];
|
||||
@@ -1184,6 +1228,7 @@ export type Mutation = {
|
||||
|
||||
export type MutationAddAnnotationToShotArgs = {
|
||||
annotationName: Scalars["String"]["input"];
|
||||
notes?: InputMaybe<Scalars["String"]["input"]>;
|
||||
shotId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
@@ -1237,6 +1282,11 @@ export type NoInitForChunkedUploadErr = {
|
||||
segmentType: StreamSegmentTypeEnum;
|
||||
};
|
||||
|
||||
export type OtherErrorNeedsNote = {
|
||||
__typename?: "OtherErrorNeedsNote";
|
||||
msg?: Maybe<Scalars["String"]["output"]>;
|
||||
};
|
||||
|
||||
export type PageInfoGql = {
|
||||
__typename?: "PageInfoGQL";
|
||||
endCursor?: Maybe<Scalars["String"]["output"]>;
|
||||
@@ -1291,6 +1341,7 @@ export type Query = {
|
||||
getPlayTime: UserPlayTimeGql;
|
||||
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
|
||||
getShots: Array<ShotGql>;
|
||||
getShotsWithMetadata: GetShotsResult;
|
||||
getUser?: Maybe<UserGql>;
|
||||
getUserTags: Array<TagGql>;
|
||||
getUserVideos: VideoHistoryGql;
|
||||
@@ -1313,12 +1364,22 @@ export type QueryGetPlayTimeArgs = {
|
||||
userId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type QueryGetShotAnnotationTypesArgs = {
|
||||
errorTypes?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||
};
|
||||
|
||||
export type QueryGetShotsArgs = {
|
||||
filterInput: FilterInput;
|
||||
limit?: Scalars["Int"]["input"];
|
||||
shotsPagination?: InputMaybe<GetShotsPagination>;
|
||||
};
|
||||
|
||||
export type QueryGetShotsWithMetadataArgs = {
|
||||
filterInput: FilterInput;
|
||||
limit?: Scalars["Int"]["input"];
|
||||
shotsPagination?: InputMaybe<GetShotsPagination>;
|
||||
};
|
||||
|
||||
export type QueryGetUserArgs = {
|
||||
userId: Scalars["Int"]["input"];
|
||||
};
|
||||
@@ -1377,6 +1438,7 @@ 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;
|
||||
@@ -1417,6 +1479,13 @@ export type ShotGql = {
|
||||
videoId: Scalars["Int"]["output"];
|
||||
};
|
||||
|
||||
export enum SpinTypeEnum {
|
||||
Center = "CENTER",
|
||||
Draw = "DRAW",
|
||||
Follow = "FOLLOW",
|
||||
Unknown = "UNKNOWN",
|
||||
}
|
||||
|
||||
export type StreamErrorGql = {
|
||||
__typename?: "StreamErrorGQL";
|
||||
message: Scalars["String"]["output"];
|
||||
@@ -1427,6 +1496,15 @@ 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"]>;
|
||||
@@ -1441,6 +1519,11 @@ export type TargetMetricsGql = {
|
||||
makePercentage?: Maybe<Scalars["Float"]["output"]>;
|
||||
};
|
||||
|
||||
export type TooManyInitUploadsErr = {
|
||||
__typename?: "TooManyInitUploadsErr";
|
||||
linksRequested: Scalars["Int"]["output"];
|
||||
};
|
||||
|
||||
export type TooManyProfileImageUploadsErr = {
|
||||
__typename?: "TooManyProfileImageUploadsErr";
|
||||
linksRequested: Scalars["Int"]["output"];
|
||||
@@ -1452,6 +1535,10 @@ export type UploadLink = {
|
||||
uploadUrl: Scalars["String"]["output"];
|
||||
};
|
||||
|
||||
export type UploadLinkGetProfileUploadLinkErrors =
|
||||
| GetProfileUploadLinkErrors
|
||||
| UploadLink;
|
||||
|
||||
export type UploadLinkGetUploadLinkErrors = GetUploadLinkErrors | UploadLink;
|
||||
|
||||
export type UploadSegmentGql = {
|
||||
@@ -1522,6 +1609,7 @@ export type VideoGql = {
|
||||
__typename?: "VideoGQL";
|
||||
averageTimeBetweenShots?: Maybe<Scalars["Float"]["output"]>;
|
||||
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
currentHomography?: Maybe<HomographyInfoGql>;
|
||||
currentProcessing?: Maybe<VideoProcessingGql>;
|
||||
elapsedTime?: Maybe<Scalars["Float"]["output"]>;
|
||||
endTime?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
@@ -1723,6 +1811,7 @@ export type GetShotsQueryVariables = Exact<{
|
||||
includeCueObjectDistance?: Scalars["Boolean"]["input"];
|
||||
includeCueObjectAngle?: Scalars["Boolean"]["input"];
|
||||
includeCueBallSpeed?: Scalars["Boolean"]["input"];
|
||||
includeSpinType?: Scalars["Boolean"]["input"];
|
||||
includeShotDirection?: Scalars["Boolean"]["input"];
|
||||
includeTargetPocketDistance?: Scalars["Boolean"]["input"];
|
||||
includeMake?: Scalars["Boolean"]["input"];
|
||||
@@ -1741,12 +1830,24 @@ 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;
|
||||
cueObjectAngle?: number | null;
|
||||
cueBallSpeed?: number | null;
|
||||
shotDirection?: ShotDirectionEnum | null;
|
||||
spinType?: SpinTypeEnum | null;
|
||||
} | null;
|
||||
pocketingIntentionFeatures?: {
|
||||
__typename?: "PocketingIntentionFeaturesGQL";
|
||||
@@ -1757,6 +1858,25 @@ export type GetShotsQuery = {
|
||||
}>;
|
||||
};
|
||||
|
||||
export type GetSerializedShotPathsQueryVariables = Exact<{
|
||||
filterInput: FilterInput;
|
||||
}>;
|
||||
|
||||
export type GetSerializedShotPathsQuery = {
|
||||
__typename?: "Query";
|
||||
getShots: Array<{
|
||||
__typename?: "ShotGQL";
|
||||
id: number;
|
||||
videoId: number;
|
||||
startFrame: number;
|
||||
endFrame: number;
|
||||
serializedShotPaths?: {
|
||||
__typename?: "SerializedShotPathsGQL";
|
||||
b64EncodedBuffer?: string | null;
|
||||
} | null;
|
||||
}>;
|
||||
};
|
||||
|
||||
export type GetShotAnnotationTypesQueryVariables = Exact<{
|
||||
[key: string]: never;
|
||||
}>;
|
||||
@@ -1770,6 +1890,68 @@ export type GetShotAnnotationTypesQuery = {
|
||||
}>;
|
||||
};
|
||||
|
||||
export type GetShotsWithMetadataQueryVariables = Exact<{
|
||||
filterInput: FilterInput;
|
||||
shotsPagination?: InputMaybe<GetShotsPagination>;
|
||||
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
includeCreatedAt?: Scalars["Boolean"]["input"];
|
||||
includeUpdatedAt?: Scalars["Boolean"]["input"];
|
||||
includeCueObjectFeatures?: Scalars["Boolean"]["input"];
|
||||
includePocketingIntentionFeatures?: Scalars["Boolean"]["input"];
|
||||
includeCueObjectDistance?: Scalars["Boolean"]["input"];
|
||||
includeCueObjectAngle?: Scalars["Boolean"]["input"];
|
||||
includeCueBallSpeed?: Scalars["Boolean"]["input"];
|
||||
includeSpinType?: Scalars["Boolean"]["input"];
|
||||
includeShotDirection?: Scalars["Boolean"]["input"];
|
||||
includeTargetPocketDistance?: Scalars["Boolean"]["input"];
|
||||
includeMake?: Scalars["Boolean"]["input"];
|
||||
includeIntendedPocketType?: Scalars["Boolean"]["input"];
|
||||
}>;
|
||||
|
||||
export type GetShotsWithMetadataQuery = {
|
||||
__typename?: "Query";
|
||||
getShotsWithMetadata: {
|
||||
__typename?: "GetShotsResult";
|
||||
count?: number | null;
|
||||
shots: Array<{
|
||||
__typename?: "ShotGQL";
|
||||
id: number;
|
||||
videoId: number;
|
||||
startFrame: number;
|
||||
endFrame: number;
|
||||
falsePositiveScore?: number | null;
|
||||
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;
|
||||
cueObjectAngle?: number | null;
|
||||
cueBallSpeed?: number | null;
|
||||
shotDirection?: ShotDirectionEnum | null;
|
||||
spinType?: SpinTypeEnum | null;
|
||||
} | null;
|
||||
pocketingIntentionFeatures?: {
|
||||
__typename?: "PocketingIntentionFeaturesGQL";
|
||||
targetPocketDistance?: number | null;
|
||||
make?: boolean | null;
|
||||
intendedPocketType?: PocketEnum | null;
|
||||
} | null;
|
||||
}>;
|
||||
};
|
||||
};
|
||||
|
||||
export type GetProfileImageUploadLinkMutationVariables = Exact<{
|
||||
fileExt?: InputMaybe<Scalars["String"]["input"]>;
|
||||
}>;
|
||||
@@ -1777,19 +1959,14 @@ export type GetProfileImageUploadLinkMutationVariables = Exact<{
|
||||
export type GetProfileImageUploadLinkMutation = {
|
||||
__typename?: "Mutation";
|
||||
getProfileImageUploadLink: {
|
||||
__typename?: "GetUploadLinkReturn";
|
||||
__typename?: "GetProfileUploadLinkReturn";
|
||||
value:
|
||||
| {
|
||||
__typename?: "GetUploadLinkErrors";
|
||||
error:
|
||||
| { __typename?: "MustHaveSetForUploadLinkErr" }
|
||||
| { __typename?: "NoInitForChunkedUploadErr" }
|
||||
| { __typename?: "ProcessingFailedErr" }
|
||||
| { __typename?: "SegmentAlreadyUploadedErr" }
|
||||
| {
|
||||
__typename?: "TooManyProfileImageUploadsErr";
|
||||
linksRequested: number;
|
||||
};
|
||||
__typename?: "GetProfileUploadLinkErrors";
|
||||
error: {
|
||||
__typename?: "TooManyProfileImageUploadsErr";
|
||||
linksRequested: number;
|
||||
};
|
||||
}
|
||||
| {
|
||||
__typename?: "UploadLink";
|
||||
@@ -1857,6 +2034,13 @@ export type GetUsernamesQuery = {
|
||||
getUsernames: Array<string>;
|
||||
};
|
||||
|
||||
export type GetUserTagsQueryVariables = Exact<{ [key: string]: never }>;
|
||||
|
||||
export type GetUserTagsQuery = {
|
||||
__typename?: "Query";
|
||||
getUserTags: Array<{ __typename?: "TagGQL"; id: number; name: string }>;
|
||||
};
|
||||
|
||||
export type GetStreamMonitoringDetailsQueryVariables = Exact<{
|
||||
videoId: Scalars["Int"]["input"];
|
||||
debuggingJson?: InputMaybe<Scalars["JSON"]["input"]>;
|
||||
@@ -1870,7 +2054,7 @@ export type GetStreamMonitoringDetailsQuery = {
|
||||
totalShots: number;
|
||||
makePercentage: number;
|
||||
elapsedTime?: number | null;
|
||||
homographyHistory: Array<{
|
||||
currentHomography?: {
|
||||
__typename?: "HomographyInfoGQL";
|
||||
crop: {
|
||||
__typename?: "BoundingBoxGQL";
|
||||
@@ -1895,7 +2079,7 @@ export type GetStreamMonitoringDetailsQuery = {
|
||||
bottomSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
bottomRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
};
|
||||
}>;
|
||||
} | null;
|
||||
stream?: {
|
||||
__typename?: "UploadStreamGQL";
|
||||
linksRequested: number;
|
||||
@@ -1995,6 +2179,7 @@ export type GetVideosQuery = {
|
||||
getVideos: Array<{
|
||||
__typename?: "VideoGQL";
|
||||
id: number;
|
||||
framesPerSecond: number;
|
||||
stream?: {
|
||||
__typename?: "UploadStreamGQL";
|
||||
id: string;
|
||||
@@ -2163,6 +2348,7 @@ export type GetUploadLinkMutation = {
|
||||
| {
|
||||
__typename?: "GetUploadLinkErrors";
|
||||
error:
|
||||
| { __typename?: "InitUploadAlreadyCompletedErr" }
|
||||
| {
|
||||
__typename?: "MustHaveSetForUploadLinkErr";
|
||||
resolution?: boolean | null;
|
||||
@@ -2181,6 +2367,7 @@ export type GetUploadLinkMutation = {
|
||||
};
|
||||
}
|
||||
| { __typename?: "SegmentAlreadyUploadedErr"; segmentId: number }
|
||||
| { __typename?: "TooManyInitUploadsErr" }
|
||||
| { __typename?: "TooManyProfileImageUploadsErr" };
|
||||
}
|
||||
| {
|
||||
@@ -2192,6 +2379,10 @@ export type GetUploadLinkMutation = {
|
||||
value: string;
|
||||
} | null>;
|
||||
};
|
||||
stream?: {
|
||||
__typename?: "UploadStreamGQL";
|
||||
uploadCompletionCursor: number;
|
||||
} | null;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -2207,6 +2398,10 @@ export type GetHlsInitUploadLinkMutation = {
|
||||
| {
|
||||
__typename?: "GetUploadLinkErrors";
|
||||
error:
|
||||
| {
|
||||
__typename?: "InitUploadAlreadyCompletedErr";
|
||||
segmentType: StreamSegmentTypeEnum;
|
||||
}
|
||||
| { __typename?: "MustHaveSetForUploadLinkErr" }
|
||||
| {
|
||||
__typename?: "NoInitForChunkedUploadErr";
|
||||
@@ -2214,6 +2409,7 @@ export type GetHlsInitUploadLinkMutation = {
|
||||
}
|
||||
| { __typename?: "ProcessingFailedErr" }
|
||||
| { __typename?: "SegmentAlreadyUploadedErr" }
|
||||
| { __typename?: "TooManyInitUploadsErr"; linksRequested: number }
|
||||
| { __typename?: "TooManyProfileImageUploadsErr" };
|
||||
}
|
||||
| {
|
||||
@@ -2650,6 +2846,7 @@ export const GetShotsDocument = gql`
|
||||
$includeCueObjectDistance: Boolean! = false
|
||||
$includeCueObjectAngle: Boolean! = false
|
||||
$includeCueBallSpeed: Boolean! = false
|
||||
$includeSpinType: Boolean! = false
|
||||
$includeShotDirection: Boolean! = false
|
||||
$includeTargetPocketDistance: Boolean! = false
|
||||
$includeMake: Boolean! = false
|
||||
@@ -2668,6 +2865,14 @@ export const GetShotsDocument = gql`
|
||||
id
|
||||
}
|
||||
falsePositiveScore
|
||||
video {
|
||||
stream {
|
||||
resolution {
|
||||
width
|
||||
height
|
||||
}
|
||||
}
|
||||
}
|
||||
createdAt @include(if: $includeCreatedAt)
|
||||
updatedAt @include(if: $includeUpdatedAt)
|
||||
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
||||
@@ -2675,6 +2880,7 @@ export const GetShotsDocument = gql`
|
||||
cueObjectAngle @include(if: $includeCueObjectAngle)
|
||||
cueBallSpeed @include(if: $includeCueBallSpeed)
|
||||
shotDirection @include(if: $includeShotDirection)
|
||||
spinType @include(if: $includeSpinType)
|
||||
}
|
||||
pocketingIntentionFeatures
|
||||
@include(if: $includePocketingIntentionFeatures) {
|
||||
@@ -2708,6 +2914,7 @@ export const GetShotsDocument = gql`
|
||||
* includeCueObjectDistance: // value for 'includeCueObjectDistance'
|
||||
* includeCueObjectAngle: // value for 'includeCueObjectAngle'
|
||||
* includeCueBallSpeed: // value for 'includeCueBallSpeed'
|
||||
* includeSpinType: // value for 'includeSpinType'
|
||||
* includeShotDirection: // value for 'includeShotDirection'
|
||||
* includeTargetPocketDistance: // value for 'includeTargetPocketDistance'
|
||||
* includeMake: // value for 'includeMake'
|
||||
@@ -2759,6 +2966,85 @@ export type GetShotsQueryResult = Apollo.QueryResult<
|
||||
GetShotsQuery,
|
||||
GetShotsQueryVariables
|
||||
>;
|
||||
export const GetSerializedShotPathsDocument = gql`
|
||||
query GetSerializedShotPaths($filterInput: FilterInput!) {
|
||||
getShots(filterInput: $filterInput) {
|
||||
id
|
||||
videoId
|
||||
startFrame
|
||||
endFrame
|
||||
serializedShotPaths {
|
||||
b64EncodedBuffer
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
/**
|
||||
* __useGetSerializedShotPathsQuery__
|
||||
*
|
||||
* To run a query within a React component, call `useGetSerializedShotPathsQuery` and pass it any options that fit your needs.
|
||||
* When your component renders, `useGetSerializedShotPathsQuery` 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 } = useGetSerializedShotPathsQuery({
|
||||
* variables: {
|
||||
* filterInput: // value for 'filterInput'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useGetSerializedShotPathsQuery(
|
||||
baseOptions: Apollo.QueryHookOptions<
|
||||
GetSerializedShotPathsQuery,
|
||||
GetSerializedShotPathsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useQuery<
|
||||
GetSerializedShotPathsQuery,
|
||||
GetSerializedShotPathsQueryVariables
|
||||
>(GetSerializedShotPathsDocument, options);
|
||||
}
|
||||
export function useGetSerializedShotPathsLazyQuery(
|
||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||
GetSerializedShotPathsQuery,
|
||||
GetSerializedShotPathsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useLazyQuery<
|
||||
GetSerializedShotPathsQuery,
|
||||
GetSerializedShotPathsQueryVariables
|
||||
>(GetSerializedShotPathsDocument, options);
|
||||
}
|
||||
export function useGetSerializedShotPathsSuspenseQuery(
|
||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||
GetSerializedShotPathsQuery,
|
||||
GetSerializedShotPathsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useSuspenseQuery<
|
||||
GetSerializedShotPathsQuery,
|
||||
GetSerializedShotPathsQueryVariables
|
||||
>(GetSerializedShotPathsDocument, options);
|
||||
}
|
||||
export type GetSerializedShotPathsQueryHookResult = ReturnType<
|
||||
typeof useGetSerializedShotPathsQuery
|
||||
>;
|
||||
export type GetSerializedShotPathsLazyQueryHookResult = ReturnType<
|
||||
typeof useGetSerializedShotPathsLazyQuery
|
||||
>;
|
||||
export type GetSerializedShotPathsSuspenseQueryHookResult = ReturnType<
|
||||
typeof useGetSerializedShotPathsSuspenseQuery
|
||||
>;
|
||||
export type GetSerializedShotPathsQueryResult = Apollo.QueryResult<
|
||||
GetSerializedShotPathsQuery,
|
||||
GetSerializedShotPathsQueryVariables
|
||||
>;
|
||||
export const GetShotAnnotationTypesDocument = gql`
|
||||
query GetShotAnnotationTypes {
|
||||
getShotAnnotationTypes {
|
||||
@@ -2832,6 +3118,146 @@ export type GetShotAnnotationTypesQueryResult = Apollo.QueryResult<
|
||||
GetShotAnnotationTypesQuery,
|
||||
GetShotAnnotationTypesQueryVariables
|
||||
>;
|
||||
export const GetShotsWithMetadataDocument = gql`
|
||||
query GetShotsWithMetadata(
|
||||
$filterInput: FilterInput!
|
||||
$shotsPagination: GetShotsPagination
|
||||
$limit: Int
|
||||
$includeCreatedAt: Boolean! = false
|
||||
$includeUpdatedAt: Boolean! = false
|
||||
$includeCueObjectFeatures: Boolean! = false
|
||||
$includePocketingIntentionFeatures: Boolean! = false
|
||||
$includeCueObjectDistance: Boolean! = false
|
||||
$includeCueObjectAngle: Boolean! = false
|
||||
$includeCueBallSpeed: Boolean! = false
|
||||
$includeSpinType: Boolean! = false
|
||||
$includeShotDirection: Boolean! = false
|
||||
$includeTargetPocketDistance: Boolean! = false
|
||||
$includeMake: Boolean! = false
|
||||
$includeIntendedPocketType: Boolean! = false
|
||||
) {
|
||||
getShotsWithMetadata(
|
||||
filterInput: $filterInput
|
||||
shotsPagination: $shotsPagination
|
||||
limit: $limit
|
||||
) {
|
||||
count
|
||||
shots {
|
||||
id
|
||||
videoId
|
||||
startFrame
|
||||
endFrame
|
||||
user {
|
||||
id
|
||||
}
|
||||
falsePositiveScore
|
||||
video {
|
||||
stream {
|
||||
resolution {
|
||||
width
|
||||
height
|
||||
}
|
||||
}
|
||||
}
|
||||
createdAt @include(if: $includeCreatedAt)
|
||||
updatedAt @include(if: $includeUpdatedAt)
|
||||
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
||||
cueObjectDistance @include(if: $includeCueObjectDistance)
|
||||
cueObjectAngle @include(if: $includeCueObjectAngle)
|
||||
cueBallSpeed @include(if: $includeCueBallSpeed)
|
||||
shotDirection @include(if: $includeShotDirection)
|
||||
spinType @include(if: $includeSpinType)
|
||||
}
|
||||
pocketingIntentionFeatures
|
||||
@include(if: $includePocketingIntentionFeatures) {
|
||||
targetPocketDistance @include(if: $includeTargetPocketDistance)
|
||||
make @include(if: $includeMake)
|
||||
intendedPocketType @include(if: $includeIntendedPocketType)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
/**
|
||||
* __useGetShotsWithMetadataQuery__
|
||||
*
|
||||
* To run a query within a React component, call `useGetShotsWithMetadataQuery` and pass it any options that fit your needs.
|
||||
* When your component renders, `useGetShotsWithMetadataQuery` 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 } = useGetShotsWithMetadataQuery({
|
||||
* variables: {
|
||||
* filterInput: // value for 'filterInput'
|
||||
* shotsPagination: // value for 'shotsPagination'
|
||||
* limit: // value for 'limit'
|
||||
* includeCreatedAt: // value for 'includeCreatedAt'
|
||||
* includeUpdatedAt: // value for 'includeUpdatedAt'
|
||||
* includeCueObjectFeatures: // value for 'includeCueObjectFeatures'
|
||||
* includePocketingIntentionFeatures: // value for 'includePocketingIntentionFeatures'
|
||||
* includeCueObjectDistance: // value for 'includeCueObjectDistance'
|
||||
* includeCueObjectAngle: // value for 'includeCueObjectAngle'
|
||||
* includeCueBallSpeed: // value for 'includeCueBallSpeed'
|
||||
* includeSpinType: // value for 'includeSpinType'
|
||||
* includeShotDirection: // value for 'includeShotDirection'
|
||||
* includeTargetPocketDistance: // value for 'includeTargetPocketDistance'
|
||||
* includeMake: // value for 'includeMake'
|
||||
* includeIntendedPocketType: // value for 'includeIntendedPocketType'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useGetShotsWithMetadataQuery(
|
||||
baseOptions: Apollo.QueryHookOptions<
|
||||
GetShotsWithMetadataQuery,
|
||||
GetShotsWithMetadataQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useQuery<
|
||||
GetShotsWithMetadataQuery,
|
||||
GetShotsWithMetadataQueryVariables
|
||||
>(GetShotsWithMetadataDocument, options);
|
||||
}
|
||||
export function useGetShotsWithMetadataLazyQuery(
|
||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||
GetShotsWithMetadataQuery,
|
||||
GetShotsWithMetadataQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useLazyQuery<
|
||||
GetShotsWithMetadataQuery,
|
||||
GetShotsWithMetadataQueryVariables
|
||||
>(GetShotsWithMetadataDocument, options);
|
||||
}
|
||||
export function useGetShotsWithMetadataSuspenseQuery(
|
||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||
GetShotsWithMetadataQuery,
|
||||
GetShotsWithMetadataQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useSuspenseQuery<
|
||||
GetShotsWithMetadataQuery,
|
||||
GetShotsWithMetadataQueryVariables
|
||||
>(GetShotsWithMetadataDocument, options);
|
||||
}
|
||||
export type GetShotsWithMetadataQueryHookResult = ReturnType<
|
||||
typeof useGetShotsWithMetadataQuery
|
||||
>;
|
||||
export type GetShotsWithMetadataLazyQueryHookResult = ReturnType<
|
||||
typeof useGetShotsWithMetadataLazyQuery
|
||||
>;
|
||||
export type GetShotsWithMetadataSuspenseQueryHookResult = ReturnType<
|
||||
typeof useGetShotsWithMetadataSuspenseQuery
|
||||
>;
|
||||
export type GetShotsWithMetadataQueryResult = Apollo.QueryResult<
|
||||
GetShotsWithMetadataQuery,
|
||||
GetShotsWithMetadataQueryVariables
|
||||
>;
|
||||
export const GetProfileImageUploadLinkDocument = gql`
|
||||
mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
||||
getProfileImageUploadLink(fileExt: $fileExt) {
|
||||
@@ -2843,7 +3269,7 @@ export const GetProfileImageUploadLinkDocument = gql`
|
||||
value
|
||||
}
|
||||
}
|
||||
... on GetUploadLinkErrors {
|
||||
... on GetProfileUploadLinkErrors {
|
||||
error {
|
||||
... on TooManyProfileImageUploadsErr {
|
||||
linksRequested
|
||||
@@ -3182,6 +3608,77 @@ export type GetUsernamesQueryResult = Apollo.QueryResult<
|
||||
GetUsernamesQuery,
|
||||
GetUsernamesQueryVariables
|
||||
>;
|
||||
export const GetUserTagsDocument = gql`
|
||||
query GetUserTags {
|
||||
getUserTags {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
/**
|
||||
* __useGetUserTagsQuery__
|
||||
*
|
||||
* To run a query within a React component, call `useGetUserTagsQuery` and pass it any options that fit your needs.
|
||||
* When your component renders, `useGetUserTagsQuery` 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 } = useGetUserTagsQuery({
|
||||
* variables: {
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useGetUserTagsQuery(
|
||||
baseOptions?: Apollo.QueryHookOptions<
|
||||
GetUserTagsQuery,
|
||||
GetUserTagsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useQuery<GetUserTagsQuery, GetUserTagsQueryVariables>(
|
||||
GetUserTagsDocument,
|
||||
options,
|
||||
);
|
||||
}
|
||||
export function useGetUserTagsLazyQuery(
|
||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||
GetUserTagsQuery,
|
||||
GetUserTagsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useLazyQuery<GetUserTagsQuery, GetUserTagsQueryVariables>(
|
||||
GetUserTagsDocument,
|
||||
options,
|
||||
);
|
||||
}
|
||||
export function useGetUserTagsSuspenseQuery(
|
||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||
GetUserTagsQuery,
|
||||
GetUserTagsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useSuspenseQuery<GetUserTagsQuery, GetUserTagsQueryVariables>(
|
||||
GetUserTagsDocument,
|
||||
options,
|
||||
);
|
||||
}
|
||||
export type GetUserTagsQueryHookResult = ReturnType<typeof useGetUserTagsQuery>;
|
||||
export type GetUserTagsLazyQueryHookResult = ReturnType<
|
||||
typeof useGetUserTagsLazyQuery
|
||||
>;
|
||||
export type GetUserTagsSuspenseQueryHookResult = ReturnType<
|
||||
typeof useGetUserTagsSuspenseQuery
|
||||
>;
|
||||
export type GetUserTagsQueryResult = Apollo.QueryResult<
|
||||
GetUserTagsQuery,
|
||||
GetUserTagsQueryVariables
|
||||
>;
|
||||
export const GetStreamMonitoringDetailsDocument = gql`
|
||||
query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
||||
getVideo(videoId: $videoId, debuggingJson: $debuggingJson) {
|
||||
@@ -3189,7 +3686,7 @@ export const GetStreamMonitoringDetailsDocument = gql`
|
||||
totalShots
|
||||
makePercentage
|
||||
elapsedTime
|
||||
homographyHistory {
|
||||
currentHomography {
|
||||
crop {
|
||||
left
|
||||
top
|
||||
@@ -3549,6 +4046,7 @@ export const GetVideosDocument = gql`
|
||||
query GetVideos($videoIds: [Int!]!) {
|
||||
getVideos(videoIds: $videoIds) {
|
||||
id
|
||||
framesPerSecond
|
||||
stream {
|
||||
id
|
||||
streamSegmentType
|
||||
@@ -4142,6 +4640,9 @@ export const GetUploadLinkDocument = gql`
|
||||
}
|
||||
}
|
||||
}
|
||||
stream {
|
||||
uploadCompletionCursor
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -4205,6 +4706,12 @@ export const GetHlsInitUploadLinkDocument = gql`
|
||||
... on NoInitForChunkedUploadErr {
|
||||
segmentType
|
||||
}
|
||||
... on InitUploadAlreadyCompletedErr {
|
||||
segmentType
|
||||
}
|
||||
... on TooManyInitUploadsErr {
|
||||
linksRequested
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -9,6 +9,7 @@ query GetShots(
|
||||
$includeCueObjectDistance: Boolean! = false
|
||||
$includeCueObjectAngle: Boolean! = false
|
||||
$includeCueBallSpeed: Boolean! = false
|
||||
$includeSpinType: Boolean! = false
|
||||
$includeShotDirection: Boolean! = false
|
||||
$includeTargetPocketDistance: Boolean! = false
|
||||
$includeMake: Boolean! = false
|
||||
@@ -27,6 +28,14 @@ query GetShots(
|
||||
id
|
||||
}
|
||||
falsePositiveScore
|
||||
video {
|
||||
stream {
|
||||
resolution {
|
||||
width
|
||||
height
|
||||
}
|
||||
}
|
||||
}
|
||||
createdAt @include(if: $includeCreatedAt)
|
||||
updatedAt @include(if: $includeUpdatedAt)
|
||||
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
||||
@@ -34,6 +43,7 @@ query GetShots(
|
||||
cueObjectAngle @include(if: $includeCueObjectAngle)
|
||||
cueBallSpeed @include(if: $includeCueBallSpeed)
|
||||
shotDirection @include(if: $includeShotDirection)
|
||||
spinType @include(if: $includeSpinType)
|
||||
}
|
||||
pocketingIntentionFeatures
|
||||
@include(if: $includePocketingIntentionFeatures) {
|
||||
@@ -44,9 +54,80 @@ query GetShots(
|
||||
}
|
||||
}
|
||||
|
||||
query GetSerializedShotPaths($filterInput: FilterInput!) {
|
||||
getShots(filterInput: $filterInput) {
|
||||
id
|
||||
videoId
|
||||
startFrame
|
||||
endFrame
|
||||
serializedShotPaths {
|
||||
b64EncodedBuffer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetShotAnnotationTypes {
|
||||
getShotAnnotationTypes {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
|
||||
query GetShotsWithMetadata(
|
||||
$filterInput: FilterInput!
|
||||
$shotsPagination: GetShotsPagination
|
||||
$limit: Int
|
||||
$includeCreatedAt: Boolean! = false
|
||||
$includeUpdatedAt: Boolean! = false
|
||||
$includeCueObjectFeatures: Boolean! = false
|
||||
$includePocketingIntentionFeatures: Boolean! = false
|
||||
$includeCueObjectDistance: Boolean! = false
|
||||
$includeCueObjectAngle: Boolean! = false
|
||||
$includeCueBallSpeed: Boolean! = false
|
||||
$includeSpinType: Boolean! = false
|
||||
$includeShotDirection: Boolean! = false
|
||||
$includeTargetPocketDistance: Boolean! = false
|
||||
$includeMake: Boolean! = false
|
||||
$includeIntendedPocketType: Boolean! = false
|
||||
) {
|
||||
getShotsWithMetadata(
|
||||
filterInput: $filterInput
|
||||
shotsPagination: $shotsPagination
|
||||
limit: $limit
|
||||
) {
|
||||
count
|
||||
shots {
|
||||
id
|
||||
videoId
|
||||
startFrame
|
||||
endFrame
|
||||
user {
|
||||
id
|
||||
}
|
||||
falsePositiveScore
|
||||
video {
|
||||
stream {
|
||||
resolution {
|
||||
width
|
||||
height
|
||||
}
|
||||
}
|
||||
}
|
||||
createdAt @include(if: $includeCreatedAt)
|
||||
updatedAt @include(if: $includeUpdatedAt)
|
||||
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
||||
cueObjectDistance @include(if: $includeCueObjectDistance)
|
||||
cueObjectAngle @include(if: $includeCueObjectAngle)
|
||||
cueBallSpeed @include(if: $includeCueBallSpeed)
|
||||
shotDirection @include(if: $includeShotDirection)
|
||||
spinType @include(if: $includeSpinType)
|
||||
}
|
||||
pocketingIntentionFeatures
|
||||
@include(if: $includePocketingIntentionFeatures) {
|
||||
targetPocketDistance @include(if: $includeTargetPocketDistance)
|
||||
make @include(if: $includeMake)
|
||||
intendedPocketType @include(if: $includeIntendedPocketType)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -8,7 +8,7 @@ mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
||||
value
|
||||
}
|
||||
}
|
||||
... on GetUploadLinkErrors {
|
||||
... on GetProfileUploadLinkErrors {
|
||||
error {
|
||||
... on TooManyProfileImageUploadsErr {
|
||||
linksRequested
|
||||
@@ -56,3 +56,10 @@ query getUsernames(
|
||||
) {
|
||||
getUsernames(matchString: $matchString, limit: $limit, after: $after)
|
||||
}
|
||||
|
||||
query GetUserTags {
|
||||
getUserTags {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
|
@@ -4,7 +4,7 @@ query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
||||
totalShots
|
||||
makePercentage
|
||||
elapsedTime
|
||||
homographyHistory {
|
||||
currentHomography {
|
||||
crop {
|
||||
left
|
||||
top
|
||||
@@ -118,6 +118,7 @@ query GetVideoDetails($videoId: Int!) {
|
||||
query GetVideos($videoIds: [Int!]!) {
|
||||
getVideos(videoIds: $videoIds) {
|
||||
id
|
||||
framesPerSecond
|
||||
stream {
|
||||
id
|
||||
streamSegmentType
|
||||
|
@@ -34,6 +34,9 @@ mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
||||
}
|
||||
}
|
||||
}
|
||||
stream {
|
||||
uploadCompletionCursor
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,6 +55,12 @@ mutation GetHlsInitUploadLink($videoId: Int!) {
|
||||
... on NoInitForChunkedUploadErr {
|
||||
segmentType
|
||||
}
|
||||
... on InitUploadAlreadyCompletedErr {
|
||||
segmentType
|
||||
}
|
||||
... on TooManyInitUploadsErr {
|
||||
linksRequested
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
145
src/schema.gql
145
src/schema.gql
@@ -9,12 +9,17 @@ type Query {
|
||||
videoId: ID!
|
||||
intervalDuration: Int! = 300
|
||||
): [MakePercentageIntervalGQL!]!
|
||||
getShotsWithMetadata(
|
||||
filterInput: FilterInput!
|
||||
shotsPagination: GetShotsPagination = null
|
||||
limit: Int! = 500
|
||||
): GetShotsResult!
|
||||
getShots(
|
||||
filterInput: FilterInput!
|
||||
shotsPagination: GetShotsPagination = null
|
||||
limit: Int! = 500
|
||||
): [ShotGQL!]!
|
||||
getShotAnnotationTypes: [ShotAnnotationTypeGQL!]!
|
||||
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
||||
getUser(userId: Int!): UserGQL
|
||||
getLoggedInUser: UserGQL
|
||||
getUsernames(
|
||||
@@ -102,8 +107,8 @@ input FilterInput @oneOf {
|
||||
kickAngle: RangeFilter
|
||||
kickDistance: RangeFilter
|
||||
cueAngleAfterObject: RangeFilter
|
||||
spinType: [SpinTypeEnum!]
|
||||
cueSpeedAfterObject: RangeFilter
|
||||
spinType: [String!]
|
||||
falsePositiveScore: RangeFilter
|
||||
}
|
||||
|
||||
@@ -140,6 +145,13 @@ input ShotAnnotationInput {
|
||||
name: String!
|
||||
}
|
||||
|
||||
enum SpinTypeEnum {
|
||||
DRAW
|
||||
FOLLOW
|
||||
CENTER
|
||||
UNKNOWN
|
||||
}
|
||||
|
||||
type BucketSetGQL {
|
||||
keyName: String!
|
||||
feature: String!
|
||||
@@ -164,6 +176,11 @@ type MakePercentageIntervalGQL {
|
||||
elapsedTime: Float!
|
||||
}
|
||||
|
||||
type GetShotsResult {
|
||||
shots: [ShotGQL!]!
|
||||
count: Int
|
||||
}
|
||||
|
||||
type ShotGQL {
|
||||
id: Int!
|
||||
videoId: Int!
|
||||
@@ -191,6 +208,7 @@ type CueObjectFeaturesGQL {
|
||||
cueObjectAngle: Float
|
||||
cueBallSpeed: Float
|
||||
shotDirection: ShotDirectionEnum
|
||||
spinType: SpinTypeEnum
|
||||
}
|
||||
|
||||
type PocketingIntentionFeaturesGQL {
|
||||
@@ -231,6 +249,7 @@ type ShotAnnotationGQL {
|
||||
type: ShotAnnotationTypeGQL!
|
||||
creator: UserGQL!
|
||||
notes: String!
|
||||
errorDefault: Boolean!
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
}
|
||||
@@ -261,6 +280,7 @@ type VideoGQL {
|
||||
stream: UploadStreamGQL
|
||||
playlist: HLSPlaylistGQL
|
||||
tags: [VideoTag!]!
|
||||
currentHomography: HomographyInfoGQL
|
||||
homographyHistory: [HomographyInfoGQL!]!
|
||||
currentProcessing: VideoProcessingGQL
|
||||
}
|
||||
@@ -434,8 +454,14 @@ scalar JSON
|
||||
type Mutation {
|
||||
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
||||
setLoggerLevel(path: String!, level: String!): Boolean!
|
||||
addAnnotationToShot(shotId: Int!, annotationName: String!): Boolean!
|
||||
getProfileImageUploadLink(fileExt: String = ".png"): GetUploadLinkReturn!
|
||||
addAnnotationToShot(
|
||||
shotId: Int!
|
||||
annotationName: String!
|
||||
notes: String = null
|
||||
): AddShotAnnotationReturn!
|
||||
getProfileImageUploadLink(
|
||||
fileExt: String = ".png"
|
||||
): GetProfileUploadLinkReturn!
|
||||
editProfileImageUri(profileImageUri: String!): UserGQL!
|
||||
createUploadStream(
|
||||
videoMetadata: VideoMetadataInput!
|
||||
@@ -457,12 +483,42 @@ input CreateBucketSetInput {
|
||||
buckets: [BucketInputGQL!]!
|
||||
}
|
||||
|
||||
type GetUploadLinkReturn {
|
||||
value: UploadLinkGetUploadLinkErrors!
|
||||
stream: UploadStreamGQL
|
||||
type AddShotAnnotationReturn {
|
||||
value: SuccessfulAddAddShotAnnotationErrors!
|
||||
}
|
||||
|
||||
union UploadLinkGetUploadLinkErrors = UploadLink | GetUploadLinkErrors
|
||||
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 {
|
||||
uploadUrl: String!
|
||||
@@ -474,32 +530,8 @@ type Header {
|
||||
value: String!
|
||||
}
|
||||
|
||||
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!
|
||||
type GetProfileUploadLinkErrors {
|
||||
error: TooManyProfileImageUploadsErr!
|
||||
}
|
||||
|
||||
type TooManyProfileImageUploadsErr {
|
||||
@@ -546,3 +578,48 @@ input VideoResolution {
|
||||
width: Int!
|
||||
height: Int!
|
||||
}
|
||||
|
||||
type GetUploadLinkReturn {
|
||||
value: UploadLinkGetUploadLinkErrors!
|
||||
stream: UploadStreamGQL
|
||||
}
|
||||
|
||||
union UploadLinkGetUploadLinkErrors = UploadLink | GetUploadLinkErrors
|
||||
|
||||
type GetUploadLinkErrors {
|
||||
error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr!
|
||||
}
|
||||
|
||||
union MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr =
|
||||
MustHaveSetForUploadLinkErr
|
||||
| SegmentAlreadyUploadedErr
|
||||
| ProcessingFailedErr
|
||||
| NoInitForChunkedUploadErr
|
||||
| TooManyProfileImageUploadsErr
|
||||
| InitUploadAlreadyCompletedErr
|
||||
| TooManyInitUploadsErr
|
||||
|
||||
type MustHaveSetForUploadLinkErr {
|
||||
resolution: Boolean
|
||||
framesPerSecond: Boolean
|
||||
}
|
||||
|
||||
type SegmentAlreadyUploadedErr {
|
||||
segmentId: Int!
|
||||
}
|
||||
|
||||
type ProcessingFailedErr {
|
||||
processing: VideoProcessingGQL!
|
||||
}
|
||||
|
||||
type NoInitForChunkedUploadErr {
|
||||
segmentType: StreamSegmentTypeEnum!
|
||||
}
|
||||
|
||||
type InitUploadAlreadyCompletedErr {
|
||||
segmentType: StreamSegmentTypeEnum!
|
||||
}
|
||||
|
||||
type TooManyInitUploadsErr {
|
||||
linksRequested: Int!
|
||||
}
|
||||
|
Reference in New Issue
Block a user