"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 {
        acceptDatabaseTransfer: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'AcceptDatabaseTransfer',
            fieldName: 'acceptDatabaseTransfer',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'AcceptDatabaseTransfer', 'acceptDatabaseTransfer', options.select, args, [
                {
                    name: 'input',
                    type: 'AcceptDatabaseTransferInput!',
                },
            ], input_types_1.connectionFieldsMap, 'AcceptDatabaseTransferPayload'),
        }),
        applyRls: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'ApplyRls',
            fieldName: 'applyRls',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'ApplyRls', 'applyRls', options.select, args, [
                {
                    name: 'input',
                    type: 'ApplyRlsInput!',
                },
            ], input_types_1.connectionFieldsMap, 'ApplyRlsPayload'),
        }),
        cancelDatabaseTransfer: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'CancelDatabaseTransfer',
            fieldName: 'cancelDatabaseTransfer',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'CancelDatabaseTransfer', 'cancelDatabaseTransfer', options.select, args, [
                {
                    name: 'input',
                    type: 'CancelDatabaseTransferInput!',
                },
            ], input_types_1.connectionFieldsMap, 'CancelDatabaseTransferPayload'),
        }),
        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'),
        }),
        rejectDatabaseTransfer: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'RejectDatabaseTransfer',
            fieldName: 'rejectDatabaseTransfer',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'RejectDatabaseTransfer', 'rejectDatabaseTransfer', options.select, args, [
                {
                    name: 'input',
                    type: 'RejectDatabaseTransferInput!',
                },
            ], input_types_1.connectionFieldsMap, 'RejectDatabaseTransferPayload'),
        }),
        requestDatabase: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'RequestDatabase',
            fieldName: 'requestDatabase',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'RequestDatabase', 'requestDatabase', options.select, args, [
                {
                    name: 'input',
                    type: 'RequestDatabaseInput!',
                },
            ], input_types_1.connectionFieldsMap, 'RequestDatabasePayload'),
        }),
        setFieldOrder: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SetFieldOrder',
            fieldName: 'setFieldOrder',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'SetFieldOrder', 'setFieldOrder', options.select, args, [
                {
                    name: 'input',
                    type: 'SetFieldOrderInput!',
                },
            ], input_types_1.connectionFieldsMap, 'SetFieldOrderPayload'),
        }),
    };
}
