Dummy query to resolve shot paths #46

Merged
countablecloud merged 2 commits from mk/deserialize-and-render into master 2024-08-29 12:26:24 -06:00
3 changed files with 111 additions and 15 deletions
Showing only changes of commit a7eae9d46b - Show all commits

View File

@ -34,6 +34,16 @@ export type Scalars = {
JSON: { input: any; output: any }; JSON: { input: any; output: any };
}; };
export type AddShotAnnotationErrors = {
__typename?: "AddShotAnnotationErrors";
error: DoesNotOwnShotErrOtherErrorNeedsNote;
};
export type AddShotAnnotationReturn = {
__typename?: "AddShotAnnotationReturn";
value: SuccessfulAddAddShotAnnotationErrors;
};
export type AggregateInputGql = { export type AggregateInputGql = {
aggregations: Array<AggregationInput>; aggregations: Array<AggregationInput>;
filterInput?: InputMaybe<FilterInput>; filterInput?: InputMaybe<FilterInput>;
@ -114,6 +124,7 @@ export type CueObjectFeaturesGql = {
cueObjectAngle?: Maybe<Scalars["Float"]["output"]>; cueObjectAngle?: Maybe<Scalars["Float"]["output"]>;
cueObjectDistance?: Maybe<Scalars["Float"]["output"]>; cueObjectDistance?: Maybe<Scalars["Float"]["output"]>;
shotDirection?: Maybe<ShotDirectionEnum>; shotDirection?: Maybe<ShotDirectionEnum>;
spinType?: Maybe<SpinTypeEnum>;
}; };
export type DeployedConfigGql = { export type DeployedConfigGql = {
@ -131,6 +142,16 @@ export enum DeviceTypeEnum {
Ios = "IOS", Ios = "IOS",
} }
export type DoesNotOwnShotErr = {
__typename?: "DoesNotOwnShotErr";
msg?: Maybe<Scalars["String"]["output"]>;
shotId: Scalars["Int"]["output"];
};
export type DoesNotOwnShotErrOtherErrorNeedsNote =
| DoesNotOwnShotErr
| OtherErrorNeedsNote;
export type EnumAggregation = { export type EnumAggregation = {
feature: Scalars["String"]["input"]; feature: Scalars["String"]["input"];
}; };
@ -929,7 +950,7 @@ export type FilterInput =
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
shotDirection?: never; shotDirection?: never;
spinType: Array<Scalars["String"]["input"]>; spinType: Array<SpinTypeEnum>;
tableSize?: never; tableSize?: never;
tags?: never; tags?: never;
targetPocketDistance?: never; targetPocketDistance?: never;
@ -1179,7 +1200,7 @@ export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailed
export type Mutation = { export type Mutation = {
__typename?: "Mutation"; __typename?: "Mutation";
addAnnotationToShot: Scalars["Boolean"]["output"]; addAnnotationToShot: AddShotAnnotationReturn;
createBucketSet: BucketSetGql; createBucketSet: BucketSetGql;
createUploadStream: CreateUploadStreamReturn; createUploadStream: CreateUploadStreamReturn;
deleteVideo: Scalars["Boolean"]["output"]; deleteVideo: Scalars["Boolean"]["output"];
@ -1194,6 +1215,7 @@ export type Mutation = {
export type MutationAddAnnotationToShotArgs = { export type MutationAddAnnotationToShotArgs = {
annotationName: Scalars["String"]["input"]; annotationName: Scalars["String"]["input"];
notes?: InputMaybe<Scalars["String"]["input"]>;
shotId: Scalars["Int"]["input"]; shotId: Scalars["Int"]["input"];
}; };
@ -1247,6 +1269,11 @@ export type NoInitForChunkedUploadErr = {
segmentType: StreamSegmentTypeEnum; segmentType: StreamSegmentTypeEnum;
}; };
export type OtherErrorNeedsNote = {
__typename?: "OtherErrorNeedsNote";
msg?: Maybe<Scalars["String"]["output"]>;
};
export type PageInfoGql = { export type PageInfoGql = {
__typename?: "PageInfoGQL"; __typename?: "PageInfoGQL";
endCursor?: Maybe<Scalars["String"]["output"]>; endCursor?: Maybe<Scalars["String"]["output"]>;
@ -1323,6 +1350,10 @@ export type QueryGetPlayTimeArgs = {
userId: Scalars["Int"]["input"]; userId: Scalars["Int"]["input"];
}; };
export type QueryGetShotAnnotationTypesArgs = {
errorTypes?: InputMaybe<Scalars["Boolean"]["input"]>;
};
export type QueryGetShotsArgs = { export type QueryGetShotsArgs = {
filterInput: FilterInput; filterInput: FilterInput;
limit?: Scalars["Int"]["input"]; limit?: Scalars["Int"]["input"];
@ -1387,6 +1418,7 @@ export type ShotAnnotationGql = {
__typename?: "ShotAnnotationGQL"; __typename?: "ShotAnnotationGQL";
createdAt?: Maybe<Scalars["DateTime"]["output"]>; createdAt?: Maybe<Scalars["DateTime"]["output"]>;
creator: UserGql; creator: UserGql;
errorDefault: Scalars["Boolean"]["output"];
notes: Scalars["String"]["output"]; notes: Scalars["String"]["output"];
shotId: Scalars["Int"]["output"]; shotId: Scalars["Int"]["output"];
type: ShotAnnotationTypeGql; type: ShotAnnotationTypeGql;
@ -1427,6 +1459,13 @@ export type ShotGql = {
videoId: Scalars["Int"]["output"]; videoId: Scalars["Int"]["output"];
}; };
export enum SpinTypeEnum {
Center = "CENTER",
Draw = "DRAW",
Follow = "FOLLOW",
Unknown = "UNKNOWN",
}
export type StreamErrorGql = { export type StreamErrorGql = {
__typename?: "StreamErrorGQL"; __typename?: "StreamErrorGQL";
message: Scalars["String"]["output"]; message: Scalars["String"]["output"];
@ -1437,6 +1476,15 @@ export enum StreamSegmentTypeEnum {
RbChunkedMp4 = "RB_CHUNKED_MP4", RbChunkedMp4 = "RB_CHUNKED_MP4",
} }
export type SuccessfulAdd = {
__typename?: "SuccessfulAdd";
value: Scalars["Boolean"]["output"];
};
export type SuccessfulAddAddShotAnnotationErrors =
| AddShotAnnotationErrors
| SuccessfulAdd;
export type TagGql = { export type TagGql = {
__typename?: "TagGQL"; __typename?: "TagGQL";
group?: Maybe<Scalars["String"]["output"]>; group?: Maybe<Scalars["String"]["output"]>;
@ -2034,13 +2082,11 @@ export type GetVideosQuery = {
getVideos: Array<{ getVideos: Array<{
__typename?: "VideoGQL"; __typename?: "VideoGQL";
id: number; id: number;
playlist?: { framesPerSecond: number;
__typename?: "HLSPlaylistGQL";
segmentDurations: Array<number>;
} | null;
stream?: { stream?: {
__typename?: "UploadStreamGQL"; __typename?: "UploadStreamGQL";
id: string; id: string;
streamSegmentType: StreamSegmentTypeEnum;
segments: Array<{ segments: Array<{
__typename?: "UploadSegmentGQL"; __typename?: "UploadSegmentGQL";
uploaded: boolean; uploaded: boolean;
@ -2050,6 +2096,10 @@ export type GetVideosQuery = {
framesPerSecond?: number | null; framesPerSecond?: number | null;
}>; }>;
} | null; } | null;
playlist?: {
__typename?: "HLSPlaylistGQL";
segmentDurations: Array<number>;
} | null;
}>; }>;
}; };
@ -3678,11 +3728,10 @@ export const GetVideosDocument = gql`
query GetVideos($videoIds: [Int!]!) { query GetVideos($videoIds: [Int!]!) {
getVideos(videoIds: $videoIds) { getVideos(videoIds: $videoIds) {
id id
playlist { framesPerSecond
segmentDurations
}
stream { stream {
id id
streamSegmentType
segments { segments {
uploaded uploaded
valid valid
@ -3691,6 +3740,9 @@ export const GetVideosDocument = gql`
framesPerSecond framesPerSecond
} }
} }
playlist {
segmentDurations
}
} }
} }
`; `;

View File

@ -118,11 +118,10 @@ query GetVideoDetails($videoId: Int!) {
query GetVideos($videoIds: [Int!]!) { query GetVideos($videoIds: [Int!]!) {
getVideos(videoIds: $videoIds) { getVideos(videoIds: $videoIds) {
id id
playlist { framesPerSecond
segmentDurations
}
stream { stream {
id id
streamSegmentType
segments { segments {
uploaded uploaded
valid valid
@ -131,6 +130,9 @@ query GetVideos($videoIds: [Int!]!) {
framesPerSecond framesPerSecond
} }
} }
playlist {
segmentDurations
}
} }
} }

View File

@ -14,7 +14,7 @@ type Query {
shotsPagination: GetShotsPagination = null shotsPagination: GetShotsPagination = null
limit: Int! = 500 limit: Int! = 500
): [ShotGQL!]! ): [ShotGQL!]!
getShotAnnotationTypes: [ShotAnnotationTypeGQL!]! getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
getUser(userId: Int!): UserGQL getUser(userId: Int!): UserGQL
getLoggedInUser: UserGQL getLoggedInUser: UserGQL
getUsernames( getUsernames(
@ -102,8 +102,8 @@ input FilterInput @oneOf {
kickAngle: RangeFilter kickAngle: RangeFilter
kickDistance: RangeFilter kickDistance: RangeFilter
cueAngleAfterObject: RangeFilter cueAngleAfterObject: RangeFilter
spinType: [SpinTypeEnum!]
cueSpeedAfterObject: RangeFilter cueSpeedAfterObject: RangeFilter
spinType: [String!]
falsePositiveScore: RangeFilter falsePositiveScore: RangeFilter
} }
@ -140,6 +140,13 @@ input ShotAnnotationInput {
name: String! name: String!
} }
enum SpinTypeEnum {
DRAW
FOLLOW
CENTER
UNKNOWN
}
type BucketSetGQL { type BucketSetGQL {
keyName: String! keyName: String!
feature: String! feature: String!
@ -191,6 +198,7 @@ type CueObjectFeaturesGQL {
cueObjectAngle: Float cueObjectAngle: Float
cueBallSpeed: Float cueBallSpeed: Float
shotDirection: ShotDirectionEnum shotDirection: ShotDirectionEnum
spinType: SpinTypeEnum
} }
type PocketingIntentionFeaturesGQL { type PocketingIntentionFeaturesGQL {
@ -231,6 +239,7 @@ type ShotAnnotationGQL {
type: ShotAnnotationTypeGQL! type: ShotAnnotationTypeGQL!
creator: UserGQL! creator: UserGQL!
notes: String! notes: String!
errorDefault: Boolean!
createdAt: DateTime createdAt: DateTime
updatedAt: DateTime updatedAt: DateTime
} }
@ -434,7 +443,11 @@ scalar JSON
type Mutation { type Mutation {
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL! createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
setLoggerLevel(path: String!, level: String!): Boolean! setLoggerLevel(path: String!, level: String!): Boolean!
addAnnotationToShot(shotId: Int!, annotationName: String!): Boolean! addAnnotationToShot(
shotId: Int!
annotationName: String!
notes: String = null
): AddShotAnnotationReturn!
getProfileImageUploadLink( getProfileImageUploadLink(
fileExt: String = ".png" fileExt: String = ".png"
): GetProfileUploadLinkReturn! ): GetProfileUploadLinkReturn!
@ -459,6 +472,35 @@ input CreateBucketSetInput {
buckets: [BucketInputGQL!]! 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 { type GetProfileUploadLinkReturn {
value: UploadLinkGetProfileUploadLinkErrors! value: UploadLinkGetProfileUploadLinkErrors!
} }