SettingsAnnotationsPageCreateAnnotationConfigMutation.graphql.ts•12.2 kB
/**
* @generated SignedSource<<da10eb090f7327b1a85390eaed685196>>
* @lightSyntaxTransform
* @nogrep
*/
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
import { FragmentRefs } from "relay-runtime";
export type OptimizationDirection = "MAXIMIZE" | "MINIMIZE" | "NONE";
export type CreateAnnotationConfigInput = {
annotationConfig: AnnotationConfigInput;
};
export type AnnotationConfigInput = {
categorical?: CategoricalAnnotationConfigInput | null;
continuous?: ContinuousAnnotationConfigInput | null;
freeform?: FreeformAnnotationConfigInput | null;
};
export type CategoricalAnnotationConfigInput = {
description?: string | null;
name: string;
optimizationDirection: OptimizationDirection;
values: ReadonlyArray<CategoricalAnnotationConfigValueInput>;
};
export type CategoricalAnnotationConfigValueInput = {
label: string;
score?: number | null;
};
export type ContinuousAnnotationConfigInput = {
description?: string | null;
lowerBound?: number | null;
name: string;
optimizationDirection: OptimizationDirection;
upperBound?: number | null;
};
export type FreeformAnnotationConfigInput = {
description?: string | null;
name: string;
};
export type SettingsAnnotationsPageCreateAnnotationConfigMutation$variables = {
input: CreateAnnotationConfigInput;
};
export type SettingsAnnotationsPageCreateAnnotationConfigMutation$data = {
readonly createAnnotationConfig: {
readonly annotationConfig: {
readonly id?: string;
};
readonly query: {
readonly " $fragmentSpreads": FragmentRefs<"AnnotationConfigTableFragment">;
};
};
};
export type SettingsAnnotationsPageCreateAnnotationConfigMutation = {
response: SettingsAnnotationsPageCreateAnnotationConfigMutation$data;
variables: SettingsAnnotationsPageCreateAnnotationConfigMutation$variables;
};
const node: ConcreteRequest = (function(){
var v0 = [
{
"defaultValue": null,
"kind": "LocalArgument",
"name": "input"
}
],
v1 = [
{
"kind": "Variable",
"name": "input",
"variableName": "input"
}
],
v2 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
v3 = [
(v2/*: any*/)
],
v4 = {
"kind": "InlineFragment",
"selections": (v3/*: any*/),
"type": "ContinuousAnnotationConfig",
"abstractKey": null
},
v5 = {
"kind": "InlineFragment",
"selections": (v3/*: any*/),
"type": "CategoricalAnnotationConfig",
"abstractKey": null
},
v6 = {
"kind": "InlineFragment",
"selections": (v3/*: any*/),
"type": "FreeformAnnotationConfig",
"abstractKey": null
},
v7 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "__typename",
"storageKey": null
},
v8 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
v9 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "description",
"storageKey": null
},
v10 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "annotationType",
"storageKey": null
},
v11 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "optimizationDirection",
"storageKey": null
},
v12 = {
"kind": "InlineFragment",
"selections": (v3/*: any*/),
"type": "Node",
"abstractKey": "__isNode"
};
return {
"fragment": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Fragment",
"metadata": null,
"name": "SettingsAnnotationsPageCreateAnnotationConfigMutation",
"selections": [
{
"alias": null,
"args": (v1/*: any*/),
"concreteType": "CreateAnnotationConfigPayload",
"kind": "LinkedField",
"name": "createAnnotationConfig",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "Query",
"kind": "LinkedField",
"name": "query",
"plural": false,
"selections": [
{
"args": null,
"kind": "FragmentSpread",
"name": "AnnotationConfigTableFragment"
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": null,
"kind": "LinkedField",
"name": "annotationConfig",
"plural": false,
"selections": [
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
}
],
"type": "Mutation",
"abstractKey": null
},
"kind": "Request",
"operation": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Operation",
"name": "SettingsAnnotationsPageCreateAnnotationConfigMutation",
"selections": [
{
"alias": null,
"args": (v1/*: any*/),
"concreteType": "CreateAnnotationConfigPayload",
"kind": "LinkedField",
"name": "createAnnotationConfig",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "Query",
"kind": "LinkedField",
"name": "query",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "AnnotationConfigConnection",
"kind": "LinkedField",
"name": "annotationConfigs",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "AnnotationConfigEdge",
"kind": "LinkedField",
"name": "edges",
"plural": true,
"selections": [
{
"alias": "annotationConfig",
"args": null,
"concreteType": null,
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v7/*: any*/),
{
"kind": "InlineFragment",
"selections": [
(v2/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
(v10/*: any*/),
(v11/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "CategoricalAnnotationValue",
"kind": "LinkedField",
"name": "values",
"plural": true,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "label",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "score",
"storageKey": null
}
],
"storageKey": null
}
],
"type": "CategoricalAnnotationConfig",
"abstractKey": null
},
{
"kind": "InlineFragment",
"selections": [
(v2/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
(v10/*: any*/),
(v11/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "upperBound",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "lowerBound",
"storageKey": null
}
],
"type": "ContinuousAnnotationConfig",
"abstractKey": null
},
{
"kind": "InlineFragment",
"selections": [
(v2/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
(v10/*: any*/)
],
"type": "FreeformAnnotationConfig",
"abstractKey": null
},
(v12/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": null,
"kind": "LinkedField",
"name": "annotationConfig",
"plural": false,
"selections": [
(v7/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
(v12/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
}
]
},
"params": {
"cacheID": "4435e31203bf8e2b8e4f332973a4cd4e",
"id": null,
"metadata": {},
"name": "SettingsAnnotationsPageCreateAnnotationConfigMutation",
"operationKind": "mutation",
"text": "mutation SettingsAnnotationsPageCreateAnnotationConfigMutation(\n $input: CreateAnnotationConfigInput!\n) {\n createAnnotationConfig(input: $input) {\n query {\n ...AnnotationConfigTableFragment\n }\n annotationConfig {\n __typename\n ... on ContinuousAnnotationConfig {\n id\n }\n ... on CategoricalAnnotationConfig {\n id\n }\n ... on FreeformAnnotationConfig {\n id\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n }\n}\n\nfragment AnnotationConfigTableFragment on Query {\n annotationConfigs {\n edges {\n annotationConfig: node {\n __typename\n ... on CategoricalAnnotationConfig {\n id\n name\n description\n annotationType\n optimizationDirection\n values {\n label\n score\n }\n }\n ... on ContinuousAnnotationConfig {\n id\n name\n description\n annotationType\n optimizationDirection\n upperBound\n lowerBound\n }\n ... on FreeformAnnotationConfig {\n id\n name\n description\n annotationType\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n }\n }\n}\n"
}
};
})();
(node as any).hash = "74c458f1e12e1bea2f151135710bbc9b";
export default node;