@wix/auto_sdk_comments_comments 1.0.20 → 1.0.22

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 (33) hide show
  1. package/build/cjs/index.d.ts +56 -21
  2. package/build/cjs/index.js +71 -18
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/{comments-v2-comment-comments.universal-kzUoSqmO.d.ts → index.typings.d.ts} +681 -21
  5. package/build/cjs/index.typings.js +3890 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +234 -21
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/es/index.d.mts +56 -21
  10. package/build/es/index.mjs +64 -18
  11. package/build/es/index.mjs.map +1 -1
  12. package/build/es/{comments-v2-comment-comments.universal-kzUoSqmO.d.mts → index.typings.d.mts} +681 -21
  13. package/build/es/index.typings.mjs +3805 -0
  14. package/build/es/index.typings.mjs.map +1 -0
  15. package/build/es/meta.d.mts +234 -21
  16. package/build/es/meta.mjs.map +1 -1
  17. package/build/internal/cjs/index.d.ts +56 -21
  18. package/build/internal/cjs/index.js +71 -18
  19. package/build/internal/cjs/index.js.map +1 -1
  20. package/build/internal/cjs/{comments-v2-comment-comments.universal-kzUoSqmO.d.ts → index.typings.d.ts} +681 -21
  21. package/build/internal/cjs/index.typings.js +3890 -0
  22. package/build/internal/cjs/index.typings.js.map +1 -0
  23. package/build/internal/cjs/meta.d.ts +234 -21
  24. package/build/internal/cjs/meta.js.map +1 -1
  25. package/build/internal/es/index.d.mts +56 -21
  26. package/build/internal/es/index.mjs +64 -18
  27. package/build/internal/es/index.mjs.map +1 -1
  28. package/build/internal/es/{comments-v2-comment-comments.universal-kzUoSqmO.d.mts → index.typings.d.mts} +681 -21
  29. package/build/internal/es/index.typings.mjs +3805 -0
  30. package/build/internal/es/index.typings.mjs.map +1 -0
  31. package/build/internal/es/meta.d.mts +234 -21
  32. package/build/internal/es/meta.mjs.map +1 -1
  33. package/package.json +4 -3
@@ -0,0 +1,3890 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // index.typings.ts
21
+ var index_typings_exports = {};
22
+ __export(index_typings_exports, {
23
+ Action: () => Action,
24
+ Alignment: () => Alignment,
25
+ AppType: () => AppType,
26
+ AspectRatio: () => AspectRatio,
27
+ BackgroundType: () => BackgroundType,
28
+ ButtonDataType: () => ButtonDataType,
29
+ Crop: () => Crop,
30
+ DecorationType: () => DecorationType,
31
+ Direction: () => Direction,
32
+ DividerDataAlignment: () => DividerDataAlignment,
33
+ FontType: () => FontType,
34
+ GIFType: () => GIFType,
35
+ InitialExpandedItems: () => InitialExpandedItems,
36
+ Layout: () => Layout,
37
+ LayoutType: () => LayoutType,
38
+ LineStyle: () => LineStyle,
39
+ MapType: () => MapType,
40
+ NodeType: () => NodeType,
41
+ NullValue: () => NullValue,
42
+ Order: () => Order,
43
+ Orientation: () => Orientation,
44
+ Placement: () => Placement,
45
+ PluginContainerDataAlignment: () => PluginContainerDataAlignment,
46
+ PollLayoutDirection: () => PollLayoutDirection,
47
+ PollLayoutType: () => PollLayoutType,
48
+ Position: () => Position,
49
+ ReplySortOrder: () => ReplySortOrder,
50
+ Resizing: () => Resizing,
51
+ SortOrder: () => SortOrder,
52
+ Source: () => Source,
53
+ Status: () => Status,
54
+ StylesPosition: () => StylesPosition,
55
+ Target: () => Target,
56
+ TextAlignment: () => TextAlignment,
57
+ ThumbnailsAlignment: () => ThumbnailsAlignment,
58
+ Type: () => Type,
59
+ VersioningMode: () => VersioningMode,
60
+ VerticalAlignment: () => VerticalAlignment,
61
+ ViewMode: () => ViewMode,
62
+ ViewRole: () => ViewRole,
63
+ VoteRole: () => VoteRole,
64
+ WebhookIdentityType: () => WebhookIdentityType,
65
+ Width: () => Width,
66
+ WidthType: () => WidthType,
67
+ bulkDeleteComment: () => bulkDeleteComment2,
68
+ bulkHideComment: () => bulkHideComment2,
69
+ bulkModerateDraftContent: () => bulkModerateDraftContent2,
70
+ bulkMoveCommentByFilter: () => bulkMoveCommentByFilter2,
71
+ bulkPublishComment: () => bulkPublishComment2,
72
+ countComments: () => countComments2,
73
+ createComment: () => createComment2,
74
+ deleteComment: () => deleteComment2,
75
+ getComment: () => getComment2,
76
+ getCommentThread: () => getCommentThread2,
77
+ hideComment: () => hideComment2,
78
+ listCommentsByResource: () => listCommentsByResource2,
79
+ markComment: () => markComment2,
80
+ moderateDraftContent: () => moderateDraftContent2,
81
+ publishComment: () => publishComment2,
82
+ queryComments: () => queryComments2,
83
+ unmarkComment: () => unmarkComment2,
84
+ updateComment: () => updateComment2
85
+ });
86
+ module.exports = __toCommonJS(index_typings_exports);
87
+
88
+ // src/comments-v2-comment-comments.universal.ts
89
+ var import_transform_error = require("@wix/sdk-runtime/transform-error");
90
+ var import_query_builder = require("@wix/sdk-runtime/query-builder");
91
+ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
92
+
93
+ // src/comments-v2-comment-comments.http.ts
94
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
95
+ var import_float = require("@wix/sdk-runtime/transformations/float");
96
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
97
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
98
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
99
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
100
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
101
+ function resolveWixCommentsNgV1CommentsNgUrl(opts) {
102
+ const domainToMappings = {
103
+ "www.wixapis.com": [
104
+ {
105
+ srcPath: "/comments/v1/comments",
106
+ destPath: "/v1/comments"
107
+ },
108
+ {
109
+ srcPath: "/comments/v1/bulk/comments",
110
+ destPath: "/v1/bulk/comments"
111
+ }
112
+ ],
113
+ _: [
114
+ {
115
+ srcPath: "/_api/comments-ng/v1",
116
+ destPath: "/v1"
117
+ }
118
+ ],
119
+ "manage._base_domain_": [
120
+ {
121
+ srcPath: "/_api/comments-ng/v1",
122
+ destPath: "/v1"
123
+ }
124
+ ],
125
+ "www._base_domain_": [
126
+ {
127
+ srcPath: "/_api/comments-ng/v1",
128
+ destPath: "/v1"
129
+ }
130
+ ],
131
+ "*.dev.wix-code.com": [
132
+ {
133
+ srcPath: "/_api/comments-ng",
134
+ destPath: ""
135
+ }
136
+ ]
137
+ };
138
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
139
+ }
140
+ var PACKAGE_NAME = "@wix/auto_sdk_comments_comments";
141
+ function createComment(payload) {
142
+ function __createComment({ host }) {
143
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
144
+ {
145
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
146
+ paths: [
147
+ { path: "comment.createdDate" },
148
+ { path: "comment.updatedDate" },
149
+ { path: "comment.commentDate" },
150
+ { path: "comment.content.commentDate" },
151
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
152
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
153
+ { path: "comment.content.attachments.image.urlExpirationDate" },
154
+ { path: "comment.content.attachments.video.urlExpirationDate" },
155
+ {
156
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
157
+ },
158
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
159
+ { path: "comment.content.attachments.document.urlExpirationDate" },
160
+ { path: "comment.draftContent.commentDate" },
161
+ {
162
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
163
+ },
164
+ {
165
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
166
+ },
167
+ { path: "comment.draftContent.attachments.image.urlExpirationDate" },
168
+ { path: "comment.draftContent.attachments.video.urlExpirationDate" },
169
+ {
170
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
171
+ },
172
+ { path: "comment.draftContent.attachments.audio.urlExpirationDate" },
173
+ {
174
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
175
+ }
176
+ ]
177
+ },
178
+ {
179
+ transformFn: import_float.transformSDKFloatToRESTFloat,
180
+ paths: [
181
+ {
182
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
183
+ },
184
+ {
185
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
186
+ },
187
+ {
188
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
189
+ },
190
+ {
191
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
192
+ },
193
+ {
194
+ path: "comment.content.richContent.nodes.imageData.image.duration"
195
+ },
196
+ { path: "comment.content.richContent.nodes.mapData.mapSettings.lat" },
197
+ { path: "comment.content.richContent.nodes.mapData.mapSettings.lng" },
198
+ {
199
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
200
+ },
201
+ {
202
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
203
+ },
204
+ {
205
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
206
+ },
207
+ {
208
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
209
+ },
210
+ {
211
+ path: "comment.content.richContent.nodes.videoData.video.duration"
212
+ },
213
+ {
214
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
215
+ },
216
+ {
217
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
218
+ },
219
+ {
220
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
221
+ },
222
+ {
223
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
224
+ },
225
+ {
226
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
227
+ },
228
+ {
229
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
230
+ },
231
+ {
232
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
233
+ },
234
+ {
235
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
236
+ },
237
+ {
238
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
239
+ },
240
+ {
241
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
242
+ },
243
+ {
244
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
245
+ },
246
+ {
247
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
248
+ },
249
+ {
250
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
251
+ },
252
+ {
253
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
254
+ },
255
+ {
256
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
257
+ },
258
+ {
259
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
260
+ },
261
+ {
262
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
263
+ },
264
+ {
265
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
266
+ }
267
+ ]
268
+ }
269
+ ]);
270
+ const metadata = {
271
+ entityFqdn: "wix.comments.v2.comment",
272
+ method: "POST",
273
+ methodFqn: "wix.comments.ng.v1.CommentsNg.CreateComment",
274
+ packageName: PACKAGE_NAME,
275
+ url: resolveWixCommentsNgV1CommentsNgUrl({
276
+ protoPath: "/v1/comments",
277
+ data: serializedData,
278
+ host
279
+ }),
280
+ data: serializedData,
281
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
282
+ {
283
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
284
+ paths: [
285
+ { path: "comment.createdDate" },
286
+ { path: "comment.updatedDate" },
287
+ { path: "comment.commentDate" },
288
+ { path: "comment.content.commentDate" },
289
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
290
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
291
+ { path: "comment.content.attachments.image.urlExpirationDate" },
292
+ { path: "comment.content.attachments.video.urlExpirationDate" },
293
+ {
294
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
295
+ },
296
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
297
+ {
298
+ path: "comment.content.attachments.document.urlExpirationDate"
299
+ },
300
+ { path: "comment.draftContent.commentDate" },
301
+ {
302
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
303
+ },
304
+ {
305
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
306
+ },
307
+ {
308
+ path: "comment.draftContent.attachments.image.urlExpirationDate"
309
+ },
310
+ {
311
+ path: "comment.draftContent.attachments.video.urlExpirationDate"
312
+ },
313
+ {
314
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
315
+ },
316
+ {
317
+ path: "comment.draftContent.attachments.audio.urlExpirationDate"
318
+ },
319
+ {
320
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
321
+ }
322
+ ]
323
+ },
324
+ {
325
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
326
+ paths: [
327
+ {
328
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
329
+ },
330
+ {
331
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
332
+ },
333
+ {
334
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
335
+ },
336
+ {
337
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
338
+ },
339
+ {
340
+ path: "comment.content.richContent.nodes.imageData.image.duration"
341
+ },
342
+ {
343
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lat"
344
+ },
345
+ {
346
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lng"
347
+ },
348
+ {
349
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
350
+ },
351
+ {
352
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
353
+ },
354
+ {
355
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
356
+ },
357
+ {
358
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
359
+ },
360
+ {
361
+ path: "comment.content.richContent.nodes.videoData.video.duration"
362
+ },
363
+ {
364
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
365
+ },
366
+ {
367
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
368
+ },
369
+ {
370
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
371
+ },
372
+ {
373
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
374
+ },
375
+ {
376
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
377
+ },
378
+ {
379
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
380
+ },
381
+ {
382
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
383
+ },
384
+ {
385
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
386
+ },
387
+ {
388
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
389
+ },
390
+ {
391
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
392
+ },
393
+ {
394
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
395
+ },
396
+ {
397
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
398
+ },
399
+ {
400
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
401
+ },
402
+ {
403
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
404
+ },
405
+ {
406
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
407
+ },
408
+ {
409
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
410
+ },
411
+ {
412
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
413
+ },
414
+ {
415
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
416
+ }
417
+ ]
418
+ }
419
+ ])
420
+ };
421
+ return metadata;
422
+ }
423
+ return __createComment;
424
+ }
425
+ function getComment(payload) {
426
+ function __getComment({ host }) {
427
+ const metadata = {
428
+ entityFqdn: "wix.comments.v2.comment",
429
+ method: "GET",
430
+ methodFqn: "wix.comments.ng.v1.CommentsNg.GetComment",
431
+ packageName: PACKAGE_NAME,
432
+ url: resolveWixCommentsNgV1CommentsNgUrl({
433
+ protoPath: "/v1/comments/{commentId}",
434
+ data: payload,
435
+ host
436
+ }),
437
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
438
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
439
+ {
440
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
441
+ paths: [
442
+ { path: "comment.createdDate" },
443
+ { path: "comment.updatedDate" },
444
+ { path: "comment.commentDate" },
445
+ { path: "comment.content.commentDate" },
446
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
447
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
448
+ { path: "comment.content.attachments.image.urlExpirationDate" },
449
+ { path: "comment.content.attachments.video.urlExpirationDate" },
450
+ {
451
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
452
+ },
453
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
454
+ {
455
+ path: "comment.content.attachments.document.urlExpirationDate"
456
+ },
457
+ { path: "comment.draftContent.commentDate" },
458
+ {
459
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
460
+ },
461
+ {
462
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
463
+ },
464
+ {
465
+ path: "comment.draftContent.attachments.image.urlExpirationDate"
466
+ },
467
+ {
468
+ path: "comment.draftContent.attachments.video.urlExpirationDate"
469
+ },
470
+ {
471
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
472
+ },
473
+ {
474
+ path: "comment.draftContent.attachments.audio.urlExpirationDate"
475
+ },
476
+ {
477
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
478
+ }
479
+ ]
480
+ },
481
+ {
482
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
483
+ paths: [
484
+ {
485
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
486
+ },
487
+ {
488
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
489
+ },
490
+ {
491
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
492
+ },
493
+ {
494
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
495
+ },
496
+ {
497
+ path: "comment.content.richContent.nodes.imageData.image.duration"
498
+ },
499
+ {
500
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lat"
501
+ },
502
+ {
503
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lng"
504
+ },
505
+ {
506
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
507
+ },
508
+ {
509
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
510
+ },
511
+ {
512
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
513
+ },
514
+ {
515
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
516
+ },
517
+ {
518
+ path: "comment.content.richContent.nodes.videoData.video.duration"
519
+ },
520
+ {
521
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
522
+ },
523
+ {
524
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
525
+ },
526
+ {
527
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
528
+ },
529
+ {
530
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
531
+ },
532
+ {
533
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
534
+ },
535
+ {
536
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
537
+ },
538
+ {
539
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
540
+ },
541
+ {
542
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
543
+ },
544
+ {
545
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
546
+ },
547
+ {
548
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
549
+ },
550
+ {
551
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
552
+ },
553
+ {
554
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
555
+ },
556
+ {
557
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
558
+ },
559
+ {
560
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
561
+ },
562
+ {
563
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
564
+ },
565
+ {
566
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
567
+ },
568
+ {
569
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
570
+ },
571
+ {
572
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
573
+ }
574
+ ]
575
+ }
576
+ ])
577
+ };
578
+ return metadata;
579
+ }
580
+ return __getComment;
581
+ }
582
+ function updateComment(payload) {
583
+ function __updateComment({ host }) {
584
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
585
+ {
586
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
587
+ paths: [
588
+ { path: "comment.createdDate" },
589
+ { path: "comment.updatedDate" },
590
+ { path: "comment.commentDate" },
591
+ { path: "comment.content.commentDate" },
592
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
593
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
594
+ { path: "comment.content.attachments.image.urlExpirationDate" },
595
+ { path: "comment.content.attachments.video.urlExpirationDate" },
596
+ {
597
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
598
+ },
599
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
600
+ { path: "comment.content.attachments.document.urlExpirationDate" },
601
+ { path: "comment.draftContent.commentDate" },
602
+ {
603
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
604
+ },
605
+ {
606
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
607
+ },
608
+ { path: "comment.draftContent.attachments.image.urlExpirationDate" },
609
+ { path: "comment.draftContent.attachments.video.urlExpirationDate" },
610
+ {
611
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
612
+ },
613
+ { path: "comment.draftContent.attachments.audio.urlExpirationDate" },
614
+ {
615
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
616
+ }
617
+ ]
618
+ },
619
+ {
620
+ transformFn: import_float.transformSDKFloatToRESTFloat,
621
+ paths: [
622
+ {
623
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
624
+ },
625
+ {
626
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
627
+ },
628
+ {
629
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
630
+ },
631
+ {
632
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
633
+ },
634
+ {
635
+ path: "comment.content.richContent.nodes.imageData.image.duration"
636
+ },
637
+ { path: "comment.content.richContent.nodes.mapData.mapSettings.lat" },
638
+ { path: "comment.content.richContent.nodes.mapData.mapSettings.lng" },
639
+ {
640
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
641
+ },
642
+ {
643
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
644
+ },
645
+ {
646
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
647
+ },
648
+ {
649
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
650
+ },
651
+ {
652
+ path: "comment.content.richContent.nodes.videoData.video.duration"
653
+ },
654
+ {
655
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
656
+ },
657
+ {
658
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
659
+ },
660
+ {
661
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
662
+ },
663
+ {
664
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
665
+ },
666
+ {
667
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
668
+ },
669
+ {
670
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
671
+ },
672
+ {
673
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
674
+ },
675
+ {
676
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
677
+ },
678
+ {
679
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
680
+ },
681
+ {
682
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
683
+ },
684
+ {
685
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
686
+ },
687
+ {
688
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
689
+ },
690
+ {
691
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
692
+ },
693
+ {
694
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
695
+ },
696
+ {
697
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
698
+ },
699
+ {
700
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
701
+ },
702
+ {
703
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
704
+ },
705
+ {
706
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
707
+ }
708
+ ]
709
+ }
710
+ ]);
711
+ const metadata = {
712
+ entityFqdn: "wix.comments.v2.comment",
713
+ method: "PATCH",
714
+ methodFqn: "wix.comments.ng.v1.CommentsNg.UpdateComment",
715
+ packageName: PACKAGE_NAME,
716
+ url: resolveWixCommentsNgV1CommentsNgUrl({
717
+ protoPath: "/v1/comments/{comment.id}",
718
+ data: serializedData,
719
+ host
720
+ }),
721
+ data: serializedData,
722
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
723
+ {
724
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
725
+ paths: [
726
+ { path: "comment.createdDate" },
727
+ { path: "comment.updatedDate" },
728
+ { path: "comment.commentDate" },
729
+ { path: "comment.content.commentDate" },
730
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
731
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
732
+ { path: "comment.content.attachments.image.urlExpirationDate" },
733
+ { path: "comment.content.attachments.video.urlExpirationDate" },
734
+ {
735
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
736
+ },
737
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
738
+ {
739
+ path: "comment.content.attachments.document.urlExpirationDate"
740
+ },
741
+ { path: "comment.draftContent.commentDate" },
742
+ {
743
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
744
+ },
745
+ {
746
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
747
+ },
748
+ {
749
+ path: "comment.draftContent.attachments.image.urlExpirationDate"
750
+ },
751
+ {
752
+ path: "comment.draftContent.attachments.video.urlExpirationDate"
753
+ },
754
+ {
755
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
756
+ },
757
+ {
758
+ path: "comment.draftContent.attachments.audio.urlExpirationDate"
759
+ },
760
+ {
761
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
762
+ }
763
+ ]
764
+ },
765
+ {
766
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
767
+ paths: [
768
+ {
769
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
770
+ },
771
+ {
772
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
773
+ },
774
+ {
775
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
776
+ },
777
+ {
778
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
779
+ },
780
+ {
781
+ path: "comment.content.richContent.nodes.imageData.image.duration"
782
+ },
783
+ {
784
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lat"
785
+ },
786
+ {
787
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lng"
788
+ },
789
+ {
790
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
791
+ },
792
+ {
793
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
794
+ },
795
+ {
796
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
797
+ },
798
+ {
799
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
800
+ },
801
+ {
802
+ path: "comment.content.richContent.nodes.videoData.video.duration"
803
+ },
804
+ {
805
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
806
+ },
807
+ {
808
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
809
+ },
810
+ {
811
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
812
+ },
813
+ {
814
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
815
+ },
816
+ {
817
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
818
+ },
819
+ {
820
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
821
+ },
822
+ {
823
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
824
+ },
825
+ {
826
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
827
+ },
828
+ {
829
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
830
+ },
831
+ {
832
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
833
+ },
834
+ {
835
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
836
+ },
837
+ {
838
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
839
+ },
840
+ {
841
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
842
+ },
843
+ {
844
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
845
+ },
846
+ {
847
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
848
+ },
849
+ {
850
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
851
+ },
852
+ {
853
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
854
+ },
855
+ {
856
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
857
+ }
858
+ ]
859
+ }
860
+ ])
861
+ };
862
+ return metadata;
863
+ }
864
+ return __updateComment;
865
+ }
866
+ function deleteComment(payload) {
867
+ function __deleteComment({ host }) {
868
+ const metadata = {
869
+ entityFqdn: "wix.comments.v2.comment",
870
+ method: "DELETE",
871
+ methodFqn: "wix.comments.ng.v1.CommentsNg.DeleteComment",
872
+ packageName: PACKAGE_NAME,
873
+ url: resolveWixCommentsNgV1CommentsNgUrl({
874
+ protoPath: "/v1/comments/{commentId}",
875
+ data: payload,
876
+ host
877
+ }),
878
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
879
+ };
880
+ return metadata;
881
+ }
882
+ return __deleteComment;
883
+ }
884
+ function moderateDraftContent(payload) {
885
+ function __moderateDraftContent({ host }) {
886
+ const metadata = {
887
+ entityFqdn: "wix.comments.v2.comment",
888
+ method: "POST",
889
+ methodFqn: "wix.comments.ng.v1.CommentsNg.ModerateDraftContent",
890
+ packageName: PACKAGE_NAME,
891
+ url: resolveWixCommentsNgV1CommentsNgUrl({
892
+ protoPath: "/v1/comments/{commentId}/moderate",
893
+ data: payload,
894
+ host
895
+ }),
896
+ data: payload,
897
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
898
+ {
899
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
900
+ paths: [
901
+ { path: "comment.createdDate" },
902
+ { path: "comment.updatedDate" },
903
+ { path: "comment.commentDate" },
904
+ { path: "comment.content.commentDate" },
905
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
906
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
907
+ { path: "comment.content.attachments.image.urlExpirationDate" },
908
+ { path: "comment.content.attachments.video.urlExpirationDate" },
909
+ {
910
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
911
+ },
912
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
913
+ {
914
+ path: "comment.content.attachments.document.urlExpirationDate"
915
+ },
916
+ { path: "comment.draftContent.commentDate" },
917
+ {
918
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
919
+ },
920
+ {
921
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
922
+ },
923
+ {
924
+ path: "comment.draftContent.attachments.image.urlExpirationDate"
925
+ },
926
+ {
927
+ path: "comment.draftContent.attachments.video.urlExpirationDate"
928
+ },
929
+ {
930
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
931
+ },
932
+ {
933
+ path: "comment.draftContent.attachments.audio.urlExpirationDate"
934
+ },
935
+ {
936
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
937
+ }
938
+ ]
939
+ },
940
+ {
941
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
942
+ paths: [
943
+ {
944
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
945
+ },
946
+ {
947
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
948
+ },
949
+ {
950
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
951
+ },
952
+ {
953
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
954
+ },
955
+ {
956
+ path: "comment.content.richContent.nodes.imageData.image.duration"
957
+ },
958
+ {
959
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lat"
960
+ },
961
+ {
962
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lng"
963
+ },
964
+ {
965
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
966
+ },
967
+ {
968
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
969
+ },
970
+ {
971
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
972
+ },
973
+ {
974
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
975
+ },
976
+ {
977
+ path: "comment.content.richContent.nodes.videoData.video.duration"
978
+ },
979
+ {
980
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
981
+ },
982
+ {
983
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
984
+ },
985
+ {
986
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
987
+ },
988
+ {
989
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
990
+ },
991
+ {
992
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
993
+ },
994
+ {
995
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
996
+ },
997
+ {
998
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
999
+ },
1000
+ {
1001
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
1002
+ },
1003
+ {
1004
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
1005
+ },
1006
+ {
1007
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
1008
+ },
1009
+ {
1010
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
1011
+ },
1012
+ {
1013
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
1014
+ },
1015
+ {
1016
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
1017
+ },
1018
+ {
1019
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
1020
+ },
1021
+ {
1022
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
1023
+ },
1024
+ {
1025
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
1026
+ },
1027
+ {
1028
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
1029
+ },
1030
+ {
1031
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
1032
+ }
1033
+ ]
1034
+ }
1035
+ ])
1036
+ };
1037
+ return metadata;
1038
+ }
1039
+ return __moderateDraftContent;
1040
+ }
1041
+ function queryComments(payload) {
1042
+ function __queryComments({ host }) {
1043
+ const metadata = {
1044
+ entityFqdn: "wix.comments.v2.comment",
1045
+ method: "POST",
1046
+ methodFqn: "wix.comments.ng.v1.CommentsNg.QueryComments",
1047
+ packageName: PACKAGE_NAME,
1048
+ url: resolveWixCommentsNgV1CommentsNgUrl({
1049
+ protoPath: "/v1/comments/query-cursor",
1050
+ data: payload,
1051
+ host
1052
+ }),
1053
+ data: payload,
1054
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1055
+ {
1056
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1057
+ paths: [
1058
+ { path: "comments.createdDate" },
1059
+ { path: "comments.updatedDate" },
1060
+ { path: "comments.commentDate" },
1061
+ { path: "comments.content.commentDate" },
1062
+ {
1063
+ path: "comments.content.richContent.metadata.createdTimestamp"
1064
+ },
1065
+ {
1066
+ path: "comments.content.richContent.metadata.updatedTimestamp"
1067
+ },
1068
+ { path: "comments.content.attachments.image.urlExpirationDate" },
1069
+ { path: "comments.content.attachments.video.urlExpirationDate" },
1070
+ {
1071
+ path: "comments.content.attachments.video.posters.urlExpirationDate"
1072
+ },
1073
+ { path: "comments.content.attachments.audio.urlExpirationDate" },
1074
+ {
1075
+ path: "comments.content.attachments.document.urlExpirationDate"
1076
+ },
1077
+ { path: "comments.draftContent.commentDate" },
1078
+ {
1079
+ path: "comments.draftContent.richContent.metadata.createdTimestamp"
1080
+ },
1081
+ {
1082
+ path: "comments.draftContent.richContent.metadata.updatedTimestamp"
1083
+ },
1084
+ {
1085
+ path: "comments.draftContent.attachments.image.urlExpirationDate"
1086
+ },
1087
+ {
1088
+ path: "comments.draftContent.attachments.video.urlExpirationDate"
1089
+ },
1090
+ {
1091
+ path: "comments.draftContent.attachments.video.posters.urlExpirationDate"
1092
+ },
1093
+ {
1094
+ path: "comments.draftContent.attachments.audio.urlExpirationDate"
1095
+ },
1096
+ {
1097
+ path: "comments.draftContent.attachments.document.urlExpirationDate"
1098
+ }
1099
+ ]
1100
+ },
1101
+ {
1102
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1103
+ paths: [
1104
+ {
1105
+ path: "comments.content.richContent.nodes.galleryData.items.image.media.duration"
1106
+ },
1107
+ {
1108
+ path: "comments.content.richContent.nodes.galleryData.items.video.media.duration"
1109
+ },
1110
+ {
1111
+ path: "comments.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
1112
+ },
1113
+ {
1114
+ path: "comments.content.richContent.nodes.galleryData.options.item.ratio"
1115
+ },
1116
+ {
1117
+ path: "comments.content.richContent.nodes.imageData.image.duration"
1118
+ },
1119
+ {
1120
+ path: "comments.content.richContent.nodes.mapData.mapSettings.lat"
1121
+ },
1122
+ {
1123
+ path: "comments.content.richContent.nodes.mapData.mapSettings.lng"
1124
+ },
1125
+ {
1126
+ path: "comments.content.richContent.nodes.pollData.poll.image.duration"
1127
+ },
1128
+ {
1129
+ path: "comments.content.richContent.nodes.pollData.poll.options.image.duration"
1130
+ },
1131
+ {
1132
+ path: "comments.content.richContent.nodes.pollData.design.poll.background.image.duration"
1133
+ },
1134
+ {
1135
+ path: "comments.content.richContent.nodes.appEmbedData.image.duration"
1136
+ },
1137
+ {
1138
+ path: "comments.content.richContent.nodes.videoData.video.duration"
1139
+ },
1140
+ {
1141
+ path: "comments.content.richContent.nodes.videoData.thumbnail.duration"
1142
+ },
1143
+ {
1144
+ path: "comments.content.richContent.nodes.audioData.audio.duration"
1145
+ },
1146
+ {
1147
+ path: "comments.content.richContent.nodes.audioData.coverImage.duration"
1148
+ },
1149
+ {
1150
+ path: "comments.draftContent.richContent.nodes.galleryData.items.image.media.duration"
1151
+ },
1152
+ {
1153
+ path: "comments.draftContent.richContent.nodes.galleryData.items.video.media.duration"
1154
+ },
1155
+ {
1156
+ path: "comments.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
1157
+ },
1158
+ {
1159
+ path: "comments.draftContent.richContent.nodes.galleryData.options.item.ratio"
1160
+ },
1161
+ {
1162
+ path: "comments.draftContent.richContent.nodes.imageData.image.duration"
1163
+ },
1164
+ {
1165
+ path: "comments.draftContent.richContent.nodes.mapData.mapSettings.lat"
1166
+ },
1167
+ {
1168
+ path: "comments.draftContent.richContent.nodes.mapData.mapSettings.lng"
1169
+ },
1170
+ {
1171
+ path: "comments.draftContent.richContent.nodes.pollData.poll.image.duration"
1172
+ },
1173
+ {
1174
+ path: "comments.draftContent.richContent.nodes.pollData.poll.options.image.duration"
1175
+ },
1176
+ {
1177
+ path: "comments.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
1178
+ },
1179
+ {
1180
+ path: "comments.draftContent.richContent.nodes.appEmbedData.image.duration"
1181
+ },
1182
+ {
1183
+ path: "comments.draftContent.richContent.nodes.videoData.video.duration"
1184
+ },
1185
+ {
1186
+ path: "comments.draftContent.richContent.nodes.videoData.thumbnail.duration"
1187
+ },
1188
+ {
1189
+ path: "comments.draftContent.richContent.nodes.audioData.audio.duration"
1190
+ },
1191
+ {
1192
+ path: "comments.draftContent.richContent.nodes.audioData.coverImage.duration"
1193
+ }
1194
+ ]
1195
+ }
1196
+ ])
1197
+ };
1198
+ return metadata;
1199
+ }
1200
+ return __queryComments;
1201
+ }
1202
+ function markComment(payload) {
1203
+ function __markComment({ host }) {
1204
+ const metadata = {
1205
+ entityFqdn: "wix.comments.v2.comment",
1206
+ method: "PUT",
1207
+ methodFqn: "wix.comments.ng.v1.CommentsNg.MarkComment",
1208
+ packageName: PACKAGE_NAME,
1209
+ url: resolveWixCommentsNgV1CommentsNgUrl({
1210
+ protoPath: "/v1/comments/{commentId}/mark",
1211
+ data: payload,
1212
+ host
1213
+ }),
1214
+ data: payload,
1215
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1216
+ {
1217
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1218
+ paths: [
1219
+ { path: "comment.createdDate" },
1220
+ { path: "comment.updatedDate" },
1221
+ { path: "comment.commentDate" },
1222
+ { path: "comment.content.commentDate" },
1223
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
1224
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
1225
+ { path: "comment.content.attachments.image.urlExpirationDate" },
1226
+ { path: "comment.content.attachments.video.urlExpirationDate" },
1227
+ {
1228
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
1229
+ },
1230
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
1231
+ {
1232
+ path: "comment.content.attachments.document.urlExpirationDate"
1233
+ },
1234
+ { path: "comment.draftContent.commentDate" },
1235
+ {
1236
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
1237
+ },
1238
+ {
1239
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
1240
+ },
1241
+ {
1242
+ path: "comment.draftContent.attachments.image.urlExpirationDate"
1243
+ },
1244
+ {
1245
+ path: "comment.draftContent.attachments.video.urlExpirationDate"
1246
+ },
1247
+ {
1248
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
1249
+ },
1250
+ {
1251
+ path: "comment.draftContent.attachments.audio.urlExpirationDate"
1252
+ },
1253
+ {
1254
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
1255
+ }
1256
+ ]
1257
+ },
1258
+ {
1259
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1260
+ paths: [
1261
+ {
1262
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
1263
+ },
1264
+ {
1265
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
1266
+ },
1267
+ {
1268
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
1269
+ },
1270
+ {
1271
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
1272
+ },
1273
+ {
1274
+ path: "comment.content.richContent.nodes.imageData.image.duration"
1275
+ },
1276
+ {
1277
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lat"
1278
+ },
1279
+ {
1280
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lng"
1281
+ },
1282
+ {
1283
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
1284
+ },
1285
+ {
1286
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
1287
+ },
1288
+ {
1289
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
1290
+ },
1291
+ {
1292
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
1293
+ },
1294
+ {
1295
+ path: "comment.content.richContent.nodes.videoData.video.duration"
1296
+ },
1297
+ {
1298
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
1299
+ },
1300
+ {
1301
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
1302
+ },
1303
+ {
1304
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
1305
+ },
1306
+ {
1307
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
1308
+ },
1309
+ {
1310
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
1311
+ },
1312
+ {
1313
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
1314
+ },
1315
+ {
1316
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
1317
+ },
1318
+ {
1319
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
1320
+ },
1321
+ {
1322
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
1323
+ },
1324
+ {
1325
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
1326
+ },
1327
+ {
1328
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
1329
+ },
1330
+ {
1331
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
1332
+ },
1333
+ {
1334
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
1335
+ },
1336
+ {
1337
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
1338
+ },
1339
+ {
1340
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
1341
+ },
1342
+ {
1343
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
1344
+ },
1345
+ {
1346
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
1347
+ },
1348
+ {
1349
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
1350
+ }
1351
+ ]
1352
+ }
1353
+ ])
1354
+ };
1355
+ return metadata;
1356
+ }
1357
+ return __markComment;
1358
+ }
1359
+ function unmarkComment(payload) {
1360
+ function __unmarkComment({ host }) {
1361
+ const metadata = {
1362
+ entityFqdn: "wix.comments.v2.comment",
1363
+ method: "PUT",
1364
+ methodFqn: "wix.comments.ng.v1.CommentsNg.UnmarkComment",
1365
+ packageName: PACKAGE_NAME,
1366
+ url: resolveWixCommentsNgV1CommentsNgUrl({
1367
+ protoPath: "/v1/comments/{commentId}/unmark",
1368
+ data: payload,
1369
+ host
1370
+ }),
1371
+ data: payload,
1372
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1373
+ {
1374
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1375
+ paths: [
1376
+ { path: "comment.createdDate" },
1377
+ { path: "comment.updatedDate" },
1378
+ { path: "comment.commentDate" },
1379
+ { path: "comment.content.commentDate" },
1380
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
1381
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
1382
+ { path: "comment.content.attachments.image.urlExpirationDate" },
1383
+ { path: "comment.content.attachments.video.urlExpirationDate" },
1384
+ {
1385
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
1386
+ },
1387
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
1388
+ {
1389
+ path: "comment.content.attachments.document.urlExpirationDate"
1390
+ },
1391
+ { path: "comment.draftContent.commentDate" },
1392
+ {
1393
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
1394
+ },
1395
+ {
1396
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
1397
+ },
1398
+ {
1399
+ path: "comment.draftContent.attachments.image.urlExpirationDate"
1400
+ },
1401
+ {
1402
+ path: "comment.draftContent.attachments.video.urlExpirationDate"
1403
+ },
1404
+ {
1405
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
1406
+ },
1407
+ {
1408
+ path: "comment.draftContent.attachments.audio.urlExpirationDate"
1409
+ },
1410
+ {
1411
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
1412
+ }
1413
+ ]
1414
+ },
1415
+ {
1416
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1417
+ paths: [
1418
+ {
1419
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
1420
+ },
1421
+ {
1422
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
1423
+ },
1424
+ {
1425
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
1426
+ },
1427
+ {
1428
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
1429
+ },
1430
+ {
1431
+ path: "comment.content.richContent.nodes.imageData.image.duration"
1432
+ },
1433
+ {
1434
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lat"
1435
+ },
1436
+ {
1437
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lng"
1438
+ },
1439
+ {
1440
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
1441
+ },
1442
+ {
1443
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
1444
+ },
1445
+ {
1446
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
1447
+ },
1448
+ {
1449
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
1450
+ },
1451
+ {
1452
+ path: "comment.content.richContent.nodes.videoData.video.duration"
1453
+ },
1454
+ {
1455
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
1456
+ },
1457
+ {
1458
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
1459
+ },
1460
+ {
1461
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
1462
+ },
1463
+ {
1464
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
1465
+ },
1466
+ {
1467
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
1468
+ },
1469
+ {
1470
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
1471
+ },
1472
+ {
1473
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
1474
+ },
1475
+ {
1476
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
1477
+ },
1478
+ {
1479
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
1480
+ },
1481
+ {
1482
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
1483
+ },
1484
+ {
1485
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
1486
+ },
1487
+ {
1488
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
1489
+ },
1490
+ {
1491
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
1492
+ },
1493
+ {
1494
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
1495
+ },
1496
+ {
1497
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
1498
+ },
1499
+ {
1500
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
1501
+ },
1502
+ {
1503
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
1504
+ },
1505
+ {
1506
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
1507
+ }
1508
+ ]
1509
+ }
1510
+ ])
1511
+ };
1512
+ return metadata;
1513
+ }
1514
+ return __unmarkComment;
1515
+ }
1516
+ function hideComment(payload) {
1517
+ function __hideComment({ host }) {
1518
+ const metadata = {
1519
+ entityFqdn: "wix.comments.v2.comment",
1520
+ method: "PUT",
1521
+ methodFqn: "wix.comments.ng.v1.CommentsNg.HideComment",
1522
+ packageName: PACKAGE_NAME,
1523
+ url: resolveWixCommentsNgV1CommentsNgUrl({
1524
+ protoPath: "/v1/comments/{commentId}/hide",
1525
+ data: payload,
1526
+ host
1527
+ }),
1528
+ data: payload,
1529
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1530
+ {
1531
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1532
+ paths: [
1533
+ { path: "comment.createdDate" },
1534
+ { path: "comment.updatedDate" },
1535
+ { path: "comment.commentDate" },
1536
+ { path: "comment.content.commentDate" },
1537
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
1538
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
1539
+ { path: "comment.content.attachments.image.urlExpirationDate" },
1540
+ { path: "comment.content.attachments.video.urlExpirationDate" },
1541
+ {
1542
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
1543
+ },
1544
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
1545
+ {
1546
+ path: "comment.content.attachments.document.urlExpirationDate"
1547
+ },
1548
+ { path: "comment.draftContent.commentDate" },
1549
+ {
1550
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
1551
+ },
1552
+ {
1553
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
1554
+ },
1555
+ {
1556
+ path: "comment.draftContent.attachments.image.urlExpirationDate"
1557
+ },
1558
+ {
1559
+ path: "comment.draftContent.attachments.video.urlExpirationDate"
1560
+ },
1561
+ {
1562
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
1563
+ },
1564
+ {
1565
+ path: "comment.draftContent.attachments.audio.urlExpirationDate"
1566
+ },
1567
+ {
1568
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
1569
+ }
1570
+ ]
1571
+ },
1572
+ {
1573
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1574
+ paths: [
1575
+ {
1576
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
1577
+ },
1578
+ {
1579
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
1580
+ },
1581
+ {
1582
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
1583
+ },
1584
+ {
1585
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
1586
+ },
1587
+ {
1588
+ path: "comment.content.richContent.nodes.imageData.image.duration"
1589
+ },
1590
+ {
1591
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lat"
1592
+ },
1593
+ {
1594
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lng"
1595
+ },
1596
+ {
1597
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
1598
+ },
1599
+ {
1600
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
1601
+ },
1602
+ {
1603
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
1604
+ },
1605
+ {
1606
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
1607
+ },
1608
+ {
1609
+ path: "comment.content.richContent.nodes.videoData.video.duration"
1610
+ },
1611
+ {
1612
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
1613
+ },
1614
+ {
1615
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
1616
+ },
1617
+ {
1618
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
1619
+ },
1620
+ {
1621
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
1622
+ },
1623
+ {
1624
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
1625
+ },
1626
+ {
1627
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
1628
+ },
1629
+ {
1630
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
1631
+ },
1632
+ {
1633
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
1634
+ },
1635
+ {
1636
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
1637
+ },
1638
+ {
1639
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
1640
+ },
1641
+ {
1642
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
1643
+ },
1644
+ {
1645
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
1646
+ },
1647
+ {
1648
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
1649
+ },
1650
+ {
1651
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
1652
+ },
1653
+ {
1654
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
1655
+ },
1656
+ {
1657
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
1658
+ },
1659
+ {
1660
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
1661
+ },
1662
+ {
1663
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
1664
+ }
1665
+ ]
1666
+ }
1667
+ ])
1668
+ };
1669
+ return metadata;
1670
+ }
1671
+ return __hideComment;
1672
+ }
1673
+ function publishComment(payload) {
1674
+ function __publishComment({ host }) {
1675
+ const metadata = {
1676
+ entityFqdn: "wix.comments.v2.comment",
1677
+ method: "PUT",
1678
+ methodFqn: "wix.comments.ng.v1.CommentsNg.PublishComment",
1679
+ packageName: PACKAGE_NAME,
1680
+ url: resolveWixCommentsNgV1CommentsNgUrl({
1681
+ protoPath: "/v1/comments/{commentId}/publish",
1682
+ data: payload,
1683
+ host
1684
+ }),
1685
+ data: payload,
1686
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1687
+ {
1688
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1689
+ paths: [
1690
+ { path: "comment.createdDate" },
1691
+ { path: "comment.updatedDate" },
1692
+ { path: "comment.commentDate" },
1693
+ { path: "comment.content.commentDate" },
1694
+ { path: "comment.content.richContent.metadata.createdTimestamp" },
1695
+ { path: "comment.content.richContent.metadata.updatedTimestamp" },
1696
+ { path: "comment.content.attachments.image.urlExpirationDate" },
1697
+ { path: "comment.content.attachments.video.urlExpirationDate" },
1698
+ {
1699
+ path: "comment.content.attachments.video.posters.urlExpirationDate"
1700
+ },
1701
+ { path: "comment.content.attachments.audio.urlExpirationDate" },
1702
+ {
1703
+ path: "comment.content.attachments.document.urlExpirationDate"
1704
+ },
1705
+ { path: "comment.draftContent.commentDate" },
1706
+ {
1707
+ path: "comment.draftContent.richContent.metadata.createdTimestamp"
1708
+ },
1709
+ {
1710
+ path: "comment.draftContent.richContent.metadata.updatedTimestamp"
1711
+ },
1712
+ {
1713
+ path: "comment.draftContent.attachments.image.urlExpirationDate"
1714
+ },
1715
+ {
1716
+ path: "comment.draftContent.attachments.video.urlExpirationDate"
1717
+ },
1718
+ {
1719
+ path: "comment.draftContent.attachments.video.posters.urlExpirationDate"
1720
+ },
1721
+ {
1722
+ path: "comment.draftContent.attachments.audio.urlExpirationDate"
1723
+ },
1724
+ {
1725
+ path: "comment.draftContent.attachments.document.urlExpirationDate"
1726
+ }
1727
+ ]
1728
+ },
1729
+ {
1730
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1731
+ paths: [
1732
+ {
1733
+ path: "comment.content.richContent.nodes.galleryData.items.image.media.duration"
1734
+ },
1735
+ {
1736
+ path: "comment.content.richContent.nodes.galleryData.items.video.media.duration"
1737
+ },
1738
+ {
1739
+ path: "comment.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
1740
+ },
1741
+ {
1742
+ path: "comment.content.richContent.nodes.galleryData.options.item.ratio"
1743
+ },
1744
+ {
1745
+ path: "comment.content.richContent.nodes.imageData.image.duration"
1746
+ },
1747
+ {
1748
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lat"
1749
+ },
1750
+ {
1751
+ path: "comment.content.richContent.nodes.mapData.mapSettings.lng"
1752
+ },
1753
+ {
1754
+ path: "comment.content.richContent.nodes.pollData.poll.image.duration"
1755
+ },
1756
+ {
1757
+ path: "comment.content.richContent.nodes.pollData.poll.options.image.duration"
1758
+ },
1759
+ {
1760
+ path: "comment.content.richContent.nodes.pollData.design.poll.background.image.duration"
1761
+ },
1762
+ {
1763
+ path: "comment.content.richContent.nodes.appEmbedData.image.duration"
1764
+ },
1765
+ {
1766
+ path: "comment.content.richContent.nodes.videoData.video.duration"
1767
+ },
1768
+ {
1769
+ path: "comment.content.richContent.nodes.videoData.thumbnail.duration"
1770
+ },
1771
+ {
1772
+ path: "comment.content.richContent.nodes.audioData.audio.duration"
1773
+ },
1774
+ {
1775
+ path: "comment.content.richContent.nodes.audioData.coverImage.duration"
1776
+ },
1777
+ {
1778
+ path: "comment.draftContent.richContent.nodes.galleryData.items.image.media.duration"
1779
+ },
1780
+ {
1781
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.media.duration"
1782
+ },
1783
+ {
1784
+ path: "comment.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
1785
+ },
1786
+ {
1787
+ path: "comment.draftContent.richContent.nodes.galleryData.options.item.ratio"
1788
+ },
1789
+ {
1790
+ path: "comment.draftContent.richContent.nodes.imageData.image.duration"
1791
+ },
1792
+ {
1793
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lat"
1794
+ },
1795
+ {
1796
+ path: "comment.draftContent.richContent.nodes.mapData.mapSettings.lng"
1797
+ },
1798
+ {
1799
+ path: "comment.draftContent.richContent.nodes.pollData.poll.image.duration"
1800
+ },
1801
+ {
1802
+ path: "comment.draftContent.richContent.nodes.pollData.poll.options.image.duration"
1803
+ },
1804
+ {
1805
+ path: "comment.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
1806
+ },
1807
+ {
1808
+ path: "comment.draftContent.richContent.nodes.appEmbedData.image.duration"
1809
+ },
1810
+ {
1811
+ path: "comment.draftContent.richContent.nodes.videoData.video.duration"
1812
+ },
1813
+ {
1814
+ path: "comment.draftContent.richContent.nodes.videoData.thumbnail.duration"
1815
+ },
1816
+ {
1817
+ path: "comment.draftContent.richContent.nodes.audioData.audio.duration"
1818
+ },
1819
+ {
1820
+ path: "comment.draftContent.richContent.nodes.audioData.coverImage.duration"
1821
+ }
1822
+ ]
1823
+ }
1824
+ ])
1825
+ };
1826
+ return metadata;
1827
+ }
1828
+ return __publishComment;
1829
+ }
1830
+ function countComments(payload) {
1831
+ function __countComments({ host }) {
1832
+ const metadata = {
1833
+ entityFqdn: "wix.comments.v2.comment",
1834
+ method: "POST",
1835
+ methodFqn: "wix.comments.ng.v1.CommentsNg.CountComments",
1836
+ packageName: PACKAGE_NAME,
1837
+ url: resolveWixCommentsNgV1CommentsNgUrl({
1838
+ protoPath: "/v1/comments/count",
1839
+ data: payload,
1840
+ host
1841
+ }),
1842
+ data: payload
1843
+ };
1844
+ return metadata;
1845
+ }
1846
+ return __countComments;
1847
+ }
1848
+ function listCommentsByResource(payload) {
1849
+ function __listCommentsByResource({ host }) {
1850
+ const metadata = {
1851
+ entityFqdn: "wix.comments.v2.comment",
1852
+ method: "GET",
1853
+ methodFqn: "wix.comments.ng.v1.CommentsNg.ListCommentsByResource",
1854
+ packageName: PACKAGE_NAME,
1855
+ url: resolveWixCommentsNgV1CommentsNgUrl({
1856
+ protoPath: "/v1/comments/list-by-resource",
1857
+ data: payload,
1858
+ host
1859
+ }),
1860
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
1861
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1862
+ {
1863
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1864
+ paths: [
1865
+ { path: "comments.createdDate" },
1866
+ { path: "comments.updatedDate" },
1867
+ { path: "comments.commentDate" },
1868
+ { path: "comments.content.commentDate" },
1869
+ {
1870
+ path: "comments.content.richContent.metadata.createdTimestamp"
1871
+ },
1872
+ {
1873
+ path: "comments.content.richContent.metadata.updatedTimestamp"
1874
+ },
1875
+ { path: "comments.content.attachments.image.urlExpirationDate" },
1876
+ { path: "comments.content.attachments.video.urlExpirationDate" },
1877
+ {
1878
+ path: "comments.content.attachments.video.posters.urlExpirationDate"
1879
+ },
1880
+ { path: "comments.content.attachments.audio.urlExpirationDate" },
1881
+ {
1882
+ path: "comments.content.attachments.document.urlExpirationDate"
1883
+ },
1884
+ { path: "comments.draftContent.commentDate" },
1885
+ {
1886
+ path: "comments.draftContent.richContent.metadata.createdTimestamp"
1887
+ },
1888
+ {
1889
+ path: "comments.draftContent.richContent.metadata.updatedTimestamp"
1890
+ },
1891
+ {
1892
+ path: "comments.draftContent.attachments.image.urlExpirationDate"
1893
+ },
1894
+ {
1895
+ path: "comments.draftContent.attachments.video.urlExpirationDate"
1896
+ },
1897
+ {
1898
+ path: "comments.draftContent.attachments.video.posters.urlExpirationDate"
1899
+ },
1900
+ {
1901
+ path: "comments.draftContent.attachments.audio.urlExpirationDate"
1902
+ },
1903
+ {
1904
+ path: "comments.draftContent.attachments.document.urlExpirationDate"
1905
+ },
1906
+ { path: "commentReplies.*.replies.createdDate" },
1907
+ { path: "commentReplies.*.replies.updatedDate" },
1908
+ { path: "commentReplies.*.replies.commentDate" },
1909
+ { path: "commentReplies.*.replies.content.commentDate" },
1910
+ {
1911
+ path: "commentReplies.*.replies.content.richContent.metadata.createdTimestamp"
1912
+ },
1913
+ {
1914
+ path: "commentReplies.*.replies.content.richContent.metadata.updatedTimestamp"
1915
+ },
1916
+ {
1917
+ path: "commentReplies.*.replies.content.attachments.image.urlExpirationDate"
1918
+ },
1919
+ {
1920
+ path: "commentReplies.*.replies.content.attachments.video.urlExpirationDate"
1921
+ },
1922
+ {
1923
+ path: "commentReplies.*.replies.content.attachments.video.posters.urlExpirationDate"
1924
+ },
1925
+ {
1926
+ path: "commentReplies.*.replies.content.attachments.audio.urlExpirationDate"
1927
+ },
1928
+ {
1929
+ path: "commentReplies.*.replies.content.attachments.document.urlExpirationDate"
1930
+ },
1931
+ { path: "commentReplies.*.replies.draftContent.commentDate" },
1932
+ {
1933
+ path: "commentReplies.*.replies.draftContent.richContent.metadata.createdTimestamp"
1934
+ },
1935
+ {
1936
+ path: "commentReplies.*.replies.draftContent.richContent.metadata.updatedTimestamp"
1937
+ },
1938
+ {
1939
+ path: "commentReplies.*.replies.draftContent.attachments.image.urlExpirationDate"
1940
+ },
1941
+ {
1942
+ path: "commentReplies.*.replies.draftContent.attachments.video.urlExpirationDate"
1943
+ },
1944
+ {
1945
+ path: "commentReplies.*.replies.draftContent.attachments.video.posters.urlExpirationDate"
1946
+ },
1947
+ {
1948
+ path: "commentReplies.*.replies.draftContent.attachments.audio.urlExpirationDate"
1949
+ },
1950
+ {
1951
+ path: "commentReplies.*.replies.draftContent.attachments.document.urlExpirationDate"
1952
+ }
1953
+ ]
1954
+ },
1955
+ {
1956
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1957
+ paths: [
1958
+ {
1959
+ path: "comments.content.richContent.nodes.galleryData.items.image.media.duration"
1960
+ },
1961
+ {
1962
+ path: "comments.content.richContent.nodes.galleryData.items.video.media.duration"
1963
+ },
1964
+ {
1965
+ path: "comments.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
1966
+ },
1967
+ {
1968
+ path: "comments.content.richContent.nodes.galleryData.options.item.ratio"
1969
+ },
1970
+ {
1971
+ path: "comments.content.richContent.nodes.imageData.image.duration"
1972
+ },
1973
+ {
1974
+ path: "comments.content.richContent.nodes.mapData.mapSettings.lat"
1975
+ },
1976
+ {
1977
+ path: "comments.content.richContent.nodes.mapData.mapSettings.lng"
1978
+ },
1979
+ {
1980
+ path: "comments.content.richContent.nodes.pollData.poll.image.duration"
1981
+ },
1982
+ {
1983
+ path: "comments.content.richContent.nodes.pollData.poll.options.image.duration"
1984
+ },
1985
+ {
1986
+ path: "comments.content.richContent.nodes.pollData.design.poll.background.image.duration"
1987
+ },
1988
+ {
1989
+ path: "comments.content.richContent.nodes.appEmbedData.image.duration"
1990
+ },
1991
+ {
1992
+ path: "comments.content.richContent.nodes.videoData.video.duration"
1993
+ },
1994
+ {
1995
+ path: "comments.content.richContent.nodes.videoData.thumbnail.duration"
1996
+ },
1997
+ {
1998
+ path: "comments.content.richContent.nodes.audioData.audio.duration"
1999
+ },
2000
+ {
2001
+ path: "comments.content.richContent.nodes.audioData.coverImage.duration"
2002
+ },
2003
+ {
2004
+ path: "comments.draftContent.richContent.nodes.galleryData.items.image.media.duration"
2005
+ },
2006
+ {
2007
+ path: "comments.draftContent.richContent.nodes.galleryData.items.video.media.duration"
2008
+ },
2009
+ {
2010
+ path: "comments.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
2011
+ },
2012
+ {
2013
+ path: "comments.draftContent.richContent.nodes.galleryData.options.item.ratio"
2014
+ },
2015
+ {
2016
+ path: "comments.draftContent.richContent.nodes.imageData.image.duration"
2017
+ },
2018
+ {
2019
+ path: "comments.draftContent.richContent.nodes.mapData.mapSettings.lat"
2020
+ },
2021
+ {
2022
+ path: "comments.draftContent.richContent.nodes.mapData.mapSettings.lng"
2023
+ },
2024
+ {
2025
+ path: "comments.draftContent.richContent.nodes.pollData.poll.image.duration"
2026
+ },
2027
+ {
2028
+ path: "comments.draftContent.richContent.nodes.pollData.poll.options.image.duration"
2029
+ },
2030
+ {
2031
+ path: "comments.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
2032
+ },
2033
+ {
2034
+ path: "comments.draftContent.richContent.nodes.appEmbedData.image.duration"
2035
+ },
2036
+ {
2037
+ path: "comments.draftContent.richContent.nodes.videoData.video.duration"
2038
+ },
2039
+ {
2040
+ path: "comments.draftContent.richContent.nodes.videoData.thumbnail.duration"
2041
+ },
2042
+ {
2043
+ path: "comments.draftContent.richContent.nodes.audioData.audio.duration"
2044
+ },
2045
+ {
2046
+ path: "comments.draftContent.richContent.nodes.audioData.coverImage.duration"
2047
+ },
2048
+ {
2049
+ path: "commentReplies.*.replies.content.richContent.nodes.galleryData.items.image.media.duration"
2050
+ },
2051
+ {
2052
+ path: "commentReplies.*.replies.content.richContent.nodes.galleryData.items.video.media.duration"
2053
+ },
2054
+ {
2055
+ path: "commentReplies.*.replies.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
2056
+ },
2057
+ {
2058
+ path: "commentReplies.*.replies.content.richContent.nodes.galleryData.options.item.ratio"
2059
+ },
2060
+ {
2061
+ path: "commentReplies.*.replies.content.richContent.nodes.imageData.image.duration"
2062
+ },
2063
+ {
2064
+ path: "commentReplies.*.replies.content.richContent.nodes.mapData.mapSettings.lat"
2065
+ },
2066
+ {
2067
+ path: "commentReplies.*.replies.content.richContent.nodes.mapData.mapSettings.lng"
2068
+ },
2069
+ {
2070
+ path: "commentReplies.*.replies.content.richContent.nodes.pollData.poll.image.duration"
2071
+ },
2072
+ {
2073
+ path: "commentReplies.*.replies.content.richContent.nodes.pollData.poll.options.image.duration"
2074
+ },
2075
+ {
2076
+ path: "commentReplies.*.replies.content.richContent.nodes.pollData.design.poll.background.image.duration"
2077
+ },
2078
+ {
2079
+ path: "commentReplies.*.replies.content.richContent.nodes.appEmbedData.image.duration"
2080
+ },
2081
+ {
2082
+ path: "commentReplies.*.replies.content.richContent.nodes.videoData.video.duration"
2083
+ },
2084
+ {
2085
+ path: "commentReplies.*.replies.content.richContent.nodes.videoData.thumbnail.duration"
2086
+ },
2087
+ {
2088
+ path: "commentReplies.*.replies.content.richContent.nodes.audioData.audio.duration"
2089
+ },
2090
+ {
2091
+ path: "commentReplies.*.replies.content.richContent.nodes.audioData.coverImage.duration"
2092
+ },
2093
+ {
2094
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.galleryData.items.image.media.duration"
2095
+ },
2096
+ {
2097
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.galleryData.items.video.media.duration"
2098
+ },
2099
+ {
2100
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
2101
+ },
2102
+ {
2103
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.galleryData.options.item.ratio"
2104
+ },
2105
+ {
2106
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.imageData.image.duration"
2107
+ },
2108
+ {
2109
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.mapData.mapSettings.lat"
2110
+ },
2111
+ {
2112
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.mapData.mapSettings.lng"
2113
+ },
2114
+ {
2115
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.pollData.poll.image.duration"
2116
+ },
2117
+ {
2118
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.pollData.poll.options.image.duration"
2119
+ },
2120
+ {
2121
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
2122
+ },
2123
+ {
2124
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.appEmbedData.image.duration"
2125
+ },
2126
+ {
2127
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.videoData.video.duration"
2128
+ },
2129
+ {
2130
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.videoData.thumbnail.duration"
2131
+ },
2132
+ {
2133
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.audioData.audio.duration"
2134
+ },
2135
+ {
2136
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.audioData.coverImage.duration"
2137
+ }
2138
+ ]
2139
+ }
2140
+ ])
2141
+ };
2142
+ return metadata;
2143
+ }
2144
+ return __listCommentsByResource;
2145
+ }
2146
+ function getCommentThread(payload) {
2147
+ function __getCommentThread({ host }) {
2148
+ const metadata = {
2149
+ entityFqdn: "wix.comments.v2.comment",
2150
+ method: "GET",
2151
+ methodFqn: "wix.comments.ng.v1.CommentsNg.GetCommentThread",
2152
+ packageName: PACKAGE_NAME,
2153
+ url: resolveWixCommentsNgV1CommentsNgUrl({
2154
+ protoPath: "/v1/comments/{commentId}/thread",
2155
+ data: payload,
2156
+ host
2157
+ }),
2158
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
2159
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
2160
+ {
2161
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
2162
+ paths: [
2163
+ { path: "comments.createdDate" },
2164
+ { path: "comments.updatedDate" },
2165
+ { path: "comments.commentDate" },
2166
+ { path: "comments.content.commentDate" },
2167
+ {
2168
+ path: "comments.content.richContent.metadata.createdTimestamp"
2169
+ },
2170
+ {
2171
+ path: "comments.content.richContent.metadata.updatedTimestamp"
2172
+ },
2173
+ { path: "comments.content.attachments.image.urlExpirationDate" },
2174
+ { path: "comments.content.attachments.video.urlExpirationDate" },
2175
+ {
2176
+ path: "comments.content.attachments.video.posters.urlExpirationDate"
2177
+ },
2178
+ { path: "comments.content.attachments.audio.urlExpirationDate" },
2179
+ {
2180
+ path: "comments.content.attachments.document.urlExpirationDate"
2181
+ },
2182
+ { path: "comments.draftContent.commentDate" },
2183
+ {
2184
+ path: "comments.draftContent.richContent.metadata.createdTimestamp"
2185
+ },
2186
+ {
2187
+ path: "comments.draftContent.richContent.metadata.updatedTimestamp"
2188
+ },
2189
+ {
2190
+ path: "comments.draftContent.attachments.image.urlExpirationDate"
2191
+ },
2192
+ {
2193
+ path: "comments.draftContent.attachments.video.urlExpirationDate"
2194
+ },
2195
+ {
2196
+ path: "comments.draftContent.attachments.video.posters.urlExpirationDate"
2197
+ },
2198
+ {
2199
+ path: "comments.draftContent.attachments.audio.urlExpirationDate"
2200
+ },
2201
+ {
2202
+ path: "comments.draftContent.attachments.document.urlExpirationDate"
2203
+ },
2204
+ { path: "commentReplies.*.replies.createdDate" },
2205
+ { path: "commentReplies.*.replies.updatedDate" },
2206
+ { path: "commentReplies.*.replies.commentDate" },
2207
+ { path: "commentReplies.*.replies.content.commentDate" },
2208
+ {
2209
+ path: "commentReplies.*.replies.content.richContent.metadata.createdTimestamp"
2210
+ },
2211
+ {
2212
+ path: "commentReplies.*.replies.content.richContent.metadata.updatedTimestamp"
2213
+ },
2214
+ {
2215
+ path: "commentReplies.*.replies.content.attachments.image.urlExpirationDate"
2216
+ },
2217
+ {
2218
+ path: "commentReplies.*.replies.content.attachments.video.urlExpirationDate"
2219
+ },
2220
+ {
2221
+ path: "commentReplies.*.replies.content.attachments.video.posters.urlExpirationDate"
2222
+ },
2223
+ {
2224
+ path: "commentReplies.*.replies.content.attachments.audio.urlExpirationDate"
2225
+ },
2226
+ {
2227
+ path: "commentReplies.*.replies.content.attachments.document.urlExpirationDate"
2228
+ },
2229
+ { path: "commentReplies.*.replies.draftContent.commentDate" },
2230
+ {
2231
+ path: "commentReplies.*.replies.draftContent.richContent.metadata.createdTimestamp"
2232
+ },
2233
+ {
2234
+ path: "commentReplies.*.replies.draftContent.richContent.metadata.updatedTimestamp"
2235
+ },
2236
+ {
2237
+ path: "commentReplies.*.replies.draftContent.attachments.image.urlExpirationDate"
2238
+ },
2239
+ {
2240
+ path: "commentReplies.*.replies.draftContent.attachments.video.urlExpirationDate"
2241
+ },
2242
+ {
2243
+ path: "commentReplies.*.replies.draftContent.attachments.video.posters.urlExpirationDate"
2244
+ },
2245
+ {
2246
+ path: "commentReplies.*.replies.draftContent.attachments.audio.urlExpirationDate"
2247
+ },
2248
+ {
2249
+ path: "commentReplies.*.replies.draftContent.attachments.document.urlExpirationDate"
2250
+ }
2251
+ ]
2252
+ },
2253
+ {
2254
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
2255
+ paths: [
2256
+ {
2257
+ path: "comments.content.richContent.nodes.galleryData.items.image.media.duration"
2258
+ },
2259
+ {
2260
+ path: "comments.content.richContent.nodes.galleryData.items.video.media.duration"
2261
+ },
2262
+ {
2263
+ path: "comments.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
2264
+ },
2265
+ {
2266
+ path: "comments.content.richContent.nodes.galleryData.options.item.ratio"
2267
+ },
2268
+ {
2269
+ path: "comments.content.richContent.nodes.imageData.image.duration"
2270
+ },
2271
+ {
2272
+ path: "comments.content.richContent.nodes.mapData.mapSettings.lat"
2273
+ },
2274
+ {
2275
+ path: "comments.content.richContent.nodes.mapData.mapSettings.lng"
2276
+ },
2277
+ {
2278
+ path: "comments.content.richContent.nodes.pollData.poll.image.duration"
2279
+ },
2280
+ {
2281
+ path: "comments.content.richContent.nodes.pollData.poll.options.image.duration"
2282
+ },
2283
+ {
2284
+ path: "comments.content.richContent.nodes.pollData.design.poll.background.image.duration"
2285
+ },
2286
+ {
2287
+ path: "comments.content.richContent.nodes.appEmbedData.image.duration"
2288
+ },
2289
+ {
2290
+ path: "comments.content.richContent.nodes.videoData.video.duration"
2291
+ },
2292
+ {
2293
+ path: "comments.content.richContent.nodes.videoData.thumbnail.duration"
2294
+ },
2295
+ {
2296
+ path: "comments.content.richContent.nodes.audioData.audio.duration"
2297
+ },
2298
+ {
2299
+ path: "comments.content.richContent.nodes.audioData.coverImage.duration"
2300
+ },
2301
+ {
2302
+ path: "comments.draftContent.richContent.nodes.galleryData.items.image.media.duration"
2303
+ },
2304
+ {
2305
+ path: "comments.draftContent.richContent.nodes.galleryData.items.video.media.duration"
2306
+ },
2307
+ {
2308
+ path: "comments.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
2309
+ },
2310
+ {
2311
+ path: "comments.draftContent.richContent.nodes.galleryData.options.item.ratio"
2312
+ },
2313
+ {
2314
+ path: "comments.draftContent.richContent.nodes.imageData.image.duration"
2315
+ },
2316
+ {
2317
+ path: "comments.draftContent.richContent.nodes.mapData.mapSettings.lat"
2318
+ },
2319
+ {
2320
+ path: "comments.draftContent.richContent.nodes.mapData.mapSettings.lng"
2321
+ },
2322
+ {
2323
+ path: "comments.draftContent.richContent.nodes.pollData.poll.image.duration"
2324
+ },
2325
+ {
2326
+ path: "comments.draftContent.richContent.nodes.pollData.poll.options.image.duration"
2327
+ },
2328
+ {
2329
+ path: "comments.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
2330
+ },
2331
+ {
2332
+ path: "comments.draftContent.richContent.nodes.appEmbedData.image.duration"
2333
+ },
2334
+ {
2335
+ path: "comments.draftContent.richContent.nodes.videoData.video.duration"
2336
+ },
2337
+ {
2338
+ path: "comments.draftContent.richContent.nodes.videoData.thumbnail.duration"
2339
+ },
2340
+ {
2341
+ path: "comments.draftContent.richContent.nodes.audioData.audio.duration"
2342
+ },
2343
+ {
2344
+ path: "comments.draftContent.richContent.nodes.audioData.coverImage.duration"
2345
+ },
2346
+ {
2347
+ path: "commentReplies.*.replies.content.richContent.nodes.galleryData.items.image.media.duration"
2348
+ },
2349
+ {
2350
+ path: "commentReplies.*.replies.content.richContent.nodes.galleryData.items.video.media.duration"
2351
+ },
2352
+ {
2353
+ path: "commentReplies.*.replies.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
2354
+ },
2355
+ {
2356
+ path: "commentReplies.*.replies.content.richContent.nodes.galleryData.options.item.ratio"
2357
+ },
2358
+ {
2359
+ path: "commentReplies.*.replies.content.richContent.nodes.imageData.image.duration"
2360
+ },
2361
+ {
2362
+ path: "commentReplies.*.replies.content.richContent.nodes.mapData.mapSettings.lat"
2363
+ },
2364
+ {
2365
+ path: "commentReplies.*.replies.content.richContent.nodes.mapData.mapSettings.lng"
2366
+ },
2367
+ {
2368
+ path: "commentReplies.*.replies.content.richContent.nodes.pollData.poll.image.duration"
2369
+ },
2370
+ {
2371
+ path: "commentReplies.*.replies.content.richContent.nodes.pollData.poll.options.image.duration"
2372
+ },
2373
+ {
2374
+ path: "commentReplies.*.replies.content.richContent.nodes.pollData.design.poll.background.image.duration"
2375
+ },
2376
+ {
2377
+ path: "commentReplies.*.replies.content.richContent.nodes.appEmbedData.image.duration"
2378
+ },
2379
+ {
2380
+ path: "commentReplies.*.replies.content.richContent.nodes.videoData.video.duration"
2381
+ },
2382
+ {
2383
+ path: "commentReplies.*.replies.content.richContent.nodes.videoData.thumbnail.duration"
2384
+ },
2385
+ {
2386
+ path: "commentReplies.*.replies.content.richContent.nodes.audioData.audio.duration"
2387
+ },
2388
+ {
2389
+ path: "commentReplies.*.replies.content.richContent.nodes.audioData.coverImage.duration"
2390
+ },
2391
+ {
2392
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.galleryData.items.image.media.duration"
2393
+ },
2394
+ {
2395
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.galleryData.items.video.media.duration"
2396
+ },
2397
+ {
2398
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
2399
+ },
2400
+ {
2401
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.galleryData.options.item.ratio"
2402
+ },
2403
+ {
2404
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.imageData.image.duration"
2405
+ },
2406
+ {
2407
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.mapData.mapSettings.lat"
2408
+ },
2409
+ {
2410
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.mapData.mapSettings.lng"
2411
+ },
2412
+ {
2413
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.pollData.poll.image.duration"
2414
+ },
2415
+ {
2416
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.pollData.poll.options.image.duration"
2417
+ },
2418
+ {
2419
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
2420
+ },
2421
+ {
2422
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.appEmbedData.image.duration"
2423
+ },
2424
+ {
2425
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.videoData.video.duration"
2426
+ },
2427
+ {
2428
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.videoData.thumbnail.duration"
2429
+ },
2430
+ {
2431
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.audioData.audio.duration"
2432
+ },
2433
+ {
2434
+ path: "commentReplies.*.replies.draftContent.richContent.nodes.audioData.coverImage.duration"
2435
+ }
2436
+ ]
2437
+ }
2438
+ ])
2439
+ };
2440
+ return metadata;
2441
+ }
2442
+ return __getCommentThread;
2443
+ }
2444
+ function bulkPublishComment(payload) {
2445
+ function __bulkPublishComment({ host }) {
2446
+ const metadata = {
2447
+ entityFqdn: "wix.comments.v2.comment",
2448
+ method: "POST",
2449
+ methodFqn: "wix.comments.ng.v1.CommentsNg.BulkPublishComment",
2450
+ packageName: PACKAGE_NAME,
2451
+ url: resolveWixCommentsNgV1CommentsNgUrl({
2452
+ protoPath: "/v1/bulk/comments/publish-by-filter",
2453
+ data: payload,
2454
+ host
2455
+ }),
2456
+ data: payload
2457
+ };
2458
+ return metadata;
2459
+ }
2460
+ return __bulkPublishComment;
2461
+ }
2462
+ function bulkHideComment(payload) {
2463
+ function __bulkHideComment({ host }) {
2464
+ const metadata = {
2465
+ entityFqdn: "wix.comments.v2.comment",
2466
+ method: "PUT",
2467
+ methodFqn: "wix.comments.ng.v1.CommentsNg.BulkHideComment",
2468
+ packageName: PACKAGE_NAME,
2469
+ url: resolveWixCommentsNgV1CommentsNgUrl({
2470
+ protoPath: "/v1/bulk/comments/hide-by-filter",
2471
+ data: payload,
2472
+ host
2473
+ }),
2474
+ data: payload
2475
+ };
2476
+ return metadata;
2477
+ }
2478
+ return __bulkHideComment;
2479
+ }
2480
+ function bulkDeleteComment(payload) {
2481
+ function __bulkDeleteComment({ host }) {
2482
+ const metadata = {
2483
+ entityFqdn: "wix.comments.v2.comment",
2484
+ method: "PUT",
2485
+ methodFqn: "wix.comments.ng.v1.CommentsNg.BulkDeleteComment",
2486
+ packageName: PACKAGE_NAME,
2487
+ url: resolveWixCommentsNgV1CommentsNgUrl({
2488
+ protoPath: "/v1/bulk/comments/delete-by-filter",
2489
+ data: payload,
2490
+ host
2491
+ }),
2492
+ data: payload
2493
+ };
2494
+ return metadata;
2495
+ }
2496
+ return __bulkDeleteComment;
2497
+ }
2498
+ function bulkModerateDraftContent(payload) {
2499
+ function __bulkModerateDraftContent({ host }) {
2500
+ const metadata = {
2501
+ entityFqdn: "wix.comments.v2.comment",
2502
+ method: "POST",
2503
+ methodFqn: "wix.comments.ng.v1.CommentsNg.BulkModerateDraftContent",
2504
+ packageName: PACKAGE_NAME,
2505
+ url: resolveWixCommentsNgV1CommentsNgUrl({
2506
+ protoPath: "/v1/bulk/comments/moderate-by-filter",
2507
+ data: payload,
2508
+ host
2509
+ }),
2510
+ data: payload
2511
+ };
2512
+ return metadata;
2513
+ }
2514
+ return __bulkModerateDraftContent;
2515
+ }
2516
+ function bulkMoveCommentByFilter(payload) {
2517
+ function __bulkMoveCommentByFilter({ host }) {
2518
+ const metadata = {
2519
+ entityFqdn: "wix.comments.v2.comment",
2520
+ method: "PUT",
2521
+ methodFqn: "wix.comments.ng.v1.CommentsNg.BulkMoveCommentByFilter",
2522
+ packageName: PACKAGE_NAME,
2523
+ url: resolveWixCommentsNgV1CommentsNgUrl({
2524
+ protoPath: "/v1/bulk/comments/move-by-filter",
2525
+ data: payload,
2526
+ host
2527
+ }),
2528
+ data: payload
2529
+ };
2530
+ return metadata;
2531
+ }
2532
+ return __bulkMoveCommentByFilter;
2533
+ }
2534
+
2535
+ // src/comments-v2-comment-comments.universal.ts
2536
+ var import_audio = require("@wix/sdk-runtime/transformations/audio");
2537
+ var import_audio2 = require("@wix/sdk-runtime/transformations/audio");
2538
+ var import_image = require("@wix/sdk-runtime/transformations/image");
2539
+ var import_image2 = require("@wix/sdk-runtime/transformations/image");
2540
+ var import_video_v2 = require("@wix/sdk-runtime/transformations/video-v2");
2541
+ var import_video_v22 = require("@wix/sdk-runtime/transformations/video-v2");
2542
+ var import_document = require("@wix/sdk-runtime/transformations/document");
2543
+ var import_document2 = require("@wix/sdk-runtime/transformations/document");
2544
+ var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
2545
+ var NodeType = /* @__PURE__ */ ((NodeType2) => {
2546
+ NodeType2["PARAGRAPH"] = "PARAGRAPH";
2547
+ NodeType2["TEXT"] = "TEXT";
2548
+ NodeType2["HEADING"] = "HEADING";
2549
+ NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
2550
+ NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
2551
+ NodeType2["LIST_ITEM"] = "LIST_ITEM";
2552
+ NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
2553
+ NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
2554
+ NodeType2["VIDEO"] = "VIDEO";
2555
+ NodeType2["DIVIDER"] = "DIVIDER";
2556
+ NodeType2["FILE"] = "FILE";
2557
+ NodeType2["GALLERY"] = "GALLERY";
2558
+ NodeType2["GIF"] = "GIF";
2559
+ NodeType2["HTML"] = "HTML";
2560
+ NodeType2["IMAGE"] = "IMAGE";
2561
+ NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
2562
+ NodeType2["MAP"] = "MAP";
2563
+ NodeType2["POLL"] = "POLL";
2564
+ NodeType2["APP_EMBED"] = "APP_EMBED";
2565
+ NodeType2["BUTTON"] = "BUTTON";
2566
+ NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
2567
+ NodeType2["TABLE"] = "TABLE";
2568
+ NodeType2["EMBED"] = "EMBED";
2569
+ NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
2570
+ NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
2571
+ NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
2572
+ NodeType2["TABLE_CELL"] = "TABLE_CELL";
2573
+ NodeType2["TABLE_ROW"] = "TABLE_ROW";
2574
+ NodeType2["EXTERNAL"] = "EXTERNAL";
2575
+ NodeType2["AUDIO"] = "AUDIO";
2576
+ NodeType2["CAPTION"] = "CAPTION";
2577
+ NodeType2["LAYOUT"] = "LAYOUT";
2578
+ NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
2579
+ return NodeType2;
2580
+ })(NodeType || {});
2581
+ var WidthType = /* @__PURE__ */ ((WidthType2) => {
2582
+ WidthType2["CONTENT"] = "CONTENT";
2583
+ WidthType2["SMALL"] = "SMALL";
2584
+ WidthType2["ORIGINAL"] = "ORIGINAL";
2585
+ WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
2586
+ return WidthType2;
2587
+ })(WidthType || {});
2588
+ var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
2589
+ PluginContainerDataAlignment2["CENTER"] = "CENTER";
2590
+ PluginContainerDataAlignment2["LEFT"] = "LEFT";
2591
+ PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
2592
+ return PluginContainerDataAlignment2;
2593
+ })(PluginContainerDataAlignment || {});
2594
+ var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
2595
+ ButtonDataType2["LINK"] = "LINK";
2596
+ ButtonDataType2["ACTION"] = "ACTION";
2597
+ return ButtonDataType2;
2598
+ })(ButtonDataType || {});
2599
+ var Target = /* @__PURE__ */ ((Target2) => {
2600
+ Target2["SELF"] = "SELF";
2601
+ Target2["BLANK"] = "BLANK";
2602
+ Target2["PARENT"] = "PARENT";
2603
+ Target2["TOP"] = "TOP";
2604
+ return Target2;
2605
+ })(Target || {});
2606
+ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
2607
+ TextAlignment2["AUTO"] = "AUTO";
2608
+ TextAlignment2["LEFT"] = "LEFT";
2609
+ TextAlignment2["RIGHT"] = "RIGHT";
2610
+ TextAlignment2["CENTER"] = "CENTER";
2611
+ TextAlignment2["JUSTIFY"] = "JUSTIFY";
2612
+ return TextAlignment2;
2613
+ })(TextAlignment || {});
2614
+ var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
2615
+ LineStyle2["SINGLE"] = "SINGLE";
2616
+ LineStyle2["DOUBLE"] = "DOUBLE";
2617
+ LineStyle2["DASHED"] = "DASHED";
2618
+ LineStyle2["DOTTED"] = "DOTTED";
2619
+ return LineStyle2;
2620
+ })(LineStyle || {});
2621
+ var Width = /* @__PURE__ */ ((Width2) => {
2622
+ Width2["LARGE"] = "LARGE";
2623
+ Width2["MEDIUM"] = "MEDIUM";
2624
+ Width2["SMALL"] = "SMALL";
2625
+ return Width2;
2626
+ })(Width || {});
2627
+ var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
2628
+ DividerDataAlignment2["CENTER"] = "CENTER";
2629
+ DividerDataAlignment2["LEFT"] = "LEFT";
2630
+ DividerDataAlignment2["RIGHT"] = "RIGHT";
2631
+ return DividerDataAlignment2;
2632
+ })(DividerDataAlignment || {});
2633
+ var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
2634
+ ViewMode2["NONE"] = "NONE";
2635
+ ViewMode2["FULL"] = "FULL";
2636
+ ViewMode2["MINI"] = "MINI";
2637
+ return ViewMode2;
2638
+ })(ViewMode || {});
2639
+ var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
2640
+ LayoutType2["COLLAGE"] = "COLLAGE";
2641
+ LayoutType2["MASONRY"] = "MASONRY";
2642
+ LayoutType2["GRID"] = "GRID";
2643
+ LayoutType2["THUMBNAIL"] = "THUMBNAIL";
2644
+ LayoutType2["SLIDER"] = "SLIDER";
2645
+ LayoutType2["SLIDESHOW"] = "SLIDESHOW";
2646
+ LayoutType2["PANORAMA"] = "PANORAMA";
2647
+ LayoutType2["COLUMN"] = "COLUMN";
2648
+ LayoutType2["MAGIC"] = "MAGIC";
2649
+ LayoutType2["FULLSIZE"] = "FULLSIZE";
2650
+ return LayoutType2;
2651
+ })(LayoutType || {});
2652
+ var Orientation = /* @__PURE__ */ ((Orientation2) => {
2653
+ Orientation2["ROWS"] = "ROWS";
2654
+ Orientation2["COLUMNS"] = "COLUMNS";
2655
+ return Orientation2;
2656
+ })(Orientation || {});
2657
+ var Crop = /* @__PURE__ */ ((Crop2) => {
2658
+ Crop2["FILL"] = "FILL";
2659
+ Crop2["FIT"] = "FIT";
2660
+ return Crop2;
2661
+ })(Crop || {});
2662
+ var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
2663
+ ThumbnailsAlignment2["TOP"] = "TOP";
2664
+ ThumbnailsAlignment2["RIGHT"] = "RIGHT";
2665
+ ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
2666
+ ThumbnailsAlignment2["LEFT"] = "LEFT";
2667
+ ThumbnailsAlignment2["NONE"] = "NONE";
2668
+ return ThumbnailsAlignment2;
2669
+ })(ThumbnailsAlignment || {});
2670
+ var GIFType = /* @__PURE__ */ ((GIFType2) => {
2671
+ GIFType2["NORMAL"] = "NORMAL";
2672
+ GIFType2["STICKER"] = "STICKER";
2673
+ return GIFType2;
2674
+ })(GIFType || {});
2675
+ var Source = /* @__PURE__ */ ((Source2) => {
2676
+ Source2["HTML"] = "HTML";
2677
+ Source2["ADSENSE"] = "ADSENSE";
2678
+ return Source2;
2679
+ })(Source || {});
2680
+ var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
2681
+ StylesPosition2["START"] = "START";
2682
+ StylesPosition2["END"] = "END";
2683
+ StylesPosition2["TOP"] = "TOP";
2684
+ StylesPosition2["HIDDEN"] = "HIDDEN";
2685
+ return StylesPosition2;
2686
+ })(StylesPosition || {});
2687
+ var MapType = /* @__PURE__ */ ((MapType2) => {
2688
+ MapType2["ROADMAP"] = "ROADMAP";
2689
+ MapType2["SATELITE"] = "SATELITE";
2690
+ MapType2["HYBRID"] = "HYBRID";
2691
+ MapType2["TERRAIN"] = "TERRAIN";
2692
+ return MapType2;
2693
+ })(MapType || {});
2694
+ var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
2695
+ ViewRole2["CREATOR"] = "CREATOR";
2696
+ ViewRole2["VOTERS"] = "VOTERS";
2697
+ ViewRole2["EVERYONE"] = "EVERYONE";
2698
+ return ViewRole2;
2699
+ })(ViewRole || {});
2700
+ var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
2701
+ VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
2702
+ VoteRole2["ALL"] = "ALL";
2703
+ return VoteRole2;
2704
+ })(VoteRole || {});
2705
+ var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
2706
+ PollLayoutType2["LIST"] = "LIST";
2707
+ PollLayoutType2["GRID"] = "GRID";
2708
+ return PollLayoutType2;
2709
+ })(PollLayoutType || {});
2710
+ var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
2711
+ PollLayoutDirection2["LTR"] = "LTR";
2712
+ PollLayoutDirection2["RTL"] = "RTL";
2713
+ return PollLayoutDirection2;
2714
+ })(PollLayoutDirection || {});
2715
+ var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
2716
+ BackgroundType2["COLOR"] = "COLOR";
2717
+ BackgroundType2["IMAGE"] = "IMAGE";
2718
+ BackgroundType2["GRADIENT"] = "GRADIENT";
2719
+ return BackgroundType2;
2720
+ })(BackgroundType || {});
2721
+ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
2722
+ DecorationType2["BOLD"] = "BOLD";
2723
+ DecorationType2["ITALIC"] = "ITALIC";
2724
+ DecorationType2["UNDERLINE"] = "UNDERLINE";
2725
+ DecorationType2["SPOILER"] = "SPOILER";
2726
+ DecorationType2["ANCHOR"] = "ANCHOR";
2727
+ DecorationType2["MENTION"] = "MENTION";
2728
+ DecorationType2["LINK"] = "LINK";
2729
+ DecorationType2["COLOR"] = "COLOR";
2730
+ DecorationType2["FONT_SIZE"] = "FONT_SIZE";
2731
+ DecorationType2["EXTERNAL"] = "EXTERNAL";
2732
+ DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
2733
+ DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
2734
+ DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
2735
+ return DecorationType2;
2736
+ })(DecorationType || {});
2737
+ var FontType = /* @__PURE__ */ ((FontType2) => {
2738
+ FontType2["PX"] = "PX";
2739
+ FontType2["EM"] = "EM";
2740
+ return FontType2;
2741
+ })(FontType || {});
2742
+ var Position = /* @__PURE__ */ ((Position2) => {
2743
+ Position2["START"] = "START";
2744
+ Position2["END"] = "END";
2745
+ Position2["TOP"] = "TOP";
2746
+ return Position2;
2747
+ })(Position || {});
2748
+ var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
2749
+ AspectRatio2["SQUARE"] = "SQUARE";
2750
+ AspectRatio2["RECTANGLE"] = "RECTANGLE";
2751
+ return AspectRatio2;
2752
+ })(AspectRatio || {});
2753
+ var Resizing = /* @__PURE__ */ ((Resizing2) => {
2754
+ Resizing2["FILL"] = "FILL";
2755
+ Resizing2["FIT"] = "FIT";
2756
+ return Resizing2;
2757
+ })(Resizing || {});
2758
+ var Placement = /* @__PURE__ */ ((Placement2) => {
2759
+ Placement2["IMAGE"] = "IMAGE";
2760
+ Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
2761
+ return Placement2;
2762
+ })(Placement || {});
2763
+ var Type = /* @__PURE__ */ ((Type2) => {
2764
+ Type2["CONTAINED"] = "CONTAINED";
2765
+ Type2["FRAMELESS"] = "FRAMELESS";
2766
+ return Type2;
2767
+ })(Type || {});
2768
+ var Alignment = /* @__PURE__ */ ((Alignment2) => {
2769
+ Alignment2["START"] = "START";
2770
+ Alignment2["CENTER"] = "CENTER";
2771
+ Alignment2["END"] = "END";
2772
+ return Alignment2;
2773
+ })(Alignment || {});
2774
+ var Layout = /* @__PURE__ */ ((Layout2) => {
2775
+ Layout2["STACKED"] = "STACKED";
2776
+ Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
2777
+ return Layout2;
2778
+ })(Layout || {});
2779
+ var AppType = /* @__PURE__ */ ((AppType2) => {
2780
+ AppType2["PRODUCT"] = "PRODUCT";
2781
+ AppType2["EVENT"] = "EVENT";
2782
+ AppType2["BOOKING"] = "BOOKING";
2783
+ return AppType2;
2784
+ })(AppType || {});
2785
+ var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
2786
+ InitialExpandedItems2["FIRST"] = "FIRST";
2787
+ InitialExpandedItems2["ALL"] = "ALL";
2788
+ InitialExpandedItems2["NONE"] = "NONE";
2789
+ return InitialExpandedItems2;
2790
+ })(InitialExpandedItems || {});
2791
+ var Direction = /* @__PURE__ */ ((Direction2) => {
2792
+ Direction2["LTR"] = "LTR";
2793
+ Direction2["RTL"] = "RTL";
2794
+ return Direction2;
2795
+ })(Direction || {});
2796
+ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
2797
+ VerticalAlignment2["TOP"] = "TOP";
2798
+ VerticalAlignment2["MIDDLE"] = "MIDDLE";
2799
+ VerticalAlignment2["BOTTOM"] = "BOTTOM";
2800
+ return VerticalAlignment2;
2801
+ })(VerticalAlignment || {});
2802
+ var NullValue = /* @__PURE__ */ ((NullValue2) => {
2803
+ NullValue2["NULL_VALUE"] = "NULL_VALUE";
2804
+ return NullValue2;
2805
+ })(NullValue || {});
2806
+ var Status = /* @__PURE__ */ ((Status2) => {
2807
+ Status2["UNKNOWN"] = "UNKNOWN";
2808
+ Status2["PUBLISHED"] = "PUBLISHED";
2809
+ Status2["DELETED"] = "DELETED";
2810
+ Status2["PENDING"] = "PENDING";
2811
+ Status2["HIDDEN"] = "HIDDEN";
2812
+ return Status2;
2813
+ })(Status || {});
2814
+ var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
2815
+ VersioningMode2["DEFAULT"] = "DEFAULT";
2816
+ VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
2817
+ VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
2818
+ return VersioningMode2;
2819
+ })(VersioningMode || {});
2820
+ var Action = /* @__PURE__ */ ((Action2) => {
2821
+ Action2["UNKNOWN"] = "UNKNOWN";
2822
+ Action2["APPROVE"] = "APPROVE";
2823
+ Action2["REJECT"] = "REJECT";
2824
+ return Action2;
2825
+ })(Action || {});
2826
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
2827
+ SortOrder2["ASC"] = "ASC";
2828
+ SortOrder2["DESC"] = "DESC";
2829
+ return SortOrder2;
2830
+ })(SortOrder || {});
2831
+ var Order = /* @__PURE__ */ ((Order2) => {
2832
+ Order2["UNKNOWN_ORDER"] = "UNKNOWN_ORDER";
2833
+ Order2["OLDEST_FIRST"] = "OLDEST_FIRST";
2834
+ Order2["NEWEST_FIRST"] = "NEWEST_FIRST";
2835
+ Order2["REACTION_COUNT"] = "REACTION_COUNT";
2836
+ Order2["NET_VOTE_COUNT"] = "NET_VOTE_COUNT";
2837
+ Order2["RATING"] = "RATING";
2838
+ Order2["NET_VOTE_COUNT_ASC"] = "NET_VOTE_COUNT_ASC";
2839
+ Order2["RATING_ASC"] = "RATING_ASC";
2840
+ return Order2;
2841
+ })(Order || {});
2842
+ var ReplySortOrder = /* @__PURE__ */ ((ReplySortOrder2) => {
2843
+ ReplySortOrder2["UNKNOWN_ORDER"] = "UNKNOWN_ORDER";
2844
+ ReplySortOrder2["OLDEST_FIRST"] = "OLDEST_FIRST";
2845
+ ReplySortOrder2["NEWEST_FIRST"] = "NEWEST_FIRST";
2846
+ ReplySortOrder2["REACTION_COUNT"] = "REACTION_COUNT";
2847
+ return ReplySortOrder2;
2848
+ })(ReplySortOrder || {});
2849
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
2850
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
2851
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
2852
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
2853
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
2854
+ WebhookIdentityType2["APP"] = "APP";
2855
+ return WebhookIdentityType2;
2856
+ })(WebhookIdentityType || {});
2857
+ async function createComment2(comment) {
2858
+ const { httpClient, sideEffects } = arguments[1];
2859
+ const payload = (0, import_transform_paths2.transformPaths)(
2860
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ comment }, [
2861
+ "comment.content.richContent",
2862
+ "comment.draftContent.richContent"
2863
+ ]),
2864
+ [
2865
+ {
2866
+ transformFn: import_image.transformSDKImageToRESTImage,
2867
+ paths: [
2868
+ { path: "comment.content.attachments.image" },
2869
+ { path: "comment.draftContent.attachments.image" }
2870
+ ]
2871
+ },
2872
+ {
2873
+ transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
2874
+ paths: [
2875
+ { path: "comment.content.attachments.video" },
2876
+ { path: "comment.draftContent.attachments.video" }
2877
+ ]
2878
+ },
2879
+ {
2880
+ transformFn: import_audio.transformSDKAudioToRESTAudio,
2881
+ paths: [
2882
+ { path: "comment.content.attachments.audio" },
2883
+ { path: "comment.draftContent.attachments.audio" }
2884
+ ]
2885
+ },
2886
+ {
2887
+ transformFn: import_document.transformSDKDocumentToRESTDocument,
2888
+ paths: [
2889
+ { path: "comment.content.attachments.document" },
2890
+ { path: "comment.draftContent.attachments.document" }
2891
+ ]
2892
+ }
2893
+ ]
2894
+ );
2895
+ const reqOpts = createComment(payload);
2896
+ sideEffects?.onSiteCall?.();
2897
+ try {
2898
+ const result = await httpClient.request(reqOpts);
2899
+ sideEffects?.onSuccess?.(result);
2900
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2901
+ (0, import_transform_paths2.transformPaths)(result.data, [
2902
+ {
2903
+ transformFn: import_image2.transformRESTImageToSDKImage,
2904
+ paths: [
2905
+ { path: "comment.content.attachments.image" },
2906
+ { path: "comment.draftContent.attachments.image" }
2907
+ ]
2908
+ },
2909
+ {
2910
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2911
+ paths: [
2912
+ { path: "comment.content.attachments.video" },
2913
+ { path: "comment.draftContent.attachments.video" }
2914
+ ]
2915
+ },
2916
+ {
2917
+ transformFn: import_audio2.transformRESTAudioToSDKAudio,
2918
+ paths: [
2919
+ { path: "comment.content.attachments.audio" },
2920
+ { path: "comment.draftContent.attachments.audio" }
2921
+ ]
2922
+ },
2923
+ {
2924
+ transformFn: import_document2.transformRESTDocumentToSDKDocument,
2925
+ paths: [
2926
+ { path: "comment.content.attachments.document" },
2927
+ { path: "comment.draftContent.attachments.document" }
2928
+ ]
2929
+ }
2930
+ ]),
2931
+ ["comment.content.richContent", "comment.draftContent.richContent"]
2932
+ )?.comment;
2933
+ } catch (err) {
2934
+ const transformedError = (0, import_transform_error.transformError)(
2935
+ err,
2936
+ {
2937
+ spreadPathsToArguments: {},
2938
+ explicitPathsToArguments: { comment: "$[0]" },
2939
+ singleArgumentUnchanged: false
2940
+ },
2941
+ ["comment"]
2942
+ );
2943
+ sideEffects?.onError?.(err);
2944
+ throw transformedError;
2945
+ }
2946
+ }
2947
+ async function getComment2(commentId) {
2948
+ const { httpClient, sideEffects } = arguments[1];
2949
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2950
+ { commentId },
2951
+ []
2952
+ );
2953
+ const reqOpts = getComment(payload);
2954
+ sideEffects?.onSiteCall?.();
2955
+ try {
2956
+ const result = await httpClient.request(reqOpts);
2957
+ sideEffects?.onSuccess?.(result);
2958
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2959
+ (0, import_transform_paths2.transformPaths)(result.data, [
2960
+ {
2961
+ transformFn: import_image2.transformRESTImageToSDKImage,
2962
+ paths: [
2963
+ { path: "comment.content.attachments.image" },
2964
+ { path: "comment.draftContent.attachments.image" }
2965
+ ]
2966
+ },
2967
+ {
2968
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2969
+ paths: [
2970
+ { path: "comment.content.attachments.video" },
2971
+ { path: "comment.draftContent.attachments.video" }
2972
+ ]
2973
+ },
2974
+ {
2975
+ transformFn: import_audio2.transformRESTAudioToSDKAudio,
2976
+ paths: [
2977
+ { path: "comment.content.attachments.audio" },
2978
+ { path: "comment.draftContent.attachments.audio" }
2979
+ ]
2980
+ },
2981
+ {
2982
+ transformFn: import_document2.transformRESTDocumentToSDKDocument,
2983
+ paths: [
2984
+ { path: "comment.content.attachments.document" },
2985
+ { path: "comment.draftContent.attachments.document" }
2986
+ ]
2987
+ }
2988
+ ]),
2989
+ ["comment.content.richContent", "comment.draftContent.richContent"]
2990
+ )?.comment;
2991
+ } catch (err) {
2992
+ const transformedError = (0, import_transform_error.transformError)(
2993
+ err,
2994
+ {
2995
+ spreadPathsToArguments: {},
2996
+ explicitPathsToArguments: { commentId: "$[0]" },
2997
+ singleArgumentUnchanged: false
2998
+ },
2999
+ ["commentId"]
3000
+ );
3001
+ sideEffects?.onError?.(err);
3002
+ throw transformedError;
3003
+ }
3004
+ }
3005
+ async function updateComment2(_id, comment) {
3006
+ const { httpClient, sideEffects } = arguments[2];
3007
+ const payload = (0, import_transform_paths2.transformPaths)(
3008
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3009
+ { comment: { ...comment, id: _id } },
3010
+ ["comment.content.richContent", "comment.draftContent.richContent"]
3011
+ ),
3012
+ [
3013
+ {
3014
+ transformFn: import_image.transformSDKImageToRESTImage,
3015
+ paths: [
3016
+ { path: "comment.content.attachments.image" },
3017
+ { path: "comment.draftContent.attachments.image" }
3018
+ ]
3019
+ },
3020
+ {
3021
+ transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
3022
+ paths: [
3023
+ { path: "comment.content.attachments.video" },
3024
+ { path: "comment.draftContent.attachments.video" }
3025
+ ]
3026
+ },
3027
+ {
3028
+ transformFn: import_audio.transformSDKAudioToRESTAudio,
3029
+ paths: [
3030
+ { path: "comment.content.attachments.audio" },
3031
+ { path: "comment.draftContent.attachments.audio" }
3032
+ ]
3033
+ },
3034
+ {
3035
+ transformFn: import_document.transformSDKDocumentToRESTDocument,
3036
+ paths: [
3037
+ { path: "comment.content.attachments.document" },
3038
+ { path: "comment.draftContent.attachments.document" }
3039
+ ]
3040
+ }
3041
+ ]
3042
+ );
3043
+ const reqOpts = updateComment(payload);
3044
+ sideEffects?.onSiteCall?.();
3045
+ try {
3046
+ const result = await httpClient.request(reqOpts);
3047
+ sideEffects?.onSuccess?.(result);
3048
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
3049
+ (0, import_transform_paths2.transformPaths)(result.data, [
3050
+ {
3051
+ transformFn: import_image2.transformRESTImageToSDKImage,
3052
+ paths: [
3053
+ { path: "comment.content.attachments.image" },
3054
+ { path: "comment.draftContent.attachments.image" }
3055
+ ]
3056
+ },
3057
+ {
3058
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
3059
+ paths: [
3060
+ { path: "comment.content.attachments.video" },
3061
+ { path: "comment.draftContent.attachments.video" }
3062
+ ]
3063
+ },
3064
+ {
3065
+ transformFn: import_audio2.transformRESTAudioToSDKAudio,
3066
+ paths: [
3067
+ { path: "comment.content.attachments.audio" },
3068
+ { path: "comment.draftContent.attachments.audio" }
3069
+ ]
3070
+ },
3071
+ {
3072
+ transformFn: import_document2.transformRESTDocumentToSDKDocument,
3073
+ paths: [
3074
+ { path: "comment.content.attachments.document" },
3075
+ { path: "comment.draftContent.attachments.document" }
3076
+ ]
3077
+ }
3078
+ ]),
3079
+ ["comment.content.richContent", "comment.draftContent.richContent"]
3080
+ )?.comment;
3081
+ } catch (err) {
3082
+ const transformedError = (0, import_transform_error.transformError)(
3083
+ err,
3084
+ {
3085
+ spreadPathsToArguments: { comment: "$[1]" },
3086
+ explicitPathsToArguments: { "comment.id": "$[0]" },
3087
+ singleArgumentUnchanged: false
3088
+ },
3089
+ ["_id", "comment"]
3090
+ );
3091
+ sideEffects?.onError?.(err);
3092
+ throw transformedError;
3093
+ }
3094
+ }
3095
+ async function deleteComment2(commentId) {
3096
+ const { httpClient, sideEffects } = arguments[1];
3097
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3098
+ { commentId },
3099
+ []
3100
+ );
3101
+ const reqOpts = deleteComment(payload);
3102
+ sideEffects?.onSiteCall?.();
3103
+ try {
3104
+ const result = await httpClient.request(reqOpts);
3105
+ sideEffects?.onSuccess?.(result);
3106
+ } catch (err) {
3107
+ const transformedError = (0, import_transform_error.transformError)(
3108
+ err,
3109
+ {
3110
+ spreadPathsToArguments: {},
3111
+ explicitPathsToArguments: { commentId: "$[0]" },
3112
+ singleArgumentUnchanged: false
3113
+ },
3114
+ ["commentId"]
3115
+ );
3116
+ sideEffects?.onError?.(err);
3117
+ throw transformedError;
3118
+ }
3119
+ }
3120
+ async function moderateDraftContent2(commentId, revision, options) {
3121
+ const { httpClient, sideEffects } = arguments[3];
3122
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3123
+ {
3124
+ commentId,
3125
+ revision,
3126
+ draftContentAction: options?.draftContentAction
3127
+ },
3128
+ []
3129
+ );
3130
+ const reqOpts = moderateDraftContent(payload);
3131
+ sideEffects?.onSiteCall?.();
3132
+ try {
3133
+ const result = await httpClient.request(reqOpts);
3134
+ sideEffects?.onSuccess?.(result);
3135
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
3136
+ (0, import_transform_paths2.transformPaths)(result.data, [
3137
+ {
3138
+ transformFn: import_image2.transformRESTImageToSDKImage,
3139
+ paths: [
3140
+ { path: "comment.content.attachments.image" },
3141
+ { path: "comment.draftContent.attachments.image" }
3142
+ ]
3143
+ },
3144
+ {
3145
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
3146
+ paths: [
3147
+ { path: "comment.content.attachments.video" },
3148
+ { path: "comment.draftContent.attachments.video" }
3149
+ ]
3150
+ },
3151
+ {
3152
+ transformFn: import_audio2.transformRESTAudioToSDKAudio,
3153
+ paths: [
3154
+ { path: "comment.content.attachments.audio" },
3155
+ { path: "comment.draftContent.attachments.audio" }
3156
+ ]
3157
+ },
3158
+ {
3159
+ transformFn: import_document2.transformRESTDocumentToSDKDocument,
3160
+ paths: [
3161
+ { path: "comment.content.attachments.document" },
3162
+ { path: "comment.draftContent.attachments.document" }
3163
+ ]
3164
+ }
3165
+ ]),
3166
+ ["comment.content.richContent", "comment.draftContent.richContent"]
3167
+ );
3168
+ } catch (err) {
3169
+ const transformedError = (0, import_transform_error.transformError)(
3170
+ err,
3171
+ {
3172
+ spreadPathsToArguments: {},
3173
+ explicitPathsToArguments: {
3174
+ commentId: "$[0]",
3175
+ revision: "$[1]",
3176
+ draftContentAction: "$[2].draftContentAction"
3177
+ },
3178
+ singleArgumentUnchanged: false
3179
+ },
3180
+ ["commentId", "revision", "options"]
3181
+ );
3182
+ sideEffects?.onError?.(err);
3183
+ throw transformedError;
3184
+ }
3185
+ }
3186
+ function queryComments2(appId) {
3187
+ const { httpClient, sideEffects } = arguments[1];
3188
+ return (0, import_query_builder.queryBuilder)({
3189
+ func: async (payload) => {
3190
+ const reqOpts = queryComments(payload);
3191
+ sideEffects?.onSiteCall?.();
3192
+ try {
3193
+ const result = await httpClient.request(reqOpts);
3194
+ sideEffects?.onSuccess?.(result);
3195
+ return result;
3196
+ } catch (err) {
3197
+ sideEffects?.onError?.(err);
3198
+ throw err;
3199
+ }
3200
+ },
3201
+ requestTransformer: (query) => {
3202
+ const args = [query, appId, {}];
3203
+ return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3204
+ { appId: args?.[1], ...args?.[2], query: args?.[0] },
3205
+ []
3206
+ );
3207
+ },
3208
+ responseTransformer: ({ data }) => {
3209
+ const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
3210
+ (0, import_transform_paths2.transformPaths)(data, [
3211
+ {
3212
+ transformFn: import_image2.transformRESTImageToSDKImage,
3213
+ paths: [
3214
+ { path: "comments.content.attachments.image" },
3215
+ { path: "comments.draftContent.attachments.image" }
3216
+ ]
3217
+ },
3218
+ {
3219
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
3220
+ paths: [
3221
+ { path: "comments.content.attachments.video" },
3222
+ { path: "comments.draftContent.attachments.video" }
3223
+ ]
3224
+ },
3225
+ {
3226
+ transformFn: import_audio2.transformRESTAudioToSDKAudio,
3227
+ paths: [
3228
+ { path: "comments.content.attachments.audio" },
3229
+ { path: "comments.draftContent.attachments.audio" }
3230
+ ]
3231
+ },
3232
+ {
3233
+ transformFn: import_document2.transformRESTDocumentToSDKDocument,
3234
+ paths: [
3235
+ { path: "comments.content.attachments.document" },
3236
+ { path: "comments.draftContent.attachments.document" }
3237
+ ]
3238
+ }
3239
+ ]),
3240
+ ["comments.content.richContent", "comments.draftContent.richContent"]
3241
+ );
3242
+ return {
3243
+ items: transformedData?.comments,
3244
+ pagingMetadata: transformedData?.pagingMetadata
3245
+ };
3246
+ },
3247
+ errorTransformer: (err) => {
3248
+ const transformedError = (0, import_transform_error.transformError)(err, {
3249
+ spreadPathsToArguments: {},
3250
+ explicitPathsToArguments: { appId: "$[1]", query: "$[0]" },
3251
+ singleArgumentUnchanged: false
3252
+ });
3253
+ throw transformedError;
3254
+ },
3255
+ pagingMethod: "CURSOR",
3256
+ transformationPaths: {}
3257
+ });
3258
+ }
3259
+ async function markComment2(commentId) {
3260
+ const { httpClient, sideEffects } = arguments[1];
3261
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3262
+ { commentId },
3263
+ []
3264
+ );
3265
+ const reqOpts = markComment(payload);
3266
+ sideEffects?.onSiteCall?.();
3267
+ try {
3268
+ const result = await httpClient.request(reqOpts);
3269
+ sideEffects?.onSuccess?.(result);
3270
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
3271
+ (0, import_transform_paths2.transformPaths)(result.data, [
3272
+ {
3273
+ transformFn: import_image2.transformRESTImageToSDKImage,
3274
+ paths: [
3275
+ { path: "comment.content.attachments.image" },
3276
+ { path: "comment.draftContent.attachments.image" }
3277
+ ]
3278
+ },
3279
+ {
3280
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
3281
+ paths: [
3282
+ { path: "comment.content.attachments.video" },
3283
+ { path: "comment.draftContent.attachments.video" }
3284
+ ]
3285
+ },
3286
+ {
3287
+ transformFn: import_audio2.transformRESTAudioToSDKAudio,
3288
+ paths: [
3289
+ { path: "comment.content.attachments.audio" },
3290
+ { path: "comment.draftContent.attachments.audio" }
3291
+ ]
3292
+ },
3293
+ {
3294
+ transformFn: import_document2.transformRESTDocumentToSDKDocument,
3295
+ paths: [
3296
+ { path: "comment.content.attachments.document" },
3297
+ { path: "comment.draftContent.attachments.document" }
3298
+ ]
3299
+ }
3300
+ ]),
3301
+ ["comment.content.richContent", "comment.draftContent.richContent"]
3302
+ );
3303
+ } catch (err) {
3304
+ const transformedError = (0, import_transform_error.transformError)(
3305
+ err,
3306
+ {
3307
+ spreadPathsToArguments: {},
3308
+ explicitPathsToArguments: { commentId: "$[0]" },
3309
+ singleArgumentUnchanged: false
3310
+ },
3311
+ ["commentId"]
3312
+ );
3313
+ sideEffects?.onError?.(err);
3314
+ throw transformedError;
3315
+ }
3316
+ }
3317
+ async function unmarkComment2(commentId) {
3318
+ const { httpClient, sideEffects } = arguments[1];
3319
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3320
+ { commentId },
3321
+ []
3322
+ );
3323
+ const reqOpts = unmarkComment(payload);
3324
+ sideEffects?.onSiteCall?.();
3325
+ try {
3326
+ const result = await httpClient.request(reqOpts);
3327
+ sideEffects?.onSuccess?.(result);
3328
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
3329
+ (0, import_transform_paths2.transformPaths)(result.data, [
3330
+ {
3331
+ transformFn: import_image2.transformRESTImageToSDKImage,
3332
+ paths: [
3333
+ { path: "comment.content.attachments.image" },
3334
+ { path: "comment.draftContent.attachments.image" }
3335
+ ]
3336
+ },
3337
+ {
3338
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
3339
+ paths: [
3340
+ { path: "comment.content.attachments.video" },
3341
+ { path: "comment.draftContent.attachments.video" }
3342
+ ]
3343
+ },
3344
+ {
3345
+ transformFn: import_audio2.transformRESTAudioToSDKAudio,
3346
+ paths: [
3347
+ { path: "comment.content.attachments.audio" },
3348
+ { path: "comment.draftContent.attachments.audio" }
3349
+ ]
3350
+ },
3351
+ {
3352
+ transformFn: import_document2.transformRESTDocumentToSDKDocument,
3353
+ paths: [
3354
+ { path: "comment.content.attachments.document" },
3355
+ { path: "comment.draftContent.attachments.document" }
3356
+ ]
3357
+ }
3358
+ ]),
3359
+ ["comment.content.richContent", "comment.draftContent.richContent"]
3360
+ );
3361
+ } catch (err) {
3362
+ const transformedError = (0, import_transform_error.transformError)(
3363
+ err,
3364
+ {
3365
+ spreadPathsToArguments: {},
3366
+ explicitPathsToArguments: { commentId: "$[0]" },
3367
+ singleArgumentUnchanged: false
3368
+ },
3369
+ ["commentId"]
3370
+ );
3371
+ sideEffects?.onError?.(err);
3372
+ throw transformedError;
3373
+ }
3374
+ }
3375
+ async function hideComment2(commentId) {
3376
+ const { httpClient, sideEffects } = arguments[1];
3377
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3378
+ { commentId },
3379
+ []
3380
+ );
3381
+ const reqOpts = hideComment(payload);
3382
+ sideEffects?.onSiteCall?.();
3383
+ try {
3384
+ const result = await httpClient.request(reqOpts);
3385
+ sideEffects?.onSuccess?.(result);
3386
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
3387
+ (0, import_transform_paths2.transformPaths)(result.data, [
3388
+ {
3389
+ transformFn: import_image2.transformRESTImageToSDKImage,
3390
+ paths: [
3391
+ { path: "comment.content.attachments.image" },
3392
+ { path: "comment.draftContent.attachments.image" }
3393
+ ]
3394
+ },
3395
+ {
3396
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
3397
+ paths: [
3398
+ { path: "comment.content.attachments.video" },
3399
+ { path: "comment.draftContent.attachments.video" }
3400
+ ]
3401
+ },
3402
+ {
3403
+ transformFn: import_audio2.transformRESTAudioToSDKAudio,
3404
+ paths: [
3405
+ { path: "comment.content.attachments.audio" },
3406
+ { path: "comment.draftContent.attachments.audio" }
3407
+ ]
3408
+ },
3409
+ {
3410
+ transformFn: import_document2.transformRESTDocumentToSDKDocument,
3411
+ paths: [
3412
+ { path: "comment.content.attachments.document" },
3413
+ { path: "comment.draftContent.attachments.document" }
3414
+ ]
3415
+ }
3416
+ ]),
3417
+ ["comment.content.richContent", "comment.draftContent.richContent"]
3418
+ );
3419
+ } catch (err) {
3420
+ const transformedError = (0, import_transform_error.transformError)(
3421
+ err,
3422
+ {
3423
+ spreadPathsToArguments: {},
3424
+ explicitPathsToArguments: { commentId: "$[0]" },
3425
+ singleArgumentUnchanged: false
3426
+ },
3427
+ ["commentId"]
3428
+ );
3429
+ sideEffects?.onError?.(err);
3430
+ throw transformedError;
3431
+ }
3432
+ }
3433
+ async function publishComment2(commentId) {
3434
+ const { httpClient, sideEffects } = arguments[1];
3435
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3436
+ { commentId },
3437
+ []
3438
+ );
3439
+ const reqOpts = publishComment(payload);
3440
+ sideEffects?.onSiteCall?.();
3441
+ try {
3442
+ const result = await httpClient.request(reqOpts);
3443
+ sideEffects?.onSuccess?.(result);
3444
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
3445
+ (0, import_transform_paths2.transformPaths)(result.data, [
3446
+ {
3447
+ transformFn: import_image2.transformRESTImageToSDKImage,
3448
+ paths: [
3449
+ { path: "comment.content.attachments.image" },
3450
+ { path: "comment.draftContent.attachments.image" }
3451
+ ]
3452
+ },
3453
+ {
3454
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
3455
+ paths: [
3456
+ { path: "comment.content.attachments.video" },
3457
+ { path: "comment.draftContent.attachments.video" }
3458
+ ]
3459
+ },
3460
+ {
3461
+ transformFn: import_audio2.transformRESTAudioToSDKAudio,
3462
+ paths: [
3463
+ { path: "comment.content.attachments.audio" },
3464
+ { path: "comment.draftContent.attachments.audio" }
3465
+ ]
3466
+ },
3467
+ {
3468
+ transformFn: import_document2.transformRESTDocumentToSDKDocument,
3469
+ paths: [
3470
+ { path: "comment.content.attachments.document" },
3471
+ { path: "comment.draftContent.attachments.document" }
3472
+ ]
3473
+ }
3474
+ ]),
3475
+ ["comment.content.richContent", "comment.draftContent.richContent"]
3476
+ );
3477
+ } catch (err) {
3478
+ const transformedError = (0, import_transform_error.transformError)(
3479
+ err,
3480
+ {
3481
+ spreadPathsToArguments: {},
3482
+ explicitPathsToArguments: { commentId: "$[0]" },
3483
+ singleArgumentUnchanged: false
3484
+ },
3485
+ ["commentId"]
3486
+ );
3487
+ sideEffects?.onError?.(err);
3488
+ throw transformedError;
3489
+ }
3490
+ }
3491
+ async function countComments2(appId, options) {
3492
+ const { httpClient, sideEffects } = arguments[2];
3493
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3494
+ { appId, filter: options?.filter },
3495
+ []
3496
+ );
3497
+ const reqOpts = countComments(payload);
3498
+ sideEffects?.onSiteCall?.();
3499
+ try {
3500
+ const result = await httpClient.request(reqOpts);
3501
+ sideEffects?.onSuccess?.(result);
3502
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
3503
+ } catch (err) {
3504
+ const transformedError = (0, import_transform_error.transformError)(
3505
+ err,
3506
+ {
3507
+ spreadPathsToArguments: {},
3508
+ explicitPathsToArguments: { appId: "$[0]", filter: "$[1].filter" },
3509
+ singleArgumentUnchanged: false
3510
+ },
3511
+ ["appId", "options"]
3512
+ );
3513
+ sideEffects?.onError?.(err);
3514
+ throw transformedError;
3515
+ }
3516
+ }
3517
+ async function listCommentsByResource2(appId, options) {
3518
+ const { httpClient, sideEffects } = arguments[2];
3519
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3520
+ {
3521
+ appId,
3522
+ contextId: options?.contextId,
3523
+ contextType: options?.contextType,
3524
+ resourceId: options?.resourceId,
3525
+ commentSort: options?.commentSort,
3526
+ replySort: options?.replySort,
3527
+ cursorPaging: options?.cursorPaging
3528
+ },
3529
+ []
3530
+ );
3531
+ const reqOpts = listCommentsByResource(payload);
3532
+ sideEffects?.onSiteCall?.();
3533
+ try {
3534
+ const result = await httpClient.request(reqOpts);
3535
+ sideEffects?.onSuccess?.(result);
3536
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
3537
+ (0, import_transform_paths2.transformPaths)(result.data, [
3538
+ {
3539
+ transformFn: import_image2.transformRESTImageToSDKImage,
3540
+ paths: [
3541
+ { path: "comments.content.attachments.image" },
3542
+ { path: "comments.draftContent.attachments.image" },
3543
+ { path: "commentReplies.*.replies.content.attachments.image" },
3544
+ { path: "commentReplies.*.replies.draftContent.attachments.image" }
3545
+ ]
3546
+ },
3547
+ {
3548
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
3549
+ paths: [
3550
+ { path: "comments.content.attachments.video" },
3551
+ { path: "comments.draftContent.attachments.video" },
3552
+ { path: "commentReplies.*.replies.content.attachments.video" },
3553
+ { path: "commentReplies.*.replies.draftContent.attachments.video" }
3554
+ ]
3555
+ },
3556
+ {
3557
+ transformFn: import_audio2.transformRESTAudioToSDKAudio,
3558
+ paths: [
3559
+ { path: "comments.content.attachments.audio" },
3560
+ { path: "comments.draftContent.attachments.audio" },
3561
+ { path: "commentReplies.*.replies.content.attachments.audio" },
3562
+ { path: "commentReplies.*.replies.draftContent.attachments.audio" }
3563
+ ]
3564
+ },
3565
+ {
3566
+ transformFn: import_document2.transformRESTDocumentToSDKDocument,
3567
+ paths: [
3568
+ { path: "comments.content.attachments.document" },
3569
+ { path: "comments.draftContent.attachments.document" },
3570
+ { path: "commentReplies.*.replies.content.attachments.document" },
3571
+ {
3572
+ path: "commentReplies.*.replies.draftContent.attachments.document"
3573
+ }
3574
+ ]
3575
+ }
3576
+ ]),
3577
+ ["comments.content.richContent", "comments.draftContent.richContent"]
3578
+ );
3579
+ } catch (err) {
3580
+ const transformedError = (0, import_transform_error.transformError)(
3581
+ err,
3582
+ {
3583
+ spreadPathsToArguments: {},
3584
+ explicitPathsToArguments: {
3585
+ appId: "$[0]",
3586
+ contextId: "$[1].contextId",
3587
+ contextType: "$[1].contextType",
3588
+ resourceId: "$[1].resourceId",
3589
+ commentSort: "$[1].commentSort",
3590
+ replySort: "$[1].replySort",
3591
+ cursorPaging: "$[1].cursorPaging"
3592
+ },
3593
+ singleArgumentUnchanged: false
3594
+ },
3595
+ ["appId", "options"]
3596
+ );
3597
+ sideEffects?.onError?.(err);
3598
+ throw transformedError;
3599
+ }
3600
+ }
3601
+ async function getCommentThread2(commentId, options) {
3602
+ const { httpClient, sideEffects } = arguments[2];
3603
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3604
+ {
3605
+ commentId,
3606
+ appId: options?.appId,
3607
+ commentSort: options?.commentSort,
3608
+ replySort: options?.replySort
3609
+ },
3610
+ []
3611
+ );
3612
+ const reqOpts = getCommentThread(payload);
3613
+ sideEffects?.onSiteCall?.();
3614
+ try {
3615
+ const result = await httpClient.request(reqOpts);
3616
+ sideEffects?.onSuccess?.(result);
3617
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
3618
+ (0, import_transform_paths2.transformPaths)(result.data, [
3619
+ {
3620
+ transformFn: import_image2.transformRESTImageToSDKImage,
3621
+ paths: [
3622
+ { path: "comments.content.attachments.image" },
3623
+ { path: "comments.draftContent.attachments.image" },
3624
+ { path: "commentReplies.*.replies.content.attachments.image" },
3625
+ { path: "commentReplies.*.replies.draftContent.attachments.image" }
3626
+ ]
3627
+ },
3628
+ {
3629
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
3630
+ paths: [
3631
+ { path: "comments.content.attachments.video" },
3632
+ { path: "comments.draftContent.attachments.video" },
3633
+ { path: "commentReplies.*.replies.content.attachments.video" },
3634
+ { path: "commentReplies.*.replies.draftContent.attachments.video" }
3635
+ ]
3636
+ },
3637
+ {
3638
+ transformFn: import_audio2.transformRESTAudioToSDKAudio,
3639
+ paths: [
3640
+ { path: "comments.content.attachments.audio" },
3641
+ { path: "comments.draftContent.attachments.audio" },
3642
+ { path: "commentReplies.*.replies.content.attachments.audio" },
3643
+ { path: "commentReplies.*.replies.draftContent.attachments.audio" }
3644
+ ]
3645
+ },
3646
+ {
3647
+ transformFn: import_document2.transformRESTDocumentToSDKDocument,
3648
+ paths: [
3649
+ { path: "comments.content.attachments.document" },
3650
+ { path: "comments.draftContent.attachments.document" },
3651
+ { path: "commentReplies.*.replies.content.attachments.document" },
3652
+ {
3653
+ path: "commentReplies.*.replies.draftContent.attachments.document"
3654
+ }
3655
+ ]
3656
+ }
3657
+ ]),
3658
+ ["comments.content.richContent", "comments.draftContent.richContent"]
3659
+ );
3660
+ } catch (err) {
3661
+ const transformedError = (0, import_transform_error.transformError)(
3662
+ err,
3663
+ {
3664
+ spreadPathsToArguments: {},
3665
+ explicitPathsToArguments: {
3666
+ commentId: "$[0]",
3667
+ appId: "$[1].appId",
3668
+ commentSort: "$[1].commentSort",
3669
+ replySort: "$[1].replySort"
3670
+ },
3671
+ singleArgumentUnchanged: false
3672
+ },
3673
+ ["commentId", "options"]
3674
+ );
3675
+ sideEffects?.onError?.(err);
3676
+ throw transformedError;
3677
+ }
3678
+ }
3679
+ async function bulkPublishComment2(appId, options) {
3680
+ const { httpClient, sideEffects } = arguments[2];
3681
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3682
+ { appId, filter: options?.filter },
3683
+ []
3684
+ );
3685
+ const reqOpts = bulkPublishComment(payload);
3686
+ sideEffects?.onSiteCall?.();
3687
+ try {
3688
+ const result = await httpClient.request(reqOpts);
3689
+ sideEffects?.onSuccess?.(result);
3690
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
3691
+ } catch (err) {
3692
+ const transformedError = (0, import_transform_error.transformError)(
3693
+ err,
3694
+ {
3695
+ spreadPathsToArguments: {},
3696
+ explicitPathsToArguments: { appId: "$[0]", filter: "$[1].filter" },
3697
+ singleArgumentUnchanged: false
3698
+ },
3699
+ ["appId", "options"]
3700
+ );
3701
+ sideEffects?.onError?.(err);
3702
+ throw transformedError;
3703
+ }
3704
+ }
3705
+ async function bulkHideComment2(appId, options) {
3706
+ const { httpClient, sideEffects } = arguments[2];
3707
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3708
+ { appId, filter: options?.filter },
3709
+ []
3710
+ );
3711
+ const reqOpts = bulkHideComment(payload);
3712
+ sideEffects?.onSiteCall?.();
3713
+ try {
3714
+ const result = await httpClient.request(reqOpts);
3715
+ sideEffects?.onSuccess?.(result);
3716
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
3717
+ } catch (err) {
3718
+ const transformedError = (0, import_transform_error.transformError)(
3719
+ err,
3720
+ {
3721
+ spreadPathsToArguments: {},
3722
+ explicitPathsToArguments: { appId: "$[0]", filter: "$[1].filter" },
3723
+ singleArgumentUnchanged: false
3724
+ },
3725
+ ["appId", "options"]
3726
+ );
3727
+ sideEffects?.onError?.(err);
3728
+ throw transformedError;
3729
+ }
3730
+ }
3731
+ async function bulkDeleteComment2(appId, options) {
3732
+ const { httpClient, sideEffects } = arguments[2];
3733
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3734
+ { appId, filter: options?.filter },
3735
+ []
3736
+ );
3737
+ const reqOpts = bulkDeleteComment(payload);
3738
+ sideEffects?.onSiteCall?.();
3739
+ try {
3740
+ const result = await httpClient.request(reqOpts);
3741
+ sideEffects?.onSuccess?.(result);
3742
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
3743
+ } catch (err) {
3744
+ const transformedError = (0, import_transform_error.transformError)(
3745
+ err,
3746
+ {
3747
+ spreadPathsToArguments: {},
3748
+ explicitPathsToArguments: { appId: "$[0]", filter: "$[1].filter" },
3749
+ singleArgumentUnchanged: false
3750
+ },
3751
+ ["appId", "options"]
3752
+ );
3753
+ sideEffects?.onError?.(err);
3754
+ throw transformedError;
3755
+ }
3756
+ }
3757
+ async function bulkModerateDraftContent2(appId, options) {
3758
+ const { httpClient, sideEffects } = arguments[2];
3759
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3760
+ {
3761
+ appId,
3762
+ filter: options?.filter,
3763
+ draftContentAction: options?.draftContentAction
3764
+ },
3765
+ []
3766
+ );
3767
+ const reqOpts = bulkModerateDraftContent(payload);
3768
+ sideEffects?.onSiteCall?.();
3769
+ try {
3770
+ const result = await httpClient.request(reqOpts);
3771
+ sideEffects?.onSuccess?.(result);
3772
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
3773
+ } catch (err) {
3774
+ const transformedError = (0, import_transform_error.transformError)(
3775
+ err,
3776
+ {
3777
+ spreadPathsToArguments: {},
3778
+ explicitPathsToArguments: {
3779
+ appId: "$[0]",
3780
+ filter: "$[1].filter",
3781
+ draftContentAction: "$[1].draftContentAction"
3782
+ },
3783
+ singleArgumentUnchanged: false
3784
+ },
3785
+ ["appId", "options"]
3786
+ );
3787
+ sideEffects?.onError?.(err);
3788
+ throw transformedError;
3789
+ }
3790
+ }
3791
+ async function bulkMoveCommentByFilter2(appId, options) {
3792
+ const { httpClient, sideEffects } = arguments[2];
3793
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3794
+ {
3795
+ appId,
3796
+ filter: options?.filter,
3797
+ destination: options?.destination
3798
+ },
3799
+ []
3800
+ );
3801
+ const reqOpts = bulkMoveCommentByFilter(payload);
3802
+ sideEffects?.onSiteCall?.();
3803
+ try {
3804
+ const result = await httpClient.request(reqOpts);
3805
+ sideEffects?.onSuccess?.(result);
3806
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
3807
+ } catch (err) {
3808
+ const transformedError = (0, import_transform_error.transformError)(
3809
+ err,
3810
+ {
3811
+ spreadPathsToArguments: {},
3812
+ explicitPathsToArguments: {
3813
+ appId: "$[0]",
3814
+ filter: "$[1].filter",
3815
+ destination: "$[1].destination"
3816
+ },
3817
+ singleArgumentUnchanged: false
3818
+ },
3819
+ ["appId", "options"]
3820
+ );
3821
+ sideEffects?.onError?.(err);
3822
+ throw transformedError;
3823
+ }
3824
+ }
3825
+ // Annotate the CommonJS export names for ESM import in node:
3826
+ 0 && (module.exports = {
3827
+ Action,
3828
+ Alignment,
3829
+ AppType,
3830
+ AspectRatio,
3831
+ BackgroundType,
3832
+ ButtonDataType,
3833
+ Crop,
3834
+ DecorationType,
3835
+ Direction,
3836
+ DividerDataAlignment,
3837
+ FontType,
3838
+ GIFType,
3839
+ InitialExpandedItems,
3840
+ Layout,
3841
+ LayoutType,
3842
+ LineStyle,
3843
+ MapType,
3844
+ NodeType,
3845
+ NullValue,
3846
+ Order,
3847
+ Orientation,
3848
+ Placement,
3849
+ PluginContainerDataAlignment,
3850
+ PollLayoutDirection,
3851
+ PollLayoutType,
3852
+ Position,
3853
+ ReplySortOrder,
3854
+ Resizing,
3855
+ SortOrder,
3856
+ Source,
3857
+ Status,
3858
+ StylesPosition,
3859
+ Target,
3860
+ TextAlignment,
3861
+ ThumbnailsAlignment,
3862
+ Type,
3863
+ VersioningMode,
3864
+ VerticalAlignment,
3865
+ ViewMode,
3866
+ ViewRole,
3867
+ VoteRole,
3868
+ WebhookIdentityType,
3869
+ Width,
3870
+ WidthType,
3871
+ bulkDeleteComment,
3872
+ bulkHideComment,
3873
+ bulkModerateDraftContent,
3874
+ bulkMoveCommentByFilter,
3875
+ bulkPublishComment,
3876
+ countComments,
3877
+ createComment,
3878
+ deleteComment,
3879
+ getComment,
3880
+ getCommentThread,
3881
+ hideComment,
3882
+ listCommentsByResource,
3883
+ markComment,
3884
+ moderateDraftContent,
3885
+ publishComment,
3886
+ queryComments,
3887
+ unmarkComment,
3888
+ updateComment
3889
+ });
3890
+ //# sourceMappingURL=index.typings.js.map