Compare commits
15 Commits
mk/video-c
...
add-commen
Author | SHA1 | Date | |
---|---|---|---|
|
4918720ae3 | ||
8463ebf0e7 | |||
753179ca58 | |||
9ee5c721c1 | |||
00cca10cb3 | |||
ad704cad75 | |||
e2743abb59 | |||
e109e89a40 | |||
67bad20d24 | |||
0160455b9f | |||
170ff70b7a | |||
8df09b8c93 | |||
644ea66e98 | |||
0a5097c5c0 | |||
f4445f7ecb |
275
src/index.tsx
275
src/index.tsx
@@ -122,6 +122,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>;
|
||||||
@@ -2226,10 +2234,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 +2264,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 +2278,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 +2292,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"];
|
||||||
};
|
};
|
||||||
@@ -3008,6 +3036,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>;
|
||||||
@@ -3191,6 +3220,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";
|
||||||
@@ -3219,6 +3249,12 @@ export type GetFeedQuery = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
}>;
|
}>;
|
||||||
@@ -3258,6 +3294,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";
|
||||||
@@ -3283,6 +3320,12 @@ export type VideoCardFieldsFragment = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
@@ -3328,6 +3371,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";
|
||||||
@@ -3356,6 +3400,12 @@ export type GetVideoFeedQuery = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
}>;
|
}>;
|
||||||
@@ -3575,6 +3625,8 @@ export type GetRunsForHighlightsQueryVariables = Exact<{
|
|||||||
filterInput: RunFilterInput;
|
filterInput: RunFilterInput;
|
||||||
runIds?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
runIds?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
||||||
runsOrdering?: InputMaybe<GetRunsOrdering>;
|
runsOrdering?: InputMaybe<GetRunsOrdering>;
|
||||||
|
limit?: Scalars["Int"]["input"];
|
||||||
|
countRespectsLimit?: Scalars["Boolean"]["input"];
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type GetRunsForHighlightsQuery = {
|
export type GetRunsForHighlightsQuery = {
|
||||||
@@ -3594,6 +3646,55 @@ 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"]>;
|
||||||
|
runsOrdering?: InputMaybe<GetRunsOrdering>;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type GetRunsWithTimestampsQuery = {
|
||||||
|
__typename?: "Query";
|
||||||
|
getRuns: {
|
||||||
|
__typename?: "GetRunsResult";
|
||||||
|
count?: number | null;
|
||||||
|
runIds: Array<number>;
|
||||||
|
runs: Array<{
|
||||||
|
__typename?: "RunGQL";
|
||||||
|
id: number;
|
||||||
|
runLength: number;
|
||||||
|
userId: number;
|
||||||
|
videoId: number;
|
||||||
|
shots: Array<{
|
||||||
|
__typename?: "ShotGQL";
|
||||||
|
videoId: number;
|
||||||
|
id: number;
|
||||||
|
createdAt?: any | null;
|
||||||
|
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;
|
||||||
|
}>;
|
||||||
|
}>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type GetSerializedShotPathsQueryVariables = Exact<{
|
export type GetSerializedShotPathsQueryVariables = Exact<{
|
||||||
filterInput: FilterInput;
|
filterInput: FilterInput;
|
||||||
}>;
|
}>;
|
||||||
@@ -3762,6 +3863,15 @@ export type GetShotsWithMetadataFilterResultQuery = {
|
|||||||
name: string;
|
name: string;
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
|
video?: {
|
||||||
|
__typename?: "VideoGQL";
|
||||||
|
id: number;
|
||||||
|
stream?: {
|
||||||
|
__typename?: "UploadStreamGQL";
|
||||||
|
id: string;
|
||||||
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
|
} | null;
|
||||||
|
} | null;
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -3831,6 +3941,15 @@ export type GetShotsWithMetadataQuery = {
|
|||||||
name: string;
|
name: string;
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
|
video?: {
|
||||||
|
__typename?: "VideoGQL";
|
||||||
|
id: number;
|
||||||
|
stream?: {
|
||||||
|
__typename?: "UploadStreamGQL";
|
||||||
|
id: string;
|
||||||
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
|
} | null;
|
||||||
|
} | null;
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -3889,6 +4008,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;
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -3940,6 +4068,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<{
|
||||||
@@ -4008,6 +4145,15 @@ export type EditShotMutation = {
|
|||||||
name: string;
|
name: string;
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
|
video?: {
|
||||||
|
__typename?: "VideoGQL";
|
||||||
|
id: number;
|
||||||
|
stream?: {
|
||||||
|
__typename?: "UploadStreamGQL";
|
||||||
|
id: string;
|
||||||
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
|
} | null;
|
||||||
|
} | null;
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -5031,6 +5177,7 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|||||||
id
|
id
|
||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
isCompleted
|
isCompleted
|
||||||
|
streamSegmentType
|
||||||
}
|
}
|
||||||
tableSize
|
tableSize
|
||||||
tags {
|
tags {
|
||||||
@@ -5055,6 +5202,11 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
|
followers {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
}
|
}
|
||||||
reaction
|
reaction
|
||||||
}
|
}
|
||||||
@@ -5066,6 +5218,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
|
||||||
@@ -5120,6 +5283,13 @@ export const ShotWithAllFeaturesFragmentDoc = gql`
|
|||||||
}
|
}
|
||||||
notes
|
notes
|
||||||
}
|
}
|
||||||
|
video {
|
||||||
|
id
|
||||||
|
stream {
|
||||||
|
id
|
||||||
|
streamSegmentType
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
export const UserFragmentFragmentDoc = gql`
|
export const UserFragmentFragmentDoc = gql`
|
||||||
@@ -6037,11 +6207,15 @@ export const GetRunsForHighlightsDocument = gql`
|
|||||||
$filterInput: RunFilterInput!
|
$filterInput: RunFilterInput!
|
||||||
$runIds: [Int!] = null
|
$runIds: [Int!] = null
|
||||||
$runsOrdering: GetRunsOrdering
|
$runsOrdering: GetRunsOrdering
|
||||||
|
$limit: Int! = 500
|
||||||
|
$countRespectsLimit: Boolean! = false
|
||||||
) {
|
) {
|
||||||
getRuns(
|
getRuns(
|
||||||
filterInput: $filterInput
|
filterInput: $filterInput
|
||||||
runIds: $runIds
|
runIds: $runIds
|
||||||
runsOrdering: $runsOrdering
|
runsOrdering: $runsOrdering
|
||||||
|
limit: $limit
|
||||||
|
countRespectsLimit: $countRespectsLimit
|
||||||
) {
|
) {
|
||||||
count
|
count
|
||||||
runs {
|
runs {
|
||||||
@@ -6074,6 +6248,8 @@ export const GetRunsForHighlightsDocument = gql`
|
|||||||
* filterInput: // value for 'filterInput'
|
* filterInput: // value for 'filterInput'
|
||||||
* runIds: // value for 'runIds'
|
* runIds: // value for 'runIds'
|
||||||
* runsOrdering: // value for 'runsOrdering'
|
* runsOrdering: // value for 'runsOrdering'
|
||||||
|
* limit: // value for 'limit'
|
||||||
|
* countRespectsLimit: // value for 'countRespectsLimit'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
@@ -6126,6 +6302,105 @@ export type GetRunsForHighlightsQueryResult = Apollo.QueryResult<
|
|||||||
GetRunsForHighlightsQuery,
|
GetRunsForHighlightsQuery,
|
||||||
GetRunsForHighlightsQueryVariables
|
GetRunsForHighlightsQueryVariables
|
||||||
>;
|
>;
|
||||||
|
export const GetRunsWithTimestampsDocument = gql`
|
||||||
|
query GetRunsWithTimestamps(
|
||||||
|
$filterInput: RunFilterInput!
|
||||||
|
$runIds: [Int!] = null
|
||||||
|
$runsOrdering: GetRunsOrdering
|
||||||
|
) {
|
||||||
|
getRuns(
|
||||||
|
filterInput: $filterInput
|
||||||
|
runIds: $runIds
|
||||||
|
runsOrdering: $runsOrdering
|
||||||
|
) {
|
||||||
|
count
|
||||||
|
runs {
|
||||||
|
id
|
||||||
|
runLength
|
||||||
|
userId
|
||||||
|
videoId
|
||||||
|
shots {
|
||||||
|
videoId
|
||||||
|
id
|
||||||
|
createdAt
|
||||||
|
pocketingIntentionFeatures {
|
||||||
|
...PocketingIntentionFragment
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
runIds
|
||||||
|
}
|
||||||
|
}
|
||||||
|
${PocketingIntentionFragmentFragmentDoc}
|
||||||
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useGetRunsWithTimestampsQuery__
|
||||||
|
*
|
||||||
|
* To run a query within a React component, call `useGetRunsWithTimestampsQuery` and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useGetRunsWithTimestampsQuery` 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 } = useGetRunsWithTimestampsQuery({
|
||||||
|
* variables: {
|
||||||
|
* filterInput: // value for 'filterInput'
|
||||||
|
* runIds: // value for 'runIds'
|
||||||
|
* runsOrdering: // value for 'runsOrdering'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useGetRunsWithTimestampsQuery(
|
||||||
|
baseOptions: Apollo.QueryHookOptions<
|
||||||
|
GetRunsWithTimestampsQuery,
|
||||||
|
GetRunsWithTimestampsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useQuery<
|
||||||
|
GetRunsWithTimestampsQuery,
|
||||||
|
GetRunsWithTimestampsQueryVariables
|
||||||
|
>(GetRunsWithTimestampsDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetRunsWithTimestampsLazyQuery(
|
||||||
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||||
|
GetRunsWithTimestampsQuery,
|
||||||
|
GetRunsWithTimestampsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useLazyQuery<
|
||||||
|
GetRunsWithTimestampsQuery,
|
||||||
|
GetRunsWithTimestampsQueryVariables
|
||||||
|
>(GetRunsWithTimestampsDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetRunsWithTimestampsSuspenseQuery(
|
||||||
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||||
|
GetRunsWithTimestampsQuery,
|
||||||
|
GetRunsWithTimestampsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useSuspenseQuery<
|
||||||
|
GetRunsWithTimestampsQuery,
|
||||||
|
GetRunsWithTimestampsQueryVariables
|
||||||
|
>(GetRunsWithTimestampsDocument, options);
|
||||||
|
}
|
||||||
|
export type GetRunsWithTimestampsQueryHookResult = ReturnType<
|
||||||
|
typeof useGetRunsWithTimestampsQuery
|
||||||
|
>;
|
||||||
|
export type GetRunsWithTimestampsLazyQueryHookResult = ReturnType<
|
||||||
|
typeof useGetRunsWithTimestampsLazyQuery
|
||||||
|
>;
|
||||||
|
export type GetRunsWithTimestampsSuspenseQueryHookResult = ReturnType<
|
||||||
|
typeof useGetRunsWithTimestampsSuspenseQuery
|
||||||
|
>;
|
||||||
|
export type GetRunsWithTimestampsQueryResult = Apollo.QueryResult<
|
||||||
|
GetRunsWithTimestampsQuery,
|
||||||
|
GetRunsWithTimestampsQueryVariables
|
||||||
|
>;
|
||||||
export const GetSerializedShotPathsDocument = gql`
|
export const GetSerializedShotPathsDocument = gql`
|
||||||
query GetSerializedShotPaths($filterInput: FilterInput!) {
|
query GetSerializedShotPaths($filterInput: FilterInput!) {
|
||||||
getShots(filterInput: $filterInput) {
|
getShots(filterInput: $filterInput) {
|
||||||
|
@@ -40,6 +40,7 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
id
|
id
|
||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
isCompleted
|
isCompleted
|
||||||
|
streamSegmentType
|
||||||
}
|
}
|
||||||
tableSize
|
tableSize
|
||||||
tags {
|
tags {
|
||||||
@@ -64,6 +65,11 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
|
followers {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
}
|
}
|
||||||
reaction
|
reaction
|
||||||
}
|
}
|
||||||
|
@@ -2,6 +2,45 @@ query GetRunsForHighlights(
|
|||||||
$filterInput: RunFilterInput!
|
$filterInput: RunFilterInput!
|
||||||
$runIds: [Int!] = null
|
$runIds: [Int!] = null
|
||||||
$runsOrdering: GetRunsOrdering
|
$runsOrdering: GetRunsOrdering
|
||||||
|
$limit: Int! = 500
|
||||||
|
$countRespectsLimit: Boolean! = false
|
||||||
|
) {
|
||||||
|
getRuns(
|
||||||
|
filterInput: $filterInput
|
||||||
|
runIds: $runIds
|
||||||
|
runsOrdering: $runsOrdering
|
||||||
|
limit: $limit
|
||||||
|
countRespectsLimit: $countRespectsLimit
|
||||||
|
) {
|
||||||
|
count
|
||||||
|
runs {
|
||||||
|
id
|
||||||
|
runLength
|
||||||
|
userId
|
||||||
|
videoId
|
||||||
|
shots {
|
||||||
|
videoId
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
runIds
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fragment PocketingIntentionFragment on PocketingIntentionFeaturesGQL {
|
||||||
|
make
|
||||||
|
targetPocketDistance
|
||||||
|
targetPocketAngle
|
||||||
|
targetPocketAngleDirection
|
||||||
|
marginOfErrorInDegrees
|
||||||
|
intendedPocketType
|
||||||
|
difficulty
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetRunsWithTimestamps(
|
||||||
|
$filterInput: RunFilterInput!
|
||||||
|
$runIds: [Int!] = null
|
||||||
|
$runsOrdering: GetRunsOrdering
|
||||||
) {
|
) {
|
||||||
getRuns(
|
getRuns(
|
||||||
filterInput: $filterInput
|
filterInput: $filterInput
|
||||||
@@ -17,6 +56,10 @@ query GetRunsForHighlights(
|
|||||||
shots {
|
shots {
|
||||||
videoId
|
videoId
|
||||||
id
|
id
|
||||||
|
createdAt
|
||||||
|
pocketingIntentionFeatures {
|
||||||
|
...PocketingIntentionFragment
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
runIds
|
runIds
|
||||||
|
@@ -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!) {
|
||||||
|
@@ -480,6 +480,7 @@ type VideoGQL {
|
|||||||
homographyHistory: [HomographyInfoGQL!]!
|
homographyHistory: [HomographyInfoGQL!]!
|
||||||
currentProcessing: VideoProcessingGQL
|
currentProcessing: VideoProcessingGQL
|
||||||
reactions: [ReactionGQL!]!
|
reactions: [ReactionGQL!]!
|
||||||
|
comments: [CommentGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
type UploadStreamGQL {
|
type UploadStreamGQL {
|
||||||
@@ -628,6 +629,13 @@ enum ReactionEnum {
|
|||||||
HUNDRED
|
HUNDRED
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type CommentGQL {
|
||||||
|
id: Int!
|
||||||
|
user: UserGQL!
|
||||||
|
message: String!
|
||||||
|
replies: [CommentGQL!]!
|
||||||
|
}
|
||||||
|
|
||||||
type RunFeaturesGQL {
|
type RunFeaturesGQL {
|
||||||
runId: Int!
|
runId: Int!
|
||||||
indexInRun: Int!
|
indexInRun: Int!
|
||||||
@@ -818,6 +826,13 @@ type Mutation {
|
|||||||
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!
|
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 {
|
input CreateBucketSetInput {
|
||||||
|
Reference in New Issue
Block a user