306 lines
7.6 KiB
TypeScript
306 lines
7.6 KiB
TypeScript
/**
|
|
* @generated SignedSource<<9f6605e9adebeee2a681da0278642501>>
|
|
* @lightSyntaxTransform
|
|
* @nogrep
|
|
*/
|
|
|
|
/* tslint:disable */
|
|
/* eslint-disable */
|
|
// @ts-nocheck
|
|
|
|
import { ConcreteRequest } from 'relay-runtime';
|
|
export type AssetType = "PHYSICAL" | "VIRTUAL";
|
|
export type CriticityLevel = "HIGH" | "LOW" | "MEDIUM";
|
|
export type CreateAssetInput = {
|
|
amount: number;
|
|
assetType: AssetType;
|
|
criticity?: CriticityLevel;
|
|
dataTypesStored: string;
|
|
name: string;
|
|
organizationId: string;
|
|
ownerId: string;
|
|
vendorIds?: ReadonlyArray<string> | null | undefined;
|
|
};
|
|
export type AssetGraphCreateMutation$variables = {
|
|
connections: ReadonlyArray<string>;
|
|
input: CreateAssetInput;
|
|
};
|
|
export type AssetGraphCreateMutation$data = {
|
|
readonly createAsset: {
|
|
readonly assetEdge: {
|
|
readonly node: {
|
|
readonly amount: number;
|
|
readonly assetType: AssetType;
|
|
readonly createdAt: any;
|
|
readonly criticity: CriticityLevel;
|
|
readonly dataTypesStored: string;
|
|
readonly id: string;
|
|
readonly name: string;
|
|
readonly owner: {
|
|
readonly fullName: string;
|
|
readonly id: string;
|
|
};
|
|
readonly snapshotId: string | null | undefined;
|
|
readonly vendors: {
|
|
readonly edges: ReadonlyArray<{
|
|
readonly node: {
|
|
readonly id: string;
|
|
readonly name: string;
|
|
readonly websiteUrl: string | null | undefined;
|
|
};
|
|
}>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
export type AssetGraphCreateMutation = {
|
|
response: AssetGraphCreateMutation$data;
|
|
variables: AssetGraphCreateMutation$variables;
|
|
};
|
|
|
|
const node: ConcreteRequest = (function(){
|
|
var v0 = {
|
|
"defaultValue": null,
|
|
"kind": "LocalArgument",
|
|
"name": "connections"
|
|
},
|
|
v1 = {
|
|
"defaultValue": null,
|
|
"kind": "LocalArgument",
|
|
"name": "input"
|
|
},
|
|
v2 = [
|
|
{
|
|
"kind": "Variable",
|
|
"name": "input",
|
|
"variableName": "input"
|
|
}
|
|
],
|
|
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,
|
|
"concreteType": "AssetEdge",
|
|
"kind": "LinkedField",
|
|
"name": "assetEdge",
|
|
"plural": false,
|
|
"selections": [
|
|
{
|
|
"alias": null,
|
|
"args": null,
|
|
"concreteType": "Asset",
|
|
"kind": "LinkedField",
|
|
"name": "node",
|
|
"plural": false,
|
|
"selections": [
|
|
(v3/*: any*/),
|
|
{
|
|
"alias": null,
|
|
"args": null,
|
|
"kind": "ScalarField",
|
|
"name": "snapshotId",
|
|
"storageKey": null
|
|
},
|
|
(v4/*: any*/),
|
|
{
|
|
"alias": null,
|
|
"args": null,
|
|
"kind": "ScalarField",
|
|
"name": "amount",
|
|
"storageKey": null
|
|
},
|
|
{
|
|
"alias": null,
|
|
"args": null,
|
|
"kind": "ScalarField",
|
|
"name": "criticity",
|
|
"storageKey": null
|
|
},
|
|
{
|
|
"alias": null,
|
|
"args": null,
|
|
"kind": "ScalarField",
|
|
"name": "assetType",
|
|
"storageKey": null
|
|
},
|
|
{
|
|
"alias": null,
|
|
"args": null,
|
|
"kind": "ScalarField",
|
|
"name": "dataTypesStored",
|
|
"storageKey": null
|
|
},
|
|
{
|
|
"alias": null,
|
|
"args": null,
|
|
"concreteType": "People",
|
|
"kind": "LinkedField",
|
|
"name": "owner",
|
|
"plural": false,
|
|
"selections": [
|
|
(v3/*: any*/),
|
|
{
|
|
"alias": null,
|
|
"args": null,
|
|
"kind": "ScalarField",
|
|
"name": "fullName",
|
|
"storageKey": null
|
|
}
|
|
],
|
|
"storageKey": null
|
|
},
|
|
{
|
|
"alias": null,
|
|
"args": [
|
|
{
|
|
"kind": "Literal",
|
|
"name": "first",
|
|
"value": 50
|
|
}
|
|
],
|
|
"concreteType": "VendorConnection",
|
|
"kind": "LinkedField",
|
|
"name": "vendors",
|
|
"plural": false,
|
|
"selections": [
|
|
{
|
|
"alias": null,
|
|
"args": null,
|
|
"concreteType": "VendorEdge",
|
|
"kind": "LinkedField",
|
|
"name": "edges",
|
|
"plural": true,
|
|
"selections": [
|
|
{
|
|
"alias": null,
|
|
"args": null,
|
|
"concreteType": "Vendor",
|
|
"kind": "LinkedField",
|
|
"name": "node",
|
|
"plural": false,
|
|
"selections": [
|
|
(v3/*: any*/),
|
|
(v4/*: any*/),
|
|
{
|
|
"alias": null,
|
|
"args": null,
|
|
"kind": "ScalarField",
|
|
"name": "websiteUrl",
|
|
"storageKey": null
|
|
}
|
|
],
|
|
"storageKey": null
|
|
}
|
|
],
|
|
"storageKey": null
|
|
}
|
|
],
|
|
"storageKey": "vendors(first:50)"
|
|
},
|
|
{
|
|
"alias": null,
|
|
"args": null,
|
|
"kind": "ScalarField",
|
|
"name": "createdAt",
|
|
"storageKey": null
|
|
}
|
|
],
|
|
"storageKey": null
|
|
}
|
|
],
|
|
"storageKey": null
|
|
};
|
|
return {
|
|
"fragment": {
|
|
"argumentDefinitions": [
|
|
(v0/*: any*/),
|
|
(v1/*: any*/)
|
|
],
|
|
"kind": "Fragment",
|
|
"metadata": null,
|
|
"name": "AssetGraphCreateMutation",
|
|
"selections": [
|
|
{
|
|
"alias": null,
|
|
"args": (v2/*: any*/),
|
|
"concreteType": "CreateAssetPayload",
|
|
"kind": "LinkedField",
|
|
"name": "createAsset",
|
|
"plural": false,
|
|
"selections": [
|
|
(v5/*: any*/)
|
|
],
|
|
"storageKey": null
|
|
}
|
|
],
|
|
"type": "Mutation",
|
|
"abstractKey": null
|
|
},
|
|
"kind": "Request",
|
|
"operation": {
|
|
"argumentDefinitions": [
|
|
(v1/*: any*/),
|
|
(v0/*: any*/)
|
|
],
|
|
"kind": "Operation",
|
|
"name": "AssetGraphCreateMutation",
|
|
"selections": [
|
|
{
|
|
"alias": null,
|
|
"args": (v2/*: any*/),
|
|
"concreteType": "CreateAssetPayload",
|
|
"kind": "LinkedField",
|
|
"name": "createAsset",
|
|
"plural": false,
|
|
"selections": [
|
|
(v5/*: any*/),
|
|
{
|
|
"alias": null,
|
|
"args": null,
|
|
"filters": null,
|
|
"handle": "prependEdge",
|
|
"key": "",
|
|
"kind": "LinkedHandle",
|
|
"name": "assetEdge",
|
|
"handleArgs": [
|
|
{
|
|
"kind": "Variable",
|
|
"name": "connections",
|
|
"variableName": "connections"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"storageKey": null
|
|
}
|
|
]
|
|
},
|
|
"params": {
|
|
"cacheID": "f11f5052ed6dd175bd701812c0cd136b",
|
|
"id": null,
|
|
"metadata": {},
|
|
"name": "AssetGraphCreateMutation",
|
|
"operationKind": "mutation",
|
|
"text": "mutation AssetGraphCreateMutation(\n $input: CreateAssetInput!\n) {\n createAsset(input: $input) {\n assetEdge {\n node {\n id\n snapshotId\n name\n amount\n criticity\n assetType\n dataTypesStored\n owner {\n id\n fullName\n }\n vendors(first: 50) {\n edges {\n node {\n id\n name\n websiteUrl\n }\n }\n }\n createdAt\n }\n }\n }\n}\n"
|
|
}
|
|
};
|
|
})();
|
|
|
|
(node as any).hash = "3cec119022d8dffb8536d93294e2633b";
|
|
|
|
export default node;
|