Add updateAnnotation interfaces #75

Merged
countablecloud merged 1 commits from mk/update-annotations into master 2024-10-14 18:41:09 -06:00
2 changed files with 55 additions and 0 deletions

View File

@ -1747,6 +1747,7 @@ export type Mutation = {
getUploadLink: GetUploadLinkReturn; getUploadLink: GetUploadLinkReturn;
setLoggerLevel: Scalars["Boolean"]["output"]; setLoggerLevel: Scalars["Boolean"]["output"];
setSegmentDuration: Scalars["Boolean"]["output"]; setSegmentDuration: Scalars["Boolean"]["output"];
updateShotAnnotations: UpdateShotAnnotationReturn;
}; };
export type MutationAddAnnotationToShotArgs = { export type MutationAddAnnotationToShotArgs = {
@ -1800,6 +1801,11 @@ export type MutationSetSegmentDurationArgs = {
videoId: Scalars["Int"]["input"]; videoId: Scalars["Int"]["input"];
}; };
export type MutationUpdateShotAnnotationsArgs = {
annotations: Array<UpdateAnnotationInputGql>;
shotId: Scalars["Int"]["input"];
};
export type NoInitForChunkedUploadErr = { export type NoInitForChunkedUploadErr = {
__typename?: "NoInitForChunkedUploadErr"; __typename?: "NoInitForChunkedUploadErr";
segmentType: StreamSegmentTypeEnum; segmentType: StreamSegmentTypeEnum;
@ -2061,6 +2067,15 @@ export type SuccessfulAddAddShotAnnotationErrors =
| AddShotAnnotationErrors | AddShotAnnotationErrors
| SuccessfulAdd; | SuccessfulAdd;
export type SuccessfulUpdate = {
__typename?: "SuccessfulUpdate";
value: Scalars["Boolean"]["output"];
};
export type SuccessfulUpdateUpdateShotAnnotationErrors =
| SuccessfulUpdate
| UpdateShotAnnotationErrors;
export type TagGql = { export type TagGql = {
__typename?: "TagGQL"; __typename?: "TagGQL";
group?: Maybe<Scalars["String"]["output"]>; group?: Maybe<Scalars["String"]["output"]>;
@ -2098,6 +2113,21 @@ export type TooManyProfileImageUploadsErr = {
linksRequested: Scalars["Int"]["output"]; linksRequested: Scalars["Int"]["output"];
}; };
export type UpdateAnnotationInputGql = {
name: Scalars["String"]["input"];
notes?: InputMaybe<Scalars["String"]["input"]>;
};
export type UpdateShotAnnotationErrors = {
__typename?: "UpdateShotAnnotationErrors";
error?: Maybe<DoesNotOwnShotErr>;
};
export type UpdateShotAnnotationReturn = {
__typename?: "UpdateShotAnnotationReturn";
value: SuccessfulUpdateUpdateShotAnnotationErrors;
};
export type UploadLink = { export type UploadLink = {
__typename?: "UploadLink"; __typename?: "UploadLink";
headers: Array<Maybe<Header>>; headers: Array<Maybe<Header>>;

View File

@ -545,6 +545,10 @@ type Mutation {
annotationName: String! annotationName: String!
notes: String = null notes: String = null
): AddShotAnnotationReturn! ): AddShotAnnotationReturn!
updateShotAnnotations(
shotId: Int!
annotations: [UpdateAnnotationInputGQL!]!
): UpdateShotAnnotationReturn!
getProfileImageUploadLink( getProfileImageUploadLink(
fileExt: String = ".png" fileExt: String = ".png"
): GetProfileUploadLinkReturn! ): GetProfileUploadLinkReturn!
@ -598,6 +602,27 @@ type OtherErrorNeedsNote {
msg: String 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 { type GetProfileUploadLinkReturn {
value: UploadLinkGetProfileUploadLinkErrors! value: UploadLinkGetProfileUploadLinkErrors!
} }