Skip to content

Commit 086f8f7

Browse files
authored
Merge pull request #1 from FastComments/release-2025-11-20
Release v1.0.0 - Refactor comment schemas & add new fields
2 parents 09076b3 + b7781ef commit 086f8f7

File tree

446 files changed

+10353
-11059
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

446 files changed

+10353
-11059
lines changed

client/.openapi-generator/FILES

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ include/FastCommentsClient/MultipartFormData.h
1616
include/FastCommentsClient/Object.h
1717
include/FastCommentsClient/api/DefaultApi.h
1818
include/FastCommentsClient/api/PublicApi.h
19+
include/FastCommentsClient/model/APIAuditLog.h
1920
include/FastCommentsClient/model/APIComment.h
21+
include/FastCommentsClient/model/APICommentBase.h
2022
include/FastCommentsClient/model/APICreateUserBadgeResponse.h
2123
include/FastCommentsClient/model/APIEmptyResponse.h
2224
include/FastCommentsClient/model/APIEmptySuccessResponse.h
@@ -97,6 +99,7 @@ include/FastCommentsClient/model/DeleteFeedPostPublic_200_response_anyOf.h
9799
include/FastCommentsClient/model/DeletePageAPIResponse.h
98100
include/FastCommentsClient/model/DeleteSSOUserAPIResponse.h
99101
include/FastCommentsClient/model/DeleteSubscriptionAPIResponse.h
102+
include/FastCommentsClient/model/DeletedCommentResultComment.h
100103
include/FastCommentsClient/model/EventLogEntry.h
101104
include/FastCommentsClient/model/FComment.h
102105
include/FastCommentsClient/model/FComment_meta.h
@@ -165,22 +168,16 @@ include/FastCommentsClient/model/NotificationType.h
165168
include/FastCommentsClient/model/PatchDomainConfigParams.h
166169
include/FastCommentsClient/model/PatchPageAPIResponse.h
167170
include/FastCommentsClient/model/PatchSSOUserAPIResponse.h
168-
include/FastCommentsClient/model/Pick_APIComment_UpdatableCommentFields_.h
169-
include/FastCommentsClient/model/Pick_FComment_APICommentFieldsKeys_.h
170-
include/FastCommentsClient/model/Pick_FComment_APICommentFieldsKeys__meta.h
171-
include/FastCommentsClient/model/Pick_FComment_PublicCommentFieldsKeys_.h
172-
include/FastCommentsClient/model/Pick_FComment_approved_or_commentHTML_.h
173-
include/FastCommentsClient/model/Pick_FComment_isDeleted_or_commentHTML_or_commenterName_or_userId_.h
174-
include/FastCommentsClient/model/Pick_Omit_FComment_date__PublicCommentPubSubFieldsKeys_.h
175-
include/FastCommentsClient/model/Pick_TenantAuditLog_TenantAuditLogKeys_.h
176171
include/FastCommentsClient/model/PinComment_200_response.h
177172
include/FastCommentsClient/model/PubSubComment.h
173+
include/FastCommentsClient/model/PubSubCommentBase.h
178174
include/FastCommentsClient/model/PubSubVote.h
179175
include/FastCommentsClient/model/PublicAPIDeleteCommentResponse.h
180176
include/FastCommentsClient/model/PublicAPIGetCommentTextResponse.h
181177
include/FastCommentsClient/model/PublicAPISetCommentTextResponse.h
182178
include/FastCommentsClient/model/PublicBlockFromCommentParams.h
183179
include/FastCommentsClient/model/PublicComment.h
180+
include/FastCommentsClient/model/PublicCommentBase.h
184181
include/FastCommentsClient/model/PublicFeedPostsResponse.h
185182
include/FastCommentsClient/model/PutSSOUserAPIResponse.h
186183
include/FastCommentsClient/model/QueryPredicate.h
@@ -209,13 +206,15 @@ include/FastCommentsClient/model/SaveComment_200_response.h
209206
include/FastCommentsClient/model/SaveCommentsResponseWithPresence.h
210207
include/FastCommentsClient/model/SearchUsersResponse.h
211208
include/FastCommentsClient/model/SearchUsers_200_response.h
209+
include/FastCommentsClient/model/SetCommentTextResult.h
212210
include/FastCommentsClient/model/SetCommentText_200_response.h
213211
include/FastCommentsClient/model/SizePreset.h
214212
include/FastCommentsClient/model/SortDirections.h
215213
include/FastCommentsClient/model/SpamRule.h
216214
include/FastCommentsClient/model/UnBlockCommentPublic_200_response.h
217215
include/FastCommentsClient/model/UnBlockFromCommentParams.h
218216
include/FastCommentsClient/model/UnblockSuccess.h
217+
include/FastCommentsClient/model/UpdatableCommentParams.h
219218
include/FastCommentsClient/model/UpdateAPIPageData.h
220219
include/FastCommentsClient/model/UpdateAPISSOUserData.h
221220
include/FastCommentsClient/model/UpdateDomainConfigParams.h
@@ -249,7 +248,9 @@ src/MultipartFormData.cpp
249248
src/Object.cpp
250249
src/api/DefaultApi.cpp
251250
src/api/PublicApi.cpp
251+
src/model/APIAuditLog.cpp
252252
src/model/APIComment.cpp
253+
src/model/APICommentBase.cpp
253254
src/model/APICreateUserBadgeResponse.cpp
254255
src/model/APIEmptyResponse.cpp
255256
src/model/APIEmptySuccessResponse.cpp
@@ -330,6 +331,7 @@ src/model/DeleteFeedPostPublic_200_response_anyOf.cpp
330331
src/model/DeletePageAPIResponse.cpp
331332
src/model/DeleteSSOUserAPIResponse.cpp
332333
src/model/DeleteSubscriptionAPIResponse.cpp
334+
src/model/DeletedCommentResultComment.cpp
333335
src/model/EventLogEntry.cpp
334336
src/model/FComment.cpp
335337
src/model/FComment_meta.cpp
@@ -398,22 +400,16 @@ src/model/NotificationType.cpp
398400
src/model/PatchDomainConfigParams.cpp
399401
src/model/PatchPageAPIResponse.cpp
400402
src/model/PatchSSOUserAPIResponse.cpp
401-
src/model/Pick_APIComment_UpdatableCommentFields_.cpp
402-
src/model/Pick_FComment_APICommentFieldsKeys_.cpp
403-
src/model/Pick_FComment_APICommentFieldsKeys__meta.cpp
404-
src/model/Pick_FComment_PublicCommentFieldsKeys_.cpp
405-
src/model/Pick_FComment_approved_or_commentHTML_.cpp
406-
src/model/Pick_FComment_isDeleted_or_commentHTML_or_commenterName_or_userId_.cpp
407-
src/model/Pick_Omit_FComment_date__PublicCommentPubSubFieldsKeys_.cpp
408-
src/model/Pick_TenantAuditLog_TenantAuditLogKeys_.cpp
409403
src/model/PinComment_200_response.cpp
410404
src/model/PubSubComment.cpp
405+
src/model/PubSubCommentBase.cpp
411406
src/model/PubSubVote.cpp
412407
src/model/PublicAPIDeleteCommentResponse.cpp
413408
src/model/PublicAPIGetCommentTextResponse.cpp
414409
src/model/PublicAPISetCommentTextResponse.cpp
415410
src/model/PublicBlockFromCommentParams.cpp
416411
src/model/PublicComment.cpp
412+
src/model/PublicCommentBase.cpp
417413
src/model/PublicFeedPostsResponse.cpp
418414
src/model/PutSSOUserAPIResponse.cpp
419415
src/model/QueryPredicate.cpp
@@ -442,13 +438,15 @@ src/model/SaveComment_200_response.cpp
442438
src/model/SaveCommentsResponseWithPresence.cpp
443439
src/model/SearchUsersResponse.cpp
444440
src/model/SearchUsers_200_response.cpp
441+
src/model/SetCommentTextResult.cpp
445442
src/model/SetCommentText_200_response.cpp
446443
src/model/SizePreset.cpp
447444
src/model/SortDirections.cpp
448445
src/model/SpamRule.cpp
449446
src/model/UnBlockCommentPublic_200_response.cpp
450447
src/model/UnBlockFromCommentParams.cpp
451448
src/model/UnblockSuccess.cpp
449+
src/model/UpdatableCommentParams.cpp
452450
src/model/UpdateAPIPageData.cpp
453451
src/model/UpdateAPISSOUserData.cpp
454452
src/model/UpdateDomainConfigParams.cpp

client/include/FastCommentsClient/api/DefaultApi.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@
7171
#include "FastCommentsClient/model/PatchDomainConfigParams.h"
7272
#include "FastCommentsClient/model/PatchPageAPIResponse.h"
7373
#include "FastCommentsClient/model/PatchSSOUserAPIResponse.h"
74-
#include "FastCommentsClient/model/Pick_APIComment_UpdatableCommentFields_.h"
7574
#include "FastCommentsClient/model/PutSSOUserAPIResponse.h"
7675
#include "FastCommentsClient/model/SORT_DIR.h"
7776
#include "FastCommentsClient/model/SaveComment_200_response.h"
7877
#include "FastCommentsClient/model/SortDirections.h"
7978
#include "FastCommentsClient/model/UnBlockCommentPublic_200_response.h"
8079
#include "FastCommentsClient/model/UnBlockFromCommentParams.h"
80+
#include "FastCommentsClient/model/UpdatableCommentParams.h"
8181
#include "FastCommentsClient/model/UpdateAPIPageData.h"
8282
#include "FastCommentsClient/model/UpdateAPISSOUserData.h"
8383
#include "FastCommentsClient/model/UpdateDomainConfigParams.h"
@@ -786,14 +786,14 @@ class DefaultApi
786786
/// </remarks>
787787
/// <param name="tenantId"></param>
788788
/// <param name="id"></param>
789-
/// <param name="body"></param>
789+
/// <param name="updatableCommentParams"></param>
790790
/// <param name="contextUserId"> (optional, default to utility::conversions::to_string_t(&quot;&quot;))</param>
791791
/// <param name="doSpamCheck"> (optional, default to false)</param>
792792
/// <param name="isLive"> (optional, default to false)</param>
793793
pplx::task<std::shared_ptr<FlagCommentPublic_200_response>> updateComment(
794794
utility::string_t tenantId,
795795
utility::string_t id,
796-
std::shared_ptr<Pick_APIComment_UpdatableCommentFields_> body,
796+
std::shared_ptr<UpdatableCommentParams> updatableCommentParams,
797797
boost::optional<utility::string_t> contextUserId,
798798
boost::optional<bool> doSpamCheck,
799799
boost::optional<bool> isLive

client/include/FastCommentsClient/model/Pick_TenantAuditLog_TenantAuditLogKeys_.h renamed to client/include/FastCommentsClient/model/APIAuditLog.h

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@
1010
*/
1111

1212
/*
13-
* Pick_TenantAuditLog_TenantAuditLogKeys_.h
13+
* APIAuditLog.h
1414
*
15-
* From T, pick a set of properties whose keys are in the union K
15+
*
1616
*/
1717

18-
#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_Pick_TenantAuditLog_TenantAuditLogKeys__H_
19-
#define ORG_OPENAPITOOLS_CLIENT_MODEL_Pick_TenantAuditLog_TenantAuditLogKeys__H_
18+
#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIAuditLog_H_
19+
#define ORG_OPENAPITOOLS_CLIENT_MODEL_APIAuditLog_H_
2020

2121
#include <stdexcept>
22+
#include <boost/optional.hpp>
2223

2324
#include "FastCommentsClient/ModelBase.h"
2425

@@ -33,15 +34,12 @@ namespace model {
3334

3435

3536

36-
/// <summary>
37-
/// From T, pick a set of properties whose keys are in the union K
38-
/// </summary>
39-
class Pick_TenantAuditLog_TenantAuditLogKeys_
37+
class APIAuditLog
4038
: public ModelBase
4139
{
4240
public:
43-
Pick_TenantAuditLog_TenantAuditLogKeys_();
44-
virtual ~Pick_TenantAuditLog_TenantAuditLogKeys_();
41+
APIAuditLog();
42+
virtual ~APIAuditLog();
4543

4644
/////////////////////////////////////////////
4745
/// ModelBase overrides
@@ -56,7 +54,7 @@ class Pick_TenantAuditLog_TenantAuditLogKeys_
5654

5755

5856
/////////////////////////////////////////////
59-
/// Pick_TenantAuditLog_TenantAuditLogKeys_ members
57+
/// APIAuditLog members
6058

6159
enum class CrudTypeEnum
6260
{
@@ -86,11 +84,6 @@ class Pick_TenantAuditLog_TenantAuditLogKeys_
8684
void unset_id();
8785
void setId(const utility::string_t& value);
8886

89-
utility::string_t getUrl() const;
90-
bool urlIsSet() const;
91-
void unsetUrl();
92-
void setUrl(const utility::string_t& value);
93-
9487
utility::string_t getUserId() const;
9588
bool userIdIsSet() const;
9689
void unsetUserId();
@@ -116,6 +109,11 @@ class Pick_TenantAuditLog_TenantAuditLogKeys_
116109
void unsetFrom();
117110
void setFrom(const FromEnum value);
118111

112+
utility::string_t getUrl() const;
113+
bool urlIsSet() const;
114+
void unsetUrl();
115+
void setUrl(const utility::string_t& value);
116+
119117
utility::string_t getIp() const;
120118
bool ipIsSet() const;
121119
void unsetIp();
@@ -149,9 +147,6 @@ class Pick_TenantAuditLog_TenantAuditLogKeys_
149147
utility::string_t m__id;
150148
bool m__idIsSet;
151149

152-
utility::string_t m_Url;
153-
bool m_UrlIsSet;
154-
155150
utility::string_t m_UserId;
156151
bool m_UserIdIsSet;
157152

@@ -167,8 +162,9 @@ class Pick_TenantAuditLog_TenantAuditLogKeys_
167162
FromEnum m_From;
168163
bool m_FromIsSet;
169164

170-
utility::string_t m_Ip;
171-
bool m_IpIsSet;
165+
boost::optional<utility::string_t> m_Url;
166+
167+
boost::optional<utility::string_t> m_Ip;
172168

173169
utility::datetime m_When;
174170
bool m_WhenIsSet;
@@ -179,8 +175,7 @@ class Pick_TenantAuditLog_TenantAuditLogKeys_
179175
utility::datetime m_ServerStartDate;
180176
bool m_ServerStartDateIsSet;
181177

182-
std::map<utility::string_t, std::shared_ptr<AnyType>> m_ObjectDetails;
183-
bool m_ObjectDetailsIsSet;
178+
boost::optional<std::map<utility::string_t, std::shared_ptr<AnyType>>> m_ObjectDetails;
184179

185180
};
186181

@@ -190,4 +185,4 @@ class Pick_TenantAuditLog_TenantAuditLogKeys_
190185
}
191186
}
192187

193-
#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_Pick_TenantAuditLog_TenantAuditLogKeys__H_ */
188+
#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_APIAuditLog_H_ */

0 commit comments

Comments
 (0)