From 91cfcb28e7cc8a84737dffacac37e495677cf9d4 Mon Sep 17 00:00:00 2001 From: Mike Kalange Date: Mon, 14 Oct 2024 17:27:07 -0700 Subject: [PATCH] Add updateAnnotation interfaces --- src/index.tsx | 30 ++++++++++++++++++++++++++++++ src/schema.gql | 25 +++++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index d921097..2dff277 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1747,6 +1747,7 @@ export type Mutation = { getUploadLink: GetUploadLinkReturn; setLoggerLevel: Scalars["Boolean"]["output"]; setSegmentDuration: Scalars["Boolean"]["output"]; + updateShotAnnotations: UpdateShotAnnotationReturn; }; export type MutationAddAnnotationToShotArgs = { @@ -1800,6 +1801,11 @@ export type MutationSetSegmentDurationArgs = { videoId: Scalars["Int"]["input"]; }; +export type MutationUpdateShotAnnotationsArgs = { + annotations: Array; + shotId: Scalars["Int"]["input"]; +}; + export type NoInitForChunkedUploadErr = { __typename?: "NoInitForChunkedUploadErr"; segmentType: StreamSegmentTypeEnum; @@ -2061,6 +2067,15 @@ export type SuccessfulAddAddShotAnnotationErrors = | AddShotAnnotationErrors | SuccessfulAdd; +export type SuccessfulUpdate = { + __typename?: "SuccessfulUpdate"; + value: Scalars["Boolean"]["output"]; +}; + +export type SuccessfulUpdateUpdateShotAnnotationErrors = + | SuccessfulUpdate + | UpdateShotAnnotationErrors; + export type TagGql = { __typename?: "TagGQL"; group?: Maybe; @@ -2098,6 +2113,21 @@ export type TooManyProfileImageUploadsErr = { linksRequested: Scalars["Int"]["output"]; }; +export type UpdateAnnotationInputGql = { + name: Scalars["String"]["input"]; + notes?: InputMaybe; +}; + +export type UpdateShotAnnotationErrors = { + __typename?: "UpdateShotAnnotationErrors"; + error?: Maybe; +}; + +export type UpdateShotAnnotationReturn = { + __typename?: "UpdateShotAnnotationReturn"; + value: SuccessfulUpdateUpdateShotAnnotationErrors; +}; + export type UploadLink = { __typename?: "UploadLink"; headers: Array>; diff --git a/src/schema.gql b/src/schema.gql index 6cf2b9d..61b2052 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -545,6 +545,10 @@ type Mutation { annotationName: String! notes: String = null ): AddShotAnnotationReturn! + updateShotAnnotations( + shotId: Int! + annotations: [UpdateAnnotationInputGQL!]! + ): UpdateShotAnnotationReturn! getProfileImageUploadLink( fileExt: String = ".png" ): GetProfileUploadLinkReturn! @@ -598,6 +602,27 @@ type OtherErrorNeedsNote { msg: String } +type UpdateShotAnnotationReturn { + value: SuccessfulUpdateUpdateShotAnnotationErrors! +} + +union SuccessfulUpdateUpdateShotAnnotationErrors = + SuccessfulUpdate + | UpdateShotAnnotationErrors + +type SuccessfulUpdate { + value: Boolean! +} + +type UpdateShotAnnotationErrors { + error: DoesNotOwnShotErr +} + +input UpdateAnnotationInputGQL { + name: String! + notes: String = null +} + type GetProfileUploadLinkReturn { value: UploadLinkGetProfileUploadLinkErrors! }