From a7c8e07eb72f7a70192260bf83a5e20733ec6e73 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 1 May 2024 17:39:52 -0600 Subject: [PATCH] Expose upload completion cursor --- src/index.tsx | 3 ++- src/schema.gql | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 3203a6b..963f5e8 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -382,8 +382,9 @@ export type UploadStreamGql = { linksRequested: Scalars["Int"]["output"]; lowestUnuploadedSegmentIndex: Scalars["Int"]["output"]; segmentProcessingCursor: Scalars["Int"]["output"]; + segments: Array; updatedAt: Scalars["DateTime"]["output"]; - uploadSegments: Array; + uploadCompletionCursor: Scalars["Int"]["output"]; uploadsCompleted: Scalars["Int"]["output"]; }; diff --git a/src/schema.gql b/src/schema.gql index 7936c60..d8c91be 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -227,10 +227,11 @@ type UploadStreamGQL { lastIntendedSegmentBound: Int! isCompleted: Boolean! lowestUnuploadedSegmentIndex: Int! + uploadCompletionCursor: Int! errors: [StreamErrorGQL!]! createdAt: DateTime! updatedAt: DateTime! - uploadSegments: [UploadSegmentGQL!]! + segments: [UploadSegmentGQL!]! } type StreamErrorGQL {