Create upload stream named fragment
All checks were successful
Tests / Tests (pull_request) Successful in 9s

This commit is contained in:
Kat Huang 2025-01-28 21:28:31 -07:00
parent 8fcaa1397a
commit 194d0dcd22
2 changed files with 43 additions and 18 deletions

View File

@ -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<{ export type GetUploadStreamsWithDetailsQueryVariables = Exact<{
limit?: Scalars["Int"]["input"]; limit?: Scalars["Int"]["input"];
after?: InputMaybe<Scalars["String"]["input"]>; after?: InputMaybe<Scalars["String"]["input"]>;
@ -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` export const GetAggregatedShotMetricsDocument = gql`
query GetAggregatedShotMetrics($aggregateInput: AggregateInputGQL!) { query GetAggregatedShotMetrics($aggregateInput: AggregateInputGQL!) {
getAggregatedShotMetrics(aggregateInput: $aggregateInput) { getAggregatedShotMetrics(aggregateInput: $aggregateInput) {
@ -8782,15 +8809,7 @@ export const GetUploadStreamsWithDetailsDocument = gql`
) { ) {
getUserVideos(limit: $limit, after: $after, filters: $filters) { getUserVideos(limit: $limit, after: $after, filters: $filters) {
videos { videos {
id ...UploadStreamWithDetails
name
startTime
stream {
isCompleted
lastIntendedSegmentBound
uploadCompletionCursor
uploadsCompleted
}
} }
pageInfo { pageInfo {
hasNextPage hasNextPage
@ -8798,6 +8817,7 @@ export const GetUploadStreamsWithDetailsDocument = gql`
} }
} }
} }
${UploadStreamWithDetailsFragmentDoc}
`; `;
/** /**

View File

@ -101,13 +101,8 @@ query GetUploadStreams(
} }
} }
} }
query GetUploadStreamsWithDetails(
$limit: Int! = 5 fragment UploadStreamWithDetails on VideoGQL {
$after: String = null
$filters: VideoFilterInput = null
) {
getUserVideos(limit: $limit, after: $after, filters: $filters) {
videos {
id id
name name
startTime startTime
@ -117,6 +112,16 @@ query GetUploadStreamsWithDetails(
uploadCompletionCursor uploadCompletionCursor
uploadsCompleted uploadsCompleted
} }
}
query GetUploadStreamsWithDetails(
$limit: Int! = 5
$after: String = null
$filters: VideoFilterInput = null
) {
getUserVideos(limit: $limit, after: $after, filters: $filters) {
videos {
...UploadStreamWithDetails
} }
pageInfo { pageInfo {
hasNextPage hasNextPage