From a1b3baa5c91d7101901d657b41a5b2c5b576447b Mon Sep 17 00:00:00 2001 From: Loewy Date: Wed, 8 May 2024 15:25:05 -0700 Subject: [PATCH] introduce lastIntendedSegmentBound to cursor management layer, method to checkAndHandleUploadCompletion --- src/index.tsx | 2 ++ src/operations/video_upload.gql | 1 + 2 files changed, 3 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 3e664f9..967f1d1 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -904,6 +904,7 @@ export type GetUploadStreamDetailsQuery = { __typename?: "UploadStreamGQL"; isCompleted: boolean; uploadCompletionCursor: number; + lastIntendedSegmentBound?: number | null; } | null; }; }; @@ -2372,6 +2373,7 @@ export const GetUploadStreamDetailsDocument = gql` stream { isCompleted uploadCompletionCursor + lastIntendedSegmentBound } } } diff --git a/src/operations/video_upload.gql b/src/operations/video_upload.gql index c88e3b2..830ea00 100644 --- a/src/operations/video_upload.gql +++ b/src/operations/video_upload.gql @@ -65,6 +65,7 @@ query GetUploadStreamDetails($videoId: Int!) { stream { isCompleted uploadCompletionCursor + lastIntendedSegmentBound } } }