diff --git a/README.md b/README.md index 8f35833..6acefd0 100644 --- a/README.md +++ b/README.md @@ -42,10 +42,7 @@ This library contains the generated API client and the SSO utilities to make wor ### Public vs Secured APIs For the API client, there are three classes, `DefaultApi`, `PublicApi`, and `ModerationApi`. The `DefaultApi` contains methods that require your API key, and `PublicApi` contains -methods that can be made directly from a browser/mobile device/etc without authentication. The `ModerationApi` contains methods that power the moderator dashboard - listing, -counting, searching, exporting and pulling logs for comments, moderation actions (remove/restore, flag, set review/spam/approval status, adjust votes, reopen/close threads), -bans (ban from a comment, undo bans, pre-ban summaries, ban status and preferences, banned-user counts), and badges & trust (award/remove badges, manual badges, get/set trust -factor, user internal profile). Every `ModerationApi` method accepts an `sso` parameter so the call is performed on behalf of an SSO-authenticated moderator. +methods that can be made directly from a browser/mobile device/etc without authentication. The `ModerationApi` provides an extensive suite of live and fast moderation APIs. Every `ModerationApi` method accepts an `sso` parameter and can authenticate via SSO or a FastComments.com session cookie. ## Quick Start @@ -126,14 +123,10 @@ int main() { // Pass the moderator's SSO token to authenticate the call auto ssoToken = utility::conversions::to_string_t("YOUR_MODERATOR_SSO_TOKEN"); - auto response = moderationApi.getCount( - boost::none, // textSearch - boost::none, // byIPFromComment - boost::none, // filter - boost::none, // searchFilters - boost::none, // demo - ssoToken // sso - ).get(); + org::openapitools::client::api::GetCountOptions options; + options.sso = ssoToken; + + auto response = moderationApi.getCount(options).get(); return 0; } @@ -162,23 +155,14 @@ config->setApiKey(utility::conversions::to_string_t("api_key"), auto apiClient = std::make_shared(config); org::openapitools::client::api::DefaultApi api(apiClient); +// Required parameters are positional; optional ones go in the options struct +org::openapitools::client::api::GetCommentsOptions options; +options.urlId = utility::conversions::to_string_t("your-url-id"); + // Call .get() to block and get the result synchronously auto response = api.getComments( utility::conversions::to_string_t("your-tenant-id"), - boost::none, // page - boost::none, // limit - boost::none, // skip - boost::none, // asTree - boost::none, // skipChildren - boost::none, // limitChildren - boost::none, // maxTreeDepth - utility::conversions::to_string_t("your-url-id"), // urlId - boost::none, // userId - boost::none, // anonUserId - boost::none, // contextUserId - boost::none, // hashTag - boost::none, // parentId - boost::none // direction + options ).get(); // Blocks until the HTTP request completes if (response && response->comments) { @@ -199,13 +183,14 @@ config->setApiKey(utility::conversions::to_string_t("api_key"), auto apiClient = std::make_shared(config); org::openapitools::client::api::DefaultApi api(apiClient); +// Required parameters are positional; optional ones go in the options struct +org::openapitools::client::api::GetCommentsOptions options; +options.urlId = utility::conversions::to_string_t("your-url-id"); + // Use .then() for asynchronous callback-based execution api.getComments( utility::conversions::to_string_t("your-tenant-id"), - boost::none, boost::none, boost::none, boost::none, boost::none, - boost::none, boost::none, - utility::conversions::to_string_t("your-url-id"), - boost::none, boost::none, boost::none, boost::none, boost::none, boost::none + options ).then([](std::shared_ptr response) { // This runs asynchronously when the request completes if (response && response->comments) { diff --git a/client/README.md b/client/README.md index 126c2f7..d98663b 100644 --- a/client/README.md +++ b/client/README.md @@ -6,7 +6,7 @@ No description provided (generated by Openapi Generator https://github.com/opena This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI spec](https://openapis.org) from a remote server, you can easily generate an API client. - API version: 0.0.0 -- Package version: 2.0.1 +- Package version: 3.0.0 - Generator version: 7.23.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.CppRestSdkClientCodegen diff --git a/client/include/FastCommentsClient/api/DefaultApi.h b/client/include/FastCommentsClient/api/DefaultApi.h index a2d41a8..375840c 100644 --- a/client/include/FastCommentsClient/api/DefaultApi.h +++ b/client/include/FastCommentsClient/api/DefaultApi.h @@ -167,6 +167,216 @@ namespace api { using namespace org::openapitools::client::model; +struct AggregateOptions +{ + boost::optional parentTenantId; + boost::optional includeStats; +}; +struct AggregateQuestionResultsOptions +{ + boost::optional questionId; + boost::optional> questionIds; + boost::optional urlId; + boost::optional> timeBucket; + boost::optional startDate; + boost::optional forceRecalculate; +}; +struct BlockUserFromCommentOptions +{ + boost::optional userId; + boost::optional anonUserId; +}; +struct CombineCommentsWithQuestionResultsOptions +{ + boost::optional questionId; + boost::optional> questionIds; + boost::optional urlId; + boost::optional startDate; + boost::optional forceRecalculate; + boost::optional minValue; + boost::optional maxValue; + boost::optional limit; +}; +struct CreateFeedPostOptions +{ + boost::optional broadcastId; + boost::optional isLive; + boost::optional doSpamCheck; + boost::optional skipDupCheck; +}; +struct CreateVoteOptions +{ + boost::optional userId; + boost::optional anonUserId; +}; +struct DeleteCommentOptions +{ + boost::optional contextUserId; + boost::optional isLive; +}; +struct DeleteSSOUserOptions +{ + boost::optional deleteComments; + boost::optional commentDeleteMode; +}; +struct DeleteTenantUserOptions +{ + boost::optional deleteComments; + boost::optional commentDeleteMode; +}; +struct FlagCommentOptions +{ + boost::optional userId; + boost::optional anonUserId; +}; +struct GetAuditLogsOptions +{ + boost::optional limit; + boost::optional skip; + boost::optional> order; + boost::optional after; + boost::optional before; +}; +struct GetCommentsOptions +{ + boost::optional page; + boost::optional limit; + boost::optional skip; + boost::optional asTree; + boost::optional skipChildren; + boost::optional limitChildren; + boost::optional maxTreeDepth; + boost::optional urlId; + boost::optional userId; + boost::optional anonUserId; + boost::optional contextUserId; + boost::optional hashTag; + boost::optional parentId; + boost::optional> direction; + boost::optional fromDate; + boost::optional toDate; +}; +struct GetFeedPostsOptions +{ + boost::optional afterId; + boost::optional limit; + boost::optional> tags; +}; +struct GetNotificationCountOptions +{ + boost::optional userId; + boost::optional urlId; + boost::optional fromCommentId; + boost::optional viewed; + boost::optional type; +}; +struct GetNotificationsOptions +{ + boost::optional userId; + boost::optional urlId; + boost::optional fromCommentId; + boost::optional viewed; + boost::optional type; + boost::optional skip; +}; +struct GetPendingWebhookEventCountOptions +{ + boost::optional commentId; + boost::optional externalId; + boost::optional eventType; + boost::optional type; + boost::optional domain; + boost::optional attemptCountGT; +}; +struct GetPendingWebhookEventsOptions +{ + boost::optional commentId; + boost::optional externalId; + boost::optional eventType; + boost::optional type; + boost::optional domain; + boost::optional attemptCountGT; + boost::optional skip; +}; +struct GetQuestionResultsOptions +{ + boost::optional urlId; + boost::optional userId; + boost::optional startDate; + boost::optional questionId; + boost::optional questionIds; + boost::optional skip; +}; +struct GetTenantDailyUsagesOptions +{ + boost::optional yearNumber; + boost::optional monthNumber; + boost::optional dayNumber; + boost::optional skip; +}; +struct GetTenantsOptions +{ + boost::optional meta; + boost::optional skip; +}; +struct GetTicketsOptions +{ + boost::optional userId; + boost::optional state; + boost::optional skip; + boost::optional limit; +}; +struct GetUserBadgeProgressListOptions +{ + boost::optional userId; + boost::optional limit; + boost::optional skip; +}; +struct GetUserBadgesOptions +{ + boost::optional userId; + boost::optional badgeId; + boost::optional type; + boost::optional displayedOnComments; + boost::optional limit; + boost::optional skip; +}; +struct GetVotesForUserOptions +{ + boost::optional userId; + boost::optional anonUserId; +}; +struct SaveCommentOptions +{ + boost::optional isLive; + boost::optional doSpamCheck; + boost::optional sendEmails; + boost::optional populateNotifications; +}; +struct SaveCommentsBulkOptions +{ + boost::optional isLive; + boost::optional doSpamCheck; + boost::optional sendEmails; + boost::optional populateNotifications; +}; +struct UnBlockUserFromCommentOptions +{ + boost::optional userId; + boost::optional anonUserId; +}; +struct UnFlagCommentOptions +{ + boost::optional userId; + boost::optional anonUserId; +}; +struct UpdateCommentOptions +{ + boost::optional contextUserId; + boost::optional doSpamCheck; + boost::optional isLive; +}; + class DefaultApi @@ -188,6 +398,7 @@ class DefaultApi pplx::task> addDomainConfig( utility::string_t tenantId, std::shared_ptr addDomainConfigParams + ) const; /// /// @@ -195,11 +406,12 @@ class DefaultApi /// /// /// - /// (optional, default to utility::conversions::to_string_t("")) + /// /// (optional) pplx::task> addHashTag( - boost::optional tenantId, - boost::optional> createHashTagBody + utility::string_t tenantId, + std::shared_ptr createHashTagBody + ) const; /// /// @@ -207,11 +419,12 @@ class DefaultApi /// /// /// - /// (optional, default to utility::conversions::to_string_t("")) + /// /// (optional) pplx::task> addHashTagsBulk( - boost::optional tenantId, - boost::optional> bulkCreateHashTagsBody + utility::string_t tenantId, + std::shared_ptr bulkCreateHashTagsBody + ) const; /// /// @@ -224,6 +437,7 @@ class DefaultApi pplx::task> addPage( utility::string_t tenantId, std::shared_ptr createAPIPageData + ) const; /// /// @@ -236,6 +450,7 @@ class DefaultApi pplx::task> addSSOUser( utility::string_t tenantId, std::shared_ptr createAPISSOUserData + ) const; /// /// @@ -249,9 +464,9 @@ class DefaultApi /// (optional, default to false) pplx::task> aggregate( utility::string_t tenantId, - std::shared_ptr aggregationRequest, - boost::optional parentTenantId, - boost::optional includeStats + std::shared_ptr aggregationRequest + + , const AggregateOptions& options = {} ) const; /// /// @@ -267,13 +482,9 @@ class DefaultApi /// (optional, default to utility::datetime()) /// (optional, default to false) pplx::task> aggregateQuestionResults( - utility::string_t tenantId, - boost::optional questionId, - boost::optional> questionIds, - boost::optional urlId, - boost::optional> timeBucket, - boost::optional startDate, - boost::optional forceRecalculate + utility::string_t tenantId + + , const AggregateQuestionResultsOptions& options = {} ) const; /// /// @@ -289,9 +500,9 @@ class DefaultApi pplx::task> blockUserFromComment( utility::string_t tenantId, utility::string_t id, - std::shared_ptr blockFromCommentParams, - boost::optional userId, - boost::optional anonUserId + std::shared_ptr blockFromCommentParams + + , const BlockUserFromCommentOptions& options = {} ) const; /// /// @@ -304,8 +515,8 @@ class DefaultApi /// (optional, default to false) pplx::task> bulkAggregateQuestionResults( utility::string_t tenantId, - std::shared_ptr bulkAggregateQuestionResultsRequest, - boost::optional forceRecalculate + std::shared_ptr bulkAggregateQuestionResultsRequest + , boost::optional forceRecalculate = boost::none ) const; /// /// @@ -322,6 +533,7 @@ class DefaultApi utility::string_t userId, utility::string_t id, std::shared_ptr changeTicketStateBody + ) const; /// /// @@ -339,15 +551,9 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) pplx::task> combineCommentsWithQuestionResults( - utility::string_t tenantId, - boost::optional questionId, - boost::optional> questionIds, - boost::optional urlId, - boost::optional startDate, - boost::optional forceRecalculate, - boost::optional minValue, - boost::optional maxValue, - boost::optional limit + utility::string_t tenantId + + , const CombineCommentsWithQuestionResultsOptions& options = {} ) const; /// /// @@ -360,6 +566,7 @@ class DefaultApi pplx::task> createEmailTemplate( utility::string_t tenantId, std::shared_ptr createEmailTemplateBody + ) const; /// /// @@ -375,11 +582,9 @@ class DefaultApi /// (optional, default to false) pplx::task> createFeedPost( utility::string_t tenantId, - std::shared_ptr createFeedPostParams, - boost::optional broadcastId, - boost::optional isLive, - boost::optional doSpamCheck, - boost::optional skipDupCheck + std::shared_ptr createFeedPostParams + + , const CreateFeedPostOptions& options = {} ) const; /// /// @@ -392,6 +597,7 @@ class DefaultApi pplx::task> createModerator( utility::string_t tenantId, std::shared_ptr createModeratorBody + ) const; /// /// @@ -404,6 +610,7 @@ class DefaultApi pplx::task> createQuestionConfig( utility::string_t tenantId, std::shared_ptr createQuestionConfigBody + ) const; /// /// @@ -416,6 +623,7 @@ class DefaultApi pplx::task> createQuestionResult( utility::string_t tenantId, std::shared_ptr createQuestionResultBody + ) const; /// /// @@ -428,6 +636,7 @@ class DefaultApi pplx::task> createSubscription( utility::string_t tenantId, std::shared_ptr createAPIUserSubscriptionData + ) const; /// /// @@ -440,6 +649,7 @@ class DefaultApi pplx::task> createTenant( utility::string_t tenantId, std::shared_ptr createTenantBody + ) const; /// /// @@ -452,6 +662,7 @@ class DefaultApi pplx::task> createTenantPackage( utility::string_t tenantId, std::shared_ptr createTenantPackageBody + ) const; /// /// @@ -464,6 +675,7 @@ class DefaultApi pplx::task> createTenantUser( utility::string_t tenantId, std::shared_ptr createTenantUserBody + ) const; /// /// @@ -478,6 +690,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t userId, std::shared_ptr createTicketBody + ) const; /// /// @@ -490,6 +703,7 @@ class DefaultApi pplx::task> createUserBadge( utility::string_t tenantId, std::shared_ptr createUserBadgeParams + ) const; /// /// @@ -505,9 +719,9 @@ class DefaultApi pplx::task> createVote( utility::string_t tenantId, utility::string_t commentId, - utility::string_t direction, - boost::optional userId, - boost::optional anonUserId + utility::string_t direction + + , const CreateVoteOptions& options = {} ) const; /// /// @@ -521,9 +735,9 @@ class DefaultApi /// (optional, default to false) pplx::task> deleteComment( utility::string_t tenantId, - utility::string_t id, - boost::optional contextUserId, - boost::optional isLive + utility::string_t id + + , const DeleteCommentOptions& options = {} ) const; /// /// @@ -536,6 +750,7 @@ class DefaultApi pplx::task> deleteDomainConfig( utility::string_t tenantId, utility::string_t domain + ) const; /// /// @@ -548,6 +763,7 @@ class DefaultApi pplx::task> deleteEmailTemplate( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -562,6 +778,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, utility::string_t errorId + ) const; /// /// @@ -569,13 +786,14 @@ class DefaultApi /// /// /// + /// /// - /// (optional, default to utility::conversions::to_string_t("")) /// (optional) pplx::task> deleteHashTag( + utility::string_t tenantId, utility::string_t tag, - boost::optional tenantId, - boost::optional> deleteHashTagRequestBody + std::shared_ptr deleteHashTagRequestBody + ) const; /// /// @@ -588,8 +806,8 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> deleteModerator( utility::string_t tenantId, - utility::string_t id, - boost::optional sendEmail + utility::string_t id + , boost::optional sendEmail = boost::none ) const; /// /// @@ -602,6 +820,7 @@ class DefaultApi pplx::task> deleteNotificationCount( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -614,6 +833,7 @@ class DefaultApi pplx::task> deletePage( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -626,6 +846,7 @@ class DefaultApi pplx::task> deletePendingWebhookEvent( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -638,6 +859,7 @@ class DefaultApi pplx::task> deleteQuestionConfig( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -650,6 +872,7 @@ class DefaultApi pplx::task> deleteQuestionResult( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -663,9 +886,9 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> deleteSSOUser( utility::string_t tenantId, - utility::string_t id, - boost::optional deleteComments, - boost::optional commentDeleteMode + utility::string_t id + + , const DeleteSSOUserOptions& options = {} ) const; /// /// @@ -678,8 +901,8 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> deleteSubscription( utility::string_t tenantId, - utility::string_t id, - boost::optional userId + utility::string_t id + , boost::optional userId = boost::none ) const; /// /// @@ -692,8 +915,8 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> deleteTenant( utility::string_t tenantId, - utility::string_t id, - boost::optional sure + utility::string_t id + , boost::optional sure = boost::none ) const; /// /// @@ -706,6 +929,7 @@ class DefaultApi pplx::task> deleteTenantPackage( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -719,9 +943,9 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> deleteTenantUser( utility::string_t tenantId, - utility::string_t id, - boost::optional deleteComments, - boost::optional commentDeleteMode + utility::string_t id + + , const DeleteTenantUserOptions& options = {} ) const; /// /// @@ -734,6 +958,7 @@ class DefaultApi pplx::task> deleteUserBadge( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -746,8 +971,8 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> deleteVote( utility::string_t tenantId, - utility::string_t id, - boost::optional editKey + utility::string_t id + , boost::optional editKey = boost::none ) const; /// /// @@ -761,9 +986,9 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> flagComment( utility::string_t tenantId, - utility::string_t id, - boost::optional userId, - boost::optional anonUserId + utility::string_t id + + , const FlagCommentOptions& options = {} ) const; /// /// @@ -778,12 +1003,9 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) pplx::task> getAuditLogs( - utility::string_t tenantId, - boost::optional limit, - boost::optional skip, - boost::optional> order, - boost::optional after, - boost::optional before + utility::string_t tenantId + + , const GetAuditLogsOptions& options = {} ) const; /// /// @@ -796,6 +1018,7 @@ class DefaultApi pplx::task> getCachedNotificationCount( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -808,6 +1031,7 @@ class DefaultApi pplx::task> getComment( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -833,23 +1057,9 @@ class DefaultApi /// (optional, default to 0L) /// (optional, default to 0L) pplx::task> getComments( - utility::string_t tenantId, - boost::optional page, - boost::optional limit, - boost::optional skip, - boost::optional asTree, - boost::optional skipChildren, - boost::optional limitChildren, - boost::optional maxTreeDepth, - boost::optional urlId, - boost::optional userId, - boost::optional anonUserId, - boost::optional contextUserId, - boost::optional hashTag, - boost::optional parentId, - boost::optional> direction, - boost::optional fromDate, - boost::optional toDate + utility::string_t tenantId + + , const GetCommentsOptions& options = {} ) const; /// /// @@ -862,6 +1072,7 @@ class DefaultApi pplx::task> getDomainConfig( utility::string_t tenantId, utility::string_t domain + ) const; /// /// @@ -872,6 +1083,7 @@ class DefaultApi /// pplx::task> getDomainConfigs( utility::string_t tenantId + ) const; /// /// @@ -884,6 +1096,7 @@ class DefaultApi pplx::task> getEmailTemplate( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -894,6 +1107,7 @@ class DefaultApi /// pplx::task> getEmailTemplateDefinitions( utility::string_t tenantId + ) const; /// /// @@ -906,8 +1120,8 @@ class DefaultApi /// (optional, default to 0.0) pplx::task> getEmailTemplateRenderErrors( utility::string_t tenantId, - utility::string_t id, - boost::optional skip + utility::string_t id + , boost::optional skip = boost::none ) const; /// /// @@ -918,8 +1132,8 @@ class DefaultApi /// /// (optional, default to 0.0) pplx::task> getEmailTemplates( - utility::string_t tenantId, - boost::optional skip + utility::string_t tenantId + , boost::optional skip = boost::none ) const; /// /// @@ -932,10 +1146,9 @@ class DefaultApi /// (optional, default to 0) /// (optional, default to std::vector<std::shared_ptr<utility::string_t>>()) pplx::task> getFeedPosts( - utility::string_t tenantId, - boost::optional afterId, - boost::optional limit, - boost::optional> tags + utility::string_t tenantId + + , const GetFeedPostsOptions& options = {} ) const; /// /// @@ -946,8 +1159,8 @@ class DefaultApi /// /// (optional, default to 0.0) pplx::task> getHashTags( - utility::string_t tenantId, - boost::optional page + utility::string_t tenantId + , boost::optional page = boost::none ) const; /// /// @@ -960,6 +1173,7 @@ class DefaultApi pplx::task> getModerator( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -970,8 +1184,8 @@ class DefaultApi /// /// (optional, default to 0.0) pplx::task> getModerators( - utility::string_t tenantId, - boost::optional skip + utility::string_t tenantId + , boost::optional skip = boost::none ) const; /// /// @@ -986,12 +1200,9 @@ class DefaultApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getNotificationCount( - utility::string_t tenantId, - boost::optional userId, - boost::optional urlId, - boost::optional fromCommentId, - boost::optional viewed, - boost::optional type + utility::string_t tenantId + + , const GetNotificationCountOptions& options = {} ) const; /// /// @@ -1007,13 +1218,9 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) pplx::task> getNotifications( - utility::string_t tenantId, - boost::optional userId, - boost::optional urlId, - boost::optional fromCommentId, - boost::optional viewed, - boost::optional type, - boost::optional skip + utility::string_t tenantId + + , const GetNotificationsOptions& options = {} ) const; /// /// @@ -1026,6 +1233,7 @@ class DefaultApi pplx::task> getPageByURLId( utility::string_t tenantId, utility::string_t urlId + ) const; /// /// @@ -1036,6 +1244,7 @@ class DefaultApi /// pplx::task> getPages( utility::string_t tenantId + ) const; /// /// @@ -1051,13 +1260,9 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) pplx::task> getPendingWebhookEventCount( - utility::string_t tenantId, - boost::optional commentId, - boost::optional externalId, - boost::optional eventType, - boost::optional type, - boost::optional domain, - boost::optional attemptCountGT + utility::string_t tenantId + + , const GetPendingWebhookEventCountOptions& options = {} ) const; /// /// @@ -1074,14 +1279,9 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) pplx::task> getPendingWebhookEvents( - utility::string_t tenantId, - boost::optional commentId, - boost::optional externalId, - boost::optional eventType, - boost::optional type, - boost::optional domain, - boost::optional attemptCountGT, - boost::optional skip + utility::string_t tenantId + + , const GetPendingWebhookEventsOptions& options = {} ) const; /// /// @@ -1094,6 +1294,7 @@ class DefaultApi pplx::task> getQuestionConfig( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1104,8 +1305,8 @@ class DefaultApi /// /// (optional, default to 0.0) pplx::task> getQuestionConfigs( - utility::string_t tenantId, - boost::optional skip + utility::string_t tenantId + , boost::optional skip = boost::none ) const; /// /// @@ -1118,6 +1319,7 @@ class DefaultApi pplx::task> getQuestionResult( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1133,13 +1335,9 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) pplx::task> getQuestionResults( - utility::string_t tenantId, - boost::optional urlId, - boost::optional userId, - boost::optional startDate, - boost::optional questionId, - boost::optional questionIds, - boost::optional skip + utility::string_t tenantId + + , const GetQuestionResultsOptions& options = {} ) const; /// /// @@ -1152,6 +1350,7 @@ class DefaultApi pplx::task> getSSOUserByEmail( utility::string_t tenantId, utility::string_t email + ) const; /// /// @@ -1164,6 +1363,7 @@ class DefaultApi pplx::task> getSSOUserById( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1174,8 +1374,8 @@ class DefaultApi /// /// (optional, default to 0) pplx::task> getSSOUsers( - utility::string_t tenantId, - boost::optional skip + utility::string_t tenantId + , boost::optional skip = boost::none ) const; /// /// @@ -1186,8 +1386,8 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getSubscriptions( - utility::string_t tenantId, - boost::optional userId + utility::string_t tenantId + , boost::optional userId = boost::none ) const; /// /// @@ -1200,6 +1400,7 @@ class DefaultApi pplx::task> getTenant( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1213,11 +1414,9 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) pplx::task> getTenantDailyUsages( - utility::string_t tenantId, - boost::optional yearNumber, - boost::optional monthNumber, - boost::optional dayNumber, - boost::optional skip + utility::string_t tenantId + + , const GetTenantDailyUsagesOptions& options = {} ) const; /// /// @@ -1230,6 +1429,7 @@ class DefaultApi pplx::task> getTenantPackage( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1240,8 +1440,8 @@ class DefaultApi /// /// (optional, default to 0.0) pplx::task> getTenantPackages( - utility::string_t tenantId, - boost::optional skip + utility::string_t tenantId + , boost::optional skip = boost::none ) const; /// /// @@ -1254,6 +1454,7 @@ class DefaultApi pplx::task> getTenantUser( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1264,8 +1465,8 @@ class DefaultApi /// /// (optional, default to 0.0) pplx::task> getTenantUsers( - utility::string_t tenantId, - boost::optional skip + utility::string_t tenantId + , boost::optional skip = boost::none ) const; /// /// @@ -1277,9 +1478,9 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) pplx::task> getTenants( - utility::string_t tenantId, - boost::optional meta, - boost::optional skip + utility::string_t tenantId + + , const GetTenantsOptions& options = {} ) const; /// /// @@ -1292,8 +1493,8 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getTicket( utility::string_t tenantId, - utility::string_t id, - boost::optional userId + utility::string_t id + , boost::optional userId = boost::none ) const; /// /// @@ -1307,11 +1508,9 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) pplx::task> getTickets( - utility::string_t tenantId, - boost::optional userId, - boost::optional state, - boost::optional skip, - boost::optional limit + utility::string_t tenantId + + , const GetTicketsOptions& options = {} ) const; /// /// @@ -1324,6 +1523,7 @@ class DefaultApi pplx::task> getUser( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1336,6 +1536,7 @@ class DefaultApi pplx::task> getUserBadge( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1348,6 +1549,7 @@ class DefaultApi pplx::task> getUserBadgeProgressById( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1360,6 +1562,7 @@ class DefaultApi pplx::task> getUserBadgeProgressByUserId( utility::string_t tenantId, utility::string_t userId + ) const; /// /// @@ -1372,10 +1575,9 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) pplx::task> getUserBadgeProgressList( - utility::string_t tenantId, - boost::optional userId, - boost::optional limit, - boost::optional skip + utility::string_t tenantId + + , const GetUserBadgeProgressListOptions& options = {} ) const; /// /// @@ -1391,13 +1593,9 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) pplx::task> getUserBadges( - utility::string_t tenantId, - boost::optional userId, - boost::optional badgeId, - boost::optional type, - boost::optional displayedOnComments, - boost::optional limit, - boost::optional skip + utility::string_t tenantId + + , const GetUserBadgesOptions& options = {} ) const; /// /// @@ -1410,6 +1608,7 @@ class DefaultApi pplx::task> getVotes( utility::string_t tenantId, utility::string_t urlId + ) const; /// /// @@ -1423,9 +1622,9 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getVotesForUser( utility::string_t tenantId, - utility::string_t urlId, - boost::optional userId, - boost::optional anonUserId + utility::string_t urlId + + , const GetVotesForUserOptions& options = {} ) const; /// /// @@ -1440,6 +1639,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t domainToUpdate, std::shared_ptr patchDomainConfigParams + ) const; /// /// @@ -1447,13 +1647,14 @@ class DefaultApi /// /// /// + /// /// - /// (optional, default to utility::conversions::to_string_t("")) /// (optional) pplx::task> patchHashTag( + utility::string_t tenantId, utility::string_t tag, - boost::optional tenantId, - boost::optional> updateHashTagBody + std::shared_ptr updateHashTagBody + ) const; /// /// @@ -1468,6 +1669,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateAPIPageData + ) const; /// /// @@ -1482,8 +1684,8 @@ class DefaultApi pplx::task> patchSSOUser( utility::string_t tenantId, utility::string_t id, - std::shared_ptr updateAPISSOUserData, - boost::optional updateComments + std::shared_ptr updateAPISSOUserData + , boost::optional updateComments = boost::none ) const; /// /// @@ -1498,6 +1700,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t domainToUpdate, std::shared_ptr updateDomainConfigParams + ) const; /// /// @@ -1512,8 +1715,8 @@ class DefaultApi pplx::task> putSSOUser( utility::string_t tenantId, utility::string_t id, - std::shared_ptr updateAPISSOUserData, - boost::optional updateComments + std::shared_ptr updateAPISSOUserData + , boost::optional updateComments = boost::none ) const; /// /// @@ -1526,8 +1729,8 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> renderEmailTemplate( utility::string_t tenantId, - std::shared_ptr renderEmailTemplateBody, - boost::optional locale + std::shared_ptr renderEmailTemplateBody + , boost::optional locale = boost::none ) const; /// /// @@ -1542,6 +1745,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantPackageBody + ) const; /// /// @@ -1556,8 +1760,8 @@ class DefaultApi pplx::task> replaceTenantUser( utility::string_t tenantId, utility::string_t id, - std::shared_ptr replaceTenantUserBody, - boost::optional updateComments + std::shared_ptr replaceTenantUserBody + , boost::optional updateComments = boost::none ) const; /// /// @@ -1573,11 +1777,9 @@ class DefaultApi /// (optional, default to false) pplx::task> saveComment( utility::string_t tenantId, - std::shared_ptr createCommentParams, - boost::optional isLive, - boost::optional doSpamCheck, - boost::optional sendEmails, - boost::optional populateNotifications + std::shared_ptr createCommentParams + + , const SaveCommentOptions& options = {} ) const; /// /// @@ -1593,11 +1795,9 @@ class DefaultApi /// (optional, default to false) pplx::task>> saveCommentsBulk( utility::string_t tenantId, - std::vector> createCommentParams, - boost::optional isLive, - boost::optional doSpamCheck, - boost::optional sendEmails, - boost::optional populateNotifications + std::vector> createCommentParams + + , const SaveCommentsBulkOptions& options = {} ) const; /// /// @@ -1612,6 +1812,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, utility::string_t fromName + ) const; /// /// @@ -1624,8 +1825,8 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> sendLoginLink( utility::string_t tenantId, - utility::string_t id, - boost::optional redirectURL + utility::string_t id + , boost::optional redirectURL = boost::none ) const; /// /// @@ -1641,9 +1842,9 @@ class DefaultApi pplx::task> unBlockUserFromComment( utility::string_t tenantId, utility::string_t id, - std::shared_ptr unBlockFromCommentParams, - boost::optional userId, - boost::optional anonUserId + std::shared_ptr unBlockFromCommentParams + + , const UnBlockUserFromCommentOptions& options = {} ) const; /// /// @@ -1657,9 +1858,9 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> unFlagComment( utility::string_t tenantId, - utility::string_t id, - boost::optional userId, - boost::optional anonUserId + utility::string_t id + + , const UnFlagCommentOptions& options = {} ) const; /// /// @@ -1676,10 +1877,9 @@ class DefaultApi pplx::task> updateComment( utility::string_t tenantId, utility::string_t id, - std::shared_ptr updatableCommentParams, - boost::optional contextUserId, - boost::optional doSpamCheck, - boost::optional isLive + std::shared_ptr updatableCommentParams + + , const UpdateCommentOptions& options = {} ) const; /// /// @@ -1694,6 +1894,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateEmailTemplateBody + ) const; /// /// @@ -1708,6 +1909,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr feedPost + ) const; /// /// @@ -1722,6 +1924,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateModeratorBody + ) const; /// /// @@ -1736,8 +1939,8 @@ class DefaultApi pplx::task> updateNotification( utility::string_t tenantId, utility::string_t id, - std::shared_ptr updateNotificationBody, - boost::optional userId + std::shared_ptr updateNotificationBody + , boost::optional userId = boost::none ) const; /// /// @@ -1752,6 +1955,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionConfigBody + ) const; /// /// @@ -1766,6 +1970,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionResultBody + ) const; /// /// @@ -1780,8 +1985,8 @@ class DefaultApi pplx::task> updateSubscription( utility::string_t tenantId, utility::string_t id, - std::shared_ptr updateAPIUserSubscriptionData, - boost::optional userId + std::shared_ptr updateAPIUserSubscriptionData + , boost::optional userId = boost::none ) const; /// /// @@ -1796,6 +2001,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantBody + ) const; /// /// @@ -1810,6 +2016,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantPackageBody + ) const; /// /// @@ -1824,8 +2031,8 @@ class DefaultApi pplx::task> updateTenantUser( utility::string_t tenantId, utility::string_t id, - std::shared_ptr updateTenantUserBody, - boost::optional updateComments + std::shared_ptr updateTenantUserBody + , boost::optional updateComments = boost::none ) const; /// /// @@ -1840,6 +2047,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateUserBadgeParams + ) const; protected: diff --git a/client/include/FastCommentsClient/api/ModerationApi.h b/client/include/FastCommentsClient/api/ModerationApi.h index 6df1ae7..53c4b59 100644 --- a/client/include/FastCommentsClient/api/ModerationApi.h +++ b/client/include/FastCommentsClient/api/ModerationApi.h @@ -54,7 +54,7 @@ #include "FastCommentsClient/model/ModerationSiteSearchResponse.h" #include "FastCommentsClient/model/ModerationSuggestResponse.h" #include "FastCommentsClient/model/ModerationUserSearchResponse.h" -#include "FastCommentsClient/model/PostRemoveCommentResponse.h" +#include "FastCommentsClient/model/PostRemoveCommentApiResponse.h" #include "FastCommentsClient/model/PreBanSummary.h" #include "FastCommentsClient/model/RemoveUserBadgeResponse.h" #include "FastCommentsClient/model/SetCommentApprovedResponse.h" @@ -73,6 +73,207 @@ namespace api { using namespace org::openapitools::client::model; +struct DeleteModerationVoteOptions +{ + boost::optional broadcastId; + boost::optional sso; +}; +struct GetApiCommentsOptions +{ + boost::optional page; + boost::optional count; + boost::optional textSearch; + boost::optional byIPFromComment; + boost::optional filters; + boost::optional searchFilters; + boost::optional sorts; + boost::optional demo; + boost::optional sso; +}; +struct GetApiExportStatusOptions +{ + boost::optional batchJobId; + boost::optional sso; +}; +struct GetApiIdsOptions +{ + boost::optional textSearch; + boost::optional byIPFromComment; + boost::optional filters; + boost::optional searchFilters; + boost::optional afterId; + boost::optional demo; + boost::optional sso; +}; +struct GetCountOptions +{ + boost::optional textSearch; + boost::optional byIPFromComment; + boost::optional filter; + boost::optional searchFilters; + boost::optional demo; + boost::optional sso; +}; +struct GetManualBadgesForUserOptions +{ + boost::optional badgesUserId; + boost::optional commentId; + boost::optional sso; +}; +struct GetModerationCommentOptions +{ + boost::optional includeEmail; + boost::optional includeIP; + boost::optional sso; +}; +struct GetPreBanSummaryOptions +{ + boost::optional includeByUserIdAndEmail; + boost::optional includeByIP; + boost::optional includeByEmailDomain; + boost::optional sso; +}; +struct GetSearchCommentsSummaryOptions +{ + boost::optional value; + boost::optional filters; + boost::optional searchFilters; + boost::optional sso; +}; +struct GetSearchPagesOptions +{ + boost::optional value; + boost::optional sso; +}; +struct GetSearchSitesOptions +{ + boost::optional value; + boost::optional sso; +}; +struct GetSearchSuggestOptions +{ + boost::optional textSearch; + boost::optional sso; +}; +struct GetSearchUsersOptions +{ + boost::optional value; + boost::optional sso; +}; +struct GetTrustFactorOptions +{ + boost::optional userId; + boost::optional sso; +}; +struct GetUserInternalProfileOptions +{ + boost::optional commentId; + boost::optional sso; +}; +struct PostAdjustCommentVotesOptions +{ + boost::optional broadcastId; + boost::optional sso; +}; +struct PostApiExportOptions +{ + boost::optional textSearch; + boost::optional byIPFromComment; + boost::optional filters; + boost::optional searchFilters; + boost::optional sorts; + boost::optional sso; +}; +struct PostBanUserFromCommentOptions +{ + boost::optional banEmail; + boost::optional banEmailDomain; + boost::optional banIP; + boost::optional deleteAllUsersComments; + boost::optional bannedUntil; + boost::optional isShadowBan; + boost::optional updateId; + boost::optional banReason; + boost::optional sso; +}; +struct PostBulkPreBanSummaryOptions +{ + boost::optional includeByUserIdAndEmail; + boost::optional includeByIP; + boost::optional includeByEmailDomain; + boost::optional sso; +}; +struct PostFlagCommentOptions +{ + boost::optional broadcastId; + boost::optional sso; +}; +struct PostRemoveCommentOptions +{ + boost::optional broadcastId; + boost::optional sso; +}; +struct PostRestoreDeletedCommentOptions +{ + boost::optional broadcastId; + boost::optional sso; +}; +struct PostSetCommentApprovalStatusOptions +{ + boost::optional approved; + boost::optional broadcastId; + boost::optional sso; +}; +struct PostSetCommentReviewStatusOptions +{ + boost::optional reviewed; + boost::optional broadcastId; + boost::optional sso; +}; +struct PostSetCommentSpamStatusOptions +{ + boost::optional spam; + boost::optional permNotSpam; + boost::optional broadcastId; + boost::optional sso; +}; +struct PostSetCommentTextOptions +{ + boost::optional broadcastId; + boost::optional sso; +}; +struct PostUnFlagCommentOptions +{ + boost::optional broadcastId; + boost::optional sso; +}; +struct PostVoteOptions +{ + boost::optional direction; + boost::optional broadcastId; + boost::optional sso; +}; +struct PutAwardBadgeOptions +{ + boost::optional userId; + boost::optional commentId; + boost::optional broadcastId; + boost::optional sso; +}; +struct PutRemoveBadgeOptions +{ + boost::optional userId; + boost::optional commentId; + boost::optional broadcastId; + boost::optional sso; +}; +struct SetTrustFactorOptions +{ + boost::optional userId; + boost::optional trustFactor; + boost::optional sso; +}; + class ModerationApi @@ -89,17 +290,17 @@ class ModerationApi /// /// /// + /// /// /// /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> deleteModerationVote( + utility::string_t tenantId, utility::string_t commentId, - utility::string_t voteId, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + utility::string_t voteId + + , const DeleteModerationVoteOptions& options = {} ) const; /// /// @@ -107,6 +308,7 @@ class ModerationApi /// /// /// + /// /// (optional, default to 0.0) /// (optional, default to 0.0) /// (optional, default to utility::conversions::to_string_t("")) @@ -115,19 +317,11 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getApiComments( - boost::optional page, - boost::optional count, - boost::optional textSearch, - boost::optional byIPFromComment, - boost::optional filters, - boost::optional searchFilters, - boost::optional sorts, - boost::optional demo, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId + + , const GetApiCommentsOptions& options = {} ) const; /// /// @@ -135,13 +329,13 @@ class ModerationApi /// /// /// + /// /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getApiExportStatus( - boost::optional batchJobId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId + + , const GetApiExportStatusOptions& options = {} ) const; /// /// @@ -149,23 +343,18 @@ class ModerationApi /// /// /// + /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getApiIds( - boost::optional textSearch, - boost::optional byIPFromComment, - boost::optional filters, - boost::optional searchFilters, - boost::optional afterId, - boost::optional demo, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId + + , const GetApiIdsOptions& options = {} ) const; /// /// @@ -173,13 +362,13 @@ class ModerationApi /// /// /// + /// /// - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getBanUsersFromComment( - utility::string_t commentId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t commentId + , boost::optional sso = boost::none ) const; /// /// @@ -187,13 +376,13 @@ class ModerationApi /// /// /// + /// /// - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getCommentBanStatus( - utility::string_t commentId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t commentId + , boost::optional sso = boost::none ) const; /// /// @@ -201,13 +390,13 @@ class ModerationApi /// /// /// + /// /// - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getCommentChildren( - utility::string_t commentId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t commentId + , boost::optional sso = boost::none ) const; /// /// @@ -215,21 +404,17 @@ class ModerationApi /// /// /// + /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getCount( - boost::optional textSearch, - boost::optional byIPFromComment, - boost::optional filter, - boost::optional searchFilters, - boost::optional demo, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId + + , const GetCountOptions& options = {} ) const; /// /// @@ -237,11 +422,11 @@ class ModerationApi /// /// /// - /// (optional, default to utility::conversions::to_string_t("")) + /// /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getCounts( - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId + , boost::optional sso = boost::none ) const; /// /// @@ -249,13 +434,13 @@ class ModerationApi /// /// /// + /// /// - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getLogs( - utility::string_t commentId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t commentId + , boost::optional sso = boost::none ) const; /// /// @@ -263,11 +448,11 @@ class ModerationApi /// /// /// - /// (optional, default to utility::conversions::to_string_t("")) + /// /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getManualBadges( - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId + , boost::optional sso = boost::none ) const; /// /// @@ -275,15 +460,14 @@ class ModerationApi /// /// /// + /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getManualBadgesForUser( - boost::optional badgesUserId, - boost::optional commentId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId + + , const GetManualBadgesForUserOptions& options = {} ) const; /// /// @@ -291,17 +475,16 @@ class ModerationApi /// /// /// + /// /// /// (optional, default to false) /// (optional, default to false) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getModerationComment( - utility::string_t commentId, - boost::optional includeEmail, - boost::optional includeIP, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t commentId + + , const GetModerationCommentOptions& options = {} ) const; /// /// @@ -309,13 +492,13 @@ class ModerationApi /// /// /// + /// /// - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getModerationCommentText( - utility::string_t commentId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t commentId + , boost::optional sso = boost::none ) const; /// /// @@ -323,19 +506,17 @@ class ModerationApi /// /// /// + /// /// /// (optional, default to false) /// (optional, default to false) /// (optional, default to false) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getPreBanSummary( - utility::string_t commentId, - boost::optional includeByUserIdAndEmail, - boost::optional includeByIP, - boost::optional includeByEmailDomain, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t commentId + + , const GetPreBanSummaryOptions& options = {} ) const; /// /// @@ -343,17 +524,15 @@ class ModerationApi /// /// /// + /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getSearchCommentsSummary( - boost::optional value, - boost::optional filters, - boost::optional searchFilters, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId + + , const GetSearchCommentsSummaryOptions& options = {} ) const; /// /// @@ -361,13 +540,13 @@ class ModerationApi /// /// /// + /// /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getSearchPages( - boost::optional value, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId + + , const GetSearchPagesOptions& options = {} ) const; /// /// @@ -375,13 +554,13 @@ class ModerationApi /// /// /// + /// /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getSearchSites( - boost::optional value, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId + + , const GetSearchSitesOptions& options = {} ) const; /// /// @@ -389,13 +568,13 @@ class ModerationApi /// /// /// + /// /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getSearchSuggest( - boost::optional textSearch, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId + + , const GetSearchSuggestOptions& options = {} ) const; /// /// @@ -403,13 +582,13 @@ class ModerationApi /// /// /// + /// /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getSearchUsers( - boost::optional value, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId + + , const GetSearchUsersOptions& options = {} ) const; /// /// @@ -417,13 +596,13 @@ class ModerationApi /// /// /// + /// /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getTrustFactor( - boost::optional userId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId + + , const GetTrustFactorOptions& options = {} ) const; /// /// @@ -431,11 +610,11 @@ class ModerationApi /// /// /// - /// (optional, default to utility::conversions::to_string_t("")) + /// /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getUserBanPreference( - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId + , boost::optional sso = boost::none ) const; /// /// @@ -443,13 +622,13 @@ class ModerationApi /// /// /// + /// /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getUserInternalProfile( - boost::optional commentId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId + + , const GetUserInternalProfileOptions& options = {} ) const; /// /// @@ -457,17 +636,17 @@ class ModerationApi /// /// /// + /// /// /// /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postAdjustCommentVotes( + utility::string_t tenantId, utility::string_t commentId, - std::shared_ptr adjustCommentVotesParams, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + std::shared_ptr adjustCommentVotesParams + + , const PostAdjustCommentVotesOptions& options = {} ) const; /// /// @@ -475,21 +654,17 @@ class ModerationApi /// /// /// + /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postApiExport( - boost::optional textSearch, - boost::optional byIPFromComment, - boost::optional filters, - boost::optional searchFilters, - boost::optional sorts, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId + + , const PostApiExportOptions& options = {} ) const; /// /// @@ -497,6 +672,7 @@ class ModerationApi /// /// /// + /// /// /// (optional, default to false) /// (optional, default to false) @@ -506,20 +682,12 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postBanUserFromComment( - utility::string_t commentId, - boost::optional banEmail, - boost::optional banEmailDomain, - boost::optional banIP, - boost::optional deleteAllUsersComments, - boost::optional bannedUntil, - boost::optional isShadowBan, - boost::optional updateId, - boost::optional banReason, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t commentId + + , const PostBanUserFromCommentOptions& options = {} ) const; /// /// @@ -527,13 +695,13 @@ class ModerationApi /// /// /// + /// /// - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postBanUserUndo( - std::shared_ptr banUserUndoParams, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + std::shared_ptr banUserUndoParams + , boost::optional sso = boost::none ) const; /// /// @@ -541,19 +709,17 @@ class ModerationApi /// /// /// + /// /// /// (optional, default to false) /// (optional, default to false) /// (optional, default to false) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postBulkPreBanSummary( - std::shared_ptr bulkPreBanParams, - boost::optional includeByUserIdAndEmail, - boost::optional includeByIP, - boost::optional includeByEmailDomain, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + std::shared_ptr bulkPreBanParams + + , const PostBulkPreBanSummaryOptions& options = {} ) const; /// /// @@ -561,13 +727,13 @@ class ModerationApi /// /// /// + /// /// - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postCommentsByIds( - std::shared_ptr commentsByIdsParams, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + std::shared_ptr commentsByIdsParams + , boost::optional sso = boost::none ) const; /// /// @@ -575,15 +741,15 @@ class ModerationApi /// /// /// + /// /// /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postFlagComment( - utility::string_t commentId, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t commentId + + , const PostFlagCommentOptions& options = {} ) const; /// /// @@ -591,15 +757,15 @@ class ModerationApi /// /// /// + /// /// /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postRemoveComment( - utility::string_t commentId, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + pplx::task> postRemoveComment( + utility::string_t tenantId, + utility::string_t commentId + + , const PostRemoveCommentOptions& options = {} ) const; /// /// @@ -607,15 +773,15 @@ class ModerationApi /// /// /// + /// /// /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postRestoreDeletedComment( - utility::string_t commentId, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t commentId + + , const PostRestoreDeletedCommentOptions& options = {} ) const; /// /// @@ -623,17 +789,16 @@ class ModerationApi /// /// /// + /// /// /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postSetCommentApprovalStatus( - utility::string_t commentId, - boost::optional approved, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t commentId + + , const PostSetCommentApprovalStatusOptions& options = {} ) const; /// /// @@ -641,17 +806,16 @@ class ModerationApi /// /// /// + /// /// /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postSetCommentReviewStatus( - utility::string_t commentId, - boost::optional reviewed, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t commentId + + , const PostSetCommentReviewStatusOptions& options = {} ) const; /// /// @@ -659,19 +823,17 @@ class ModerationApi /// /// /// + /// /// /// (optional, default to false) /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postSetCommentSpamStatus( - utility::string_t commentId, - boost::optional spam, - boost::optional permNotSpam, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t commentId + + , const PostSetCommentSpamStatusOptions& options = {} ) const; /// /// @@ -679,17 +841,17 @@ class ModerationApi /// /// /// + /// /// /// /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postSetCommentText( + utility::string_t tenantId, utility::string_t commentId, - std::shared_ptr setCommentTextParams, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + std::shared_ptr setCommentTextParams + + , const PostSetCommentTextOptions& options = {} ) const; /// /// @@ -697,15 +859,15 @@ class ModerationApi /// /// /// + /// /// /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postUnFlagComment( - utility::string_t commentId, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t commentId + + , const PostUnFlagCommentOptions& options = {} ) const; /// /// @@ -713,17 +875,16 @@ class ModerationApi /// /// /// + /// /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postVote( - utility::string_t commentId, - boost::optional direction, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t commentId + + , const PostVoteOptions& options = {} ) const; /// /// @@ -731,19 +892,17 @@ class ModerationApi /// /// /// + /// /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> putAwardBadge( - utility::string_t badgeId, - boost::optional userId, - boost::optional commentId, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t badgeId + + , const PutAwardBadgeOptions& options = {} ) const; /// /// @@ -751,13 +910,13 @@ class ModerationApi /// /// /// + /// /// - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> putCloseThread( - utility::string_t urlId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t urlId + , boost::optional sso = boost::none ) const; /// /// @@ -765,19 +924,17 @@ class ModerationApi /// /// /// + /// /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> putRemoveBadge( - utility::string_t badgeId, - boost::optional userId, - boost::optional commentId, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t badgeId + + , const PutRemoveBadgeOptions& options = {} ) const; /// /// @@ -785,13 +942,13 @@ class ModerationApi /// /// /// + /// /// - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> putReopenThread( - utility::string_t urlId, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId, + utility::string_t urlId + , boost::optional sso = boost::none ) const; /// /// @@ -799,15 +956,14 @@ class ModerationApi /// /// /// + /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> setTrustFactor( - boost::optional userId, - boost::optional trustFactor, - boost::optional tenantId, - boost::optional sso + utility::string_t tenantId + + , const SetTrustFactorOptions& options = {} ) const; protected: diff --git a/client/include/FastCommentsClient/api/PublicApi.h b/client/include/FastCommentsClient/api/PublicApi.h index 29db646..1d79826 100644 --- a/client/include/FastCommentsClient/api/PublicApi.h +++ b/client/include/FastCommentsClient/api/PublicApi.h @@ -87,6 +87,181 @@ namespace api { using namespace org::openapitools::client::model; +struct CreateCommentPublicOptions +{ + boost::optional sessionId; + boost::optional sso; +}; +struct CreateFeedPostPublicOptions +{ + boost::optional broadcastId; + boost::optional sso; +}; +struct DeleteCommentPublicOptions +{ + boost::optional editKey; + boost::optional sso; +}; +struct DeleteCommentVoteOptions +{ + boost::optional editKey; + boost::optional sso; +}; +struct DeleteFeedPostPublicOptions +{ + boost::optional broadcastId; + boost::optional sso; +}; +struct GetCommentTextOptions +{ + boost::optional editKey; + boost::optional sso; +}; +struct GetCommentsForUserOptions +{ + boost::optional userId; + boost::optional> direction; + boost::optional repliesToUserId; + boost::optional page; + boost::optional includei10n; + boost::optional locale; + boost::optional isCrawler; +}; +struct GetCommentsPublicOptions +{ + boost::optional page; + boost::optional> direction; + boost::optional sso; + boost::optional skip; + boost::optional skipChildren; + boost::optional limit; + boost::optional limitChildren; + boost::optional countChildren; + boost::optional fetchPageForCommentId; + boost::optional includeConfig; + boost::optional countAll; + boost::optional includei10n; + boost::optional locale; + boost::optional modules; + boost::optional isCrawler; + boost::optional includeNotificationCount; + boost::optional asTree; + boost::optional maxTreeDepth; + boost::optional useFullTranslationIds; + boost::optional parentId; + boost::optional searchText; + boost::optional> hashTags; + boost::optional userId; + boost::optional customConfigStr; + boost::optional afterCommentId; + boost::optional beforeCommentId; +}; +struct GetFeedPostsPublicOptions +{ + boost::optional afterId; + boost::optional limit; + boost::optional> tags; + boost::optional sso; + boost::optional isCrawler; + boost::optional includeUserInfo; +}; +struct GetGifsSearchOptions +{ + boost::optional locale; + boost::optional rating; + boost::optional page; +}; +struct GetGifsTrendingOptions +{ + boost::optional locale; + boost::optional rating; + boost::optional page; +}; +struct GetOfflineUsersOptions +{ + boost::optional afterName; + boost::optional afterUserId; +}; +struct GetOnlineUsersOptions +{ + boost::optional afterName; + boost::optional afterUserId; +}; +struct GetPagesPublicOptions +{ + boost::optional cursor; + boost::optional limit; + boost::optional q; + boost::optional> sortBy; + boost::optional hasComments; +}; +struct GetTranslationsOptions +{ + boost::optional locale; + boost::optional useFullTranslationIds; +}; +struct GetUserNotificationsOptions +{ + boost::optional urlId; + boost::optional pageSize; + boost::optional afterId; + boost::optional includeContext; + boost::optional afterCreatedAt; + boost::optional unreadOnly; + boost::optional dmOnly; + boost::optional noDm; + boost::optional includeTranslations; + boost::optional includeTenantNotifications; + boost::optional sso; +}; +struct GetUserReactsPublicOptions +{ + boost::optional> postIds; + boost::optional sso; +}; +struct ReactFeedPostPublicOptions +{ + boost::optional isUndo; + boost::optional broadcastId; + boost::optional sso; +}; +struct ResetUserNotificationsOptions +{ + boost::optional afterId; + boost::optional afterCreatedAt; + boost::optional unreadOnly; + boost::optional dmOnly; + boost::optional noDm; + boost::optional sso; +}; +struct SearchUsersOptions +{ + boost::optional usernameStartsWith; + boost::optional> mentionGroupIds; + boost::optional sso; + boost::optional searchSection; +}; +struct SetCommentTextOptions +{ + boost::optional editKey; + boost::optional sso; +}; +struct UpdateFeedPostPublicOptions +{ + boost::optional broadcastId; + boost::optional sso; +}; +struct UploadImageOptions +{ + boost::optional> sizePreset; + boost::optional urlId; +}; +struct VoteCommentOptions +{ + boost::optional sessionId; + boost::optional sso; +}; + class PublicApi @@ -110,8 +285,8 @@ class PublicApi pplx::task> blockFromCommentPublic( utility::string_t tenantId, utility::string_t commentId, - std::shared_ptr publicBlockFromCommentParams, - boost::optional sso + std::shared_ptr publicBlockFromCommentParams + , boost::optional sso = boost::none ) const; /// /// @@ -124,8 +299,8 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> checkedCommentsForBlocked( utility::string_t tenantId, - utility::string_t commentIds, - boost::optional sso + utility::string_t commentIds + , boost::optional sso = boost::none ) const; /// /// @@ -143,9 +318,9 @@ class PublicApi utility::string_t tenantId, utility::string_t urlId, utility::string_t broadcastId, - std::shared_ptr commentData, - boost::optional sessionId, - boost::optional sso + std::shared_ptr commentData + + , const CreateCommentPublicOptions& options = {} ) const; /// /// @@ -159,9 +334,9 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> createFeedPostPublic( utility::string_t tenantId, - std::shared_ptr createFeedPostParams, - boost::optional broadcastId, - boost::optional sso + std::shared_ptr createFeedPostParams + + , const CreateFeedPostPublicOptions& options = {} ) const; /// /// @@ -174,8 +349,8 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> createV1PageReact( utility::string_t tenantId, - utility::string_t urlId, - boost::optional title + utility::string_t urlId + , boost::optional title = boost::none ) const; /// /// @@ -190,8 +365,8 @@ class PublicApi pplx::task> createV2PageReact( utility::string_t tenantId, utility::string_t urlId, - utility::string_t id, - boost::optional title + utility::string_t id + , boost::optional title = boost::none ) const; /// /// @@ -207,9 +382,9 @@ class PublicApi pplx::task> deleteCommentPublic( utility::string_t tenantId, utility::string_t commentId, - utility::string_t broadcastId, - boost::optional editKey, - boost::optional sso + utility::string_t broadcastId + + , const DeleteCommentPublicOptions& options = {} ) const; /// /// @@ -229,9 +404,9 @@ class PublicApi utility::string_t commentId, utility::string_t voteId, utility::string_t urlId, - utility::string_t broadcastId, - boost::optional editKey, - boost::optional sso + utility::string_t broadcastId + + , const DeleteCommentVoteOptions& options = {} ) const; /// /// @@ -245,9 +420,9 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> deleteFeedPostPublic( utility::string_t tenantId, - utility::string_t postId, - boost::optional broadcastId, - boost::optional sso + utility::string_t postId + + , const DeleteFeedPostPublicOptions& options = {} ) const; /// /// @@ -260,6 +435,7 @@ class PublicApi pplx::task> deleteV1PageReact( utility::string_t tenantId, utility::string_t urlId + ) const; /// /// @@ -274,6 +450,7 @@ class PublicApi utility::string_t tenantId, utility::string_t urlId, utility::string_t id + ) const; /// /// @@ -288,8 +465,8 @@ class PublicApi pplx::task> flagCommentPublic( utility::string_t tenantId, utility::string_t commentId, - bool isFlagged, - boost::optional sso + bool isFlagged + , boost::optional sso = boost::none ) const; /// /// @@ -303,9 +480,9 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getCommentText( utility::string_t tenantId, - utility::string_t commentId, - boost::optional editKey, - boost::optional sso + utility::string_t commentId + + , const GetCommentTextOptions& options = {} ) const; /// /// @@ -320,8 +497,8 @@ class PublicApi pplx::task> getCommentVoteUserNames( utility::string_t tenantId, utility::string_t commentId, - int32_t dir, - boost::optional sso + int32_t dir + , boost::optional sso = boost::none ) const; /// /// @@ -337,13 +514,8 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) pplx::task> getCommentsForUser( - boost::optional userId, - boost::optional> direction, - boost::optional repliesToUserId, - boost::optional page, - boost::optional includei10n, - boost::optional locale, - boost::optional isCrawler + + const GetCommentsForUserOptions& options = {} ) const; /// /// @@ -381,33 +553,9 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getCommentsPublic( utility::string_t tenantId, - utility::string_t urlId, - boost::optional page, - boost::optional> direction, - boost::optional sso, - boost::optional skip, - boost::optional skipChildren, - boost::optional limit, - boost::optional limitChildren, - boost::optional countChildren, - boost::optional fetchPageForCommentId, - boost::optional includeConfig, - boost::optional countAll, - boost::optional includei10n, - boost::optional locale, - boost::optional modules, - boost::optional isCrawler, - boost::optional includeNotificationCount, - boost::optional asTree, - boost::optional maxTreeDepth, - boost::optional useFullTranslationIds, - boost::optional parentId, - boost::optional searchText, - boost::optional> hashTags, - boost::optional userId, - boost::optional customConfigStr, - boost::optional afterCommentId, - boost::optional beforeCommentId + utility::string_t urlId + + , const GetCommentsPublicOptions& options = {} ) const; /// /// @@ -424,8 +572,8 @@ class PublicApi utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, - int64_t startTime, - boost::optional endTime + int64_t startTime + , boost::optional endTime = boost::none ) const; /// /// @@ -441,13 +589,9 @@ class PublicApi /// (optional, default to false) /// (optional, default to false) pplx::task> getFeedPostsPublic( - utility::string_t tenantId, - boost::optional afterId, - boost::optional limit, - boost::optional> tags, - boost::optional sso, - boost::optional isCrawler, - boost::optional includeUserInfo + utility::string_t tenantId + + , const GetFeedPostsPublicOptions& options = {} ) const; /// /// @@ -460,8 +604,8 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getFeedPostsStats( utility::string_t tenantId, - std::vector postIds, - boost::optional sso + std::vector postIds + , boost::optional sso = boost::none ) const; /// /// @@ -474,6 +618,7 @@ class PublicApi pplx::task> getGifLarge( utility::string_t tenantId, utility::string_t largeInternalURLSanitized + ) const; /// /// @@ -488,10 +633,9 @@ class PublicApi /// (optional, default to 0.0) pplx::task> getGifsSearch( utility::string_t tenantId, - utility::string_t search, - boost::optional locale, - boost::optional rating, - boost::optional page + utility::string_t search + + , const GetGifsSearchOptions& options = {} ) const; /// /// @@ -504,10 +648,9 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) pplx::task> getGifsTrending( - utility::string_t tenantId, - boost::optional locale, - boost::optional rating, - boost::optional page + utility::string_t tenantId + + , const GetGifsTrendingOptions& options = {} ) const; /// /// @@ -524,8 +667,8 @@ class PublicApi utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, - int64_t startTime, - boost::optional endTime + int64_t startTime + , boost::optional endTime = boost::none ) const; /// /// @@ -539,9 +682,9 @@ class PublicApi /// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional, default to utility::conversions::to_string_t("")) pplx::task> getOfflineUsers( utility::string_t tenantId, - utility::string_t urlId, - boost::optional afterName, - boost::optional afterUserId + utility::string_t urlId + + , const GetOfflineUsersOptions& options = {} ) const; /// /// @@ -555,9 +698,9 @@ class PublicApi /// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional, default to utility::conversions::to_string_t("")) pplx::task> getOnlineUsers( utility::string_t tenantId, - utility::string_t urlId, - boost::optional afterName, - boost::optional afterUserId + utility::string_t urlId + + , const GetOnlineUsersOptions& options = {} ) const; /// /// @@ -572,12 +715,9 @@ class PublicApi /// Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). (optional, default to new PagesSortBy()) /// If true, only return pages with at least one comment. (optional, default to false) pplx::task> getPagesPublic( - utility::string_t tenantId, - boost::optional cursor, - boost::optional limit, - boost::optional q, - boost::optional> sortBy, - boost::optional hasComments + utility::string_t tenantId + + , const GetPagesPublicOptions& options = {} ) const; /// /// @@ -591,9 +731,9 @@ class PublicApi /// (optional, default to false) pplx::task> getTranslations( utility::string_t r_namespace, - utility::string_t component, - boost::optional locale, - boost::optional useFullTranslationIds + utility::string_t component + + , const GetTranslationsOptions& options = {} ) const; /// /// @@ -604,8 +744,8 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getUserNotificationCount( - utility::string_t tenantId, - boost::optional sso + utility::string_t tenantId + , boost::optional sso = boost::none ) const; /// /// @@ -626,18 +766,9 @@ class PublicApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getUserNotifications( - utility::string_t tenantId, - boost::optional urlId, - boost::optional pageSize, - boost::optional afterId, - boost::optional includeContext, - boost::optional afterCreatedAt, - boost::optional unreadOnly, - boost::optional dmOnly, - boost::optional noDm, - boost::optional includeTranslations, - boost::optional includeTenantNotifications, - boost::optional sso + utility::string_t tenantId + + , const GetUserNotificationsOptions& options = {} ) const; /// /// @@ -652,6 +783,7 @@ class PublicApi utility::string_t tenantId, utility::string_t urlIdWS, utility::string_t userIds + ) const; /// /// @@ -663,9 +795,9 @@ class PublicApi /// (optional, default to std::vector<std::shared_ptr<utility::string_t>>()) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getUserReactsPublic( - utility::string_t tenantId, - boost::optional> postIds, - boost::optional sso + utility::string_t tenantId + + , const GetUserReactsPublicOptions& options = {} ) const; /// /// @@ -678,6 +810,7 @@ class PublicApi pplx::task> getUsersInfo( utility::string_t tenantId, utility::string_t ids + ) const; /// /// @@ -690,6 +823,7 @@ class PublicApi pplx::task> getV1PageLikes( utility::string_t tenantId, utility::string_t urlId + ) const; /// /// @@ -704,6 +838,7 @@ class PublicApi utility::string_t tenantId, utility::string_t urlId, utility::string_t id + ) const; /// /// @@ -716,6 +851,7 @@ class PublicApi pplx::task> getV2PageReacts( utility::string_t tenantId, utility::string_t urlId + ) const; /// /// @@ -730,8 +866,8 @@ class PublicApi pplx::task> lockComment( utility::string_t tenantId, utility::string_t commentId, - utility::string_t broadcastId, - boost::optional sso + utility::string_t broadcastId + , boost::optional sso = boost::none ) const; /// /// @@ -740,6 +876,7 @@ class PublicApi /// /// pplx::task> logoutPublic( + ) const; /// /// @@ -754,8 +891,8 @@ class PublicApi pplx::task> pinComment( utility::string_t tenantId, utility::string_t commentId, - utility::string_t broadcastId, - boost::optional sso + utility::string_t broadcastId + , boost::optional sso = boost::none ) const; /// /// @@ -772,10 +909,9 @@ class PublicApi pplx::task> reactFeedPostPublic( utility::string_t tenantId, utility::string_t postId, - std::shared_ptr reactBodyParams, - boost::optional isUndo, - boost::optional broadcastId, - boost::optional sso + std::shared_ptr reactBodyParams + + , const ReactFeedPostPublicOptions& options = {} ) const; /// /// @@ -786,8 +922,8 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) pplx::task> resetUserNotificationCount( - utility::string_t tenantId, - boost::optional sso + utility::string_t tenantId + , boost::optional sso = boost::none ) const; /// /// @@ -803,13 +939,9 @@ class PublicApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> resetUserNotifications( - utility::string_t tenantId, - boost::optional afterId, - boost::optional afterCreatedAt, - boost::optional unreadOnly, - boost::optional dmOnly, - boost::optional noDm, - boost::optional sso + utility::string_t tenantId + + , const ResetUserNotificationsOptions& options = {} ) const; /// /// @@ -825,11 +957,9 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> searchUsers( utility::string_t tenantId, - utility::string_t urlId, - boost::optional usernameStartsWith, - boost::optional> mentionGroupIds, - boost::optional sso, - boost::optional searchSection + utility::string_t urlId + + , const SearchUsersOptions& options = {} ) const; /// /// @@ -847,9 +977,9 @@ class PublicApi utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, - std::shared_ptr commentTextUpdateRequest, - boost::optional editKey, - boost::optional sso + std::shared_ptr commentTextUpdateRequest + + , const SetCommentTextOptions& options = {} ) const; /// /// @@ -864,8 +994,8 @@ class PublicApi pplx::task> unBlockCommentPublic( utility::string_t tenantId, utility::string_t commentId, - std::shared_ptr publicBlockFromCommentParams, - boost::optional sso + std::shared_ptr publicBlockFromCommentParams + , boost::optional sso = boost::none ) const; /// /// @@ -880,8 +1010,8 @@ class PublicApi pplx::task> unLockComment( utility::string_t tenantId, utility::string_t commentId, - utility::string_t broadcastId, - boost::optional sso + utility::string_t broadcastId + , boost::optional sso = boost::none ) const; /// /// @@ -896,8 +1026,8 @@ class PublicApi pplx::task> unPinComment( utility::string_t tenantId, utility::string_t commentId, - utility::string_t broadcastId, - boost::optional sso + utility::string_t broadcastId + , boost::optional sso = boost::none ) const; /// /// @@ -913,9 +1043,9 @@ class PublicApi pplx::task> updateFeedPostPublic( utility::string_t tenantId, utility::string_t postId, - std::shared_ptr updateFeedPostParams, - boost::optional broadcastId, - boost::optional sso + std::shared_ptr updateFeedPostParams + + , const UpdateFeedPostPublicOptions& options = {} ) const; /// /// @@ -932,8 +1062,8 @@ class PublicApi utility::string_t tenantId, utility::string_t notificationId, utility::string_t optedInOrOut, - utility::string_t commentId, - boost::optional sso + utility::string_t commentId + , boost::optional sso = boost::none ) const; /// /// @@ -952,8 +1082,8 @@ class PublicApi utility::string_t urlId, utility::string_t url, utility::string_t pageTitle, - utility::string_t subscribedOrUnsubscribed, - boost::optional sso + utility::string_t subscribedOrUnsubscribed + , boost::optional sso = boost::none ) const; /// /// @@ -968,8 +1098,8 @@ class PublicApi pplx::task> updateUserNotificationStatus( utility::string_t tenantId, utility::string_t notificationId, - utility::string_t newStatus, - boost::optional sso + utility::string_t newStatus + , boost::optional sso = boost::none ) const; /// /// @@ -983,9 +1113,9 @@ class PublicApi /// Page id that upload is happening from, to configure (optional, default to utility::conversions::to_string_t("")) pplx::task> uploadImage( utility::string_t tenantId, - std::shared_ptr file, - boost::optional> sizePreset, - boost::optional urlId + std::shared_ptr file + + , const UploadImageOptions& options = {} ) const; /// /// @@ -1005,9 +1135,9 @@ class PublicApi utility::string_t commentId, utility::string_t urlId, utility::string_t broadcastId, - std::shared_ptr voteBodyParams, - boost::optional sessionId, - boost::optional sso + std::shared_ptr voteBodyParams + + , const VoteCommentOptions& options = {} ) const; protected: diff --git a/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h b/client/include/FastCommentsClient/model/PostRemoveCommentApiResponse.h similarity index 80% rename from client/include/FastCommentsClient/model/PostRemoveCommentResponse.h rename to client/include/FastCommentsClient/model/PostRemoveCommentApiResponse.h index 6f2d51c..af47bd8 100644 --- a/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h +++ b/client/include/FastCommentsClient/model/PostRemoveCommentApiResponse.h @@ -10,13 +10,13 @@ */ /* - * PostRemoveCommentResponse.h + * PostRemoveCommentApiResponse.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostRemoveCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostRemoveCommentResponse_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostRemoveCommentApiResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostRemoveCommentApiResponse_H_ #include @@ -33,12 +33,12 @@ namespace model { -class PostRemoveCommentResponse +class PostRemoveCommentApiResponse : public ModelBase { public: - PostRemoveCommentResponse(); - virtual ~PostRemoveCommentResponse(); + PostRemoveCommentApiResponse(); + virtual ~PostRemoveCommentApiResponse(); ///////////////////////////////////////////// /// ModelBase overrides @@ -53,7 +53,7 @@ class PostRemoveCommentResponse ///////////////////////////////////////////// - /// PostRemoveCommentResponse members + /// PostRemoveCommentApiResponse members utility::string_t getAction() const; @@ -82,4 +82,4 @@ class PostRemoveCommentResponse } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostRemoveCommentResponse_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostRemoveCommentApiResponse_H_ */ diff --git a/client/src/api/DefaultApi.cpp b/client/src/api/DefaultApi.cpp index 561388f..b494177 100644 --- a/client/src/api/DefaultApi.cpp +++ b/client/src/api/DefaultApi.cpp @@ -35,7 +35,11 @@ DefaultApi::~DefaultApi() { } -pplx::task> DefaultApi::addDomainConfig(utility::string_t tenantId, std::shared_ptr addDomainConfigParams) const +pplx::task> DefaultApi::addDomainConfig( + utility::string_t tenantId, + std::shared_ptr addDomainConfigParams + +) const { // verify the required parameter 'addDomainConfigParams' is set @@ -97,7 +101,6 @@ pplx::task> DefaultApi::addDomainConfig web::json::value localVarJson; localVarJson = ModelBase::toJson(addDomainConfigParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -191,7 +194,11 @@ pplx::task> DefaultApi::addDomainConfig return localVarResult; }); } -pplx::task> DefaultApi::addHashTag(boost::optional tenantId, boost::optional> createHashTagBody) const +pplx::task> DefaultApi::addHashTag( + utility::string_t tenantId, + std::shared_ptr createHashTagBody + +) const { @@ -233,9 +240,8 @@ pplx::task> DefaultApi::addHashTag(boost: std::unordered_set localVarConsumeHttpContentTypes; localVarConsumeHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); - if (tenantId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } std::shared_ptr localVarHttpBody; @@ -247,8 +253,7 @@ pplx::task> DefaultApi::addHashTag(boost: localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); web::json::value localVarJson; - if (createHashTagBody) - localVarJson = ModelBase::toJson(*createHashTagBody); + localVarJson = ModelBase::toJson(createHashTagBody); localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -258,9 +263,9 @@ pplx::task> DefaultApi::addHashTag(boost: localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); std::shared_ptr localVarMultipart(new MultipartFormData); - if(createHashTagBody && (*createHashTagBody).get()) + if(createHashTagBody.get()) { - (*createHashTagBody)->toMultipart(localVarMultipart, utility::conversions::to_string_t("createHashTagBody")); + createHashTagBody->toMultipart(localVarMultipart, utility::conversions::to_string_t("createHashTagBody")); } @@ -342,7 +347,11 @@ pplx::task> DefaultApi::addHashTag(boost: return localVarResult; }); } -pplx::task> DefaultApi::addHashTagsBulk(boost::optional tenantId, boost::optional> bulkCreateHashTagsBody) const +pplx::task> DefaultApi::addHashTagsBulk( + utility::string_t tenantId, + std::shared_ptr bulkCreateHashTagsBody + +) const { @@ -384,9 +393,8 @@ pplx::task> DefaultApi::addHashTagsB std::unordered_set localVarConsumeHttpContentTypes; localVarConsumeHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); - if (tenantId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } std::shared_ptr localVarHttpBody; @@ -398,8 +406,7 @@ pplx::task> DefaultApi::addHashTagsB localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); web::json::value localVarJson; - if (bulkCreateHashTagsBody) - localVarJson = ModelBase::toJson(*bulkCreateHashTagsBody); + localVarJson = ModelBase::toJson(bulkCreateHashTagsBody); localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -409,9 +416,9 @@ pplx::task> DefaultApi::addHashTagsB localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); std::shared_ptr localVarMultipart(new MultipartFormData); - if(bulkCreateHashTagsBody && (*bulkCreateHashTagsBody).get()) + if(bulkCreateHashTagsBody.get()) { - (*bulkCreateHashTagsBody)->toMultipart(localVarMultipart, utility::conversions::to_string_t("bulkCreateHashTagsBody")); + bulkCreateHashTagsBody->toMultipart(localVarMultipart, utility::conversions::to_string_t("bulkCreateHashTagsBody")); } @@ -493,7 +500,11 @@ pplx::task> DefaultApi::addHashTagsB return localVarResult; }); } -pplx::task> DefaultApi::addPage(utility::string_t tenantId, std::shared_ptr createAPIPageData) const +pplx::task> DefaultApi::addPage( + utility::string_t tenantId, + std::shared_ptr createAPIPageData + +) const { // verify the required parameter 'createAPIPageData' is set @@ -555,7 +566,6 @@ pplx::task> DefaultApi::addPage(utility::str web::json::value localVarJson; localVarJson = ModelBase::toJson(createAPIPageData); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -649,7 +659,11 @@ pplx::task> DefaultApi::addPage(utility::str return localVarResult; }); } -pplx::task> DefaultApi::addSSOUser(utility::string_t tenantId, std::shared_ptr createAPISSOUserData) const +pplx::task> DefaultApi::addSSOUser( + utility::string_t tenantId, + std::shared_ptr createAPISSOUserData + +) const { // verify the required parameter 'createAPISSOUserData' is set @@ -711,7 +725,6 @@ pplx::task> DefaultApi::addSSOUser(utilit web::json::value localVarJson; localVarJson = ModelBase::toJson(createAPISSOUserData); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -805,8 +818,15 @@ pplx::task> DefaultApi::addSSOUser(utilit return localVarResult; }); } -pplx::task> DefaultApi::aggregate(utility::string_t tenantId, std::shared_ptr aggregationRequest, boost::optional parentTenantId, boost::optional includeStats) const +pplx::task> DefaultApi::aggregate( + utility::string_t tenantId, + std::shared_ptr aggregationRequest + + , const AggregateOptions& options +) const { + auto parentTenantId = options.parentTenantId; + auto includeStats = options.includeStats; // verify the required parameter 'aggregationRequest' is set if (aggregationRequest == nullptr) @@ -875,7 +895,6 @@ pplx::task> DefaultApi::aggregate(utility::st web::json::value localVarJson; localVarJson = ModelBase::toJson(aggregationRequest); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -969,8 +988,18 @@ pplx::task> DefaultApi::aggregate(utility::st return localVarResult; }); } -pplx::task> DefaultApi::aggregateQuestionResults(utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, boost::optional urlId, boost::optional> timeBucket, boost::optional startDate, boost::optional forceRecalculate) const +pplx::task> DefaultApi::aggregateQuestionResults( + utility::string_t tenantId + + , const AggregateQuestionResultsOptions& options +) const { + auto questionId = options.questionId; + auto questionIds = options.questionIds; + auto urlId = options.urlId; + auto timeBucket = options.timeBucket; + auto startDate = options.startDate; + auto forceRecalculate = options.forceRecalculate; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1126,8 +1155,16 @@ pplx::task> DefaultApi::aggreg return localVarResult; }); } -pplx::task> DefaultApi::blockUserFromComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr blockFromCommentParams, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::blockUserFromComment( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr blockFromCommentParams + + , const BlockUserFromCommentOptions& options +) const { + auto userId = options.userId; + auto anonUserId = options.anonUserId; // verify the required parameter 'blockFromCommentParams' is set if (blockFromCommentParams == nullptr) @@ -1197,7 +1234,6 @@ pplx::task> DefaultApi::blockUserFromComment(utili web::json::value localVarJson; localVarJson = ModelBase::toJson(blockFromCommentParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -1291,7 +1327,11 @@ pplx::task> DefaultApi::blockUserFromComment(utili return localVarResult; }); } -pplx::task> DefaultApi::bulkAggregateQuestionResults(utility::string_t tenantId, std::shared_ptr bulkAggregateQuestionResultsRequest, boost::optional forceRecalculate) const +pplx::task> DefaultApi::bulkAggregateQuestionResults( + utility::string_t tenantId, + std::shared_ptr bulkAggregateQuestionResultsRequest + , boost::optional forceRecalculate +) const { // verify the required parameter 'bulkAggregateQuestionResultsRequest' is set @@ -1357,7 +1397,6 @@ pplx::task> DefaultApi::bu web::json::value localVarJson; localVarJson = ModelBase::toJson(bulkAggregateQuestionResultsRequest); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -1451,7 +1490,13 @@ pplx::task> DefaultApi::bu return localVarResult; }); } -pplx::task> DefaultApi::changeTicketState(utility::string_t tenantId, utility::string_t userId, utility::string_t id, std::shared_ptr changeTicketStateBody) const +pplx::task> DefaultApi::changeTicketState( + utility::string_t tenantId, + utility::string_t userId, + utility::string_t id, + std::shared_ptr changeTicketStateBody + +) const { // verify the required parameter 'changeTicketStateBody' is set @@ -1517,7 +1562,6 @@ pplx::task> DefaultApi::changeTicketS web::json::value localVarJson; localVarJson = ModelBase::toJson(changeTicketStateBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -1611,8 +1655,20 @@ pplx::task> DefaultApi::changeTicketS return localVarResult; }); } -pplx::task> DefaultApi::combineCommentsWithQuestionResults(utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, boost::optional urlId, boost::optional startDate, boost::optional forceRecalculate, boost::optional minValue, boost::optional maxValue, boost::optional limit) const +pplx::task> DefaultApi::combineCommentsWithQuestionResults( + utility::string_t tenantId + + , const CombineCommentsWithQuestionResultsOptions& options +) const { + auto questionId = options.questionId; + auto questionIds = options.questionIds; + auto urlId = options.urlId; + auto startDate = options.startDate; + auto forceRecalculate = options.forceRecalculate; + auto minValue = options.minValue; + auto maxValue = options.maxValue; + auto limit = options.limit; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1776,7 +1832,11 @@ pplx::task> DefaultA return localVarResult; }); } -pplx::task> DefaultApi::createEmailTemplate(utility::string_t tenantId, std::shared_ptr createEmailTemplateBody) const +pplx::task> DefaultApi::createEmailTemplate( + utility::string_t tenantId, + std::shared_ptr createEmailTemplateBody + +) const { // verify the required parameter 'createEmailTemplateBody' is set @@ -1838,7 +1898,6 @@ pplx::task> DefaultApi::createEmail web::json::value localVarJson; localVarJson = ModelBase::toJson(createEmailTemplateBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -1932,8 +1991,17 @@ pplx::task> DefaultApi::createEmail return localVarResult; }); } -pplx::task> DefaultApi::createFeedPost(utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, boost::optional isLive, boost::optional doSpamCheck, boost::optional skipDupCheck) const +pplx::task> DefaultApi::createFeedPost( + utility::string_t tenantId, + std::shared_ptr createFeedPostParams + + , const CreateFeedPostOptions& options +) const { + auto broadcastId = options.broadcastId; + auto isLive = options.isLive; + auto doSpamCheck = options.doSpamCheck; + auto skipDupCheck = options.skipDupCheck; // verify the required parameter 'createFeedPostParams' is set if (createFeedPostParams == nullptr) @@ -2010,7 +2078,6 @@ pplx::task> DefaultApi::createFeedPost( web::json::value localVarJson; localVarJson = ModelBase::toJson(createFeedPostParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -2104,7 +2171,11 @@ pplx::task> DefaultApi::createFeedPost( return localVarResult; }); } -pplx::task> DefaultApi::createModerator(utility::string_t tenantId, std::shared_ptr createModeratorBody) const +pplx::task> DefaultApi::createModerator( + utility::string_t tenantId, + std::shared_ptr createModeratorBody + +) const { // verify the required parameter 'createModeratorBody' is set @@ -2166,7 +2237,6 @@ pplx::task> DefaultApi::createModerator web::json::value localVarJson; localVarJson = ModelBase::toJson(createModeratorBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -2260,7 +2330,11 @@ pplx::task> DefaultApi::createModerator return localVarResult; }); } -pplx::task> DefaultApi::createQuestionConfig(utility::string_t tenantId, std::shared_ptr createQuestionConfigBody) const +pplx::task> DefaultApi::createQuestionConfig( + utility::string_t tenantId, + std::shared_ptr createQuestionConfigBody + +) const { // verify the required parameter 'createQuestionConfigBody' is set @@ -2322,7 +2396,6 @@ pplx::task> DefaultApi::createQues web::json::value localVarJson; localVarJson = ModelBase::toJson(createQuestionConfigBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -2416,7 +2489,11 @@ pplx::task> DefaultApi::createQues return localVarResult; }); } -pplx::task> DefaultApi::createQuestionResult(utility::string_t tenantId, std::shared_ptr createQuestionResultBody) const +pplx::task> DefaultApi::createQuestionResult( + utility::string_t tenantId, + std::shared_ptr createQuestionResultBody + +) const { // verify the required parameter 'createQuestionResultBody' is set @@ -2478,7 +2555,6 @@ pplx::task> DefaultApi::createQues web::json::value localVarJson; localVarJson = ModelBase::toJson(createQuestionResultBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -2572,7 +2648,11 @@ pplx::task> DefaultApi::createQues return localVarResult; }); } -pplx::task> DefaultApi::createSubscription(utility::string_t tenantId, std::shared_ptr createAPIUserSubscriptionData) const +pplx::task> DefaultApi::createSubscription( + utility::string_t tenantId, + std::shared_ptr createAPIUserSubscriptionData + +) const { // verify the required parameter 'createAPIUserSubscriptionData' is set @@ -2634,7 +2714,6 @@ pplx::task> DefaultApi::createSub web::json::value localVarJson; localVarJson = ModelBase::toJson(createAPIUserSubscriptionData); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -2728,7 +2807,11 @@ pplx::task> DefaultApi::createSub return localVarResult; }); } -pplx::task> DefaultApi::createTenant(utility::string_t tenantId, std::shared_ptr createTenantBody) const +pplx::task> DefaultApi::createTenant( + utility::string_t tenantId, + std::shared_ptr createTenantBody + +) const { // verify the required parameter 'createTenantBody' is set @@ -2790,7 +2873,6 @@ pplx::task> DefaultApi::createTenant(utili web::json::value localVarJson; localVarJson = ModelBase::toJson(createTenantBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -2884,7 +2966,11 @@ pplx::task> DefaultApi::createTenant(utili return localVarResult; }); } -pplx::task> DefaultApi::createTenantPackage(utility::string_t tenantId, std::shared_ptr createTenantPackageBody) const +pplx::task> DefaultApi::createTenantPackage( + utility::string_t tenantId, + std::shared_ptr createTenantPackageBody + +) const { // verify the required parameter 'createTenantPackageBody' is set @@ -2946,7 +3032,6 @@ pplx::task> DefaultApi::createTenan web::json::value localVarJson; localVarJson = ModelBase::toJson(createTenantPackageBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -3040,7 +3125,11 @@ pplx::task> DefaultApi::createTenan return localVarResult; }); } -pplx::task> DefaultApi::createTenantUser(utility::string_t tenantId, std::shared_ptr createTenantUserBody) const +pplx::task> DefaultApi::createTenantUser( + utility::string_t tenantId, + std::shared_ptr createTenantUserBody + +) const { // verify the required parameter 'createTenantUserBody' is set @@ -3102,7 +3191,6 @@ pplx::task> DefaultApi::createTenantUs web::json::value localVarJson; localVarJson = ModelBase::toJson(createTenantUserBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -3196,7 +3284,12 @@ pplx::task> DefaultApi::createTenantUs return localVarResult; }); } -pplx::task> DefaultApi::createTicket(utility::string_t tenantId, utility::string_t userId, std::shared_ptr createTicketBody) const +pplx::task> DefaultApi::createTicket( + utility::string_t tenantId, + utility::string_t userId, + std::shared_ptr createTicketBody + +) const { // verify the required parameter 'createTicketBody' is set @@ -3261,7 +3354,6 @@ pplx::task> DefaultApi::createTicket(utili web::json::value localVarJson; localVarJson = ModelBase::toJson(createTicketBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -3355,7 +3447,11 @@ pplx::task> DefaultApi::createTicket(utili return localVarResult; }); } -pplx::task> DefaultApi::createUserBadge(utility::string_t tenantId, std::shared_ptr createUserBadgeParams) const +pplx::task> DefaultApi::createUserBadge( + utility::string_t tenantId, + std::shared_ptr createUserBadgeParams + +) const { // verify the required parameter 'createUserBadgeParams' is set @@ -3417,7 +3513,6 @@ pplx::task> DefaultApi::createUserBa web::json::value localVarJson; localVarJson = ModelBase::toJson(createUserBadgeParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -3511,8 +3606,16 @@ pplx::task> DefaultApi::createUserBa return localVarResult; }); } -pplx::task> DefaultApi::createVote(utility::string_t tenantId, utility::string_t commentId, utility::string_t direction, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::createVote( + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t direction + + , const CreateVoteOptions& options +) const { + auto userId = options.userId; + auto anonUserId = options.anonUserId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3658,8 +3761,15 @@ pplx::task> DefaultApi::createVote(utility::string return localVarResult; }); } -pplx::task> DefaultApi::deleteComment(utility::string_t tenantId, utility::string_t id, boost::optional contextUserId, boost::optional isLive) const +pplx::task> DefaultApi::deleteComment( + utility::string_t tenantId, + utility::string_t id + + , const DeleteCommentOptions& options +) const { + auto contextUserId = options.contextUserId; + auto isLive = options.isLive; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3800,7 +3910,11 @@ pplx::task> DefaultApi::deleteComment(utili return localVarResult; }); } -pplx::task> DefaultApi::deleteDomainConfig(utility::string_t tenantId, utility::string_t domain) const +pplx::task> DefaultApi::deleteDomainConfig( + utility::string_t tenantId, + utility::string_t domain + +) const { @@ -3934,7 +4048,11 @@ pplx::task> DefaultApi::deleteDomain return localVarResult; }); } -pplx::task> DefaultApi::deleteEmailTemplate(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteEmailTemplate( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -4068,7 +4186,12 @@ pplx::task> DefaultApi::deleteEmailTemplate(ut return localVarResult; }); } -pplx::task> DefaultApi::deleteEmailTemplateRenderError(utility::string_t tenantId, utility::string_t id, utility::string_t errorId) const +pplx::task> DefaultApi::deleteEmailTemplateRenderError( + utility::string_t tenantId, + utility::string_t id, + utility::string_t errorId + +) const { @@ -4203,7 +4326,12 @@ pplx::task> DefaultApi::deleteEmailTemplateRen return localVarResult; }); } -pplx::task> DefaultApi::deleteHashTag(utility::string_t tag, boost::optional tenantId, boost::optional> deleteHashTagRequestBody) const +pplx::task> DefaultApi::deleteHashTag( + utility::string_t tenantId, + utility::string_t tag, + std::shared_ptr deleteHashTagRequestBody + +) const { @@ -4246,9 +4374,8 @@ pplx::task> DefaultApi::deleteHashTag(utility: std::unordered_set localVarConsumeHttpContentTypes; localVarConsumeHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); - if (tenantId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } std::shared_ptr localVarHttpBody; @@ -4260,8 +4387,7 @@ pplx::task> DefaultApi::deleteHashTag(utility: localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); web::json::value localVarJson; - if (deleteHashTagRequestBody) - localVarJson = ModelBase::toJson(*deleteHashTagRequestBody); + localVarJson = ModelBase::toJson(deleteHashTagRequestBody); localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -4271,9 +4397,9 @@ pplx::task> DefaultApi::deleteHashTag(utility: localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); std::shared_ptr localVarMultipart(new MultipartFormData); - if(deleteHashTagRequestBody && (*deleteHashTagRequestBody).get()) + if(deleteHashTagRequestBody.get()) { - (*deleteHashTagRequestBody)->toMultipart(localVarMultipart, utility::conversions::to_string_t("deleteHashTagRequestBody")); + deleteHashTagRequestBody->toMultipart(localVarMultipart, utility::conversions::to_string_t("deleteHashTagRequestBody")); } @@ -4355,7 +4481,11 @@ pplx::task> DefaultApi::deleteHashTag(utility: return localVarResult; }); } -pplx::task> DefaultApi::deleteModerator(utility::string_t tenantId, utility::string_t id, boost::optional sendEmail) const +pplx::task> DefaultApi::deleteModerator( + utility::string_t tenantId, + utility::string_t id + , boost::optional sendEmail +) const { @@ -4493,7 +4623,11 @@ pplx::task> DefaultApi::deleteModerator(utilit return localVarResult; }); } -pplx::task> DefaultApi::deleteNotificationCount(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteNotificationCount( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -4627,7 +4761,11 @@ pplx::task> DefaultApi::deleteNotificationCoun return localVarResult; }); } -pplx::task> DefaultApi::deletePage(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deletePage( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -4761,7 +4899,11 @@ pplx::task> DefaultApi::deletePage(utilit return localVarResult; }); } -pplx::task> DefaultApi::deletePendingWebhookEvent(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deletePendingWebhookEvent( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -4895,7 +5037,11 @@ pplx::task> DefaultApi::deletePendingWebhookEv return localVarResult; }); } -pplx::task> DefaultApi::deleteQuestionConfig(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteQuestionConfig( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -5029,7 +5175,11 @@ pplx::task> DefaultApi::deleteQuestionConfig(u return localVarResult; }); } -pplx::task> DefaultApi::deleteQuestionResult(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteQuestionResult( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -5163,8 +5313,15 @@ pplx::task> DefaultApi::deleteQuestionResult(u return localVarResult; }); } -pplx::task> DefaultApi::deleteSSOUser(utility::string_t tenantId, utility::string_t id, boost::optional deleteComments, boost::optional commentDeleteMode) const +pplx::task> DefaultApi::deleteSSOUser( + utility::string_t tenantId, + utility::string_t id + + , const DeleteSSOUserOptions& options +) const { + auto deleteComments = options.deleteComments; + auto commentDeleteMode = options.commentDeleteMode; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5305,7 +5462,11 @@ pplx::task> DefaultApi::deleteSSOUser( return localVarResult; }); } -pplx::task> DefaultApi::deleteSubscription(utility::string_t tenantId, utility::string_t id, boost::optional userId) const +pplx::task> DefaultApi::deleteSubscription( + utility::string_t tenantId, + utility::string_t id + , boost::optional userId +) const { @@ -5443,7 +5604,11 @@ pplx::task> DefaultApi::deleteSub return localVarResult; }); } -pplx::task> DefaultApi::deleteTenant(utility::string_t tenantId, utility::string_t id, boost::optional sure) const +pplx::task> DefaultApi::deleteTenant( + utility::string_t tenantId, + utility::string_t id + , boost::optional sure +) const { @@ -5581,7 +5746,11 @@ pplx::task> DefaultApi::deleteTenant(utility:: return localVarResult; }); } -pplx::task> DefaultApi::deleteTenantPackage(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteTenantPackage( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -5715,8 +5884,15 @@ pplx::task> DefaultApi::deleteTenantPackage(ut return localVarResult; }); } -pplx::task> DefaultApi::deleteTenantUser(utility::string_t tenantId, utility::string_t id, boost::optional deleteComments, boost::optional commentDeleteMode) const +pplx::task> DefaultApi::deleteTenantUser( + utility::string_t tenantId, + utility::string_t id + + , const DeleteTenantUserOptions& options +) const { + auto deleteComments = options.deleteComments; + auto commentDeleteMode = options.commentDeleteMode; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5857,7 +6033,11 @@ pplx::task> DefaultApi::deleteTenantUser(utili return localVarResult; }); } -pplx::task> DefaultApi::deleteUserBadge(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteUserBadge( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -5991,7 +6171,11 @@ pplx::task> DefaultApi::deleteUserBadge return localVarResult; }); } -pplx::task> DefaultApi::deleteVote(utility::string_t tenantId, utility::string_t id, boost::optional editKey) const +pplx::task> DefaultApi::deleteVote( + utility::string_t tenantId, + utility::string_t id + , boost::optional editKey +) const { @@ -6129,8 +6313,15 @@ pplx::task> DefaultApi::deleteVote(utility:: return localVarResult; }); } -pplx::task> DefaultApi::flagComment(utility::string_t tenantId, utility::string_t id, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::flagComment( + utility::string_t tenantId, + utility::string_t id + + , const FlagCommentOptions& options +) const { + auto userId = options.userId; + auto anonUserId = options.anonUserId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6271,8 +6462,17 @@ pplx::task> DefaultApi::flagComment(utility return localVarResult; }); } -pplx::task> DefaultApi::getAuditLogs(utility::string_t tenantId, boost::optional limit, boost::optional skip, boost::optional> order, boost::optional after, boost::optional before) const +pplx::task> DefaultApi::getAuditLogs( + utility::string_t tenantId + + , const GetAuditLogsOptions& options +) const { + auto limit = options.limit; + auto skip = options.skip; + auto order = options.order; + auto after = options.after; + auto before = options.before; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6424,7 +6624,11 @@ pplx::task> DefaultApi::getAuditLogs(utili return localVarResult; }); } -pplx::task> DefaultApi::getCachedNotificationCount(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getCachedNotificationCount( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -6558,7 +6762,11 @@ pplx::task> DefaultApi::getC return localVarResult; }); } -pplx::task> DefaultApi::getComment(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getComment( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -6692,8 +6900,28 @@ pplx::task> DefaultApi::getComment(utilit return localVarResult; }); } -pplx::task> DefaultApi::getComments(utility::string_t tenantId, boost::optional page, boost::optional limit, boost::optional skip, boost::optional asTree, boost::optional skipChildren, boost::optional limitChildren, boost::optional maxTreeDepth, boost::optional urlId, boost::optional userId, boost::optional anonUserId, boost::optional contextUserId, boost::optional hashTag, boost::optional parentId, boost::optional> direction, boost::optional fromDate, boost::optional toDate) const +pplx::task> DefaultApi::getComments( + utility::string_t tenantId + + , const GetCommentsOptions& options +) const { + auto page = options.page; + auto limit = options.limit; + auto skip = options.skip; + auto asTree = options.asTree; + auto skipChildren = options.skipChildren; + auto limitChildren = options.limitChildren; + auto maxTreeDepth = options.maxTreeDepth; + auto urlId = options.urlId; + auto userId = options.userId; + auto anonUserId = options.anonUserId; + auto contextUserId = options.contextUserId; + auto hashTag = options.hashTag; + auto parentId = options.parentId; + auto direction = options.direction; + auto fromDate = options.fromDate; + auto toDate = options.toDate; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6889,7 +7117,11 @@ pplx::task> DefaultApi::getComments(util return localVarResult; }); } -pplx::task> DefaultApi::getDomainConfig(utility::string_t tenantId, utility::string_t domain) const +pplx::task> DefaultApi::getDomainConfig( + utility::string_t tenantId, + utility::string_t domain + +) const { @@ -7023,7 +7255,10 @@ pplx::task> DefaultApi::getDomainConfig return localVarResult; }); } -pplx::task> DefaultApi::getDomainConfigs(utility::string_t tenantId) const +pplx::task> DefaultApi::getDomainConfigs( + utility::string_t tenantId + +) const { @@ -7156,7 +7391,11 @@ pplx::task> DefaultApi::getDomainConfi return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplate(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getEmailTemplate( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -7290,7 +7529,10 @@ pplx::task> DefaultApi::getEmailTempla return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplateDefinitions(utility::string_t tenantId) const +pplx::task> DefaultApi::getEmailTemplateDefinitions( + utility::string_t tenantId + +) const { @@ -7423,7 +7665,11 @@ pplx::task> DefaultApi::get return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplateRenderErrors(utility::string_t tenantId, utility::string_t id, boost::optional skip) const +pplx::task> DefaultApi::getEmailTemplateRenderErrors( + utility::string_t tenantId, + utility::string_t id + , boost::optional skip +) const { @@ -7561,7 +7807,10 @@ pplx::task> DefaultApi::ge return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplates(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getEmailTemplates( + utility::string_t tenantId + , boost::optional skip +) const { @@ -7698,8 +7947,15 @@ pplx::task> DefaultApi::getEmailTempl return localVarResult; }); } -pplx::task> DefaultApi::getFeedPosts(utility::string_t tenantId, boost::optional afterId, boost::optional limit, boost::optional> tags) const +pplx::task> DefaultApi::getFeedPosts( + utility::string_t tenantId + + , const GetFeedPostsOptions& options +) const { + auto afterId = options.afterId; + auto limit = options.limit; + auto tags = options.tags; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7843,7 +8099,10 @@ pplx::task> DefaultApi::getFeedPosts(utili return localVarResult; }); } -pplx::task> DefaultApi::getHashTags(utility::string_t tenantId, boost::optional page) const +pplx::task> DefaultApi::getHashTags( + utility::string_t tenantId + , boost::optional page +) const { @@ -7980,7 +8239,11 @@ pplx::task> DefaultApi::getHashTags(utility return localVarResult; }); } -pplx::task> DefaultApi::getModerator(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getModerator( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -8114,7 +8377,10 @@ pplx::task> DefaultApi::getModerator(utili return localVarResult; }); } -pplx::task> DefaultApi::getModerators(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getModerators( + utility::string_t tenantId + , boost::optional skip +) const { @@ -8251,8 +8517,17 @@ pplx::task> DefaultApi::getModerators(uti return localVarResult; }); } -pplx::task> DefaultApi::getNotificationCount(utility::string_t tenantId, boost::optional userId, boost::optional urlId, boost::optional fromCommentId, boost::optional viewed, boost::optional type) const +pplx::task> DefaultApi::getNotificationCount( + utility::string_t tenantId + + , const GetNotificationCountOptions& options +) const { + auto userId = options.userId; + auto urlId = options.urlId; + auto fromCommentId = options.fromCommentId; + auto viewed = options.viewed; + auto type = options.type; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -8404,8 +8679,18 @@ pplx::task> DefaultApi::getNotific return localVarResult; }); } -pplx::task> DefaultApi::getNotifications(utility::string_t tenantId, boost::optional userId, boost::optional urlId, boost::optional fromCommentId, boost::optional viewed, boost::optional type, boost::optional skip) const +pplx::task> DefaultApi::getNotifications( + utility::string_t tenantId + + , const GetNotificationsOptions& options +) const { + auto userId = options.userId; + auto urlId = options.urlId; + auto fromCommentId = options.fromCommentId; + auto viewed = options.viewed; + auto type = options.type; + auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -8561,7 +8846,11 @@ pplx::task> DefaultApi::getNotificatio return localVarResult; }); } -pplx::task> DefaultApi::getPageByURLId(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> DefaultApi::getPageByURLId( + utility::string_t tenantId, + utility::string_t urlId + +) const { @@ -8697,7 +8986,10 @@ pplx::task> DefaultApi::getPageByURLI return localVarResult; }); } -pplx::task> DefaultApi::getPages(utility::string_t tenantId) const +pplx::task> DefaultApi::getPages( + utility::string_t tenantId + +) const { @@ -8830,8 +9122,18 @@ pplx::task> DefaultApi::getPages(utility::s return localVarResult; }); } -pplx::task> DefaultApi::getPendingWebhookEventCount(utility::string_t tenantId, boost::optional commentId, boost::optional externalId, boost::optional eventType, boost::optional type, boost::optional domain, boost::optional attemptCountGT) const +pplx::task> DefaultApi::getPendingWebhookEventCount( + utility::string_t tenantId + + , const GetPendingWebhookEventCountOptions& options +) const { + auto commentId = options.commentId; + auto externalId = options.externalId; + auto eventType = options.eventType; + auto type = options.type; + auto domain = options.domain; + auto attemptCountGT = options.attemptCountGT; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -8987,8 +9289,19 @@ pplx::task> DefaultApi::get return localVarResult; }); } -pplx::task> DefaultApi::getPendingWebhookEvents(utility::string_t tenantId, boost::optional commentId, boost::optional externalId, boost::optional eventType, boost::optional type, boost::optional domain, boost::optional attemptCountGT, boost::optional skip) const +pplx::task> DefaultApi::getPendingWebhookEvents( + utility::string_t tenantId + + , const GetPendingWebhookEventsOptions& options +) const { + auto commentId = options.commentId; + auto externalId = options.externalId; + auto eventType = options.eventType; + auto type = options.type; + auto domain = options.domain; + auto attemptCountGT = options.attemptCountGT; + auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -9148,7 +9461,11 @@ pplx::task> DefaultApi::getPend return localVarResult; }); } -pplx::task> DefaultApi::getQuestionConfig(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getQuestionConfig( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -9282,7 +9599,10 @@ pplx::task> DefaultApi::getQuestionCo return localVarResult; }); } -pplx::task> DefaultApi::getQuestionConfigs(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getQuestionConfigs( + utility::string_t tenantId + , boost::optional skip +) const { @@ -9419,7 +9739,11 @@ pplx::task> DefaultApi::getQuestionC return localVarResult; }); } -pplx::task> DefaultApi::getQuestionResult(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getQuestionResult( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -9553,8 +9877,18 @@ pplx::task> DefaultApi::getQuestionRe return localVarResult; }); } -pplx::task> DefaultApi::getQuestionResults(utility::string_t tenantId, boost::optional urlId, boost::optional userId, boost::optional startDate, boost::optional questionId, boost::optional questionIds, boost::optional skip) const +pplx::task> DefaultApi::getQuestionResults( + utility::string_t tenantId + + , const GetQuestionResultsOptions& options +) const { + auto urlId = options.urlId; + auto userId = options.userId; + auto startDate = options.startDate; + auto questionId = options.questionId; + auto questionIds = options.questionIds; + auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -9710,7 +10044,11 @@ pplx::task> DefaultApi::getQuestionR return localVarResult; }); } -pplx::task> DefaultApi::getSSOUserByEmail(utility::string_t tenantId, utility::string_t email) const +pplx::task> DefaultApi::getSSOUserByEmail( + utility::string_t tenantId, + utility::string_t email + +) const { @@ -9844,7 +10182,11 @@ pplx::task> DefaultApi::getSSOUser return localVarResult; }); } -pplx::task> DefaultApi::getSSOUserById(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getSSOUserById( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -9978,7 +10320,10 @@ pplx::task> DefaultApi::getSSOUserByI return localVarResult; }); } -pplx::task> DefaultApi::getSSOUsers(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getSSOUsers( + utility::string_t tenantId + , boost::optional skip +) const { @@ -10115,7 +10460,10 @@ pplx::task> DefaultApi::getSSOUsers(utility return localVarResult; }); } -pplx::task> DefaultApi::getSubscriptions(utility::string_t tenantId, boost::optional userId) const +pplx::task> DefaultApi::getSubscriptions( + utility::string_t tenantId + , boost::optional userId +) const { @@ -10252,7 +10600,11 @@ pplx::task> DefaultApi::getSubscrip return localVarResult; }); } -pplx::task> DefaultApi::getTenant(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getTenant( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -10386,8 +10738,16 @@ pplx::task> DefaultApi::getTenant(utility::st return localVarResult; }); } -pplx::task> DefaultApi::getTenantDailyUsages(utility::string_t tenantId, boost::optional yearNumber, boost::optional monthNumber, boost::optional dayNumber, boost::optional skip) const +pplx::task> DefaultApi::getTenantDailyUsages( + utility::string_t tenantId + + , const GetTenantDailyUsagesOptions& options +) const { + auto yearNumber = options.yearNumber; + auto monthNumber = options.monthNumber; + auto dayNumber = options.dayNumber; + auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -10535,7 +10895,11 @@ pplx::task> DefaultApi::getTenantD return localVarResult; }); } -pplx::task> DefaultApi::getTenantPackage(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getTenantPackage( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -10669,7 +11033,10 @@ pplx::task> DefaultApi::getTenantPacka return localVarResult; }); } -pplx::task> DefaultApi::getTenantPackages(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getTenantPackages( + utility::string_t tenantId + , boost::optional skip +) const { @@ -10806,7 +11173,11 @@ pplx::task> DefaultApi::getTenantPack return localVarResult; }); } -pplx::task> DefaultApi::getTenantUser(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getTenantUser( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -10940,7 +11311,10 @@ pplx::task> DefaultApi::getTenantUser(uti return localVarResult; }); } -pplx::task> DefaultApi::getTenantUsers(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getTenantUsers( + utility::string_t tenantId + , boost::optional skip +) const { @@ -11077,8 +11451,14 @@ pplx::task> DefaultApi::getTenantUsers(u return localVarResult; }); } -pplx::task> DefaultApi::getTenants(utility::string_t tenantId, boost::optional meta, boost::optional skip) const +pplx::task> DefaultApi::getTenants( + utility::string_t tenantId + + , const GetTenantsOptions& options +) const { + auto meta = options.meta; + auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11218,7 +11598,11 @@ pplx::task> DefaultApi::getTenants(utility:: return localVarResult; }); } -pplx::task> DefaultApi::getTicket(utility::string_t tenantId, utility::string_t id, boost::optional userId) const +pplx::task> DefaultApi::getTicket( + utility::string_t tenantId, + utility::string_t id + , boost::optional userId +) const { @@ -11356,8 +11740,16 @@ pplx::task> DefaultApi::getTicket(utility::st return localVarResult; }); } -pplx::task> DefaultApi::getTickets(utility::string_t tenantId, boost::optional userId, boost::optional state, boost::optional skip, boost::optional limit) const +pplx::task> DefaultApi::getTickets( + utility::string_t tenantId + + , const GetTicketsOptions& options +) const { + auto userId = options.userId; + auto state = options.state; + auto skip = options.skip; + auto limit = options.limit; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11505,7 +11897,11 @@ pplx::task> DefaultApi::getTickets(utility:: return localVarResult; }); } -pplx::task> DefaultApi::getUser(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getUser( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -11639,7 +12035,11 @@ pplx::task> DefaultApi::getUser(utility::string return localVarResult; }); } -pplx::task> DefaultApi::getUserBadge(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getUserBadge( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -11773,7 +12173,11 @@ pplx::task> DefaultApi::getUserBadge(ut return localVarResult; }); } -pplx::task> DefaultApi::getUserBadgeProgressById(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getUserBadgeProgressById( + utility::string_t tenantId, + utility::string_t id + +) const { @@ -11907,7 +12311,11 @@ pplx::task> DefaultApi::getUser return localVarResult; }); } -pplx::task> DefaultApi::getUserBadgeProgressByUserId(utility::string_t tenantId, utility::string_t userId) const +pplx::task> DefaultApi::getUserBadgeProgressByUserId( + utility::string_t tenantId, + utility::string_t userId + +) const { @@ -12041,8 +12449,15 @@ pplx::task> DefaultApi::getUser return localVarResult; }); } -pplx::task> DefaultApi::getUserBadgeProgressList(utility::string_t tenantId, boost::optional userId, boost::optional limit, boost::optional skip) const +pplx::task> DefaultApi::getUserBadgeProgressList( + utility::string_t tenantId + + , const GetUserBadgeProgressListOptions& options +) const { + auto userId = options.userId; + auto limit = options.limit; + auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -12186,8 +12601,18 @@ pplx::task> DefaultApi::get return localVarResult; }); } -pplx::task> DefaultApi::getUserBadges(utility::string_t tenantId, boost::optional userId, boost::optional badgeId, boost::optional type, boost::optional displayedOnComments, boost::optional limit, boost::optional skip) const +pplx::task> DefaultApi::getUserBadges( + utility::string_t tenantId + + , const GetUserBadgesOptions& options +) const { + auto userId = options.userId; + auto badgeId = options.badgeId; + auto type = options.type; + auto displayedOnComments = options.displayedOnComments; + auto limit = options.limit; + auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -12343,7 +12768,11 @@ pplx::task> DefaultApi::getUserBadges( return localVarResult; }); } -pplx::task> DefaultApi::getVotes(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> DefaultApi::getVotes( + utility::string_t tenantId, + utility::string_t urlId + +) const { @@ -12479,8 +12908,15 @@ pplx::task> DefaultApi::getVotes(utility::stri return localVarResult; }); } -pplx::task> DefaultApi::getVotesForUser(utility::string_t tenantId, utility::string_t urlId, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::getVotesForUser( + utility::string_t tenantId, + utility::string_t urlId + + , const GetVotesForUserOptions& options +) const { + auto userId = options.userId; + auto anonUserId = options.anonUserId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -12623,7 +13059,12 @@ pplx::task> DefaultApi::getVotesForUser return localVarResult; }); } -pplx::task> DefaultApi::patchDomainConfig(utility::string_t tenantId, utility::string_t domainToUpdate, std::shared_ptr patchDomainConfigParams) const +pplx::task> DefaultApi::patchDomainConfig( + utility::string_t tenantId, + utility::string_t domainToUpdate, + std::shared_ptr patchDomainConfigParams + +) const { // verify the required parameter 'patchDomainConfigParams' is set @@ -12686,7 +13127,6 @@ pplx::task> DefaultApi::patchDomainCo web::json::value localVarJson; localVarJson = ModelBase::toJson(patchDomainConfigParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -12780,7 +13220,12 @@ pplx::task> DefaultApi::patchDomainCo return localVarResult; }); } -pplx::task> DefaultApi::patchHashTag(utility::string_t tag, boost::optional tenantId, boost::optional> updateHashTagBody) const +pplx::task> DefaultApi::patchHashTag( + utility::string_t tenantId, + utility::string_t tag, + std::shared_ptr updateHashTagBody + +) const { @@ -12823,9 +13268,8 @@ pplx::task> DefaultApi::patchHashTag(util std::unordered_set localVarConsumeHttpContentTypes; localVarConsumeHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); - if (tenantId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } std::shared_ptr localVarHttpBody; @@ -12837,8 +13281,7 @@ pplx::task> DefaultApi::patchHashTag(util localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); web::json::value localVarJson; - if (updateHashTagBody) - localVarJson = ModelBase::toJson(*updateHashTagBody); + localVarJson = ModelBase::toJson(updateHashTagBody); localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -12848,9 +13291,9 @@ pplx::task> DefaultApi::patchHashTag(util localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); std::shared_ptr localVarMultipart(new MultipartFormData); - if(updateHashTagBody && (*updateHashTagBody).get()) + if(updateHashTagBody.get()) { - (*updateHashTagBody)->toMultipart(localVarMultipart, utility::conversions::to_string_t("updateHashTagBody")); + updateHashTagBody->toMultipart(localVarMultipart, utility::conversions::to_string_t("updateHashTagBody")); } @@ -12932,7 +13375,12 @@ pplx::task> DefaultApi::patchHashTag(util return localVarResult; }); } -pplx::task> DefaultApi::patchPage(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateAPIPageData) const +pplx::task> DefaultApi::patchPage( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateAPIPageData + +) const { // verify the required parameter 'updateAPIPageData' is set @@ -12995,7 +13443,6 @@ pplx::task> DefaultApi::patchPage(utility: web::json::value localVarJson; localVarJson = ModelBase::toJson(updateAPIPageData); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -13089,7 +13536,12 @@ pplx::task> DefaultApi::patchPage(utility: return localVarResult; }); } -pplx::task> DefaultApi::patchSSOUser(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateAPISSOUserData, boost::optional updateComments) const +pplx::task> DefaultApi::patchSSOUser( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateAPISSOUserData + , boost::optional updateComments +) const { // verify the required parameter 'updateAPISSOUserData' is set @@ -13156,7 +13608,6 @@ pplx::task> DefaultApi::patchSSOUser(ut web::json::value localVarJson; localVarJson = ModelBase::toJson(updateAPISSOUserData); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -13250,7 +13701,12 @@ pplx::task> DefaultApi::patchSSOUser(ut return localVarResult; }); } -pplx::task> DefaultApi::putDomainConfig(utility::string_t tenantId, utility::string_t domainToUpdate, std::shared_ptr updateDomainConfigParams) const +pplx::task> DefaultApi::putDomainConfig( + utility::string_t tenantId, + utility::string_t domainToUpdate, + std::shared_ptr updateDomainConfigParams + +) const { // verify the required parameter 'updateDomainConfigParams' is set @@ -13313,7 +13769,6 @@ pplx::task> DefaultApi::putDomainConfig web::json::value localVarJson; localVarJson = ModelBase::toJson(updateDomainConfigParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -13407,7 +13862,12 @@ pplx::task> DefaultApi::putDomainConfig return localVarResult; }); } -pplx::task> DefaultApi::putSSOUser(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateAPISSOUserData, boost::optional updateComments) const +pplx::task> DefaultApi::putSSOUser( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateAPISSOUserData + , boost::optional updateComments +) const { // verify the required parameter 'updateAPISSOUserData' is set @@ -13474,7 +13934,6 @@ pplx::task> DefaultApi::putSSOUser(utilit web::json::value localVarJson; localVarJson = ModelBase::toJson(updateAPISSOUserData); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -13568,7 +14027,11 @@ pplx::task> DefaultApi::putSSOUser(utilit return localVarResult; }); } -pplx::task> DefaultApi::renderEmailTemplate(utility::string_t tenantId, std::shared_ptr renderEmailTemplateBody, boost::optional locale) const +pplx::task> DefaultApi::renderEmailTemplate( + utility::string_t tenantId, + std::shared_ptr renderEmailTemplateBody + , boost::optional locale +) const { // verify the required parameter 'renderEmailTemplateBody' is set @@ -13634,7 +14097,6 @@ pplx::task> DefaultApi::renderEmail web::json::value localVarJson; localVarJson = ModelBase::toJson(renderEmailTemplateBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -13728,7 +14190,12 @@ pplx::task> DefaultApi::renderEmail return localVarResult; }); } -pplx::task> DefaultApi::replaceTenantPackage(utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantPackageBody) const +pplx::task> DefaultApi::replaceTenantPackage( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr replaceTenantPackageBody + +) const { // verify the required parameter 'replaceTenantPackageBody' is set @@ -13791,7 +14258,6 @@ pplx::task> DefaultApi::replaceTenantPackage(u web::json::value localVarJson; localVarJson = ModelBase::toJson(replaceTenantPackageBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -13885,7 +14351,12 @@ pplx::task> DefaultApi::replaceTenantPackage(u return localVarResult; }); } -pplx::task> DefaultApi::replaceTenantUser(utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantUserBody, boost::optional updateComments) const +pplx::task> DefaultApi::replaceTenantUser( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr replaceTenantUserBody + , boost::optional updateComments +) const { // verify the required parameter 'replaceTenantUserBody' is set @@ -13952,7 +14423,6 @@ pplx::task> DefaultApi::replaceTenantUser(util web::json::value localVarJson; localVarJson = ModelBase::toJson(replaceTenantUserBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -14046,8 +14516,17 @@ pplx::task> DefaultApi::replaceTenantUser(util return localVarResult; }); } -pplx::task> DefaultApi::saveComment(utility::string_t tenantId, std::shared_ptr createCommentParams, boost::optional isLive, boost::optional doSpamCheck, boost::optional sendEmails, boost::optional populateNotifications) const +pplx::task> DefaultApi::saveComment( + utility::string_t tenantId, + std::shared_ptr createCommentParams + + , const SaveCommentOptions& options +) const { + auto isLive = options.isLive; + auto doSpamCheck = options.doSpamCheck; + auto sendEmails = options.sendEmails; + auto populateNotifications = options.populateNotifications; // verify the required parameter 'createCommentParams' is set if (createCommentParams == nullptr) @@ -14124,7 +14603,6 @@ pplx::task> DefaultApi::saveComment(util web::json::value localVarJson; localVarJson = ModelBase::toJson(createCommentParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -14218,8 +14696,17 @@ pplx::task> DefaultApi::saveComment(util return localVarResult; }); } -pplx::task>> DefaultApi::saveCommentsBulk(utility::string_t tenantId, std::vector> createCommentParams, boost::optional isLive, boost::optional doSpamCheck, boost::optional sendEmails, boost::optional populateNotifications) const +pplx::task>> DefaultApi::saveCommentsBulk( + utility::string_t tenantId, + std::vector> createCommentParams + + , const SaveCommentsBulkOptions& options +) const { + auto isLive = options.isLive; + auto doSpamCheck = options.doSpamCheck; + auto sendEmails = options.sendEmails; + auto populateNotifications = options.populateNotifications; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -14399,7 +14886,12 @@ pplx::task>> DefaultApi::s return localVarResult; }); } -pplx::task> DefaultApi::sendInvite(utility::string_t tenantId, utility::string_t id, utility::string_t fromName) const +pplx::task> DefaultApi::sendInvite( + utility::string_t tenantId, + utility::string_t id, + utility::string_t fromName + +) const { @@ -14536,7 +15028,11 @@ pplx::task> DefaultApi::sendInvite(utility::st return localVarResult; }); } -pplx::task> DefaultApi::sendLoginLink(utility::string_t tenantId, utility::string_t id, boost::optional redirectURL) const +pplx::task> DefaultApi::sendLoginLink( + utility::string_t tenantId, + utility::string_t id + , boost::optional redirectURL +) const { @@ -14674,8 +15170,16 @@ pplx::task> DefaultApi::sendLoginLink(utility: return localVarResult; }); } -pplx::task> DefaultApi::unBlockUserFromComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr unBlockFromCommentParams, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::unBlockUserFromComment( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr unBlockFromCommentParams + + , const UnBlockUserFromCommentOptions& options +) const { + auto userId = options.userId; + auto anonUserId = options.anonUserId; // verify the required parameter 'unBlockFromCommentParams' is set if (unBlockFromCommentParams == nullptr) @@ -14745,7 +15249,6 @@ pplx::task> DefaultApi::unBlockUserFromComment(u web::json::value localVarJson; localVarJson = ModelBase::toJson(unBlockFromCommentParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -14839,8 +15342,15 @@ pplx::task> DefaultApi::unBlockUserFromComment(u return localVarResult; }); } -pplx::task> DefaultApi::unFlagComment(utility::string_t tenantId, utility::string_t id, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::unFlagComment( + utility::string_t tenantId, + utility::string_t id + + , const UnFlagCommentOptions& options +) const { + auto userId = options.userId; + auto anonUserId = options.anonUserId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -14981,8 +15491,17 @@ pplx::task> DefaultApi::unFlagComment(utili return localVarResult; }); } -pplx::task> DefaultApi::updateComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr updatableCommentParams, boost::optional contextUserId, boost::optional doSpamCheck, boost::optional isLive) const +pplx::task> DefaultApi::updateComment( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updatableCommentParams + + , const UpdateCommentOptions& options +) const { + auto contextUserId = options.contextUserId; + auto doSpamCheck = options.doSpamCheck; + auto isLive = options.isLive; // verify the required parameter 'updatableCommentParams' is set if (updatableCommentParams == nullptr) @@ -15056,7 +15575,6 @@ pplx::task> DefaultApi::updateComment(utility: web::json::value localVarJson; localVarJson = ModelBase::toJson(updatableCommentParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -15150,7 +15668,12 @@ pplx::task> DefaultApi::updateComment(utility: return localVarResult; }); } -pplx::task> DefaultApi::updateEmailTemplate(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateEmailTemplateBody) const +pplx::task> DefaultApi::updateEmailTemplate( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateEmailTemplateBody + +) const { // verify the required parameter 'updateEmailTemplateBody' is set @@ -15213,7 +15736,6 @@ pplx::task> DefaultApi::updateEmailTemplate(ut web::json::value localVarJson; localVarJson = ModelBase::toJson(updateEmailTemplateBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -15307,7 +15829,12 @@ pplx::task> DefaultApi::updateEmailTemplate(ut return localVarResult; }); } -pplx::task> DefaultApi::updateFeedPost(utility::string_t tenantId, utility::string_t id, std::shared_ptr feedPost) const +pplx::task> DefaultApi::updateFeedPost( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr feedPost + +) const { // verify the required parameter 'feedPost' is set @@ -15370,7 +15897,6 @@ pplx::task> DefaultApi::updateFeedPost(utility web::json::value localVarJson; localVarJson = ModelBase::toJson(feedPost); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -15464,7 +15990,12 @@ pplx::task> DefaultApi::updateFeedPost(utility return localVarResult; }); } -pplx::task> DefaultApi::updateModerator(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateModeratorBody) const +pplx::task> DefaultApi::updateModerator( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateModeratorBody + +) const { // verify the required parameter 'updateModeratorBody' is set @@ -15527,7 +16058,6 @@ pplx::task> DefaultApi::updateModerator(utilit web::json::value localVarJson; localVarJson = ModelBase::toJson(updateModeratorBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -15621,7 +16151,12 @@ pplx::task> DefaultApi::updateModerator(utilit return localVarResult; }); } -pplx::task> DefaultApi::updateNotification(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateNotificationBody, boost::optional userId) const +pplx::task> DefaultApi::updateNotification( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateNotificationBody + , boost::optional userId +) const { // verify the required parameter 'updateNotificationBody' is set @@ -15688,7 +16223,6 @@ pplx::task> DefaultApi::updateNotification(uti web::json::value localVarJson; localVarJson = ModelBase::toJson(updateNotificationBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -15782,7 +16316,12 @@ pplx::task> DefaultApi::updateNotification(uti return localVarResult; }); } -pplx::task> DefaultApi::updateQuestionConfig(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionConfigBody) const +pplx::task> DefaultApi::updateQuestionConfig( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateQuestionConfigBody + +) const { // verify the required parameter 'updateQuestionConfigBody' is set @@ -15845,7 +16384,6 @@ pplx::task> DefaultApi::updateQuestionConfig(u web::json::value localVarJson; localVarJson = ModelBase::toJson(updateQuestionConfigBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -15939,7 +16477,12 @@ pplx::task> DefaultApi::updateQuestionConfig(u return localVarResult; }); } -pplx::task> DefaultApi::updateQuestionResult(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionResultBody) const +pplx::task> DefaultApi::updateQuestionResult( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateQuestionResultBody + +) const { // verify the required parameter 'updateQuestionResultBody' is set @@ -16002,7 +16545,6 @@ pplx::task> DefaultApi::updateQuestionResult(u web::json::value localVarJson; localVarJson = ModelBase::toJson(updateQuestionResultBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -16096,7 +16638,12 @@ pplx::task> DefaultApi::updateQuestionResult(u return localVarResult; }); } -pplx::task> DefaultApi::updateSubscription(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateAPIUserSubscriptionData, boost::optional userId) const +pplx::task> DefaultApi::updateSubscription( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateAPIUserSubscriptionData + , boost::optional userId +) const { // verify the required parameter 'updateAPIUserSubscriptionData' is set @@ -16163,7 +16710,6 @@ pplx::task> DefaultApi::updateSub web::json::value localVarJson; localVarJson = ModelBase::toJson(updateAPIUserSubscriptionData); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -16257,7 +16803,12 @@ pplx::task> DefaultApi::updateSub return localVarResult; }); } -pplx::task> DefaultApi::updateTenant(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantBody) const +pplx::task> DefaultApi::updateTenant( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateTenantBody + +) const { // verify the required parameter 'updateTenantBody' is set @@ -16320,7 +16871,6 @@ pplx::task> DefaultApi::updateTenant(utility:: web::json::value localVarJson; localVarJson = ModelBase::toJson(updateTenantBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -16414,7 +16964,12 @@ pplx::task> DefaultApi::updateTenant(utility:: return localVarResult; }); } -pplx::task> DefaultApi::updateTenantPackage(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantPackageBody) const +pplx::task> DefaultApi::updateTenantPackage( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateTenantPackageBody + +) const { // verify the required parameter 'updateTenantPackageBody' is set @@ -16477,7 +17032,6 @@ pplx::task> DefaultApi::updateTenantPackage(ut web::json::value localVarJson; localVarJson = ModelBase::toJson(updateTenantPackageBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -16571,7 +17125,12 @@ pplx::task> DefaultApi::updateTenantPackage(ut return localVarResult; }); } -pplx::task> DefaultApi::updateTenantUser(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantUserBody, boost::optional updateComments) const +pplx::task> DefaultApi::updateTenantUser( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateTenantUserBody + , boost::optional updateComments +) const { // verify the required parameter 'updateTenantUserBody' is set @@ -16638,7 +17197,6 @@ pplx::task> DefaultApi::updateTenantUser(utili web::json::value localVarJson; localVarJson = ModelBase::toJson(updateTenantUserBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -16732,7 +17290,12 @@ pplx::task> DefaultApi::updateTenantUser(utili return localVarResult; }); } -pplx::task> DefaultApi::updateUserBadge(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateUserBadgeParams) const +pplx::task> DefaultApi::updateUserBadge( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateUserBadgeParams + +) const { // verify the required parameter 'updateUserBadgeParams' is set @@ -16795,7 +17358,6 @@ pplx::task> DefaultApi::updateUserBadge web::json::value localVarJson; localVarJson = ModelBase::toJson(updateUserBadgeParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } diff --git a/client/src/api/ModerationApi.cpp b/client/src/api/ModerationApi.cpp index cb1c47a..8860409 100644 --- a/client/src/api/ModerationApi.cpp +++ b/client/src/api/ModerationApi.cpp @@ -35,12 +35,20 @@ ModerationApi::~ModerationApi() { } -pplx::task> ModerationApi::deleteModerationVote(utility::string_t commentId, utility::string_t voteId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::deleteModerationVote( + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t voteId + + , const DeleteModerationVoteOptions& options +) const { + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/vote/{commentId}/{voteId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("voteId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(voteId))); @@ -78,13 +86,12 @@ pplx::task> ModerationApi::deleteModerationV std::unordered_set localVarConsumeHttpContentTypes; - if (broadcastId) { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) + if (broadcastId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); } if (sso) { @@ -171,12 +178,25 @@ pplx::task> ModerationApi::deleteModerationV return localVarResult; }); } -pplx::task> ModerationApi::getApiComments(boost::optional page, boost::optional count, boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional sorts, boost::optional demo, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getApiComments( + utility::string_t tenantId + + , const GetApiCommentsOptions& options +) const { + auto page = options.page; + auto count = options.count; + auto textSearch = options.textSearch; + auto byIPFromComment = options.byIPFromComment; + auto filters = options.filters; + auto searchFilters = options.searchFilters; + auto sorts = options.sorts; + auto demo = options.demo; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/api/comments"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/api/comments"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -212,6 +232,9 @@ pplx::task> ModerationApi::get std::unordered_set localVarConsumeHttpContentTypes; + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); + } if (page) { localVarQueryParams[utility::conversions::to_string_t("page")] = ApiClient::parameterToString(*page); @@ -244,10 +267,6 @@ pplx::task> ModerationApi::get { localVarQueryParams[utility::conversions::to_string_t("demo")] = ApiClient::parameterToString(*demo); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -333,12 +352,18 @@ pplx::task> ModerationApi::get return localVarResult; }); } -pplx::task> ModerationApi::getApiExportStatus(boost::optional batchJobId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getApiExportStatus( + utility::string_t tenantId + + , const GetApiExportStatusOptions& options +) const { + auto batchJobId = options.batchJobId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/api/export/status"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/api/export/status"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -374,13 +399,12 @@ pplx::task> ModerationApi::getAp std::unordered_set localVarConsumeHttpContentTypes; - if (batchJobId) { - localVarQueryParams[utility::conversions::to_string_t("batchJobId")] = ApiClient::parameterToString(*batchJobId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) + if (batchJobId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("batchJobId")] = ApiClient::parameterToString(*batchJobId); } if (sso) { @@ -467,12 +491,23 @@ pplx::task> ModerationApi::getAp return localVarResult; }); } -pplx::task> ModerationApi::getApiIds(boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional afterId, boost::optional demo, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getApiIds( + utility::string_t tenantId + + , const GetApiIdsOptions& options +) const { + auto textSearch = options.textSearch; + auto byIPFromComment = options.byIPFromComment; + auto filters = options.filters; + auto searchFilters = options.searchFilters; + auto afterId = options.afterId; + auto demo = options.demo; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/api/ids"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/api/ids"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -508,6 +543,9 @@ pplx::task> ModerationApi::g std::unordered_set localVarConsumeHttpContentTypes; + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); + } if (textSearch) { localVarQueryParams[utility::conversions::to_string_t("text-search")] = ApiClient::parameterToString(*textSearch); @@ -532,10 +570,6 @@ pplx::task> ModerationApi::g { localVarQueryParams[utility::conversions::to_string_t("demo")] = ApiClient::parameterToString(*demo); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -621,12 +655,16 @@ pplx::task> ModerationApi::g return localVarResult; }); } -pplx::task> ModerationApi::getBanUsersFromComment(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getBanUsersFromComment( + utility::string_t tenantId, + utility::string_t commentId + , boost::optional sso +) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; @@ -663,9 +701,8 @@ pplx::task> ModerationApi::ge std::unordered_set localVarConsumeHttpContentTypes; - if (tenantId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } if (sso) { @@ -752,12 +789,16 @@ pplx::task> ModerationApi::ge return localVarResult; }); } -pplx::task> ModerationApi::getCommentBanStatus(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getCommentBanStatus( + utility::string_t tenantId, + utility::string_t commentId + , boost::optional sso +) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; @@ -794,9 +835,8 @@ pplx::task> ModerationApi::getComme std::unordered_set localVarConsumeHttpContentTypes; - if (tenantId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } if (sso) { @@ -883,12 +923,16 @@ pplx::task> ModerationApi::getComme return localVarResult; }); } -pplx::task> ModerationApi::getCommentChildren(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getCommentChildren( + utility::string_t tenantId, + utility::string_t commentId + , boost::optional sso +) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/comment-children/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/comment-children/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; @@ -925,9 +969,8 @@ pplx::task> ModerationApi::g std::unordered_set localVarConsumeHttpContentTypes; - if (tenantId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } if (sso) { @@ -1014,12 +1057,22 @@ pplx::task> ModerationApi::g return localVarResult; }); } -pplx::task> ModerationApi::getCount(boost::optional textSearch, boost::optional byIPFromComment, boost::optional filter, boost::optional searchFilters, boost::optional demo, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getCount( + utility::string_t tenantId + + , const GetCountOptions& options +) const { + auto textSearch = options.textSearch; + auto byIPFromComment = options.byIPFromComment; + auto filter = options.filter; + auto searchFilters = options.searchFilters; + auto demo = options.demo; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/count"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/count"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -1055,6 +1108,9 @@ pplx::task> ModerationApi::g std::unordered_set localVarConsumeHttpContentTypes; + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); + } if (textSearch) { localVarQueryParams[utility::conversions::to_string_t("text-search")] = ApiClient::parameterToString(*textSearch); @@ -1075,10 +1131,6 @@ pplx::task> ModerationApi::g { localVarQueryParams[utility::conversions::to_string_t("demo")] = ApiClient::parameterToString(*demo); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -1164,12 +1216,15 @@ pplx::task> ModerationApi::g return localVarResult; }); } -pplx::task> ModerationApi::getCounts(boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getCounts( + utility::string_t tenantId + , boost::optional sso +) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/banned-users/counts"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/banned-users/mod_api/counts"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -1205,9 +1260,8 @@ pplx::task> ModerationApi::getCount std::unordered_set localVarConsumeHttpContentTypes; - if (tenantId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } if (sso) { @@ -1294,12 +1348,16 @@ pplx::task> ModerationApi::getCount return localVarResult; }); } -pplx::task> ModerationApi::getLogs(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getLogs( + utility::string_t tenantId, + utility::string_t commentId + , boost::optional sso +) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/logs/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/logs/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; @@ -1336,9 +1394,8 @@ pplx::task> ModerationApi::getLogs std::unordered_set localVarConsumeHttpContentTypes; - if (tenantId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } if (sso) { @@ -1425,12 +1482,15 @@ pplx::task> ModerationApi::getLogs return localVarResult; }); } -pplx::task> ModerationApi::getManualBadges(boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getManualBadges( + utility::string_t tenantId + , boost::optional sso +) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/get-manual-badges"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/get-manual-badges"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -1466,9 +1526,8 @@ pplx::task> ModerationApi::getMan std::unordered_set localVarConsumeHttpContentTypes; - if (tenantId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } if (sso) { @@ -1555,12 +1614,19 @@ pplx::task> ModerationApi::getMan return localVarResult; }); } -pplx::task> ModerationApi::getManualBadgesForUser(boost::optional badgesUserId, boost::optional commentId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getManualBadgesForUser( + utility::string_t tenantId + + , const GetManualBadgesForUserOptions& options +) const { + auto badgesUserId = options.badgesUserId; + auto commentId = options.commentId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/get-manual-badges-for-user"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -1596,6 +1662,9 @@ pplx::task> ModerationApi::getManua std::unordered_set localVarConsumeHttpContentTypes; + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); + } if (badgesUserId) { localVarQueryParams[utility::conversions::to_string_t("badgesUserId")] = ApiClient::parameterToString(*badgesUserId); @@ -1604,10 +1673,6 @@ pplx::task> ModerationApi::getManua { localVarQueryParams[utility::conversions::to_string_t("commentId")] = ApiClient::parameterToString(*commentId); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -1693,12 +1758,20 @@ pplx::task> ModerationApi::getManua return localVarResult; }); } -pplx::task> ModerationApi::getModerationComment(utility::string_t commentId, boost::optional includeEmail, boost::optional includeIP, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getModerationComment( + utility::string_t tenantId, + utility::string_t commentId + + , const GetModerationCommentOptions& options +) const { + auto includeEmail = options.includeEmail; + auto includeIP = options.includeIP; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/comment/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/comment/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; @@ -1735,6 +1808,9 @@ pplx::task> ModerationApi::getMode std::unordered_set localVarConsumeHttpContentTypes; + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); + } if (includeEmail) { localVarQueryParams[utility::conversions::to_string_t("includeEmail")] = ApiClient::parameterToString(*includeEmail); @@ -1743,10 +1819,6 @@ pplx::task> ModerationApi::getMode { localVarQueryParams[utility::conversions::to_string_t("includeIP")] = ApiClient::parameterToString(*includeIP); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -1832,12 +1904,16 @@ pplx::task> ModerationApi::getMode return localVarResult; }); } -pplx::task> ModerationApi::getModerationCommentText(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getModerationCommentText( + utility::string_t tenantId, + utility::string_t commentId + , boost::optional sso +) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/get-comment-text/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; @@ -1874,9 +1950,8 @@ pplx::task> ModerationApi::getModeration std::unordered_set localVarConsumeHttpContentTypes; - if (tenantId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } if (sso) { @@ -1963,12 +2038,21 @@ pplx::task> ModerationApi::getModeration return localVarResult; }); } -pplx::task> ModerationApi::getPreBanSummary(utility::string_t commentId, boost::optional includeByUserIdAndEmail, boost::optional includeByIP, boost::optional includeByEmailDomain, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getPreBanSummary( + utility::string_t tenantId, + utility::string_t commentId + + , const GetPreBanSummaryOptions& options +) const { + auto includeByUserIdAndEmail = options.includeByUserIdAndEmail; + auto includeByIP = options.includeByIP; + auto includeByEmailDomain = options.includeByEmailDomain; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/pre-ban-summary/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; @@ -2005,6 +2089,9 @@ pplx::task> ModerationApi::getPreBanSummary(utili std::unordered_set localVarConsumeHttpContentTypes; + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); + } if (includeByUserIdAndEmail) { localVarQueryParams[utility::conversions::to_string_t("includeByUserIdAndEmail")] = ApiClient::parameterToString(*includeByUserIdAndEmail); @@ -2017,10 +2104,6 @@ pplx::task> ModerationApi::getPreBanSummary(utili { localVarQueryParams[utility::conversions::to_string_t("includeByEmailDomain")] = ApiClient::parameterToString(*includeByEmailDomain); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -2106,12 +2189,20 @@ pplx::task> ModerationApi::getPreBanSummary(utili return localVarResult; }); } -pplx::task> ModerationApi::getSearchCommentsSummary(boost::optional value, boost::optional filters, boost::optional searchFilters, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getSearchCommentsSummary( + utility::string_t tenantId + + , const GetSearchCommentsSummaryOptions& options +) const { + auto value = options.value; + auto filters = options.filters; + auto searchFilters = options.searchFilters; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/search/comments/summary"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/search/comments/summary"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -2147,6 +2238,9 @@ pplx::task> ModerationApi::getS std::unordered_set localVarConsumeHttpContentTypes; + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); + } if (value) { localVarQueryParams[utility::conversions::to_string_t("value")] = ApiClient::parameterToString(*value); @@ -2159,10 +2253,6 @@ pplx::task> ModerationApi::getS { localVarQueryParams[utility::conversions::to_string_t("searchFilters")] = ApiClient::parameterToString(*searchFilters); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -2248,12 +2338,18 @@ pplx::task> ModerationApi::getS return localVarResult; }); } -pplx::task> ModerationApi::getSearchPages(boost::optional value, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getSearchPages( + utility::string_t tenantId + + , const GetSearchPagesOptions& options +) const { + auto value = options.value; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/search/pages"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/search/pages"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -2289,13 +2385,12 @@ pplx::task> ModerationApi::getSear std::unordered_set localVarConsumeHttpContentTypes; - if (value) { - localVarQueryParams[utility::conversions::to_string_t("value")] = ApiClient::parameterToString(*value); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) + if (value) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("value")] = ApiClient::parameterToString(*value); } if (sso) { @@ -2382,12 +2477,18 @@ pplx::task> ModerationApi::getSear return localVarResult; }); } -pplx::task> ModerationApi::getSearchSites(boost::optional value, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getSearchSites( + utility::string_t tenantId + + , const GetSearchSitesOptions& options +) const { + auto value = options.value; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/search/sites"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/search/sites"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -2423,13 +2524,12 @@ pplx::task> ModerationApi::getSear std::unordered_set localVarConsumeHttpContentTypes; - if (value) { - localVarQueryParams[utility::conversions::to_string_t("value")] = ApiClient::parameterToString(*value); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) + if (value) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("value")] = ApiClient::parameterToString(*value); } if (sso) { @@ -2516,12 +2616,18 @@ pplx::task> ModerationApi::getSear return localVarResult; }); } -pplx::task> ModerationApi::getSearchSuggest(boost::optional textSearch, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getSearchSuggest( + utility::string_t tenantId + + , const GetSearchSuggestOptions& options +) const { + auto textSearch = options.textSearch; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/search/suggest"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/search/suggest"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -2557,13 +2663,12 @@ pplx::task> ModerationApi::getSearchS std::unordered_set localVarConsumeHttpContentTypes; - if (textSearch) { - localVarQueryParams[utility::conversions::to_string_t("text-search")] = ApiClient::parameterToString(*textSearch); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) + if (textSearch) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("text-search")] = ApiClient::parameterToString(*textSearch); } if (sso) { @@ -2650,12 +2755,18 @@ pplx::task> ModerationApi::getSearchS return localVarResult; }); } -pplx::task> ModerationApi::getSearchUsers(boost::optional value, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getSearchUsers( + utility::string_t tenantId + + , const GetSearchUsersOptions& options +) const { + auto value = options.value; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/search/users"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/search/users"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -2691,13 +2802,12 @@ pplx::task> ModerationApi::getSear std::unordered_set localVarConsumeHttpContentTypes; - if (value) { - localVarQueryParams[utility::conversions::to_string_t("value")] = ApiClient::parameterToString(*value); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) + if (value) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("value")] = ApiClient::parameterToString(*value); } if (sso) { @@ -2784,12 +2894,18 @@ pplx::task> ModerationApi::getSear return localVarResult; }); } -pplx::task> ModerationApi::getTrustFactor(boost::optional userId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getTrustFactor( + utility::string_t tenantId + + , const GetTrustFactorOptions& options +) const { + auto userId = options.userId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/get-trust-factor"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/get-trust-factor"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -2825,13 +2941,12 @@ pplx::task> ModerationApi::getTrustF std::unordered_set localVarConsumeHttpContentTypes; - if (userId) { - localVarQueryParams[utility::conversions::to_string_t("userId")] = ApiClient::parameterToString(*userId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) + if (userId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("userId")] = ApiClient::parameterToString(*userId); } if (sso) { @@ -2918,12 +3033,15 @@ pplx::task> ModerationApi::getTrustF return localVarResult; }); } -pplx::task> ModerationApi::getUserBanPreference(boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getUserBanPreference( + utility::string_t tenantId + , boost::optional sso +) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/user-ban-preference"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/user-ban-preference"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -2959,9 +3077,8 @@ pplx::task> Moderation std::unordered_set localVarConsumeHttpContentTypes; - if (tenantId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } if (sso) { @@ -3048,12 +3165,18 @@ pplx::task> Moderation return localVarResult; }); } -pplx::task> ModerationApi::getUserInternalProfile(boost::optional commentId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getUserInternalProfile( + utility::string_t tenantId + + , const GetUserInternalProfileOptions& options +) const { + auto commentId = options.commentId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/get-user-internal-profile"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/get-user-internal-profile"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -3089,13 +3212,12 @@ pplx::task> ModerationApi::getUs std::unordered_set localVarConsumeHttpContentTypes; - if (commentId) { - localVarQueryParams[utility::conversions::to_string_t("commentId")] = ApiClient::parameterToString(*commentId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) + if (commentId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("commentId")] = ApiClient::parameterToString(*commentId); } if (sso) { @@ -3182,8 +3304,16 @@ pplx::task> ModerationApi::getUs return localVarResult; }); } -pplx::task> ModerationApi::postAdjustCommentVotes(utility::string_t commentId, std::shared_ptr adjustCommentVotesParams, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postAdjustCommentVotes( + utility::string_t tenantId, + utility::string_t commentId, + std::shared_ptr adjustCommentVotesParams + + , const PostAdjustCommentVotesOptions& options +) const { + auto broadcastId = options.broadcastId; + auto sso = options.sso; // verify the required parameter 'adjustCommentVotesParams' is set if (adjustCommentVotesParams == nullptr) @@ -3193,7 +3323,7 @@ pplx::task> ModerationApi::postAdjustCommen std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; @@ -3231,13 +3361,12 @@ pplx::task> ModerationApi::postAdjustCommen std::unordered_set localVarConsumeHttpContentTypes; localVarConsumeHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); - if (broadcastId) { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) + if (broadcastId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); } if (sso) { @@ -3254,7 +3383,6 @@ pplx::task> ModerationApi::postAdjustCommen web::json::value localVarJson; localVarJson = ModelBase::toJson(adjustCommentVotesParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -3340,12 +3468,22 @@ pplx::task> ModerationApi::postAdjustCommen return localVarResult; }); } -pplx::task> ModerationApi::postApiExport(boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional sorts, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postApiExport( + utility::string_t tenantId + + , const PostApiExportOptions& options +) const { + auto textSearch = options.textSearch; + auto byIPFromComment = options.byIPFromComment; + auto filters = options.filters; + auto searchFilters = options.searchFilters; + auto sorts = options.sorts; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/api/export"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/api/export"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -3381,6 +3519,9 @@ pplx::task> ModerationApi::postApiExpo std::unordered_set localVarConsumeHttpContentTypes; + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); + } if (textSearch) { localVarQueryParams[utility::conversions::to_string_t("text-search")] = ApiClient::parameterToString(*textSearch); @@ -3401,10 +3542,6 @@ pplx::task> ModerationApi::postApiExpo { localVarQueryParams[utility::conversions::to_string_t("sorts")] = ApiClient::parameterToString(*sorts); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -3490,12 +3627,26 @@ pplx::task> ModerationApi::postApiExpo return localVarResult; }); } -pplx::task> ModerationApi::postBanUserFromComment(utility::string_t commentId, boost::optional banEmail, boost::optional banEmailDomain, boost::optional banIP, boost::optional deleteAllUsersComments, boost::optional bannedUntil, boost::optional isShadowBan, boost::optional updateId, boost::optional banReason, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postBanUserFromComment( + utility::string_t tenantId, + utility::string_t commentId + + , const PostBanUserFromCommentOptions& options +) const { + auto banEmail = options.banEmail; + auto banEmailDomain = options.banEmailDomain; + auto banIP = options.banIP; + auto deleteAllUsersComments = options.deleteAllUsersComments; + auto bannedUntil = options.bannedUntil; + auto isShadowBan = options.isShadowBan; + auto updateId = options.updateId; + auto banReason = options.banReason; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; @@ -3532,6 +3683,9 @@ pplx::task> ModerationApi::postBanUser std::unordered_set localVarConsumeHttpContentTypes; + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); + } if (banEmail) { localVarQueryParams[utility::conversions::to_string_t("banEmail")] = ApiClient::parameterToString(*banEmail); @@ -3564,10 +3718,6 @@ pplx::task> ModerationApi::postBanUser { localVarQueryParams[utility::conversions::to_string_t("banReason")] = ApiClient::parameterToString(*banReason); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -3653,7 +3803,11 @@ pplx::task> ModerationApi::postBanUser return localVarResult; }); } -pplx::task> ModerationApi::postBanUserUndo(std::shared_ptr banUserUndoParams, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postBanUserUndo( + utility::string_t tenantId, + std::shared_ptr banUserUndoParams + , boost::optional sso +) const { // verify the required parameter 'banUserUndoParams' is set @@ -3664,7 +3818,7 @@ pplx::task> ModerationApi::postBanUserUndo(std std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/ban-user/undo"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/ban-user/undo"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -3701,9 +3855,8 @@ pplx::task> ModerationApi::postBanUserUndo(std std::unordered_set localVarConsumeHttpContentTypes; localVarConsumeHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); - if (tenantId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } if (sso) { @@ -3720,7 +3873,6 @@ pplx::task> ModerationApi::postBanUserUndo(std web::json::value localVarJson; localVarJson = ModelBase::toJson(banUserUndoParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -3806,8 +3958,17 @@ pplx::task> ModerationApi::postBanUserUndo(std return localVarResult; }); } -pplx::task> ModerationApi::postBulkPreBanSummary(std::shared_ptr bulkPreBanParams, boost::optional includeByUserIdAndEmail, boost::optional includeByIP, boost::optional includeByEmailDomain, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postBulkPreBanSummary( + utility::string_t tenantId, + std::shared_ptr bulkPreBanParams + + , const PostBulkPreBanSummaryOptions& options +) const { + auto includeByUserIdAndEmail = options.includeByUserIdAndEmail; + auto includeByIP = options.includeByIP; + auto includeByEmailDomain = options.includeByEmailDomain; + auto sso = options.sso; // verify the required parameter 'bulkPreBanParams' is set if (bulkPreBanParams == nullptr) @@ -3817,7 +3978,7 @@ pplx::task> ModerationApi::postBulkPreBanSumm std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/bulk-pre-ban-summary"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -3854,6 +4015,9 @@ pplx::task> ModerationApi::postBulkPreBanSumm std::unordered_set localVarConsumeHttpContentTypes; localVarConsumeHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); + } if (includeByUserIdAndEmail) { localVarQueryParams[utility::conversions::to_string_t("includeByUserIdAndEmail")] = ApiClient::parameterToString(*includeByUserIdAndEmail); @@ -3866,10 +4030,6 @@ pplx::task> ModerationApi::postBulkPreBanSumm { localVarQueryParams[utility::conversions::to_string_t("includeByEmailDomain")] = ApiClient::parameterToString(*includeByEmailDomain); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -3885,7 +4045,6 @@ pplx::task> ModerationApi::postBulkPreBanSumm web::json::value localVarJson; localVarJson = ModelBase::toJson(bulkPreBanParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -3971,7 +4130,11 @@ pplx::task> ModerationApi::postBulkPreBanSumm return localVarResult; }); } -pplx::task> ModerationApi::postCommentsByIds(std::shared_ptr commentsByIdsParams, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postCommentsByIds( + utility::string_t tenantId, + std::shared_ptr commentsByIdsParams + , boost::optional sso +) const { // verify the required parameter 'commentsByIdsParams' is set @@ -3982,7 +4145,7 @@ pplx::task> ModerationApi::p std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/comments-by-ids"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/comments-by-ids"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -4019,9 +4182,8 @@ pplx::task> ModerationApi::p std::unordered_set localVarConsumeHttpContentTypes; localVarConsumeHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); - if (tenantId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } if (sso) { @@ -4038,7 +4200,6 @@ pplx::task> ModerationApi::p web::json::value localVarJson; localVarJson = ModelBase::toJson(commentsByIdsParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -4124,12 +4285,19 @@ pplx::task> ModerationApi::p return localVarResult; }); } -pplx::task> ModerationApi::postFlagComment(utility::string_t commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postFlagComment( + utility::string_t tenantId, + utility::string_t commentId + + , const PostFlagCommentOptions& options +) const { + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/flag-comment/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; @@ -4166,13 +4334,12 @@ pplx::task> ModerationApi::postFlagComment(uti std::unordered_set localVarConsumeHttpContentTypes; - if (broadcastId) { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) + if (broadcastId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); } if (sso) { @@ -4259,12 +4426,19 @@ pplx::task> ModerationApi::postFlagComment(uti return localVarResult; }); } -pplx::task> ModerationApi::postRemoveComment(utility::string_t commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postRemoveComment( + utility::string_t tenantId, + utility::string_t commentId + + , const PostRemoveCommentOptions& options +) const { + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/remove-comment/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; @@ -4301,13 +4475,12 @@ pplx::task> ModerationApi::postRemove std::unordered_set localVarConsumeHttpContentTypes; - if (broadcastId) { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) + if (broadcastId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); } if (sso) { @@ -4373,7 +4546,7 @@ pplx::task> ModerationApi::postRemove }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PostRemoveCommentResponse()); + std::shared_ptr localVarResult(new PostRemoveCommentApiResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4394,12 +4567,19 @@ pplx::task> ModerationApi::postRemove return localVarResult; }); } -pplx::task> ModerationApi::postRestoreDeletedComment(utility::string_t commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postRestoreDeletedComment( + utility::string_t tenantId, + utility::string_t commentId + + , const PostRestoreDeletedCommentOptions& options +) const { + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; @@ -4436,13 +4616,12 @@ pplx::task> ModerationApi::postRestoreDeletedC std::unordered_set localVarConsumeHttpContentTypes; - if (broadcastId) { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) + if (broadcastId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); } if (sso) { @@ -4529,12 +4708,20 @@ pplx::task> ModerationApi::postRestoreDeletedC return localVarResult; }); } -pplx::task> ModerationApi::postSetCommentApprovalStatus(utility::string_t commentId, boost::optional approved, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postSetCommentApprovalStatus( + utility::string_t tenantId, + utility::string_t commentId + + , const PostSetCommentApprovalStatusOptions& options +) const { + auto approved = options.approved; + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; @@ -4571,6 +4758,9 @@ pplx::task> ModerationApi::postSetCo std::unordered_set localVarConsumeHttpContentTypes; + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); + } if (approved) { localVarQueryParams[utility::conversions::to_string_t("approved")] = ApiClient::parameterToString(*approved); @@ -4579,10 +4769,6 @@ pplx::task> ModerationApi::postSetCo { localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -4668,12 +4854,20 @@ pplx::task> ModerationApi::postSetCo return localVarResult; }); } -pplx::task> ModerationApi::postSetCommentReviewStatus(utility::string_t commentId, boost::optional reviewed, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postSetCommentReviewStatus( + utility::string_t tenantId, + utility::string_t commentId + + , const PostSetCommentReviewStatusOptions& options +) const { + auto reviewed = options.reviewed; + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/set-comment-review-status/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; @@ -4710,6 +4904,9 @@ pplx::task> ModerationApi::postSetCommentRevie std::unordered_set localVarConsumeHttpContentTypes; + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); + } if (reviewed) { localVarQueryParams[utility::conversions::to_string_t("reviewed")] = ApiClient::parameterToString(*reviewed); @@ -4718,10 +4915,6 @@ pplx::task> ModerationApi::postSetCommentRevie { localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -4807,12 +5000,21 @@ pplx::task> ModerationApi::postSetCommentRevie return localVarResult; }); } -pplx::task> ModerationApi::postSetCommentSpamStatus(utility::string_t commentId, boost::optional spam, boost::optional permNotSpam, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postSetCommentSpamStatus( + utility::string_t tenantId, + utility::string_t commentId + + , const PostSetCommentSpamStatusOptions& options +) const { + auto spam = options.spam; + auto permNotSpam = options.permNotSpam; + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; @@ -4849,6 +5051,9 @@ pplx::task> ModerationApi::postSetCommentSpamS std::unordered_set localVarConsumeHttpContentTypes; + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); + } if (spam) { localVarQueryParams[utility::conversions::to_string_t("spam")] = ApiClient::parameterToString(*spam); @@ -4861,10 +5066,6 @@ pplx::task> ModerationApi::postSetCommentSpamS { localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -4950,8 +5151,16 @@ pplx::task> ModerationApi::postSetCommentSpamS return localVarResult; }); } -pplx::task> ModerationApi::postSetCommentText(utility::string_t commentId, std::shared_ptr setCommentTextParams, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postSetCommentText( + utility::string_t tenantId, + utility::string_t commentId, + std::shared_ptr setCommentTextParams + + , const PostSetCommentTextOptions& options +) const { + auto broadcastId = options.broadcastId; + auto sso = options.sso; // verify the required parameter 'setCommentTextParams' is set if (setCommentTextParams == nullptr) @@ -4961,7 +5170,7 @@ pplx::task> ModerationApi::postSetCommen std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/set-comment-text/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; @@ -4999,13 +5208,12 @@ pplx::task> ModerationApi::postSetCommen std::unordered_set localVarConsumeHttpContentTypes; localVarConsumeHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); - if (broadcastId) { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) + if (broadcastId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); } if (sso) { @@ -5022,7 +5230,6 @@ pplx::task> ModerationApi::postSetCommen web::json::value localVarJson; localVarJson = ModelBase::toJson(setCommentTextParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -5108,12 +5315,19 @@ pplx::task> ModerationApi::postSetCommen return localVarResult; }); } -pplx::task> ModerationApi::postUnFlagComment(utility::string_t commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postUnFlagComment( + utility::string_t tenantId, + utility::string_t commentId + + , const PostUnFlagCommentOptions& options +) const { + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/un-flag-comment/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; @@ -5150,13 +5364,12 @@ pplx::task> ModerationApi::postUnFlagComment(u std::unordered_set localVarConsumeHttpContentTypes; - if (broadcastId) { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) + if (broadcastId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); } if (sso) { @@ -5243,12 +5456,20 @@ pplx::task> ModerationApi::postUnFlagComment(u return localVarResult; }); } -pplx::task> ModerationApi::postVote(utility::string_t commentId, boost::optional direction, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postVote( + utility::string_t tenantId, + utility::string_t commentId + + , const PostVoteOptions& options +) const { + auto direction = options.direction; + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/vote/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/vote/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; @@ -5285,6 +5506,9 @@ pplx::task> ModerationApi::postVote(utility::strin std::unordered_set localVarConsumeHttpContentTypes; + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); + } if (direction) { localVarQueryParams[utility::conversions::to_string_t("direction")] = ApiClient::parameterToString(*direction); @@ -5293,10 +5517,6 @@ pplx::task> ModerationApi::postVote(utility::strin { localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -5382,12 +5602,21 @@ pplx::task> ModerationApi::postVote(utility::strin return localVarResult; }); } -pplx::task> ModerationApi::putAwardBadge(utility::string_t badgeId, boost::optional userId, boost::optional commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::putAwardBadge( + utility::string_t tenantId, + utility::string_t badgeId + + , const PutAwardBadgeOptions& options +) const { + auto userId = options.userId; + auto commentId = options.commentId; + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/award-badge"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/award-badge"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -5423,6 +5652,9 @@ pplx::task> ModerationApi::putAwardBadge std::unordered_set localVarConsumeHttpContentTypes; + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); + } { localVarQueryParams[utility::conversions::to_string_t("badgeId")] = ApiClient::parameterToString(badgeId); } @@ -5438,10 +5670,6 @@ pplx::task> ModerationApi::putAwardBadge { localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -5527,12 +5755,16 @@ pplx::task> ModerationApi::putAwardBadge return localVarResult; }); } -pplx::task> ModerationApi::putCloseThread(utility::string_t urlId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::putCloseThread( + utility::string_t tenantId, + utility::string_t urlId + , boost::optional sso +) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/close-thread"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/close-thread"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -5569,11 +5801,10 @@ pplx::task> ModerationApi::putCloseThread(util std::unordered_set localVarConsumeHttpContentTypes; { - localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); } if (sso) { @@ -5660,12 +5891,21 @@ pplx::task> ModerationApi::putCloseThread(util return localVarResult; }); } -pplx::task> ModerationApi::putRemoveBadge(utility::string_t badgeId, boost::optional userId, boost::optional commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::putRemoveBadge( + utility::string_t tenantId, + utility::string_t badgeId + + , const PutRemoveBadgeOptions& options +) const { + auto userId = options.userId; + auto commentId = options.commentId; + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/remove-badge"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/remove-badge"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -5701,6 +5941,9 @@ pplx::task> ModerationApi::putRemoveBad std::unordered_set localVarConsumeHttpContentTypes; + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); + } { localVarQueryParams[utility::conversions::to_string_t("badgeId")] = ApiClient::parameterToString(badgeId); } @@ -5716,10 +5959,6 @@ pplx::task> ModerationApi::putRemoveBad { localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -5805,12 +6044,16 @@ pplx::task> ModerationApi::putRemoveBad return localVarResult; }); } -pplx::task> ModerationApi::putReopenThread(utility::string_t urlId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::putReopenThread( + utility::string_t tenantId, + utility::string_t urlId + , boost::optional sso +) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/reopen-thread"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/reopen-thread"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -5847,11 +6090,10 @@ pplx::task> ModerationApi::putReopenThread(uti std::unordered_set localVarConsumeHttpContentTypes; { - localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); } if (sso) { @@ -5938,12 +6180,19 @@ pplx::task> ModerationApi::putReopenThread(uti return localVarResult; }); } -pplx::task> ModerationApi::setTrustFactor(boost::optional userId, boost::optional trustFactor, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::setTrustFactor( + utility::string_t tenantId + + , const SetTrustFactorOptions& options +) const { + auto userId = options.userId; + auto trustFactor = options.trustFactor; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/set-trust-factor"); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/mod_api/set-trust-factor"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -5979,6 +6228,9 @@ pplx::task> ModerationApi::setTrustF std::unordered_set localVarConsumeHttpContentTypes; + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); + } if (userId) { localVarQueryParams[utility::conversions::to_string_t("userId")] = ApiClient::parameterToString(*userId); @@ -5987,10 +6239,6 @@ pplx::task> ModerationApi::setTrustF { localVarQueryParams[utility::conversions::to_string_t("trustFactor")] = ApiClient::parameterToString(*trustFactor); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); diff --git a/client/src/api/PublicApi.cpp b/client/src/api/PublicApi.cpp index f5eaff7..21b0ee2 100644 --- a/client/src/api/PublicApi.cpp +++ b/client/src/api/PublicApi.cpp @@ -35,7 +35,12 @@ PublicApi::~PublicApi() { } -pplx::task> PublicApi::blockFromCommentPublic(utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, boost::optional sso) const +pplx::task> PublicApi::blockFromCommentPublic( + utility::string_t tenantId, + utility::string_t commentId, + std::shared_ptr publicBlockFromCommentParams + , boost::optional sso +) const { // verify the required parameter 'publicBlockFromCommentParams' is set @@ -102,7 +107,6 @@ pplx::task> PublicApi::blockFromCommentPublic(util web::json::value localVarJson; localVarJson = ModelBase::toJson(publicBlockFromCommentParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -188,7 +192,11 @@ pplx::task> PublicApi::blockFromCommentPublic(util return localVarResult; }); } -pplx::task> PublicApi::checkedCommentsForBlocked(utility::string_t tenantId, utility::string_t commentIds, boost::optional sso) const +pplx::task> PublicApi::checkedCommentsForBlocked( + utility::string_t tenantId, + utility::string_t commentIds + , boost::optional sso +) const { @@ -320,8 +328,17 @@ pplx::task> PublicApi::checkedComm return localVarResult; }); } -pplx::task> PublicApi::createCommentPublic(utility::string_t tenantId, utility::string_t urlId, utility::string_t broadcastId, std::shared_ptr commentData, boost::optional sessionId, boost::optional sso) const +pplx::task> PublicApi::createCommentPublic( + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t broadcastId, + std::shared_ptr commentData + + , const CreateCommentPublicOptions& options +) const { + auto sessionId = options.sessionId; + auto sso = options.sso; // verify the required parameter 'commentData' is set if (commentData == nullptr) @@ -394,7 +411,6 @@ pplx::task> PublicApi::createC web::json::value localVarJson; localVarJson = ModelBase::toJson(commentData); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -480,8 +496,15 @@ pplx::task> PublicApi::createC return localVarResult; }); } -pplx::task> PublicApi::createFeedPostPublic(utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, boost::optional sso) const +pplx::task> PublicApi::createFeedPostPublic( + utility::string_t tenantId, + std::shared_ptr createFeedPostParams + + , const CreateFeedPostPublicOptions& options +) const { + auto broadcastId = options.broadcastId; + auto sso = options.sso; // verify the required parameter 'createFeedPostParams' is set if (createFeedPostParams == nullptr) @@ -548,7 +571,6 @@ pplx::task> PublicApi::createFeedPostPub web::json::value localVarJson; localVarJson = ModelBase::toJson(createFeedPostParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -634,7 +656,11 @@ pplx::task> PublicApi::createFeedPostPub return localVarResult; }); } -pplx::task> PublicApi::createV1PageReact(utility::string_t tenantId, utility::string_t urlId, boost::optional title) const +pplx::task> PublicApi::createV1PageReact( + utility::string_t tenantId, + utility::string_t urlId + , boost::optional title +) const { @@ -764,7 +790,12 @@ pplx::task> PublicApi::createV1PageReact(util return localVarResult; }); } -pplx::task> PublicApi::createV2PageReact(utility::string_t tenantId, utility::string_t urlId, utility::string_t id, boost::optional title) const +pplx::task> PublicApi::createV2PageReact( + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t id + , boost::optional title +) const { @@ -897,8 +928,16 @@ pplx::task> PublicApi::createV2PageReact(util return localVarResult; }); } -pplx::task> PublicApi::deleteCommentPublic(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional editKey, boost::optional sso) const +pplx::task> PublicApi::deleteCommentPublic( + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t broadcastId + + , const DeleteCommentPublicOptions& options +) const { + auto editKey = options.editKey; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1032,8 +1071,18 @@ pplx::task> PublicApi::deleteCom return localVarResult; }); } -pplx::task> PublicApi::deleteCommentVote(utility::string_t tenantId, utility::string_t commentId, utility::string_t voteId, utility::string_t urlId, utility::string_t broadcastId, boost::optional editKey, boost::optional sso) const +pplx::task> PublicApi::deleteCommentVote( + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t voteId, + utility::string_t urlId, + utility::string_t broadcastId + + , const DeleteCommentVoteOptions& options +) const { + auto editKey = options.editKey; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1171,8 +1220,15 @@ pplx::task> PublicApi::deleteCommentVote(uti return localVarResult; }); } -pplx::task> PublicApi::deleteFeedPostPublic(utility::string_t tenantId, utility::string_t postId, boost::optional broadcastId, boost::optional sso) const +pplx::task> PublicApi::deleteFeedPostPublic( + utility::string_t tenantId, + utility::string_t postId + + , const DeleteFeedPostPublicOptions& options +) const { + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1303,7 +1359,11 @@ pplx::task> PublicApi::deleteFeedP return localVarResult; }); } -pplx::task> PublicApi::deleteV1PageReact(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> PublicApi::deleteV1PageReact( + utility::string_t tenantId, + utility::string_t urlId + +) const { @@ -1429,7 +1489,12 @@ pplx::task> PublicApi::deleteV1PageReact(util return localVarResult; }); } -pplx::task> PublicApi::deleteV2PageReact(utility::string_t tenantId, utility::string_t urlId, utility::string_t id) const +pplx::task> PublicApi::deleteV2PageReact( + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t id + +) const { @@ -1558,7 +1623,12 @@ pplx::task> PublicApi::deleteV2PageReact(util return localVarResult; }); } -pplx::task> PublicApi::flagCommentPublic(utility::string_t tenantId, utility::string_t commentId, bool isFlagged, boost::optional sso) const +pplx::task> PublicApi::flagCommentPublic( + utility::string_t tenantId, + utility::string_t commentId, + bool isFlagged + , boost::optional sso +) const { @@ -1691,8 +1761,15 @@ pplx::task> PublicApi::flagCommentPublic(utili return localVarResult; }); } -pplx::task> PublicApi::getCommentText(utility::string_t tenantId, utility::string_t commentId, boost::optional editKey, boost::optional sso) const +pplx::task> PublicApi::getCommentText( + utility::string_t tenantId, + utility::string_t commentId + + , const GetCommentTextOptions& options +) const { + auto editKey = options.editKey; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1823,7 +1900,12 @@ pplx::task> PublicApi::getComme return localVarResult; }); } -pplx::task> PublicApi::getCommentVoteUserNames(utility::string_t tenantId, utility::string_t commentId, int32_t dir, boost::optional sso) const +pplx::task> PublicApi::getCommentVoteUserNames( + utility::string_t tenantId, + utility::string_t commentId, + int32_t dir + , boost::optional sso +) const { @@ -1954,8 +2036,18 @@ pplx::task> PublicApi::g return localVarResult; }); } -pplx::task> PublicApi::getCommentsForUser(boost::optional userId, boost::optional> direction, boost::optional repliesToUserId, boost::optional page, boost::optional includei10n, boost::optional locale, boost::optional isCrawler) const +pplx::task> PublicApi::getCommentsForUser( + + const GetCommentsForUserOptions& options +) const { + auto userId = options.userId; + auto direction = options.direction; + auto repliesToUserId = options.repliesToUserId; + auto page = options.page; + auto includei10n = options.includei10n; + auto locale = options.locale; + auto isCrawler = options.isCrawler; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2104,8 +2196,39 @@ pplx::task> PublicApi::getCommentsFo return localVarResult; }); } -pplx::task> PublicApi::getCommentsPublic(utility::string_t tenantId, utility::string_t urlId, boost::optional page, boost::optional> direction, boost::optional sso, boost::optional skip, boost::optional skipChildren, boost::optional limit, boost::optional limitChildren, boost::optional countChildren, boost::optional fetchPageForCommentId, boost::optional includeConfig, boost::optional countAll, boost::optional includei10n, boost::optional locale, boost::optional modules, boost::optional isCrawler, boost::optional includeNotificationCount, boost::optional asTree, boost::optional maxTreeDepth, boost::optional useFullTranslationIds, boost::optional parentId, boost::optional searchText, boost::optional> hashTags, boost::optional userId, boost::optional customConfigStr, boost::optional afterCommentId, boost::optional beforeCommentId) const +pplx::task> PublicApi::getCommentsPublic( + utility::string_t tenantId, + utility::string_t urlId + + , const GetCommentsPublicOptions& options +) const { + auto page = options.page; + auto direction = options.direction; + auto sso = options.sso; + auto skip = options.skip; + auto skipChildren = options.skipChildren; + auto limit = options.limit; + auto limitChildren = options.limitChildren; + auto countChildren = options.countChildren; + auto fetchPageForCommentId = options.fetchPageForCommentId; + auto includeConfig = options.includeConfig; + auto countAll = options.countAll; + auto includei10n = options.includei10n; + auto locale = options.locale; + auto modules = options.modules; + auto isCrawler = options.isCrawler; + auto includeNotificationCount = options.includeNotificationCount; + auto asTree = options.asTree; + auto maxTreeDepth = options.maxTreeDepth; + auto useFullTranslationIds = options.useFullTranslationIds; + auto parentId = options.parentId; + auto searchText = options.searchText; + auto hashTags = options.hashTags; + auto userId = options.userId; + auto customConfigStr = options.customConfigStr; + auto afterCommentId = options.afterCommentId; + auto beforeCommentId = options.beforeCommentId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2334,7 +2457,13 @@ pplx::task> Publ return localVarResult; }); } -pplx::task> PublicApi::getEventLog(utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, int64_t startTime, boost::optional endTime) const +pplx::task> PublicApi::getEventLog( + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t userIdWS, + int64_t startTime + , boost::optional endTime +) const { @@ -2470,8 +2599,18 @@ pplx::task> PublicApi::getEventLog(utility: return localVarResult; }); } -pplx::task> PublicApi::getFeedPostsPublic(utility::string_t tenantId, boost::optional afterId, boost::optional limit, boost::optional> tags, boost::optional sso, boost::optional isCrawler, boost::optional includeUserInfo) const +pplx::task> PublicApi::getFeedPostsPublic( + utility::string_t tenantId + + , const GetFeedPostsPublicOptions& options +) const { + auto afterId = options.afterId; + auto limit = options.limit; + auto tags = options.tags; + auto sso = options.sso; + auto isCrawler = options.isCrawler; + auto includeUserInfo = options.includeUserInfo; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2617,7 +2756,11 @@ pplx::task> PublicApi::getFeedPostsPubl return localVarResult; }); } -pplx::task> PublicApi::getFeedPostsStats(utility::string_t tenantId, std::vector postIds, boost::optional sso) const +pplx::task> PublicApi::getFeedPostsStats( + utility::string_t tenantId, + std::vector postIds + , boost::optional sso +) const { @@ -2747,7 +2890,11 @@ pplx::task> PublicApi::getFeedPostsStats return localVarResult; }); } -pplx::task> PublicApi::getGifLarge(utility::string_t tenantId, utility::string_t largeInternalURLSanitized) const +pplx::task> PublicApi::getGifLarge( + utility::string_t tenantId, + utility::string_t largeInternalURLSanitized + +) const { @@ -2873,8 +3020,16 @@ pplx::task> PublicApi::getGifLarge(utility: return localVarResult; }); } -pplx::task> PublicApi::getGifsSearch(utility::string_t tenantId, utility::string_t search, boost::optional locale, boost::optional rating, boost::optional page) const +pplx::task> PublicApi::getGifsSearch( + utility::string_t tenantId, + utility::string_t search + + , const GetGifsSearchOptions& options +) const { + auto locale = options.locale; + auto rating = options.rating; + auto page = options.page; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3011,8 +3166,15 @@ pplx::task> PublicApi::getGifsSearch(util return localVarResult; }); } -pplx::task> PublicApi::getGifsTrending(utility::string_t tenantId, boost::optional locale, boost::optional rating, boost::optional page) const +pplx::task> PublicApi::getGifsTrending( + utility::string_t tenantId + + , const GetGifsTrendingOptions& options +) const { + auto locale = options.locale; + auto rating = options.rating; + auto page = options.page; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3146,7 +3308,13 @@ pplx::task> PublicApi::getGifsTrending( return localVarResult; }); } -pplx::task> PublicApi::getGlobalEventLog(utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, int64_t startTime, boost::optional endTime) const +pplx::task> PublicApi::getGlobalEventLog( + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t userIdWS, + int64_t startTime + , boost::optional endTime +) const { @@ -3282,8 +3450,15 @@ pplx::task> PublicApi::getGlobalEventLog(ut return localVarResult; }); } -pplx::task> PublicApi::getOfflineUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional afterName, boost::optional afterUserId) const +pplx::task> PublicApi::getOfflineUsers( + utility::string_t tenantId, + utility::string_t urlId + + , const GetOfflineUsersOptions& options +) const { + auto afterName = options.afterName; + auto afterUserId = options.afterUserId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3416,8 +3591,15 @@ pplx::task> PublicApi::getOfflineUsers return localVarResult; }); } -pplx::task> PublicApi::getOnlineUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional afterName, boost::optional afterUserId) const +pplx::task> PublicApi::getOnlineUsers( + utility::string_t tenantId, + utility::string_t urlId + + , const GetOnlineUsersOptions& options +) const { + auto afterName = options.afterName; + auto afterUserId = options.afterUserId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3550,8 +3732,17 @@ pplx::task> PublicApi::getOnlineUsers(u return localVarResult; }); } -pplx::task> PublicApi::getPagesPublic(utility::string_t tenantId, boost::optional cursor, boost::optional limit, boost::optional q, boost::optional> sortBy, boost::optional hasComments) const +pplx::task> PublicApi::getPagesPublic( + utility::string_t tenantId + + , const GetPagesPublicOptions& options +) const { + auto cursor = options.cursor; + auto limit = options.limit; + auto q = options.q; + auto sortBy = options.sortBy; + auto hasComments = options.hasComments; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3693,8 +3884,15 @@ pplx::task> PublicApi::getPagesPublic(ut return localVarResult; }); } -pplx::task> PublicApi::getTranslations(utility::string_t r_namespace, utility::string_t component, boost::optional locale, boost::optional useFullTranslationIds) const +pplx::task> PublicApi::getTranslations( + utility::string_t r_namespace, + utility::string_t component + + , const GetTranslationsOptions& options +) const { + auto locale = options.locale; + auto useFullTranslationIds = options.useFullTranslationIds; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3825,7 +4023,10 @@ pplx::task> PublicApi::getTranslations( return localVarResult; }); } -pplx::task> PublicApi::getUserNotificationCount(utility::string_t tenantId, boost::optional sso) const +pplx::task> PublicApi::getUserNotificationCount( + utility::string_t tenantId + , boost::optional sso +) const { @@ -3954,8 +4155,23 @@ pplx::task> PublicApi::getUser return localVarResult; }); } -pplx::task> PublicApi::getUserNotifications(utility::string_t tenantId, boost::optional urlId, boost::optional pageSize, boost::optional afterId, boost::optional includeContext, boost::optional afterCreatedAt, boost::optional unreadOnly, boost::optional dmOnly, boost::optional noDm, boost::optional includeTranslations, boost::optional includeTenantNotifications, boost::optional sso) const +pplx::task> PublicApi::getUserNotifications( + utility::string_t tenantId + + , const GetUserNotificationsOptions& options +) const { + auto urlId = options.urlId; + auto pageSize = options.pageSize; + auto afterId = options.afterId; + auto includeContext = options.includeContext; + auto afterCreatedAt = options.afterCreatedAt; + auto unreadOnly = options.unreadOnly; + auto dmOnly = options.dmOnly; + auto noDm = options.noDm; + auto includeTranslations = options.includeTranslations; + auto includeTenantNotifications = options.includeTenantNotifications; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4123,7 +4339,12 @@ pplx::task> PublicApi::getUserNotifi return localVarResult; }); } -pplx::task> PublicApi::getUserPresenceStatuses(utility::string_t tenantId, utility::string_t urlIdWS, utility::string_t userIds) const +pplx::task> PublicApi::getUserPresenceStatuses( + utility::string_t tenantId, + utility::string_t urlIdWS, + utility::string_t userIds + +) const { @@ -4254,8 +4475,14 @@ pplx::task> PublicApi::getUserP return localVarResult; }); } -pplx::task> PublicApi::getUserReactsPublic(utility::string_t tenantId, boost::optional> postIds, boost::optional sso) const +pplx::task> PublicApi::getUserReactsPublic( + utility::string_t tenantId + + , const GetUserReactsPublicOptions& options +) const { + auto postIds = options.postIds; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4385,7 +4612,11 @@ pplx::task> PublicApi::getUserReactsPublic(u return localVarResult; }); } -pplx::task> PublicApi::getUsersInfo(utility::string_t tenantId, utility::string_t ids) const +pplx::task> PublicApi::getUsersInfo( + utility::string_t tenantId, + utility::string_t ids + +) const { @@ -4511,7 +4742,11 @@ pplx::task> PublicApi::getUsersInfo(utili return localVarResult; }); } -pplx::task> PublicApi::getV1PageLikes(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> PublicApi::getV1PageLikes( + utility::string_t tenantId, + utility::string_t urlId + +) const { @@ -4637,7 +4872,12 @@ pplx::task> PublicApi::getV1PageLikes(utility::s return localVarResult; }); } -pplx::task> PublicApi::getV2PageReactUsers(utility::string_t tenantId, utility::string_t urlId, utility::string_t id) const +pplx::task> PublicApi::getV2PageReactUsers( + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t id + +) const { @@ -4766,7 +5006,11 @@ pplx::task> PublicApi::getV2PageRea return localVarResult; }); } -pplx::task> PublicApi::getV2PageReacts(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> PublicApi::getV2PageReacts( + utility::string_t tenantId, + utility::string_t urlId + +) const { @@ -4892,7 +5136,12 @@ pplx::task> PublicApi::getV2PageReacts(utility: return localVarResult; }); } -pplx::task> PublicApi::lockComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const +pplx::task> PublicApi::lockComment( + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t broadcastId + , boost::optional sso +) const { @@ -5023,7 +5272,9 @@ pplx::task> PublicApi::lockComment(utility::st return localVarResult; }); } -pplx::task> PublicApi::logoutPublic() const +pplx::task> PublicApi::logoutPublic( + +) const { @@ -5145,7 +5396,12 @@ pplx::task> PublicApi::logoutPublic() const return localVarResult; }); } -pplx::task> PublicApi::pinComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const +pplx::task> PublicApi::pinComment( + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t broadcastId + , boost::optional sso +) const { @@ -5276,8 +5532,17 @@ pplx::task> PublicApi::pinCommen return localVarResult; }); } -pplx::task> PublicApi::reactFeedPostPublic(utility::string_t tenantId, utility::string_t postId, std::shared_ptr reactBodyParams, boost::optional isUndo, boost::optional broadcastId, boost::optional sso) const +pplx::task> PublicApi::reactFeedPostPublic( + utility::string_t tenantId, + utility::string_t postId, + std::shared_ptr reactBodyParams + + , const ReactFeedPostPublicOptions& options +) const { + auto isUndo = options.isUndo; + auto broadcastId = options.broadcastId; + auto sso = options.sso; // verify the required parameter 'reactBodyParams' is set if (reactBodyParams == nullptr) @@ -5349,7 +5614,6 @@ pplx::task> PublicApi::reactFeedPostPubli web::json::value localVarJson; localVarJson = ModelBase::toJson(reactBodyParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -5435,7 +5699,10 @@ pplx::task> PublicApi::reactFeedPostPubli return localVarResult; }); } -pplx::task> PublicApi::resetUserNotificationCount(utility::string_t tenantId, boost::optional sso) const +pplx::task> PublicApi::resetUserNotificationCount( + utility::string_t tenantId + , boost::optional sso +) const { @@ -5564,8 +5831,18 @@ pplx::task> PublicApi::resetUser return localVarResult; }); } -pplx::task> PublicApi::resetUserNotifications(utility::string_t tenantId, boost::optional afterId, boost::optional afterCreatedAt, boost::optional unreadOnly, boost::optional dmOnly, boost::optional noDm, boost::optional sso) const +pplx::task> PublicApi::resetUserNotifications( + utility::string_t tenantId + + , const ResetUserNotificationsOptions& options +) const { + auto afterId = options.afterId; + auto afterCreatedAt = options.afterCreatedAt; + auto unreadOnly = options.unreadOnly; + auto dmOnly = options.dmOnly; + auto noDm = options.noDm; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5713,8 +5990,17 @@ pplx::task> PublicApi::resetUser return localVarResult; }); } -pplx::task> PublicApi::searchUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional usernameStartsWith, boost::optional> mentionGroupIds, boost::optional sso, boost::optional searchSection) const +pplx::task> PublicApi::searchUsers( + utility::string_t tenantId, + utility::string_t urlId + + , const SearchUsersOptions& options +) const { + auto usernameStartsWith = options.usernameStartsWith; + auto mentionGroupIds = options.mentionGroupIds; + auto sso = options.sso; + auto searchSection = options.searchSection; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5855,8 +6141,17 @@ pplx::task> PublicApi::searchUsers(utility::s return localVarResult; }); } -pplx::task> PublicApi::setCommentText(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, std::shared_ptr commentTextUpdateRequest, boost::optional editKey, boost::optional sso) const +pplx::task> PublicApi::setCommentText( + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t broadcastId, + std::shared_ptr commentTextUpdateRequest + + , const SetCommentTextOptions& options +) const { + auto editKey = options.editKey; + auto sso = options.sso; // verify the required parameter 'commentTextUpdateRequest' is set if (commentTextUpdateRequest == nullptr) @@ -5927,7 +6222,6 @@ pplx::task> PublicApi::setComme web::json::value localVarJson; localVarJson = ModelBase::toJson(commentTextUpdateRequest); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -6013,7 +6307,12 @@ pplx::task> PublicApi::setComme return localVarResult; }); } -pplx::task> PublicApi::unBlockCommentPublic(utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, boost::optional sso) const +pplx::task> PublicApi::unBlockCommentPublic( + utility::string_t tenantId, + utility::string_t commentId, + std::shared_ptr publicBlockFromCommentParams + , boost::optional sso +) const { // verify the required parameter 'publicBlockFromCommentParams' is set @@ -6080,7 +6379,6 @@ pplx::task> PublicApi::unBlockCommentPublic(util web::json::value localVarJson; localVarJson = ModelBase::toJson(publicBlockFromCommentParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -6166,7 +6464,12 @@ pplx::task> PublicApi::unBlockCommentPublic(util return localVarResult; }); } -pplx::task> PublicApi::unLockComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const +pplx::task> PublicApi::unLockComment( + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t broadcastId + , boost::optional sso +) const { @@ -6297,7 +6600,12 @@ pplx::task> PublicApi::unLockComment(utility:: return localVarResult; }); } -pplx::task> PublicApi::unPinComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const +pplx::task> PublicApi::unPinComment( + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t broadcastId + , boost::optional sso +) const { @@ -6428,8 +6736,16 @@ pplx::task> PublicApi::unPinComm return localVarResult; }); } -pplx::task> PublicApi::updateFeedPostPublic(utility::string_t tenantId, utility::string_t postId, std::shared_ptr updateFeedPostParams, boost::optional broadcastId, boost::optional sso) const +pplx::task> PublicApi::updateFeedPostPublic( + utility::string_t tenantId, + utility::string_t postId, + std::shared_ptr updateFeedPostParams + + , const UpdateFeedPostPublicOptions& options +) const { + auto broadcastId = options.broadcastId; + auto sso = options.sso; // verify the required parameter 'updateFeedPostParams' is set if (updateFeedPostParams == nullptr) @@ -6497,7 +6813,6 @@ pplx::task> PublicApi::updateFeedPostPub web::json::value localVarJson; localVarJson = ModelBase::toJson(updateFeedPostParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -6583,7 +6898,13 @@ pplx::task> PublicApi::updateFeedPostPub return localVarResult; }); } -pplx::task> PublicApi::updateUserNotificationCommentSubscriptionStatus(utility::string_t tenantId, utility::string_t notificationId, utility::string_t optedInOrOut, utility::string_t commentId, boost::optional sso) const +pplx::task> PublicApi::updateUserNotificationCommentSubscriptionStatus( + utility::string_t tenantId, + utility::string_t notificationId, + utility::string_t optedInOrOut, + utility::string_t commentId + , boost::optional sso +) const { @@ -6717,7 +7038,14 @@ pplx::task> PublicApi::updateUserNotificationPageSubscriptionStatus(utility::string_t tenantId, utility::string_t urlId, utility::string_t url, utility::string_t pageTitle, utility::string_t subscribedOrUnsubscribed, boost::optional sso) const +pplx::task> PublicApi::updateUserNotificationPageSubscriptionStatus( + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t url, + utility::string_t pageTitle, + utility::string_t subscribedOrUnsubscribed + , boost::optional sso +) const { @@ -6856,7 +7184,12 @@ pplx::task return localVarResult; }); } -pplx::task> PublicApi::updateUserNotificationStatus(utility::string_t tenantId, utility::string_t notificationId, utility::string_t newStatus, boost::optional sso) const +pplx::task> PublicApi::updateUserNotificationStatus( + utility::string_t tenantId, + utility::string_t notificationId, + utility::string_t newStatus + , boost::optional sso +) const { @@ -6987,8 +7320,15 @@ pplx::task> PublicApi::upd return localVarResult; }); } -pplx::task> PublicApi::uploadImage(utility::string_t tenantId, std::shared_ptr file, boost::optional> sizePreset, boost::optional urlId) const +pplx::task> PublicApi::uploadImage( + utility::string_t tenantId, + std::shared_ptr file + + , const UploadImageOptions& options +) const { + auto sizePreset = options.sizePreset; + auto urlId = options.urlId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7122,8 +7462,18 @@ pplx::task> PublicApi::uploadImage(utility: return localVarResult; }); } -pplx::task> PublicApi::voteComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t urlId, utility::string_t broadcastId, std::shared_ptr voteBodyParams, boost::optional sessionId, boost::optional sso) const +pplx::task> PublicApi::voteComment( + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t urlId, + utility::string_t broadcastId, + std::shared_ptr voteBodyParams + + , const VoteCommentOptions& options +) const { + auto sessionId = options.sessionId; + auto sso = options.sso; // verify the required parameter 'voteBodyParams' is set if (voteBodyParams == nullptr) @@ -7197,7 +7547,6 @@ pplx::task> PublicApi::voteComment(utility::string web::json::value localVarJson; localVarJson = ModelBase::toJson(voteBodyParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } diff --git a/client/src/model/PostRemoveCommentResponse.cpp b/client/src/model/PostRemoveCommentApiResponse.cpp similarity index 76% rename from client/src/model/PostRemoveCommentResponse.cpp rename to client/src/model/PostRemoveCommentApiResponse.cpp index 99f1262..fc5d46a 100644 --- a/client/src/model/PostRemoveCommentResponse.cpp +++ b/client/src/model/PostRemoveCommentApiResponse.cpp @@ -11,14 +11,14 @@ -#include "FastCommentsClient/model/PostRemoveCommentResponse.h" +#include "FastCommentsClient/model/PostRemoveCommentApiResponse.h" namespace org { namespace openapitools { namespace client { namespace model { -PostRemoveCommentResponse::PostRemoveCommentResponse() +PostRemoveCommentApiResponse::PostRemoveCommentApiResponse() { m_Action = utility::conversions::to_string_t(""); m_ActionIsSet = false; @@ -26,16 +26,16 @@ PostRemoveCommentResponse::PostRemoveCommentResponse() m_StatusIsSet = false; } -PostRemoveCommentResponse::~PostRemoveCommentResponse() +PostRemoveCommentApiResponse::~PostRemoveCommentApiResponse() { } -void PostRemoveCommentResponse::validate() +void PostRemoveCommentApiResponse::validate() { // TODO: implement validation } -web::json::value PostRemoveCommentResponse::toJson() const +web::json::value PostRemoveCommentApiResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ActionIsSet) @@ -52,7 +52,7 @@ web::json::value PostRemoveCommentResponse::toJson() const return val; } -bool PostRemoveCommentResponse::fromJson(const web::json::value& val) +bool PostRemoveCommentApiResponse::fromJson(const web::json::value& val) { bool ok = true; if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("action")))) @@ -80,7 +80,7 @@ bool PostRemoveCommentResponse::fromJson(const web::json::value& val) return ok; } -void PostRemoveCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void PostRemoveCommentApiResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) @@ -97,7 +97,7 @@ void PostRemoveCommentResponse::toMultipart(std::shared_ptr m } } -bool PostRemoveCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +bool PostRemoveCommentApiResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; @@ -122,45 +122,45 @@ bool PostRemoveCommentResponse::fromMultiPart(std::shared_ptr } -utility::string_t PostRemoveCommentResponse::getAction() const +utility::string_t PostRemoveCommentApiResponse::getAction() const { return m_Action; } -void PostRemoveCommentResponse::setAction(const utility::string_t& value) +void PostRemoveCommentApiResponse::setAction(const utility::string_t& value) { m_Action = value; m_ActionIsSet = true; } -bool PostRemoveCommentResponse::actionIsSet() const +bool PostRemoveCommentApiResponse::actionIsSet() const { return m_ActionIsSet; } -void PostRemoveCommentResponse::unsetAction() +void PostRemoveCommentApiResponse::unsetAction() { m_ActionIsSet = false; } -utility::string_t PostRemoveCommentResponse::getStatus() const +utility::string_t PostRemoveCommentApiResponse::getStatus() const { return m_Status; } -void PostRemoveCommentResponse::setStatus(const utility::string_t& value) +void PostRemoveCommentApiResponse::setStatus(const utility::string_t& value) { m_Status = value; m_StatusIsSet = true; } -bool PostRemoveCommentResponse::statusIsSet() const +bool PostRemoveCommentApiResponse::statusIsSet() const { return m_StatusIsSet; } -void PostRemoveCommentResponse::unsetStatus() +void PostRemoveCommentApiResponse::unsetStatus() { m_StatusIsSet = false; } diff --git a/config.json b/config.json index 18de350..d49ffbb 100644 --- a/config.json +++ b/config.json @@ -1,4 +1,5 @@ { "packageName": "FastCommentsClient", - "packageVersion": "2.0.1" + "packageVersion": "3.0.0", + "useSingleRequestParameter": true } diff --git a/docs/Apis/DefaultApi.md b/docs/Apis/DefaultApi.md index 899940e..8d14a27 100644 --- a/docs/Apis/DefaultApi.md +++ b/docs/Apis/DefaultApi.md @@ -156,7 +156,7 @@ All URIs are relative to *https://fastcomments.com* |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **tenantId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [default to null] | | **CreateHashTagBody** | [**CreateHashTagBody**](../Models/CreateHashTagBody.md)| | [optional] | ### Return type @@ -182,7 +182,7 @@ All URIs are relative to *https://fastcomments.com* |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **tenantId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [default to null] | | **BulkCreateHashTagsBody** | [**BulkCreateHashTagsBody**](../Models/BulkCreateHashTagsBody.md)| | [optional] | ### Return type @@ -857,7 +857,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteHashTag** -> APIEmptyResponse deleteHashTag(tag, tenantId, DeleteHashTagRequestBody) +> APIEmptyResponse deleteHashTag(tenantId, tag, DeleteHashTagRequestBody) @@ -865,8 +865,8 @@ All URIs are relative to *https://fastcomments.com* |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **tag** | **String**| | [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **DeleteHashTagRequestBody** | [**DeleteHashTagRequestBody**](../Models/DeleteHashTagRequestBody.md)| | [optional] | ### Return type @@ -2518,7 +2518,7 @@ All URIs are relative to *https://fastcomments.com* # **patchHashTag** -> UpdateHashTagResponse patchHashTag(tag, tenantId, UpdateHashTagBody) +> UpdateHashTagResponse patchHashTag(tenantId, tag, UpdateHashTagBody) @@ -2526,8 +2526,8 @@ All URIs are relative to *https://fastcomments.com* |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **tag** | **String**| | [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **UpdateHashTagBody** | [**UpdateHashTagBody**](../Models/UpdateHashTagBody.md)| | [optional] | ### Return type diff --git a/docs/Apis/ModerationApi.md b/docs/Apis/ModerationApi.md index 9c47205..809ef44 100644 --- a/docs/Apis/ModerationApi.md +++ b/docs/Apis/ModerationApi.md @@ -4,54 +4,54 @@ All URIs are relative to *https://fastcomments.com* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**deleteModerationVote**](ModerationApi.md#deleteModerationVote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | | -| [**getApiComments**](ModerationApi.md#getApiComments) | **GET** /auth/my-account/moderate-comments/api/comments | | -| [**getApiExportStatus**](ModerationApi.md#getApiExportStatus) | **GET** /auth/my-account/moderate-comments/api/export/status | | -| [**getApiIds**](ModerationApi.md#getApiIds) | **GET** /auth/my-account/moderate-comments/api/ids | | -| [**getBanUsersFromComment**](ModerationApi.md#getBanUsersFromComment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | | -| [**getCommentBanStatus**](ModerationApi.md#getCommentBanStatus) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | | -| [**getCommentChildren**](ModerationApi.md#getCommentChildren) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | | -| [**getCount**](ModerationApi.md#getCount) | **GET** /auth/my-account/moderate-comments/count | | -| [**getCounts**](ModerationApi.md#getCounts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | | -| [**getLogs**](ModerationApi.md#getLogs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | | -| [**getManualBadges**](ModerationApi.md#getManualBadges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | | -| [**getManualBadgesForUser**](ModerationApi.md#getManualBadgesForUser) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | | -| [**getModerationComment**](ModerationApi.md#getModerationComment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | | -| [**getModerationCommentText**](ModerationApi.md#getModerationCommentText) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | | -| [**getPreBanSummary**](ModerationApi.md#getPreBanSummary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | | -| [**getSearchCommentsSummary**](ModerationApi.md#getSearchCommentsSummary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | | -| [**getSearchPages**](ModerationApi.md#getSearchPages) | **GET** /auth/my-account/moderate-comments/search/pages | | -| [**getSearchSites**](ModerationApi.md#getSearchSites) | **GET** /auth/my-account/moderate-comments/search/sites | | -| [**getSearchSuggest**](ModerationApi.md#getSearchSuggest) | **GET** /auth/my-account/moderate-comments/search/suggest | | -| [**getSearchUsers**](ModerationApi.md#getSearchUsers) | **GET** /auth/my-account/moderate-comments/search/users | | -| [**getTrustFactor**](ModerationApi.md#getTrustFactor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | | -| [**getUserBanPreference**](ModerationApi.md#getUserBanPreference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | | -| [**getUserInternalProfile**](ModerationApi.md#getUserInternalProfile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | | -| [**postAdjustCommentVotes**](ModerationApi.md#postAdjustCommentVotes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | | -| [**postApiExport**](ModerationApi.md#postApiExport) | **POST** /auth/my-account/moderate-comments/api/export | | -| [**postBanUserFromComment**](ModerationApi.md#postBanUserFromComment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | | -| [**postBanUserUndo**](ModerationApi.md#postBanUserUndo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | | -| [**postBulkPreBanSummary**](ModerationApi.md#postBulkPreBanSummary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | | -| [**postCommentsByIds**](ModerationApi.md#postCommentsByIds) | **POST** /auth/my-account/moderate-comments/comments-by-ids | | -| [**postFlagComment**](ModerationApi.md#postFlagComment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | | -| [**postRemoveComment**](ModerationApi.md#postRemoveComment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | | -| [**postRestoreDeletedComment**](ModerationApi.md#postRestoreDeletedComment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | | -| [**postSetCommentApprovalStatus**](ModerationApi.md#postSetCommentApprovalStatus) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | | -| [**postSetCommentReviewStatus**](ModerationApi.md#postSetCommentReviewStatus) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | | -| [**postSetCommentSpamStatus**](ModerationApi.md#postSetCommentSpamStatus) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | | -| [**postSetCommentText**](ModerationApi.md#postSetCommentText) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | | -| [**postUnFlagComment**](ModerationApi.md#postUnFlagComment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | | -| [**postVote**](ModerationApi.md#postVote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | | -| [**putAwardBadge**](ModerationApi.md#putAwardBadge) | **PUT** /auth/my-account/moderate-comments/award-badge | | -| [**putCloseThread**](ModerationApi.md#putCloseThread) | **PUT** /auth/my-account/moderate-comments/close-thread | | -| [**putRemoveBadge**](ModerationApi.md#putRemoveBadge) | **PUT** /auth/my-account/moderate-comments/remove-badge | | -| [**putReopenThread**](ModerationApi.md#putReopenThread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | | -| [**setTrustFactor**](ModerationApi.md#setTrustFactor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | | +| [**deleteModerationVote**](ModerationApi.md#deleteModerationVote) | **DELETE** /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | | +| [**getApiComments**](ModerationApi.md#getApiComments) | **GET** /auth/my-account/moderate-comments/mod_api/api/comments | | +| [**getApiExportStatus**](ModerationApi.md#getApiExportStatus) | **GET** /auth/my-account/moderate-comments/mod_api/api/export/status | | +| [**getApiIds**](ModerationApi.md#getApiIds) | **GET** /auth/my-account/moderate-comments/mod_api/api/ids | | +| [**getBanUsersFromComment**](ModerationApi.md#getBanUsersFromComment) | **GET** /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | | +| [**getCommentBanStatus**](ModerationApi.md#getCommentBanStatus) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | | +| [**getCommentChildren**](ModerationApi.md#getCommentChildren) | **GET** /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | | +| [**getCount**](ModerationApi.md#getCount) | **GET** /auth/my-account/moderate-comments/mod_api/count | | +| [**getCounts**](ModerationApi.md#getCounts) | **GET** /auth/my-account/moderate-comments/banned-users/mod_api/counts | | +| [**getLogs**](ModerationApi.md#getLogs) | **GET** /auth/my-account/moderate-comments/mod_api/logs/{commentId} | | +| [**getManualBadges**](ModerationApi.md#getManualBadges) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges | | +| [**getManualBadgesForUser**](ModerationApi.md#getManualBadgesForUser) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | | +| [**getModerationComment**](ModerationApi.md#getModerationComment) | **GET** /auth/my-account/moderate-comments/mod_api/comment/{commentId} | | +| [**getModerationCommentText**](ModerationApi.md#getModerationCommentText) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | | +| [**getPreBanSummary**](ModerationApi.md#getPreBanSummary) | **GET** /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | | +| [**getSearchCommentsSummary**](ModerationApi.md#getSearchCommentsSummary) | **GET** /auth/my-account/moderate-comments/mod_api/search/comments/summary | | +| [**getSearchPages**](ModerationApi.md#getSearchPages) | **GET** /auth/my-account/moderate-comments/mod_api/search/pages | | +| [**getSearchSites**](ModerationApi.md#getSearchSites) | **GET** /auth/my-account/moderate-comments/mod_api/search/sites | | +| [**getSearchSuggest**](ModerationApi.md#getSearchSuggest) | **GET** /auth/my-account/moderate-comments/mod_api/search/suggest | | +| [**getSearchUsers**](ModerationApi.md#getSearchUsers) | **GET** /auth/my-account/moderate-comments/mod_api/search/users | | +| [**getTrustFactor**](ModerationApi.md#getTrustFactor) | **GET** /auth/my-account/moderate-comments/mod_api/get-trust-factor | | +| [**getUserBanPreference**](ModerationApi.md#getUserBanPreference) | **GET** /auth/my-account/moderate-comments/mod_api/user-ban-preference | | +| [**getUserInternalProfile**](ModerationApi.md#getUserInternalProfile) | **GET** /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | | +| [**postAdjustCommentVotes**](ModerationApi.md#postAdjustCommentVotes) | **POST** /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | | +| [**postApiExport**](ModerationApi.md#postApiExport) | **POST** /auth/my-account/moderate-comments/mod_api/api/export | | +| [**postBanUserFromComment**](ModerationApi.md#postBanUserFromComment) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | | +| [**postBanUserUndo**](ModerationApi.md#postBanUserUndo) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/undo | | +| [**postBulkPreBanSummary**](ModerationApi.md#postBulkPreBanSummary) | **POST** /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | | +| [**postCommentsByIds**](ModerationApi.md#postCommentsByIds) | **POST** /auth/my-account/moderate-comments/mod_api/comments-by-ids | | +| [**postFlagComment**](ModerationApi.md#postFlagComment) | **POST** /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | | +| [**postRemoveComment**](ModerationApi.md#postRemoveComment) | **POST** /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | | +| [**postRestoreDeletedComment**](ModerationApi.md#postRestoreDeletedComment) | **POST** /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | | +| [**postSetCommentApprovalStatus**](ModerationApi.md#postSetCommentApprovalStatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | | +| [**postSetCommentReviewStatus**](ModerationApi.md#postSetCommentReviewStatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | | +| [**postSetCommentSpamStatus**](ModerationApi.md#postSetCommentSpamStatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | | +| [**postSetCommentText**](ModerationApi.md#postSetCommentText) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | | +| [**postUnFlagComment**](ModerationApi.md#postUnFlagComment) | **POST** /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | | +| [**postVote**](ModerationApi.md#postVote) | **POST** /auth/my-account/moderate-comments/mod_api/vote/{commentId} | | +| [**putAwardBadge**](ModerationApi.md#putAwardBadge) | **PUT** /auth/my-account/moderate-comments/mod_api/award-badge | | +| [**putCloseThread**](ModerationApi.md#putCloseThread) | **PUT** /auth/my-account/moderate-comments/mod_api/close-thread | | +| [**putRemoveBadge**](ModerationApi.md#putRemoveBadge) | **PUT** /auth/my-account/moderate-comments/mod_api/remove-badge | | +| [**putReopenThread**](ModerationApi.md#putReopenThread) | **PUT** /auth/my-account/moderate-comments/mod_api/reopen-thread | | +| [**setTrustFactor**](ModerationApi.md#setTrustFactor) | **PUT** /auth/my-account/moderate-comments/mod_api/set-trust-factor | | # **deleteModerationVote** -> VoteDeleteResponse deleteModerationVote(commentId, voteId, broadcastId, tenantId, sso) +> VoteDeleteResponse deleteModerationVote(tenantId, commentId, voteId, broadcastId, sso) @@ -59,10 +59,10 @@ All URIs are relative to *https://fastcomments.com* |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **voteId** | **String**| | [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -80,7 +80,7 @@ No authorization required # **getApiComments** -> ModerationAPIGetCommentsResponse getApiComments(page, count, text-search, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso) +> ModerationAPIGetCommentsResponse getApiComments(tenantId, page, count, text-search, byIPFromComment, filters, searchFilters, sorts, demo, sso) @@ -88,6 +88,7 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **page** | **Double**| | [optional] [default to null] | | **count** | **Double**| | [optional] [default to null] | | **text-search** | **String**| | [optional] [default to null] | @@ -96,7 +97,6 @@ No authorization required | **searchFilters** | **String**| | [optional] [default to null] | | **sorts** | **String**| | [optional] [default to null] | | **demo** | **Boolean**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -114,7 +114,7 @@ No authorization required # **getApiExportStatus** -> ModerationExportStatusResponse getApiExportStatus(batchJobId, tenantId, sso) +> ModerationExportStatusResponse getApiExportStatus(tenantId, batchJobId, sso) @@ -122,8 +122,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **batchJobId** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -141,7 +141,7 @@ No authorization required # **getApiIds** -> ModerationAPIGetCommentIdsResponse getApiIds(text-search, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso) +> ModerationAPIGetCommentIdsResponse getApiIds(tenantId, text-search, byIPFromComment, filters, searchFilters, afterId, demo, sso) @@ -149,13 +149,13 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **text-search** | **String**| | [optional] [default to null] | | **byIPFromComment** | **String**| | [optional] [default to null] | | **filters** | **String**| | [optional] [default to null] | | **searchFilters** | **String**| | [optional] [default to null] | | **afterId** | **String**| | [optional] [default to null] | | **demo** | **Boolean**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -173,7 +173,7 @@ No authorization required # **getBanUsersFromComment** -> GetBannedUsersFromCommentResponse getBanUsersFromComment(commentId, tenantId, sso) +> GetBannedUsersFromCommentResponse getBanUsersFromComment(tenantId, commentId, sso) @@ -181,8 +181,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -200,7 +200,7 @@ No authorization required # **getCommentBanStatus** -> GetCommentBanStatusResponse getCommentBanStatus(commentId, tenantId, sso) +> GetCommentBanStatusResponse getCommentBanStatus(tenantId, commentId, sso) @@ -208,8 +208,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -227,7 +227,7 @@ No authorization required # **getCommentChildren** -> ModerationAPIChildCommentsResponse getCommentChildren(commentId, tenantId, sso) +> ModerationAPIChildCommentsResponse getCommentChildren(tenantId, commentId, sso) @@ -235,8 +235,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -254,7 +254,7 @@ No authorization required # **getCount** -> ModerationAPICountCommentsResponse getCount(text-search, byIPFromComment, filter, searchFilters, demo, tenantId, sso) +> ModerationAPICountCommentsResponse getCount(tenantId, text-search, byIPFromComment, filter, searchFilters, demo, sso) @@ -262,12 +262,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **text-search** | **String**| | [optional] [default to null] | | **byIPFromComment** | **String**| | [optional] [default to null] | | **filter** | **String**| | [optional] [default to null] | | **searchFilters** | **String**| | [optional] [default to null] | | **demo** | **Boolean**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -293,7 +293,7 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **tenantId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -311,7 +311,7 @@ No authorization required # **getLogs** -> ModerationAPIGetLogsResponse getLogs(commentId, tenantId, sso) +> ModerationAPIGetLogsResponse getLogs(tenantId, commentId, sso) @@ -319,8 +319,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -346,7 +346,7 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **tenantId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -364,7 +364,7 @@ No authorization required # **getManualBadgesForUser** -> GetUserManualBadgesResponse getManualBadgesForUser(badgesUserId, commentId, tenantId, sso) +> GetUserManualBadgesResponse getManualBadgesForUser(tenantId, badgesUserId, commentId, sso) @@ -372,9 +372,9 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **badgesUserId** | **String**| | [optional] [default to null] | | **commentId** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -392,7 +392,7 @@ No authorization required # **getModerationComment** -> ModerationAPICommentResponse getModerationComment(commentId, includeEmail, includeIP, tenantId, sso) +> ModerationAPICommentResponse getModerationComment(tenantId, commentId, includeEmail, includeIP, sso) @@ -400,10 +400,10 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **includeEmail** | **Boolean**| | [optional] [default to null] | | **includeIP** | **Boolean**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -421,7 +421,7 @@ No authorization required # **getModerationCommentText** -> GetCommentTextResponse getModerationCommentText(commentId, tenantId, sso) +> GetCommentTextResponse getModerationCommentText(tenantId, commentId, sso) @@ -429,8 +429,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -448,7 +448,7 @@ No authorization required # **getPreBanSummary** -> PreBanSummary getPreBanSummary(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso) +> PreBanSummary getPreBanSummary(tenantId, commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso) @@ -456,11 +456,11 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **includeByUserIdAndEmail** | **Boolean**| | [optional] [default to null] | | **includeByIP** | **Boolean**| | [optional] [default to null] | | **includeByEmailDomain** | **Boolean**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -478,7 +478,7 @@ No authorization required # **getSearchCommentsSummary** -> ModerationCommentSearchResponse getSearchCommentsSummary(value, filters, searchFilters, tenantId, sso) +> ModerationCommentSearchResponse getSearchCommentsSummary(tenantId, value, filters, searchFilters, sso) @@ -486,10 +486,10 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **value** | **String**| | [optional] [default to null] | | **filters** | **String**| | [optional] [default to null] | | **searchFilters** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -507,7 +507,7 @@ No authorization required # **getSearchPages** -> ModerationPageSearchResponse getSearchPages(value, tenantId, sso) +> ModerationPageSearchResponse getSearchPages(tenantId, value, sso) @@ -515,8 +515,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **value** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -534,7 +534,7 @@ No authorization required # **getSearchSites** -> ModerationSiteSearchResponse getSearchSites(value, tenantId, sso) +> ModerationSiteSearchResponse getSearchSites(tenantId, value, sso) @@ -542,8 +542,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **value** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -561,7 +561,7 @@ No authorization required # **getSearchSuggest** -> ModerationSuggestResponse getSearchSuggest(text-search, tenantId, sso) +> ModerationSuggestResponse getSearchSuggest(tenantId, text-search, sso) @@ -569,8 +569,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **text-search** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -588,7 +588,7 @@ No authorization required # **getSearchUsers** -> ModerationUserSearchResponse getSearchUsers(value, tenantId, sso) +> ModerationUserSearchResponse getSearchUsers(tenantId, value, sso) @@ -596,8 +596,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **value** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -615,7 +615,7 @@ No authorization required # **getTrustFactor** -> GetUserTrustFactorResponse getTrustFactor(userId, tenantId, sso) +> GetUserTrustFactorResponse getTrustFactor(tenantId, userId, sso) @@ -623,8 +623,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **userId** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -650,7 +650,7 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **tenantId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -668,7 +668,7 @@ No authorization required # **getUserInternalProfile** -> GetUserInternalProfileResponse getUserInternalProfile(commentId, tenantId, sso) +> GetUserInternalProfileResponse getUserInternalProfile(tenantId, commentId, sso) @@ -676,8 +676,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -695,7 +695,7 @@ No authorization required # **postAdjustCommentVotes** -> AdjustVotesResponse postAdjustCommentVotes(commentId, AdjustCommentVotesParams, broadcastId, tenantId, sso) +> AdjustVotesResponse postAdjustCommentVotes(tenantId, commentId, AdjustCommentVotesParams, broadcastId, sso) @@ -703,10 +703,10 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **AdjustCommentVotesParams** | [**AdjustCommentVotesParams**](../Models/AdjustCommentVotesParams.md)| | | | **broadcastId** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -724,7 +724,7 @@ No authorization required # **postApiExport** -> ModerationExportResponse postApiExport(text-search, byIPFromComment, filters, searchFilters, sorts, tenantId, sso) +> ModerationExportResponse postApiExport(tenantId, text-search, byIPFromComment, filters, searchFilters, sorts, sso) @@ -732,12 +732,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **text-search** | **String**| | [optional] [default to null] | | **byIPFromComment** | **String**| | [optional] [default to null] | | **filters** | **String**| | [optional] [default to null] | | **searchFilters** | **String**| | [optional] [default to null] | | **sorts** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -755,7 +755,7 @@ No authorization required # **postBanUserFromComment** -> BanUserFromCommentResult postBanUserFromComment(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso) +> BanUserFromCommentResult postBanUserFromComment(tenantId, commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso) @@ -763,6 +763,7 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **banEmail** | **Boolean**| | [optional] [default to null] | | **banEmailDomain** | **Boolean**| | [optional] [default to null] | @@ -772,7 +773,6 @@ No authorization required | **isShadowBan** | **Boolean**| | [optional] [default to null] | | **updateId** | **String**| | [optional] [default to null] | | **banReason** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -790,7 +790,7 @@ No authorization required # **postBanUserUndo** -> APIEmptyResponse postBanUserUndo(BanUserUndoParams, tenantId, sso) +> APIEmptyResponse postBanUserUndo(tenantId, BanUserUndoParams, sso) @@ -798,8 +798,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **BanUserUndoParams** | [**BanUserUndoParams**](../Models/BanUserUndoParams.md)| | | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -817,7 +817,7 @@ No authorization required # **postBulkPreBanSummary** -> BulkPreBanSummary postBulkPreBanSummary(BulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso) +> BulkPreBanSummary postBulkPreBanSummary(tenantId, BulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso) @@ -825,11 +825,11 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **BulkPreBanParams** | [**BulkPreBanParams**](../Models/BulkPreBanParams.md)| | | | **includeByUserIdAndEmail** | **Boolean**| | [optional] [default to null] | | **includeByIP** | **Boolean**| | [optional] [default to null] | | **includeByEmailDomain** | **Boolean**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -847,7 +847,7 @@ No authorization required # **postCommentsByIds** -> ModerationAPIChildCommentsResponse postCommentsByIds(CommentsByIdsParams, tenantId, sso) +> ModerationAPIChildCommentsResponse postCommentsByIds(tenantId, CommentsByIdsParams, sso) @@ -855,8 +855,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **CommentsByIdsParams** | [**CommentsByIdsParams**](../Models/CommentsByIdsParams.md)| | | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -874,7 +874,7 @@ No authorization required # **postFlagComment** -> APIEmptyResponse postFlagComment(commentId, broadcastId, tenantId, sso) +> APIEmptyResponse postFlagComment(tenantId, commentId, broadcastId, sso) @@ -882,9 +882,9 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -902,7 +902,7 @@ No authorization required # **postRemoveComment** -> PostRemoveCommentResponse postRemoveComment(commentId, broadcastId, tenantId, sso) +> PostRemoveCommentApiResponse postRemoveComment(tenantId, commentId, broadcastId, sso) @@ -910,14 +910,14 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**PostRemoveCommentResponse**](../Models/PostRemoveCommentResponse.md) +[**PostRemoveCommentApiResponse**](../Models/PostRemoveCommentApiResponse.md) ### Authorization @@ -930,7 +930,7 @@ No authorization required # **postRestoreDeletedComment** -> APIEmptyResponse postRestoreDeletedComment(commentId, broadcastId, tenantId, sso) +> APIEmptyResponse postRestoreDeletedComment(tenantId, commentId, broadcastId, sso) @@ -938,9 +938,9 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -958,7 +958,7 @@ No authorization required # **postSetCommentApprovalStatus** -> SetCommentApprovedResponse postSetCommentApprovalStatus(commentId, approved, broadcastId, tenantId, sso) +> SetCommentApprovedResponse postSetCommentApprovalStatus(tenantId, commentId, approved, broadcastId, sso) @@ -966,10 +966,10 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **approved** | **Boolean**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -987,7 +987,7 @@ No authorization required # **postSetCommentReviewStatus** -> APIEmptyResponse postSetCommentReviewStatus(commentId, reviewed, broadcastId, tenantId, sso) +> APIEmptyResponse postSetCommentReviewStatus(tenantId, commentId, reviewed, broadcastId, sso) @@ -995,10 +995,10 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **reviewed** | **Boolean**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -1016,7 +1016,7 @@ No authorization required # **postSetCommentSpamStatus** -> APIEmptyResponse postSetCommentSpamStatus(commentId, spam, permNotSpam, broadcastId, tenantId, sso) +> APIEmptyResponse postSetCommentSpamStatus(tenantId, commentId, spam, permNotSpam, broadcastId, sso) @@ -1024,11 +1024,11 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **spam** | **Boolean**| | [optional] [default to null] | | **permNotSpam** | **Boolean**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -1046,7 +1046,7 @@ No authorization required # **postSetCommentText** -> SetCommentTextResponse postSetCommentText(commentId, SetCommentTextParams, broadcastId, tenantId, sso) +> SetCommentTextResponse postSetCommentText(tenantId, commentId, SetCommentTextParams, broadcastId, sso) @@ -1054,10 +1054,10 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **SetCommentTextParams** | [**SetCommentTextParams**](../Models/SetCommentTextParams.md)| | | | **broadcastId** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -1075,7 +1075,7 @@ No authorization required # **postUnFlagComment** -> APIEmptyResponse postUnFlagComment(commentId, broadcastId, tenantId, sso) +> APIEmptyResponse postUnFlagComment(tenantId, commentId, broadcastId, sso) @@ -1083,9 +1083,9 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -1103,7 +1103,7 @@ No authorization required # **postVote** -> VoteResponse postVote(commentId, direction, broadcastId, tenantId, sso) +> VoteResponse postVote(tenantId, commentId, direction, broadcastId, sso) @@ -1111,10 +1111,10 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **direction** | **String**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -1132,7 +1132,7 @@ No authorization required # **putAwardBadge** -> AwardUserBadgeResponse putAwardBadge(badgeId, userId, commentId, broadcastId, tenantId, sso) +> AwardUserBadgeResponse putAwardBadge(tenantId, badgeId, userId, commentId, broadcastId, sso) @@ -1140,11 +1140,11 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **badgeId** | **String**| | [default to null] | | **userId** | **String**| | [optional] [default to null] | | **commentId** | **String**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -1162,7 +1162,7 @@ No authorization required # **putCloseThread** -> APIEmptyResponse putCloseThread(urlId, tenantId, sso) +> APIEmptyResponse putCloseThread(tenantId, urlId, sso) @@ -1170,8 +1170,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **urlId** | **String**| | [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -1189,7 +1189,7 @@ No authorization required # **putRemoveBadge** -> RemoveUserBadgeResponse putRemoveBadge(badgeId, userId, commentId, broadcastId, tenantId, sso) +> RemoveUserBadgeResponse putRemoveBadge(tenantId, badgeId, userId, commentId, broadcastId, sso) @@ -1197,11 +1197,11 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **badgeId** | **String**| | [default to null] | | **userId** | **String**| | [optional] [default to null] | | **commentId** | **String**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -1219,7 +1219,7 @@ No authorization required # **putReopenThread** -> APIEmptyResponse putReopenThread(urlId, tenantId, sso) +> APIEmptyResponse putReopenThread(tenantId, urlId, sso) @@ -1227,8 +1227,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **urlId** | **String**| | [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -1246,7 +1246,7 @@ No authorization required # **setTrustFactor** -> SetUserTrustFactorResponse setTrustFactor(userId, trustFactor, tenantId, sso) +> SetUserTrustFactorResponse setTrustFactor(tenantId, userId, trustFactor, sso) @@ -1254,9 +1254,9 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **userId** | **String**| | [optional] [default to null] | | **trustFactor** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type diff --git a/docs/Models/PostRemoveCommentResponse.md b/docs/Models/PostRemoveCommentApiResponse.md similarity index 92% rename from docs/Models/PostRemoveCommentResponse.md rename to docs/Models/PostRemoveCommentApiResponse.md index 057e54b..a0942ee 100644 --- a/docs/Models/PostRemoveCommentResponse.md +++ b/docs/Models/PostRemoveCommentApiResponse.md @@ -1,4 +1,4 @@ -# PostRemoveCommentResponse +# PostRemoveCommentApiResponse ## Properties | Name | Type | Description | Notes | diff --git a/docs/README.md b/docs/README.md index c923b37..940707b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -121,49 +121,49 @@ All URIs are relative to *https://fastcomments.com* *DefaultApi* | [**updateTenantPackage**](Apis/DefaultApi.md#updateTenantPackage) | **PATCH** /api/v1/tenant-packages/{id} | | *DefaultApi* | [**updateTenantUser**](Apis/DefaultApi.md#updateTenantUser) | **PATCH** /api/v1/tenant-users/{id} | | *DefaultApi* | [**updateUserBadge**](Apis/DefaultApi.md#updateUserBadge) | **PUT** /api/v1/user-badges/{id} | | -| *ModerationApi* | [**deleteModerationVote**](Apis/ModerationApi.md#deleteModerationVote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | | -*ModerationApi* | [**getApiComments**](Apis/ModerationApi.md#getApiComments) | **GET** /auth/my-account/moderate-comments/api/comments | | -*ModerationApi* | [**getApiExportStatus**](Apis/ModerationApi.md#getApiExportStatus) | **GET** /auth/my-account/moderate-comments/api/export/status | | -*ModerationApi* | [**getApiIds**](Apis/ModerationApi.md#getApiIds) | **GET** /auth/my-account/moderate-comments/api/ids | | -*ModerationApi* | [**getBanUsersFromComment**](Apis/ModerationApi.md#getBanUsersFromComment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | | -*ModerationApi* | [**getCommentBanStatus**](Apis/ModerationApi.md#getCommentBanStatus) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | | -*ModerationApi* | [**getCommentChildren**](Apis/ModerationApi.md#getCommentChildren) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | | -*ModerationApi* | [**getCount**](Apis/ModerationApi.md#getCount) | **GET** /auth/my-account/moderate-comments/count | | -*ModerationApi* | [**getCounts**](Apis/ModerationApi.md#getCounts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | | -*ModerationApi* | [**getLogs**](Apis/ModerationApi.md#getLogs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | | -*ModerationApi* | [**getManualBadges**](Apis/ModerationApi.md#getManualBadges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | | -*ModerationApi* | [**getManualBadgesForUser**](Apis/ModerationApi.md#getManualBadgesForUser) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | | -*ModerationApi* | [**getModerationComment**](Apis/ModerationApi.md#getModerationComment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | | -*ModerationApi* | [**getModerationCommentText**](Apis/ModerationApi.md#getModerationCommentText) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | | -*ModerationApi* | [**getPreBanSummary**](Apis/ModerationApi.md#getPreBanSummary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | | -*ModerationApi* | [**getSearchCommentsSummary**](Apis/ModerationApi.md#getSearchCommentsSummary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | | -*ModerationApi* | [**getSearchPages**](Apis/ModerationApi.md#getSearchPages) | **GET** /auth/my-account/moderate-comments/search/pages | | -*ModerationApi* | [**getSearchSites**](Apis/ModerationApi.md#getSearchSites) | **GET** /auth/my-account/moderate-comments/search/sites | | -*ModerationApi* | [**getSearchSuggest**](Apis/ModerationApi.md#getSearchSuggest) | **GET** /auth/my-account/moderate-comments/search/suggest | | -*ModerationApi* | [**getSearchUsers**](Apis/ModerationApi.md#getSearchUsers) | **GET** /auth/my-account/moderate-comments/search/users | | -*ModerationApi* | [**getTrustFactor**](Apis/ModerationApi.md#getTrustFactor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | | -*ModerationApi* | [**getUserBanPreference**](Apis/ModerationApi.md#getUserBanPreference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | | -*ModerationApi* | [**getUserInternalProfile**](Apis/ModerationApi.md#getUserInternalProfile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | | -*ModerationApi* | [**postAdjustCommentVotes**](Apis/ModerationApi.md#postAdjustCommentVotes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | | -*ModerationApi* | [**postApiExport**](Apis/ModerationApi.md#postApiExport) | **POST** /auth/my-account/moderate-comments/api/export | | -*ModerationApi* | [**postBanUserFromComment**](Apis/ModerationApi.md#postBanUserFromComment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | | -*ModerationApi* | [**postBanUserUndo**](Apis/ModerationApi.md#postBanUserUndo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | | -*ModerationApi* | [**postBulkPreBanSummary**](Apis/ModerationApi.md#postBulkPreBanSummary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | | -*ModerationApi* | [**postCommentsByIds**](Apis/ModerationApi.md#postCommentsByIds) | **POST** /auth/my-account/moderate-comments/comments-by-ids | | -*ModerationApi* | [**postFlagComment**](Apis/ModerationApi.md#postFlagComment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | | -*ModerationApi* | [**postRemoveComment**](Apis/ModerationApi.md#postRemoveComment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | | -*ModerationApi* | [**postRestoreDeletedComment**](Apis/ModerationApi.md#postRestoreDeletedComment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | | -*ModerationApi* | [**postSetCommentApprovalStatus**](Apis/ModerationApi.md#postSetCommentApprovalStatus) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | | -*ModerationApi* | [**postSetCommentReviewStatus**](Apis/ModerationApi.md#postSetCommentReviewStatus) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | | -*ModerationApi* | [**postSetCommentSpamStatus**](Apis/ModerationApi.md#postSetCommentSpamStatus) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | | -*ModerationApi* | [**postSetCommentText**](Apis/ModerationApi.md#postSetCommentText) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | | -*ModerationApi* | [**postUnFlagComment**](Apis/ModerationApi.md#postUnFlagComment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | | -*ModerationApi* | [**postVote**](Apis/ModerationApi.md#postVote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | | -*ModerationApi* | [**putAwardBadge**](Apis/ModerationApi.md#putAwardBadge) | **PUT** /auth/my-account/moderate-comments/award-badge | | -*ModerationApi* | [**putCloseThread**](Apis/ModerationApi.md#putCloseThread) | **PUT** /auth/my-account/moderate-comments/close-thread | | -*ModerationApi* | [**putRemoveBadge**](Apis/ModerationApi.md#putRemoveBadge) | **PUT** /auth/my-account/moderate-comments/remove-badge | | -*ModerationApi* | [**putReopenThread**](Apis/ModerationApi.md#putReopenThread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | | -*ModerationApi* | [**setTrustFactor**](Apis/ModerationApi.md#setTrustFactor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | | +| *ModerationApi* | [**deleteModerationVote**](Apis/ModerationApi.md#deleteModerationVote) | **DELETE** /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | | +*ModerationApi* | [**getApiComments**](Apis/ModerationApi.md#getApiComments) | **GET** /auth/my-account/moderate-comments/mod_api/api/comments | | +*ModerationApi* | [**getApiExportStatus**](Apis/ModerationApi.md#getApiExportStatus) | **GET** /auth/my-account/moderate-comments/mod_api/api/export/status | | +*ModerationApi* | [**getApiIds**](Apis/ModerationApi.md#getApiIds) | **GET** /auth/my-account/moderate-comments/mod_api/api/ids | | +*ModerationApi* | [**getBanUsersFromComment**](Apis/ModerationApi.md#getBanUsersFromComment) | **GET** /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | | +*ModerationApi* | [**getCommentBanStatus**](Apis/ModerationApi.md#getCommentBanStatus) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | | +*ModerationApi* | [**getCommentChildren**](Apis/ModerationApi.md#getCommentChildren) | **GET** /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | | +*ModerationApi* | [**getCount**](Apis/ModerationApi.md#getCount) | **GET** /auth/my-account/moderate-comments/mod_api/count | | +*ModerationApi* | [**getCounts**](Apis/ModerationApi.md#getCounts) | **GET** /auth/my-account/moderate-comments/banned-users/mod_api/counts | | +*ModerationApi* | [**getLogs**](Apis/ModerationApi.md#getLogs) | **GET** /auth/my-account/moderate-comments/mod_api/logs/{commentId} | | +*ModerationApi* | [**getManualBadges**](Apis/ModerationApi.md#getManualBadges) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges | | +*ModerationApi* | [**getManualBadgesForUser**](Apis/ModerationApi.md#getManualBadgesForUser) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | | +*ModerationApi* | [**getModerationComment**](Apis/ModerationApi.md#getModerationComment) | **GET** /auth/my-account/moderate-comments/mod_api/comment/{commentId} | | +*ModerationApi* | [**getModerationCommentText**](Apis/ModerationApi.md#getModerationCommentText) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | | +*ModerationApi* | [**getPreBanSummary**](Apis/ModerationApi.md#getPreBanSummary) | **GET** /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | | +*ModerationApi* | [**getSearchCommentsSummary**](Apis/ModerationApi.md#getSearchCommentsSummary) | **GET** /auth/my-account/moderate-comments/mod_api/search/comments/summary | | +*ModerationApi* | [**getSearchPages**](Apis/ModerationApi.md#getSearchPages) | **GET** /auth/my-account/moderate-comments/mod_api/search/pages | | +*ModerationApi* | [**getSearchSites**](Apis/ModerationApi.md#getSearchSites) | **GET** /auth/my-account/moderate-comments/mod_api/search/sites | | +*ModerationApi* | [**getSearchSuggest**](Apis/ModerationApi.md#getSearchSuggest) | **GET** /auth/my-account/moderate-comments/mod_api/search/suggest | | +*ModerationApi* | [**getSearchUsers**](Apis/ModerationApi.md#getSearchUsers) | **GET** /auth/my-account/moderate-comments/mod_api/search/users | | +*ModerationApi* | [**getTrustFactor**](Apis/ModerationApi.md#getTrustFactor) | **GET** /auth/my-account/moderate-comments/mod_api/get-trust-factor | | +*ModerationApi* | [**getUserBanPreference**](Apis/ModerationApi.md#getUserBanPreference) | **GET** /auth/my-account/moderate-comments/mod_api/user-ban-preference | | +*ModerationApi* | [**getUserInternalProfile**](Apis/ModerationApi.md#getUserInternalProfile) | **GET** /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | | +*ModerationApi* | [**postAdjustCommentVotes**](Apis/ModerationApi.md#postAdjustCommentVotes) | **POST** /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | | +*ModerationApi* | [**postApiExport**](Apis/ModerationApi.md#postApiExport) | **POST** /auth/my-account/moderate-comments/mod_api/api/export | | +*ModerationApi* | [**postBanUserFromComment**](Apis/ModerationApi.md#postBanUserFromComment) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | | +*ModerationApi* | [**postBanUserUndo**](Apis/ModerationApi.md#postBanUserUndo) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/undo | | +*ModerationApi* | [**postBulkPreBanSummary**](Apis/ModerationApi.md#postBulkPreBanSummary) | **POST** /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | | +*ModerationApi* | [**postCommentsByIds**](Apis/ModerationApi.md#postCommentsByIds) | **POST** /auth/my-account/moderate-comments/mod_api/comments-by-ids | | +*ModerationApi* | [**postFlagComment**](Apis/ModerationApi.md#postFlagComment) | **POST** /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | | +*ModerationApi* | [**postRemoveComment**](Apis/ModerationApi.md#postRemoveComment) | **POST** /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | | +*ModerationApi* | [**postRestoreDeletedComment**](Apis/ModerationApi.md#postRestoreDeletedComment) | **POST** /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | | +*ModerationApi* | [**postSetCommentApprovalStatus**](Apis/ModerationApi.md#postSetCommentApprovalStatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | | +*ModerationApi* | [**postSetCommentReviewStatus**](Apis/ModerationApi.md#postSetCommentReviewStatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | | +*ModerationApi* | [**postSetCommentSpamStatus**](Apis/ModerationApi.md#postSetCommentSpamStatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | | +*ModerationApi* | [**postSetCommentText**](Apis/ModerationApi.md#postSetCommentText) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | | +*ModerationApi* | [**postUnFlagComment**](Apis/ModerationApi.md#postUnFlagComment) | **POST** /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | | +*ModerationApi* | [**postVote**](Apis/ModerationApi.md#postVote) | **POST** /auth/my-account/moderate-comments/mod_api/vote/{commentId} | | +*ModerationApi* | [**putAwardBadge**](Apis/ModerationApi.md#putAwardBadge) | **PUT** /auth/my-account/moderate-comments/mod_api/award-badge | | +*ModerationApi* | [**putCloseThread**](Apis/ModerationApi.md#putCloseThread) | **PUT** /auth/my-account/moderate-comments/mod_api/close-thread | | +*ModerationApi* | [**putRemoveBadge**](Apis/ModerationApi.md#putRemoveBadge) | **PUT** /auth/my-account/moderate-comments/mod_api/remove-badge | | +*ModerationApi* | [**putReopenThread**](Apis/ModerationApi.md#putReopenThread) | **PUT** /auth/my-account/moderate-comments/mod_api/reopen-thread | | +*ModerationApi* | [**setTrustFactor**](Apis/ModerationApi.md#setTrustFactor) | **PUT** /auth/my-account/moderate-comments/mod_api/set-trust-factor | | | *PublicApi* | [**blockFromCommentPublic**](Apis/PublicApi.md#blockFromCommentPublic) | **POST** /block-from-comment/{commentId} | | *PublicApi* | [**checkedCommentsForBlocked**](Apis/PublicApi.md#checkedCommentsForBlocked) | **GET** /check-blocked-comments | | *PublicApi* | [**createCommentPublic**](Apis/PublicApi.md#createCommentPublic) | **POST** /comments/{tenantId} | | @@ -480,7 +480,7 @@ All URIs are relative to *https://fastcomments.com* - [PatchPageAPIResponse](./Models/PatchPageAPIResponse.md) - [PatchSSOUserAPIResponse](./Models/PatchSSOUserAPIResponse.md) - [PendingCommentToSyncOutbound](./Models/PendingCommentToSyncOutbound.md) - - [PostRemoveCommentResponse](./Models/PostRemoveCommentResponse.md) + - [PostRemoveCommentApiResponse](./Models/PostRemoveCommentApiResponse.md) - [PreBanSummary](./Models/PreBanSummary.md) - [PubSubComment](./Models/PubSubComment.md) - [PubSubCommentBase](./Models/PubSubCommentBase.md) diff --git a/openapi.json b/openapi.json index 0f72c9c..302747d 100644 --- a/openapi.json +++ b/openapi.json @@ -13107,9 +13107,9 @@ ] } }, - "/auth/my-account/moderate-comments/count": { + "/auth/my-account/moderate-comments/mod_api/count": { "get": { - "operationId": "GetCount", + "operationId": "getCount", "responses": { "200": { "description": "Ok", @@ -13137,6 +13137,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13177,14 +13185,6 @@ "type": "boolean" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -13196,9 +13196,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/ids": { + "/auth/my-account/moderate-comments/mod_api/api/ids": { "get": { - "operationId": "GetApiIds", + "operationId": "getApiIds", "responses": { "200": { "description": "Ok", @@ -13226,6 +13226,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13274,14 +13282,6 @@ "type": "boolean" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -13293,9 +13293,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/comments": { + "/auth/my-account/moderate-comments/mod_api/api/comments": { "get": { - "operationId": "GetApiComments", + "operationId": "getApiComments", "responses": { "200": { "description": "Ok", @@ -13323,6 +13323,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "page", @@ -13389,14 +13397,6 @@ "type": "boolean" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -13408,9 +13408,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/export": { + "/auth/my-account/moderate-comments/mod_api/api/export": { "post": { - "operationId": "PostApiExport", + "operationId": "postApiExport", "responses": { "200": { "description": "Ok", @@ -13440,15 +13440,15 @@ "parameters": [ { "in": "query", - "name": "text-search", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "byIPFromComment", + "name": "text-search", "required": false, "schema": { "type": "string" @@ -13456,7 +13456,7 @@ }, { "in": "query", - "name": "filters", + "name": "byIPFromComment", "required": false, "schema": { "type": "string" @@ -13464,7 +13464,7 @@ }, { "in": "query", - "name": "searchFilters", + "name": "filters", "required": false, "schema": { "type": "string" @@ -13472,7 +13472,7 @@ }, { "in": "query", - "name": "sorts", + "name": "searchFilters", "required": false, "schema": { "type": "string" @@ -13480,7 +13480,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "sorts", "required": false, "schema": { "type": "string" @@ -13497,9 +13497,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/export/status": { + "/auth/my-account/moderate-comments/mod_api/api/export/status": { "get": { - "operationId": "GetApiExportStatus", + "operationId": "getApiExportStatus", "responses": { "200": { "description": "Ok", @@ -13529,15 +13529,15 @@ "parameters": [ { "in": "query", - "name": "batchJobId", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "batchJobId", "required": false, "schema": { "type": "string" @@ -13554,9 +13554,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/users": { + "/auth/my-account/moderate-comments/mod_api/search/users": { "get": { - "operationId": "GetSearchUsers", + "operationId": "getSearchUsers", "responses": { "200": { "description": "Ok", @@ -13586,15 +13586,15 @@ "parameters": [ { "in": "query", - "name": "value", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "value", "required": false, "schema": { "type": "string" @@ -13611,9 +13611,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/pages": { + "/auth/my-account/moderate-comments/mod_api/search/pages": { "get": { - "operationId": "GetSearchPages", + "operationId": "getSearchPages", "responses": { "200": { "description": "Ok", @@ -13643,15 +13643,15 @@ "parameters": [ { "in": "query", - "name": "value", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "value", "required": false, "schema": { "type": "string" @@ -13668,9 +13668,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/sites": { + "/auth/my-account/moderate-comments/mod_api/search/sites": { "get": { - "operationId": "GetSearchSites", + "operationId": "getSearchSites", "responses": { "200": { "description": "Ok", @@ -13700,15 +13700,15 @@ "parameters": [ { "in": "query", - "name": "value", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "value", "required": false, "schema": { "type": "string" @@ -13725,9 +13725,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/comments/summary": { + "/auth/my-account/moderate-comments/mod_api/search/comments/summary": { "get": { - "operationId": "GetSearchCommentsSummary", + "operationId": "getSearchCommentsSummary", "responses": { "200": { "description": "Ok", @@ -13757,15 +13757,15 @@ "parameters": [ { "in": "query", - "name": "value", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "filters", + "name": "value", "required": false, "schema": { "type": "string" @@ -13773,7 +13773,7 @@ }, { "in": "query", - "name": "searchFilters", + "name": "filters", "required": false, "schema": { "type": "string" @@ -13781,7 +13781,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "searchFilters", "required": false, "schema": { "type": "string" @@ -13798,9 +13798,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/suggest": { + "/auth/my-account/moderate-comments/mod_api/search/suggest": { "get": { - "operationId": "GetSearchSuggest", + "operationId": "getSearchSuggest", "responses": { "200": { "description": "Ok", @@ -13830,15 +13830,15 @@ "parameters": [ { "in": "query", - "name": "text-search", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "text-search", "required": false, "schema": { "type": "string" @@ -13855,9 +13855,9 @@ ] } }, - "/auth/my-account/moderate-comments/pre-ban-summary/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}": { "get": { - "operationId": "GetPreBanSummary", + "operationId": "getPreBanSummary", "responses": { "200": { "description": "Ok", @@ -13885,6 +13885,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -13917,14 +13925,6 @@ "type": "boolean" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -13936,9 +13936,9 @@ ] } }, - "/auth/my-account/moderate-comments/bulk-pre-ban-summary": { + "/auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary": { "post": { - "operationId": "PostBulkPreBanSummary", + "operationId": "postBulkPreBanSummary", "responses": { "200": { "description": "Ok", @@ -13968,15 +13968,15 @@ "parameters": [ { "in": "query", - "name": "includeByUserIdAndEmail", - "required": false, + "name": "tenantId", + "required": true, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "includeByIP", + "name": "includeByUserIdAndEmail", "required": false, "schema": { "type": "boolean" @@ -13984,7 +13984,7 @@ }, { "in": "query", - "name": "includeByEmailDomain", + "name": "includeByIP", "required": false, "schema": { "type": "boolean" @@ -13992,10 +13992,10 @@ }, { "in": "query", - "name": "tenantId", + "name": "includeByEmailDomain", "required": false, "schema": { - "type": "string" + "type": "boolean" } }, { @@ -14019,9 +14019,9 @@ } } }, - "/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}": { "post": { - "operationId": "PostBanUserFromComment", + "operationId": "postBanUserFromComment", "responses": { "200": { "description": "Ok", @@ -14049,6 +14049,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14121,14 +14129,6 @@ "type": "string" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -14140,9 +14140,9 @@ ] } }, - "/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}": { "get": { - "operationId": "GetBanUsersFromComment", + "operationId": "getBanUsersFromComment", "responses": { "200": { "description": "Ok", @@ -14171,17 +14171,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -14197,9 +14197,9 @@ ] } }, - "/auth/my-account/moderate-comments/ban-user/undo": { + "/auth/my-account/moderate-comments/mod_api/ban-user/undo": { "post": { - "operationId": "PostBanUserUndo", + "operationId": "postBanUserUndo", "responses": { "200": { "description": "Ok", @@ -14230,7 +14230,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -14256,16 +14256,16 @@ } } }, - "/auth/my-account/moderate-comments/remove-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}": { "post": { - "operationId": "PostRemoveComment", + "operationId": "postRemoveComment", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "title": "PostRemoveCommentResponse", + "title": "PostRemoveCommentApiResponse", "anyOf": [ { "$ref": "#/components/schemas/DeleteCommentResult" @@ -14295,24 +14295,24 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "broadcastId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14329,9 +14329,9 @@ ] } }, - "/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}": { "post": { - "operationId": "PostRestoreDeletedComment", + "operationId": "postRestoreDeletedComment", "responses": { "200": { "description": "Ok", @@ -14360,24 +14360,24 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "broadcastId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14394,9 +14394,9 @@ ] } }, - "/auth/my-account/moderate-comments/flag-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}": { "post": { - "operationId": "PostFlagComment", + "operationId": "postFlagComment", "responses": { "200": { "description": "Ok", @@ -14425,24 +14425,24 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "broadcastId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14459,9 +14459,9 @@ ] } }, - "/auth/my-account/moderate-comments/un-flag-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}": { "post": { - "operationId": "PostUnFlagComment", + "operationId": "postUnFlagComment", "responses": { "200": { "description": "Ok", @@ -14490,24 +14490,24 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "broadcastId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14524,9 +14524,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-review-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}": { "post": { - "operationId": "PostSetCommentReviewStatus", + "operationId": "postSetCommentReviewStatus", "responses": { "200": { "description": "Ok", @@ -14554,6 +14554,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14578,14 +14586,6 @@ "type": "string" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -14597,9 +14597,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}": { "post": { - "operationId": "PostSetCommentSpamStatus", + "operationId": "postSetCommentSpamStatus", "responses": { "200": { "description": "Ok", @@ -14627,6 +14627,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14659,14 +14667,6 @@ "type": "string" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -14678,9 +14678,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}": { "post": { - "operationId": "PostSetCommentApprovalStatus", + "operationId": "postSetCommentApprovalStatus", "responses": { "200": { "description": "Ok", @@ -14708,6 +14708,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14732,14 +14740,6 @@ "type": "string" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -14751,9 +14751,9 @@ ] } }, - "/auth/my-account/moderate-comments/logs/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/logs/{commentId}": { "get": { - "operationId": "GetLogs", + "operationId": "getLogs", "responses": { "200": { "description": "Ok", @@ -14782,17 +14782,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -14808,9 +14808,9 @@ ] } }, - "/auth/my-account/moderate-comments/comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/comment/{commentId}": { "get": { - "operationId": "GetModerationComment", + "operationId": "getModerationComment", "responses": { "200": { "description": "Ok", @@ -14838,6 +14838,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14862,14 +14870,6 @@ "type": "boolean" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -14881,9 +14881,9 @@ ] } }, - "/auth/my-account/moderate-comments/comments-by-ids": { + "/auth/my-account/moderate-comments/mod_api/comments-by-ids": { "post": { - "operationId": "PostCommentsByIds", + "operationId": "postCommentsByIds", "responses": { "200": { "description": "Ok", @@ -14914,7 +14914,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -14940,9 +14940,9 @@ } } }, - "/auth/my-account/moderate-comments/comment-children/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/comment-children/{commentId}": { "get": { - "operationId": "GetCommentChildren", + "operationId": "getCommentChildren", "responses": { "200": { "description": "Ok", @@ -14971,17 +14971,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -14997,9 +14997,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-comment-text/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}": { "get": { - "operationId": "GetModerationCommentText", + "operationId": "getModerationCommentText", "responses": { "200": { "description": "Ok", @@ -15028,17 +15028,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -15054,9 +15054,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-text/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}": { "post": { - "operationId": "PostSetCommentText", + "operationId": "postSetCommentText", "responses": { "200": { "description": "Ok", @@ -15085,24 +15085,24 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "broadcastId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15129,9 +15129,9 @@ } } }, - "/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}": { "post": { - "operationId": "PostAdjustCommentVotes", + "operationId": "postAdjustCommentVotes", "responses": { "200": { "description": "Ok", @@ -15160,24 +15160,24 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "broadcastId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15204,9 +15204,9 @@ } } }, - "/auth/my-account/moderate-comments/vote/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/vote/{commentId}": { "post": { - "operationId": "PostVote", + "operationId": "postVote", "responses": { "200": { "description": "Ok", @@ -15235,24 +15235,24 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "direction", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "broadcastId", + "name": "direction", "required": false, "schema": { "type": "string" @@ -15260,7 +15260,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15277,9 +15277,9 @@ ] } }, - "/auth/my-account/moderate-comments/vote/{commentId}/{voteId}": { + "/auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}": { "delete": { - "operationId": "DeleteModerationVote", + "operationId": "deleteModerationVote", "responses": { "200": { "description": "Ok", @@ -15308,8 +15308,8 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" @@ -15317,23 +15317,23 @@ }, { "in": "path", - "name": "voteId", + "name": "commentId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "broadcastId", - "required": false, + "in": "path", + "name": "voteId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15350,9 +15350,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}": { "get": { - "operationId": "GetCommentBanStatus", + "operationId": "getCommentBanStatus", "responses": { "200": { "description": "Ok", @@ -15381,17 +15381,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -15407,9 +15407,9 @@ ] } }, - "/auth/my-account/moderate-comments/user-ban-preference": { + "/auth/my-account/moderate-comments/mod_api/user-ban-preference": { "get": { - "operationId": "GetUserBanPreference", + "operationId": "getUserBanPreference", "responses": { "200": { "description": "Ok", @@ -15440,7 +15440,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -15456,9 +15456,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-manual-badges": { + "/auth/my-account/moderate-comments/mod_api/get-manual-badges": { "get": { - "operationId": "GetManualBadges", + "operationId": "getManualBadges", "responses": { "200": { "description": "Ok", @@ -15489,7 +15489,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -15505,9 +15505,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-manual-badges-for-user": { + "/auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user": { "get": { - "operationId": "GetManualBadgesForUser", + "operationId": "getManualBadgesForUser", "responses": { "200": { "description": "Ok", @@ -15537,15 +15537,15 @@ "parameters": [ { "in": "query", - "name": "badgesUserId", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "commentId", + "name": "badgesUserId", "required": false, "schema": { "type": "string" @@ -15553,7 +15553,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "commentId", "required": false, "schema": { "type": "string" @@ -15570,9 +15570,9 @@ ] } }, - "/auth/my-account/moderate-comments/award-badge": { + "/auth/my-account/moderate-comments/mod_api/award-badge": { "put": { - "operationId": "PutAwardBadge", + "operationId": "putAwardBadge", "responses": { "200": { "description": "Ok", @@ -15602,7 +15602,7 @@ "parameters": [ { "in": "query", - "name": "badgeId", + "name": "tenantId", "required": true, "schema": { "type": "string" @@ -15610,15 +15610,15 @@ }, { "in": "query", - "name": "userId", - "required": false, + "name": "badgeId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "commentId", + "name": "userId", "required": false, "schema": { "type": "string" @@ -15626,7 +15626,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "commentId", "required": false, "schema": { "type": "string" @@ -15634,7 +15634,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15651,9 +15651,9 @@ ] } }, - "/auth/my-account/moderate-comments/remove-badge": { + "/auth/my-account/moderate-comments/mod_api/remove-badge": { "put": { - "operationId": "PutRemoveBadge", + "operationId": "putRemoveBadge", "responses": { "200": { "description": "Ok", @@ -15683,7 +15683,7 @@ "parameters": [ { "in": "query", - "name": "badgeId", + "name": "tenantId", "required": true, "schema": { "type": "string" @@ -15691,15 +15691,15 @@ }, { "in": "query", - "name": "userId", - "required": false, + "name": "badgeId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "commentId", + "name": "userId", "required": false, "schema": { "type": "string" @@ -15707,7 +15707,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "commentId", "required": false, "schema": { "type": "string" @@ -15715,7 +15715,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15732,9 +15732,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-trust-factor": { + "/auth/my-account/moderate-comments/mod_api/get-trust-factor": { "get": { - "operationId": "GetTrustFactor", + "operationId": "getTrustFactor", "responses": { "200": { "description": "Ok", @@ -15764,15 +15764,15 @@ "parameters": [ { "in": "query", - "name": "userId", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "userId", "required": false, "schema": { "type": "string" @@ -15789,9 +15789,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-trust-factor": { + "/auth/my-account/moderate-comments/mod_api/set-trust-factor": { "put": { - "operationId": "SetTrustFactor", + "operationId": "setTrustFactor", "responses": { "200": { "description": "Ok", @@ -15821,15 +15821,15 @@ "parameters": [ { "in": "query", - "name": "userId", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "trustFactor", + "name": "userId", "required": false, "schema": { "type": "string" @@ -15837,7 +15837,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "trustFactor", "required": false, "schema": { "type": "string" @@ -15854,9 +15854,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-user-internal-profile": { + "/auth/my-account/moderate-comments/mod_api/get-user-internal-profile": { "get": { - "operationId": "GetUserInternalProfile", + "operationId": "getUserInternalProfile", "responses": { "200": { "description": "Ok", @@ -15886,15 +15886,15 @@ "parameters": [ { "in": "query", - "name": "commentId", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "commentId", "required": false, "schema": { "type": "string" @@ -15911,9 +15911,9 @@ ] } }, - "/auth/my-account/moderate-comments/reopen-thread": { + "/auth/my-account/moderate-comments/mod_api/reopen-thread": { "put": { - "operationId": "PutReopenThread", + "operationId": "putReopenThread", "responses": { "200": { "description": "Ok", @@ -15943,7 +15943,7 @@ "parameters": [ { "in": "query", - "name": "urlId", + "name": "tenantId", "required": true, "schema": { "type": "string" @@ -15951,8 +15951,8 @@ }, { "in": "query", - "name": "tenantId", - "required": false, + "name": "urlId", + "required": true, "schema": { "type": "string" } @@ -15968,9 +15968,9 @@ ] } }, - "/auth/my-account/moderate-comments/close-thread": { + "/auth/my-account/moderate-comments/mod_api/close-thread": { "put": { - "operationId": "PutCloseThread", + "operationId": "putCloseThread", "responses": { "200": { "description": "Ok", @@ -16000,7 +16000,7 @@ "parameters": [ { "in": "query", - "name": "urlId", + "name": "tenantId", "required": true, "schema": { "type": "string" @@ -16008,8 +16008,8 @@ }, { "in": "query", - "name": "tenantId", - "required": false, + "name": "urlId", + "required": true, "schema": { "type": "string" } @@ -16025,9 +16025,9 @@ ] } }, - "/auth/my-account/moderate-comments/banned-users/counts": { + "/auth/my-account/moderate-comments/banned-users/mod_api/counts": { "get": { - "operationId": "GetCounts", + "operationId": "getCounts", "responses": { "200": { "description": "Ok", @@ -16058,7 +16058,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -23027,7 +23027,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -23079,7 +23079,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -23129,17 +23129,17 @@ ], "parameters": [ { - "in": "path", - "name": "tag", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "tag", + "required": true, "schema": { "type": "string" } @@ -23187,17 +23187,17 @@ ], "parameters": [ { - "in": "path", - "name": "tag", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "tag", + "required": true, "schema": { "type": "string" } diff --git a/tests/sso_integration_test.cpp b/tests/sso_integration_test.cpp index 28b676b..f5e23c2 100644 --- a/tests/sso_integration_test.cpp +++ b/tests/sso_integration_test.cpp @@ -59,12 +59,7 @@ TEST_F(SSOIntegrationTest, PublicAPINoSSO) { auto response = publicApi.getCommentsPublic( utility::conversions::to_string_t(tenantID), - utility::conversions::to_string_t("sdk-test-page"), - boost::none, boost::none, boost::none, boost::none, boost::none, boost::none, - boost::none, boost::none, boost::none, boost::none, boost::none, boost::none, - boost::none, boost::none, boost::none, boost::none, boost::none, boost::none, - boost::none, boost::none, boost::none, boost::none, boost::none, boost::none, - boost::none, boost::none + utility::conversions::to_string_t("sdk-test-page") ).get(); ASSERT_NE(response, nullptr); @@ -98,26 +93,26 @@ TEST_F(SSOIntegrationTest, PublicAPIWithSecureSSO) { commentData->setCommenterName(utility::conversions::to_string_t(user.username)); commentData->setDate(timestamp); + CreateCommentPublicOptions createOpts; + createOpts.sso = utility::conversions::to_string_t(token); + auto createResponse = publicApi.createCommentPublic( utility::conversions::to_string_t(tenantID), utility::conversions::to_string_t("sdk-test-cpp"), utility::conversions::to_string_t("test-" + std::to_string(timestamp)), commentData, - boost::none, - utility::conversions::to_string_t(token) + createOpts ).get(); ASSERT_NE(createResponse, nullptr); + GetCommentsPublicOptions getOpts; + getOpts.sso = utility::conversions::to_string_t(token); + auto getResponse = publicApi.getCommentsPublic( utility::conversions::to_string_t(tenantID), utility::conversions::to_string_t("sdk-test-cpp"), - boost::none, boost::none, - utility::conversions::to_string_t(token), - boost::none, boost::none, boost::none, boost::none, boost::none, boost::none, - boost::none, boost::none, boost::none, boost::none, boost::none, boost::none, - boost::none, boost::none, boost::none, boost::none, boost::none, boost::none, - boost::none, boost::none, boost::none, boost::none, boost::none + getOpts ).get(); ASSERT_NE(getResponse, nullptr); @@ -155,13 +150,15 @@ TEST_F(SSOIntegrationTest, DefaultAPIWithAPIKey) { commentData->setCommenterName(utility::conversions::to_string_t(user.username)); commentData->setDate(timestamp); + CreateCommentPublicOptions createOpts; + createOpts.sso = utility::conversions::to_string_t(token); + auto createResponse = publicApi.createCommentPublic( utility::conversions::to_string_t(tenantID), utility::conversions::to_string_t(testUrlId), utility::conversions::to_string_t("test-" + std::to_string(timestamp)), commentData, - boost::none, - utility::conversions::to_string_t(token) + createOpts ).get(); ASSERT_NE(createResponse, nullptr); @@ -177,24 +174,12 @@ TEST_F(SSOIntegrationTest, DefaultAPIWithAPIKey) { auto defaultApiClient = std::make_shared(defaultConfig); DefaultApi defaultApi(defaultApiClient); + GetCommentsOptions getOpts; + getOpts.urlId = utility::conversions::to_string_t(testUrlId); + auto getResponse = defaultApi.getComments( utility::conversions::to_string_t(tenantID), - boost::none, // page - boost::none, // limit - boost::none, // skip - boost::none, // asTree - boost::none, // skipChildren - boost::none, // limitChildren - boost::none, // maxTreeDepth - utility::conversions::to_string_t(testUrlId), // urlId - boost::none, // userId - boost::none, // anonUserId - boost::none, // contextUserId - boost::none, // hashTag - boost::none, // parentId - boost::none, // direction - boost::none, // fromDate - boost::none // toDate + getOpts ).get(); ASSERT_NE(getResponse, nullptr); @@ -265,13 +250,15 @@ TEST_F(SSOIntegrationTest, PublicAPICreateAndFetch) { commentData->setCommenterName(utility::conversions::to_string_t(user.username)); commentData->setDate(timestamp); + CreateCommentPublicOptions createOpts; + createOpts.sso = utility::conversions::to_string_t(token); + auto createResponse = publicApi.createCommentPublic( utility::conversions::to_string_t(tenantID), utility::conversions::to_string_t(testUrlId), utility::conversions::to_string_t("test-" + std::to_string(timestamp)), commentData, - boost::none, - utility::conversions::to_string_t(token) + createOpts ).get(); ASSERT_NE(createResponse, nullptr); @@ -280,16 +267,13 @@ TEST_F(SSOIntegrationTest, PublicAPICreateAndFetch) { // Step 2: Fetch the comment back using PUBLIC API with SSO std::cout << "Step 2: Fetching comments for page '" << testUrlId << "' with SSO..." << std::endl; + GetCommentsPublicOptions getOpts; + getOpts.sso = utility::conversions::to_string_t(token); + auto getResponse = publicApi.getCommentsPublic( utility::conversions::to_string_t(tenantID), utility::conversions::to_string_t(testUrlId), - boost::none, // page - boost::none, // limit - utility::conversions::to_string_t(token), // ssoToken - boost::none, boost::none, boost::none, boost::none, boost::none, boost::none, - boost::none, boost::none, boost::none, boost::none, boost::none, boost::none, - boost::none, boost::none, boost::none, boost::none, boost::none, boost::none, - boost::none, boost::none, boost::none, boost::none, boost::none + getOpts ).get(); ASSERT_NE(getResponse, nullptr); diff --git a/update.sh b/update.sh index d4d9f17..7f8f125 100755 --- a/update.sh +++ b/update.sh @@ -4,7 +4,7 @@ # drops operations whose response types it can't model (the entire Moderation API and # several Public API methods), so cpp must use this build, which also has the nested # map fix. Just a jar; downloaded on demand. -JAR_URL="https://github.com/winrid/openapi-generator/releases/download/fastcomments-build-20260619/openapi-generator-cli.jar" +JAR_URL="https://github.com/winrid/openapi-generator/releases/download/fastcomments-build-20260630/openapi-generator-cli.jar" JAR_FILE="./openapi-generator-cli.jar" [ -f "$JAR_FILE" ] || wget -q "$JAR_URL" -O "$JAR_FILE"