"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 {
        signOut: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SignOut',
            fieldName: 'signOut',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'SignOut', 'signOut', options.select, args, [
                {
                    name: 'input',
                    type: 'SignOutInput!',
                },
            ], input_types_1.connectionFieldsMap, 'SignOutPayload'),
        }),
        sendAccountDeletionEmail: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SendAccountDeletionEmail',
            fieldName: 'sendAccountDeletionEmail',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'SendAccountDeletionEmail', 'sendAccountDeletionEmail', options.select, args, [
                {
                    name: 'input',
                    type: 'SendAccountDeletionEmailInput!',
                },
            ], input_types_1.connectionFieldsMap, 'SendAccountDeletionEmailPayload'),
        }),
        checkPassword: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'CheckPassword',
            fieldName: 'checkPassword',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'CheckPassword', 'checkPassword', options.select, args, [
                {
                    name: 'input',
                    type: 'CheckPasswordInput!',
                },
            ], input_types_1.connectionFieldsMap, 'CheckPasswordPayload'),
        }),
        disconnectAccount: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'DisconnectAccount',
            fieldName: 'disconnectAccount',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'DisconnectAccount', 'disconnectAccount', options.select, args, [
                {
                    name: 'input',
                    type: 'DisconnectAccountInput!',
                },
            ], input_types_1.connectionFieldsMap, 'DisconnectAccountPayload'),
        }),
        revokeApiKey: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'RevokeApiKey',
            fieldName: 'revokeApiKey',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'RevokeApiKey', 'revokeApiKey', options.select, args, [
                {
                    name: 'input',
                    type: 'RevokeApiKeyInput!',
                },
            ], input_types_1.connectionFieldsMap, 'RevokeApiKeyPayload'),
        }),
        revokeSession: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'RevokeSession',
            fieldName: 'revokeSession',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'RevokeSession', 'revokeSession', options.select, args, [
                {
                    name: 'input',
                    type: 'RevokeSessionInput!',
                },
            ], input_types_1.connectionFieldsMap, 'RevokeSessionPayload'),
        }),
        verifyPassword: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'VerifyPassword',
            fieldName: 'verifyPassword',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'VerifyPassword', 'verifyPassword', options.select, args, [
                {
                    name: 'input',
                    type: 'VerifyPasswordInput!',
                },
            ], input_types_1.connectionFieldsMap, 'VerifyPasswordPayload'),
        }),
        verifyTotp: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'VerifyTotp',
            fieldName: 'verifyTotp',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'VerifyTotp', 'verifyTotp', options.select, args, [
                {
                    name: 'input',
                    type: 'VerifyTotpInput!',
                },
            ], input_types_1.connectionFieldsMap, 'VerifyTotpPayload'),
        }),
        confirmDeleteAccount: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'ConfirmDeleteAccount',
            fieldName: 'confirmDeleteAccount',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'ConfirmDeleteAccount', 'confirmDeleteAccount', options.select, args, [
                {
                    name: 'input',
                    type: 'ConfirmDeleteAccountInput!',
                },
            ], input_types_1.connectionFieldsMap, 'ConfirmDeleteAccountPayload'),
        }),
        setPassword: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SetPassword',
            fieldName: 'setPassword',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'SetPassword', 'setPassword', options.select, args, [
                {
                    name: 'input',
                    type: 'SetPasswordInput!',
                },
            ], input_types_1.connectionFieldsMap, 'SetPasswordPayload'),
        }),
        verifyEmail: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'VerifyEmail',
            fieldName: 'verifyEmail',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'VerifyEmail', 'verifyEmail', options.select, args, [
                {
                    name: 'input',
                    type: 'VerifyEmailInput!',
                },
            ], input_types_1.connectionFieldsMap, 'VerifyEmailPayload'),
        }),
        provisionNewUser: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'ProvisionNewUser',
            fieldName: 'provisionNewUser',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'ProvisionNewUser', 'provisionNewUser', options.select, args, [
                {
                    name: 'input',
                    type: 'ProvisionNewUserInput!',
                },
            ], input_types_1.connectionFieldsMap, 'ProvisionNewUserPayload'),
        }),
        resetPassword: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'ResetPassword',
            fieldName: 'resetPassword',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'ResetPassword', 'resetPassword', options.select, args, [
                {
                    name: 'input',
                    type: 'ResetPasswordInput!',
                },
            ], input_types_1.connectionFieldsMap, 'ResetPasswordPayload'),
        }),
        signInCrossOrigin: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SignInCrossOrigin',
            fieldName: 'signInCrossOrigin',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'SignInCrossOrigin', 'signInCrossOrigin', options.select, args, [
                {
                    name: 'input',
                    type: 'SignInCrossOriginInput!',
                },
            ], input_types_1.connectionFieldsMap, 'SignInCrossOriginPayload'),
        }),
        signUp: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SignUp',
            fieldName: 'signUp',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'SignUp', 'signUp', options.select, args, [
                {
                    name: 'input',
                    type: 'SignUpInput!',
                },
            ], input_types_1.connectionFieldsMap, 'SignUpPayload'),
        }),
        requestCrossOriginToken: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'RequestCrossOriginToken',
            fieldName: 'requestCrossOriginToken',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'RequestCrossOriginToken', 'requestCrossOriginToken', options.select, args, [
                {
                    name: 'input',
                    type: 'RequestCrossOriginTokenInput!',
                },
            ], input_types_1.connectionFieldsMap, 'RequestCrossOriginTokenPayload'),
        }),
        signIn: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SignIn',
            fieldName: 'signIn',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'SignIn', 'signIn', options.select, args, [
                {
                    name: 'input',
                    type: 'SignInInput!',
                },
            ], input_types_1.connectionFieldsMap, 'SignInPayload'),
        }),
        extendTokenExpires: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'ExtendTokenExpires',
            fieldName: 'extendTokenExpires',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'ExtendTokenExpires', 'extendTokenExpires', options.select, args, [
                {
                    name: 'input',
                    type: 'ExtendTokenExpiresInput!',
                },
            ], input_types_1.connectionFieldsMap, 'ExtendTokenExpiresPayload'),
        }),
        createApiKey: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'CreateApiKey',
            fieldName: 'createApiKey',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'CreateApiKey', 'createApiKey', options.select, args, [
                {
                    name: 'input',
                    type: 'CreateApiKeyInput!',
                },
            ], input_types_1.connectionFieldsMap, 'CreateApiKeyPayload'),
        }),
        forgotPassword: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'ForgotPassword',
            fieldName: 'forgotPassword',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'ForgotPassword', 'forgotPassword', options.select, args, [
                {
                    name: 'input',
                    type: 'ForgotPasswordInput!',
                },
            ], input_types_1.connectionFieldsMap, 'ForgotPasswordPayload'),
        }),
        sendVerificationEmail: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'mutation',
            operationName: 'SendVerificationEmail',
            fieldName: 'sendVerificationEmail',
            ...(0, query_builder_1.buildCustomDocument)('mutation', 'SendVerificationEmail', 'sendVerificationEmail', options.select, args, [
                {
                    name: 'input',
                    type: 'SendVerificationEmailInput!',
                },
            ], input_types_1.connectionFieldsMap, 'SendVerificationEmailPayload'),
        }),
        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'),
        }),
    };
}
