Compare commits
10 Commits
dean/updat
...
master
Author | SHA1 | Date | |
---|---|---|---|
98266c7775 | |||
|
4918720ae3 | ||
8463ebf0e7 | |||
753179ca58 | |||
9ee5c721c1 | |||
00cca10cb3 | |||
ad704cad75 | |||
e2743abb59 | |||
67bad20d24 | |||
0160455b9f |
128
src/index.tsx
128
src/index.tsx
@ -122,6 +122,14 @@ export enum ClientUploadStatusEnum {
|
||||
UploadEnabled = "UPLOAD_ENABLED",
|
||||
}
|
||||
|
||||
export type CommentGql = {
|
||||
__typename?: "CommentGQL";
|
||||
id: Scalars["Int"]["output"];
|
||||
message: Scalars["String"]["output"];
|
||||
replies: Array<CommentGql>;
|
||||
user: UserGql;
|
||||
};
|
||||
|
||||
export type CountLeaderboardGql = {
|
||||
__typename?: "CountLeaderboardGQL";
|
||||
entries: Array<UserShotCountEntry>;
|
||||
@ -2226,10 +2234,13 @@ export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailed
|
||||
export type Mutation = {
|
||||
__typename?: "Mutation";
|
||||
addAnnotationToShot: AddShotAnnotationReturn;
|
||||
commentOnVideo: Scalars["Boolean"]["output"];
|
||||
createBucketSet: BucketSetGql;
|
||||
createUploadStream: CreateUploadStreamReturn;
|
||||
deleteComment: Scalars["Boolean"]["output"];
|
||||
deleteTags: Scalars["Boolean"]["output"];
|
||||
deleteVideo: Scalars["Boolean"]["output"];
|
||||
editComment: Scalars["Boolean"]["output"];
|
||||
editProfileImageUri: UserGql;
|
||||
editShot: EditShotReturn;
|
||||
editUploadStream: Scalars["Boolean"]["output"];
|
||||
@ -2253,6 +2264,12 @@ export type MutationAddAnnotationToShotArgs = {
|
||||
shotId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationCommentOnVideoArgs = {
|
||||
message: Scalars["String"]["input"];
|
||||
parentCommentId?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationCreateBucketSetArgs = {
|
||||
params: CreateBucketSetInput;
|
||||
};
|
||||
@ -2261,6 +2278,11 @@ export type MutationCreateUploadStreamArgs = {
|
||||
videoMetadata: VideoMetadataInput;
|
||||
};
|
||||
|
||||
export type MutationDeleteCommentArgs = {
|
||||
commentId: Scalars["Int"]["input"];
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationDeleteTagsArgs = {
|
||||
tagsToDelete: Array<VideoTagInput>;
|
||||
videoId: Scalars["Int"]["input"];
|
||||
@ -2270,6 +2292,12 @@ export type MutationDeleteVideoArgs = {
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationEditCommentArgs = {
|
||||
commentId: Scalars["Int"]["input"];
|
||||
newMessage: Scalars["String"]["input"];
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationEditProfileImageUriArgs = {
|
||||
profileImageUri: Scalars["String"]["input"];
|
||||
};
|
||||
@ -3008,6 +3036,7 @@ export type VideoGql = {
|
||||
__typename?: "VideoGQL";
|
||||
averageDifficulty?: Maybe<Scalars["Float"]["output"]>;
|
||||
averageTimeBetweenShots?: Maybe<Scalars["Float"]["output"]>;
|
||||
comments: Array<CommentGql>;
|
||||
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
currentHomography?: Maybe<HomographyInfoGql>;
|
||||
currentProcessing?: Maybe<VideoProcessingGql>;
|
||||
@ -3191,6 +3220,7 @@ export type GetFeedQuery = {
|
||||
id: string;
|
||||
lastIntendedSegmentBound?: number | null;
|
||||
isCompleted: boolean;
|
||||
streamSegmentType: StreamSegmentTypeEnum;
|
||||
} | null;
|
||||
tags: Array<{
|
||||
__typename?: "VideoTag";
|
||||
@ -3264,6 +3294,7 @@ export type VideoCardFieldsFragment = {
|
||||
id: string;
|
||||
lastIntendedSegmentBound?: number | null;
|
||||
isCompleted: boolean;
|
||||
streamSegmentType: StreamSegmentTypeEnum;
|
||||
} | null;
|
||||
tags: Array<{
|
||||
__typename?: "VideoTag";
|
||||
@ -3340,6 +3371,7 @@ export type GetVideoFeedQuery = {
|
||||
id: string;
|
||||
lastIntendedSegmentBound?: number | null;
|
||||
isCompleted: boolean;
|
||||
streamSegmentType: StreamSegmentTypeEnum;
|
||||
} | null;
|
||||
tags: Array<{
|
||||
__typename?: "VideoTag";
|
||||
@ -3593,6 +3625,8 @@ export type GetRunsForHighlightsQueryVariables = Exact<{
|
||||
filterInput: RunFilterInput;
|
||||
runIds?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
||||
runsOrdering?: InputMaybe<GetRunsOrdering>;
|
||||
limit?: Scalars["Int"]["input"];
|
||||
countRespectsLimit?: Scalars["Boolean"]["input"];
|
||||
}>;
|
||||
|
||||
export type GetRunsForHighlightsQuery = {
|
||||
@ -3612,6 +3646,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<{
|
||||
filterInput: RunFilterInput;
|
||||
runIds?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
||||
@ -3635,8 +3680,14 @@ export type GetRunsWithTimestampsQuery = {
|
||||
videoId: number;
|
||||
id: number;
|
||||
createdAt?: any | null;
|
||||
shotDifficulty?: {
|
||||
pocketingIntentionFeatures?: {
|
||||
__typename?: "PocketingIntentionFeaturesGQL";
|
||||
make?: boolean | null;
|
||||
targetPocketDistance?: number | null;
|
||||
targetPocketAngle?: number | null;
|
||||
targetPocketAngleDirection?: ShotDirectionEnum | null;
|
||||
marginOfErrorInDegrees?: number | null;
|
||||
intendedPocketType?: PocketEnum | null;
|
||||
difficulty?: number | null;
|
||||
} | null;
|
||||
}>;
|
||||
@ -3812,6 +3863,15 @@ export type GetShotsWithMetadataFilterResultQuery = {
|
||||
name: string;
|
||||
};
|
||||
}>;
|
||||
video?: {
|
||||
__typename?: "VideoGQL";
|
||||
id: number;
|
||||
stream?: {
|
||||
__typename?: "UploadStreamGQL";
|
||||
id: string;
|
||||
streamSegmentType: StreamSegmentTypeEnum;
|
||||
} | null;
|
||||
} | null;
|
||||
}>;
|
||||
};
|
||||
};
|
||||
@ -3881,6 +3941,15 @@ export type GetShotsWithMetadataQuery = {
|
||||
name: string;
|
||||
};
|
||||
}>;
|
||||
video?: {
|
||||
__typename?: "VideoGQL";
|
||||
id: number;
|
||||
stream?: {
|
||||
__typename?: "UploadStreamGQL";
|
||||
id: string;
|
||||
streamSegmentType: StreamSegmentTypeEnum;
|
||||
} | null;
|
||||
} | null;
|
||||
}>;
|
||||
};
|
||||
};
|
||||
@ -3939,6 +4008,15 @@ export type GetShotsByIdsQuery = {
|
||||
notes: string;
|
||||
type: { __typename?: "ShotAnnotationTypeGQL"; id: number; name: string };
|
||||
}>;
|
||||
video?: {
|
||||
__typename?: "VideoGQL";
|
||||
id: number;
|
||||
stream?: {
|
||||
__typename?: "UploadStreamGQL";
|
||||
id: string;
|
||||
streamSegmentType: StreamSegmentTypeEnum;
|
||||
} | null;
|
||||
} | null;
|
||||
}>;
|
||||
};
|
||||
|
||||
@ -3990,6 +4068,15 @@ export type ShotWithAllFeaturesFragment = {
|
||||
notes: 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<{
|
||||
@ -4058,6 +4145,15 @@ export type EditShotMutation = {
|
||||
name: string;
|
||||
};
|
||||
}>;
|
||||
video?: {
|
||||
__typename?: "VideoGQL";
|
||||
id: number;
|
||||
stream?: {
|
||||
__typename?: "UploadStreamGQL";
|
||||
id: string;
|
||||
streamSegmentType: StreamSegmentTypeEnum;
|
||||
} | null;
|
||||
} | null;
|
||||
} | null;
|
||||
};
|
||||
};
|
||||
@ -5081,6 +5177,7 @@ export const VideoCardFieldsFragmentDoc = gql`
|
||||
id
|
||||
lastIntendedSegmentBound
|
||||
isCompleted
|
||||
streamSegmentType
|
||||
}
|
||||
tableSize
|
||||
tags {
|
||||
@ -5121,6 +5218,17 @@ export const MedalFieldsFragmentDoc = gql`
|
||||
nickname
|
||||
}
|
||||
`;
|
||||
export const PocketingIntentionFragmentFragmentDoc = gql`
|
||||
fragment PocketingIntentionFragment on PocketingIntentionFeaturesGQL {
|
||||
make
|
||||
targetPocketDistance
|
||||
targetPocketAngle
|
||||
targetPocketAngleDirection
|
||||
marginOfErrorInDegrees
|
||||
intendedPocketType
|
||||
difficulty
|
||||
}
|
||||
`;
|
||||
export const ShotWithAllFeaturesFragmentDoc = gql`
|
||||
fragment ShotWithAllFeatures on ShotGQL {
|
||||
id
|
||||
@ -5175,6 +5283,13 @@ export const ShotWithAllFeaturesFragmentDoc = gql`
|
||||
}
|
||||
notes
|
||||
}
|
||||
video {
|
||||
id
|
||||
stream {
|
||||
id
|
||||
streamSegmentType
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
export const UserFragmentFragmentDoc = gql`
|
||||
@ -6092,11 +6207,15 @@ export const GetRunsForHighlightsDocument = gql`
|
||||
$filterInput: RunFilterInput!
|
||||
$runIds: [Int!] = null
|
||||
$runsOrdering: GetRunsOrdering
|
||||
$limit: Int! = 500
|
||||
$countRespectsLimit: Boolean! = false
|
||||
) {
|
||||
getRuns(
|
||||
filterInput: $filterInput
|
||||
runIds: $runIds
|
||||
runsOrdering: $runsOrdering
|
||||
limit: $limit
|
||||
countRespectsLimit: $countRespectsLimit
|
||||
) {
|
||||
count
|
||||
runs {
|
||||
@ -6129,6 +6248,8 @@ export const GetRunsForHighlightsDocument = gql`
|
||||
* filterInput: // value for 'filterInput'
|
||||
* runIds: // value for 'runIds'
|
||||
* runsOrdering: // value for 'runsOrdering'
|
||||
* limit: // value for 'limit'
|
||||
* countRespectsLimit: // value for 'countRespectsLimit'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
@ -6202,14 +6323,15 @@ export const GetRunsWithTimestampsDocument = gql`
|
||||
videoId
|
||||
id
|
||||
createdAt
|
||||
shotDifficulty: pocketingIntentionFeatures {
|
||||
difficulty
|
||||
pocketingIntentionFeatures {
|
||||
...PocketingIntentionFragment
|
||||
}
|
||||
}
|
||||
}
|
||||
runIds
|
||||
}
|
||||
}
|
||||
${PocketingIntentionFragmentFragmentDoc}
|
||||
`;
|
||||
|
||||
/**
|
||||
|
@ -40,6 +40,7 @@ fragment VideoCardFields on VideoGQL {
|
||||
id
|
||||
lastIntendedSegmentBound
|
||||
isCompleted
|
||||
streamSegmentType
|
||||
}
|
||||
tableSize
|
||||
tags {
|
||||
|
@ -2,11 +2,15 @@ query GetRunsForHighlights(
|
||||
$filterInput: RunFilterInput!
|
||||
$runIds: [Int!] = null
|
||||
$runsOrdering: GetRunsOrdering
|
||||
$limit: Int! = 500
|
||||
$countRespectsLimit: Boolean! = false
|
||||
) {
|
||||
getRuns(
|
||||
filterInput: $filterInput
|
||||
runIds: $runIds
|
||||
runsOrdering: $runsOrdering
|
||||
limit: $limit
|
||||
countRespectsLimit: $countRespectsLimit
|
||||
) {
|
||||
count
|
||||
runs {
|
||||
@ -23,6 +27,16 @@ query GetRunsForHighlights(
|
||||
}
|
||||
}
|
||||
|
||||
fragment PocketingIntentionFragment on PocketingIntentionFeaturesGQL {
|
||||
make
|
||||
targetPocketDistance
|
||||
targetPocketAngle
|
||||
targetPocketAngleDirection
|
||||
marginOfErrorInDegrees
|
||||
intendedPocketType
|
||||
difficulty
|
||||
}
|
||||
|
||||
query GetRunsWithTimestamps(
|
||||
$filterInput: RunFilterInput!
|
||||
$runIds: [Int!] = null
|
||||
@ -43,8 +57,8 @@ query GetRunsWithTimestamps(
|
||||
videoId
|
||||
id
|
||||
createdAt
|
||||
shotDifficulty: pocketingIntentionFeatures {
|
||||
difficulty
|
||||
pocketingIntentionFeatures {
|
||||
...PocketingIntentionFragment
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -185,6 +185,13 @@ fragment ShotWithAllFeatures on ShotGQL {
|
||||
}
|
||||
notes
|
||||
}
|
||||
video {
|
||||
id
|
||||
stream {
|
||||
id
|
||||
streamSegmentType
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mutation EditShot($shotId: Int!, $fieldsToEdit: EditableShotFieldInputGQL!) {
|
||||
|
@ -480,6 +480,7 @@ type VideoGQL {
|
||||
homographyHistory: [HomographyInfoGQL!]!
|
||||
currentProcessing: VideoProcessingGQL
|
||||
reactions: [ReactionGQL!]!
|
||||
comments: [CommentGQL!]!
|
||||
}
|
||||
|
||||
type UploadStreamGQL {
|
||||
@ -628,6 +629,13 @@ enum ReactionEnum {
|
||||
HUNDRED
|
||||
}
|
||||
|
||||
type CommentGQL {
|
||||
id: Int!
|
||||
user: UserGQL!
|
||||
message: String!
|
||||
replies: [CommentGQL!]!
|
||||
}
|
||||
|
||||
type RunFeaturesGQL {
|
||||
runId: Int!
|
||||
indexInRun: Int!
|
||||
@ -818,6 +826,13 @@ type Mutation {
|
||||
deleteVideo(videoId: Int!): Boolean!
|
||||
deleteTags(videoId: Int!, tagsToDelete: [VideoTagInput!]!): Boolean!
|
||||
reactToVideo(videoId: Int!, reaction: ReactionEnum): Boolean!
|
||||
commentOnVideo(
|
||||
videoId: Int!
|
||||
message: String!
|
||||
parentCommentId: Int
|
||||
): Boolean!
|
||||
editComment(videoId: Int!, commentId: Int!, newMessage: String!): Boolean!
|
||||
deleteComment(videoId: Int!, commentId: Int!): Boolean!
|
||||
}
|
||||
|
||||
input CreateBucketSetInput {
|
||||
|
Loading…
x
Reference in New Issue
Block a user