From 2d6d3964ad7de45fa8bf4d7f089918f6c4fb1b3e Mon Sep 17 00:00:00 2001 From: Kat Huang Date: Wed, 6 Nov 2024 22:40:18 -0700 Subject: [PATCH] Return video processing status in feed --- src/index.tsx | 30 ++++++++++++++++++++++++++++++ src/operations/feed.gql | 9 +++++++++ 2 files changed, 39 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 8ae24f1..63cbd3a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2822,6 +2822,15 @@ export type VideoCardFieldsFragment = { name: string; tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>; }>; + currentProcessing?: { + __typename?: "VideoProcessingGQL"; + status: ProcessingStatusEnum; + errors: Array<{ __typename?: "VideoProcessingErrorGQL"; message: string }>; + statuses: Array<{ + __typename?: "VideoProcessingStatusGQL"; + status: ProcessingStatusEnum; + }>; + } | null; }; export type GetVideoFeedQueryVariables = Exact<{ @@ -2864,6 +2873,18 @@ export type GetVideoFeedQuery = { name: string; tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>; }>; + currentProcessing?: { + __typename?: "VideoProcessingGQL"; + status: ProcessingStatusEnum; + errors: Array<{ + __typename?: "VideoProcessingErrorGQL"; + message: string; + }>; + statuses: Array<{ + __typename?: "VideoProcessingStatusGQL"; + status: ProcessingStatusEnum; + }>; + } | null; }>; pageInfo: { __typename?: "PageInfoGQL"; @@ -4039,6 +4060,15 @@ export const VideoCardFieldsFragmentDoc = gql` } name } + currentProcessing { + errors { + message + } + status + statuses { + status + } + } } `; export const ShotWithAllFeaturesFragmentDoc = gql` diff --git a/src/operations/feed.gql b/src/operations/feed.gql index 047bdf8..1d52e95 100644 --- a/src/operations/feed.gql +++ b/src/operations/feed.gql @@ -69,6 +69,15 @@ fragment VideoCardFields on VideoGQL { } name } + currentProcessing { + errors { + message + } + status + statuses { + status + } + } } query GetVideoFeed(