import { QueryBuilder, buildCustomDocument } from '../query-builder';
import { connectionFieldsMap } from '../input-types';
export function createMutationOperations(client) {
    return {
        checkPassword: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'CheckPassword',
            fieldName: 'checkPassword',
            ...buildCustomDocument('mutation', 'CheckPassword', 'checkPassword', options.select, args, [
                {
                    name: 'input',
                    type: 'CheckPasswordInput!',
                },
            ], connectionFieldsMap, 'CheckPasswordPayload'),
        }),
        confirmDeleteAccount: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'ConfirmDeleteAccount',
            fieldName: 'confirmDeleteAccount',
            ...buildCustomDocument('mutation', 'ConfirmDeleteAccount', 'confirmDeleteAccount', options.select, args, [
                {
                    name: 'input',
                    type: 'ConfirmDeleteAccountInput!',
                },
            ], connectionFieldsMap, 'ConfirmDeleteAccountPayload'),
        }),
        createApiKey: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'CreateApiKey',
            fieldName: 'createApiKey',
            ...buildCustomDocument('mutation', 'CreateApiKey', 'createApiKey', options.select, args, [
                {
                    name: 'input',
                    type: 'CreateApiKeyInput!',
                },
            ], connectionFieldsMap, 'CreateApiKeyPayload'),
        }),
        createOrgApiKey: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'CreateOrgApiKey',
            fieldName: 'createOrgApiKey',
            ...buildCustomDocument('mutation', 'CreateOrgApiKey', 'createOrgApiKey', options.select, args, [
                {
                    name: 'input',
                    type: 'CreateOrgApiKeyInput!',
                },
            ], connectionFieldsMap, 'CreateOrgApiKeyPayload'),
        }),
        createOrgPrincipal: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'CreateOrgPrincipal',
            fieldName: 'createOrgPrincipal',
            ...buildCustomDocument('mutation', 'CreateOrgPrincipal', 'createOrgPrincipal', options.select, args, [
                {
                    name: 'input',
                    type: 'CreateOrgPrincipalInput!',
                },
            ], connectionFieldsMap, 'CreateOrgPrincipalPayload'),
        }),
        deleteOrgPrincipal: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'DeleteOrgPrincipal',
            fieldName: 'deleteOrgPrincipal',
            ...buildCustomDocument('mutation', 'DeleteOrgPrincipal', 'deleteOrgPrincipal', options.select, args, [
                {
                    name: 'input',
                    type: 'DeleteOrgPrincipalInput!',
                },
            ], connectionFieldsMap, 'DeleteOrgPrincipalPayload'),
        }),
        deletePrincipal: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'DeletePrincipal',
            fieldName: 'deletePrincipal',
            ...buildCustomDocument('mutation', 'DeletePrincipal', 'deletePrincipal', options.select, args, [
                {
                    name: 'input',
                    type: 'DeletePrincipalInput!',
                },
            ], connectionFieldsMap, 'DeletePrincipalPayload'),
        }),
        disconnectAccount: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'DisconnectAccount',
            fieldName: 'disconnectAccount',
            ...buildCustomDocument('mutation', 'DisconnectAccount', 'disconnectAccount', options.select, args, [
                {
                    name: 'input',
                    type: 'DisconnectAccountInput!',
                },
            ], connectionFieldsMap, 'DisconnectAccountPayload'),
        }),
        extendTokenExpires: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'ExtendTokenExpires',
            fieldName: 'extendTokenExpires',
            ...buildCustomDocument('mutation', 'ExtendTokenExpires', 'extendTokenExpires', options.select, args, [
                {
                    name: 'input',
                    type: 'ExtendTokenExpiresInput!',
                },
            ], connectionFieldsMap, 'ExtendTokenExpiresPayload'),
        }),
        forgotPassword: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'ForgotPassword',
            fieldName: 'forgotPassword',
            ...buildCustomDocument('mutation', 'ForgotPassword', 'forgotPassword', options.select, args, [
                {
                    name: 'input',
                    type: 'ForgotPasswordInput!',
                },
            ], connectionFieldsMap, 'ForgotPasswordPayload'),
        }),
        linkIdentity: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'LinkIdentity',
            fieldName: 'linkIdentity',
            ...buildCustomDocument('mutation', 'LinkIdentity', 'linkIdentity', options.select, args, [
                {
                    name: 'input',
                    type: 'LinkIdentityInput!',
                },
            ], connectionFieldsMap, 'LinkIdentityPayload'),
        }),
        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'),
        }),
        provisionNewUser: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'ProvisionNewUser',
            fieldName: 'provisionNewUser',
            ...buildCustomDocument('mutation', 'ProvisionNewUser', 'provisionNewUser', options.select, args, [
                {
                    name: 'input',
                    type: 'ProvisionNewUserInput!',
                },
            ], connectionFieldsMap, 'ProvisionNewUserPayload'),
        }),
        requestCrossOriginToken: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'RequestCrossOriginToken',
            fieldName: 'requestCrossOriginToken',
            ...buildCustomDocument('mutation', 'RequestCrossOriginToken', 'requestCrossOriginToken', options.select, args, [
                {
                    name: 'input',
                    type: 'RequestCrossOriginTokenInput!',
                },
            ], connectionFieldsMap, 'RequestCrossOriginTokenPayload'),
        }),
        resetPassword: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'ResetPassword',
            fieldName: 'resetPassword',
            ...buildCustomDocument('mutation', 'ResetPassword', 'resetPassword', options.select, args, [
                {
                    name: 'input',
                    type: 'ResetPasswordInput!',
                },
            ], connectionFieldsMap, 'ResetPasswordPayload'),
        }),
        revokeApiKey: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'RevokeApiKey',
            fieldName: 'revokeApiKey',
            ...buildCustomDocument('mutation', 'RevokeApiKey', 'revokeApiKey', options.select, args, [
                {
                    name: 'input',
                    type: 'RevokeApiKeyInput!',
                },
            ], connectionFieldsMap, 'RevokeApiKeyPayload'),
        }),
        revokeOrgApiKey: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'RevokeOrgApiKey',
            fieldName: 'revokeOrgApiKey',
            ...buildCustomDocument('mutation', 'RevokeOrgApiKey', 'revokeOrgApiKey', options.select, args, [
                {
                    name: 'input',
                    type: 'RevokeOrgApiKeyInput!',
                },
            ], connectionFieldsMap, 'RevokeOrgApiKeyPayload'),
        }),
        revokeSession: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'RevokeSession',
            fieldName: 'revokeSession',
            ...buildCustomDocument('mutation', 'RevokeSession', 'revokeSession', options.select, args, [
                {
                    name: 'input',
                    type: 'RevokeSessionInput!',
                },
            ], connectionFieldsMap, 'RevokeSessionPayload'),
        }),
        sendAccountDeletionEmail: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SendAccountDeletionEmail',
            fieldName: 'sendAccountDeletionEmail',
            ...buildCustomDocument('mutation', 'SendAccountDeletionEmail', 'sendAccountDeletionEmail', options.select, args, [
                {
                    name: 'input',
                    type: 'SendAccountDeletionEmailInput!',
                },
            ], connectionFieldsMap, 'SendAccountDeletionEmailPayload'),
        }),
        sendVerificationEmail: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SendVerificationEmail',
            fieldName: 'sendVerificationEmail',
            ...buildCustomDocument('mutation', 'SendVerificationEmail', 'sendVerificationEmail', options.select, args, [
                {
                    name: 'input',
                    type: 'SendVerificationEmailInput!',
                },
            ], connectionFieldsMap, 'SendVerificationEmailPayload'),
        }),
        setPassword: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SetPassword',
            fieldName: 'setPassword',
            ...buildCustomDocument('mutation', 'SetPassword', 'setPassword', options.select, args, [
                {
                    name: 'input',
                    type: 'SetPasswordInput!',
                },
            ], connectionFieldsMap, 'SetPasswordPayload'),
        }),
        signIn: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SignIn',
            fieldName: 'signIn',
            ...buildCustomDocument('mutation', 'SignIn', 'signIn', options.select, args, [
                {
                    name: 'input',
                    type: 'SignInInput!',
                },
            ], connectionFieldsMap, 'SignInPayload'),
        }),
        signInCrossOrigin: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SignInCrossOrigin',
            fieldName: 'signInCrossOrigin',
            ...buildCustomDocument('mutation', 'SignInCrossOrigin', 'signInCrossOrigin', options.select, args, [
                {
                    name: 'input',
                    type: 'SignInCrossOriginInput!',
                },
            ], connectionFieldsMap, 'SignInCrossOriginPayload'),
        }),
        signInSmsOtp: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SignInSmsOtp',
            fieldName: 'signInSmsOtp',
            ...buildCustomDocument('mutation', 'SignInSmsOtp', 'signInSmsOtp', options.select, args, [
                {
                    name: 'input',
                    type: 'SignInSmsOtpInput!',
                },
            ], connectionFieldsMap, 'SignInSmsOtpPayload'),
        }),
        signOut: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SignOut',
            fieldName: 'signOut',
            ...buildCustomDocument('mutation', 'SignOut', 'signOut', options.select, args, [
                {
                    name: 'input',
                    type: 'SignOutInput!',
                },
            ], connectionFieldsMap, 'SignOutPayload'),
        }),
        signUp: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SignUp',
            fieldName: 'signUp',
            ...buildCustomDocument('mutation', 'SignUp', 'signUp', options.select, args, [
                {
                    name: 'input',
                    type: 'SignUpInput!',
                },
            ], connectionFieldsMap, 'SignUpPayload'),
        }),
        signUpSms: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SignUpSms',
            fieldName: 'signUpSms',
            ...buildCustomDocument('mutation', 'SignUpSms', 'signUpSms', options.select, args, [
                {
                    name: 'input',
                    type: 'SignUpSmsInput!',
                },
            ], connectionFieldsMap, 'SignUpSmsPayload'),
        }),
        verifyEmail: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'VerifyEmail',
            fieldName: 'verifyEmail',
            ...buildCustomDocument('mutation', 'VerifyEmail', 'verifyEmail', options.select, args, [
                {
                    name: 'input',
                    type: 'VerifyEmailInput!',
                },
            ], connectionFieldsMap, 'VerifyEmailPayload'),
        }),
        verifyPassword: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'VerifyPassword',
            fieldName: 'verifyPassword',
            ...buildCustomDocument('mutation', 'VerifyPassword', 'verifyPassword', options.select, args, [
                {
                    name: 'input',
                    type: 'VerifyPasswordInput!',
                },
            ], connectionFieldsMap, 'VerifyPasswordPayload'),
        }),
        verifyTotp: (args, options) => new QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'VerifyTotp',
            fieldName: 'verifyTotp',
            ...buildCustomDocument('mutation', 'VerifyTotp', 'verifyTotp', options.select, args, [
                {
                    name: 'input',
                    type: 'VerifyTotpInput!',
                },
            ], connectionFieldsMap, 'VerifyTotpPayload'),
        }),
    };
}
