From f8c5cf74f80839e8bfa26d4e3b61c2a59086d9d3 Mon Sep 17 00:00:00 2001 From: Loewy Date: Tue, 14 May 2024 18:35:24 -0700 Subject: [PATCH] add currentProcessing and errors to schema/index and getStreamMonitoringDetails operation --- src/index.tsx | 29 +++++++++++++++++++++++++++++ src/operations/video.gql | 7 +++++++ src/schema.gql | 11 +++++++++++ 3 files changed, 47 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index e6e7c10..66e4aa2 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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"]; @@ -717,6 +730,15 @@ export type GetStreamMonitoringDetailsQuery = { uploadCompletionCursor: number; lastIntendedSegmentBound?: number | null; } | null; + currentProcessing?: { + __typename?: "VideoProcessingGQL"; + errors: Array<{ + __typename?: "VideoProcessingErrorGQL"; + message: string; + startSegmentIndex?: number | null; + endSegmentIndex?: number | null; + }>; + } | null; }; }; @@ -1647,6 +1669,13 @@ export const GetStreamMonitoringDetailsDocument = gql` uploadCompletionCursor lastIntendedSegmentBound } + currentProcessing { + errors { + message + startSegmentIndex + endSegmentIndex + } + } } } `; diff --git a/src/operations/video.gql b/src/operations/video.gql index d8f6ffa..cb640f2 100644 --- a/src/operations/video.gql +++ b/src/operations/video.gql @@ -52,6 +52,13 @@ query GetStreamMonitoringDetails($videoId: Int!) { uploadCompletionCursor lastIntendedSegmentBound } + currentProcessing { + errors { + message + startSegmentIndex + endSegmentIndex + } + } } } diff --git a/src/schema.gql b/src/schema.gql index 0c39be2..08ddf9b 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 { @@ -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