// tslint:disable
/**
 * Webitel API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 24.04.0
 * Contact: support@webitel.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
import { __awaiter } from "tslib";
import * as globalImportUrl from 'url';
import globalAxios from 'axios';
// Some imports not used depending on template conditions
// @ts-ignore
import { BASE_PATH, BaseAPI, RequiredError, } from '../base';
/**
 * CommentsApi - axios parameter creator
 * @export
 */
export const CommentsApiAxiosParamCreator = function (configuration) {
    return {
        /**
         *
         * @summary Publish comment for a Contact.
         * @param {string} contactId Link contact ID.
         * @param {ContactsInputComment} input NEW Comment for a Contact publication.
         * @param {Array<string>} [fields] Fields to be retrieved as a result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        comments: (contactId, input, fields, options = {}) => __awaiter(this, void 0, void 0, function* () {
            // verify required parameter 'contactId' is not null or undefined
            if (contactId === null || contactId === undefined) {
                throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling comments.');
            }
            // verify required parameter 'input' is not null or undefined
            if (input === null || input === undefined) {
                throw new RequiredError('input', 'Required parameter input was null or undefined when calling comments.');
            }
            const localVarPath = `/contacts/{contact_id}/comments`.replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)));
            const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication AccessToken required
            if (configuration && configuration.apiKey) {
                const localVarApiKeyValue = typeof configuration.apiKey === 'function'
                    ? yield configuration.apiKey('X-Webitel-Access')
                    : yield configuration.apiKey;
                localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
            }
            if (fields) {
                localVarQueryParameter['fields'] = fields;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            localVarUrlObj.query = Object.assign(Object.assign(Object.assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
            // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
            delete localVarUrlObj.search;
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
            const needsSerialization = typeof input !== 'string' ||
                localVarRequestOptions.headers['Content-Type'] === 'application/json';
            localVarRequestOptions.data = needsSerialization
                ? JSON.stringify(input !== undefined ? input : {})
                : input || '';
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        }),
        /**
         *
         * @summary Update (edit) specific Comment text owned
         * @param {string} contactId Contact ID associated with.
         * @param {string} etag Unique ID of the latest version of an existing resorce.
         * @param {NEWEditionOfTheComment} input
         * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        comments_1: (contactId, etag, input, fields, options = {}) => __awaiter(this, void 0, void 0, function* () {
            // verify required parameter 'contactId' is not null or undefined
            if (contactId === null || contactId === undefined) {
                throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling comments_1.');
            }
            // verify required parameter 'etag' is not null or undefined
            if (etag === null || etag === undefined) {
                throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling comments_1.');
            }
            // verify required parameter 'input' is not null or undefined
            if (input === null || input === undefined) {
                throw new RequiredError('input', 'Required parameter input was null or undefined when calling comments_1.');
            }
            const localVarPath = `/contacts/{contact_id}/comments/{etag}`
                .replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)))
                .replace(`{${'etag'}}`, encodeURIComponent(String(etag)));
            const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication AccessToken required
            if (configuration && configuration.apiKey) {
                const localVarApiKeyValue = typeof configuration.apiKey === 'function'
                    ? yield configuration.apiKey('X-Webitel-Access')
                    : yield configuration.apiKey;
                localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
            }
            if (fields) {
                localVarQueryParameter['fields'] = fields;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            localVarUrlObj.query = Object.assign(Object.assign(Object.assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
            // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
            delete localVarUrlObj.search;
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
            const needsSerialization = typeof input !== 'string' ||
                localVarRequestOptions.headers['Content-Type'] === 'application/json';
            localVarRequestOptions.data = needsSerialization
                ? JSON.stringify(input !== undefined ? input : {})
                : input || '';
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        }),
        /**
         *
         * @summary Delete Comment(s) for Contact ...
         * @param {string} contactId Contact ID associated with.
         * @param {Array<string>} etag Set of unique ID(s) to remove.
         * @param {Array<string>} [fields] Fields to be retrieved as a result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        comments_2: (contactId, etag, fields, options = {}) => __awaiter(this, void 0, void 0, function* () {
            // verify required parameter 'contactId' is not null or undefined
            if (contactId === null || contactId === undefined) {
                throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling comments_2.');
            }
            // verify required parameter 'etag' is not null or undefined
            if (etag === null || etag === undefined) {
                throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling comments_2.');
            }
            const localVarPath = `/contacts/{contact_id}/comments/{etag}`
                .replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)))
                .replace(`{${'etag'}}`, encodeURIComponent(String(etag)));
            const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication AccessToken required
            if (configuration && configuration.apiKey) {
                const localVarApiKeyValue = typeof configuration.apiKey === 'function'
                    ? yield configuration.apiKey('X-Webitel-Access')
                    : yield configuration.apiKey;
                localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
            }
            if (fields) {
                localVarQueryParameter['fields'] = fields;
            }
            localVarUrlObj.query = Object.assign(Object.assign(Object.assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
            // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
            delete localVarUrlObj.search;
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        }),
        /**
         *
         * @summary Search for Contact Comment(s) ...
         * @param {string} contactId Contact ID associated with.
         * @param {number} [page] Page number of result. offset &#x3D; ((page-1)*size)
         * @param {number} [size] Size of result page. limit &#x3D; (size++)
         * @param {string} [q] Search term: comment text; &#x60;?&#x60; - matches any character &#x60;*&#x60; - matches 0 or more characters  term-of-search: lookup[name|...]
         * @param {Array<string>} [sort] Sort the result according to fields.
         * @param {Array<string>} [fields] Fields to be retrieved as a result.
         * @param {Array<string>} [id] Comment(s) with unique ID only.
         * @param {'READ' | 'WRITE' | 'DELETE'} [mode] The requirement of [M]andatory [A]ccess [C]ontrol.   - READ: Can &#x60;fetch&#x60; record. [GET]  - WRITE: Can &#x60;update&#x60; record. [PUT|PATCH]  - DELETE: Can &#x60;delete&#x60; record. [DELETE]
         * @param {string} [dateSince] Since timestamp(milli). Not before.
         * @param {string} [dateUntil] Until timestamp(milli). Not after.
         * @param {string} [authorId] Reference Object unique ID.
         * @param {string} [authorType] Reference Object well-known type.
         * @param {string} [authorName] Reference Object display name.
         * @param {string} [editorId] Reference Object unique ID.
         * @param {string} [editorType] Reference Object well-known type.
         * @param {string} [editorName] Reference Object display name.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        searchComments: (contactId, page, size, q, sort, fields, id, mode, dateSince, dateUntil, authorId, authorType, authorName, editorId, editorType, editorName, options = {}) => __awaiter(this, void 0, void 0, function* () {
            // verify required parameter 'contactId' is not null or undefined
            if (contactId === null || contactId === undefined) {
                throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling searchComments.');
            }
            const localVarPath = `/contacts/{contact_id}/comments`.replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)));
            const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication AccessToken required
            if (configuration && configuration.apiKey) {
                const localVarApiKeyValue = typeof configuration.apiKey === 'function'
                    ? yield configuration.apiKey('X-Webitel-Access')
                    : yield configuration.apiKey;
                localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
            }
            if (page !== undefined) {
                localVarQueryParameter['page'] = page;
            }
            if (size !== undefined) {
                localVarQueryParameter['size'] = size;
            }
            if (q !== undefined) {
                localVarQueryParameter['q'] = q;
            }
            if (sort) {
                localVarQueryParameter['sort'] = sort;
            }
            if (fields) {
                localVarQueryParameter['fields'] = fields;
            }
            if (id) {
                localVarQueryParameter['id'] = id;
            }
            if (mode !== undefined) {
                localVarQueryParameter['mode'] = mode;
            }
            if (dateSince !== undefined) {
                localVarQueryParameter['date.since'] = dateSince;
            }
            if (dateUntil !== undefined) {
                localVarQueryParameter['date.until'] = dateUntil;
            }
            if (authorId !== undefined) {
                localVarQueryParameter['author.id'] = authorId;
            }
            if (authorType !== undefined) {
                localVarQueryParameter['author.type'] = authorType;
            }
            if (authorName !== undefined) {
                localVarQueryParameter['author.name'] = authorName;
            }
            if (editorId !== undefined) {
                localVarQueryParameter['editor.id'] = editorId;
            }
            if (editorType !== undefined) {
                localVarQueryParameter['editor.type'] = editorType;
            }
            if (editorName !== undefined) {
                localVarQueryParameter['editor.name'] = editorName;
            }
            localVarUrlObj.query = Object.assign(Object.assign(Object.assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
            // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
            delete localVarUrlObj.search;
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        }),
    };
};
/**
 * CommentsApi - functional programming interface
 * @export
 */
export const CommentsApiFp = function (configuration) {
    return {
        /**
         *
         * @summary Publish comment for a Contact.
         * @param {string} contactId Link contact ID.
         * @param {ContactsInputComment} input NEW Comment for a Contact publication.
         * @param {Array<string>} [fields] Fields to be retrieved as a result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        comments(contactId, input, fields, options) {
            return __awaiter(this, void 0, void 0, function* () {
                const localVarAxiosArgs = yield CommentsApiAxiosParamCreator(configuration).comments(contactId, input, fields, options);
                return (axios = globalAxios, basePath = BASE_PATH) => {
                    const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
                    return axios.request(axiosRequestArgs);
                };
            });
        },
        /**
         *
         * @summary Update (edit) specific Comment text owned
         * @param {string} contactId Contact ID associated with.
         * @param {string} etag Unique ID of the latest version of an existing resorce.
         * @param {NEWEditionOfTheComment} input
         * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        comments_1(contactId, etag, input, fields, options) {
            return __awaiter(this, void 0, void 0, function* () {
                const localVarAxiosArgs = yield CommentsApiAxiosParamCreator(configuration).comments_1(contactId, etag, input, fields, options);
                return (axios = globalAxios, basePath = BASE_PATH) => {
                    const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
                    return axios.request(axiosRequestArgs);
                };
            });
        },
        /**
         *
         * @summary Delete Comment(s) for Contact ...
         * @param {string} contactId Contact ID associated with.
         * @param {Array<string>} etag Set of unique ID(s) to remove.
         * @param {Array<string>} [fields] Fields to be retrieved as a result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        comments_2(contactId, etag, fields, options) {
            return __awaiter(this, void 0, void 0, function* () {
                const localVarAxiosArgs = yield CommentsApiAxiosParamCreator(configuration).comments_2(contactId, etag, fields, options);
                return (axios = globalAxios, basePath = BASE_PATH) => {
                    const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
                    return axios.request(axiosRequestArgs);
                };
            });
        },
        /**
         *
         * @summary Search for Contact Comment(s) ...
         * @param {string} contactId Contact ID associated with.
         * @param {number} [page] Page number of result. offset &#x3D; ((page-1)*size)
         * @param {number} [size] Size of result page. limit &#x3D; (size++)
         * @param {string} [q] Search term: comment text; &#x60;?&#x60; - matches any character &#x60;*&#x60; - matches 0 or more characters  term-of-search: lookup[name|...]
         * @param {Array<string>} [sort] Sort the result according to fields.
         * @param {Array<string>} [fields] Fields to be retrieved as a result.
         * @param {Array<string>} [id] Comment(s) with unique ID only.
         * @param {'READ' | 'WRITE' | 'DELETE'} [mode] The requirement of [M]andatory [A]ccess [C]ontrol.   - READ: Can &#x60;fetch&#x60; record. [GET]  - WRITE: Can &#x60;update&#x60; record. [PUT|PATCH]  - DELETE: Can &#x60;delete&#x60; record. [DELETE]
         * @param {string} [dateSince] Since timestamp(milli). Not before.
         * @param {string} [dateUntil] Until timestamp(milli). Not after.
         * @param {string} [authorId] Reference Object unique ID.
         * @param {string} [authorType] Reference Object well-known type.
         * @param {string} [authorName] Reference Object display name.
         * @param {string} [editorId] Reference Object unique ID.
         * @param {string} [editorType] Reference Object well-known type.
         * @param {string} [editorName] Reference Object display name.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        searchComments(contactId, page, size, q, sort, fields, id, mode, dateSince, dateUntil, authorId, authorType, authorName, editorId, editorType, editorName, options) {
            return __awaiter(this, void 0, void 0, function* () {
                const localVarAxiosArgs = yield CommentsApiAxiosParamCreator(configuration).searchComments(contactId, page, size, q, sort, fields, id, mode, dateSince, dateUntil, authorId, authorType, authorName, editorId, editorType, editorName, options);
                return (axios = globalAxios, basePath = BASE_PATH) => {
                    const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
                    return axios.request(axiosRequestArgs);
                };
            });
        },
    };
};
/**
 * CommentsApi - factory interface
 * @export
 */
export const CommentsApiFactory = function (configuration, basePath, axios) {
    return {
        /**
         *
         * @summary Publish comment for a Contact.
         * @param {string} contactId Link contact ID.
         * @param {ContactsInputComment} input NEW Comment for a Contact publication.
         * @param {Array<string>} [fields] Fields to be retrieved as a result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        comments(contactId, input, fields, options) {
            return CommentsApiFp(configuration)
                .comments(contactId, input, fields, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Update (edit) specific Comment text owned
         * @param {string} contactId Contact ID associated with.
         * @param {string} etag Unique ID of the latest version of an existing resorce.
         * @param {NEWEditionOfTheComment} input
         * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        comments_1(contactId, etag, input, fields, options) {
            return CommentsApiFp(configuration)
                .comments_1(contactId, etag, input, fields, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Delete Comment(s) for Contact ...
         * @param {string} contactId Contact ID associated with.
         * @param {Array<string>} etag Set of unique ID(s) to remove.
         * @param {Array<string>} [fields] Fields to be retrieved as a result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        comments_2(contactId, etag, fields, options) {
            return CommentsApiFp(configuration)
                .comments_2(contactId, etag, fields, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Search for Contact Comment(s) ...
         * @param {string} contactId Contact ID associated with.
         * @param {number} [page] Page number of result. offset &#x3D; ((page-1)*size)
         * @param {number} [size] Size of result page. limit &#x3D; (size++)
         * @param {string} [q] Search term: comment text; &#x60;?&#x60; - matches any character &#x60;*&#x60; - matches 0 or more characters  term-of-search: lookup[name|...]
         * @param {Array<string>} [sort] Sort the result according to fields.
         * @param {Array<string>} [fields] Fields to be retrieved as a result.
         * @param {Array<string>} [id] Comment(s) with unique ID only.
         * @param {'READ' | 'WRITE' | 'DELETE'} [mode] The requirement of [M]andatory [A]ccess [C]ontrol.   - READ: Can &#x60;fetch&#x60; record. [GET]  - WRITE: Can &#x60;update&#x60; record. [PUT|PATCH]  - DELETE: Can &#x60;delete&#x60; record. [DELETE]
         * @param {string} [dateSince] Since timestamp(milli). Not before.
         * @param {string} [dateUntil] Until timestamp(milli). Not after.
         * @param {string} [authorId] Reference Object unique ID.
         * @param {string} [authorType] Reference Object well-known type.
         * @param {string} [authorName] Reference Object display name.
         * @param {string} [editorId] Reference Object unique ID.
         * @param {string} [editorType] Reference Object well-known type.
         * @param {string} [editorName] Reference Object display name.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        searchComments(contactId, page, size, q, sort, fields, id, mode, dateSince, dateUntil, authorId, authorType, authorName, editorId, editorType, editorName, options) {
            return CommentsApiFp(configuration)
                .searchComments(contactId, page, size, q, sort, fields, id, mode, dateSince, dateUntil, authorId, authorType, authorName, editorId, editorType, editorName, options)
                .then((request) => request(axios, basePath));
        },
    };
};
/**
 * CommentsApi - object-oriented interface
 * @export
 * @class CommentsApi
 * @extends {BaseAPI}
 */
export class CommentsApi extends BaseAPI {
    /**
     *
     * @summary Publish comment for a Contact.
     * @param {string} contactId Link contact ID.
     * @param {ContactsInputComment} input NEW Comment for a Contact publication.
     * @param {Array<string>} [fields] Fields to be retrieved as a result.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof CommentsApi
     */
    comments(contactId, input, fields, options) {
        return CommentsApiFp(this.configuration)
            .comments(contactId, input, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Update (edit) specific Comment text owned
     * @param {string} contactId Contact ID associated with.
     * @param {string} etag Unique ID of the latest version of an existing resorce.
     * @param {NEWEditionOfTheComment} input
     * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof CommentsApi
     */
    comments_1(contactId, etag, input, fields, options) {
        return CommentsApiFp(this.configuration)
            .comments_1(contactId, etag, input, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Delete Comment(s) for Contact ...
     * @param {string} contactId Contact ID associated with.
     * @param {Array<string>} etag Set of unique ID(s) to remove.
     * @param {Array<string>} [fields] Fields to be retrieved as a result.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof CommentsApi
     */
    comments_2(contactId, etag, fields, options) {
        return CommentsApiFp(this.configuration)
            .comments_2(contactId, etag, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Search for Contact Comment(s) ...
     * @param {string} contactId Contact ID associated with.
     * @param {number} [page] Page number of result. offset &#x3D; ((page-1)*size)
     * @param {number} [size] Size of result page. limit &#x3D; (size++)
     * @param {string} [q] Search term: comment text; &#x60;?&#x60; - matches any character &#x60;*&#x60; - matches 0 or more characters  term-of-search: lookup[name|...]
     * @param {Array<string>} [sort] Sort the result according to fields.
     * @param {Array<string>} [fields] Fields to be retrieved as a result.
     * @param {Array<string>} [id] Comment(s) with unique ID only.
     * @param {'READ' | 'WRITE' | 'DELETE'} [mode] The requirement of [M]andatory [A]ccess [C]ontrol.   - READ: Can &#x60;fetch&#x60; record. [GET]  - WRITE: Can &#x60;update&#x60; record. [PUT|PATCH]  - DELETE: Can &#x60;delete&#x60; record. [DELETE]
     * @param {string} [dateSince] Since timestamp(milli). Not before.
     * @param {string} [dateUntil] Until timestamp(milli). Not after.
     * @param {string} [authorId] Reference Object unique ID.
     * @param {string} [authorType] Reference Object well-known type.
     * @param {string} [authorName] Reference Object display name.
     * @param {string} [editorId] Reference Object unique ID.
     * @param {string} [editorType] Reference Object well-known type.
     * @param {string} [editorName] Reference Object display name.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof CommentsApi
     */
    searchComments(contactId, page, size, q, sort, fields, id, mode, dateSince, dateUntil, authorId, authorType, authorName, editorId, editorType, editorName, options) {
        return CommentsApiFp(this.configuration)
            .searchComments(contactId, page, size, q, sort, fields, id, mode, dateSince, dateUntil, authorId, authorType, authorName, editorId, editorType, editorName, options)
            .then((request) => request(this.axios, this.basePath));
    }
}
//# sourceMappingURL=comments-api.js.map