import { QueryBuilder, buildCustomDocument } from '../query-builder';
import { connectionFieldsMap } from '../input-types';
export function createMutationOperations(client) {
    return {
        submitAppInviteCode: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SubmitAppInviteCode',
            fieldName: 'submitAppInviteCode',
            ...buildCustomDocument('mutation', 'SubmitAppInviteCode', 'submitAppInviteCode', options.select, args, [
                {
                    name: 'input',
                    type: 'SubmitAppInviteCodeInput!',
                },
            ], connectionFieldsMap, 'SubmitAppInviteCodePayload'),
        }),
        submitOrgInviteCode: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SubmitOrgInviteCode',
            fieldName: 'submitOrgInviteCode',
            ...buildCustomDocument('mutation', 'SubmitOrgInviteCode', 'submitOrgInviteCode', options.select, args, [
                {
                    name: 'input',
                    type: 'SubmitOrgInviteCodeInput!',
                },
            ], connectionFieldsMap, 'SubmitOrgInviteCodePayload'),
        }),
        requestUploadUrl: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'RequestUploadUrl',
            fieldName: 'requestUploadUrl',
            ...buildCustomDocument('mutation', 'RequestUploadUrl', 'requestUploadUrl', options.select, args, [
                {
                    name: 'input',
                    type: 'RequestUploadUrlInput!',
                },
            ], connectionFieldsMap, 'RequestUploadUrlPayload'),
        }),
        confirmUpload: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'ConfirmUpload',
            fieldName: 'confirmUpload',
            ...buildCustomDocument('mutation', 'ConfirmUpload', 'confirmUpload', options.select, args, [
                {
                    name: 'input',
                    type: 'ConfirmUploadInput!',
                },
            ], connectionFieldsMap, 'ConfirmUploadPayload'),
        }),
        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'),
        }),
    };
}
