Compare commits
No commits in common. "master" and "kat/named-fragment-mini-video" have entirely different histories.
master
...
kat/named-
@ -1,16 +1,9 @@
|
|||||||
# 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 {
|
||||||
|
169
src/index.tsx
169
src/index.tsx
@ -2556,12 +2556,6 @@ 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"];
|
||||||
@ -2614,7 +2608,6 @@ 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"];
|
||||||
@ -2624,7 +2617,6 @@ 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>;
|
||||||
@ -2716,17 +2708,11 @@ export type SuccessfulAddAddShotAnnotationErrors =
|
|||||||
| AddShotAnnotationErrors
|
| AddShotAnnotationErrors
|
||||||
| SuccessfulAdd;
|
| SuccessfulAdd;
|
||||||
|
|
||||||
export type TagClassGql = {
|
|
||||||
__typename?: "TagClassGQL";
|
|
||||||
id: Scalars["Int"]["output"];
|
|
||||||
name: Scalars["String"]["output"];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type TagGql = {
|
export type TagGql = {
|
||||||
__typename?: "TagGQL";
|
__typename?: "TagGQL";
|
||||||
|
group?: Maybe<Scalars["String"]["output"]>;
|
||||||
id: Scalars["Int"]["output"];
|
id: Scalars["Int"]["output"];
|
||||||
name: Scalars["String"]["output"];
|
name: Scalars["String"]["output"];
|
||||||
tagClasses?: Maybe<Array<TagClassGql>>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type TargetMetricsGql = {
|
export type TargetMetricsGql = {
|
||||||
@ -2920,7 +2906,6 @@ 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"]>;
|
||||||
@ -2928,8 +2913,6 @@ 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"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -3397,29 +3380,6 @@ 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;
|
||||||
}>;
|
}>;
|
||||||
@ -3547,8 +3507,6 @@ 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";
|
||||||
@ -3616,8 +3574,6 @@ 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";
|
||||||
@ -3678,8 +3634,6 @@ 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";
|
||||||
@ -3729,8 +3683,6 @@ 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";
|
||||||
@ -3793,8 +3745,6 @@ 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";
|
||||||
@ -3977,16 +3927,7 @@ export type GetUserTagsQueryVariables = Exact<{ [key: string]: never }>;
|
|||||||
|
|
||||||
export type GetUserTagsQuery = {
|
export type GetUserTagsQuery = {
|
||||||
__typename?: "Query";
|
__typename?: "Query";
|
||||||
getUserTags: Array<{
|
getUserTags: Array<{ __typename?: "TagGQL"; id: number; name: string }>;
|
||||||
__typename?: "TagGQL";
|
|
||||||
id: number;
|
|
||||||
name: string;
|
|
||||||
tagClasses?: Array<{
|
|
||||||
__typename?: "TagClassGQL";
|
|
||||||
id: number;
|
|
||||||
name: string;
|
|
||||||
}> | null;
|
|
||||||
}>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type FollowUserMutationVariables = Exact<{
|
export type FollowUserMutationVariables = Exact<{
|
||||||
@ -4870,14 +4811,6 @@ 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
|
||||||
}
|
}
|
||||||
@ -5779,100 +5712,6 @@ 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) {
|
||||||
@ -7093,10 +6932,6 @@ export const GetUserTagsDocument = gql`
|
|||||||
getUserTags {
|
getUserTags {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
tagClasses {
|
|
||||||
id
|
|
||||||
name
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
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,14 +139,6 @@ 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
|
||||||
}
|
}
|
||||||
|
@ -79,10 +79,6 @@ query GetUserTags {
|
|||||||
getUserTags {
|
getUserTags {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
tagClasses {
|
|
||||||
id
|
|
||||||
name
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -714,14 +714,9 @@ type PageInfoGQL {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type TagGQL {
|
type TagGQL {
|
||||||
id: Int!
|
|
||||||
name: String!
|
name: String!
|
||||||
tagClasses: [TagClassGQL!]
|
|
||||||
}
|
|
||||||
|
|
||||||
type TagClassGQL {
|
|
||||||
id: Int!
|
id: Int!
|
||||||
name: String!
|
group: String
|
||||||
}
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@ -900,12 +895,6 @@ 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user