"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createMutationOperations = createMutationOperations;
const query_builder_1 = require("../query-builder");
const input_types_1 = require("../input-types");
function createMutationOperations(client) {
    return {
        validateFunctionGraph: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'ValidateFunctionGraph',
            fieldName: 'validateFunctionGraph',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'ValidateFunctionGraph', 'validateFunctionGraph', options.select, args, [
                {
                    name: 'input',
                    type: 'ValidateFunctionGraphInput!',
                },
            ], input_types_1.connectionFieldsMap, 'ValidateFunctionGraphPayload'),
        }),
        infraInitEmptyRepo: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'InfraInitEmptyRepo',
            fieldName: 'infraInitEmptyRepo',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'InfraInitEmptyRepo', 'infraInitEmptyRepo', options.select, args, [
                {
                    name: 'input',
                    type: 'InfraInitEmptyRepoInput!',
                },
            ], input_types_1.connectionFieldsMap, 'InfraInitEmptyRepoPayload'),
        }),
        initEmptyRepo: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'InitEmptyRepo',
            fieldName: 'initEmptyRepo',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'InitEmptyRepo', 'initEmptyRepo', options.select, args, [
                {
                    name: 'input',
                    type: 'InitEmptyRepoInput!',
                },
            ], input_types_1.connectionFieldsMap, 'InitEmptyRepoPayload'),
        }),
        importDefinitions: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'ImportDefinitions',
            fieldName: 'importDefinitions',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'ImportDefinitions', 'importDefinitions', options.select, args, [
                {
                    name: 'input',
                    type: 'ImportDefinitionsInput!',
                },
            ], input_types_1.connectionFieldsMap, 'ImportDefinitionsPayload'),
        }),
        infraSetDataAtPath: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'InfraSetDataAtPath',
            fieldName: 'infraSetDataAtPath',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'InfraSetDataAtPath', 'infraSetDataAtPath', options.select, args, [
                {
                    name: 'input',
                    type: 'InfraSetDataAtPathInput!',
                },
            ], input_types_1.connectionFieldsMap, 'InfraSetDataAtPathPayload'),
        }),
        setDataAtPath: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SetDataAtPath',
            fieldName: 'setDataAtPath',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'SetDataAtPath', 'setDataAtPath', options.select, args, [
                {
                    name: 'input',
                    type: 'SetDataAtPathInput!',
                },
            ], input_types_1.connectionFieldsMap, 'SetDataAtPathPayload'),
        }),
        copyGraph: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'CopyGraph',
            fieldName: 'copyGraph',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'CopyGraph', 'copyGraph', options.select, args, [
                {
                    name: 'input',
                    type: 'CopyGraphInput!',
                },
            ], input_types_1.connectionFieldsMap, 'CopyGraphPayload'),
        }),
        saveGraph: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SaveGraph',
            fieldName: 'saveGraph',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'SaveGraph', 'saveGraph', options.select, args, [
                {
                    name: 'input',
                    type: 'SaveGraphInput!',
                },
            ], input_types_1.connectionFieldsMap, 'SaveGraphPayload'),
        }),
        addEdgeAndSave: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'AddEdgeAndSave',
            fieldName: 'addEdgeAndSave',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'AddEdgeAndSave', 'addEdgeAndSave', options.select, args, [
                {
                    name: 'input',
                    type: 'AddEdgeAndSaveInput!',
                },
            ], input_types_1.connectionFieldsMap, 'AddEdgeAndSavePayload'),
        }),
        addNodeAndSave: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'AddNodeAndSave',
            fieldName: 'addNodeAndSave',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'AddNodeAndSave', 'addNodeAndSave', options.select, args, [
                {
                    name: 'input',
                    type: 'AddNodeAndSaveInput!',
                },
            ], input_types_1.connectionFieldsMap, 'AddNodeAndSavePayload'),
        }),
        importGraphJson: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'ImportGraphJson',
            fieldName: 'importGraphJson',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'ImportGraphJson', 'importGraphJson', options.select, args, [
                {
                    name: 'input',
                    type: 'ImportGraphJsonInput!',
                },
            ], input_types_1.connectionFieldsMap, 'ImportGraphJsonPayload'),
        }),
        addEdge: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'AddEdge',
            fieldName: 'addEdge',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'AddEdge', 'addEdge', options.select, args, [
                {
                    name: 'input',
                    type: 'AddEdgeInput!',
                },
            ], input_types_1.connectionFieldsMap, 'AddEdgePayload'),
        }),
        addNode: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'AddNode',
            fieldName: 'addNode',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'AddNode', 'addNode', options.select, args, [
                {
                    name: 'input',
                    type: 'AddNodeInput!',
                },
            ], input_types_1.connectionFieldsMap, 'AddNodePayload'),
        }),
        infraInsertNodeAtPath: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'InfraInsertNodeAtPath',
            fieldName: 'infraInsertNodeAtPath',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'InfraInsertNodeAtPath', 'infraInsertNodeAtPath', options.select, args, [
                {
                    name: 'input',
                    type: 'InfraInsertNodeAtPathInput!',
                },
            ], input_types_1.connectionFieldsMap, 'InfraInsertNodeAtPathPayload'),
        }),
        insertNodeAtPath: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'InsertNodeAtPath',
            fieldName: 'insertNodeAtPath',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'InsertNodeAtPath', 'insertNodeAtPath', options.select, args, [
                {
                    name: 'input',
                    type: 'InsertNodeAtPathInput!',
                },
            ], input_types_1.connectionFieldsMap, 'InsertNodeAtPathPayload'),
        }),
        startExecution: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'StartExecution',
            fieldName: 'startExecution',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'StartExecution', 'startExecution', options.select, args, [
                {
                    name: 'input',
                    type: 'StartExecutionInput!',
                },
            ], input_types_1.connectionFieldsMap, 'StartExecutionPayload'),
        }),
        provisionBucket: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'ProvisionBucket',
            fieldName: 'provisionBucket',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'ProvisionBucket', 'provisionBucket', options.select, args, [
                {
                    name: 'input',
                    type: 'ProvisionBucketInput!',
                },
            ], input_types_1.connectionFieldsMap, 'ProvisionBucketPayload'),
        }),
    };
}
