Compare commits
13 Commits
e2743abb59
...
ivan/remov
Author | SHA1 | Date | |
---|---|---|---|
cfffa3f640 | |||
2459cb78f8 | |||
8859ad8951 | |||
bdc3961e46 | |||
7c8c932a78 | |||
ae746ccac0 | |||
98266c7775 | |||
|
4918720ae3 | ||
8463ebf0e7 | |||
753179ca58 | |||
9ee5c721c1 | |||
00cca10cb3 | |||
ad704cad75 |
@@ -8,7 +8,7 @@ packages = [{include = "rbproto"}]
|
|||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.10,<=3.13"
|
python = ">=3.10,<=3.13"
|
||||||
protobuf = "^4.25.3"
|
protobuf = "*"
|
||||||
|
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
|
689
src/index.tsx
689
src/index.tsx
@@ -94,6 +94,13 @@ export type BoundingBoxGql = {
|
|||||||
width: Scalars["Float"]["output"];
|
width: Scalars["Float"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type BoundingBoxInputGql = {
|
||||||
|
height: Scalars["Float"]["input"];
|
||||||
|
left: Scalars["Float"]["input"];
|
||||||
|
top: Scalars["Float"]["input"];
|
||||||
|
width: Scalars["Float"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type BucketGql = {
|
export type BucketGql = {
|
||||||
__typename?: "BucketGQL";
|
__typename?: "BucketGQL";
|
||||||
lowerBound: Scalars["Float"]["output"];
|
lowerBound: Scalars["Float"]["output"];
|
||||||
@@ -122,6 +129,14 @@ export enum ClientUploadStatusEnum {
|
|||||||
UploadEnabled = "UPLOAD_ENABLED",
|
UploadEnabled = "UPLOAD_ENABLED",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type CommentGql = {
|
||||||
|
__typename?: "CommentGQL";
|
||||||
|
id: Scalars["Int"]["output"];
|
||||||
|
message: Scalars["String"]["output"];
|
||||||
|
replies: Array<CommentGql>;
|
||||||
|
user: UserGql;
|
||||||
|
};
|
||||||
|
|
||||||
export type CountLeaderboardGql = {
|
export type CountLeaderboardGql = {
|
||||||
__typename?: "CountLeaderboardGQL";
|
__typename?: "CountLeaderboardGQL";
|
||||||
entries: Array<UserShotCountEntry>;
|
entries: Array<UserShotCountEntry>;
|
||||||
@@ -2154,6 +2169,13 @@ export type HomographyInfoGql = {
|
|||||||
sourcePoints: PocketPointsGql;
|
sourcePoints: PocketPointsGql;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type HomographyInputGql = {
|
||||||
|
crop: BoundingBoxInputGql;
|
||||||
|
destPoints: PocketPointsInputGql;
|
||||||
|
pockets: Array<BoundingBoxInputGql>;
|
||||||
|
sourcePoints: PocketPointsInputGql;
|
||||||
|
};
|
||||||
|
|
||||||
export enum IncludePrivateEnum {
|
export enum IncludePrivateEnum {
|
||||||
All = "ALL",
|
All = "ALL",
|
||||||
Mine = "MINE",
|
Mine = "MINE",
|
||||||
@@ -2182,6 +2204,11 @@ export type IntPoint2D = {
|
|||||||
y: Scalars["Int"]["output"];
|
y: Scalars["Int"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type IntPoint2DInput = {
|
||||||
|
x: Scalars["Int"]["input"];
|
||||||
|
y: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type MakePercentageIntervalGql = {
|
export type MakePercentageIntervalGql = {
|
||||||
__typename?: "MakePercentageIntervalGQL";
|
__typename?: "MakePercentageIntervalGQL";
|
||||||
elapsedTime: Scalars["Float"]["output"];
|
elapsedTime: Scalars["Float"]["output"];
|
||||||
@@ -2226,10 +2253,13 @@ export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailed
|
|||||||
export type Mutation = {
|
export type Mutation = {
|
||||||
__typename?: "Mutation";
|
__typename?: "Mutation";
|
||||||
addAnnotationToShot: AddShotAnnotationReturn;
|
addAnnotationToShot: AddShotAnnotationReturn;
|
||||||
|
commentOnVideo: Scalars["Boolean"]["output"];
|
||||||
createBucketSet: BucketSetGql;
|
createBucketSet: BucketSetGql;
|
||||||
createUploadStream: CreateUploadStreamReturn;
|
createUploadStream: CreateUploadStreamReturn;
|
||||||
|
deleteComment: Scalars["Boolean"]["output"];
|
||||||
deleteTags: Scalars["Boolean"]["output"];
|
deleteTags: Scalars["Boolean"]["output"];
|
||||||
deleteVideo: Scalars["Boolean"]["output"];
|
deleteVideo: Scalars["Boolean"]["output"];
|
||||||
|
editComment: Scalars["Boolean"]["output"];
|
||||||
editProfileImageUri: UserGql;
|
editProfileImageUri: UserGql;
|
||||||
editShot: EditShotReturn;
|
editShot: EditShotReturn;
|
||||||
editUploadStream: Scalars["Boolean"]["output"];
|
editUploadStream: Scalars["Boolean"]["output"];
|
||||||
@@ -2253,6 +2283,12 @@ export type MutationAddAnnotationToShotArgs = {
|
|||||||
shotId: Scalars["Int"]["input"];
|
shotId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MutationCommentOnVideoArgs = {
|
||||||
|
message: Scalars["String"]["input"];
|
||||||
|
parentCommentId?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type MutationCreateBucketSetArgs = {
|
export type MutationCreateBucketSetArgs = {
|
||||||
params: CreateBucketSetInput;
|
params: CreateBucketSetInput;
|
||||||
};
|
};
|
||||||
@@ -2261,6 +2297,11 @@ export type MutationCreateUploadStreamArgs = {
|
|||||||
videoMetadata: VideoMetadataInput;
|
videoMetadata: VideoMetadataInput;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MutationDeleteCommentArgs = {
|
||||||
|
commentId: Scalars["Int"]["input"];
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type MutationDeleteTagsArgs = {
|
export type MutationDeleteTagsArgs = {
|
||||||
tagsToDelete: Array<VideoTagInput>;
|
tagsToDelete: Array<VideoTagInput>;
|
||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
@@ -2270,6 +2311,12 @@ export type MutationDeleteVideoArgs = {
|
|||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MutationEditCommentArgs = {
|
||||||
|
commentId: Scalars["Int"]["input"];
|
||||||
|
newMessage: Scalars["String"]["input"];
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type MutationEditProfileImageUriArgs = {
|
export type MutationEditProfileImageUriArgs = {
|
||||||
profileImageUri: Scalars["String"]["input"];
|
profileImageUri: Scalars["String"]["input"];
|
||||||
};
|
};
|
||||||
@@ -2379,6 +2426,15 @@ export type PocketPointsGql = {
|
|||||||
topSide: IntPoint2D;
|
topSide: IntPoint2D;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type PocketPointsInputGql = {
|
||||||
|
bottomLeft: IntPoint2DInput;
|
||||||
|
bottomRight: IntPoint2DInput;
|
||||||
|
bottomSide: IntPoint2DInput;
|
||||||
|
topLeft: IntPoint2DInput;
|
||||||
|
topRight: IntPoint2DInput;
|
||||||
|
topSide: IntPoint2DInput;
|
||||||
|
};
|
||||||
|
|
||||||
export type PocketingIntentionFeaturesGql = {
|
export type PocketingIntentionFeaturesGql = {
|
||||||
__typename?: "PocketingIntentionFeaturesGQL";
|
__typename?: "PocketingIntentionFeaturesGQL";
|
||||||
backcut?: Maybe<Scalars["Boolean"]["output"]>;
|
backcut?: Maybe<Scalars["Boolean"]["output"]>;
|
||||||
@@ -2432,6 +2488,7 @@ export type Query = {
|
|||||||
getShots: Array<ShotGql>;
|
getShots: Array<ShotGql>;
|
||||||
getShotsByIds: Array<ShotGql>;
|
getShotsByIds: Array<ShotGql>;
|
||||||
getShotsWithMetadata: GetShotsResult;
|
getShotsWithMetadata: GetShotsResult;
|
||||||
|
getTableState: TableStateGql;
|
||||||
getUser?: Maybe<UserGql>;
|
getUser?: Maybe<UserGql>;
|
||||||
getUserRelationshipsMatching: UserRelationshipsResult;
|
getUserRelationshipsMatching: UserRelationshipsResult;
|
||||||
getUserTags: Array<TagGql>;
|
getUserTags: Array<TagGql>;
|
||||||
@@ -2525,6 +2582,12 @@ export type QueryGetShotsWithMetadataArgs = {
|
|||||||
shotsPagination?: InputMaybe<GetShotsPagination>;
|
shotsPagination?: InputMaybe<GetShotsPagination>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type QueryGetTableStateArgs = {
|
||||||
|
b64Image: Scalars["String"]["input"];
|
||||||
|
tableSize?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
|
useHomography?: InputMaybe<HomographyInputGql>;
|
||||||
|
};
|
||||||
|
|
||||||
export type QueryGetUserArgs = {
|
export type QueryGetUserArgs = {
|
||||||
userId: Scalars["Int"]["input"];
|
userId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
@@ -2838,6 +2901,12 @@ export type SuccessfulAddAddShotAnnotationErrors =
|
|||||||
| AddShotAnnotationErrors
|
| AddShotAnnotationErrors
|
||||||
| SuccessfulAdd;
|
| SuccessfulAdd;
|
||||||
|
|
||||||
|
export type TableStateGql = {
|
||||||
|
__typename?: "TableStateGQL";
|
||||||
|
homography?: Maybe<HomographyInfoGql>;
|
||||||
|
identifierToPosition: Array<Array<Scalars["Float"]["output"]>>;
|
||||||
|
};
|
||||||
|
|
||||||
export type TagClassGql = {
|
export type TagClassGql = {
|
||||||
__typename?: "TagClassGQL";
|
__typename?: "TagClassGQL";
|
||||||
id: Scalars["Int"]["output"];
|
id: Scalars["Int"]["output"];
|
||||||
@@ -3008,6 +3077,7 @@ export type VideoGql = {
|
|||||||
__typename?: "VideoGQL";
|
__typename?: "VideoGQL";
|
||||||
averageDifficulty?: Maybe<Scalars["Float"]["output"]>;
|
averageDifficulty?: Maybe<Scalars["Float"]["output"]>;
|
||||||
averageTimeBetweenShots?: Maybe<Scalars["Float"]["output"]>;
|
averageTimeBetweenShots?: Maybe<Scalars["Float"]["output"]>;
|
||||||
|
comments: Array<CommentGql>;
|
||||||
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
currentHomography?: Maybe<HomographyInfoGql>;
|
currentHomography?: Maybe<HomographyInfoGql>;
|
||||||
currentProcessing?: Maybe<VideoProcessingGql>;
|
currentProcessing?: Maybe<VideoProcessingGql>;
|
||||||
@@ -3139,6 +3209,38 @@ export type GetAggregatedShotMetricsQuery = {
|
|||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type CommentOnVideoMutationVariables = Exact<{
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
message: Scalars["String"]["input"];
|
||||||
|
parentCommentId?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type CommentOnVideoMutation = {
|
||||||
|
__typename?: "Mutation";
|
||||||
|
commentOnVideo: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type EditCommentMutationVariables = Exact<{
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
commentId: Scalars["Int"]["input"];
|
||||||
|
newMessage: Scalars["String"]["input"];
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type EditCommentMutation = {
|
||||||
|
__typename?: "Mutation";
|
||||||
|
editComment: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type DeleteCommentMutationVariables = Exact<{
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
commentId: Scalars["Int"]["input"];
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type DeleteCommentMutation = {
|
||||||
|
__typename?: "Mutation";
|
||||||
|
deleteComment: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
export type GetDeployedConfigQueryVariables = Exact<{ [key: string]: never }>;
|
export type GetDeployedConfigQueryVariables = Exact<{ [key: string]: never }>;
|
||||||
|
|
||||||
export type GetDeployedConfigQuery = {
|
export type GetDeployedConfigQuery = {
|
||||||
@@ -3191,6 +3293,7 @@ export type GetFeedQuery = {
|
|||||||
id: string;
|
id: string;
|
||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
isCompleted: boolean;
|
isCompleted: boolean;
|
||||||
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
} | null;
|
} | null;
|
||||||
tags: Array<{
|
tags: Array<{
|
||||||
__typename?: "VideoTag";
|
__typename?: "VideoTag";
|
||||||
@@ -3227,6 +3330,40 @@ export type GetFeedQuery = {
|
|||||||
}> | null;
|
}> | null;
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
|
comments: Array<{
|
||||||
|
__typename?: "CommentGQL";
|
||||||
|
id: number;
|
||||||
|
message: string;
|
||||||
|
user: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
|
};
|
||||||
|
replies: Array<{
|
||||||
|
__typename?: "CommentGQL";
|
||||||
|
id: number;
|
||||||
|
message: string;
|
||||||
|
user: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
|
};
|
||||||
|
}>;
|
||||||
|
}>;
|
||||||
}>;
|
}>;
|
||||||
pageInfo: {
|
pageInfo: {
|
||||||
__typename?: "PageInfoGQL";
|
__typename?: "PageInfoGQL";
|
||||||
@@ -3236,6 +3373,19 @@ export type GetFeedQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type UserSocialsFieldsFragment = {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
|
};
|
||||||
|
|
||||||
export type VideoCardFieldsFragment = {
|
export type VideoCardFieldsFragment = {
|
||||||
__typename?: "VideoGQL";
|
__typename?: "VideoGQL";
|
||||||
id: number;
|
id: number;
|
||||||
@@ -3264,6 +3414,7 @@ export type VideoCardFieldsFragment = {
|
|||||||
id: string;
|
id: string;
|
||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
isCompleted: boolean;
|
isCompleted: boolean;
|
||||||
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
} | null;
|
} | null;
|
||||||
tags: Array<{
|
tags: Array<{
|
||||||
__typename?: "VideoTag";
|
__typename?: "VideoTag";
|
||||||
@@ -3297,6 +3448,40 @@ export type VideoCardFieldsFragment = {
|
|||||||
}> | null;
|
}> | null;
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
|
comments: Array<{
|
||||||
|
__typename?: "CommentGQL";
|
||||||
|
id: number;
|
||||||
|
message: string;
|
||||||
|
user: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
|
};
|
||||||
|
replies: Array<{
|
||||||
|
__typename?: "CommentGQL";
|
||||||
|
id: number;
|
||||||
|
message: string;
|
||||||
|
user: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
|
};
|
||||||
|
}>;
|
||||||
|
}>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GetVideoFeedQueryVariables = Exact<{
|
export type GetVideoFeedQueryVariables = Exact<{
|
||||||
@@ -3340,6 +3525,7 @@ export type GetVideoFeedQuery = {
|
|||||||
id: string;
|
id: string;
|
||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
isCompleted: boolean;
|
isCompleted: boolean;
|
||||||
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
} | null;
|
} | null;
|
||||||
tags: Array<{
|
tags: Array<{
|
||||||
__typename?: "VideoTag";
|
__typename?: "VideoTag";
|
||||||
@@ -3376,6 +3562,40 @@ export type GetVideoFeedQuery = {
|
|||||||
}> | null;
|
}> | null;
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
|
comments: Array<{
|
||||||
|
__typename?: "CommentGQL";
|
||||||
|
id: number;
|
||||||
|
message: string;
|
||||||
|
user: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
|
};
|
||||||
|
replies: Array<{
|
||||||
|
__typename?: "CommentGQL";
|
||||||
|
id: number;
|
||||||
|
message: string;
|
||||||
|
user: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
|
};
|
||||||
|
}>;
|
||||||
|
}>;
|
||||||
}>;
|
}>;
|
||||||
pageInfo: {
|
pageInfo: {
|
||||||
__typename?: "PageInfoGQL";
|
__typename?: "PageInfoGQL";
|
||||||
@@ -3614,6 +3834,17 @@ export type GetRunsForHighlightsQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type PocketingIntentionFragmentFragment = {
|
||||||
|
__typename?: "PocketingIntentionFeaturesGQL";
|
||||||
|
make?: boolean | null;
|
||||||
|
targetPocketDistance?: number | null;
|
||||||
|
targetPocketAngle?: number | null;
|
||||||
|
targetPocketAngleDirection?: ShotDirectionEnum | null;
|
||||||
|
marginOfErrorInDegrees?: number | null;
|
||||||
|
intendedPocketType?: PocketEnum | null;
|
||||||
|
difficulty?: number | null;
|
||||||
|
};
|
||||||
|
|
||||||
export type GetRunsWithTimestampsQueryVariables = Exact<{
|
export type GetRunsWithTimestampsQueryVariables = Exact<{
|
||||||
filterInput: RunFilterInput;
|
filterInput: RunFilterInput;
|
||||||
runIds?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
runIds?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
||||||
@@ -3637,8 +3868,14 @@ export type GetRunsWithTimestampsQuery = {
|
|||||||
videoId: number;
|
videoId: number;
|
||||||
id: number;
|
id: number;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
shotDifficulty?: {
|
pocketingIntentionFeatures?: {
|
||||||
__typename?: "PocketingIntentionFeaturesGQL";
|
__typename?: "PocketingIntentionFeaturesGQL";
|
||||||
|
make?: boolean | null;
|
||||||
|
targetPocketDistance?: number | null;
|
||||||
|
targetPocketAngle?: number | null;
|
||||||
|
targetPocketAngleDirection?: ShotDirectionEnum | null;
|
||||||
|
marginOfErrorInDegrees?: number | null;
|
||||||
|
intendedPocketType?: PocketEnum | null;
|
||||||
difficulty?: number | null;
|
difficulty?: number | null;
|
||||||
} | null;
|
} | null;
|
||||||
}>;
|
}>;
|
||||||
@@ -3814,6 +4051,15 @@ export type GetShotsWithMetadataFilterResultQuery = {
|
|||||||
name: string;
|
name: string;
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
|
video?: {
|
||||||
|
__typename?: "VideoGQL";
|
||||||
|
id: number;
|
||||||
|
stream?: {
|
||||||
|
__typename?: "UploadStreamGQL";
|
||||||
|
id: string;
|
||||||
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
|
} | null;
|
||||||
|
} | null;
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -3883,6 +4129,15 @@ export type GetShotsWithMetadataQuery = {
|
|||||||
name: string;
|
name: string;
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
|
video?: {
|
||||||
|
__typename?: "VideoGQL";
|
||||||
|
id: number;
|
||||||
|
stream?: {
|
||||||
|
__typename?: "UploadStreamGQL";
|
||||||
|
id: string;
|
||||||
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
|
} | null;
|
||||||
|
} | null;
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -3941,6 +4196,15 @@ export type GetShotsByIdsQuery = {
|
|||||||
notes: string;
|
notes: string;
|
||||||
type: { __typename?: "ShotAnnotationTypeGQL"; id: number; name: string };
|
type: { __typename?: "ShotAnnotationTypeGQL"; id: number; name: string };
|
||||||
}>;
|
}>;
|
||||||
|
video?: {
|
||||||
|
__typename?: "VideoGQL";
|
||||||
|
id: number;
|
||||||
|
stream?: {
|
||||||
|
__typename?: "UploadStreamGQL";
|
||||||
|
id: string;
|
||||||
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
|
} | null;
|
||||||
|
} | null;
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -3992,6 +4256,15 @@ export type ShotWithAllFeaturesFragment = {
|
|||||||
notes: string;
|
notes: string;
|
||||||
type: { __typename?: "ShotAnnotationTypeGQL"; id: number; name: string };
|
type: { __typename?: "ShotAnnotationTypeGQL"; id: number; name: string };
|
||||||
}>;
|
}>;
|
||||||
|
video?: {
|
||||||
|
__typename?: "VideoGQL";
|
||||||
|
id: number;
|
||||||
|
stream?: {
|
||||||
|
__typename?: "UploadStreamGQL";
|
||||||
|
id: string;
|
||||||
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
|
} | null;
|
||||||
|
} | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type EditShotMutationVariables = Exact<{
|
export type EditShotMutationVariables = Exact<{
|
||||||
@@ -4060,6 +4333,15 @@ export type EditShotMutation = {
|
|||||||
name: string;
|
name: string;
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
|
video?: {
|
||||||
|
__typename?: "VideoGQL";
|
||||||
|
id: number;
|
||||||
|
stream?: {
|
||||||
|
__typename?: "UploadStreamGQL";
|
||||||
|
id: string;
|
||||||
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
|
} | null;
|
||||||
|
} | null;
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -4481,6 +4763,82 @@ export type GetVideoDetailsQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetVideoSocialDetailsByIdQueryVariables = Exact<{
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type GetVideoSocialDetailsByIdQuery = {
|
||||||
|
__typename?: "Query";
|
||||||
|
getVideo: {
|
||||||
|
__typename?: "VideoGQL";
|
||||||
|
id: number;
|
||||||
|
name?: string | null;
|
||||||
|
owner?: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
firebaseUid?: string | null;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
} | null;
|
||||||
|
tags: Array<{
|
||||||
|
__typename?: "VideoTag";
|
||||||
|
name: string;
|
||||||
|
tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>;
|
||||||
|
}>;
|
||||||
|
reactions: Array<{
|
||||||
|
__typename?: "ReactionGQL";
|
||||||
|
videoId: number;
|
||||||
|
reaction: ReactionEnum;
|
||||||
|
user: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
|
};
|
||||||
|
}>;
|
||||||
|
comments: Array<{
|
||||||
|
__typename?: "CommentGQL";
|
||||||
|
id: number;
|
||||||
|
message: string;
|
||||||
|
user: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
|
};
|
||||||
|
replies: Array<{
|
||||||
|
__typename?: "CommentGQL";
|
||||||
|
id: number;
|
||||||
|
message: string;
|
||||||
|
user: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
|
};
|
||||||
|
}>;
|
||||||
|
}>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type GetVideosQueryVariables = Exact<{
|
export type GetVideosQueryVariables = Exact<{
|
||||||
videoIds: Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"];
|
videoIds: Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"];
|
||||||
}>;
|
}>;
|
||||||
@@ -5057,6 +5415,18 @@ export type GetUploadStreamsWithDetailsQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const UserSocialsFieldsFragmentDoc = gql`
|
||||||
|
fragment UserSocialsFields on UserGQL {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
followers {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
export const VideoCardFieldsFragmentDoc = gql`
|
export const VideoCardFieldsFragmentDoc = gql`
|
||||||
fragment VideoCardFields on VideoGQL {
|
fragment VideoCardFields on VideoGQL {
|
||||||
id
|
id
|
||||||
@@ -5083,6 +5453,7 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|||||||
id
|
id
|
||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
isCompleted
|
isCompleted
|
||||||
|
streamSegmentType
|
||||||
}
|
}
|
||||||
tableSize
|
tableSize
|
||||||
tags {
|
tags {
|
||||||
@@ -5104,18 +5475,26 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|||||||
reactions {
|
reactions {
|
||||||
videoId
|
videoId
|
||||||
user {
|
user {
|
||||||
id
|
...UserSocialsFields
|
||||||
username
|
|
||||||
profileImageUri
|
|
||||||
followers {
|
|
||||||
id
|
|
||||||
username
|
|
||||||
profileImageUri
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
reaction
|
reaction
|
||||||
}
|
}
|
||||||
|
comments {
|
||||||
|
id
|
||||||
|
message
|
||||||
|
user {
|
||||||
|
...UserSocialsFields
|
||||||
|
}
|
||||||
|
replies {
|
||||||
|
id
|
||||||
|
message
|
||||||
|
user {
|
||||||
|
...UserSocialsFields
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
${UserSocialsFieldsFragmentDoc}
|
||||||
`;
|
`;
|
||||||
export const MedalFieldsFragmentDoc = gql`
|
export const MedalFieldsFragmentDoc = gql`
|
||||||
fragment MedalFields on MedalGQL {
|
fragment MedalFields on MedalGQL {
|
||||||
@@ -5123,6 +5502,17 @@ export const MedalFieldsFragmentDoc = gql`
|
|||||||
nickname
|
nickname
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
export const PocketingIntentionFragmentFragmentDoc = gql`
|
||||||
|
fragment PocketingIntentionFragment on PocketingIntentionFeaturesGQL {
|
||||||
|
make
|
||||||
|
targetPocketDistance
|
||||||
|
targetPocketAngle
|
||||||
|
targetPocketAngleDirection
|
||||||
|
marginOfErrorInDegrees
|
||||||
|
intendedPocketType
|
||||||
|
difficulty
|
||||||
|
}
|
||||||
|
`;
|
||||||
export const ShotWithAllFeaturesFragmentDoc = gql`
|
export const ShotWithAllFeaturesFragmentDoc = gql`
|
||||||
fragment ShotWithAllFeatures on ShotGQL {
|
fragment ShotWithAllFeatures on ShotGQL {
|
||||||
id
|
id
|
||||||
@@ -5177,6 +5567,13 @@ export const ShotWithAllFeaturesFragmentDoc = gql`
|
|||||||
}
|
}
|
||||||
notes
|
notes
|
||||||
}
|
}
|
||||||
|
video {
|
||||||
|
id
|
||||||
|
stream {
|
||||||
|
id
|
||||||
|
streamSegmentType
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
export const UserFragmentFragmentDoc = gql`
|
export const UserFragmentFragmentDoc = gql`
|
||||||
@@ -5401,6 +5798,167 @@ export type GetAggregatedShotMetricsQueryResult = Apollo.QueryResult<
|
|||||||
GetAggregatedShotMetricsQuery,
|
GetAggregatedShotMetricsQuery,
|
||||||
GetAggregatedShotMetricsQueryVariables
|
GetAggregatedShotMetricsQueryVariables
|
||||||
>;
|
>;
|
||||||
|
export const CommentOnVideoDocument = gql`
|
||||||
|
mutation CommentOnVideo(
|
||||||
|
$videoId: Int!
|
||||||
|
$message: String!
|
||||||
|
$parentCommentId: Int
|
||||||
|
) {
|
||||||
|
commentOnVideo(
|
||||||
|
videoId: $videoId
|
||||||
|
message: $message
|
||||||
|
parentCommentId: $parentCommentId
|
||||||
|
)
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
export type CommentOnVideoMutationFn = Apollo.MutationFunction<
|
||||||
|
CommentOnVideoMutation,
|
||||||
|
CommentOnVideoMutationVariables
|
||||||
|
>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useCommentOnVideoMutation__
|
||||||
|
*
|
||||||
|
* To run a mutation, you first call `useCommentOnVideoMutation` within a React component and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useCommentOnVideoMutation` returns a tuple that includes:
|
||||||
|
* - A mutate function that you can call at any time to execute the mutation
|
||||||
|
* - An object with fields that represent the current status of the mutation's execution
|
||||||
|
*
|
||||||
|
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* const [commentOnVideoMutation, { data, loading, error }] = useCommentOnVideoMutation({
|
||||||
|
* variables: {
|
||||||
|
* videoId: // value for 'videoId'
|
||||||
|
* message: // value for 'message'
|
||||||
|
* parentCommentId: // value for 'parentCommentId'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useCommentOnVideoMutation(
|
||||||
|
baseOptions?: Apollo.MutationHookOptions<
|
||||||
|
CommentOnVideoMutation,
|
||||||
|
CommentOnVideoMutationVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useMutation<
|
||||||
|
CommentOnVideoMutation,
|
||||||
|
CommentOnVideoMutationVariables
|
||||||
|
>(CommentOnVideoDocument, options);
|
||||||
|
}
|
||||||
|
export type CommentOnVideoMutationHookResult = ReturnType<
|
||||||
|
typeof useCommentOnVideoMutation
|
||||||
|
>;
|
||||||
|
export type CommentOnVideoMutationResult =
|
||||||
|
Apollo.MutationResult<CommentOnVideoMutation>;
|
||||||
|
export type CommentOnVideoMutationOptions = Apollo.BaseMutationOptions<
|
||||||
|
CommentOnVideoMutation,
|
||||||
|
CommentOnVideoMutationVariables
|
||||||
|
>;
|
||||||
|
export const EditCommentDocument = gql`
|
||||||
|
mutation EditComment($videoId: Int!, $commentId: Int!, $newMessage: String!) {
|
||||||
|
editComment(
|
||||||
|
videoId: $videoId
|
||||||
|
commentId: $commentId
|
||||||
|
newMessage: $newMessage
|
||||||
|
)
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
export type EditCommentMutationFn = Apollo.MutationFunction<
|
||||||
|
EditCommentMutation,
|
||||||
|
EditCommentMutationVariables
|
||||||
|
>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useEditCommentMutation__
|
||||||
|
*
|
||||||
|
* To run a mutation, you first call `useEditCommentMutation` within a React component and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useEditCommentMutation` returns a tuple that includes:
|
||||||
|
* - A mutate function that you can call at any time to execute the mutation
|
||||||
|
* - An object with fields that represent the current status of the mutation's execution
|
||||||
|
*
|
||||||
|
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* const [editCommentMutation, { data, loading, error }] = useEditCommentMutation({
|
||||||
|
* variables: {
|
||||||
|
* videoId: // value for 'videoId'
|
||||||
|
* commentId: // value for 'commentId'
|
||||||
|
* newMessage: // value for 'newMessage'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useEditCommentMutation(
|
||||||
|
baseOptions?: Apollo.MutationHookOptions<
|
||||||
|
EditCommentMutation,
|
||||||
|
EditCommentMutationVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useMutation<EditCommentMutation, EditCommentMutationVariables>(
|
||||||
|
EditCommentDocument,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
export type EditCommentMutationHookResult = ReturnType<
|
||||||
|
typeof useEditCommentMutation
|
||||||
|
>;
|
||||||
|
export type EditCommentMutationResult =
|
||||||
|
Apollo.MutationResult<EditCommentMutation>;
|
||||||
|
export type EditCommentMutationOptions = Apollo.BaseMutationOptions<
|
||||||
|
EditCommentMutation,
|
||||||
|
EditCommentMutationVariables
|
||||||
|
>;
|
||||||
|
export const DeleteCommentDocument = gql`
|
||||||
|
mutation DeleteComment($videoId: Int!, $commentId: Int!) {
|
||||||
|
deleteComment(videoId: $videoId, commentId: $commentId)
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
export type DeleteCommentMutationFn = Apollo.MutationFunction<
|
||||||
|
DeleteCommentMutation,
|
||||||
|
DeleteCommentMutationVariables
|
||||||
|
>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useDeleteCommentMutation__
|
||||||
|
*
|
||||||
|
* To run a mutation, you first call `useDeleteCommentMutation` within a React component and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useDeleteCommentMutation` returns a tuple that includes:
|
||||||
|
* - A mutate function that you can call at any time to execute the mutation
|
||||||
|
* - An object with fields that represent the current status of the mutation's execution
|
||||||
|
*
|
||||||
|
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* const [deleteCommentMutation, { data, loading, error }] = useDeleteCommentMutation({
|
||||||
|
* variables: {
|
||||||
|
* videoId: // value for 'videoId'
|
||||||
|
* commentId: // value for 'commentId'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useDeleteCommentMutation(
|
||||||
|
baseOptions?: Apollo.MutationHookOptions<
|
||||||
|
DeleteCommentMutation,
|
||||||
|
DeleteCommentMutationVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useMutation<
|
||||||
|
DeleteCommentMutation,
|
||||||
|
DeleteCommentMutationVariables
|
||||||
|
>(DeleteCommentDocument, options);
|
||||||
|
}
|
||||||
|
export type DeleteCommentMutationHookResult = ReturnType<
|
||||||
|
typeof useDeleteCommentMutation
|
||||||
|
>;
|
||||||
|
export type DeleteCommentMutationResult =
|
||||||
|
Apollo.MutationResult<DeleteCommentMutation>;
|
||||||
|
export type DeleteCommentMutationOptions = Apollo.BaseMutationOptions<
|
||||||
|
DeleteCommentMutation,
|
||||||
|
DeleteCommentMutationVariables
|
||||||
|
>;
|
||||||
export const GetDeployedConfigDocument = gql`
|
export const GetDeployedConfigDocument = gql`
|
||||||
query getDeployedConfig {
|
query getDeployedConfig {
|
||||||
getDeployedConfig {
|
getDeployedConfig {
|
||||||
@@ -6210,14 +6768,15 @@ export const GetRunsWithTimestampsDocument = gql`
|
|||||||
videoId
|
videoId
|
||||||
id
|
id
|
||||||
createdAt
|
createdAt
|
||||||
shotDifficulty: pocketingIntentionFeatures {
|
pocketingIntentionFeatures {
|
||||||
difficulty
|
...PocketingIntentionFragment
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
runIds
|
runIds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
${PocketingIntentionFragmentFragmentDoc}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -8340,6 +8899,114 @@ export type GetVideoDetailsQueryResult = Apollo.QueryResult<
|
|||||||
GetVideoDetailsQuery,
|
GetVideoDetailsQuery,
|
||||||
GetVideoDetailsQueryVariables
|
GetVideoDetailsQueryVariables
|
||||||
>;
|
>;
|
||||||
|
export const GetVideoSocialDetailsByIdDocument = gql`
|
||||||
|
query GetVideoSocialDetailsById($videoId: Int!) {
|
||||||
|
getVideo(videoId: $videoId) {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
owner {
|
||||||
|
id
|
||||||
|
firebaseUid
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
tags {
|
||||||
|
tagClasses {
|
||||||
|
name
|
||||||
|
}
|
||||||
|
name
|
||||||
|
}
|
||||||
|
reactions {
|
||||||
|
videoId
|
||||||
|
user {
|
||||||
|
...UserSocialsFields
|
||||||
|
}
|
||||||
|
reaction
|
||||||
|
}
|
||||||
|
comments {
|
||||||
|
id
|
||||||
|
message
|
||||||
|
user {
|
||||||
|
...UserSocialsFields
|
||||||
|
}
|
||||||
|
replies {
|
||||||
|
id
|
||||||
|
message
|
||||||
|
user {
|
||||||
|
...UserSocialsFields
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
${UserSocialsFieldsFragmentDoc}
|
||||||
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useGetVideoSocialDetailsByIdQuery__
|
||||||
|
*
|
||||||
|
* To run a query within a React component, call `useGetVideoSocialDetailsByIdQuery` and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useGetVideoSocialDetailsByIdQuery` 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 } = useGetVideoSocialDetailsByIdQuery({
|
||||||
|
* variables: {
|
||||||
|
* videoId: // value for 'videoId'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useGetVideoSocialDetailsByIdQuery(
|
||||||
|
baseOptions: Apollo.QueryHookOptions<
|
||||||
|
GetVideoSocialDetailsByIdQuery,
|
||||||
|
GetVideoSocialDetailsByIdQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useQuery<
|
||||||
|
GetVideoSocialDetailsByIdQuery,
|
||||||
|
GetVideoSocialDetailsByIdQueryVariables
|
||||||
|
>(GetVideoSocialDetailsByIdDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetVideoSocialDetailsByIdLazyQuery(
|
||||||
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||||
|
GetVideoSocialDetailsByIdQuery,
|
||||||
|
GetVideoSocialDetailsByIdQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useLazyQuery<
|
||||||
|
GetVideoSocialDetailsByIdQuery,
|
||||||
|
GetVideoSocialDetailsByIdQueryVariables
|
||||||
|
>(GetVideoSocialDetailsByIdDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetVideoSocialDetailsByIdSuspenseQuery(
|
||||||
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||||
|
GetVideoSocialDetailsByIdQuery,
|
||||||
|
GetVideoSocialDetailsByIdQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useSuspenseQuery<
|
||||||
|
GetVideoSocialDetailsByIdQuery,
|
||||||
|
GetVideoSocialDetailsByIdQueryVariables
|
||||||
|
>(GetVideoSocialDetailsByIdDocument, options);
|
||||||
|
}
|
||||||
|
export type GetVideoSocialDetailsByIdQueryHookResult = ReturnType<
|
||||||
|
typeof useGetVideoSocialDetailsByIdQuery
|
||||||
|
>;
|
||||||
|
export type GetVideoSocialDetailsByIdLazyQueryHookResult = ReturnType<
|
||||||
|
typeof useGetVideoSocialDetailsByIdLazyQuery
|
||||||
|
>;
|
||||||
|
export type GetVideoSocialDetailsByIdSuspenseQueryHookResult = ReturnType<
|
||||||
|
typeof useGetVideoSocialDetailsByIdSuspenseQuery
|
||||||
|
>;
|
||||||
|
export type GetVideoSocialDetailsByIdQueryResult = Apollo.QueryResult<
|
||||||
|
GetVideoSocialDetailsByIdQuery,
|
||||||
|
GetVideoSocialDetailsByIdQueryVariables
|
||||||
|
>;
|
||||||
export const GetVideosDocument = gql`
|
export const GetVideosDocument = gql`
|
||||||
query GetVideos($videoIds: [Int!]!) {
|
query GetVideos($videoIds: [Int!]!) {
|
||||||
getVideos(videoIds: $videoIds) {
|
getVideos(videoIds: $videoIds) {
|
||||||
|
19
src/operations/comments.gql
Normal file
19
src/operations/comments.gql
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
mutation CommentOnVideo(
|
||||||
|
$videoId: Int!
|
||||||
|
$message: String!
|
||||||
|
$parentCommentId: Int
|
||||||
|
) {
|
||||||
|
commentOnVideo(
|
||||||
|
videoId: $videoId
|
||||||
|
message: $message
|
||||||
|
parentCommentId: $parentCommentId
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation EditComment($videoId: Int!, $commentId: Int!, $newMessage: String!) {
|
||||||
|
editComment(videoId: $videoId, commentId: $commentId, newMessage: $newMessage)
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation DeleteComment($videoId: Int!, $commentId: Int!) {
|
||||||
|
deleteComment(videoId: $videoId, commentId: $commentId)
|
||||||
|
}
|
@@ -15,6 +15,17 @@ query GetFeed(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fragment UserSocialsFields on UserGQL {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
followers {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fragment VideoCardFields on VideoGQL {
|
fragment VideoCardFields on VideoGQL {
|
||||||
id
|
id
|
||||||
owner {
|
owner {
|
||||||
@@ -40,6 +51,7 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
id
|
id
|
||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
isCompleted
|
isCompleted
|
||||||
|
streamSegmentType
|
||||||
}
|
}
|
||||||
tableSize
|
tableSize
|
||||||
tags {
|
tags {
|
||||||
@@ -61,17 +73,24 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
reactions {
|
reactions {
|
||||||
videoId
|
videoId
|
||||||
user {
|
user {
|
||||||
id
|
...UserSocialsFields
|
||||||
username
|
|
||||||
profileImageUri
|
|
||||||
followers {
|
|
||||||
id
|
|
||||||
username
|
|
||||||
profileImageUri
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
reaction
|
reaction
|
||||||
}
|
}
|
||||||
|
comments {
|
||||||
|
id
|
||||||
|
message
|
||||||
|
user {
|
||||||
|
...UserSocialsFields
|
||||||
|
}
|
||||||
|
replies {
|
||||||
|
id
|
||||||
|
message
|
||||||
|
user {
|
||||||
|
...UserSocialsFields
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetVideoFeed(
|
query GetVideoFeed(
|
||||||
|
@@ -27,6 +27,16 @@ query GetRunsForHighlights(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fragment PocketingIntentionFragment on PocketingIntentionFeaturesGQL {
|
||||||
|
make
|
||||||
|
targetPocketDistance
|
||||||
|
targetPocketAngle
|
||||||
|
targetPocketAngleDirection
|
||||||
|
marginOfErrorInDegrees
|
||||||
|
intendedPocketType
|
||||||
|
difficulty
|
||||||
|
}
|
||||||
|
|
||||||
query GetRunsWithTimestamps(
|
query GetRunsWithTimestamps(
|
||||||
$filterInput: RunFilterInput!
|
$filterInput: RunFilterInput!
|
||||||
$runIds: [Int!] = null
|
$runIds: [Int!] = null
|
||||||
@@ -47,8 +57,8 @@ query GetRunsWithTimestamps(
|
|||||||
videoId
|
videoId
|
||||||
id
|
id
|
||||||
createdAt
|
createdAt
|
||||||
shotDifficulty: pocketingIntentionFeatures {
|
pocketingIntentionFeatures {
|
||||||
difficulty
|
...PocketingIntentionFragment
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -185,6 +185,13 @@ fragment ShotWithAllFeatures on ShotGQL {
|
|||||||
}
|
}
|
||||||
notes
|
notes
|
||||||
}
|
}
|
||||||
|
video {
|
||||||
|
id
|
||||||
|
stream {
|
||||||
|
id
|
||||||
|
streamSegmentType
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation EditShot($shotId: Int!, $fieldsToEdit: EditableShotFieldInputGQL!) {
|
mutation EditShot($shotId: Int!, $fieldsToEdit: EditableShotFieldInputGQL!) {
|
||||||
|
@@ -82,6 +82,57 @@ query GetVideoDetails($videoId: Int!) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fragment UserSocialsFields on UserGQL {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
followers {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetVideoSocialDetailsById($videoId: Int!) {
|
||||||
|
getVideo(videoId: $videoId) {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
owner {
|
||||||
|
id
|
||||||
|
firebaseUid
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
tags {
|
||||||
|
tagClasses {
|
||||||
|
name
|
||||||
|
}
|
||||||
|
name
|
||||||
|
}
|
||||||
|
reactions {
|
||||||
|
videoId
|
||||||
|
user {
|
||||||
|
...UserSocialsFields
|
||||||
|
}
|
||||||
|
reaction
|
||||||
|
}
|
||||||
|
comments {
|
||||||
|
id
|
||||||
|
message
|
||||||
|
user {
|
||||||
|
...UserSocialsFields
|
||||||
|
}
|
||||||
|
replies {
|
||||||
|
id
|
||||||
|
message
|
||||||
|
user {
|
||||||
|
...UserSocialsFields
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
query GetVideos($videoIds: [Int!]!) {
|
query GetVideos($videoIds: [Int!]!) {
|
||||||
getVideos(videoIds: $videoIds) {
|
getVideos(videoIds: $videoIds) {
|
||||||
...VideoStreamMetadata
|
...VideoStreamMetadata
|
||||||
|
439
src/schema.gql
439
src/schema.gql
@@ -5,10 +5,28 @@ type Query {
|
|||||||
getBucketSet(keyName: String!): BucketSetGQL
|
getBucketSet(keyName: String!): BucketSetGQL
|
||||||
getDeployedConfig: DeployedConfigGQL!
|
getDeployedConfig: DeployedConfigGQL!
|
||||||
waitFor(duration: Float!): Float!
|
waitFor(duration: Float!): Float!
|
||||||
|
getFeedVideos(
|
||||||
|
limit: Int! = 5
|
||||||
|
after: String = null
|
||||||
|
includePrivate: IncludePrivateEnum! = MINE
|
||||||
|
includeCallersVideos: Boolean = true
|
||||||
|
filters: VideoFilterInput = null
|
||||||
|
feedInput: VideoFeedInputGQL = null
|
||||||
|
): VideoHistoryGQL!
|
||||||
getVideoMakePercentageIntervals(
|
getVideoMakePercentageIntervals(
|
||||||
videoId: ID!
|
videoId: ID!
|
||||||
intervalDuration: Int! = 300
|
intervalDuration: Int! = 300
|
||||||
): [MakePercentageIntervalGQL!]!
|
): [MakePercentageIntervalGQL!]!
|
||||||
|
getLongestRunsLeaderboard(
|
||||||
|
interval: TimeInterval = null
|
||||||
|
when: DateTime = null
|
||||||
|
limit: Int! = 100
|
||||||
|
requiredTags: [String!] = null
|
||||||
|
): RunLeaderboardGQL!
|
||||||
|
getMakesLeaderboard(
|
||||||
|
interval: TimeInterval = null
|
||||||
|
when: DateTime = null
|
||||||
|
): CountLeaderboardGQL!
|
||||||
getMedals(scope: MedalScope!, userId: Int = null): RequestedMedalsGQL!
|
getMedals(scope: MedalScope!, userId: Int = null): RequestedMedalsGQL!
|
||||||
getRuns(
|
getRuns(
|
||||||
filterInput: RunFilterInput!
|
filterInput: RunFilterInput!
|
||||||
@@ -17,6 +35,12 @@ type Query {
|
|||||||
limit: Int! = 500
|
limit: Int! = 500
|
||||||
countRespectsLimit: Boolean! = false
|
countRespectsLimit: Boolean! = false
|
||||||
): GetRunsResult!
|
): GetRunsResult!
|
||||||
|
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
||||||
|
getTableState(
|
||||||
|
b64Image: String!
|
||||||
|
tableSize: Float = 100
|
||||||
|
useHomography: HomographyInputGQL = null
|
||||||
|
): TableStateGQL!
|
||||||
getOrderedShots(
|
getOrderedShots(
|
||||||
filterInput: FilterInput!
|
filterInput: FilterInput!
|
||||||
ids: [Int!] = null
|
ids: [Int!] = null
|
||||||
@@ -38,7 +62,6 @@ type Query {
|
|||||||
countRespectsLimit: Boolean! = false
|
countRespectsLimit: Boolean! = false
|
||||||
): [ShotGQL!]!
|
): [ShotGQL!]!
|
||||||
getShotsByIds(ids: [Int!]!): [ShotGQL!]!
|
getShotsByIds(ids: [Int!]!): [ShotGQL!]!
|
||||||
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
|
||||||
getUser(userId: Int!): UserGQL
|
getUser(userId: Int!): UserGQL
|
||||||
doesUsernameExist(candidateUsername: String!): Boolean!
|
doesUsernameExist(candidateUsername: String!): Boolean!
|
||||||
getLoggedInUser: UserGQL
|
getLoggedInUser: UserGQL
|
||||||
@@ -63,24 +86,6 @@ type Query {
|
|||||||
getUserTags(includeRetiredTags: Boolean = false): [TagGQL!]!
|
getUserTags(includeRetiredTags: Boolean = false): [TagGQL!]!
|
||||||
getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL!
|
getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL!
|
||||||
getVideos(videoIds: [Int!]!): [VideoGQL!]!
|
getVideos(videoIds: [Int!]!): [VideoGQL!]!
|
||||||
getFeedVideos(
|
|
||||||
limit: Int! = 5
|
|
||||||
after: String = null
|
|
||||||
includePrivate: IncludePrivateEnum! = MINE
|
|
||||||
includeCallersVideos: Boolean = true
|
|
||||||
filters: VideoFilterInput = null
|
|
||||||
feedInput: VideoFeedInputGQL = null
|
|
||||||
): VideoHistoryGQL!
|
|
||||||
getLongestRunsLeaderboard(
|
|
||||||
interval: TimeInterval = null
|
|
||||||
when: DateTime = null
|
|
||||||
limit: Int! = 100
|
|
||||||
requiredTags: [String!] = null
|
|
||||||
): RunLeaderboardGQL!
|
|
||||||
getMakesLeaderboard(
|
|
||||||
interval: TimeInterval = null
|
|
||||||
when: DateTime = null
|
|
||||||
): CountLeaderboardGQL!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type AggregateResultGQL {
|
type AggregateResultGQL {
|
||||||
@@ -288,70 +293,54 @@ type DeployedConfigGQL {
|
|||||||
minimumAllowedAppVersion: String!
|
minimumAllowedAppVersion: String!
|
||||||
}
|
}
|
||||||
|
|
||||||
type MakePercentageIntervalGQL {
|
type VideoHistoryGQL {
|
||||||
makePercentage: Float!
|
videos: [VideoGQL!]!
|
||||||
elapsedTime: Float!
|
pageInfo: PageInfoGQL!
|
||||||
}
|
}
|
||||||
|
|
||||||
type RequestedMedalsGQL {
|
type VideoGQL {
|
||||||
distanceOver66: MedalGQL
|
|
||||||
distanceOver78: MedalGQL
|
|
||||||
distanceOver90: MedalGQL
|
|
||||||
runLength3: MedalGQL
|
|
||||||
runLength5: MedalGQL
|
|
||||||
runLength8: MedalGQL
|
|
||||||
runLength10: MedalGQL
|
|
||||||
runLength15: MedalGQL
|
|
||||||
runLength20: MedalGQL
|
|
||||||
runLength25: MedalGQL
|
|
||||||
runLength30: MedalGQL
|
|
||||||
runLength40: MedalGQL
|
|
||||||
runLength50: MedalGQL
|
|
||||||
totalMakes25: MedalGQL @deprecated(reason: "no longer supported")
|
|
||||||
totalMakes50: MedalGQL @deprecated(reason: "no longer supported")
|
|
||||||
totalMakes75: MedalGQL @deprecated(reason: "no longer supported")
|
|
||||||
totalMakes200: MedalGQL @deprecated(reason: "no longer supported")
|
|
||||||
totalMakes300: MedalGQL @deprecated(reason: "no longer supported")
|
|
||||||
totalMakes400: MedalGQL @deprecated(reason: "no longer supported")
|
|
||||||
totalMakes750: MedalGQL @deprecated(reason: "no longer supported")
|
|
||||||
totalMakes100: MedalGQL
|
|
||||||
totalMakes500: MedalGQL
|
|
||||||
totalMakes1000: MedalGQL
|
|
||||||
totalMakes5000: MedalGQL
|
|
||||||
totalMakes10000: MedalGQL
|
|
||||||
dailyMakes50: MedalGQL
|
|
||||||
dailyMakes100: MedalGQL
|
|
||||||
dailyMakes150: MedalGQL
|
|
||||||
dailyMakes200: MedalGQL
|
|
||||||
dailyMakes250: MedalGQL
|
|
||||||
}
|
|
||||||
|
|
||||||
type MedalGQL {
|
|
||||||
count: Int!
|
|
||||||
nickname: String
|
|
||||||
}
|
|
||||||
|
|
||||||
input MedalScope @oneOf {
|
|
||||||
videoId: Int
|
|
||||||
interval: TimeInterval
|
|
||||||
@deprecated(reason: "NO LONGER SUPPORTED, USE DATETIME_RANGE")
|
|
||||||
datetimeRange: DatetimeRangeAggregationInput
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetRunsResult {
|
|
||||||
runs: [RunGQL!]!
|
|
||||||
count: Int
|
|
||||||
runIds: [Int!]!
|
|
||||||
}
|
|
||||||
|
|
||||||
type RunGQL {
|
|
||||||
id: Int!
|
id: Int!
|
||||||
runLength: Int!
|
owner: UserGQL
|
||||||
videoId: Int!
|
name: String
|
||||||
userId: Int!
|
screenshotUri: String
|
||||||
|
totalShotsMade: Int!
|
||||||
|
totalShots: Int!
|
||||||
|
makePercentage: Float!
|
||||||
|
medianRun: Float
|
||||||
|
averageTimeBetweenShots: Float
|
||||||
|
averageDifficulty: Float
|
||||||
|
createdAt: DateTime
|
||||||
|
updatedAt: DateTime
|
||||||
shots: [ShotGQL!]!
|
shots: [ShotGQL!]!
|
||||||
video: VideoGQL!
|
startTime: DateTime
|
||||||
user: UserGQL!
|
endTime: DateTime
|
||||||
|
elapsedTime: Float
|
||||||
|
framesPerSecond: Float!
|
||||||
|
tableSize: Float!
|
||||||
|
private: Boolean!
|
||||||
|
stream: UploadStreamGQL
|
||||||
|
playlist: HLSPlaylistGQL
|
||||||
|
tags: [VideoTag!]!
|
||||||
|
currentHomography: HomographyInfoGQL
|
||||||
|
homographyHistory: [HomographyInfoGQL!]!
|
||||||
|
currentProcessing: VideoProcessingGQL
|
||||||
|
reactions: [ReactionGQL!]!
|
||||||
|
comments: [CommentGQL!]!
|
||||||
|
}
|
||||||
|
|
||||||
|
type UserGQL {
|
||||||
|
id: Int!
|
||||||
|
firebaseUid: String
|
||||||
|
username: String!
|
||||||
|
isAdmin: Boolean
|
||||||
|
fargoRating: Int
|
||||||
|
activeVideoId: Int
|
||||||
|
profileImageUri: String
|
||||||
|
createdAt: DateTime
|
||||||
|
updatedAt: DateTime
|
||||||
|
videosPrivateByDefault: Boolean
|
||||||
|
following: [UserGQL!]
|
||||||
|
followers: [UserGQL!]
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShotGQL {
|
type ShotGQL {
|
||||||
@@ -423,21 +412,6 @@ type SerializedShotPathsGQL {
|
|||||||
b64EncodedBuffer: String
|
b64EncodedBuffer: String
|
||||||
}
|
}
|
||||||
|
|
||||||
type UserGQL {
|
|
||||||
id: Int!
|
|
||||||
firebaseUid: String
|
|
||||||
username: String!
|
|
||||||
isAdmin: Boolean
|
|
||||||
fargoRating: Int
|
|
||||||
activeVideoId: Int
|
|
||||||
profileImageUri: String
|
|
||||||
createdAt: DateTime
|
|
||||||
updatedAt: DateTime
|
|
||||||
videosPrivateByDefault: Boolean
|
|
||||||
following: [UserGQL!]
|
|
||||||
followers: [UserGQL!]
|
|
||||||
}
|
|
||||||
|
|
||||||
type ShotAnnotationGQL {
|
type ShotAnnotationGQL {
|
||||||
shotId: Int!
|
shotId: Int!
|
||||||
type: ShotAnnotationTypeGQL!
|
type: ShotAnnotationTypeGQL!
|
||||||
@@ -453,33 +427,19 @@ type ShotAnnotationTypeGQL {
|
|||||||
name: String!
|
name: String!
|
||||||
}
|
}
|
||||||
|
|
||||||
type VideoGQL {
|
type RunGQL {
|
||||||
id: Int!
|
id: Int!
|
||||||
owner: UserGQL
|
runLength: Int!
|
||||||
name: String
|
videoId: Int!
|
||||||
screenshotUri: String
|
userId: Int!
|
||||||
totalShotsMade: Int!
|
|
||||||
totalShots: Int!
|
|
||||||
makePercentage: Float!
|
|
||||||
medianRun: Float
|
|
||||||
averageTimeBetweenShots: Float
|
|
||||||
averageDifficulty: Float
|
|
||||||
createdAt: DateTime
|
|
||||||
updatedAt: DateTime
|
|
||||||
shots: [ShotGQL!]!
|
shots: [ShotGQL!]!
|
||||||
startTime: DateTime
|
video: VideoGQL!
|
||||||
endTime: DateTime
|
user: UserGQL!
|
||||||
elapsedTime: Float
|
}
|
||||||
framesPerSecond: Float!
|
|
||||||
tableSize: Float!
|
type RunFeaturesGQL {
|
||||||
private: Boolean!
|
runId: Int!
|
||||||
stream: UploadStreamGQL
|
indexInRun: Int!
|
||||||
playlist: HLSPlaylistGQL
|
|
||||||
tags: [VideoTag!]!
|
|
||||||
currentHomography: HomographyInfoGQL
|
|
||||||
homographyHistory: [HomographyInfoGQL!]!
|
|
||||||
currentProcessing: VideoProcessingGQL
|
|
||||||
reactions: [ReactionGQL!]!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type UploadStreamGQL {
|
type UploadStreamGQL {
|
||||||
@@ -628,9 +588,107 @@ enum ReactionEnum {
|
|||||||
HUNDRED
|
HUNDRED
|
||||||
}
|
}
|
||||||
|
|
||||||
type RunFeaturesGQL {
|
type CommentGQL {
|
||||||
runId: Int!
|
id: Int!
|
||||||
indexInRun: Int!
|
user: UserGQL!
|
||||||
|
message: String!
|
||||||
|
replies: [CommentGQL!]!
|
||||||
|
}
|
||||||
|
|
||||||
|
type PageInfoGQL {
|
||||||
|
hasNextPage: Boolean!
|
||||||
|
endCursor: String
|
||||||
|
}
|
||||||
|
|
||||||
|
enum IncludePrivateEnum {
|
||||||
|
ALL
|
||||||
|
MINE
|
||||||
|
NONE
|
||||||
|
}
|
||||||
|
|
||||||
|
input VideoFilterInput {
|
||||||
|
isStreamCompleted: Boolean = null
|
||||||
|
requireCursorCompletion: Boolean! = true
|
||||||
|
createdAt: DateRangeFilter = null
|
||||||
|
excludeVideosWithNoShots: Boolean = null
|
||||||
|
}
|
||||||
|
|
||||||
|
input VideoFeedInputGQL @oneOf {
|
||||||
|
followedByUserId: Int
|
||||||
|
userId: Int
|
||||||
|
allUsers: Boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
type MakePercentageIntervalGQL {
|
||||||
|
makePercentage: Float!
|
||||||
|
elapsedTime: Float!
|
||||||
|
}
|
||||||
|
|
||||||
|
type RunLeaderboardGQL {
|
||||||
|
entries: [RunGQL!]!
|
||||||
|
}
|
||||||
|
|
||||||
|
type CountLeaderboardGQL {
|
||||||
|
entries: [UserShotCountEntry!]!
|
||||||
|
}
|
||||||
|
|
||||||
|
type UserShotCountEntry {
|
||||||
|
user: UserGQL!
|
||||||
|
value: Int!
|
||||||
|
total: Int!
|
||||||
|
proportionMade: Float!
|
||||||
|
videos: Int!
|
||||||
|
}
|
||||||
|
|
||||||
|
type RequestedMedalsGQL {
|
||||||
|
distanceOver66: MedalGQL
|
||||||
|
distanceOver78: MedalGQL
|
||||||
|
distanceOver90: MedalGQL
|
||||||
|
runLength3: MedalGQL
|
||||||
|
runLength5: MedalGQL
|
||||||
|
runLength8: MedalGQL
|
||||||
|
runLength10: MedalGQL
|
||||||
|
runLength15: MedalGQL
|
||||||
|
runLength20: MedalGQL
|
||||||
|
runLength25: MedalGQL
|
||||||
|
runLength30: MedalGQL
|
||||||
|
runLength40: MedalGQL
|
||||||
|
runLength50: MedalGQL
|
||||||
|
totalMakes25: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
|
totalMakes50: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
|
totalMakes75: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
|
totalMakes200: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
|
totalMakes300: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
|
totalMakes400: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
|
totalMakes750: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
|
totalMakes100: MedalGQL
|
||||||
|
totalMakes500: MedalGQL
|
||||||
|
totalMakes1000: MedalGQL
|
||||||
|
totalMakes5000: MedalGQL
|
||||||
|
totalMakes10000: MedalGQL
|
||||||
|
dailyMakes50: MedalGQL
|
||||||
|
dailyMakes100: MedalGQL
|
||||||
|
dailyMakes150: MedalGQL
|
||||||
|
dailyMakes200: MedalGQL
|
||||||
|
dailyMakes250: MedalGQL
|
||||||
|
}
|
||||||
|
|
||||||
|
type MedalGQL {
|
||||||
|
count: Int!
|
||||||
|
nickname: String
|
||||||
|
}
|
||||||
|
|
||||||
|
input MedalScope @oneOf {
|
||||||
|
videoId: Int
|
||||||
|
interval: TimeInterval
|
||||||
|
@deprecated(reason: "NO LONGER SUPPORTED, USE DATETIME_RANGE")
|
||||||
|
datetimeRange: DatetimeRangeAggregationInput
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetRunsResult {
|
||||||
|
runs: [RunGQL!]!
|
||||||
|
count: Int
|
||||||
|
runIds: [Int!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
input RunFilterInput {
|
input RunFilterInput {
|
||||||
@@ -665,6 +723,39 @@ input DatetimeOrdering {
|
|||||||
startingAt: DateTime = null
|
startingAt: DateTime = null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type TableStateGQL {
|
||||||
|
identifierToPosition: [[Float!]!]!
|
||||||
|
homography: HomographyInfoGQL
|
||||||
|
}
|
||||||
|
|
||||||
|
input HomographyInputGQL {
|
||||||
|
crop: BoundingBoxInputGQL!
|
||||||
|
pockets: [BoundingBoxInputGQL!]!
|
||||||
|
sourcePoints: PocketPointsInputGQL!
|
||||||
|
destPoints: PocketPointsInputGQL!
|
||||||
|
}
|
||||||
|
|
||||||
|
input BoundingBoxInputGQL {
|
||||||
|
left: Float!
|
||||||
|
top: Float!
|
||||||
|
width: Float!
|
||||||
|
height: Float!
|
||||||
|
}
|
||||||
|
|
||||||
|
input PocketPointsInputGQL {
|
||||||
|
topLeft: IntPoint2DInput!
|
||||||
|
topSide: IntPoint2DInput!
|
||||||
|
topRight: IntPoint2DInput!
|
||||||
|
bottomLeft: IntPoint2DInput!
|
||||||
|
bottomSide: IntPoint2DInput!
|
||||||
|
bottomRight: IntPoint2DInput!
|
||||||
|
}
|
||||||
|
|
||||||
|
input IntPoint2DInput {
|
||||||
|
x: Int!
|
||||||
|
y: Int!
|
||||||
|
}
|
||||||
|
|
||||||
type GetShotsResult {
|
type GetShotsResult {
|
||||||
shots: [ShotGQL!]!
|
shots: [ShotGQL!]!
|
||||||
count: Int
|
count: Int
|
||||||
@@ -714,23 +805,6 @@ type UserPlayTimeGQL {
|
|||||||
totalSeconds: Float!
|
totalSeconds: Float!
|
||||||
}
|
}
|
||||||
|
|
||||||
input VideoFilterInput {
|
|
||||||
isStreamCompleted: Boolean = null
|
|
||||||
requireCursorCompletion: Boolean! = true
|
|
||||||
createdAt: DateRangeFilter = null
|
|
||||||
excludeVideosWithNoShots: Boolean = null
|
|
||||||
}
|
|
||||||
|
|
||||||
type VideoHistoryGQL {
|
|
||||||
videos: [VideoGQL!]!
|
|
||||||
pageInfo: PageInfoGQL!
|
|
||||||
}
|
|
||||||
|
|
||||||
type PageInfoGQL {
|
|
||||||
hasNextPage: Boolean!
|
|
||||||
endCursor: String
|
|
||||||
}
|
|
||||||
|
|
||||||
type TagGQL {
|
type TagGQL {
|
||||||
id: Int!
|
id: Int!
|
||||||
name: String!
|
name: String!
|
||||||
@@ -751,41 +825,17 @@ scalar JSON
|
|||||||
url: "https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf"
|
url: "https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf"
|
||||||
)
|
)
|
||||||
|
|
||||||
enum IncludePrivateEnum {
|
|
||||||
ALL
|
|
||||||
MINE
|
|
||||||
NONE
|
|
||||||
}
|
|
||||||
|
|
||||||
input VideoFeedInputGQL @oneOf {
|
|
||||||
followedByUserId: Int
|
|
||||||
userId: Int
|
|
||||||
allUsers: Boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
type RunLeaderboardGQL {
|
|
||||||
entries: [RunGQL!]!
|
|
||||||
}
|
|
||||||
|
|
||||||
type CountLeaderboardGQL {
|
|
||||||
entries: [UserShotCountEntry!]!
|
|
||||||
}
|
|
||||||
|
|
||||||
type UserShotCountEntry {
|
|
||||||
user: UserGQL!
|
|
||||||
value: Int!
|
|
||||||
total: Int!
|
|
||||||
proportionMade: Float!
|
|
||||||
videos: Int!
|
|
||||||
}
|
|
||||||
|
|
||||||
type Mutation {
|
type Mutation {
|
||||||
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
||||||
setLoggerLevel(path: String!, level: String!): Boolean!
|
setLoggerLevel(path: String!, level: String!): Boolean!
|
||||||
editShot(
|
reactToVideo(videoId: Int!, reaction: ReactionEnum): Boolean!
|
||||||
shotId: Int!
|
commentOnVideo(
|
||||||
fieldsToEdit: EditableShotFieldInputGQL!
|
videoId: Int!
|
||||||
): EditShotReturn!
|
message: String!
|
||||||
|
parentCommentId: Int
|
||||||
|
): Boolean!
|
||||||
|
editComment(videoId: Int!, commentId: Int!, newMessage: String!): Boolean!
|
||||||
|
deleteComment(videoId: Int!, commentId: Int!): Boolean!
|
||||||
addAnnotationToShot(
|
addAnnotationToShot(
|
||||||
shotId: Int!
|
shotId: Int!
|
||||||
annotationName: String!
|
annotationName: String!
|
||||||
@@ -795,6 +845,10 @@ type Mutation {
|
|||||||
shotId: Int!
|
shotId: Int!
|
||||||
annotations: [UpdateAnnotationInputGQL!]!
|
annotations: [UpdateAnnotationInputGQL!]!
|
||||||
): UpdateShotAnnotationReturn!
|
): UpdateShotAnnotationReturn!
|
||||||
|
editShot(
|
||||||
|
shotId: Int!
|
||||||
|
fieldsToEdit: EditableShotFieldInputGQL!
|
||||||
|
): EditShotReturn!
|
||||||
getProfileImageUploadLink(
|
getProfileImageUploadLink(
|
||||||
fileExt: String = ".png"
|
fileExt: String = ".png"
|
||||||
): GetProfileUploadLinkReturn!
|
): GetProfileUploadLinkReturn!
|
||||||
@@ -817,7 +871,6 @@ type Mutation {
|
|||||||
editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean!
|
editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean!
|
||||||
deleteVideo(videoId: Int!): Boolean!
|
deleteVideo(videoId: Int!): Boolean!
|
||||||
deleteTags(videoId: Int!, tagsToDelete: [VideoTagInput!]!): Boolean!
|
deleteTags(videoId: Int!, tagsToDelete: [VideoTagInput!]!): Boolean!
|
||||||
reactToVideo(videoId: Int!, reaction: ReactionEnum): Boolean!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input CreateBucketSetInput {
|
input CreateBucketSetInput {
|
||||||
@@ -826,27 +879,6 @@ input CreateBucketSetInput {
|
|||||||
buckets: [BucketInputGQL!]!
|
buckets: [BucketInputGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
type EditShotReturn {
|
|
||||||
shot: ShotGQL
|
|
||||||
error: DoesNotOwnShotErr
|
|
||||||
}
|
|
||||||
|
|
||||||
type DoesNotOwnShotErr {
|
|
||||||
shotId: Int!
|
|
||||||
msg: String
|
|
||||||
}
|
|
||||||
|
|
||||||
input EditableShotFieldInputGQL {
|
|
||||||
intendedPocketType: PocketEnum
|
|
||||||
shotDirection: ShotDirectionEnum
|
|
||||||
spinType: SpinTypeEnum
|
|
||||||
targetPocketAngleDirection: ShotDirectionEnum
|
|
||||||
make: Boolean
|
|
||||||
backcut: Boolean
|
|
||||||
excludeFromStats: Boolean
|
|
||||||
notes: String
|
|
||||||
}
|
|
||||||
|
|
||||||
type AddShotAnnotationReturn {
|
type AddShotAnnotationReturn {
|
||||||
value: SuccessfulAddAddShotAnnotationErrors!
|
value: SuccessfulAddAddShotAnnotationErrors!
|
||||||
}
|
}
|
||||||
@@ -867,6 +899,11 @@ union DoesNotOwnShotErrOtherErrorNeedsNote =
|
|||||||
DoesNotOwnShotErr
|
DoesNotOwnShotErr
|
||||||
| OtherErrorNeedsNote
|
| OtherErrorNeedsNote
|
||||||
|
|
||||||
|
type DoesNotOwnShotErr {
|
||||||
|
shotId: Int!
|
||||||
|
msg: String
|
||||||
|
}
|
||||||
|
|
||||||
type OtherErrorNeedsNote {
|
type OtherErrorNeedsNote {
|
||||||
msg: String
|
msg: String
|
||||||
}
|
}
|
||||||
@@ -881,6 +918,22 @@ input UpdateAnnotationInputGQL {
|
|||||||
notes: String = null
|
notes: String = null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type EditShotReturn {
|
||||||
|
shot: ShotGQL
|
||||||
|
error: DoesNotOwnShotErr
|
||||||
|
}
|
||||||
|
|
||||||
|
input EditableShotFieldInputGQL {
|
||||||
|
intendedPocketType: PocketEnum
|
||||||
|
shotDirection: ShotDirectionEnum
|
||||||
|
spinType: SpinTypeEnum
|
||||||
|
targetPocketAngleDirection: ShotDirectionEnum
|
||||||
|
make: Boolean
|
||||||
|
backcut: Boolean
|
||||||
|
excludeFromStats: Boolean
|
||||||
|
notes: String
|
||||||
|
}
|
||||||
|
|
||||||
type GetProfileUploadLinkReturn {
|
type GetProfileUploadLinkReturn {
|
||||||
value: UploadLinkGetProfileUploadLinkErrors!
|
value: UploadLinkGetProfileUploadLinkErrors!
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user