import { QueryBuilder, buildCustomDocument } from '../query-builder';
import { connectionFieldsMap } from '../input-types';
export function createMutationOperations(client) {
    return {
        acceptDatabaseTransfer: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'AcceptDatabaseTransfer',
            fieldName: 'acceptDatabaseTransfer',
            ...buildCustomDocument('mutation', 'AcceptDatabaseTransfer', 'acceptDatabaseTransfer', options.select, args, [
                {
                    name: 'input',
                    type: 'AcceptDatabaseTransferInput!',
                },
            ], connectionFieldsMap, 'AcceptDatabaseTransferPayload'),
        }),
        cancelDatabaseTransfer: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'CancelDatabaseTransfer',
            fieldName: 'cancelDatabaseTransfer',
            ...buildCustomDocument('mutation', 'CancelDatabaseTransfer', 'cancelDatabaseTransfer', options.select, args, [
                {
                    name: 'input',
                    type: 'CancelDatabaseTransferInput!',
                },
            ], connectionFieldsMap, 'CancelDatabaseTransferPayload'),
        }),
        rejectDatabaseTransfer: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'RejectDatabaseTransfer',
            fieldName: 'rejectDatabaseTransfer',
            ...buildCustomDocument('mutation', 'RejectDatabaseTransfer', 'rejectDatabaseTransfer', options.select, args, [
                {
                    name: 'input',
                    type: 'RejectDatabaseTransferInput!',
                },
            ], connectionFieldsMap, 'RejectDatabaseTransferPayload'),
        }),
        setFieldOrder: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SetFieldOrder',
            fieldName: 'setFieldOrder',
            ...buildCustomDocument('mutation', 'SetFieldOrder', 'setFieldOrder', options.select, args, [
                {
                    name: 'input',
                    type: 'SetFieldOrderInput!',
                },
            ], connectionFieldsMap, 'SetFieldOrderPayload'),
        }),
        applyRls: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'ApplyRls',
            fieldName: 'applyRls',
            ...buildCustomDocument('mutation', 'ApplyRls', 'applyRls', options.select, args, [
                {
                    name: 'input',
                    type: 'ApplyRlsInput!',
                },
            ], connectionFieldsMap, 'ApplyRlsPayload'),
        }),
        requestDatabase: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'RequestDatabase',
            fieldName: 'requestDatabase',
            ...buildCustomDocument('mutation', 'RequestDatabase', 'requestDatabase', options.select, args, [
                {
                    name: 'input',
                    type: 'RequestDatabaseInput!',
                },
            ], connectionFieldsMap, 'RequestDatabasePayload'),
        }),
        provisionBucket: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'ProvisionBucket',
            fieldName: 'provisionBucket',
            ...buildCustomDocument('mutation', 'ProvisionBucket', 'provisionBucket', options.select, args, [
                {
                    name: 'input',
                    type: 'ProvisionBucketInput!',
                },
            ], connectionFieldsMap, 'ProvisionBucketPayload'),
        }),
    };
}
