return shot gql with an annotation update
This commit is contained in:
parent
3051c155e2
commit
b4fd4c92a6
@ -2404,15 +2404,6 @@ 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"]>;
|
||||||
@ -2455,14 +2446,10 @@ 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";
|
||||||
value: SuccessfulUpdateUpdateShotAnnotationErrors;
|
error?: Maybe<DoesNotOwnShotErr>;
|
||||||
|
shot?: Maybe<ShotGql>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UploadLink = {
|
export type UploadLink = {
|
||||||
@ -2768,10 +2755,21 @@ export type UpdateShotAnnotationsMutation = {
|
|||||||
__typename?: "Mutation";
|
__typename?: "Mutation";
|
||||||
updateShotAnnotations: {
|
updateShotAnnotations: {
|
||||||
__typename?: "UpdateShotAnnotationReturn";
|
__typename?: "UpdateShotAnnotationReturn";
|
||||||
value:
|
shot?: {
|
||||||
| { __typename?: "SuccessfulUpdate"; value: boolean }
|
__typename?: "ShotGQL";
|
||||||
| {
|
id: number;
|
||||||
__typename?: "UpdateShotAnnotationErrors";
|
annotations: Array<{
|
||||||
|
__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;
|
||||||
@ -2779,7 +2777,6 @@ export type UpdateShotAnnotationsMutation = {
|
|||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
export type GetShotsWithVideoGqlQueryVariables = Exact<{
|
export type GetShotsWithVideoGqlQueryVariables = Exact<{
|
||||||
filterInput: FilterInput;
|
filterInput: FilterInput;
|
||||||
@ -4340,19 +4337,24 @@ export const UpdateShotAnnotationsDocument = gql`
|
|||||||
$annotations: [UpdateAnnotationInputGQL!]!
|
$annotations: [UpdateAnnotationInputGQL!]!
|
||||||
) {
|
) {
|
||||||
updateShotAnnotations(shotId: $shotId, annotations: $annotations) {
|
updateShotAnnotations(shotId: $shotId, annotations: $annotations) {
|
||||||
value {
|
shot {
|
||||||
... on SuccessfulUpdate {
|
id
|
||||||
value
|
annotations {
|
||||||
|
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,
|
||||||
|
@ -22,19 +22,24 @@ mutation UpdateShotAnnotations(
|
|||||||
$annotations: [UpdateAnnotationInputGQL!]!
|
$annotations: [UpdateAnnotationInputGQL!]!
|
||||||
) {
|
) {
|
||||||
updateShotAnnotations(shotId: $shotId, annotations: $annotations) {
|
updateShotAnnotations(shotId: $shotId, annotations: $annotations) {
|
||||||
value {
|
shot {
|
||||||
... on SuccessfulUpdate {
|
id
|
||||||
value
|
annotations {
|
||||||
|
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) {
|
||||||
|
@ -650,18 +650,7 @@ type OtherErrorNeedsNote {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type UpdateShotAnnotationReturn {
|
type UpdateShotAnnotationReturn {
|
||||||
value: SuccessfulUpdateUpdateShotAnnotationErrors!
|
shot: ShotGQL
|
||||||
}
|
|
||||||
|
|
||||||
union SuccessfulUpdateUpdateShotAnnotationErrors =
|
|
||||||
SuccessfulUpdate
|
|
||||||
| UpdateShotAnnotationErrors
|
|
||||||
|
|
||||||
type SuccessfulUpdate {
|
|
||||||
value: Boolean!
|
|
||||||
}
|
|
||||||
|
|
||||||
type UpdateShotAnnotationErrors {
|
|
||||||
error: DoesNotOwnShotErr
|
error: DoesNotOwnShotErr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user