fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
3,024 lines • 173 kB
JavaScript
"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.UpdateUserNotificationStatusNewStatusEnum = exports.UpdateUserNotificationPageSubscriptionStatusSubscribedOrUnsubscribedEnum = exports.UpdateUserNotificationCommentSubscriptionStatusOptedInOrOutEnum = exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = 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");
/**
* PublicApi - axios parameter creator
* @export
*/
const PublicApiAxiosParamCreator = function (configuration) {
return {
/**
*
* @param {string} tenantId
* @param {string} commentId
* @param {PublicBlockFromCommentParams} publicBlockFromCommentParams
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
blockFromCommentPublic: async (tenantId, commentId, publicBlockFromCommentParams, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('blockFromCommentPublic', 'tenantId', tenantId);
// verify required parameter 'commentId' is not null or undefined
(0, common_1.assertParamExists)('blockFromCommentPublic', 'commentId', commentId);
// verify required parameter 'publicBlockFromCommentParams' is not null or undefined
(0, common_1.assertParamExists)('blockFromCommentPublic', 'publicBlockFromCommentParams', publicBlockFromCommentParams);
const localVarPath = `/block-from-comment/{commentId}`
.replace(`{${"commentId"}}`, encodeURIComponent(String(commentId)));
// 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 = {};
if (tenantId !== undefined) {
localVarQueryParameter['tenantId'] = tenantId;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
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)(publicBlockFromCommentParams, localVarRequestOptions, configuration);
return {
url: (0, common_1.toPathString)(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @param {string} tenantId
* @param {string} commentIds A comma separated list of comment ids.
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
checkedCommentsForBlocked: async (tenantId, commentIds, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('checkedCommentsForBlocked', 'tenantId', tenantId);
// verify required parameter 'commentIds' is not null or undefined
(0, common_1.assertParamExists)('checkedCommentsForBlocked', 'commentIds', commentIds);
const localVarPath = `/check-blocked-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 = {};
if (tenantId !== undefined) {
localVarQueryParameter['tenantId'] = tenantId;
}
if (commentIds !== undefined) {
localVarQueryParameter['commentIds'] = commentIds;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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} urlId
* @param {string} broadcastId
* @param {CommentData} commentData
* @param {string} [sessionId]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createCommentPublic: async (tenantId, urlId, broadcastId, commentData, sessionId, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('createCommentPublic', 'tenantId', tenantId);
// verify required parameter 'urlId' is not null or undefined
(0, common_1.assertParamExists)('createCommentPublic', 'urlId', urlId);
// verify required parameter 'broadcastId' is not null or undefined
(0, common_1.assertParamExists)('createCommentPublic', 'broadcastId', broadcastId);
// verify required parameter 'commentData' is not null or undefined
(0, common_1.assertParamExists)('createCommentPublic', 'commentData', commentData);
const localVarPath = `/comments/{tenantId}`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)));
// 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 = {};
if (urlId !== undefined) {
localVarQueryParameter['urlId'] = urlId;
}
if (broadcastId !== undefined) {
localVarQueryParameter['broadcastId'] = broadcastId;
}
if (sessionId !== undefined) {
localVarQueryParameter['sessionId'] = sessionId;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
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)(commentData, localVarRequestOptions, configuration);
return {
url: (0, common_1.toPathString)(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @param {string} tenantId
* @param {CreateFeedPostParams} createFeedPostParams
* @param {string} [broadcastId]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createFeedPostPublic: async (tenantId, createFeedPostParams, broadcastId, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('createFeedPostPublic', 'tenantId', tenantId);
// verify required parameter 'createFeedPostParams' is not null or undefined
(0, common_1.assertParamExists)('createFeedPostPublic', 'createFeedPostParams', createFeedPostParams);
const localVarPath = `/feed-posts/{tenantId}`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)));
// 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 = {};
if (broadcastId !== undefined) {
localVarQueryParameter['broadcastId'] = broadcastId;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
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 {string} commentId
* @param {string} broadcastId
* @param {string} [editKey]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deleteCommentPublic: async (tenantId, commentId, broadcastId, editKey, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('deleteCommentPublic', 'tenantId', tenantId);
// verify required parameter 'commentId' is not null or undefined
(0, common_1.assertParamExists)('deleteCommentPublic', 'commentId', commentId);
// verify required parameter 'broadcastId' is not null or undefined
(0, common_1.assertParamExists)('deleteCommentPublic', 'broadcastId', broadcastId);
const localVarPath = `/comments/{tenantId}/{commentId}`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
.replace(`{${"commentId"}}`, encodeURIComponent(String(commentId)));
// 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 = {};
if (broadcastId !== undefined) {
localVarQueryParameter['broadcastId'] = broadcastId;
}
if (editKey !== undefined) {
localVarQueryParameter['editKey'] = editKey;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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} commentId
* @param {string} voteId
* @param {string} urlId
* @param {string} broadcastId
* @param {string} [editKey]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deleteCommentVote: async (tenantId, commentId, voteId, urlId, broadcastId, editKey, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('deleteCommentVote', 'tenantId', tenantId);
// verify required parameter 'commentId' is not null or undefined
(0, common_1.assertParamExists)('deleteCommentVote', 'commentId', commentId);
// verify required parameter 'voteId' is not null or undefined
(0, common_1.assertParamExists)('deleteCommentVote', 'voteId', voteId);
// verify required parameter 'urlId' is not null or undefined
(0, common_1.assertParamExists)('deleteCommentVote', 'urlId', urlId);
// verify required parameter 'broadcastId' is not null or undefined
(0, common_1.assertParamExists)('deleteCommentVote', 'broadcastId', broadcastId);
const localVarPath = `/comments/{tenantId}/{commentId}/vote/{voteId}`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
.replace(`{${"commentId"}}`, encodeURIComponent(String(commentId)))
.replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
// 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 = {};
if (urlId !== undefined) {
localVarQueryParameter['urlId'] = urlId;
}
if (broadcastId !== undefined) {
localVarQueryParameter['broadcastId'] = broadcastId;
}
if (editKey !== undefined) {
localVarQueryParameter['editKey'] = editKey;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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} postId
* @param {string} [broadcastId]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deleteFeedPostPublic: async (tenantId, postId, broadcastId, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('deleteFeedPostPublic', 'tenantId', tenantId);
// verify required parameter 'postId' is not null or undefined
(0, common_1.assertParamExists)('deleteFeedPostPublic', 'postId', postId);
const localVarPath = `/feed-posts/{tenantId}/{postId}`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
.replace(`{${"postId"}}`, encodeURIComponent(String(postId)));
// 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 = {};
if (broadcastId !== undefined) {
localVarQueryParameter['broadcastId'] = broadcastId;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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} commentId
* @param {boolean} isFlagged
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
flagCommentPublic: async (tenantId, commentId, isFlagged, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('flagCommentPublic', 'tenantId', tenantId);
// verify required parameter 'commentId' is not null or undefined
(0, common_1.assertParamExists)('flagCommentPublic', 'commentId', commentId);
// verify required parameter 'isFlagged' is not null or undefined
(0, common_1.assertParamExists)('flagCommentPublic', 'isFlagged', isFlagged);
const localVarPath = `/flag-comment/{commentId}`
.replace(`{${"commentId"}}`, encodeURIComponent(String(commentId)));
// 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 = {};
if (tenantId !== undefined) {
localVarQueryParameter['tenantId'] = tenantId;
}
if (isFlagged !== undefined) {
localVarQueryParameter['isFlagged'] = isFlagged;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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} commentId
* @param {string} [editKey]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCommentText: async (tenantId, commentId, editKey, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('getCommentText', 'tenantId', tenantId);
// verify required parameter 'commentId' is not null or undefined
(0, common_1.assertParamExists)('getCommentText', 'commentId', commentId);
const localVarPath = `/comments/{tenantId}/{commentId}/text`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
.replace(`{${"commentId"}}`, encodeURIComponent(String(commentId)));
// 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 = {};
if (editKey !== undefined) {
localVarQueryParameter['editKey'] = editKey;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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} commentId
* @param {number} dir
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCommentVoteUserNames: async (tenantId, commentId, dir, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('getCommentVoteUserNames', 'tenantId', tenantId);
// verify required parameter 'commentId' is not null or undefined
(0, common_1.assertParamExists)('getCommentVoteUserNames', 'commentId', commentId);
// verify required parameter 'dir' is not null or undefined
(0, common_1.assertParamExists)('getCommentVoteUserNames', 'dir', dir);
const localVarPath = `/comments/{tenantId}/{commentId}/votes`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
.replace(`{${"commentId"}}`, encodeURIComponent(String(commentId)));
// 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 = {};
if (dir !== undefined) {
localVarQueryParameter['dir'] = dir;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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 urlId
* @param {string} tenantId
* @param {string} urlId
* @param {number} [page]
* @param {SortDirections} [direction]
* @param {string} [sso]
* @param {number} [skip]
* @param {number} [skipChildren]
* @param {number} [limit]
* @param {number} [limitChildren]
* @param {boolean} [countChildren]
* @param {string} [fetchPageForCommentId]
* @param {boolean} [includeConfig]
* @param {boolean} [countAll]
* @param {boolean} [includei10n]
* @param {string} [locale]
* @param {string} [modules]
* @param {boolean} [isCrawler]
* @param {boolean} [includeNotificationCount]
* @param {boolean} [asTree]
* @param {number} [maxTreeDepth]
* @param {boolean} [useFullTranslationIds]
* @param {string} [parentId]
* @param {string} [searchText]
* @param {Array<string>} [hashTags]
* @param {string} [userId]
* @param {string} [customConfigStr]
* @param {string} [afterCommentId]
* @param {string} [beforeCommentId]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCommentsPublic: async (tenantId, urlId, page, direction, sso, skip, skipChildren, limit, limitChildren, countChildren, fetchPageForCommentId, includeConfig, countAll, includei10n, locale, modules, isCrawler, includeNotificationCount, asTree, maxTreeDepth, useFullTranslationIds, parentId, searchText, hashTags, userId, customConfigStr, afterCommentId, beforeCommentId, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('getCommentsPublic', 'tenantId', tenantId);
// verify required parameter 'urlId' is not null or undefined
(0, common_1.assertParamExists)('getCommentsPublic', 'urlId', urlId);
const localVarPath = `/comments/{tenantId}`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)));
// 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 = {};
if (urlId !== undefined) {
localVarQueryParameter['urlId'] = urlId;
}
if (page !== undefined) {
localVarQueryParameter['page'] = page;
}
if (direction !== undefined) {
localVarQueryParameter['direction'] = direction;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
if (skip !== undefined) {
localVarQueryParameter['skip'] = skip;
}
if (skipChildren !== undefined) {
localVarQueryParameter['skipChildren'] = skipChildren;
}
if (limit !== undefined) {
localVarQueryParameter['limit'] = limit;
}
if (limitChildren !== undefined) {
localVarQueryParameter['limitChildren'] = limitChildren;
}
if (countChildren !== undefined) {
localVarQueryParameter['countChildren'] = countChildren;
}
if (fetchPageForCommentId !== undefined) {
localVarQueryParameter['fetchPageForCommentId'] = fetchPageForCommentId;
}
if (includeConfig !== undefined) {
localVarQueryParameter['includeConfig'] = includeConfig;
}
if (countAll !== undefined) {
localVarQueryParameter['countAll'] = countAll;
}
if (includei10n !== undefined) {
localVarQueryParameter['includei10n'] = includei10n;
}
if (locale !== undefined) {
localVarQueryParameter['locale'] = locale;
}
if (modules !== undefined) {
localVarQueryParameter['modules'] = modules;
}
if (isCrawler !== undefined) {
localVarQueryParameter['isCrawler'] = isCrawler;
}
if (includeNotificationCount !== undefined) {
localVarQueryParameter['includeNotificationCount'] = includeNotificationCount;
}
if (asTree !== undefined) {
localVarQueryParameter['asTree'] = asTree;
}
if (maxTreeDepth !== undefined) {
localVarQueryParameter['maxTreeDepth'] = maxTreeDepth;
}
if (useFullTranslationIds !== undefined) {
localVarQueryParameter['useFullTranslationIds'] = useFullTranslationIds;
}
if (parentId !== undefined) {
localVarQueryParameter['parentId'] = parentId;
}
if (searchText !== undefined) {
localVarQueryParameter['searchText'] = searchText;
}
if (hashTags) {
localVarQueryParameter['hashTags'] = hashTags;
}
if (userId !== undefined) {
localVarQueryParameter['userId'] = userId;
}
if (customConfigStr !== undefined) {
localVarQueryParameter['customConfigStr'] = customConfigStr;
}
if (afterCommentId !== undefined) {
localVarQueryParameter['afterCommentId'] = afterCommentId;
}
if (beforeCommentId !== undefined) {
localVarQueryParameter['beforeCommentId'] = beforeCommentId;
}
(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 urlId userIdWS
* @param {string} tenantId
* @param {string} urlId
* @param {string} userIdWS
* @param {number} startTime
* @param {number} endTime
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getEventLog: async (tenantId, urlId, userIdWS, startTime, endTime, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('getEventLog', 'tenantId', tenantId);
// verify required parameter 'urlId' is not null or undefined
(0, common_1.assertParamExists)('getEventLog', 'urlId', urlId);
// verify required parameter 'userIdWS' is not null or undefined
(0, common_1.assertParamExists)('getEventLog', 'userIdWS', userIdWS);
// verify required parameter 'startTime' is not null or undefined
(0, common_1.assertParamExists)('getEventLog', 'startTime', startTime);
// verify required parameter 'endTime' is not null or undefined
(0, common_1.assertParamExists)('getEventLog', 'endTime', endTime);
const localVarPath = `/event-log/{tenantId}`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)));
// 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 = {};
if (urlId !== undefined) {
localVarQueryParameter['urlId'] = urlId;
}
if (userIdWS !== undefined) {
localVarQueryParameter['userIdWS'] = userIdWS;
}
if (startTime !== undefined) {
localVarQueryParameter['startTime'] = startTime;
}
if (endTime !== undefined) {
localVarQueryParameter['endTime'] = endTime;
}
(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 {string} [sso]
* @param {boolean} [isCrawler]
* @param {boolean} [includeUserInfo]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getFeedPostsPublic: async (tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('getFeedPostsPublic', 'tenantId', tenantId);
const localVarPath = `/feed-posts/{tenantId}`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)));
// 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 = {};
if (afterId !== undefined) {
localVarQueryParameter['afterId'] = afterId;
}
if (limit !== undefined) {
localVarQueryParameter['limit'] = limit;
}
if (tags) {
localVarQueryParameter['tags'] = tags;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
if (isCrawler !== undefined) {
localVarQueryParameter['isCrawler'] = isCrawler;
}
if (includeUserInfo !== undefined) {
localVarQueryParameter['includeUserInfo'] = includeUserInfo;
}
(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 {Array<string>} postIds
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getFeedPostsStats: async (tenantId, postIds, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('getFeedPostsStats', 'tenantId', tenantId);
// verify required parameter 'postIds' is not null or undefined
(0, common_1.assertParamExists)('getFeedPostsStats', 'postIds', postIds);
const localVarPath = `/feed-posts/{tenantId}/stats`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)));
// 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 = {};
if (postIds) {
localVarQueryParameter['postIds'] = postIds;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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 urlId userIdWS
* @param {string} tenantId
* @param {string} urlId
* @param {string} userIdWS
* @param {number} startTime
* @param {number} endTime
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getGlobalEventLog: async (tenantId, urlId, userIdWS, startTime, endTime, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('getGlobalEventLog', 'tenantId', tenantId);
// verify required parameter 'urlId' is not null or undefined
(0, common_1.assertParamExists)('getGlobalEventLog', 'urlId', urlId);
// verify required parameter 'userIdWS' is not null or undefined
(0, common_1.assertParamExists)('getGlobalEventLog', 'userIdWS', userIdWS);
// verify required parameter 'startTime' is not null or undefined
(0, common_1.assertParamExists)('getGlobalEventLog', 'startTime', startTime);
// verify required parameter 'endTime' is not null or undefined
(0, common_1.assertParamExists)('getGlobalEventLog', 'endTime', endTime);
const localVarPath = `/event-log/global/{tenantId}`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)));
// 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 = {};
if (urlId !== undefined) {
localVarQueryParameter['urlId'] = urlId;
}
if (userIdWS !== undefined) {
localVarQueryParameter['userIdWS'] = userIdWS;
}
if (startTime !== undefined) {
localVarQueryParameter['startTime'] = startTime;
}
if (endTime !== undefined) {
localVarQueryParameter['endTime'] = endTime;
}
(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} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getUserNotificationCount: async (tenantId, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('getUserNotificationCount', 'tenantId', tenantId);
const localVarPath = `/user-notifications/get-count`;
// 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 = {};
if (tenantId !== undefined) {
localVarQueryParameter['tenantId'] = tenantId;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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} [pageSize] Defaults to 20.
* @param {string} [afterId]
* @param {boolean} [includeContext]
* @param {number} [afterCreatedAt]
* @param {boolean} [unreadOnly]
* @param {boolean} [dmOnly]
* @param {boolean} [noDm]
* @param {boolean} [includeTranslations]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getUserNotifications: async (tenantId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('getUserNotifications', 'tenantId', tenantId);
const localVarPath = `/user-notifications`;
// 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 = {};
if (tenantId !== undefined) {
localVarQueryParameter['tenantId'] = tenantId;
}
if (pageSize !== undefined) {
localVarQueryParameter['pageSize'] = pageSize;
}
if (afterId !== undefined) {
localVarQueryParameter['afterId'] = afterId;
}
if (includeContext !== undefined) {
localVarQueryParameter['includeContext'] = includeContext;
}
if (afterCreatedAt !== undefined) {
localVarQueryParameter['afterCreatedAt'] = afterCreatedAt;
}
if (unreadOnly !== undefined) {
localVarQueryParameter['unreadOnly'] = unreadOnly;
}
if (dmOnly !== undefined) {
localVarQueryParameter['dmOnly'] = dmOnly;
}
if (noDm !== undefined) {
localVarQueryParameter['noDm'] = noDm;
}
if (includeTranslations !== undefined) {
localVarQueryParameter['includeTranslations'] = includeTranslations;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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} urlIdWS
* @param {string} userIds
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getUserPresenceStatuses: async (tenantId, urlIdWS, userIds, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('getUserPresenceStatuses', 'tenantId', tenantId);
// verify required parameter 'urlIdWS' is not null or undefined
(0, common_1.assertParamExists)('getUserPresenceStatuses', 'urlIdWS', urlIdWS);
// verify required parameter 'userIds' is not null or undefined
(0, common_1.assertParamExists)('getUserPresenceStatuses', 'userIds', userIds);
const localVarPath = `/user-presence-status`;
// 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 = {};
if (tenantId !== undefined) {
localVarQueryParameter['tenantId'] = tenantId;
}
if (urlIdWS !== undefined) {
localVarQueryParameter['urlIdWS'] = urlIdWS;
}
if (userIds !== undefined) {
localVarQueryParameter['userIds'] = userIds;
}
(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 {Array<string>} [postIds]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getUserReactsPublic: async (tenantId, postIds, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('getUserReactsPublic', 'tenantId', tenantId);
const localVarPath = `/feed-posts/{tenantId}/user-reacts`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)));
// 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 = {};
if (postIds) {
localVarQueryParameter['postIds'] = postIds;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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} commentId
* @param {string} broadcastId
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
lockComment: async (tenantId, commentId, broadcastId, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('lockComment', 'tenantId', tenantId);
// verify required parameter 'commentId' is not null or undefined
(0, common_1.assertParamExists)('lockComment', 'commentId', commentId);
// verify required parameter 'broadcastId' is not null or undefined
(0, common_1.assertParamExists)('lockComment', 'broadcastId', broadcastId);
const localVarPath = `/comments/{tenantId}/{commentId}/lock`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
.replace(`{${"commentId"}}`, encodeURIComponent(String(commentId)));
// 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 = {};
if (broadcastId !== undefined) {
localVarQueryParameter['broadcastId'] = broadcastId;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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} commentId
* @param {string} broadcastId
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
pinComment: async (tenantId, commentId, broadcastId, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('pinComment', 'tenantId', tenantId);
// verify required parameter 'commentId' is not null or undefined
(0, common_1.assertParamExists)('pinComment', 'commentId', commentId);
// verify required parameter 'broadcastId' is not null or undefined
(0, common_1.assertParamExists)('pinComment', 'broadcastId', broadcastId);
const localVarPath = `/comments/{tenantId}/{commentId}/pin`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
.replace(`{${"commentId"}}`, encodeURIComponent(String(commentId)));
// 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 = {};
if (broadcastId !== undefined) {
localVarQueryParameter['broadcastId'] = broadcastId;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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} postId
* @param {ReactBodyParams} reactBodyParams
* @param {boolean} [isUndo]
* @param {string} [broadcastId]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
reactFeedPostPublic: async (tenantId, postId, reactBodyParams, isUndo, broadcastId, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('reactFeedPostPublic', 'tenantId', tenantId);
// verify required parameter 'postId' is not null or undefined
(0, common_1.assertParamExists)('reactFeedPostPublic', 'postId', postId);
// verify required parameter 'reactBodyParams' is not null or undefined
(0, common_1.assertParamExists)('reactFeedPostPublic', 'reactBodyParams', reactBodyParams);
const localVarPath = `/feed-posts/{tenantId}/react/{postId}`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
.replace(`{${"postId"}}`, encodeURIComponent(String(postId)));
// 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 = {};
if (isUndo !== undefined) {
localVarQueryParameter['isUndo'] = isUndo;
}
if (broadcastId !== undefined) {
localVarQueryParameter['broadcastId'] = broadcastId;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
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)(reactBodyParams, localVarRequestOptions, configuration);
return {
url: (0, common_1.toPathString)(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @param {string} tenantId
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
resetUserNotificationCount: async (tenantId, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('resetUserNotificationCount', 'tenantId', tenantId);
const localVarPath = `/user-notifications/reset-count`;
// 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 = {};
if (tenantId !== undefined) {
localVarQueryParameter['tenantId'] = tenantId;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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} [afterId]
* @param {number} [afterCreatedAt]
* @param {boolean} [unreadOnly]
* @param {boolean} [dmOnly]
* @param {boolean} [noDm]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
resetUserNotifications: async (tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('resetUserNotifications', 'tenantId', tenantId);
const localVarPath = `/user-notifications/reset`;
// 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 = {};
if (tenantId !== undefined) {
localVarQueryParameter['tenantId'] = tenantId;
}
if (afterId !== undefined) {
localVarQueryParameter['afterId'] = afterId;
}
if (afterCreatedAt !== undefined) {
localVarQueryParameter['afterCreatedAt'] = afterCreatedAt;
}
if (unreadOnly !== undefined) {
localVarQueryParameter['unreadOnly'] = unreadOnly;
}
if (dmOnly !== undefined) {
localVarQueryParameter['dmOnly'] = dmOnly;
}
if (noDm !== undefined) {
localVarQueryParameter['noDm'] = noDm;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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} urlId
* @param {string} usernameStartsWith
* @param {Array<string>} [mentionGroupIds]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
searchUsers: async (tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('searchUsers', 'tenantId', tenantId);
// verify required parameter 'urlId' is not null or undefined
(0, common_1.assertParamExists)('searchUsers', 'urlId', urlId);
// verify required parameter 'usernameStartsWith' is not null or undefined
(0, common_1.assertParamExists)('searchUsers', 'usernameStartsWith', usernameStartsWith);
const localVarPath = `/user-search/{tenantId}`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)));
// 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 = {};
if (urlId !== undefined) {
localVarQueryParameter['urlId'] = urlId;
}
if (usernameStartsWith !== undefined) {
localVarQueryParameter['usernameStartsWith'] = usernameStartsWith;
}
if (mentionGroupIds) {
localVarQueryParameter['mentionGroupIds'] = mentionGroupIds;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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} commentId
* @param {string} broadcastId
* @param {CommentTextUpdateRequest} commentTextUpdateRequest
* @param {string} [editKey]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
setCommentText: async (tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('setCommentText', 'tenantId', tenantId);
// verify required parameter 'commentId' is not null or undefined
(0, common_1.assertParamExists)('setCommentText', 'commentId', commentId);
// verify required parameter 'broadcastId' is not null or undefined
(0, common_1.assertParamExists)('setCommentText', 'broadcastId', broadcastId);
// verify required parameter 'commentTextUpdateRequest' is not null or undefined
(0, common_1.assertParamExists)('setCommentText', 'commentTextUpdateRequest', commentTextUpdateRequest);
const localVarPath = `/comments/{tenantId}/{commentId}/update-text`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
.replace(`{${"commentId"}}`, encodeURIComponent(String(commentId)));
// 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 = {};
if (broadcastId !== undefined) {
localVarQueryParameter['broadcastId'] = broadcastId;
}
if (editKey !== undefined) {
localVarQueryParameter['editKey'] = editKey;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
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)(commentTextUpdateRequest, localVarRequestOptions, configuration);
return {
url: (0, common_1.toPathString)(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @param {string} tenantId
* @param {string} commentId
* @param {PublicBlockFromCommentParams} publicBlockFromCommentParams
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
unBlockCommentPublic: async (tenantId, commentId, publicBlockFromCommentParams, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('unBlockCommentPublic', 'tenantId', tenantId);
// verify required parameter 'commentId' is not null or undefined
(0, common_1.assertParamExists)('unBlockCommentPublic', 'commentId', commentId);
// verify required parameter 'publicBlockFromCommentParams' is not null or undefined
(0, common_1.assertParamExists)('unBlockCommentPublic', 'publicBlockFromCommentParams', publicBlockFromCommentParams);
const localVarPath = `/block-from-comment/{commentId}`
.replace(`{${"commentId"}}`, encodeURIComponent(String(commentId)));
// 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 = {};
if (tenantId !== undefined) {
localVarQueryParameter['tenantId'] = tenantId;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
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)(publicBlockFromCommentParams, localVarRequestOptions, configuration);
return {
url: (0, common_1.toPathString)(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @param {string} tenantId
* @param {string} commentId
* @param {string} broadcastId
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
unLockComment: async (tenantId, commentId, broadcastId, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('unLockComment', 'tenantId', tenantId);
// verify required parameter 'commentId' is not null or undefined
(0, common_1.assertParamExists)('unLockComment', 'commentId', commentId);
// verify required parameter 'broadcastId' is not null or undefined
(0, common_1.assertParamExists)('unLockComment', 'broadcastId', broadcastId);
const localVarPath = `/comments/{tenantId}/{commentId}/unlock`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
.replace(`{${"commentId"}}`, encodeURIComponent(String(commentId)));
// 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 = {};
if (broadcastId !== undefined) {
localVarQueryParameter['broadcastId'] = broadcastId;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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} commentId
* @param {string} broadcastId
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
unPinComment: async (tenantId, commentId, broadcastId, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('unPinComment', 'tenantId', tenantId);
// verify required parameter 'commentId' is not null or undefined
(0, common_1.assertParamExists)('unPinComment', 'commentId', commentId);
// verify required parameter 'broadcastId' is not null or undefined
(0, common_1.assertParamExists)('unPinComment', 'broadcastId', broadcastId);
const localVarPath = `/comments/{tenantId}/{commentId}/unpin`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
.replace(`{${"commentId"}}`, encodeURIComponent(String(commentId)));
// 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 = {};
if (broadcastId !== undefined) {
localVarQueryParameter['broadcastId'] = broadcastId;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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} postId
* @param {UpdateFeedPostParams} updateFeedPostParams
* @param {string} [broadcastId]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateFeedPostPublic: async (tenantId, postId, updateFeedPostParams, broadcastId, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('updateFeedPostPublic', 'tenantId', tenantId);
// verify required parameter 'postId' is not null or undefined
(0, common_1.assertParamExists)('updateFeedPostPublic', 'postId', postId);
// verify required parameter 'updateFeedPostParams' is not null or undefined
(0, common_1.assertParamExists)('updateFeedPostPublic', 'updateFeedPostParams', updateFeedPostParams);
const localVarPath = `/feed-posts/{tenantId}/{postId}`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
.replace(`{${"postId"}}`, encodeURIComponent(String(postId)));
// 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 = {};
if (broadcastId !== undefined) {
localVarQueryParameter['broadcastId'] = broadcastId;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
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)(updateFeedPostParams, localVarRequestOptions, configuration);
return {
url: (0, common_1.toPathString)(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Enable or disable notifications for a specific comment.
* @param {string} tenantId
* @param {string} notificationId
* @param {UpdateUserNotificationCommentSubscriptionStatusOptedInOrOutEnum} optedInOrOut
* @param {string} commentId
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateUserNotificationCommentSubscriptionStatus: async (tenantId, notificationId, optedInOrOut, commentId, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('updateUserNotificationCommentSubscriptionStatus', 'tenantId', tenantId);
// verify required parameter 'notificationId' is not null or undefined
(0, common_1.assertParamExists)('updateUserNotificationCommentSubscriptionStatus', 'notificationId', notificationId);
// verify required parameter 'optedInOrOut' is not null or undefined
(0, common_1.assertParamExists)('updateUserNotificationCommentSubscriptionStatus', 'optedInOrOut', optedInOrOut);
// verify required parameter 'commentId' is not null or undefined
(0, common_1.assertParamExists)('updateUserNotificationCommentSubscriptionStatus', 'commentId', commentId);
const localVarPath = `/user-notifications/{notificationId}/mark-opted/{optedInOrOut}`
.replace(`{${"notificationId"}}`, encodeURIComponent(String(notificationId)))
.replace(`{${"optedInOrOut"}}`, encodeURIComponent(String(optedInOrOut)));
// 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 = {};
if (tenantId !== undefined) {
localVarQueryParameter['tenantId'] = tenantId;
}
if (commentId !== undefined) {
localVarQueryParameter['commentId'] = commentId;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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,
};
},
/**
* Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also
* @param {string} tenantId
* @param {string} urlId
* @param {string} url
* @param {string} pageTitle
* @param {UpdateUserNotificationPageSubscriptionStatusSubscribedOrUnsubscribedEnum} subscribedOrUnsubscribed
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateUserNotificationPageSubscriptionStatus: async (tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('updateUserNotificationPageSubscriptionStatus', 'tenantId', tenantId);
// verify required parameter 'urlId' is not null or undefined
(0, common_1.assertParamExists)('updateUserNotificationPageSubscriptionStatus', 'urlId', urlId);
// verify required parameter 'url' is not null or undefined
(0, common_1.assertParamExists)('updateUserNotificationPageSubscriptionStatus', 'url', url);
// verify required parameter 'pageTitle' is not null or undefined
(0, common_1.assertParamExists)('updateUserNotificationPageSubscriptionStatus', 'pageTitle', pageTitle);
// verify required parameter 'subscribedOrUnsubscribed' is not null or undefined
(0, common_1.assertParamExists)('updateUserNotificationPageSubscriptionStatus', 'subscribedOrUnsubscribed', subscribedOrUnsubscribed);
const localVarPath = `/user-notifications/set-subscription-state/{subscribedOrUnsubscribed}`
.replace(`{${"subscribedOrUnsubscribed"}}`, encodeURIComponent(String(subscribedOrUnsubscribed)));
// 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 = {};
if (tenantId !== undefined) {
localVarQueryParameter['tenantId'] = tenantId;
}
if (urlId !== undefined) {
localVarQueryParameter['urlId'] = urlId;
}
if (url !== undefined) {
localVarQueryParameter['url'] = url;
}
if (pageTitle !== undefined) {
localVarQueryParameter['pageTitle'] = pageTitle;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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} notificationId
* @param {UpdateUserNotificationStatusNewStatusEnum} newStatus
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateUserNotificationStatus: async (tenantId, notificationId, newStatus, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('updateUserNotificationStatus', 'tenantId', tenantId);
// verify required parameter 'notificationId' is not null or undefined
(0, common_1.assertParamExists)('updateUserNotificationStatus', 'notificationId', notificationId);
// verify required parameter 'newStatus' is not null or undefined
(0, common_1.assertParamExists)('updateUserNotificationStatus', 'newStatus', newStatus);
const localVarPath = `/user-notifications/{notificationId}/mark/{newStatus}`
.replace(`{${"notificationId"}}`, encodeURIComponent(String(notificationId)))
.replace(`{${"newStatus"}}`, encodeURIComponent(String(newStatus)));
// 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 = {};
if (tenantId !== undefined) {
localVarQueryParameter['tenantId'] = tenantId;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
(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,
};
},
/**
* Upload and resize an image
* @param {string} tenantId
* @param {File} file
* @param {SizePreset} [sizePreset] Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices)
* @param {string} [urlId] Page id that upload is happening from, to configure
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
uploadImage: async (tenantId, file, sizePreset, urlId, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('uploadImage', 'tenantId', tenantId);
// verify required parameter 'file' is not null or undefined
(0, common_1.assertParamExists)('uploadImage', 'file', file);
const localVarPath = `/upload-image/{tenantId}`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)));
// 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 = {};
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
if (sizePreset !== undefined) {
localVarQueryParameter['sizePreset'] = sizePreset;
}
if (urlId !== undefined) {
localVarQueryParameter['urlId'] = urlId;
}
if (file !== undefined) {
localVarFormParams.append('file', file);
}
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
localVarRequestOptions.data = localVarFormParams;
return {
url: (0, common_1.toPathString)(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @param {string} tenantId
* @param {string} commentId
* @param {string} urlId
* @param {string} broadcastId
* @param {VoteBodyParams} voteBodyParams
* @param {string} [sessionId]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
voteComment: async (tenantId, commentId, urlId, broadcastId, voteBodyParams, sessionId, sso, options = {}) => {
// verify required parameter 'tenantId' is not null or undefined
(0, common_1.assertParamExists)('voteComment', 'tenantId', tenantId);
// verify required parameter 'commentId' is not null or undefined
(0, common_1.assertParamExists)('voteComment', 'commentId', commentId);
// verify required parameter 'urlId' is not null or undefined
(0, common_1.assertParamExists)('voteComment', 'urlId', urlId);
// verify required parameter 'broadcastId' is not null or undefined
(0, common_1.assertParamExists)('voteComment', 'broadcastId', broadcastId);
// verify required parameter 'voteBodyParams' is not null or undefined
(0, common_1.assertParamExists)('voteComment', 'voteBodyParams', voteBodyParams);
const localVarPath = `/comments/{tenantId}/{commentId}/vote`
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
.replace(`{${"commentId"}}`, encodeURIComponent(String(commentId)));
// 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 = {};
if (urlId !== undefined) {
localVarQueryParameter['urlId'] = urlId;
}
if (broadcastId !== undefined) {
localVarQueryParameter['broadcastId'] = broadcastId;
}
if (sessionId !== undefined) {
localVarQueryParameter['sessionId'] = sessionId;
}
if (sso !== undefined) {
localVarQueryParameter['sso'] = sso;
}
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)(voteBodyParams, localVarRequestOptions, configuration);
return {
url: (0, common_1.toPathString)(localVarUrlObj),
options: localVarRequestOptions,
};
},
};
};
exports.PublicApiAxiosParamCreator = PublicApiAxiosParamCreator;
/**
* PublicApi - functional programming interface
* @export
*/
const PublicApiFp = function (configuration) {
const localVarAxiosParamCreator = (0, exports.PublicApiAxiosParamCreator)(configuration);
return {
/**
*
* @param {string} tenantId
* @param {string} commentId
* @param {PublicBlockFromCommentParams} publicBlockFromCommentParams
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.blockFromCommentPublic']?.[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} commentIds A comma separated list of comment ids.
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async checkedCommentsForBlocked(tenantId, commentIds, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.checkedCommentsForBlocked(tenantId, commentIds, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.checkedCommentsForBlocked']?.[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} urlId
* @param {string} broadcastId
* @param {CommentData} commentData
* @param {string} [sessionId]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createCommentPublic(tenantId, urlId, broadcastId, commentData, sessionId, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.createCommentPublic(tenantId, urlId, broadcastId, commentData, sessionId, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.createCommentPublic']?.[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 {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createFeedPostPublic(tenantId, createFeedPostParams, broadcastId, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.createFeedPostPublic(tenantId, createFeedPostParams, broadcastId, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.createFeedPostPublic']?.[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} commentId
* @param {string} broadcastId
* @param {string} [editKey]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async deleteCommentPublic(tenantId, commentId, broadcastId, editKey, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommentPublic(tenantId, commentId, broadcastId, editKey, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.deleteCommentPublic']?.[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} commentId
* @param {string} voteId
* @param {string} urlId
* @param {string} broadcastId
* @param {string} [editKey]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.deleteCommentVote']?.[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} postId
* @param {string} [broadcastId]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async deleteFeedPostPublic(tenantId, postId, broadcastId, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFeedPostPublic(tenantId, postId, broadcastId, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.deleteFeedPostPublic']?.[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} commentId
* @param {boolean} isFlagged
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async flagCommentPublic(tenantId, commentId, isFlagged, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.flagCommentPublic(tenantId, commentId, isFlagged, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.flagCommentPublic']?.[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} commentId
* @param {string} [editKey]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getCommentText(tenantId, commentId, editKey, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.getCommentText(tenantId, commentId, editKey, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.getCommentText']?.[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} commentId
* @param {number} dir
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getCommentVoteUserNames(tenantId, commentId, dir, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.getCommentVoteUserNames(tenantId, commentId, dir, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.getCommentVoteUserNames']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
* req tenantId urlId
* @param {string} tenantId
* @param {string} urlId
* @param {number} [page]
* @param {SortDirections} [direction]
* @param {string} [sso]
* @param {number} [skip]
* @param {number} [skipChildren]
* @param {number} [limit]
* @param {number} [limitChildren]
* @param {boolean} [countChildren]
* @param {string} [fetchPageForCommentId]
* @param {boolean} [includeConfig]
* @param {boolean} [countAll]
* @param {boolean} [includei10n]
* @param {string} [locale]
* @param {string} [modules]
* @param {boolean} [isCrawler]
* @param {boolean} [includeNotificationCount]
* @param {boolean} [asTree]
* @param {number} [maxTreeDepth]
* @param {boolean} [useFullTranslationIds]
* @param {string} [parentId]
* @param {string} [searchText]
* @param {Array<string>} [hashTags]
* @param {string} [userId]
* @param {string} [customConfigStr]
* @param {string} [afterCommentId]
* @param {string} [beforeCommentId]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getCommentsPublic(tenantId, urlId, page, direction, sso, skip, skipChildren, limit, limitChildren, countChildren, fetchPageForCommentId, includeConfig, countAll, includei10n, locale, modules, isCrawler, includeNotificationCount, asTree, maxTreeDepth, useFullTranslationIds, parentId, searchText, hashTags, userId, customConfigStr, afterCommentId, beforeCommentId, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.getCommentsPublic(tenantId, urlId, page, direction, sso, skip, skipChildren, limit, limitChildren, countChildren, fetchPageForCommentId, includeConfig, countAll, includei10n, locale, modules, isCrawler, includeNotificationCount, asTree, maxTreeDepth, useFullTranslationIds, parentId, searchText, hashTags, userId, customConfigStr, afterCommentId, beforeCommentId, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.getCommentsPublic']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
* req tenantId urlId userIdWS
* @param {string} tenantId
* @param {string} urlId
* @param {string} userIdWS
* @param {number} startTime
* @param {number} endTime
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getEventLog(tenantId, urlId, userIdWS, startTime, endTime, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.getEventLog(tenantId, urlId, userIdWS, startTime, endTime, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.getEventLog']?.[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 {string} [sso]
* @param {boolean} [isCrawler]
* @param {boolean} [includeUserInfo]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getFeedPostsPublic(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeedPostsPublic(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.getFeedPostsPublic']?.[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<string>} postIds
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getFeedPostsStats(tenantId, postIds, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeedPostsStats(tenantId, postIds, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.getFeedPostsStats']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
* req tenantId urlId userIdWS
* @param {string} tenantId
* @param {string} urlId
* @param {string} userIdWS
* @param {number} startTime
* @param {number} endTime
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getGlobalEventLog(tenantId, urlId, userIdWS, startTime, endTime, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.getGlobalEventLog(tenantId, urlId, userIdWS, startTime, endTime, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.getGlobalEventLog']?.[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} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getUserNotificationCount(tenantId, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserNotificationCount(tenantId, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.getUserNotificationCount']?.[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} [pageSize] Defaults to 20.
* @param {string} [afterId]
* @param {boolean} [includeContext]
* @param {number} [afterCreatedAt]
* @param {boolean} [unreadOnly]
* @param {boolean} [dmOnly]
* @param {boolean} [noDm]
* @param {boolean} [includeTranslations]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getUserNotifications(tenantId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserNotifications(tenantId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.getUserNotifications']?.[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} urlIdWS
* @param {string} userIds
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getUserPresenceStatuses(tenantId, urlIdWS, userIds, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserPresenceStatuses(tenantId, urlIdWS, userIds, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.getUserPresenceStatuses']?.[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<string>} [postIds]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getUserReactsPublic(tenantId, postIds, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserReactsPublic(tenantId, postIds, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.getUserReactsPublic']?.[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} commentId
* @param {string} broadcastId
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async lockComment(tenantId, commentId, broadcastId, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.lockComment(tenantId, commentId, broadcastId, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.lockComment']?.[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} commentId
* @param {string} broadcastId
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async pinComment(tenantId, commentId, broadcastId, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.pinComment(tenantId, commentId, broadcastId, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.pinComment']?.[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} postId
* @param {ReactBodyParams} reactBodyParams
* @param {boolean} [isUndo]
* @param {string} [broadcastId]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async reactFeedPostPublic(tenantId, postId, reactBodyParams, isUndo, broadcastId, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.reactFeedPostPublic(tenantId, postId, reactBodyParams, isUndo, broadcastId, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.reactFeedPostPublic']?.[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} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async resetUserNotificationCount(tenantId, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.resetUserNotificationCount(tenantId, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.resetUserNotificationCount']?.[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} [afterId]
* @param {number} [afterCreatedAt]
* @param {boolean} [unreadOnly]
* @param {boolean} [dmOnly]
* @param {boolean} [noDm]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async resetUserNotifications(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.resetUserNotifications(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.resetUserNotifications']?.[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} urlId
* @param {string} usernameStartsWith
* @param {Array<string>} [mentionGroupIds]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async searchUsers(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.searchUsers(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.searchUsers']?.[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} commentId
* @param {string} broadcastId
* @param {CommentTextUpdateRequest} commentTextUpdateRequest
* @param {string} [editKey]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.setCommentText']?.[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} commentId
* @param {PublicBlockFromCommentParams} publicBlockFromCommentParams
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.unBlockCommentPublic']?.[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} commentId
* @param {string} broadcastId
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async unLockComment(tenantId, commentId, broadcastId, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.unLockComment(tenantId, commentId, broadcastId, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.unLockComment']?.[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} commentId
* @param {string} broadcastId
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async unPinComment(tenantId, commentId, broadcastId, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.unPinComment(tenantId, commentId, broadcastId, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.unPinComment']?.[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} postId
* @param {UpdateFeedPostParams} updateFeedPostParams
* @param {string} [broadcastId]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async updateFeedPostPublic(tenantId, postId, updateFeedPostParams, broadcastId, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.updateFeedPostPublic(tenantId, postId, updateFeedPostParams, broadcastId, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.updateFeedPostPublic']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
* Enable or disable notifications for a specific comment.
* @param {string} tenantId
* @param {string} notificationId
* @param {UpdateUserNotificationCommentSubscriptionStatusOptedInOrOutEnum} optedInOrOut
* @param {string} commentId
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async updateUserNotificationCommentSubscriptionStatus(tenantId, notificationId, optedInOrOut, commentId, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserNotificationCommentSubscriptionStatus(tenantId, notificationId, optedInOrOut, commentId, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.updateUserNotificationCommentSubscriptionStatus']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
* Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also
* @param {string} tenantId
* @param {string} urlId
* @param {string} url
* @param {string} pageTitle
* @param {UpdateUserNotificationPageSubscriptionStatusSubscribedOrUnsubscribedEnum} subscribedOrUnsubscribed
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async updateUserNotificationPageSubscriptionStatus(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserNotificationPageSubscriptionStatus(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.updateUserNotificationPageSubscriptionStatus']?.[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} notificationId
* @param {UpdateUserNotificationStatusNewStatusEnum} newStatus
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async updateUserNotificationStatus(tenantId, notificationId, newStatus, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserNotificationStatus(tenantId, notificationId, newStatus, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.updateUserNotificationStatus']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
* Upload and resize an image
* @param {string} tenantId
* @param {File} file
* @param {SizePreset} [sizePreset] Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices)
* @param {string} [urlId] Page id that upload is happening from, to configure
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async uploadImage(tenantId, file, sizePreset, urlId, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadImage(tenantId, file, sizePreset, urlId, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.uploadImage']?.[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} commentId
* @param {string} urlId
* @param {string} broadcastId
* @param {VoteBodyParams} voteBodyParams
* @param {string} [sessionId]
* @param {string} [sso]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams, sessionId, sso, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams, sessionId, sso, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['PublicApi.voteComment']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
};
};
exports.PublicApiFp = PublicApiFp;
/**
* PublicApi - factory interface
* @export
*/
const PublicApiFactory = function (configuration, basePath, axios) {
const localVarFp = (0, exports.PublicApiFp)(configuration);
return {
/**
*
* @param {PublicApiBlockFromCommentPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
blockFromCommentPublic(requestParameters, options) {
return localVarFp.blockFromCommentPublic(requestParameters.tenantId, requestParameters.commentId, requestParameters.publicBlockFromCommentParams, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiCheckedCommentsForBlockedRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
checkedCommentsForBlocked(requestParameters, options) {
return localVarFp.checkedCommentsForBlocked(requestParameters.tenantId, requestParameters.commentIds, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiCreateCommentPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createCommentPublic(requestParameters, options) {
return localVarFp.createCommentPublic(requestParameters.tenantId, requestParameters.urlId, requestParameters.broadcastId, requestParameters.commentData, requestParameters.sessionId, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiCreateFeedPostPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createFeedPostPublic(requestParameters, options) {
return localVarFp.createFeedPostPublic(requestParameters.tenantId, requestParameters.createFeedPostParams, requestParameters.broadcastId, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiDeleteCommentPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deleteCommentPublic(requestParameters, options) {
return localVarFp.deleteCommentPublic(requestParameters.tenantId, requestParameters.commentId, requestParameters.broadcastId, requestParameters.editKey, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiDeleteCommentVoteRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deleteCommentVote(requestParameters, options) {
return localVarFp.deleteCommentVote(requestParameters.tenantId, requestParameters.commentId, requestParameters.voteId, requestParameters.urlId, requestParameters.broadcastId, requestParameters.editKey, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiDeleteFeedPostPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deleteFeedPostPublic(requestParameters, options) {
return localVarFp.deleteFeedPostPublic(requestParameters.tenantId, requestParameters.postId, requestParameters.broadcastId, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiFlagCommentPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
flagCommentPublic(requestParameters, options) {
return localVarFp.flagCommentPublic(requestParameters.tenantId, requestParameters.commentId, requestParameters.isFlagged, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiGetCommentTextRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCommentText(requestParameters, options) {
return localVarFp.getCommentText(requestParameters.tenantId, requestParameters.commentId, requestParameters.editKey, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiGetCommentVoteUserNamesRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCommentVoteUserNames(requestParameters, options) {
return localVarFp.getCommentVoteUserNames(requestParameters.tenantId, requestParameters.commentId, requestParameters.dir, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
* req tenantId urlId
* @param {PublicApiGetCommentsPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCommentsPublic(requestParameters, options) {
return localVarFp.getCommentsPublic(requestParameters.tenantId, requestParameters.urlId, requestParameters.page, requestParameters.direction, requestParameters.sso, requestParameters.skip, requestParameters.skipChildren, requestParameters.limit, requestParameters.limitChildren, requestParameters.countChildren, requestParameters.fetchPageForCommentId, requestParameters.includeConfig, requestParameters.countAll, requestParameters.includei10n, requestParameters.locale, requestParameters.modules, requestParameters.isCrawler, requestParameters.includeNotificationCount, requestParameters.asTree, requestParameters.maxTreeDepth, requestParameters.useFullTranslationIds, requestParameters.parentId, requestParameters.searchText, requestParameters.hashTags, requestParameters.userId, requestParameters.customConfigStr, requestParameters.afterCommentId, requestParameters.beforeCommentId, options).then((request) => request(axios, basePath));
},
/**
* req tenantId urlId userIdWS
* @param {PublicApiGetEventLogRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getEventLog(requestParameters, options) {
return localVarFp.getEventLog(requestParameters.tenantId, requestParameters.urlId, requestParameters.userIdWS, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(axios, basePath));
},
/**
* req tenantId afterId
* @param {PublicApiGetFeedPostsPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getFeedPostsPublic(requestParameters, options) {
return localVarFp.getFeedPostsPublic(requestParameters.tenantId, requestParameters.afterId, requestParameters.limit, requestParameters.tags, requestParameters.sso, requestParameters.isCrawler, requestParameters.includeUserInfo, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiGetFeedPostsStatsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getFeedPostsStats(requestParameters, options) {
return localVarFp.getFeedPostsStats(requestParameters.tenantId, requestParameters.postIds, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
* req tenantId urlId userIdWS
* @param {PublicApiGetGlobalEventLogRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getGlobalEventLog(requestParameters, options) {
return localVarFp.getGlobalEventLog(requestParameters.tenantId, requestParameters.urlId, requestParameters.userIdWS, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiGetUserNotificationCountRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getUserNotificationCount(requestParameters, options) {
return localVarFp.getUserNotificationCount(requestParameters.tenantId, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiGetUserNotificationsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getUserNotifications(requestParameters, options) {
return localVarFp.getUserNotifications(requestParameters.tenantId, requestParameters.pageSize, requestParameters.afterId, requestParameters.includeContext, requestParameters.afterCreatedAt, requestParameters.unreadOnly, requestParameters.dmOnly, requestParameters.noDm, requestParameters.includeTranslations, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiGetUserPresenceStatusesRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getUserPresenceStatuses(requestParameters, options) {
return localVarFp.getUserPresenceStatuses(requestParameters.tenantId, requestParameters.urlIdWS, requestParameters.userIds, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiGetUserReactsPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getUserReactsPublic(requestParameters, options) {
return localVarFp.getUserReactsPublic(requestParameters.tenantId, requestParameters.postIds, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiLockCommentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
lockComment(requestParameters, options) {
return localVarFp.lockComment(requestParameters.tenantId, requestParameters.commentId, requestParameters.broadcastId, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiPinCommentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
pinComment(requestParameters, options) {
return localVarFp.pinComment(requestParameters.tenantId, requestParameters.commentId, requestParameters.broadcastId, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiReactFeedPostPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
reactFeedPostPublic(requestParameters, options) {
return localVarFp.reactFeedPostPublic(requestParameters.tenantId, requestParameters.postId, requestParameters.reactBodyParams, requestParameters.isUndo, requestParameters.broadcastId, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiResetUserNotificationCountRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
resetUserNotificationCount(requestParameters, options) {
return localVarFp.resetUserNotificationCount(requestParameters.tenantId, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiResetUserNotificationsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
resetUserNotifications(requestParameters, options) {
return localVarFp.resetUserNotifications(requestParameters.tenantId, requestParameters.afterId, requestParameters.afterCreatedAt, requestParameters.unreadOnly, requestParameters.dmOnly, requestParameters.noDm, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiSearchUsersRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
searchUsers(requestParameters, options) {
return localVarFp.searchUsers(requestParameters.tenantId, requestParameters.urlId, requestParameters.usernameStartsWith, requestParameters.mentionGroupIds, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiSetCommentTextRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
setCommentText(requestParameters, options) {
return localVarFp.setCommentText(requestParameters.tenantId, requestParameters.commentId, requestParameters.broadcastId, requestParameters.commentTextUpdateRequest, requestParameters.editKey, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiUnBlockCommentPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
unBlockCommentPublic(requestParameters, options) {
return localVarFp.unBlockCommentPublic(requestParameters.tenantId, requestParameters.commentId, requestParameters.publicBlockFromCommentParams, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiUnLockCommentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
unLockComment(requestParameters, options) {
return localVarFp.unLockComment(requestParameters.tenantId, requestParameters.commentId, requestParameters.broadcastId, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiUnPinCommentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
unPinComment(requestParameters, options) {
return localVarFp.unPinComment(requestParameters.tenantId, requestParameters.commentId, requestParameters.broadcastId, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiUpdateFeedPostPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateFeedPostPublic(requestParameters, options) {
return localVarFp.updateFeedPostPublic(requestParameters.tenantId, requestParameters.postId, requestParameters.updateFeedPostParams, requestParameters.broadcastId, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
* Enable or disable notifications for a specific comment.
* @param {PublicApiUpdateUserNotificationCommentSubscriptionStatusRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateUserNotificationCommentSubscriptionStatus(requestParameters, options) {
return localVarFp.updateUserNotificationCommentSubscriptionStatus(requestParameters.tenantId, requestParameters.notificationId, requestParameters.optedInOrOut, requestParameters.commentId, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
* Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also
* @param {PublicApiUpdateUserNotificationPageSubscriptionStatusRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateUserNotificationPageSubscriptionStatus(requestParameters, options) {
return localVarFp.updateUserNotificationPageSubscriptionStatus(requestParameters.tenantId, requestParameters.urlId, requestParameters.url, requestParameters.pageTitle, requestParameters.subscribedOrUnsubscribed, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiUpdateUserNotificationStatusRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateUserNotificationStatus(requestParameters, options) {
return localVarFp.updateUserNotificationStatus(requestParameters.tenantId, requestParameters.notificationId, requestParameters.newStatus, requestParameters.sso, options).then((request) => request(axios, basePath));
},
/**
* Upload and resize an image
* @param {PublicApiUploadImageRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
uploadImage(requestParameters, options) {
return localVarFp.uploadImage(requestParameters.tenantId, requestParameters.file, requestParameters.sizePreset, requestParameters.urlId, options).then((request) => request(axios, basePath));
},
/**
*
* @param {PublicApiVoteCommentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
voteComment(requestParameters, options) {
return localVarFp.voteComment(requestParameters.tenantId, requestParameters.commentId, requestParameters.urlId, requestParameters.broadcastId, requestParameters.voteBodyParams, requestParameters.sessionId, requestParameters.sso, options).then((request) => request(axios, basePath));
},
};
};
exports.PublicApiFactory = PublicApiFactory;
/**
* PublicApi - object-oriented interface
* @export
* @class PublicApi
* @extends {BaseAPI}
*/
class PublicApi extends base_1.BaseAPI {
/**
*
* @param {PublicApiBlockFromCommentPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
blockFromCommentPublic(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).blockFromCommentPublic(requestParameters.tenantId, requestParameters.commentId, requestParameters.publicBlockFromCommentParams, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiCheckedCommentsForBlockedRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
checkedCommentsForBlocked(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).checkedCommentsForBlocked(requestParameters.tenantId, requestParameters.commentIds, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiCreateCommentPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
createCommentPublic(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).createCommentPublic(requestParameters.tenantId, requestParameters.urlId, requestParameters.broadcastId, requestParameters.commentData, requestParameters.sessionId, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiCreateFeedPostPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
createFeedPostPublic(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).createFeedPostPublic(requestParameters.tenantId, requestParameters.createFeedPostParams, requestParameters.broadcastId, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiDeleteCommentPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
deleteCommentPublic(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).deleteCommentPublic(requestParameters.tenantId, requestParameters.commentId, requestParameters.broadcastId, requestParameters.editKey, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiDeleteCommentVoteRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
deleteCommentVote(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).deleteCommentVote(requestParameters.tenantId, requestParameters.commentId, requestParameters.voteId, requestParameters.urlId, requestParameters.broadcastId, requestParameters.editKey, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiDeleteFeedPostPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
deleteFeedPostPublic(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).deleteFeedPostPublic(requestParameters.tenantId, requestParameters.postId, requestParameters.broadcastId, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiFlagCommentPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
flagCommentPublic(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).flagCommentPublic(requestParameters.tenantId, requestParameters.commentId, requestParameters.isFlagged, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiGetCommentTextRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
getCommentText(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).getCommentText(requestParameters.tenantId, requestParameters.commentId, requestParameters.editKey, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiGetCommentVoteUserNamesRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
getCommentVoteUserNames(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).getCommentVoteUserNames(requestParameters.tenantId, requestParameters.commentId, requestParameters.dir, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
* req tenantId urlId
* @param {PublicApiGetCommentsPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
getCommentsPublic(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).getCommentsPublic(requestParameters.tenantId, requestParameters.urlId, requestParameters.page, requestParameters.direction, requestParameters.sso, requestParameters.skip, requestParameters.skipChildren, requestParameters.limit, requestParameters.limitChildren, requestParameters.countChildren, requestParameters.fetchPageForCommentId, requestParameters.includeConfig, requestParameters.countAll, requestParameters.includei10n, requestParameters.locale, requestParameters.modules, requestParameters.isCrawler, requestParameters.includeNotificationCount, requestParameters.asTree, requestParameters.maxTreeDepth, requestParameters.useFullTranslationIds, requestParameters.parentId, requestParameters.searchText, requestParameters.hashTags, requestParameters.userId, requestParameters.customConfigStr, requestParameters.afterCommentId, requestParameters.beforeCommentId, options).then((request) => request(this.axios, this.basePath));
}
/**
* req tenantId urlId userIdWS
* @param {PublicApiGetEventLogRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
getEventLog(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).getEventLog(requestParameters.tenantId, requestParameters.urlId, requestParameters.userIdWS, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(this.axios, this.basePath));
}
/**
* req tenantId afterId
* @param {PublicApiGetFeedPostsPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
getFeedPostsPublic(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).getFeedPostsPublic(requestParameters.tenantId, requestParameters.afterId, requestParameters.limit, requestParameters.tags, requestParameters.sso, requestParameters.isCrawler, requestParameters.includeUserInfo, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiGetFeedPostsStatsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
getFeedPostsStats(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).getFeedPostsStats(requestParameters.tenantId, requestParameters.postIds, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
* req tenantId urlId userIdWS
* @param {PublicApiGetGlobalEventLogRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
getGlobalEventLog(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).getGlobalEventLog(requestParameters.tenantId, requestParameters.urlId, requestParameters.userIdWS, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiGetUserNotificationCountRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
getUserNotificationCount(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).getUserNotificationCount(requestParameters.tenantId, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiGetUserNotificationsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
getUserNotifications(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).getUserNotifications(requestParameters.tenantId, requestParameters.pageSize, requestParameters.afterId, requestParameters.includeContext, requestParameters.afterCreatedAt, requestParameters.unreadOnly, requestParameters.dmOnly, requestParameters.noDm, requestParameters.includeTranslations, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiGetUserPresenceStatusesRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
getUserPresenceStatuses(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).getUserPresenceStatuses(requestParameters.tenantId, requestParameters.urlIdWS, requestParameters.userIds, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiGetUserReactsPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
getUserReactsPublic(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).getUserReactsPublic(requestParameters.tenantId, requestParameters.postIds, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiLockCommentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
lockComment(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).lockComment(requestParameters.tenantId, requestParameters.commentId, requestParameters.broadcastId, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiPinCommentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
pinComment(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).pinComment(requestParameters.tenantId, requestParameters.commentId, requestParameters.broadcastId, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiReactFeedPostPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
reactFeedPostPublic(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).reactFeedPostPublic(requestParameters.tenantId, requestParameters.postId, requestParameters.reactBodyParams, requestParameters.isUndo, requestParameters.broadcastId, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiResetUserNotificationCountRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
resetUserNotificationCount(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).resetUserNotificationCount(requestParameters.tenantId, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiResetUserNotificationsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
resetUserNotifications(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).resetUserNotifications(requestParameters.tenantId, requestParameters.afterId, requestParameters.afterCreatedAt, requestParameters.unreadOnly, requestParameters.dmOnly, requestParameters.noDm, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiSearchUsersRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
searchUsers(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).searchUsers(requestParameters.tenantId, requestParameters.urlId, requestParameters.usernameStartsWith, requestParameters.mentionGroupIds, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiSetCommentTextRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
setCommentText(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).setCommentText(requestParameters.tenantId, requestParameters.commentId, requestParameters.broadcastId, requestParameters.commentTextUpdateRequest, requestParameters.editKey, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiUnBlockCommentPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
unBlockCommentPublic(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).unBlockCommentPublic(requestParameters.tenantId, requestParameters.commentId, requestParameters.publicBlockFromCommentParams, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiUnLockCommentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
unLockComment(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).unLockComment(requestParameters.tenantId, requestParameters.commentId, requestParameters.broadcastId, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiUnPinCommentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
unPinComment(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).unPinComment(requestParameters.tenantId, requestParameters.commentId, requestParameters.broadcastId, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiUpdateFeedPostPublicRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
updateFeedPostPublic(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).updateFeedPostPublic(requestParameters.tenantId, requestParameters.postId, requestParameters.updateFeedPostParams, requestParameters.broadcastId, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
* Enable or disable notifications for a specific comment.
* @param {PublicApiUpdateUserNotificationCommentSubscriptionStatusRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
updateUserNotificationCommentSubscriptionStatus(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).updateUserNotificationCommentSubscriptionStatus(requestParameters.tenantId, requestParameters.notificationId, requestParameters.optedInOrOut, requestParameters.commentId, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
* Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also
* @param {PublicApiUpdateUserNotificationPageSubscriptionStatusRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
updateUserNotificationPageSubscriptionStatus(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).updateUserNotificationPageSubscriptionStatus(requestParameters.tenantId, requestParameters.urlId, requestParameters.url, requestParameters.pageTitle, requestParameters.subscribedOrUnsubscribed, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiUpdateUserNotificationStatusRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
updateUserNotificationStatus(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).updateUserNotificationStatus(requestParameters.tenantId, requestParameters.notificationId, requestParameters.newStatus, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
/**
* Upload and resize an image
* @param {PublicApiUploadImageRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
uploadImage(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).uploadImage(requestParameters.tenantId, requestParameters.file, requestParameters.sizePreset, requestParameters.urlId, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {PublicApiVoteCommentRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PublicApi
*/
voteComment(requestParameters, options) {
return (0, exports.PublicApiFp)(this.configuration).voteComment(requestParameters.tenantId, requestParameters.commentId, requestParameters.urlId, requestParameters.broadcastId, requestParameters.voteBodyParams, requestParameters.sessionId, requestParameters.sso, options).then((request) => request(this.axios, this.basePath));
}
}
exports.PublicApi = PublicApi;
/**
* @export
* @enum {string}
*/
var UpdateUserNotificationCommentSubscriptionStatusOptedInOrOutEnum;
(function (UpdateUserNotificationCommentSubscriptionStatusOptedInOrOutEnum) {
UpdateUserNotificationCommentSubscriptionStatusOptedInOrOutEnum["in"] = "in";
UpdateUserNotificationCommentSubscriptionStatusOptedInOrOutEnum["out"] = "out";
})(UpdateUserNotificationCommentSubscriptionStatusOptedInOrOutEnum || (exports.UpdateUserNotificationCommentSubscriptionStatusOptedInOrOutEnum = UpdateUserNotificationCommentSubscriptionStatusOptedInOrOutEnum = {}));
/**
* @export
* @enum {string}
*/
var UpdateUserNotificationPageSubscriptionStatusSubscribedOrUnsubscribedEnum;
(function (UpdateUserNotificationPageSubscriptionStatusSubscribedOrUnsubscribedEnum) {
UpdateUserNotificationPageSubscriptionStatusSubscribedOrUnsubscribedEnum["subscribe"] = "subscribe";
UpdateUserNotificationPageSubscriptionStatusSubscribedOrUnsubscribedEnum["unsubscribe"] = "unsubscribe";
})(UpdateUserNotificationPageSubscriptionStatusSubscribedOrUnsubscribedEnum || (exports.UpdateUserNotificationPageSubscriptionStatusSubscribedOrUnsubscribedEnum = UpdateUserNotificationPageSubscriptionStatusSubscribedOrUnsubscribedEnum = {}));
/**
* @export
* @enum {string}
*/
var UpdateUserNotificationStatusNewStatusEnum;
(function (UpdateUserNotificationStatusNewStatusEnum) {
UpdateUserNotificationStatusNewStatusEnum["read"] = "read";
UpdateUserNotificationStatusNewStatusEnum["unread"] = "unread";
})(UpdateUserNotificationStatusNewStatusEnum || (exports.UpdateUserNotificationStatusNewStatusEnum = UpdateUserNotificationStatusNewStatusEnum = {}));
//# sourceMappingURL=public-api.js.map