Merge pull request 'Create upload stream named fragment' (#156) from kat/named-fragment-mini-video into master
Reviewed-on: #156 Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
This commit is contained in:
commit
365cbb5f70
@ -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<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`
|
||||
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}
|
||||
`;
|
||||
|
||||
/**
|
||||
|
@ -101,13 +101,8 @@ query GetUploadStreams(
|
||||
}
|
||||
}
|
||||
}
|
||||
query GetUploadStreamsWithDetails(
|
||||
$limit: Int! = 5
|
||||
$after: String = null
|
||||
$filters: VideoFilterInput = null
|
||||
) {
|
||||
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
||||
videos {
|
||||
|
||||
fragment UploadStreamWithDetails on VideoGQL {
|
||||
id
|
||||
name
|
||||
startTime
|
||||
@ -118,6 +113,16 @@ query GetUploadStreamsWithDetails(
|
||||
uploadsCompleted
|
||||
}
|
||||
}
|
||||
|
||||
query GetUploadStreamsWithDetails(
|
||||
$limit: Int! = 5
|
||||
$after: String = null
|
||||
$filters: VideoFilterInput = null
|
||||
) {
|
||||
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
||||
videos {
|
||||
...UploadStreamWithDetails
|
||||
}
|
||||
pageInfo {
|
||||
hasNextPage
|
||||
endCursor
|
||||
|
Loading…
Reference in New Issue
Block a user