SpanAnnotationActionMenuDeleteMutation.graphql.ts•11.8 kB
/**
* @generated SignedSource<<613cceaa6107c001431c98fd40ce3385>>
* @lightSyntaxTransform
* @nogrep
*/
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
import { FragmentRefs } from "relay-runtime";
export type SpanAnnotationActionMenuDeleteMutation$variables = {
annotationId: string;
spanId: string;
};
export type SpanAnnotationActionMenuDeleteMutation$data = {
readonly deleteSpanAnnotations: {
readonly query: {
readonly node: {
readonly " $fragmentSpreads": FragmentRefs<"SpanAnnotationsEditor_spanAnnotations" | "SpanFeedback_annotations">;
};
};
};
};
export type SpanAnnotationActionMenuDeleteMutation = {
response: SpanAnnotationActionMenuDeleteMutation$data;
variables: SpanAnnotationActionMenuDeleteMutation$variables;
};
const node: ConcreteRequest = (function(){
var v0 = [
{
"defaultValue": null,
"kind": "LocalArgument",
"name": "annotationId"
},
{
"defaultValue": null,
"kind": "LocalArgument",
"name": "spanId"
}
],
v1 = [
{
"fields": [
{
"items": [
{
"kind": "Variable",
"name": "annotationIds.0",
"variableName": "annotationId"
}
],
"kind": "ListValue",
"name": "annotationIds"
}
],
"kind": "ObjectValue",
"name": "input"
}
],
v2 = [
{
"kind": "Variable",
"name": "id",
"variableName": "spanId"
}
],
v3 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
v4 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "annotatorKind",
"storageKey": null
},
v6 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "score",
"storageKey": null
},
v7 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "label",
"storageKey": null
},
v8 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "explanation",
"storageKey": null
},
v9 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
};
return {
"fragment": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Fragment",
"metadata": null,
"name": "SpanAnnotationActionMenuDeleteMutation",
"selections": [
{
"alias": null,
"args": (v1/*: any*/),
"concreteType": "SpanAnnotationMutationPayload",
"kind": "LinkedField",
"name": "deleteSpanAnnotations",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "Query",
"kind": "LinkedField",
"name": "query",
"plural": false,
"selections": [
{
"alias": null,
"args": (v2/*: any*/),
"concreteType": null,
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
{
"kind": "InlineFragment",
"selections": [
{
"args": null,
"kind": "FragmentSpread",
"name": "SpanAnnotationsEditor_spanAnnotations"
},
{
"args": null,
"kind": "FragmentSpread",
"name": "SpanFeedback_annotations"
}
],
"type": "Span",
"abstractKey": null
}
],
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": null
}
],
"type": "Mutation",
"abstractKey": null
},
"kind": "Request",
"operation": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Operation",
"name": "SpanAnnotationActionMenuDeleteMutation",
"selections": [
{
"alias": null,
"args": (v1/*: any*/),
"concreteType": "SpanAnnotationMutationPayload",
"kind": "LinkedField",
"name": "deleteSpanAnnotations",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "Query",
"kind": "LinkedField",
"name": "query",
"plural": false,
"selections": [
{
"alias": null,
"args": (v2/*: any*/),
"concreteType": null,
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "__typename",
"storageKey": null
},
(v3/*: any*/),
{
"kind": "InlineFragment",
"selections": [
{
"alias": "filteredSpanAnnotations",
"args": [
{
"fields": [
{
"kind": "Literal",
"name": "exclude",
"value": {
"names": [
"note"
]
}
},
{
"fields": [
{
"kind": "Literal",
"name": "userIds",
"value": null
}
],
"kind": "ObjectValue",
"name": "include"
}
],
"kind": "ObjectValue",
"name": "filter"
}
],
"concreteType": "SpanAnnotation",
"kind": "LinkedField",
"name": "spanAnnotations",
"plural": true,
"selections": [
(v3/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/)
],
"storageKey": "spanAnnotations(filter:{\"exclude\":{\"names\":[\"note\"]},\"include\":{\"userIds\":null}})"
},
{
"alias": null,
"args": null,
"concreteType": "SpanAnnotation",
"kind": "LinkedField",
"name": "spanAnnotations",
"plural": true,
"selections": [
(v3/*: any*/),
(v4/*: any*/),
(v7/*: any*/),
(v6/*: any*/),
(v8/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "metadata",
"storageKey": null
},
(v5/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "identifier",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "source",
"storageKey": null
},
(v9/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "updatedAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "User",
"kind": "LinkedField",
"name": "user",
"plural": false,
"selections": [
(v3/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "username",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "profilePictureUrl",
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": null
}
],
"type": "Span",
"abstractKey": null
}
],
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": null
}
]
},
"params": {
"cacheID": "bcdc8dccf3bfa49b8aa7960710a4deed",
"id": null,
"metadata": {},
"name": "SpanAnnotationActionMenuDeleteMutation",
"operationKind": "mutation",
"text": "mutation SpanAnnotationActionMenuDeleteMutation(\n $annotationId: ID!\n $spanId: ID!\n) {\n deleteSpanAnnotations(input: {annotationIds: [$annotationId]}) {\n query {\n node(id: $spanId) {\n __typename\n ... on Span {\n ...SpanAnnotationsEditor_spanAnnotations\n ...SpanFeedback_annotations\n }\n id\n }\n }\n }\n}\n\nfragment SpanAnnotationsEditor_spanAnnotations on Span {\n id\n filteredSpanAnnotations: spanAnnotations(filter: {exclude: {names: [\"note\"]}, include: {}}) {\n id\n name\n annotatorKind\n score\n label\n explanation\n createdAt\n }\n}\n\nfragment SpanFeedback_annotations on Span {\n id\n spanAnnotations {\n id\n name\n label\n score\n explanation\n metadata\n annotatorKind\n identifier\n source\n createdAt\n updatedAt\n user {\n id\n username\n profilePictureUrl\n }\n }\n}\n"
}
};
})();
(node as any).hash = "436457e2120f7750037b024a1b96e214";
export default node;