Compare commits
28 Commits
kat/named-
...
2745521664
Author | SHA1 | Date | |
---|---|---|---|
2745521664 | |||
8efa2e067c | |||
919fe5ba24 | |||
7ff60dc9c5 | |||
7e0d8a84ee | |||
9f26b5aa0f | |||
70303b9363 | |||
9ee1422d3e | |||
7a9d2545c4 | |||
c561ea20ab | |||
7ce0c058b7 | |||
c399edd882 | |||
32d8cb0d41 | |||
9d912ed21e | |||
0bcfd32b14 | |||
9b27d288da | |||
b0f94f5ea8 | |||
de653ba54c | |||
2657628a54 | |||
cd20cfcb40 | |||
2657a9baf7 | |||
9bb4b7c513 | |||
a5050ed08d | |||
b9e26243e9 | |||
021cd35278 | |||
8dda81236a | |||
c7ff615fe4 | |||
365cbb5f70 |
@@ -1,9 +1,16 @@
|
|||||||
# see: https://www.apollographql.com/docs/react/local-state/managing-state-with-field-policies/
|
# see: https://www.apollographql.com/docs/react/local-state/managing-state-with-field-policies/
|
||||||
directive @client on FIELD
|
directive @client on FIELD
|
||||||
|
|
||||||
|
type SegmentInfo {
|
||||||
|
index: Int!
|
||||||
|
time: Float!
|
||||||
|
}
|
||||||
|
|
||||||
extend type ShotGQL {
|
extend type ShotGQL {
|
||||||
startTime: Float!
|
startTime: Float!
|
||||||
endTime: Float!
|
endTime: Float!
|
||||||
|
startSegment: SegmentInfo!
|
||||||
|
endSegment: SegmentInfo!
|
||||||
}
|
}
|
||||||
|
|
||||||
extend type UploadStreamGQL {
|
extend type UploadStreamGQL {
|
||||||
|
249
src/index.tsx
249
src/index.tsx
@@ -2153,6 +2153,7 @@ export type Mutation = {
|
|||||||
getHlsInitUploadLink: GetUploadLinkReturn;
|
getHlsInitUploadLink: GetUploadLinkReturn;
|
||||||
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
||||||
getUploadLink: GetUploadLinkReturn;
|
getUploadLink: GetUploadLinkReturn;
|
||||||
|
retireTags: Scalars["Boolean"]["output"];
|
||||||
setLoggerLevel: Scalars["Boolean"]["output"];
|
setLoggerLevel: Scalars["Boolean"]["output"];
|
||||||
setSegmentDuration: Scalars["Boolean"]["output"];
|
setSegmentDuration: Scalars["Boolean"]["output"];
|
||||||
unfollowUser: UserGql;
|
unfollowUser: UserGql;
|
||||||
@@ -2217,6 +2218,10 @@ export type MutationGetUploadLinkArgs = {
|
|||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MutationRetireTagsArgs = {
|
||||||
|
tagIds: Array<Scalars["Int"]["input"]>;
|
||||||
|
};
|
||||||
|
|
||||||
export type MutationSetLoggerLevelArgs = {
|
export type MutationSetLoggerLevelArgs = {
|
||||||
level: Scalars["String"]["input"];
|
level: Scalars["String"]["input"];
|
||||||
path: Scalars["String"]["input"];
|
path: Scalars["String"]["input"];
|
||||||
@@ -2434,6 +2439,10 @@ export type QueryGetUserRelationshipsMatchingArgs = {
|
|||||||
userId: Scalars["Int"]["input"];
|
userId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type QueryGetUserTagsArgs = {
|
||||||
|
includeRetiredTags?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
|
};
|
||||||
|
|
||||||
export type QueryGetUserVideosArgs = {
|
export type QueryGetUserVideosArgs = {
|
||||||
after?: InputMaybe<Scalars["String"]["input"]>;
|
after?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
filters?: InputMaybe<VideoFilterInput>;
|
filters?: InputMaybe<VideoFilterInput>;
|
||||||
@@ -2556,6 +2565,12 @@ export type SegmentEndFramesGql = {
|
|||||||
segmentEndFrames: Array<Scalars["Int"]["output"]>;
|
segmentEndFrames: Array<Scalars["Int"]["output"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type SegmentInfo = {
|
||||||
|
__typename?: "SegmentInfo";
|
||||||
|
index: Scalars["Int"]["output"];
|
||||||
|
time: Scalars["Float"]["output"];
|
||||||
|
};
|
||||||
|
|
||||||
export type SegmentStartTimesGql = {
|
export type SegmentStartTimesGql = {
|
||||||
__typename?: "SegmentStartTimesGQL";
|
__typename?: "SegmentStartTimesGQL";
|
||||||
id: Scalars["Int"]["output"];
|
id: Scalars["Int"]["output"];
|
||||||
@@ -2608,6 +2623,7 @@ export type ShotGql = {
|
|||||||
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
cueObjectFeatures?: Maybe<CueObjectFeaturesGql>;
|
cueObjectFeatures?: Maybe<CueObjectFeaturesGql>;
|
||||||
endFrame: Scalars["Int"]["output"];
|
endFrame: Scalars["Int"]["output"];
|
||||||
|
endSegment: SegmentInfo;
|
||||||
endTime: Scalars["Float"]["output"];
|
endTime: Scalars["Float"]["output"];
|
||||||
falsePositiveScore?: Maybe<Scalars["Float"]["output"]>;
|
falsePositiveScore?: Maybe<Scalars["Float"]["output"]>;
|
||||||
id: Scalars["Int"]["output"];
|
id: Scalars["Int"]["output"];
|
||||||
@@ -2617,6 +2633,7 @@ export type ShotGql = {
|
|||||||
runFeatures?: Maybe<RunFeaturesGql>;
|
runFeatures?: Maybe<RunFeaturesGql>;
|
||||||
serializedShotPaths?: Maybe<SerializedShotPathsGql>;
|
serializedShotPaths?: Maybe<SerializedShotPathsGql>;
|
||||||
startFrame: Scalars["Int"]["output"];
|
startFrame: Scalars["Int"]["output"];
|
||||||
|
startSegment: SegmentInfo;
|
||||||
startTime: Scalars["Float"]["output"];
|
startTime: Scalars["Float"]["output"];
|
||||||
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
user?: Maybe<UserGql>;
|
user?: Maybe<UserGql>;
|
||||||
@@ -2708,13 +2725,20 @@ export type SuccessfulAddAddShotAnnotationErrors =
|
|||||||
| AddShotAnnotationErrors
|
| AddShotAnnotationErrors
|
||||||
| SuccessfulAdd;
|
| SuccessfulAdd;
|
||||||
|
|
||||||
export type TagGql = {
|
export type TagClassGql = {
|
||||||
__typename?: "TagGQL";
|
__typename?: "TagClassGQL";
|
||||||
group?: Maybe<Scalars["String"]["output"]>;
|
|
||||||
id: Scalars["Int"]["output"];
|
id: Scalars["Int"]["output"];
|
||||||
name: Scalars["String"]["output"];
|
name: Scalars["String"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type TagGql = {
|
||||||
|
__typename?: "TagGQL";
|
||||||
|
id: Scalars["Int"]["output"];
|
||||||
|
name: Scalars["String"]["output"];
|
||||||
|
retired: Scalars["Boolean"]["output"];
|
||||||
|
tagClasses?: Maybe<Array<TagClassGql>>;
|
||||||
|
};
|
||||||
|
|
||||||
export type TargetMetricsGql = {
|
export type TargetMetricsGql = {
|
||||||
__typename?: "TargetMetricsGQL";
|
__typename?: "TargetMetricsGQL";
|
||||||
averageDifficulty?: Maybe<Scalars["Float"]["output"]>;
|
averageDifficulty?: Maybe<Scalars["Float"]["output"]>;
|
||||||
@@ -2869,6 +2893,7 @@ export type VideoFilterInput = {
|
|||||||
|
|
||||||
export type VideoGql = {
|
export type VideoGql = {
|
||||||
__typename?: "VideoGQL";
|
__typename?: "VideoGQL";
|
||||||
|
averageDifficulty?: Maybe<Scalars["Float"]["output"]>;
|
||||||
averageTimeBetweenShots?: Maybe<Scalars["Float"]["output"]>;
|
averageTimeBetweenShots?: Maybe<Scalars["Float"]["output"]>;
|
||||||
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
currentHomography?: Maybe<HomographyInfoGql>;
|
currentHomography?: Maybe<HomographyInfoGql>;
|
||||||
@@ -2906,6 +2931,7 @@ export type VideoMetadataInput = {
|
|||||||
endStream?: Scalars["Boolean"]["input"];
|
endStream?: Scalars["Boolean"]["input"];
|
||||||
endTime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
endTime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
framesPerSecond?: InputMaybe<Scalars["Float"]["input"]>;
|
framesPerSecond?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
|
/** @deprecated `game_type` is deprecated. Use `tags` instead. */
|
||||||
gameType?: InputMaybe<Scalars["String"]["input"]>;
|
gameType?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
lastIntendedSegmentBound?: InputMaybe<Scalars["Int"]["input"]>;
|
lastIntendedSegmentBound?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
private?: InputMaybe<Scalars["Boolean"]["input"]>;
|
private?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
@@ -2913,6 +2939,8 @@ export type VideoMetadataInput = {
|
|||||||
startTime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
startTime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
streamSegmentType?: InputMaybe<StreamSegmentTypeEnum>;
|
streamSegmentType?: InputMaybe<StreamSegmentTypeEnum>;
|
||||||
tableSize?: InputMaybe<Scalars["Float"]["input"]>;
|
tableSize?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
|
/** A list of tags associated with the video. Replace `game_type` */
|
||||||
|
tags?: InputMaybe<Array<VideoTagInput>>;
|
||||||
videoName?: InputMaybe<Scalars["String"]["input"]>;
|
videoName?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -3029,6 +3057,8 @@ export type GetFeedQuery = {
|
|||||||
totalShotsMade: number;
|
totalShotsMade: number;
|
||||||
totalShots: number;
|
totalShots: number;
|
||||||
makePercentage: number;
|
makePercentage: number;
|
||||||
|
averageTimeBetweenShots?: number | null;
|
||||||
|
averageDifficulty?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
startTime?: any | null;
|
startTime?: any | null;
|
||||||
@@ -3083,6 +3113,8 @@ export type VideoCardFieldsFragment = {
|
|||||||
totalShotsMade: number;
|
totalShotsMade: number;
|
||||||
totalShots: number;
|
totalShots: number;
|
||||||
makePercentage: number;
|
makePercentage: number;
|
||||||
|
averageTimeBetweenShots?: number | null;
|
||||||
|
averageDifficulty?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
startTime?: any | null;
|
startTime?: any | null;
|
||||||
@@ -3140,6 +3172,8 @@ export type GetVideoFeedQuery = {
|
|||||||
totalShotsMade: number;
|
totalShotsMade: number;
|
||||||
totalShots: number;
|
totalShots: number;
|
||||||
makePercentage: number;
|
makePercentage: number;
|
||||||
|
averageTimeBetweenShots?: number | null;
|
||||||
|
averageDifficulty?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
startTime?: any | null;
|
startTime?: any | null;
|
||||||
@@ -3380,6 +3414,29 @@ export type GetMedalsQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetRunsForHighlightsQueryVariables = Exact<{
|
||||||
|
filterInput: RunFilterInput;
|
||||||
|
runIds?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
||||||
|
runsOrdering?: InputMaybe<GetRunsOrdering>;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type GetRunsForHighlightsQuery = {
|
||||||
|
__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 }>;
|
||||||
|
}>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type GetSerializedShotPathsQueryVariables = Exact<{
|
export type GetSerializedShotPathsQueryVariables = Exact<{
|
||||||
filterInput: FilterInput;
|
filterInput: FilterInput;
|
||||||
}>;
|
}>;
|
||||||
@@ -3507,6 +3564,8 @@ export type GetShotsWithMetadataFilterResultQuery = {
|
|||||||
falsePositiveScore?: number | null;
|
falsePositiveScore?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
|
startSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
||||||
|
endSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
||||||
user?: { __typename?: "UserGQL"; id: number } | null;
|
user?: { __typename?: "UserGQL"; id: number } | null;
|
||||||
cueObjectFeatures?: {
|
cueObjectFeatures?: {
|
||||||
__typename?: "CueObjectFeaturesGQL";
|
__typename?: "CueObjectFeaturesGQL";
|
||||||
@@ -3574,6 +3633,8 @@ export type GetShotsWithMetadataQuery = {
|
|||||||
falsePositiveScore?: number | null;
|
falsePositiveScore?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
|
startSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
||||||
|
endSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
||||||
user?: { __typename?: "UserGQL"; id: number } | null;
|
user?: { __typename?: "UserGQL"; id: number } | null;
|
||||||
cueObjectFeatures?: {
|
cueObjectFeatures?: {
|
||||||
__typename?: "CueObjectFeaturesGQL";
|
__typename?: "CueObjectFeaturesGQL";
|
||||||
@@ -3634,6 +3695,8 @@ export type GetShotsByIdsQuery = {
|
|||||||
falsePositiveScore?: number | null;
|
falsePositiveScore?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
|
startSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
||||||
|
endSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
||||||
user?: { __typename?: "UserGQL"; id: number } | null;
|
user?: { __typename?: "UserGQL"; id: number } | null;
|
||||||
cueObjectFeatures?: {
|
cueObjectFeatures?: {
|
||||||
__typename?: "CueObjectFeaturesGQL";
|
__typename?: "CueObjectFeaturesGQL";
|
||||||
@@ -3683,6 +3746,8 @@ export type ShotWithAllFeaturesFragment = {
|
|||||||
falsePositiveScore?: number | null;
|
falsePositiveScore?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
|
startSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
||||||
|
endSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
||||||
user?: { __typename?: "UserGQL"; id: number } | null;
|
user?: { __typename?: "UserGQL"; id: number } | null;
|
||||||
cueObjectFeatures?: {
|
cueObjectFeatures?: {
|
||||||
__typename?: "CueObjectFeaturesGQL";
|
__typename?: "CueObjectFeaturesGQL";
|
||||||
@@ -3745,6 +3810,8 @@ export type EditShotMutation = {
|
|||||||
falsePositiveScore?: number | null;
|
falsePositiveScore?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
|
startSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
||||||
|
endSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
||||||
user?: { __typename?: "UserGQL"; id: number } | null;
|
user?: { __typename?: "UserGQL"; id: number } | null;
|
||||||
cueObjectFeatures?: {
|
cueObjectFeatures?: {
|
||||||
__typename?: "CueObjectFeaturesGQL";
|
__typename?: "CueObjectFeaturesGQL";
|
||||||
@@ -3788,6 +3855,15 @@ export type EditShotMutation = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type RetireTagsMutationVariables = Exact<{
|
||||||
|
tagIds: Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"];
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type RetireTagsMutation = {
|
||||||
|
__typename?: "Mutation";
|
||||||
|
retireTags: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
export type GetProfileImageUploadLinkMutationVariables = Exact<{
|
export type GetProfileImageUploadLinkMutationVariables = Exact<{
|
||||||
fileExt?: InputMaybe<Scalars["String"]["input"]>;
|
fileExt?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
}>;
|
}>;
|
||||||
@@ -3927,7 +4003,16 @@ export type GetUserTagsQueryVariables = Exact<{ [key: string]: never }>;
|
|||||||
|
|
||||||
export type GetUserTagsQuery = {
|
export type GetUserTagsQuery = {
|
||||||
__typename?: "Query";
|
__typename?: "Query";
|
||||||
getUserTags: Array<{ __typename?: "TagGQL"; id: number; name: string }>;
|
getUserTags: Array<{
|
||||||
|
__typename?: "TagGQL";
|
||||||
|
id: number;
|
||||||
|
name: string;
|
||||||
|
tagClasses?: Array<{
|
||||||
|
__typename?: "TagClassGQL";
|
||||||
|
id: number;
|
||||||
|
name: string;
|
||||||
|
}> | null;
|
||||||
|
}>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type FollowUserMutationVariables = Exact<{
|
export type FollowUserMutationVariables = Exact<{
|
||||||
@@ -4766,6 +4851,8 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|||||||
totalShotsMade
|
totalShotsMade
|
||||||
totalShots
|
totalShots
|
||||||
makePercentage
|
makePercentage
|
||||||
|
averageTimeBetweenShots
|
||||||
|
averageDifficulty
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
startTime
|
startTime
|
||||||
@@ -4811,6 +4898,14 @@ export const ShotWithAllFeaturesFragmentDoc = gql`
|
|||||||
endFrame
|
endFrame
|
||||||
startTime @client
|
startTime @client
|
||||||
endTime @client
|
endTime @client
|
||||||
|
startSegment @client {
|
||||||
|
index
|
||||||
|
time
|
||||||
|
}
|
||||||
|
endSegment @client {
|
||||||
|
index
|
||||||
|
time
|
||||||
|
}
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
@@ -5712,6 +5807,100 @@ export type GetMedalsQueryResult = Apollo.QueryResult<
|
|||||||
GetMedalsQuery,
|
GetMedalsQuery,
|
||||||
GetMedalsQueryVariables
|
GetMedalsQueryVariables
|
||||||
>;
|
>;
|
||||||
|
export const GetRunsForHighlightsDocument = gql`
|
||||||
|
query GetRunsForHighlights(
|
||||||
|
$filterInput: RunFilterInput!
|
||||||
|
$runIds: [Int!] = null
|
||||||
|
$runsOrdering: GetRunsOrdering
|
||||||
|
) {
|
||||||
|
getRuns(
|
||||||
|
filterInput: $filterInput
|
||||||
|
runIds: $runIds
|
||||||
|
runsOrdering: $runsOrdering
|
||||||
|
) {
|
||||||
|
count
|
||||||
|
runs {
|
||||||
|
id
|
||||||
|
runLength
|
||||||
|
userId
|
||||||
|
videoId
|
||||||
|
shots {
|
||||||
|
videoId
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
runIds
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useGetRunsForHighlightsQuery__
|
||||||
|
*
|
||||||
|
* To run a query within a React component, call `useGetRunsForHighlightsQuery` and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useGetRunsForHighlightsQuery` 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 } = useGetRunsForHighlightsQuery({
|
||||||
|
* variables: {
|
||||||
|
* filterInput: // value for 'filterInput'
|
||||||
|
* runIds: // value for 'runIds'
|
||||||
|
* runsOrdering: // value for 'runsOrdering'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useGetRunsForHighlightsQuery(
|
||||||
|
baseOptions: Apollo.QueryHookOptions<
|
||||||
|
GetRunsForHighlightsQuery,
|
||||||
|
GetRunsForHighlightsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useQuery<
|
||||||
|
GetRunsForHighlightsQuery,
|
||||||
|
GetRunsForHighlightsQueryVariables
|
||||||
|
>(GetRunsForHighlightsDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetRunsForHighlightsLazyQuery(
|
||||||
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||||
|
GetRunsForHighlightsQuery,
|
||||||
|
GetRunsForHighlightsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useLazyQuery<
|
||||||
|
GetRunsForHighlightsQuery,
|
||||||
|
GetRunsForHighlightsQueryVariables
|
||||||
|
>(GetRunsForHighlightsDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetRunsForHighlightsSuspenseQuery(
|
||||||
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||||
|
GetRunsForHighlightsQuery,
|
||||||
|
GetRunsForHighlightsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useSuspenseQuery<
|
||||||
|
GetRunsForHighlightsQuery,
|
||||||
|
GetRunsForHighlightsQueryVariables
|
||||||
|
>(GetRunsForHighlightsDocument, options);
|
||||||
|
}
|
||||||
|
export type GetRunsForHighlightsQueryHookResult = ReturnType<
|
||||||
|
typeof useGetRunsForHighlightsQuery
|
||||||
|
>;
|
||||||
|
export type GetRunsForHighlightsLazyQueryHookResult = ReturnType<
|
||||||
|
typeof useGetRunsForHighlightsLazyQuery
|
||||||
|
>;
|
||||||
|
export type GetRunsForHighlightsSuspenseQueryHookResult = ReturnType<
|
||||||
|
typeof useGetRunsForHighlightsSuspenseQuery
|
||||||
|
>;
|
||||||
|
export type GetRunsForHighlightsQueryResult = Apollo.QueryResult<
|
||||||
|
GetRunsForHighlightsQuery,
|
||||||
|
GetRunsForHighlightsQueryVariables
|
||||||
|
>;
|
||||||
export const GetSerializedShotPathsDocument = gql`
|
export const GetSerializedShotPathsDocument = gql`
|
||||||
query GetSerializedShotPaths($filterInput: FilterInput!) {
|
query GetSerializedShotPaths($filterInput: FilterInput!) {
|
||||||
getShots(filterInput: $filterInput) {
|
getShots(filterInput: $filterInput) {
|
||||||
@@ -6425,6 +6614,54 @@ export type EditShotMutationOptions = Apollo.BaseMutationOptions<
|
|||||||
EditShotMutation,
|
EditShotMutation,
|
||||||
EditShotMutationVariables
|
EditShotMutationVariables
|
||||||
>;
|
>;
|
||||||
|
export const RetireTagsDocument = gql`
|
||||||
|
mutation RetireTags($tagIds: [Int!]!) {
|
||||||
|
retireTags(tagIds: $tagIds)
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
export type RetireTagsMutationFn = Apollo.MutationFunction<
|
||||||
|
RetireTagsMutation,
|
||||||
|
RetireTagsMutationVariables
|
||||||
|
>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useRetireTagsMutation__
|
||||||
|
*
|
||||||
|
* To run a mutation, you first call `useRetireTagsMutation` within a React component and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useRetireTagsMutation` 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 [retireTagsMutation, { data, loading, error }] = useRetireTagsMutation({
|
||||||
|
* variables: {
|
||||||
|
* tagIds: // value for 'tagIds'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useRetireTagsMutation(
|
||||||
|
baseOptions?: Apollo.MutationHookOptions<
|
||||||
|
RetireTagsMutation,
|
||||||
|
RetireTagsMutationVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useMutation<RetireTagsMutation, RetireTagsMutationVariables>(
|
||||||
|
RetireTagsDocument,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
export type RetireTagsMutationHookResult = ReturnType<
|
||||||
|
typeof useRetireTagsMutation
|
||||||
|
>;
|
||||||
|
export type RetireTagsMutationResult =
|
||||||
|
Apollo.MutationResult<RetireTagsMutation>;
|
||||||
|
export type RetireTagsMutationOptions = Apollo.BaseMutationOptions<
|
||||||
|
RetireTagsMutation,
|
||||||
|
RetireTagsMutationVariables
|
||||||
|
>;
|
||||||
export const GetProfileImageUploadLinkDocument = gql`
|
export const GetProfileImageUploadLinkDocument = gql`
|
||||||
mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
||||||
getProfileImageUploadLink(fileExt: $fileExt) {
|
getProfileImageUploadLink(fileExt: $fileExt) {
|
||||||
@@ -6932,6 +7169,10 @@ export const GetUserTagsDocument = gql`
|
|||||||
getUserTags {
|
getUserTags {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
|
tagClasses {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
@@ -27,6 +27,8 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
totalShotsMade
|
totalShotsMade
|
||||||
totalShots
|
totalShots
|
||||||
makePercentage
|
makePercentage
|
||||||
|
averageTimeBetweenShots
|
||||||
|
averageDifficulty
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
startTime
|
startTime
|
||||||
|
24
src/operations/runs.gql
Normal file
24
src/operations/runs.gql
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
query GetRunsForHighlights(
|
||||||
|
$filterInput: RunFilterInput!
|
||||||
|
$runIds: [Int!] = null
|
||||||
|
$runsOrdering: GetRunsOrdering
|
||||||
|
) {
|
||||||
|
getRuns(
|
||||||
|
filterInput: $filterInput
|
||||||
|
runIds: $runIds
|
||||||
|
runsOrdering: $runsOrdering
|
||||||
|
) {
|
||||||
|
count
|
||||||
|
runs {
|
||||||
|
id
|
||||||
|
runLength
|
||||||
|
userId
|
||||||
|
videoId
|
||||||
|
shots {
|
||||||
|
videoId
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
runIds
|
||||||
|
}
|
||||||
|
}
|
@@ -139,6 +139,14 @@ fragment ShotWithAllFeatures on ShotGQL {
|
|||||||
endFrame
|
endFrame
|
||||||
startTime @client
|
startTime @client
|
||||||
endTime @client
|
endTime @client
|
||||||
|
startSegment @client {
|
||||||
|
index
|
||||||
|
time
|
||||||
|
}
|
||||||
|
endSegment @client {
|
||||||
|
index
|
||||||
|
time
|
||||||
|
}
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
|
3
src/operations/tags.gql
Normal file
3
src/operations/tags.gql
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
mutation RetireTags($tagIds: [Int!]!) {
|
||||||
|
retireTags(tagIds: $tagIds)
|
||||||
|
}
|
@@ -79,6 +79,10 @@ query GetUserTags {
|
|||||||
getUserTags {
|
getUserTags {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
|
tagClasses {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -60,7 +60,7 @@ type Query {
|
|||||||
after: String = null
|
after: String = null
|
||||||
filters: VideoFilterInput = null
|
filters: VideoFilterInput = null
|
||||||
): VideoHistoryGQL!
|
): VideoHistoryGQL!
|
||||||
getUserTags: [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(
|
getFeedVideos(
|
||||||
@@ -462,6 +462,7 @@ type VideoGQL {
|
|||||||
makePercentage: Float!
|
makePercentage: Float!
|
||||||
medianRun: Float
|
medianRun: Float
|
||||||
averageTimeBetweenShots: Float
|
averageTimeBetweenShots: Float
|
||||||
|
averageDifficulty: Float
|
||||||
createdAt: DateTime
|
createdAt: DateTime
|
||||||
updatedAt: DateTime
|
updatedAt: DateTime
|
||||||
shots: [ShotGQL!]!
|
shots: [ShotGQL!]!
|
||||||
@@ -714,9 +715,15 @@ type PageInfoGQL {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type TagGQL {
|
type TagGQL {
|
||||||
name: String!
|
|
||||||
id: Int!
|
id: Int!
|
||||||
group: String
|
name: String!
|
||||||
|
tagClasses: [TagClassGQL!]
|
||||||
|
retired: Boolean!
|
||||||
|
}
|
||||||
|
|
||||||
|
type TagClassGQL {
|
||||||
|
id: Int!
|
||||||
|
name: String!
|
||||||
}
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@@ -778,6 +785,7 @@ type Mutation {
|
|||||||
editUser(input: EditUserInputGQL!): UserGQL!
|
editUser(input: EditUserInputGQL!): UserGQL!
|
||||||
followUser(followedUserId: Int!): UserGQL!
|
followUser(followedUserId: Int!): UserGQL!
|
||||||
unfollowUser(followedUserId: Int!): UserGQL!
|
unfollowUser(followedUserId: Int!): UserGQL!
|
||||||
|
retireTags(tagIds: [Int!]!): Boolean!
|
||||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||||
createUploadStream(
|
createUploadStream(
|
||||||
videoMetadata: VideoMetadataInput!
|
videoMetadata: VideoMetadataInput!
|
||||||
@@ -895,6 +903,12 @@ input VideoMetadataInput {
|
|||||||
startTime: DateTime = null
|
startTime: DateTime = null
|
||||||
endTime: DateTime = null
|
endTime: DateTime = null
|
||||||
gameType: String = null
|
gameType: String = null
|
||||||
|
@deprecated(reason: "`game_type` is deprecated. Use `tags` instead.")
|
||||||
|
|
||||||
|
"""
|
||||||
|
A list of tags associated with the video. Replace `game_type`
|
||||||
|
"""
|
||||||
|
tags: [VideoTagInput!] = null
|
||||||
tableSize: Float = null
|
tableSize: Float = null
|
||||||
lastIntendedSegmentBound: Int = null
|
lastIntendedSegmentBound: Int = null
|
||||||
streamSegmentType: StreamSegmentTypeEnum = null
|
streamSegmentType: StreamSegmentTypeEnum = null
|
||||||
|
Reference in New Issue
Block a user