Compare commits
11 Commits
kat/named-
...
de653ba54c
Author | SHA1 | Date | |
---|---|---|---|
de653ba54c | |||
2657628a54 | |||
cd20cfcb40 | |||
2657a9baf7 | |||
9bb4b7c513 | |||
a5050ed08d | |||
b9e26243e9 | |||
021cd35278 | |||
8dda81236a | |||
c7ff615fe4 | |||
365cbb5f70 |
142
src/index.tsx
142
src/index.tsx
@@ -2708,13 +2708,19 @@ 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"];
|
||||||
|
tagClasses?: Maybe<Array<TagClassGql>>;
|
||||||
|
};
|
||||||
|
|
||||||
export type TargetMetricsGql = {
|
export type TargetMetricsGql = {
|
||||||
__typename?: "TargetMetricsGQL";
|
__typename?: "TargetMetricsGQL";
|
||||||
averageDifficulty?: Maybe<Scalars["Float"]["output"]>;
|
averageDifficulty?: Maybe<Scalars["Float"]["output"]>;
|
||||||
@@ -2906,6 +2912,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 +2920,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"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -3380,6 +3389,28 @@ 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;
|
||||||
|
}>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type GetSerializedShotPathsQueryVariables = Exact<{
|
export type GetSerializedShotPathsQueryVariables = Exact<{
|
||||||
filterInput: FilterInput;
|
filterInput: FilterInput;
|
||||||
}>;
|
}>;
|
||||||
@@ -3927,7 +3958,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<{
|
||||||
@@ -5712,6 +5752,96 @@ 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
|
||||||
|
}
|
||||||
|
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) {
|
||||||
@@ -6932,6 +7062,10 @@ export const GetUserTagsDocument = gql`
|
|||||||
getUserTags {
|
getUserTags {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
|
tagClasses {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
20
src/operations/runs.gql
Normal file
20
src/operations/runs.gql
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
query GetRunsForHighlights(
|
||||||
|
$filterInput: RunFilterInput!
|
||||||
|
$runIds: [Int!] = null
|
||||||
|
$runsOrdering: GetRunsOrdering
|
||||||
|
) {
|
||||||
|
getRuns(
|
||||||
|
filterInput: $filterInput
|
||||||
|
runIds: $runIds
|
||||||
|
runsOrdering: $runsOrdering
|
||||||
|
) {
|
||||||
|
count
|
||||||
|
runs {
|
||||||
|
id
|
||||||
|
runLength
|
||||||
|
userId
|
||||||
|
videoId
|
||||||
|
}
|
||||||
|
runIds
|
||||||
|
}
|
||||||
|
}
|
@@ -79,6 +79,10 @@ query GetUserTags {
|
|||||||
getUserTags {
|
getUserTags {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
|
tagClasses {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -714,9 +714,14 @@ type PageInfoGQL {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type TagGQL {
|
type TagGQL {
|
||||||
name: String!
|
|
||||||
id: Int!
|
id: Int!
|
||||||
group: String
|
name: String!
|
||||||
|
tagClasses: [TagClassGQL!]
|
||||||
|
}
|
||||||
|
|
||||||
|
type TagClassGQL {
|
||||||
|
id: Int!
|
||||||
|
name: String!
|
||||||
}
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@@ -895,6 +900,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