diff --git a/src/index.tsx b/src/index.tsx index 0443916..63633d9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -4708,6 +4708,20 @@ export type GetUploadStreamsQuery = { }; }; +export type UploadStreamWithDetailsFragment = { + __typename?: "VideoGQL"; + id: number; + name?: string | null; + startTime?: any | null; + stream?: { + __typename?: "UploadStreamGQL"; + isCompleted: boolean; + lastIntendedSegmentBound?: number | null; + uploadCompletionCursor: number; + uploadsCompleted: number; + } | null; +}; + export type GetUploadStreamsWithDetailsQueryVariables = Exact<{ limit?: Scalars["Int"]["input"]; after?: InputMaybe; @@ -4966,6 +4980,19 @@ export const HomographyInfoFragmentDoc = gql` } } `; +export const UploadStreamWithDetailsFragmentDoc = gql` + fragment UploadStreamWithDetails on VideoGQL { + id + name + startTime + stream { + isCompleted + lastIntendedSegmentBound + uploadCompletionCursor + uploadsCompleted + } + } +`; export const GetAggregatedShotMetricsDocument = gql` query GetAggregatedShotMetrics($aggregateInput: AggregateInputGQL!) { getAggregatedShotMetrics(aggregateInput: $aggregateInput) { @@ -8782,15 +8809,7 @@ export const GetUploadStreamsWithDetailsDocument = gql` ) { getUserVideos(limit: $limit, after: $after, filters: $filters) { videos { - id - name - startTime - stream { - isCompleted - lastIntendedSegmentBound - uploadCompletionCursor - uploadsCompleted - } + ...UploadStreamWithDetails } pageInfo { hasNextPage @@ -8798,6 +8817,7 @@ export const GetUploadStreamsWithDetailsDocument = gql` } } } + ${UploadStreamWithDetailsFragmentDoc} `; /** diff --git a/src/operations/video_upload.gql b/src/operations/video_upload.gql index 85be255..6c14bf0 100644 --- a/src/operations/video_upload.gql +++ b/src/operations/video_upload.gql @@ -101,6 +101,19 @@ query GetUploadStreams( } } } + +fragment UploadStreamWithDetails on VideoGQL { + id + name + startTime + stream { + isCompleted + lastIntendedSegmentBound + uploadCompletionCursor + uploadsCompleted + } +} + query GetUploadStreamsWithDetails( $limit: Int! = 5 $after: String = null @@ -108,15 +121,7 @@ query GetUploadStreamsWithDetails( ) { getUserVideos(limit: $limit, after: $after, filters: $filters) { videos { - id - name - startTime - stream { - isCompleted - lastIntendedSegmentBound - uploadCompletionCursor - uploadsCompleted - } + ...UploadStreamWithDetails } pageInfo { hasNextPage