From 56c8bcce20dbebb4d1a81b824d322ac340c93e9d Mon Sep 17 00:00:00 2001 From: Mike Kalange Date: Tue, 13 Aug 2024 10:33:53 -0700 Subject: [PATCH 1/4] Add uploadCompletionCursor to GetUploadLinkReturn --- src/index.tsx | 1 + src/schema.gql | 1 + 2 files changed, 2 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index d8391b3..e7fdbca 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1041,6 +1041,7 @@ export type GetShotsPagination = { export type GetUploadLinkReturn = { __typename?: "GetUploadLinkReturn"; headers: Array>; + uploadCompletionCursor?: Maybe; uploadUrl: Scalars["String"]["output"]; }; diff --git a/src/schema.gql b/src/schema.gql index 8893191..05fe5d8 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -425,6 +425,7 @@ input CreateBucketSetInput { type GetUploadLinkReturn { uploadUrl: String! headers: [Header]! + uploadCompletionCursor: Int } type Header { From 5dd8318dab2ef4af03fdf0d505ba37c0f1ffe0b1 Mon Sep 17 00:00:00 2001 From: Mike Kalange Date: Tue, 13 Aug 2024 11:33:31 -0700 Subject: [PATCH 2/4] Add status to VideoProcessing --- src/index.tsx | 12 ++++++++++++ src/schema.gql | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index e7fdbca..9a41ba2 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1179,6 +1179,17 @@ export type PocketingIntentionFeaturesGql = { targetPocketDistance?: Maybe; }; +export enum ProcessingStatusEnum { + Created = "CREATED", + Failed = "FAILED", + Queued = "QUEUED", + ReextractingFeatures = "REEXTRACTING_FEATURES", + Running = "RUNNING", + Started = "STARTED", + Succeeded = "SUCCEEDED", + Suspended = "SUSPENDED", +} + export type Query = { __typename?: "Query"; getAggregatedShotMetrics: Array; @@ -1448,6 +1459,7 @@ export type VideoProcessingErrorGql = { export type VideoProcessingGql = { __typename?: "VideoProcessingGQL"; errors: Array; + status: ProcessingStatusEnum; }; export type VideoResolution = { diff --git a/src/schema.gql b/src/schema.gql index 05fe5d8..787ecea 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -353,6 +353,7 @@ type IntPoint2D { type VideoProcessingGQL { errors: [VideoProcessingErrorGQL!]! + status: ProcessingStatusEnum! } type VideoProcessingErrorGQL { @@ -361,6 +362,17 @@ type VideoProcessingErrorGQL { endSegmentIndex: Int } +enum ProcessingStatusEnum { + STARTED + FAILED + SUCCEEDED + SUSPENDED + CREATED + QUEUED + RUNNING + REEXTRACTING_FEATURES +} + input GetShotsPagination { createdAfter: CreatedAfter! startFrameAfter: Int! From df3087de7d1fbb0a3a1b1fd3131b95f49f29d186 Mon Sep 17 00:00:00 2001 From: Mike Kalange Date: Tue, 13 Aug 2024 12:42:45 -0700 Subject: [PATCH 3/4] Add VideoProcessingStatus to VideoProcessing --- src/index.tsx | 10 ++++++++++ src/schema.gql | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 9a41ba2..131d235 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1460,6 +1460,16 @@ export type VideoProcessingGql = { __typename?: "VideoProcessingGQL"; errors: Array; status: ProcessingStatusEnum; + statuses: Array; +}; + +export type VideoProcessingStatusGql = { + __typename?: "VideoProcessingStatusGQL"; + appVersion: Scalars["String"]["output"]; + createdAt?: Maybe; + sequenceId: Scalars["Int"]["output"]; + status: ProcessingStatusEnum; + updatedAt?: Maybe; }; export type VideoResolution = { diff --git a/src/schema.gql b/src/schema.gql index 787ecea..2379794 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -354,6 +354,7 @@ type IntPoint2D { type VideoProcessingGQL { errors: [VideoProcessingErrorGQL!]! status: ProcessingStatusEnum! + statuses: [VideoProcessingStatusGQL!]! } type VideoProcessingErrorGQL { @@ -373,6 +374,14 @@ enum ProcessingStatusEnum { REEXTRACTING_FEATURES } +type VideoProcessingStatusGQL { + status: ProcessingStatusEnum! + appVersion: String! + sequenceId: Int! + createdAt: DateTime + updatedAt: DateTime +} + input GetShotsPagination { createdAfter: CreatedAfter! startFrameAfter: Int! From 23d9fef2b182765b23989945b01ea09a3af76b5b Mon Sep 17 00:00:00 2001 From: Mike Kalange Date: Tue, 13 Aug 2024 13:28:36 -0700 Subject: [PATCH 4/4] Add Debugging JSON to input --- src/index.tsx | 3 +++ src/schema.gql | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 131d235..c20a7ad 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -30,6 +30,8 @@ export type Scalars = { Float: { input: number; output: number }; /** Date with time (isoformat) */ DateTime: { input: any; output: any }; + /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf). */ + JSON: { input: any; output: any }; }; export type AggregateInputGql = { @@ -1245,6 +1247,7 @@ export type QueryGetUsernamesArgs = { }; export type QueryGetVideoArgs = { + debuggingJson?: InputMaybe; videoId: Scalars["Int"]["input"]; }; diff --git a/src/schema.gql b/src/schema.gql index 2379794..f8be364 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -30,7 +30,7 @@ type Query { filters: VideoFilterInput = null ): VideoHistoryGQL! getUserTags: [TagGQL!]! - getVideo(videoId: Int!): VideoGQL! + getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL! getVideos(videoIds: [Int!]!): [VideoGQL!]! } @@ -417,6 +417,14 @@ type TagGQL { group: String } +""" +The `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf). +""" +scalar JSON + @specifiedBy( + url: "https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf" + ) + type Mutation { createBucketSet(params: CreateBucketSetInput!): BucketSetGQL! setLoggerLevel(path: String!, level: String!): Boolean!