UNPKG

fastcomments-sdk

Version:

FastComments API Client - A SDK for interacting with the FastComments API

2,618 lines 147 kB
"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * fastcomments
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
const axios_1 = __importDefault(require("axios"));
// Some imports not used depending on template conditions
// @ts-ignore
const common_1 = require("../common");
// @ts-ignore
const base_1 = require("../base");
/**
 * DefaultApi - axios parameter creator
 * @export
 */
const DefaultApiAxiosParamCreator = function (configuration) {
    return {
        /**
         *
         * @param {string} tenantId
         * @param {AddDomainConfigParams} addDomainConfigParams
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        addDomainConfig: async (tenantId, addDomainConfigParams, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('addDomainConfig', 'tenantId', tenantId);
            // verify required parameter 'addDomainConfigParams' is not null or undefined
            (0, common_1.assertParamExists)('addDomainConfig', 'addDomainConfigParams', addDomainConfigParams);
            const localVarPath = `/api/v1/domain-configs`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addDomainConfigParams, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported.
         * @param {string} tenantId
         * @param {AggregationRequest} aggregationRequest
         * @param {string} [parentTenantId]
         * @param {boolean} [includeStats]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        aggregate: async (tenantId, aggregationRequest, parentTenantId, includeStats, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('aggregate', 'tenantId', tenantId);
            // verify required parameter 'aggregationRequest' is not null or undefined
            (0, common_1.assertParamExists)('aggregate', 'aggregationRequest', aggregationRequest);
            const localVarPath = `/api/v1/aggregate`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            if (parentTenantId !== undefined) {
                localVarQueryParameter['parentTenantId'] = parentTenantId;
            }
            if (includeStats !== undefined) {
                localVarQueryParameter['includeStats'] = includeStats;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aggregationRequest, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} [questionId]
         * @param {Array<string>} [questionIds]
         * @param {string} [urlId]
         * @param {AggregateTimeBucket} [timeBucket]
         * @param {string} [startDate]
         * @param {boolean} [forceRecalculate]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        aggregateQuestionResults: async (tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('aggregateQuestionResults', 'tenantId', tenantId);
            const localVarPath = `/api/v1/question-results-aggregation`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            if (questionId !== undefined) {
                localVarQueryParameter['questionId'] = questionId;
            }
            if (questionIds) {
                localVarQueryParameter['questionIds'] = questionIds;
            }
            if (urlId !== undefined) {
                localVarQueryParameter['urlId'] = urlId;
            }
            if (timeBucket !== undefined) {
                localVarQueryParameter['timeBucket'] = timeBucket;
            }
            if (startDate !== undefined) {
                localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
                    startDate.toISOString() :
                    startDate;
            }
            if (forceRecalculate !== undefined) {
                localVarQueryParameter['forceRecalculate'] = forceRecalculate;
            }
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {BlockFromCommentParams} blockFromCommentParams
         * @param {string} [userId]
         * @param {string} [anonUserId]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        blockUserFromComment: async (tenantId, id, blockFromCommentParams, userId, anonUserId, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('blockUserFromComment', 'tenantId', tenantId);
            // verify required parameter 'id' is not null or undefined
            (0, common_1.assertParamExists)('blockUserFromComment', 'id', id);
            // verify required parameter 'blockFromCommentParams' is not null or undefined
            (0, common_1.assertParamExists)('blockUserFromComment', 'blockFromCommentParams', blockFromCommentParams);
            const localVarPath = `/api/v1/comments/{id}/block`
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            if (userId !== undefined) {
                localVarQueryParameter['userId'] = userId;
            }
            if (anonUserId !== undefined) {
                localVarQueryParameter['anonUserId'] = anonUserId;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(blockFromCommentParams, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {BulkAggregateQuestionResultsRequest} bulkAggregateQuestionResultsRequest
         * @param {boolean} [forceRecalculate]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        bulkAggregateQuestionResults: async (tenantId, bulkAggregateQuestionResultsRequest, forceRecalculate, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('bulkAggregateQuestionResults', 'tenantId', tenantId);
            // verify required parameter 'bulkAggregateQuestionResultsRequest' is not null or undefined
            (0, common_1.assertParamExists)('bulkAggregateQuestionResults', 'bulkAggregateQuestionResultsRequest', bulkAggregateQuestionResultsRequest);
            const localVarPath = `/api/v1/question-results-aggregation/bulk`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            if (forceRecalculate !== undefined) {
                localVarQueryParameter['forceRecalculate'] = forceRecalculate;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bulkAggregateQuestionResultsRequest, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} [questionId]
         * @param {Array<string>} [questionIds]
         * @param {string} [urlId]
         * @param {string} [startDate]
         * @param {boolean} [forceRecalculate]
         * @param {number} [minValue]
         * @param {number} [maxValue]
         * @param {number} [limit]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        combineCommentsWithQuestionResults: async (tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('combineCommentsWithQuestionResults', 'tenantId', tenantId);
            const localVarPath = `/api/v1/question-results-aggregation/combine/comments`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            if (questionId !== undefined) {
                localVarQueryParameter['questionId'] = questionId;
            }
            if (questionIds) {
                localVarQueryParameter['questionIds'] = questionIds;
            }
            if (urlId !== undefined) {
                localVarQueryParameter['urlId'] = urlId;
            }
            if (startDate !== undefined) {
                localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
                    startDate.toISOString() :
                    startDate;
            }
            if (forceRecalculate !== undefined) {
                localVarQueryParameter['forceRecalculate'] = forceRecalculate;
            }
            if (minValue !== undefined) {
                localVarQueryParameter['minValue'] = minValue;
            }
            if (maxValue !== undefined) {
                localVarQueryParameter['maxValue'] = maxValue;
            }
            if (limit !== undefined) {
                localVarQueryParameter['limit'] = limit;
            }
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {CreateFeedPostParams} createFeedPostParams
         * @param {string} [broadcastId]
         * @param {boolean} [isLive]
         * @param {boolean} [doSpamCheck]
         * @param {boolean} [skipDupCheck]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createFeedPost: async (tenantId, createFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('createFeedPost', 'tenantId', tenantId);
            // verify required parameter 'createFeedPostParams' is not null or undefined
            (0, common_1.assertParamExists)('createFeedPost', 'createFeedPostParams', createFeedPostParams);
            const localVarPath = `/api/v1/feed-posts`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            if (broadcastId !== undefined) {
                localVarQueryParameter['broadcastId'] = broadcastId;
            }
            if (isLive !== undefined) {
                localVarQueryParameter['isLive'] = isLive;
            }
            if (doSpamCheck !== undefined) {
                localVarQueryParameter['doSpamCheck'] = doSpamCheck;
            }
            if (skipDupCheck !== undefined) {
                localVarQueryParameter['skipDupCheck'] = skipDupCheck;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createFeedPostParams, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {CreateUserBadgeParams} createUserBadgeParams
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createUserBadge: async (tenantId, createUserBadgeParams, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('createUserBadge', 'tenantId', tenantId);
            // verify required parameter 'createUserBadgeParams' is not null or undefined
            (0, common_1.assertParamExists)('createUserBadge', 'createUserBadgeParams', createUserBadgeParams);
            const localVarPath = `/api/v1/user-badges`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createUserBadgeParams, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {string} [contextUserId]
         * @param {boolean} [isLive]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteComment: async (tenantId, id, contextUserId, isLive, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('deleteComment', 'tenantId', tenantId);
            // verify required parameter 'id' is not null or undefined
            (0, common_1.assertParamExists)('deleteComment', 'id', id);
            const localVarPath = `/api/v1/comments/{id}`
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            if (contextUserId !== undefined) {
                localVarQueryParameter['contextUserId'] = contextUserId;
            }
            if (isLive !== undefined) {
                localVarQueryParameter['isLive'] = isLive;
            }
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} domain
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteDomainConfig: async (tenantId, domain, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('deleteDomainConfig', 'tenantId', tenantId);
            // verify required parameter 'domain' is not null or undefined
            (0, common_1.assertParamExists)('deleteDomainConfig', 'domain', domain);
            const localVarPath = `/api/v1/domain-configs/{domain}`
                .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteUserBadge: async (tenantId, id, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('deleteUserBadge', 'tenantId', tenantId);
            // verify required parameter 'id' is not null or undefined
            (0, common_1.assertParamExists)('deleteUserBadge', 'id', id);
            const localVarPath = `/api/v1/user-badges/{id}`
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {string} [userId]
         * @param {string} [anonUserId]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        flagComment: async (tenantId, id, userId, anonUserId, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('flagComment', 'tenantId', tenantId);
            // verify required parameter 'id' is not null or undefined
            (0, common_1.assertParamExists)('flagComment', 'id', id);
            const localVarPath = `/api/v1/comments/{id}/flag`
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            if (userId !== undefined) {
                localVarQueryParameter['userId'] = userId;
            }
            if (anonUserId !== undefined) {
                localVarQueryParameter['anonUserId'] = anonUserId;
            }
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {number} [limit]
         * @param {number} [skip]
         * @param {SORTDIR} [order]
         * @param {number} [after]
         * @param {number} [before]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getAuditLogs: async (tenantId, limit, skip, order, after, before, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('getAuditLogs', 'tenantId', tenantId);
            const localVarPath = `/api/v1/audit-logs`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            if (limit !== undefined) {
                localVarQueryParameter['limit'] = limit;
            }
            if (skip !== undefined) {
                localVarQueryParameter['skip'] = skip;
            }
            if (order !== undefined) {
                localVarQueryParameter['order'] = order;
            }
            if (after !== undefined) {
                localVarQueryParameter['after'] = after;
            }
            if (before !== undefined) {
                localVarQueryParameter['before'] = before;
            }
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getComment: async (tenantId, id, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('getComment', 'tenantId', tenantId);
            // verify required parameter 'id' is not null or undefined
            (0, common_1.assertParamExists)('getComment', 'id', id);
            const localVarPath = `/api/v1/comments/{id}`
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {number} [page]
         * @param {number} [limit]
         * @param {number} [skip]
         * @param {boolean} [asTree]
         * @param {number} [skipChildren]
         * @param {number} [limitChildren]
         * @param {number} [maxTreeDepth]
         * @param {string} [urlId]
         * @param {string} [userId]
         * @param {string} [anonUserId]
         * @param {string} [contextUserId]
         * @param {string} [hashTag]
         * @param {string} [parentId]
         * @param {SortDirections} [direction]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getComments: async (tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('getComments', 'tenantId', tenantId);
            const localVarPath = `/api/v1/comments`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            if (page !== undefined) {
                localVarQueryParameter['page'] = page;
            }
            if (limit !== undefined) {
                localVarQueryParameter['limit'] = limit;
            }
            if (skip !== undefined) {
                localVarQueryParameter['skip'] = skip;
            }
            if (asTree !== undefined) {
                localVarQueryParameter['asTree'] = asTree;
            }
            if (skipChildren !== undefined) {
                localVarQueryParameter['skipChildren'] = skipChildren;
            }
            if (limitChildren !== undefined) {
                localVarQueryParameter['limitChildren'] = limitChildren;
            }
            if (maxTreeDepth !== undefined) {
                localVarQueryParameter['maxTreeDepth'] = maxTreeDepth;
            }
            if (urlId !== undefined) {
                localVarQueryParameter['urlId'] = urlId;
            }
            if (userId !== undefined) {
                localVarQueryParameter['userId'] = userId;
            }
            if (anonUserId !== undefined) {
                localVarQueryParameter['anonUserId'] = anonUserId;
            }
            if (contextUserId !== undefined) {
                localVarQueryParameter['contextUserId'] = contextUserId;
            }
            if (hashTag !== undefined) {
                localVarQueryParameter['hashTag'] = hashTag;
            }
            if (parentId !== undefined) {
                localVarQueryParameter['parentId'] = parentId;
            }
            if (direction !== undefined) {
                localVarQueryParameter['direction'] = direction;
            }
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} domain
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getDomainConfig: async (tenantId, domain, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('getDomainConfig', 'tenantId', tenantId);
            // verify required parameter 'domain' is not null or undefined
            (0, common_1.assertParamExists)('getDomainConfig', 'domain', domain);
            const localVarPath = `/api/v1/domain-configs/{domain}`
                .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getDomainConfigs: async (tenantId, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('getDomainConfigs', 'tenantId', tenantId);
            const localVarPath = `/api/v1/domain-configs`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *  req tenantId afterId
         * @param {string} tenantId
         * @param {string} [afterId]
         * @param {number} [limit]
         * @param {Array<string>} [tags]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getFeedPosts: async (tenantId, afterId, limit, tags, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('getFeedPosts', 'tenantId', tenantId);
            const localVarPath = `/api/v1/feed-posts`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            if (afterId !== undefined) {
                localVarQueryParameter['afterId'] = afterId;
            }
            if (limit !== undefined) {
                localVarQueryParameter['limit'] = limit;
            }
            if (tags) {
                localVarQueryParameter['tags'] = tags;
            }
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getUserBadge: async (tenantId, id, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('getUserBadge', 'tenantId', tenantId);
            // verify required parameter 'id' is not null or undefined
            (0, common_1.assertParamExists)('getUserBadge', 'id', id);
            const localVarPath = `/api/v1/user-badges/{id}`
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getUserBadgeProgressById: async (tenantId, id, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('getUserBadgeProgressById', 'tenantId', tenantId);
            // verify required parameter 'id' is not null or undefined
            (0, common_1.assertParamExists)('getUserBadgeProgressById', 'id', id);
            const localVarPath = `/api/v1/user-badge-progress/{id}`
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} userId
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getUserBadgeProgressByUserId: async (tenantId, userId, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('getUserBadgeProgressByUserId', 'tenantId', tenantId);
            // verify required parameter 'userId' is not null or undefined
            (0, common_1.assertParamExists)('getUserBadgeProgressByUserId', 'userId', userId);
            const localVarPath = `/api/v1/user-badge-progress/user/{userId}`
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} [userId]
         * @param {number} [limit]
         * @param {number} [skip]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getUserBadgeProgressList: async (tenantId, userId, limit, skip, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('getUserBadgeProgressList', 'tenantId', tenantId);
            const localVarPath = `/api/v1/user-badge-progress`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            if (userId !== undefined) {
                localVarQueryParameter['userId'] = userId;
            }
            if (limit !== undefined) {
                localVarQueryParameter['limit'] = limit;
            }
            if (skip !== undefined) {
                localVarQueryParameter['skip'] = skip;
            }
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} [userId]
         * @param {string} [badgeId]
         * @param {number} [type]
         * @param {boolean} [displayedOnComments]
         * @param {number} [limit]
         * @param {number} [skip]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getUserBadges: async (tenantId, userId, badgeId, type, displayedOnComments, limit, skip, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('getUserBadges', 'tenantId', tenantId);
            const localVarPath = `/api/v1/user-badges`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            if (userId !== undefined) {
                localVarQueryParameter['userId'] = userId;
            }
            if (badgeId !== undefined) {
                localVarQueryParameter['badgeId'] = badgeId;
            }
            if (type !== undefined) {
                localVarQueryParameter['type'] = type;
            }
            if (displayedOnComments !== undefined) {
                localVarQueryParameter['displayedOnComments'] = displayedOnComments;
            }
            if (limit !== undefined) {
                localVarQueryParameter['limit'] = limit;
            }
            if (skip !== undefined) {
                localVarQueryParameter['skip'] = skip;
            }
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} domainToUpdate
         * @param {PatchDomainConfigParams} patchDomainConfigParams
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        patchDomainConfig: async (tenantId, domainToUpdate, patchDomainConfigParams, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('patchDomainConfig', 'tenantId', tenantId);
            // verify required parameter 'domainToUpdate' is not null or undefined
            (0, common_1.assertParamExists)('patchDomainConfig', 'domainToUpdate', domainToUpdate);
            // verify required parameter 'patchDomainConfigParams' is not null or undefined
            (0, common_1.assertParamExists)('patchDomainConfig', 'patchDomainConfigParams', patchDomainConfigParams);
            const localVarPath = `/api/v1/domain-configs/{domainToUpdate}`
                .replace(`{${"domainToUpdate"}}`, encodeURIComponent(String(domainToUpdate)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchDomainConfigParams, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} domainToUpdate
         * @param {UpdateDomainConfigParams} updateDomainConfigParams
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        putDomainConfig: async (tenantId, domainToUpdate, updateDomainConfigParams, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('putDomainConfig', 'tenantId', tenantId);
            // verify required parameter 'domainToUpdate' is not null or undefined
            (0, common_1.assertParamExists)('putDomainConfig', 'domainToUpdate', domainToUpdate);
            // verify required parameter 'updateDomainConfigParams' is not null or undefined
            (0, common_1.assertParamExists)('putDomainConfig', 'updateDomainConfigParams', updateDomainConfigParams);
            const localVarPath = `/api/v1/domain-configs/{domainToUpdate}`
                .replace(`{${"domainToUpdate"}}`, encodeURIComponent(String(domainToUpdate)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateDomainConfigParams, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {CreateCommentParams} createCommentParams
         * @param {boolean} [isLive]
         * @param {boolean} [doSpamCheck]
         * @param {boolean} [sendEmails]
         * @param {boolean} [populateNotifications]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        saveComment: async (tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('saveComment', 'tenantId', tenantId);
            // verify required parameter 'createCommentParams' is not null or undefined
            (0, common_1.assertParamExists)('saveComment', 'createCommentParams', createCommentParams);
            const localVarPath = `/api/v1/comments`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            if (isLive !== undefined) {
                localVarQueryParameter['isLive'] = isLive;
            }
            if (doSpamCheck !== undefined) {
                localVarQueryParameter['doSpamCheck'] = doSpamCheck;
            }
            if (sendEmails !== undefined) {
                localVarQueryParameter['sendEmails'] = sendEmails;
            }
            if (populateNotifications !== undefined) {
                localVarQueryParameter['populateNotifications'] = populateNotifications;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCommentParams, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {Array<CreateCommentParams>} createCommentParams
         * @param {boolean} [isLive]
         * @param {boolean} [doSpamCheck]
         * @param {boolean} [sendEmails]
         * @param {boolean} [populateNotifications]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        saveCommentsBulk: async (tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('saveCommentsBulk', 'tenantId', tenantId);
            // verify required parameter 'createCommentParams' is not null or undefined
            (0, common_1.assertParamExists)('saveCommentsBulk', 'createCommentParams', createCommentParams);
            const localVarPath = `/api/v1/comments/bulk`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            if (isLive !== undefined) {
                localVarQueryParameter['isLive'] = isLive;
            }
            if (doSpamCheck !== undefined) {
                localVarQueryParameter['doSpamCheck'] = doSpamCheck;
            }
            if (sendEmails !== undefined) {
                localVarQueryParameter['sendEmails'] = sendEmails;
            }
            if (populateNotifications !== undefined) {
                localVarQueryParameter['populateNotifications'] = populateNotifications;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCommentParams, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {UnBlockFromCommentParams} unBlockFromCommentParams
         * @param {string} [userId]
         * @param {string} [anonUserId]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        unBlockUserFromComment: async (tenantId, id, unBlockFromCommentParams, userId, anonUserId, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('unBlockUserFromComment', 'tenantId', tenantId);
            // verify required parameter 'id' is not null or undefined
            (0, common_1.assertParamExists)('unBlockUserFromComment', 'id', id);
            // verify required parameter 'unBlockFromCommentParams' is not null or undefined
            (0, common_1.assertParamExists)('unBlockUserFromComment', 'unBlockFromCommentParams', unBlockFromCommentParams);
            const localVarPath = `/api/v1/comments/{id}/un-block`
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            if (userId !== undefined) {
                localVarQueryParameter['userId'] = userId;
            }
            if (anonUserId !== undefined) {
                localVarQueryParameter['anonUserId'] = anonUserId;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(unBlockFromCommentParams, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {string} [userId]
         * @param {string} [anonUserId]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        unFlagComment: async (tenantId, id, userId, anonUserId, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('unFlagComment', 'tenantId', tenantId);
            // verify required parameter 'id' is not null or undefined
            (0, common_1.assertParamExists)('unFlagComment', 'id', id);
            const localVarPath = `/api/v1/comments/{id}/un-flag`
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            if (userId !== undefined) {
                localVarQueryParameter['userId'] = userId;
            }
            if (anonUserId !== undefined) {
                localVarQueryParameter['anonUserId'] = anonUserId;
            }
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {PickAPICommentUpdatableCommentFields} body
         * @param {string} [contextUserId]
         * @param {boolean} [doSpamCheck]
         * @param {boolean} [isLive]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateComment: async (tenantId, id, body, contextUserId, doSpamCheck, isLive, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('updateComment', 'tenantId', tenantId);
            // verify required parameter 'id' is not null or undefined
            (0, common_1.assertParamExists)('updateComment', 'id', id);
            // verify required parameter 'body' is not null or undefined
            (0, common_1.assertParamExists)('updateComment', 'body', body);
            const localVarPath = `/api/v1/comments/{id}`
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            if (contextUserId !== undefined) {
                localVarQueryParameter['contextUserId'] = contextUserId;
            }
            if (doSpamCheck !== undefined) {
                localVarQueryParameter['doSpamCheck'] = doSpamCheck;
            }
            if (isLive !== undefined) {
                localVarQueryParameter['isLive'] = isLive;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {FeedPost} feedPost
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateFeedPost: async (tenantId, id, feedPost, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('updateFeedPost', 'tenantId', tenantId);
            // verify required parameter 'id' is not null or undefined
            (0, common_1.assertParamExists)('updateFeedPost', 'id', id);
            // verify required parameter 'feedPost' is not null or undefined
            (0, common_1.assertParamExists)('updateFeedPost', 'feedPost', feedPost);
            const localVarPath = `/api/v1/feed-posts/{id}`
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(feedPost, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {UpdateUserBadgeParams} updateUserBadgeParams
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateUserBadge: async (tenantId, id, updateUserBadgeParams, options = {}) => {
            // verify required parameter 'tenantId' is not null or undefined
            (0, common_1.assertParamExists)('updateUserBadge', 'tenantId', tenantId);
            // verify required parameter 'id' is not null or undefined
            (0, common_1.assertParamExists)('updateUserBadge', 'id', id);
            // verify required parameter 'updateUserBadgeParams' is not null or undefined
            (0, common_1.assertParamExists)('updateUserBadge', 'updateUserBadgeParams', updateUserBadgeParams);
            const localVarPath = `/api/v1/user-badges/{id}`
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication api_key required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
            if (tenantId !== undefined) {
                localVarQueryParameter['tenantId'] = tenantId;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserBadgeParams, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
    };
};
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
/**
 * DefaultApi - functional programming interface
 * @export
 */
const DefaultApiFp = function (configuration) {
    const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
    return {
        /**
         *
         * @param {string} tenantId
         * @param {AddDomainConfigParams} addDomainConfigParams
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async addDomainConfig(tenantId, addDomainConfigParams, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.addDomainConfig(tenantId, addDomainConfigParams, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.addDomainConfig']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         * Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported.
         * @param {string} tenantId
         * @param {AggregationRequest} aggregationRequest
         * @param {string} [parentTenantId]
         * @param {boolean} [includeStats]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async aggregate(tenantId, aggregationRequest, parentTenantId, includeStats, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.aggregate(tenantId, aggregationRequest, parentTenantId, includeStats, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.aggregate']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} [questionId]
         * @param {Array<string>} [questionIds]
         * @param {string} [urlId]
         * @param {AggregateTimeBucket} [timeBucket]
         * @param {string} [startDate]
         * @param {boolean} [forceRecalculate]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async aggregateQuestionResults(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.aggregateQuestionResults(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.aggregateQuestionResults']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {BlockFromCommentParams} blockFromCommentParams
         * @param {string} [userId]
         * @param {string} [anonUserId]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async blockUserFromComment(tenantId, id, blockFromCommentParams, userId, anonUserId, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.blockUserFromComment(tenantId, id, blockFromCommentParams, userId, anonUserId, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.blockUserFromComment']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {BulkAggregateQuestionResultsRequest} bulkAggregateQuestionResultsRequest
         * @param {boolean} [forceRecalculate]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest, forceRecalculate, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest, forceRecalculate, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.bulkAggregateQuestionResults']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} [questionId]
         * @param {Array<string>} [questionIds]
         * @param {string} [urlId]
         * @param {string} [startDate]
         * @param {boolean} [forceRecalculate]
         * @param {number} [minValue]
         * @param {number} [maxValue]
         * @param {number} [limit]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async combineCommentsWithQuestionResults(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.combineCommentsWithQuestionResults(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.combineCommentsWithQuestionResults']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {CreateFeedPostParams} createFeedPostParams
         * @param {string} [broadcastId]
         * @param {boolean} [isLive]
         * @param {boolean} [doSpamCheck]
         * @param {boolean} [skipDupCheck]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async createFeedPost(tenantId, createFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.createFeedPost(tenantId, createFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.createFeedPost']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {CreateUserBadgeParams} createUserBadgeParams
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async createUserBadge(tenantId, createUserBadgeParams, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.createUserBadge(tenantId, createUserBadgeParams, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.createUserBadge']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {string} [contextUserId]
         * @param {boolean} [isLive]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async deleteComment(tenantId, id, contextUserId, isLive, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.deleteComment(tenantId, id, contextUserId, isLive, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.deleteComment']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} domain
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async deleteDomainConfig(tenantId, domain, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDomainConfig(tenantId, domain, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.deleteDomainConfig']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async deleteUserBadge(tenantId, id, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUserBadge(tenantId, id, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.deleteUserBadge']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {string} [userId]
         * @param {string} [anonUserId]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async flagComment(tenantId, id, userId, anonUserId, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.flagComment(tenantId, id, userId, anonUserId, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.flagComment']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {number} [limit]
         * @param {number} [skip]
         * @param {SORTDIR} [order]
         * @param {number} [after]
         * @param {number} [before]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getAuditLogs(tenantId, limit, skip, order, after, before, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditLogs(tenantId, limit, skip, order, after, before, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getAuditLogs']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getComment(tenantId, id, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getComment(tenantId, id, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getComment']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {number} [page]
         * @param {number} [limit]
         * @param {number} [skip]
         * @param {boolean} [asTree]
         * @param {number} [skipChildren]
         * @param {number} [limitChildren]
         * @param {number} [maxTreeDepth]
         * @param {string} [urlId]
         * @param {string} [userId]
         * @param {string} [anonUserId]
         * @param {string} [contextUserId]
         * @param {string} [hashTag]
         * @param {string} [parentId]
         * @param {SortDirections} [direction]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getComments(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getComments(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getComments']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} domain
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getDomainConfig(tenantId, domain, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getDomainConfig(tenantId, domain, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getDomainConfig']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getDomainConfigs(tenantId, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getDomainConfigs(tenantId, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getDomainConfigs']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *  req tenantId afterId
         * @param {string} tenantId
         * @param {string} [afterId]
         * @param {number} [limit]
         * @param {Array<string>} [tags]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getFeedPosts(tenantId, afterId, limit, tags, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getFeedPosts(tenantId, afterId, limit, tags, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getFeedPosts']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getUserBadge(tenantId, id, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBadge(tenantId, id, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getUserBadge']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getUserBadgeProgressById(tenantId, id, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBadgeProgressById(tenantId, id, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getUserBadgeProgressById']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} userId
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getUserBadgeProgressByUserId(tenantId, userId, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBadgeProgressByUserId(tenantId, userId, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getUserBadgeProgressByUserId']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} [userId]
         * @param {number} [limit]
         * @param {number} [skip]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getUserBadgeProgressList(tenantId, userId, limit, skip, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBadgeProgressList(tenantId, userId, limit, skip, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getUserBadgeProgressList']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} [userId]
         * @param {string} [badgeId]
         * @param {number} [type]
         * @param {boolean} [displayedOnComments]
         * @param {number} [limit]
         * @param {number} [skip]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getUserBadges(tenantId, userId, badgeId, type, displayedOnComments, limit, skip, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBadges(tenantId, userId, badgeId, type, displayedOnComments, limit, skip, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getUserBadges']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} domainToUpdate
         * @param {PatchDomainConfigParams} patchDomainConfigParams
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async patchDomainConfig(tenantId, domainToUpdate, patchDomainConfigParams, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.patchDomainConfig(tenantId, domainToUpdate, patchDomainConfigParams, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.patchDomainConfig']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} domainToUpdate
         * @param {UpdateDomainConfigParams} updateDomainConfigParams
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async putDomainConfig(tenantId, domainToUpdate, updateDomainConfigParams, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.putDomainConfig(tenantId, domainToUpdate, updateDomainConfigParams, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.putDomainConfig']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {CreateCommentParams} createCommentParams
         * @param {boolean} [isLive]
         * @param {boolean} [doSpamCheck]
         * @param {boolean} [sendEmails]
         * @param {boolean} [populateNotifications]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async saveComment(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.saveComment(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.saveComment']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {Array<CreateCommentParams>} createCommentParams
         * @param {boolean} [isLive]
         * @param {boolean} [doSpamCheck]
         * @param {boolean} [sendEmails]
         * @param {boolean} [populateNotifications]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async saveCommentsBulk(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.saveCommentsBulk(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.saveCommentsBulk']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {UnBlockFromCommentParams} unBlockFromCommentParams
         * @param {string} [userId]
         * @param {string} [anonUserId]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async unBlockUserFromComment(tenantId, id, unBlockFromCommentParams, userId, anonUserId, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.unBlockUserFromComment(tenantId, id, unBlockFromCommentParams, userId, anonUserId, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.unBlockUserFromComment']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {string} [userId]
         * @param {string} [anonUserId]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async unFlagComment(tenantId, id, userId, anonUserId, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.unFlagComment(tenantId, id, userId, anonUserId, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.unFlagComment']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {PickAPICommentUpdatableCommentFields} body
         * @param {string} [contextUserId]
         * @param {boolean} [doSpamCheck]
         * @param {boolean} [isLive]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async updateComment(tenantId, id, body, contextUserId, doSpamCheck, isLive, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.updateComment(tenantId, id, body, contextUserId, doSpamCheck, isLive, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.updateComment']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {FeedPost} feedPost
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async updateFeedPost(tenantId, id, feedPost, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.updateFeedPost(tenantId, id, feedPost, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.updateFeedPost']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @param {string} tenantId
         * @param {string} id
         * @param {UpdateUserBadgeParams} updateUserBadgeParams
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async updateUserBadge(tenantId, id, updateUserBadgeParams, options) {
            const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserBadge(tenantId, id, updateUserBadgeParams, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.updateUserBadge']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
    };
};
exports.DefaultApiFp = DefaultApiFp;
/**
 * DefaultApi - factory interface
 * @export
 */
const DefaultApiFactory = function (configuration, basePath, axios) {
    const localVarFp = (0, exports.DefaultApiFp)(configuration);
    return {
        /**
         *
         * @param {DefaultApiAddDomainConfigRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        addDomainConfig(requestParameters, options) {
            return localVarFp.addDomainConfig(requestParameters.tenantId, requestParameters.addDomainConfigParams, options).then((request) => request(axios, basePath));
        },
        /**
         * Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported.
         * @param {DefaultApiAggregateRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        aggregate(requestParameters, options) {
            return localVarFp.aggregate(requestParameters.tenantId, requestParameters.aggregationRequest, requestParameters.parentTenantId, requestParameters.includeStats, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiAggregateQuestionResultsRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        aggregateQuestionResults(requestParameters, options) {
            return localVarFp.aggregateQuestionResults(requestParameters.tenantId, requestParameters.questionId, requestParameters.questionIds, requestParameters.urlId, requestParameters.timeBucket, requestParameters.startDate, requestParameters.forceRecalculate, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiBlockUserFromCommentRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        blockUserFromComment(requestParameters, options) {
            return localVarFp.blockUserFromComment(requestParameters.tenantId, requestParameters.id, requestParameters.blockFromCommentParams, requestParameters.userId, requestParameters.anonUserId, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiBulkAggregateQuestionResultsRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        bulkAggregateQuestionResults(requestParameters, options) {
            return localVarFp.bulkAggregateQuestionResults(requestParameters.tenantId, requestParameters.bulkAggregateQuestionResultsRequest, requestParameters.forceRecalculate, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiCombineCommentsWithQuestionResultsRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        combineCommentsWithQuestionResults(requestParameters, options) {
            return localVarFp.combineCommentsWithQuestionResults(requestParameters.tenantId, requestParameters.questionId, requestParameters.questionIds, requestParameters.urlId, requestParameters.startDate, requestParameters.forceRecalculate, requestParameters.minValue, requestParameters.maxValue, requestParameters.limit, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiCreateFeedPostRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createFeedPost(requestParameters, options) {
            return localVarFp.createFeedPost(requestParameters.tenantId, requestParameters.createFeedPostParams, requestParameters.broadcastId, requestParameters.isLive, requestParameters.doSpamCheck, requestParameters.skipDupCheck, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiCreateUserBadgeRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createUserBadge(requestParameters, options) {
            return localVarFp.createUserBadge(requestParameters.tenantId, requestParameters.createUserBadgeParams, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiDeleteCommentRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteComment(requestParameters, options) {
            return localVarFp.deleteComment(requestParameters.tenantId, requestParameters.id, requestParameters.contextUserId, requestParameters.isLive, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiDeleteDomainConfigRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteDomainConfig(requestParameters, options) {
            return localVarFp.deleteDomainConfig(requestParameters.tenantId, requestParameters.domain, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiDeleteUserBadgeRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteUserBadge(requestParameters, options) {
            return localVarFp.deleteUserBadge(requestParameters.tenantId, requestParameters.id, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiFlagCommentRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        flagComment(requestParameters, options) {
            return localVarFp.flagComment(requestParameters.tenantId, requestParameters.id, requestParameters.userId, requestParameters.anonUserId, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiGetAuditLogsRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getAuditLogs(requestParameters, options) {
            return localVarFp.getAuditLogs(requestParameters.tenantId, requestParameters.limit, requestParameters.skip, requestParameters.order, requestParameters.after, requestParameters.before, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiGetCommentRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getComment(requestParameters, options) {
            return localVarFp.getComment(requestParameters.tenantId, requestParameters.id, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiGetCommentsRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getComments(requestParameters, options) {
            return localVarFp.getComments(requestParameters.tenantId, requestParameters.page, requestParameters.limit, requestParameters.skip, requestParameters.asTree, requestParameters.skipChildren, requestParameters.limitChildren, requestParameters.maxTreeDepth, requestParameters.urlId, requestParameters.userId, requestParameters.anonUserId, requestParameters.contextUserId, requestParameters.hashTag, requestParameters.parentId, requestParameters.direction, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiGetDomainConfigRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getDomainConfig(requestParameters, options) {
            return localVarFp.getDomainConfig(requestParameters.tenantId, requestParameters.domain, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiGetDomainConfigsRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getDomainConfigs(requestParameters, options) {
            return localVarFp.getDomainConfigs(requestParameters.tenantId, options).then((request) => request(axios, basePath));
        },
        /**
         *  req tenantId afterId
         * @param {DefaultApiGetFeedPostsRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getFeedPosts(requestParameters, options) {
            return localVarFp.getFeedPosts(requestParameters.tenantId, requestParameters.afterId, requestParameters.limit, requestParameters.tags, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiGetUserBadgeRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getUserBadge(requestParameters, options) {
            return localVarFp.getUserBadge(requestParameters.tenantId, requestParameters.id, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiGetUserBadgeProgressByIdRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getUserBadgeProgressById(requestParameters, options) {
            return localVarFp.getUserBadgeProgressById(requestParameters.tenantId, requestParameters.id, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiGetUserBadgeProgressByUserIdRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getUserBadgeProgressByUserId(requestParameters, options) {
            return localVarFp.getUserBadgeProgressByUserId(requestParameters.tenantId, requestParameters.userId, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiGetUserBadgeProgressListRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getUserBadgeProgressList(requestParameters, options) {
            return localVarFp.getUserBadgeProgressList(requestParameters.tenantId, requestParameters.userId, requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiGetUserBadgesRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getUserBadges(requestParameters, options) {
            return localVarFp.getUserBadges(requestParameters.tenantId, requestParameters.userId, requestParameters.badgeId, requestParameters.type, requestParameters.displayedOnComments, requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiPatchDomainConfigRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        patchDomainConfig(requestParameters, options) {
            return localVarFp.patchDomainConfig(requestParameters.tenantId, requestParameters.domainToUpdate, requestParameters.patchDomainConfigParams, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiPutDomainConfigRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        putDomainConfig(requestParameters, options) {
            return localVarFp.putDomainConfig(requestParameters.tenantId, requestParameters.domainToUpdate, requestParameters.updateDomainConfigParams, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiSaveCommentRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        saveComment(requestParameters, options) {
            return localVarFp.saveComment(requestParameters.tenantId, requestParameters.createCommentParams, requestParameters.isLive, requestParameters.doSpamCheck, requestParameters.sendEmails, requestParameters.populateNotifications, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiSaveCommentsBulkRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        saveCommentsBulk(requestParameters, options) {
            return localVarFp.saveCommentsBulk(requestParameters.tenantId, requestParameters.createCommentParams, requestParameters.isLive, requestParameters.doSpamCheck, requestParameters.sendEmails, requestParameters.populateNotifications, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiUnBlockUserFromCommentRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        unBlockUserFromComment(requestParameters, options) {
            return localVarFp.unBlockUserFromComment(requestParameters.tenantId, requestParameters.id, requestParameters.unBlockFromCommentParams, requestParameters.userId, requestParameters.anonUserId, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiUnFlagCommentRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        unFlagComment(requestParameters, options) {
            return localVarFp.unFlagComment(requestParameters.tenantId, requestParameters.id, requestParameters.userId, requestParameters.anonUserId, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiUpdateCommentRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateComment(requestParameters, options) {
            return localVarFp.updateComment(requestParameters.tenantId, requestParameters.id, requestParameters.body, requestParameters.contextUserId, requestParameters.doSpamCheck, requestParameters.isLive, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiUpdateFeedPostRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateFeedPost(requestParameters, options) {
            return localVarFp.updateFeedPost(requestParameters.tenantId, requestParameters.id, requestParameters.feedPost, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {DefaultApiUpdateUserBadgeRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateUserBadge(requestParameters, options) {
            return localVarFp.updateUserBadge(requestParameters.tenantId, requestParameters.id, requestParameters.updateUserBadgeParams, options).then((request) => request(axios, basePath));
        },
    };
};
exports.DefaultApiFactory = DefaultApiFactory;
/**
 * DefaultApi - object-oriented interface
 * @export
 * @class DefaultApi
 * @extends {BaseAPI}
 */
class DefaultApi extends base_1.BaseAPI {
    /**
     *
     * @param {DefaultApiAddDomainConfigRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    addDomainConfig(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).addDomainConfig(requestParameters.tenantId, requestParameters.addDomainConfigParams, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     * Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported.
     * @param {DefaultApiAggregateRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    aggregate(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).aggregate(requestParameters.tenantId, requestParameters.aggregationRequest, requestParameters.parentTenantId, requestParameters.includeStats, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiAggregateQuestionResultsRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    aggregateQuestionResults(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).aggregateQuestionResults(requestParameters.tenantId, requestParameters.questionId, requestParameters.questionIds, requestParameters.urlId, requestParameters.timeBucket, requestParameters.startDate, requestParameters.forceRecalculate, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiBlockUserFromCommentRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    blockUserFromComment(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).blockUserFromComment(requestParameters.tenantId, requestParameters.id, requestParameters.blockFromCommentParams, requestParameters.userId, requestParameters.anonUserId, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiBulkAggregateQuestionResultsRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    bulkAggregateQuestionResults(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).bulkAggregateQuestionResults(requestParameters.tenantId, requestParameters.bulkAggregateQuestionResultsRequest, requestParameters.forceRecalculate, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiCombineCommentsWithQuestionResultsRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    combineCommentsWithQuestionResults(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).combineCommentsWithQuestionResults(requestParameters.tenantId, requestParameters.questionId, requestParameters.questionIds, requestParameters.urlId, requestParameters.startDate, requestParameters.forceRecalculate, requestParameters.minValue, requestParameters.maxValue, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiCreateFeedPostRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    createFeedPost(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).createFeedPost(requestParameters.tenantId, requestParameters.createFeedPostParams, requestParameters.broadcastId, requestParameters.isLive, requestParameters.doSpamCheck, requestParameters.skipDupCheck, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiCreateUserBadgeRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    createUserBadge(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).createUserBadge(requestParameters.tenantId, requestParameters.createUserBadgeParams, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiDeleteCommentRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    deleteComment(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).deleteComment(requestParameters.tenantId, requestParameters.id, requestParameters.contextUserId, requestParameters.isLive, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiDeleteDomainConfigRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    deleteDomainConfig(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).deleteDomainConfig(requestParameters.tenantId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiDeleteUserBadgeRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    deleteUserBadge(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).deleteUserBadge(requestParameters.tenantId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiFlagCommentRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    flagComment(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).flagComment(requestParameters.tenantId, requestParameters.id, requestParameters.userId, requestParameters.anonUserId, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiGetAuditLogsRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    getAuditLogs(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).getAuditLogs(requestParameters.tenantId, requestParameters.limit, requestParameters.skip, requestParameters.order, requestParameters.after, requestParameters.before, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiGetCommentRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    getComment(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).getComment(requestParameters.tenantId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiGetCommentsRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    getComments(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).getComments(requestParameters.tenantId, requestParameters.page, requestParameters.limit, requestParameters.skip, requestParameters.asTree, requestParameters.skipChildren, requestParameters.limitChildren, requestParameters.maxTreeDepth, requestParameters.urlId, requestParameters.userId, requestParameters.anonUserId, requestParameters.contextUserId, requestParameters.hashTag, requestParameters.parentId, requestParameters.direction, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiGetDomainConfigRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    getDomainConfig(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).getDomainConfig(requestParameters.tenantId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiGetDomainConfigsRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    getDomainConfigs(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).getDomainConfigs(requestParameters.tenantId, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *  req tenantId afterId
     * @param {DefaultApiGetFeedPostsRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    getFeedPosts(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).getFeedPosts(requestParameters.tenantId, requestParameters.afterId, requestParameters.limit, requestParameters.tags, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiGetUserBadgeRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    getUserBadge(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).getUserBadge(requestParameters.tenantId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiGetUserBadgeProgressByIdRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    getUserBadgeProgressById(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).getUserBadgeProgressById(requestParameters.tenantId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiGetUserBadgeProgressByUserIdRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    getUserBadgeProgressByUserId(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).getUserBadgeProgressByUserId(requestParameters.tenantId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiGetUserBadgeProgressListRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    getUserBadgeProgressList(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).getUserBadgeProgressList(requestParameters.tenantId, requestParameters.userId, requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiGetUserBadgesRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    getUserBadges(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).getUserBadges(requestParameters.tenantId, requestParameters.userId, requestParameters.badgeId, requestParameters.type, requestParameters.displayedOnComments, requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiPatchDomainConfigRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    patchDomainConfig(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).patchDomainConfig(requestParameters.tenantId, requestParameters.domainToUpdate, requestParameters.patchDomainConfigParams, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiPutDomainConfigRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    putDomainConfig(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).putDomainConfig(requestParameters.tenantId, requestParameters.domainToUpdate, requestParameters.updateDomainConfigParams, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiSaveCommentRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    saveComment(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).saveComment(requestParameters.tenantId, requestParameters.createCommentParams, requestParameters.isLive, requestParameters.doSpamCheck, requestParameters.sendEmails, requestParameters.populateNotifications, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiSaveCommentsBulkRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    saveCommentsBulk(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).saveCommentsBulk(requestParameters.tenantId, requestParameters.createCommentParams, requestParameters.isLive, requestParameters.doSpamCheck, requestParameters.sendEmails, requestParameters.populateNotifications, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiUnBlockUserFromCommentRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    unBlockUserFromComment(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).unBlockUserFromComment(requestParameters.tenantId, requestParameters.id, requestParameters.unBlockFromCommentParams, requestParameters.userId, requestParameters.anonUserId, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiUnFlagCommentRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    unFlagComment(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).unFlagComment(requestParameters.tenantId, requestParameters.id, requestParameters.userId, requestParameters.anonUserId, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiUpdateCommentRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    updateComment(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).updateComment(requestParameters.tenantId, requestParameters.id, requestParameters.body, requestParameters.contextUserId, requestParameters.doSpamCheck, requestParameters.isLive, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiUpdateFeedPostRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    updateFeedPost(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).updateFeedPost(requestParameters.tenantId, requestParameters.id, requestParameters.feedPost, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {DefaultApiUpdateUserBadgeRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DefaultApi
     */
    updateUserBadge(requestParameters, options) {
        return (0, exports.DefaultApiFp)(this.configuration).updateUserBadge(requestParameters.tenantId, requestParameters.id, requestParameters.updateUserBadgeParams, options).then((request) => request(this.axios, this.basePath));
    }
}
exports.DefaultApi = DefaultApi;
//# sourceMappingURL=default-api.js.map