From e86f40c62016aed152d2f342ae50d5c0f6147bb1 Mon Sep 17 00:00:00 2001 From: Loewy Date: Mon, 20 May 2024 22:39:47 -0700 Subject: [PATCH] regenerate gql, fix type imports --- src/index.tsx | 19 ++++++++++++++++--- src/schema.gql | 13 ++++++++++++- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index e2d771b..c680e74 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -378,7 +378,7 @@ export type UploadStreamGql = { errors: Array; id: Scalars["ID"]["output"]; isCompleted: Scalars["Boolean"]["output"]; - lastIntendedSegmentBound: Scalars["Int"]["output"]; + lastIntendedSegmentBound?: Maybe; linksRequested: Scalars["Int"]["output"]; lowestUnuploadedSegmentIndex: Scalars["Int"]["output"]; segmentProcessingCursor: Scalars["Int"]["output"]; @@ -425,6 +425,7 @@ export type VideoGql = { __typename?: "VideoGQL"; averageTimeBetweenShots?: Maybe; createdAt?: Maybe; + currentProcessing?: Maybe; elapsedTime?: Maybe; endTime?: Maybe; framesPerSecond: Scalars["Float"]["output"]; @@ -462,6 +463,18 @@ export type VideoMetadataInput = { videoName?: InputMaybe; }; +export type VideoProcessingErrorGql = { + __typename?: "VideoProcessingErrorGQL"; + endSegmentIndex?: Maybe; + message: Scalars["String"]["output"]; + startSegmentIndex?: Maybe; +}; + +export type VideoProcessingGql = { + __typename?: "VideoProcessingGQL"; + errors: Array; +}; + export type VideoTag = { __typename?: "VideoTag"; name: Scalars["String"]["output"]; @@ -719,7 +732,7 @@ export type GetStreamMonitoringDetailsQuery = { segmentProcessingCursor: number; isCompleted: boolean; uploadCompletionCursor: number; - lastIntendedSegmentBound: number; + lastIntendedSegmentBound?: number | null; } | null; currentProcessing?: { __typename?: "VideoProcessingGQL"; @@ -929,7 +942,7 @@ export type GetUploadStreamsWithDetailsQuery = { stream?: { __typename?: "UploadStreamGQL"; isCompleted: boolean; - lastIntendedSegmentBound: number; + lastIntendedSegmentBound?: number | null; uploadCompletionCursor: number; } | null; }>; diff --git a/src/schema.gql b/src/schema.gql index 8b9f97d..a01cc6b 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -217,6 +217,7 @@ type VideoGQL { playlist: HLSPlaylistGQL tags: [VideoTag!]! homographyHistory: [HomographyInfoGQL!]! + currentProcessing: VideoProcessingGQL } type UploadStreamGQL { @@ -224,7 +225,7 @@ type UploadStreamGQL { linksRequested: Int! uploadsCompleted: Int! segmentProcessingCursor: Int! - lastIntendedSegmentBound: Int! + lastIntendedSegmentBound: Int isCompleted: Boolean! lowestUnuploadedSegmentIndex: Int! uploadCompletionCursor: Int! @@ -292,6 +293,16 @@ type IntPoint2D { y: Int! } +type VideoProcessingGQL { + errors: [VideoProcessingErrorGQL!]! +} + +type VideoProcessingErrorGQL { + message: String! + startSegmentIndex: Int + endSegmentIndex: Int +} + type PageInfoGQL { hasNextPage: Boolean! endCursor: String