return shot gql with an annotation update
All checks were successful
Tests / Tests (pull_request) Successful in 16s
All checks were successful
Tests / Tests (pull_request) Successful in 16s
This commit is contained in:
parent
f98c98ecdd
commit
a78f9e7b9d
@ -2412,15 +2412,6 @@ 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<Scalars["String"]["output"]>;
|
||||
@ -2463,14 +2454,10 @@ export type UpdateAnnotationInputGql = {
|
||||
notes?: InputMaybe<Scalars["String"]["input"]>;
|
||||
};
|
||||
|
||||
export type UpdateShotAnnotationErrors = {
|
||||
__typename?: "UpdateShotAnnotationErrors";
|
||||
error?: Maybe<DoesNotOwnShotErr>;
|
||||
};
|
||||
|
||||
export type UpdateShotAnnotationReturn = {
|
||||
__typename?: "UpdateShotAnnotationReturn";
|
||||
value: SuccessfulUpdateUpdateShotAnnotationErrors;
|
||||
error?: Maybe<DoesNotOwnShotErr>;
|
||||
shot?: Maybe<ShotGql>;
|
||||
};
|
||||
|
||||
export type UploadLink = {
|
||||
@ -2783,16 +2770,26 @@ export type UpdateShotAnnotationsMutation = {
|
||||
__typename?: "Mutation";
|
||||
updateShotAnnotations: {
|
||||
__typename?: "UpdateShotAnnotationReturn";
|
||||
value:
|
||||
| { __typename?: "SuccessfulUpdate"; value: boolean }
|
||||
| {
|
||||
__typename?: "UpdateShotAnnotationErrors";
|
||||
error?: {
|
||||
__typename?: "DoesNotOwnShotErr";
|
||||
shotId: number;
|
||||
msg?: string | null;
|
||||
} | null;
|
||||
shot?: {
|
||||
__typename?: "ShotGQL";
|
||||
id: number;
|
||||
annotations: Array<{
|
||||
__typename?: "ShotAnnotationGQL";
|
||||
shotId: number;
|
||||
notes: string;
|
||||
errorDefault: boolean;
|
||||
type: {
|
||||
__typename?: "ShotAnnotationTypeGQL";
|
||||
id: number;
|
||||
name: string;
|
||||
};
|
||||
}>;
|
||||
} | null;
|
||||
error?: {
|
||||
__typename?: "DoesNotOwnShotErr";
|
||||
shotId: number;
|
||||
msg?: string | null;
|
||||
} | null;
|
||||
};
|
||||
};
|
||||
|
||||
@ -4355,17 +4352,22 @@ export const UpdateShotAnnotationsDocument = gql`
|
||||
$annotations: [UpdateAnnotationInputGQL!]!
|
||||
) {
|
||||
updateShotAnnotations(shotId: $shotId, annotations: $annotations) {
|
||||
value {
|
||||
... on SuccessfulUpdate {
|
||||
value
|
||||
}
|
||||
... on UpdateShotAnnotationErrors {
|
||||
error {
|
||||
shotId
|
||||
msg
|
||||
shot {
|
||||
id
|
||||
annotations {
|
||||
shotId
|
||||
type {
|
||||
id
|
||||
name
|
||||
}
|
||||
notes
|
||||
errorDefault
|
||||
}
|
||||
}
|
||||
error {
|
||||
shotId
|
||||
msg
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
@ -22,17 +22,22 @@ mutation UpdateShotAnnotations(
|
||||
$annotations: [UpdateAnnotationInputGQL!]!
|
||||
) {
|
||||
updateShotAnnotations(shotId: $shotId, annotations: $annotations) {
|
||||
value {
|
||||
... on SuccessfulUpdate {
|
||||
value
|
||||
}
|
||||
... on UpdateShotAnnotationErrors {
|
||||
error {
|
||||
shotId
|
||||
msg
|
||||
shot {
|
||||
id
|
||||
annotations {
|
||||
shotId
|
||||
type {
|
||||
id
|
||||
name
|
||||
}
|
||||
notes
|
||||
errorDefault
|
||||
}
|
||||
}
|
||||
error {
|
||||
shotId
|
||||
msg
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -662,18 +662,7 @@ type OtherErrorNeedsNote {
|
||||
}
|
||||
|
||||
type UpdateShotAnnotationReturn {
|
||||
value: SuccessfulUpdateUpdateShotAnnotationErrors!
|
||||
}
|
||||
|
||||
union SuccessfulUpdateUpdateShotAnnotationErrors =
|
||||
SuccessfulUpdate
|
||||
| UpdateShotAnnotationErrors
|
||||
|
||||
type SuccessfulUpdate {
|
||||
value: Boolean!
|
||||
}
|
||||
|
||||
type UpdateShotAnnotationErrors {
|
||||
shot: ShotGQL
|
||||
error: DoesNotOwnShotErr
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user