This commit is contained in:
parent
378878967a
commit
77611ba1ce
116
src/index.tsx
116
src/index.tsx
@ -1860,6 +1860,35 @@ export type GetMedianRunForVideoQuery = {
|
|||||||
getVideo: { __typename?: "VideoGQL"; id: number; medianRun?: number | null };
|
getVideo: { __typename?: "VideoGQL"; id: number; medianRun?: number | null };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetVideoForClipTimesQueryVariables = Exact<{
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type GetVideoForClipTimesQuery = {
|
||||||
|
__typename?: "Query";
|
||||||
|
getVideo: {
|
||||||
|
__typename?: "VideoGQL";
|
||||||
|
id: number;
|
||||||
|
playlist?: {
|
||||||
|
__typename?: "HLSPlaylistGQL";
|
||||||
|
segmentDurations: Array<number>;
|
||||||
|
} | null;
|
||||||
|
stream?: {
|
||||||
|
__typename?: "UploadStreamGQL";
|
||||||
|
id: string;
|
||||||
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
|
segments: Array<{
|
||||||
|
__typename?: "UploadSegmentGQL";
|
||||||
|
uploaded: boolean;
|
||||||
|
valid: boolean;
|
||||||
|
segmentIndex: number;
|
||||||
|
endFrameIndex?: number | null;
|
||||||
|
framesPerSecond?: number | null;
|
||||||
|
}>;
|
||||||
|
} | null;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type CreateUploadStreamMutationVariables = Exact<{
|
export type CreateUploadStreamMutationVariables = Exact<{
|
||||||
videoMetadataInput: VideoMetadataInput;
|
videoMetadataInput: VideoMetadataInput;
|
||||||
}>;
|
}>;
|
||||||
@ -3624,6 +3653,93 @@ export type GetMedianRunForVideoQueryResult = Apollo.QueryResult<
|
|||||||
GetMedianRunForVideoQuery,
|
GetMedianRunForVideoQuery,
|
||||||
GetMedianRunForVideoQueryVariables
|
GetMedianRunForVideoQueryVariables
|
||||||
>;
|
>;
|
||||||
|
export const GetVideoForClipTimesDocument = gql`
|
||||||
|
query GetVideoForClipTimes($videoId: Int!) {
|
||||||
|
getVideo(videoId: $videoId) {
|
||||||
|
id
|
||||||
|
playlist {
|
||||||
|
segmentDurations
|
||||||
|
}
|
||||||
|
stream {
|
||||||
|
id
|
||||||
|
streamSegmentType
|
||||||
|
segments {
|
||||||
|
uploaded
|
||||||
|
valid
|
||||||
|
segmentIndex
|
||||||
|
endFrameIndex
|
||||||
|
framesPerSecond
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useGetVideoForClipTimesQuery__
|
||||||
|
*
|
||||||
|
* To run a query within a React component, call `useGetVideoForClipTimesQuery` and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useGetVideoForClipTimesQuery` 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 } = useGetVideoForClipTimesQuery({
|
||||||
|
* variables: {
|
||||||
|
* videoId: // value for 'videoId'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useGetVideoForClipTimesQuery(
|
||||||
|
baseOptions: Apollo.QueryHookOptions<
|
||||||
|
GetVideoForClipTimesQuery,
|
||||||
|
GetVideoForClipTimesQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useQuery<
|
||||||
|
GetVideoForClipTimesQuery,
|
||||||
|
GetVideoForClipTimesQueryVariables
|
||||||
|
>(GetVideoForClipTimesDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetVideoForClipTimesLazyQuery(
|
||||||
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||||
|
GetVideoForClipTimesQuery,
|
||||||
|
GetVideoForClipTimesQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useLazyQuery<
|
||||||
|
GetVideoForClipTimesQuery,
|
||||||
|
GetVideoForClipTimesQueryVariables
|
||||||
|
>(GetVideoForClipTimesDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetVideoForClipTimesSuspenseQuery(
|
||||||
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||||
|
GetVideoForClipTimesQuery,
|
||||||
|
GetVideoForClipTimesQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useSuspenseQuery<
|
||||||
|
GetVideoForClipTimesQuery,
|
||||||
|
GetVideoForClipTimesQueryVariables
|
||||||
|
>(GetVideoForClipTimesDocument, options);
|
||||||
|
}
|
||||||
|
export type GetVideoForClipTimesQueryHookResult = ReturnType<
|
||||||
|
typeof useGetVideoForClipTimesQuery
|
||||||
|
>;
|
||||||
|
export type GetVideoForClipTimesLazyQueryHookResult = ReturnType<
|
||||||
|
typeof useGetVideoForClipTimesLazyQuery
|
||||||
|
>;
|
||||||
|
export type GetVideoForClipTimesSuspenseQueryHookResult = ReturnType<
|
||||||
|
typeof useGetVideoForClipTimesSuspenseQuery
|
||||||
|
>;
|
||||||
|
export type GetVideoForClipTimesQueryResult = Apollo.QueryResult<
|
||||||
|
GetVideoForClipTimesQuery,
|
||||||
|
GetVideoForClipTimesQueryVariables
|
||||||
|
>;
|
||||||
export const CreateUploadStreamDocument = gql`
|
export const CreateUploadStreamDocument = gql`
|
||||||
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
||||||
createUploadStream(videoMetadata: $videoMetadataInput) {
|
createUploadStream(videoMetadata: $videoMetadataInput) {
|
||||||
|
@ -211,3 +211,23 @@ query GetMedianRunForVideo($videoId: Int!) {
|
|||||||
medianRun
|
medianRun
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
query GetVideoForClipTimes($videoId: Int!) {
|
||||||
|
getVideo(videoId: $videoId) {
|
||||||
|
id
|
||||||
|
playlist {
|
||||||
|
segmentDurations
|
||||||
|
}
|
||||||
|
stream {
|
||||||
|
id
|
||||||
|
streamSegmentType
|
||||||
|
segments {
|
||||||
|
uploaded
|
||||||
|
valid
|
||||||
|
segmentIndex
|
||||||
|
endFrameIndex
|
||||||
|
framesPerSecond
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user