Compare commits

..

No commits in common. "8246699915ed4b9f4b8ce66a0c86ea7ad754bee8" and "39b1808cab67e4e9bbff5fd78054762853b3be97" have entirely different histories.

3 changed files with 54 additions and 50 deletions

View File

@ -2412,6 +2412,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"]>;
@ -2454,10 +2463,14 @@ export type UpdateAnnotationInputGql = {
notes?: InputMaybe<Scalars["String"]["input"]>; notes?: InputMaybe<Scalars["String"]["input"]>;
}; };
export type UpdateShotAnnotationErrors = {
__typename?: "UpdateShotAnnotationErrors";
error?: Maybe<DoesNotOwnShotErr>;
};
export type UpdateShotAnnotationReturn = { export type UpdateShotAnnotationReturn = {
__typename?: "UpdateShotAnnotationReturn"; __typename?: "UpdateShotAnnotationReturn";
error?: Maybe<DoesNotOwnShotErr>; value: SuccessfulUpdateUpdateShotAnnotationErrors;
shot?: Maybe<ShotGql>;
}; };
export type UploadLink = { export type UploadLink = {
@ -2770,21 +2783,10 @@ export type UpdateShotAnnotationsMutation = {
__typename?: "Mutation"; __typename?: "Mutation";
updateShotAnnotations: { updateShotAnnotations: {
__typename?: "UpdateShotAnnotationReturn"; __typename?: "UpdateShotAnnotationReturn";
shot?: { value:
__typename?: "ShotGQL"; | { __typename?: "SuccessfulUpdate"; value: boolean }
id: number; | {
annotations: Array<{ __typename?: "UpdateShotAnnotationErrors";
__typename?: "ShotAnnotationGQL";
shotId: number;
notes: string;
errorDefault: boolean;
type: {
__typename?: "ShotAnnotationTypeGQL";
id: number;
name: string;
};
}>;
} | null;
error?: { error?: {
__typename?: "DoesNotOwnShotErr"; __typename?: "DoesNotOwnShotErr";
shotId: number; shotId: number;
@ -2792,6 +2794,7 @@ export type UpdateShotAnnotationsMutation = {
} | null; } | null;
}; };
}; };
};
export type GetShotsWithVideoGqlQueryVariables = Exact<{ export type GetShotsWithVideoGqlQueryVariables = Exact<{
filterInput: FilterInput; filterInput: FilterInput;
@ -4369,24 +4372,19 @@ export const UpdateShotAnnotationsDocument = gql`
$annotations: [UpdateAnnotationInputGQL!]! $annotations: [UpdateAnnotationInputGQL!]!
) { ) {
updateShotAnnotations(shotId: $shotId, annotations: $annotations) { updateShotAnnotations(shotId: $shotId, annotations: $annotations) {
shot { value {
id ... on SuccessfulUpdate {
annotations { value
shotId
type {
id
name
}
notes
errorDefault
}
} }
... on UpdateShotAnnotationErrors {
error { error {
shotId shotId
msg msg
} }
} }
} }
}
}
`; `;
export type UpdateShotAnnotationsMutationFn = Apollo.MutationFunction< export type UpdateShotAnnotationsMutationFn = Apollo.MutationFunction<
UpdateShotAnnotationsMutation, UpdateShotAnnotationsMutation,

View File

@ -22,24 +22,19 @@ mutation UpdateShotAnnotations(
$annotations: [UpdateAnnotationInputGQL!]! $annotations: [UpdateAnnotationInputGQL!]!
) { ) {
updateShotAnnotations(shotId: $shotId, annotations: $annotations) { updateShotAnnotations(shotId: $shotId, annotations: $annotations) {
shot { value {
id ... on SuccessfulUpdate {
annotations { value
shotId
type {
id
name
}
notes
errorDefault
}
} }
... on UpdateShotAnnotationErrors {
error { error {
shotId shotId
msg msg
} }
} }
} }
}
}
query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) { query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) {
getShotsWithMetadata(filterInput: $filterInput, limit: $limit) { getShotsWithMetadata(filterInput: $filterInput, limit: $limit) {

View File

@ -662,7 +662,18 @@ type OtherErrorNeedsNote {
} }
type UpdateShotAnnotationReturn { type UpdateShotAnnotationReturn {
shot: ShotGQL value: SuccessfulUpdateUpdateShotAnnotationErrors!
}
union SuccessfulUpdateUpdateShotAnnotationErrors =
SuccessfulUpdate
| UpdateShotAnnotationErrors
type SuccessfulUpdate {
value: Boolean!
}
type UpdateShotAnnotationErrors {
error: DoesNotOwnShotErr error: DoesNotOwnShotErr
} }