@wix/auto_sdk_comments_comments 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/build/{es/src/comments-v2-comment-comments.types.d.ts → comments-v2-comment-comments.universal-DjW1a70o.d.mts} +554 -736
  2. package/build/{internal/cjs/src/comments-v2-comment-comments.types.d.ts → comments-v2-comment-comments.universal-DjW1a70o.d.ts} +554 -736
  3. package/build/index.d.mts +249 -0
  4. package/build/index.d.ts +249 -0
  5. package/build/index.js +5231 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +5144 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/{cjs/src/comments-v2-comment-comments.types.d.ts → internal/comments-v2-comment-comments.universal-DjW1a70o.d.mts} +554 -736
  10. package/build/internal/{es/src/comments-v2-comment-comments.types.d.ts → comments-v2-comment-comments.universal-DjW1a70o.d.ts} +554 -736
  11. package/build/internal/index.d.mts +249 -0
  12. package/build/internal/index.d.ts +249 -0
  13. package/build/internal/index.js +5231 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +5144 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +2384 -0
  18. package/build/internal/meta.d.ts +2384 -0
  19. package/build/internal/meta.js +2832 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +2788 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +2384 -0
  24. package/build/meta.d.ts +2384 -0
  25. package/build/meta.js +2832 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +2788 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/comments-v2-comment-comments.context.d.ts +0 -68
  40. package/build/cjs/src/comments-v2-comment-comments.context.js +0 -109
  41. package/build/cjs/src/comments-v2-comment-comments.context.js.map +0 -1
  42. package/build/cjs/src/comments-v2-comment-comments.http.d.ts +0 -90
  43. package/build/cjs/src/comments-v2-comment-comments.http.js +0 -2533
  44. package/build/cjs/src/comments-v2-comment-comments.http.js.map +0 -1
  45. package/build/cjs/src/comments-v2-comment-comments.meta.d.ts +0 -48
  46. package/build/cjs/src/comments-v2-comment-comments.meta.js +0 -370
  47. package/build/cjs/src/comments-v2-comment-comments.meta.js.map +0 -1
  48. package/build/cjs/src/comments-v2-comment-comments.public.d.ts +0 -202
  49. package/build/cjs/src/comments-v2-comment-comments.public.js +0 -1341
  50. package/build/cjs/src/comments-v2-comment-comments.public.js.map +0 -1
  51. package/build/cjs/src/comments-v2-comment-comments.types.js +0 -385
  52. package/build/cjs/src/comments-v2-comment-comments.types.js.map +0 -1
  53. package/build/cjs/src/comments-v2-comment-comments.universal.d.ts +0 -3626
  54. package/build/cjs/src/comments-v2-comment-comments.universal.js +0 -1598
  55. package/build/cjs/src/comments-v2-comment-comments.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/comments-v2-comment-comments.context.d.ts +0 -68
  67. package/build/es/src/comments-v2-comment-comments.context.js +0 -68
  68. package/build/es/src/comments-v2-comment-comments.context.js.map +0 -1
  69. package/build/es/src/comments-v2-comment-comments.http.d.ts +0 -90
  70. package/build/es/src/comments-v2-comment-comments.http.js +0 -2512
  71. package/build/es/src/comments-v2-comment-comments.http.js.map +0 -1
  72. package/build/es/src/comments-v2-comment-comments.meta.d.ts +0 -48
  73. package/build/es/src/comments-v2-comment-comments.meta.js +0 -326
  74. package/build/es/src/comments-v2-comment-comments.meta.js.map +0 -1
  75. package/build/es/src/comments-v2-comment-comments.public.d.ts +0 -202
  76. package/build/es/src/comments-v2-comment-comments.public.js +0 -1282
  77. package/build/es/src/comments-v2-comment-comments.public.js.map +0 -1
  78. package/build/es/src/comments-v2-comment-comments.types.js +0 -382
  79. package/build/es/src/comments-v2-comment-comments.types.js.map +0 -1
  80. package/build/es/src/comments-v2-comment-comments.universal.d.ts +0 -3626
  81. package/build/es/src/comments-v2-comment-comments.universal.js +0 -1553
  82. package/build/es/src/comments-v2-comment-comments.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/comments-v2-comment-comments.context.d.ts +0 -68
  93. package/build/internal/cjs/src/comments-v2-comment-comments.context.js +0 -109
  94. package/build/internal/cjs/src/comments-v2-comment-comments.context.js.map +0 -1
  95. package/build/internal/cjs/src/comments-v2-comment-comments.http.d.ts +0 -90
  96. package/build/internal/cjs/src/comments-v2-comment-comments.http.js +0 -2533
  97. package/build/internal/cjs/src/comments-v2-comment-comments.http.js.map +0 -1
  98. package/build/internal/cjs/src/comments-v2-comment-comments.meta.d.ts +0 -48
  99. package/build/internal/cjs/src/comments-v2-comment-comments.meta.js +0 -370
  100. package/build/internal/cjs/src/comments-v2-comment-comments.meta.js.map +0 -1
  101. package/build/internal/cjs/src/comments-v2-comment-comments.public.d.ts +0 -202
  102. package/build/internal/cjs/src/comments-v2-comment-comments.public.js +0 -1341
  103. package/build/internal/cjs/src/comments-v2-comment-comments.public.js.map +0 -1
  104. package/build/internal/cjs/src/comments-v2-comment-comments.types.js +0 -385
  105. package/build/internal/cjs/src/comments-v2-comment-comments.types.js.map +0 -1
  106. package/build/internal/cjs/src/comments-v2-comment-comments.universal.d.ts +0 -3626
  107. package/build/internal/cjs/src/comments-v2-comment-comments.universal.js +0 -1598
  108. package/build/internal/cjs/src/comments-v2-comment-comments.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/comments-v2-comment-comments.context.d.ts +0 -68
  119. package/build/internal/es/src/comments-v2-comment-comments.context.js +0 -68
  120. package/build/internal/es/src/comments-v2-comment-comments.context.js.map +0 -1
  121. package/build/internal/es/src/comments-v2-comment-comments.http.d.ts +0 -90
  122. package/build/internal/es/src/comments-v2-comment-comments.http.js +0 -2512
  123. package/build/internal/es/src/comments-v2-comment-comments.http.js.map +0 -1
  124. package/build/internal/es/src/comments-v2-comment-comments.meta.d.ts +0 -48
  125. package/build/internal/es/src/comments-v2-comment-comments.meta.js +0 -326
  126. package/build/internal/es/src/comments-v2-comment-comments.meta.js.map +0 -1
  127. package/build/internal/es/src/comments-v2-comment-comments.public.d.ts +0 -202
  128. package/build/internal/es/src/comments-v2-comment-comments.public.js +0 -1282
  129. package/build/internal/es/src/comments-v2-comment-comments.public.js.map +0 -1
  130. package/build/internal/es/src/comments-v2-comment-comments.types.js +0 -382
  131. package/build/internal/es/src/comments-v2-comment-comments.types.js.map +0 -1
  132. package/build/internal/es/src/comments-v2-comment-comments.universal.d.ts +0 -3626
  133. package/build/internal/es/src/comments-v2-comment-comments.universal.js +0 -1553
  134. package/build/internal/es/src/comments-v2-comment-comments.universal.js.map +0 -1
@@ -0,0 +1,2788 @@
1
+ // src/comments-v2-comment-comments.http.ts
2
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
+ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
4
+ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
5
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
6
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
7
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
8
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
9
+ function resolveWixCommentsNgV1CommentsNgUrl(opts) {
10
+ const domainToMappings = {
11
+ "www.wixapis.com": [
12
+ {
13
+ srcPath: "/comments/v1/comments",
14
+ destPath: "/v1/comments"
15
+ },
16
+ {
17
+ srcPath: "/comments/v1/bulk/comments",
18
+ destPath: "/v1/bulk/comments"
19
+ }
20
+ ],
21
+ _: [
22
+ {
23
+ srcPath: "/_api/comments-ng/v1",
24
+ destPath: "/v1"
25
+ }
26
+ ],
27
+ "manage._base_domain_": [
28
+ {
29
+ srcPath: "/_api/comments-ng/v1",
30
+ destPath: "/v1"
31
+ }
32
+ ],
33
+ "www._base_domain_": [
34
+ {
35
+ srcPath: "/_api/comments-ng/v1",
36
+ destPath: "/v1"
37
+ }
38
+ ],
39
+ "*.dev.wix-code.com": [
40
+ {
41
+ srcPath: "/_api/comments-ng",
42
+ destPath: ""
43
+ }
44
+ ]
45
+ };
46
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
47
+ }
48
+ var PACKAGE_NAME = "@wix/auto_sdk_comments_comments";
49
+ function createComment(payload) {
50
+ function __createComment({ host }) {
51
+ const serializedData = transformPaths(payload, [
52
+ {
53
+ transformFn: transformSDKTimestampToRESTTimestamp,
54
+ paths: [
55
+ { path: "comment.createdDate" },
56
+ { path: "comment.updatedDate" },
57
+ { path: "comment.commentDate" },
58
+ { path: "comment.content.commentDate" },
59
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
60
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
61
+ { path: "comment.content.attachments.image.urlExpirationDate" },
62
+ { path: "comment.content.attachments.video.urlExpirationDate" },
63
+ {
64
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
65
+ },
66
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
67
+ { path: "comment.content.attachments.document.urlExpirationDate" },
68
+ { path: "comment.draftContent.commentDate" },
69
+ {
70
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
71
+ },
72
+ {
73
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
74
+ },
75
+ { path: "comment.draftContent.attachments.image.urlExpirationDate" },
76
+ { path: "comment.draftContent.attachments.video.urlExpirationDate" },
77
+ {
78
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
79
+ },
80
+ { path: "comment.draftContent.attachments.audio.urlExpirationDate" },
81
+ {
82
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ transformFn: transformSDKFloatToRESTFloat,
88
+ paths: [
89
+ {
90
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
91
+ },
92
+ {
93
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
94
+ },
95
+ {
96
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
97
+ },
98
+ {
99
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
100
+ },
101
+ {
102
+ path: "comment.content.richContent.nodes.imageData.image.duration"
103
+ },
104
+ { path: "comment.content.richContent.nodes.mapData.mapSettings.lat" },
105
+ { path: "comment.content.richContent.nodes.mapData.mapSettings.lng" },
106
+ {
107
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
108
+ },
109
+ {
110
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
111
+ },
112
+ {
113
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
114
+ },
115
+ {
116
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
117
+ },
118
+ {
119
+ path: "comment.content.richContent.nodes.videoData.video.duration"
120
+ },
121
+ {
122
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
123
+ },
124
+ {
125
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
126
+ },
127
+ {
128
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
129
+ },
130
+ {
131
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
132
+ },
133
+ {
134
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
135
+ },
136
+ {
137
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
138
+ },
139
+ {
140
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
141
+ },
142
+ {
143
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
144
+ },
145
+ {
146
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
147
+ },
148
+ {
149
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
150
+ },
151
+ {
152
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
153
+ },
154
+ {
155
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
156
+ },
157
+ {
158
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
159
+ },
160
+ {
161
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
162
+ },
163
+ {
164
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
165
+ },
166
+ {
167
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
168
+ },
169
+ {
170
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
171
+ },
172
+ {
173
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
174
+ }
175
+ ]
176
+ }
177
+ ]);
178
+ const metadata = {
179
+ entityFqdn: "wix.comments.v2.comment",
180
+ method: "POST",
181
+ methodFqn: "wix.comments.ng.v1.CommentsNg.CreateComment",
182
+ packageName: PACKAGE_NAME,
183
+ url: resolveWixCommentsNgV1CommentsNgUrl({
184
+ protoPath: "/v1/comments",
185
+ data: serializedData,
186
+ host
187
+ }),
188
+ data: serializedData,
189
+ transformResponse: (payload2) => transformPaths(payload2, [
190
+ {
191
+ transformFn: transformRESTTimestampToSDKTimestamp,
192
+ paths: [
193
+ { path: "comment.createdDate" },
194
+ { path: "comment.updatedDate" },
195
+ { path: "comment.commentDate" },
196
+ { path: "comment.content.commentDate" },
197
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
198
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
199
+ { path: "comment.content.attachments.image.urlExpirationDate" },
200
+ { path: "comment.content.attachments.video.urlExpirationDate" },
201
+ {
202
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
203
+ },
204
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
205
+ {
206
+ path: "comment.content.attachments.document.urlExpirationDate"
207
+ },
208
+ { path: "comment.draftContent.commentDate" },
209
+ {
210
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
211
+ },
212
+ {
213
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
214
+ },
215
+ {
216
+ path: "comment.draftContent.attachments.image.urlExpirationDate"
217
+ },
218
+ {
219
+ path: "comment.draftContent.attachments.video.urlExpirationDate"
220
+ },
221
+ {
222
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
223
+ },
224
+ {
225
+ path: "comment.draftContent.attachments.audio.urlExpirationDate"
226
+ },
227
+ {
228
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
229
+ }
230
+ ]
231
+ },
232
+ {
233
+ transformFn: transformRESTFloatToSDKFloat,
234
+ paths: [
235
+ {
236
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
237
+ },
238
+ {
239
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
240
+ },
241
+ {
242
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
243
+ },
244
+ {
245
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
246
+ },
247
+ {
248
+ path: "comment.content.richContent.nodes.imageData.image.duration"
249
+ },
250
+ {
251
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lat"
252
+ },
253
+ {
254
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lng"
255
+ },
256
+ {
257
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
258
+ },
259
+ {
260
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
261
+ },
262
+ {
263
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
264
+ },
265
+ {
266
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
267
+ },
268
+ {
269
+ path: "comment.content.richContent.nodes.videoData.video.duration"
270
+ },
271
+ {
272
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
273
+ },
274
+ {
275
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
276
+ },
277
+ {
278
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
279
+ },
280
+ {
281
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
282
+ },
283
+ {
284
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
285
+ },
286
+ {
287
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
288
+ },
289
+ {
290
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
291
+ },
292
+ {
293
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
294
+ },
295
+ {
296
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
297
+ },
298
+ {
299
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
300
+ },
301
+ {
302
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
303
+ },
304
+ {
305
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
306
+ },
307
+ {
308
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
309
+ },
310
+ {
311
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
312
+ },
313
+ {
314
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
315
+ },
316
+ {
317
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
318
+ },
319
+ {
320
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
321
+ },
322
+ {
323
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
324
+ }
325
+ ]
326
+ }
327
+ ])
328
+ };
329
+ return metadata;
330
+ }
331
+ return __createComment;
332
+ }
333
+ function getComment(payload) {
334
+ function __getComment({ host }) {
335
+ const metadata = {
336
+ entityFqdn: "wix.comments.v2.comment",
337
+ method: "GET",
338
+ methodFqn: "wix.comments.ng.v1.CommentsNg.GetComment",
339
+ packageName: PACKAGE_NAME,
340
+ url: resolveWixCommentsNgV1CommentsNgUrl({
341
+ protoPath: "/v1/comments/{commentId}",
342
+ data: payload,
343
+ host
344
+ }),
345
+ params: toURLSearchParams(payload),
346
+ transformResponse: (payload2) => transformPaths(payload2, [
347
+ {
348
+ transformFn: transformRESTTimestampToSDKTimestamp,
349
+ paths: [
350
+ { path: "comment.createdDate" },
351
+ { path: "comment.updatedDate" },
352
+ { path: "comment.commentDate" },
353
+ { path: "comment.content.commentDate" },
354
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
355
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
356
+ { path: "comment.content.attachments.image.urlExpirationDate" },
357
+ { path: "comment.content.attachments.video.urlExpirationDate" },
358
+ {
359
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
360
+ },
361
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
362
+ {
363
+ path: "comment.content.attachments.document.urlExpirationDate"
364
+ },
365
+ { path: "comment.draftContent.commentDate" },
366
+ {
367
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
368
+ },
369
+ {
370
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
371
+ },
372
+ {
373
+ path: "comment.draftContent.attachments.image.urlExpirationDate"
374
+ },
375
+ {
376
+ path: "comment.draftContent.attachments.video.urlExpirationDate"
377
+ },
378
+ {
379
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
380
+ },
381
+ {
382
+ path: "comment.draftContent.attachments.audio.urlExpirationDate"
383
+ },
384
+ {
385
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
386
+ }
387
+ ]
388
+ },
389
+ {
390
+ transformFn: transformRESTFloatToSDKFloat,
391
+ paths: [
392
+ {
393
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
394
+ },
395
+ {
396
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
397
+ },
398
+ {
399
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
400
+ },
401
+ {
402
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
403
+ },
404
+ {
405
+ path: "comment.content.richContent.nodes.imageData.image.duration"
406
+ },
407
+ {
408
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lat"
409
+ },
410
+ {
411
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lng"
412
+ },
413
+ {
414
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
415
+ },
416
+ {
417
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
418
+ },
419
+ {
420
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
421
+ },
422
+ {
423
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
424
+ },
425
+ {
426
+ path: "comment.content.richContent.nodes.videoData.video.duration"
427
+ },
428
+ {
429
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
430
+ },
431
+ {
432
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
433
+ },
434
+ {
435
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
436
+ },
437
+ {
438
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
439
+ },
440
+ {
441
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
442
+ },
443
+ {
444
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
445
+ },
446
+ {
447
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
448
+ },
449
+ {
450
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
451
+ },
452
+ {
453
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
454
+ },
455
+ {
456
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
457
+ },
458
+ {
459
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
460
+ },
461
+ {
462
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
463
+ },
464
+ {
465
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
466
+ },
467
+ {
468
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
469
+ },
470
+ {
471
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
472
+ },
473
+ {
474
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
475
+ },
476
+ {
477
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
478
+ },
479
+ {
480
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
481
+ }
482
+ ]
483
+ }
484
+ ])
485
+ };
486
+ return metadata;
487
+ }
488
+ return __getComment;
489
+ }
490
+ function updateComment(payload) {
491
+ function __updateComment({ host }) {
492
+ const serializedData = transformPaths(payload, [
493
+ {
494
+ transformFn: transformSDKTimestampToRESTTimestamp,
495
+ paths: [
496
+ { path: "comment.createdDate" },
497
+ { path: "comment.updatedDate" },
498
+ { path: "comment.commentDate" },
499
+ { path: "comment.content.commentDate" },
500
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
501
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
502
+ { path: "comment.content.attachments.image.urlExpirationDate" },
503
+ { path: "comment.content.attachments.video.urlExpirationDate" },
504
+ {
505
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
506
+ },
507
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
508
+ { path: "comment.content.attachments.document.urlExpirationDate" },
509
+ { path: "comment.draftContent.commentDate" },
510
+ {
511
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
512
+ },
513
+ {
514
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
515
+ },
516
+ { path: "comment.draftContent.attachments.image.urlExpirationDate" },
517
+ { path: "comment.draftContent.attachments.video.urlExpirationDate" },
518
+ {
519
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
520
+ },
521
+ { path: "comment.draftContent.attachments.audio.urlExpirationDate" },
522
+ {
523
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
524
+ }
525
+ ]
526
+ },
527
+ {
528
+ transformFn: transformSDKFloatToRESTFloat,
529
+ paths: [
530
+ {
531
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
532
+ },
533
+ {
534
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
535
+ },
536
+ {
537
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
538
+ },
539
+ {
540
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
541
+ },
542
+ {
543
+ path: "comment.content.richContent.nodes.imageData.image.duration"
544
+ },
545
+ { path: "comment.content.richContent.nodes.mapData.mapSettings.lat" },
546
+ { path: "comment.content.richContent.nodes.mapData.mapSettings.lng" },
547
+ {
548
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
549
+ },
550
+ {
551
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
552
+ },
553
+ {
554
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
555
+ },
556
+ {
557
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
558
+ },
559
+ {
560
+ path: "comment.content.richContent.nodes.videoData.video.duration"
561
+ },
562
+ {
563
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
564
+ },
565
+ {
566
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
567
+ },
568
+ {
569
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
570
+ },
571
+ {
572
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
573
+ },
574
+ {
575
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
576
+ },
577
+ {
578
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
579
+ },
580
+ {
581
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
582
+ },
583
+ {
584
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
585
+ },
586
+ {
587
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
588
+ },
589
+ {
590
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
591
+ },
592
+ {
593
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
594
+ },
595
+ {
596
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
597
+ },
598
+ {
599
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
600
+ },
601
+ {
602
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
603
+ },
604
+ {
605
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
606
+ },
607
+ {
608
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
609
+ },
610
+ {
611
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
612
+ },
613
+ {
614
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
615
+ }
616
+ ]
617
+ }
618
+ ]);
619
+ const metadata = {
620
+ entityFqdn: "wix.comments.v2.comment",
621
+ method: "PATCH",
622
+ methodFqn: "wix.comments.ng.v1.CommentsNg.UpdateComment",
623
+ packageName: PACKAGE_NAME,
624
+ url: resolveWixCommentsNgV1CommentsNgUrl({
625
+ protoPath: "/v1/comments/{comment.id}",
626
+ data: serializedData,
627
+ host
628
+ }),
629
+ data: serializedData,
630
+ transformResponse: (payload2) => transformPaths(payload2, [
631
+ {
632
+ transformFn: transformRESTTimestampToSDKTimestamp,
633
+ paths: [
634
+ { path: "comment.createdDate" },
635
+ { path: "comment.updatedDate" },
636
+ { path: "comment.commentDate" },
637
+ { path: "comment.content.commentDate" },
638
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
639
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
640
+ { path: "comment.content.attachments.image.urlExpirationDate" },
641
+ { path: "comment.content.attachments.video.urlExpirationDate" },
642
+ {
643
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
644
+ },
645
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
646
+ {
647
+ path: "comment.content.attachments.document.urlExpirationDate"
648
+ },
649
+ { path: "comment.draftContent.commentDate" },
650
+ {
651
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
652
+ },
653
+ {
654
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
655
+ },
656
+ {
657
+ path: "comment.draftContent.attachments.image.urlExpirationDate"
658
+ },
659
+ {
660
+ path: "comment.draftContent.attachments.video.urlExpirationDate"
661
+ },
662
+ {
663
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
664
+ },
665
+ {
666
+ path: "comment.draftContent.attachments.audio.urlExpirationDate"
667
+ },
668
+ {
669
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
670
+ }
671
+ ]
672
+ },
673
+ {
674
+ transformFn: transformRESTFloatToSDKFloat,
675
+ paths: [
676
+ {
677
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
678
+ },
679
+ {
680
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
681
+ },
682
+ {
683
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
684
+ },
685
+ {
686
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
687
+ },
688
+ {
689
+ path: "comment.content.richContent.nodes.imageData.image.duration"
690
+ },
691
+ {
692
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lat"
693
+ },
694
+ {
695
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lng"
696
+ },
697
+ {
698
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
699
+ },
700
+ {
701
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
702
+ },
703
+ {
704
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
705
+ },
706
+ {
707
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
708
+ },
709
+ {
710
+ path: "comment.content.richContent.nodes.videoData.video.duration"
711
+ },
712
+ {
713
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
714
+ },
715
+ {
716
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
717
+ },
718
+ {
719
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
720
+ },
721
+ {
722
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
723
+ },
724
+ {
725
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
726
+ },
727
+ {
728
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
729
+ },
730
+ {
731
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
732
+ },
733
+ {
734
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
735
+ },
736
+ {
737
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
738
+ },
739
+ {
740
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
741
+ },
742
+ {
743
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
744
+ },
745
+ {
746
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
747
+ },
748
+ {
749
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
750
+ },
751
+ {
752
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
753
+ },
754
+ {
755
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
756
+ },
757
+ {
758
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
759
+ },
760
+ {
761
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
762
+ },
763
+ {
764
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
765
+ }
766
+ ]
767
+ }
768
+ ])
769
+ };
770
+ return metadata;
771
+ }
772
+ return __updateComment;
773
+ }
774
+ function deleteComment(payload) {
775
+ function __deleteComment({ host }) {
776
+ const metadata = {
777
+ entityFqdn: "wix.comments.v2.comment",
778
+ method: "DELETE",
779
+ methodFqn: "wix.comments.ng.v1.CommentsNg.DeleteComment",
780
+ packageName: PACKAGE_NAME,
781
+ url: resolveWixCommentsNgV1CommentsNgUrl({
782
+ protoPath: "/v1/comments/{commentId}",
783
+ data: payload,
784
+ host
785
+ }),
786
+ params: toURLSearchParams(payload)
787
+ };
788
+ return metadata;
789
+ }
790
+ return __deleteComment;
791
+ }
792
+ function moderateDraftContent(payload) {
793
+ function __moderateDraftContent({ host }) {
794
+ const metadata = {
795
+ entityFqdn: "wix.comments.v2.comment",
796
+ method: "POST",
797
+ methodFqn: "wix.comments.ng.v1.CommentsNg.ModerateDraftContent",
798
+ packageName: PACKAGE_NAME,
799
+ url: resolveWixCommentsNgV1CommentsNgUrl({
800
+ protoPath: "/v1/comments/{commentId}/moderate",
801
+ data: payload,
802
+ host
803
+ }),
804
+ data: payload,
805
+ transformResponse: (payload2) => transformPaths(payload2, [
806
+ {
807
+ transformFn: transformRESTTimestampToSDKTimestamp,
808
+ paths: [
809
+ { path: "comment.createdDate" },
810
+ { path: "comment.updatedDate" },
811
+ { path: "comment.commentDate" },
812
+ { path: "comment.content.commentDate" },
813
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
814
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
815
+ { path: "comment.content.attachments.image.urlExpirationDate" },
816
+ { path: "comment.content.attachments.video.urlExpirationDate" },
817
+ {
818
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
819
+ },
820
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
821
+ {
822
+ path: "comment.content.attachments.document.urlExpirationDate"
823
+ },
824
+ { path: "comment.draftContent.commentDate" },
825
+ {
826
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
827
+ },
828
+ {
829
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
830
+ },
831
+ {
832
+ path: "comment.draftContent.attachments.image.urlExpirationDate"
833
+ },
834
+ {
835
+ path: "comment.draftContent.attachments.video.urlExpirationDate"
836
+ },
837
+ {
838
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
839
+ },
840
+ {
841
+ path: "comment.draftContent.attachments.audio.urlExpirationDate"
842
+ },
843
+ {
844
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
845
+ }
846
+ ]
847
+ },
848
+ {
849
+ transformFn: transformRESTFloatToSDKFloat,
850
+ paths: [
851
+ {
852
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
853
+ },
854
+ {
855
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
856
+ },
857
+ {
858
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
859
+ },
860
+ {
861
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
862
+ },
863
+ {
864
+ path: "comment.content.richContent.nodes.imageData.image.duration"
865
+ },
866
+ {
867
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lat"
868
+ },
869
+ {
870
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lng"
871
+ },
872
+ {
873
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
874
+ },
875
+ {
876
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
877
+ },
878
+ {
879
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
880
+ },
881
+ {
882
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
883
+ },
884
+ {
885
+ path: "comment.content.richContent.nodes.videoData.video.duration"
886
+ },
887
+ {
888
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
889
+ },
890
+ {
891
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
892
+ },
893
+ {
894
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
895
+ },
896
+ {
897
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
898
+ },
899
+ {
900
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
901
+ },
902
+ {
903
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
904
+ },
905
+ {
906
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
907
+ },
908
+ {
909
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
910
+ },
911
+ {
912
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
913
+ },
914
+ {
915
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
916
+ },
917
+ {
918
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
919
+ },
920
+ {
921
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
922
+ },
923
+ {
924
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
925
+ },
926
+ {
927
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
928
+ },
929
+ {
930
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
931
+ },
932
+ {
933
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
934
+ },
935
+ {
936
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
937
+ },
938
+ {
939
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
940
+ }
941
+ ]
942
+ }
943
+ ])
944
+ };
945
+ return metadata;
946
+ }
947
+ return __moderateDraftContent;
948
+ }
949
+ function queryComments(payload) {
950
+ function __queryComments({ host }) {
951
+ const metadata = {
952
+ entityFqdn: "wix.comments.v2.comment",
953
+ method: "POST",
954
+ methodFqn: "wix.comments.ng.v1.CommentsNg.QueryComments",
955
+ packageName: PACKAGE_NAME,
956
+ url: resolveWixCommentsNgV1CommentsNgUrl({
957
+ protoPath: "/v1/comments/query-cursor",
958
+ data: payload,
959
+ host
960
+ }),
961
+ data: payload,
962
+ transformResponse: (payload2) => transformPaths(payload2, [
963
+ {
964
+ transformFn: transformRESTTimestampToSDKTimestamp,
965
+ paths: [
966
+ { path: "comments.createdDate" },
967
+ { path: "comments.updatedDate" },
968
+ { path: "comments.commentDate" },
969
+ { path: "comments.content.commentDate" },
970
+ {
971
+ path: "comments.content.richContent.metadata.createdTimestamp"
972
+ },
973
+ {
974
+ path: "comments.content.richContent.metadata.updatedTimestamp"
975
+ },
976
+ { path: "comments.content.attachments.image.urlExpirationDate" },
977
+ { path: "comments.content.attachments.video.urlExpirationDate" },
978
+ {
979
+ path: "comments.content.attachments.video.posters.urlExpirationDate"
980
+ },
981
+ { path: "comments.content.attachments.audio.urlExpirationDate" },
982
+ {
983
+ path: "comments.content.attachments.document.urlExpirationDate"
984
+ },
985
+ { path: "comments.draftContent.commentDate" },
986
+ {
987
+ path: "comments.draftContent.richContent.metadata.createdTimestamp"
988
+ },
989
+ {
990
+ path: "comments.draftContent.richContent.metadata.updatedTimestamp"
991
+ },
992
+ {
993
+ path: "comments.draftContent.attachments.image.urlExpirationDate"
994
+ },
995
+ {
996
+ path: "comments.draftContent.attachments.video.urlExpirationDate"
997
+ },
998
+ {
999
+ path: "comments.draftContent.attachments.video.posters.urlExpirationDate"
1000
+ },
1001
+ {
1002
+ path: "comments.draftContent.attachments.audio.urlExpirationDate"
1003
+ },
1004
+ {
1005
+ path: "comments.draftContent.attachments.document.urlExpirationDate"
1006
+ }
1007
+ ]
1008
+ },
1009
+ {
1010
+ transformFn: transformRESTFloatToSDKFloat,
1011
+ paths: [
1012
+ {
1013
+ path: "comments.content.richContent.nodes.galleryData.items.image.media.duration"
1014
+ },
1015
+ {
1016
+ path: "comments.content.richContent.nodes.galleryData.items.video.media.duration"
1017
+ },
1018
+ {
1019
+ path: "comments.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
1020
+ },
1021
+ {
1022
+ path: "comments.content.richContent.nodes.galleryData.options.item.ratio"
1023
+ },
1024
+ {
1025
+ path: "comments.content.richContent.nodes.imageData.image.duration"
1026
+ },
1027
+ {
1028
+ path: "comments.content.richContent.nodes.mapData.mapSettings.lat"
1029
+ },
1030
+ {
1031
+ path: "comments.content.richContent.nodes.mapData.mapSettings.lng"
1032
+ },
1033
+ {
1034
+ path: "comments.content.richContent.nodes.pollData.poll.image.duration"
1035
+ },
1036
+ {
1037
+ path: "comments.content.richContent.nodes.pollData.poll.options.image.duration"
1038
+ },
1039
+ {
1040
+ path: "comments.content.richContent.nodes.pollData.design.poll.background.image.duration"
1041
+ },
1042
+ {
1043
+ path: "comments.content.richContent.nodes.appEmbedData.image.duration"
1044
+ },
1045
+ {
1046
+ path: "comments.content.richContent.nodes.videoData.video.duration"
1047
+ },
1048
+ {
1049
+ path: "comments.content.richContent.nodes.videoData.thumbnail.duration"
1050
+ },
1051
+ {
1052
+ path: "comments.content.richContent.nodes.audioData.audio.duration"
1053
+ },
1054
+ {
1055
+ path: "comments.content.richContent.nodes.audioData.coverImage.duration"
1056
+ },
1057
+ {
1058
+ path: "comments.draftContent.richContent.nodes.galleryData.items.image.media.duration"
1059
+ },
1060
+ {
1061
+ path: "comments.draftContent.richContent.nodes.galleryData.items.video.media.duration"
1062
+ },
1063
+ {
1064
+ path: "comments.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
1065
+ },
1066
+ {
1067
+ path: "comments.draftContent.richContent.nodes.galleryData.options.item.ratio"
1068
+ },
1069
+ {
1070
+ path: "comments.draftContent.richContent.nodes.imageData.image.duration"
1071
+ },
1072
+ {
1073
+ path: "comments.draftContent.richContent.nodes.mapData.mapSettings.lat"
1074
+ },
1075
+ {
1076
+ path: "comments.draftContent.richContent.nodes.mapData.mapSettings.lng"
1077
+ },
1078
+ {
1079
+ path: "comments.draftContent.richContent.nodes.pollData.poll.image.duration"
1080
+ },
1081
+ {
1082
+ path: "comments.draftContent.richContent.nodes.pollData.poll.options.image.duration"
1083
+ },
1084
+ {
1085
+ path: "comments.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
1086
+ },
1087
+ {
1088
+ path: "comments.draftContent.richContent.nodes.appEmbedData.image.duration"
1089
+ },
1090
+ {
1091
+ path: "comments.draftContent.richContent.nodes.videoData.video.duration"
1092
+ },
1093
+ {
1094
+ path: "comments.draftContent.richContent.nodes.videoData.thumbnail.duration"
1095
+ },
1096
+ {
1097
+ path: "comments.draftContent.richContent.nodes.audioData.audio.duration"
1098
+ },
1099
+ {
1100
+ path: "comments.draftContent.richContent.nodes.audioData.coverImage.duration"
1101
+ }
1102
+ ]
1103
+ }
1104
+ ])
1105
+ };
1106
+ return metadata;
1107
+ }
1108
+ return __queryComments;
1109
+ }
1110
+ function markComment(payload) {
1111
+ function __markComment({ host }) {
1112
+ const metadata = {
1113
+ entityFqdn: "wix.comments.v2.comment",
1114
+ method: "PUT",
1115
+ methodFqn: "wix.comments.ng.v1.CommentsNg.MarkComment",
1116
+ packageName: PACKAGE_NAME,
1117
+ url: resolveWixCommentsNgV1CommentsNgUrl({
1118
+ protoPath: "/v1/comments/{commentId}/mark",
1119
+ data: payload,
1120
+ host
1121
+ }),
1122
+ data: payload,
1123
+ transformResponse: (payload2) => transformPaths(payload2, [
1124
+ {
1125
+ transformFn: transformRESTTimestampToSDKTimestamp,
1126
+ paths: [
1127
+ { path: "comment.createdDate" },
1128
+ { path: "comment.updatedDate" },
1129
+ { path: "comment.commentDate" },
1130
+ { path: "comment.content.commentDate" },
1131
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
1132
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
1133
+ { path: "comment.content.attachments.image.urlExpirationDate" },
1134
+ { path: "comment.content.attachments.video.urlExpirationDate" },
1135
+ {
1136
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
1137
+ },
1138
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
1139
+ {
1140
+ path: "comment.content.attachments.document.urlExpirationDate"
1141
+ },
1142
+ { path: "comment.draftContent.commentDate" },
1143
+ {
1144
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
1145
+ },
1146
+ {
1147
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
1148
+ },
1149
+ {
1150
+ path: "comment.draftContent.attachments.image.urlExpirationDate"
1151
+ },
1152
+ {
1153
+ path: "comment.draftContent.attachments.video.urlExpirationDate"
1154
+ },
1155
+ {
1156
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
1157
+ },
1158
+ {
1159
+ path: "comment.draftContent.attachments.audio.urlExpirationDate"
1160
+ },
1161
+ {
1162
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
1163
+ }
1164
+ ]
1165
+ },
1166
+ {
1167
+ transformFn: transformRESTFloatToSDKFloat,
1168
+ paths: [
1169
+ {
1170
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
1171
+ },
1172
+ {
1173
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
1174
+ },
1175
+ {
1176
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
1177
+ },
1178
+ {
1179
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
1180
+ },
1181
+ {
1182
+ path: "comment.content.richContent.nodes.imageData.image.duration"
1183
+ },
1184
+ {
1185
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lat"
1186
+ },
1187
+ {
1188
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lng"
1189
+ },
1190
+ {
1191
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
1192
+ },
1193
+ {
1194
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
1195
+ },
1196
+ {
1197
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
1198
+ },
1199
+ {
1200
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
1201
+ },
1202
+ {
1203
+ path: "comment.content.richContent.nodes.videoData.video.duration"
1204
+ },
1205
+ {
1206
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
1207
+ },
1208
+ {
1209
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
1210
+ },
1211
+ {
1212
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
1213
+ },
1214
+ {
1215
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
1216
+ },
1217
+ {
1218
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
1219
+ },
1220
+ {
1221
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
1222
+ },
1223
+ {
1224
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
1225
+ },
1226
+ {
1227
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
1228
+ },
1229
+ {
1230
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
1231
+ },
1232
+ {
1233
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
1234
+ },
1235
+ {
1236
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
1237
+ },
1238
+ {
1239
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
1240
+ },
1241
+ {
1242
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
1243
+ },
1244
+ {
1245
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
1246
+ },
1247
+ {
1248
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
1249
+ },
1250
+ {
1251
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
1252
+ },
1253
+ {
1254
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
1255
+ },
1256
+ {
1257
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
1258
+ }
1259
+ ]
1260
+ }
1261
+ ])
1262
+ };
1263
+ return metadata;
1264
+ }
1265
+ return __markComment;
1266
+ }
1267
+ function unmarkComment(payload) {
1268
+ function __unmarkComment({ host }) {
1269
+ const metadata = {
1270
+ entityFqdn: "wix.comments.v2.comment",
1271
+ method: "PUT",
1272
+ methodFqn: "wix.comments.ng.v1.CommentsNg.UnmarkComment",
1273
+ packageName: PACKAGE_NAME,
1274
+ url: resolveWixCommentsNgV1CommentsNgUrl({
1275
+ protoPath: "/v1/comments/{commentId}/unmark",
1276
+ data: payload,
1277
+ host
1278
+ }),
1279
+ data: payload,
1280
+ transformResponse: (payload2) => transformPaths(payload2, [
1281
+ {
1282
+ transformFn: transformRESTTimestampToSDKTimestamp,
1283
+ paths: [
1284
+ { path: "comment.createdDate" },
1285
+ { path: "comment.updatedDate" },
1286
+ { path: "comment.commentDate" },
1287
+ { path: "comment.content.commentDate" },
1288
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
1289
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
1290
+ { path: "comment.content.attachments.image.urlExpirationDate" },
1291
+ { path: "comment.content.attachments.video.urlExpirationDate" },
1292
+ {
1293
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
1294
+ },
1295
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
1296
+ {
1297
+ path: "comment.content.attachments.document.urlExpirationDate"
1298
+ },
1299
+ { path: "comment.draftContent.commentDate" },
1300
+ {
1301
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
1302
+ },
1303
+ {
1304
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
1305
+ },
1306
+ {
1307
+ path: "comment.draftContent.attachments.image.urlExpirationDate"
1308
+ },
1309
+ {
1310
+ path: "comment.draftContent.attachments.video.urlExpirationDate"
1311
+ },
1312
+ {
1313
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
1314
+ },
1315
+ {
1316
+ path: "comment.draftContent.attachments.audio.urlExpirationDate"
1317
+ },
1318
+ {
1319
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
1320
+ }
1321
+ ]
1322
+ },
1323
+ {
1324
+ transformFn: transformRESTFloatToSDKFloat,
1325
+ paths: [
1326
+ {
1327
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
1328
+ },
1329
+ {
1330
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
1331
+ },
1332
+ {
1333
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
1334
+ },
1335
+ {
1336
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
1337
+ },
1338
+ {
1339
+ path: "comment.content.richContent.nodes.imageData.image.duration"
1340
+ },
1341
+ {
1342
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lat"
1343
+ },
1344
+ {
1345
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lng"
1346
+ },
1347
+ {
1348
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
1349
+ },
1350
+ {
1351
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
1352
+ },
1353
+ {
1354
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
1355
+ },
1356
+ {
1357
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
1358
+ },
1359
+ {
1360
+ path: "comment.content.richContent.nodes.videoData.video.duration"
1361
+ },
1362
+ {
1363
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
1364
+ },
1365
+ {
1366
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
1367
+ },
1368
+ {
1369
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
1370
+ },
1371
+ {
1372
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
1373
+ },
1374
+ {
1375
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
1376
+ },
1377
+ {
1378
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
1379
+ },
1380
+ {
1381
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
1382
+ },
1383
+ {
1384
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
1385
+ },
1386
+ {
1387
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
1388
+ },
1389
+ {
1390
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
1391
+ },
1392
+ {
1393
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
1394
+ },
1395
+ {
1396
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
1397
+ },
1398
+ {
1399
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
1400
+ },
1401
+ {
1402
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
1403
+ },
1404
+ {
1405
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
1406
+ },
1407
+ {
1408
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
1409
+ },
1410
+ {
1411
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
1412
+ },
1413
+ {
1414
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
1415
+ }
1416
+ ]
1417
+ }
1418
+ ])
1419
+ };
1420
+ return metadata;
1421
+ }
1422
+ return __unmarkComment;
1423
+ }
1424
+ function hideComment(payload) {
1425
+ function __hideComment({ host }) {
1426
+ const metadata = {
1427
+ entityFqdn: "wix.comments.v2.comment",
1428
+ method: "PUT",
1429
+ methodFqn: "wix.comments.ng.v1.CommentsNg.HideComment",
1430
+ packageName: PACKAGE_NAME,
1431
+ url: resolveWixCommentsNgV1CommentsNgUrl({
1432
+ protoPath: "/v1/comments/{commentId}/hide",
1433
+ data: payload,
1434
+ host
1435
+ }),
1436
+ data: payload,
1437
+ transformResponse: (payload2) => transformPaths(payload2, [
1438
+ {
1439
+ transformFn: transformRESTTimestampToSDKTimestamp,
1440
+ paths: [
1441
+ { path: "comment.createdDate" },
1442
+ { path: "comment.updatedDate" },
1443
+ { path: "comment.commentDate" },
1444
+ { path: "comment.content.commentDate" },
1445
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
1446
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
1447
+ { path: "comment.content.attachments.image.urlExpirationDate" },
1448
+ { path: "comment.content.attachments.video.urlExpirationDate" },
1449
+ {
1450
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
1451
+ },
1452
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
1453
+ {
1454
+ path: "comment.content.attachments.document.urlExpirationDate"
1455
+ },
1456
+ { path: "comment.draftContent.commentDate" },
1457
+ {
1458
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
1459
+ },
1460
+ {
1461
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
1462
+ },
1463
+ {
1464
+ path: "comment.draftContent.attachments.image.urlExpirationDate"
1465
+ },
1466
+ {
1467
+ path: "comment.draftContent.attachments.video.urlExpirationDate"
1468
+ },
1469
+ {
1470
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
1471
+ },
1472
+ {
1473
+ path: "comment.draftContent.attachments.audio.urlExpirationDate"
1474
+ },
1475
+ {
1476
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
1477
+ }
1478
+ ]
1479
+ },
1480
+ {
1481
+ transformFn: transformRESTFloatToSDKFloat,
1482
+ paths: [
1483
+ {
1484
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
1485
+ },
1486
+ {
1487
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
1488
+ },
1489
+ {
1490
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
1491
+ },
1492
+ {
1493
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
1494
+ },
1495
+ {
1496
+ path: "comment.content.richContent.nodes.imageData.image.duration"
1497
+ },
1498
+ {
1499
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lat"
1500
+ },
1501
+ {
1502
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lng"
1503
+ },
1504
+ {
1505
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
1506
+ },
1507
+ {
1508
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
1509
+ },
1510
+ {
1511
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
1512
+ },
1513
+ {
1514
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
1515
+ },
1516
+ {
1517
+ path: "comment.content.richContent.nodes.videoData.video.duration"
1518
+ },
1519
+ {
1520
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
1521
+ },
1522
+ {
1523
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
1524
+ },
1525
+ {
1526
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
1527
+ },
1528
+ {
1529
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
1530
+ },
1531
+ {
1532
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
1533
+ },
1534
+ {
1535
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
1536
+ },
1537
+ {
1538
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
1539
+ },
1540
+ {
1541
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
1542
+ },
1543
+ {
1544
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
1545
+ },
1546
+ {
1547
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
1548
+ },
1549
+ {
1550
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
1551
+ },
1552
+ {
1553
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
1554
+ },
1555
+ {
1556
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
1557
+ },
1558
+ {
1559
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
1560
+ },
1561
+ {
1562
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
1563
+ },
1564
+ {
1565
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
1566
+ },
1567
+ {
1568
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
1569
+ },
1570
+ {
1571
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
1572
+ }
1573
+ ]
1574
+ }
1575
+ ])
1576
+ };
1577
+ return metadata;
1578
+ }
1579
+ return __hideComment;
1580
+ }
1581
+ function publishComment(payload) {
1582
+ function __publishComment({ host }) {
1583
+ const metadata = {
1584
+ entityFqdn: "wix.comments.v2.comment",
1585
+ method: "PUT",
1586
+ methodFqn: "wix.comments.ng.v1.CommentsNg.PublishComment",
1587
+ packageName: PACKAGE_NAME,
1588
+ url: resolveWixCommentsNgV1CommentsNgUrl({
1589
+ protoPath: "/v1/comments/{commentId}/publish",
1590
+ data: payload,
1591
+ host
1592
+ }),
1593
+ data: payload,
1594
+ transformResponse: (payload2) => transformPaths(payload2, [
1595
+ {
1596
+ transformFn: transformRESTTimestampToSDKTimestamp,
1597
+ paths: [
1598
+ { path: "comment.createdDate" },
1599
+ { path: "comment.updatedDate" },
1600
+ { path: "comment.commentDate" },
1601
+ { path: "comment.content.commentDate" },
1602
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
1603
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
1604
+ { path: "comment.content.attachments.image.urlExpirationDate" },
1605
+ { path: "comment.content.attachments.video.urlExpirationDate" },
1606
+ {
1607
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
1608
+ },
1609
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
1610
+ {
1611
+ path: "comment.content.attachments.document.urlExpirationDate"
1612
+ },
1613
+ { path: "comment.draftContent.commentDate" },
1614
+ {
1615
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
1616
+ },
1617
+ {
1618
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
1619
+ },
1620
+ {
1621
+ path: "comment.draftContent.attachments.image.urlExpirationDate"
1622
+ },
1623
+ {
1624
+ path: "comment.draftContent.attachments.video.urlExpirationDate"
1625
+ },
1626
+ {
1627
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
1628
+ },
1629
+ {
1630
+ path: "comment.draftContent.attachments.audio.urlExpirationDate"
1631
+ },
1632
+ {
1633
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
1634
+ }
1635
+ ]
1636
+ },
1637
+ {
1638
+ transformFn: transformRESTFloatToSDKFloat,
1639
+ paths: [
1640
+ {
1641
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
1642
+ },
1643
+ {
1644
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
1645
+ },
1646
+ {
1647
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
1648
+ },
1649
+ {
1650
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
1651
+ },
1652
+ {
1653
+ path: "comment.content.richContent.nodes.imageData.image.duration"
1654
+ },
1655
+ {
1656
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lat"
1657
+ },
1658
+ {
1659
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lng"
1660
+ },
1661
+ {
1662
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
1663
+ },
1664
+ {
1665
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
1666
+ },
1667
+ {
1668
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
1669
+ },
1670
+ {
1671
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
1672
+ },
1673
+ {
1674
+ path: "comment.content.richContent.nodes.videoData.video.duration"
1675
+ },
1676
+ {
1677
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
1678
+ },
1679
+ {
1680
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
1681
+ },
1682
+ {
1683
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
1684
+ },
1685
+ {
1686
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
1687
+ },
1688
+ {
1689
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
1690
+ },
1691
+ {
1692
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
1693
+ },
1694
+ {
1695
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
1696
+ },
1697
+ {
1698
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
1699
+ },
1700
+ {
1701
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
1702
+ },
1703
+ {
1704
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
1705
+ },
1706
+ {
1707
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
1708
+ },
1709
+ {
1710
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
1711
+ },
1712
+ {
1713
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
1714
+ },
1715
+ {
1716
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
1717
+ },
1718
+ {
1719
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
1720
+ },
1721
+ {
1722
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
1723
+ },
1724
+ {
1725
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
1726
+ },
1727
+ {
1728
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
1729
+ }
1730
+ ]
1731
+ }
1732
+ ])
1733
+ };
1734
+ return metadata;
1735
+ }
1736
+ return __publishComment;
1737
+ }
1738
+ function countComments(payload) {
1739
+ function __countComments({ host }) {
1740
+ const metadata = {
1741
+ entityFqdn: "wix.comments.v2.comment",
1742
+ method: "POST",
1743
+ methodFqn: "wix.comments.ng.v1.CommentsNg.CountComments",
1744
+ packageName: PACKAGE_NAME,
1745
+ url: resolveWixCommentsNgV1CommentsNgUrl({
1746
+ protoPath: "/v1/comments/count",
1747
+ data: payload,
1748
+ host
1749
+ }),
1750
+ data: payload
1751
+ };
1752
+ return metadata;
1753
+ }
1754
+ return __countComments;
1755
+ }
1756
+ function listCommentsByResource(payload) {
1757
+ function __listCommentsByResource({ host }) {
1758
+ const metadata = {
1759
+ entityFqdn: "wix.comments.v2.comment",
1760
+ method: "GET",
1761
+ methodFqn: "wix.comments.ng.v1.CommentsNg.ListCommentsByResource",
1762
+ packageName: PACKAGE_NAME,
1763
+ url: resolveWixCommentsNgV1CommentsNgUrl({
1764
+ protoPath: "/v1/comments/list-by-resource",
1765
+ data: payload,
1766
+ host
1767
+ }),
1768
+ params: toURLSearchParams(payload),
1769
+ transformResponse: (payload2) => transformPaths(payload2, [
1770
+ {
1771
+ transformFn: transformRESTTimestampToSDKTimestamp,
1772
+ paths: [
1773
+ { path: "comments.createdDate" },
1774
+ { path: "comments.updatedDate" },
1775
+ { path: "comments.commentDate" },
1776
+ { path: "comments.content.commentDate" },
1777
+ {
1778
+ path: "comments.content.richContent.metadata.createdTimestamp"
1779
+ },
1780
+ {
1781
+ path: "comments.content.richContent.metadata.updatedTimestamp"
1782
+ },
1783
+ { path: "comments.content.attachments.image.urlExpirationDate" },
1784
+ { path: "comments.content.attachments.video.urlExpirationDate" },
1785
+ {
1786
+ path: "comments.content.attachments.video.posters.urlExpirationDate"
1787
+ },
1788
+ { path: "comments.content.attachments.audio.urlExpirationDate" },
1789
+ {
1790
+ path: "comments.content.attachments.document.urlExpirationDate"
1791
+ },
1792
+ { path: "comments.draftContent.commentDate" },
1793
+ {
1794
+ path: "comments.draftContent.richContent.metadata.createdTimestamp"
1795
+ },
1796
+ {
1797
+ path: "comments.draftContent.richContent.metadata.updatedTimestamp"
1798
+ },
1799
+ {
1800
+ path: "comments.draftContent.attachments.image.urlExpirationDate"
1801
+ },
1802
+ {
1803
+ path: "comments.draftContent.attachments.video.urlExpirationDate"
1804
+ },
1805
+ {
1806
+ path: "comments.draftContent.attachments.video.posters.urlExpirationDate"
1807
+ },
1808
+ {
1809
+ path: "comments.draftContent.attachments.audio.urlExpirationDate"
1810
+ },
1811
+ {
1812
+ path: "comments.draftContent.attachments.document.urlExpirationDate"
1813
+ },
1814
+ { path: "commentReplies.*.replies.createdDate" },
1815
+ { path: "commentReplies.*.replies.updatedDate" },
1816
+ { path: "commentReplies.*.replies.commentDate" },
1817
+ { path: "commentReplies.*.replies.content.commentDate" },
1818
+ {
1819
+ path: "commentReplies.*.replies.content.richContent.metadata.createdTimestamp"
1820
+ },
1821
+ {
1822
+ path: "commentReplies.*.replies.content.richContent.metadata.updatedTimestamp"
1823
+ },
1824
+ {
1825
+ path: "commentReplies.*.replies.content.attachments.image.urlExpirationDate"
1826
+ },
1827
+ {
1828
+ path: "commentReplies.*.replies.content.attachments.video.urlExpirationDate"
1829
+ },
1830
+ {
1831
+ path: "commentReplies.*.replies.content.attachments.video.posters.urlExpirationDate"
1832
+ },
1833
+ {
1834
+ path: "commentReplies.*.replies.content.attachments.audio.urlExpirationDate"
1835
+ },
1836
+ {
1837
+ path: "commentReplies.*.replies.content.attachments.document.urlExpirationDate"
1838
+ },
1839
+ { path: "commentReplies.*.replies.draftContent.commentDate" },
1840
+ {
1841
+ path: "commentReplies.*.replies.draftContent.richContent.metadata.createdTimestamp"
1842
+ },
1843
+ {
1844
+ path: "commentReplies.*.replies.draftContent.richContent.metadata.updatedTimestamp"
1845
+ },
1846
+ {
1847
+ path: "commentReplies.*.replies.draftContent.attachments.image.urlExpirationDate"
1848
+ },
1849
+ {
1850
+ path: "commentReplies.*.replies.draftContent.attachments.video.urlExpirationDate"
1851
+ },
1852
+ {
1853
+ path: "commentReplies.*.replies.draftContent.attachments.video.posters.urlExpirationDate"
1854
+ },
1855
+ {
1856
+ path: "commentReplies.*.replies.draftContent.attachments.audio.urlExpirationDate"
1857
+ },
1858
+ {
1859
+ path: "commentReplies.*.replies.draftContent.attachments.document.urlExpirationDate"
1860
+ }
1861
+ ]
1862
+ },
1863
+ {
1864
+ transformFn: transformRESTFloatToSDKFloat,
1865
+ paths: [
1866
+ {
1867
+ path: "comments.content.richContent.nodes.galleryData.items.image.media.duration"
1868
+ },
1869
+ {
1870
+ path: "comments.content.richContent.nodes.galleryData.items.video.media.duration"
1871
+ },
1872
+ {
1873
+ path: "comments.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
1874
+ },
1875
+ {
1876
+ path: "comments.content.richContent.nodes.galleryData.options.item.ratio"
1877
+ },
1878
+ {
1879
+ path: "comments.content.richContent.nodes.imageData.image.duration"
1880
+ },
1881
+ {
1882
+ path: "comments.content.richContent.nodes.mapData.mapSettings.lat"
1883
+ },
1884
+ {
1885
+ path: "comments.content.richContent.nodes.mapData.mapSettings.lng"
1886
+ },
1887
+ {
1888
+ path: "comments.content.richContent.nodes.pollData.poll.image.duration"
1889
+ },
1890
+ {
1891
+ path: "comments.content.richContent.nodes.pollData.poll.options.image.duration"
1892
+ },
1893
+ {
1894
+ path: "comments.content.richContent.nodes.pollData.design.poll.background.image.duration"
1895
+ },
1896
+ {
1897
+ path: "comments.content.richContent.nodes.appEmbedData.image.duration"
1898
+ },
1899
+ {
1900
+ path: "comments.content.richContent.nodes.videoData.video.duration"
1901
+ },
1902
+ {
1903
+ path: "comments.content.richContent.nodes.videoData.thumbnail.duration"
1904
+ },
1905
+ {
1906
+ path: "comments.content.richContent.nodes.audioData.audio.duration"
1907
+ },
1908
+ {
1909
+ path: "comments.content.richContent.nodes.audioData.coverImage.duration"
1910
+ },
1911
+ {
1912
+ path: "comments.draftContent.richContent.nodes.galleryData.items.image.media.duration"
1913
+ },
1914
+ {
1915
+ path: "comments.draftContent.richContent.nodes.galleryData.items.video.media.duration"
1916
+ },
1917
+ {
1918
+ path: "comments.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
1919
+ },
1920
+ {
1921
+ path: "comments.draftContent.richContent.nodes.galleryData.options.item.ratio"
1922
+ },
1923
+ {
1924
+ path: "comments.draftContent.richContent.nodes.imageData.image.duration"
1925
+ },
1926
+ {
1927
+ path: "comments.draftContent.richContent.nodes.mapData.mapSettings.lat"
1928
+ },
1929
+ {
1930
+ path: "comments.draftContent.richContent.nodes.mapData.mapSettings.lng"
1931
+ },
1932
+ {
1933
+ path: "comments.draftContent.richContent.nodes.pollData.poll.image.duration"
1934
+ },
1935
+ {
1936
+ path: "comments.draftContent.richContent.nodes.pollData.poll.options.image.duration"
1937
+ },
1938
+ {
1939
+ path: "comments.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
1940
+ },
1941
+ {
1942
+ path: "comments.draftContent.richContent.nodes.appEmbedData.image.duration"
1943
+ },
1944
+ {
1945
+ path: "comments.draftContent.richContent.nodes.videoData.video.duration"
1946
+ },
1947
+ {
1948
+ path: "comments.draftContent.richContent.nodes.videoData.thumbnail.duration"
1949
+ },
1950
+ {
1951
+ path: "comments.draftContent.richContent.nodes.audioData.audio.duration"
1952
+ },
1953
+ {
1954
+ path: "comments.draftContent.richContent.nodes.audioData.coverImage.duration"
1955
+ },
1956
+ {
1957
+ path: "commentReplies.*.replies.content.richContent.nodes.galleryData.items.image.media.duration"
1958
+ },
1959
+ {
1960
+ path: "commentReplies.*.replies.content.richContent.nodes.galleryData.items.video.media.duration"
1961
+ },
1962
+ {
1963
+ path: "commentReplies.*.replies.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
1964
+ },
1965
+ {
1966
+ path: "commentReplies.*.replies.content.richContent.nodes.galleryData.options.item.ratio"
1967
+ },
1968
+ {
1969
+ path: "commentReplies.*.replies.content.richContent.nodes.imageData.image.duration"
1970
+ },
1971
+ {
1972
+ path: "commentReplies.*.replies.content.richContent.nodes.mapData.mapSettings.lat"
1973
+ },
1974
+ {
1975
+ path: "commentReplies.*.replies.content.richContent.nodes.mapData.mapSettings.lng"
1976
+ },
1977
+ {
1978
+ path: "commentReplies.*.replies.content.richContent.nodes.pollData.poll.image.duration"
1979
+ },
1980
+ {
1981
+ path: "commentReplies.*.replies.content.richContent.nodes.pollData.poll.options.image.duration"
1982
+ },
1983
+ {
1984
+ path: "commentReplies.*.replies.content.richContent.nodes.pollData.design.poll.background.image.duration"
1985
+ },
1986
+ {
1987
+ path: "commentReplies.*.replies.content.richContent.nodes.appEmbedData.image.duration"
1988
+ },
1989
+ {
1990
+ path: "commentReplies.*.replies.content.richContent.nodes.videoData.video.duration"
1991
+ },
1992
+ {
1993
+ path: "commentReplies.*.replies.content.richContent.nodes.videoData.thumbnail.duration"
1994
+ },
1995
+ {
1996
+ path: "commentReplies.*.replies.content.richContent.nodes.audioData.audio.duration"
1997
+ },
1998
+ {
1999
+ path: "commentReplies.*.replies.content.richContent.nodes.audioData.coverImage.duration"
2000
+ },
2001
+ {
2002
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.galleryData.items.image.media.duration"
2003
+ },
2004
+ {
2005
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.galleryData.items.video.media.duration"
2006
+ },
2007
+ {
2008
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
2009
+ },
2010
+ {
2011
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.galleryData.options.item.ratio"
2012
+ },
2013
+ {
2014
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.imageData.image.duration"
2015
+ },
2016
+ {
2017
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.mapData.mapSettings.lat"
2018
+ },
2019
+ {
2020
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.mapData.mapSettings.lng"
2021
+ },
2022
+ {
2023
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.pollData.poll.image.duration"
2024
+ },
2025
+ {
2026
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.pollData.poll.options.image.duration"
2027
+ },
2028
+ {
2029
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
2030
+ },
2031
+ {
2032
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.appEmbedData.image.duration"
2033
+ },
2034
+ {
2035
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.videoData.video.duration"
2036
+ },
2037
+ {
2038
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.videoData.thumbnail.duration"
2039
+ },
2040
+ {
2041
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.audioData.audio.duration"
2042
+ },
2043
+ {
2044
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.audioData.coverImage.duration"
2045
+ }
2046
+ ]
2047
+ }
2048
+ ])
2049
+ };
2050
+ return metadata;
2051
+ }
2052
+ return __listCommentsByResource;
2053
+ }
2054
+ function getCommentThread(payload) {
2055
+ function __getCommentThread({ host }) {
2056
+ const metadata = {
2057
+ entityFqdn: "wix.comments.v2.comment",
2058
+ method: "GET",
2059
+ methodFqn: "wix.comments.ng.v1.CommentsNg.GetCommentThread",
2060
+ packageName: PACKAGE_NAME,
2061
+ url: resolveWixCommentsNgV1CommentsNgUrl({
2062
+ protoPath: "/v1/comments/{commentId}/thread",
2063
+ data: payload,
2064
+ host
2065
+ }),
2066
+ params: toURLSearchParams(payload),
2067
+ transformResponse: (payload2) => transformPaths(payload2, [
2068
+ {
2069
+ transformFn: transformRESTTimestampToSDKTimestamp,
2070
+ paths: [
2071
+ { path: "comments.createdDate" },
2072
+ { path: "comments.updatedDate" },
2073
+ { path: "comments.commentDate" },
2074
+ { path: "comments.content.commentDate" },
2075
+ {
2076
+ path: "comments.content.richContent.metadata.createdTimestamp"
2077
+ },
2078
+ {
2079
+ path: "comments.content.richContent.metadata.updatedTimestamp"
2080
+ },
2081
+ { path: "comments.content.attachments.image.urlExpirationDate" },
2082
+ { path: "comments.content.attachments.video.urlExpirationDate" },
2083
+ {
2084
+ path: "comments.content.attachments.video.posters.urlExpirationDate"
2085
+ },
2086
+ { path: "comments.content.attachments.audio.urlExpirationDate" },
2087
+ {
2088
+ path: "comments.content.attachments.document.urlExpirationDate"
2089
+ },
2090
+ { path: "comments.draftContent.commentDate" },
2091
+ {
2092
+ path: "comments.draftContent.richContent.metadata.createdTimestamp"
2093
+ },
2094
+ {
2095
+ path: "comments.draftContent.richContent.metadata.updatedTimestamp"
2096
+ },
2097
+ {
2098
+ path: "comments.draftContent.attachments.image.urlExpirationDate"
2099
+ },
2100
+ {
2101
+ path: "comments.draftContent.attachments.video.urlExpirationDate"
2102
+ },
2103
+ {
2104
+ path: "comments.draftContent.attachments.video.posters.urlExpirationDate"
2105
+ },
2106
+ {
2107
+ path: "comments.draftContent.attachments.audio.urlExpirationDate"
2108
+ },
2109
+ {
2110
+ path: "comments.draftContent.attachments.document.urlExpirationDate"
2111
+ },
2112
+ { path: "commentReplies.*.replies.createdDate" },
2113
+ { path: "commentReplies.*.replies.updatedDate" },
2114
+ { path: "commentReplies.*.replies.commentDate" },
2115
+ { path: "commentReplies.*.replies.content.commentDate" },
2116
+ {
2117
+ path: "commentReplies.*.replies.content.richContent.metadata.createdTimestamp"
2118
+ },
2119
+ {
2120
+ path: "commentReplies.*.replies.content.richContent.metadata.updatedTimestamp"
2121
+ },
2122
+ {
2123
+ path: "commentReplies.*.replies.content.attachments.image.urlExpirationDate"
2124
+ },
2125
+ {
2126
+ path: "commentReplies.*.replies.content.attachments.video.urlExpirationDate"
2127
+ },
2128
+ {
2129
+ path: "commentReplies.*.replies.content.attachments.video.posters.urlExpirationDate"
2130
+ },
2131
+ {
2132
+ path: "commentReplies.*.replies.content.attachments.audio.urlExpirationDate"
2133
+ },
2134
+ {
2135
+ path: "commentReplies.*.replies.content.attachments.document.urlExpirationDate"
2136
+ },
2137
+ { path: "commentReplies.*.replies.draftContent.commentDate" },
2138
+ {
2139
+ path: "commentReplies.*.replies.draftContent.richContent.metadata.createdTimestamp"
2140
+ },
2141
+ {
2142
+ path: "commentReplies.*.replies.draftContent.richContent.metadata.updatedTimestamp"
2143
+ },
2144
+ {
2145
+ path: "commentReplies.*.replies.draftContent.attachments.image.urlExpirationDate"
2146
+ },
2147
+ {
2148
+ path: "commentReplies.*.replies.draftContent.attachments.video.urlExpirationDate"
2149
+ },
2150
+ {
2151
+ path: "commentReplies.*.replies.draftContent.attachments.video.posters.urlExpirationDate"
2152
+ },
2153
+ {
2154
+ path: "commentReplies.*.replies.draftContent.attachments.audio.urlExpirationDate"
2155
+ },
2156
+ {
2157
+ path: "commentReplies.*.replies.draftContent.attachments.document.urlExpirationDate"
2158
+ }
2159
+ ]
2160
+ },
2161
+ {
2162
+ transformFn: transformRESTFloatToSDKFloat,
2163
+ paths: [
2164
+ {
2165
+ path: "comments.content.richContent.nodes.galleryData.items.image.media.duration"
2166
+ },
2167
+ {
2168
+ path: "comments.content.richContent.nodes.galleryData.items.video.media.duration"
2169
+ },
2170
+ {
2171
+ path: "comments.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
2172
+ },
2173
+ {
2174
+ path: "comments.content.richContent.nodes.galleryData.options.item.ratio"
2175
+ },
2176
+ {
2177
+ path: "comments.content.richContent.nodes.imageData.image.duration"
2178
+ },
2179
+ {
2180
+ path: "comments.content.richContent.nodes.mapData.mapSettings.lat"
2181
+ },
2182
+ {
2183
+ path: "comments.content.richContent.nodes.mapData.mapSettings.lng"
2184
+ },
2185
+ {
2186
+ path: "comments.content.richContent.nodes.pollData.poll.image.duration"
2187
+ },
2188
+ {
2189
+ path: "comments.content.richContent.nodes.pollData.poll.options.image.duration"
2190
+ },
2191
+ {
2192
+ path: "comments.content.richContent.nodes.pollData.design.poll.background.image.duration"
2193
+ },
2194
+ {
2195
+ path: "comments.content.richContent.nodes.appEmbedData.image.duration"
2196
+ },
2197
+ {
2198
+ path: "comments.content.richContent.nodes.videoData.video.duration"
2199
+ },
2200
+ {
2201
+ path: "comments.content.richContent.nodes.videoData.thumbnail.duration"
2202
+ },
2203
+ {
2204
+ path: "comments.content.richContent.nodes.audioData.audio.duration"
2205
+ },
2206
+ {
2207
+ path: "comments.content.richContent.nodes.audioData.coverImage.duration"
2208
+ },
2209
+ {
2210
+ path: "comments.draftContent.richContent.nodes.galleryData.items.image.media.duration"
2211
+ },
2212
+ {
2213
+ path: "comments.draftContent.richContent.nodes.galleryData.items.video.media.duration"
2214
+ },
2215
+ {
2216
+ path: "comments.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
2217
+ },
2218
+ {
2219
+ path: "comments.draftContent.richContent.nodes.galleryData.options.item.ratio"
2220
+ },
2221
+ {
2222
+ path: "comments.draftContent.richContent.nodes.imageData.image.duration"
2223
+ },
2224
+ {
2225
+ path: "comments.draftContent.richContent.nodes.mapData.mapSettings.lat"
2226
+ },
2227
+ {
2228
+ path: "comments.draftContent.richContent.nodes.mapData.mapSettings.lng"
2229
+ },
2230
+ {
2231
+ path: "comments.draftContent.richContent.nodes.pollData.poll.image.duration"
2232
+ },
2233
+ {
2234
+ path: "comments.draftContent.richContent.nodes.pollData.poll.options.image.duration"
2235
+ },
2236
+ {
2237
+ path: "comments.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
2238
+ },
2239
+ {
2240
+ path: "comments.draftContent.richContent.nodes.appEmbedData.image.duration"
2241
+ },
2242
+ {
2243
+ path: "comments.draftContent.richContent.nodes.videoData.video.duration"
2244
+ },
2245
+ {
2246
+ path: "comments.draftContent.richContent.nodes.videoData.thumbnail.duration"
2247
+ },
2248
+ {
2249
+ path: "comments.draftContent.richContent.nodes.audioData.audio.duration"
2250
+ },
2251
+ {
2252
+ path: "comments.draftContent.richContent.nodes.audioData.coverImage.duration"
2253
+ },
2254
+ {
2255
+ path: "commentReplies.*.replies.content.richContent.nodes.galleryData.items.image.media.duration"
2256
+ },
2257
+ {
2258
+ path: "commentReplies.*.replies.content.richContent.nodes.galleryData.items.video.media.duration"
2259
+ },
2260
+ {
2261
+ path: "commentReplies.*.replies.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
2262
+ },
2263
+ {
2264
+ path: "commentReplies.*.replies.content.richContent.nodes.galleryData.options.item.ratio"
2265
+ },
2266
+ {
2267
+ path: "commentReplies.*.replies.content.richContent.nodes.imageData.image.duration"
2268
+ },
2269
+ {
2270
+ path: "commentReplies.*.replies.content.richContent.nodes.mapData.mapSettings.lat"
2271
+ },
2272
+ {
2273
+ path: "commentReplies.*.replies.content.richContent.nodes.mapData.mapSettings.lng"
2274
+ },
2275
+ {
2276
+ path: "commentReplies.*.replies.content.richContent.nodes.pollData.poll.image.duration"
2277
+ },
2278
+ {
2279
+ path: "commentReplies.*.replies.content.richContent.nodes.pollData.poll.options.image.duration"
2280
+ },
2281
+ {
2282
+ path: "commentReplies.*.replies.content.richContent.nodes.pollData.design.poll.background.image.duration"
2283
+ },
2284
+ {
2285
+ path: "commentReplies.*.replies.content.richContent.nodes.appEmbedData.image.duration"
2286
+ },
2287
+ {
2288
+ path: "commentReplies.*.replies.content.richContent.nodes.videoData.video.duration"
2289
+ },
2290
+ {
2291
+ path: "commentReplies.*.replies.content.richContent.nodes.videoData.thumbnail.duration"
2292
+ },
2293
+ {
2294
+ path: "commentReplies.*.replies.content.richContent.nodes.audioData.audio.duration"
2295
+ },
2296
+ {
2297
+ path: "commentReplies.*.replies.content.richContent.nodes.audioData.coverImage.duration"
2298
+ },
2299
+ {
2300
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.galleryData.items.image.media.duration"
2301
+ },
2302
+ {
2303
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.galleryData.items.video.media.duration"
2304
+ },
2305
+ {
2306
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
2307
+ },
2308
+ {
2309
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.galleryData.options.item.ratio"
2310
+ },
2311
+ {
2312
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.imageData.image.duration"
2313
+ },
2314
+ {
2315
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.mapData.mapSettings.lat"
2316
+ },
2317
+ {
2318
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.mapData.mapSettings.lng"
2319
+ },
2320
+ {
2321
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.pollData.poll.image.duration"
2322
+ },
2323
+ {
2324
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.pollData.poll.options.image.duration"
2325
+ },
2326
+ {
2327
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
2328
+ },
2329
+ {
2330
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.appEmbedData.image.duration"
2331
+ },
2332
+ {
2333
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.videoData.video.duration"
2334
+ },
2335
+ {
2336
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.videoData.thumbnail.duration"
2337
+ },
2338
+ {
2339
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.audioData.audio.duration"
2340
+ },
2341
+ {
2342
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.audioData.coverImage.duration"
2343
+ }
2344
+ ]
2345
+ }
2346
+ ])
2347
+ };
2348
+ return metadata;
2349
+ }
2350
+ return __getCommentThread;
2351
+ }
2352
+ function bulkPublishComment(payload) {
2353
+ function __bulkPublishComment({ host }) {
2354
+ const metadata = {
2355
+ entityFqdn: "wix.comments.v2.comment",
2356
+ method: "POST",
2357
+ methodFqn: "wix.comments.ng.v1.CommentsNg.BulkPublishComment",
2358
+ packageName: PACKAGE_NAME,
2359
+ url: resolveWixCommentsNgV1CommentsNgUrl({
2360
+ protoPath: "/v1/bulk/comments/publish-by-filter",
2361
+ data: payload,
2362
+ host
2363
+ }),
2364
+ data: payload
2365
+ };
2366
+ return metadata;
2367
+ }
2368
+ return __bulkPublishComment;
2369
+ }
2370
+ function bulkHideComment(payload) {
2371
+ function __bulkHideComment({ host }) {
2372
+ const metadata = {
2373
+ entityFqdn: "wix.comments.v2.comment",
2374
+ method: "PUT",
2375
+ methodFqn: "wix.comments.ng.v1.CommentsNg.BulkHideComment",
2376
+ packageName: PACKAGE_NAME,
2377
+ url: resolveWixCommentsNgV1CommentsNgUrl({
2378
+ protoPath: "/v1/bulk/comments/hide-by-filter",
2379
+ data: payload,
2380
+ host
2381
+ }),
2382
+ data: payload
2383
+ };
2384
+ return metadata;
2385
+ }
2386
+ return __bulkHideComment;
2387
+ }
2388
+ function bulkDeleteComment(payload) {
2389
+ function __bulkDeleteComment({ host }) {
2390
+ const metadata = {
2391
+ entityFqdn: "wix.comments.v2.comment",
2392
+ method: "PUT",
2393
+ methodFqn: "wix.comments.ng.v1.CommentsNg.BulkDeleteComment",
2394
+ packageName: PACKAGE_NAME,
2395
+ url: resolveWixCommentsNgV1CommentsNgUrl({
2396
+ protoPath: "/v1/bulk/comments/delete-by-filter",
2397
+ data: payload,
2398
+ host
2399
+ }),
2400
+ data: payload
2401
+ };
2402
+ return metadata;
2403
+ }
2404
+ return __bulkDeleteComment;
2405
+ }
2406
+ function bulkModerateDraftContent(payload) {
2407
+ function __bulkModerateDraftContent({ host }) {
2408
+ const metadata = {
2409
+ entityFqdn: "wix.comments.v2.comment",
2410
+ method: "POST",
2411
+ methodFqn: "wix.comments.ng.v1.CommentsNg.BulkModerateDraftContent",
2412
+ packageName: PACKAGE_NAME,
2413
+ url: resolveWixCommentsNgV1CommentsNgUrl({
2414
+ protoPath: "/v1/bulk/comments/moderate-by-filter",
2415
+ data: payload,
2416
+ host
2417
+ }),
2418
+ data: payload
2419
+ };
2420
+ return metadata;
2421
+ }
2422
+ return __bulkModerateDraftContent;
2423
+ }
2424
+ function bulkMoveCommentByFilter(payload) {
2425
+ function __bulkMoveCommentByFilter({ host }) {
2426
+ const metadata = {
2427
+ entityFqdn: "wix.comments.v2.comment",
2428
+ method: "PUT",
2429
+ methodFqn: "wix.comments.ng.v1.CommentsNg.BulkMoveCommentByFilter",
2430
+ packageName: PACKAGE_NAME,
2431
+ url: resolveWixCommentsNgV1CommentsNgUrl({
2432
+ protoPath: "/v1/bulk/comments/move-by-filter",
2433
+ data: payload,
2434
+ host
2435
+ }),
2436
+ data: payload
2437
+ };
2438
+ return metadata;
2439
+ }
2440
+ return __bulkMoveCommentByFilter;
2441
+ }
2442
+
2443
+ // src/comments-v2-comment-comments.meta.ts
2444
+ function createComment2() {
2445
+ const payload = {};
2446
+ const getRequestOptions = createComment(payload);
2447
+ const getUrl = (context) => {
2448
+ const { url } = getRequestOptions(context);
2449
+ return url;
2450
+ };
2451
+ return {
2452
+ getUrl,
2453
+ httpMethod: "POST",
2454
+ path: "/v1/comments",
2455
+ pathParams: {},
2456
+ __requestType: null,
2457
+ __originalRequestType: null,
2458
+ __responseType: null,
2459
+ __originalResponseType: null
2460
+ };
2461
+ }
2462
+ function getComment2() {
2463
+ const payload = { commentId: ":commentId" };
2464
+ const getRequestOptions = getComment(payload);
2465
+ const getUrl = (context) => {
2466
+ const { url } = getRequestOptions(context);
2467
+ return url;
2468
+ };
2469
+ return {
2470
+ getUrl,
2471
+ httpMethod: "GET",
2472
+ path: "/v1/comments/{commentId}",
2473
+ pathParams: { commentId: "commentId" },
2474
+ __requestType: null,
2475
+ __originalRequestType: null,
2476
+ __responseType: null,
2477
+ __originalResponseType: null
2478
+ };
2479
+ }
2480
+ function updateComment2() {
2481
+ const payload = { comment: { id: ":commentId" } };
2482
+ const getRequestOptions = updateComment(payload);
2483
+ const getUrl = (context) => {
2484
+ const { url } = getRequestOptions(context);
2485
+ return url;
2486
+ };
2487
+ return {
2488
+ getUrl,
2489
+ httpMethod: "PATCH",
2490
+ path: "/v1/comments/{comment.id}",
2491
+ pathParams: { commentId: "commentId" },
2492
+ __requestType: null,
2493
+ __originalRequestType: null,
2494
+ __responseType: null,
2495
+ __originalResponseType: null
2496
+ };
2497
+ }
2498
+ function deleteComment2() {
2499
+ const payload = { commentId: ":commentId" };
2500
+ const getRequestOptions = deleteComment(payload);
2501
+ const getUrl = (context) => {
2502
+ const { url } = getRequestOptions(context);
2503
+ return url;
2504
+ };
2505
+ return {
2506
+ getUrl,
2507
+ httpMethod: "DELETE",
2508
+ path: "/v1/comments/{commentId}",
2509
+ pathParams: { commentId: "commentId" },
2510
+ __requestType: null,
2511
+ __originalRequestType: null,
2512
+ __responseType: null,
2513
+ __originalResponseType: null
2514
+ };
2515
+ }
2516
+ function moderateDraftContent2() {
2517
+ const payload = { commentId: ":commentId" };
2518
+ const getRequestOptions = moderateDraftContent(payload);
2519
+ const getUrl = (context) => {
2520
+ const { url } = getRequestOptions(context);
2521
+ return url;
2522
+ };
2523
+ return {
2524
+ getUrl,
2525
+ httpMethod: "POST",
2526
+ path: "/v1/comments/{commentId}/moderate",
2527
+ pathParams: { commentId: "commentId" },
2528
+ __requestType: null,
2529
+ __originalRequestType: null,
2530
+ __responseType: null,
2531
+ __originalResponseType: null
2532
+ };
2533
+ }
2534
+ function queryComments2() {
2535
+ const payload = {};
2536
+ const getRequestOptions = queryComments(payload);
2537
+ const getUrl = (context) => {
2538
+ const { url } = getRequestOptions(context);
2539
+ return url;
2540
+ };
2541
+ return {
2542
+ getUrl,
2543
+ httpMethod: "POST",
2544
+ path: "/v1/comments/query-cursor",
2545
+ pathParams: {},
2546
+ __requestType: null,
2547
+ __originalRequestType: null,
2548
+ __responseType: null,
2549
+ __originalResponseType: null
2550
+ };
2551
+ }
2552
+ function markComment2() {
2553
+ const payload = { commentId: ":commentId" };
2554
+ const getRequestOptions = markComment(payload);
2555
+ const getUrl = (context) => {
2556
+ const { url } = getRequestOptions(context);
2557
+ return url;
2558
+ };
2559
+ return {
2560
+ getUrl,
2561
+ httpMethod: "PUT",
2562
+ path: "/v1/comments/{commentId}/mark",
2563
+ pathParams: { commentId: "commentId" },
2564
+ __requestType: null,
2565
+ __originalRequestType: null,
2566
+ __responseType: null,
2567
+ __originalResponseType: null
2568
+ };
2569
+ }
2570
+ function unmarkComment2() {
2571
+ const payload = { commentId: ":commentId" };
2572
+ const getRequestOptions = unmarkComment(payload);
2573
+ const getUrl = (context) => {
2574
+ const { url } = getRequestOptions(context);
2575
+ return url;
2576
+ };
2577
+ return {
2578
+ getUrl,
2579
+ httpMethod: "PUT",
2580
+ path: "/v1/comments/{commentId}/unmark",
2581
+ pathParams: { commentId: "commentId" },
2582
+ __requestType: null,
2583
+ __originalRequestType: null,
2584
+ __responseType: null,
2585
+ __originalResponseType: null
2586
+ };
2587
+ }
2588
+ function hideComment2() {
2589
+ const payload = { commentId: ":commentId" };
2590
+ const getRequestOptions = hideComment(payload);
2591
+ const getUrl = (context) => {
2592
+ const { url } = getRequestOptions(context);
2593
+ return url;
2594
+ };
2595
+ return {
2596
+ getUrl,
2597
+ httpMethod: "PUT",
2598
+ path: "/v1/comments/{commentId}/hide",
2599
+ pathParams: { commentId: "commentId" },
2600
+ __requestType: null,
2601
+ __originalRequestType: null,
2602
+ __responseType: null,
2603
+ __originalResponseType: null
2604
+ };
2605
+ }
2606
+ function publishComment2() {
2607
+ const payload = { commentId: ":commentId" };
2608
+ const getRequestOptions = publishComment(payload);
2609
+ const getUrl = (context) => {
2610
+ const { url } = getRequestOptions(context);
2611
+ return url;
2612
+ };
2613
+ return {
2614
+ getUrl,
2615
+ httpMethod: "PUT",
2616
+ path: "/v1/comments/{commentId}/publish",
2617
+ pathParams: { commentId: "commentId" },
2618
+ __requestType: null,
2619
+ __originalRequestType: null,
2620
+ __responseType: null,
2621
+ __originalResponseType: null
2622
+ };
2623
+ }
2624
+ function countComments2() {
2625
+ const payload = {};
2626
+ const getRequestOptions = countComments(payload);
2627
+ const getUrl = (context) => {
2628
+ const { url } = getRequestOptions(context);
2629
+ return url;
2630
+ };
2631
+ return {
2632
+ getUrl,
2633
+ httpMethod: "POST",
2634
+ path: "/v1/comments/count",
2635
+ pathParams: {},
2636
+ __requestType: null,
2637
+ __originalRequestType: null,
2638
+ __responseType: null,
2639
+ __originalResponseType: null
2640
+ };
2641
+ }
2642
+ function listCommentsByResource2() {
2643
+ const payload = {};
2644
+ const getRequestOptions = listCommentsByResource(payload);
2645
+ const getUrl = (context) => {
2646
+ const { url } = getRequestOptions(context);
2647
+ return url;
2648
+ };
2649
+ return {
2650
+ getUrl,
2651
+ httpMethod: "GET",
2652
+ path: "/v1/comments/list-by-resource",
2653
+ pathParams: {},
2654
+ __requestType: null,
2655
+ __originalRequestType: null,
2656
+ __responseType: null,
2657
+ __originalResponseType: null
2658
+ };
2659
+ }
2660
+ function getCommentThread2() {
2661
+ const payload = { commentId: ":commentId" };
2662
+ const getRequestOptions = getCommentThread(payload);
2663
+ const getUrl = (context) => {
2664
+ const { url } = getRequestOptions(context);
2665
+ return url;
2666
+ };
2667
+ return {
2668
+ getUrl,
2669
+ httpMethod: "GET",
2670
+ path: "/v1/comments/{commentId}/thread",
2671
+ pathParams: { commentId: "commentId" },
2672
+ __requestType: null,
2673
+ __originalRequestType: null,
2674
+ __responseType: null,
2675
+ __originalResponseType: null
2676
+ };
2677
+ }
2678
+ function bulkPublishComment2() {
2679
+ const payload = {};
2680
+ const getRequestOptions = bulkPublishComment(payload);
2681
+ const getUrl = (context) => {
2682
+ const { url } = getRequestOptions(context);
2683
+ return url;
2684
+ };
2685
+ return {
2686
+ getUrl,
2687
+ httpMethod: "POST",
2688
+ path: "/v1/bulk/comments/publish-by-filter",
2689
+ pathParams: {},
2690
+ __requestType: null,
2691
+ __originalRequestType: null,
2692
+ __responseType: null,
2693
+ __originalResponseType: null
2694
+ };
2695
+ }
2696
+ function bulkHideComment2() {
2697
+ const payload = {};
2698
+ const getRequestOptions = bulkHideComment(payload);
2699
+ const getUrl = (context) => {
2700
+ const { url } = getRequestOptions(context);
2701
+ return url;
2702
+ };
2703
+ return {
2704
+ getUrl,
2705
+ httpMethod: "PUT",
2706
+ path: "/v1/bulk/comments/hide-by-filter",
2707
+ pathParams: {},
2708
+ __requestType: null,
2709
+ __originalRequestType: null,
2710
+ __responseType: null,
2711
+ __originalResponseType: null
2712
+ };
2713
+ }
2714
+ function bulkDeleteComment2() {
2715
+ const payload = {};
2716
+ const getRequestOptions = bulkDeleteComment(payload);
2717
+ const getUrl = (context) => {
2718
+ const { url } = getRequestOptions(context);
2719
+ return url;
2720
+ };
2721
+ return {
2722
+ getUrl,
2723
+ httpMethod: "PUT",
2724
+ path: "/v1/bulk/comments/delete-by-filter",
2725
+ pathParams: {},
2726
+ __requestType: null,
2727
+ __originalRequestType: null,
2728
+ __responseType: null,
2729
+ __originalResponseType: null
2730
+ };
2731
+ }
2732
+ function bulkModerateDraftContent2() {
2733
+ const payload = {};
2734
+ const getRequestOptions = bulkModerateDraftContent(payload);
2735
+ const getUrl = (context) => {
2736
+ const { url } = getRequestOptions(context);
2737
+ return url;
2738
+ };
2739
+ return {
2740
+ getUrl,
2741
+ httpMethod: "POST",
2742
+ path: "/v1/bulk/comments/moderate-by-filter",
2743
+ pathParams: {},
2744
+ __requestType: null,
2745
+ __originalRequestType: null,
2746
+ __responseType: null,
2747
+ __originalResponseType: null
2748
+ };
2749
+ }
2750
+ function bulkMoveCommentByFilter2() {
2751
+ const payload = {};
2752
+ const getRequestOptions = bulkMoveCommentByFilter(payload);
2753
+ const getUrl = (context) => {
2754
+ const { url } = getRequestOptions(context);
2755
+ return url;
2756
+ };
2757
+ return {
2758
+ getUrl,
2759
+ httpMethod: "PUT",
2760
+ path: "/v1/bulk/comments/move-by-filter",
2761
+ pathParams: {},
2762
+ __requestType: null,
2763
+ __originalRequestType: null,
2764
+ __responseType: null,
2765
+ __originalResponseType: null
2766
+ };
2767
+ }
2768
+ export {
2769
+ bulkDeleteComment2 as bulkDeleteComment,
2770
+ bulkHideComment2 as bulkHideComment,
2771
+ bulkModerateDraftContent2 as bulkModerateDraftContent,
2772
+ bulkMoveCommentByFilter2 as bulkMoveCommentByFilter,
2773
+ bulkPublishComment2 as bulkPublishComment,
2774
+ countComments2 as countComments,
2775
+ createComment2 as createComment,
2776
+ deleteComment2 as deleteComment,
2777
+ getComment2 as getComment,
2778
+ getCommentThread2 as getCommentThread,
2779
+ hideComment2 as hideComment,
2780
+ listCommentsByResource2 as listCommentsByResource,
2781
+ markComment2 as markComment,
2782
+ moderateDraftContent2 as moderateDraftContent,
2783
+ publishComment2 as publishComment,
2784
+ queryComments2 as queryComments,
2785
+ unmarkComment2 as unmarkComment,
2786
+ updateComment2 as updateComment
2787
+ };
2788
+ //# sourceMappingURL=meta.mjs.map