From a915a24d85a9ecb99a70d3bdf9992a01d7a48bb1 Mon Sep 17 00:00:00 2001 From: winrid Date: Mon, 22 Jun 2026 19:39:16 -0700 Subject: [PATCH 1/6] Regenerate with grouped request objects (useSingleRequestParameter) API methods now take a single ApiRequest struct. Updated SSO integration test and README examples. --- README.md | 48 +- .../FastCommentsClient/api/DefaultApi.h | 1208 ++++++++++++----- .../FastCommentsClient/api/ModerationApi.h | 580 +++++--- .../FastCommentsClient/api/PublicApi.h | 704 ++++++---- client/src/api/DefaultApi.cpp | 604 +++++++-- client/src/api/ModerationApi.cpp | 381 ++++-- client/src/api/PublicApi.cpp | 352 ++++- config.json | 3 +- docs/Apis/ModerationApi.md | 52 +- openapi.json | 52 +- tests/sso_integration_test.cpp | 119 +- 11 files changed, 2856 insertions(+), 1247 deletions(-) diff --git a/README.md b/README.md index 8f35833..776e4b1 100644 --- a/README.md +++ b/README.md @@ -126,14 +126,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::ModerationApi::ApiGetCountRequest request; + request.sso = ssoToken; + + auto response = moderationApi.getCount(request).get(); return 0; } @@ -162,24 +158,13 @@ config->setApiKey(utility::conversions::to_string_t("api_key"), auto apiClient = std::make_shared(config); org::openapitools::client::api::DefaultApi api(apiClient); +// Build the request struct (one field per parameter) +org::openapitools::client::api::DefaultApi::ApiGetCommentsRequest request; +request.tenantId = utility::conversions::to_string_t("your-tenant-id"); +request.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 -).get(); // Blocks until the HTTP request completes +auto response = api.getComments(request).get(); // Blocks until the HTTP request completes if (response && response->comments) { std::cout << "Found " << response->comments->size() << " comments" << std::endl; @@ -199,14 +184,13 @@ config->setApiKey(utility::conversions::to_string_t("api_key"), auto apiClient = std::make_shared(config); org::openapitools::client::api::DefaultApi api(apiClient); +// Build the request struct (one field per parameter) +org::openapitools::client::api::DefaultApi::ApiGetCommentsRequest request; +request.tenantId = utility::conversions::to_string_t("your-tenant-id"); +request.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 -).then([](std::shared_ptr response) { +api.getComments(request).then([](std::shared_ptr response) { // This runs asynchronously when the request completes if (response && response->comments) { std::cout << "Found " << response->comments->size() << " comments" << std::endl; diff --git a/client/include/FastCommentsClient/api/DefaultApi.h b/client/include/FastCommentsClient/api/DefaultApi.h index a2d41a8..410c124 100644 --- a/client/include/FastCommentsClient/api/DefaultApi.h +++ b/client/include/FastCommentsClient/api/DefaultApi.h @@ -185,9 +185,13 @@ class DefaultApi /// /// /// + struct ApiAddDomainConfigRequest + { + utility::string_t tenantId; + std::shared_ptr addDomainConfigParams; + }; pplx::task> addDomainConfig( - utility::string_t tenantId, - std::shared_ptr addDomainConfigParams + const ApiAddDomainConfigRequest& request ) const; /// /// @@ -197,9 +201,13 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) + struct ApiAddHashTagRequest + { + boost::optional tenantId; + boost::optional> createHashTagBody; + }; pplx::task> addHashTag( - boost::optional tenantId, - boost::optional> createHashTagBody + const ApiAddHashTagRequest& request ) const; /// /// @@ -209,9 +217,13 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) + struct ApiAddHashTagsBulkRequest + { + boost::optional tenantId; + boost::optional> bulkCreateHashTagsBody; + }; pplx::task> addHashTagsBulk( - boost::optional tenantId, - boost::optional> bulkCreateHashTagsBody + const ApiAddHashTagsBulkRequest& request ) const; /// /// @@ -221,9 +233,13 @@ class DefaultApi /// /// /// + struct ApiAddPageRequest + { + utility::string_t tenantId; + std::shared_ptr createAPIPageData; + }; pplx::task> addPage( - utility::string_t tenantId, - std::shared_ptr createAPIPageData + const ApiAddPageRequest& request ) const; /// /// @@ -233,9 +249,13 @@ class DefaultApi /// /// /// + struct ApiAddSSOUserRequest + { + utility::string_t tenantId; + std::shared_ptr createAPISSOUserData; + }; pplx::task> addSSOUser( - utility::string_t tenantId, - std::shared_ptr createAPISSOUserData + const ApiAddSSOUserRequest& request ) const; /// /// @@ -247,11 +267,15 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) + struct ApiAggregateRequest + { + utility::string_t tenantId; + std::shared_ptr aggregationRequest; + boost::optional parentTenantId; + boost::optional includeStats; + }; pplx::task> aggregate( - utility::string_t tenantId, - std::shared_ptr aggregationRequest, - boost::optional parentTenantId, - boost::optional includeStats + const ApiAggregateRequest& request ) const; /// /// @@ -266,14 +290,18 @@ class DefaultApi /// (optional, default to new AggregateTimeBucket()) /// (optional, default to utility::datetime()) /// (optional, default to false) + struct ApiAggregateQuestionResultsRequest + { + utility::string_t tenantId; + boost::optional questionId; + boost::optional> questionIds; + boost::optional urlId; + boost::optional> timeBucket; + boost::optional startDate; + boost::optional forceRecalculate; + }; 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 + const ApiAggregateQuestionResultsRequest& request ) const; /// /// @@ -286,12 +314,16 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiBlockUserFromCommentRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr blockFromCommentParams; + boost::optional userId; + boost::optional anonUserId; + }; pplx::task> blockUserFromComment( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr blockFromCommentParams, - boost::optional userId, - boost::optional anonUserId + const ApiBlockUserFromCommentRequest& request ) const; /// /// @@ -302,10 +334,14 @@ class DefaultApi /// /// /// (optional, default to false) + struct ApiBulkAggregateQuestionResultsRequest + { + utility::string_t tenantId; + std::shared_ptr bulkAggregateQuestionResultsRequest; + boost::optional forceRecalculate; + }; pplx::task> bulkAggregateQuestionResults( - utility::string_t tenantId, - std::shared_ptr bulkAggregateQuestionResultsRequest, - boost::optional forceRecalculate + const ApiBulkAggregateQuestionResultsRequest& request ) const; /// /// @@ -317,11 +353,15 @@ class DefaultApi /// /// /// + struct ApiChangeTicketStateRequest + { + utility::string_t tenantId; + utility::string_t userId; + utility::string_t id; + std::shared_ptr changeTicketStateBody; + }; pplx::task> changeTicketState( - utility::string_t tenantId, - utility::string_t userId, - utility::string_t id, - std::shared_ptr changeTicketStateBody + const ApiChangeTicketStateRequest& request ) const; /// /// @@ -338,16 +378,20 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) /// (optional, default to 0.0) + struct ApiCombineCommentsWithQuestionResultsRequest + { + 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; + }; 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 + const ApiCombineCommentsWithQuestionResultsRequest& request ) const; /// /// @@ -357,9 +401,13 @@ class DefaultApi /// /// /// + struct ApiCreateEmailTemplateRequest + { + utility::string_t tenantId; + std::shared_ptr createEmailTemplateBody; + }; pplx::task> createEmailTemplate( - utility::string_t tenantId, - std::shared_ptr createEmailTemplateBody + const ApiCreateEmailTemplateRequest& request ) const; /// /// @@ -373,13 +421,17 @@ class DefaultApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to false) + struct ApiCreateFeedPostRequest + { + utility::string_t tenantId; + std::shared_ptr createFeedPostParams; + boost::optional broadcastId; + boost::optional isLive; + boost::optional doSpamCheck; + boost::optional skipDupCheck; + }; pplx::task> createFeedPost( - utility::string_t tenantId, - std::shared_ptr createFeedPostParams, - boost::optional broadcastId, - boost::optional isLive, - boost::optional doSpamCheck, - boost::optional skipDupCheck + const ApiCreateFeedPostRequest& request ) const; /// /// @@ -389,9 +441,13 @@ class DefaultApi /// /// /// + struct ApiCreateModeratorRequest + { + utility::string_t tenantId; + std::shared_ptr createModeratorBody; + }; pplx::task> createModerator( - utility::string_t tenantId, - std::shared_ptr createModeratorBody + const ApiCreateModeratorRequest& request ) const; /// /// @@ -401,9 +457,13 @@ class DefaultApi /// /// /// + struct ApiCreateQuestionConfigRequest + { + utility::string_t tenantId; + std::shared_ptr createQuestionConfigBody; + }; pplx::task> createQuestionConfig( - utility::string_t tenantId, - std::shared_ptr createQuestionConfigBody + const ApiCreateQuestionConfigRequest& request ) const; /// /// @@ -413,9 +473,13 @@ class DefaultApi /// /// /// + struct ApiCreateQuestionResultRequest + { + utility::string_t tenantId; + std::shared_ptr createQuestionResultBody; + }; pplx::task> createQuestionResult( - utility::string_t tenantId, - std::shared_ptr createQuestionResultBody + const ApiCreateQuestionResultRequest& request ) const; /// /// @@ -425,9 +489,13 @@ class DefaultApi /// /// /// + struct ApiCreateSubscriptionRequest + { + utility::string_t tenantId; + std::shared_ptr createAPIUserSubscriptionData; + }; pplx::task> createSubscription( - utility::string_t tenantId, - std::shared_ptr createAPIUserSubscriptionData + const ApiCreateSubscriptionRequest& request ) const; /// /// @@ -437,9 +505,13 @@ class DefaultApi /// /// /// + struct ApiCreateTenantRequest + { + utility::string_t tenantId; + std::shared_ptr createTenantBody; + }; pplx::task> createTenant( - utility::string_t tenantId, - std::shared_ptr createTenantBody + const ApiCreateTenantRequest& request ) const; /// /// @@ -449,9 +521,13 @@ class DefaultApi /// /// /// + struct ApiCreateTenantPackageRequest + { + utility::string_t tenantId; + std::shared_ptr createTenantPackageBody; + }; pplx::task> createTenantPackage( - utility::string_t tenantId, - std::shared_ptr createTenantPackageBody + const ApiCreateTenantPackageRequest& request ) const; /// /// @@ -461,9 +537,13 @@ class DefaultApi /// /// /// + struct ApiCreateTenantUserRequest + { + utility::string_t tenantId; + std::shared_ptr createTenantUserBody; + }; pplx::task> createTenantUser( - utility::string_t tenantId, - std::shared_ptr createTenantUserBody + const ApiCreateTenantUserRequest& request ) const; /// /// @@ -474,10 +554,14 @@ class DefaultApi /// /// /// + struct ApiCreateTicketRequest + { + utility::string_t tenantId; + utility::string_t userId; + std::shared_ptr createTicketBody; + }; pplx::task> createTicket( - utility::string_t tenantId, - utility::string_t userId, - std::shared_ptr createTicketBody + const ApiCreateTicketRequest& request ) const; /// /// @@ -487,9 +571,13 @@ class DefaultApi /// /// /// + struct ApiCreateUserBadgeRequest + { + utility::string_t tenantId; + std::shared_ptr createUserBadgeParams; + }; pplx::task> createUserBadge( - utility::string_t tenantId, - std::shared_ptr createUserBadgeParams + const ApiCreateUserBadgeRequest& request ) const; /// /// @@ -502,12 +590,16 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiCreateVoteRequest + { + utility::string_t tenantId; + utility::string_t commentId; + utility::string_t direction; + boost::optional userId; + boost::optional anonUserId; + }; pplx::task> createVote( - utility::string_t tenantId, - utility::string_t commentId, - utility::string_t direction, - boost::optional userId, - boost::optional anonUserId + const ApiCreateVoteRequest& request ) const; /// /// @@ -519,11 +611,15 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) + struct ApiDeleteCommentRequest + { + utility::string_t tenantId; + utility::string_t id; + boost::optional contextUserId; + boost::optional isLive; + }; pplx::task> deleteComment( - utility::string_t tenantId, - utility::string_t id, - boost::optional contextUserId, - boost::optional isLive + const ApiDeleteCommentRequest& request ) const; /// /// @@ -533,9 +629,13 @@ class DefaultApi /// /// /// + struct ApiDeleteDomainConfigRequest + { + utility::string_t tenantId; + utility::string_t domain; + }; pplx::task> deleteDomainConfig( - utility::string_t tenantId, - utility::string_t domain + const ApiDeleteDomainConfigRequest& request ) const; /// /// @@ -545,9 +645,13 @@ class DefaultApi /// /// /// + struct ApiDeleteEmailTemplateRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> deleteEmailTemplate( - utility::string_t tenantId, - utility::string_t id + const ApiDeleteEmailTemplateRequest& request ) const; /// /// @@ -558,10 +662,14 @@ class DefaultApi /// /// /// + struct ApiDeleteEmailTemplateRenderErrorRequest + { + utility::string_t tenantId; + utility::string_t id; + utility::string_t errorId; + }; pplx::task> deleteEmailTemplateRenderError( - utility::string_t tenantId, - utility::string_t id, - utility::string_t errorId + const ApiDeleteEmailTemplateRenderErrorRequest& request ) const; /// /// @@ -572,10 +680,14 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) + struct ApiDeleteHashTagRequest + { + utility::string_t tag; + boost::optional tenantId; + boost::optional> deleteHashTagRequestBody; + }; pplx::task> deleteHashTag( - utility::string_t tag, - boost::optional tenantId, - boost::optional> deleteHashTagRequestBody + const ApiDeleteHashTagRequest& request ) const; /// /// @@ -586,10 +698,14 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiDeleteModeratorRequest + { + utility::string_t tenantId; + utility::string_t id; + boost::optional sendEmail; + }; pplx::task> deleteModerator( - utility::string_t tenantId, - utility::string_t id, - boost::optional sendEmail + const ApiDeleteModeratorRequest& request ) const; /// /// @@ -599,9 +715,13 @@ class DefaultApi /// /// /// + struct ApiDeleteNotificationCountRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> deleteNotificationCount( - utility::string_t tenantId, - utility::string_t id + const ApiDeleteNotificationCountRequest& request ) const; /// /// @@ -611,9 +731,13 @@ class DefaultApi /// /// /// + struct ApiDeletePageRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> deletePage( - utility::string_t tenantId, - utility::string_t id + const ApiDeletePageRequest& request ) const; /// /// @@ -623,9 +747,13 @@ class DefaultApi /// /// /// + struct ApiDeletePendingWebhookEventRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> deletePendingWebhookEvent( - utility::string_t tenantId, - utility::string_t id + const ApiDeletePendingWebhookEventRequest& request ) const; /// /// @@ -635,9 +763,13 @@ class DefaultApi /// /// /// + struct ApiDeleteQuestionConfigRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> deleteQuestionConfig( - utility::string_t tenantId, - utility::string_t id + const ApiDeleteQuestionConfigRequest& request ) const; /// /// @@ -647,9 +779,13 @@ class DefaultApi /// /// /// + struct ApiDeleteQuestionResultRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> deleteQuestionResult( - utility::string_t tenantId, - utility::string_t id + const ApiDeleteQuestionResultRequest& request ) const; /// /// @@ -661,11 +797,15 @@ class DefaultApi /// /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiDeleteSSOUserRequest + { + utility::string_t tenantId; + utility::string_t id; + boost::optional deleteComments; + boost::optional commentDeleteMode; + }; pplx::task> deleteSSOUser( - utility::string_t tenantId, - utility::string_t id, - boost::optional deleteComments, - boost::optional commentDeleteMode + const ApiDeleteSSOUserRequest& request ) const; /// /// @@ -676,10 +816,14 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiDeleteSubscriptionRequest + { + utility::string_t tenantId; + utility::string_t id; + boost::optional userId; + }; pplx::task> deleteSubscription( - utility::string_t tenantId, - utility::string_t id, - boost::optional userId + const ApiDeleteSubscriptionRequest& request ) const; /// /// @@ -690,10 +834,14 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiDeleteTenantRequest + { + utility::string_t tenantId; + utility::string_t id; + boost::optional sure; + }; pplx::task> deleteTenant( - utility::string_t tenantId, - utility::string_t id, - boost::optional sure + const ApiDeleteTenantRequest& request ) const; /// /// @@ -703,9 +851,13 @@ class DefaultApi /// /// /// + struct ApiDeleteTenantPackageRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> deleteTenantPackage( - utility::string_t tenantId, - utility::string_t id + const ApiDeleteTenantPackageRequest& request ) const; /// /// @@ -717,11 +869,15 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiDeleteTenantUserRequest + { + utility::string_t tenantId; + utility::string_t id; + boost::optional deleteComments; + boost::optional commentDeleteMode; + }; pplx::task> deleteTenantUser( - utility::string_t tenantId, - utility::string_t id, - boost::optional deleteComments, - boost::optional commentDeleteMode + const ApiDeleteTenantUserRequest& request ) const; /// /// @@ -731,9 +887,13 @@ class DefaultApi /// /// /// + struct ApiDeleteUserBadgeRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> deleteUserBadge( - utility::string_t tenantId, - utility::string_t id + const ApiDeleteUserBadgeRequest& request ) const; /// /// @@ -744,10 +904,14 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiDeleteVoteRequest + { + utility::string_t tenantId; + utility::string_t id; + boost::optional editKey; + }; pplx::task> deleteVote( - utility::string_t tenantId, - utility::string_t id, - boost::optional editKey + const ApiDeleteVoteRequest& request ) const; /// /// @@ -759,11 +923,15 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiFlagCommentRequest + { + utility::string_t tenantId; + utility::string_t id; + boost::optional userId; + boost::optional anonUserId; + }; pplx::task> flagComment( - utility::string_t tenantId, - utility::string_t id, - boost::optional userId, - boost::optional anonUserId + const ApiFlagCommentRequest& request ) const; /// /// @@ -777,13 +945,17 @@ class DefaultApi /// (optional, default to new SORT_DIR()) /// (optional, default to 0.0) /// (optional, default to 0.0) + struct ApiGetAuditLogsRequest + { + utility::string_t tenantId; + boost::optional limit; + boost::optional skip; + boost::optional> order; + boost::optional after; + boost::optional before; + }; pplx::task> getAuditLogs( - utility::string_t tenantId, - boost::optional limit, - boost::optional skip, - boost::optional> order, - boost::optional after, - boost::optional before + const ApiGetAuditLogsRequest& request ) const; /// /// @@ -793,9 +965,13 @@ class DefaultApi /// /// /// + struct ApiGetCachedNotificationCountRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> getCachedNotificationCount( - utility::string_t tenantId, - utility::string_t id + const ApiGetCachedNotificationCountRequest& request ) const; /// /// @@ -805,9 +981,13 @@ class DefaultApi /// /// /// + struct ApiGetCommentRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> getComment( - utility::string_t tenantId, - utility::string_t id + const ApiGetCommentRequest& request ) const; /// /// @@ -832,24 +1012,28 @@ class DefaultApi /// (optional, default to new SortDirections()) /// (optional, default to 0L) /// (optional, default to 0L) + struct ApiGetCommentsRequest + { + 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; + }; 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 + const ApiGetCommentsRequest& request ) const; /// /// @@ -859,9 +1043,13 @@ class DefaultApi /// /// /// + struct ApiGetDomainConfigRequest + { + utility::string_t tenantId; + utility::string_t domain; + }; pplx::task> getDomainConfig( - utility::string_t tenantId, - utility::string_t domain + const ApiGetDomainConfigRequest& request ) const; /// /// @@ -870,8 +1058,12 @@ class DefaultApi /// /// /// + struct ApiGetDomainConfigsRequest + { + utility::string_t tenantId; + }; pplx::task> getDomainConfigs( - utility::string_t tenantId + const ApiGetDomainConfigsRequest& request ) const; /// /// @@ -881,9 +1073,13 @@ class DefaultApi /// /// /// + struct ApiGetEmailTemplateRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> getEmailTemplate( - utility::string_t tenantId, - utility::string_t id + const ApiGetEmailTemplateRequest& request ) const; /// /// @@ -892,8 +1088,12 @@ class DefaultApi /// /// /// + struct ApiGetEmailTemplateDefinitionsRequest + { + utility::string_t tenantId; + }; pplx::task> getEmailTemplateDefinitions( - utility::string_t tenantId + const ApiGetEmailTemplateDefinitionsRequest& request ) const; /// /// @@ -904,10 +1104,14 @@ class DefaultApi /// /// /// (optional, default to 0.0) + struct ApiGetEmailTemplateRenderErrorsRequest + { + utility::string_t tenantId; + utility::string_t id; + boost::optional skip; + }; pplx::task> getEmailTemplateRenderErrors( - utility::string_t tenantId, - utility::string_t id, - boost::optional skip + const ApiGetEmailTemplateRenderErrorsRequest& request ) const; /// /// @@ -917,9 +1121,13 @@ class DefaultApi /// /// /// (optional, default to 0.0) + struct ApiGetEmailTemplatesRequest + { + utility::string_t tenantId; + boost::optional skip; + }; pplx::task> getEmailTemplates( - utility::string_t tenantId, - boost::optional skip + const ApiGetEmailTemplatesRequest& request ) const; /// /// @@ -931,11 +1139,15 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0) /// (optional, default to std::vector<std::shared_ptr<utility::string_t>>()) + struct ApiGetFeedPostsRequest + { + utility::string_t tenantId; + boost::optional afterId; + boost::optional limit; + boost::optional> tags; + }; pplx::task> getFeedPosts( - utility::string_t tenantId, - boost::optional afterId, - boost::optional limit, - boost::optional> tags + const ApiGetFeedPostsRequest& request ) const; /// /// @@ -945,9 +1157,13 @@ class DefaultApi /// /// /// (optional, default to 0.0) + struct ApiGetHashTagsRequest + { + utility::string_t tenantId; + boost::optional page; + }; pplx::task> getHashTags( - utility::string_t tenantId, - boost::optional page + const ApiGetHashTagsRequest& request ) const; /// /// @@ -957,9 +1173,13 @@ class DefaultApi /// /// /// + struct ApiGetModeratorRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> getModerator( - utility::string_t tenantId, - utility::string_t id + const ApiGetModeratorRequest& request ) const; /// /// @@ -969,9 +1189,13 @@ class DefaultApi /// /// /// (optional, default to 0.0) + struct ApiGetModeratorsRequest + { + utility::string_t tenantId; + boost::optional skip; + }; pplx::task> getModerators( - utility::string_t tenantId, - boost::optional skip + const ApiGetModeratorsRequest& request ) const; /// /// @@ -985,13 +1209,17 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetNotificationCountRequest + { + utility::string_t tenantId; + boost::optional userId; + boost::optional urlId; + boost::optional fromCommentId; + boost::optional viewed; + boost::optional type; + }; pplx::task> getNotificationCount( - utility::string_t tenantId, - boost::optional userId, - boost::optional urlId, - boost::optional fromCommentId, - boost::optional viewed, - boost::optional type + const ApiGetNotificationCountRequest& request ) const; /// /// @@ -1006,14 +1234,18 @@ class DefaultApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) + struct ApiGetNotificationsRequest + { + utility::string_t tenantId; + boost::optional userId; + boost::optional urlId; + boost::optional fromCommentId; + boost::optional viewed; + boost::optional type; + boost::optional skip; + }; 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 + const ApiGetNotificationsRequest& request ) const; /// /// @@ -1023,9 +1255,13 @@ class DefaultApi /// /// /// + struct ApiGetPageByURLIdRequest + { + utility::string_t tenantId; + utility::string_t urlId; + }; pplx::task> getPageByURLId( - utility::string_t tenantId, - utility::string_t urlId + const ApiGetPageByURLIdRequest& request ) const; /// /// @@ -1034,8 +1270,12 @@ class DefaultApi /// /// /// + struct ApiGetPagesRequest + { + utility::string_t tenantId; + }; pplx::task> getPages( - utility::string_t tenantId + const ApiGetPagesRequest& request ) const; /// /// @@ -1050,14 +1290,18 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) + struct ApiGetPendingWebhookEventCountRequest + { + utility::string_t tenantId; + boost::optional commentId; + boost::optional externalId; + boost::optional eventType; + boost::optional type; + boost::optional domain; + boost::optional attemptCountGT; + }; 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 + const ApiGetPendingWebhookEventCountRequest& request ) const; /// /// @@ -1073,15 +1317,19 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) /// (optional, default to 0.0) + struct ApiGetPendingWebhookEventsRequest + { + 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; + }; 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 + const ApiGetPendingWebhookEventsRequest& request ) const; /// /// @@ -1091,9 +1339,13 @@ class DefaultApi /// /// /// + struct ApiGetQuestionConfigRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> getQuestionConfig( - utility::string_t tenantId, - utility::string_t id + const ApiGetQuestionConfigRequest& request ) const; /// /// @@ -1103,9 +1355,13 @@ class DefaultApi /// /// /// (optional, default to 0.0) + struct ApiGetQuestionConfigsRequest + { + utility::string_t tenantId; + boost::optional skip; + }; pplx::task> getQuestionConfigs( - utility::string_t tenantId, - boost::optional skip + const ApiGetQuestionConfigsRequest& request ) const; /// /// @@ -1115,9 +1371,13 @@ class DefaultApi /// /// /// + struct ApiGetQuestionResultRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> getQuestionResult( - utility::string_t tenantId, - utility::string_t id + const ApiGetQuestionResultRequest& request ) const; /// /// @@ -1132,14 +1392,18 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) + struct ApiGetQuestionResultsRequest + { + utility::string_t tenantId; + boost::optional urlId; + boost::optional userId; + boost::optional startDate; + boost::optional questionId; + boost::optional questionIds; + boost::optional skip; + }; 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 + const ApiGetQuestionResultsRequest& request ) const; /// /// @@ -1149,9 +1413,13 @@ class DefaultApi /// /// /// + struct ApiGetSSOUserByEmailRequest + { + utility::string_t tenantId; + utility::string_t email; + }; pplx::task> getSSOUserByEmail( - utility::string_t tenantId, - utility::string_t email + const ApiGetSSOUserByEmailRequest& request ) const; /// /// @@ -1161,9 +1429,13 @@ class DefaultApi /// /// /// + struct ApiGetSSOUserByIdRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> getSSOUserById( - utility::string_t tenantId, - utility::string_t id + const ApiGetSSOUserByIdRequest& request ) const; /// /// @@ -1173,9 +1445,13 @@ class DefaultApi /// /// /// (optional, default to 0) + struct ApiGetSSOUsersRequest + { + utility::string_t tenantId; + boost::optional skip; + }; pplx::task> getSSOUsers( - utility::string_t tenantId, - boost::optional skip + const ApiGetSSOUsersRequest& request ) const; /// /// @@ -1185,9 +1461,13 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetSubscriptionsRequest + { + utility::string_t tenantId; + boost::optional userId; + }; pplx::task> getSubscriptions( - utility::string_t tenantId, - boost::optional userId + const ApiGetSubscriptionsRequest& request ) const; /// /// @@ -1197,9 +1477,13 @@ class DefaultApi /// /// /// + struct ApiGetTenantRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> getTenant( - utility::string_t tenantId, - utility::string_t id + const ApiGetTenantRequest& request ) const; /// /// @@ -1212,12 +1496,16 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) /// (optional, default to 0.0) + struct ApiGetTenantDailyUsagesRequest + { + utility::string_t tenantId; + boost::optional yearNumber; + boost::optional monthNumber; + boost::optional dayNumber; + boost::optional skip; + }; pplx::task> getTenantDailyUsages( - utility::string_t tenantId, - boost::optional yearNumber, - boost::optional monthNumber, - boost::optional dayNumber, - boost::optional skip + const ApiGetTenantDailyUsagesRequest& request ) const; /// /// @@ -1227,9 +1515,13 @@ class DefaultApi /// /// /// + struct ApiGetTenantPackageRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> getTenantPackage( - utility::string_t tenantId, - utility::string_t id + const ApiGetTenantPackageRequest& request ) const; /// /// @@ -1239,9 +1531,13 @@ class DefaultApi /// /// /// (optional, default to 0.0) + struct ApiGetTenantPackagesRequest + { + utility::string_t tenantId; + boost::optional skip; + }; pplx::task> getTenantPackages( - utility::string_t tenantId, - boost::optional skip + const ApiGetTenantPackagesRequest& request ) const; /// /// @@ -1251,9 +1547,13 @@ class DefaultApi /// /// /// + struct ApiGetTenantUserRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> getTenantUser( - utility::string_t tenantId, - utility::string_t id + const ApiGetTenantUserRequest& request ) const; /// /// @@ -1263,9 +1563,13 @@ class DefaultApi /// /// /// (optional, default to 0.0) + struct ApiGetTenantUsersRequest + { + utility::string_t tenantId; + boost::optional skip; + }; pplx::task> getTenantUsers( - utility::string_t tenantId, - boost::optional skip + const ApiGetTenantUsersRequest& request ) const; /// /// @@ -1276,10 +1580,14 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) + struct ApiGetTenantsRequest + { + utility::string_t tenantId; + boost::optional meta; + boost::optional skip; + }; pplx::task> getTenants( - utility::string_t tenantId, - boost::optional meta, - boost::optional skip + const ApiGetTenantsRequest& request ) const; /// /// @@ -1290,10 +1598,14 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetTicketRequest + { + utility::string_t tenantId; + utility::string_t id; + boost::optional userId; + }; pplx::task> getTicket( - utility::string_t tenantId, - utility::string_t id, - boost::optional userId + const ApiGetTicketRequest& request ) const; /// /// @@ -1306,12 +1618,16 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) /// (optional, default to 0.0) + struct ApiGetTicketsRequest + { + utility::string_t tenantId; + boost::optional userId; + boost::optional state; + boost::optional skip; + boost::optional limit; + }; pplx::task> getTickets( - utility::string_t tenantId, - boost::optional userId, - boost::optional state, - boost::optional skip, - boost::optional limit + const ApiGetTicketsRequest& request ) const; /// /// @@ -1321,9 +1637,13 @@ class DefaultApi /// /// /// + struct ApiGetUserRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> getUser( - utility::string_t tenantId, - utility::string_t id + const ApiGetUserRequest& request ) const; /// /// @@ -1333,9 +1653,13 @@ class DefaultApi /// /// /// + struct ApiGetUserBadgeRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> getUserBadge( - utility::string_t tenantId, - utility::string_t id + const ApiGetUserBadgeRequest& request ) const; /// /// @@ -1345,9 +1669,13 @@ class DefaultApi /// /// /// + struct ApiGetUserBadgeProgressByIdRequest + { + utility::string_t tenantId; + utility::string_t id; + }; pplx::task> getUserBadgeProgressById( - utility::string_t tenantId, - utility::string_t id + const ApiGetUserBadgeProgressByIdRequest& request ) const; /// /// @@ -1357,9 +1685,13 @@ class DefaultApi /// /// /// + struct ApiGetUserBadgeProgressByUserIdRequest + { + utility::string_t tenantId; + utility::string_t userId; + }; pplx::task> getUserBadgeProgressByUserId( - utility::string_t tenantId, - utility::string_t userId + const ApiGetUserBadgeProgressByUserIdRequest& request ) const; /// /// @@ -1371,11 +1703,15 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) /// (optional, default to 0.0) + struct ApiGetUserBadgeProgressListRequest + { + utility::string_t tenantId; + boost::optional userId; + boost::optional limit; + boost::optional skip; + }; pplx::task> getUserBadgeProgressList( - utility::string_t tenantId, - boost::optional userId, - boost::optional limit, - boost::optional skip + const ApiGetUserBadgeProgressListRequest& request ) const; /// /// @@ -1390,14 +1726,18 @@ class DefaultApi /// (optional, default to false) /// (optional, default to 0.0) /// (optional, default to 0.0) + struct ApiGetUserBadgesRequest + { + utility::string_t tenantId; + boost::optional userId; + boost::optional badgeId; + boost::optional type; + boost::optional displayedOnComments; + boost::optional limit; + boost::optional skip; + }; 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 + const ApiGetUserBadgesRequest& request ) const; /// /// @@ -1407,9 +1747,13 @@ class DefaultApi /// /// /// + struct ApiGetVotesRequest + { + utility::string_t tenantId; + utility::string_t urlId; + }; pplx::task> getVotes( - utility::string_t tenantId, - utility::string_t urlId + const ApiGetVotesRequest& request ) const; /// /// @@ -1421,11 +1765,15 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetVotesForUserRequest + { + utility::string_t tenantId; + utility::string_t urlId; + boost::optional userId; + boost::optional anonUserId; + }; pplx::task> getVotesForUser( - utility::string_t tenantId, - utility::string_t urlId, - boost::optional userId, - boost::optional anonUserId + const ApiGetVotesForUserRequest& request ) const; /// /// @@ -1436,10 +1784,14 @@ class DefaultApi /// /// /// + struct ApiPatchDomainConfigRequest + { + utility::string_t tenantId; + utility::string_t domainToUpdate; + std::shared_ptr patchDomainConfigParams; + }; pplx::task> patchDomainConfig( - utility::string_t tenantId, - utility::string_t domainToUpdate, - std::shared_ptr patchDomainConfigParams + const ApiPatchDomainConfigRequest& request ) const; /// /// @@ -1450,10 +1802,14 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) + struct ApiPatchHashTagRequest + { + utility::string_t tag; + boost::optional tenantId; + boost::optional> updateHashTagBody; + }; pplx::task> patchHashTag( - utility::string_t tag, - boost::optional tenantId, - boost::optional> updateHashTagBody + const ApiPatchHashTagRequest& request ) const; /// /// @@ -1464,10 +1820,14 @@ class DefaultApi /// /// /// + struct ApiPatchPageRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr updateAPIPageData; + }; pplx::task> patchPage( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr updateAPIPageData + const ApiPatchPageRequest& request ) const; /// /// @@ -1479,11 +1839,15 @@ class DefaultApi /// /// /// (optional, default to false) + struct ApiPatchSSOUserRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr updateAPISSOUserData; + boost::optional updateComments; + }; pplx::task> patchSSOUser( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr updateAPISSOUserData, - boost::optional updateComments + const ApiPatchSSOUserRequest& request ) const; /// /// @@ -1494,10 +1858,14 @@ class DefaultApi /// /// /// + struct ApiPutDomainConfigRequest + { + utility::string_t tenantId; + utility::string_t domainToUpdate; + std::shared_ptr updateDomainConfigParams; + }; pplx::task> putDomainConfig( - utility::string_t tenantId, - utility::string_t domainToUpdate, - std::shared_ptr updateDomainConfigParams + const ApiPutDomainConfigRequest& request ) const; /// /// @@ -1509,11 +1877,15 @@ class DefaultApi /// /// /// (optional, default to false) + struct ApiPutSSOUserRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr updateAPISSOUserData; + boost::optional updateComments; + }; pplx::task> putSSOUser( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr updateAPISSOUserData, - boost::optional updateComments + const ApiPutSSOUserRequest& request ) const; /// /// @@ -1524,10 +1896,14 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiRenderEmailTemplateRequest + { + utility::string_t tenantId; + std::shared_ptr renderEmailTemplateBody; + boost::optional locale; + }; pplx::task> renderEmailTemplate( - utility::string_t tenantId, - std::shared_ptr renderEmailTemplateBody, - boost::optional locale + const ApiRenderEmailTemplateRequest& request ) const; /// /// @@ -1538,10 +1914,14 @@ class DefaultApi /// /// /// + struct ApiReplaceTenantPackageRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr replaceTenantPackageBody; + }; pplx::task> replaceTenantPackage( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr replaceTenantPackageBody + const ApiReplaceTenantPackageRequest& request ) const; /// /// @@ -1553,11 +1933,15 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiReplaceTenantUserRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr replaceTenantUserBody; + boost::optional updateComments; + }; pplx::task> replaceTenantUser( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr replaceTenantUserBody, - boost::optional updateComments + const ApiReplaceTenantUserRequest& request ) const; /// /// @@ -1571,13 +1955,17 @@ class DefaultApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to false) + struct ApiSaveCommentRequest + { + utility::string_t tenantId; + std::shared_ptr createCommentParams; + boost::optional isLive; + boost::optional doSpamCheck; + boost::optional sendEmails; + boost::optional populateNotifications; + }; pplx::task> saveComment( - utility::string_t tenantId, - std::shared_ptr createCommentParams, - boost::optional isLive, - boost::optional doSpamCheck, - boost::optional sendEmails, - boost::optional populateNotifications + const ApiSaveCommentRequest& request ) const; /// /// @@ -1591,13 +1979,17 @@ class DefaultApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to false) + struct ApiSaveCommentsBulkRequest + { + utility::string_t tenantId; + std::vector> createCommentParams; + boost::optional isLive; + boost::optional doSpamCheck; + boost::optional sendEmails; + boost::optional populateNotifications; + }; pplx::task>> saveCommentsBulk( - utility::string_t tenantId, - std::vector> createCommentParams, - boost::optional isLive, - boost::optional doSpamCheck, - boost::optional sendEmails, - boost::optional populateNotifications + const ApiSaveCommentsBulkRequest& request ) const; /// /// @@ -1608,10 +2000,14 @@ class DefaultApi /// /// /// + struct ApiSendInviteRequest + { + utility::string_t tenantId; + utility::string_t id; + utility::string_t fromName; + }; pplx::task> sendInvite( - utility::string_t tenantId, - utility::string_t id, - utility::string_t fromName + const ApiSendInviteRequest& request ) const; /// /// @@ -1622,10 +2018,14 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiSendLoginLinkRequest + { + utility::string_t tenantId; + utility::string_t id; + boost::optional redirectURL; + }; pplx::task> sendLoginLink( - utility::string_t tenantId, - utility::string_t id, - boost::optional redirectURL + const ApiSendLoginLinkRequest& request ) const; /// /// @@ -1638,12 +2038,16 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiUnBlockUserFromCommentRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr unBlockFromCommentParams; + boost::optional userId; + boost::optional anonUserId; + }; pplx::task> unBlockUserFromComment( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr unBlockFromCommentParams, - boost::optional userId, - boost::optional anonUserId + const ApiUnBlockUserFromCommentRequest& request ) const; /// /// @@ -1655,11 +2059,15 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiUnFlagCommentRequest + { + utility::string_t tenantId; + utility::string_t id; + boost::optional userId; + boost::optional anonUserId; + }; pplx::task> unFlagComment( - utility::string_t tenantId, - utility::string_t id, - boost::optional userId, - boost::optional anonUserId + const ApiUnFlagCommentRequest& request ) const; /// /// @@ -1673,13 +2081,17 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) /// (optional, default to false) + struct ApiUpdateCommentRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr updatableCommentParams; + boost::optional contextUserId; + boost::optional doSpamCheck; + boost::optional isLive; + }; pplx::task> updateComment( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr updatableCommentParams, - boost::optional contextUserId, - boost::optional doSpamCheck, - boost::optional isLive + const ApiUpdateCommentRequest& request ) const; /// /// @@ -1690,10 +2102,14 @@ class DefaultApi /// /// /// + struct ApiUpdateEmailTemplateRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr updateEmailTemplateBody; + }; pplx::task> updateEmailTemplate( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr updateEmailTemplateBody + const ApiUpdateEmailTemplateRequest& request ) const; /// /// @@ -1704,10 +2120,14 @@ class DefaultApi /// /// /// + struct ApiUpdateFeedPostRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr feedPost; + }; pplx::task> updateFeedPost( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr feedPost + const ApiUpdateFeedPostRequest& request ) const; /// /// @@ -1718,10 +2138,14 @@ class DefaultApi /// /// /// + struct ApiUpdateModeratorRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr updateModeratorBody; + }; pplx::task> updateModerator( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr updateModeratorBody + const ApiUpdateModeratorRequest& request ) const; /// /// @@ -1733,11 +2157,15 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiUpdateNotificationRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr updateNotificationBody; + boost::optional userId; + }; pplx::task> updateNotification( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr updateNotificationBody, - boost::optional userId + const ApiUpdateNotificationRequest& request ) const; /// /// @@ -1748,10 +2176,14 @@ class DefaultApi /// /// /// + struct ApiUpdateQuestionConfigRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr updateQuestionConfigBody; + }; pplx::task> updateQuestionConfig( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr updateQuestionConfigBody + const ApiUpdateQuestionConfigRequest& request ) const; /// /// @@ -1762,10 +2194,14 @@ class DefaultApi /// /// /// + struct ApiUpdateQuestionResultRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr updateQuestionResultBody; + }; pplx::task> updateQuestionResult( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr updateQuestionResultBody + const ApiUpdateQuestionResultRequest& request ) const; /// /// @@ -1777,11 +2213,15 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiUpdateSubscriptionRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr updateAPIUserSubscriptionData; + boost::optional userId; + }; pplx::task> updateSubscription( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr updateAPIUserSubscriptionData, - boost::optional userId + const ApiUpdateSubscriptionRequest& request ) const; /// /// @@ -1792,10 +2232,14 @@ class DefaultApi /// /// /// + struct ApiUpdateTenantRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr updateTenantBody; + }; pplx::task> updateTenant( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr updateTenantBody + const ApiUpdateTenantRequest& request ) const; /// /// @@ -1806,10 +2250,14 @@ class DefaultApi /// /// /// + struct ApiUpdateTenantPackageRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr updateTenantPackageBody; + }; pplx::task> updateTenantPackage( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr updateTenantPackageBody + const ApiUpdateTenantPackageRequest& request ) const; /// /// @@ -1821,11 +2269,15 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiUpdateTenantUserRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr updateTenantUserBody; + boost::optional updateComments; + }; pplx::task> updateTenantUser( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr updateTenantUserBody, - boost::optional updateComments + const ApiUpdateTenantUserRequest& request ) const; /// /// @@ -1836,10 +2288,14 @@ class DefaultApi /// /// /// + struct ApiUpdateUserBadgeRequest + { + utility::string_t tenantId; + utility::string_t id; + std::shared_ptr updateUserBadgeParams; + }; pplx::task> updateUserBadge( - utility::string_t tenantId, - utility::string_t id, - std::shared_ptr updateUserBadgeParams + const ApiUpdateUserBadgeRequest& request ) const; protected: diff --git a/client/include/FastCommentsClient/api/ModerationApi.h b/client/include/FastCommentsClient/api/ModerationApi.h index 6df1ae7..d227d32 100644 --- a/client/include/FastCommentsClient/api/ModerationApi.h +++ b/client/include/FastCommentsClient/api/ModerationApi.h @@ -91,15 +91,19 @@ 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("")) + struct ApiDeleteModerationVoteRequest + { + utility::string_t commentId; + utility::string_t voteId; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; + }; pplx::task> deleteModerationVote( - utility::string_t commentId, - utility::string_t voteId, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + const ApiDeleteModerationVoteRequest& request ) const; /// /// @@ -117,17 +121,21 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetApiCommentsRequest + { + 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; + }; 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 + const ApiGetApiCommentsRequest& request ) const; /// /// @@ -138,10 +146,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("")) + struct ApiGetApiExportStatusRequest + { + boost::optional batchJobId; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getApiExportStatus( - boost::optional batchJobId, - boost::optional tenantId, - boost::optional sso + const ApiGetApiExportStatusRequest& request ) const; /// /// @@ -157,15 +169,19 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetApiIdsRequest + { + boost::optional textSearch; + boost::optional byIPFromComment; + boost::optional filters; + boost::optional searchFilters; + boost::optional afterId; + boost::optional demo; + boost::optional tenantId; + boost::optional sso; + }; 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 + const ApiGetApiIdsRequest& request ) const; /// /// @@ -176,10 +192,14 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetBanUsersFromCommentRequest + { + utility::string_t commentId; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getBanUsersFromComment( - utility::string_t commentId, - boost::optional tenantId, - boost::optional sso + const ApiGetBanUsersFromCommentRequest& request ) const; /// /// @@ -190,10 +210,14 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetCommentBanStatusRequest + { + utility::string_t commentId; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getCommentBanStatus( - utility::string_t commentId, - boost::optional tenantId, - boost::optional sso + const ApiGetCommentBanStatusRequest& request ) const; /// /// @@ -204,10 +228,14 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetCommentChildrenRequest + { + utility::string_t commentId; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getCommentChildren( - utility::string_t commentId, - boost::optional tenantId, - boost::optional sso + const ApiGetCommentChildrenRequest& request ) const; /// /// @@ -222,14 +250,18 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetCountRequest + { + boost::optional textSearch; + boost::optional byIPFromComment; + boost::optional filter; + boost::optional searchFilters; + boost::optional demo; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getCount( - boost::optional textSearch, - boost::optional byIPFromComment, - boost::optional filter, - boost::optional searchFilters, - boost::optional demo, - boost::optional tenantId, - boost::optional sso + const ApiGetCountRequest& request ) const; /// /// @@ -239,9 +271,13 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetCountsRequest + { + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getCounts( - boost::optional tenantId, - boost::optional sso + const ApiGetCountsRequest& request ) const; /// /// @@ -252,10 +288,14 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetLogsRequest + { + utility::string_t commentId; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getLogs( - utility::string_t commentId, - boost::optional tenantId, - boost::optional sso + const ApiGetLogsRequest& request ) const; /// /// @@ -265,9 +305,13 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetManualBadgesRequest + { + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getManualBadges( - boost::optional tenantId, - boost::optional sso + const ApiGetManualBadgesRequest& request ) const; /// /// @@ -279,11 +323,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("")) + struct ApiGetManualBadgesForUserRequest + { + boost::optional badgesUserId; + boost::optional commentId; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getManualBadgesForUser( - boost::optional badgesUserId, - boost::optional commentId, - boost::optional tenantId, - boost::optional sso + const ApiGetManualBadgesForUserRequest& request ) const; /// /// @@ -296,12 +344,16 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetModerationCommentRequest + { + utility::string_t commentId; + boost::optional includeEmail; + boost::optional includeIP; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getModerationComment( - utility::string_t commentId, - boost::optional includeEmail, - boost::optional includeIP, - boost::optional tenantId, - boost::optional sso + const ApiGetModerationCommentRequest& request ) const; /// /// @@ -312,10 +364,14 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetModerationCommentTextRequest + { + utility::string_t commentId; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getModerationCommentText( - utility::string_t commentId, - boost::optional tenantId, - boost::optional sso + const ApiGetModerationCommentTextRequest& request ) const; /// /// @@ -329,13 +385,17 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetPreBanSummaryRequest + { + utility::string_t commentId; + boost::optional includeByUserIdAndEmail; + boost::optional includeByIP; + boost::optional includeByEmailDomain; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getPreBanSummary( - utility::string_t commentId, - boost::optional includeByUserIdAndEmail, - boost::optional includeByIP, - boost::optional includeByEmailDomain, - boost::optional tenantId, - boost::optional sso + const ApiGetPreBanSummaryRequest& request ) const; /// /// @@ -348,12 +408,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("")) + struct ApiGetSearchCommentsSummaryRequest + { + boost::optional value; + boost::optional filters; + boost::optional searchFilters; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getSearchCommentsSummary( - boost::optional value, - boost::optional filters, - boost::optional searchFilters, - boost::optional tenantId, - boost::optional sso + const ApiGetSearchCommentsSummaryRequest& request ) const; /// /// @@ -364,10 +428,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("")) + struct ApiGetSearchPagesRequest + { + boost::optional value; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getSearchPages( - boost::optional value, - boost::optional tenantId, - boost::optional sso + const ApiGetSearchPagesRequest& request ) const; /// /// @@ -378,10 +446,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("")) + struct ApiGetSearchSitesRequest + { + boost::optional value; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getSearchSites( - boost::optional value, - boost::optional tenantId, - boost::optional sso + const ApiGetSearchSitesRequest& request ) const; /// /// @@ -392,10 +464,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("")) + struct ApiGetSearchSuggestRequest + { + boost::optional textSearch; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getSearchSuggest( - boost::optional textSearch, - boost::optional tenantId, - boost::optional sso + const ApiGetSearchSuggestRequest& request ) const; /// /// @@ -406,10 +482,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("")) + struct ApiGetSearchUsersRequest + { + boost::optional value; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getSearchUsers( - boost::optional value, - boost::optional tenantId, - boost::optional sso + const ApiGetSearchUsersRequest& request ) const; /// /// @@ -420,10 +500,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("")) + struct ApiGetTrustFactorRequest + { + boost::optional userId; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getTrustFactor( - boost::optional userId, - boost::optional tenantId, - boost::optional sso + const ApiGetTrustFactorRequest& request ) const; /// /// @@ -433,9 +517,13 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetUserBanPreferenceRequest + { + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getUserBanPreference( - boost::optional tenantId, - boost::optional sso + const ApiGetUserBanPreferenceRequest& request ) const; /// /// @@ -446,10 +534,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("")) + struct ApiGetUserInternalProfileRequest + { + boost::optional commentId; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> getUserInternalProfile( - boost::optional commentId, - boost::optional tenantId, - boost::optional sso + const ApiGetUserInternalProfileRequest& request ) const; /// /// @@ -459,15 +551,19 @@ 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("")) + struct ApiPostAdjustCommentVotesRequest + { + utility::string_t commentId; + std::shared_ptr adjustCommentVotesParams; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; + }; pplx::task> postAdjustCommentVotes( - utility::string_t commentId, - std::shared_ptr adjustCommentVotesParams, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + const ApiPostAdjustCommentVotesRequest& request ) const; /// /// @@ -482,14 +578,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("")) + struct ApiPostApiExportRequest + { + boost::optional textSearch; + boost::optional byIPFromComment; + boost::optional filters; + boost::optional searchFilters; + boost::optional sorts; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> postApiExport( - boost::optional textSearch, - boost::optional byIPFromComment, - boost::optional filters, - boost::optional searchFilters, - boost::optional sorts, - boost::optional tenantId, - boost::optional sso + const ApiPostApiExportRequest& request ) const; /// /// @@ -508,18 +608,22 @@ 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("")) + struct ApiPostBanUserFromCommentRequest + { + 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; + }; 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 + const ApiPostBanUserFromCommentRequest& request ) const; /// /// @@ -530,10 +634,14 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiPostBanUserUndoRequest + { + std::shared_ptr banUserUndoParams; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> postBanUserUndo( - std::shared_ptr banUserUndoParams, - boost::optional tenantId, - boost::optional sso + const ApiPostBanUserUndoRequest& request ) const; /// /// @@ -547,13 +655,17 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiPostBulkPreBanSummaryRequest + { + std::shared_ptr bulkPreBanParams; + boost::optional includeByUserIdAndEmail; + boost::optional includeByIP; + boost::optional includeByEmailDomain; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> postBulkPreBanSummary( - std::shared_ptr bulkPreBanParams, - boost::optional includeByUserIdAndEmail, - boost::optional includeByIP, - boost::optional includeByEmailDomain, - boost::optional tenantId, - boost::optional sso + const ApiPostBulkPreBanSummaryRequest& request ) const; /// /// @@ -564,10 +676,14 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiPostCommentsByIdsRequest + { + std::shared_ptr commentsByIdsParams; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> postCommentsByIds( - std::shared_ptr commentsByIdsParams, - boost::optional tenantId, - boost::optional sso + const ApiPostCommentsByIdsRequest& request ) const; /// /// @@ -576,14 +692,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("")) + struct ApiPostFlagCommentRequest + { + utility::string_t commentId; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; + }; pplx::task> postFlagComment( - utility::string_t commentId, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + const ApiPostFlagCommentRequest& request ) const; /// /// @@ -592,14 +712,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("")) + struct ApiPostRemoveCommentRequest + { + utility::string_t commentId; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; + }; pplx::task> postRemoveComment( - utility::string_t commentId, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + const ApiPostRemoveCommentRequest& request ) const; /// /// @@ -608,14 +732,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("")) + struct ApiPostRestoreDeletedCommentRequest + { + utility::string_t commentId; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; + }; pplx::task> postRestoreDeletedComment( - utility::string_t commentId, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + const ApiPostRestoreDeletedCommentRequest& request ) const; /// /// @@ -625,15 +753,19 @@ 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("")) + struct ApiPostSetCommentApprovalStatusRequest + { + utility::string_t commentId; + boost::optional approved; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; + }; pplx::task> postSetCommentApprovalStatus( - utility::string_t commentId, - boost::optional approved, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + const ApiPostSetCommentApprovalStatusRequest& request ) const; /// /// @@ -643,15 +775,19 @@ 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("")) + struct ApiPostSetCommentReviewStatusRequest + { + utility::string_t commentId; + boost::optional reviewed; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; + }; pplx::task> postSetCommentReviewStatus( - utility::string_t commentId, - boost::optional reviewed, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + const ApiPostSetCommentReviewStatusRequest& request ) const; /// /// @@ -662,16 +798,20 @@ 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("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiPostSetCommentSpamStatusRequest + { + utility::string_t commentId; + boost::optional spam; + boost::optional permNotSpam; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; + }; pplx::task> postSetCommentSpamStatus( - utility::string_t commentId, - boost::optional spam, - boost::optional permNotSpam, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + const ApiPostSetCommentSpamStatusRequest& request ) const; /// /// @@ -681,15 +821,19 @@ 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("")) + struct ApiPostSetCommentTextRequest + { + utility::string_t commentId; + std::shared_ptr setCommentTextParams; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; + }; pplx::task> postSetCommentText( - utility::string_t commentId, - std::shared_ptr setCommentTextParams, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + const ApiPostSetCommentTextRequest& request ) const; /// /// @@ -698,14 +842,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("")) + struct ApiPostUnFlagCommentRequest + { + utility::string_t commentId; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; + }; pplx::task> postUnFlagComment( - utility::string_t commentId, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + const ApiPostUnFlagCommentRequest& request ) const; /// /// @@ -715,15 +863,19 @@ 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("")) + struct ApiPostVoteRequest + { + utility::string_t commentId; + boost::optional direction; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; + }; pplx::task> postVote( - utility::string_t commentId, - boost::optional direction, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + const ApiPostVoteRequest& request ) const; /// /// @@ -734,16 +886,20 @@ 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("")) + struct ApiPutAwardBadgeRequest + { + utility::string_t badgeId; + boost::optional userId; + boost::optional commentId; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; + }; pplx::task> putAwardBadge( - utility::string_t badgeId, - boost::optional userId, - boost::optional commentId, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + const ApiPutAwardBadgeRequest& request ) const; /// /// @@ -754,10 +910,14 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiPutCloseThreadRequest + { + utility::string_t urlId; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> putCloseThread( - utility::string_t urlId, - boost::optional tenantId, - boost::optional sso + const ApiPutCloseThreadRequest& request ) const; /// /// @@ -768,16 +928,20 @@ 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("")) + struct ApiPutRemoveBadgeRequest + { + utility::string_t badgeId; + boost::optional userId; + boost::optional commentId; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; + }; pplx::task> putRemoveBadge( - utility::string_t badgeId, - boost::optional userId, - boost::optional commentId, - boost::optional broadcastId, - boost::optional tenantId, - boost::optional sso + const ApiPutRemoveBadgeRequest& request ) const; /// /// @@ -788,10 +952,14 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiPutReopenThreadRequest + { + utility::string_t urlId; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> putReopenThread( - utility::string_t urlId, - boost::optional tenantId, - boost::optional sso + const ApiPutReopenThreadRequest& request ) const; /// /// @@ -803,11 +971,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("")) + struct ApiSetTrustFactorRequest + { + boost::optional userId; + boost::optional trustFactor; + boost::optional tenantId; + boost::optional sso; + }; pplx::task> setTrustFactor( - boost::optional userId, - boost::optional trustFactor, - boost::optional tenantId, - boost::optional sso + const ApiSetTrustFactorRequest& request ) const; protected: diff --git a/client/include/FastCommentsClient/api/PublicApi.h b/client/include/FastCommentsClient/api/PublicApi.h index 29db646..4fe49c3 100644 --- a/client/include/FastCommentsClient/api/PublicApi.h +++ b/client/include/FastCommentsClient/api/PublicApi.h @@ -107,11 +107,15 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiBlockFromCommentPublicRequest + { + utility::string_t tenantId; + utility::string_t commentId; + std::shared_ptr publicBlockFromCommentParams; + boost::optional sso; + }; pplx::task> blockFromCommentPublic( - utility::string_t tenantId, - utility::string_t commentId, - std::shared_ptr publicBlockFromCommentParams, - boost::optional sso + const ApiBlockFromCommentPublicRequest& request ) const; /// /// @@ -122,10 +126,14 @@ class PublicApi /// /// A comma separated list of comment ids. /// (optional, default to utility::conversions::to_string_t("")) + struct ApiCheckedCommentsForBlockedRequest + { + utility::string_t tenantId; + utility::string_t commentIds; + boost::optional sso; + }; pplx::task> checkedCommentsForBlocked( - utility::string_t tenantId, - utility::string_t commentIds, - boost::optional sso + const ApiCheckedCommentsForBlockedRequest& request ) const; /// /// @@ -139,13 +147,17 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiCreateCommentPublicRequest + { + utility::string_t tenantId; + utility::string_t urlId; + utility::string_t broadcastId; + std::shared_ptr commentData; + boost::optional sessionId; + boost::optional sso; + }; pplx::task> createCommentPublic( - utility::string_t tenantId, - utility::string_t urlId, - utility::string_t broadcastId, - std::shared_ptr commentData, - boost::optional sessionId, - boost::optional sso + const ApiCreateCommentPublicRequest& request ) const; /// /// @@ -157,11 +169,15 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiCreateFeedPostPublicRequest + { + utility::string_t tenantId; + std::shared_ptr createFeedPostParams; + boost::optional broadcastId; + boost::optional sso; + }; pplx::task> createFeedPostPublic( - utility::string_t tenantId, - std::shared_ptr createFeedPostParams, - boost::optional broadcastId, - boost::optional sso + const ApiCreateFeedPostPublicRequest& request ) const; /// /// @@ -172,10 +188,14 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiCreateV1PageReactRequest + { + utility::string_t tenantId; + utility::string_t urlId; + boost::optional title; + }; pplx::task> createV1PageReact( - utility::string_t tenantId, - utility::string_t urlId, - boost::optional title + const ApiCreateV1PageReactRequest& request ) const; /// /// @@ -187,11 +207,15 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiCreateV2PageReactRequest + { + utility::string_t tenantId; + utility::string_t urlId; + utility::string_t id; + boost::optional title; + }; pplx::task> createV2PageReact( - utility::string_t tenantId, - utility::string_t urlId, - utility::string_t id, - boost::optional title + const ApiCreateV2PageReactRequest& request ) const; /// /// @@ -204,12 +228,16 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiDeleteCommentPublicRequest + { + utility::string_t tenantId; + utility::string_t commentId; + utility::string_t broadcastId; + boost::optional editKey; + boost::optional sso; + }; pplx::task> deleteCommentPublic( - utility::string_t tenantId, - utility::string_t commentId, - utility::string_t broadcastId, - boost::optional editKey, - boost::optional sso + const ApiDeleteCommentPublicRequest& request ) const; /// /// @@ -224,14 +252,18 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiDeleteCommentVoteRequest + { + 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; + }; pplx::task> 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 ApiDeleteCommentVoteRequest& request ) const; /// /// @@ -243,11 +275,15 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiDeleteFeedPostPublicRequest + { + utility::string_t tenantId; + utility::string_t postId; + boost::optional broadcastId; + boost::optional sso; + }; pplx::task> deleteFeedPostPublic( - utility::string_t tenantId, - utility::string_t postId, - boost::optional broadcastId, - boost::optional sso + const ApiDeleteFeedPostPublicRequest& request ) const; /// /// @@ -257,9 +293,13 @@ class PublicApi /// /// /// + struct ApiDeleteV1PageReactRequest + { + utility::string_t tenantId; + utility::string_t urlId; + }; pplx::task> deleteV1PageReact( - utility::string_t tenantId, - utility::string_t urlId + const ApiDeleteV1PageReactRequest& request ) const; /// /// @@ -270,10 +310,14 @@ class PublicApi /// /// /// + struct ApiDeleteV2PageReactRequest + { + utility::string_t tenantId; + utility::string_t urlId; + utility::string_t id; + }; pplx::task> deleteV2PageReact( - utility::string_t tenantId, - utility::string_t urlId, - utility::string_t id + const ApiDeleteV2PageReactRequest& request ) const; /// /// @@ -285,11 +329,15 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiFlagCommentPublicRequest + { + utility::string_t tenantId; + utility::string_t commentId; + bool isFlagged; + boost::optional sso; + }; pplx::task> flagCommentPublic( - utility::string_t tenantId, - utility::string_t commentId, - bool isFlagged, - boost::optional sso + const ApiFlagCommentPublicRequest& request ) const; /// /// @@ -301,11 +349,15 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetCommentTextRequest + { + utility::string_t tenantId; + utility::string_t commentId; + boost::optional editKey; + boost::optional sso; + }; pplx::task> getCommentText( - utility::string_t tenantId, - utility::string_t commentId, - boost::optional editKey, - boost::optional sso + const ApiGetCommentTextRequest& request ) const; /// /// @@ -317,11 +369,15 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetCommentVoteUserNamesRequest + { + utility::string_t tenantId; + utility::string_t commentId; + int32_t dir; + boost::optional sso; + }; pplx::task> getCommentVoteUserNames( - utility::string_t tenantId, - utility::string_t commentId, - int32_t dir, - boost::optional sso + const ApiGetCommentVoteUserNamesRequest& request ) const; /// /// @@ -336,14 +392,18 @@ class PublicApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) + struct ApiGetCommentsForUserRequest + { + boost::optional userId; + boost::optional> direction; + boost::optional repliesToUserId; + boost::optional page; + boost::optional includei10n; + boost::optional locale; + boost::optional isCrawler; + }; 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 ApiGetCommentsForUserRequest& request ) const; /// /// @@ -379,35 +439,39 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetCommentsPublicRequest + { + 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; + }; 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 + const ApiGetCommentsPublicRequest& request ) const; /// /// @@ -420,12 +484,16 @@ class PublicApi /// /// /// (optional, default to 0L) + struct ApiGetEventLogRequest + { + utility::string_t tenantId; + utility::string_t urlId; + utility::string_t userIdWS; + int64_t startTime; + boost::optional endTime; + }; pplx::task> getEventLog( - utility::string_t tenantId, - utility::string_t urlId, - utility::string_t userIdWS, - int64_t startTime, - boost::optional endTime + const ApiGetEventLogRequest& request ) const; /// /// @@ -440,14 +508,18 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) /// (optional, default to false) + struct ApiGetFeedPostsPublicRequest + { + utility::string_t tenantId; + boost::optional afterId; + boost::optional limit; + boost::optional> tags; + boost::optional sso; + boost::optional isCrawler; + boost::optional includeUserInfo; + }; 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 + const ApiGetFeedPostsPublicRequest& request ) const; /// /// @@ -458,10 +530,14 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetFeedPostsStatsRequest + { + utility::string_t tenantId; + std::vector postIds; + boost::optional sso; + }; pplx::task> getFeedPostsStats( - utility::string_t tenantId, - std::vector postIds, - boost::optional sso + const ApiGetFeedPostsStatsRequest& request ) const; /// /// @@ -471,9 +547,13 @@ class PublicApi /// /// /// + struct ApiGetGifLargeRequest + { + utility::string_t tenantId; + utility::string_t largeInternalURLSanitized; + }; pplx::task> getGifLarge( - utility::string_t tenantId, - utility::string_t largeInternalURLSanitized + const ApiGetGifLargeRequest& request ) const; /// /// @@ -486,12 +566,16 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) + struct ApiGetGifsSearchRequest + { + utility::string_t tenantId; + utility::string_t search; + boost::optional locale; + boost::optional rating; + boost::optional page; + }; pplx::task> getGifsSearch( - utility::string_t tenantId, - utility::string_t search, - boost::optional locale, - boost::optional rating, - boost::optional page + const ApiGetGifsSearchRequest& request ) const; /// /// @@ -503,11 +587,15 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) + struct ApiGetGifsTrendingRequest + { + utility::string_t tenantId; + boost::optional locale; + boost::optional rating; + boost::optional page; + }; pplx::task> getGifsTrending( - utility::string_t tenantId, - boost::optional locale, - boost::optional rating, - boost::optional page + const ApiGetGifsTrendingRequest& request ) const; /// /// @@ -520,12 +608,16 @@ class PublicApi /// /// /// (optional, default to 0L) + struct ApiGetGlobalEventLogRequest + { + utility::string_t tenantId; + utility::string_t urlId; + utility::string_t userIdWS; + int64_t startTime; + boost::optional endTime; + }; pplx::task> getGlobalEventLog( - utility::string_t tenantId, - utility::string_t urlId, - utility::string_t userIdWS, - int64_t startTime, - boost::optional endTime + const ApiGetGlobalEventLogRequest& request ) const; /// /// @@ -537,11 +629,15 @@ class PublicApi /// Page URL identifier (cleaned server-side). /// Cursor: pass nextAfterName from the previous response. (optional, default to utility::conversions::to_string_t("")) /// 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("")) + struct ApiGetOfflineUsersRequest + { + utility::string_t tenantId; + utility::string_t urlId; + boost::optional afterName; + boost::optional afterUserId; + }; pplx::task> getOfflineUsers( - utility::string_t tenantId, - utility::string_t urlId, - boost::optional afterName, - boost::optional afterUserId + const ApiGetOfflineUsersRequest& request ) const; /// /// @@ -553,11 +649,15 @@ class PublicApi /// Page URL identifier (cleaned server-side). /// Cursor: pass nextAfterName from the previous response. (optional, default to utility::conversions::to_string_t("")) /// 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("")) + struct ApiGetOnlineUsersRequest + { + utility::string_t tenantId; + utility::string_t urlId; + boost::optional afterName; + boost::optional afterUserId; + }; pplx::task> getOnlineUsers( - utility::string_t tenantId, - utility::string_t urlId, - boost::optional afterName, - boost::optional afterUserId + const ApiGetOnlineUsersRequest& request ) const; /// /// @@ -571,13 +671,17 @@ class PublicApi /// Optional case-insensitive title prefix filter. (optional, default to utility::conversions::to_string_t("")) /// 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) + struct ApiGetPagesPublicRequest + { + utility::string_t tenantId; + boost::optional cursor; + boost::optional limit; + boost::optional q; + boost::optional> sortBy; + boost::optional hasComments; + }; pplx::task> getPagesPublic( - utility::string_t tenantId, - boost::optional cursor, - boost::optional limit, - boost::optional q, - boost::optional> sortBy, - boost::optional hasComments + const ApiGetPagesPublicRequest& request ) const; /// /// @@ -589,11 +693,15 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) + struct ApiGetTranslationsRequest + { + utility::string_t r_namespace; + utility::string_t component; + boost::optional locale; + boost::optional useFullTranslationIds; + }; pplx::task> getTranslations( - utility::string_t r_namespace, - utility::string_t component, - boost::optional locale, - boost::optional useFullTranslationIds + const ApiGetTranslationsRequest& request ) const; /// /// @@ -603,9 +711,13 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetUserNotificationCountRequest + { + utility::string_t tenantId; + boost::optional sso; + }; pplx::task> getUserNotificationCount( - utility::string_t tenantId, - boost::optional sso + const ApiGetUserNotificationCountRequest& request ) const; /// /// @@ -625,19 +737,23 @@ class PublicApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetUserNotificationsRequest + { + 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; + }; 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 + const ApiGetUserNotificationsRequest& request ) const; /// /// @@ -648,10 +764,14 @@ class PublicApi /// /// /// + struct ApiGetUserPresenceStatusesRequest + { + utility::string_t tenantId; + utility::string_t urlIdWS; + utility::string_t userIds; + }; pplx::task> getUserPresenceStatuses( - utility::string_t tenantId, - utility::string_t urlIdWS, - utility::string_t userIds + const ApiGetUserPresenceStatusesRequest& request ) const; /// /// @@ -662,10 +782,14 @@ class PublicApi /// /// (optional, default to std::vector<std::shared_ptr<utility::string_t>>()) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiGetUserReactsPublicRequest + { + utility::string_t tenantId; + boost::optional> postIds; + boost::optional sso; + }; pplx::task> getUserReactsPublic( - utility::string_t tenantId, - boost::optional> postIds, - boost::optional sso + const ApiGetUserReactsPublicRequest& request ) const; /// /// @@ -675,9 +799,13 @@ class PublicApi /// /// /// Comma-delimited userIds. + struct ApiGetUsersInfoRequest + { + utility::string_t tenantId; + utility::string_t ids; + }; pplx::task> getUsersInfo( - utility::string_t tenantId, - utility::string_t ids + const ApiGetUsersInfoRequest& request ) const; /// /// @@ -687,9 +815,13 @@ class PublicApi /// /// /// + struct ApiGetV1PageLikesRequest + { + utility::string_t tenantId; + utility::string_t urlId; + }; pplx::task> getV1PageLikes( - utility::string_t tenantId, - utility::string_t urlId + const ApiGetV1PageLikesRequest& request ) const; /// /// @@ -700,10 +832,14 @@ class PublicApi /// /// /// + struct ApiGetV2PageReactUsersRequest + { + utility::string_t tenantId; + utility::string_t urlId; + utility::string_t id; + }; pplx::task> getV2PageReactUsers( - utility::string_t tenantId, - utility::string_t urlId, - utility::string_t id + const ApiGetV2PageReactUsersRequest& request ) const; /// /// @@ -713,9 +849,13 @@ class PublicApi /// /// /// + struct ApiGetV2PageReactsRequest + { + utility::string_t tenantId; + utility::string_t urlId; + }; pplx::task> getV2PageReacts( - utility::string_t tenantId, - utility::string_t urlId + const ApiGetV2PageReactsRequest& request ) const; /// /// @@ -727,11 +867,15 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiLockCommentRequest + { + utility::string_t tenantId; + utility::string_t commentId; + utility::string_t broadcastId; + boost::optional sso; + }; pplx::task> lockComment( - utility::string_t tenantId, - utility::string_t commentId, - utility::string_t broadcastId, - boost::optional sso + const ApiLockCommentRequest& request ) const; /// /// @@ -739,7 +883,11 @@ class PublicApi /// /// /// + struct ApiLogoutPublicRequest + { + }; pplx::task> logoutPublic( + const ApiLogoutPublicRequest& request ) const; /// /// @@ -751,11 +899,15 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiPinCommentRequest + { + utility::string_t tenantId; + utility::string_t commentId; + utility::string_t broadcastId; + boost::optional sso; + }; pplx::task> pinComment( - utility::string_t tenantId, - utility::string_t commentId, - utility::string_t broadcastId, - boost::optional sso + const ApiPinCommentRequest& request ) const; /// /// @@ -769,13 +921,17 @@ class PublicApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiReactFeedPostPublicRequest + { + utility::string_t tenantId; + utility::string_t postId; + std::shared_ptr reactBodyParams; + boost::optional isUndo; + boost::optional broadcastId; + boost::optional sso; + }; pplx::task> reactFeedPostPublic( - utility::string_t tenantId, - utility::string_t postId, - std::shared_ptr reactBodyParams, - boost::optional isUndo, - boost::optional broadcastId, - boost::optional sso + const ApiReactFeedPostPublicRequest& request ) const; /// /// @@ -785,9 +941,13 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiResetUserNotificationCountRequest + { + utility::string_t tenantId; + boost::optional sso; + }; pplx::task> resetUserNotificationCount( - utility::string_t tenantId, - boost::optional sso + const ApiResetUserNotificationCountRequest& request ) const; /// /// @@ -802,14 +962,18 @@ class PublicApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiResetUserNotificationsRequest + { + utility::string_t tenantId; + boost::optional afterId; + boost::optional afterCreatedAt; + boost::optional unreadOnly; + boost::optional dmOnly; + boost::optional noDm; + boost::optional sso; + }; 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 + const ApiResetUserNotificationsRequest& request ) const; /// /// @@ -823,13 +987,17 @@ class PublicApi /// (optional, default to std::vector<std::shared_ptr<utility::string_t>>()) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiSearchUsersRequest + { + utility::string_t tenantId; + utility::string_t urlId; + boost::optional usernameStartsWith; + boost::optional> mentionGroupIds; + boost::optional sso; + boost::optional searchSection; + }; pplx::task> searchUsers( - utility::string_t tenantId, - utility::string_t urlId, - boost::optional usernameStartsWith, - boost::optional> mentionGroupIds, - boost::optional sso, - boost::optional searchSection + const ApiSearchUsersRequest& request ) const; /// /// @@ -843,13 +1011,17 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiSetCommentTextRequest + { + utility::string_t tenantId; + utility::string_t commentId; + utility::string_t broadcastId; + std::shared_ptr commentTextUpdateRequest; + boost::optional editKey; + boost::optional sso; + }; pplx::task> setCommentText( - utility::string_t tenantId, - utility::string_t commentId, - utility::string_t broadcastId, - std::shared_ptr commentTextUpdateRequest, - boost::optional editKey, - boost::optional sso + const ApiSetCommentTextRequest& request ) const; /// /// @@ -861,11 +1033,15 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiUnBlockCommentPublicRequest + { + utility::string_t tenantId; + utility::string_t commentId; + std::shared_ptr publicBlockFromCommentParams; + boost::optional sso; + }; pplx::task> unBlockCommentPublic( - utility::string_t tenantId, - utility::string_t commentId, - std::shared_ptr publicBlockFromCommentParams, - boost::optional sso + const ApiUnBlockCommentPublicRequest& request ) const; /// /// @@ -877,11 +1053,15 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiUnLockCommentRequest + { + utility::string_t tenantId; + utility::string_t commentId; + utility::string_t broadcastId; + boost::optional sso; + }; pplx::task> unLockComment( - utility::string_t tenantId, - utility::string_t commentId, - utility::string_t broadcastId, - boost::optional sso + const ApiUnLockCommentRequest& request ) const; /// /// @@ -893,11 +1073,15 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiUnPinCommentRequest + { + utility::string_t tenantId; + utility::string_t commentId; + utility::string_t broadcastId; + boost::optional sso; + }; pplx::task> unPinComment( - utility::string_t tenantId, - utility::string_t commentId, - utility::string_t broadcastId, - boost::optional sso + const ApiUnPinCommentRequest& request ) const; /// /// @@ -910,12 +1094,16 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiUpdateFeedPostPublicRequest + { + utility::string_t tenantId; + utility::string_t postId; + std::shared_ptr updateFeedPostParams; + boost::optional broadcastId; + boost::optional sso; + }; pplx::task> updateFeedPostPublic( - utility::string_t tenantId, - utility::string_t postId, - std::shared_ptr updateFeedPostParams, - boost::optional broadcastId, - boost::optional sso + const ApiUpdateFeedPostPublicRequest& request ) const; /// /// @@ -928,12 +1116,16 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiUpdateUserNotificationCommentSubscriptionStatusRequest + { + utility::string_t tenantId; + utility::string_t notificationId; + utility::string_t optedInOrOut; + utility::string_t commentId; + boost::optional sso; + }; pplx::task> updateUserNotificationCommentSubscriptionStatus( - utility::string_t tenantId, - utility::string_t notificationId, - utility::string_t optedInOrOut, - utility::string_t commentId, - boost::optional sso + const ApiUpdateUserNotificationCommentSubscriptionStatusRequest& request ) const; /// /// @@ -947,13 +1139,17 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiUpdateUserNotificationPageSubscriptionStatusRequest + { + utility::string_t tenantId; + utility::string_t urlId; + utility::string_t url; + utility::string_t pageTitle; + utility::string_t subscribedOrUnsubscribed; + boost::optional sso; + }; pplx::task> 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 ApiUpdateUserNotificationPageSubscriptionStatusRequest& request ) const; /// /// @@ -965,11 +1161,15 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + struct ApiUpdateUserNotificationStatusRequest + { + utility::string_t tenantId; + utility::string_t notificationId; + utility::string_t newStatus; + boost::optional sso; + }; pplx::task> updateUserNotificationStatus( - utility::string_t tenantId, - utility::string_t notificationId, - utility::string_t newStatus, - boost::optional sso + const ApiUpdateUserNotificationStatusRequest& request ) const; /// /// @@ -981,11 +1181,15 @@ class PublicApi /// /// Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices) (optional, default to new SizePreset()) /// Page id that upload is happening from, to configure (optional, default to utility::conversions::to_string_t("")) + struct ApiUploadImageRequest + { + utility::string_t tenantId; + std::shared_ptr file; + boost::optional> sizePreset; + boost::optional urlId; + }; pplx::task> uploadImage( - utility::string_t tenantId, - std::shared_ptr file, - boost::optional> sizePreset, - boost::optional urlId + const ApiUploadImageRequest& request ) const; /// /// @@ -1000,14 +1204,18 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + struct ApiVoteCommentRequest + { + 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; + }; pplx::task> 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 ApiVoteCommentRequest& request ) const; protected: diff --git a/client/src/api/DefaultApi.cpp b/client/src/api/DefaultApi.cpp index 561388f..bce0c8d 100644 --- a/client/src/api/DefaultApi.cpp +++ b/client/src/api/DefaultApi.cpp @@ -35,8 +35,10 @@ DefaultApi::~DefaultApi() { } -pplx::task> DefaultApi::addDomainConfig(utility::string_t tenantId, std::shared_ptr addDomainConfigParams) const +pplx::task> DefaultApi::addDomainConfig(const DefaultApi::ApiAddDomainConfigRequest& request) const { + auto tenantId = request.tenantId; + auto addDomainConfigParams = request.addDomainConfigParams; // verify the required parameter 'addDomainConfigParams' is set if (addDomainConfigParams == nullptr) @@ -191,8 +193,10 @@ pplx::task> DefaultApi::addDomainConfig return localVarResult; }); } -pplx::task> DefaultApi::addHashTag(boost::optional tenantId, boost::optional> createHashTagBody) const +pplx::task> DefaultApi::addHashTag(const DefaultApi::ApiAddHashTagRequest& request) const { + auto tenantId = request.tenantId; + auto createHashTagBody = request.createHashTagBody; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -342,8 +346,10 @@ pplx::task> DefaultApi::addHashTag(boost: return localVarResult; }); } -pplx::task> DefaultApi::addHashTagsBulk(boost::optional tenantId, boost::optional> bulkCreateHashTagsBody) const +pplx::task> DefaultApi::addHashTagsBulk(const DefaultApi::ApiAddHashTagsBulkRequest& request) const { + auto tenantId = request.tenantId; + auto bulkCreateHashTagsBody = request.bulkCreateHashTagsBody; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -493,8 +499,10 @@ pplx::task> DefaultApi::addHashTagsB return localVarResult; }); } -pplx::task> DefaultApi::addPage(utility::string_t tenantId, std::shared_ptr createAPIPageData) const +pplx::task> DefaultApi::addPage(const DefaultApi::ApiAddPageRequest& request) const { + auto tenantId = request.tenantId; + auto createAPIPageData = request.createAPIPageData; // verify the required parameter 'createAPIPageData' is set if (createAPIPageData == nullptr) @@ -649,8 +657,10 @@ 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(const DefaultApi::ApiAddSSOUserRequest& request) const { + auto tenantId = request.tenantId; + auto createAPISSOUserData = request.createAPISSOUserData; // verify the required parameter 'createAPISSOUserData' is set if (createAPISSOUserData == nullptr) @@ -805,8 +815,12 @@ 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(const DefaultApi::ApiAggregateRequest& request) const { + auto tenantId = request.tenantId; + auto aggregationRequest = request.aggregationRequest; + auto parentTenantId = request.parentTenantId; + auto includeStats = request.includeStats; // verify the required parameter 'aggregationRequest' is set if (aggregationRequest == nullptr) @@ -969,8 +983,15 @@ 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(const DefaultApi::ApiAggregateQuestionResultsRequest& request) const { + auto tenantId = request.tenantId; + auto questionId = request.questionId; + auto questionIds = request.questionIds; + auto urlId = request.urlId; + auto timeBucket = request.timeBucket; + auto startDate = request.startDate; + auto forceRecalculate = request.forceRecalculate; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1126,8 +1147,13 @@ 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(const DefaultApi::ApiBlockUserFromCommentRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto blockFromCommentParams = request.blockFromCommentParams; + auto userId = request.userId; + auto anonUserId = request.anonUserId; // verify the required parameter 'blockFromCommentParams' is set if (blockFromCommentParams == nullptr) @@ -1291,8 +1317,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(const DefaultApi::ApiBulkAggregateQuestionResultsRequest& request) const { + auto tenantId = request.tenantId; + auto bulkAggregateQuestionResultsRequest = request.bulkAggregateQuestionResultsRequest; + auto forceRecalculate = request.forceRecalculate; // verify the required parameter 'bulkAggregateQuestionResultsRequest' is set if (bulkAggregateQuestionResultsRequest == nullptr) @@ -1451,8 +1480,12 @@ 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(const DefaultApi::ApiChangeTicketStateRequest& request) const { + auto tenantId = request.tenantId; + auto userId = request.userId; + auto id = request.id; + auto changeTicketStateBody = request.changeTicketStateBody; // verify the required parameter 'changeTicketStateBody' is set if (changeTicketStateBody == nullptr) @@ -1611,8 +1644,17 @@ 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(const DefaultApi::ApiCombineCommentsWithQuestionResultsRequest& request) const { + auto tenantId = request.tenantId; + auto questionId = request.questionId; + auto questionIds = request.questionIds; + auto urlId = request.urlId; + auto startDate = request.startDate; + auto forceRecalculate = request.forceRecalculate; + auto minValue = request.minValue; + auto maxValue = request.maxValue; + auto limit = request.limit; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1776,8 +1818,10 @@ pplx::task> DefaultA return localVarResult; }); } -pplx::task> DefaultApi::createEmailTemplate(utility::string_t tenantId, std::shared_ptr createEmailTemplateBody) const +pplx::task> DefaultApi::createEmailTemplate(const DefaultApi::ApiCreateEmailTemplateRequest& request) const { + auto tenantId = request.tenantId; + auto createEmailTemplateBody = request.createEmailTemplateBody; // verify the required parameter 'createEmailTemplateBody' is set if (createEmailTemplateBody == nullptr) @@ -1932,8 +1976,14 @@ 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(const DefaultApi::ApiCreateFeedPostRequest& request) const { + auto tenantId = request.tenantId; + auto createFeedPostParams = request.createFeedPostParams; + auto broadcastId = request.broadcastId; + auto isLive = request.isLive; + auto doSpamCheck = request.doSpamCheck; + auto skipDupCheck = request.skipDupCheck; // verify the required parameter 'createFeedPostParams' is set if (createFeedPostParams == nullptr) @@ -2104,8 +2154,10 @@ pplx::task> DefaultApi::createFeedPost( return localVarResult; }); } -pplx::task> DefaultApi::createModerator(utility::string_t tenantId, std::shared_ptr createModeratorBody) const +pplx::task> DefaultApi::createModerator(const DefaultApi::ApiCreateModeratorRequest& request) const { + auto tenantId = request.tenantId; + auto createModeratorBody = request.createModeratorBody; // verify the required parameter 'createModeratorBody' is set if (createModeratorBody == nullptr) @@ -2260,8 +2312,10 @@ pplx::task> DefaultApi::createModerator return localVarResult; }); } -pplx::task> DefaultApi::createQuestionConfig(utility::string_t tenantId, std::shared_ptr createQuestionConfigBody) const +pplx::task> DefaultApi::createQuestionConfig(const DefaultApi::ApiCreateQuestionConfigRequest& request) const { + auto tenantId = request.tenantId; + auto createQuestionConfigBody = request.createQuestionConfigBody; // verify the required parameter 'createQuestionConfigBody' is set if (createQuestionConfigBody == nullptr) @@ -2416,8 +2470,10 @@ pplx::task> DefaultApi::createQues return localVarResult; }); } -pplx::task> DefaultApi::createQuestionResult(utility::string_t tenantId, std::shared_ptr createQuestionResultBody) const +pplx::task> DefaultApi::createQuestionResult(const DefaultApi::ApiCreateQuestionResultRequest& request) const { + auto tenantId = request.tenantId; + auto createQuestionResultBody = request.createQuestionResultBody; // verify the required parameter 'createQuestionResultBody' is set if (createQuestionResultBody == nullptr) @@ -2572,8 +2628,10 @@ pplx::task> DefaultApi::createQues return localVarResult; }); } -pplx::task> DefaultApi::createSubscription(utility::string_t tenantId, std::shared_ptr createAPIUserSubscriptionData) const +pplx::task> DefaultApi::createSubscription(const DefaultApi::ApiCreateSubscriptionRequest& request) const { + auto tenantId = request.tenantId; + auto createAPIUserSubscriptionData = request.createAPIUserSubscriptionData; // verify the required parameter 'createAPIUserSubscriptionData' is set if (createAPIUserSubscriptionData == nullptr) @@ -2728,8 +2786,10 @@ pplx::task> DefaultApi::createSub return localVarResult; }); } -pplx::task> DefaultApi::createTenant(utility::string_t tenantId, std::shared_ptr createTenantBody) const +pplx::task> DefaultApi::createTenant(const DefaultApi::ApiCreateTenantRequest& request) const { + auto tenantId = request.tenantId; + auto createTenantBody = request.createTenantBody; // verify the required parameter 'createTenantBody' is set if (createTenantBody == nullptr) @@ -2884,8 +2944,10 @@ pplx::task> DefaultApi::createTenant(utili return localVarResult; }); } -pplx::task> DefaultApi::createTenantPackage(utility::string_t tenantId, std::shared_ptr createTenantPackageBody) const +pplx::task> DefaultApi::createTenantPackage(const DefaultApi::ApiCreateTenantPackageRequest& request) const { + auto tenantId = request.tenantId; + auto createTenantPackageBody = request.createTenantPackageBody; // verify the required parameter 'createTenantPackageBody' is set if (createTenantPackageBody == nullptr) @@ -3040,8 +3102,10 @@ pplx::task> DefaultApi::createTenan return localVarResult; }); } -pplx::task> DefaultApi::createTenantUser(utility::string_t tenantId, std::shared_ptr createTenantUserBody) const +pplx::task> DefaultApi::createTenantUser(const DefaultApi::ApiCreateTenantUserRequest& request) const { + auto tenantId = request.tenantId; + auto createTenantUserBody = request.createTenantUserBody; // verify the required parameter 'createTenantUserBody' is set if (createTenantUserBody == nullptr) @@ -3196,8 +3260,11 @@ 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(const DefaultApi::ApiCreateTicketRequest& request) const { + auto tenantId = request.tenantId; + auto userId = request.userId; + auto createTicketBody = request.createTicketBody; // verify the required parameter 'createTicketBody' is set if (createTicketBody == nullptr) @@ -3355,8 +3422,10 @@ pplx::task> DefaultApi::createTicket(utili return localVarResult; }); } -pplx::task> DefaultApi::createUserBadge(utility::string_t tenantId, std::shared_ptr createUserBadgeParams) const +pplx::task> DefaultApi::createUserBadge(const DefaultApi::ApiCreateUserBadgeRequest& request) const { + auto tenantId = request.tenantId; + auto createUserBadgeParams = request.createUserBadgeParams; // verify the required parameter 'createUserBadgeParams' is set if (createUserBadgeParams == nullptr) @@ -3511,8 +3580,13 @@ 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(const DefaultApi::ApiCreateVoteRequest& request) const { + auto tenantId = request.tenantId; + auto commentId = request.commentId; + auto direction = request.direction; + auto userId = request.userId; + auto anonUserId = request.anonUserId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3658,8 +3732,12 @@ 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(const DefaultApi::ApiDeleteCommentRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto contextUserId = request.contextUserId; + auto isLive = request.isLive; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3800,8 +3878,10 @@ pplx::task> DefaultApi::deleteComment(utili return localVarResult; }); } -pplx::task> DefaultApi::deleteDomainConfig(utility::string_t tenantId, utility::string_t domain) const +pplx::task> DefaultApi::deleteDomainConfig(const DefaultApi::ApiDeleteDomainConfigRequest& request) const { + auto tenantId = request.tenantId; + auto domain = request.domain; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3934,8 +4014,10 @@ pplx::task> DefaultApi::deleteDomain return localVarResult; }); } -pplx::task> DefaultApi::deleteEmailTemplate(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteEmailTemplate(const DefaultApi::ApiDeleteEmailTemplateRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4068,8 +4150,11 @@ 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(const DefaultApi::ApiDeleteEmailTemplateRenderErrorRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto errorId = request.errorId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4203,8 +4288,11 @@ 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(const DefaultApi::ApiDeleteHashTagRequest& request) const { + auto tag = request.tag; + auto tenantId = request.tenantId; + auto deleteHashTagRequestBody = request.deleteHashTagRequestBody; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4355,8 +4443,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(const DefaultApi::ApiDeleteModeratorRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto sendEmail = request.sendEmail; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4493,8 +4584,10 @@ pplx::task> DefaultApi::deleteModerator(utilit return localVarResult; }); } -pplx::task> DefaultApi::deleteNotificationCount(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteNotificationCount(const DefaultApi::ApiDeleteNotificationCountRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4627,8 +4720,10 @@ pplx::task> DefaultApi::deleteNotificationCoun return localVarResult; }); } -pplx::task> DefaultApi::deletePage(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deletePage(const DefaultApi::ApiDeletePageRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4761,8 +4856,10 @@ pplx::task> DefaultApi::deletePage(utilit return localVarResult; }); } -pplx::task> DefaultApi::deletePendingWebhookEvent(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deletePendingWebhookEvent(const DefaultApi::ApiDeletePendingWebhookEventRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4895,8 +4992,10 @@ pplx::task> DefaultApi::deletePendingWebhookEv return localVarResult; }); } -pplx::task> DefaultApi::deleteQuestionConfig(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteQuestionConfig(const DefaultApi::ApiDeleteQuestionConfigRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5029,8 +5128,10 @@ pplx::task> DefaultApi::deleteQuestionConfig(u return localVarResult; }); } -pplx::task> DefaultApi::deleteQuestionResult(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteQuestionResult(const DefaultApi::ApiDeleteQuestionResultRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5163,8 +5264,12 @@ 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(const DefaultApi::ApiDeleteSSOUserRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto deleteComments = request.deleteComments; + auto commentDeleteMode = request.commentDeleteMode; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5305,8 +5410,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(const DefaultApi::ApiDeleteSubscriptionRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto userId = request.userId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5443,8 +5551,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(const DefaultApi::ApiDeleteTenantRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto sure = request.sure; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5581,8 +5692,10 @@ pplx::task> DefaultApi::deleteTenant(utility:: return localVarResult; }); } -pplx::task> DefaultApi::deleteTenantPackage(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteTenantPackage(const DefaultApi::ApiDeleteTenantPackageRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5715,8 +5828,12 @@ 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(const DefaultApi::ApiDeleteTenantUserRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto deleteComments = request.deleteComments; + auto commentDeleteMode = request.commentDeleteMode; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5857,8 +5974,10 @@ pplx::task> DefaultApi::deleteTenantUser(utili return localVarResult; }); } -pplx::task> DefaultApi::deleteUserBadge(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteUserBadge(const DefaultApi::ApiDeleteUserBadgeRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5991,8 +6110,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(const DefaultApi::ApiDeleteVoteRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto editKey = request.editKey; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6129,8 +6251,12 @@ 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(const DefaultApi::ApiFlagCommentRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto userId = request.userId; + auto anonUserId = request.anonUserId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6271,8 +6397,14 @@ 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(const DefaultApi::ApiGetAuditLogsRequest& request) const { + auto tenantId = request.tenantId; + auto limit = request.limit; + auto skip = request.skip; + auto order = request.order; + auto after = request.after; + auto before = request.before; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6424,8 +6556,10 @@ pplx::task> DefaultApi::getAuditLogs(utili return localVarResult; }); } -pplx::task> DefaultApi::getCachedNotificationCount(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getCachedNotificationCount(const DefaultApi::ApiGetCachedNotificationCountRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6558,8 +6692,10 @@ pplx::task> DefaultApi::getC return localVarResult; }); } -pplx::task> DefaultApi::getComment(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getComment(const DefaultApi::ApiGetCommentRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6692,8 +6828,25 @@ 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(const DefaultApi::ApiGetCommentsRequest& request) const { + auto tenantId = request.tenantId; + auto page = request.page; + auto limit = request.limit; + auto skip = request.skip; + auto asTree = request.asTree; + auto skipChildren = request.skipChildren; + auto limitChildren = request.limitChildren; + auto maxTreeDepth = request.maxTreeDepth; + auto urlId = request.urlId; + auto userId = request.userId; + auto anonUserId = request.anonUserId; + auto contextUserId = request.contextUserId; + auto hashTag = request.hashTag; + auto parentId = request.parentId; + auto direction = request.direction; + auto fromDate = request.fromDate; + auto toDate = request.toDate; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6889,8 +7042,10 @@ pplx::task> DefaultApi::getComments(util return localVarResult; }); } -pplx::task> DefaultApi::getDomainConfig(utility::string_t tenantId, utility::string_t domain) const +pplx::task> DefaultApi::getDomainConfig(const DefaultApi::ApiGetDomainConfigRequest& request) const { + auto tenantId = request.tenantId; + auto domain = request.domain; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7023,8 +7178,9 @@ pplx::task> DefaultApi::getDomainConfig return localVarResult; }); } -pplx::task> DefaultApi::getDomainConfigs(utility::string_t tenantId) const +pplx::task> DefaultApi::getDomainConfigs(const DefaultApi::ApiGetDomainConfigsRequest& request) const { + auto tenantId = request.tenantId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7156,8 +7312,10 @@ pplx::task> DefaultApi::getDomainConfi return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplate(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getEmailTemplate(const DefaultApi::ApiGetEmailTemplateRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7290,8 +7448,9 @@ pplx::task> DefaultApi::getEmailTempla return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplateDefinitions(utility::string_t tenantId) const +pplx::task> DefaultApi::getEmailTemplateDefinitions(const DefaultApi::ApiGetEmailTemplateDefinitionsRequest& request) const { + auto tenantId = request.tenantId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7423,8 +7582,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(const DefaultApi::ApiGetEmailTemplateRenderErrorsRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto skip = request.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7561,8 +7723,10 @@ pplx::task> DefaultApi::ge return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplates(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getEmailTemplates(const DefaultApi::ApiGetEmailTemplatesRequest& request) const { + auto tenantId = request.tenantId; + auto skip = request.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7698,8 +7862,12 @@ 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(const DefaultApi::ApiGetFeedPostsRequest& request) const { + auto tenantId = request.tenantId; + auto afterId = request.afterId; + auto limit = request.limit; + auto tags = request.tags; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7843,8 +8011,10 @@ pplx::task> DefaultApi::getFeedPosts(utili return localVarResult; }); } -pplx::task> DefaultApi::getHashTags(utility::string_t tenantId, boost::optional page) const +pplx::task> DefaultApi::getHashTags(const DefaultApi::ApiGetHashTagsRequest& request) const { + auto tenantId = request.tenantId; + auto page = request.page; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7980,8 +8150,10 @@ pplx::task> DefaultApi::getHashTags(utility return localVarResult; }); } -pplx::task> DefaultApi::getModerator(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getModerator(const DefaultApi::ApiGetModeratorRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -8114,8 +8286,10 @@ pplx::task> DefaultApi::getModerator(utili return localVarResult; }); } -pplx::task> DefaultApi::getModerators(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getModerators(const DefaultApi::ApiGetModeratorsRequest& request) const { + auto tenantId = request.tenantId; + auto skip = request.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -8251,8 +8425,14 @@ 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(const DefaultApi::ApiGetNotificationCountRequest& request) const { + auto tenantId = request.tenantId; + auto userId = request.userId; + auto urlId = request.urlId; + auto fromCommentId = request.fromCommentId; + auto viewed = request.viewed; + auto type = request.type; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -8404,8 +8584,15 @@ 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(const DefaultApi::ApiGetNotificationsRequest& request) const { + auto tenantId = request.tenantId; + auto userId = request.userId; + auto urlId = request.urlId; + auto fromCommentId = request.fromCommentId; + auto viewed = request.viewed; + auto type = request.type; + auto skip = request.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -8561,8 +8748,10 @@ pplx::task> DefaultApi::getNotificatio return localVarResult; }); } -pplx::task> DefaultApi::getPageByURLId(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> DefaultApi::getPageByURLId(const DefaultApi::ApiGetPageByURLIdRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -8697,8 +8886,9 @@ pplx::task> DefaultApi::getPageByURLI return localVarResult; }); } -pplx::task> DefaultApi::getPages(utility::string_t tenantId) const +pplx::task> DefaultApi::getPages(const DefaultApi::ApiGetPagesRequest& request) const { + auto tenantId = request.tenantId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -8830,8 +9020,15 @@ 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(const DefaultApi::ApiGetPendingWebhookEventCountRequest& request) const { + auto tenantId = request.tenantId; + auto commentId = request.commentId; + auto externalId = request.externalId; + auto eventType = request.eventType; + auto type = request.type; + auto domain = request.domain; + auto attemptCountGT = request.attemptCountGT; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -8987,8 +9184,16 @@ 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(const DefaultApi::ApiGetPendingWebhookEventsRequest& request) const { + auto tenantId = request.tenantId; + auto commentId = request.commentId; + auto externalId = request.externalId; + auto eventType = request.eventType; + auto type = request.type; + auto domain = request.domain; + auto attemptCountGT = request.attemptCountGT; + auto skip = request.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -9148,8 +9353,10 @@ pplx::task> DefaultApi::getPend return localVarResult; }); } -pplx::task> DefaultApi::getQuestionConfig(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getQuestionConfig(const DefaultApi::ApiGetQuestionConfigRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -9282,8 +9489,10 @@ pplx::task> DefaultApi::getQuestionCo return localVarResult; }); } -pplx::task> DefaultApi::getQuestionConfigs(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getQuestionConfigs(const DefaultApi::ApiGetQuestionConfigsRequest& request) const { + auto tenantId = request.tenantId; + auto skip = request.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -9419,8 +9628,10 @@ pplx::task> DefaultApi::getQuestionC return localVarResult; }); } -pplx::task> DefaultApi::getQuestionResult(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getQuestionResult(const DefaultApi::ApiGetQuestionResultRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -9553,8 +9764,15 @@ 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(const DefaultApi::ApiGetQuestionResultsRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; + auto userId = request.userId; + auto startDate = request.startDate; + auto questionId = request.questionId; + auto questionIds = request.questionIds; + auto skip = request.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -9710,8 +9928,10 @@ pplx::task> DefaultApi::getQuestionR return localVarResult; }); } -pplx::task> DefaultApi::getSSOUserByEmail(utility::string_t tenantId, utility::string_t email) const +pplx::task> DefaultApi::getSSOUserByEmail(const DefaultApi::ApiGetSSOUserByEmailRequest& request) const { + auto tenantId = request.tenantId; + auto email = request.email; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -9844,8 +10064,10 @@ pplx::task> DefaultApi::getSSOUser return localVarResult; }); } -pplx::task> DefaultApi::getSSOUserById(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getSSOUserById(const DefaultApi::ApiGetSSOUserByIdRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -9978,8 +10200,10 @@ pplx::task> DefaultApi::getSSOUserByI return localVarResult; }); } -pplx::task> DefaultApi::getSSOUsers(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getSSOUsers(const DefaultApi::ApiGetSSOUsersRequest& request) const { + auto tenantId = request.tenantId; + auto skip = request.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -10115,8 +10339,10 @@ pplx::task> DefaultApi::getSSOUsers(utility return localVarResult; }); } -pplx::task> DefaultApi::getSubscriptions(utility::string_t tenantId, boost::optional userId) const +pplx::task> DefaultApi::getSubscriptions(const DefaultApi::ApiGetSubscriptionsRequest& request) const { + auto tenantId = request.tenantId; + auto userId = request.userId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -10252,8 +10478,10 @@ pplx::task> DefaultApi::getSubscrip return localVarResult; }); } -pplx::task> DefaultApi::getTenant(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getTenant(const DefaultApi::ApiGetTenantRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -10386,8 +10614,13 @@ 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(const DefaultApi::ApiGetTenantDailyUsagesRequest& request) const { + auto tenantId = request.tenantId; + auto yearNumber = request.yearNumber; + auto monthNumber = request.monthNumber; + auto dayNumber = request.dayNumber; + auto skip = request.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -10535,8 +10768,10 @@ pplx::task> DefaultApi::getTenantD return localVarResult; }); } -pplx::task> DefaultApi::getTenantPackage(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getTenantPackage(const DefaultApi::ApiGetTenantPackageRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -10669,8 +10904,10 @@ pplx::task> DefaultApi::getTenantPacka return localVarResult; }); } -pplx::task> DefaultApi::getTenantPackages(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getTenantPackages(const DefaultApi::ApiGetTenantPackagesRequest& request) const { + auto tenantId = request.tenantId; + auto skip = request.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -10806,8 +11043,10 @@ pplx::task> DefaultApi::getTenantPack return localVarResult; }); } -pplx::task> DefaultApi::getTenantUser(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getTenantUser(const DefaultApi::ApiGetTenantUserRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -10940,8 +11179,10 @@ pplx::task> DefaultApi::getTenantUser(uti return localVarResult; }); } -pplx::task> DefaultApi::getTenantUsers(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getTenantUsers(const DefaultApi::ApiGetTenantUsersRequest& request) const { + auto tenantId = request.tenantId; + auto skip = request.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11077,8 +11318,11 @@ 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(const DefaultApi::ApiGetTenantsRequest& request) const { + auto tenantId = request.tenantId; + auto meta = request.meta; + auto skip = request.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11218,8 +11462,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(const DefaultApi::ApiGetTicketRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto userId = request.userId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11356,8 +11603,13 @@ 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(const DefaultApi::ApiGetTicketsRequest& request) const { + auto tenantId = request.tenantId; + auto userId = request.userId; + auto state = request.state; + auto skip = request.skip; + auto limit = request.limit; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11505,8 +11757,10 @@ pplx::task> DefaultApi::getTickets(utility:: return localVarResult; }); } -pplx::task> DefaultApi::getUser(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getUser(const DefaultApi::ApiGetUserRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11639,8 +11893,10 @@ 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(const DefaultApi::ApiGetUserBadgeRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11773,8 +12029,10 @@ pplx::task> DefaultApi::getUserBadge(ut return localVarResult; }); } -pplx::task> DefaultApi::getUserBadgeProgressById(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getUserBadgeProgressById(const DefaultApi::ApiGetUserBadgeProgressByIdRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11907,8 +12165,10 @@ pplx::task> DefaultApi::getUser return localVarResult; }); } -pplx::task> DefaultApi::getUserBadgeProgressByUserId(utility::string_t tenantId, utility::string_t userId) const +pplx::task> DefaultApi::getUserBadgeProgressByUserId(const DefaultApi::ApiGetUserBadgeProgressByUserIdRequest& request) const { + auto tenantId = request.tenantId; + auto userId = request.userId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -12041,8 +12301,12 @@ 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(const DefaultApi::ApiGetUserBadgeProgressListRequest& request) const { + auto tenantId = request.tenantId; + auto userId = request.userId; + auto limit = request.limit; + auto skip = request.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -12186,8 +12450,15 @@ 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(const DefaultApi::ApiGetUserBadgesRequest& request) const { + auto tenantId = request.tenantId; + auto userId = request.userId; + auto badgeId = request.badgeId; + auto type = request.type; + auto displayedOnComments = request.displayedOnComments; + auto limit = request.limit; + auto skip = request.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -12343,8 +12614,10 @@ pplx::task> DefaultApi::getUserBadges( return localVarResult; }); } -pplx::task> DefaultApi::getVotes(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> DefaultApi::getVotes(const DefaultApi::ApiGetVotesRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -12479,8 +12752,12 @@ 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(const DefaultApi::ApiGetVotesForUserRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; + auto userId = request.userId; + auto anonUserId = request.anonUserId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -12623,8 +12900,11 @@ 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(const DefaultApi::ApiPatchDomainConfigRequest& request) const { + auto tenantId = request.tenantId; + auto domainToUpdate = request.domainToUpdate; + auto patchDomainConfigParams = request.patchDomainConfigParams; // verify the required parameter 'patchDomainConfigParams' is set if (patchDomainConfigParams == nullptr) @@ -12780,8 +13060,11 @@ 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(const DefaultApi::ApiPatchHashTagRequest& request) const { + auto tag = request.tag; + auto tenantId = request.tenantId; + auto updateHashTagBody = request.updateHashTagBody; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -12932,8 +13215,11 @@ 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(const DefaultApi::ApiPatchPageRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto updateAPIPageData = request.updateAPIPageData; // verify the required parameter 'updateAPIPageData' is set if (updateAPIPageData == nullptr) @@ -13089,8 +13375,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(const DefaultApi::ApiPatchSSOUserRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto updateAPISSOUserData = request.updateAPISSOUserData; + auto updateComments = request.updateComments; // verify the required parameter 'updateAPISSOUserData' is set if (updateAPISSOUserData == nullptr) @@ -13250,8 +13540,11 @@ 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(const DefaultApi::ApiPutDomainConfigRequest& request) const { + auto tenantId = request.tenantId; + auto domainToUpdate = request.domainToUpdate; + auto updateDomainConfigParams = request.updateDomainConfigParams; // verify the required parameter 'updateDomainConfigParams' is set if (updateDomainConfigParams == nullptr) @@ -13407,8 +13700,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(const DefaultApi::ApiPutSSOUserRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto updateAPISSOUserData = request.updateAPISSOUserData; + auto updateComments = request.updateComments; // verify the required parameter 'updateAPISSOUserData' is set if (updateAPISSOUserData == nullptr) @@ -13568,8 +13865,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(const DefaultApi::ApiRenderEmailTemplateRequest& request) const { + auto tenantId = request.tenantId; + auto renderEmailTemplateBody = request.renderEmailTemplateBody; + auto locale = request.locale; // verify the required parameter 'renderEmailTemplateBody' is set if (renderEmailTemplateBody == nullptr) @@ -13728,8 +14028,11 @@ 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(const DefaultApi::ApiReplaceTenantPackageRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto replaceTenantPackageBody = request.replaceTenantPackageBody; // verify the required parameter 'replaceTenantPackageBody' is set if (replaceTenantPackageBody == nullptr) @@ -13885,8 +14188,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(const DefaultApi::ApiReplaceTenantUserRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto replaceTenantUserBody = request.replaceTenantUserBody; + auto updateComments = request.updateComments; // verify the required parameter 'replaceTenantUserBody' is set if (replaceTenantUserBody == nullptr) @@ -14046,8 +14353,14 @@ 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(const DefaultApi::ApiSaveCommentRequest& request) const { + auto tenantId = request.tenantId; + auto createCommentParams = request.createCommentParams; + auto isLive = request.isLive; + auto doSpamCheck = request.doSpamCheck; + auto sendEmails = request.sendEmails; + auto populateNotifications = request.populateNotifications; // verify the required parameter 'createCommentParams' is set if (createCommentParams == nullptr) @@ -14218,8 +14531,14 @@ 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(const DefaultApi::ApiSaveCommentsBulkRequest& request) const { + auto tenantId = request.tenantId; + auto createCommentParams = request.createCommentParams; + auto isLive = request.isLive; + auto doSpamCheck = request.doSpamCheck; + auto sendEmails = request.sendEmails; + auto populateNotifications = request.populateNotifications; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -14399,8 +14718,11 @@ 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(const DefaultApi::ApiSendInviteRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto fromName = request.fromName; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -14536,8 +14858,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(const DefaultApi::ApiSendLoginLinkRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto redirectURL = request.redirectURL; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -14674,8 +14999,13 @@ 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(const DefaultApi::ApiUnBlockUserFromCommentRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto unBlockFromCommentParams = request.unBlockFromCommentParams; + auto userId = request.userId; + auto anonUserId = request.anonUserId; // verify the required parameter 'unBlockFromCommentParams' is set if (unBlockFromCommentParams == nullptr) @@ -14839,8 +15169,12 @@ 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(const DefaultApi::ApiUnFlagCommentRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto userId = request.userId; + auto anonUserId = request.anonUserId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -14981,8 +15315,14 @@ 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(const DefaultApi::ApiUpdateCommentRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto updatableCommentParams = request.updatableCommentParams; + auto contextUserId = request.contextUserId; + auto doSpamCheck = request.doSpamCheck; + auto isLive = request.isLive; // verify the required parameter 'updatableCommentParams' is set if (updatableCommentParams == nullptr) @@ -15150,8 +15490,11 @@ 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(const DefaultApi::ApiUpdateEmailTemplateRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto updateEmailTemplateBody = request.updateEmailTemplateBody; // verify the required parameter 'updateEmailTemplateBody' is set if (updateEmailTemplateBody == nullptr) @@ -15307,8 +15650,11 @@ 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(const DefaultApi::ApiUpdateFeedPostRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto feedPost = request.feedPost; // verify the required parameter 'feedPost' is set if (feedPost == nullptr) @@ -15464,8 +15810,11 @@ 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(const DefaultApi::ApiUpdateModeratorRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto updateModeratorBody = request.updateModeratorBody; // verify the required parameter 'updateModeratorBody' is set if (updateModeratorBody == nullptr) @@ -15621,8 +15970,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(const DefaultApi::ApiUpdateNotificationRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto updateNotificationBody = request.updateNotificationBody; + auto userId = request.userId; // verify the required parameter 'updateNotificationBody' is set if (updateNotificationBody == nullptr) @@ -15782,8 +16135,11 @@ 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(const DefaultApi::ApiUpdateQuestionConfigRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto updateQuestionConfigBody = request.updateQuestionConfigBody; // verify the required parameter 'updateQuestionConfigBody' is set if (updateQuestionConfigBody == nullptr) @@ -15939,8 +16295,11 @@ 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(const DefaultApi::ApiUpdateQuestionResultRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto updateQuestionResultBody = request.updateQuestionResultBody; // verify the required parameter 'updateQuestionResultBody' is set if (updateQuestionResultBody == nullptr) @@ -16096,8 +16455,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(const DefaultApi::ApiUpdateSubscriptionRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto updateAPIUserSubscriptionData = request.updateAPIUserSubscriptionData; + auto userId = request.userId; // verify the required parameter 'updateAPIUserSubscriptionData' is set if (updateAPIUserSubscriptionData == nullptr) @@ -16257,8 +16620,11 @@ 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(const DefaultApi::ApiUpdateTenantRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto updateTenantBody = request.updateTenantBody; // verify the required parameter 'updateTenantBody' is set if (updateTenantBody == nullptr) @@ -16414,8 +16780,11 @@ 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(const DefaultApi::ApiUpdateTenantPackageRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto updateTenantPackageBody = request.updateTenantPackageBody; // verify the required parameter 'updateTenantPackageBody' is set if (updateTenantPackageBody == nullptr) @@ -16571,8 +16940,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(const DefaultApi::ApiUpdateTenantUserRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto updateTenantUserBody = request.updateTenantUserBody; + auto updateComments = request.updateComments; // verify the required parameter 'updateTenantUserBody' is set if (updateTenantUserBody == nullptr) @@ -16732,8 +17105,11 @@ 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(const DefaultApi::ApiUpdateUserBadgeRequest& request) const { + auto tenantId = request.tenantId; + auto id = request.id; + auto updateUserBadgeParams = request.updateUserBadgeParams; // verify the required parameter 'updateUserBadgeParams' is set if (updateUserBadgeParams == nullptr) diff --git a/client/src/api/ModerationApi.cpp b/client/src/api/ModerationApi.cpp index cb1c47a..baa6125 100644 --- a/client/src/api/ModerationApi.cpp +++ b/client/src/api/ModerationApi.cpp @@ -35,8 +35,13 @@ 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(const ModerationApi::ApiDeleteModerationVoteRequest& request) const { + auto commentId = request.commentId; + auto voteId = request.voteId; + auto tenantId = request.tenantId; + auto broadcastId = request.broadcastId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -78,14 +83,14 @@ pplx::task> ModerationApi::deleteModerationV std::unordered_set localVarConsumeHttpContentTypes; - if (broadcastId) - { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); - } if (tenantId) { localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -171,8 +176,18 @@ 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(const ModerationApi::ApiGetApiCommentsRequest& request) const { + auto page = request.page; + auto count = request.count; + auto textSearch = request.textSearch; + auto byIPFromComment = request.byIPFromComment; + auto filters = request.filters; + auto searchFilters = request.searchFilters; + auto sorts = request.sorts; + auto demo = request.demo; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -333,8 +348,11 @@ pplx::task> ModerationApi::get return localVarResult; }); } -pplx::task> ModerationApi::getApiExportStatus(boost::optional batchJobId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getApiExportStatus(const ModerationApi::ApiGetApiExportStatusRequest& request) const { + auto batchJobId = request.batchJobId; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -467,8 +485,16 @@ 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(const ModerationApi::ApiGetApiIdsRequest& request) const { + auto textSearch = request.textSearch; + auto byIPFromComment = request.byIPFromComment; + auto filters = request.filters; + auto searchFilters = request.searchFilters; + auto afterId = request.afterId; + auto demo = request.demo; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -621,8 +647,11 @@ 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(const ModerationApi::ApiGetBanUsersFromCommentRequest& request) const { + auto commentId = request.commentId; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -752,8 +781,11 @@ 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(const ModerationApi::ApiGetCommentBanStatusRequest& request) const { + auto commentId = request.commentId; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -883,8 +915,11 @@ 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(const ModerationApi::ApiGetCommentChildrenRequest& request) const { + auto commentId = request.commentId; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1014,8 +1049,15 @@ 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(const ModerationApi::ApiGetCountRequest& request) const { + auto textSearch = request.textSearch; + auto byIPFromComment = request.byIPFromComment; + auto filter = request.filter; + auto searchFilters = request.searchFilters; + auto demo = request.demo; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1164,8 +1206,10 @@ pplx::task> ModerationApi::g return localVarResult; }); } -pplx::task> ModerationApi::getCounts(boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getCounts(const ModerationApi::ApiGetCountsRequest& request) const { + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1294,8 +1338,11 @@ 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(const ModerationApi::ApiGetLogsRequest& request) const { + auto commentId = request.commentId; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1425,8 +1472,10 @@ pplx::task> ModerationApi::getLogs return localVarResult; }); } -pplx::task> ModerationApi::getManualBadges(boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getManualBadges(const ModerationApi::ApiGetManualBadgesRequest& request) const { + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1555,8 +1604,12 @@ 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(const ModerationApi::ApiGetManualBadgesForUserRequest& request) const { + auto badgesUserId = request.badgesUserId; + auto commentId = request.commentId; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1693,8 +1746,13 @@ 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(const ModerationApi::ApiGetModerationCommentRequest& request) const { + auto commentId = request.commentId; + auto includeEmail = request.includeEmail; + auto includeIP = request.includeIP; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1832,8 +1890,11 @@ 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(const ModerationApi::ApiGetModerationCommentTextRequest& request) const { + auto commentId = request.commentId; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1963,8 +2024,14 @@ 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(const ModerationApi::ApiGetPreBanSummaryRequest& request) const { + auto commentId = request.commentId; + auto includeByUserIdAndEmail = request.includeByUserIdAndEmail; + auto includeByIP = request.includeByIP; + auto includeByEmailDomain = request.includeByEmailDomain; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2106,8 +2173,13 @@ 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(const ModerationApi::ApiGetSearchCommentsSummaryRequest& request) const { + auto value = request.value; + auto filters = request.filters; + auto searchFilters = request.searchFilters; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2248,8 +2320,11 @@ pplx::task> ModerationApi::getS return localVarResult; }); } -pplx::task> ModerationApi::getSearchPages(boost::optional value, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getSearchPages(const ModerationApi::ApiGetSearchPagesRequest& request) const { + auto value = request.value; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2382,8 +2457,11 @@ pplx::task> ModerationApi::getSear return localVarResult; }); } -pplx::task> ModerationApi::getSearchSites(boost::optional value, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getSearchSites(const ModerationApi::ApiGetSearchSitesRequest& request) const { + auto value = request.value; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2516,8 +2594,11 @@ pplx::task> ModerationApi::getSear return localVarResult; }); } -pplx::task> ModerationApi::getSearchSuggest(boost::optional textSearch, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getSearchSuggest(const ModerationApi::ApiGetSearchSuggestRequest& request) const { + auto textSearch = request.textSearch; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2650,8 +2731,11 @@ pplx::task> ModerationApi::getSearchS return localVarResult; }); } -pplx::task> ModerationApi::getSearchUsers(boost::optional value, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getSearchUsers(const ModerationApi::ApiGetSearchUsersRequest& request) const { + auto value = request.value; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2784,8 +2868,11 @@ pplx::task> ModerationApi::getSear return localVarResult; }); } -pplx::task> ModerationApi::getTrustFactor(boost::optional userId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getTrustFactor(const ModerationApi::ApiGetTrustFactorRequest& request) const { + auto userId = request.userId; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2918,8 +3005,10 @@ pplx::task> ModerationApi::getTrustF return localVarResult; }); } -pplx::task> ModerationApi::getUserBanPreference(boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getUserBanPreference(const ModerationApi::ApiGetUserBanPreferenceRequest& request) const { + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3048,8 +3137,11 @@ pplx::task> Moderation return localVarResult; }); } -pplx::task> ModerationApi::getUserInternalProfile(boost::optional commentId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getUserInternalProfile(const ModerationApi::ApiGetUserInternalProfileRequest& request) const { + auto commentId = request.commentId; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3182,8 +3274,13 @@ 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(const ModerationApi::ApiPostAdjustCommentVotesRequest& request) const { + auto commentId = request.commentId; + auto adjustCommentVotesParams = request.adjustCommentVotesParams; + auto tenantId = request.tenantId; + auto broadcastId = request.broadcastId; + auto sso = request.sso; // verify the required parameter 'adjustCommentVotesParams' is set if (adjustCommentVotesParams == nullptr) @@ -3231,14 +3328,14 @@ 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); - } if (tenantId) { localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -3340,8 +3437,15 @@ 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(const ModerationApi::ApiPostApiExportRequest& request) const { + auto textSearch = request.textSearch; + auto byIPFromComment = request.byIPFromComment; + auto filters = request.filters; + auto searchFilters = request.searchFilters; + auto sorts = request.sorts; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3490,8 +3594,19 @@ 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(const ModerationApi::ApiPostBanUserFromCommentRequest& request) const { + auto commentId = request.commentId; + auto banEmail = request.banEmail; + auto banEmailDomain = request.banEmailDomain; + auto banIP = request.banIP; + auto deleteAllUsersComments = request.deleteAllUsersComments; + auto bannedUntil = request.bannedUntil; + auto isShadowBan = request.isShadowBan; + auto updateId = request.updateId; + auto banReason = request.banReason; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3653,8 +3768,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(const ModerationApi::ApiPostBanUserUndoRequest& request) const { + auto banUserUndoParams = request.banUserUndoParams; + auto tenantId = request.tenantId; + auto sso = request.sso; // verify the required parameter 'banUserUndoParams' is set if (banUserUndoParams == nullptr) @@ -3806,8 +3924,14 @@ 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(const ModerationApi::ApiPostBulkPreBanSummaryRequest& request) const { + auto bulkPreBanParams = request.bulkPreBanParams; + auto includeByUserIdAndEmail = request.includeByUserIdAndEmail; + auto includeByIP = request.includeByIP; + auto includeByEmailDomain = request.includeByEmailDomain; + auto tenantId = request.tenantId; + auto sso = request.sso; // verify the required parameter 'bulkPreBanParams' is set if (bulkPreBanParams == nullptr) @@ -3971,8 +4095,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(const ModerationApi::ApiPostCommentsByIdsRequest& request) const { + auto commentsByIdsParams = request.commentsByIdsParams; + auto tenantId = request.tenantId; + auto sso = request.sso; // verify the required parameter 'commentsByIdsParams' is set if (commentsByIdsParams == nullptr) @@ -4124,8 +4251,12 @@ 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(const ModerationApi::ApiPostFlagCommentRequest& request) const { + auto commentId = request.commentId; + auto tenantId = request.tenantId; + auto broadcastId = request.broadcastId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4166,14 +4297,14 @@ pplx::task> ModerationApi::postFlagComment(uti std::unordered_set localVarConsumeHttpContentTypes; - if (broadcastId) - { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); - } if (tenantId) { localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -4259,8 +4390,12 @@ 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(const ModerationApi::ApiPostRemoveCommentRequest& request) const { + auto commentId = request.commentId; + auto tenantId = request.tenantId; + auto broadcastId = request.broadcastId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4301,14 +4436,14 @@ pplx::task> ModerationApi::postRemove std::unordered_set localVarConsumeHttpContentTypes; - if (broadcastId) - { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); - } if (tenantId) { localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -4394,8 +4529,12 @@ 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(const ModerationApi::ApiPostRestoreDeletedCommentRequest& request) const { + auto commentId = request.commentId; + auto tenantId = request.tenantId; + auto broadcastId = request.broadcastId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4436,14 +4575,14 @@ pplx::task> ModerationApi::postRestoreDeletedC std::unordered_set localVarConsumeHttpContentTypes; - if (broadcastId) - { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); - } if (tenantId) { localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -4529,8 +4668,13 @@ 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(const ModerationApi::ApiPostSetCommentApprovalStatusRequest& request) const { + auto commentId = request.commentId; + auto approved = request.approved; + auto tenantId = request.tenantId; + auto broadcastId = request.broadcastId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4575,14 +4719,14 @@ pplx::task> ModerationApi::postSetCo { localVarQueryParams[utility::conversions::to_string_t("approved")] = ApiClient::parameterToString(*approved); } - if (broadcastId) - { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); - } if (tenantId) { localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -4668,8 +4812,13 @@ 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(const ModerationApi::ApiPostSetCommentReviewStatusRequest& request) const { + auto commentId = request.commentId; + auto reviewed = request.reviewed; + auto tenantId = request.tenantId; + auto broadcastId = request.broadcastId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4714,14 +4863,14 @@ pplx::task> ModerationApi::postSetCommentRevie { localVarQueryParams[utility::conversions::to_string_t("reviewed")] = ApiClient::parameterToString(*reviewed); } - if (broadcastId) - { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); - } if (tenantId) { localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -4807,8 +4956,14 @@ 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(const ModerationApi::ApiPostSetCommentSpamStatusRequest& request) const { + auto commentId = request.commentId; + auto spam = request.spam; + auto permNotSpam = request.permNotSpam; + auto tenantId = request.tenantId; + auto broadcastId = request.broadcastId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4857,14 +5012,14 @@ pplx::task> ModerationApi::postSetCommentSpamS { localVarQueryParams[utility::conversions::to_string_t("permNotSpam")] = ApiClient::parameterToString(*permNotSpam); } - if (broadcastId) - { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); - } if (tenantId) { localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -4950,8 +5105,13 @@ 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(const ModerationApi::ApiPostSetCommentTextRequest& request) const { + auto commentId = request.commentId; + auto setCommentTextParams = request.setCommentTextParams; + auto tenantId = request.tenantId; + auto broadcastId = request.broadcastId; + auto sso = request.sso; // verify the required parameter 'setCommentTextParams' is set if (setCommentTextParams == nullptr) @@ -4999,14 +5159,14 @@ 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); - } if (tenantId) { localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -5108,8 +5268,12 @@ 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(const ModerationApi::ApiPostUnFlagCommentRequest& request) const { + auto commentId = request.commentId; + auto tenantId = request.tenantId; + auto broadcastId = request.broadcastId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5150,14 +5314,14 @@ pplx::task> ModerationApi::postUnFlagComment(u std::unordered_set localVarConsumeHttpContentTypes; - if (broadcastId) - { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); - } if (tenantId) { localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -5243,8 +5407,13 @@ 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(const ModerationApi::ApiPostVoteRequest& request) const { + auto commentId = request.commentId; + auto direction = request.direction; + auto tenantId = request.tenantId; + auto broadcastId = request.broadcastId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5289,14 +5458,14 @@ pplx::task> ModerationApi::postVote(utility::strin { localVarQueryParams[utility::conversions::to_string_t("direction")] = ApiClient::parameterToString(*direction); } - if (broadcastId) - { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); - } if (tenantId) { localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -5382,8 +5551,14 @@ 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(const ModerationApi::ApiPutAwardBadgeRequest& request) const { + auto badgeId = request.badgeId; + auto userId = request.userId; + auto commentId = request.commentId; + auto tenantId = request.tenantId; + auto broadcastId = request.broadcastId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5434,14 +5609,14 @@ pplx::task> ModerationApi::putAwardBadge { localVarQueryParams[utility::conversions::to_string_t("commentId")] = ApiClient::parameterToString(*commentId); } - if (broadcastId) - { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); - } if (tenantId) { localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -5527,8 +5702,11 @@ 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(const ModerationApi::ApiPutCloseThreadRequest& request) const { + auto urlId = request.urlId; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5660,8 +5838,14 @@ 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(const ModerationApi::ApiPutRemoveBadgeRequest& request) const { + auto badgeId = request.badgeId; + auto userId = request.userId; + auto commentId = request.commentId; + auto tenantId = request.tenantId; + auto broadcastId = request.broadcastId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5712,14 +5896,14 @@ pplx::task> ModerationApi::putRemoveBad { localVarQueryParams[utility::conversions::to_string_t("commentId")] = ApiClient::parameterToString(*commentId); } - if (broadcastId) - { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); - } if (tenantId) { localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -5805,8 +5989,11 @@ 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(const ModerationApi::ApiPutReopenThreadRequest& request) const { + auto urlId = request.urlId; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5938,8 +6125,12 @@ 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(const ModerationApi::ApiSetTrustFactorRequest& request) const { + auto userId = request.userId; + auto trustFactor = request.trustFactor; + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); diff --git a/client/src/api/PublicApi.cpp b/client/src/api/PublicApi.cpp index f5eaff7..e040c52 100644 --- a/client/src/api/PublicApi.cpp +++ b/client/src/api/PublicApi.cpp @@ -35,8 +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(const PublicApi::ApiBlockFromCommentPublicRequest& request) const { + auto tenantId = request.tenantId; + auto commentId = request.commentId; + auto publicBlockFromCommentParams = request.publicBlockFromCommentParams; + auto sso = request.sso; // verify the required parameter 'publicBlockFromCommentParams' is set if (publicBlockFromCommentParams == nullptr) @@ -188,8 +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(const PublicApi::ApiCheckedCommentsForBlockedRequest& request) const { + auto tenantId = request.tenantId; + auto commentIds = request.commentIds; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -320,8 +327,14 @@ 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(const PublicApi::ApiCreateCommentPublicRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; + auto broadcastId = request.broadcastId; + auto commentData = request.commentData; + auto sessionId = request.sessionId; + auto sso = request.sso; // verify the required parameter 'commentData' is set if (commentData == nullptr) @@ -480,8 +493,12 @@ 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(const PublicApi::ApiCreateFeedPostPublicRequest& request) const { + auto tenantId = request.tenantId; + auto createFeedPostParams = request.createFeedPostParams; + auto broadcastId = request.broadcastId; + auto sso = request.sso; // verify the required parameter 'createFeedPostParams' is set if (createFeedPostParams == nullptr) @@ -634,8 +651,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(const PublicApi::ApiCreateV1PageReactRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; + auto title = request.title; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -764,8 +784,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(const PublicApi::ApiCreateV2PageReactRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; + auto id = request.id; + auto title = request.title; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -897,8 +921,13 @@ 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(const PublicApi::ApiDeleteCommentPublicRequest& request) const { + auto tenantId = request.tenantId; + auto commentId = request.commentId; + auto broadcastId = request.broadcastId; + auto editKey = request.editKey; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1032,8 +1061,15 @@ 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(const PublicApi::ApiDeleteCommentVoteRequest& request) const { + auto tenantId = request.tenantId; + auto commentId = request.commentId; + auto voteId = request.voteId; + auto urlId = request.urlId; + auto broadcastId = request.broadcastId; + auto editKey = request.editKey; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1171,8 +1207,12 @@ 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(const PublicApi::ApiDeleteFeedPostPublicRequest& request) const { + auto tenantId = request.tenantId; + auto postId = request.postId; + auto broadcastId = request.broadcastId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1303,8 +1343,10 @@ pplx::task> PublicApi::deleteFeedP return localVarResult; }); } -pplx::task> PublicApi::deleteV1PageReact(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> PublicApi::deleteV1PageReact(const PublicApi::ApiDeleteV1PageReactRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1429,8 +1471,11 @@ 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(const PublicApi::ApiDeleteV2PageReactRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1558,8 +1603,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(const PublicApi::ApiFlagCommentPublicRequest& request) const { + auto tenantId = request.tenantId; + auto commentId = request.commentId; + auto isFlagged = request.isFlagged; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1691,8 +1740,12 @@ 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(const PublicApi::ApiGetCommentTextRequest& request) const { + auto tenantId = request.tenantId; + auto commentId = request.commentId; + auto editKey = request.editKey; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1823,8 +1876,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(const PublicApi::ApiGetCommentVoteUserNamesRequest& request) const { + auto tenantId = request.tenantId; + auto commentId = request.commentId; + auto dir = request.dir; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1954,8 +2011,15 @@ 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 PublicApi::ApiGetCommentsForUserRequest& request) const { + auto userId = request.userId; + auto direction = request.direction; + auto repliesToUserId = request.repliesToUserId; + auto page = request.page; + auto includei10n = request.includei10n; + auto locale = request.locale; + auto isCrawler = request.isCrawler; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2104,8 +2168,36 @@ 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(const PublicApi::ApiGetCommentsPublicRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; + auto page = request.page; + auto direction = request.direction; + auto sso = request.sso; + auto skip = request.skip; + auto skipChildren = request.skipChildren; + auto limit = request.limit; + auto limitChildren = request.limitChildren; + auto countChildren = request.countChildren; + auto fetchPageForCommentId = request.fetchPageForCommentId; + auto includeConfig = request.includeConfig; + auto countAll = request.countAll; + auto includei10n = request.includei10n; + auto locale = request.locale; + auto modules = request.modules; + auto isCrawler = request.isCrawler; + auto includeNotificationCount = request.includeNotificationCount; + auto asTree = request.asTree; + auto maxTreeDepth = request.maxTreeDepth; + auto useFullTranslationIds = request.useFullTranslationIds; + auto parentId = request.parentId; + auto searchText = request.searchText; + auto hashTags = request.hashTags; + auto userId = request.userId; + auto customConfigStr = request.customConfigStr; + auto afterCommentId = request.afterCommentId; + auto beforeCommentId = request.beforeCommentId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2334,8 +2426,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(const PublicApi::ApiGetEventLogRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; + auto userIdWS = request.userIdWS; + auto startTime = request.startTime; + auto endTime = request.endTime; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2470,8 +2567,15 @@ 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(const PublicApi::ApiGetFeedPostsPublicRequest& request) const { + auto tenantId = request.tenantId; + auto afterId = request.afterId; + auto limit = request.limit; + auto tags = request.tags; + auto sso = request.sso; + auto isCrawler = request.isCrawler; + auto includeUserInfo = request.includeUserInfo; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2617,8 +2721,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(const PublicApi::ApiGetFeedPostsStatsRequest& request) const { + auto tenantId = request.tenantId; + auto postIds = request.postIds; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2747,8 +2854,10 @@ pplx::task> PublicApi::getFeedPostsStats return localVarResult; }); } -pplx::task> PublicApi::getGifLarge(utility::string_t tenantId, utility::string_t largeInternalURLSanitized) const +pplx::task> PublicApi::getGifLarge(const PublicApi::ApiGetGifLargeRequest& request) const { + auto tenantId = request.tenantId; + auto largeInternalURLSanitized = request.largeInternalURLSanitized; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2873,8 +2982,13 @@ 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(const PublicApi::ApiGetGifsSearchRequest& request) const { + auto tenantId = request.tenantId; + auto search = request.search; + auto locale = request.locale; + auto rating = request.rating; + auto page = request.page; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3011,8 +3125,12 @@ 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(const PublicApi::ApiGetGifsTrendingRequest& request) const { + auto tenantId = request.tenantId; + auto locale = request.locale; + auto rating = request.rating; + auto page = request.page; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3146,8 +3264,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(const PublicApi::ApiGetGlobalEventLogRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; + auto userIdWS = request.userIdWS; + auto startTime = request.startTime; + auto endTime = request.endTime; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3282,8 +3405,12 @@ 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(const PublicApi::ApiGetOfflineUsersRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; + auto afterName = request.afterName; + auto afterUserId = request.afterUserId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3416,8 +3543,12 @@ 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(const PublicApi::ApiGetOnlineUsersRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; + auto afterName = request.afterName; + auto afterUserId = request.afterUserId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3550,8 +3681,14 @@ 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(const PublicApi::ApiGetPagesPublicRequest& request) const { + auto tenantId = request.tenantId; + auto cursor = request.cursor; + auto limit = request.limit; + auto q = request.q; + auto sortBy = request.sortBy; + auto hasComments = request.hasComments; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3693,8 +3830,12 @@ 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(const PublicApi::ApiGetTranslationsRequest& request) const { + auto r_namespace = request.r_namespace; + auto component = request.component; + auto locale = request.locale; + auto useFullTranslationIds = request.useFullTranslationIds; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3825,8 +3966,10 @@ pplx::task> PublicApi::getTranslations( return localVarResult; }); } -pplx::task> PublicApi::getUserNotificationCount(utility::string_t tenantId, boost::optional sso) const +pplx::task> PublicApi::getUserNotificationCount(const PublicApi::ApiGetUserNotificationCountRequest& request) const { + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3954,8 +4097,20 @@ 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(const PublicApi::ApiGetUserNotificationsRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; + auto pageSize = request.pageSize; + auto afterId = request.afterId; + auto includeContext = request.includeContext; + auto afterCreatedAt = request.afterCreatedAt; + auto unreadOnly = request.unreadOnly; + auto dmOnly = request.dmOnly; + auto noDm = request.noDm; + auto includeTranslations = request.includeTranslations; + auto includeTenantNotifications = request.includeTenantNotifications; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4123,8 +4278,11 @@ 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(const PublicApi::ApiGetUserPresenceStatusesRequest& request) const { + auto tenantId = request.tenantId; + auto urlIdWS = request.urlIdWS; + auto userIds = request.userIds; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4254,8 +4412,11 @@ 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(const PublicApi::ApiGetUserReactsPublicRequest& request) const { + auto tenantId = request.tenantId; + auto postIds = request.postIds; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4385,8 +4546,10 @@ pplx::task> PublicApi::getUserReactsPublic(u return localVarResult; }); } -pplx::task> PublicApi::getUsersInfo(utility::string_t tenantId, utility::string_t ids) const +pplx::task> PublicApi::getUsersInfo(const PublicApi::ApiGetUsersInfoRequest& request) const { + auto tenantId = request.tenantId; + auto ids = request.ids; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4511,8 +4674,10 @@ pplx::task> PublicApi::getUsersInfo(utili return localVarResult; }); } -pplx::task> PublicApi::getV1PageLikes(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> PublicApi::getV1PageLikes(const PublicApi::ApiGetV1PageLikesRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4637,8 +4802,11 @@ 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(const PublicApi::ApiGetV2PageReactUsersRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; + auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4766,8 +4934,10 @@ pplx::task> PublicApi::getV2PageRea return localVarResult; }); } -pplx::task> PublicApi::getV2PageReacts(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> PublicApi::getV2PageReacts(const PublicApi::ApiGetV2PageReactsRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4892,8 +5062,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(const PublicApi::ApiLockCommentRequest& request) const { + auto tenantId = request.tenantId; + auto commentId = request.commentId; + auto broadcastId = request.broadcastId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5023,7 +5197,7 @@ pplx::task> PublicApi::lockComment(utility::st return localVarResult; }); } -pplx::task> PublicApi::logoutPublic() const +pplx::task> PublicApi::logoutPublic(const PublicApi::ApiLogoutPublicRequest& request) const { @@ -5145,8 +5319,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(const PublicApi::ApiPinCommentRequest& request) const { + auto tenantId = request.tenantId; + auto commentId = request.commentId; + auto broadcastId = request.broadcastId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5276,8 +5454,14 @@ 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(const PublicApi::ApiReactFeedPostPublicRequest& request) const { + auto tenantId = request.tenantId; + auto postId = request.postId; + auto reactBodyParams = request.reactBodyParams; + auto isUndo = request.isUndo; + auto broadcastId = request.broadcastId; + auto sso = request.sso; // verify the required parameter 'reactBodyParams' is set if (reactBodyParams == nullptr) @@ -5435,8 +5619,10 @@ pplx::task> PublicApi::reactFeedPostPubli return localVarResult; }); } -pplx::task> PublicApi::resetUserNotificationCount(utility::string_t tenantId, boost::optional sso) const +pplx::task> PublicApi::resetUserNotificationCount(const PublicApi::ApiResetUserNotificationCountRequest& request) const { + auto tenantId = request.tenantId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5564,8 +5750,15 @@ 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(const PublicApi::ApiResetUserNotificationsRequest& request) const { + auto tenantId = request.tenantId; + auto afterId = request.afterId; + auto afterCreatedAt = request.afterCreatedAt; + auto unreadOnly = request.unreadOnly; + auto dmOnly = request.dmOnly; + auto noDm = request.noDm; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5713,8 +5906,14 @@ 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(const PublicApi::ApiSearchUsersRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; + auto usernameStartsWith = request.usernameStartsWith; + auto mentionGroupIds = request.mentionGroupIds; + auto sso = request.sso; + auto searchSection = request.searchSection; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5855,8 +6054,14 @@ 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(const PublicApi::ApiSetCommentTextRequest& request) const { + auto tenantId = request.tenantId; + auto commentId = request.commentId; + auto broadcastId = request.broadcastId; + auto commentTextUpdateRequest = request.commentTextUpdateRequest; + auto editKey = request.editKey; + auto sso = request.sso; // verify the required parameter 'commentTextUpdateRequest' is set if (commentTextUpdateRequest == nullptr) @@ -6013,8 +6218,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(const PublicApi::ApiUnBlockCommentPublicRequest& request) const { + auto tenantId = request.tenantId; + auto commentId = request.commentId; + auto publicBlockFromCommentParams = request.publicBlockFromCommentParams; + auto sso = request.sso; // verify the required parameter 'publicBlockFromCommentParams' is set if (publicBlockFromCommentParams == nullptr) @@ -6166,8 +6375,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(const PublicApi::ApiUnLockCommentRequest& request) const { + auto tenantId = request.tenantId; + auto commentId = request.commentId; + auto broadcastId = request.broadcastId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6297,8 +6510,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(const PublicApi::ApiUnPinCommentRequest& request) const { + auto tenantId = request.tenantId; + auto commentId = request.commentId; + auto broadcastId = request.broadcastId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6428,8 +6645,13 @@ 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(const PublicApi::ApiUpdateFeedPostPublicRequest& request) const { + auto tenantId = request.tenantId; + auto postId = request.postId; + auto updateFeedPostParams = request.updateFeedPostParams; + auto broadcastId = request.broadcastId; + auto sso = request.sso; // verify the required parameter 'updateFeedPostParams' is set if (updateFeedPostParams == nullptr) @@ -6583,8 +6805,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(const PublicApi::ApiUpdateUserNotificationCommentSubscriptionStatusRequest& request) const { + auto tenantId = request.tenantId; + auto notificationId = request.notificationId; + auto optedInOrOut = request.optedInOrOut; + auto commentId = request.commentId; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6717,8 +6944,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(const PublicApi::ApiUpdateUserNotificationPageSubscriptionStatusRequest& request) const { + auto tenantId = request.tenantId; + auto urlId = request.urlId; + auto url = request.url; + auto pageTitle = request.pageTitle; + auto subscribedOrUnsubscribed = request.subscribedOrUnsubscribed; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6856,8 +7089,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(const PublicApi::ApiUpdateUserNotificationStatusRequest& request) const { + auto tenantId = request.tenantId; + auto notificationId = request.notificationId; + auto newStatus = request.newStatus; + auto sso = request.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6987,8 +7224,12 @@ 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(const PublicApi::ApiUploadImageRequest& request) const { + auto tenantId = request.tenantId; + auto file = request.file; + auto sizePreset = request.sizePreset; + auto urlId = request.urlId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7122,8 +7363,15 @@ 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(const PublicApi::ApiVoteCommentRequest& request) const { + auto tenantId = request.tenantId; + auto commentId = request.commentId; + auto urlId = request.urlId; + auto broadcastId = request.broadcastId; + auto voteBodyParams = request.voteBodyParams; + auto sessionId = request.sessionId; + auto sso = request.sso; // verify the required parameter 'voteBodyParams' is set if (voteBodyParams == nullptr) diff --git a/config.json b/config.json index 18de350..d03f2b4 100644 --- a/config.json +++ b/config.json @@ -1,4 +1,5 @@ { "packageName": "FastCommentsClient", - "packageVersion": "2.0.1" + "packageVersion": "2.0.1", + "useSingleRequestParameter": true } diff --git a/docs/Apis/ModerationApi.md b/docs/Apis/ModerationApi.md index 9c47205..2c9803f 100644 --- a/docs/Apis/ModerationApi.md +++ b/docs/Apis/ModerationApi.md @@ -51,7 +51,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteModerationVote** -> VoteDeleteResponse deleteModerationVote(commentId, voteId, broadcastId, tenantId, sso) +> VoteDeleteResponse deleteModerationVote(commentId, voteId, tenantId, broadcastId, sso) @@ -61,8 +61,8 @@ All URIs are relative to *https://fastcomments.com* |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | | **voteId** | **String**| | [default to null] | -| **broadcastId** | **String**| | [optional] [default to null] | | **tenantId** | **String**| | [optional] [default to null] | +| **broadcastId** | **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(commentId, AdjustCommentVotesParams, tenantId, broadcastId, sso) @@ -705,8 +705,8 @@ No authorization required |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | | **AdjustCommentVotesParams** | [**AdjustCommentVotesParams**](../Models/AdjustCommentVotesParams.md)| | | -| **broadcastId** | **String**| | [optional] [default to null] | | **tenantId** | **String**| | [optional] [default to null] | +| **broadcastId** | **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(commentId, tenantId, broadcastId, sso) @@ -883,8 +883,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | -| **broadcastId** | **String**| | [optional] [default to null] | | **tenantId** | **String**| | [optional] [default to null] | +| **broadcastId** | **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) +> PostRemoveCommentResponse postRemoveComment(commentId, tenantId, broadcastId, sso) @@ -911,8 +911,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | -| **broadcastId** | **String**| | [optional] [default to null] | | **tenantId** | **String**| | [optional] [default to null] | +| **broadcastId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -930,7 +930,7 @@ No authorization required # **postRestoreDeletedComment** -> APIEmptyResponse postRestoreDeletedComment(commentId, broadcastId, tenantId, sso) +> APIEmptyResponse postRestoreDeletedComment(commentId, tenantId, broadcastId, sso) @@ -939,8 +939,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | -| **broadcastId** | **String**| | [optional] [default to null] | | **tenantId** | **String**| | [optional] [default to null] | +| **broadcastId** | **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(commentId, approved, tenantId, broadcastId, sso) @@ -968,8 +968,8 @@ No authorization required |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | | **approved** | **Boolean**| | [optional] [default to null] | -| **broadcastId** | **String**| | [optional] [default to null] | | **tenantId** | **String**| | [optional] [default to null] | +| **broadcastId** | **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(commentId, reviewed, tenantId, broadcastId, sso) @@ -997,8 +997,8 @@ No authorization required |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | | **reviewed** | **Boolean**| | [optional] [default to null] | -| **broadcastId** | **String**| | [optional] [default to null] | | **tenantId** | **String**| | [optional] [default to null] | +| **broadcastId** | **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(commentId, spam, permNotSpam, tenantId, broadcastId, sso) @@ -1027,8 +1027,8 @@ No authorization required | **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] | +| **broadcastId** | **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(commentId, SetCommentTextParams, tenantId, broadcastId, sso) @@ -1056,8 +1056,8 @@ No authorization required |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | | **SetCommentTextParams** | [**SetCommentTextParams**](../Models/SetCommentTextParams.md)| | | -| **broadcastId** | **String**| | [optional] [default to null] | | **tenantId** | **String**| | [optional] [default to null] | +| **broadcastId** | **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(commentId, tenantId, broadcastId, sso) @@ -1084,8 +1084,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | -| **broadcastId** | **String**| | [optional] [default to null] | | **tenantId** | **String**| | [optional] [default to null] | +| **broadcastId** | **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(commentId, direction, tenantId, broadcastId, sso) @@ -1113,8 +1113,8 @@ No authorization required |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | | **direction** | **String**| | [optional] [default to null] | -| **broadcastId** | **String**| | [optional] [default to null] | | **tenantId** | **String**| | [optional] [default to null] | +| **broadcastId** | **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(badgeId, userId, commentId, tenantId, broadcastId, sso) @@ -1143,8 +1143,8 @@ No authorization required | **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] | +| **broadcastId** | **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(badgeId, userId, commentId, tenantId, broadcastId, sso) @@ -1200,8 +1200,8 @@ No authorization required | **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] | +| **broadcastId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type diff --git a/openapi.json b/openapi.json index 0f72c9c..9ed89a9 100644 --- a/openapi.json +++ b/openapi.json @@ -14304,7 +14304,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -14312,7 +14312,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14369,7 +14369,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -14377,7 +14377,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14434,7 +14434,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -14442,7 +14442,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14499,7 +14499,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -14507,7 +14507,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14572,7 +14572,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -14580,7 +14580,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14653,7 +14653,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -14661,7 +14661,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14726,7 +14726,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -14734,7 +14734,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15094,7 +15094,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -15102,7 +15102,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15169,7 +15169,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -15177,7 +15177,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15252,7 +15252,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -15260,7 +15260,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15325,7 +15325,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -15333,7 +15333,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15626,7 +15626,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -15634,7 +15634,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15707,7 +15707,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -15715,7 +15715,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" diff --git a/tests/sso_integration_test.cpp b/tests/sso_integration_test.cpp index 28b676b..1ab23f7 100644 --- a/tests/sso_integration_test.cpp +++ b/tests/sso_integration_test.cpp @@ -57,15 +57,11 @@ TEST_F(SSOIntegrationTest, PublicAPINoSSO) { auto apiClient = std::make_shared(config); PublicApi publicApi(apiClient); - 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 - ).get(); + PublicApi::ApiGetCommentsPublicRequest getReq; + getReq.tenantId = utility::conversions::to_string_t(tenantID); + getReq.urlId = utility::conversions::to_string_t("sdk-test-page"); + + auto response = publicApi.getCommentsPublic(getReq).get(); ASSERT_NE(response, nullptr); } @@ -98,27 +94,23 @@ TEST_F(SSOIntegrationTest, PublicAPIWithSecureSSO) { commentData->setCommenterName(utility::conversions::to_string_t(user.username)); commentData->setDate(timestamp); - 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) - ).get(); + PublicApi::ApiCreateCommentPublicRequest createReq; + createReq.tenantId = utility::conversions::to_string_t(tenantID); + createReq.urlId = utility::conversions::to_string_t("sdk-test-cpp"); + createReq.broadcastId = utility::conversions::to_string_t("test-" + std::to_string(timestamp)); + createReq.commentData = commentData; + createReq.sso = utility::conversions::to_string_t(token); + + auto createResponse = publicApi.createCommentPublic(createReq).get(); ASSERT_NE(createResponse, nullptr); - 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 - ).get(); + PublicApi::ApiGetCommentsPublicRequest getReq; + getReq.tenantId = utility::conversions::to_string_t(tenantID); + getReq.urlId = utility::conversions::to_string_t("sdk-test-cpp"); + getReq.sso = utility::conversions::to_string_t(token); + + auto getResponse = publicApi.getCommentsPublic(getReq).get(); ASSERT_NE(getResponse, nullptr); } @@ -155,14 +147,14 @@ TEST_F(SSOIntegrationTest, DefaultAPIWithAPIKey) { commentData->setCommenterName(utility::conversions::to_string_t(user.username)); commentData->setDate(timestamp); - 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) - ).get(); + PublicApi::ApiCreateCommentPublicRequest createReq; + createReq.tenantId = utility::conversions::to_string_t(tenantID); + createReq.urlId = utility::conversions::to_string_t(testUrlId); + createReq.broadcastId = utility::conversions::to_string_t("test-" + std::to_string(timestamp)); + createReq.commentData = commentData; + createReq.sso = utility::conversions::to_string_t(token); + + auto createResponse = publicApi.createCommentPublic(createReq).get(); ASSERT_NE(createResponse, nullptr); std::cout << "✓ Comment created successfully" << std::endl; @@ -177,25 +169,11 @@ TEST_F(SSOIntegrationTest, DefaultAPIWithAPIKey) { auto defaultApiClient = std::make_shared(defaultConfig); DefaultApi defaultApi(defaultApiClient); - 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 - ).get(); + DefaultApi::ApiGetCommentsRequest getReq; + getReq.tenantId = utility::conversions::to_string_t(tenantID); + getReq.urlId = utility::conversions::to_string_t(testUrlId); + + auto getResponse = defaultApi.getComments(getReq).get(); ASSERT_NE(getResponse, nullptr); @@ -265,14 +243,14 @@ TEST_F(SSOIntegrationTest, PublicAPICreateAndFetch) { commentData->setCommenterName(utility::conversions::to_string_t(user.username)); commentData->setDate(timestamp); - 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) - ).get(); + PublicApi::ApiCreateCommentPublicRequest createReq; + createReq.tenantId = utility::conversions::to_string_t(tenantID); + createReq.urlId = utility::conversions::to_string_t(testUrlId); + createReq.broadcastId = utility::conversions::to_string_t("test-" + std::to_string(timestamp)); + createReq.commentData = commentData; + createReq.sso = utility::conversions::to_string_t(token); + + auto createResponse = publicApi.createCommentPublic(createReq).get(); ASSERT_NE(createResponse, nullptr); std::cout << "✓ Comment created successfully" << std::endl; @@ -280,17 +258,12 @@ 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; - 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 - ).get(); + PublicApi::ApiGetCommentsPublicRequest getReq; + getReq.tenantId = utility::conversions::to_string_t(tenantID); + getReq.urlId = utility::conversions::to_string_t(testUrlId); + getReq.sso = utility::conversions::to_string_t(token); + + auto getResponse = publicApi.getCommentsPublic(getReq).get(); ASSERT_NE(getResponse, nullptr); From 0376d46b8c709b4700fc9e5f8c3e4c251d9b6a75 Mon Sep 17 00:00:00 2001 From: winrid Date: Tue, 23 Jun 2026 00:25:46 -0700 Subject: [PATCH 2/6] Regenerate: required params + body positional, optionals in one object API methods now take required params + body positionally, with optional params in a single ApiOptions struct. Updated SSO integration test + README. --- README.md | 30 +- .../FastCommentsClient/api/DefaultApi.h | 1433 +++++++---------- .../FastCommentsClient/api/ModerationApi.h | 727 ++++----- .../FastCommentsClient/api/PublicApi.h | 877 +++++----- client/src/api/DefaultApi.cpp | 1218 +++++++------- client/src/api/ModerationApi.cpp | 559 ++++--- client/src/api/PublicApi.cpp | 703 ++++---- tests/sso_integration_test.cpp | 91 +- 8 files changed, 2841 insertions(+), 2797 deletions(-) diff --git a/README.md b/README.md index 776e4b1..6044e39 100644 --- a/README.md +++ b/README.md @@ -126,10 +126,10 @@ int main() { // Pass the moderator's SSO token to authenticate the call auto ssoToken = utility::conversions::to_string_t("YOUR_MODERATOR_SSO_TOKEN"); - org::openapitools::client::api::ModerationApi::ApiGetCountRequest request; - request.sso = ssoToken; + org::openapitools::client::api::ApiGetCountOptions options; + options.sso = ssoToken; - auto response = moderationApi.getCount(request).get(); + auto response = moderationApi.getCount(options).get(); return 0; } @@ -158,13 +158,15 @@ config->setApiKey(utility::conversions::to_string_t("api_key"), auto apiClient = std::make_shared(config); org::openapitools::client::api::DefaultApi api(apiClient); -// Build the request struct (one field per parameter) -org::openapitools::client::api::DefaultApi::ApiGetCommentsRequest request; -request.tenantId = utility::conversions::to_string_t("your-tenant-id"); -request.urlId = utility::conversions::to_string_t("your-url-id"); +// Required parameters are positional; optional ones go in the options struct +org::openapitools::client::api::ApiGetCommentsOptions options; +options.urlId = utility::conversions::to_string_t("your-url-id"); // Call .get() to block and get the result synchronously -auto response = api.getComments(request).get(); // Blocks until the HTTP request completes +auto response = api.getComments( + utility::conversions::to_string_t("your-tenant-id"), + options +).get(); // Blocks until the HTTP request completes if (response && response->comments) { std::cout << "Found " << response->comments->size() << " comments" << std::endl; @@ -184,13 +186,15 @@ config->setApiKey(utility::conversions::to_string_t("api_key"), auto apiClient = std::make_shared(config); org::openapitools::client::api::DefaultApi api(apiClient); -// Build the request struct (one field per parameter) -org::openapitools::client::api::DefaultApi::ApiGetCommentsRequest request; -request.tenantId = utility::conversions::to_string_t("your-tenant-id"); -request.urlId = utility::conversions::to_string_t("your-url-id"); +// Required parameters are positional; optional ones go in the options struct +org::openapitools::client::api::ApiGetCommentsOptions options; +options.urlId = utility::conversions::to_string_t("your-url-id"); // Use .then() for asynchronous callback-based execution -api.getComments(request).then([](std::shared_ptr response) { +api.getComments( + utility::conversions::to_string_t("your-tenant-id"), + options +).then([](std::shared_ptr response) { // This runs asynchronously when the request completes if (response && response->comments) { std::cout << "Found " << response->comments->size() << " comments" << std::endl; diff --git a/client/include/FastCommentsClient/api/DefaultApi.h b/client/include/FastCommentsClient/api/DefaultApi.h index 410c124..2a5a986 100644 --- a/client/include/FastCommentsClient/api/DefaultApi.h +++ b/client/include/FastCommentsClient/api/DefaultApi.h @@ -167,6 +167,324 @@ namespace api { using namespace org::openapitools::client::model; +struct ApiAddHashTagOptions +{ + boost::optional tenantId; +}; +struct ApiAddHashTagsBulkOptions +{ + boost::optional tenantId; +}; +struct ApiAggregateOptions +{ + boost::optional parentTenantId; + boost::optional includeStats; +}; +struct ApiAggregateQuestionResultsOptions +{ + boost::optional questionId; + boost::optional> questionIds; + boost::optional urlId; + boost::optional> timeBucket; + boost::optional startDate; + boost::optional forceRecalculate; +}; +struct ApiBlockUserFromCommentOptions +{ + boost::optional userId; + boost::optional anonUserId; +}; +struct ApiBulkAggregateQuestionResultsOptions +{ + boost::optional forceRecalculate; +}; +struct ApiCombineCommentsWithQuestionResultsOptions +{ + 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 ApiCreateFeedPostOptions +{ + boost::optional broadcastId; + boost::optional isLive; + boost::optional doSpamCheck; + boost::optional skipDupCheck; +}; +struct ApiCreateVoteOptions +{ + boost::optional userId; + boost::optional anonUserId; +}; +struct ApiDeleteCommentOptions +{ + boost::optional contextUserId; + boost::optional isLive; +}; +struct ApiDeleteHashTagOptions +{ + boost::optional tenantId; +}; +struct ApiDeleteModeratorOptions +{ + boost::optional sendEmail; +}; +struct ApiDeleteSSOUserOptions +{ + boost::optional deleteComments; + boost::optional commentDeleteMode; +}; +struct ApiDeleteSubscriptionOptions +{ + boost::optional userId; +}; +struct ApiDeleteTenantOptions +{ + boost::optional sure; +}; +struct ApiDeleteTenantUserOptions +{ + boost::optional deleteComments; + boost::optional commentDeleteMode; +}; +struct ApiDeleteVoteOptions +{ + boost::optional editKey; +}; +struct ApiFlagCommentOptions +{ + boost::optional userId; + boost::optional anonUserId; +}; +struct ApiGetAuditLogsOptions +{ + boost::optional limit; + boost::optional skip; + boost::optional> order; + boost::optional after; + boost::optional before; +}; +struct ApiGetCommentsOptions +{ + 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 ApiGetEmailTemplateRenderErrorsOptions +{ + boost::optional skip; +}; +struct ApiGetEmailTemplatesOptions +{ + boost::optional skip; +}; +struct ApiGetFeedPostsOptions +{ + boost::optional afterId; + boost::optional limit; + boost::optional> tags; +}; +struct ApiGetHashTagsOptions +{ + boost::optional page; +}; +struct ApiGetModeratorsOptions +{ + boost::optional skip; +}; +struct ApiGetNotificationCountOptions +{ + boost::optional userId; + boost::optional urlId; + boost::optional fromCommentId; + boost::optional viewed; + boost::optional type; +}; +struct ApiGetNotificationsOptions +{ + boost::optional userId; + boost::optional urlId; + boost::optional fromCommentId; + boost::optional viewed; + boost::optional type; + boost::optional skip; +}; +struct ApiGetPendingWebhookEventCountOptions +{ + boost::optional commentId; + boost::optional externalId; + boost::optional eventType; + boost::optional type; + boost::optional domain; + boost::optional attemptCountGT; +}; +struct ApiGetPendingWebhookEventsOptions +{ + boost::optional commentId; + boost::optional externalId; + boost::optional eventType; + boost::optional type; + boost::optional domain; + boost::optional attemptCountGT; + boost::optional skip; +}; +struct ApiGetQuestionConfigsOptions +{ + boost::optional skip; +}; +struct ApiGetQuestionResultsOptions +{ + boost::optional urlId; + boost::optional userId; + boost::optional startDate; + boost::optional questionId; + boost::optional questionIds; + boost::optional skip; +}; +struct ApiGetSSOUsersOptions +{ + boost::optional skip; +}; +struct ApiGetSubscriptionsOptions +{ + boost::optional userId; +}; +struct ApiGetTenantDailyUsagesOptions +{ + boost::optional yearNumber; + boost::optional monthNumber; + boost::optional dayNumber; + boost::optional skip; +}; +struct ApiGetTenantPackagesOptions +{ + boost::optional skip; +}; +struct ApiGetTenantUsersOptions +{ + boost::optional skip; +}; +struct ApiGetTenantsOptions +{ + boost::optional meta; + boost::optional skip; +}; +struct ApiGetTicketOptions +{ + boost::optional userId; +}; +struct ApiGetTicketsOptions +{ + boost::optional userId; + boost::optional state; + boost::optional skip; + boost::optional limit; +}; +struct ApiGetUserBadgeProgressListOptions +{ + boost::optional userId; + boost::optional limit; + boost::optional skip; +}; +struct ApiGetUserBadgesOptions +{ + boost::optional userId; + boost::optional badgeId; + boost::optional type; + boost::optional displayedOnComments; + boost::optional limit; + boost::optional skip; +}; +struct ApiGetVotesForUserOptions +{ + boost::optional userId; + boost::optional anonUserId; +}; +struct ApiPatchHashTagOptions +{ + boost::optional tenantId; +}; +struct ApiPatchSSOUserOptions +{ + boost::optional updateComments; +}; +struct ApiPutSSOUserOptions +{ + boost::optional updateComments; +}; +struct ApiRenderEmailTemplateOptions +{ + boost::optional locale; +}; +struct ApiReplaceTenantUserOptions +{ + boost::optional updateComments; +}; +struct ApiSaveCommentOptions +{ + boost::optional isLive; + boost::optional doSpamCheck; + boost::optional sendEmails; + boost::optional populateNotifications; +}; +struct ApiSaveCommentsBulkOptions +{ + boost::optional isLive; + boost::optional doSpamCheck; + boost::optional sendEmails; + boost::optional populateNotifications; +}; +struct ApiSendLoginLinkOptions +{ + boost::optional redirectURL; +}; +struct ApiUnBlockUserFromCommentOptions +{ + boost::optional userId; + boost::optional anonUserId; +}; +struct ApiUnFlagCommentOptions +{ + boost::optional userId; + boost::optional anonUserId; +}; +struct ApiUpdateCommentOptions +{ + boost::optional contextUserId; + boost::optional doSpamCheck; + boost::optional isLive; +}; +struct ApiUpdateNotificationOptions +{ + boost::optional userId; +}; +struct ApiUpdateSubscriptionOptions +{ + boost::optional userId; +}; +struct ApiUpdateTenantUserOptions +{ + boost::optional updateComments; +}; + class DefaultApi @@ -185,13 +503,9 @@ class DefaultApi /// /// /// - struct ApiAddDomainConfigRequest - { - utility::string_t tenantId; - std::shared_ptr addDomainConfigParams; - }; pplx::task> addDomainConfig( - const ApiAddDomainConfigRequest& request + utility::string_t tenantId, + std::shared_ptr addDomainConfigParams ) const; /// /// @@ -201,13 +515,9 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) - struct ApiAddHashTagRequest - { - boost::optional tenantId; - boost::optional> createHashTagBody; - }; pplx::task> addHashTag( - const ApiAddHashTagRequest& request + std::shared_ptr createHashTagBody + , const ApiAddHashTagOptions& options = {} ) const; /// /// @@ -217,13 +527,9 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) - struct ApiAddHashTagsBulkRequest - { - boost::optional tenantId; - boost::optional> bulkCreateHashTagsBody; - }; pplx::task> addHashTagsBulk( - const ApiAddHashTagsBulkRequest& request + std::shared_ptr bulkCreateHashTagsBody + , const ApiAddHashTagsBulkOptions& options = {} ) const; /// /// @@ -233,13 +539,9 @@ class DefaultApi /// /// /// - struct ApiAddPageRequest - { - utility::string_t tenantId; - std::shared_ptr createAPIPageData; - }; pplx::task> addPage( - const ApiAddPageRequest& request + utility::string_t tenantId, + std::shared_ptr createAPIPageData ) const; /// /// @@ -249,13 +551,9 @@ class DefaultApi /// /// /// - struct ApiAddSSOUserRequest - { - utility::string_t tenantId; - std::shared_ptr createAPISSOUserData; - }; pplx::task> addSSOUser( - const ApiAddSSOUserRequest& request + utility::string_t tenantId, + std::shared_ptr createAPISSOUserData ) const; /// /// @@ -267,15 +565,10 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) - struct ApiAggregateRequest - { - utility::string_t tenantId; - std::shared_ptr aggregationRequest; - boost::optional parentTenantId; - boost::optional includeStats; - }; pplx::task> aggregate( - const ApiAggregateRequest& request + utility::string_t tenantId, + std::shared_ptr aggregationRequest + , const ApiAggregateOptions& options = {} ) const; /// /// @@ -290,18 +583,9 @@ class DefaultApi /// (optional, default to new AggregateTimeBucket()) /// (optional, default to utility::datetime()) /// (optional, default to false) - struct ApiAggregateQuestionResultsRequest - { - utility::string_t tenantId; - boost::optional questionId; - boost::optional> questionIds; - boost::optional urlId; - boost::optional> timeBucket; - boost::optional startDate; - boost::optional forceRecalculate; - }; pplx::task> aggregateQuestionResults( - const ApiAggregateQuestionResultsRequest& request + utility::string_t tenantId + , const ApiAggregateQuestionResultsOptions& options = {} ) const; /// /// @@ -314,16 +598,11 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiBlockUserFromCommentRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr blockFromCommentParams; - boost::optional userId; - boost::optional anonUserId; - }; pplx::task> blockUserFromComment( - const ApiBlockUserFromCommentRequest& request + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr blockFromCommentParams + , const ApiBlockUserFromCommentOptions& options = {} ) const; /// /// @@ -334,14 +613,10 @@ class DefaultApi /// /// /// (optional, default to false) - struct ApiBulkAggregateQuestionResultsRequest - { - utility::string_t tenantId; - std::shared_ptr bulkAggregateQuestionResultsRequest; - boost::optional forceRecalculate; - }; pplx::task> bulkAggregateQuestionResults( - const ApiBulkAggregateQuestionResultsRequest& request + utility::string_t tenantId, + std::shared_ptr bulkAggregateQuestionResultsRequest + , const ApiBulkAggregateQuestionResultsOptions& options = {} ) const; /// /// @@ -353,15 +628,11 @@ class DefaultApi /// /// /// - struct ApiChangeTicketStateRequest - { - utility::string_t tenantId; - utility::string_t userId; - utility::string_t id; - std::shared_ptr changeTicketStateBody; - }; pplx::task> changeTicketState( - const ApiChangeTicketStateRequest& request + utility::string_t tenantId, + utility::string_t userId, + utility::string_t id, + std::shared_ptr changeTicketStateBody ) const; /// /// @@ -378,20 +649,9 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) /// (optional, default to 0.0) - struct ApiCombineCommentsWithQuestionResultsRequest - { - 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; - }; pplx::task> combineCommentsWithQuestionResults( - const ApiCombineCommentsWithQuestionResultsRequest& request + utility::string_t tenantId + , const ApiCombineCommentsWithQuestionResultsOptions& options = {} ) const; /// /// @@ -401,13 +661,9 @@ class DefaultApi /// /// /// - struct ApiCreateEmailTemplateRequest - { - utility::string_t tenantId; - std::shared_ptr createEmailTemplateBody; - }; pplx::task> createEmailTemplate( - const ApiCreateEmailTemplateRequest& request + utility::string_t tenantId, + std::shared_ptr createEmailTemplateBody ) const; /// /// @@ -421,17 +677,10 @@ class DefaultApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to false) - struct ApiCreateFeedPostRequest - { - utility::string_t tenantId; - std::shared_ptr createFeedPostParams; - boost::optional broadcastId; - boost::optional isLive; - boost::optional doSpamCheck; - boost::optional skipDupCheck; - }; pplx::task> createFeedPost( - const ApiCreateFeedPostRequest& request + utility::string_t tenantId, + std::shared_ptr createFeedPostParams + , const ApiCreateFeedPostOptions& options = {} ) const; /// /// @@ -441,13 +690,9 @@ class DefaultApi /// /// /// - struct ApiCreateModeratorRequest - { - utility::string_t tenantId; - std::shared_ptr createModeratorBody; - }; pplx::task> createModerator( - const ApiCreateModeratorRequest& request + utility::string_t tenantId, + std::shared_ptr createModeratorBody ) const; /// /// @@ -457,13 +702,9 @@ class DefaultApi /// /// /// - struct ApiCreateQuestionConfigRequest - { - utility::string_t tenantId; - std::shared_ptr createQuestionConfigBody; - }; pplx::task> createQuestionConfig( - const ApiCreateQuestionConfigRequest& request + utility::string_t tenantId, + std::shared_ptr createQuestionConfigBody ) const; /// /// @@ -473,13 +714,9 @@ class DefaultApi /// /// /// - struct ApiCreateQuestionResultRequest - { - utility::string_t tenantId; - std::shared_ptr createQuestionResultBody; - }; pplx::task> createQuestionResult( - const ApiCreateQuestionResultRequest& request + utility::string_t tenantId, + std::shared_ptr createQuestionResultBody ) const; /// /// @@ -489,13 +726,9 @@ class DefaultApi /// /// /// - struct ApiCreateSubscriptionRequest - { - utility::string_t tenantId; - std::shared_ptr createAPIUserSubscriptionData; - }; pplx::task> createSubscription( - const ApiCreateSubscriptionRequest& request + utility::string_t tenantId, + std::shared_ptr createAPIUserSubscriptionData ) const; /// /// @@ -505,13 +738,9 @@ class DefaultApi /// /// /// - struct ApiCreateTenantRequest - { - utility::string_t tenantId; - std::shared_ptr createTenantBody; - }; pplx::task> createTenant( - const ApiCreateTenantRequest& request + utility::string_t tenantId, + std::shared_ptr createTenantBody ) const; /// /// @@ -521,13 +750,9 @@ class DefaultApi /// /// /// - struct ApiCreateTenantPackageRequest - { - utility::string_t tenantId; - std::shared_ptr createTenantPackageBody; - }; pplx::task> createTenantPackage( - const ApiCreateTenantPackageRequest& request + utility::string_t tenantId, + std::shared_ptr createTenantPackageBody ) const; /// /// @@ -537,13 +762,9 @@ class DefaultApi /// /// /// - struct ApiCreateTenantUserRequest - { - utility::string_t tenantId; - std::shared_ptr createTenantUserBody; - }; pplx::task> createTenantUser( - const ApiCreateTenantUserRequest& request + utility::string_t tenantId, + std::shared_ptr createTenantUserBody ) const; /// /// @@ -554,14 +775,10 @@ class DefaultApi /// /// /// - struct ApiCreateTicketRequest - { - utility::string_t tenantId; - utility::string_t userId; - std::shared_ptr createTicketBody; - }; pplx::task> createTicket( - const ApiCreateTicketRequest& request + utility::string_t tenantId, + utility::string_t userId, + std::shared_ptr createTicketBody ) const; /// /// @@ -571,13 +788,9 @@ class DefaultApi /// /// /// - struct ApiCreateUserBadgeRequest - { - utility::string_t tenantId; - std::shared_ptr createUserBadgeParams; - }; pplx::task> createUserBadge( - const ApiCreateUserBadgeRequest& request + utility::string_t tenantId, + std::shared_ptr createUserBadgeParams ) const; /// /// @@ -590,16 +803,11 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiCreateVoteRequest - { - utility::string_t tenantId; - utility::string_t commentId; - utility::string_t direction; - boost::optional userId; - boost::optional anonUserId; - }; pplx::task> createVote( - const ApiCreateVoteRequest& request + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t direction + , const ApiCreateVoteOptions& options = {} ) const; /// /// @@ -611,15 +819,10 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) - struct ApiDeleteCommentRequest - { - utility::string_t tenantId; - utility::string_t id; - boost::optional contextUserId; - boost::optional isLive; - }; pplx::task> deleteComment( - const ApiDeleteCommentRequest& request + utility::string_t tenantId, + utility::string_t id + , const ApiDeleteCommentOptions& options = {} ) const; /// /// @@ -629,13 +832,9 @@ class DefaultApi /// /// /// - struct ApiDeleteDomainConfigRequest - { - utility::string_t tenantId; - utility::string_t domain; - }; pplx::task> deleteDomainConfig( - const ApiDeleteDomainConfigRequest& request + utility::string_t tenantId, + utility::string_t domain ) const; /// /// @@ -645,13 +844,9 @@ class DefaultApi /// /// /// - struct ApiDeleteEmailTemplateRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> deleteEmailTemplate( - const ApiDeleteEmailTemplateRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -662,14 +857,10 @@ class DefaultApi /// /// /// - struct ApiDeleteEmailTemplateRenderErrorRequest - { - utility::string_t tenantId; - utility::string_t id; - utility::string_t errorId; - }; pplx::task> deleteEmailTemplateRenderError( - const ApiDeleteEmailTemplateRenderErrorRequest& request + utility::string_t tenantId, + utility::string_t id, + utility::string_t errorId ) const; /// /// @@ -680,14 +871,10 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) - struct ApiDeleteHashTagRequest - { - utility::string_t tag; - boost::optional tenantId; - boost::optional> deleteHashTagRequestBody; - }; pplx::task> deleteHashTag( - const ApiDeleteHashTagRequest& request + utility::string_t tag, + std::shared_ptr deleteHashTagRequestBody + , const ApiDeleteHashTagOptions& options = {} ) const; /// /// @@ -698,14 +885,10 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiDeleteModeratorRequest - { - utility::string_t tenantId; - utility::string_t id; - boost::optional sendEmail; - }; pplx::task> deleteModerator( - const ApiDeleteModeratorRequest& request + utility::string_t tenantId, + utility::string_t id + , const ApiDeleteModeratorOptions& options = {} ) const; /// /// @@ -715,13 +898,9 @@ class DefaultApi /// /// /// - struct ApiDeleteNotificationCountRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> deleteNotificationCount( - const ApiDeleteNotificationCountRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -731,13 +910,9 @@ class DefaultApi /// /// /// - struct ApiDeletePageRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> deletePage( - const ApiDeletePageRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -747,13 +922,9 @@ class DefaultApi /// /// /// - struct ApiDeletePendingWebhookEventRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> deletePendingWebhookEvent( - const ApiDeletePendingWebhookEventRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -763,13 +934,9 @@ class DefaultApi /// /// /// - struct ApiDeleteQuestionConfigRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> deleteQuestionConfig( - const ApiDeleteQuestionConfigRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -779,13 +946,9 @@ class DefaultApi /// /// /// - struct ApiDeleteQuestionResultRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> deleteQuestionResult( - const ApiDeleteQuestionResultRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -797,15 +960,10 @@ class DefaultApi /// /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiDeleteSSOUserRequest - { - utility::string_t tenantId; - utility::string_t id; - boost::optional deleteComments; - boost::optional commentDeleteMode; - }; pplx::task> deleteSSOUser( - const ApiDeleteSSOUserRequest& request + utility::string_t tenantId, + utility::string_t id + , const ApiDeleteSSOUserOptions& options = {} ) const; /// /// @@ -816,14 +974,10 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiDeleteSubscriptionRequest - { - utility::string_t tenantId; - utility::string_t id; - boost::optional userId; - }; pplx::task> deleteSubscription( - const ApiDeleteSubscriptionRequest& request + utility::string_t tenantId, + utility::string_t id + , const ApiDeleteSubscriptionOptions& options = {} ) const; /// /// @@ -834,14 +988,10 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiDeleteTenantRequest - { - utility::string_t tenantId; - utility::string_t id; - boost::optional sure; - }; pplx::task> deleteTenant( - const ApiDeleteTenantRequest& request + utility::string_t tenantId, + utility::string_t id + , const ApiDeleteTenantOptions& options = {} ) const; /// /// @@ -851,13 +1001,9 @@ class DefaultApi /// /// /// - struct ApiDeleteTenantPackageRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> deleteTenantPackage( - const ApiDeleteTenantPackageRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -869,15 +1015,10 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiDeleteTenantUserRequest - { - utility::string_t tenantId; - utility::string_t id; - boost::optional deleteComments; - boost::optional commentDeleteMode; - }; pplx::task> deleteTenantUser( - const ApiDeleteTenantUserRequest& request + utility::string_t tenantId, + utility::string_t id + , const ApiDeleteTenantUserOptions& options = {} ) const; /// /// @@ -887,13 +1028,9 @@ class DefaultApi /// /// /// - struct ApiDeleteUserBadgeRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> deleteUserBadge( - const ApiDeleteUserBadgeRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -904,14 +1041,10 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiDeleteVoteRequest - { - utility::string_t tenantId; - utility::string_t id; - boost::optional editKey; - }; pplx::task> deleteVote( - const ApiDeleteVoteRequest& request + utility::string_t tenantId, + utility::string_t id + , const ApiDeleteVoteOptions& options = {} ) const; /// /// @@ -923,15 +1056,10 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiFlagCommentRequest - { - utility::string_t tenantId; - utility::string_t id; - boost::optional userId; - boost::optional anonUserId; - }; pplx::task> flagComment( - const ApiFlagCommentRequest& request + utility::string_t tenantId, + utility::string_t id + , const ApiFlagCommentOptions& options = {} ) const; /// /// @@ -945,17 +1073,9 @@ class DefaultApi /// (optional, default to new SORT_DIR()) /// (optional, default to 0.0) /// (optional, default to 0.0) - struct ApiGetAuditLogsRequest - { - utility::string_t tenantId; - boost::optional limit; - boost::optional skip; - boost::optional> order; - boost::optional after; - boost::optional before; - }; pplx::task> getAuditLogs( - const ApiGetAuditLogsRequest& request + utility::string_t tenantId + , const ApiGetAuditLogsOptions& options = {} ) const; /// /// @@ -965,13 +1085,9 @@ class DefaultApi /// /// /// - struct ApiGetCachedNotificationCountRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> getCachedNotificationCount( - const ApiGetCachedNotificationCountRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -981,13 +1097,9 @@ class DefaultApi /// /// /// - struct ApiGetCommentRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> getComment( - const ApiGetCommentRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -1012,28 +1124,9 @@ class DefaultApi /// (optional, default to new SortDirections()) /// (optional, default to 0L) /// (optional, default to 0L) - struct ApiGetCommentsRequest - { - 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; - }; pplx::task> getComments( - const ApiGetCommentsRequest& request + utility::string_t tenantId + , const ApiGetCommentsOptions& options = {} ) const; /// /// @@ -1043,13 +1136,9 @@ class DefaultApi /// /// /// - struct ApiGetDomainConfigRequest - { - utility::string_t tenantId; - utility::string_t domain; - }; pplx::task> getDomainConfig( - const ApiGetDomainConfigRequest& request + utility::string_t tenantId, + utility::string_t domain ) const; /// /// @@ -1058,12 +1147,8 @@ class DefaultApi /// /// /// - struct ApiGetDomainConfigsRequest - { - utility::string_t tenantId; - }; pplx::task> getDomainConfigs( - const ApiGetDomainConfigsRequest& request + utility::string_t tenantId ) const; /// /// @@ -1073,13 +1158,9 @@ class DefaultApi /// /// /// - struct ApiGetEmailTemplateRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> getEmailTemplate( - const ApiGetEmailTemplateRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -1088,12 +1169,8 @@ class DefaultApi /// /// /// - struct ApiGetEmailTemplateDefinitionsRequest - { - utility::string_t tenantId; - }; pplx::task> getEmailTemplateDefinitions( - const ApiGetEmailTemplateDefinitionsRequest& request + utility::string_t tenantId ) const; /// /// @@ -1104,14 +1181,10 @@ class DefaultApi /// /// /// (optional, default to 0.0) - struct ApiGetEmailTemplateRenderErrorsRequest - { - utility::string_t tenantId; - utility::string_t id; - boost::optional skip; - }; pplx::task> getEmailTemplateRenderErrors( - const ApiGetEmailTemplateRenderErrorsRequest& request + utility::string_t tenantId, + utility::string_t id + , const ApiGetEmailTemplateRenderErrorsOptions& options = {} ) const; /// /// @@ -1121,13 +1194,9 @@ class DefaultApi /// /// /// (optional, default to 0.0) - struct ApiGetEmailTemplatesRequest - { - utility::string_t tenantId; - boost::optional skip; - }; pplx::task> getEmailTemplates( - const ApiGetEmailTemplatesRequest& request + utility::string_t tenantId + , const ApiGetEmailTemplatesOptions& options = {} ) const; /// /// @@ -1139,15 +1208,9 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0) /// (optional, default to std::vector<std::shared_ptr<utility::string_t>>()) - struct ApiGetFeedPostsRequest - { - utility::string_t tenantId; - boost::optional afterId; - boost::optional limit; - boost::optional> tags; - }; pplx::task> getFeedPosts( - const ApiGetFeedPostsRequest& request + utility::string_t tenantId + , const ApiGetFeedPostsOptions& options = {} ) const; /// /// @@ -1157,13 +1220,9 @@ class DefaultApi /// /// /// (optional, default to 0.0) - struct ApiGetHashTagsRequest - { - utility::string_t tenantId; - boost::optional page; - }; pplx::task> getHashTags( - const ApiGetHashTagsRequest& request + utility::string_t tenantId + , const ApiGetHashTagsOptions& options = {} ) const; /// /// @@ -1173,13 +1232,9 @@ class DefaultApi /// /// /// - struct ApiGetModeratorRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> getModerator( - const ApiGetModeratorRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -1189,13 +1244,9 @@ class DefaultApi /// /// /// (optional, default to 0.0) - struct ApiGetModeratorsRequest - { - utility::string_t tenantId; - boost::optional skip; - }; pplx::task> getModerators( - const ApiGetModeratorsRequest& request + utility::string_t tenantId + , const ApiGetModeratorsOptions& options = {} ) const; /// /// @@ -1209,17 +1260,9 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetNotificationCountRequest - { - utility::string_t tenantId; - boost::optional userId; - boost::optional urlId; - boost::optional fromCommentId; - boost::optional viewed; - boost::optional type; - }; pplx::task> getNotificationCount( - const ApiGetNotificationCountRequest& request + utility::string_t tenantId + , const ApiGetNotificationCountOptions& options = {} ) const; /// /// @@ -1234,18 +1277,9 @@ class DefaultApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) - struct ApiGetNotificationsRequest - { - utility::string_t tenantId; - boost::optional userId; - boost::optional urlId; - boost::optional fromCommentId; - boost::optional viewed; - boost::optional type; - boost::optional skip; - }; pplx::task> getNotifications( - const ApiGetNotificationsRequest& request + utility::string_t tenantId + , const ApiGetNotificationsOptions& options = {} ) const; /// /// @@ -1255,13 +1289,9 @@ class DefaultApi /// /// /// - struct ApiGetPageByURLIdRequest - { - utility::string_t tenantId; - utility::string_t urlId; - }; pplx::task> getPageByURLId( - const ApiGetPageByURLIdRequest& request + utility::string_t tenantId, + utility::string_t urlId ) const; /// /// @@ -1270,12 +1300,8 @@ class DefaultApi /// /// /// - struct ApiGetPagesRequest - { - utility::string_t tenantId; - }; pplx::task> getPages( - const ApiGetPagesRequest& request + utility::string_t tenantId ) const; /// /// @@ -1290,18 +1316,9 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) - struct ApiGetPendingWebhookEventCountRequest - { - utility::string_t tenantId; - boost::optional commentId; - boost::optional externalId; - boost::optional eventType; - boost::optional type; - boost::optional domain; - boost::optional attemptCountGT; - }; pplx::task> getPendingWebhookEventCount( - const ApiGetPendingWebhookEventCountRequest& request + utility::string_t tenantId + , const ApiGetPendingWebhookEventCountOptions& options = {} ) const; /// /// @@ -1317,19 +1334,9 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) /// (optional, default to 0.0) - struct ApiGetPendingWebhookEventsRequest - { - 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; - }; pplx::task> getPendingWebhookEvents( - const ApiGetPendingWebhookEventsRequest& request + utility::string_t tenantId + , const ApiGetPendingWebhookEventsOptions& options = {} ) const; /// /// @@ -1339,13 +1346,9 @@ class DefaultApi /// /// /// - struct ApiGetQuestionConfigRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> getQuestionConfig( - const ApiGetQuestionConfigRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -1355,13 +1358,9 @@ class DefaultApi /// /// /// (optional, default to 0.0) - struct ApiGetQuestionConfigsRequest - { - utility::string_t tenantId; - boost::optional skip; - }; pplx::task> getQuestionConfigs( - const ApiGetQuestionConfigsRequest& request + utility::string_t tenantId + , const ApiGetQuestionConfigsOptions& options = {} ) const; /// /// @@ -1371,13 +1370,9 @@ class DefaultApi /// /// /// - struct ApiGetQuestionResultRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> getQuestionResult( - const ApiGetQuestionResultRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -1392,18 +1387,9 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) - struct ApiGetQuestionResultsRequest - { - utility::string_t tenantId; - boost::optional urlId; - boost::optional userId; - boost::optional startDate; - boost::optional questionId; - boost::optional questionIds; - boost::optional skip; - }; pplx::task> getQuestionResults( - const ApiGetQuestionResultsRequest& request + utility::string_t tenantId + , const ApiGetQuestionResultsOptions& options = {} ) const; /// /// @@ -1413,13 +1399,9 @@ class DefaultApi /// /// /// - struct ApiGetSSOUserByEmailRequest - { - utility::string_t tenantId; - utility::string_t email; - }; pplx::task> getSSOUserByEmail( - const ApiGetSSOUserByEmailRequest& request + utility::string_t tenantId, + utility::string_t email ) const; /// /// @@ -1429,13 +1411,9 @@ class DefaultApi /// /// /// - struct ApiGetSSOUserByIdRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> getSSOUserById( - const ApiGetSSOUserByIdRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -1445,13 +1423,9 @@ class DefaultApi /// /// /// (optional, default to 0) - struct ApiGetSSOUsersRequest - { - utility::string_t tenantId; - boost::optional skip; - }; pplx::task> getSSOUsers( - const ApiGetSSOUsersRequest& request + utility::string_t tenantId + , const ApiGetSSOUsersOptions& options = {} ) const; /// /// @@ -1461,13 +1435,9 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetSubscriptionsRequest - { - utility::string_t tenantId; - boost::optional userId; - }; pplx::task> getSubscriptions( - const ApiGetSubscriptionsRequest& request + utility::string_t tenantId + , const ApiGetSubscriptionsOptions& options = {} ) const; /// /// @@ -1477,13 +1447,9 @@ class DefaultApi /// /// /// - struct ApiGetTenantRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> getTenant( - const ApiGetTenantRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -1496,16 +1462,9 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) /// (optional, default to 0.0) - struct ApiGetTenantDailyUsagesRequest - { - utility::string_t tenantId; - boost::optional yearNumber; - boost::optional monthNumber; - boost::optional dayNumber; - boost::optional skip; - }; pplx::task> getTenantDailyUsages( - const ApiGetTenantDailyUsagesRequest& request + utility::string_t tenantId + , const ApiGetTenantDailyUsagesOptions& options = {} ) const; /// /// @@ -1515,13 +1474,9 @@ class DefaultApi /// /// /// - struct ApiGetTenantPackageRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> getTenantPackage( - const ApiGetTenantPackageRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -1531,13 +1486,9 @@ class DefaultApi /// /// /// (optional, default to 0.0) - struct ApiGetTenantPackagesRequest - { - utility::string_t tenantId; - boost::optional skip; - }; pplx::task> getTenantPackages( - const ApiGetTenantPackagesRequest& request + utility::string_t tenantId + , const ApiGetTenantPackagesOptions& options = {} ) const; /// /// @@ -1547,13 +1498,9 @@ class DefaultApi /// /// /// - struct ApiGetTenantUserRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> getTenantUser( - const ApiGetTenantUserRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -1563,13 +1510,9 @@ class DefaultApi /// /// /// (optional, default to 0.0) - struct ApiGetTenantUsersRequest - { - utility::string_t tenantId; - boost::optional skip; - }; pplx::task> getTenantUsers( - const ApiGetTenantUsersRequest& request + utility::string_t tenantId + , const ApiGetTenantUsersOptions& options = {} ) const; /// /// @@ -1580,14 +1523,9 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) - struct ApiGetTenantsRequest - { - utility::string_t tenantId; - boost::optional meta; - boost::optional skip; - }; pplx::task> getTenants( - const ApiGetTenantsRequest& request + utility::string_t tenantId + , const ApiGetTenantsOptions& options = {} ) const; /// /// @@ -1598,14 +1536,10 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetTicketRequest - { - utility::string_t tenantId; - utility::string_t id; - boost::optional userId; - }; pplx::task> getTicket( - const ApiGetTicketRequest& request + utility::string_t tenantId, + utility::string_t id + , const ApiGetTicketOptions& options = {} ) const; /// /// @@ -1618,16 +1552,9 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) /// (optional, default to 0.0) - struct ApiGetTicketsRequest - { - utility::string_t tenantId; - boost::optional userId; - boost::optional state; - boost::optional skip; - boost::optional limit; - }; pplx::task> getTickets( - const ApiGetTicketsRequest& request + utility::string_t tenantId + , const ApiGetTicketsOptions& options = {} ) const; /// /// @@ -1637,13 +1564,9 @@ class DefaultApi /// /// /// - struct ApiGetUserRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> getUser( - const ApiGetUserRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -1653,13 +1576,9 @@ class DefaultApi /// /// /// - struct ApiGetUserBadgeRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> getUserBadge( - const ApiGetUserBadgeRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -1669,13 +1588,9 @@ class DefaultApi /// /// /// - struct ApiGetUserBadgeProgressByIdRequest - { - utility::string_t tenantId; - utility::string_t id; - }; pplx::task> getUserBadgeProgressById( - const ApiGetUserBadgeProgressByIdRequest& request + utility::string_t tenantId, + utility::string_t id ) const; /// /// @@ -1685,13 +1600,9 @@ class DefaultApi /// /// /// - struct ApiGetUserBadgeProgressByUserIdRequest - { - utility::string_t tenantId; - utility::string_t userId; - }; pplx::task> getUserBadgeProgressByUserId( - const ApiGetUserBadgeProgressByUserIdRequest& request + utility::string_t tenantId, + utility::string_t userId ) const; /// /// @@ -1703,15 +1614,9 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) /// (optional, default to 0.0) - struct ApiGetUserBadgeProgressListRequest - { - utility::string_t tenantId; - boost::optional userId; - boost::optional limit; - boost::optional skip; - }; pplx::task> getUserBadgeProgressList( - const ApiGetUserBadgeProgressListRequest& request + utility::string_t tenantId + , const ApiGetUserBadgeProgressListOptions& options = {} ) const; /// /// @@ -1726,18 +1631,9 @@ class DefaultApi /// (optional, default to false) /// (optional, default to 0.0) /// (optional, default to 0.0) - struct ApiGetUserBadgesRequest - { - utility::string_t tenantId; - boost::optional userId; - boost::optional badgeId; - boost::optional type; - boost::optional displayedOnComments; - boost::optional limit; - boost::optional skip; - }; pplx::task> getUserBadges( - const ApiGetUserBadgesRequest& request + utility::string_t tenantId + , const ApiGetUserBadgesOptions& options = {} ) const; /// /// @@ -1747,13 +1643,9 @@ class DefaultApi /// /// /// - struct ApiGetVotesRequest - { - utility::string_t tenantId; - utility::string_t urlId; - }; pplx::task> getVotes( - const ApiGetVotesRequest& request + utility::string_t tenantId, + utility::string_t urlId ) const; /// /// @@ -1765,15 +1657,10 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetVotesForUserRequest - { - utility::string_t tenantId; - utility::string_t urlId; - boost::optional userId; - boost::optional anonUserId; - }; pplx::task> getVotesForUser( - const ApiGetVotesForUserRequest& request + utility::string_t tenantId, + utility::string_t urlId + , const ApiGetVotesForUserOptions& options = {} ) const; /// /// @@ -1784,14 +1671,10 @@ class DefaultApi /// /// /// - struct ApiPatchDomainConfigRequest - { - utility::string_t tenantId; - utility::string_t domainToUpdate; - std::shared_ptr patchDomainConfigParams; - }; pplx::task> patchDomainConfig( - const ApiPatchDomainConfigRequest& request + utility::string_t tenantId, + utility::string_t domainToUpdate, + std::shared_ptr patchDomainConfigParams ) const; /// /// @@ -1802,14 +1685,10 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) - struct ApiPatchHashTagRequest - { - utility::string_t tag; - boost::optional tenantId; - boost::optional> updateHashTagBody; - }; pplx::task> patchHashTag( - const ApiPatchHashTagRequest& request + utility::string_t tag, + std::shared_ptr updateHashTagBody + , const ApiPatchHashTagOptions& options = {} ) const; /// /// @@ -1820,14 +1699,10 @@ class DefaultApi /// /// /// - struct ApiPatchPageRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr updateAPIPageData; - }; pplx::task> patchPage( - const ApiPatchPageRequest& request + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateAPIPageData ) const; /// /// @@ -1839,15 +1714,11 @@ class DefaultApi /// /// /// (optional, default to false) - struct ApiPatchSSOUserRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr updateAPISSOUserData; - boost::optional updateComments; - }; pplx::task> patchSSOUser( - const ApiPatchSSOUserRequest& request + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateAPISSOUserData + , const ApiPatchSSOUserOptions& options = {} ) const; /// /// @@ -1858,14 +1729,10 @@ class DefaultApi /// /// /// - struct ApiPutDomainConfigRequest - { - utility::string_t tenantId; - utility::string_t domainToUpdate; - std::shared_ptr updateDomainConfigParams; - }; pplx::task> putDomainConfig( - const ApiPutDomainConfigRequest& request + utility::string_t tenantId, + utility::string_t domainToUpdate, + std::shared_ptr updateDomainConfigParams ) const; /// /// @@ -1877,15 +1744,11 @@ class DefaultApi /// /// /// (optional, default to false) - struct ApiPutSSOUserRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr updateAPISSOUserData; - boost::optional updateComments; - }; pplx::task> putSSOUser( - const ApiPutSSOUserRequest& request + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateAPISSOUserData + , const ApiPutSSOUserOptions& options = {} ) const; /// /// @@ -1896,14 +1759,10 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiRenderEmailTemplateRequest - { - utility::string_t tenantId; - std::shared_ptr renderEmailTemplateBody; - boost::optional locale; - }; pplx::task> renderEmailTemplate( - const ApiRenderEmailTemplateRequest& request + utility::string_t tenantId, + std::shared_ptr renderEmailTemplateBody + , const ApiRenderEmailTemplateOptions& options = {} ) const; /// /// @@ -1914,14 +1773,10 @@ class DefaultApi /// /// /// - struct ApiReplaceTenantPackageRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr replaceTenantPackageBody; - }; pplx::task> replaceTenantPackage( - const ApiReplaceTenantPackageRequest& request + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr replaceTenantPackageBody ) const; /// /// @@ -1933,15 +1788,11 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiReplaceTenantUserRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr replaceTenantUserBody; - boost::optional updateComments; - }; pplx::task> replaceTenantUser( - const ApiReplaceTenantUserRequest& request + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr replaceTenantUserBody + , const ApiReplaceTenantUserOptions& options = {} ) const; /// /// @@ -1955,17 +1806,10 @@ class DefaultApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to false) - struct ApiSaveCommentRequest - { - utility::string_t tenantId; - std::shared_ptr createCommentParams; - boost::optional isLive; - boost::optional doSpamCheck; - boost::optional sendEmails; - boost::optional populateNotifications; - }; pplx::task> saveComment( - const ApiSaveCommentRequest& request + utility::string_t tenantId, + std::shared_ptr createCommentParams + , const ApiSaveCommentOptions& options = {} ) const; /// /// @@ -1979,17 +1823,10 @@ class DefaultApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to false) - struct ApiSaveCommentsBulkRequest - { - utility::string_t tenantId; - std::vector> createCommentParams; - boost::optional isLive; - boost::optional doSpamCheck; - boost::optional sendEmails; - boost::optional populateNotifications; - }; pplx::task>> saveCommentsBulk( - const ApiSaveCommentsBulkRequest& request + utility::string_t tenantId, + std::vector> createCommentParams + , const ApiSaveCommentsBulkOptions& options = {} ) const; /// /// @@ -2000,14 +1837,10 @@ class DefaultApi /// /// /// - struct ApiSendInviteRequest - { - utility::string_t tenantId; - utility::string_t id; - utility::string_t fromName; - }; pplx::task> sendInvite( - const ApiSendInviteRequest& request + utility::string_t tenantId, + utility::string_t id, + utility::string_t fromName ) const; /// /// @@ -2018,14 +1851,10 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiSendLoginLinkRequest - { - utility::string_t tenantId; - utility::string_t id; - boost::optional redirectURL; - }; pplx::task> sendLoginLink( - const ApiSendLoginLinkRequest& request + utility::string_t tenantId, + utility::string_t id + , const ApiSendLoginLinkOptions& options = {} ) const; /// /// @@ -2038,16 +1867,11 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiUnBlockUserFromCommentRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr unBlockFromCommentParams; - boost::optional userId; - boost::optional anonUserId; - }; pplx::task> unBlockUserFromComment( - const ApiUnBlockUserFromCommentRequest& request + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr unBlockFromCommentParams + , const ApiUnBlockUserFromCommentOptions& options = {} ) const; /// /// @@ -2059,15 +1883,10 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiUnFlagCommentRequest - { - utility::string_t tenantId; - utility::string_t id; - boost::optional userId; - boost::optional anonUserId; - }; pplx::task> unFlagComment( - const ApiUnFlagCommentRequest& request + utility::string_t tenantId, + utility::string_t id + , const ApiUnFlagCommentOptions& options = {} ) const; /// /// @@ -2081,17 +1900,11 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) /// (optional, default to false) - struct ApiUpdateCommentRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr updatableCommentParams; - boost::optional contextUserId; - boost::optional doSpamCheck; - boost::optional isLive; - }; pplx::task> updateComment( - const ApiUpdateCommentRequest& request + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updatableCommentParams + , const ApiUpdateCommentOptions& options = {} ) const; /// /// @@ -2102,14 +1915,10 @@ class DefaultApi /// /// /// - struct ApiUpdateEmailTemplateRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr updateEmailTemplateBody; - }; pplx::task> updateEmailTemplate( - const ApiUpdateEmailTemplateRequest& request + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateEmailTemplateBody ) const; /// /// @@ -2120,14 +1929,10 @@ class DefaultApi /// /// /// - struct ApiUpdateFeedPostRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr feedPost; - }; pplx::task> updateFeedPost( - const ApiUpdateFeedPostRequest& request + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr feedPost ) const; /// /// @@ -2138,14 +1943,10 @@ class DefaultApi /// /// /// - struct ApiUpdateModeratorRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr updateModeratorBody; - }; pplx::task> updateModerator( - const ApiUpdateModeratorRequest& request + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateModeratorBody ) const; /// /// @@ -2157,15 +1958,11 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiUpdateNotificationRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr updateNotificationBody; - boost::optional userId; - }; pplx::task> updateNotification( - const ApiUpdateNotificationRequest& request + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateNotificationBody + , const ApiUpdateNotificationOptions& options = {} ) const; /// /// @@ -2176,14 +1973,10 @@ class DefaultApi /// /// /// - struct ApiUpdateQuestionConfigRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr updateQuestionConfigBody; - }; pplx::task> updateQuestionConfig( - const ApiUpdateQuestionConfigRequest& request + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateQuestionConfigBody ) const; /// /// @@ -2194,14 +1987,10 @@ class DefaultApi /// /// /// - struct ApiUpdateQuestionResultRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr updateQuestionResultBody; - }; pplx::task> updateQuestionResult( - const ApiUpdateQuestionResultRequest& request + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateQuestionResultBody ) const; /// /// @@ -2213,15 +2002,11 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiUpdateSubscriptionRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr updateAPIUserSubscriptionData; - boost::optional userId; - }; pplx::task> updateSubscription( - const ApiUpdateSubscriptionRequest& request + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateAPIUserSubscriptionData + , const ApiUpdateSubscriptionOptions& options = {} ) const; /// /// @@ -2232,14 +2017,10 @@ class DefaultApi /// /// /// - struct ApiUpdateTenantRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr updateTenantBody; - }; pplx::task> updateTenant( - const ApiUpdateTenantRequest& request + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateTenantBody ) const; /// /// @@ -2250,14 +2031,10 @@ class DefaultApi /// /// /// - struct ApiUpdateTenantPackageRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr updateTenantPackageBody; - }; pplx::task> updateTenantPackage( - const ApiUpdateTenantPackageRequest& request + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateTenantPackageBody ) const; /// /// @@ -2269,15 +2046,11 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiUpdateTenantUserRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr updateTenantUserBody; - boost::optional updateComments; - }; pplx::task> updateTenantUser( - const ApiUpdateTenantUserRequest& request + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateTenantUserBody + , const ApiUpdateTenantUserOptions& options = {} ) const; /// /// @@ -2288,14 +2061,10 @@ class DefaultApi /// /// /// - struct ApiUpdateUserBadgeRequest - { - utility::string_t tenantId; - utility::string_t id; - std::shared_ptr updateUserBadgeParams; - }; pplx::task> updateUserBadge( - const ApiUpdateUserBadgeRequest& request + 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 d227d32..6371bbd 100644 --- a/client/include/FastCommentsClient/api/ModerationApi.h +++ b/client/include/FastCommentsClient/api/ModerationApi.h @@ -73,6 +73,298 @@ namespace api { using namespace org::openapitools::client::model; +struct ApiDeleteModerationVoteOptions +{ + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; +}; +struct ApiGetApiCommentsOptions +{ + 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; +}; +struct ApiGetApiExportStatusOptions +{ + boost::optional batchJobId; + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetApiIdsOptions +{ + boost::optional textSearch; + boost::optional byIPFromComment; + boost::optional filters; + boost::optional searchFilters; + boost::optional afterId; + boost::optional demo; + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetBanUsersFromCommentOptions +{ + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetCommentBanStatusOptions +{ + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetCommentChildrenOptions +{ + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetCountOptions +{ + boost::optional textSearch; + boost::optional byIPFromComment; + boost::optional filter; + boost::optional searchFilters; + boost::optional demo; + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetCountsOptions +{ + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetLogsOptions +{ + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetManualBadgesOptions +{ + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetManualBadgesForUserOptions +{ + boost::optional badgesUserId; + boost::optional commentId; + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetModerationCommentOptions +{ + boost::optional includeEmail; + boost::optional includeIP; + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetModerationCommentTextOptions +{ + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetPreBanSummaryOptions +{ + boost::optional includeByUserIdAndEmail; + boost::optional includeByIP; + boost::optional includeByEmailDomain; + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetSearchCommentsSummaryOptions +{ + boost::optional value; + boost::optional filters; + boost::optional searchFilters; + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetSearchPagesOptions +{ + boost::optional value; + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetSearchSitesOptions +{ + boost::optional value; + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetSearchSuggestOptions +{ + boost::optional textSearch; + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetSearchUsersOptions +{ + boost::optional value; + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetTrustFactorOptions +{ + boost::optional userId; + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetUserBanPreferenceOptions +{ + boost::optional tenantId; + boost::optional sso; +}; +struct ApiGetUserInternalProfileOptions +{ + boost::optional commentId; + boost::optional tenantId; + boost::optional sso; +}; +struct ApiPostAdjustCommentVotesOptions +{ + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; +}; +struct ApiPostApiExportOptions +{ + boost::optional textSearch; + boost::optional byIPFromComment; + boost::optional filters; + boost::optional searchFilters; + boost::optional sorts; + boost::optional tenantId; + boost::optional sso; +}; +struct ApiPostBanUserFromCommentOptions +{ + 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; +}; +struct ApiPostBanUserUndoOptions +{ + boost::optional tenantId; + boost::optional sso; +}; +struct ApiPostBulkPreBanSummaryOptions +{ + boost::optional includeByUserIdAndEmail; + boost::optional includeByIP; + boost::optional includeByEmailDomain; + boost::optional tenantId; + boost::optional sso; +}; +struct ApiPostCommentsByIdsOptions +{ + boost::optional tenantId; + boost::optional sso; +}; +struct ApiPostFlagCommentOptions +{ + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; +}; +struct ApiPostRemoveCommentOptions +{ + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; +}; +struct ApiPostRestoreDeletedCommentOptions +{ + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; +}; +struct ApiPostSetCommentApprovalStatusOptions +{ + boost::optional approved; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; +}; +struct ApiPostSetCommentReviewStatusOptions +{ + boost::optional reviewed; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; +}; +struct ApiPostSetCommentSpamStatusOptions +{ + boost::optional spam; + boost::optional permNotSpam; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; +}; +struct ApiPostSetCommentTextOptions +{ + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; +}; +struct ApiPostUnFlagCommentOptions +{ + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; +}; +struct ApiPostVoteOptions +{ + boost::optional direction; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; +}; +struct ApiPutAwardBadgeOptions +{ + boost::optional userId; + boost::optional commentId; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; +}; +struct ApiPutCloseThreadOptions +{ + boost::optional tenantId; + boost::optional sso; +}; +struct ApiPutRemoveBadgeOptions +{ + boost::optional userId; + boost::optional commentId; + boost::optional tenantId; + boost::optional broadcastId; + boost::optional sso; +}; +struct ApiPutReopenThreadOptions +{ + boost::optional tenantId; + boost::optional sso; +}; +struct ApiSetTrustFactorOptions +{ + boost::optional userId; + boost::optional trustFactor; + boost::optional tenantId; + boost::optional sso; +}; + class ModerationApi @@ -94,16 +386,10 @@ 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("")) - struct ApiDeleteModerationVoteRequest - { - utility::string_t commentId; - utility::string_t voteId; - boost::optional tenantId; - boost::optional broadcastId; - boost::optional sso; - }; pplx::task> deleteModerationVote( - const ApiDeleteModerationVoteRequest& request + utility::string_t commentId, + utility::string_t voteId + , const ApiDeleteModerationVoteOptions& options = {} ) const; /// /// @@ -121,21 +407,8 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetApiCommentsRequest - { - 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; - }; pplx::task> getApiComments( - const ApiGetApiCommentsRequest& request + const ApiGetApiCommentsOptions& options = {} ) const; /// /// @@ -146,14 +419,8 @@ 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("")) - struct ApiGetApiExportStatusRequest - { - boost::optional batchJobId; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getApiExportStatus( - const ApiGetApiExportStatusRequest& request + const ApiGetApiExportStatusOptions& options = {} ) const; /// /// @@ -169,19 +436,8 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetApiIdsRequest - { - boost::optional textSearch; - boost::optional byIPFromComment; - boost::optional filters; - boost::optional searchFilters; - boost::optional afterId; - boost::optional demo; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getApiIds( - const ApiGetApiIdsRequest& request + const ApiGetApiIdsOptions& options = {} ) const; /// /// @@ -192,14 +448,9 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetBanUsersFromCommentRequest - { - utility::string_t commentId; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getBanUsersFromComment( - const ApiGetBanUsersFromCommentRequest& request + utility::string_t commentId + , const ApiGetBanUsersFromCommentOptions& options = {} ) const; /// /// @@ -210,14 +461,9 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetCommentBanStatusRequest - { - utility::string_t commentId; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getCommentBanStatus( - const ApiGetCommentBanStatusRequest& request + utility::string_t commentId + , const ApiGetCommentBanStatusOptions& options = {} ) const; /// /// @@ -228,14 +474,9 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetCommentChildrenRequest - { - utility::string_t commentId; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getCommentChildren( - const ApiGetCommentChildrenRequest& request + utility::string_t commentId + , const ApiGetCommentChildrenOptions& options = {} ) const; /// /// @@ -250,18 +491,8 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetCountRequest - { - boost::optional textSearch; - boost::optional byIPFromComment; - boost::optional filter; - boost::optional searchFilters; - boost::optional demo; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getCount( - const ApiGetCountRequest& request + const ApiGetCountOptions& options = {} ) const; /// /// @@ -271,13 +502,8 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetCountsRequest - { - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getCounts( - const ApiGetCountsRequest& request + const ApiGetCountsOptions& options = {} ) const; /// /// @@ -288,14 +514,9 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetLogsRequest - { - utility::string_t commentId; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getLogs( - const ApiGetLogsRequest& request + utility::string_t commentId + , const ApiGetLogsOptions& options = {} ) const; /// /// @@ -305,13 +526,8 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetManualBadgesRequest - { - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getManualBadges( - const ApiGetManualBadgesRequest& request + const ApiGetManualBadgesOptions& options = {} ) const; /// /// @@ -323,15 +539,8 @@ 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("")) - struct ApiGetManualBadgesForUserRequest - { - boost::optional badgesUserId; - boost::optional commentId; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getManualBadgesForUser( - const ApiGetManualBadgesForUserRequest& request + const ApiGetManualBadgesForUserOptions& options = {} ) const; /// /// @@ -344,16 +553,9 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetModerationCommentRequest - { - utility::string_t commentId; - boost::optional includeEmail; - boost::optional includeIP; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getModerationComment( - const ApiGetModerationCommentRequest& request + utility::string_t commentId + , const ApiGetModerationCommentOptions& options = {} ) const; /// /// @@ -364,14 +566,9 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetModerationCommentTextRequest - { - utility::string_t commentId; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getModerationCommentText( - const ApiGetModerationCommentTextRequest& request + utility::string_t commentId + , const ApiGetModerationCommentTextOptions& options = {} ) const; /// /// @@ -385,17 +582,9 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetPreBanSummaryRequest - { - utility::string_t commentId; - boost::optional includeByUserIdAndEmail; - boost::optional includeByIP; - boost::optional includeByEmailDomain; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getPreBanSummary( - const ApiGetPreBanSummaryRequest& request + utility::string_t commentId + , const ApiGetPreBanSummaryOptions& options = {} ) const; /// /// @@ -408,16 +597,8 @@ 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("")) - struct ApiGetSearchCommentsSummaryRequest - { - boost::optional value; - boost::optional filters; - boost::optional searchFilters; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getSearchCommentsSummary( - const ApiGetSearchCommentsSummaryRequest& request + const ApiGetSearchCommentsSummaryOptions& options = {} ) const; /// /// @@ -428,14 +609,8 @@ 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("")) - struct ApiGetSearchPagesRequest - { - boost::optional value; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getSearchPages( - const ApiGetSearchPagesRequest& request + const ApiGetSearchPagesOptions& options = {} ) const; /// /// @@ -446,14 +621,8 @@ 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("")) - struct ApiGetSearchSitesRequest - { - boost::optional value; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getSearchSites( - const ApiGetSearchSitesRequest& request + const ApiGetSearchSitesOptions& options = {} ) const; /// /// @@ -464,14 +633,8 @@ 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("")) - struct ApiGetSearchSuggestRequest - { - boost::optional textSearch; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getSearchSuggest( - const ApiGetSearchSuggestRequest& request + const ApiGetSearchSuggestOptions& options = {} ) const; /// /// @@ -482,14 +645,8 @@ 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("")) - struct ApiGetSearchUsersRequest - { - boost::optional value; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getSearchUsers( - const ApiGetSearchUsersRequest& request + const ApiGetSearchUsersOptions& options = {} ) const; /// /// @@ -500,14 +657,8 @@ 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("")) - struct ApiGetTrustFactorRequest - { - boost::optional userId; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getTrustFactor( - const ApiGetTrustFactorRequest& request + const ApiGetTrustFactorOptions& options = {} ) const; /// /// @@ -517,13 +668,8 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetUserBanPreferenceRequest - { - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getUserBanPreference( - const ApiGetUserBanPreferenceRequest& request + const ApiGetUserBanPreferenceOptions& options = {} ) const; /// /// @@ -534,14 +680,8 @@ 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("")) - struct ApiGetUserInternalProfileRequest - { - boost::optional commentId; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> getUserInternalProfile( - const ApiGetUserInternalProfileRequest& request + const ApiGetUserInternalProfileOptions& options = {} ) const; /// /// @@ -554,16 +694,10 @@ 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("")) - struct ApiPostAdjustCommentVotesRequest - { - utility::string_t commentId; - std::shared_ptr adjustCommentVotesParams; - boost::optional tenantId; - boost::optional broadcastId; - boost::optional sso; - }; pplx::task> postAdjustCommentVotes( - const ApiPostAdjustCommentVotesRequest& request + utility::string_t commentId, + std::shared_ptr adjustCommentVotesParams + , const ApiPostAdjustCommentVotesOptions& options = {} ) const; /// /// @@ -578,18 +712,8 @@ 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("")) - struct ApiPostApiExportRequest - { - boost::optional textSearch; - boost::optional byIPFromComment; - boost::optional filters; - boost::optional searchFilters; - boost::optional sorts; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> postApiExport( - const ApiPostApiExportRequest& request + const ApiPostApiExportOptions& options = {} ) const; /// /// @@ -608,22 +732,9 @@ 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("")) - struct ApiPostBanUserFromCommentRequest - { - 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; - }; pplx::task> postBanUserFromComment( - const ApiPostBanUserFromCommentRequest& request + utility::string_t commentId + , const ApiPostBanUserFromCommentOptions& options = {} ) const; /// /// @@ -634,14 +745,9 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiPostBanUserUndoRequest - { - std::shared_ptr banUserUndoParams; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> postBanUserUndo( - const ApiPostBanUserUndoRequest& request + std::shared_ptr banUserUndoParams + , const ApiPostBanUserUndoOptions& options = {} ) const; /// /// @@ -655,17 +761,9 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiPostBulkPreBanSummaryRequest - { - std::shared_ptr bulkPreBanParams; - boost::optional includeByUserIdAndEmail; - boost::optional includeByIP; - boost::optional includeByEmailDomain; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> postBulkPreBanSummary( - const ApiPostBulkPreBanSummaryRequest& request + std::shared_ptr bulkPreBanParams + , const ApiPostBulkPreBanSummaryOptions& options = {} ) const; /// /// @@ -676,14 +774,9 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiPostCommentsByIdsRequest - { - std::shared_ptr commentsByIdsParams; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> postCommentsByIds( - const ApiPostCommentsByIdsRequest& request + std::shared_ptr commentsByIdsParams + , const ApiPostCommentsByIdsOptions& options = {} ) const; /// /// @@ -695,15 +788,9 @@ 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("")) - struct ApiPostFlagCommentRequest - { - utility::string_t commentId; - boost::optional tenantId; - boost::optional broadcastId; - boost::optional sso; - }; pplx::task> postFlagComment( - const ApiPostFlagCommentRequest& request + utility::string_t commentId + , const ApiPostFlagCommentOptions& options = {} ) const; /// /// @@ -715,15 +802,9 @@ 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("")) - struct ApiPostRemoveCommentRequest - { - utility::string_t commentId; - boost::optional tenantId; - boost::optional broadcastId; - boost::optional sso; - }; pplx::task> postRemoveComment( - const ApiPostRemoveCommentRequest& request + utility::string_t commentId + , const ApiPostRemoveCommentOptions& options = {} ) const; /// /// @@ -735,15 +816,9 @@ 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("")) - struct ApiPostRestoreDeletedCommentRequest - { - utility::string_t commentId; - boost::optional tenantId; - boost::optional broadcastId; - boost::optional sso; - }; pplx::task> postRestoreDeletedComment( - const ApiPostRestoreDeletedCommentRequest& request + utility::string_t commentId + , const ApiPostRestoreDeletedCommentOptions& options = {} ) const; /// /// @@ -756,16 +831,9 @@ 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("")) - struct ApiPostSetCommentApprovalStatusRequest - { - utility::string_t commentId; - boost::optional approved; - boost::optional tenantId; - boost::optional broadcastId; - boost::optional sso; - }; pplx::task> postSetCommentApprovalStatus( - const ApiPostSetCommentApprovalStatusRequest& request + utility::string_t commentId + , const ApiPostSetCommentApprovalStatusOptions& options = {} ) const; /// /// @@ -778,16 +846,9 @@ 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("")) - struct ApiPostSetCommentReviewStatusRequest - { - utility::string_t commentId; - boost::optional reviewed; - boost::optional tenantId; - boost::optional broadcastId; - boost::optional sso; - }; pplx::task> postSetCommentReviewStatus( - const ApiPostSetCommentReviewStatusRequest& request + utility::string_t commentId + , const ApiPostSetCommentReviewStatusOptions& options = {} ) const; /// /// @@ -801,17 +862,9 @@ 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("")) - struct ApiPostSetCommentSpamStatusRequest - { - utility::string_t commentId; - boost::optional spam; - boost::optional permNotSpam; - boost::optional tenantId; - boost::optional broadcastId; - boost::optional sso; - }; pplx::task> postSetCommentSpamStatus( - const ApiPostSetCommentSpamStatusRequest& request + utility::string_t commentId + , const ApiPostSetCommentSpamStatusOptions& options = {} ) const; /// /// @@ -824,16 +877,10 @@ 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("")) - struct ApiPostSetCommentTextRequest - { - utility::string_t commentId; - std::shared_ptr setCommentTextParams; - boost::optional tenantId; - boost::optional broadcastId; - boost::optional sso; - }; pplx::task> postSetCommentText( - const ApiPostSetCommentTextRequest& request + utility::string_t commentId, + std::shared_ptr setCommentTextParams + , const ApiPostSetCommentTextOptions& options = {} ) const; /// /// @@ -845,15 +892,9 @@ 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("")) - struct ApiPostUnFlagCommentRequest - { - utility::string_t commentId; - boost::optional tenantId; - boost::optional broadcastId; - boost::optional sso; - }; pplx::task> postUnFlagComment( - const ApiPostUnFlagCommentRequest& request + utility::string_t commentId + , const ApiPostUnFlagCommentOptions& options = {} ) const; /// /// @@ -866,16 +907,9 @@ 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("")) - struct ApiPostVoteRequest - { - utility::string_t commentId; - boost::optional direction; - boost::optional tenantId; - boost::optional broadcastId; - boost::optional sso; - }; pplx::task> postVote( - const ApiPostVoteRequest& request + utility::string_t commentId + , const ApiPostVoteOptions& options = {} ) const; /// /// @@ -889,17 +923,9 @@ 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("")) - struct ApiPutAwardBadgeRequest - { - utility::string_t badgeId; - boost::optional userId; - boost::optional commentId; - boost::optional tenantId; - boost::optional broadcastId; - boost::optional sso; - }; pplx::task> putAwardBadge( - const ApiPutAwardBadgeRequest& request + utility::string_t badgeId + , const ApiPutAwardBadgeOptions& options = {} ) const; /// /// @@ -910,14 +936,9 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiPutCloseThreadRequest - { - utility::string_t urlId; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> putCloseThread( - const ApiPutCloseThreadRequest& request + utility::string_t urlId + , const ApiPutCloseThreadOptions& options = {} ) const; /// /// @@ -931,17 +952,9 @@ 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("")) - struct ApiPutRemoveBadgeRequest - { - utility::string_t badgeId; - boost::optional userId; - boost::optional commentId; - boost::optional tenantId; - boost::optional broadcastId; - boost::optional sso; - }; pplx::task> putRemoveBadge( - const ApiPutRemoveBadgeRequest& request + utility::string_t badgeId + , const ApiPutRemoveBadgeOptions& options = {} ) const; /// /// @@ -952,14 +965,9 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiPutReopenThreadRequest - { - utility::string_t urlId; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> putReopenThread( - const ApiPutReopenThreadRequest& request + utility::string_t urlId + , const ApiPutReopenThreadOptions& options = {} ) const; /// /// @@ -971,15 +979,8 @@ 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("")) - struct ApiSetTrustFactorRequest - { - boost::optional userId; - boost::optional trustFactor; - boost::optional tenantId; - boost::optional sso; - }; pplx::task> setTrustFactor( - const ApiSetTrustFactorRequest& request + const ApiSetTrustFactorOptions& options = {} ) const; protected: diff --git a/client/include/FastCommentsClient/api/PublicApi.h b/client/include/FastCommentsClient/api/PublicApi.h index 4fe49c3..ad5acbf 100644 --- a/client/include/FastCommentsClient/api/PublicApi.h +++ b/client/include/FastCommentsClient/api/PublicApi.h @@ -87,6 +87,257 @@ namespace api { using namespace org::openapitools::client::model; +struct ApiBlockFromCommentPublicOptions +{ + boost::optional sso; +}; +struct ApiCheckedCommentsForBlockedOptions +{ + boost::optional sso; +}; +struct ApiCreateCommentPublicOptions +{ + boost::optional sessionId; + boost::optional sso; +}; +struct ApiCreateFeedPostPublicOptions +{ + boost::optional broadcastId; + boost::optional sso; +}; +struct ApiCreateV1PageReactOptions +{ + boost::optional title; +}; +struct ApiCreateV2PageReactOptions +{ + boost::optional title; +}; +struct ApiDeleteCommentPublicOptions +{ + boost::optional editKey; + boost::optional sso; +}; +struct ApiDeleteCommentVoteOptions +{ + boost::optional editKey; + boost::optional sso; +}; +struct ApiDeleteFeedPostPublicOptions +{ + boost::optional broadcastId; + boost::optional sso; +}; +struct ApiFlagCommentPublicOptions +{ + boost::optional sso; +}; +struct ApiGetCommentTextOptions +{ + boost::optional editKey; + boost::optional sso; +}; +struct ApiGetCommentVoteUserNamesOptions +{ + boost::optional sso; +}; +struct ApiGetCommentsForUserOptions +{ + boost::optional userId; + boost::optional> direction; + boost::optional repliesToUserId; + boost::optional page; + boost::optional includei10n; + boost::optional locale; + boost::optional isCrawler; +}; +struct ApiGetCommentsPublicOptions +{ + 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 ApiGetEventLogOptions +{ + boost::optional endTime; +}; +struct ApiGetFeedPostsPublicOptions +{ + boost::optional afterId; + boost::optional limit; + boost::optional> tags; + boost::optional sso; + boost::optional isCrawler; + boost::optional includeUserInfo; +}; +struct ApiGetFeedPostsStatsOptions +{ + boost::optional sso; +}; +struct ApiGetGifsSearchOptions +{ + boost::optional locale; + boost::optional rating; + boost::optional page; +}; +struct ApiGetGifsTrendingOptions +{ + boost::optional locale; + boost::optional rating; + boost::optional page; +}; +struct ApiGetGlobalEventLogOptions +{ + boost::optional endTime; +}; +struct ApiGetOfflineUsersOptions +{ + boost::optional afterName; + boost::optional afterUserId; +}; +struct ApiGetOnlineUsersOptions +{ + boost::optional afterName; + boost::optional afterUserId; +}; +struct ApiGetPagesPublicOptions +{ + boost::optional cursor; + boost::optional limit; + boost::optional q; + boost::optional> sortBy; + boost::optional hasComments; +}; +struct ApiGetTranslationsOptions +{ + boost::optional locale; + boost::optional useFullTranslationIds; +}; +struct ApiGetUserNotificationCountOptions +{ + boost::optional sso; +}; +struct ApiGetUserNotificationsOptions +{ + 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 ApiGetUserReactsPublicOptions +{ + boost::optional> postIds; + boost::optional sso; +}; +struct ApiLockCommentOptions +{ + boost::optional sso; +}; +struct ApiPinCommentOptions +{ + boost::optional sso; +}; +struct ApiReactFeedPostPublicOptions +{ + boost::optional isUndo; + boost::optional broadcastId; + boost::optional sso; +}; +struct ApiResetUserNotificationCountOptions +{ + boost::optional sso; +}; +struct ApiResetUserNotificationsOptions +{ + boost::optional afterId; + boost::optional afterCreatedAt; + boost::optional unreadOnly; + boost::optional dmOnly; + boost::optional noDm; + boost::optional sso; +}; +struct ApiSearchUsersOptions +{ + boost::optional usernameStartsWith; + boost::optional> mentionGroupIds; + boost::optional sso; + boost::optional searchSection; +}; +struct ApiSetCommentTextOptions +{ + boost::optional editKey; + boost::optional sso; +}; +struct ApiUnBlockCommentPublicOptions +{ + boost::optional sso; +}; +struct ApiUnLockCommentOptions +{ + boost::optional sso; +}; +struct ApiUnPinCommentOptions +{ + boost::optional sso; +}; +struct ApiUpdateFeedPostPublicOptions +{ + boost::optional broadcastId; + boost::optional sso; +}; +struct ApiUpdateUserNotificationCommentSubscriptionStatusOptions +{ + boost::optional sso; +}; +struct ApiUpdateUserNotificationPageSubscriptionStatusOptions +{ + boost::optional sso; +}; +struct ApiUpdateUserNotificationStatusOptions +{ + boost::optional sso; +}; +struct ApiUploadImageOptions +{ + boost::optional> sizePreset; + boost::optional urlId; +}; +struct ApiVoteCommentOptions +{ + boost::optional sessionId; + boost::optional sso; +}; + class PublicApi @@ -107,15 +358,11 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiBlockFromCommentPublicRequest - { - utility::string_t tenantId; - utility::string_t commentId; - std::shared_ptr publicBlockFromCommentParams; - boost::optional sso; - }; pplx::task> blockFromCommentPublic( - const ApiBlockFromCommentPublicRequest& request + utility::string_t tenantId, + utility::string_t commentId, + std::shared_ptr publicBlockFromCommentParams + , const ApiBlockFromCommentPublicOptions& options = {} ) const; /// /// @@ -126,14 +373,10 @@ class PublicApi /// /// A comma separated list of comment ids. /// (optional, default to utility::conversions::to_string_t("")) - struct ApiCheckedCommentsForBlockedRequest - { - utility::string_t tenantId; - utility::string_t commentIds; - boost::optional sso; - }; pplx::task> checkedCommentsForBlocked( - const ApiCheckedCommentsForBlockedRequest& request + utility::string_t tenantId, + utility::string_t commentIds + , const ApiCheckedCommentsForBlockedOptions& options = {} ) const; /// /// @@ -147,17 +390,12 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiCreateCommentPublicRequest - { - utility::string_t tenantId; - utility::string_t urlId; - utility::string_t broadcastId; - std::shared_ptr commentData; - boost::optional sessionId; - boost::optional sso; - }; pplx::task> createCommentPublic( - const ApiCreateCommentPublicRequest& request + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t broadcastId, + std::shared_ptr commentData + , const ApiCreateCommentPublicOptions& options = {} ) const; /// /// @@ -169,15 +407,10 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiCreateFeedPostPublicRequest - { - utility::string_t tenantId; - std::shared_ptr createFeedPostParams; - boost::optional broadcastId; - boost::optional sso; - }; pplx::task> createFeedPostPublic( - const ApiCreateFeedPostPublicRequest& request + utility::string_t tenantId, + std::shared_ptr createFeedPostParams + , const ApiCreateFeedPostPublicOptions& options = {} ) const; /// /// @@ -188,14 +421,10 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiCreateV1PageReactRequest - { - utility::string_t tenantId; - utility::string_t urlId; - boost::optional title; - }; pplx::task> createV1PageReact( - const ApiCreateV1PageReactRequest& request + utility::string_t tenantId, + utility::string_t urlId + , const ApiCreateV1PageReactOptions& options = {} ) const; /// /// @@ -207,15 +436,11 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiCreateV2PageReactRequest - { - utility::string_t tenantId; - utility::string_t urlId; - utility::string_t id; - boost::optional title; - }; pplx::task> createV2PageReact( - const ApiCreateV2PageReactRequest& request + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t id + , const ApiCreateV2PageReactOptions& options = {} ) const; /// /// @@ -228,16 +453,11 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiDeleteCommentPublicRequest - { - utility::string_t tenantId; - utility::string_t commentId; - utility::string_t broadcastId; - boost::optional editKey; - boost::optional sso; - }; pplx::task> deleteCommentPublic( - const ApiDeleteCommentPublicRequest& request + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t broadcastId + , const ApiDeleteCommentPublicOptions& options = {} ) const; /// /// @@ -252,18 +472,13 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiDeleteCommentVoteRequest - { - 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; - }; pplx::task> deleteCommentVote( - const ApiDeleteCommentVoteRequest& request + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t voteId, + utility::string_t urlId, + utility::string_t broadcastId + , const ApiDeleteCommentVoteOptions& options = {} ) const; /// /// @@ -275,15 +490,10 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiDeleteFeedPostPublicRequest - { - utility::string_t tenantId; - utility::string_t postId; - boost::optional broadcastId; - boost::optional sso; - }; pplx::task> deleteFeedPostPublic( - const ApiDeleteFeedPostPublicRequest& request + utility::string_t tenantId, + utility::string_t postId + , const ApiDeleteFeedPostPublicOptions& options = {} ) const; /// /// @@ -293,13 +503,9 @@ class PublicApi /// /// /// - struct ApiDeleteV1PageReactRequest - { - utility::string_t tenantId; - utility::string_t urlId; - }; pplx::task> deleteV1PageReact( - const ApiDeleteV1PageReactRequest& request + utility::string_t tenantId, + utility::string_t urlId ) const; /// /// @@ -310,14 +516,10 @@ class PublicApi /// /// /// - struct ApiDeleteV2PageReactRequest - { - utility::string_t tenantId; - utility::string_t urlId; - utility::string_t id; - }; pplx::task> deleteV2PageReact( - const ApiDeleteV2PageReactRequest& request + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t id ) const; /// /// @@ -329,15 +531,11 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiFlagCommentPublicRequest - { - utility::string_t tenantId; - utility::string_t commentId; - bool isFlagged; - boost::optional sso; - }; pplx::task> flagCommentPublic( - const ApiFlagCommentPublicRequest& request + utility::string_t tenantId, + utility::string_t commentId, + bool isFlagged + , const ApiFlagCommentPublicOptions& options = {} ) const; /// /// @@ -349,15 +547,10 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetCommentTextRequest - { - utility::string_t tenantId; - utility::string_t commentId; - boost::optional editKey; - boost::optional sso; - }; pplx::task> getCommentText( - const ApiGetCommentTextRequest& request + utility::string_t tenantId, + utility::string_t commentId + , const ApiGetCommentTextOptions& options = {} ) const; /// /// @@ -369,15 +562,11 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetCommentVoteUserNamesRequest - { - utility::string_t tenantId; - utility::string_t commentId; - int32_t dir; - boost::optional sso; - }; pplx::task> getCommentVoteUserNames( - const ApiGetCommentVoteUserNamesRequest& request + utility::string_t tenantId, + utility::string_t commentId, + int32_t dir + , const ApiGetCommentVoteUserNamesOptions& options = {} ) const; /// /// @@ -392,18 +581,8 @@ class PublicApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) - struct ApiGetCommentsForUserRequest - { - boost::optional userId; - boost::optional> direction; - boost::optional repliesToUserId; - boost::optional page; - boost::optional includei10n; - boost::optional locale; - boost::optional isCrawler; - }; pplx::task> getCommentsForUser( - const ApiGetCommentsForUserRequest& request + const ApiGetCommentsForUserOptions& options = {} ) const; /// /// @@ -439,39 +618,10 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetCommentsPublicRequest - { - 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; - }; pplx::task> getCommentsPublic( - const ApiGetCommentsPublicRequest& request + utility::string_t tenantId, + utility::string_t urlId + , const ApiGetCommentsPublicOptions& options = {} ) const; /// /// @@ -484,16 +634,12 @@ class PublicApi /// /// /// (optional, default to 0L) - struct ApiGetEventLogRequest - { - utility::string_t tenantId; - utility::string_t urlId; - utility::string_t userIdWS; - int64_t startTime; - boost::optional endTime; - }; pplx::task> getEventLog( - const ApiGetEventLogRequest& request + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t userIdWS, + int64_t startTime + , const ApiGetEventLogOptions& options = {} ) const; /// /// @@ -508,18 +654,9 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) /// (optional, default to false) - struct ApiGetFeedPostsPublicRequest - { - utility::string_t tenantId; - boost::optional afterId; - boost::optional limit; - boost::optional> tags; - boost::optional sso; - boost::optional isCrawler; - boost::optional includeUserInfo; - }; pplx::task> getFeedPostsPublic( - const ApiGetFeedPostsPublicRequest& request + utility::string_t tenantId + , const ApiGetFeedPostsPublicOptions& options = {} ) const; /// /// @@ -530,14 +667,10 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetFeedPostsStatsRequest - { - utility::string_t tenantId; - std::vector postIds; - boost::optional sso; - }; pplx::task> getFeedPostsStats( - const ApiGetFeedPostsStatsRequest& request + utility::string_t tenantId, + std::vector postIds + , const ApiGetFeedPostsStatsOptions& options = {} ) const; /// /// @@ -547,13 +680,9 @@ class PublicApi /// /// /// - struct ApiGetGifLargeRequest - { - utility::string_t tenantId; - utility::string_t largeInternalURLSanitized; - }; pplx::task> getGifLarge( - const ApiGetGifLargeRequest& request + utility::string_t tenantId, + utility::string_t largeInternalURLSanitized ) const; /// /// @@ -566,16 +695,10 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) - struct ApiGetGifsSearchRequest - { - utility::string_t tenantId; - utility::string_t search; - boost::optional locale; - boost::optional rating; - boost::optional page; - }; pplx::task> getGifsSearch( - const ApiGetGifsSearchRequest& request + utility::string_t tenantId, + utility::string_t search + , const ApiGetGifsSearchOptions& options = {} ) const; /// /// @@ -587,15 +710,9 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) - struct ApiGetGifsTrendingRequest - { - utility::string_t tenantId; - boost::optional locale; - boost::optional rating; - boost::optional page; - }; pplx::task> getGifsTrending( - const ApiGetGifsTrendingRequest& request + utility::string_t tenantId + , const ApiGetGifsTrendingOptions& options = {} ) const; /// /// @@ -608,16 +725,12 @@ class PublicApi /// /// /// (optional, default to 0L) - struct ApiGetGlobalEventLogRequest - { - utility::string_t tenantId; - utility::string_t urlId; - utility::string_t userIdWS; - int64_t startTime; - boost::optional endTime; - }; pplx::task> getGlobalEventLog( - const ApiGetGlobalEventLogRequest& request + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t userIdWS, + int64_t startTime + , const ApiGetGlobalEventLogOptions& options = {} ) const; /// /// @@ -629,15 +742,10 @@ class PublicApi /// Page URL identifier (cleaned server-side). /// Cursor: pass nextAfterName from the previous response. (optional, default to utility::conversions::to_string_t("")) /// 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("")) - struct ApiGetOfflineUsersRequest - { - utility::string_t tenantId; - utility::string_t urlId; - boost::optional afterName; - boost::optional afterUserId; - }; pplx::task> getOfflineUsers( - const ApiGetOfflineUsersRequest& request + utility::string_t tenantId, + utility::string_t urlId + , const ApiGetOfflineUsersOptions& options = {} ) const; /// /// @@ -649,15 +757,10 @@ class PublicApi /// Page URL identifier (cleaned server-side). /// Cursor: pass nextAfterName from the previous response. (optional, default to utility::conversions::to_string_t("")) /// 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("")) - struct ApiGetOnlineUsersRequest - { - utility::string_t tenantId; - utility::string_t urlId; - boost::optional afterName; - boost::optional afterUserId; - }; pplx::task> getOnlineUsers( - const ApiGetOnlineUsersRequest& request + utility::string_t tenantId, + utility::string_t urlId + , const ApiGetOnlineUsersOptions& options = {} ) const; /// /// @@ -671,17 +774,9 @@ class PublicApi /// Optional case-insensitive title prefix filter. (optional, default to utility::conversions::to_string_t("")) /// 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) - struct ApiGetPagesPublicRequest - { - utility::string_t tenantId; - boost::optional cursor; - boost::optional limit; - boost::optional q; - boost::optional> sortBy; - boost::optional hasComments; - }; pplx::task> getPagesPublic( - const ApiGetPagesPublicRequest& request + utility::string_t tenantId + , const ApiGetPagesPublicOptions& options = {} ) const; /// /// @@ -693,15 +788,10 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) - struct ApiGetTranslationsRequest - { - utility::string_t r_namespace; - utility::string_t component; - boost::optional locale; - boost::optional useFullTranslationIds; - }; pplx::task> getTranslations( - const ApiGetTranslationsRequest& request + utility::string_t r_namespace, + utility::string_t component + , const ApiGetTranslationsOptions& options = {} ) const; /// /// @@ -711,13 +801,9 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetUserNotificationCountRequest - { - utility::string_t tenantId; - boost::optional sso; - }; pplx::task> getUserNotificationCount( - const ApiGetUserNotificationCountRequest& request + utility::string_t tenantId + , const ApiGetUserNotificationCountOptions& options = {} ) const; /// /// @@ -737,23 +823,9 @@ class PublicApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetUserNotificationsRequest - { - 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; - }; pplx::task> getUserNotifications( - const ApiGetUserNotificationsRequest& request + utility::string_t tenantId + , const ApiGetUserNotificationsOptions& options = {} ) const; /// /// @@ -764,14 +836,10 @@ class PublicApi /// /// /// - struct ApiGetUserPresenceStatusesRequest - { - utility::string_t tenantId; - utility::string_t urlIdWS; - utility::string_t userIds; - }; pplx::task> getUserPresenceStatuses( - const ApiGetUserPresenceStatusesRequest& request + utility::string_t tenantId, + utility::string_t urlIdWS, + utility::string_t userIds ) const; /// /// @@ -782,14 +850,9 @@ class PublicApi /// /// (optional, default to std::vector<std::shared_ptr<utility::string_t>>()) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiGetUserReactsPublicRequest - { - utility::string_t tenantId; - boost::optional> postIds; - boost::optional sso; - }; pplx::task> getUserReactsPublic( - const ApiGetUserReactsPublicRequest& request + utility::string_t tenantId + , const ApiGetUserReactsPublicOptions& options = {} ) const; /// /// @@ -799,13 +862,9 @@ class PublicApi /// /// /// Comma-delimited userIds. - struct ApiGetUsersInfoRequest - { - utility::string_t tenantId; - utility::string_t ids; - }; pplx::task> getUsersInfo( - const ApiGetUsersInfoRequest& request + utility::string_t tenantId, + utility::string_t ids ) const; /// /// @@ -815,13 +874,9 @@ class PublicApi /// /// /// - struct ApiGetV1PageLikesRequest - { - utility::string_t tenantId; - utility::string_t urlId; - }; pplx::task> getV1PageLikes( - const ApiGetV1PageLikesRequest& request + utility::string_t tenantId, + utility::string_t urlId ) const; /// /// @@ -832,14 +887,10 @@ class PublicApi /// /// /// - struct ApiGetV2PageReactUsersRequest - { - utility::string_t tenantId; - utility::string_t urlId; - utility::string_t id; - }; pplx::task> getV2PageReactUsers( - const ApiGetV2PageReactUsersRequest& request + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t id ) const; /// /// @@ -849,13 +900,9 @@ class PublicApi /// /// /// - struct ApiGetV2PageReactsRequest - { - utility::string_t tenantId; - utility::string_t urlId; - }; pplx::task> getV2PageReacts( - const ApiGetV2PageReactsRequest& request + utility::string_t tenantId, + utility::string_t urlId ) const; /// /// @@ -867,15 +914,11 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiLockCommentRequest - { - utility::string_t tenantId; - utility::string_t commentId; - utility::string_t broadcastId; - boost::optional sso; - }; pplx::task> lockComment( - const ApiLockCommentRequest& request + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t broadcastId + , const ApiLockCommentOptions& options = {} ) const; /// /// @@ -883,11 +926,7 @@ class PublicApi /// /// /// - struct ApiLogoutPublicRequest - { - }; pplx::task> logoutPublic( - const ApiLogoutPublicRequest& request ) const; /// /// @@ -899,15 +938,11 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiPinCommentRequest - { - utility::string_t tenantId; - utility::string_t commentId; - utility::string_t broadcastId; - boost::optional sso; - }; pplx::task> pinComment( - const ApiPinCommentRequest& request + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t broadcastId + , const ApiPinCommentOptions& options = {} ) const; /// /// @@ -921,17 +956,11 @@ class PublicApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiReactFeedPostPublicRequest - { - utility::string_t tenantId; - utility::string_t postId; - std::shared_ptr reactBodyParams; - boost::optional isUndo; - boost::optional broadcastId; - boost::optional sso; - }; pplx::task> reactFeedPostPublic( - const ApiReactFeedPostPublicRequest& request + utility::string_t tenantId, + utility::string_t postId, + std::shared_ptr reactBodyParams + , const ApiReactFeedPostPublicOptions& options = {} ) const; /// /// @@ -941,13 +970,9 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiResetUserNotificationCountRequest - { - utility::string_t tenantId; - boost::optional sso; - }; pplx::task> resetUserNotificationCount( - const ApiResetUserNotificationCountRequest& request + utility::string_t tenantId + , const ApiResetUserNotificationCountOptions& options = {} ) const; /// /// @@ -962,18 +987,9 @@ class PublicApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiResetUserNotificationsRequest - { - utility::string_t tenantId; - boost::optional afterId; - boost::optional afterCreatedAt; - boost::optional unreadOnly; - boost::optional dmOnly; - boost::optional noDm; - boost::optional sso; - }; pplx::task> resetUserNotifications( - const ApiResetUserNotificationsRequest& request + utility::string_t tenantId + , const ApiResetUserNotificationsOptions& options = {} ) const; /// /// @@ -987,17 +1003,10 @@ class PublicApi /// (optional, default to std::vector<std::shared_ptr<utility::string_t>>()) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiSearchUsersRequest - { - utility::string_t tenantId; - utility::string_t urlId; - boost::optional usernameStartsWith; - boost::optional> mentionGroupIds; - boost::optional sso; - boost::optional searchSection; - }; pplx::task> searchUsers( - const ApiSearchUsersRequest& request + utility::string_t tenantId, + utility::string_t urlId + , const ApiSearchUsersOptions& options = {} ) const; /// /// @@ -1011,17 +1020,12 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiSetCommentTextRequest - { - utility::string_t tenantId; - utility::string_t commentId; - utility::string_t broadcastId; - std::shared_ptr commentTextUpdateRequest; - boost::optional editKey; - boost::optional sso; - }; pplx::task> setCommentText( - const ApiSetCommentTextRequest& request + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t broadcastId, + std::shared_ptr commentTextUpdateRequest + , const ApiSetCommentTextOptions& options = {} ) const; /// /// @@ -1033,15 +1037,11 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiUnBlockCommentPublicRequest - { - utility::string_t tenantId; - utility::string_t commentId; - std::shared_ptr publicBlockFromCommentParams; - boost::optional sso; - }; pplx::task> unBlockCommentPublic( - const ApiUnBlockCommentPublicRequest& request + utility::string_t tenantId, + utility::string_t commentId, + std::shared_ptr publicBlockFromCommentParams + , const ApiUnBlockCommentPublicOptions& options = {} ) const; /// /// @@ -1053,15 +1053,11 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiUnLockCommentRequest - { - utility::string_t tenantId; - utility::string_t commentId; - utility::string_t broadcastId; - boost::optional sso; - }; pplx::task> unLockComment( - const ApiUnLockCommentRequest& request + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t broadcastId + , const ApiUnLockCommentOptions& options = {} ) const; /// /// @@ -1073,15 +1069,11 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiUnPinCommentRequest - { - utility::string_t tenantId; - utility::string_t commentId; - utility::string_t broadcastId; - boost::optional sso; - }; pplx::task> unPinComment( - const ApiUnPinCommentRequest& request + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t broadcastId + , const ApiUnPinCommentOptions& options = {} ) const; /// /// @@ -1094,16 +1086,11 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiUpdateFeedPostPublicRequest - { - utility::string_t tenantId; - utility::string_t postId; - std::shared_ptr updateFeedPostParams; - boost::optional broadcastId; - boost::optional sso; - }; pplx::task> updateFeedPostPublic( - const ApiUpdateFeedPostPublicRequest& request + utility::string_t tenantId, + utility::string_t postId, + std::shared_ptr updateFeedPostParams + , const ApiUpdateFeedPostPublicOptions& options = {} ) const; /// /// @@ -1116,16 +1103,12 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiUpdateUserNotificationCommentSubscriptionStatusRequest - { - utility::string_t tenantId; - utility::string_t notificationId; - utility::string_t optedInOrOut; - utility::string_t commentId; - boost::optional sso; - }; pplx::task> updateUserNotificationCommentSubscriptionStatus( - const ApiUpdateUserNotificationCommentSubscriptionStatusRequest& request + utility::string_t tenantId, + utility::string_t notificationId, + utility::string_t optedInOrOut, + utility::string_t commentId + , const ApiUpdateUserNotificationCommentSubscriptionStatusOptions& options = {} ) const; /// /// @@ -1139,17 +1122,13 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiUpdateUserNotificationPageSubscriptionStatusRequest - { - utility::string_t tenantId; - utility::string_t urlId; - utility::string_t url; - utility::string_t pageTitle; - utility::string_t subscribedOrUnsubscribed; - boost::optional sso; - }; pplx::task> updateUserNotificationPageSubscriptionStatus( - const ApiUpdateUserNotificationPageSubscriptionStatusRequest& request + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t url, + utility::string_t pageTitle, + utility::string_t subscribedOrUnsubscribed + , const ApiUpdateUserNotificationPageSubscriptionStatusOptions& options = {} ) const; /// /// @@ -1161,15 +1140,11 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - struct ApiUpdateUserNotificationStatusRequest - { - utility::string_t tenantId; - utility::string_t notificationId; - utility::string_t newStatus; - boost::optional sso; - }; pplx::task> updateUserNotificationStatus( - const ApiUpdateUserNotificationStatusRequest& request + utility::string_t tenantId, + utility::string_t notificationId, + utility::string_t newStatus + , const ApiUpdateUserNotificationStatusOptions& options = {} ) const; /// /// @@ -1181,15 +1156,10 @@ class PublicApi /// /// Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices) (optional, default to new SizePreset()) /// Page id that upload is happening from, to configure (optional, default to utility::conversions::to_string_t("")) - struct ApiUploadImageRequest - { - utility::string_t tenantId; - std::shared_ptr file; - boost::optional> sizePreset; - boost::optional urlId; - }; pplx::task> uploadImage( - const ApiUploadImageRequest& request + utility::string_t tenantId, + std::shared_ptr file + , const ApiUploadImageOptions& options = {} ) const; /// /// @@ -1204,18 +1174,13 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - struct ApiVoteCommentRequest - { - 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; - }; pplx::task> voteComment( - const ApiVoteCommentRequest& request + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t urlId, + utility::string_t broadcastId, + std::shared_ptr voteBodyParams + , const ApiVoteCommentOptions& options = {} ) const; protected: diff --git a/client/src/api/DefaultApi.cpp b/client/src/api/DefaultApi.cpp index bce0c8d..64fb1cd 100644 --- a/client/src/api/DefaultApi.cpp +++ b/client/src/api/DefaultApi.cpp @@ -35,10 +35,11 @@ DefaultApi::~DefaultApi() { } -pplx::task> DefaultApi::addDomainConfig(const DefaultApi::ApiAddDomainConfigRequest& request) const +pplx::task> DefaultApi::addDomainConfig( + utility::string_t tenantId, + std::shared_ptr addDomainConfigParams +) const { - auto tenantId = request.tenantId; - auto addDomainConfigParams = request.addDomainConfigParams; // verify the required parameter 'addDomainConfigParams' is set if (addDomainConfigParams == nullptr) @@ -99,7 +100,6 @@ pplx::task> DefaultApi::addDomainConfig web::json::value localVarJson; localVarJson = ModelBase::toJson(addDomainConfigParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -193,10 +193,12 @@ pplx::task> DefaultApi::addDomainConfig return localVarResult; }); } -pplx::task> DefaultApi::addHashTag(const DefaultApi::ApiAddHashTagRequest& request) const +pplx::task> DefaultApi::addHashTag( + std::shared_ptr createHashTagBody + , const ApiAddHashTagOptions& options +) const { - auto tenantId = request.tenantId; - auto createHashTagBody = request.createHashTagBody; + auto tenantId = options.tenantId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -251,8 +253,7 @@ pplx::task> DefaultApi::addHashTag(const 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 ) ); } @@ -262,9 +263,9 @@ pplx::task> DefaultApi::addHashTag(const 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")); } @@ -346,10 +347,12 @@ pplx::task> DefaultApi::addHashTag(const return localVarResult; }); } -pplx::task> DefaultApi::addHashTagsBulk(const DefaultApi::ApiAddHashTagsBulkRequest& request) const +pplx::task> DefaultApi::addHashTagsBulk( + std::shared_ptr bulkCreateHashTagsBody + , const ApiAddHashTagsBulkOptions& options +) const { - auto tenantId = request.tenantId; - auto bulkCreateHashTagsBody = request.bulkCreateHashTagsBody; + auto tenantId = options.tenantId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -404,8 +407,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 ) ); } @@ -415,9 +417,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")); } @@ -499,10 +501,11 @@ pplx::task> DefaultApi::addHashTagsB return localVarResult; }); } -pplx::task> DefaultApi::addPage(const DefaultApi::ApiAddPageRequest& request) const +pplx::task> DefaultApi::addPage( + utility::string_t tenantId, + std::shared_ptr createAPIPageData +) const { - auto tenantId = request.tenantId; - auto createAPIPageData = request.createAPIPageData; // verify the required parameter 'createAPIPageData' is set if (createAPIPageData == nullptr) @@ -563,7 +566,6 @@ pplx::task> DefaultApi::addPage(const Defaul web::json::value localVarJson; localVarJson = ModelBase::toJson(createAPIPageData); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -657,10 +659,11 @@ pplx::task> DefaultApi::addPage(const Defaul return localVarResult; }); } -pplx::task> DefaultApi::addSSOUser(const DefaultApi::ApiAddSSOUserRequest& request) const +pplx::task> DefaultApi::addSSOUser( + utility::string_t tenantId, + std::shared_ptr createAPISSOUserData +) const { - auto tenantId = request.tenantId; - auto createAPISSOUserData = request.createAPISSOUserData; // verify the required parameter 'createAPISSOUserData' is set if (createAPISSOUserData == nullptr) @@ -721,7 +724,6 @@ pplx::task> DefaultApi::addSSOUser(const web::json::value localVarJson; localVarJson = ModelBase::toJson(createAPISSOUserData); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -815,12 +817,14 @@ pplx::task> DefaultApi::addSSOUser(const return localVarResult; }); } -pplx::task> DefaultApi::aggregate(const DefaultApi::ApiAggregateRequest& request) const +pplx::task> DefaultApi::aggregate( + utility::string_t tenantId, + std::shared_ptr aggregationRequest + , const ApiAggregateOptions& options +) const { - auto tenantId = request.tenantId; - auto aggregationRequest = request.aggregationRequest; - auto parentTenantId = request.parentTenantId; - auto includeStats = request.includeStats; + auto parentTenantId = options.parentTenantId; + auto includeStats = options.includeStats; // verify the required parameter 'aggregationRequest' is set if (aggregationRequest == nullptr) @@ -889,7 +893,6 @@ pplx::task> DefaultApi::aggregate(const Defau web::json::value localVarJson; localVarJson = ModelBase::toJson(aggregationRequest); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -983,15 +986,17 @@ pplx::task> DefaultApi::aggregate(const Defau return localVarResult; }); } -pplx::task> DefaultApi::aggregateQuestionResults(const DefaultApi::ApiAggregateQuestionResultsRequest& request) const +pplx::task> DefaultApi::aggregateQuestionResults( + utility::string_t tenantId + , const ApiAggregateQuestionResultsOptions& options +) const { - auto tenantId = request.tenantId; - auto questionId = request.questionId; - auto questionIds = request.questionIds; - auto urlId = request.urlId; - auto timeBucket = request.timeBucket; - auto startDate = request.startDate; - auto forceRecalculate = request.forceRecalculate; + 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() ); @@ -1147,13 +1152,15 @@ pplx::task> DefaultApi::aggreg return localVarResult; }); } -pplx::task> DefaultApi::blockUserFromComment(const DefaultApi::ApiBlockUserFromCommentRequest& request) const +pplx::task> DefaultApi::blockUserFromComment( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr blockFromCommentParams + , const ApiBlockUserFromCommentOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto blockFromCommentParams = request.blockFromCommentParams; - auto userId = request.userId; - auto anonUserId = request.anonUserId; + auto userId = options.userId; + auto anonUserId = options.anonUserId; // verify the required parameter 'blockFromCommentParams' is set if (blockFromCommentParams == nullptr) @@ -1223,7 +1230,6 @@ pplx::task> DefaultApi::blockUserFromComment(const web::json::value localVarJson; localVarJson = ModelBase::toJson(blockFromCommentParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -1317,11 +1323,13 @@ pplx::task> DefaultApi::blockUserFromComment(const return localVarResult; }); } -pplx::task> DefaultApi::bulkAggregateQuestionResults(const DefaultApi::ApiBulkAggregateQuestionResultsRequest& request) const +pplx::task> DefaultApi::bulkAggregateQuestionResults( + utility::string_t tenantId, + std::shared_ptr bulkAggregateQuestionResultsRequest + , const ApiBulkAggregateQuestionResultsOptions& options +) const { - auto tenantId = request.tenantId; - auto bulkAggregateQuestionResultsRequest = request.bulkAggregateQuestionResultsRequest; - auto forceRecalculate = request.forceRecalculate; + auto forceRecalculate = options.forceRecalculate; // verify the required parameter 'bulkAggregateQuestionResultsRequest' is set if (bulkAggregateQuestionResultsRequest == nullptr) @@ -1386,7 +1394,6 @@ pplx::task> DefaultApi::bu web::json::value localVarJson; localVarJson = ModelBase::toJson(bulkAggregateQuestionResultsRequest); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -1480,12 +1487,13 @@ pplx::task> DefaultApi::bu return localVarResult; }); } -pplx::task> DefaultApi::changeTicketState(const DefaultApi::ApiChangeTicketStateRequest& request) const +pplx::task> DefaultApi::changeTicketState( + utility::string_t tenantId, + utility::string_t userId, + utility::string_t id, + std::shared_ptr changeTicketStateBody +) const { - auto tenantId = request.tenantId; - auto userId = request.userId; - auto id = request.id; - auto changeTicketStateBody = request.changeTicketStateBody; // verify the required parameter 'changeTicketStateBody' is set if (changeTicketStateBody == nullptr) @@ -1550,7 +1558,6 @@ pplx::task> DefaultApi::changeTicketS web::json::value localVarJson; localVarJson = ModelBase::toJson(changeTicketStateBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -1644,17 +1651,19 @@ pplx::task> DefaultApi::changeTicketS return localVarResult; }); } -pplx::task> DefaultApi::combineCommentsWithQuestionResults(const DefaultApi::ApiCombineCommentsWithQuestionResultsRequest& request) const +pplx::task> DefaultApi::combineCommentsWithQuestionResults( + utility::string_t tenantId + , const ApiCombineCommentsWithQuestionResultsOptions& options +) const { - auto tenantId = request.tenantId; - auto questionId = request.questionId; - auto questionIds = request.questionIds; - auto urlId = request.urlId; - auto startDate = request.startDate; - auto forceRecalculate = request.forceRecalculate; - auto minValue = request.minValue; - auto maxValue = request.maxValue; - auto limit = request.limit; + 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() ); @@ -1818,10 +1827,11 @@ pplx::task> DefaultA return localVarResult; }); } -pplx::task> DefaultApi::createEmailTemplate(const DefaultApi::ApiCreateEmailTemplateRequest& request) const +pplx::task> DefaultApi::createEmailTemplate( + utility::string_t tenantId, + std::shared_ptr createEmailTemplateBody +) const { - auto tenantId = request.tenantId; - auto createEmailTemplateBody = request.createEmailTemplateBody; // verify the required parameter 'createEmailTemplateBody' is set if (createEmailTemplateBody == nullptr) @@ -1882,7 +1892,6 @@ pplx::task> DefaultApi::createEmail web::json::value localVarJson; localVarJson = ModelBase::toJson(createEmailTemplateBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -1976,14 +1985,16 @@ pplx::task> DefaultApi::createEmail return localVarResult; }); } -pplx::task> DefaultApi::createFeedPost(const DefaultApi::ApiCreateFeedPostRequest& request) const +pplx::task> DefaultApi::createFeedPost( + utility::string_t tenantId, + std::shared_ptr createFeedPostParams + , const ApiCreateFeedPostOptions& options +) const { - auto tenantId = request.tenantId; - auto createFeedPostParams = request.createFeedPostParams; - auto broadcastId = request.broadcastId; - auto isLive = request.isLive; - auto doSpamCheck = request.doSpamCheck; - auto skipDupCheck = request.skipDupCheck; + 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) @@ -2060,7 +2071,6 @@ pplx::task> DefaultApi::createFeedPost( web::json::value localVarJson; localVarJson = ModelBase::toJson(createFeedPostParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -2154,10 +2164,11 @@ pplx::task> DefaultApi::createFeedPost( return localVarResult; }); } -pplx::task> DefaultApi::createModerator(const DefaultApi::ApiCreateModeratorRequest& request) const +pplx::task> DefaultApi::createModerator( + utility::string_t tenantId, + std::shared_ptr createModeratorBody +) const { - auto tenantId = request.tenantId; - auto createModeratorBody = request.createModeratorBody; // verify the required parameter 'createModeratorBody' is set if (createModeratorBody == nullptr) @@ -2218,7 +2229,6 @@ pplx::task> DefaultApi::createModerator web::json::value localVarJson; localVarJson = ModelBase::toJson(createModeratorBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -2312,10 +2322,11 @@ pplx::task> DefaultApi::createModerator return localVarResult; }); } -pplx::task> DefaultApi::createQuestionConfig(const DefaultApi::ApiCreateQuestionConfigRequest& request) const +pplx::task> DefaultApi::createQuestionConfig( + utility::string_t tenantId, + std::shared_ptr createQuestionConfigBody +) const { - auto tenantId = request.tenantId; - auto createQuestionConfigBody = request.createQuestionConfigBody; // verify the required parameter 'createQuestionConfigBody' is set if (createQuestionConfigBody == nullptr) @@ -2376,7 +2387,6 @@ pplx::task> DefaultApi::createQues web::json::value localVarJson; localVarJson = ModelBase::toJson(createQuestionConfigBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -2470,10 +2480,11 @@ pplx::task> DefaultApi::createQues return localVarResult; }); } -pplx::task> DefaultApi::createQuestionResult(const DefaultApi::ApiCreateQuestionResultRequest& request) const +pplx::task> DefaultApi::createQuestionResult( + utility::string_t tenantId, + std::shared_ptr createQuestionResultBody +) const { - auto tenantId = request.tenantId; - auto createQuestionResultBody = request.createQuestionResultBody; // verify the required parameter 'createQuestionResultBody' is set if (createQuestionResultBody == nullptr) @@ -2534,7 +2545,6 @@ pplx::task> DefaultApi::createQues web::json::value localVarJson; localVarJson = ModelBase::toJson(createQuestionResultBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -2628,10 +2638,11 @@ pplx::task> DefaultApi::createQues return localVarResult; }); } -pplx::task> DefaultApi::createSubscription(const DefaultApi::ApiCreateSubscriptionRequest& request) const +pplx::task> DefaultApi::createSubscription( + utility::string_t tenantId, + std::shared_ptr createAPIUserSubscriptionData +) const { - auto tenantId = request.tenantId; - auto createAPIUserSubscriptionData = request.createAPIUserSubscriptionData; // verify the required parameter 'createAPIUserSubscriptionData' is set if (createAPIUserSubscriptionData == nullptr) @@ -2692,7 +2703,6 @@ pplx::task> DefaultApi::createSub web::json::value localVarJson; localVarJson = ModelBase::toJson(createAPIUserSubscriptionData); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -2786,10 +2796,11 @@ pplx::task> DefaultApi::createSub return localVarResult; }); } -pplx::task> DefaultApi::createTenant(const DefaultApi::ApiCreateTenantRequest& request) const +pplx::task> DefaultApi::createTenant( + utility::string_t tenantId, + std::shared_ptr createTenantBody +) const { - auto tenantId = request.tenantId; - auto createTenantBody = request.createTenantBody; // verify the required parameter 'createTenantBody' is set if (createTenantBody == nullptr) @@ -2850,7 +2861,6 @@ pplx::task> DefaultApi::createTenant(const web::json::value localVarJson; localVarJson = ModelBase::toJson(createTenantBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -2944,10 +2954,11 @@ pplx::task> DefaultApi::createTenant(const return localVarResult; }); } -pplx::task> DefaultApi::createTenantPackage(const DefaultApi::ApiCreateTenantPackageRequest& request) const +pplx::task> DefaultApi::createTenantPackage( + utility::string_t tenantId, + std::shared_ptr createTenantPackageBody +) const { - auto tenantId = request.tenantId; - auto createTenantPackageBody = request.createTenantPackageBody; // verify the required parameter 'createTenantPackageBody' is set if (createTenantPackageBody == nullptr) @@ -3008,7 +3019,6 @@ pplx::task> DefaultApi::createTenan web::json::value localVarJson; localVarJson = ModelBase::toJson(createTenantPackageBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -3102,10 +3112,11 @@ pplx::task> DefaultApi::createTenan return localVarResult; }); } -pplx::task> DefaultApi::createTenantUser(const DefaultApi::ApiCreateTenantUserRequest& request) const +pplx::task> DefaultApi::createTenantUser( + utility::string_t tenantId, + std::shared_ptr createTenantUserBody +) const { - auto tenantId = request.tenantId; - auto createTenantUserBody = request.createTenantUserBody; // verify the required parameter 'createTenantUserBody' is set if (createTenantUserBody == nullptr) @@ -3166,7 +3177,6 @@ pplx::task> DefaultApi::createTenantUs web::json::value localVarJson; localVarJson = ModelBase::toJson(createTenantUserBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -3260,11 +3270,12 @@ pplx::task> DefaultApi::createTenantUs return localVarResult; }); } -pplx::task> DefaultApi::createTicket(const DefaultApi::ApiCreateTicketRequest& request) const +pplx::task> DefaultApi::createTicket( + utility::string_t tenantId, + utility::string_t userId, + std::shared_ptr createTicketBody +) const { - auto tenantId = request.tenantId; - auto userId = request.userId; - auto createTicketBody = request.createTicketBody; // verify the required parameter 'createTicketBody' is set if (createTicketBody == nullptr) @@ -3328,7 +3339,6 @@ pplx::task> DefaultApi::createTicket(const web::json::value localVarJson; localVarJson = ModelBase::toJson(createTicketBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -3422,10 +3432,11 @@ pplx::task> DefaultApi::createTicket(const return localVarResult; }); } -pplx::task> DefaultApi::createUserBadge(const DefaultApi::ApiCreateUserBadgeRequest& request) const +pplx::task> DefaultApi::createUserBadge( + utility::string_t tenantId, + std::shared_ptr createUserBadgeParams +) const { - auto tenantId = request.tenantId; - auto createUserBadgeParams = request.createUserBadgeParams; // verify the required parameter 'createUserBadgeParams' is set if (createUserBadgeParams == nullptr) @@ -3486,7 +3497,6 @@ pplx::task> DefaultApi::createUserBa web::json::value localVarJson; localVarJson = ModelBase::toJson(createUserBadgeParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -3580,13 +3590,15 @@ pplx::task> DefaultApi::createUserBa return localVarResult; }); } -pplx::task> DefaultApi::createVote(const DefaultApi::ApiCreateVoteRequest& request) const +pplx::task> DefaultApi::createVote( + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t direction + , const ApiCreateVoteOptions& options +) const { - auto tenantId = request.tenantId; - auto commentId = request.commentId; - auto direction = request.direction; - auto userId = request.userId; - auto anonUserId = request.anonUserId; + auto userId = options.userId; + auto anonUserId = options.anonUserId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3732,12 +3744,14 @@ pplx::task> DefaultApi::createVote(const DefaultAp return localVarResult; }); } -pplx::task> DefaultApi::deleteComment(const DefaultApi::ApiDeleteCommentRequest& request) const +pplx::task> DefaultApi::deleteComment( + utility::string_t tenantId, + utility::string_t id + , const ApiDeleteCommentOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto contextUserId = request.contextUserId; - auto isLive = request.isLive; + auto contextUserId = options.contextUserId; + auto isLive = options.isLive; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3878,10 +3892,11 @@ pplx::task> DefaultApi::deleteComment(const return localVarResult; }); } -pplx::task> DefaultApi::deleteDomainConfig(const DefaultApi::ApiDeleteDomainConfigRequest& request) const +pplx::task> DefaultApi::deleteDomainConfig( + utility::string_t tenantId, + utility::string_t domain +) const { - auto tenantId = request.tenantId; - auto domain = request.domain; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4014,10 +4029,11 @@ pplx::task> DefaultApi::deleteDomain return localVarResult; }); } -pplx::task> DefaultApi::deleteEmailTemplate(const DefaultApi::ApiDeleteEmailTemplateRequest& request) const +pplx::task> DefaultApi::deleteEmailTemplate( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4150,11 +4166,12 @@ pplx::task> DefaultApi::deleteEmailTemplate(co return localVarResult; }); } -pplx::task> DefaultApi::deleteEmailTemplateRenderError(const DefaultApi::ApiDeleteEmailTemplateRenderErrorRequest& request) const +pplx::task> DefaultApi::deleteEmailTemplateRenderError( + utility::string_t tenantId, + utility::string_t id, + utility::string_t errorId +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto errorId = request.errorId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4288,11 +4305,13 @@ pplx::task> DefaultApi::deleteEmailTemplateRen return localVarResult; }); } -pplx::task> DefaultApi::deleteHashTag(const DefaultApi::ApiDeleteHashTagRequest& request) const +pplx::task> DefaultApi::deleteHashTag( + utility::string_t tag, + std::shared_ptr deleteHashTagRequestBody + , const ApiDeleteHashTagOptions& options +) const { - auto tag = request.tag; - auto tenantId = request.tenantId; - auto deleteHashTagRequestBody = request.deleteHashTagRequestBody; + auto tenantId = options.tenantId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4348,8 +4367,7 @@ pplx::task> DefaultApi::deleteHashTag(const De 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 ) ); } @@ -4359,9 +4377,9 @@ pplx::task> DefaultApi::deleteHashTag(const De 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")); } @@ -4443,11 +4461,13 @@ pplx::task> DefaultApi::deleteHashTag(const De return localVarResult; }); } -pplx::task> DefaultApi::deleteModerator(const DefaultApi::ApiDeleteModeratorRequest& request) const +pplx::task> DefaultApi::deleteModerator( + utility::string_t tenantId, + utility::string_t id + , const ApiDeleteModeratorOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto sendEmail = request.sendEmail; + auto sendEmail = options.sendEmail; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4584,10 +4604,11 @@ pplx::task> DefaultApi::deleteModerator(const return localVarResult; }); } -pplx::task> DefaultApi::deleteNotificationCount(const DefaultApi::ApiDeleteNotificationCountRequest& request) const +pplx::task> DefaultApi::deleteNotificationCount( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4720,10 +4741,11 @@ pplx::task> DefaultApi::deleteNotificationCoun return localVarResult; }); } -pplx::task> DefaultApi::deletePage(const DefaultApi::ApiDeletePageRequest& request) const +pplx::task> DefaultApi::deletePage( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4856,10 +4878,11 @@ pplx::task> DefaultApi::deletePage(const return localVarResult; }); } -pplx::task> DefaultApi::deletePendingWebhookEvent(const DefaultApi::ApiDeletePendingWebhookEventRequest& request) const +pplx::task> DefaultApi::deletePendingWebhookEvent( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4992,10 +5015,11 @@ pplx::task> DefaultApi::deletePendingWebhookEv return localVarResult; }); } -pplx::task> DefaultApi::deleteQuestionConfig(const DefaultApi::ApiDeleteQuestionConfigRequest& request) const +pplx::task> DefaultApi::deleteQuestionConfig( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5128,10 +5152,11 @@ pplx::task> DefaultApi::deleteQuestionConfig(c return localVarResult; }); } -pplx::task> DefaultApi::deleteQuestionResult(const DefaultApi::ApiDeleteQuestionResultRequest& request) const +pplx::task> DefaultApi::deleteQuestionResult( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5264,12 +5289,14 @@ pplx::task> DefaultApi::deleteQuestionResult(c return localVarResult; }); } -pplx::task> DefaultApi::deleteSSOUser(const DefaultApi::ApiDeleteSSOUserRequest& request) const +pplx::task> DefaultApi::deleteSSOUser( + utility::string_t tenantId, + utility::string_t id + , const ApiDeleteSSOUserOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto deleteComments = request.deleteComments; - auto commentDeleteMode = request.commentDeleteMode; + auto deleteComments = options.deleteComments; + auto commentDeleteMode = options.commentDeleteMode; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5410,11 +5437,13 @@ pplx::task> DefaultApi::deleteSSOUser( return localVarResult; }); } -pplx::task> DefaultApi::deleteSubscription(const DefaultApi::ApiDeleteSubscriptionRequest& request) const +pplx::task> DefaultApi::deleteSubscription( + utility::string_t tenantId, + utility::string_t id + , const ApiDeleteSubscriptionOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto userId = request.userId; + auto userId = options.userId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5551,11 +5580,13 @@ pplx::task> DefaultApi::deleteSub return localVarResult; }); } -pplx::task> DefaultApi::deleteTenant(const DefaultApi::ApiDeleteTenantRequest& request) const +pplx::task> DefaultApi::deleteTenant( + utility::string_t tenantId, + utility::string_t id + , const ApiDeleteTenantOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto sure = request.sure; + auto sure = options.sure; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5692,10 +5723,11 @@ pplx::task> DefaultApi::deleteTenant(const Def return localVarResult; }); } -pplx::task> DefaultApi::deleteTenantPackage(const DefaultApi::ApiDeleteTenantPackageRequest& request) const +pplx::task> DefaultApi::deleteTenantPackage( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5828,12 +5860,14 @@ pplx::task> DefaultApi::deleteTenantPackage(co return localVarResult; }); } -pplx::task> DefaultApi::deleteTenantUser(const DefaultApi::ApiDeleteTenantUserRequest& request) const +pplx::task> DefaultApi::deleteTenantUser( + utility::string_t tenantId, + utility::string_t id + , const ApiDeleteTenantUserOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto deleteComments = request.deleteComments; - auto commentDeleteMode = request.commentDeleteMode; + auto deleteComments = options.deleteComments; + auto commentDeleteMode = options.commentDeleteMode; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5974,10 +6008,11 @@ pplx::task> DefaultApi::deleteTenantUser(const return localVarResult; }); } -pplx::task> DefaultApi::deleteUserBadge(const DefaultApi::ApiDeleteUserBadgeRequest& request) const +pplx::task> DefaultApi::deleteUserBadge( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6110,11 +6145,13 @@ pplx::task> DefaultApi::deleteUserBadge return localVarResult; }); } -pplx::task> DefaultApi::deleteVote(const DefaultApi::ApiDeleteVoteRequest& request) const +pplx::task> DefaultApi::deleteVote( + utility::string_t tenantId, + utility::string_t id + , const ApiDeleteVoteOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto editKey = request.editKey; + auto editKey = options.editKey; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6251,12 +6288,14 @@ pplx::task> DefaultApi::deleteVote(const Def return localVarResult; }); } -pplx::task> DefaultApi::flagComment(const DefaultApi::ApiFlagCommentRequest& request) const +pplx::task> DefaultApi::flagComment( + utility::string_t tenantId, + utility::string_t id + , const ApiFlagCommentOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto userId = request.userId; - auto anonUserId = request.anonUserId; + auto userId = options.userId; + auto anonUserId = options.anonUserId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6397,14 +6436,16 @@ pplx::task> DefaultApi::flagComment(const D return localVarResult; }); } -pplx::task> DefaultApi::getAuditLogs(const DefaultApi::ApiGetAuditLogsRequest& request) const +pplx::task> DefaultApi::getAuditLogs( + utility::string_t tenantId + , const ApiGetAuditLogsOptions& options +) const { - auto tenantId = request.tenantId; - auto limit = request.limit; - auto skip = request.skip; - auto order = request.order; - auto after = request.after; - auto before = request.before; + 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() ); @@ -6556,10 +6597,11 @@ pplx::task> DefaultApi::getAuditLogs(const return localVarResult; }); } -pplx::task> DefaultApi::getCachedNotificationCount(const DefaultApi::ApiGetCachedNotificationCountRequest& request) const +pplx::task> DefaultApi::getCachedNotificationCount( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6692,10 +6734,11 @@ pplx::task> DefaultApi::getC return localVarResult; }); } -pplx::task> DefaultApi::getComment(const DefaultApi::ApiGetCommentRequest& request) const +pplx::task> DefaultApi::getComment( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6828,25 +6871,27 @@ pplx::task> DefaultApi::getComment(const return localVarResult; }); } -pplx::task> DefaultApi::getComments(const DefaultApi::ApiGetCommentsRequest& request) const +pplx::task> DefaultApi::getComments( + utility::string_t tenantId + , const ApiGetCommentsOptions& options +) const { - auto tenantId = request.tenantId; - auto page = request.page; - auto limit = request.limit; - auto skip = request.skip; - auto asTree = request.asTree; - auto skipChildren = request.skipChildren; - auto limitChildren = request.limitChildren; - auto maxTreeDepth = request.maxTreeDepth; - auto urlId = request.urlId; - auto userId = request.userId; - auto anonUserId = request.anonUserId; - auto contextUserId = request.contextUserId; - auto hashTag = request.hashTag; - auto parentId = request.parentId; - auto direction = request.direction; - auto fromDate = request.fromDate; - auto toDate = request.toDate; + 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() ); @@ -7042,10 +7087,11 @@ pplx::task> DefaultApi::getComments(cons return localVarResult; }); } -pplx::task> DefaultApi::getDomainConfig(const DefaultApi::ApiGetDomainConfigRequest& request) const +pplx::task> DefaultApi::getDomainConfig( + utility::string_t tenantId, + utility::string_t domain +) const { - auto tenantId = request.tenantId; - auto domain = request.domain; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7178,9 +7224,10 @@ pplx::task> DefaultApi::getDomainConfig return localVarResult; }); } -pplx::task> DefaultApi::getDomainConfigs(const DefaultApi::ApiGetDomainConfigsRequest& request) const +pplx::task> DefaultApi::getDomainConfigs( + utility::string_t tenantId +) const { - auto tenantId = request.tenantId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7312,10 +7359,11 @@ pplx::task> DefaultApi::getDomainConfi return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplate(const DefaultApi::ApiGetEmailTemplateRequest& request) const +pplx::task> DefaultApi::getEmailTemplate( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7448,9 +7496,10 @@ pplx::task> DefaultApi::getEmailTempla return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplateDefinitions(const DefaultApi::ApiGetEmailTemplateDefinitionsRequest& request) const +pplx::task> DefaultApi::getEmailTemplateDefinitions( + utility::string_t tenantId +) const { - auto tenantId = request.tenantId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7582,11 +7631,13 @@ pplx::task> DefaultApi::get return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplateRenderErrors(const DefaultApi::ApiGetEmailTemplateRenderErrorsRequest& request) const +pplx::task> DefaultApi::getEmailTemplateRenderErrors( + utility::string_t tenantId, + utility::string_t id + , const ApiGetEmailTemplateRenderErrorsOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto skip = request.skip; + auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7723,10 +7774,12 @@ pplx::task> DefaultApi::ge return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplates(const DefaultApi::ApiGetEmailTemplatesRequest& request) const +pplx::task> DefaultApi::getEmailTemplates( + utility::string_t tenantId + , const ApiGetEmailTemplatesOptions& options +) const { - auto tenantId = request.tenantId; - auto skip = request.skip; + auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7862,12 +7915,14 @@ pplx::task> DefaultApi::getEmailTempl return localVarResult; }); } -pplx::task> DefaultApi::getFeedPosts(const DefaultApi::ApiGetFeedPostsRequest& request) const +pplx::task> DefaultApi::getFeedPosts( + utility::string_t tenantId + , const ApiGetFeedPostsOptions& options +) const { - auto tenantId = request.tenantId; - auto afterId = request.afterId; - auto limit = request.limit; - auto tags = request.tags; + auto afterId = options.afterId; + auto limit = options.limit; + auto tags = options.tags; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -8011,10 +8066,12 @@ pplx::task> DefaultApi::getFeedPosts(const return localVarResult; }); } -pplx::task> DefaultApi::getHashTags(const DefaultApi::ApiGetHashTagsRequest& request) const +pplx::task> DefaultApi::getHashTags( + utility::string_t tenantId + , const ApiGetHashTagsOptions& options +) const { - auto tenantId = request.tenantId; - auto page = request.page; + auto page = options.page; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -8150,10 +8207,11 @@ pplx::task> DefaultApi::getHashTags(const D return localVarResult; }); } -pplx::task> DefaultApi::getModerator(const DefaultApi::ApiGetModeratorRequest& request) const +pplx::task> DefaultApi::getModerator( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -8286,10 +8344,12 @@ pplx::task> DefaultApi::getModerator(const return localVarResult; }); } -pplx::task> DefaultApi::getModerators(const DefaultApi::ApiGetModeratorsRequest& request) const +pplx::task> DefaultApi::getModerators( + utility::string_t tenantId + , const ApiGetModeratorsOptions& options +) const { - auto tenantId = request.tenantId; - auto skip = request.skip; + auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -8425,14 +8485,16 @@ pplx::task> DefaultApi::getModerators(con return localVarResult; }); } -pplx::task> DefaultApi::getNotificationCount(const DefaultApi::ApiGetNotificationCountRequest& request) const +pplx::task> DefaultApi::getNotificationCount( + utility::string_t tenantId + , const ApiGetNotificationCountOptions& options +) const { - auto tenantId = request.tenantId; - auto userId = request.userId; - auto urlId = request.urlId; - auto fromCommentId = request.fromCommentId; - auto viewed = request.viewed; - auto type = request.type; + 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() ); @@ -8584,15 +8646,17 @@ pplx::task> DefaultApi::getNotific return localVarResult; }); } -pplx::task> DefaultApi::getNotifications(const DefaultApi::ApiGetNotificationsRequest& request) const +pplx::task> DefaultApi::getNotifications( + utility::string_t tenantId + , const ApiGetNotificationsOptions& options +) const { - auto tenantId = request.tenantId; - auto userId = request.userId; - auto urlId = request.urlId; - auto fromCommentId = request.fromCommentId; - auto viewed = request.viewed; - auto type = request.type; - auto skip = request.skip; + 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() ); @@ -8748,10 +8812,11 @@ pplx::task> DefaultApi::getNotificatio return localVarResult; }); } -pplx::task> DefaultApi::getPageByURLId(const DefaultApi::ApiGetPageByURLIdRequest& request) const +pplx::task> DefaultApi::getPageByURLId( + utility::string_t tenantId, + utility::string_t urlId +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -8886,9 +8951,10 @@ pplx::task> DefaultApi::getPageByURLI return localVarResult; }); } -pplx::task> DefaultApi::getPages(const DefaultApi::ApiGetPagesRequest& request) const +pplx::task> DefaultApi::getPages( + utility::string_t tenantId +) const { - auto tenantId = request.tenantId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -9020,15 +9086,17 @@ pplx::task> DefaultApi::getPages(const Defa return localVarResult; }); } -pplx::task> DefaultApi::getPendingWebhookEventCount(const DefaultApi::ApiGetPendingWebhookEventCountRequest& request) const +pplx::task> DefaultApi::getPendingWebhookEventCount( + utility::string_t tenantId + , const ApiGetPendingWebhookEventCountOptions& options +) const { - auto tenantId = request.tenantId; - auto commentId = request.commentId; - auto externalId = request.externalId; - auto eventType = request.eventType; - auto type = request.type; - auto domain = request.domain; - auto attemptCountGT = request.attemptCountGT; + 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() ); @@ -9184,16 +9252,18 @@ pplx::task> DefaultApi::get return localVarResult; }); } -pplx::task> DefaultApi::getPendingWebhookEvents(const DefaultApi::ApiGetPendingWebhookEventsRequest& request) const +pplx::task> DefaultApi::getPendingWebhookEvents( + utility::string_t tenantId + , const ApiGetPendingWebhookEventsOptions& options +) const { - auto tenantId = request.tenantId; - auto commentId = request.commentId; - auto externalId = request.externalId; - auto eventType = request.eventType; - auto type = request.type; - auto domain = request.domain; - auto attemptCountGT = request.attemptCountGT; - auto skip = request.skip; + 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() ); @@ -9353,10 +9423,11 @@ pplx::task> DefaultApi::getPend return localVarResult; }); } -pplx::task> DefaultApi::getQuestionConfig(const DefaultApi::ApiGetQuestionConfigRequest& request) const +pplx::task> DefaultApi::getQuestionConfig( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -9489,10 +9560,12 @@ pplx::task> DefaultApi::getQuestionCo return localVarResult; }); } -pplx::task> DefaultApi::getQuestionConfigs(const DefaultApi::ApiGetQuestionConfigsRequest& request) const +pplx::task> DefaultApi::getQuestionConfigs( + utility::string_t tenantId + , const ApiGetQuestionConfigsOptions& options +) const { - auto tenantId = request.tenantId; - auto skip = request.skip; + auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -9628,10 +9701,11 @@ pplx::task> DefaultApi::getQuestionC return localVarResult; }); } -pplx::task> DefaultApi::getQuestionResult(const DefaultApi::ApiGetQuestionResultRequest& request) const +pplx::task> DefaultApi::getQuestionResult( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -9764,15 +9838,17 @@ pplx::task> DefaultApi::getQuestionRe return localVarResult; }); } -pplx::task> DefaultApi::getQuestionResults(const DefaultApi::ApiGetQuestionResultsRequest& request) const +pplx::task> DefaultApi::getQuestionResults( + utility::string_t tenantId + , const ApiGetQuestionResultsOptions& options +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; - auto userId = request.userId; - auto startDate = request.startDate; - auto questionId = request.questionId; - auto questionIds = request.questionIds; - auto skip = request.skip; + 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() ); @@ -9928,10 +10004,11 @@ pplx::task> DefaultApi::getQuestionR return localVarResult; }); } -pplx::task> DefaultApi::getSSOUserByEmail(const DefaultApi::ApiGetSSOUserByEmailRequest& request) const +pplx::task> DefaultApi::getSSOUserByEmail( + utility::string_t tenantId, + utility::string_t email +) const { - auto tenantId = request.tenantId; - auto email = request.email; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -10064,10 +10141,11 @@ pplx::task> DefaultApi::getSSOUser return localVarResult; }); } -pplx::task> DefaultApi::getSSOUserById(const DefaultApi::ApiGetSSOUserByIdRequest& request) const +pplx::task> DefaultApi::getSSOUserById( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -10200,10 +10278,12 @@ pplx::task> DefaultApi::getSSOUserByI return localVarResult; }); } -pplx::task> DefaultApi::getSSOUsers(const DefaultApi::ApiGetSSOUsersRequest& request) const +pplx::task> DefaultApi::getSSOUsers( + utility::string_t tenantId + , const ApiGetSSOUsersOptions& options +) const { - auto tenantId = request.tenantId; - auto skip = request.skip; + auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -10339,10 +10419,12 @@ pplx::task> DefaultApi::getSSOUsers(const D return localVarResult; }); } -pplx::task> DefaultApi::getSubscriptions(const DefaultApi::ApiGetSubscriptionsRequest& request) const +pplx::task> DefaultApi::getSubscriptions( + utility::string_t tenantId + , const ApiGetSubscriptionsOptions& options +) const { - auto tenantId = request.tenantId; - auto userId = request.userId; + auto userId = options.userId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -10478,10 +10560,11 @@ pplx::task> DefaultApi::getSubscrip return localVarResult; }); } -pplx::task> DefaultApi::getTenant(const DefaultApi::ApiGetTenantRequest& request) const +pplx::task> DefaultApi::getTenant( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -10614,13 +10697,15 @@ pplx::task> DefaultApi::getTenant(const Defau return localVarResult; }); } -pplx::task> DefaultApi::getTenantDailyUsages(const DefaultApi::ApiGetTenantDailyUsagesRequest& request) const +pplx::task> DefaultApi::getTenantDailyUsages( + utility::string_t tenantId + , const ApiGetTenantDailyUsagesOptions& options +) const { - auto tenantId = request.tenantId; - auto yearNumber = request.yearNumber; - auto monthNumber = request.monthNumber; - auto dayNumber = request.dayNumber; - auto skip = request.skip; + auto yearNumber = options.yearNumber; + auto monthNumber = options.monthNumber; + auto dayNumber = options.dayNumber; + auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -10768,10 +10853,11 @@ pplx::task> DefaultApi::getTenantD return localVarResult; }); } -pplx::task> DefaultApi::getTenantPackage(const DefaultApi::ApiGetTenantPackageRequest& request) const +pplx::task> DefaultApi::getTenantPackage( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -10904,10 +10990,12 @@ pplx::task> DefaultApi::getTenantPacka return localVarResult; }); } -pplx::task> DefaultApi::getTenantPackages(const DefaultApi::ApiGetTenantPackagesRequest& request) const +pplx::task> DefaultApi::getTenantPackages( + utility::string_t tenantId + , const ApiGetTenantPackagesOptions& options +) const { - auto tenantId = request.tenantId; - auto skip = request.skip; + auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11043,10 +11131,11 @@ pplx::task> DefaultApi::getTenantPack return localVarResult; }); } -pplx::task> DefaultApi::getTenantUser(const DefaultApi::ApiGetTenantUserRequest& request) const +pplx::task> DefaultApi::getTenantUser( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11179,10 +11268,12 @@ pplx::task> DefaultApi::getTenantUser(con return localVarResult; }); } -pplx::task> DefaultApi::getTenantUsers(const DefaultApi::ApiGetTenantUsersRequest& request) const +pplx::task> DefaultApi::getTenantUsers( + utility::string_t tenantId + , const ApiGetTenantUsersOptions& options +) const { - auto tenantId = request.tenantId; - auto skip = request.skip; + auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11318,11 +11409,13 @@ pplx::task> DefaultApi::getTenantUsers(c return localVarResult; }); } -pplx::task> DefaultApi::getTenants(const DefaultApi::ApiGetTenantsRequest& request) const +pplx::task> DefaultApi::getTenants( + utility::string_t tenantId + , const ApiGetTenantsOptions& options +) const { - auto tenantId = request.tenantId; - auto meta = request.meta; - auto skip = request.skip; + auto meta = options.meta; + auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11462,11 +11555,13 @@ pplx::task> DefaultApi::getTenants(const Def return localVarResult; }); } -pplx::task> DefaultApi::getTicket(const DefaultApi::ApiGetTicketRequest& request) const +pplx::task> DefaultApi::getTicket( + utility::string_t tenantId, + utility::string_t id + , const ApiGetTicketOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto userId = request.userId; + auto userId = options.userId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11603,13 +11698,15 @@ pplx::task> DefaultApi::getTicket(const Defau return localVarResult; }); } -pplx::task> DefaultApi::getTickets(const DefaultApi::ApiGetTicketsRequest& request) const +pplx::task> DefaultApi::getTickets( + utility::string_t tenantId + , const ApiGetTicketsOptions& options +) const { - auto tenantId = request.tenantId; - auto userId = request.userId; - auto state = request.state; - auto skip = request.skip; - auto limit = request.limit; + auto userId = options.userId; + auto state = options.state; + auto skip = options.skip; + auto limit = options.limit; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11757,10 +11854,11 @@ pplx::task> DefaultApi::getTickets(const Def return localVarResult; }); } -pplx::task> DefaultApi::getUser(const DefaultApi::ApiGetUserRequest& request) const +pplx::task> DefaultApi::getUser( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11893,10 +11991,11 @@ pplx::task> DefaultApi::getUser(const DefaultAp return localVarResult; }); } -pplx::task> DefaultApi::getUserBadge(const DefaultApi::ApiGetUserBadgeRequest& request) const +pplx::task> DefaultApi::getUserBadge( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -12029,10 +12128,11 @@ pplx::task> DefaultApi::getUserBadge(co return localVarResult; }); } -pplx::task> DefaultApi::getUserBadgeProgressById(const DefaultApi::ApiGetUserBadgeProgressByIdRequest& request) const +pplx::task> DefaultApi::getUserBadgeProgressById( + utility::string_t tenantId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -12165,10 +12265,11 @@ pplx::task> DefaultApi::getUser return localVarResult; }); } -pplx::task> DefaultApi::getUserBadgeProgressByUserId(const DefaultApi::ApiGetUserBadgeProgressByUserIdRequest& request) const +pplx::task> DefaultApi::getUserBadgeProgressByUserId( + utility::string_t tenantId, + utility::string_t userId +) const { - auto tenantId = request.tenantId; - auto userId = request.userId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -12301,12 +12402,14 @@ pplx::task> DefaultApi::getUser return localVarResult; }); } -pplx::task> DefaultApi::getUserBadgeProgressList(const DefaultApi::ApiGetUserBadgeProgressListRequest& request) const +pplx::task> DefaultApi::getUserBadgeProgressList( + utility::string_t tenantId + , const ApiGetUserBadgeProgressListOptions& options +) const { - auto tenantId = request.tenantId; - auto userId = request.userId; - auto limit = request.limit; - auto skip = request.skip; + auto userId = options.userId; + auto limit = options.limit; + auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -12450,15 +12553,17 @@ pplx::task> DefaultApi::get return localVarResult; }); } -pplx::task> DefaultApi::getUserBadges(const DefaultApi::ApiGetUserBadgesRequest& request) const +pplx::task> DefaultApi::getUserBadges( + utility::string_t tenantId + , const ApiGetUserBadgesOptions& options +) const { - auto tenantId = request.tenantId; - auto userId = request.userId; - auto badgeId = request.badgeId; - auto type = request.type; - auto displayedOnComments = request.displayedOnComments; - auto limit = request.limit; - auto skip = request.skip; + 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() ); @@ -12614,10 +12719,11 @@ pplx::task> DefaultApi::getUserBadges( return localVarResult; }); } -pplx::task> DefaultApi::getVotes(const DefaultApi::ApiGetVotesRequest& request) const +pplx::task> DefaultApi::getVotes( + utility::string_t tenantId, + utility::string_t urlId +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -12752,12 +12858,14 @@ pplx::task> DefaultApi::getVotes(const Default return localVarResult; }); } -pplx::task> DefaultApi::getVotesForUser(const DefaultApi::ApiGetVotesForUserRequest& request) const +pplx::task> DefaultApi::getVotesForUser( + utility::string_t tenantId, + utility::string_t urlId + , const ApiGetVotesForUserOptions& options +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; - auto userId = request.userId; - auto anonUserId = request.anonUserId; + auto userId = options.userId; + auto anonUserId = options.anonUserId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -12900,11 +13008,12 @@ pplx::task> DefaultApi::getVotesForUser return localVarResult; }); } -pplx::task> DefaultApi::patchDomainConfig(const DefaultApi::ApiPatchDomainConfigRequest& request) const +pplx::task> DefaultApi::patchDomainConfig( + utility::string_t tenantId, + utility::string_t domainToUpdate, + std::shared_ptr patchDomainConfigParams +) const { - auto tenantId = request.tenantId; - auto domainToUpdate = request.domainToUpdate; - auto patchDomainConfigParams = request.patchDomainConfigParams; // verify the required parameter 'patchDomainConfigParams' is set if (patchDomainConfigParams == nullptr) @@ -12966,7 +13075,6 @@ pplx::task> DefaultApi::patchDomainCo web::json::value localVarJson; localVarJson = ModelBase::toJson(patchDomainConfigParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -13060,11 +13168,13 @@ pplx::task> DefaultApi::patchDomainCo return localVarResult; }); } -pplx::task> DefaultApi::patchHashTag(const DefaultApi::ApiPatchHashTagRequest& request) const +pplx::task> DefaultApi::patchHashTag( + utility::string_t tag, + std::shared_ptr updateHashTagBody + , const ApiPatchHashTagOptions& options +) const { - auto tag = request.tag; - auto tenantId = request.tenantId; - auto updateHashTagBody = request.updateHashTagBody; + auto tenantId = options.tenantId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -13120,8 +13230,7 @@ pplx::task> DefaultApi::patchHashTag(cons 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 ) ); } @@ -13131,9 +13240,9 @@ pplx::task> DefaultApi::patchHashTag(cons 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")); } @@ -13215,11 +13324,12 @@ pplx::task> DefaultApi::patchHashTag(cons return localVarResult; }); } -pplx::task> DefaultApi::patchPage(const DefaultApi::ApiPatchPageRequest& request) const +pplx::task> DefaultApi::patchPage( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateAPIPageData +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto updateAPIPageData = request.updateAPIPageData; // verify the required parameter 'updateAPIPageData' is set if (updateAPIPageData == nullptr) @@ -13281,7 +13391,6 @@ pplx::task> DefaultApi::patchPage(const De web::json::value localVarJson; localVarJson = ModelBase::toJson(updateAPIPageData); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -13375,12 +13484,14 @@ pplx::task> DefaultApi::patchPage(const De return localVarResult; }); } -pplx::task> DefaultApi::patchSSOUser(const DefaultApi::ApiPatchSSOUserRequest& request) const +pplx::task> DefaultApi::patchSSOUser( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateAPISSOUserData + , const ApiPatchSSOUserOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto updateAPISSOUserData = request.updateAPISSOUserData; - auto updateComments = request.updateComments; + auto updateComments = options.updateComments; // verify the required parameter 'updateAPISSOUserData' is set if (updateAPISSOUserData == nullptr) @@ -13446,7 +13557,6 @@ pplx::task> DefaultApi::patchSSOUser(co web::json::value localVarJson; localVarJson = ModelBase::toJson(updateAPISSOUserData); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -13540,11 +13650,12 @@ pplx::task> DefaultApi::patchSSOUser(co return localVarResult; }); } -pplx::task> DefaultApi::putDomainConfig(const DefaultApi::ApiPutDomainConfigRequest& request) const +pplx::task> DefaultApi::putDomainConfig( + utility::string_t tenantId, + utility::string_t domainToUpdate, + std::shared_ptr updateDomainConfigParams +) const { - auto tenantId = request.tenantId; - auto domainToUpdate = request.domainToUpdate; - auto updateDomainConfigParams = request.updateDomainConfigParams; // verify the required parameter 'updateDomainConfigParams' is set if (updateDomainConfigParams == nullptr) @@ -13606,7 +13717,6 @@ pplx::task> DefaultApi::putDomainConfig web::json::value localVarJson; localVarJson = ModelBase::toJson(updateDomainConfigParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -13700,12 +13810,14 @@ pplx::task> DefaultApi::putDomainConfig return localVarResult; }); } -pplx::task> DefaultApi::putSSOUser(const DefaultApi::ApiPutSSOUserRequest& request) const +pplx::task> DefaultApi::putSSOUser( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateAPISSOUserData + , const ApiPutSSOUserOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto updateAPISSOUserData = request.updateAPISSOUserData; - auto updateComments = request.updateComments; + auto updateComments = options.updateComments; // verify the required parameter 'updateAPISSOUserData' is set if (updateAPISSOUserData == nullptr) @@ -13771,7 +13883,6 @@ pplx::task> DefaultApi::putSSOUser(const web::json::value localVarJson; localVarJson = ModelBase::toJson(updateAPISSOUserData); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -13865,11 +13976,13 @@ pplx::task> DefaultApi::putSSOUser(const return localVarResult; }); } -pplx::task> DefaultApi::renderEmailTemplate(const DefaultApi::ApiRenderEmailTemplateRequest& request) const +pplx::task> DefaultApi::renderEmailTemplate( + utility::string_t tenantId, + std::shared_ptr renderEmailTemplateBody + , const ApiRenderEmailTemplateOptions& options +) const { - auto tenantId = request.tenantId; - auto renderEmailTemplateBody = request.renderEmailTemplateBody; - auto locale = request.locale; + auto locale = options.locale; // verify the required parameter 'renderEmailTemplateBody' is set if (renderEmailTemplateBody == nullptr) @@ -13934,7 +14047,6 @@ pplx::task> DefaultApi::renderEmail web::json::value localVarJson; localVarJson = ModelBase::toJson(renderEmailTemplateBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -14028,11 +14140,12 @@ pplx::task> DefaultApi::renderEmail return localVarResult; }); } -pplx::task> DefaultApi::replaceTenantPackage(const DefaultApi::ApiReplaceTenantPackageRequest& request) const +pplx::task> DefaultApi::replaceTenantPackage( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr replaceTenantPackageBody +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto replaceTenantPackageBody = request.replaceTenantPackageBody; // verify the required parameter 'replaceTenantPackageBody' is set if (replaceTenantPackageBody == nullptr) @@ -14094,7 +14207,6 @@ pplx::task> DefaultApi::replaceTenantPackage(c web::json::value localVarJson; localVarJson = ModelBase::toJson(replaceTenantPackageBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -14188,12 +14300,14 @@ pplx::task> DefaultApi::replaceTenantPackage(c return localVarResult; }); } -pplx::task> DefaultApi::replaceTenantUser(const DefaultApi::ApiReplaceTenantUserRequest& request) const +pplx::task> DefaultApi::replaceTenantUser( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr replaceTenantUserBody + , const ApiReplaceTenantUserOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto replaceTenantUserBody = request.replaceTenantUserBody; - auto updateComments = request.updateComments; + auto updateComments = options.updateComments; // verify the required parameter 'replaceTenantUserBody' is set if (replaceTenantUserBody == nullptr) @@ -14259,7 +14373,6 @@ pplx::task> DefaultApi::replaceTenantUser(cons web::json::value localVarJson; localVarJson = ModelBase::toJson(replaceTenantUserBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -14353,14 +14466,16 @@ pplx::task> DefaultApi::replaceTenantUser(cons return localVarResult; }); } -pplx::task> DefaultApi::saveComment(const DefaultApi::ApiSaveCommentRequest& request) const +pplx::task> DefaultApi::saveComment( + utility::string_t tenantId, + std::shared_ptr createCommentParams + , const ApiSaveCommentOptions& options +) const { - auto tenantId = request.tenantId; - auto createCommentParams = request.createCommentParams; - auto isLive = request.isLive; - auto doSpamCheck = request.doSpamCheck; - auto sendEmails = request.sendEmails; - auto populateNotifications = request.populateNotifications; + 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) @@ -14437,7 +14552,6 @@ pplx::task> DefaultApi::saveComment(cons web::json::value localVarJson; localVarJson = ModelBase::toJson(createCommentParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -14531,14 +14645,16 @@ pplx::task> DefaultApi::saveComment(cons return localVarResult; }); } -pplx::task>> DefaultApi::saveCommentsBulk(const DefaultApi::ApiSaveCommentsBulkRequest& request) const +pplx::task>> DefaultApi::saveCommentsBulk( + utility::string_t tenantId, + std::vector> createCommentParams + , const ApiSaveCommentsBulkOptions& options +) const { - auto tenantId = request.tenantId; - auto createCommentParams = request.createCommentParams; - auto isLive = request.isLive; - auto doSpamCheck = request.doSpamCheck; - auto sendEmails = request.sendEmails; - auto populateNotifications = request.populateNotifications; + auto isLive = options.isLive; + auto doSpamCheck = options.doSpamCheck; + auto sendEmails = options.sendEmails; + auto populateNotifications = options.populateNotifications; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -14718,11 +14834,12 @@ pplx::task>> DefaultApi::s return localVarResult; }); } -pplx::task> DefaultApi::sendInvite(const DefaultApi::ApiSendInviteRequest& request) const +pplx::task> DefaultApi::sendInvite( + utility::string_t tenantId, + utility::string_t id, + utility::string_t fromName +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto fromName = request.fromName; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -14858,11 +14975,13 @@ pplx::task> DefaultApi::sendInvite(const Defau return localVarResult; }); } -pplx::task> DefaultApi::sendLoginLink(const DefaultApi::ApiSendLoginLinkRequest& request) const +pplx::task> DefaultApi::sendLoginLink( + utility::string_t tenantId, + utility::string_t id + , const ApiSendLoginLinkOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto redirectURL = request.redirectURL; + auto redirectURL = options.redirectURL; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -14999,13 +15118,15 @@ pplx::task> DefaultApi::sendLoginLink(const De return localVarResult; }); } -pplx::task> DefaultApi::unBlockUserFromComment(const DefaultApi::ApiUnBlockUserFromCommentRequest& request) const +pplx::task> DefaultApi::unBlockUserFromComment( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr unBlockFromCommentParams + , const ApiUnBlockUserFromCommentOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto unBlockFromCommentParams = request.unBlockFromCommentParams; - auto userId = request.userId; - auto anonUserId = request.anonUserId; + auto userId = options.userId; + auto anonUserId = options.anonUserId; // verify the required parameter 'unBlockFromCommentParams' is set if (unBlockFromCommentParams == nullptr) @@ -15075,7 +15196,6 @@ pplx::task> DefaultApi::unBlockUserFromComment(c web::json::value localVarJson; localVarJson = ModelBase::toJson(unBlockFromCommentParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -15169,12 +15289,14 @@ pplx::task> DefaultApi::unBlockUserFromComment(c return localVarResult; }); } -pplx::task> DefaultApi::unFlagComment(const DefaultApi::ApiUnFlagCommentRequest& request) const +pplx::task> DefaultApi::unFlagComment( + utility::string_t tenantId, + utility::string_t id + , const ApiUnFlagCommentOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto userId = request.userId; - auto anonUserId = request.anonUserId; + auto userId = options.userId; + auto anonUserId = options.anonUserId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -15315,14 +15437,16 @@ pplx::task> DefaultApi::unFlagComment(const return localVarResult; }); } -pplx::task> DefaultApi::updateComment(const DefaultApi::ApiUpdateCommentRequest& request) const +pplx::task> DefaultApi::updateComment( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updatableCommentParams + , const ApiUpdateCommentOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto updatableCommentParams = request.updatableCommentParams; - auto contextUserId = request.contextUserId; - auto doSpamCheck = request.doSpamCheck; - auto isLive = request.isLive; + auto contextUserId = options.contextUserId; + auto doSpamCheck = options.doSpamCheck; + auto isLive = options.isLive; // verify the required parameter 'updatableCommentParams' is set if (updatableCommentParams == nullptr) @@ -15396,7 +15520,6 @@ pplx::task> DefaultApi::updateComment(const De web::json::value localVarJson; localVarJson = ModelBase::toJson(updatableCommentParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -15490,11 +15613,12 @@ pplx::task> DefaultApi::updateComment(const De return localVarResult; }); } -pplx::task> DefaultApi::updateEmailTemplate(const DefaultApi::ApiUpdateEmailTemplateRequest& request) const +pplx::task> DefaultApi::updateEmailTemplate( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateEmailTemplateBody +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto updateEmailTemplateBody = request.updateEmailTemplateBody; // verify the required parameter 'updateEmailTemplateBody' is set if (updateEmailTemplateBody == nullptr) @@ -15556,7 +15680,6 @@ pplx::task> DefaultApi::updateEmailTemplate(co web::json::value localVarJson; localVarJson = ModelBase::toJson(updateEmailTemplateBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -15650,11 +15773,12 @@ pplx::task> DefaultApi::updateEmailTemplate(co return localVarResult; }); } -pplx::task> DefaultApi::updateFeedPost(const DefaultApi::ApiUpdateFeedPostRequest& request) const +pplx::task> DefaultApi::updateFeedPost( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr feedPost +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto feedPost = request.feedPost; // verify the required parameter 'feedPost' is set if (feedPost == nullptr) @@ -15716,7 +15840,6 @@ pplx::task> DefaultApi::updateFeedPost(const D web::json::value localVarJson; localVarJson = ModelBase::toJson(feedPost); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -15810,11 +15933,12 @@ pplx::task> DefaultApi::updateFeedPost(const D return localVarResult; }); } -pplx::task> DefaultApi::updateModerator(const DefaultApi::ApiUpdateModeratorRequest& request) const +pplx::task> DefaultApi::updateModerator( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateModeratorBody +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto updateModeratorBody = request.updateModeratorBody; // verify the required parameter 'updateModeratorBody' is set if (updateModeratorBody == nullptr) @@ -15876,7 +16000,6 @@ pplx::task> DefaultApi::updateModerator(const web::json::value localVarJson; localVarJson = ModelBase::toJson(updateModeratorBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -15970,12 +16093,14 @@ pplx::task> DefaultApi::updateModerator(const return localVarResult; }); } -pplx::task> DefaultApi::updateNotification(const DefaultApi::ApiUpdateNotificationRequest& request) const +pplx::task> DefaultApi::updateNotification( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateNotificationBody + , const ApiUpdateNotificationOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto updateNotificationBody = request.updateNotificationBody; - auto userId = request.userId; + auto userId = options.userId; // verify the required parameter 'updateNotificationBody' is set if (updateNotificationBody == nullptr) @@ -16041,7 +16166,6 @@ pplx::task> DefaultApi::updateNotification(con web::json::value localVarJson; localVarJson = ModelBase::toJson(updateNotificationBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -16135,11 +16259,12 @@ pplx::task> DefaultApi::updateNotification(con return localVarResult; }); } -pplx::task> DefaultApi::updateQuestionConfig(const DefaultApi::ApiUpdateQuestionConfigRequest& request) const +pplx::task> DefaultApi::updateQuestionConfig( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateQuestionConfigBody +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto updateQuestionConfigBody = request.updateQuestionConfigBody; // verify the required parameter 'updateQuestionConfigBody' is set if (updateQuestionConfigBody == nullptr) @@ -16201,7 +16326,6 @@ pplx::task> DefaultApi::updateQuestionConfig(c web::json::value localVarJson; localVarJson = ModelBase::toJson(updateQuestionConfigBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -16295,11 +16419,12 @@ pplx::task> DefaultApi::updateQuestionConfig(c return localVarResult; }); } -pplx::task> DefaultApi::updateQuestionResult(const DefaultApi::ApiUpdateQuestionResultRequest& request) const +pplx::task> DefaultApi::updateQuestionResult( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateQuestionResultBody +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto updateQuestionResultBody = request.updateQuestionResultBody; // verify the required parameter 'updateQuestionResultBody' is set if (updateQuestionResultBody == nullptr) @@ -16361,7 +16486,6 @@ pplx::task> DefaultApi::updateQuestionResult(c web::json::value localVarJson; localVarJson = ModelBase::toJson(updateQuestionResultBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -16455,12 +16579,14 @@ pplx::task> DefaultApi::updateQuestionResult(c return localVarResult; }); } -pplx::task> DefaultApi::updateSubscription(const DefaultApi::ApiUpdateSubscriptionRequest& request) const +pplx::task> DefaultApi::updateSubscription( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateAPIUserSubscriptionData + , const ApiUpdateSubscriptionOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto updateAPIUserSubscriptionData = request.updateAPIUserSubscriptionData; - auto userId = request.userId; + auto userId = options.userId; // verify the required parameter 'updateAPIUserSubscriptionData' is set if (updateAPIUserSubscriptionData == nullptr) @@ -16526,7 +16652,6 @@ pplx::task> DefaultApi::updateSub web::json::value localVarJson; localVarJson = ModelBase::toJson(updateAPIUserSubscriptionData); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -16620,11 +16745,12 @@ pplx::task> DefaultApi::updateSub return localVarResult; }); } -pplx::task> DefaultApi::updateTenant(const DefaultApi::ApiUpdateTenantRequest& request) const +pplx::task> DefaultApi::updateTenant( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateTenantBody +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto updateTenantBody = request.updateTenantBody; // verify the required parameter 'updateTenantBody' is set if (updateTenantBody == nullptr) @@ -16686,7 +16812,6 @@ pplx::task> DefaultApi::updateTenant(const Def web::json::value localVarJson; localVarJson = ModelBase::toJson(updateTenantBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -16780,11 +16905,12 @@ pplx::task> DefaultApi::updateTenant(const Def return localVarResult; }); } -pplx::task> DefaultApi::updateTenantPackage(const DefaultApi::ApiUpdateTenantPackageRequest& request) const +pplx::task> DefaultApi::updateTenantPackage( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateTenantPackageBody +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto updateTenantPackageBody = request.updateTenantPackageBody; // verify the required parameter 'updateTenantPackageBody' is set if (updateTenantPackageBody == nullptr) @@ -16846,7 +16972,6 @@ pplx::task> DefaultApi::updateTenantPackage(co web::json::value localVarJson; localVarJson = ModelBase::toJson(updateTenantPackageBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -16940,12 +17065,14 @@ pplx::task> DefaultApi::updateTenantPackage(co return localVarResult; }); } -pplx::task> DefaultApi::updateTenantUser(const DefaultApi::ApiUpdateTenantUserRequest& request) const +pplx::task> DefaultApi::updateTenantUser( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateTenantUserBody + , const ApiUpdateTenantUserOptions& options +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto updateTenantUserBody = request.updateTenantUserBody; - auto updateComments = request.updateComments; + auto updateComments = options.updateComments; // verify the required parameter 'updateTenantUserBody' is set if (updateTenantUserBody == nullptr) @@ -17011,7 +17138,6 @@ pplx::task> DefaultApi::updateTenantUser(const web::json::value localVarJson; localVarJson = ModelBase::toJson(updateTenantUserBody); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -17105,11 +17231,12 @@ pplx::task> DefaultApi::updateTenantUser(const return localVarResult; }); } -pplx::task> DefaultApi::updateUserBadge(const DefaultApi::ApiUpdateUserBadgeRequest& request) const +pplx::task> DefaultApi::updateUserBadge( + utility::string_t tenantId, + utility::string_t id, + std::shared_ptr updateUserBadgeParams +) const { - auto tenantId = request.tenantId; - auto id = request.id; - auto updateUserBadgeParams = request.updateUserBadgeParams; // verify the required parameter 'updateUserBadgeParams' is set if (updateUserBadgeParams == nullptr) @@ -17171,7 +17298,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 baa6125..0b50555 100644 --- a/client/src/api/ModerationApi.cpp +++ b/client/src/api/ModerationApi.cpp @@ -35,13 +35,15 @@ ModerationApi::~ModerationApi() { } -pplx::task> ModerationApi::deleteModerationVote(const ModerationApi::ApiDeleteModerationVoteRequest& request) const +pplx::task> ModerationApi::deleteModerationVote( + utility::string_t commentId, + utility::string_t voteId + , const ApiDeleteModerationVoteOptions& options +) const { - auto commentId = request.commentId; - auto voteId = request.voteId; - auto tenantId = request.tenantId; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -176,18 +178,20 @@ pplx::task> ModerationApi::deleteModerationV return localVarResult; }); } -pplx::task> ModerationApi::getApiComments(const ModerationApi::ApiGetApiCommentsRequest& request) const +pplx::task> ModerationApi::getApiComments( + const ApiGetApiCommentsOptions& options +) const { - auto page = request.page; - auto count = request.count; - auto textSearch = request.textSearch; - auto byIPFromComment = request.byIPFromComment; - auto filters = request.filters; - auto searchFilters = request.searchFilters; - auto sorts = request.sorts; - auto demo = request.demo; - auto tenantId = request.tenantId; - auto sso = request.sso; + 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 tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -348,11 +352,13 @@ pplx::task> ModerationApi::get return localVarResult; }); } -pplx::task> ModerationApi::getApiExportStatus(const ModerationApi::ApiGetApiExportStatusRequest& request) const +pplx::task> ModerationApi::getApiExportStatus( + const ApiGetApiExportStatusOptions& options +) const { - auto batchJobId = request.batchJobId; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto batchJobId = options.batchJobId; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -485,16 +491,18 @@ pplx::task> ModerationApi::getAp return localVarResult; }); } -pplx::task> ModerationApi::getApiIds(const ModerationApi::ApiGetApiIdsRequest& request) const +pplx::task> ModerationApi::getApiIds( + const ApiGetApiIdsOptions& options +) const { - auto textSearch = request.textSearch; - auto byIPFromComment = request.byIPFromComment; - auto filters = request.filters; - auto searchFilters = request.searchFilters; - auto afterId = request.afterId; - auto demo = request.demo; - auto tenantId = request.tenantId; - auto sso = request.sso; + 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 tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -647,11 +655,13 @@ pplx::task> ModerationApi::g return localVarResult; }); } -pplx::task> ModerationApi::getBanUsersFromComment(const ModerationApi::ApiGetBanUsersFromCommentRequest& request) const +pplx::task> ModerationApi::getBanUsersFromComment( + utility::string_t commentId + , const ApiGetBanUsersFromCommentOptions& options +) const { - auto commentId = request.commentId; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -781,11 +791,13 @@ pplx::task> ModerationApi::ge return localVarResult; }); } -pplx::task> ModerationApi::getCommentBanStatus(const ModerationApi::ApiGetCommentBanStatusRequest& request) const +pplx::task> ModerationApi::getCommentBanStatus( + utility::string_t commentId + , const ApiGetCommentBanStatusOptions& options +) const { - auto commentId = request.commentId; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -915,11 +927,13 @@ pplx::task> ModerationApi::getComme return localVarResult; }); } -pplx::task> ModerationApi::getCommentChildren(const ModerationApi::ApiGetCommentChildrenRequest& request) const +pplx::task> ModerationApi::getCommentChildren( + utility::string_t commentId + , const ApiGetCommentChildrenOptions& options +) const { - auto commentId = request.commentId; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1049,15 +1063,17 @@ pplx::task> ModerationApi::g return localVarResult; }); } -pplx::task> ModerationApi::getCount(const ModerationApi::ApiGetCountRequest& request) const +pplx::task> ModerationApi::getCount( + const ApiGetCountOptions& options +) const { - auto textSearch = request.textSearch; - auto byIPFromComment = request.byIPFromComment; - auto filter = request.filter; - auto searchFilters = request.searchFilters; - auto demo = request.demo; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto textSearch = options.textSearch; + auto byIPFromComment = options.byIPFromComment; + auto filter = options.filter; + auto searchFilters = options.searchFilters; + auto demo = options.demo; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1206,10 +1222,12 @@ pplx::task> ModerationApi::g return localVarResult; }); } -pplx::task> ModerationApi::getCounts(const ModerationApi::ApiGetCountsRequest& request) const +pplx::task> ModerationApi::getCounts( + const ApiGetCountsOptions& options +) const { - auto tenantId = request.tenantId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1338,11 +1356,13 @@ pplx::task> ModerationApi::getCount return localVarResult; }); } -pplx::task> ModerationApi::getLogs(const ModerationApi::ApiGetLogsRequest& request) const +pplx::task> ModerationApi::getLogs( + utility::string_t commentId + , const ApiGetLogsOptions& options +) const { - auto commentId = request.commentId; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1472,10 +1492,12 @@ pplx::task> ModerationApi::getLogs return localVarResult; }); } -pplx::task> ModerationApi::getManualBadges(const ModerationApi::ApiGetManualBadgesRequest& request) const +pplx::task> ModerationApi::getManualBadges( + const ApiGetManualBadgesOptions& options +) const { - auto tenantId = request.tenantId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1604,12 +1626,14 @@ pplx::task> ModerationApi::getMan return localVarResult; }); } -pplx::task> ModerationApi::getManualBadgesForUser(const ModerationApi::ApiGetManualBadgesForUserRequest& request) const +pplx::task> ModerationApi::getManualBadgesForUser( + const ApiGetManualBadgesForUserOptions& options +) const { - auto badgesUserId = request.badgesUserId; - auto commentId = request.commentId; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto badgesUserId = options.badgesUserId; + auto commentId = options.commentId; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1746,13 +1770,15 @@ pplx::task> ModerationApi::getManua return localVarResult; }); } -pplx::task> ModerationApi::getModerationComment(const ModerationApi::ApiGetModerationCommentRequest& request) const +pplx::task> ModerationApi::getModerationComment( + utility::string_t commentId + , const ApiGetModerationCommentOptions& options +) const { - auto commentId = request.commentId; - auto includeEmail = request.includeEmail; - auto includeIP = request.includeIP; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto includeEmail = options.includeEmail; + auto includeIP = options.includeIP; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1890,11 +1916,13 @@ pplx::task> ModerationApi::getMode return localVarResult; }); } -pplx::task> ModerationApi::getModerationCommentText(const ModerationApi::ApiGetModerationCommentTextRequest& request) const +pplx::task> ModerationApi::getModerationCommentText( + utility::string_t commentId + , const ApiGetModerationCommentTextOptions& options +) const { - auto commentId = request.commentId; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2024,14 +2052,16 @@ pplx::task> ModerationApi::getModeration return localVarResult; }); } -pplx::task> ModerationApi::getPreBanSummary(const ModerationApi::ApiGetPreBanSummaryRequest& request) const +pplx::task> ModerationApi::getPreBanSummary( + utility::string_t commentId + , const ApiGetPreBanSummaryOptions& options +) const { - auto commentId = request.commentId; - auto includeByUserIdAndEmail = request.includeByUserIdAndEmail; - auto includeByIP = request.includeByIP; - auto includeByEmailDomain = request.includeByEmailDomain; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto includeByUserIdAndEmail = options.includeByUserIdAndEmail; + auto includeByIP = options.includeByIP; + auto includeByEmailDomain = options.includeByEmailDomain; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2173,13 +2203,15 @@ pplx::task> ModerationApi::getPreBanSummary(const return localVarResult; }); } -pplx::task> ModerationApi::getSearchCommentsSummary(const ModerationApi::ApiGetSearchCommentsSummaryRequest& request) const +pplx::task> ModerationApi::getSearchCommentsSummary( + const ApiGetSearchCommentsSummaryOptions& options +) const { - auto value = request.value; - auto filters = request.filters; - auto searchFilters = request.searchFilters; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto value = options.value; + auto filters = options.filters; + auto searchFilters = options.searchFilters; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2320,11 +2352,13 @@ pplx::task> ModerationApi::getS return localVarResult; }); } -pplx::task> ModerationApi::getSearchPages(const ModerationApi::ApiGetSearchPagesRequest& request) const +pplx::task> ModerationApi::getSearchPages( + const ApiGetSearchPagesOptions& options +) const { - auto value = request.value; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto value = options.value; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2457,11 +2491,13 @@ pplx::task> ModerationApi::getSear return localVarResult; }); } -pplx::task> ModerationApi::getSearchSites(const ModerationApi::ApiGetSearchSitesRequest& request) const +pplx::task> ModerationApi::getSearchSites( + const ApiGetSearchSitesOptions& options +) const { - auto value = request.value; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto value = options.value; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2594,11 +2630,13 @@ pplx::task> ModerationApi::getSear return localVarResult; }); } -pplx::task> ModerationApi::getSearchSuggest(const ModerationApi::ApiGetSearchSuggestRequest& request) const +pplx::task> ModerationApi::getSearchSuggest( + const ApiGetSearchSuggestOptions& options +) const { - auto textSearch = request.textSearch; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto textSearch = options.textSearch; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2731,11 +2769,13 @@ pplx::task> ModerationApi::getSearchS return localVarResult; }); } -pplx::task> ModerationApi::getSearchUsers(const ModerationApi::ApiGetSearchUsersRequest& request) const +pplx::task> ModerationApi::getSearchUsers( + const ApiGetSearchUsersOptions& options +) const { - auto value = request.value; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto value = options.value; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2868,11 +2908,13 @@ pplx::task> ModerationApi::getSear return localVarResult; }); } -pplx::task> ModerationApi::getTrustFactor(const ModerationApi::ApiGetTrustFactorRequest& request) const +pplx::task> ModerationApi::getTrustFactor( + const ApiGetTrustFactorOptions& options +) const { - auto userId = request.userId; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto userId = options.userId; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3005,10 +3047,12 @@ pplx::task> ModerationApi::getTrustF return localVarResult; }); } -pplx::task> ModerationApi::getUserBanPreference(const ModerationApi::ApiGetUserBanPreferenceRequest& request) const +pplx::task> ModerationApi::getUserBanPreference( + const ApiGetUserBanPreferenceOptions& options +) const { - auto tenantId = request.tenantId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3137,11 +3181,13 @@ pplx::task> Moderation return localVarResult; }); } -pplx::task> ModerationApi::getUserInternalProfile(const ModerationApi::ApiGetUserInternalProfileRequest& request) const +pplx::task> ModerationApi::getUserInternalProfile( + const ApiGetUserInternalProfileOptions& options +) const { - auto commentId = request.commentId; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto commentId = options.commentId; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3274,13 +3320,15 @@ pplx::task> ModerationApi::getUs return localVarResult; }); } -pplx::task> ModerationApi::postAdjustCommentVotes(const ModerationApi::ApiPostAdjustCommentVotesRequest& request) const +pplx::task> ModerationApi::postAdjustCommentVotes( + utility::string_t commentId, + std::shared_ptr adjustCommentVotesParams + , const ApiPostAdjustCommentVotesOptions& options +) const { - auto commentId = request.commentId; - auto adjustCommentVotesParams = request.adjustCommentVotesParams; - auto tenantId = request.tenantId; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto broadcastId = options.broadcastId; + auto sso = options.sso; // verify the required parameter 'adjustCommentVotesParams' is set if (adjustCommentVotesParams == nullptr) @@ -3351,7 +3399,6 @@ pplx::task> ModerationApi::postAdjustCommen web::json::value localVarJson; localVarJson = ModelBase::toJson(adjustCommentVotesParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -3437,15 +3484,17 @@ pplx::task> ModerationApi::postAdjustCommen return localVarResult; }); } -pplx::task> ModerationApi::postApiExport(const ModerationApi::ApiPostApiExportRequest& request) const +pplx::task> ModerationApi::postApiExport( + const ApiPostApiExportOptions& options +) const { - auto textSearch = request.textSearch; - auto byIPFromComment = request.byIPFromComment; - auto filters = request.filters; - auto searchFilters = request.searchFilters; - auto sorts = request.sorts; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto textSearch = options.textSearch; + auto byIPFromComment = options.byIPFromComment; + auto filters = options.filters; + auto searchFilters = options.searchFilters; + auto sorts = options.sorts; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3594,19 +3643,21 @@ pplx::task> ModerationApi::postApiExpo return localVarResult; }); } -pplx::task> ModerationApi::postBanUserFromComment(const ModerationApi::ApiPostBanUserFromCommentRequest& request) const +pplx::task> ModerationApi::postBanUserFromComment( + utility::string_t commentId + , const ApiPostBanUserFromCommentOptions& options +) const { - auto commentId = request.commentId; - auto banEmail = request.banEmail; - auto banEmailDomain = request.banEmailDomain; - auto banIP = request.banIP; - auto deleteAllUsersComments = request.deleteAllUsersComments; - auto bannedUntil = request.bannedUntil; - auto isShadowBan = request.isShadowBan; - auto updateId = request.updateId; - auto banReason = request.banReason; - auto tenantId = request.tenantId; - auto sso = request.sso; + 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 tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3768,11 +3819,13 @@ pplx::task> ModerationApi::postBanUser return localVarResult; }); } -pplx::task> ModerationApi::postBanUserUndo(const ModerationApi::ApiPostBanUserUndoRequest& request) const +pplx::task> ModerationApi::postBanUserUndo( + std::shared_ptr banUserUndoParams + , const ApiPostBanUserUndoOptions& options +) const { - auto banUserUndoParams = request.banUserUndoParams; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto sso = options.sso; // verify the required parameter 'banUserUndoParams' is set if (banUserUndoParams == nullptr) @@ -3838,7 +3891,6 @@ pplx::task> ModerationApi::postBanUserUndo(con web::json::value localVarJson; localVarJson = ModelBase::toJson(banUserUndoParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -3924,14 +3976,16 @@ pplx::task> ModerationApi::postBanUserUndo(con return localVarResult; }); } -pplx::task> ModerationApi::postBulkPreBanSummary(const ModerationApi::ApiPostBulkPreBanSummaryRequest& request) const +pplx::task> ModerationApi::postBulkPreBanSummary( + std::shared_ptr bulkPreBanParams + , const ApiPostBulkPreBanSummaryOptions& options +) const { - auto bulkPreBanParams = request.bulkPreBanParams; - auto includeByUserIdAndEmail = request.includeByUserIdAndEmail; - auto includeByIP = request.includeByIP; - auto includeByEmailDomain = request.includeByEmailDomain; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto includeByUserIdAndEmail = options.includeByUserIdAndEmail; + auto includeByIP = options.includeByIP; + auto includeByEmailDomain = options.includeByEmailDomain; + auto tenantId = options.tenantId; + auto sso = options.sso; // verify the required parameter 'bulkPreBanParams' is set if (bulkPreBanParams == nullptr) @@ -4009,7 +4063,6 @@ pplx::task> ModerationApi::postBulkPreBanSumm web::json::value localVarJson; localVarJson = ModelBase::toJson(bulkPreBanParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -4095,11 +4148,13 @@ pplx::task> ModerationApi::postBulkPreBanSumm return localVarResult; }); } -pplx::task> ModerationApi::postCommentsByIds(const ModerationApi::ApiPostCommentsByIdsRequest& request) const +pplx::task> ModerationApi::postCommentsByIds( + std::shared_ptr commentsByIdsParams + , const ApiPostCommentsByIdsOptions& options +) const { - auto commentsByIdsParams = request.commentsByIdsParams; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto sso = options.sso; // verify the required parameter 'commentsByIdsParams' is set if (commentsByIdsParams == nullptr) @@ -4165,7 +4220,6 @@ pplx::task> ModerationApi::p web::json::value localVarJson; localVarJson = ModelBase::toJson(commentsByIdsParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -4251,12 +4305,14 @@ pplx::task> ModerationApi::p return localVarResult; }); } -pplx::task> ModerationApi::postFlagComment(const ModerationApi::ApiPostFlagCommentRequest& request) const +pplx::task> ModerationApi::postFlagComment( + utility::string_t commentId + , const ApiPostFlagCommentOptions& options +) const { - auto commentId = request.commentId; - auto tenantId = request.tenantId; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4390,12 +4446,14 @@ pplx::task> ModerationApi::postFlagComment(con return localVarResult; }); } -pplx::task> ModerationApi::postRemoveComment(const ModerationApi::ApiPostRemoveCommentRequest& request) const +pplx::task> ModerationApi::postRemoveComment( + utility::string_t commentId + , const ApiPostRemoveCommentOptions& options +) const { - auto commentId = request.commentId; - auto tenantId = request.tenantId; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4529,12 +4587,14 @@ pplx::task> ModerationApi::postRemove return localVarResult; }); } -pplx::task> ModerationApi::postRestoreDeletedComment(const ModerationApi::ApiPostRestoreDeletedCommentRequest& request) const +pplx::task> ModerationApi::postRestoreDeletedComment( + utility::string_t commentId + , const ApiPostRestoreDeletedCommentOptions& options +) const { - auto commentId = request.commentId; - auto tenantId = request.tenantId; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4668,13 +4728,15 @@ pplx::task> ModerationApi::postRestoreDeletedC return localVarResult; }); } -pplx::task> ModerationApi::postSetCommentApprovalStatus(const ModerationApi::ApiPostSetCommentApprovalStatusRequest& request) const +pplx::task> ModerationApi::postSetCommentApprovalStatus( + utility::string_t commentId + , const ApiPostSetCommentApprovalStatusOptions& options +) const { - auto commentId = request.commentId; - auto approved = request.approved; - auto tenantId = request.tenantId; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto approved = options.approved; + auto tenantId = options.tenantId; + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4812,13 +4874,15 @@ pplx::task> ModerationApi::postSetCo return localVarResult; }); } -pplx::task> ModerationApi::postSetCommentReviewStatus(const ModerationApi::ApiPostSetCommentReviewStatusRequest& request) const +pplx::task> ModerationApi::postSetCommentReviewStatus( + utility::string_t commentId + , const ApiPostSetCommentReviewStatusOptions& options +) const { - auto commentId = request.commentId; - auto reviewed = request.reviewed; - auto tenantId = request.tenantId; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto reviewed = options.reviewed; + auto tenantId = options.tenantId; + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4956,14 +5020,16 @@ pplx::task> ModerationApi::postSetCommentRevie return localVarResult; }); } -pplx::task> ModerationApi::postSetCommentSpamStatus(const ModerationApi::ApiPostSetCommentSpamStatusRequest& request) const +pplx::task> ModerationApi::postSetCommentSpamStatus( + utility::string_t commentId + , const ApiPostSetCommentSpamStatusOptions& options +) const { - auto commentId = request.commentId; - auto spam = request.spam; - auto permNotSpam = request.permNotSpam; - auto tenantId = request.tenantId; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto spam = options.spam; + auto permNotSpam = options.permNotSpam; + auto tenantId = options.tenantId; + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5105,13 +5171,15 @@ pplx::task> ModerationApi::postSetCommentSpamS return localVarResult; }); } -pplx::task> ModerationApi::postSetCommentText(const ModerationApi::ApiPostSetCommentTextRequest& request) const +pplx::task> ModerationApi::postSetCommentText( + utility::string_t commentId, + std::shared_ptr setCommentTextParams + , const ApiPostSetCommentTextOptions& options +) const { - auto commentId = request.commentId; - auto setCommentTextParams = request.setCommentTextParams; - auto tenantId = request.tenantId; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto broadcastId = options.broadcastId; + auto sso = options.sso; // verify the required parameter 'setCommentTextParams' is set if (setCommentTextParams == nullptr) @@ -5182,7 +5250,6 @@ pplx::task> ModerationApi::postSetCommen web::json::value localVarJson; localVarJson = ModelBase::toJson(setCommentTextParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -5268,12 +5335,14 @@ pplx::task> ModerationApi::postSetCommen return localVarResult; }); } -pplx::task> ModerationApi::postUnFlagComment(const ModerationApi::ApiPostUnFlagCommentRequest& request) const +pplx::task> ModerationApi::postUnFlagComment( + utility::string_t commentId + , const ApiPostUnFlagCommentOptions& options +) const { - auto commentId = request.commentId; - auto tenantId = request.tenantId; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5407,13 +5476,15 @@ pplx::task> ModerationApi::postUnFlagComment(c return localVarResult; }); } -pplx::task> ModerationApi::postVote(const ModerationApi::ApiPostVoteRequest& request) const +pplx::task> ModerationApi::postVote( + utility::string_t commentId + , const ApiPostVoteOptions& options +) const { - auto commentId = request.commentId; - auto direction = request.direction; - auto tenantId = request.tenantId; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto direction = options.direction; + auto tenantId = options.tenantId; + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5551,14 +5622,16 @@ pplx::task> ModerationApi::postVote(const Moderati return localVarResult; }); } -pplx::task> ModerationApi::putAwardBadge(const ModerationApi::ApiPutAwardBadgeRequest& request) const +pplx::task> ModerationApi::putAwardBadge( + utility::string_t badgeId + , const ApiPutAwardBadgeOptions& options +) const { - auto badgeId = request.badgeId; - auto userId = request.userId; - auto commentId = request.commentId; - auto tenantId = request.tenantId; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto userId = options.userId; + auto commentId = options.commentId; + auto tenantId = options.tenantId; + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5702,11 +5775,13 @@ pplx::task> ModerationApi::putAwardBadge return localVarResult; }); } -pplx::task> ModerationApi::putCloseThread(const ModerationApi::ApiPutCloseThreadRequest& request) const +pplx::task> ModerationApi::putCloseThread( + utility::string_t urlId + , const ApiPutCloseThreadOptions& options +) const { - auto urlId = request.urlId; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5838,14 +5913,16 @@ pplx::task> ModerationApi::putCloseThread(cons return localVarResult; }); } -pplx::task> ModerationApi::putRemoveBadge(const ModerationApi::ApiPutRemoveBadgeRequest& request) const +pplx::task> ModerationApi::putRemoveBadge( + utility::string_t badgeId + , const ApiPutRemoveBadgeOptions& options +) const { - auto badgeId = request.badgeId; - auto userId = request.userId; - auto commentId = request.commentId; - auto tenantId = request.tenantId; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto userId = options.userId; + auto commentId = options.commentId; + auto tenantId = options.tenantId; + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5989,11 +6066,13 @@ pplx::task> ModerationApi::putRemoveBad return localVarResult; }); } -pplx::task> ModerationApi::putReopenThread(const ModerationApi::ApiPutReopenThreadRequest& request) const +pplx::task> ModerationApi::putReopenThread( + utility::string_t urlId + , const ApiPutReopenThreadOptions& options +) const { - auto urlId = request.urlId; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6125,12 +6204,14 @@ pplx::task> ModerationApi::putReopenThread(con return localVarResult; }); } -pplx::task> ModerationApi::setTrustFactor(const ModerationApi::ApiSetTrustFactorRequest& request) const +pplx::task> ModerationApi::setTrustFactor( + const ApiSetTrustFactorOptions& options +) const { - auto userId = request.userId; - auto trustFactor = request.trustFactor; - auto tenantId = request.tenantId; - auto sso = request.sso; + auto userId = options.userId; + auto trustFactor = options.trustFactor; + auto tenantId = options.tenantId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); diff --git a/client/src/api/PublicApi.cpp b/client/src/api/PublicApi.cpp index e040c52..cac3249 100644 --- a/client/src/api/PublicApi.cpp +++ b/client/src/api/PublicApi.cpp @@ -35,12 +35,14 @@ PublicApi::~PublicApi() { } -pplx::task> PublicApi::blockFromCommentPublic(const PublicApi::ApiBlockFromCommentPublicRequest& request) const +pplx::task> PublicApi::blockFromCommentPublic( + utility::string_t tenantId, + utility::string_t commentId, + std::shared_ptr publicBlockFromCommentParams + , const ApiBlockFromCommentPublicOptions& options +) const { - auto tenantId = request.tenantId; - auto commentId = request.commentId; - auto publicBlockFromCommentParams = request.publicBlockFromCommentParams; - auto sso = request.sso; + auto sso = options.sso; // verify the required parameter 'publicBlockFromCommentParams' is set if (publicBlockFromCommentParams == nullptr) @@ -106,7 +108,6 @@ pplx::task> PublicApi::blockFromCommentPublic(cons web::json::value localVarJson; localVarJson = ModelBase::toJson(publicBlockFromCommentParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -192,11 +193,13 @@ pplx::task> PublicApi::blockFromCommentPublic(cons return localVarResult; }); } -pplx::task> PublicApi::checkedCommentsForBlocked(const PublicApi::ApiCheckedCommentsForBlockedRequest& request) const +pplx::task> PublicApi::checkedCommentsForBlocked( + utility::string_t tenantId, + utility::string_t commentIds + , const ApiCheckedCommentsForBlockedOptions& options +) const { - auto tenantId = request.tenantId; - auto commentIds = request.commentIds; - auto sso = request.sso; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -327,14 +330,16 @@ pplx::task> PublicApi::checkedComm return localVarResult; }); } -pplx::task> PublicApi::createCommentPublic(const PublicApi::ApiCreateCommentPublicRequest& request) const +pplx::task> PublicApi::createCommentPublic( + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t broadcastId, + std::shared_ptr commentData + , const ApiCreateCommentPublicOptions& options +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; - auto broadcastId = request.broadcastId; - auto commentData = request.commentData; - auto sessionId = request.sessionId; - auto sso = request.sso; + auto sessionId = options.sessionId; + auto sso = options.sso; // verify the required parameter 'commentData' is set if (commentData == nullptr) @@ -407,7 +412,6 @@ pplx::task> PublicApi::createC web::json::value localVarJson; localVarJson = ModelBase::toJson(commentData); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -493,12 +497,14 @@ pplx::task> PublicApi::createC return localVarResult; }); } -pplx::task> PublicApi::createFeedPostPublic(const PublicApi::ApiCreateFeedPostPublicRequest& request) const +pplx::task> PublicApi::createFeedPostPublic( + utility::string_t tenantId, + std::shared_ptr createFeedPostParams + , const ApiCreateFeedPostPublicOptions& options +) const { - auto tenantId = request.tenantId; - auto createFeedPostParams = request.createFeedPostParams; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto broadcastId = options.broadcastId; + auto sso = options.sso; // verify the required parameter 'createFeedPostParams' is set if (createFeedPostParams == nullptr) @@ -565,7 +571,6 @@ pplx::task> PublicApi::createFeedPostPub web::json::value localVarJson; localVarJson = ModelBase::toJson(createFeedPostParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -651,11 +656,13 @@ pplx::task> PublicApi::createFeedPostPub return localVarResult; }); } -pplx::task> PublicApi::createV1PageReact(const PublicApi::ApiCreateV1PageReactRequest& request) const +pplx::task> PublicApi::createV1PageReact( + utility::string_t tenantId, + utility::string_t urlId + , const ApiCreateV1PageReactOptions& options +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; - auto title = request.title; + auto title = options.title; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -784,12 +791,14 @@ pplx::task> PublicApi::createV1PageReact(cons return localVarResult; }); } -pplx::task> PublicApi::createV2PageReact(const PublicApi::ApiCreateV2PageReactRequest& request) const +pplx::task> PublicApi::createV2PageReact( + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t id + , const ApiCreateV2PageReactOptions& options +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; - auto id = request.id; - auto title = request.title; + auto title = options.title; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -921,13 +930,15 @@ pplx::task> PublicApi::createV2PageReact(cons return localVarResult; }); } -pplx::task> PublicApi::deleteCommentPublic(const PublicApi::ApiDeleteCommentPublicRequest& request) const +pplx::task> PublicApi::deleteCommentPublic( + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t broadcastId + , const ApiDeleteCommentPublicOptions& options +) const { - auto tenantId = request.tenantId; - auto commentId = request.commentId; - auto broadcastId = request.broadcastId; - auto editKey = request.editKey; - auto sso = request.sso; + auto editKey = options.editKey; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1061,15 +1072,17 @@ pplx::task> PublicApi::deleteCom return localVarResult; }); } -pplx::task> PublicApi::deleteCommentVote(const PublicApi::ApiDeleteCommentVoteRequest& request) 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 ApiDeleteCommentVoteOptions& options +) const { - auto tenantId = request.tenantId; - auto commentId = request.commentId; - auto voteId = request.voteId; - auto urlId = request.urlId; - auto broadcastId = request.broadcastId; - auto editKey = request.editKey; - auto sso = request.sso; + auto editKey = options.editKey; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1207,12 +1220,14 @@ pplx::task> PublicApi::deleteCommentVote(con return localVarResult; }); } -pplx::task> PublicApi::deleteFeedPostPublic(const PublicApi::ApiDeleteFeedPostPublicRequest& request) const +pplx::task> PublicApi::deleteFeedPostPublic( + utility::string_t tenantId, + utility::string_t postId + , const ApiDeleteFeedPostPublicOptions& options +) const { - auto tenantId = request.tenantId; - auto postId = request.postId; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto broadcastId = options.broadcastId; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1343,10 +1358,11 @@ pplx::task> PublicApi::deleteFeedP return localVarResult; }); } -pplx::task> PublicApi::deleteV1PageReact(const PublicApi::ApiDeleteV1PageReactRequest& request) const +pplx::task> PublicApi::deleteV1PageReact( + utility::string_t tenantId, + utility::string_t urlId +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1471,11 +1487,12 @@ pplx::task> PublicApi::deleteV1PageReact(cons return localVarResult; }); } -pplx::task> PublicApi::deleteV2PageReact(const PublicApi::ApiDeleteV2PageReactRequest& request) const +pplx::task> PublicApi::deleteV2PageReact( + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1603,12 +1620,14 @@ pplx::task> PublicApi::deleteV2PageReact(cons return localVarResult; }); } -pplx::task> PublicApi::flagCommentPublic(const PublicApi::ApiFlagCommentPublicRequest& request) const +pplx::task> PublicApi::flagCommentPublic( + utility::string_t tenantId, + utility::string_t commentId, + bool isFlagged + , const ApiFlagCommentPublicOptions& options +) const { - auto tenantId = request.tenantId; - auto commentId = request.commentId; - auto isFlagged = request.isFlagged; - auto sso = request.sso; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1740,12 +1759,14 @@ pplx::task> PublicApi::flagCommentPublic(const return localVarResult; }); } -pplx::task> PublicApi::getCommentText(const PublicApi::ApiGetCommentTextRequest& request) const +pplx::task> PublicApi::getCommentText( + utility::string_t tenantId, + utility::string_t commentId + , const ApiGetCommentTextOptions& options +) const { - auto tenantId = request.tenantId; - auto commentId = request.commentId; - auto editKey = request.editKey; - auto sso = request.sso; + auto editKey = options.editKey; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1876,12 +1897,14 @@ pplx::task> PublicApi::getComme return localVarResult; }); } -pplx::task> PublicApi::getCommentVoteUserNames(const PublicApi::ApiGetCommentVoteUserNamesRequest& request) const +pplx::task> PublicApi::getCommentVoteUserNames( + utility::string_t tenantId, + utility::string_t commentId, + int32_t dir + , const ApiGetCommentVoteUserNamesOptions& options +) const { - auto tenantId = request.tenantId; - auto commentId = request.commentId; - auto dir = request.dir; - auto sso = request.sso; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2011,15 +2034,17 @@ pplx::task> PublicApi::g return localVarResult; }); } -pplx::task> PublicApi::getCommentsForUser(const PublicApi::ApiGetCommentsForUserRequest& request) const +pplx::task> PublicApi::getCommentsForUser( + const ApiGetCommentsForUserOptions& options +) const { - auto userId = request.userId; - auto direction = request.direction; - auto repliesToUserId = request.repliesToUserId; - auto page = request.page; - auto includei10n = request.includei10n; - auto locale = request.locale; - auto isCrawler = request.isCrawler; + 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() ); @@ -2168,36 +2193,38 @@ pplx::task> PublicApi::getCommentsFo return localVarResult; }); } -pplx::task> PublicApi::getCommentsPublic(const PublicApi::ApiGetCommentsPublicRequest& request) const +pplx::task> PublicApi::getCommentsPublic( + utility::string_t tenantId, + utility::string_t urlId + , const ApiGetCommentsPublicOptions& options +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; - auto page = request.page; - auto direction = request.direction; - auto sso = request.sso; - auto skip = request.skip; - auto skipChildren = request.skipChildren; - auto limit = request.limit; - auto limitChildren = request.limitChildren; - auto countChildren = request.countChildren; - auto fetchPageForCommentId = request.fetchPageForCommentId; - auto includeConfig = request.includeConfig; - auto countAll = request.countAll; - auto includei10n = request.includei10n; - auto locale = request.locale; - auto modules = request.modules; - auto isCrawler = request.isCrawler; - auto includeNotificationCount = request.includeNotificationCount; - auto asTree = request.asTree; - auto maxTreeDepth = request.maxTreeDepth; - auto useFullTranslationIds = request.useFullTranslationIds; - auto parentId = request.parentId; - auto searchText = request.searchText; - auto hashTags = request.hashTags; - auto userId = request.userId; - auto customConfigStr = request.customConfigStr; - auto afterCommentId = request.afterCommentId; - auto beforeCommentId = request.beforeCommentId; + 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() ); @@ -2426,13 +2453,15 @@ pplx::task> Publ return localVarResult; }); } -pplx::task> PublicApi::getEventLog(const PublicApi::ApiGetEventLogRequest& request) const +pplx::task> PublicApi::getEventLog( + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t userIdWS, + int64_t startTime + , const ApiGetEventLogOptions& options +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; - auto userIdWS = request.userIdWS; - auto startTime = request.startTime; - auto endTime = request.endTime; + auto endTime = options.endTime; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2567,15 +2596,17 @@ pplx::task> PublicApi::getEventLog(const Pu return localVarResult; }); } -pplx::task> PublicApi::getFeedPostsPublic(const PublicApi::ApiGetFeedPostsPublicRequest& request) const +pplx::task> PublicApi::getFeedPostsPublic( + utility::string_t tenantId + , const ApiGetFeedPostsPublicOptions& options +) const { - auto tenantId = request.tenantId; - auto afterId = request.afterId; - auto limit = request.limit; - auto tags = request.tags; - auto sso = request.sso; - auto isCrawler = request.isCrawler; - auto includeUserInfo = request.includeUserInfo; + 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() ); @@ -2721,11 +2752,13 @@ pplx::task> PublicApi::getFeedPostsPubl return localVarResult; }); } -pplx::task> PublicApi::getFeedPostsStats(const PublicApi::ApiGetFeedPostsStatsRequest& request) const +pplx::task> PublicApi::getFeedPostsStats( + utility::string_t tenantId, + std::vector postIds + , const ApiGetFeedPostsStatsOptions& options +) const { - auto tenantId = request.tenantId; - auto postIds = request.postIds; - auto sso = request.sso; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2854,10 +2887,11 @@ pplx::task> PublicApi::getFeedPostsStats return localVarResult; }); } -pplx::task> PublicApi::getGifLarge(const PublicApi::ApiGetGifLargeRequest& request) const +pplx::task> PublicApi::getGifLarge( + utility::string_t tenantId, + utility::string_t largeInternalURLSanitized +) const { - auto tenantId = request.tenantId; - auto largeInternalURLSanitized = request.largeInternalURLSanitized; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2982,13 +3016,15 @@ pplx::task> PublicApi::getGifLarge(const Pu return localVarResult; }); } -pplx::task> PublicApi::getGifsSearch(const PublicApi::ApiGetGifsSearchRequest& request) const +pplx::task> PublicApi::getGifsSearch( + utility::string_t tenantId, + utility::string_t search + , const ApiGetGifsSearchOptions& options +) const { - auto tenantId = request.tenantId; - auto search = request.search; - auto locale = request.locale; - auto rating = request.rating; - auto page = request.page; + auto locale = options.locale; + auto rating = options.rating; + auto page = options.page; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3125,12 +3161,14 @@ pplx::task> PublicApi::getGifsSearch(cons return localVarResult; }); } -pplx::task> PublicApi::getGifsTrending(const PublicApi::ApiGetGifsTrendingRequest& request) const +pplx::task> PublicApi::getGifsTrending( + utility::string_t tenantId + , const ApiGetGifsTrendingOptions& options +) const { - auto tenantId = request.tenantId; - auto locale = request.locale; - auto rating = request.rating; - auto page = request.page; + auto locale = options.locale; + auto rating = options.rating; + auto page = options.page; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3264,13 +3302,15 @@ pplx::task> PublicApi::getGifsTrending( return localVarResult; }); } -pplx::task> PublicApi::getGlobalEventLog(const PublicApi::ApiGetGlobalEventLogRequest& request) const +pplx::task> PublicApi::getGlobalEventLog( + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t userIdWS, + int64_t startTime + , const ApiGetGlobalEventLogOptions& options +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; - auto userIdWS = request.userIdWS; - auto startTime = request.startTime; - auto endTime = request.endTime; + auto endTime = options.endTime; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3405,12 +3445,14 @@ pplx::task> PublicApi::getGlobalEventLog(co return localVarResult; }); } -pplx::task> PublicApi::getOfflineUsers(const PublicApi::ApiGetOfflineUsersRequest& request) const +pplx::task> PublicApi::getOfflineUsers( + utility::string_t tenantId, + utility::string_t urlId + , const ApiGetOfflineUsersOptions& options +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; - auto afterName = request.afterName; - auto afterUserId = request.afterUserId; + auto afterName = options.afterName; + auto afterUserId = options.afterUserId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3543,12 +3585,14 @@ pplx::task> PublicApi::getOfflineUsers return localVarResult; }); } -pplx::task> PublicApi::getOnlineUsers(const PublicApi::ApiGetOnlineUsersRequest& request) const +pplx::task> PublicApi::getOnlineUsers( + utility::string_t tenantId, + utility::string_t urlId + , const ApiGetOnlineUsersOptions& options +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; - auto afterName = request.afterName; - auto afterUserId = request.afterUserId; + auto afterName = options.afterName; + auto afterUserId = options.afterUserId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3681,14 +3725,16 @@ pplx::task> PublicApi::getOnlineUsers(c return localVarResult; }); } -pplx::task> PublicApi::getPagesPublic(const PublicApi::ApiGetPagesPublicRequest& request) const +pplx::task> PublicApi::getPagesPublic( + utility::string_t tenantId + , const ApiGetPagesPublicOptions& options +) const { - auto tenantId = request.tenantId; - auto cursor = request.cursor; - auto limit = request.limit; - auto q = request.q; - auto sortBy = request.sortBy; - auto hasComments = request.hasComments; + 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() ); @@ -3830,12 +3876,14 @@ pplx::task> PublicApi::getPagesPublic(co return localVarResult; }); } -pplx::task> PublicApi::getTranslations(const PublicApi::ApiGetTranslationsRequest& request) const +pplx::task> PublicApi::getTranslations( + utility::string_t r_namespace, + utility::string_t component + , const ApiGetTranslationsOptions& options +) const { - auto r_namespace = request.r_namespace; - auto component = request.component; - auto locale = request.locale; - auto useFullTranslationIds = request.useFullTranslationIds; + auto locale = options.locale; + auto useFullTranslationIds = options.useFullTranslationIds; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3966,10 +4014,12 @@ pplx::task> PublicApi::getTranslations( return localVarResult; }); } -pplx::task> PublicApi::getUserNotificationCount(const PublicApi::ApiGetUserNotificationCountRequest& request) const +pplx::task> PublicApi::getUserNotificationCount( + utility::string_t tenantId + , const ApiGetUserNotificationCountOptions& options +) const { - auto tenantId = request.tenantId; - auto sso = request.sso; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4097,20 +4147,22 @@ pplx::task> PublicApi::getUser return localVarResult; }); } -pplx::task> PublicApi::getUserNotifications(const PublicApi::ApiGetUserNotificationsRequest& request) const +pplx::task> PublicApi::getUserNotifications( + utility::string_t tenantId + , const ApiGetUserNotificationsOptions& options +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; - auto pageSize = request.pageSize; - auto afterId = request.afterId; - auto includeContext = request.includeContext; - auto afterCreatedAt = request.afterCreatedAt; - auto unreadOnly = request.unreadOnly; - auto dmOnly = request.dmOnly; - auto noDm = request.noDm; - auto includeTranslations = request.includeTranslations; - auto includeTenantNotifications = request.includeTenantNotifications; - auto sso = request.sso; + 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() ); @@ -4278,11 +4330,12 @@ pplx::task> PublicApi::getUserNotifi return localVarResult; }); } -pplx::task> PublicApi::getUserPresenceStatuses(const PublicApi::ApiGetUserPresenceStatusesRequest& request) const +pplx::task> PublicApi::getUserPresenceStatuses( + utility::string_t tenantId, + utility::string_t urlIdWS, + utility::string_t userIds +) const { - auto tenantId = request.tenantId; - auto urlIdWS = request.urlIdWS; - auto userIds = request.userIds; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4412,11 +4465,13 @@ pplx::task> PublicApi::getUserP return localVarResult; }); } -pplx::task> PublicApi::getUserReactsPublic(const PublicApi::ApiGetUserReactsPublicRequest& request) const +pplx::task> PublicApi::getUserReactsPublic( + utility::string_t tenantId + , const ApiGetUserReactsPublicOptions& options +) const { - auto tenantId = request.tenantId; - auto postIds = request.postIds; - auto sso = request.sso; + auto postIds = options.postIds; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4546,10 +4601,11 @@ pplx::task> PublicApi::getUserReactsPublic(c return localVarResult; }); } -pplx::task> PublicApi::getUsersInfo(const PublicApi::ApiGetUsersInfoRequest& request) const +pplx::task> PublicApi::getUsersInfo( + utility::string_t tenantId, + utility::string_t ids +) const { - auto tenantId = request.tenantId; - auto ids = request.ids; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4674,10 +4730,11 @@ pplx::task> PublicApi::getUsersInfo(const return localVarResult; }); } -pplx::task> PublicApi::getV1PageLikes(const PublicApi::ApiGetV1PageLikesRequest& request) const +pplx::task> PublicApi::getV1PageLikes( + utility::string_t tenantId, + utility::string_t urlId +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4802,11 +4859,12 @@ pplx::task> PublicApi::getV1PageLikes(const Publ return localVarResult; }); } -pplx::task> PublicApi::getV2PageReactUsers(const PublicApi::ApiGetV2PageReactUsersRequest& request) const +pplx::task> PublicApi::getV2PageReactUsers( + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t id +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; - auto id = request.id; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4934,10 +4992,11 @@ pplx::task> PublicApi::getV2PageRea return localVarResult; }); } -pplx::task> PublicApi::getV2PageReacts(const PublicApi::ApiGetV2PageReactsRequest& request) const +pplx::task> PublicApi::getV2PageReacts( + utility::string_t tenantId, + utility::string_t urlId +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5062,12 +5121,14 @@ pplx::task> PublicApi::getV2PageReacts(const Pu return localVarResult; }); } -pplx::task> PublicApi::lockComment(const PublicApi::ApiLockCommentRequest& request) const +pplx::task> PublicApi::lockComment( + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t broadcastId + , const ApiLockCommentOptions& options +) const { - auto tenantId = request.tenantId; - auto commentId = request.commentId; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5197,7 +5258,8 @@ pplx::task> PublicApi::lockComment(const Publi return localVarResult; }); } -pplx::task> PublicApi::logoutPublic(const PublicApi::ApiLogoutPublicRequest& request) const +pplx::task> PublicApi::logoutPublic( +) const { @@ -5319,12 +5381,14 @@ pplx::task> PublicApi::logoutPublic(const Publ return localVarResult; }); } -pplx::task> PublicApi::pinComment(const PublicApi::ApiPinCommentRequest& request) const +pplx::task> PublicApi::pinComment( + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t broadcastId + , const ApiPinCommentOptions& options +) const { - auto tenantId = request.tenantId; - auto commentId = request.commentId; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5454,14 +5518,16 @@ pplx::task> PublicApi::pinCommen return localVarResult; }); } -pplx::task> PublicApi::reactFeedPostPublic(const PublicApi::ApiReactFeedPostPublicRequest& request) const +pplx::task> PublicApi::reactFeedPostPublic( + utility::string_t tenantId, + utility::string_t postId, + std::shared_ptr reactBodyParams + , const ApiReactFeedPostPublicOptions& options +) const { - auto tenantId = request.tenantId; - auto postId = request.postId; - auto reactBodyParams = request.reactBodyParams; - auto isUndo = request.isUndo; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto isUndo = options.isUndo; + auto broadcastId = options.broadcastId; + auto sso = options.sso; // verify the required parameter 'reactBodyParams' is set if (reactBodyParams == nullptr) @@ -5533,7 +5599,6 @@ pplx::task> PublicApi::reactFeedPostPubli web::json::value localVarJson; localVarJson = ModelBase::toJson(reactBodyParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -5619,10 +5684,12 @@ pplx::task> PublicApi::reactFeedPostPubli return localVarResult; }); } -pplx::task> PublicApi::resetUserNotificationCount(const PublicApi::ApiResetUserNotificationCountRequest& request) const +pplx::task> PublicApi::resetUserNotificationCount( + utility::string_t tenantId + , const ApiResetUserNotificationCountOptions& options +) const { - auto tenantId = request.tenantId; - auto sso = request.sso; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5750,15 +5817,17 @@ pplx::task> PublicApi::resetUser return localVarResult; }); } -pplx::task> PublicApi::resetUserNotifications(const PublicApi::ApiResetUserNotificationsRequest& request) const +pplx::task> PublicApi::resetUserNotifications( + utility::string_t tenantId + , const ApiResetUserNotificationsOptions& options +) const { - auto tenantId = request.tenantId; - auto afterId = request.afterId; - auto afterCreatedAt = request.afterCreatedAt; - auto unreadOnly = request.unreadOnly; - auto dmOnly = request.dmOnly; - auto noDm = request.noDm; - auto sso = request.sso; + 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() ); @@ -5906,14 +5975,16 @@ pplx::task> PublicApi::resetUser return localVarResult; }); } -pplx::task> PublicApi::searchUsers(const PublicApi::ApiSearchUsersRequest& request) const +pplx::task> PublicApi::searchUsers( + utility::string_t tenantId, + utility::string_t urlId + , const ApiSearchUsersOptions& options +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; - auto usernameStartsWith = request.usernameStartsWith; - auto mentionGroupIds = request.mentionGroupIds; - auto sso = request.sso; - auto searchSection = request.searchSection; + auto usernameStartsWith = options.usernameStartsWith; + auto mentionGroupIds = options.mentionGroupIds; + auto sso = options.sso; + auto searchSection = options.searchSection; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6054,14 +6125,16 @@ pplx::task> PublicApi::searchUsers(const Publ return localVarResult; }); } -pplx::task> PublicApi::setCommentText(const PublicApi::ApiSetCommentTextRequest& request) const +pplx::task> PublicApi::setCommentText( + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t broadcastId, + std::shared_ptr commentTextUpdateRequest + , const ApiSetCommentTextOptions& options +) const { - auto tenantId = request.tenantId; - auto commentId = request.commentId; - auto broadcastId = request.broadcastId; - auto commentTextUpdateRequest = request.commentTextUpdateRequest; - auto editKey = request.editKey; - auto sso = request.sso; + auto editKey = options.editKey; + auto sso = options.sso; // verify the required parameter 'commentTextUpdateRequest' is set if (commentTextUpdateRequest == nullptr) @@ -6132,7 +6205,6 @@ pplx::task> PublicApi::setComme web::json::value localVarJson; localVarJson = ModelBase::toJson(commentTextUpdateRequest); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -6218,12 +6290,14 @@ pplx::task> PublicApi::setComme return localVarResult; }); } -pplx::task> PublicApi::unBlockCommentPublic(const PublicApi::ApiUnBlockCommentPublicRequest& request) const +pplx::task> PublicApi::unBlockCommentPublic( + utility::string_t tenantId, + utility::string_t commentId, + std::shared_ptr publicBlockFromCommentParams + , const ApiUnBlockCommentPublicOptions& options +) const { - auto tenantId = request.tenantId; - auto commentId = request.commentId; - auto publicBlockFromCommentParams = request.publicBlockFromCommentParams; - auto sso = request.sso; + auto sso = options.sso; // verify the required parameter 'publicBlockFromCommentParams' is set if (publicBlockFromCommentParams == nullptr) @@ -6289,7 +6363,6 @@ pplx::task> PublicApi::unBlockCommentPublic(cons web::json::value localVarJson; localVarJson = ModelBase::toJson(publicBlockFromCommentParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -6375,12 +6448,14 @@ pplx::task> PublicApi::unBlockCommentPublic(cons return localVarResult; }); } -pplx::task> PublicApi::unLockComment(const PublicApi::ApiUnLockCommentRequest& request) const +pplx::task> PublicApi::unLockComment( + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t broadcastId + , const ApiUnLockCommentOptions& options +) const { - auto tenantId = request.tenantId; - auto commentId = request.commentId; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6510,12 +6585,14 @@ pplx::task> PublicApi::unLockComment(const Pub return localVarResult; }); } -pplx::task> PublicApi::unPinComment(const PublicApi::ApiUnPinCommentRequest& request) const +pplx::task> PublicApi::unPinComment( + utility::string_t tenantId, + utility::string_t commentId, + utility::string_t broadcastId + , const ApiUnPinCommentOptions& options +) const { - auto tenantId = request.tenantId; - auto commentId = request.commentId; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6645,13 +6722,15 @@ pplx::task> PublicApi::unPinComm return localVarResult; }); } -pplx::task> PublicApi::updateFeedPostPublic(const PublicApi::ApiUpdateFeedPostPublicRequest& request) const +pplx::task> PublicApi::updateFeedPostPublic( + utility::string_t tenantId, + utility::string_t postId, + std::shared_ptr updateFeedPostParams + , const ApiUpdateFeedPostPublicOptions& options +) const { - auto tenantId = request.tenantId; - auto postId = request.postId; - auto updateFeedPostParams = request.updateFeedPostParams; - auto broadcastId = request.broadcastId; - auto sso = request.sso; + auto broadcastId = options.broadcastId; + auto sso = options.sso; // verify the required parameter 'updateFeedPostParams' is set if (updateFeedPostParams == nullptr) @@ -6719,7 +6798,6 @@ pplx::task> PublicApi::updateFeedPostPub web::json::value localVarJson; localVarJson = ModelBase::toJson(updateFeedPostParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -6805,13 +6883,15 @@ pplx::task> PublicApi::updateFeedPostPub return localVarResult; }); } -pplx::task> PublicApi::updateUserNotificationCommentSubscriptionStatus(const PublicApi::ApiUpdateUserNotificationCommentSubscriptionStatusRequest& request) const +pplx::task> PublicApi::updateUserNotificationCommentSubscriptionStatus( + utility::string_t tenantId, + utility::string_t notificationId, + utility::string_t optedInOrOut, + utility::string_t commentId + , const ApiUpdateUserNotificationCommentSubscriptionStatusOptions& options +) const { - auto tenantId = request.tenantId; - auto notificationId = request.notificationId; - auto optedInOrOut = request.optedInOrOut; - auto commentId = request.commentId; - auto sso = request.sso; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6944,14 +7024,16 @@ pplx::task> PublicApi::updateUserNotificationPageSubscriptionStatus(const PublicApi::ApiUpdateUserNotificationPageSubscriptionStatusRequest& request) 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 + , const ApiUpdateUserNotificationPageSubscriptionStatusOptions& options +) const { - auto tenantId = request.tenantId; - auto urlId = request.urlId; - auto url = request.url; - auto pageTitle = request.pageTitle; - auto subscribedOrUnsubscribed = request.subscribedOrUnsubscribed; - auto sso = request.sso; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7089,12 +7171,14 @@ pplx::task return localVarResult; }); } -pplx::task> PublicApi::updateUserNotificationStatus(const PublicApi::ApiUpdateUserNotificationStatusRequest& request) const +pplx::task> PublicApi::updateUserNotificationStatus( + utility::string_t tenantId, + utility::string_t notificationId, + utility::string_t newStatus + , const ApiUpdateUserNotificationStatusOptions& options +) const { - auto tenantId = request.tenantId; - auto notificationId = request.notificationId; - auto newStatus = request.newStatus; - auto sso = request.sso; + auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7224,12 +7308,14 @@ pplx::task> PublicApi::upd return localVarResult; }); } -pplx::task> PublicApi::uploadImage(const PublicApi::ApiUploadImageRequest& request) const +pplx::task> PublicApi::uploadImage( + utility::string_t tenantId, + std::shared_ptr file + , const ApiUploadImageOptions& options +) const { - auto tenantId = request.tenantId; - auto file = request.file; - auto sizePreset = request.sizePreset; - auto urlId = request.urlId; + auto sizePreset = options.sizePreset; + auto urlId = options.urlId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7363,15 +7449,17 @@ pplx::task> PublicApi::uploadImage(const Pu return localVarResult; }); } -pplx::task> PublicApi::voteComment(const PublicApi::ApiVoteCommentRequest& request) 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 ApiVoteCommentOptions& options +) const { - auto tenantId = request.tenantId; - auto commentId = request.commentId; - auto urlId = request.urlId; - auto broadcastId = request.broadcastId; - auto voteBodyParams = request.voteBodyParams; - auto sessionId = request.sessionId; - auto sso = request.sso; + auto sessionId = options.sessionId; + auto sso = options.sso; // verify the required parameter 'voteBodyParams' is set if (voteBodyParams == nullptr) @@ -7445,7 +7533,6 @@ pplx::task> PublicApi::voteComment(const PublicApi web::json::value localVarJson; localVarJson = ModelBase::toJson(voteBodyParams); - localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } diff --git a/tests/sso_integration_test.cpp b/tests/sso_integration_test.cpp index 1ab23f7..5b5e51e 100644 --- a/tests/sso_integration_test.cpp +++ b/tests/sso_integration_test.cpp @@ -57,11 +57,10 @@ TEST_F(SSOIntegrationTest, PublicAPINoSSO) { auto apiClient = std::make_shared(config); PublicApi publicApi(apiClient); - PublicApi::ApiGetCommentsPublicRequest getReq; - getReq.tenantId = utility::conversions::to_string_t(tenantID); - getReq.urlId = utility::conversions::to_string_t("sdk-test-page"); - - auto response = publicApi.getCommentsPublic(getReq).get(); + auto response = publicApi.getCommentsPublic( + utility::conversions::to_string_t(tenantID), + utility::conversions::to_string_t("sdk-test-page") + ).get(); ASSERT_NE(response, nullptr); } @@ -94,23 +93,27 @@ TEST_F(SSOIntegrationTest, PublicAPIWithSecureSSO) { commentData->setCommenterName(utility::conversions::to_string_t(user.username)); commentData->setDate(timestamp); - PublicApi::ApiCreateCommentPublicRequest createReq; - createReq.tenantId = utility::conversions::to_string_t(tenantID); - createReq.urlId = utility::conversions::to_string_t("sdk-test-cpp"); - createReq.broadcastId = utility::conversions::to_string_t("test-" + std::to_string(timestamp)); - createReq.commentData = commentData; - createReq.sso = utility::conversions::to_string_t(token); + ApiCreateCommentPublicOptions createOpts; + createOpts.sso = utility::conversions::to_string_t(token); - auto createResponse = publicApi.createCommentPublic(createReq).get(); + 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, + createOpts + ).get(); ASSERT_NE(createResponse, nullptr); - PublicApi::ApiGetCommentsPublicRequest getReq; - getReq.tenantId = utility::conversions::to_string_t(tenantID); - getReq.urlId = utility::conversions::to_string_t("sdk-test-cpp"); - getReq.sso = utility::conversions::to_string_t(token); + ApiGetCommentsPublicOptions getOpts; + getOpts.sso = utility::conversions::to_string_t(token); - auto getResponse = publicApi.getCommentsPublic(getReq).get(); + auto getResponse = publicApi.getCommentsPublic( + utility::conversions::to_string_t(tenantID), + utility::conversions::to_string_t("sdk-test-cpp"), + getOpts + ).get(); ASSERT_NE(getResponse, nullptr); } @@ -147,14 +150,16 @@ TEST_F(SSOIntegrationTest, DefaultAPIWithAPIKey) { commentData->setCommenterName(utility::conversions::to_string_t(user.username)); commentData->setDate(timestamp); - PublicApi::ApiCreateCommentPublicRequest createReq; - createReq.tenantId = utility::conversions::to_string_t(tenantID); - createReq.urlId = utility::conversions::to_string_t(testUrlId); - createReq.broadcastId = utility::conversions::to_string_t("test-" + std::to_string(timestamp)); - createReq.commentData = commentData; - createReq.sso = utility::conversions::to_string_t(token); + ApiCreateCommentPublicOptions createOpts; + createOpts.sso = utility::conversions::to_string_t(token); - auto createResponse = publicApi.createCommentPublic(createReq).get(); + 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, + createOpts + ).get(); ASSERT_NE(createResponse, nullptr); std::cout << "✓ Comment created successfully" << std::endl; @@ -169,11 +174,13 @@ TEST_F(SSOIntegrationTest, DefaultAPIWithAPIKey) { auto defaultApiClient = std::make_shared(defaultConfig); DefaultApi defaultApi(defaultApiClient); - DefaultApi::ApiGetCommentsRequest getReq; - getReq.tenantId = utility::conversions::to_string_t(tenantID); - getReq.urlId = utility::conversions::to_string_t(testUrlId); + ApiGetCommentsOptions getOpts; + getOpts.urlId = utility::conversions::to_string_t(testUrlId); - auto getResponse = defaultApi.getComments(getReq).get(); + auto getResponse = defaultApi.getComments( + utility::conversions::to_string_t(tenantID), + getOpts + ).get(); ASSERT_NE(getResponse, nullptr); @@ -243,14 +250,16 @@ TEST_F(SSOIntegrationTest, PublicAPICreateAndFetch) { commentData->setCommenterName(utility::conversions::to_string_t(user.username)); commentData->setDate(timestamp); - PublicApi::ApiCreateCommentPublicRequest createReq; - createReq.tenantId = utility::conversions::to_string_t(tenantID); - createReq.urlId = utility::conversions::to_string_t(testUrlId); - createReq.broadcastId = utility::conversions::to_string_t("test-" + std::to_string(timestamp)); - createReq.commentData = commentData; - createReq.sso = utility::conversions::to_string_t(token); + ApiCreateCommentPublicOptions createOpts; + createOpts.sso = utility::conversions::to_string_t(token); - auto createResponse = publicApi.createCommentPublic(createReq).get(); + 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, + createOpts + ).get(); ASSERT_NE(createResponse, nullptr); std::cout << "✓ Comment created successfully" << std::endl; @@ -258,12 +267,14 @@ 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; - PublicApi::ApiGetCommentsPublicRequest getReq; - getReq.tenantId = utility::conversions::to_string_t(tenantID); - getReq.urlId = utility::conversions::to_string_t(testUrlId); - getReq.sso = utility::conversions::to_string_t(token); + ApiGetCommentsPublicOptions getOpts; + getOpts.sso = utility::conversions::to_string_t(token); - auto getResponse = publicApi.getCommentsPublic(getReq).get(); + auto getResponse = publicApi.getCommentsPublic( + utility::conversions::to_string_t(tenantID), + utility::conversions::to_string_t(testUrlId), + getOpts + ).get(); ASSERT_NE(getResponse, nullptr); From 233d545a3e148c604dcea77b47817d3e2ad13ac6 Mon Sep 17 00:00:00 2001 From: winrid Date: Tue, 23 Jun 2026 11:18:45 -0700 Subject: [PATCH 3/6] Regenerate: single optional is a direct param (no options object for one value) Operations with exactly one optional now take it directly (e.g. deleteModerator(..., send_email)); the ApiOptions object is only used for 2+ optionals. --- .../FastCommentsClient/api/DefaultApi.h | 249 ++++++++---------- .../FastCommentsClient/api/ModerationApi.h | 43 +++ .../FastCommentsClient/api/PublicApi.h | 147 ++++------- client/src/api/DefaultApi.cpp | 168 ++++++++---- client/src/api/ModerationApi.cpp | 43 +++ client/src/api/PublicApi.cpp | 90 ++++--- 6 files changed, 418 insertions(+), 322 deletions(-) diff --git a/client/include/FastCommentsClient/api/DefaultApi.h b/client/include/FastCommentsClient/api/DefaultApi.h index 2a5a986..14a0363 100644 --- a/client/include/FastCommentsClient/api/DefaultApi.h +++ b/client/include/FastCommentsClient/api/DefaultApi.h @@ -167,14 +167,6 @@ namespace api { using namespace org::openapitools::client::model; -struct ApiAddHashTagOptions -{ - boost::optional tenantId; -}; -struct ApiAddHashTagsBulkOptions -{ - boost::optional tenantId; -}; struct ApiAggregateOptions { boost::optional parentTenantId; @@ -194,10 +186,6 @@ struct ApiBlockUserFromCommentOptions boost::optional userId; boost::optional anonUserId; }; -struct ApiBulkAggregateQuestionResultsOptions -{ - boost::optional forceRecalculate; -}; struct ApiCombineCommentsWithQuestionResultsOptions { boost::optional questionId; @@ -226,36 +214,16 @@ struct ApiDeleteCommentOptions boost::optional contextUserId; boost::optional isLive; }; -struct ApiDeleteHashTagOptions -{ - boost::optional tenantId; -}; -struct ApiDeleteModeratorOptions -{ - boost::optional sendEmail; -}; struct ApiDeleteSSOUserOptions { boost::optional deleteComments; boost::optional commentDeleteMode; }; -struct ApiDeleteSubscriptionOptions -{ - boost::optional userId; -}; -struct ApiDeleteTenantOptions -{ - boost::optional sure; -}; struct ApiDeleteTenantUserOptions { boost::optional deleteComments; boost::optional commentDeleteMode; }; -struct ApiDeleteVoteOptions -{ - boost::optional editKey; -}; struct ApiFlagCommentOptions { boost::optional userId; @@ -288,28 +256,12 @@ struct ApiGetCommentsOptions boost::optional fromDate; boost::optional toDate; }; -struct ApiGetEmailTemplateRenderErrorsOptions -{ - boost::optional skip; -}; -struct ApiGetEmailTemplatesOptions -{ - boost::optional skip; -}; struct ApiGetFeedPostsOptions { boost::optional afterId; boost::optional limit; boost::optional> tags; }; -struct ApiGetHashTagsOptions -{ - boost::optional page; -}; -struct ApiGetModeratorsOptions -{ - boost::optional skip; -}; struct ApiGetNotificationCountOptions { boost::optional userId; @@ -346,10 +298,6 @@ struct ApiGetPendingWebhookEventsOptions boost::optional attemptCountGT; boost::optional skip; }; -struct ApiGetQuestionConfigsOptions -{ - boost::optional skip; -}; struct ApiGetQuestionResultsOptions { boost::optional urlId; @@ -359,14 +307,6 @@ struct ApiGetQuestionResultsOptions boost::optional questionIds; boost::optional skip; }; -struct ApiGetSSOUsersOptions -{ - boost::optional skip; -}; -struct ApiGetSubscriptionsOptions -{ - boost::optional userId; -}; struct ApiGetTenantDailyUsagesOptions { boost::optional yearNumber; @@ -374,23 +314,11 @@ struct ApiGetTenantDailyUsagesOptions boost::optional dayNumber; boost::optional skip; }; -struct ApiGetTenantPackagesOptions -{ - boost::optional skip; -}; -struct ApiGetTenantUsersOptions -{ - boost::optional skip; -}; struct ApiGetTenantsOptions { boost::optional meta; boost::optional skip; }; -struct ApiGetTicketOptions -{ - boost::optional userId; -}; struct ApiGetTicketsOptions { boost::optional userId; @@ -418,26 +346,6 @@ struct ApiGetVotesForUserOptions boost::optional userId; boost::optional anonUserId; }; -struct ApiPatchHashTagOptions -{ - boost::optional tenantId; -}; -struct ApiPatchSSOUserOptions -{ - boost::optional updateComments; -}; -struct ApiPutSSOUserOptions -{ - boost::optional updateComments; -}; -struct ApiRenderEmailTemplateOptions -{ - boost::optional locale; -}; -struct ApiReplaceTenantUserOptions -{ - boost::optional updateComments; -}; struct ApiSaveCommentOptions { boost::optional isLive; @@ -452,10 +360,6 @@ struct ApiSaveCommentsBulkOptions boost::optional sendEmails; boost::optional populateNotifications; }; -struct ApiSendLoginLinkOptions -{ - boost::optional redirectURL; -}; struct ApiUnBlockUserFromCommentOptions { boost::optional userId; @@ -472,18 +376,6 @@ struct ApiUpdateCommentOptions boost::optional doSpamCheck; boost::optional isLive; }; -struct ApiUpdateNotificationOptions -{ - boost::optional userId; -}; -struct ApiUpdateSubscriptionOptions -{ - boost::optional userId; -}; -struct ApiUpdateTenantUserOptions -{ - boost::optional updateComments; -}; @@ -506,6 +398,7 @@ class DefaultApi pplx::task> addDomainConfig( utility::string_t tenantId, std::shared_ptr addDomainConfigParams + ) const; /// /// @@ -517,7 +410,7 @@ class DefaultApi /// (optional) pplx::task> addHashTag( std::shared_ptr createHashTagBody - , const ApiAddHashTagOptions& options = {} + , boost::optional tenantId = boost::none ) const; /// /// @@ -529,7 +422,7 @@ class DefaultApi /// (optional) pplx::task> addHashTagsBulk( std::shared_ptr bulkCreateHashTagsBody - , const ApiAddHashTagsBulkOptions& options = {} + , boost::optional tenantId = boost::none ) const; /// /// @@ -542,6 +435,7 @@ class DefaultApi pplx::task> addPage( utility::string_t tenantId, std::shared_ptr createAPIPageData + ) const; /// /// @@ -554,6 +448,7 @@ class DefaultApi pplx::task> addSSOUser( utility::string_t tenantId, std::shared_ptr createAPISSOUserData + ) const; /// /// @@ -568,6 +463,7 @@ class DefaultApi pplx::task> aggregate( utility::string_t tenantId, std::shared_ptr aggregationRequest + , const ApiAggregateOptions& options = {} ) const; /// @@ -585,6 +481,7 @@ class DefaultApi /// (optional, default to false) pplx::task> aggregateQuestionResults( utility::string_t tenantId + , const ApiAggregateQuestionResultsOptions& options = {} ) const; /// @@ -602,6 +499,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr blockFromCommentParams + , const ApiBlockUserFromCommentOptions& options = {} ) const; /// @@ -616,7 +514,7 @@ class DefaultApi pplx::task> bulkAggregateQuestionResults( utility::string_t tenantId, std::shared_ptr bulkAggregateQuestionResultsRequest - , const ApiBulkAggregateQuestionResultsOptions& options = {} + , boost::optional forceRecalculate = boost::none ) const; /// /// @@ -633,6 +531,7 @@ class DefaultApi utility::string_t userId, utility::string_t id, std::shared_ptr changeTicketStateBody + ) const; /// /// @@ -651,6 +550,7 @@ class DefaultApi /// (optional, default to 0.0) pplx::task> combineCommentsWithQuestionResults( utility::string_t tenantId + , const ApiCombineCommentsWithQuestionResultsOptions& options = {} ) const; /// @@ -664,6 +564,7 @@ class DefaultApi pplx::task> createEmailTemplate( utility::string_t tenantId, std::shared_ptr createEmailTemplateBody + ) const; /// /// @@ -680,6 +581,7 @@ class DefaultApi pplx::task> createFeedPost( utility::string_t tenantId, std::shared_ptr createFeedPostParams + , const ApiCreateFeedPostOptions& options = {} ) const; /// @@ -693,6 +595,7 @@ class DefaultApi pplx::task> createModerator( utility::string_t tenantId, std::shared_ptr createModeratorBody + ) const; /// /// @@ -705,6 +608,7 @@ class DefaultApi pplx::task> createQuestionConfig( utility::string_t tenantId, std::shared_ptr createQuestionConfigBody + ) const; /// /// @@ -717,6 +621,7 @@ class DefaultApi pplx::task> createQuestionResult( utility::string_t tenantId, std::shared_ptr createQuestionResultBody + ) const; /// /// @@ -729,6 +634,7 @@ class DefaultApi pplx::task> createSubscription( utility::string_t tenantId, std::shared_ptr createAPIUserSubscriptionData + ) const; /// /// @@ -741,6 +647,7 @@ class DefaultApi pplx::task> createTenant( utility::string_t tenantId, std::shared_ptr createTenantBody + ) const; /// /// @@ -753,6 +660,7 @@ class DefaultApi pplx::task> createTenantPackage( utility::string_t tenantId, std::shared_ptr createTenantPackageBody + ) const; /// /// @@ -765,6 +673,7 @@ class DefaultApi pplx::task> createTenantUser( utility::string_t tenantId, std::shared_ptr createTenantUserBody + ) const; /// /// @@ -779,6 +688,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t userId, std::shared_ptr createTicketBody + ) const; /// /// @@ -791,6 +701,7 @@ class DefaultApi pplx::task> createUserBadge( utility::string_t tenantId, std::shared_ptr createUserBadgeParams + ) const; /// /// @@ -807,6 +718,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t commentId, utility::string_t direction + , const ApiCreateVoteOptions& options = {} ) const; /// @@ -822,6 +734,7 @@ class DefaultApi pplx::task> deleteComment( utility::string_t tenantId, utility::string_t id + , const ApiDeleteCommentOptions& options = {} ) const; /// @@ -835,6 +748,7 @@ class DefaultApi pplx::task> deleteDomainConfig( utility::string_t tenantId, utility::string_t domain + ) const; /// /// @@ -847,6 +761,7 @@ class DefaultApi pplx::task> deleteEmailTemplate( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -861,6 +776,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, utility::string_t errorId + ) const; /// /// @@ -874,7 +790,7 @@ class DefaultApi pplx::task> deleteHashTag( utility::string_t tag, std::shared_ptr deleteHashTagRequestBody - , const ApiDeleteHashTagOptions& options = {} + , boost::optional tenantId = boost::none ) const; /// /// @@ -888,7 +804,7 @@ class DefaultApi pplx::task> deleteModerator( utility::string_t tenantId, utility::string_t id - , const ApiDeleteModeratorOptions& options = {} + , boost::optional sendEmail = boost::none ) const; /// /// @@ -901,6 +817,7 @@ class DefaultApi pplx::task> deleteNotificationCount( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -913,6 +830,7 @@ class DefaultApi pplx::task> deletePage( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -925,6 +843,7 @@ class DefaultApi pplx::task> deletePendingWebhookEvent( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -937,6 +856,7 @@ class DefaultApi pplx::task> deleteQuestionConfig( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -949,6 +869,7 @@ class DefaultApi pplx::task> deleteQuestionResult( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -963,6 +884,7 @@ class DefaultApi pplx::task> deleteSSOUser( utility::string_t tenantId, utility::string_t id + , const ApiDeleteSSOUserOptions& options = {} ) const; /// @@ -977,7 +899,7 @@ class DefaultApi pplx::task> deleteSubscription( utility::string_t tenantId, utility::string_t id - , const ApiDeleteSubscriptionOptions& options = {} + , boost::optional userId = boost::none ) const; /// /// @@ -991,7 +913,7 @@ class DefaultApi pplx::task> deleteTenant( utility::string_t tenantId, utility::string_t id - , const ApiDeleteTenantOptions& options = {} + , boost::optional sure = boost::none ) const; /// /// @@ -1004,6 +926,7 @@ class DefaultApi pplx::task> deleteTenantPackage( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1018,6 +941,7 @@ class DefaultApi pplx::task> deleteTenantUser( utility::string_t tenantId, utility::string_t id + , const ApiDeleteTenantUserOptions& options = {} ) const; /// @@ -1031,6 +955,7 @@ class DefaultApi pplx::task> deleteUserBadge( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1044,7 +969,7 @@ class DefaultApi pplx::task> deleteVote( utility::string_t tenantId, utility::string_t id - , const ApiDeleteVoteOptions& options = {} + , boost::optional editKey = boost::none ) const; /// /// @@ -1059,6 +984,7 @@ class DefaultApi pplx::task> flagComment( utility::string_t tenantId, utility::string_t id + , const ApiFlagCommentOptions& options = {} ) const; /// @@ -1075,6 +1001,7 @@ class DefaultApi /// (optional, default to 0.0) pplx::task> getAuditLogs( utility::string_t tenantId + , const ApiGetAuditLogsOptions& options = {} ) const; /// @@ -1088,6 +1015,7 @@ class DefaultApi pplx::task> getCachedNotificationCount( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1100,6 +1028,7 @@ class DefaultApi pplx::task> getComment( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1126,6 +1055,7 @@ class DefaultApi /// (optional, default to 0L) pplx::task> getComments( utility::string_t tenantId + , const ApiGetCommentsOptions& options = {} ) const; /// @@ -1139,6 +1069,7 @@ class DefaultApi pplx::task> getDomainConfig( utility::string_t tenantId, utility::string_t domain + ) const; /// /// @@ -1149,6 +1080,7 @@ class DefaultApi /// pplx::task> getDomainConfigs( utility::string_t tenantId + ) const; /// /// @@ -1161,6 +1093,7 @@ class DefaultApi pplx::task> getEmailTemplate( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1171,6 +1104,7 @@ class DefaultApi /// pplx::task> getEmailTemplateDefinitions( utility::string_t tenantId + ) const; /// /// @@ -1184,7 +1118,7 @@ class DefaultApi pplx::task> getEmailTemplateRenderErrors( utility::string_t tenantId, utility::string_t id - , const ApiGetEmailTemplateRenderErrorsOptions& options = {} + , boost::optional skip = boost::none ) const; /// /// @@ -1196,7 +1130,7 @@ class DefaultApi /// (optional, default to 0.0) pplx::task> getEmailTemplates( utility::string_t tenantId - , const ApiGetEmailTemplatesOptions& options = {} + , boost::optional skip = boost::none ) const; /// /// @@ -1210,6 +1144,7 @@ class DefaultApi /// (optional, default to std::vector<std::shared_ptr<utility::string_t>>()) pplx::task> getFeedPosts( utility::string_t tenantId + , const ApiGetFeedPostsOptions& options = {} ) const; /// @@ -1222,7 +1157,7 @@ class DefaultApi /// (optional, default to 0.0) pplx::task> getHashTags( utility::string_t tenantId - , const ApiGetHashTagsOptions& options = {} + , boost::optional page = boost::none ) const; /// /// @@ -1235,6 +1170,7 @@ class DefaultApi pplx::task> getModerator( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1246,7 +1182,7 @@ class DefaultApi /// (optional, default to 0.0) pplx::task> getModerators( utility::string_t tenantId - , const ApiGetModeratorsOptions& options = {} + , boost::optional skip = boost::none ) const; /// /// @@ -1262,6 +1198,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getNotificationCount( utility::string_t tenantId + , const ApiGetNotificationCountOptions& options = {} ) const; /// @@ -1279,6 +1216,7 @@ class DefaultApi /// (optional, default to 0.0) pplx::task> getNotifications( utility::string_t tenantId + , const ApiGetNotificationsOptions& options = {} ) const; /// @@ -1292,6 +1230,7 @@ class DefaultApi pplx::task> getPageByURLId( utility::string_t tenantId, utility::string_t urlId + ) const; /// /// @@ -1302,6 +1241,7 @@ class DefaultApi /// pplx::task> getPages( utility::string_t tenantId + ) const; /// /// @@ -1318,6 +1258,7 @@ class DefaultApi /// (optional, default to 0.0) pplx::task> getPendingWebhookEventCount( utility::string_t tenantId + , const ApiGetPendingWebhookEventCountOptions& options = {} ) const; /// @@ -1336,6 +1277,7 @@ class DefaultApi /// (optional, default to 0.0) pplx::task> getPendingWebhookEvents( utility::string_t tenantId + , const ApiGetPendingWebhookEventsOptions& options = {} ) const; /// @@ -1349,6 +1291,7 @@ class DefaultApi pplx::task> getQuestionConfig( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1360,7 +1303,7 @@ class DefaultApi /// (optional, default to 0.0) pplx::task> getQuestionConfigs( utility::string_t tenantId - , const ApiGetQuestionConfigsOptions& options = {} + , boost::optional skip = boost::none ) const; /// /// @@ -1373,6 +1316,7 @@ class DefaultApi pplx::task> getQuestionResult( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1389,6 +1333,7 @@ class DefaultApi /// (optional, default to 0.0) pplx::task> getQuestionResults( utility::string_t tenantId + , const ApiGetQuestionResultsOptions& options = {} ) const; /// @@ -1402,6 +1347,7 @@ class DefaultApi pplx::task> getSSOUserByEmail( utility::string_t tenantId, utility::string_t email + ) const; /// /// @@ -1414,6 +1360,7 @@ class DefaultApi pplx::task> getSSOUserById( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1425,7 +1372,7 @@ class DefaultApi /// (optional, default to 0) pplx::task> getSSOUsers( utility::string_t tenantId - , const ApiGetSSOUsersOptions& options = {} + , boost::optional skip = boost::none ) const; /// /// @@ -1437,7 +1384,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getSubscriptions( utility::string_t tenantId - , const ApiGetSubscriptionsOptions& options = {} + , boost::optional userId = boost::none ) const; /// /// @@ -1450,6 +1397,7 @@ class DefaultApi pplx::task> getTenant( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1464,6 +1412,7 @@ class DefaultApi /// (optional, default to 0.0) pplx::task> getTenantDailyUsages( utility::string_t tenantId + , const ApiGetTenantDailyUsagesOptions& options = {} ) const; /// @@ -1477,6 +1426,7 @@ class DefaultApi pplx::task> getTenantPackage( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1488,7 +1438,7 @@ class DefaultApi /// (optional, default to 0.0) pplx::task> getTenantPackages( utility::string_t tenantId - , const ApiGetTenantPackagesOptions& options = {} + , boost::optional skip = boost::none ) const; /// /// @@ -1501,6 +1451,7 @@ class DefaultApi pplx::task> getTenantUser( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1512,7 +1463,7 @@ class DefaultApi /// (optional, default to 0.0) pplx::task> getTenantUsers( utility::string_t tenantId - , const ApiGetTenantUsersOptions& options = {} + , boost::optional skip = boost::none ) const; /// /// @@ -1525,6 +1476,7 @@ class DefaultApi /// (optional, default to 0.0) pplx::task> getTenants( utility::string_t tenantId + , const ApiGetTenantsOptions& options = {} ) const; /// @@ -1539,7 +1491,7 @@ class DefaultApi pplx::task> getTicket( utility::string_t tenantId, utility::string_t id - , const ApiGetTicketOptions& options = {} + , boost::optional userId = boost::none ) const; /// /// @@ -1554,6 +1506,7 @@ class DefaultApi /// (optional, default to 0.0) pplx::task> getTickets( utility::string_t tenantId + , const ApiGetTicketsOptions& options = {} ) const; /// @@ -1567,6 +1520,7 @@ class DefaultApi pplx::task> getUser( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1579,6 +1533,7 @@ class DefaultApi pplx::task> getUserBadge( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1591,6 +1546,7 @@ class DefaultApi pplx::task> getUserBadgeProgressById( utility::string_t tenantId, utility::string_t id + ) const; /// /// @@ -1603,6 +1559,7 @@ class DefaultApi pplx::task> getUserBadgeProgressByUserId( utility::string_t tenantId, utility::string_t userId + ) const; /// /// @@ -1616,6 +1573,7 @@ class DefaultApi /// (optional, default to 0.0) pplx::task> getUserBadgeProgressList( utility::string_t tenantId + , const ApiGetUserBadgeProgressListOptions& options = {} ) const; /// @@ -1633,6 +1591,7 @@ class DefaultApi /// (optional, default to 0.0) pplx::task> getUserBadges( utility::string_t tenantId + , const ApiGetUserBadgesOptions& options = {} ) const; /// @@ -1646,6 +1605,7 @@ class DefaultApi pplx::task> getVotes( utility::string_t tenantId, utility::string_t urlId + ) const; /// /// @@ -1660,6 +1620,7 @@ class DefaultApi pplx::task> getVotesForUser( utility::string_t tenantId, utility::string_t urlId + , const ApiGetVotesForUserOptions& options = {} ) const; /// @@ -1675,6 +1636,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t domainToUpdate, std::shared_ptr patchDomainConfigParams + ) const; /// /// @@ -1688,7 +1650,7 @@ class DefaultApi pplx::task> patchHashTag( utility::string_t tag, std::shared_ptr updateHashTagBody - , const ApiPatchHashTagOptions& options = {} + , boost::optional tenantId = boost::none ) const; /// /// @@ -1703,6 +1665,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateAPIPageData + ) const; /// /// @@ -1718,7 +1681,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateAPISSOUserData - , const ApiPatchSSOUserOptions& options = {} + , boost::optional updateComments = boost::none ) const; /// /// @@ -1733,6 +1696,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t domainToUpdate, std::shared_ptr updateDomainConfigParams + ) const; /// /// @@ -1748,7 +1712,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateAPISSOUserData - , const ApiPutSSOUserOptions& options = {} + , boost::optional updateComments = boost::none ) const; /// /// @@ -1762,7 +1726,7 @@ class DefaultApi pplx::task> renderEmailTemplate( utility::string_t tenantId, std::shared_ptr renderEmailTemplateBody - , const ApiRenderEmailTemplateOptions& options = {} + , boost::optional locale = boost::none ) const; /// /// @@ -1777,6 +1741,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantPackageBody + ) const; /// /// @@ -1792,7 +1757,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantUserBody - , const ApiReplaceTenantUserOptions& options = {} + , boost::optional updateComments = boost::none ) const; /// /// @@ -1809,6 +1774,7 @@ class DefaultApi pplx::task> saveComment( utility::string_t tenantId, std::shared_ptr createCommentParams + , const ApiSaveCommentOptions& options = {} ) const; /// @@ -1826,6 +1792,7 @@ class DefaultApi pplx::task>> saveCommentsBulk( utility::string_t tenantId, std::vector> createCommentParams + , const ApiSaveCommentsBulkOptions& options = {} ) const; /// @@ -1841,6 +1808,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, utility::string_t fromName + ) const; /// /// @@ -1854,7 +1822,7 @@ class DefaultApi pplx::task> sendLoginLink( utility::string_t tenantId, utility::string_t id - , const ApiSendLoginLinkOptions& options = {} + , boost::optional redirectURL = boost::none ) const; /// /// @@ -1871,6 +1839,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr unBlockFromCommentParams + , const ApiUnBlockUserFromCommentOptions& options = {} ) const; /// @@ -1886,6 +1855,7 @@ class DefaultApi pplx::task> unFlagComment( utility::string_t tenantId, utility::string_t id + , const ApiUnFlagCommentOptions& options = {} ) const; /// @@ -1904,6 +1874,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updatableCommentParams + , const ApiUpdateCommentOptions& options = {} ) const; /// @@ -1919,6 +1890,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateEmailTemplateBody + ) const; /// /// @@ -1933,6 +1905,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr feedPost + ) const; /// /// @@ -1947,6 +1920,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateModeratorBody + ) const; /// /// @@ -1962,7 +1936,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateNotificationBody - , const ApiUpdateNotificationOptions& options = {} + , boost::optional userId = boost::none ) const; /// /// @@ -1977,6 +1951,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionConfigBody + ) const; /// /// @@ -1991,6 +1966,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionResultBody + ) const; /// /// @@ -2006,7 +1982,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateAPIUserSubscriptionData - , const ApiUpdateSubscriptionOptions& options = {} + , boost::optional userId = boost::none ) const; /// /// @@ -2021,6 +1997,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantBody + ) const; /// /// @@ -2035,6 +2012,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantPackageBody + ) const; /// /// @@ -2050,7 +2028,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantUserBody - , const ApiUpdateTenantUserOptions& options = {} + , boost::optional updateComments = boost::none ) const; /// /// @@ -2065,6 +2043,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 6371bbd..7a19c51 100644 --- a/client/include/FastCommentsClient/api/ModerationApi.h +++ b/client/include/FastCommentsClient/api/ModerationApi.h @@ -389,6 +389,7 @@ class ModerationApi pplx::task> deleteModerationVote( utility::string_t commentId, utility::string_t voteId + , const ApiDeleteModerationVoteOptions& options = {} ) const; /// @@ -408,6 +409,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getApiComments( + const ApiGetApiCommentsOptions& options = {} ) const; /// @@ -420,6 +422,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getApiExportStatus( + const ApiGetApiExportStatusOptions& options = {} ) const; /// @@ -437,6 +440,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getApiIds( + const ApiGetApiIdsOptions& options = {} ) const; /// @@ -450,6 +454,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getBanUsersFromComment( utility::string_t commentId + , const ApiGetBanUsersFromCommentOptions& options = {} ) const; /// @@ -463,6 +468,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getCommentBanStatus( utility::string_t commentId + , const ApiGetCommentBanStatusOptions& options = {} ) const; /// @@ -476,6 +482,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getCommentChildren( utility::string_t commentId + , const ApiGetCommentChildrenOptions& options = {} ) const; /// @@ -492,6 +499,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getCount( + const ApiGetCountOptions& options = {} ) const; /// @@ -503,6 +511,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getCounts( + const ApiGetCountsOptions& options = {} ) const; /// @@ -516,6 +525,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getLogs( utility::string_t commentId + , const ApiGetLogsOptions& options = {} ) const; /// @@ -527,6 +537,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getManualBadges( + const ApiGetManualBadgesOptions& options = {} ) const; /// @@ -540,6 +551,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getManualBadgesForUser( + const ApiGetManualBadgesForUserOptions& options = {} ) const; /// @@ -555,6 +567,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getModerationComment( utility::string_t commentId + , const ApiGetModerationCommentOptions& options = {} ) const; /// @@ -568,6 +581,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getModerationCommentText( utility::string_t commentId + , const ApiGetModerationCommentTextOptions& options = {} ) const; /// @@ -584,6 +598,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getPreBanSummary( utility::string_t commentId + , const ApiGetPreBanSummaryOptions& options = {} ) const; /// @@ -598,6 +613,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getSearchCommentsSummary( + const ApiGetSearchCommentsSummaryOptions& options = {} ) const; /// @@ -610,6 +626,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getSearchPages( + const ApiGetSearchPagesOptions& options = {} ) const; /// @@ -622,6 +639,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getSearchSites( + const ApiGetSearchSitesOptions& options = {} ) const; /// @@ -634,6 +652,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getSearchSuggest( + const ApiGetSearchSuggestOptions& options = {} ) const; /// @@ -646,6 +665,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getSearchUsers( + const ApiGetSearchUsersOptions& options = {} ) const; /// @@ -658,6 +678,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getTrustFactor( + const ApiGetTrustFactorOptions& options = {} ) const; /// @@ -669,6 +690,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getUserBanPreference( + const ApiGetUserBanPreferenceOptions& options = {} ) const; /// @@ -681,6 +703,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getUserInternalProfile( + const ApiGetUserInternalProfileOptions& options = {} ) const; /// @@ -697,6 +720,7 @@ class ModerationApi pplx::task> postAdjustCommentVotes( utility::string_t commentId, std::shared_ptr adjustCommentVotesParams + , const ApiPostAdjustCommentVotesOptions& options = {} ) const; /// @@ -713,6 +737,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postApiExport( + const ApiPostApiExportOptions& options = {} ) const; /// @@ -734,6 +759,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postBanUserFromComment( utility::string_t commentId + , const ApiPostBanUserFromCommentOptions& options = {} ) const; /// @@ -747,6 +773,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postBanUserUndo( std::shared_ptr banUserUndoParams + , const ApiPostBanUserUndoOptions& options = {} ) const; /// @@ -763,6 +790,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postBulkPreBanSummary( std::shared_ptr bulkPreBanParams + , const ApiPostBulkPreBanSummaryOptions& options = {} ) const; /// @@ -776,6 +804,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postCommentsByIds( std::shared_ptr commentsByIdsParams + , const ApiPostCommentsByIdsOptions& options = {} ) const; /// @@ -790,6 +819,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postFlagComment( utility::string_t commentId + , const ApiPostFlagCommentOptions& options = {} ) const; /// @@ -804,6 +834,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postRemoveComment( utility::string_t commentId + , const ApiPostRemoveCommentOptions& options = {} ) const; /// @@ -818,6 +849,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postRestoreDeletedComment( utility::string_t commentId + , const ApiPostRestoreDeletedCommentOptions& options = {} ) const; /// @@ -833,6 +865,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postSetCommentApprovalStatus( utility::string_t commentId + , const ApiPostSetCommentApprovalStatusOptions& options = {} ) const; /// @@ -848,6 +881,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postSetCommentReviewStatus( utility::string_t commentId + , const ApiPostSetCommentReviewStatusOptions& options = {} ) const; /// @@ -864,6 +898,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postSetCommentSpamStatus( utility::string_t commentId + , const ApiPostSetCommentSpamStatusOptions& options = {} ) const; /// @@ -880,6 +915,7 @@ class ModerationApi pplx::task> postSetCommentText( utility::string_t commentId, std::shared_ptr setCommentTextParams + , const ApiPostSetCommentTextOptions& options = {} ) const; /// @@ -894,6 +930,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postUnFlagComment( utility::string_t commentId + , const ApiPostUnFlagCommentOptions& options = {} ) const; /// @@ -909,6 +946,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postVote( utility::string_t commentId + , const ApiPostVoteOptions& options = {} ) const; /// @@ -925,6 +963,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> putAwardBadge( utility::string_t badgeId + , const ApiPutAwardBadgeOptions& options = {} ) const; /// @@ -938,6 +977,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> putCloseThread( utility::string_t urlId + , const ApiPutCloseThreadOptions& options = {} ) const; /// @@ -954,6 +994,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> putRemoveBadge( utility::string_t badgeId + , const ApiPutRemoveBadgeOptions& options = {} ) const; /// @@ -967,6 +1008,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> putReopenThread( utility::string_t urlId + , const ApiPutReopenThreadOptions& options = {} ) const; /// @@ -980,6 +1022,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> setTrustFactor( + const ApiSetTrustFactorOptions& options = {} ) const; diff --git a/client/include/FastCommentsClient/api/PublicApi.h b/client/include/FastCommentsClient/api/PublicApi.h index ad5acbf..54817ca 100644 --- a/client/include/FastCommentsClient/api/PublicApi.h +++ b/client/include/FastCommentsClient/api/PublicApi.h @@ -87,14 +87,6 @@ namespace api { using namespace org::openapitools::client::model; -struct ApiBlockFromCommentPublicOptions -{ - boost::optional sso; -}; -struct ApiCheckedCommentsForBlockedOptions -{ - boost::optional sso; -}; struct ApiCreateCommentPublicOptions { boost::optional sessionId; @@ -105,14 +97,6 @@ struct ApiCreateFeedPostPublicOptions boost::optional broadcastId; boost::optional sso; }; -struct ApiCreateV1PageReactOptions -{ - boost::optional title; -}; -struct ApiCreateV2PageReactOptions -{ - boost::optional title; -}; struct ApiDeleteCommentPublicOptions { boost::optional editKey; @@ -128,19 +112,11 @@ struct ApiDeleteFeedPostPublicOptions boost::optional broadcastId; boost::optional sso; }; -struct ApiFlagCommentPublicOptions -{ - boost::optional sso; -}; struct ApiGetCommentTextOptions { boost::optional editKey; boost::optional sso; }; -struct ApiGetCommentVoteUserNamesOptions -{ - boost::optional sso; -}; struct ApiGetCommentsForUserOptions { boost::optional userId; @@ -180,10 +156,6 @@ struct ApiGetCommentsPublicOptions boost::optional afterCommentId; boost::optional beforeCommentId; }; -struct ApiGetEventLogOptions -{ - boost::optional endTime; -}; struct ApiGetFeedPostsPublicOptions { boost::optional afterId; @@ -193,10 +165,6 @@ struct ApiGetFeedPostsPublicOptions boost::optional isCrawler; boost::optional includeUserInfo; }; -struct ApiGetFeedPostsStatsOptions -{ - boost::optional sso; -}; struct ApiGetGifsSearchOptions { boost::optional locale; @@ -209,10 +177,6 @@ struct ApiGetGifsTrendingOptions boost::optional rating; boost::optional page; }; -struct ApiGetGlobalEventLogOptions -{ - boost::optional endTime; -}; struct ApiGetOfflineUsersOptions { boost::optional afterName; @@ -236,10 +200,6 @@ struct ApiGetTranslationsOptions boost::optional locale; boost::optional useFullTranslationIds; }; -struct ApiGetUserNotificationCountOptions -{ - boost::optional sso; -}; struct ApiGetUserNotificationsOptions { boost::optional urlId; @@ -259,24 +219,12 @@ struct ApiGetUserReactsPublicOptions boost::optional> postIds; boost::optional sso; }; -struct ApiLockCommentOptions -{ - boost::optional sso; -}; -struct ApiPinCommentOptions -{ - boost::optional sso; -}; struct ApiReactFeedPostPublicOptions { boost::optional isUndo; boost::optional broadcastId; boost::optional sso; }; -struct ApiResetUserNotificationCountOptions -{ - boost::optional sso; -}; struct ApiResetUserNotificationsOptions { boost::optional afterId; @@ -298,35 +246,11 @@ struct ApiSetCommentTextOptions boost::optional editKey; boost::optional sso; }; -struct ApiUnBlockCommentPublicOptions -{ - boost::optional sso; -}; -struct ApiUnLockCommentOptions -{ - boost::optional sso; -}; -struct ApiUnPinCommentOptions -{ - boost::optional sso; -}; struct ApiUpdateFeedPostPublicOptions { boost::optional broadcastId; boost::optional sso; }; -struct ApiUpdateUserNotificationCommentSubscriptionStatusOptions -{ - boost::optional sso; -}; -struct ApiUpdateUserNotificationPageSubscriptionStatusOptions -{ - boost::optional sso; -}; -struct ApiUpdateUserNotificationStatusOptions -{ - boost::optional sso; -}; struct ApiUploadImageOptions { boost::optional> sizePreset; @@ -362,7 +286,7 @@ class PublicApi utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams - , const ApiBlockFromCommentPublicOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -376,7 +300,7 @@ class PublicApi pplx::task> checkedCommentsForBlocked( utility::string_t tenantId, utility::string_t commentIds - , const ApiCheckedCommentsForBlockedOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -395,6 +319,7 @@ class PublicApi utility::string_t urlId, utility::string_t broadcastId, std::shared_ptr commentData + , const ApiCreateCommentPublicOptions& options = {} ) const; /// @@ -410,6 +335,7 @@ class PublicApi pplx::task> createFeedPostPublic( utility::string_t tenantId, std::shared_ptr createFeedPostParams + , const ApiCreateFeedPostPublicOptions& options = {} ) const; /// @@ -424,7 +350,7 @@ class PublicApi pplx::task> createV1PageReact( utility::string_t tenantId, utility::string_t urlId - , const ApiCreateV1PageReactOptions& options = {} + , boost::optional title = boost::none ) const; /// /// @@ -440,7 +366,7 @@ class PublicApi utility::string_t tenantId, utility::string_t urlId, utility::string_t id - , const ApiCreateV2PageReactOptions& options = {} + , boost::optional title = boost::none ) const; /// /// @@ -457,6 +383,7 @@ class PublicApi utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId + , const ApiDeleteCommentPublicOptions& options = {} ) const; /// @@ -478,6 +405,7 @@ class PublicApi utility::string_t voteId, utility::string_t urlId, utility::string_t broadcastId + , const ApiDeleteCommentVoteOptions& options = {} ) const; /// @@ -493,6 +421,7 @@ class PublicApi pplx::task> deleteFeedPostPublic( utility::string_t tenantId, utility::string_t postId + , const ApiDeleteFeedPostPublicOptions& options = {} ) const; /// @@ -506,6 +435,7 @@ class PublicApi pplx::task> deleteV1PageReact( utility::string_t tenantId, utility::string_t urlId + ) const; /// /// @@ -520,6 +450,7 @@ class PublicApi utility::string_t tenantId, utility::string_t urlId, utility::string_t id + ) const; /// /// @@ -535,7 +466,7 @@ class PublicApi utility::string_t tenantId, utility::string_t commentId, bool isFlagged - , const ApiFlagCommentPublicOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -550,6 +481,7 @@ class PublicApi pplx::task> getCommentText( utility::string_t tenantId, utility::string_t commentId + , const ApiGetCommentTextOptions& options = {} ) const; /// @@ -566,7 +498,7 @@ class PublicApi utility::string_t tenantId, utility::string_t commentId, int32_t dir - , const ApiGetCommentVoteUserNamesOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -582,6 +514,7 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) pplx::task> getCommentsForUser( + const ApiGetCommentsForUserOptions& options = {} ) const; /// @@ -621,6 +554,7 @@ class PublicApi pplx::task> getCommentsPublic( utility::string_t tenantId, utility::string_t urlId + , const ApiGetCommentsPublicOptions& options = {} ) const; /// @@ -639,7 +573,7 @@ class PublicApi utility::string_t urlId, utility::string_t userIdWS, int64_t startTime - , const ApiGetEventLogOptions& options = {} + , boost::optional endTime = boost::none ) const; /// /// @@ -656,6 +590,7 @@ class PublicApi /// (optional, default to false) pplx::task> getFeedPostsPublic( utility::string_t tenantId + , const ApiGetFeedPostsPublicOptions& options = {} ) const; /// @@ -670,7 +605,7 @@ class PublicApi pplx::task> getFeedPostsStats( utility::string_t tenantId, std::vector postIds - , const ApiGetFeedPostsStatsOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -683,6 +618,7 @@ class PublicApi pplx::task> getGifLarge( utility::string_t tenantId, utility::string_t largeInternalURLSanitized + ) const; /// /// @@ -698,6 +634,7 @@ class PublicApi pplx::task> getGifsSearch( utility::string_t tenantId, utility::string_t search + , const ApiGetGifsSearchOptions& options = {} ) const; /// @@ -712,6 +649,7 @@ class PublicApi /// (optional, default to 0.0) pplx::task> getGifsTrending( utility::string_t tenantId + , const ApiGetGifsTrendingOptions& options = {} ) const; /// @@ -730,7 +668,7 @@ class PublicApi utility::string_t urlId, utility::string_t userIdWS, int64_t startTime - , const ApiGetGlobalEventLogOptions& options = {} + , boost::optional endTime = boost::none ) const; /// /// @@ -745,6 +683,7 @@ class PublicApi pplx::task> getOfflineUsers( utility::string_t tenantId, utility::string_t urlId + , const ApiGetOfflineUsersOptions& options = {} ) const; /// @@ -760,6 +699,7 @@ class PublicApi pplx::task> getOnlineUsers( utility::string_t tenantId, utility::string_t urlId + , const ApiGetOnlineUsersOptions& options = {} ) const; /// @@ -776,6 +716,7 @@ class PublicApi /// If true, only return pages with at least one comment. (optional, default to false) pplx::task> getPagesPublic( utility::string_t tenantId + , const ApiGetPagesPublicOptions& options = {} ) const; /// @@ -791,6 +732,7 @@ class PublicApi pplx::task> getTranslations( utility::string_t r_namespace, utility::string_t component + , const ApiGetTranslationsOptions& options = {} ) const; /// @@ -803,7 +745,7 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getUserNotificationCount( utility::string_t tenantId - , const ApiGetUserNotificationCountOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -825,6 +767,7 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getUserNotifications( utility::string_t tenantId + , const ApiGetUserNotificationsOptions& options = {} ) const; /// @@ -840,6 +783,7 @@ class PublicApi utility::string_t tenantId, utility::string_t urlIdWS, utility::string_t userIds + ) const; /// /// @@ -852,6 +796,7 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getUserReactsPublic( utility::string_t tenantId + , const ApiGetUserReactsPublicOptions& options = {} ) const; /// @@ -865,6 +810,7 @@ class PublicApi pplx::task> getUsersInfo( utility::string_t tenantId, utility::string_t ids + ) const; /// /// @@ -877,6 +823,7 @@ class PublicApi pplx::task> getV1PageLikes( utility::string_t tenantId, utility::string_t urlId + ) const; /// /// @@ -891,6 +838,7 @@ class PublicApi utility::string_t tenantId, utility::string_t urlId, utility::string_t id + ) const; /// /// @@ -903,6 +851,7 @@ class PublicApi pplx::task> getV2PageReacts( utility::string_t tenantId, utility::string_t urlId + ) const; /// /// @@ -918,7 +867,7 @@ class PublicApi utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId - , const ApiLockCommentOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -927,6 +876,7 @@ class PublicApi /// /// pplx::task> logoutPublic( + ) const; /// /// @@ -942,7 +892,7 @@ class PublicApi utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId - , const ApiPinCommentOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -960,6 +910,7 @@ class PublicApi utility::string_t tenantId, utility::string_t postId, std::shared_ptr reactBodyParams + , const ApiReactFeedPostPublicOptions& options = {} ) const; /// @@ -972,7 +923,7 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> resetUserNotificationCount( utility::string_t tenantId - , const ApiResetUserNotificationCountOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -989,6 +940,7 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) pplx::task> resetUserNotifications( utility::string_t tenantId + , const ApiResetUserNotificationsOptions& options = {} ) const; /// @@ -1006,6 +958,7 @@ class PublicApi pplx::task> searchUsers( utility::string_t tenantId, utility::string_t urlId + , const ApiSearchUsersOptions& options = {} ) const; /// @@ -1025,6 +978,7 @@ class PublicApi utility::string_t commentId, utility::string_t broadcastId, std::shared_ptr commentTextUpdateRequest + , const ApiSetCommentTextOptions& options = {} ) const; /// @@ -1041,7 +995,7 @@ class PublicApi utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams - , const ApiUnBlockCommentPublicOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -1057,7 +1011,7 @@ class PublicApi utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId - , const ApiUnLockCommentOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -1073,7 +1027,7 @@ class PublicApi utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId - , const ApiUnPinCommentOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -1090,6 +1044,7 @@ class PublicApi utility::string_t tenantId, utility::string_t postId, std::shared_ptr updateFeedPostParams + , const ApiUpdateFeedPostPublicOptions& options = {} ) const; /// @@ -1108,7 +1063,7 @@ class PublicApi utility::string_t notificationId, utility::string_t optedInOrOut, utility::string_t commentId - , const ApiUpdateUserNotificationCommentSubscriptionStatusOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -1128,7 +1083,7 @@ class PublicApi utility::string_t url, utility::string_t pageTitle, utility::string_t subscribedOrUnsubscribed - , const ApiUpdateUserNotificationPageSubscriptionStatusOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -1144,7 +1099,7 @@ class PublicApi utility::string_t tenantId, utility::string_t notificationId, utility::string_t newStatus - , const ApiUpdateUserNotificationStatusOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -1159,6 +1114,7 @@ class PublicApi pplx::task> uploadImage( utility::string_t tenantId, std::shared_ptr file + , const ApiUploadImageOptions& options = {} ) const; /// @@ -1180,6 +1136,7 @@ class PublicApi utility::string_t urlId, utility::string_t broadcastId, std::shared_ptr voteBodyParams + , const ApiVoteCommentOptions& options = {} ) const; diff --git a/client/src/api/DefaultApi.cpp b/client/src/api/DefaultApi.cpp index 64fb1cd..c935e08 100644 --- a/client/src/api/DefaultApi.cpp +++ b/client/src/api/DefaultApi.cpp @@ -38,6 +38,7 @@ DefaultApi::~DefaultApi() pplx::task> DefaultApi::addDomainConfig( utility::string_t tenantId, std::shared_ptr addDomainConfigParams + ) const { @@ -195,10 +196,9 @@ pplx::task> DefaultApi::addDomainConfig } pplx::task> DefaultApi::addHashTag( std::shared_ptr createHashTagBody - , const ApiAddHashTagOptions& options + , boost::optional tenantId ) const { - auto tenantId = options.tenantId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -349,10 +349,9 @@ pplx::task> DefaultApi::addHashTag( } pplx::task> DefaultApi::addHashTagsBulk( std::shared_ptr bulkCreateHashTagsBody - , const ApiAddHashTagsBulkOptions& options + , boost::optional tenantId ) const { - auto tenantId = options.tenantId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -504,6 +503,7 @@ pplx::task> DefaultApi::addHashTagsB pplx::task> DefaultApi::addPage( utility::string_t tenantId, std::shared_ptr createAPIPageData + ) const { @@ -662,6 +662,7 @@ pplx::task> DefaultApi::addPage( pplx::task> DefaultApi::addSSOUser( utility::string_t tenantId, std::shared_ptr createAPISSOUserData + ) const { @@ -820,6 +821,7 @@ pplx::task> DefaultApi::addSSOUser( pplx::task> DefaultApi::aggregate( utility::string_t tenantId, std::shared_ptr aggregationRequest + , const ApiAggregateOptions& options ) const { @@ -988,6 +990,7 @@ pplx::task> DefaultApi::aggregate( } pplx::task> DefaultApi::aggregateQuestionResults( utility::string_t tenantId + , const ApiAggregateQuestionResultsOptions& options ) const { @@ -1156,6 +1159,7 @@ pplx::task> DefaultApi::blockUserFromComment( utility::string_t tenantId, utility::string_t id, std::shared_ptr blockFromCommentParams + , const ApiBlockUserFromCommentOptions& options ) const { @@ -1326,10 +1330,9 @@ pplx::task> DefaultApi::blockUserFromComment( pplx::task> DefaultApi::bulkAggregateQuestionResults( utility::string_t tenantId, std::shared_ptr bulkAggregateQuestionResultsRequest - , const ApiBulkAggregateQuestionResultsOptions& options + , boost::optional forceRecalculate ) const { - auto forceRecalculate = options.forceRecalculate; // verify the required parameter 'bulkAggregateQuestionResultsRequest' is set if (bulkAggregateQuestionResultsRequest == nullptr) @@ -1492,6 +1495,7 @@ pplx::task> DefaultApi::changeTicketS utility::string_t userId, utility::string_t id, std::shared_ptr changeTicketStateBody + ) const { @@ -1653,6 +1657,7 @@ pplx::task> DefaultApi::changeTicketS } pplx::task> DefaultApi::combineCommentsWithQuestionResults( utility::string_t tenantId + , const ApiCombineCommentsWithQuestionResultsOptions& options ) const { @@ -1830,6 +1835,7 @@ pplx::task> DefaultA pplx::task> DefaultApi::createEmailTemplate( utility::string_t tenantId, std::shared_ptr createEmailTemplateBody + ) const { @@ -1988,6 +1994,7 @@ pplx::task> DefaultApi::createEmail pplx::task> DefaultApi::createFeedPost( utility::string_t tenantId, std::shared_ptr createFeedPostParams + , const ApiCreateFeedPostOptions& options ) const { @@ -2167,6 +2174,7 @@ pplx::task> DefaultApi::createFeedPost( pplx::task> DefaultApi::createModerator( utility::string_t tenantId, std::shared_ptr createModeratorBody + ) const { @@ -2325,6 +2333,7 @@ pplx::task> DefaultApi::createModerator pplx::task> DefaultApi::createQuestionConfig( utility::string_t tenantId, std::shared_ptr createQuestionConfigBody + ) const { @@ -2483,6 +2492,7 @@ pplx::task> DefaultApi::createQues pplx::task> DefaultApi::createQuestionResult( utility::string_t tenantId, std::shared_ptr createQuestionResultBody + ) const { @@ -2641,6 +2651,7 @@ pplx::task> DefaultApi::createQues pplx::task> DefaultApi::createSubscription( utility::string_t tenantId, std::shared_ptr createAPIUserSubscriptionData + ) const { @@ -2799,6 +2810,7 @@ pplx::task> DefaultApi::createSub pplx::task> DefaultApi::createTenant( utility::string_t tenantId, std::shared_ptr createTenantBody + ) const { @@ -2957,6 +2969,7 @@ pplx::task> DefaultApi::createTenant( pplx::task> DefaultApi::createTenantPackage( utility::string_t tenantId, std::shared_ptr createTenantPackageBody + ) const { @@ -3115,6 +3128,7 @@ pplx::task> DefaultApi::createTenan pplx::task> DefaultApi::createTenantUser( utility::string_t tenantId, std::shared_ptr createTenantUserBody + ) const { @@ -3274,6 +3288,7 @@ pplx::task> DefaultApi::createTicket( utility::string_t tenantId, utility::string_t userId, std::shared_ptr createTicketBody + ) const { @@ -3435,6 +3450,7 @@ pplx::task> DefaultApi::createTicket( pplx::task> DefaultApi::createUserBadge( utility::string_t tenantId, std::shared_ptr createUserBadgeParams + ) const { @@ -3594,6 +3610,7 @@ pplx::task> DefaultApi::createVote( utility::string_t tenantId, utility::string_t commentId, utility::string_t direction + , const ApiCreateVoteOptions& options ) const { @@ -3747,6 +3764,7 @@ pplx::task> DefaultApi::createVote( pplx::task> DefaultApi::deleteComment( utility::string_t tenantId, utility::string_t id + , const ApiDeleteCommentOptions& options ) const { @@ -3895,6 +3913,7 @@ pplx::task> DefaultApi::deleteComment( pplx::task> DefaultApi::deleteDomainConfig( utility::string_t tenantId, utility::string_t domain + ) const { @@ -4032,6 +4051,7 @@ pplx::task> DefaultApi::deleteDomain pplx::task> DefaultApi::deleteEmailTemplate( utility::string_t tenantId, utility::string_t id + ) const { @@ -4170,6 +4190,7 @@ pplx::task> DefaultApi::deleteEmailTemplateRen utility::string_t tenantId, utility::string_t id, utility::string_t errorId + ) const { @@ -4308,10 +4329,9 @@ pplx::task> DefaultApi::deleteEmailTemplateRen pplx::task> DefaultApi::deleteHashTag( utility::string_t tag, std::shared_ptr deleteHashTagRequestBody - , const ApiDeleteHashTagOptions& options + , boost::optional tenantId ) const { - auto tenantId = options.tenantId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4464,10 +4484,9 @@ pplx::task> DefaultApi::deleteHashTag( pplx::task> DefaultApi::deleteModerator( utility::string_t tenantId, utility::string_t id - , const ApiDeleteModeratorOptions& options + , boost::optional sendEmail ) const { - auto sendEmail = options.sendEmail; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4607,6 +4626,7 @@ pplx::task> DefaultApi::deleteModerator( pplx::task> DefaultApi::deleteNotificationCount( utility::string_t tenantId, utility::string_t id + ) const { @@ -4744,6 +4764,7 @@ pplx::task> DefaultApi::deleteNotificationCoun pplx::task> DefaultApi::deletePage( utility::string_t tenantId, utility::string_t id + ) const { @@ -4881,6 +4902,7 @@ pplx::task> DefaultApi::deletePage( pplx::task> DefaultApi::deletePendingWebhookEvent( utility::string_t tenantId, utility::string_t id + ) const { @@ -5018,6 +5040,7 @@ pplx::task> DefaultApi::deletePendingWebhookEv pplx::task> DefaultApi::deleteQuestionConfig( utility::string_t tenantId, utility::string_t id + ) const { @@ -5155,6 +5178,7 @@ pplx::task> DefaultApi::deleteQuestionConfig( pplx::task> DefaultApi::deleteQuestionResult( utility::string_t tenantId, utility::string_t id + ) const { @@ -5292,6 +5316,7 @@ pplx::task> DefaultApi::deleteQuestionResult( pplx::task> DefaultApi::deleteSSOUser( utility::string_t tenantId, utility::string_t id + , const ApiDeleteSSOUserOptions& options ) const { @@ -5440,10 +5465,9 @@ pplx::task> DefaultApi::deleteSSOUser( pplx::task> DefaultApi::deleteSubscription( utility::string_t tenantId, utility::string_t id - , const ApiDeleteSubscriptionOptions& options + , boost::optional userId ) const { - auto userId = options.userId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5583,10 +5607,9 @@ pplx::task> DefaultApi::deleteSub pplx::task> DefaultApi::deleteTenant( utility::string_t tenantId, utility::string_t id - , const ApiDeleteTenantOptions& options + , boost::optional sure ) const { - auto sure = options.sure; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5726,6 +5749,7 @@ pplx::task> DefaultApi::deleteTenant( pplx::task> DefaultApi::deleteTenantPackage( utility::string_t tenantId, utility::string_t id + ) const { @@ -5863,6 +5887,7 @@ pplx::task> DefaultApi::deleteTenantPackage( pplx::task> DefaultApi::deleteTenantUser( utility::string_t tenantId, utility::string_t id + , const ApiDeleteTenantUserOptions& options ) const { @@ -6011,6 +6036,7 @@ pplx::task> DefaultApi::deleteTenantUser( pplx::task> DefaultApi::deleteUserBadge( utility::string_t tenantId, utility::string_t id + ) const { @@ -6148,10 +6174,9 @@ pplx::task> DefaultApi::deleteUserBadge pplx::task> DefaultApi::deleteVote( utility::string_t tenantId, utility::string_t id - , const ApiDeleteVoteOptions& options + , boost::optional editKey ) const { - auto editKey = options.editKey; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6291,6 +6316,7 @@ pplx::task> DefaultApi::deleteVote( pplx::task> DefaultApi::flagComment( utility::string_t tenantId, utility::string_t id + , const ApiFlagCommentOptions& options ) const { @@ -6438,6 +6464,7 @@ pplx::task> DefaultApi::flagComment( } pplx::task> DefaultApi::getAuditLogs( utility::string_t tenantId + , const ApiGetAuditLogsOptions& options ) const { @@ -6600,6 +6627,7 @@ pplx::task> DefaultApi::getAuditLogs( pplx::task> DefaultApi::getCachedNotificationCount( utility::string_t tenantId, utility::string_t id + ) const { @@ -6737,6 +6765,7 @@ pplx::task> DefaultApi::getC pplx::task> DefaultApi::getComment( utility::string_t tenantId, utility::string_t id + ) const { @@ -6873,6 +6902,7 @@ pplx::task> DefaultApi::getComment( } pplx::task> DefaultApi::getComments( utility::string_t tenantId + , const ApiGetCommentsOptions& options ) const { @@ -7090,6 +7120,7 @@ pplx::task> DefaultApi::getComments( pplx::task> DefaultApi::getDomainConfig( utility::string_t tenantId, utility::string_t domain + ) const { @@ -7226,6 +7257,7 @@ pplx::task> DefaultApi::getDomainConfig } pplx::task> DefaultApi::getDomainConfigs( utility::string_t tenantId + ) const { @@ -7362,6 +7394,7 @@ pplx::task> DefaultApi::getDomainConfi pplx::task> DefaultApi::getEmailTemplate( utility::string_t tenantId, utility::string_t id + ) const { @@ -7498,6 +7531,7 @@ pplx::task> DefaultApi::getEmailTempla } pplx::task> DefaultApi::getEmailTemplateDefinitions( utility::string_t tenantId + ) const { @@ -7634,10 +7668,9 @@ pplx::task> DefaultApi::get pplx::task> DefaultApi::getEmailTemplateRenderErrors( utility::string_t tenantId, utility::string_t id - , const ApiGetEmailTemplateRenderErrorsOptions& options + , boost::optional skip ) const { - auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7776,10 +7809,9 @@ pplx::task> DefaultApi::ge } pplx::task> DefaultApi::getEmailTemplates( utility::string_t tenantId - , const ApiGetEmailTemplatesOptions& options + , boost::optional skip ) const { - auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7917,6 +7949,7 @@ pplx::task> DefaultApi::getEmailTempl } pplx::task> DefaultApi::getFeedPosts( utility::string_t tenantId + , const ApiGetFeedPostsOptions& options ) const { @@ -8068,10 +8101,9 @@ pplx::task> DefaultApi::getFeedPosts( } pplx::task> DefaultApi::getHashTags( utility::string_t tenantId - , const ApiGetHashTagsOptions& options + , boost::optional page ) const { - auto page = options.page; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -8210,6 +8242,7 @@ pplx::task> DefaultApi::getHashTags( pplx::task> DefaultApi::getModerator( utility::string_t tenantId, utility::string_t id + ) const { @@ -8346,10 +8379,9 @@ pplx::task> DefaultApi::getModerator( } pplx::task> DefaultApi::getModerators( utility::string_t tenantId - , const ApiGetModeratorsOptions& options + , boost::optional skip ) const { - auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -8487,6 +8519,7 @@ pplx::task> DefaultApi::getModerators( } pplx::task> DefaultApi::getNotificationCount( utility::string_t tenantId + , const ApiGetNotificationCountOptions& options ) const { @@ -8648,6 +8681,7 @@ pplx::task> DefaultApi::getNotific } pplx::task> DefaultApi::getNotifications( utility::string_t tenantId + , const ApiGetNotificationsOptions& options ) const { @@ -8815,6 +8849,7 @@ pplx::task> DefaultApi::getNotificatio pplx::task> DefaultApi::getPageByURLId( utility::string_t tenantId, utility::string_t urlId + ) const { @@ -8953,6 +8988,7 @@ pplx::task> DefaultApi::getPageByURLI } pplx::task> DefaultApi::getPages( utility::string_t tenantId + ) const { @@ -9088,6 +9124,7 @@ pplx::task> DefaultApi::getPages( } pplx::task> DefaultApi::getPendingWebhookEventCount( utility::string_t tenantId + , const ApiGetPendingWebhookEventCountOptions& options ) const { @@ -9254,6 +9291,7 @@ pplx::task> DefaultApi::get } pplx::task> DefaultApi::getPendingWebhookEvents( utility::string_t tenantId + , const ApiGetPendingWebhookEventsOptions& options ) const { @@ -9426,6 +9464,7 @@ pplx::task> DefaultApi::getPend pplx::task> DefaultApi::getQuestionConfig( utility::string_t tenantId, utility::string_t id + ) const { @@ -9562,10 +9601,9 @@ pplx::task> DefaultApi::getQuestionCo } pplx::task> DefaultApi::getQuestionConfigs( utility::string_t tenantId - , const ApiGetQuestionConfigsOptions& options + , boost::optional skip ) const { - auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -9704,6 +9742,7 @@ pplx::task> DefaultApi::getQuestionC pplx::task> DefaultApi::getQuestionResult( utility::string_t tenantId, utility::string_t id + ) const { @@ -9840,6 +9879,7 @@ pplx::task> DefaultApi::getQuestionRe } pplx::task> DefaultApi::getQuestionResults( utility::string_t tenantId + , const ApiGetQuestionResultsOptions& options ) const { @@ -10007,6 +10047,7 @@ pplx::task> DefaultApi::getQuestionR pplx::task> DefaultApi::getSSOUserByEmail( utility::string_t tenantId, utility::string_t email + ) const { @@ -10144,6 +10185,7 @@ pplx::task> DefaultApi::getSSOUser pplx::task> DefaultApi::getSSOUserById( utility::string_t tenantId, utility::string_t id + ) const { @@ -10280,10 +10322,9 @@ pplx::task> DefaultApi::getSSOUserByI } pplx::task> DefaultApi::getSSOUsers( utility::string_t tenantId - , const ApiGetSSOUsersOptions& options + , boost::optional skip ) const { - auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -10421,10 +10462,9 @@ pplx::task> DefaultApi::getSSOUsers( } pplx::task> DefaultApi::getSubscriptions( utility::string_t tenantId - , const ApiGetSubscriptionsOptions& options + , boost::optional userId ) const { - auto userId = options.userId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -10563,6 +10603,7 @@ pplx::task> DefaultApi::getSubscrip pplx::task> DefaultApi::getTenant( utility::string_t tenantId, utility::string_t id + ) const { @@ -10699,6 +10740,7 @@ pplx::task> DefaultApi::getTenant( } pplx::task> DefaultApi::getTenantDailyUsages( utility::string_t tenantId + , const ApiGetTenantDailyUsagesOptions& options ) const { @@ -10856,6 +10898,7 @@ pplx::task> DefaultApi::getTenantD pplx::task> DefaultApi::getTenantPackage( utility::string_t tenantId, utility::string_t id + ) const { @@ -10992,10 +11035,9 @@ pplx::task> DefaultApi::getTenantPacka } pplx::task> DefaultApi::getTenantPackages( utility::string_t tenantId - , const ApiGetTenantPackagesOptions& options + , boost::optional skip ) const { - auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11134,6 +11176,7 @@ pplx::task> DefaultApi::getTenantPack pplx::task> DefaultApi::getTenantUser( utility::string_t tenantId, utility::string_t id + ) const { @@ -11270,10 +11313,9 @@ pplx::task> DefaultApi::getTenantUser( } pplx::task> DefaultApi::getTenantUsers( utility::string_t tenantId - , const ApiGetTenantUsersOptions& options + , boost::optional skip ) const { - auto skip = options.skip; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11411,6 +11453,7 @@ pplx::task> DefaultApi::getTenantUsers( } pplx::task> DefaultApi::getTenants( utility::string_t tenantId + , const ApiGetTenantsOptions& options ) const { @@ -11558,10 +11601,9 @@ pplx::task> DefaultApi::getTenants( pplx::task> DefaultApi::getTicket( utility::string_t tenantId, utility::string_t id - , const ApiGetTicketOptions& options + , boost::optional userId ) const { - auto userId = options.userId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -11700,6 +11742,7 @@ pplx::task> DefaultApi::getTicket( } pplx::task> DefaultApi::getTickets( utility::string_t tenantId + , const ApiGetTicketsOptions& options ) const { @@ -11857,6 +11900,7 @@ pplx::task> DefaultApi::getTickets( pplx::task> DefaultApi::getUser( utility::string_t tenantId, utility::string_t id + ) const { @@ -11994,6 +12038,7 @@ pplx::task> DefaultApi::getUser( pplx::task> DefaultApi::getUserBadge( utility::string_t tenantId, utility::string_t id + ) const { @@ -12131,6 +12176,7 @@ pplx::task> DefaultApi::getUserBadge( pplx::task> DefaultApi::getUserBadgeProgressById( utility::string_t tenantId, utility::string_t id + ) const { @@ -12268,6 +12314,7 @@ pplx::task> DefaultApi::getUser pplx::task> DefaultApi::getUserBadgeProgressByUserId( utility::string_t tenantId, utility::string_t userId + ) const { @@ -12404,6 +12451,7 @@ pplx::task> DefaultApi::getUser } pplx::task> DefaultApi::getUserBadgeProgressList( utility::string_t tenantId + , const ApiGetUserBadgeProgressListOptions& options ) const { @@ -12555,6 +12603,7 @@ pplx::task> DefaultApi::get } pplx::task> DefaultApi::getUserBadges( utility::string_t tenantId + , const ApiGetUserBadgesOptions& options ) const { @@ -12722,6 +12771,7 @@ pplx::task> DefaultApi::getUserBadges( pplx::task> DefaultApi::getVotes( utility::string_t tenantId, utility::string_t urlId + ) const { @@ -12861,6 +12911,7 @@ pplx::task> DefaultApi::getVotes( pplx::task> DefaultApi::getVotesForUser( utility::string_t tenantId, utility::string_t urlId + , const ApiGetVotesForUserOptions& options ) const { @@ -13012,6 +13063,7 @@ pplx::task> DefaultApi::patchDomainCo utility::string_t tenantId, utility::string_t domainToUpdate, std::shared_ptr patchDomainConfigParams + ) const { @@ -13171,10 +13223,9 @@ pplx::task> DefaultApi::patchDomainCo pplx::task> DefaultApi::patchHashTag( utility::string_t tag, std::shared_ptr updateHashTagBody - , const ApiPatchHashTagOptions& options + , boost::optional tenantId ) const { - auto tenantId = options.tenantId; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -13328,6 +13379,7 @@ pplx::task> DefaultApi::patchPage( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateAPIPageData + ) const { @@ -13488,10 +13540,9 @@ pplx::task> DefaultApi::patchSSOUser( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateAPISSOUserData - , const ApiPatchSSOUserOptions& options + , boost::optional updateComments ) const { - auto updateComments = options.updateComments; // verify the required parameter 'updateAPISSOUserData' is set if (updateAPISSOUserData == nullptr) @@ -13654,6 +13705,7 @@ pplx::task> DefaultApi::putDomainConfig utility::string_t tenantId, utility::string_t domainToUpdate, std::shared_ptr updateDomainConfigParams + ) const { @@ -13814,10 +13866,9 @@ pplx::task> DefaultApi::putSSOUser( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateAPISSOUserData - , const ApiPutSSOUserOptions& options + , boost::optional updateComments ) const { - auto updateComments = options.updateComments; // verify the required parameter 'updateAPISSOUserData' is set if (updateAPISSOUserData == nullptr) @@ -13979,10 +14030,9 @@ pplx::task> DefaultApi::putSSOUser( pplx::task> DefaultApi::renderEmailTemplate( utility::string_t tenantId, std::shared_ptr renderEmailTemplateBody - , const ApiRenderEmailTemplateOptions& options + , boost::optional locale ) const { - auto locale = options.locale; // verify the required parameter 'renderEmailTemplateBody' is set if (renderEmailTemplateBody == nullptr) @@ -14144,6 +14194,7 @@ pplx::task> DefaultApi::replaceTenantPackage( utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantPackageBody + ) const { @@ -14304,10 +14355,9 @@ pplx::task> DefaultApi::replaceTenantUser( utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantUserBody - , const ApiReplaceTenantUserOptions& options + , boost::optional updateComments ) const { - auto updateComments = options.updateComments; // verify the required parameter 'replaceTenantUserBody' is set if (replaceTenantUserBody == nullptr) @@ -14469,6 +14519,7 @@ pplx::task> DefaultApi::replaceTenantUser( pplx::task> DefaultApi::saveComment( utility::string_t tenantId, std::shared_ptr createCommentParams + , const ApiSaveCommentOptions& options ) const { @@ -14648,6 +14699,7 @@ pplx::task> DefaultApi::saveComment( pplx::task>> DefaultApi::saveCommentsBulk( utility::string_t tenantId, std::vector> createCommentParams + , const ApiSaveCommentsBulkOptions& options ) const { @@ -14838,6 +14890,7 @@ pplx::task> DefaultApi::sendInvite( utility::string_t tenantId, utility::string_t id, utility::string_t fromName + ) const { @@ -14978,10 +15031,9 @@ pplx::task> DefaultApi::sendInvite( pplx::task> DefaultApi::sendLoginLink( utility::string_t tenantId, utility::string_t id - , const ApiSendLoginLinkOptions& options + , boost::optional redirectURL ) const { - auto redirectURL = options.redirectURL; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -15122,6 +15174,7 @@ pplx::task> DefaultApi::unBlockUserFromComment( utility::string_t tenantId, utility::string_t id, std::shared_ptr unBlockFromCommentParams + , const ApiUnBlockUserFromCommentOptions& options ) const { @@ -15292,6 +15345,7 @@ pplx::task> DefaultApi::unBlockUserFromComment( pplx::task> DefaultApi::unFlagComment( utility::string_t tenantId, utility::string_t id + , const ApiUnFlagCommentOptions& options ) const { @@ -15441,6 +15495,7 @@ pplx::task> DefaultApi::updateComment( utility::string_t tenantId, utility::string_t id, std::shared_ptr updatableCommentParams + , const ApiUpdateCommentOptions& options ) const { @@ -15617,6 +15672,7 @@ pplx::task> DefaultApi::updateEmailTemplate( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateEmailTemplateBody + ) const { @@ -15777,6 +15833,7 @@ pplx::task> DefaultApi::updateFeedPost( utility::string_t tenantId, utility::string_t id, std::shared_ptr feedPost + ) const { @@ -15937,6 +15994,7 @@ pplx::task> DefaultApi::updateModerator( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateModeratorBody + ) const { @@ -16097,10 +16155,9 @@ pplx::task> DefaultApi::updateNotification( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateNotificationBody - , const ApiUpdateNotificationOptions& options + , boost::optional userId ) const { - auto userId = options.userId; // verify the required parameter 'updateNotificationBody' is set if (updateNotificationBody == nullptr) @@ -16263,6 +16320,7 @@ pplx::task> DefaultApi::updateQuestionConfig( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionConfigBody + ) const { @@ -16423,6 +16481,7 @@ pplx::task> DefaultApi::updateQuestionResult( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionResultBody + ) const { @@ -16583,10 +16642,9 @@ pplx::task> DefaultApi::updateSub utility::string_t tenantId, utility::string_t id, std::shared_ptr updateAPIUserSubscriptionData - , const ApiUpdateSubscriptionOptions& options + , boost::optional userId ) const { - auto userId = options.userId; // verify the required parameter 'updateAPIUserSubscriptionData' is set if (updateAPIUserSubscriptionData == nullptr) @@ -16749,6 +16807,7 @@ pplx::task> DefaultApi::updateTenant( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantBody + ) const { @@ -16909,6 +16968,7 @@ pplx::task> DefaultApi::updateTenantPackage( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantPackageBody + ) const { @@ -17069,10 +17129,9 @@ pplx::task> DefaultApi::updateTenantUser( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantUserBody - , const ApiUpdateTenantUserOptions& options + , boost::optional updateComments ) const { - auto updateComments = options.updateComments; // verify the required parameter 'updateTenantUserBody' is set if (updateTenantUserBody == nullptr) @@ -17235,6 +17294,7 @@ pplx::task> DefaultApi::updateUserBadge utility::string_t tenantId, utility::string_t id, std::shared_ptr updateUserBadgeParams + ) const { diff --git a/client/src/api/ModerationApi.cpp b/client/src/api/ModerationApi.cpp index 0b50555..81a1a8a 100644 --- a/client/src/api/ModerationApi.cpp +++ b/client/src/api/ModerationApi.cpp @@ -38,6 +38,7 @@ ModerationApi::~ModerationApi() pplx::task> ModerationApi::deleteModerationVote( utility::string_t commentId, utility::string_t voteId + , const ApiDeleteModerationVoteOptions& options ) const { @@ -179,6 +180,7 @@ pplx::task> ModerationApi::deleteModerationV }); } pplx::task> ModerationApi::getApiComments( + const ApiGetApiCommentsOptions& options ) const { @@ -353,6 +355,7 @@ pplx::task> ModerationApi::get }); } pplx::task> ModerationApi::getApiExportStatus( + const ApiGetApiExportStatusOptions& options ) const { @@ -492,6 +495,7 @@ pplx::task> ModerationApi::getAp }); } pplx::task> ModerationApi::getApiIds( + const ApiGetApiIdsOptions& options ) const { @@ -657,6 +661,7 @@ pplx::task> ModerationApi::g } pplx::task> ModerationApi::getBanUsersFromComment( utility::string_t commentId + , const ApiGetBanUsersFromCommentOptions& options ) const { @@ -793,6 +798,7 @@ pplx::task> ModerationApi::ge } pplx::task> ModerationApi::getCommentBanStatus( utility::string_t commentId + , const ApiGetCommentBanStatusOptions& options ) const { @@ -929,6 +935,7 @@ pplx::task> ModerationApi::getComme } pplx::task> ModerationApi::getCommentChildren( utility::string_t commentId + , const ApiGetCommentChildrenOptions& options ) const { @@ -1064,6 +1071,7 @@ pplx::task> ModerationApi::g }); } pplx::task> ModerationApi::getCount( + const ApiGetCountOptions& options ) const { @@ -1223,6 +1231,7 @@ pplx::task> ModerationApi::g }); } pplx::task> ModerationApi::getCounts( + const ApiGetCountsOptions& options ) const { @@ -1358,6 +1367,7 @@ pplx::task> ModerationApi::getCount } pplx::task> ModerationApi::getLogs( utility::string_t commentId + , const ApiGetLogsOptions& options ) const { @@ -1493,6 +1503,7 @@ pplx::task> ModerationApi::getLogs }); } pplx::task> ModerationApi::getManualBadges( + const ApiGetManualBadgesOptions& options ) const { @@ -1627,6 +1638,7 @@ pplx::task> ModerationApi::getMan }); } pplx::task> ModerationApi::getManualBadgesForUser( + const ApiGetManualBadgesForUserOptions& options ) const { @@ -1772,6 +1784,7 @@ pplx::task> ModerationApi::getManua } pplx::task> ModerationApi::getModerationComment( utility::string_t commentId + , const ApiGetModerationCommentOptions& options ) const { @@ -1918,6 +1931,7 @@ pplx::task> ModerationApi::getMode } pplx::task> ModerationApi::getModerationCommentText( utility::string_t commentId + , const ApiGetModerationCommentTextOptions& options ) const { @@ -2054,6 +2068,7 @@ pplx::task> ModerationApi::getModeration } pplx::task> ModerationApi::getPreBanSummary( utility::string_t commentId + , const ApiGetPreBanSummaryOptions& options ) const { @@ -2204,6 +2219,7 @@ pplx::task> ModerationApi::getPreBanSummary( }); } pplx::task> ModerationApi::getSearchCommentsSummary( + const ApiGetSearchCommentsSummaryOptions& options ) const { @@ -2353,6 +2369,7 @@ pplx::task> ModerationApi::getS }); } pplx::task> ModerationApi::getSearchPages( + const ApiGetSearchPagesOptions& options ) const { @@ -2492,6 +2509,7 @@ pplx::task> ModerationApi::getSear }); } pplx::task> ModerationApi::getSearchSites( + const ApiGetSearchSitesOptions& options ) const { @@ -2631,6 +2649,7 @@ pplx::task> ModerationApi::getSear }); } pplx::task> ModerationApi::getSearchSuggest( + const ApiGetSearchSuggestOptions& options ) const { @@ -2770,6 +2789,7 @@ pplx::task> ModerationApi::getSearchS }); } pplx::task> ModerationApi::getSearchUsers( + const ApiGetSearchUsersOptions& options ) const { @@ -2909,6 +2929,7 @@ pplx::task> ModerationApi::getSear }); } pplx::task> ModerationApi::getTrustFactor( + const ApiGetTrustFactorOptions& options ) const { @@ -3048,6 +3069,7 @@ pplx::task> ModerationApi::getTrustF }); } pplx::task> ModerationApi::getUserBanPreference( + const ApiGetUserBanPreferenceOptions& options ) const { @@ -3182,6 +3204,7 @@ pplx::task> Moderation }); } pplx::task> ModerationApi::getUserInternalProfile( + const ApiGetUserInternalProfileOptions& options ) const { @@ -3323,6 +3346,7 @@ pplx::task> ModerationApi::getUs pplx::task> ModerationApi::postAdjustCommentVotes( utility::string_t commentId, std::shared_ptr adjustCommentVotesParams + , const ApiPostAdjustCommentVotesOptions& options ) const { @@ -3485,6 +3509,7 @@ pplx::task> ModerationApi::postAdjustCommen }); } pplx::task> ModerationApi::postApiExport( + const ApiPostApiExportOptions& options ) const { @@ -3645,6 +3670,7 @@ pplx::task> ModerationApi::postApiExpo } pplx::task> ModerationApi::postBanUserFromComment( utility::string_t commentId + , const ApiPostBanUserFromCommentOptions& options ) const { @@ -3821,6 +3847,7 @@ pplx::task> ModerationApi::postBanUser } pplx::task> ModerationApi::postBanUserUndo( std::shared_ptr banUserUndoParams + , const ApiPostBanUserUndoOptions& options ) const { @@ -3978,6 +4005,7 @@ pplx::task> ModerationApi::postBanUserUndo( } pplx::task> ModerationApi::postBulkPreBanSummary( std::shared_ptr bulkPreBanParams + , const ApiPostBulkPreBanSummaryOptions& options ) const { @@ -4150,6 +4178,7 @@ pplx::task> ModerationApi::postBulkPreBanSumm } pplx::task> ModerationApi::postCommentsByIds( std::shared_ptr commentsByIdsParams + , const ApiPostCommentsByIdsOptions& options ) const { @@ -4307,6 +4336,7 @@ pplx::task> ModerationApi::p } pplx::task> ModerationApi::postFlagComment( utility::string_t commentId + , const ApiPostFlagCommentOptions& options ) const { @@ -4448,6 +4478,7 @@ pplx::task> ModerationApi::postFlagComment( } pplx::task> ModerationApi::postRemoveComment( utility::string_t commentId + , const ApiPostRemoveCommentOptions& options ) const { @@ -4589,6 +4620,7 @@ pplx::task> ModerationApi::postRemove } pplx::task> ModerationApi::postRestoreDeletedComment( utility::string_t commentId + , const ApiPostRestoreDeletedCommentOptions& options ) const { @@ -4730,6 +4762,7 @@ pplx::task> ModerationApi::postRestoreDeletedC } pplx::task> ModerationApi::postSetCommentApprovalStatus( utility::string_t commentId + , const ApiPostSetCommentApprovalStatusOptions& options ) const { @@ -4876,6 +4909,7 @@ pplx::task> ModerationApi::postSetCo } pplx::task> ModerationApi::postSetCommentReviewStatus( utility::string_t commentId + , const ApiPostSetCommentReviewStatusOptions& options ) const { @@ -5022,6 +5056,7 @@ pplx::task> ModerationApi::postSetCommentRevie } pplx::task> ModerationApi::postSetCommentSpamStatus( utility::string_t commentId + , const ApiPostSetCommentSpamStatusOptions& options ) const { @@ -5174,6 +5209,7 @@ pplx::task> ModerationApi::postSetCommentSpamS pplx::task> ModerationApi::postSetCommentText( utility::string_t commentId, std::shared_ptr setCommentTextParams + , const ApiPostSetCommentTextOptions& options ) const { @@ -5337,6 +5373,7 @@ pplx::task> ModerationApi::postSetCommen } pplx::task> ModerationApi::postUnFlagComment( utility::string_t commentId + , const ApiPostUnFlagCommentOptions& options ) const { @@ -5478,6 +5515,7 @@ pplx::task> ModerationApi::postUnFlagComment( } pplx::task> ModerationApi::postVote( utility::string_t commentId + , const ApiPostVoteOptions& options ) const { @@ -5624,6 +5662,7 @@ pplx::task> ModerationApi::postVote( } pplx::task> ModerationApi::putAwardBadge( utility::string_t badgeId + , const ApiPutAwardBadgeOptions& options ) const { @@ -5777,6 +5816,7 @@ pplx::task> ModerationApi::putAwardBadge } pplx::task> ModerationApi::putCloseThread( utility::string_t urlId + , const ApiPutCloseThreadOptions& options ) const { @@ -5915,6 +5955,7 @@ pplx::task> ModerationApi::putCloseThread( } pplx::task> ModerationApi::putRemoveBadge( utility::string_t badgeId + , const ApiPutRemoveBadgeOptions& options ) const { @@ -6068,6 +6109,7 @@ pplx::task> ModerationApi::putRemoveBad } pplx::task> ModerationApi::putReopenThread( utility::string_t urlId + , const ApiPutReopenThreadOptions& options ) const { @@ -6205,6 +6247,7 @@ pplx::task> ModerationApi::putReopenThread( }); } pplx::task> ModerationApi::setTrustFactor( + const ApiSetTrustFactorOptions& options ) const { diff --git a/client/src/api/PublicApi.cpp b/client/src/api/PublicApi.cpp index cac3249..271a720 100644 --- a/client/src/api/PublicApi.cpp +++ b/client/src/api/PublicApi.cpp @@ -39,10 +39,9 @@ pplx::task> PublicApi::blockFromCommentPublic( utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams - , const ApiBlockFromCommentPublicOptions& options + , boost::optional sso ) const { - auto sso = options.sso; // verify the required parameter 'publicBlockFromCommentParams' is set if (publicBlockFromCommentParams == nullptr) @@ -196,10 +195,9 @@ pplx::task> PublicApi::blockFromCommentPublic( pplx::task> PublicApi::checkedCommentsForBlocked( utility::string_t tenantId, utility::string_t commentIds - , const ApiCheckedCommentsForBlockedOptions& options + , boost::optional sso ) const { - auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -335,6 +333,7 @@ pplx::task> PublicApi::createC utility::string_t urlId, utility::string_t broadcastId, std::shared_ptr commentData + , const ApiCreateCommentPublicOptions& options ) const { @@ -500,6 +499,7 @@ pplx::task> PublicApi::createC pplx::task> PublicApi::createFeedPostPublic( utility::string_t tenantId, std::shared_ptr createFeedPostParams + , const ApiCreateFeedPostPublicOptions& options ) const { @@ -659,10 +659,9 @@ pplx::task> PublicApi::createFeedPostPub pplx::task> PublicApi::createV1PageReact( utility::string_t tenantId, utility::string_t urlId - , const ApiCreateV1PageReactOptions& options + , boost::optional title ) const { - auto title = options.title; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -795,10 +794,9 @@ pplx::task> PublicApi::createV2PageReact( utility::string_t tenantId, utility::string_t urlId, utility::string_t id - , const ApiCreateV2PageReactOptions& options + , boost::optional title ) const { - auto title = options.title; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -934,6 +932,7 @@ pplx::task> PublicApi::deleteCom utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId + , const ApiDeleteCommentPublicOptions& options ) const { @@ -1078,6 +1077,7 @@ pplx::task> PublicApi::deleteCommentVote( utility::string_t voteId, utility::string_t urlId, utility::string_t broadcastId + , const ApiDeleteCommentVoteOptions& options ) const { @@ -1223,6 +1223,7 @@ pplx::task> PublicApi::deleteCommentVote( pplx::task> PublicApi::deleteFeedPostPublic( utility::string_t tenantId, utility::string_t postId + , const ApiDeleteFeedPostPublicOptions& options ) const { @@ -1361,6 +1362,7 @@ pplx::task> PublicApi::deleteFeedP pplx::task> PublicApi::deleteV1PageReact( utility::string_t tenantId, utility::string_t urlId + ) const { @@ -1491,6 +1493,7 @@ pplx::task> PublicApi::deleteV2PageReact( utility::string_t tenantId, utility::string_t urlId, utility::string_t id + ) const { @@ -1624,10 +1627,9 @@ pplx::task> PublicApi::flagCommentPublic( utility::string_t tenantId, utility::string_t commentId, bool isFlagged - , const ApiFlagCommentPublicOptions& options + , boost::optional sso ) const { - auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -1762,6 +1764,7 @@ pplx::task> PublicApi::flagCommentPublic( pplx::task> PublicApi::getCommentText( utility::string_t tenantId, utility::string_t commentId + , const ApiGetCommentTextOptions& options ) const { @@ -1901,10 +1904,9 @@ pplx::task> PublicApi::g utility::string_t tenantId, utility::string_t commentId, int32_t dir - , const ApiGetCommentVoteUserNamesOptions& options + , boost::optional sso ) const { - auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2035,6 +2037,7 @@ pplx::task> PublicApi::g }); } pplx::task> PublicApi::getCommentsForUser( + const ApiGetCommentsForUserOptions& options ) const { @@ -2196,6 +2199,7 @@ pplx::task> PublicApi::getCommentsFo pplx::task> PublicApi::getCommentsPublic( utility::string_t tenantId, utility::string_t urlId + , const ApiGetCommentsPublicOptions& options ) const { @@ -2458,10 +2462,9 @@ pplx::task> PublicApi::getEventLog( utility::string_t urlId, utility::string_t userIdWS, int64_t startTime - , const ApiGetEventLogOptions& options + , boost::optional endTime ) const { - auto endTime = options.endTime; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2598,6 +2601,7 @@ pplx::task> PublicApi::getEventLog( } pplx::task> PublicApi::getFeedPostsPublic( utility::string_t tenantId + , const ApiGetFeedPostsPublicOptions& options ) const { @@ -2755,10 +2759,9 @@ pplx::task> PublicApi::getFeedPostsPubl pplx::task> PublicApi::getFeedPostsStats( utility::string_t tenantId, std::vector postIds - , const ApiGetFeedPostsStatsOptions& options + , boost::optional sso ) const { - auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -2890,6 +2893,7 @@ pplx::task> PublicApi::getFeedPostsStats pplx::task> PublicApi::getGifLarge( utility::string_t tenantId, utility::string_t largeInternalURLSanitized + ) const { @@ -3019,6 +3023,7 @@ pplx::task> PublicApi::getGifLarge( pplx::task> PublicApi::getGifsSearch( utility::string_t tenantId, utility::string_t search + , const ApiGetGifsSearchOptions& options ) const { @@ -3163,6 +3168,7 @@ pplx::task> PublicApi::getGifsSearch( } pplx::task> PublicApi::getGifsTrending( utility::string_t tenantId + , const ApiGetGifsTrendingOptions& options ) const { @@ -3307,10 +3313,9 @@ pplx::task> PublicApi::getGlobalEventLog( utility::string_t urlId, utility::string_t userIdWS, int64_t startTime - , const ApiGetGlobalEventLogOptions& options + , boost::optional endTime ) const { - auto endTime = options.endTime; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -3448,6 +3453,7 @@ pplx::task> PublicApi::getGlobalEventLog( pplx::task> PublicApi::getOfflineUsers( utility::string_t tenantId, utility::string_t urlId + , const ApiGetOfflineUsersOptions& options ) const { @@ -3588,6 +3594,7 @@ pplx::task> PublicApi::getOfflineUsers pplx::task> PublicApi::getOnlineUsers( utility::string_t tenantId, utility::string_t urlId + , const ApiGetOnlineUsersOptions& options ) const { @@ -3727,6 +3734,7 @@ pplx::task> PublicApi::getOnlineUsers( } pplx::task> PublicApi::getPagesPublic( utility::string_t tenantId + , const ApiGetPagesPublicOptions& options ) const { @@ -3879,6 +3887,7 @@ pplx::task> PublicApi::getPagesPublic( pplx::task> PublicApi::getTranslations( utility::string_t r_namespace, utility::string_t component + , const ApiGetTranslationsOptions& options ) const { @@ -4016,10 +4025,9 @@ pplx::task> PublicApi::getTranslations( } pplx::task> PublicApi::getUserNotificationCount( utility::string_t tenantId - , const ApiGetUserNotificationCountOptions& options + , boost::optional sso ) const { - auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -4149,6 +4157,7 @@ pplx::task> PublicApi::getUser } pplx::task> PublicApi::getUserNotifications( utility::string_t tenantId + , const ApiGetUserNotificationsOptions& options ) const { @@ -4334,6 +4343,7 @@ pplx::task> PublicApi::getUserP utility::string_t tenantId, utility::string_t urlIdWS, utility::string_t userIds + ) const { @@ -4467,6 +4477,7 @@ pplx::task> PublicApi::getUserP } pplx::task> PublicApi::getUserReactsPublic( utility::string_t tenantId + , const ApiGetUserReactsPublicOptions& options ) const { @@ -4604,6 +4615,7 @@ pplx::task> PublicApi::getUserReactsPublic( pplx::task> PublicApi::getUsersInfo( utility::string_t tenantId, utility::string_t ids + ) const { @@ -4733,6 +4745,7 @@ pplx::task> PublicApi::getUsersInfo( pplx::task> PublicApi::getV1PageLikes( utility::string_t tenantId, utility::string_t urlId + ) const { @@ -4863,6 +4876,7 @@ pplx::task> PublicApi::getV2PageRea utility::string_t tenantId, utility::string_t urlId, utility::string_t id + ) const { @@ -4995,6 +5009,7 @@ pplx::task> PublicApi::getV2PageRea pplx::task> PublicApi::getV2PageReacts( utility::string_t tenantId, utility::string_t urlId + ) const { @@ -5125,10 +5140,9 @@ pplx::task> PublicApi::lockComment( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId - , const ApiLockCommentOptions& options + , boost::optional sso ) const { - auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5259,6 +5273,7 @@ pplx::task> PublicApi::lockComment( }); } pplx::task> PublicApi::logoutPublic( + ) const { @@ -5385,10 +5400,9 @@ pplx::task> PublicApi::pinCommen utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId - , const ApiPinCommentOptions& options + , boost::optional sso ) const { - auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5522,6 +5536,7 @@ pplx::task> PublicApi::reactFeedPostPubli utility::string_t tenantId, utility::string_t postId, std::shared_ptr reactBodyParams + , const ApiReactFeedPostPublicOptions& options ) const { @@ -5686,10 +5701,9 @@ pplx::task> PublicApi::reactFeedPostPubli } pplx::task> PublicApi::resetUserNotificationCount( utility::string_t tenantId - , const ApiResetUserNotificationCountOptions& options + , boost::optional sso ) const { - auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -5819,6 +5833,7 @@ pplx::task> PublicApi::resetUser } pplx::task> PublicApi::resetUserNotifications( utility::string_t tenantId + , const ApiResetUserNotificationsOptions& options ) const { @@ -5978,6 +5993,7 @@ pplx::task> PublicApi::resetUser pplx::task> PublicApi::searchUsers( utility::string_t tenantId, utility::string_t urlId + , const ApiSearchUsersOptions& options ) const { @@ -6130,6 +6146,7 @@ pplx::task> PublicApi::setComme utility::string_t commentId, utility::string_t broadcastId, std::shared_ptr commentTextUpdateRequest + , const ApiSetCommentTextOptions& options ) const { @@ -6294,10 +6311,9 @@ pplx::task> PublicApi::unBlockCommentPublic( utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams - , const ApiUnBlockCommentPublicOptions& options + , boost::optional sso ) const { - auto sso = options.sso; // verify the required parameter 'publicBlockFromCommentParams' is set if (publicBlockFromCommentParams == nullptr) @@ -6452,10 +6468,9 @@ pplx::task> PublicApi::unLockComment( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId - , const ApiUnLockCommentOptions& options + , boost::optional sso ) const { - auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6589,10 +6604,9 @@ pplx::task> PublicApi::unPinComm utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId - , const ApiUnPinCommentOptions& options + , boost::optional sso ) const { - auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -6726,6 +6740,7 @@ pplx::task> PublicApi::updateFeedPostPub utility::string_t tenantId, utility::string_t postId, std::shared_ptr updateFeedPostParams + , const ApiUpdateFeedPostPublicOptions& options ) const { @@ -6888,10 +6903,9 @@ pplx::task sso ) const { - auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7030,10 +7044,9 @@ pplx::task utility::string_t url, utility::string_t pageTitle, utility::string_t subscribedOrUnsubscribed - , const ApiUpdateUserNotificationPageSubscriptionStatusOptions& options + , boost::optional sso ) const { - auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7175,10 +7188,9 @@ pplx::task> PublicApi::upd utility::string_t tenantId, utility::string_t notificationId, utility::string_t newStatus - , const ApiUpdateUserNotificationStatusOptions& options + , boost::optional sso ) const { - auto sso = options.sso; std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); @@ -7311,6 +7323,7 @@ pplx::task> PublicApi::upd pplx::task> PublicApi::uploadImage( utility::string_t tenantId, std::shared_ptr file + , const ApiUploadImageOptions& options ) const { @@ -7455,6 +7468,7 @@ pplx::task> PublicApi::voteComment( utility::string_t urlId, utility::string_t broadcastId, std::shared_ptr voteBodyParams + , const ApiVoteCommentOptions& options ) const { From 804625a07249e91413c321fba6095dd3032cd0e6 Mon Sep 17 00:00:00 2001 From: winrid Date: Mon, 29 Jun 2026 17:07:23 -0700 Subject: [PATCH 4/6] Regenerate: mod_api/ paths + PostRemoveCommentApiResponse rename; drop Api prefix from options types Options types renamed ApiOptions -> Options (e.g. ApiGetApiCommentsOptions -> GetApiCommentsOptions). Hand-written READMEs + SSO tests updated to match. --- README.md | 6 +- .../FastCommentsClient/api/DefaultApi.h | 136 ++-- .../FastCommentsClient/api/ModerationApi.h | 384 +++++------ .../FastCommentsClient/api/PublicApi.h | 96 +-- ...ponse.h => PostRemoveCommentApiResponse.h} | 16 +- client/src/api/DefaultApi.cpp | 82 +-- client/src/api/ModerationApi.cpp | 515 +++++++-------- client/src/api/PublicApi.cpp | 48 +- ...e.cpp => PostRemoveCommentApiResponse.cpp} | 32 +- docs/Apis/DefaultApi.md | 12 +- docs/Apis/ModerationApi.md | 254 ++++---- ...nse.md => PostRemoveCommentApiResponse.md} | 2 +- docs/README.md | 88 +-- openapi.json | 614 +++++++++--------- tests/sso_integration_test.cpp | 12 +- 15 files changed, 1087 insertions(+), 1210 deletions(-) rename client/include/FastCommentsClient/model/{PostRemoveCommentResponse.h => PostRemoveCommentApiResponse.h} (80%) rename client/src/model/{PostRemoveCommentResponse.cpp => PostRemoveCommentApiResponse.cpp} (76%) rename docs/Models/{PostRemoveCommentResponse.md => PostRemoveCommentApiResponse.md} (92%) diff --git a/README.md b/README.md index 6044e39..d88e216 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ int main() { // Pass the moderator's SSO token to authenticate the call auto ssoToken = utility::conversions::to_string_t("YOUR_MODERATOR_SSO_TOKEN"); - org::openapitools::client::api::ApiGetCountOptions options; + org::openapitools::client::api::GetCountOptions options; options.sso = ssoToken; auto response = moderationApi.getCount(options).get(); @@ -159,7 +159,7 @@ auto apiClient = std::make_shared(con org::openapitools::client::api::DefaultApi api(apiClient); // Required parameters are positional; optional ones go in the options struct -org::openapitools::client::api::ApiGetCommentsOptions options; +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 @@ -187,7 +187,7 @@ auto apiClient = std::make_shared(con org::openapitools::client::api::DefaultApi api(apiClient); // Required parameters are positional; optional ones go in the options struct -org::openapitools::client::api::ApiGetCommentsOptions options; +org::openapitools::client::api::GetCommentsOptions options; options.urlId = utility::conversions::to_string_t("your-url-id"); // Use .then() for asynchronous callback-based execution diff --git a/client/include/FastCommentsClient/api/DefaultApi.h b/client/include/FastCommentsClient/api/DefaultApi.h index 14a0363..375840c 100644 --- a/client/include/FastCommentsClient/api/DefaultApi.h +++ b/client/include/FastCommentsClient/api/DefaultApi.h @@ -167,12 +167,12 @@ namespace api { using namespace org::openapitools::client::model; -struct ApiAggregateOptions +struct AggregateOptions { boost::optional parentTenantId; boost::optional includeStats; }; -struct ApiAggregateQuestionResultsOptions +struct AggregateQuestionResultsOptions { boost::optional questionId; boost::optional> questionIds; @@ -181,12 +181,12 @@ struct ApiAggregateQuestionResultsOptions boost::optional startDate; boost::optional forceRecalculate; }; -struct ApiBlockUserFromCommentOptions +struct BlockUserFromCommentOptions { boost::optional userId; boost::optional anonUserId; }; -struct ApiCombineCommentsWithQuestionResultsOptions +struct CombineCommentsWithQuestionResultsOptions { boost::optional questionId; boost::optional> questionIds; @@ -197,39 +197,39 @@ struct ApiCombineCommentsWithQuestionResultsOptions boost::optional maxValue; boost::optional limit; }; -struct ApiCreateFeedPostOptions +struct CreateFeedPostOptions { boost::optional broadcastId; boost::optional isLive; boost::optional doSpamCheck; boost::optional skipDupCheck; }; -struct ApiCreateVoteOptions +struct CreateVoteOptions { boost::optional userId; boost::optional anonUserId; }; -struct ApiDeleteCommentOptions +struct DeleteCommentOptions { boost::optional contextUserId; boost::optional isLive; }; -struct ApiDeleteSSOUserOptions +struct DeleteSSOUserOptions { boost::optional deleteComments; boost::optional commentDeleteMode; }; -struct ApiDeleteTenantUserOptions +struct DeleteTenantUserOptions { boost::optional deleteComments; boost::optional commentDeleteMode; }; -struct ApiFlagCommentOptions +struct FlagCommentOptions { boost::optional userId; boost::optional anonUserId; }; -struct ApiGetAuditLogsOptions +struct GetAuditLogsOptions { boost::optional limit; boost::optional skip; @@ -237,7 +237,7 @@ struct ApiGetAuditLogsOptions boost::optional after; boost::optional before; }; -struct ApiGetCommentsOptions +struct GetCommentsOptions { boost::optional page; boost::optional limit; @@ -256,13 +256,13 @@ struct ApiGetCommentsOptions boost::optional fromDate; boost::optional toDate; }; -struct ApiGetFeedPostsOptions +struct GetFeedPostsOptions { boost::optional afterId; boost::optional limit; boost::optional> tags; }; -struct ApiGetNotificationCountOptions +struct GetNotificationCountOptions { boost::optional userId; boost::optional urlId; @@ -270,7 +270,7 @@ struct ApiGetNotificationCountOptions boost::optional viewed; boost::optional type; }; -struct ApiGetNotificationsOptions +struct GetNotificationsOptions { boost::optional userId; boost::optional urlId; @@ -279,7 +279,7 @@ struct ApiGetNotificationsOptions boost::optional type; boost::optional skip; }; -struct ApiGetPendingWebhookEventCountOptions +struct GetPendingWebhookEventCountOptions { boost::optional commentId; boost::optional externalId; @@ -288,7 +288,7 @@ struct ApiGetPendingWebhookEventCountOptions boost::optional domain; boost::optional attemptCountGT; }; -struct ApiGetPendingWebhookEventsOptions +struct GetPendingWebhookEventsOptions { boost::optional commentId; boost::optional externalId; @@ -298,7 +298,7 @@ struct ApiGetPendingWebhookEventsOptions boost::optional attemptCountGT; boost::optional skip; }; -struct ApiGetQuestionResultsOptions +struct GetQuestionResultsOptions { boost::optional urlId; boost::optional userId; @@ -307,32 +307,32 @@ struct ApiGetQuestionResultsOptions boost::optional questionIds; boost::optional skip; }; -struct ApiGetTenantDailyUsagesOptions +struct GetTenantDailyUsagesOptions { boost::optional yearNumber; boost::optional monthNumber; boost::optional dayNumber; boost::optional skip; }; -struct ApiGetTenantsOptions +struct GetTenantsOptions { boost::optional meta; boost::optional skip; }; -struct ApiGetTicketsOptions +struct GetTicketsOptions { boost::optional userId; boost::optional state; boost::optional skip; boost::optional limit; }; -struct ApiGetUserBadgeProgressListOptions +struct GetUserBadgeProgressListOptions { boost::optional userId; boost::optional limit; boost::optional skip; }; -struct ApiGetUserBadgesOptions +struct GetUserBadgesOptions { boost::optional userId; boost::optional badgeId; @@ -341,36 +341,36 @@ struct ApiGetUserBadgesOptions boost::optional limit; boost::optional skip; }; -struct ApiGetVotesForUserOptions +struct GetVotesForUserOptions { boost::optional userId; boost::optional anonUserId; }; -struct ApiSaveCommentOptions +struct SaveCommentOptions { boost::optional isLive; boost::optional doSpamCheck; boost::optional sendEmails; boost::optional populateNotifications; }; -struct ApiSaveCommentsBulkOptions +struct SaveCommentsBulkOptions { boost::optional isLive; boost::optional doSpamCheck; boost::optional sendEmails; boost::optional populateNotifications; }; -struct ApiUnBlockUserFromCommentOptions +struct UnBlockUserFromCommentOptions { boost::optional userId; boost::optional anonUserId; }; -struct ApiUnFlagCommentOptions +struct UnFlagCommentOptions { boost::optional userId; boost::optional anonUserId; }; -struct ApiUpdateCommentOptions +struct UpdateCommentOptions { boost::optional contextUserId; boost::optional doSpamCheck; @@ -406,11 +406,12 @@ class DefaultApi /// /// /// - /// (optional, default to utility::conversions::to_string_t("")) + /// /// (optional) pplx::task> addHashTag( + utility::string_t tenantId, std::shared_ptr createHashTagBody - , boost::optional tenantId = boost::none + ) const; /// /// @@ -418,11 +419,12 @@ class DefaultApi /// /// /// - /// (optional, default to utility::conversions::to_string_t("")) + /// /// (optional) pplx::task> addHashTagsBulk( + utility::string_t tenantId, std::shared_ptr bulkCreateHashTagsBody - , boost::optional tenantId = boost::none + ) const; /// /// @@ -464,7 +466,7 @@ class DefaultApi utility::string_t tenantId, std::shared_ptr aggregationRequest - , const ApiAggregateOptions& options = {} + , const AggregateOptions& options = {} ) const; /// /// @@ -482,7 +484,7 @@ class DefaultApi pplx::task> aggregateQuestionResults( utility::string_t tenantId - , const ApiAggregateQuestionResultsOptions& options = {} + , const AggregateQuestionResultsOptions& options = {} ) const; /// /// @@ -500,7 +502,7 @@ class DefaultApi utility::string_t id, std::shared_ptr blockFromCommentParams - , const ApiBlockUserFromCommentOptions& options = {} + , const BlockUserFromCommentOptions& options = {} ) const; /// /// @@ -551,7 +553,7 @@ class DefaultApi pplx::task> combineCommentsWithQuestionResults( utility::string_t tenantId - , const ApiCombineCommentsWithQuestionResultsOptions& options = {} + , const CombineCommentsWithQuestionResultsOptions& options = {} ) const; /// /// @@ -582,7 +584,7 @@ class DefaultApi utility::string_t tenantId, std::shared_ptr createFeedPostParams - , const ApiCreateFeedPostOptions& options = {} + , const CreateFeedPostOptions& options = {} ) const; /// /// @@ -719,7 +721,7 @@ class DefaultApi utility::string_t commentId, utility::string_t direction - , const ApiCreateVoteOptions& options = {} + , const CreateVoteOptions& options = {} ) const; /// /// @@ -735,7 +737,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id - , const ApiDeleteCommentOptions& options = {} + , const DeleteCommentOptions& options = {} ) const; /// /// @@ -784,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, std::shared_ptr deleteHashTagRequestBody - , boost::optional tenantId = boost::none + ) const; /// /// @@ -885,7 +888,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id - , const ApiDeleteSSOUserOptions& options = {} + , const DeleteSSOUserOptions& options = {} ) const; /// /// @@ -942,7 +945,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id - , const ApiDeleteTenantUserOptions& options = {} + , const DeleteTenantUserOptions& options = {} ) const; /// /// @@ -985,7 +988,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id - , const ApiFlagCommentOptions& options = {} + , const FlagCommentOptions& options = {} ) const; /// /// @@ -1002,7 +1005,7 @@ class DefaultApi pplx::task> getAuditLogs( utility::string_t tenantId - , const ApiGetAuditLogsOptions& options = {} + , const GetAuditLogsOptions& options = {} ) const; /// /// @@ -1056,7 +1059,7 @@ class DefaultApi pplx::task> getComments( utility::string_t tenantId - , const ApiGetCommentsOptions& options = {} + , const GetCommentsOptions& options = {} ) const; /// /// @@ -1145,7 +1148,7 @@ class DefaultApi pplx::task> getFeedPosts( utility::string_t tenantId - , const ApiGetFeedPostsOptions& options = {} + , const GetFeedPostsOptions& options = {} ) const; /// /// @@ -1199,7 +1202,7 @@ class DefaultApi pplx::task> getNotificationCount( utility::string_t tenantId - , const ApiGetNotificationCountOptions& options = {} + , const GetNotificationCountOptions& options = {} ) const; /// /// @@ -1217,7 +1220,7 @@ class DefaultApi pplx::task> getNotifications( utility::string_t tenantId - , const ApiGetNotificationsOptions& options = {} + , const GetNotificationsOptions& options = {} ) const; /// /// @@ -1259,7 +1262,7 @@ class DefaultApi pplx::task> getPendingWebhookEventCount( utility::string_t tenantId - , const ApiGetPendingWebhookEventCountOptions& options = {} + , const GetPendingWebhookEventCountOptions& options = {} ) const; /// /// @@ -1278,7 +1281,7 @@ class DefaultApi pplx::task> getPendingWebhookEvents( utility::string_t tenantId - , const ApiGetPendingWebhookEventsOptions& options = {} + , const GetPendingWebhookEventsOptions& options = {} ) const; /// /// @@ -1334,7 +1337,7 @@ class DefaultApi pplx::task> getQuestionResults( utility::string_t tenantId - , const ApiGetQuestionResultsOptions& options = {} + , const GetQuestionResultsOptions& options = {} ) const; /// /// @@ -1413,7 +1416,7 @@ class DefaultApi pplx::task> getTenantDailyUsages( utility::string_t tenantId - , const ApiGetTenantDailyUsagesOptions& options = {} + , const GetTenantDailyUsagesOptions& options = {} ) const; /// /// @@ -1477,7 +1480,7 @@ class DefaultApi pplx::task> getTenants( utility::string_t tenantId - , const ApiGetTenantsOptions& options = {} + , const GetTenantsOptions& options = {} ) const; /// /// @@ -1507,7 +1510,7 @@ class DefaultApi pplx::task> getTickets( utility::string_t tenantId - , const ApiGetTicketsOptions& options = {} + , const GetTicketsOptions& options = {} ) const; /// /// @@ -1574,7 +1577,7 @@ class DefaultApi pplx::task> getUserBadgeProgressList( utility::string_t tenantId - , const ApiGetUserBadgeProgressListOptions& options = {} + , const GetUserBadgeProgressListOptions& options = {} ) const; /// /// @@ -1592,7 +1595,7 @@ class DefaultApi pplx::task> getUserBadges( utility::string_t tenantId - , const ApiGetUserBadgesOptions& options = {} + , const GetUserBadgesOptions& options = {} ) const; /// /// @@ -1621,7 +1624,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t urlId - , const ApiGetVotesForUserOptions& options = {} + , const GetVotesForUserOptions& options = {} ) const; /// /// @@ -1644,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, std::shared_ptr updateHashTagBody - , boost::optional tenantId = boost::none + ) const; /// /// @@ -1775,7 +1779,7 @@ class DefaultApi utility::string_t tenantId, std::shared_ptr createCommentParams - , const ApiSaveCommentOptions& options = {} + , const SaveCommentOptions& options = {} ) const; /// /// @@ -1793,7 +1797,7 @@ class DefaultApi utility::string_t tenantId, std::vector> createCommentParams - , const ApiSaveCommentsBulkOptions& options = {} + , const SaveCommentsBulkOptions& options = {} ) const; /// /// @@ -1840,7 +1844,7 @@ class DefaultApi utility::string_t id, std::shared_ptr unBlockFromCommentParams - , const ApiUnBlockUserFromCommentOptions& options = {} + , const UnBlockUserFromCommentOptions& options = {} ) const; /// /// @@ -1856,7 +1860,7 @@ class DefaultApi utility::string_t tenantId, utility::string_t id - , const ApiUnFlagCommentOptions& options = {} + , const UnFlagCommentOptions& options = {} ) const; /// /// @@ -1875,7 +1879,7 @@ class DefaultApi utility::string_t id, std::shared_ptr updatableCommentParams - , const ApiUpdateCommentOptions& options = {} + , const UpdateCommentOptions& options = {} ) const; /// /// diff --git a/client/include/FastCommentsClient/api/ModerationApi.h b/client/include/FastCommentsClient/api/ModerationApi.h index 7a19c51..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,13 +73,12 @@ namespace api { using namespace org::openapitools::client::model; -struct ApiDeleteModerationVoteOptions +struct DeleteModerationVoteOptions { - boost::optional tenantId; boost::optional broadcastId; boost::optional sso; }; -struct ApiGetApiCommentsOptions +struct GetApiCommentsOptions { boost::optional page; boost::optional count; @@ -89,16 +88,14 @@ struct ApiGetApiCommentsOptions boost::optional searchFilters; boost::optional sorts; boost::optional demo; - boost::optional tenantId; boost::optional sso; }; -struct ApiGetApiExportStatusOptions +struct GetApiExportStatusOptions { boost::optional batchJobId; - boost::optional tenantId; boost::optional sso; }; -struct ApiGetApiIdsOptions +struct GetApiIdsOptions { boost::optional textSearch; boost::optional byIPFromComment; @@ -106,142 +103,88 @@ struct ApiGetApiIdsOptions boost::optional searchFilters; boost::optional afterId; boost::optional demo; - boost::optional tenantId; boost::optional sso; }; -struct ApiGetBanUsersFromCommentOptions -{ - boost::optional tenantId; - boost::optional sso; -}; -struct ApiGetCommentBanStatusOptions -{ - boost::optional tenantId; - boost::optional sso; -}; -struct ApiGetCommentChildrenOptions -{ - boost::optional tenantId; - boost::optional sso; -}; -struct ApiGetCountOptions +struct GetCountOptions { boost::optional textSearch; boost::optional byIPFromComment; boost::optional filter; boost::optional searchFilters; boost::optional demo; - boost::optional tenantId; - boost::optional sso; -}; -struct ApiGetCountsOptions -{ - boost::optional tenantId; boost::optional sso; }; -struct ApiGetLogsOptions -{ - boost::optional tenantId; - boost::optional sso; -}; -struct ApiGetManualBadgesOptions -{ - boost::optional tenantId; - boost::optional sso; -}; -struct ApiGetManualBadgesForUserOptions +struct GetManualBadgesForUserOptions { boost::optional badgesUserId; boost::optional commentId; - boost::optional tenantId; boost::optional sso; }; -struct ApiGetModerationCommentOptions +struct GetModerationCommentOptions { boost::optional includeEmail; boost::optional includeIP; - boost::optional tenantId; boost::optional sso; }; -struct ApiGetModerationCommentTextOptions -{ - boost::optional tenantId; - boost::optional sso; -}; -struct ApiGetPreBanSummaryOptions +struct GetPreBanSummaryOptions { boost::optional includeByUserIdAndEmail; boost::optional includeByIP; boost::optional includeByEmailDomain; - boost::optional tenantId; boost::optional sso; }; -struct ApiGetSearchCommentsSummaryOptions +struct GetSearchCommentsSummaryOptions { boost::optional value; boost::optional filters; boost::optional searchFilters; - boost::optional tenantId; boost::optional sso; }; -struct ApiGetSearchPagesOptions +struct GetSearchPagesOptions { boost::optional value; - boost::optional tenantId; boost::optional sso; }; -struct ApiGetSearchSitesOptions +struct GetSearchSitesOptions { boost::optional value; - boost::optional tenantId; boost::optional sso; }; -struct ApiGetSearchSuggestOptions +struct GetSearchSuggestOptions { boost::optional textSearch; - boost::optional tenantId; boost::optional sso; }; -struct ApiGetSearchUsersOptions +struct GetSearchUsersOptions { boost::optional value; - boost::optional tenantId; boost::optional sso; }; -struct ApiGetTrustFactorOptions +struct GetTrustFactorOptions { boost::optional userId; - boost::optional tenantId; - boost::optional sso; -}; -struct ApiGetUserBanPreferenceOptions -{ - boost::optional tenantId; boost::optional sso; }; -struct ApiGetUserInternalProfileOptions +struct GetUserInternalProfileOptions { boost::optional commentId; - boost::optional tenantId; boost::optional sso; }; -struct ApiPostAdjustCommentVotesOptions +struct PostAdjustCommentVotesOptions { - boost::optional tenantId; boost::optional broadcastId; boost::optional sso; }; -struct ApiPostApiExportOptions +struct PostApiExportOptions { boost::optional textSearch; boost::optional byIPFromComment; boost::optional filters; boost::optional searchFilters; boost::optional sorts; - boost::optional tenantId; boost::optional sso; }; -struct ApiPostBanUserFromCommentOptions +struct PostBanUserFromCommentOptions { boost::optional banEmail; boost::optional banEmailDomain; @@ -251,117 +194,83 @@ struct ApiPostBanUserFromCommentOptions boost::optional isShadowBan; boost::optional updateId; boost::optional banReason; - boost::optional tenantId; boost::optional sso; }; -struct ApiPostBanUserUndoOptions -{ - boost::optional tenantId; - boost::optional sso; -}; -struct ApiPostBulkPreBanSummaryOptions +struct PostBulkPreBanSummaryOptions { boost::optional includeByUserIdAndEmail; boost::optional includeByIP; boost::optional includeByEmailDomain; - boost::optional tenantId; - boost::optional sso; -}; -struct ApiPostCommentsByIdsOptions -{ - boost::optional tenantId; boost::optional sso; }; -struct ApiPostFlagCommentOptions +struct PostFlagCommentOptions { - boost::optional tenantId; boost::optional broadcastId; boost::optional sso; }; -struct ApiPostRemoveCommentOptions +struct PostRemoveCommentOptions { - boost::optional tenantId; boost::optional broadcastId; boost::optional sso; }; -struct ApiPostRestoreDeletedCommentOptions +struct PostRestoreDeletedCommentOptions { - boost::optional tenantId; boost::optional broadcastId; boost::optional sso; }; -struct ApiPostSetCommentApprovalStatusOptions +struct PostSetCommentApprovalStatusOptions { boost::optional approved; - boost::optional tenantId; boost::optional broadcastId; boost::optional sso; }; -struct ApiPostSetCommentReviewStatusOptions +struct PostSetCommentReviewStatusOptions { boost::optional reviewed; - boost::optional tenantId; boost::optional broadcastId; boost::optional sso; }; -struct ApiPostSetCommentSpamStatusOptions +struct PostSetCommentSpamStatusOptions { boost::optional spam; boost::optional permNotSpam; - boost::optional tenantId; boost::optional broadcastId; boost::optional sso; }; -struct ApiPostSetCommentTextOptions +struct PostSetCommentTextOptions { - boost::optional tenantId; boost::optional broadcastId; boost::optional sso; }; -struct ApiPostUnFlagCommentOptions +struct PostUnFlagCommentOptions { - boost::optional tenantId; boost::optional broadcastId; boost::optional sso; }; -struct ApiPostVoteOptions +struct PostVoteOptions { boost::optional direction; - boost::optional tenantId; boost::optional broadcastId; boost::optional sso; }; -struct ApiPutAwardBadgeOptions +struct PutAwardBadgeOptions { boost::optional userId; boost::optional commentId; - boost::optional tenantId; boost::optional broadcastId; boost::optional sso; }; -struct ApiPutCloseThreadOptions -{ - boost::optional tenantId; - boost::optional sso; -}; -struct ApiPutRemoveBadgeOptions +struct PutRemoveBadgeOptions { boost::optional userId; boost::optional commentId; - boost::optional tenantId; boost::optional broadcastId; boost::optional sso; }; -struct ApiPutReopenThreadOptions -{ - boost::optional tenantId; - boost::optional sso; -}; -struct ApiSetTrustFactorOptions +struct SetTrustFactorOptions { boost::optional userId; boost::optional trustFactor; - boost::optional tenantId; boost::optional sso; }; @@ -381,16 +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 - , const ApiDeleteModerationVoteOptions& options = {} + , const DeleteModerationVoteOptions& options = {} ) const; /// /// @@ -398,6 +308,7 @@ class ModerationApi /// /// /// + /// /// (optional, default to 0.0) /// (optional, default to 0.0) /// (optional, default to utility::conversions::to_string_t("")) @@ -406,11 +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( + utility::string_t tenantId - const ApiGetApiCommentsOptions& options = {} + , const GetApiCommentsOptions& options = {} ) const; /// /// @@ -418,12 +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( + utility::string_t tenantId - const ApiGetApiExportStatusOptions& options = {} + , const GetApiExportStatusOptions& options = {} ) const; /// /// @@ -431,17 +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( + utility::string_t tenantId - const ApiGetApiIdsOptions& options = {} + , const GetApiIdsOptions& options = {} ) const; /// /// @@ -449,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 tenantId, utility::string_t commentId - - , const ApiGetBanUsersFromCommentOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -463,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 tenantId, utility::string_t commentId - - , const ApiGetCommentBanStatusOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -477,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 tenantId, utility::string_t commentId - - , const ApiGetCommentChildrenOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -491,16 +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( + utility::string_t tenantId - const ApiGetCountOptions& options = {} + , const GetCountOptions& options = {} ) const; /// /// @@ -508,11 +422,11 @@ class ModerationApi /// /// /// - /// (optional, default to utility::conversions::to_string_t("")) + /// /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getCounts( - - const ApiGetCountsOptions& options = {} + utility::string_t tenantId + , boost::optional sso = boost::none ) const; /// /// @@ -520,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 tenantId, utility::string_t commentId - - , const ApiGetLogsOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -534,11 +448,11 @@ class ModerationApi /// /// /// - /// (optional, default to utility::conversions::to_string_t("")) + /// /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getManualBadges( - - const ApiGetManualBadgesOptions& options = {} + utility::string_t tenantId + , boost::optional sso = boost::none ) const; /// /// @@ -546,13 +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( + utility::string_t tenantId - const ApiGetManualBadgesForUserOptions& options = {} + , const GetManualBadgesForUserOptions& options = {} ) const; /// /// @@ -560,15 +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 tenantId, utility::string_t commentId - , const ApiGetModerationCommentOptions& options = {} + , const GetModerationCommentOptions& options = {} ) const; /// /// @@ -576,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 tenantId, utility::string_t commentId - - , const ApiGetModerationCommentTextOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -590,16 +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 tenantId, utility::string_t commentId - , const ApiGetPreBanSummaryOptions& options = {} + , const GetPreBanSummaryOptions& options = {} ) const; /// /// @@ -607,14 +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( + utility::string_t tenantId - const ApiGetSearchCommentsSummaryOptions& options = {} + , const GetSearchCommentsSummaryOptions& options = {} ) const; /// /// @@ -622,12 +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( + utility::string_t tenantId - const ApiGetSearchPagesOptions& options = {} + , const GetSearchPagesOptions& options = {} ) const; /// /// @@ -635,12 +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( + utility::string_t tenantId - const ApiGetSearchSitesOptions& options = {} + , const GetSearchSitesOptions& options = {} ) const; /// /// @@ -648,12 +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( + utility::string_t tenantId - const ApiGetSearchSuggestOptions& options = {} + , const GetSearchSuggestOptions& options = {} ) const; /// /// @@ -661,12 +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( + utility::string_t tenantId - const ApiGetSearchUsersOptions& options = {} + , const GetSearchUsersOptions& options = {} ) const; /// /// @@ -674,12 +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( + utility::string_t tenantId - const ApiGetTrustFactorOptions& options = {} + , const GetTrustFactorOptions& options = {} ) const; /// /// @@ -687,11 +610,11 @@ class ModerationApi /// /// /// - /// (optional, default to utility::conversions::to_string_t("")) + /// /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getUserBanPreference( - - const ApiGetUserBanPreferenceOptions& options = {} + utility::string_t tenantId + , boost::optional sso = boost::none ) const; /// /// @@ -699,12 +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( + utility::string_t tenantId - const ApiGetUserInternalProfileOptions& options = {} + , const GetUserInternalProfileOptions& options = {} ) const; /// /// @@ -712,16 +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 - , const ApiPostAdjustCommentVotesOptions& options = {} + , const PostAdjustCommentVotesOptions& options = {} ) const; /// /// @@ -729,16 +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( + utility::string_t tenantId - const ApiPostApiExportOptions& options = {} + , const PostApiExportOptions& options = {} ) const; /// /// @@ -746,6 +672,7 @@ class ModerationApi /// /// /// + /// /// /// (optional, default to false) /// (optional, default to false) @@ -755,12 +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 tenantId, utility::string_t commentId - , const ApiPostBanUserFromCommentOptions& options = {} + , const PostBanUserFromCommentOptions& options = {} ) const; /// /// @@ -768,13 +695,13 @@ class ModerationApi /// /// /// + /// /// - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postBanUserUndo( + utility::string_t tenantId, std::shared_ptr banUserUndoParams - - , const ApiPostBanUserUndoOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -782,16 +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( + utility::string_t tenantId, std::shared_ptr bulkPreBanParams - , const ApiPostBulkPreBanSummaryOptions& options = {} + , const PostBulkPreBanSummaryOptions& options = {} ) const; /// /// @@ -799,13 +727,13 @@ class ModerationApi /// /// /// + /// /// - /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postCommentsByIds( + utility::string_t tenantId, std::shared_ptr commentsByIdsParams - - , const ApiPostCommentsByIdsOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -813,14 +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 tenantId, utility::string_t commentId - , const ApiPostFlagCommentOptions& options = {} + , const PostFlagCommentOptions& options = {} ) const; /// /// @@ -828,14 +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( + pplx::task> postRemoveComment( + utility::string_t tenantId, utility::string_t commentId - , const ApiPostRemoveCommentOptions& options = {} + , const PostRemoveCommentOptions& options = {} ) const; /// /// @@ -843,14 +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 tenantId, utility::string_t commentId - , const ApiPostRestoreDeletedCommentOptions& options = {} + , const PostRestoreDeletedCommentOptions& options = {} ) const; /// /// @@ -858,15 +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 tenantId, utility::string_t commentId - , const ApiPostSetCommentApprovalStatusOptions& options = {} + , const PostSetCommentApprovalStatusOptions& options = {} ) const; /// /// @@ -874,15 +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 tenantId, utility::string_t commentId - , const ApiPostSetCommentReviewStatusOptions& options = {} + , const PostSetCommentReviewStatusOptions& options = {} ) const; /// /// @@ -890,16 +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 tenantId, utility::string_t commentId - , const ApiPostSetCommentSpamStatusOptions& options = {} + , const PostSetCommentSpamStatusOptions& options = {} ) const; /// /// @@ -907,16 +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 - , const ApiPostSetCommentTextOptions& options = {} + , const PostSetCommentTextOptions& options = {} ) const; /// /// @@ -924,14 +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 tenantId, utility::string_t commentId - , const ApiPostUnFlagCommentOptions& options = {} + , const PostUnFlagCommentOptions& options = {} ) const; /// /// @@ -939,15 +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 tenantId, utility::string_t commentId - , const ApiPostVoteOptions& options = {} + , const PostVoteOptions& options = {} ) const; /// /// @@ -955,16 +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 tenantId, utility::string_t badgeId - , const ApiPutAwardBadgeOptions& options = {} + , const PutAwardBadgeOptions& options = {} ) const; /// /// @@ -972,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 tenantId, utility::string_t urlId - - , const ApiPutCloseThreadOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -986,16 +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 tenantId, utility::string_t badgeId - , const ApiPutRemoveBadgeOptions& options = {} + , const PutRemoveBadgeOptions& options = {} ) const; /// /// @@ -1003,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 tenantId, utility::string_t urlId - - , const ApiPutReopenThreadOptions& options = {} + , boost::optional sso = boost::none ) const; /// /// @@ -1017,13 +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( + utility::string_t tenantId - const ApiSetTrustFactorOptions& options = {} + , const SetTrustFactorOptions& options = {} ) const; protected: diff --git a/client/include/FastCommentsClient/api/PublicApi.h b/client/include/FastCommentsClient/api/PublicApi.h index 54817ca..1d79826 100644 --- a/client/include/FastCommentsClient/api/PublicApi.h +++ b/client/include/FastCommentsClient/api/PublicApi.h @@ -87,37 +87,37 @@ namespace api { using namespace org::openapitools::client::model; -struct ApiCreateCommentPublicOptions +struct CreateCommentPublicOptions { boost::optional sessionId; boost::optional sso; }; -struct ApiCreateFeedPostPublicOptions +struct CreateFeedPostPublicOptions { boost::optional broadcastId; boost::optional sso; }; -struct ApiDeleteCommentPublicOptions +struct DeleteCommentPublicOptions { boost::optional editKey; boost::optional sso; }; -struct ApiDeleteCommentVoteOptions +struct DeleteCommentVoteOptions { boost::optional editKey; boost::optional sso; }; -struct ApiDeleteFeedPostPublicOptions +struct DeleteFeedPostPublicOptions { boost::optional broadcastId; boost::optional sso; }; -struct ApiGetCommentTextOptions +struct GetCommentTextOptions { boost::optional editKey; boost::optional sso; }; -struct ApiGetCommentsForUserOptions +struct GetCommentsForUserOptions { boost::optional userId; boost::optional> direction; @@ -127,7 +127,7 @@ struct ApiGetCommentsForUserOptions boost::optional locale; boost::optional isCrawler; }; -struct ApiGetCommentsPublicOptions +struct GetCommentsPublicOptions { boost::optional page; boost::optional> direction; @@ -156,7 +156,7 @@ struct ApiGetCommentsPublicOptions boost::optional afterCommentId; boost::optional beforeCommentId; }; -struct ApiGetFeedPostsPublicOptions +struct GetFeedPostsPublicOptions { boost::optional afterId; boost::optional limit; @@ -165,29 +165,29 @@ struct ApiGetFeedPostsPublicOptions boost::optional isCrawler; boost::optional includeUserInfo; }; -struct ApiGetGifsSearchOptions +struct GetGifsSearchOptions { boost::optional locale; boost::optional rating; boost::optional page; }; -struct ApiGetGifsTrendingOptions +struct GetGifsTrendingOptions { boost::optional locale; boost::optional rating; boost::optional page; }; -struct ApiGetOfflineUsersOptions +struct GetOfflineUsersOptions { boost::optional afterName; boost::optional afterUserId; }; -struct ApiGetOnlineUsersOptions +struct GetOnlineUsersOptions { boost::optional afterName; boost::optional afterUserId; }; -struct ApiGetPagesPublicOptions +struct GetPagesPublicOptions { boost::optional cursor; boost::optional limit; @@ -195,12 +195,12 @@ struct ApiGetPagesPublicOptions boost::optional> sortBy; boost::optional hasComments; }; -struct ApiGetTranslationsOptions +struct GetTranslationsOptions { boost::optional locale; boost::optional useFullTranslationIds; }; -struct ApiGetUserNotificationsOptions +struct GetUserNotificationsOptions { boost::optional urlId; boost::optional pageSize; @@ -214,18 +214,18 @@ struct ApiGetUserNotificationsOptions boost::optional includeTenantNotifications; boost::optional sso; }; -struct ApiGetUserReactsPublicOptions +struct GetUserReactsPublicOptions { boost::optional> postIds; boost::optional sso; }; -struct ApiReactFeedPostPublicOptions +struct ReactFeedPostPublicOptions { boost::optional isUndo; boost::optional broadcastId; boost::optional sso; }; -struct ApiResetUserNotificationsOptions +struct ResetUserNotificationsOptions { boost::optional afterId; boost::optional afterCreatedAt; @@ -234,29 +234,29 @@ struct ApiResetUserNotificationsOptions boost::optional noDm; boost::optional sso; }; -struct ApiSearchUsersOptions +struct SearchUsersOptions { boost::optional usernameStartsWith; boost::optional> mentionGroupIds; boost::optional sso; boost::optional searchSection; }; -struct ApiSetCommentTextOptions +struct SetCommentTextOptions { boost::optional editKey; boost::optional sso; }; -struct ApiUpdateFeedPostPublicOptions +struct UpdateFeedPostPublicOptions { boost::optional broadcastId; boost::optional sso; }; -struct ApiUploadImageOptions +struct UploadImageOptions { boost::optional> sizePreset; boost::optional urlId; }; -struct ApiVoteCommentOptions +struct VoteCommentOptions { boost::optional sessionId; boost::optional sso; @@ -320,7 +320,7 @@ class PublicApi utility::string_t broadcastId, std::shared_ptr commentData - , const ApiCreateCommentPublicOptions& options = {} + , const CreateCommentPublicOptions& options = {} ) const; /// /// @@ -336,7 +336,7 @@ class PublicApi utility::string_t tenantId, std::shared_ptr createFeedPostParams - , const ApiCreateFeedPostPublicOptions& options = {} + , const CreateFeedPostPublicOptions& options = {} ) const; /// /// @@ -384,7 +384,7 @@ class PublicApi utility::string_t commentId, utility::string_t broadcastId - , const ApiDeleteCommentPublicOptions& options = {} + , const DeleteCommentPublicOptions& options = {} ) const; /// /// @@ -406,7 +406,7 @@ class PublicApi utility::string_t urlId, utility::string_t broadcastId - , const ApiDeleteCommentVoteOptions& options = {} + , const DeleteCommentVoteOptions& options = {} ) const; /// /// @@ -422,7 +422,7 @@ class PublicApi utility::string_t tenantId, utility::string_t postId - , const ApiDeleteFeedPostPublicOptions& options = {} + , const DeleteFeedPostPublicOptions& options = {} ) const; /// /// @@ -482,7 +482,7 @@ class PublicApi utility::string_t tenantId, utility::string_t commentId - , const ApiGetCommentTextOptions& options = {} + , const GetCommentTextOptions& options = {} ) const; /// /// @@ -515,7 +515,7 @@ class PublicApi /// (optional, default to false) pplx::task> getCommentsForUser( - const ApiGetCommentsForUserOptions& options = {} + const GetCommentsForUserOptions& options = {} ) const; /// /// @@ -555,7 +555,7 @@ class PublicApi utility::string_t tenantId, utility::string_t urlId - , const ApiGetCommentsPublicOptions& options = {} + , const GetCommentsPublicOptions& options = {} ) const; /// /// @@ -591,7 +591,7 @@ class PublicApi pplx::task> getFeedPostsPublic( utility::string_t tenantId - , const ApiGetFeedPostsPublicOptions& options = {} + , const GetFeedPostsPublicOptions& options = {} ) const; /// /// @@ -635,7 +635,7 @@ class PublicApi utility::string_t tenantId, utility::string_t search - , const ApiGetGifsSearchOptions& options = {} + , const GetGifsSearchOptions& options = {} ) const; /// /// @@ -650,7 +650,7 @@ class PublicApi pplx::task> getGifsTrending( utility::string_t tenantId - , const ApiGetGifsTrendingOptions& options = {} + , const GetGifsTrendingOptions& options = {} ) const; /// /// @@ -684,7 +684,7 @@ class PublicApi utility::string_t tenantId, utility::string_t urlId - , const ApiGetOfflineUsersOptions& options = {} + , const GetOfflineUsersOptions& options = {} ) const; /// /// @@ -700,7 +700,7 @@ class PublicApi utility::string_t tenantId, utility::string_t urlId - , const ApiGetOnlineUsersOptions& options = {} + , const GetOnlineUsersOptions& options = {} ) const; /// /// @@ -717,7 +717,7 @@ class PublicApi pplx::task> getPagesPublic( utility::string_t tenantId - , const ApiGetPagesPublicOptions& options = {} + , const GetPagesPublicOptions& options = {} ) const; /// /// @@ -733,7 +733,7 @@ class PublicApi utility::string_t r_namespace, utility::string_t component - , const ApiGetTranslationsOptions& options = {} + , const GetTranslationsOptions& options = {} ) const; /// /// @@ -768,7 +768,7 @@ class PublicApi pplx::task> getUserNotifications( utility::string_t tenantId - , const ApiGetUserNotificationsOptions& options = {} + , const GetUserNotificationsOptions& options = {} ) const; /// /// @@ -797,7 +797,7 @@ class PublicApi pplx::task> getUserReactsPublic( utility::string_t tenantId - , const ApiGetUserReactsPublicOptions& options = {} + , const GetUserReactsPublicOptions& options = {} ) const; /// /// @@ -911,7 +911,7 @@ class PublicApi utility::string_t postId, std::shared_ptr reactBodyParams - , const ApiReactFeedPostPublicOptions& options = {} + , const ReactFeedPostPublicOptions& options = {} ) const; /// /// @@ -941,7 +941,7 @@ class PublicApi pplx::task> resetUserNotifications( utility::string_t tenantId - , const ApiResetUserNotificationsOptions& options = {} + , const ResetUserNotificationsOptions& options = {} ) const; /// /// @@ -959,7 +959,7 @@ class PublicApi utility::string_t tenantId, utility::string_t urlId - , const ApiSearchUsersOptions& options = {} + , const SearchUsersOptions& options = {} ) const; /// /// @@ -979,7 +979,7 @@ class PublicApi utility::string_t broadcastId, std::shared_ptr commentTextUpdateRequest - , const ApiSetCommentTextOptions& options = {} + , const SetCommentTextOptions& options = {} ) const; /// /// @@ -1045,7 +1045,7 @@ class PublicApi utility::string_t postId, std::shared_ptr updateFeedPostParams - , const ApiUpdateFeedPostPublicOptions& options = {} + , const UpdateFeedPostPublicOptions& options = {} ) const; /// /// @@ -1115,7 +1115,7 @@ class PublicApi utility::string_t tenantId, std::shared_ptr file - , const ApiUploadImageOptions& options = {} + , const UploadImageOptions& options = {} ) const; /// /// @@ -1137,7 +1137,7 @@ class PublicApi utility::string_t broadcastId, std::shared_ptr voteBodyParams - , const ApiVoteCommentOptions& options = {} + , 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 c935e08..b494177 100644 --- a/client/src/api/DefaultApi.cpp +++ b/client/src/api/DefaultApi.cpp @@ -195,8 +195,9 @@ pplx::task> DefaultApi::addDomainConfig }); } pplx::task> DefaultApi::addHashTag( + utility::string_t tenantId, std::shared_ptr createHashTagBody - , boost::optional tenantId + ) const { @@ -239,9 +240,8 @@ pplx::task> DefaultApi::addHashTag( 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; @@ -348,8 +348,9 @@ pplx::task> DefaultApi::addHashTag( }); } pplx::task> DefaultApi::addHashTagsBulk( + utility::string_t tenantId, std::shared_ptr bulkCreateHashTagsBody - , boost::optional tenantId + ) const { @@ -392,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; @@ -822,7 +822,7 @@ pplx::task> DefaultApi::aggregate( utility::string_t tenantId, std::shared_ptr aggregationRequest - , const ApiAggregateOptions& options + , const AggregateOptions& options ) const { auto parentTenantId = options.parentTenantId; @@ -991,7 +991,7 @@ pplx::task> DefaultApi::aggregate( pplx::task> DefaultApi::aggregateQuestionResults( utility::string_t tenantId - , const ApiAggregateQuestionResultsOptions& options + , const AggregateQuestionResultsOptions& options ) const { auto questionId = options.questionId; @@ -1160,7 +1160,7 @@ pplx::task> DefaultApi::blockUserFromComment( utility::string_t id, std::shared_ptr blockFromCommentParams - , const ApiBlockUserFromCommentOptions& options + , const BlockUserFromCommentOptions& options ) const { auto userId = options.userId; @@ -1658,7 +1658,7 @@ pplx::task> DefaultApi::changeTicketS pplx::task> DefaultApi::combineCommentsWithQuestionResults( utility::string_t tenantId - , const ApiCombineCommentsWithQuestionResultsOptions& options + , const CombineCommentsWithQuestionResultsOptions& options ) const { auto questionId = options.questionId; @@ -1995,7 +1995,7 @@ pplx::task> DefaultApi::createFeedPost( utility::string_t tenantId, std::shared_ptr createFeedPostParams - , const ApiCreateFeedPostOptions& options + , const CreateFeedPostOptions& options ) const { auto broadcastId = options.broadcastId; @@ -3611,7 +3611,7 @@ pplx::task> DefaultApi::createVote( utility::string_t commentId, utility::string_t direction - , const ApiCreateVoteOptions& options + , const CreateVoteOptions& options ) const { auto userId = options.userId; @@ -3765,7 +3765,7 @@ pplx::task> DefaultApi::deleteComment( utility::string_t tenantId, utility::string_t id - , const ApiDeleteCommentOptions& options + , const DeleteCommentOptions& options ) const { auto contextUserId = options.contextUserId; @@ -4327,9 +4327,10 @@ pplx::task> DefaultApi::deleteEmailTemplateRen }); } pplx::task> DefaultApi::deleteHashTag( + utility::string_t tenantId, utility::string_t tag, std::shared_ptr deleteHashTagRequestBody - , boost::optional tenantId + ) const { @@ -4373,9 +4374,8 @@ pplx::task> DefaultApi::deleteHashTag( 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; @@ -5317,7 +5317,7 @@ pplx::task> DefaultApi::deleteSSOUser( utility::string_t tenantId, utility::string_t id - , const ApiDeleteSSOUserOptions& options + , const DeleteSSOUserOptions& options ) const { auto deleteComments = options.deleteComments; @@ -5888,7 +5888,7 @@ pplx::task> DefaultApi::deleteTenantUser( utility::string_t tenantId, utility::string_t id - , const ApiDeleteTenantUserOptions& options + , const DeleteTenantUserOptions& options ) const { auto deleteComments = options.deleteComments; @@ -6317,7 +6317,7 @@ pplx::task> DefaultApi::flagComment( utility::string_t tenantId, utility::string_t id - , const ApiFlagCommentOptions& options + , const FlagCommentOptions& options ) const { auto userId = options.userId; @@ -6465,7 +6465,7 @@ pplx::task> DefaultApi::flagComment( pplx::task> DefaultApi::getAuditLogs( utility::string_t tenantId - , const ApiGetAuditLogsOptions& options + , const GetAuditLogsOptions& options ) const { auto limit = options.limit; @@ -6903,7 +6903,7 @@ pplx::task> DefaultApi::getComment( pplx::task> DefaultApi::getComments( utility::string_t tenantId - , const ApiGetCommentsOptions& options + , const GetCommentsOptions& options ) const { auto page = options.page; @@ -7950,7 +7950,7 @@ pplx::task> DefaultApi::getEmailTempl pplx::task> DefaultApi::getFeedPosts( utility::string_t tenantId - , const ApiGetFeedPostsOptions& options + , const GetFeedPostsOptions& options ) const { auto afterId = options.afterId; @@ -8520,7 +8520,7 @@ pplx::task> DefaultApi::getModerators( pplx::task> DefaultApi::getNotificationCount( utility::string_t tenantId - , const ApiGetNotificationCountOptions& options + , const GetNotificationCountOptions& options ) const { auto userId = options.userId; @@ -8682,7 +8682,7 @@ pplx::task> DefaultApi::getNotific pplx::task> DefaultApi::getNotifications( utility::string_t tenantId - , const ApiGetNotificationsOptions& options + , const GetNotificationsOptions& options ) const { auto userId = options.userId; @@ -9125,7 +9125,7 @@ pplx::task> DefaultApi::getPages( pplx::task> DefaultApi::getPendingWebhookEventCount( utility::string_t tenantId - , const ApiGetPendingWebhookEventCountOptions& options + , const GetPendingWebhookEventCountOptions& options ) const { auto commentId = options.commentId; @@ -9292,7 +9292,7 @@ pplx::task> DefaultApi::get pplx::task> DefaultApi::getPendingWebhookEvents( utility::string_t tenantId - , const ApiGetPendingWebhookEventsOptions& options + , const GetPendingWebhookEventsOptions& options ) const { auto commentId = options.commentId; @@ -9880,7 +9880,7 @@ pplx::task> DefaultApi::getQuestionRe pplx::task> DefaultApi::getQuestionResults( utility::string_t tenantId - , const ApiGetQuestionResultsOptions& options + , const GetQuestionResultsOptions& options ) const { auto urlId = options.urlId; @@ -10741,7 +10741,7 @@ pplx::task> DefaultApi::getTenant( pplx::task> DefaultApi::getTenantDailyUsages( utility::string_t tenantId - , const ApiGetTenantDailyUsagesOptions& options + , const GetTenantDailyUsagesOptions& options ) const { auto yearNumber = options.yearNumber; @@ -11454,7 +11454,7 @@ pplx::task> DefaultApi::getTenantUsers( pplx::task> DefaultApi::getTenants( utility::string_t tenantId - , const ApiGetTenantsOptions& options + , const GetTenantsOptions& options ) const { auto meta = options.meta; @@ -11743,7 +11743,7 @@ pplx::task> DefaultApi::getTicket( pplx::task> DefaultApi::getTickets( utility::string_t tenantId - , const ApiGetTicketsOptions& options + , const GetTicketsOptions& options ) const { auto userId = options.userId; @@ -12452,7 +12452,7 @@ pplx::task> DefaultApi::getUser pplx::task> DefaultApi::getUserBadgeProgressList( utility::string_t tenantId - , const ApiGetUserBadgeProgressListOptions& options + , const GetUserBadgeProgressListOptions& options ) const { auto userId = options.userId; @@ -12604,7 +12604,7 @@ pplx::task> DefaultApi::get pplx::task> DefaultApi::getUserBadges( utility::string_t tenantId - , const ApiGetUserBadgesOptions& options + , const GetUserBadgesOptions& options ) const { auto userId = options.userId; @@ -12912,7 +12912,7 @@ pplx::task> DefaultApi::getVotesForUser utility::string_t tenantId, utility::string_t urlId - , const ApiGetVotesForUserOptions& options + , const GetVotesForUserOptions& options ) const { auto userId = options.userId; @@ -13221,9 +13221,10 @@ pplx::task> DefaultApi::patchDomainCo }); } pplx::task> DefaultApi::patchHashTag( + utility::string_t tenantId, utility::string_t tag, std::shared_ptr updateHashTagBody - , boost::optional tenantId + ) const { @@ -13267,9 +13268,8 @@ pplx::task> DefaultApi::patchHashTag( 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; @@ -14520,7 +14520,7 @@ pplx::task> DefaultApi::saveComment( utility::string_t tenantId, std::shared_ptr createCommentParams - , const ApiSaveCommentOptions& options + , const SaveCommentOptions& options ) const { auto isLive = options.isLive; @@ -14700,7 +14700,7 @@ pplx::task>> DefaultApi::s utility::string_t tenantId, std::vector> createCommentParams - , const ApiSaveCommentsBulkOptions& options + , const SaveCommentsBulkOptions& options ) const { auto isLive = options.isLive; @@ -15175,7 +15175,7 @@ pplx::task> DefaultApi::unBlockUserFromComment( utility::string_t id, std::shared_ptr unBlockFromCommentParams - , const ApiUnBlockUserFromCommentOptions& options + , const UnBlockUserFromCommentOptions& options ) const { auto userId = options.userId; @@ -15346,7 +15346,7 @@ pplx::task> DefaultApi::unFlagComment( utility::string_t tenantId, utility::string_t id - , const ApiUnFlagCommentOptions& options + , const UnFlagCommentOptions& options ) const { auto userId = options.userId; @@ -15496,7 +15496,7 @@ pplx::task> DefaultApi::updateComment( utility::string_t id, std::shared_ptr updatableCommentParams - , const ApiUpdateCommentOptions& options + , const UpdateCommentOptions& options ) const { auto contextUserId = options.contextUserId; diff --git a/client/src/api/ModerationApi.cpp b/client/src/api/ModerationApi.cpp index 81a1a8a..8860409 100644 --- a/client/src/api/ModerationApi.cpp +++ b/client/src/api/ModerationApi.cpp @@ -36,19 +36,19 @@ ModerationApi::~ModerationApi() } pplx::task> ModerationApi::deleteModerationVote( + utility::string_t tenantId, utility::string_t commentId, utility::string_t voteId - , const ApiDeleteModerationVoteOptions& options + , const DeleteModerationVoteOptions& options ) const { - auto tenantId = options.tenantId; 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))); @@ -86,9 +86,8 @@ pplx::task> ModerationApi::deleteModerationV 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 (broadcastId) { @@ -180,8 +179,9 @@ pplx::task> ModerationApi::deleteModerationV }); } pplx::task> ModerationApi::getApiComments( + utility::string_t tenantId - const ApiGetApiCommentsOptions& options + , const GetApiCommentsOptions& options ) const { auto page = options.page; @@ -192,12 +192,11 @@ pplx::task> ModerationApi::get auto searchFilters = options.searchFilters; auto sorts = options.sorts; auto demo = options.demo; - auto tenantId = options.tenantId; 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() ); @@ -233,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); @@ -265,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); @@ -355,17 +353,17 @@ pplx::task> ModerationApi::get }); } pplx::task> ModerationApi::getApiExportStatus( + utility::string_t tenantId - const ApiGetApiExportStatusOptions& options + , const GetApiExportStatusOptions& options ) const { auto batchJobId = options.batchJobId; - auto tenantId = options.tenantId; 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() ); @@ -401,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) { @@ -495,8 +492,9 @@ pplx::task> ModerationApi::getAp }); } pplx::task> ModerationApi::getApiIds( + utility::string_t tenantId - const ApiGetApiIdsOptions& options + , const GetApiIdsOptions& options ) const { auto textSearch = options.textSearch; @@ -505,12 +503,11 @@ pplx::task> ModerationApi::g auto searchFilters = options.searchFilters; auto afterId = options.afterId; auto demo = options.demo; - auto tenantId = options.tenantId; 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() ); @@ -546,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); @@ -570,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); @@ -660,17 +656,15 @@ pplx::task> ModerationApi::g }); } pplx::task> ModerationApi::getBanUsersFromComment( + utility::string_t tenantId, utility::string_t commentId - - , const ApiGetBanUsersFromCommentOptions& options + , boost::optional sso ) const { - auto tenantId = options.tenantId; - 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-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; @@ -707,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) { @@ -797,17 +790,15 @@ pplx::task> ModerationApi::ge }); } pplx::task> ModerationApi::getCommentBanStatus( + utility::string_t tenantId, utility::string_t commentId - - , const ApiGetCommentBanStatusOptions& options + , boost::optional sso ) const { - auto tenantId = options.tenantId; - 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-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; @@ -844,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) { @@ -934,17 +924,15 @@ pplx::task> ModerationApi::getComme }); } pplx::task> ModerationApi::getCommentChildren( + utility::string_t tenantId, utility::string_t commentId - - , const ApiGetCommentChildrenOptions& options + , boost::optional sso ) const { - auto tenantId = options.tenantId; - 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-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; @@ -981,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) { @@ -1071,8 +1058,9 @@ pplx::task> ModerationApi::g }); } pplx::task> ModerationApi::getCount( + utility::string_t tenantId - const ApiGetCountOptions& options + , const GetCountOptions& options ) const { auto textSearch = options.textSearch; @@ -1080,12 +1068,11 @@ pplx::task> ModerationApi::g auto filter = options.filter; auto searchFilters = options.searchFilters; auto demo = options.demo; - auto tenantId = options.tenantId; 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() ); @@ -1121,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); @@ -1141,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); @@ -1231,16 +1217,14 @@ pplx::task> ModerationApi::g }); } pplx::task> ModerationApi::getCounts( - - const ApiGetCountsOptions& options + utility::string_t tenantId + , boost::optional sso ) const { - auto tenantId = options.tenantId; - 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/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() ); @@ -1276,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) { @@ -1366,17 +1349,15 @@ pplx::task> ModerationApi::getCount }); } pplx::task> ModerationApi::getLogs( + utility::string_t tenantId, utility::string_t commentId - - , const ApiGetLogsOptions& options + , boost::optional sso ) const { - auto tenantId = options.tenantId; - 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/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; @@ -1413,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) { @@ -1503,16 +1483,14 @@ pplx::task> ModerationApi::getLogs }); } pplx::task> ModerationApi::getManualBadges( - - const ApiGetManualBadgesOptions& options + utility::string_t tenantId + , boost::optional sso ) const { - auto tenantId = options.tenantId; - 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"); + 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() ); @@ -1548,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) { @@ -1638,18 +1615,18 @@ pplx::task> ModerationApi::getMan }); } pplx::task> ModerationApi::getManualBadgesForUser( + utility::string_t tenantId - const ApiGetManualBadgesForUserOptions& options + , const GetManualBadgesForUserOptions& options ) const { auto badgesUserId = options.badgesUserId; auto commentId = options.commentId; - auto tenantId = options.tenantId; 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() ); @@ -1685,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); @@ -1693,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); @@ -1783,19 +1759,19 @@ pplx::task> ModerationApi::getManua }); } pplx::task> ModerationApi::getModerationComment( + utility::string_t tenantId, utility::string_t commentId - , const ApiGetModerationCommentOptions& options + , const GetModerationCommentOptions& options ) const { auto includeEmail = options.includeEmail; auto includeIP = options.includeIP; - auto tenantId = options.tenantId; 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; @@ -1832,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); @@ -1840,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); @@ -1930,17 +1905,15 @@ pplx::task> ModerationApi::getMode }); } pplx::task> ModerationApi::getModerationCommentText( + utility::string_t tenantId, utility::string_t commentId - - , const ApiGetModerationCommentTextOptions& options + , boost::optional sso ) const { - auto tenantId = options.tenantId; - 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-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; @@ -1977,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) { @@ -2067,20 +2039,20 @@ pplx::task> ModerationApi::getModeration }); } pplx::task> ModerationApi::getPreBanSummary( + utility::string_t tenantId, utility::string_t commentId - , const ApiGetPreBanSummaryOptions& options + , const GetPreBanSummaryOptions& options ) const { auto includeByUserIdAndEmail = options.includeByUserIdAndEmail; auto includeByIP = options.includeByIP; auto includeByEmailDomain = options.includeByEmailDomain; - auto tenantId = options.tenantId; 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; @@ -2117,6 +2089,9 @@ pplx::task> ModerationApi::getPreBanSummary( 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); @@ -2129,10 +2104,6 @@ pplx::task> ModerationApi::getPreBanSummary( { 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); @@ -2219,19 +2190,19 @@ pplx::task> ModerationApi::getPreBanSummary( }); } pplx::task> ModerationApi::getSearchCommentsSummary( + utility::string_t tenantId - const ApiGetSearchCommentsSummaryOptions& options + , const GetSearchCommentsSummaryOptions& options ) const { auto value = options.value; auto filters = options.filters; auto searchFilters = options.searchFilters; - auto tenantId = options.tenantId; 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() ); @@ -2267,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); @@ -2279,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); @@ -2369,17 +2339,17 @@ pplx::task> ModerationApi::getS }); } pplx::task> ModerationApi::getSearchPages( + utility::string_t tenantId - const ApiGetSearchPagesOptions& options + , const GetSearchPagesOptions& options ) const { auto value = options.value; - auto tenantId = options.tenantId; 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() ); @@ -2415,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) { @@ -2509,17 +2478,17 @@ pplx::task> ModerationApi::getSear }); } pplx::task> ModerationApi::getSearchSites( + utility::string_t tenantId - const ApiGetSearchSitesOptions& options + , const GetSearchSitesOptions& options ) const { auto value = options.value; - auto tenantId = options.tenantId; 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() ); @@ -2555,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) { @@ -2649,17 +2617,17 @@ pplx::task> ModerationApi::getSear }); } pplx::task> ModerationApi::getSearchSuggest( + utility::string_t tenantId - const ApiGetSearchSuggestOptions& options + , const GetSearchSuggestOptions& options ) const { auto textSearch = options.textSearch; - auto tenantId = options.tenantId; 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() ); @@ -2695,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) { @@ -2789,17 +2756,17 @@ pplx::task> ModerationApi::getSearchS }); } pplx::task> ModerationApi::getSearchUsers( + utility::string_t tenantId - const ApiGetSearchUsersOptions& options + , const GetSearchUsersOptions& options ) const { auto value = options.value; - auto tenantId = options.tenantId; 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() ); @@ -2835,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) { @@ -2929,17 +2895,17 @@ pplx::task> ModerationApi::getSear }); } pplx::task> ModerationApi::getTrustFactor( + utility::string_t tenantId - const ApiGetTrustFactorOptions& options + , const GetTrustFactorOptions& options ) const { auto userId = options.userId; - auto tenantId = options.tenantId; 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() ); @@ -2975,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) { @@ -3069,16 +3034,14 @@ pplx::task> ModerationApi::getTrustF }); } pplx::task> ModerationApi::getUserBanPreference( - - const ApiGetUserBanPreferenceOptions& options + utility::string_t tenantId + , boost::optional sso ) const { - auto tenantId = options.tenantId; - 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/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() ); @@ -3114,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) { @@ -3204,17 +3166,17 @@ pplx::task> Moderation }); } pplx::task> ModerationApi::getUserInternalProfile( + utility::string_t tenantId - const ApiGetUserInternalProfileOptions& options + , const GetUserInternalProfileOptions& options ) const { auto commentId = options.commentId; - auto tenantId = options.tenantId; 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() ); @@ -3250,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) { @@ -3344,13 +3305,13 @@ pplx::task> ModerationApi::getUs }); } pplx::task> ModerationApi::postAdjustCommentVotes( + utility::string_t tenantId, utility::string_t commentId, std::shared_ptr adjustCommentVotesParams - , const ApiPostAdjustCommentVotesOptions& options + , const PostAdjustCommentVotesOptions& options ) const { - auto tenantId = options.tenantId; auto broadcastId = options.broadcastId; auto sso = options.sso; @@ -3362,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; @@ -3400,9 +3361,8 @@ pplx::task> ModerationApi::postAdjustCommen 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 (broadcastId) { @@ -3509,8 +3469,9 @@ pplx::task> ModerationApi::postAdjustCommen }); } pplx::task> ModerationApi::postApiExport( + utility::string_t tenantId - const ApiPostApiExportOptions& options + , const PostApiExportOptions& options ) const { auto textSearch = options.textSearch; @@ -3518,12 +3479,11 @@ pplx::task> ModerationApi::postApiExpo auto filters = options.filters; auto searchFilters = options.searchFilters; auto sorts = options.sorts; - auto tenantId = options.tenantId; 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() ); @@ -3559,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); @@ -3579,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); @@ -3669,9 +3628,10 @@ pplx::task> ModerationApi::postApiExpo }); } pplx::task> ModerationApi::postBanUserFromComment( + utility::string_t tenantId, utility::string_t commentId - , const ApiPostBanUserFromCommentOptions& options + , const PostBanUserFromCommentOptions& options ) const { auto banEmail = options.banEmail; @@ -3682,12 +3642,11 @@ pplx::task> ModerationApi::postBanUser auto isShadowBan = options.isShadowBan; auto updateId = options.updateId; auto banReason = options.banReason; - auto tenantId = options.tenantId; 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; @@ -3724,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); @@ -3756,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); @@ -3846,13 +3804,11 @@ pplx::task> ModerationApi::postBanUser }); } pplx::task> ModerationApi::postBanUserUndo( + utility::string_t tenantId, std::shared_ptr banUserUndoParams - - , const ApiPostBanUserUndoOptions& options + , boost::optional sso ) const { - auto tenantId = options.tenantId; - auto sso = options.sso; // verify the required parameter 'banUserUndoParams' is set if (banUserUndoParams == nullptr) @@ -3862,7 +3818,7 @@ pplx::task> ModerationApi::postBanUserUndo( 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() ); @@ -3899,9 +3855,8 @@ pplx::task> ModerationApi::postBanUserUndo( 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) { @@ -4004,15 +3959,15 @@ pplx::task> ModerationApi::postBanUserUndo( }); } pplx::task> ModerationApi::postBulkPreBanSummary( + utility::string_t tenantId, std::shared_ptr bulkPreBanParams - , const ApiPostBulkPreBanSummaryOptions& options + , const PostBulkPreBanSummaryOptions& options ) const { auto includeByUserIdAndEmail = options.includeByUserIdAndEmail; auto includeByIP = options.includeByIP; auto includeByEmailDomain = options.includeByEmailDomain; - auto tenantId = options.tenantId; auto sso = options.sso; // verify the required parameter 'bulkPreBanParams' is set @@ -4023,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() ); @@ -4060,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); @@ -4072,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); @@ -4177,13 +4131,11 @@ pplx::task> ModerationApi::postBulkPreBanSumm }); } pplx::task> ModerationApi::postCommentsByIds( + utility::string_t tenantId, std::shared_ptr commentsByIdsParams - - , const ApiPostCommentsByIdsOptions& options + , boost::optional sso ) const { - auto tenantId = options.tenantId; - auto sso = options.sso; // verify the required parameter 'commentsByIdsParams' is set if (commentsByIdsParams == nullptr) @@ -4193,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() ); @@ -4230,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) { @@ -4335,18 +4286,18 @@ pplx::task> ModerationApi::p }); } pplx::task> ModerationApi::postFlagComment( + utility::string_t tenantId, utility::string_t commentId - , const ApiPostFlagCommentOptions& options + , const PostFlagCommentOptions& options ) const { - auto tenantId = options.tenantId; 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; @@ -4383,9 +4334,8 @@ pplx::task> ModerationApi::postFlagComment( 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 (broadcastId) { @@ -4476,19 +4426,19 @@ pplx::task> ModerationApi::postFlagComment( return localVarResult; }); } -pplx::task> ModerationApi::postRemoveComment( +pplx::task> ModerationApi::postRemoveComment( + utility::string_t tenantId, utility::string_t commentId - , const ApiPostRemoveCommentOptions& options + , const PostRemoveCommentOptions& options ) const { - auto tenantId = options.tenantId; 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; @@ -4525,9 +4475,8 @@ pplx::task> ModerationApi::postRemove 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 (broadcastId) { @@ -4597,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")) { @@ -4619,18 +4568,18 @@ pplx::task> ModerationApi::postRemove }); } pplx::task> ModerationApi::postRestoreDeletedComment( + utility::string_t tenantId, utility::string_t commentId - , const ApiPostRestoreDeletedCommentOptions& options + , const PostRestoreDeletedCommentOptions& options ) const { - auto tenantId = options.tenantId; 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; @@ -4667,9 +4616,8 @@ pplx::task> ModerationApi::postRestoreDeletedC 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 (broadcastId) { @@ -4761,19 +4709,19 @@ pplx::task> ModerationApi::postRestoreDeletedC }); } pplx::task> ModerationApi::postSetCommentApprovalStatus( + utility::string_t tenantId, utility::string_t commentId - , const ApiPostSetCommentApprovalStatusOptions& options + , const PostSetCommentApprovalStatusOptions& options ) const { auto approved = options.approved; - auto tenantId = options.tenantId; 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; @@ -4810,13 +4758,12 @@ pplx::task> ModerationApi::postSetCo std::unordered_set localVarConsumeHttpContentTypes; - if (approved) { - localVarQueryParams[utility::conversions::to_string_t("approved")] = ApiClient::parameterToString(*approved); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) + if (approved) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("approved")] = ApiClient::parameterToString(*approved); } if (broadcastId) { @@ -4908,19 +4855,19 @@ pplx::task> ModerationApi::postSetCo }); } pplx::task> ModerationApi::postSetCommentReviewStatus( + utility::string_t tenantId, utility::string_t commentId - , const ApiPostSetCommentReviewStatusOptions& options + , const PostSetCommentReviewStatusOptions& options ) const { auto reviewed = options.reviewed; - auto tenantId = options.tenantId; 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; @@ -4957,13 +4904,12 @@ pplx::task> ModerationApi::postSetCommentRevie std::unordered_set localVarConsumeHttpContentTypes; - if (reviewed) { - localVarQueryParams[utility::conversions::to_string_t("reviewed")] = ApiClient::parameterToString(*reviewed); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) + if (reviewed) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("reviewed")] = ApiClient::parameterToString(*reviewed); } if (broadcastId) { @@ -5055,20 +5001,20 @@ pplx::task> ModerationApi::postSetCommentRevie }); } pplx::task> ModerationApi::postSetCommentSpamStatus( + utility::string_t tenantId, utility::string_t commentId - , const ApiPostSetCommentSpamStatusOptions& options + , const PostSetCommentSpamStatusOptions& options ) const { auto spam = options.spam; auto permNotSpam = options.permNotSpam; - auto tenantId = options.tenantId; 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; @@ -5105,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); @@ -5113,10 +5062,6 @@ pplx::task> ModerationApi::postSetCommentSpamS { localVarQueryParams[utility::conversions::to_string_t("permNotSpam")] = ApiClient::parameterToString(*permNotSpam); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (broadcastId) { localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); @@ -5207,13 +5152,13 @@ pplx::task> ModerationApi::postSetCommentSpamS }); } pplx::task> ModerationApi::postSetCommentText( + utility::string_t tenantId, utility::string_t commentId, std::shared_ptr setCommentTextParams - , const ApiPostSetCommentTextOptions& options + , const PostSetCommentTextOptions& options ) const { - auto tenantId = options.tenantId; auto broadcastId = options.broadcastId; auto sso = options.sso; @@ -5225,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; @@ -5263,9 +5208,8 @@ pplx::task> ModerationApi::postSetCommen 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 (broadcastId) { @@ -5372,18 +5316,18 @@ pplx::task> ModerationApi::postSetCommen }); } pplx::task> ModerationApi::postUnFlagComment( + utility::string_t tenantId, utility::string_t commentId - , const ApiPostUnFlagCommentOptions& options + , const PostUnFlagCommentOptions& options ) const { - auto tenantId = options.tenantId; 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; @@ -5420,9 +5364,8 @@ pplx::task> ModerationApi::postUnFlagComment( 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 (broadcastId) { @@ -5514,19 +5457,19 @@ pplx::task> ModerationApi::postUnFlagComment( }); } pplx::task> ModerationApi::postVote( + utility::string_t tenantId, utility::string_t commentId - , const ApiPostVoteOptions& options + , const PostVoteOptions& options ) const { auto direction = options.direction; - auto tenantId = options.tenantId; 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; @@ -5563,13 +5506,12 @@ pplx::task> ModerationApi::postVote( std::unordered_set localVarConsumeHttpContentTypes; - if (direction) { - localVarQueryParams[utility::conversions::to_string_t("direction")] = ApiClient::parameterToString(*direction); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (tenantId) + if (direction) { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + localVarQueryParams[utility::conversions::to_string_t("direction")] = ApiClient::parameterToString(*direction); } if (broadcastId) { @@ -5661,20 +5603,20 @@ pplx::task> ModerationApi::postVote( }); } pplx::task> ModerationApi::putAwardBadge( + utility::string_t tenantId, utility::string_t badgeId - , const ApiPutAwardBadgeOptions& options + , const PutAwardBadgeOptions& options ) const { auto userId = options.userId; auto commentId = options.commentId; - auto tenantId = options.tenantId; 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() ); @@ -5710,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); } @@ -5721,10 +5666,6 @@ pplx::task> ModerationApi::putAwardBadge { localVarQueryParams[utility::conversions::to_string_t("commentId")] = ApiClient::parameterToString(*commentId); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (broadcastId) { localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); @@ -5815,17 +5756,15 @@ pplx::task> ModerationApi::putAwardBadge }); } pplx::task> ModerationApi::putCloseThread( + utility::string_t tenantId, utility::string_t urlId - - , const ApiPutCloseThreadOptions& options + , boost::optional sso ) const { - auto tenantId = options.tenantId; - 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/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() ); @@ -5862,11 +5801,10 @@ pplx::task> ModerationApi::putCloseThread( 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) { @@ -5954,20 +5892,20 @@ pplx::task> ModerationApi::putCloseThread( }); } pplx::task> ModerationApi::putRemoveBadge( + utility::string_t tenantId, utility::string_t badgeId - , const ApiPutRemoveBadgeOptions& options + , const PutRemoveBadgeOptions& options ) const { auto userId = options.userId; auto commentId = options.commentId; - auto tenantId = options.tenantId; 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() ); @@ -6003,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); } @@ -6014,10 +5955,6 @@ pplx::task> ModerationApi::putRemoveBad { localVarQueryParams[utility::conversions::to_string_t("commentId")] = ApiClient::parameterToString(*commentId); } - if (tenantId) - { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); - } if (broadcastId) { localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); @@ -6108,17 +6045,15 @@ pplx::task> ModerationApi::putRemoveBad }); } pplx::task> ModerationApi::putReopenThread( + utility::string_t tenantId, utility::string_t urlId - - , const ApiPutReopenThreadOptions& options + , boost::optional sso ) const { - auto tenantId = options.tenantId; - 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/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() ); @@ -6155,11 +6090,10 @@ pplx::task> ModerationApi::putReopenThread( 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) { @@ -6247,18 +6181,18 @@ pplx::task> ModerationApi::putReopenThread( }); } pplx::task> ModerationApi::setTrustFactor( + utility::string_t tenantId - const ApiSetTrustFactorOptions& options + , const SetTrustFactorOptions& options ) const { auto userId = options.userId; auto trustFactor = options.trustFactor; - auto tenantId = options.tenantId; 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() ); @@ -6294,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); @@ -6302,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 271a720..21b0ee2 100644 --- a/client/src/api/PublicApi.cpp +++ b/client/src/api/PublicApi.cpp @@ -334,7 +334,7 @@ pplx::task> PublicApi::createC utility::string_t broadcastId, std::shared_ptr commentData - , const ApiCreateCommentPublicOptions& options + , const CreateCommentPublicOptions& options ) const { auto sessionId = options.sessionId; @@ -500,7 +500,7 @@ pplx::task> PublicApi::createFeedPostPub utility::string_t tenantId, std::shared_ptr createFeedPostParams - , const ApiCreateFeedPostPublicOptions& options + , const CreateFeedPostPublicOptions& options ) const { auto broadcastId = options.broadcastId; @@ -933,7 +933,7 @@ pplx::task> PublicApi::deleteCom utility::string_t commentId, utility::string_t broadcastId - , const ApiDeleteCommentPublicOptions& options + , const DeleteCommentPublicOptions& options ) const { auto editKey = options.editKey; @@ -1078,7 +1078,7 @@ pplx::task> PublicApi::deleteCommentVote( utility::string_t urlId, utility::string_t broadcastId - , const ApiDeleteCommentVoteOptions& options + , const DeleteCommentVoteOptions& options ) const { auto editKey = options.editKey; @@ -1224,7 +1224,7 @@ pplx::task> PublicApi::deleteFeedP utility::string_t tenantId, utility::string_t postId - , const ApiDeleteFeedPostPublicOptions& options + , const DeleteFeedPostPublicOptions& options ) const { auto broadcastId = options.broadcastId; @@ -1765,7 +1765,7 @@ pplx::task> PublicApi::getComme utility::string_t tenantId, utility::string_t commentId - , const ApiGetCommentTextOptions& options + , const GetCommentTextOptions& options ) const { auto editKey = options.editKey; @@ -2038,7 +2038,7 @@ pplx::task> PublicApi::g } pplx::task> PublicApi::getCommentsForUser( - const ApiGetCommentsForUserOptions& options + const GetCommentsForUserOptions& options ) const { auto userId = options.userId; @@ -2200,7 +2200,7 @@ pplx::task> Publ utility::string_t tenantId, utility::string_t urlId - , const ApiGetCommentsPublicOptions& options + , const GetCommentsPublicOptions& options ) const { auto page = options.page; @@ -2602,7 +2602,7 @@ pplx::task> PublicApi::getEventLog( pplx::task> PublicApi::getFeedPostsPublic( utility::string_t tenantId - , const ApiGetFeedPostsPublicOptions& options + , const GetFeedPostsPublicOptions& options ) const { auto afterId = options.afterId; @@ -3024,7 +3024,7 @@ pplx::task> PublicApi::getGifsSearch( utility::string_t tenantId, utility::string_t search - , const ApiGetGifsSearchOptions& options + , const GetGifsSearchOptions& options ) const { auto locale = options.locale; @@ -3169,7 +3169,7 @@ pplx::task> PublicApi::getGifsSearch( pplx::task> PublicApi::getGifsTrending( utility::string_t tenantId - , const ApiGetGifsTrendingOptions& options + , const GetGifsTrendingOptions& options ) const { auto locale = options.locale; @@ -3454,7 +3454,7 @@ pplx::task> PublicApi::getOfflineUsers utility::string_t tenantId, utility::string_t urlId - , const ApiGetOfflineUsersOptions& options + , const GetOfflineUsersOptions& options ) const { auto afterName = options.afterName; @@ -3595,7 +3595,7 @@ pplx::task> PublicApi::getOnlineUsers( utility::string_t tenantId, utility::string_t urlId - , const ApiGetOnlineUsersOptions& options + , const GetOnlineUsersOptions& options ) const { auto afterName = options.afterName; @@ -3735,7 +3735,7 @@ pplx::task> PublicApi::getOnlineUsers( pplx::task> PublicApi::getPagesPublic( utility::string_t tenantId - , const ApiGetPagesPublicOptions& options + , const GetPagesPublicOptions& options ) const { auto cursor = options.cursor; @@ -3888,7 +3888,7 @@ pplx::task> PublicApi::getTranslations( utility::string_t r_namespace, utility::string_t component - , const ApiGetTranslationsOptions& options + , const GetTranslationsOptions& options ) const { auto locale = options.locale; @@ -4158,7 +4158,7 @@ pplx::task> PublicApi::getUser pplx::task> PublicApi::getUserNotifications( utility::string_t tenantId - , const ApiGetUserNotificationsOptions& options + , const GetUserNotificationsOptions& options ) const { auto urlId = options.urlId; @@ -4478,7 +4478,7 @@ pplx::task> PublicApi::getUserP pplx::task> PublicApi::getUserReactsPublic( utility::string_t tenantId - , const ApiGetUserReactsPublicOptions& options + , const GetUserReactsPublicOptions& options ) const { auto postIds = options.postIds; @@ -5537,7 +5537,7 @@ pplx::task> PublicApi::reactFeedPostPubli utility::string_t postId, std::shared_ptr reactBodyParams - , const ApiReactFeedPostPublicOptions& options + , const ReactFeedPostPublicOptions& options ) const { auto isUndo = options.isUndo; @@ -5834,7 +5834,7 @@ pplx::task> PublicApi::resetUser pplx::task> PublicApi::resetUserNotifications( utility::string_t tenantId - , const ApiResetUserNotificationsOptions& options + , const ResetUserNotificationsOptions& options ) const { auto afterId = options.afterId; @@ -5994,7 +5994,7 @@ pplx::task> PublicApi::searchUsers( utility::string_t tenantId, utility::string_t urlId - , const ApiSearchUsersOptions& options + , const SearchUsersOptions& options ) const { auto usernameStartsWith = options.usernameStartsWith; @@ -6147,7 +6147,7 @@ pplx::task> PublicApi::setComme utility::string_t broadcastId, std::shared_ptr commentTextUpdateRequest - , const ApiSetCommentTextOptions& options + , const SetCommentTextOptions& options ) const { auto editKey = options.editKey; @@ -6741,7 +6741,7 @@ pplx::task> PublicApi::updateFeedPostPub utility::string_t postId, std::shared_ptr updateFeedPostParams - , const ApiUpdateFeedPostPublicOptions& options + , const UpdateFeedPostPublicOptions& options ) const { auto broadcastId = options.broadcastId; @@ -7324,7 +7324,7 @@ pplx::task> PublicApi::uploadImage( utility::string_t tenantId, std::shared_ptr file - , const ApiUploadImageOptions& options + , const UploadImageOptions& options ) const { auto sizePreset = options.sizePreset; @@ -7469,7 +7469,7 @@ pplx::task> PublicApi::voteComment( utility::string_t broadcastId, std::shared_ptr voteBodyParams - , const ApiVoteCommentOptions& options + , const VoteCommentOptions& options ) const { auto sessionId = options.sessionId; 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/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 2c9803f..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, tenantId, broadcastId, sso) +> VoteDeleteResponse deleteModerationVote(tenantId, commentId, voteId, broadcastId, sso) @@ -59,9 +59,9 @@ 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] | -| **tenantId** | **String**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | @@ -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, tenantId, broadcastId, sso) +> AdjustVotesResponse postAdjustCommentVotes(tenantId, commentId, AdjustCommentVotesParams, broadcastId, sso) @@ -703,9 +703,9 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **AdjustCommentVotesParams** | [**AdjustCommentVotesParams**](../Models/AdjustCommentVotesParams.md)| | | -| **tenantId** | **String**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | @@ -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, tenantId, broadcastId, sso) +> APIEmptyResponse postFlagComment(tenantId, commentId, broadcastId, sso) @@ -882,8 +882,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | @@ -902,7 +902,7 @@ No authorization required # **postRemoveComment** -> PostRemoveCommentResponse postRemoveComment(commentId, tenantId, broadcastId, 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] | -| **tenantId** | **String**| | [optional] [default to null] | | **broadcastId** | **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, tenantId, broadcastId, sso) +> APIEmptyResponse postRestoreDeletedComment(tenantId, commentId, broadcastId, sso) @@ -938,8 +938,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | @@ -958,7 +958,7 @@ No authorization required # **postSetCommentApprovalStatus** -> SetCommentApprovedResponse postSetCommentApprovalStatus(commentId, approved, tenantId, broadcastId, sso) +> SetCommentApprovedResponse postSetCommentApprovalStatus(tenantId, commentId, approved, broadcastId, sso) @@ -966,9 +966,9 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **approved** | **Boolean**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | @@ -987,7 +987,7 @@ No authorization required # **postSetCommentReviewStatus** -> APIEmptyResponse postSetCommentReviewStatus(commentId, reviewed, tenantId, broadcastId, sso) +> APIEmptyResponse postSetCommentReviewStatus(tenantId, commentId, reviewed, broadcastId, sso) @@ -995,9 +995,9 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **reviewed** | **Boolean**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | @@ -1016,7 +1016,7 @@ No authorization required # **postSetCommentSpamStatus** -> APIEmptyResponse postSetCommentSpamStatus(commentId, spam, permNotSpam, tenantId, broadcastId, sso) +> APIEmptyResponse postSetCommentSpamStatus(tenantId, commentId, spam, permNotSpam, broadcastId, sso) @@ -1024,10 +1024,10 @@ 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] | -| **tenantId** | **String**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | @@ -1046,7 +1046,7 @@ No authorization required # **postSetCommentText** -> SetCommentTextResponse postSetCommentText(commentId, SetCommentTextParams, tenantId, broadcastId, sso) +> SetCommentTextResponse postSetCommentText(tenantId, commentId, SetCommentTextParams, broadcastId, sso) @@ -1054,9 +1054,9 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **SetCommentTextParams** | [**SetCommentTextParams**](../Models/SetCommentTextParams.md)| | | -| **tenantId** | **String**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | @@ -1075,7 +1075,7 @@ No authorization required # **postUnFlagComment** -> APIEmptyResponse postUnFlagComment(commentId, tenantId, broadcastId, sso) +> APIEmptyResponse postUnFlagComment(tenantId, commentId, broadcastId, sso) @@ -1083,8 +1083,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | @@ -1103,7 +1103,7 @@ No authorization required # **postVote** -> VoteResponse postVote(commentId, direction, tenantId, broadcastId, sso) +> VoteResponse postVote(tenantId, commentId, direction, broadcastId, sso) @@ -1111,9 +1111,9 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | | **commentId** | **String**| | [default to null] | | **direction** | **String**| | [optional] [default to null] | -| **tenantId** | **String**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | @@ -1132,7 +1132,7 @@ No authorization required # **putAwardBadge** -> AwardUserBadgeResponse putAwardBadge(badgeId, userId, commentId, tenantId, broadcastId, sso) +> AwardUserBadgeResponse putAwardBadge(tenantId, badgeId, userId, commentId, broadcastId, sso) @@ -1140,10 +1140,10 @@ 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] | -| **tenantId** | **String**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | @@ -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, tenantId, broadcastId, sso) +> RemoveUserBadgeResponse putRemoveBadge(tenantId, badgeId, userId, commentId, broadcastId, sso) @@ -1197,10 +1197,10 @@ 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] | -| **tenantId** | **String**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | @@ -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 9ed89a9..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,17 +14295,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" } @@ -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,17 +14360,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" } @@ -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,17 +14425,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" } @@ -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,17 +14490,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" } @@ -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", @@ -14555,27 +14555,27 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "reviewed", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "reviewed", "required": false, "schema": { - "type": "string" + "type": "boolean" } }, { @@ -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", @@ -14651,14 +14659,6 @@ "type": "boolean" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "broadcastId", @@ -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", @@ -14709,27 +14709,27 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "approved", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "approved", "required": false, "schema": { - "type": "string" + "type": "boolean" } }, { @@ -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,17 +15085,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" } @@ -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,17 +15160,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" } @@ -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": "tenantId", + "name": "direction", "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,16 +15317,16 @@ }, { "in": "path", - "name": "voteId", + "name": "commentId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "voteId", + "required": true, "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": "tenantId", + "name": "commentId", "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": "tenantId", + "name": "commentId", "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 5b5e51e..f5e23c2 100644 --- a/tests/sso_integration_test.cpp +++ b/tests/sso_integration_test.cpp @@ -93,7 +93,7 @@ TEST_F(SSOIntegrationTest, PublicAPIWithSecureSSO) { commentData->setCommenterName(utility::conversions::to_string_t(user.username)); commentData->setDate(timestamp); - ApiCreateCommentPublicOptions createOpts; + CreateCommentPublicOptions createOpts; createOpts.sso = utility::conversions::to_string_t(token); auto createResponse = publicApi.createCommentPublic( @@ -106,7 +106,7 @@ TEST_F(SSOIntegrationTest, PublicAPIWithSecureSSO) { ASSERT_NE(createResponse, nullptr); - ApiGetCommentsPublicOptions getOpts; + GetCommentsPublicOptions getOpts; getOpts.sso = utility::conversions::to_string_t(token); auto getResponse = publicApi.getCommentsPublic( @@ -150,7 +150,7 @@ TEST_F(SSOIntegrationTest, DefaultAPIWithAPIKey) { commentData->setCommenterName(utility::conversions::to_string_t(user.username)); commentData->setDate(timestamp); - ApiCreateCommentPublicOptions createOpts; + CreateCommentPublicOptions createOpts; createOpts.sso = utility::conversions::to_string_t(token); auto createResponse = publicApi.createCommentPublic( @@ -174,7 +174,7 @@ TEST_F(SSOIntegrationTest, DefaultAPIWithAPIKey) { auto defaultApiClient = std::make_shared(defaultConfig); DefaultApi defaultApi(defaultApiClient); - ApiGetCommentsOptions getOpts; + GetCommentsOptions getOpts; getOpts.urlId = utility::conversions::to_string_t(testUrlId); auto getResponse = defaultApi.getComments( @@ -250,7 +250,7 @@ TEST_F(SSOIntegrationTest, PublicAPICreateAndFetch) { commentData->setCommenterName(utility::conversions::to_string_t(user.username)); commentData->setDate(timestamp); - ApiCreateCommentPublicOptions createOpts; + CreateCommentPublicOptions createOpts; createOpts.sso = utility::conversions::to_string_t(token); auto createResponse = publicApi.createCommentPublic( @@ -267,7 +267,7 @@ 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; - ApiGetCommentsPublicOptions getOpts; + GetCommentsPublicOptions getOpts; getOpts.sso = utility::conversions::to_string_t(token); auto getResponse = publicApi.getCommentsPublic( From 9b879fecbc14b2d748148781ade97e56a024577d Mon Sep 17 00:00:00 2001 From: winrid Date: Tue, 30 Jun 2026 10:39:44 -0700 Subject: [PATCH 5/6] README: shorten the ModerationApi description Replace the long capability enumeration with a concise summary. --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index d88e216..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 From b73e684f1465f9f19e48b258a201885722ad2ba6 Mon Sep 17 00:00:00 2001 From: winrid Date: Tue, 30 Jun 2026 12:10:29 -0700 Subject: [PATCH 6/6] Release v3.0.0: regenerate at 3.0.0 with fastcomments-build-20260630 jar Bump version to 3.0.0 and regenerate from the new generator fork release. --- client/README.md | 2 +- config.json | 2 +- update.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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/config.json b/config.json index d03f2b4..d49ffbb 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,5 @@ { "packageName": "FastCommentsClient", - "packageVersion": "2.0.1", + "packageVersion": "3.0.0", "useSingleRequestParameter": true } 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"