@wix/auto_sdk_blog_draft-posts 1.0.98 → 1.0.99

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.
@@ -1,4644 +0,0 @@
1
- // src/blog-v3-draft-draft-posts.universal.ts
2
- import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
3
- import { queryBuilder } from "@wix/sdk-runtime/query-builder";
4
- import {
5
- renameKeysFromSDKRequestToRESTRequest,
6
- renameKeysFromRESTResponseToSDKResponse
7
- } from "@wix/sdk-runtime/rename-all-nested-keys";
8
-
9
- // src/blog-v3-draft-draft-posts.http.ts
10
- import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
11
- import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
12
- import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
13
- import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
14
- import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
15
- import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
16
- import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
17
- import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
18
- function resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(opts) {
19
- const domainToMappings = {
20
- _api_base_domain_: [
21
- {
22
- srcPath: "/draft-post-service-api-proxy",
23
- destPath: ""
24
- }
25
- ],
26
- "*.dev.wix-code.com": [
27
- {
28
- srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
29
- destPath: "/v3/draft-posts"
30
- },
31
- {
32
- srcPath: "/blog/v3/bulk/draft-posts/create",
33
- destPath: "/v3/bulk/draft-posts/create"
34
- },
35
- {
36
- srcPath: "/blog/v3/bulk/draft-posts",
37
- destPath: "/v3/bulk/draft-posts"
38
- }
39
- ],
40
- "*.pub.wix-code.com": [
41
- {
42
- srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
43
- destPath: "/v3/draft-posts"
44
- }
45
- ],
46
- _: [
47
- {
48
- srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
49
- destPath: "/v3/draft-posts"
50
- },
51
- {
52
- srcPath: "/blog/v3/bulk/draft-posts/create",
53
- destPath: "/v3/bulk/draft-posts/create"
54
- },
55
- {
56
- srcPath: "/blog/v3/bulk/draft-posts",
57
- destPath: "/v3/bulk/draft-posts"
58
- }
59
- ],
60
- "apps._base_domain_": [
61
- {
62
- srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
63
- destPath: "/v3/draft-posts"
64
- }
65
- ],
66
- "bo._base_domain_": [
67
- {
68
- srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
69
- destPath: "/v3/draft-posts"
70
- }
71
- ],
72
- "wixbo.ai": [
73
- {
74
- srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
75
- destPath: "/v3/draft-posts"
76
- }
77
- ],
78
- "wix-bo.com": [
79
- {
80
- srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
81
- destPath: "/v3/draft-posts"
82
- }
83
- ],
84
- "editor._base_domain_": [
85
- {
86
- srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
87
- destPath: "/v3/draft-posts"
88
- }
89
- ],
90
- "blocks._base_domain_": [
91
- {
92
- srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
93
- destPath: "/v3/draft-posts"
94
- }
95
- ],
96
- "create.editorx": [
97
- {
98
- srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
99
- destPath: "/v3/draft-posts"
100
- }
101
- ],
102
- "editor.wixapps.net": [
103
- {
104
- srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
105
- destPath: "/v3/draft-posts"
106
- }
107
- ],
108
- "manage._base_domain_": [
109
- {
110
- srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
111
- destPath: "/v3/draft-posts"
112
- },
113
- {
114
- srcPath: "/_api/draft-post-service-api-proxy/v3/bulk/draft-posts",
115
- destPath: "/v3/bulk/draft-posts"
116
- },
117
- {
118
- srcPath: "/_api/communities-blog-node-api/v3/multilingual",
119
- destPath: "/v3/multilingual"
120
- },
121
- {
122
- srcPath: "/_api/communities-blog-node-api/v3/stats",
123
- destPath: "/v3/stats"
124
- },
125
- {
126
- srcPath: "/_api/communities-blog-node-api/v3/moderation",
127
- destPath: "/v3/moderation"
128
- },
129
- {
130
- srcPath: "/_api/communities-blog-node-api/v3/bulk/moderation",
131
- destPath: "/v3/bulk/moderation"
132
- },
133
- {
134
- srcPath: "/_api/communities-blog-node-api/v3/bulk/draft-posts/create",
135
- destPath: "/v3/bulk/draft-posts/create"
136
- }
137
- ],
138
- "social-blog._base_domain_": [
139
- {
140
- srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
141
- destPath: "/v3/draft-posts"
142
- }
143
- ],
144
- "www.wixapis.com": [
145
- {
146
- srcPath: "/blog/v3/draft-posts",
147
- destPath: "/v3/draft-posts"
148
- },
149
- {
150
- srcPath: "/blog/v3/bulk/draft-posts/create",
151
- destPath: "/v3/bulk/draft-posts/create"
152
- },
153
- {
154
- srcPath: "/blog/v3/draft-posts/",
155
- destPath: "/v3/draft-posts"
156
- },
157
- {
158
- srcPath: "/blog/v3/bulk/draft-posts",
159
- destPath: "/v3/bulk/draft-posts"
160
- }
161
- ],
162
- "www._base_domain_": [
163
- {
164
- srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
165
- destPath: "/v3/draft-posts"
166
- }
167
- ]
168
- };
169
- return resolveUrl(Object.assign(opts, { domainToMappings }));
170
- }
171
- var PACKAGE_NAME = "@wix/auto_sdk_blog_draft-posts";
172
- function createDraftPost(payload) {
173
- function __createDraftPost({ host }) {
174
- const serializedData = transformPaths(payload, [
175
- {
176
- transformFn: transformSDKTimestampToRESTTimestamp,
177
- paths: [
178
- { path: "draftPost.editedDate" },
179
- { path: "draftPost.scheduledPublishDate" },
180
- { path: "draftPost.firstPublishedDate" },
181
- { path: "draftPost.createdDate" },
182
- { path: "draftPost.heroImage.urlExpirationDate" },
183
- { path: "draftPost.richContent.metadata.createdTimestamp" },
184
- { path: "draftPost.richContent.metadata.updatedTimestamp" },
185
- { path: "draftPost.moderationDetails.submittedDate" },
186
- { path: "draftPost.moderationDetails.moderationDate" },
187
- { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
188
- { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
189
- {
190
- path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
191
- },
192
- {
193
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
194
- },
195
- {
196
- path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
197
- }
198
- ]
199
- },
200
- {
201
- transformFn: transformSDKFloatToRESTFloat,
202
- paths: [
203
- { path: "draftPost.heroImage.focalPoint.x" },
204
- { path: "draftPost.heroImage.focalPoint.y" },
205
- { path: "draftPost.media.wixMedia.image.focalPoint.x" },
206
- { path: "draftPost.media.wixMedia.image.focalPoint.y" },
207
- {
208
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
209
- },
210
- {
211
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
212
- },
213
- { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
214
- { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
215
- {
216
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerX"
217
- },
218
- {
219
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerY"
220
- },
221
- {
222
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.stops.position"
223
- },
224
- {
225
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
226
- },
227
- {
228
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
229
- },
230
- {
231
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
232
- },
233
- {
234
- path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
235
- },
236
- {
237
- path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
238
- },
239
- {
240
- path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
241
- },
242
- {
243
- path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
244
- },
245
- { path: "draftPost.richContent.nodes.imageData.image.duration" },
246
- { path: "draftPost.richContent.nodes.imageData.crop.x" },
247
- { path: "draftPost.richContent.nodes.imageData.crop.y" },
248
- { path: "draftPost.richContent.nodes.imageData.crop.width" },
249
- { path: "draftPost.richContent.nodes.imageData.crop.height" },
250
- { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
251
- { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
252
- { path: "draftPost.richContent.nodes.pollData.poll.image.duration" },
253
- {
254
- path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
255
- },
256
- {
257
- path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
258
- },
259
- { path: "draftPost.richContent.nodes.appEmbedData.image.duration" },
260
- { path: "draftPost.richContent.nodes.videoData.video.duration" },
261
- { path: "draftPost.richContent.nodes.videoData.thumbnail.duration" },
262
- { path: "draftPost.richContent.nodes.audioData.audio.duration" },
263
- { path: "draftPost.richContent.nodes.audioData.coverImage.duration" },
264
- {
265
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.media.duration"
266
- },
267
- {
268
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
269
- },
270
- {
271
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
272
- },
273
- {
274
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
275
- },
276
- {
277
- path: "draftPost.richContent.nodes.layoutData.backdropImage.media.duration"
278
- },
279
- {
280
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
281
- },
282
- {
283
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
284
- },
285
- {
286
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
287
- },
288
- {
289
- path: "draftPost.richContent.nodes.layoutData.background.gradient.centerX"
290
- },
291
- {
292
- path: "draftPost.richContent.nodes.layoutData.background.gradient.centerY"
293
- },
294
- {
295
- path: "draftPost.richContent.nodes.layoutData.background.gradient.stops.position"
296
- },
297
- {
298
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerX"
299
- },
300
- {
301
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerY"
302
- },
303
- {
304
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.stops.position"
305
- },
306
- { path: "draftPost.richContent.nodes.shapeData.shape.duration" },
307
- {
308
- path: "draftPost.richContent.nodes.cardData.background.gradient.centerX"
309
- },
310
- {
311
- path: "draftPost.richContent.nodes.cardData.background.gradient.centerY"
312
- },
313
- {
314
- path: "draftPost.richContent.nodes.cardData.background.gradient.stops.position"
315
- },
316
- {
317
- path: "draftPost.richContent.nodes.cardData.backgroundImage.media.duration"
318
- },
319
- {
320
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
321
- },
322
- {
323
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
324
- },
325
- {
326
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
327
- },
328
- { path: "draftPost.richContent.nodes.tocData.fontSize" },
329
- { path: "draftPost.richContent.nodes.tocData.itemSpacing" },
330
- {
331
- path: "draftPost.richContent.nodes.smartBlockCellData.shape.duration"
332
- }
333
- ]
334
- }
335
- ]);
336
- const metadata = {
337
- entityFqdn: "wix.blog.v3.draft",
338
- method: "POST",
339
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.CreateDraftPost",
340
- packageName: PACKAGE_NAME,
341
- migrationOptions: {
342
- optInTransformResponse: true
343
- },
344
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
345
- { protoPath: "/v3/draft-posts", data: serializedData, host }
346
- ),
347
- data: serializedData,
348
- transformResponse: (payload2) => transformPaths(payload2, [
349
- {
350
- transformFn: transformRESTTimestampToSDKTimestamp,
351
- paths: [
352
- { path: "draftPost.editedDate" },
353
- { path: "draftPost.scheduledPublishDate" },
354
- { path: "draftPost.firstPublishedDate" },
355
- { path: "draftPost.createdDate" },
356
- { path: "draftPost.heroImage.urlExpirationDate" },
357
- { path: "draftPost.richContent.metadata.createdTimestamp" },
358
- { path: "draftPost.richContent.metadata.updatedTimestamp" },
359
- { path: "draftPost.moderationDetails.submittedDate" },
360
- { path: "draftPost.moderationDetails.moderationDate" },
361
- { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
362
- { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
363
- {
364
- path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
365
- },
366
- {
367
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
368
- },
369
- {
370
- path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
371
- }
372
- ]
373
- },
374
- {
375
- transformFn: transformRESTFloatToSDKFloat,
376
- paths: [
377
- { path: "draftPost.heroImage.focalPoint.x" },
378
- { path: "draftPost.heroImage.focalPoint.y" },
379
- { path: "draftPost.media.wixMedia.image.focalPoint.x" },
380
- { path: "draftPost.media.wixMedia.image.focalPoint.y" },
381
- {
382
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
383
- },
384
- {
385
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
386
- },
387
- { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
388
- { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
389
- {
390
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerX"
391
- },
392
- {
393
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerY"
394
- },
395
- {
396
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.stops.position"
397
- },
398
- {
399
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
400
- },
401
- {
402
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
403
- },
404
- {
405
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
406
- },
407
- {
408
- path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
409
- },
410
- {
411
- path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
412
- },
413
- {
414
- path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
415
- },
416
- {
417
- path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
418
- },
419
- { path: "draftPost.richContent.nodes.imageData.image.duration" },
420
- { path: "draftPost.richContent.nodes.imageData.crop.x" },
421
- { path: "draftPost.richContent.nodes.imageData.crop.y" },
422
- { path: "draftPost.richContent.nodes.imageData.crop.width" },
423
- { path: "draftPost.richContent.nodes.imageData.crop.height" },
424
- { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
425
- { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
426
- {
427
- path: "draftPost.richContent.nodes.pollData.poll.image.duration"
428
- },
429
- {
430
- path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
431
- },
432
- {
433
- path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
434
- },
435
- {
436
- path: "draftPost.richContent.nodes.appEmbedData.image.duration"
437
- },
438
- { path: "draftPost.richContent.nodes.videoData.video.duration" },
439
- {
440
- path: "draftPost.richContent.nodes.videoData.thumbnail.duration"
441
- },
442
- { path: "draftPost.richContent.nodes.audioData.audio.duration" },
443
- {
444
- path: "draftPost.richContent.nodes.audioData.coverImage.duration"
445
- },
446
- {
447
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.media.duration"
448
- },
449
- {
450
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
451
- },
452
- {
453
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
454
- },
455
- {
456
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
457
- },
458
- {
459
- path: "draftPost.richContent.nodes.layoutData.backdropImage.media.duration"
460
- },
461
- {
462
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
463
- },
464
- {
465
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
466
- },
467
- {
468
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
469
- },
470
- {
471
- path: "draftPost.richContent.nodes.layoutData.background.gradient.centerX"
472
- },
473
- {
474
- path: "draftPost.richContent.nodes.layoutData.background.gradient.centerY"
475
- },
476
- {
477
- path: "draftPost.richContent.nodes.layoutData.background.gradient.stops.position"
478
- },
479
- {
480
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerX"
481
- },
482
- {
483
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerY"
484
- },
485
- {
486
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.stops.position"
487
- },
488
- { path: "draftPost.richContent.nodes.shapeData.shape.duration" },
489
- {
490
- path: "draftPost.richContent.nodes.cardData.background.gradient.centerX"
491
- },
492
- {
493
- path: "draftPost.richContent.nodes.cardData.background.gradient.centerY"
494
- },
495
- {
496
- path: "draftPost.richContent.nodes.cardData.background.gradient.stops.position"
497
- },
498
- {
499
- path: "draftPost.richContent.nodes.cardData.backgroundImage.media.duration"
500
- },
501
- {
502
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
503
- },
504
- {
505
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
506
- },
507
- {
508
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
509
- },
510
- { path: "draftPost.richContent.nodes.tocData.fontSize" },
511
- { path: "draftPost.richContent.nodes.tocData.itemSpacing" },
512
- {
513
- path: "draftPost.richContent.nodes.smartBlockCellData.shape.duration"
514
- }
515
- ]
516
- }
517
- ])
518
- };
519
- return metadata;
520
- }
521
- return __createDraftPost;
522
- }
523
- function bulkCreateDraftPosts(payload) {
524
- function __bulkCreateDraftPosts({ host }) {
525
- const serializedData = transformPaths(payload, [
526
- {
527
- transformFn: transformSDKTimestampToRESTTimestamp,
528
- paths: [
529
- { path: "draftPosts.editedDate" },
530
- { path: "draftPosts.scheduledPublishDate" },
531
- { path: "draftPosts.firstPublishedDate" },
532
- { path: "draftPosts.createdDate" },
533
- { path: "draftPosts.heroImage.urlExpirationDate" },
534
- { path: "draftPosts.richContent.metadata.createdTimestamp" },
535
- { path: "draftPosts.richContent.metadata.updatedTimestamp" },
536
- { path: "draftPosts.moderationDetails.submittedDate" },
537
- { path: "draftPosts.moderationDetails.moderationDate" },
538
- { path: "draftPosts.media.wixMedia.image.urlExpirationDate" },
539
- { path: "draftPosts.media.wixMedia.videoV2.urlExpirationDate" },
540
- {
541
- path: "draftPosts.media.wixMedia.videoV2.resolutions.urlExpirationDate"
542
- },
543
- {
544
- path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
545
- },
546
- {
547
- path: "draftPosts.media.wixMedia.videoV2.posters.urlExpirationDate"
548
- }
549
- ]
550
- },
551
- {
552
- transformFn: transformSDKFloatToRESTFloat,
553
- paths: [
554
- { path: "draftPosts.heroImage.focalPoint.x" },
555
- { path: "draftPosts.heroImage.focalPoint.y" },
556
- { path: "draftPosts.media.wixMedia.image.focalPoint.x" },
557
- { path: "draftPosts.media.wixMedia.image.focalPoint.y" },
558
- {
559
- path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
560
- },
561
- {
562
- path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
563
- },
564
- { path: "draftPosts.media.wixMedia.videoV2.posters.focalPoint.x" },
565
- { path: "draftPosts.media.wixMedia.videoV2.posters.focalPoint.y" },
566
- {
567
- path: "draftPosts.richContent.nodes.buttonData.styles.background.gradient.centerX"
568
- },
569
- {
570
- path: "draftPosts.richContent.nodes.buttonData.styles.background.gradient.centerY"
571
- },
572
- {
573
- path: "draftPosts.richContent.nodes.buttonData.styles.background.gradient.stops.position"
574
- },
575
- {
576
- path: "draftPosts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
577
- },
578
- {
579
- path: "draftPosts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
580
- },
581
- {
582
- path: "draftPosts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
583
- },
584
- {
585
- path: "draftPosts.richContent.nodes.galleryData.items.image.media.duration"
586
- },
587
- {
588
- path: "draftPosts.richContent.nodes.galleryData.items.video.media.duration"
589
- },
590
- {
591
- path: "draftPosts.richContent.nodes.galleryData.items.video.thumbnail.duration"
592
- },
593
- {
594
- path: "draftPosts.richContent.nodes.galleryData.options.item.ratio"
595
- },
596
- { path: "draftPosts.richContent.nodes.imageData.image.duration" },
597
- { path: "draftPosts.richContent.nodes.imageData.crop.x" },
598
- { path: "draftPosts.richContent.nodes.imageData.crop.y" },
599
- { path: "draftPosts.richContent.nodes.imageData.crop.width" },
600
- { path: "draftPosts.richContent.nodes.imageData.crop.height" },
601
- { path: "draftPosts.richContent.nodes.mapData.mapSettings.lat" },
602
- { path: "draftPosts.richContent.nodes.mapData.mapSettings.lng" },
603
- { path: "draftPosts.richContent.nodes.pollData.poll.image.duration" },
604
- {
605
- path: "draftPosts.richContent.nodes.pollData.poll.options.image.duration"
606
- },
607
- {
608
- path: "draftPosts.richContent.nodes.pollData.design.poll.background.image.duration"
609
- },
610
- { path: "draftPosts.richContent.nodes.appEmbedData.image.duration" },
611
- { path: "draftPosts.richContent.nodes.videoData.video.duration" },
612
- { path: "draftPosts.richContent.nodes.videoData.thumbnail.duration" },
613
- { path: "draftPosts.richContent.nodes.audioData.audio.duration" },
614
- {
615
- path: "draftPosts.richContent.nodes.audioData.coverImage.duration"
616
- },
617
- {
618
- path: "draftPosts.richContent.nodes.layoutData.backgroundImage.media.duration"
619
- },
620
- {
621
- path: "draftPosts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
622
- },
623
- {
624
- path: "draftPosts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
625
- },
626
- {
627
- path: "draftPosts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
628
- },
629
- {
630
- path: "draftPosts.richContent.nodes.layoutData.backdropImage.media.duration"
631
- },
632
- {
633
- path: "draftPosts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
634
- },
635
- {
636
- path: "draftPosts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
637
- },
638
- {
639
- path: "draftPosts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
640
- },
641
- {
642
- path: "draftPosts.richContent.nodes.layoutData.background.gradient.centerX"
643
- },
644
- {
645
- path: "draftPosts.richContent.nodes.layoutData.background.gradient.centerY"
646
- },
647
- {
648
- path: "draftPosts.richContent.nodes.layoutData.background.gradient.stops.position"
649
- },
650
- {
651
- path: "draftPosts.richContent.nodes.layoutData.backdrop.gradient.centerX"
652
- },
653
- {
654
- path: "draftPosts.richContent.nodes.layoutData.backdrop.gradient.centerY"
655
- },
656
- {
657
- path: "draftPosts.richContent.nodes.layoutData.backdrop.gradient.stops.position"
658
- },
659
- { path: "draftPosts.richContent.nodes.shapeData.shape.duration" },
660
- {
661
- path: "draftPosts.richContent.nodes.cardData.background.gradient.centerX"
662
- },
663
- {
664
- path: "draftPosts.richContent.nodes.cardData.background.gradient.centerY"
665
- },
666
- {
667
- path: "draftPosts.richContent.nodes.cardData.background.gradient.stops.position"
668
- },
669
- {
670
- path: "draftPosts.richContent.nodes.cardData.backgroundImage.media.duration"
671
- },
672
- {
673
- path: "draftPosts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
674
- },
675
- {
676
- path: "draftPosts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
677
- },
678
- {
679
- path: "draftPosts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
680
- },
681
- { path: "draftPosts.richContent.nodes.tocData.fontSize" },
682
- { path: "draftPosts.richContent.nodes.tocData.itemSpacing" },
683
- {
684
- path: "draftPosts.richContent.nodes.smartBlockCellData.shape.duration"
685
- }
686
- ]
687
- }
688
- ]);
689
- const metadata = {
690
- entityFqdn: "wix.blog.v3.draft",
691
- method: "POST",
692
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.BulkCreateDraftPosts",
693
- packageName: PACKAGE_NAME,
694
- migrationOptions: {
695
- optInTransformResponse: true
696
- },
697
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
698
- { protoPath: "/v3/bulk/draft-posts/create", data: serializedData, host }
699
- ),
700
- data: serializedData,
701
- transformResponse: (payload2) => transformPaths(payload2, [
702
- {
703
- transformFn: transformRESTTimestampToSDKTimestamp,
704
- paths: [
705
- { path: "results.item.editedDate" },
706
- { path: "results.item.scheduledPublishDate" },
707
- { path: "results.item.firstPublishedDate" },
708
- { path: "results.item.createdDate" },
709
- { path: "results.item.heroImage.urlExpirationDate" },
710
- { path: "results.item.richContent.metadata.createdTimestamp" },
711
- { path: "results.item.richContent.metadata.updatedTimestamp" },
712
- { path: "results.item.moderationDetails.submittedDate" },
713
- { path: "results.item.moderationDetails.moderationDate" },
714
- { path: "results.item.media.wixMedia.image.urlExpirationDate" },
715
- { path: "results.item.media.wixMedia.videoV2.urlExpirationDate" },
716
- {
717
- path: "results.item.media.wixMedia.videoV2.resolutions.urlExpirationDate"
718
- },
719
- {
720
- path: "results.item.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
721
- },
722
- {
723
- path: "results.item.media.wixMedia.videoV2.posters.urlExpirationDate"
724
- }
725
- ]
726
- },
727
- {
728
- transformFn: transformRESTFloatToSDKFloat,
729
- paths: [
730
- { path: "results.item.heroImage.focalPoint.x" },
731
- { path: "results.item.heroImage.focalPoint.y" },
732
- { path: "results.item.media.wixMedia.image.focalPoint.x" },
733
- { path: "results.item.media.wixMedia.image.focalPoint.y" },
734
- {
735
- path: "results.item.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
736
- },
737
- {
738
- path: "results.item.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
739
- },
740
- {
741
- path: "results.item.media.wixMedia.videoV2.posters.focalPoint.x"
742
- },
743
- {
744
- path: "results.item.media.wixMedia.videoV2.posters.focalPoint.y"
745
- },
746
- {
747
- path: "results.item.richContent.nodes.buttonData.styles.background.gradient.centerX"
748
- },
749
- {
750
- path: "results.item.richContent.nodes.buttonData.styles.background.gradient.centerY"
751
- },
752
- {
753
- path: "results.item.richContent.nodes.buttonData.styles.background.gradient.stops.position"
754
- },
755
- {
756
- path: "results.item.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
757
- },
758
- {
759
- path: "results.item.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
760
- },
761
- {
762
- path: "results.item.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
763
- },
764
- {
765
- path: "results.item.richContent.nodes.galleryData.items.image.media.duration"
766
- },
767
- {
768
- path: "results.item.richContent.nodes.galleryData.items.video.media.duration"
769
- },
770
- {
771
- path: "results.item.richContent.nodes.galleryData.items.video.thumbnail.duration"
772
- },
773
- {
774
- path: "results.item.richContent.nodes.galleryData.options.item.ratio"
775
- },
776
- {
777
- path: "results.item.richContent.nodes.imageData.image.duration"
778
- },
779
- { path: "results.item.richContent.nodes.imageData.crop.x" },
780
- { path: "results.item.richContent.nodes.imageData.crop.y" },
781
- { path: "results.item.richContent.nodes.imageData.crop.width" },
782
- { path: "results.item.richContent.nodes.imageData.crop.height" },
783
- {
784
- path: "results.item.richContent.nodes.mapData.mapSettings.lat"
785
- },
786
- {
787
- path: "results.item.richContent.nodes.mapData.mapSettings.lng"
788
- },
789
- {
790
- path: "results.item.richContent.nodes.pollData.poll.image.duration"
791
- },
792
- {
793
- path: "results.item.richContent.nodes.pollData.poll.options.image.duration"
794
- },
795
- {
796
- path: "results.item.richContent.nodes.pollData.design.poll.background.image.duration"
797
- },
798
- {
799
- path: "results.item.richContent.nodes.appEmbedData.image.duration"
800
- },
801
- {
802
- path: "results.item.richContent.nodes.videoData.video.duration"
803
- },
804
- {
805
- path: "results.item.richContent.nodes.videoData.thumbnail.duration"
806
- },
807
- {
808
- path: "results.item.richContent.nodes.audioData.audio.duration"
809
- },
810
- {
811
- path: "results.item.richContent.nodes.audioData.coverImage.duration"
812
- },
813
- {
814
- path: "results.item.richContent.nodes.layoutData.backgroundImage.media.duration"
815
- },
816
- {
817
- path: "results.item.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
818
- },
819
- {
820
- path: "results.item.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
821
- },
822
- {
823
- path: "results.item.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
824
- },
825
- {
826
- path: "results.item.richContent.nodes.layoutData.backdropImage.media.duration"
827
- },
828
- {
829
- path: "results.item.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
830
- },
831
- {
832
- path: "results.item.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
833
- },
834
- {
835
- path: "results.item.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
836
- },
837
- {
838
- path: "results.item.richContent.nodes.layoutData.background.gradient.centerX"
839
- },
840
- {
841
- path: "results.item.richContent.nodes.layoutData.background.gradient.centerY"
842
- },
843
- {
844
- path: "results.item.richContent.nodes.layoutData.background.gradient.stops.position"
845
- },
846
- {
847
- path: "results.item.richContent.nodes.layoutData.backdrop.gradient.centerX"
848
- },
849
- {
850
- path: "results.item.richContent.nodes.layoutData.backdrop.gradient.centerY"
851
- },
852
- {
853
- path: "results.item.richContent.nodes.layoutData.backdrop.gradient.stops.position"
854
- },
855
- {
856
- path: "results.item.richContent.nodes.shapeData.shape.duration"
857
- },
858
- {
859
- path: "results.item.richContent.nodes.cardData.background.gradient.centerX"
860
- },
861
- {
862
- path: "results.item.richContent.nodes.cardData.background.gradient.centerY"
863
- },
864
- {
865
- path: "results.item.richContent.nodes.cardData.background.gradient.stops.position"
866
- },
867
- {
868
- path: "results.item.richContent.nodes.cardData.backgroundImage.media.duration"
869
- },
870
- {
871
- path: "results.item.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
872
- },
873
- {
874
- path: "results.item.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
875
- },
876
- {
877
- path: "results.item.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
878
- },
879
- { path: "results.item.richContent.nodes.tocData.fontSize" },
880
- { path: "results.item.richContent.nodes.tocData.itemSpacing" },
881
- {
882
- path: "results.item.richContent.nodes.smartBlockCellData.shape.duration"
883
- }
884
- ]
885
- }
886
- ])
887
- };
888
- return metadata;
889
- }
890
- return __bulkCreateDraftPosts;
891
- }
892
- function bulkUpdateDraftPosts(payload) {
893
- function __bulkUpdateDraftPosts({ host }) {
894
- const serializedData = transformPaths(payload, [
895
- {
896
- transformFn: transformSDKTimestampToRESTTimestamp,
897
- paths: [
898
- { path: "scheduledPublishDate" },
899
- { path: "draftPosts.draftPost.editedDate" },
900
- { path: "draftPosts.draftPost.scheduledPublishDate" },
901
- { path: "draftPosts.draftPost.firstPublishedDate" },
902
- { path: "draftPosts.draftPost.createdDate" },
903
- { path: "draftPosts.draftPost.heroImage.urlExpirationDate" },
904
- {
905
- path: "draftPosts.draftPost.richContent.metadata.createdTimestamp"
906
- },
907
- {
908
- path: "draftPosts.draftPost.richContent.metadata.updatedTimestamp"
909
- },
910
- { path: "draftPosts.draftPost.moderationDetails.submittedDate" },
911
- { path: "draftPosts.draftPost.moderationDetails.moderationDate" },
912
- {
913
- path: "draftPosts.draftPost.media.wixMedia.image.urlExpirationDate"
914
- },
915
- {
916
- path: "draftPosts.draftPost.media.wixMedia.videoV2.urlExpirationDate"
917
- },
918
- {
919
- path: "draftPosts.draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
920
- },
921
- {
922
- path: "draftPosts.draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
923
- },
924
- {
925
- path: "draftPosts.draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
926
- }
927
- ]
928
- },
929
- {
930
- transformFn: transformSDKFieldMaskToRESTFieldMask,
931
- paths: [{ path: "draftPosts.fieldMask" }]
932
- },
933
- {
934
- transformFn: transformSDKFloatToRESTFloat,
935
- paths: [
936
- { path: "draftPosts.draftPost.heroImage.focalPoint.x" },
937
- { path: "draftPosts.draftPost.heroImage.focalPoint.y" },
938
- { path: "draftPosts.draftPost.media.wixMedia.image.focalPoint.x" },
939
- { path: "draftPosts.draftPost.media.wixMedia.image.focalPoint.y" },
940
- {
941
- path: "draftPosts.draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
942
- },
943
- {
944
- path: "draftPosts.draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
945
- },
946
- {
947
- path: "draftPosts.draftPost.media.wixMedia.videoV2.posters.focalPoint.x"
948
- },
949
- {
950
- path: "draftPosts.draftPost.media.wixMedia.videoV2.posters.focalPoint.y"
951
- },
952
- {
953
- path: "draftPosts.draftPost.richContent.nodes.buttonData.styles.background.gradient.centerX"
954
- },
955
- {
956
- path: "draftPosts.draftPost.richContent.nodes.buttonData.styles.background.gradient.centerY"
957
- },
958
- {
959
- path: "draftPosts.draftPost.richContent.nodes.buttonData.styles.background.gradient.stops.position"
960
- },
961
- {
962
- path: "draftPosts.draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
963
- },
964
- {
965
- path: "draftPosts.draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
966
- },
967
- {
968
- path: "draftPosts.draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
969
- },
970
- {
971
- path: "draftPosts.draftPost.richContent.nodes.galleryData.items.image.media.duration"
972
- },
973
- {
974
- path: "draftPosts.draftPost.richContent.nodes.galleryData.items.video.media.duration"
975
- },
976
- {
977
- path: "draftPosts.draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
978
- },
979
- {
980
- path: "draftPosts.draftPost.richContent.nodes.galleryData.options.item.ratio"
981
- },
982
- {
983
- path: "draftPosts.draftPost.richContent.nodes.imageData.image.duration"
984
- },
985
- { path: "draftPosts.draftPost.richContent.nodes.imageData.crop.x" },
986
- { path: "draftPosts.draftPost.richContent.nodes.imageData.crop.y" },
987
- {
988
- path: "draftPosts.draftPost.richContent.nodes.imageData.crop.width"
989
- },
990
- {
991
- path: "draftPosts.draftPost.richContent.nodes.imageData.crop.height"
992
- },
993
- {
994
- path: "draftPosts.draftPost.richContent.nodes.mapData.mapSettings.lat"
995
- },
996
- {
997
- path: "draftPosts.draftPost.richContent.nodes.mapData.mapSettings.lng"
998
- },
999
- {
1000
- path: "draftPosts.draftPost.richContent.nodes.pollData.poll.image.duration"
1001
- },
1002
- {
1003
- path: "draftPosts.draftPost.richContent.nodes.pollData.poll.options.image.duration"
1004
- },
1005
- {
1006
- path: "draftPosts.draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
1007
- },
1008
- {
1009
- path: "draftPosts.draftPost.richContent.nodes.appEmbedData.image.duration"
1010
- },
1011
- {
1012
- path: "draftPosts.draftPost.richContent.nodes.videoData.video.duration"
1013
- },
1014
- {
1015
- path: "draftPosts.draftPost.richContent.nodes.videoData.thumbnail.duration"
1016
- },
1017
- {
1018
- path: "draftPosts.draftPost.richContent.nodes.audioData.audio.duration"
1019
- },
1020
- {
1021
- path: "draftPosts.draftPost.richContent.nodes.audioData.coverImage.duration"
1022
- },
1023
- {
1024
- path: "draftPosts.draftPost.richContent.nodes.layoutData.backgroundImage.media.duration"
1025
- },
1026
- {
1027
- path: "draftPosts.draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1028
- },
1029
- {
1030
- path: "draftPosts.draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1031
- },
1032
- {
1033
- path: "draftPosts.draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1034
- },
1035
- {
1036
- path: "draftPosts.draftPost.richContent.nodes.layoutData.backdropImage.media.duration"
1037
- },
1038
- {
1039
- path: "draftPosts.draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1040
- },
1041
- {
1042
- path: "draftPosts.draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1043
- },
1044
- {
1045
- path: "draftPosts.draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1046
- },
1047
- {
1048
- path: "draftPosts.draftPost.richContent.nodes.layoutData.background.gradient.centerX"
1049
- },
1050
- {
1051
- path: "draftPosts.draftPost.richContent.nodes.layoutData.background.gradient.centerY"
1052
- },
1053
- {
1054
- path: "draftPosts.draftPost.richContent.nodes.layoutData.background.gradient.stops.position"
1055
- },
1056
- {
1057
- path: "draftPosts.draftPost.richContent.nodes.layoutData.backdrop.gradient.centerX"
1058
- },
1059
- {
1060
- path: "draftPosts.draftPost.richContent.nodes.layoutData.backdrop.gradient.centerY"
1061
- },
1062
- {
1063
- path: "draftPosts.draftPost.richContent.nodes.layoutData.backdrop.gradient.stops.position"
1064
- },
1065
- {
1066
- path: "draftPosts.draftPost.richContent.nodes.shapeData.shape.duration"
1067
- },
1068
- {
1069
- path: "draftPosts.draftPost.richContent.nodes.cardData.background.gradient.centerX"
1070
- },
1071
- {
1072
- path: "draftPosts.draftPost.richContent.nodes.cardData.background.gradient.centerY"
1073
- },
1074
- {
1075
- path: "draftPosts.draftPost.richContent.nodes.cardData.background.gradient.stops.position"
1076
- },
1077
- {
1078
- path: "draftPosts.draftPost.richContent.nodes.cardData.backgroundImage.media.duration"
1079
- },
1080
- {
1081
- path: "draftPosts.draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1082
- },
1083
- {
1084
- path: "draftPosts.draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1085
- },
1086
- {
1087
- path: "draftPosts.draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1088
- },
1089
- { path: "draftPosts.draftPost.richContent.nodes.tocData.fontSize" },
1090
- {
1091
- path: "draftPosts.draftPost.richContent.nodes.tocData.itemSpacing"
1092
- },
1093
- {
1094
- path: "draftPosts.draftPost.richContent.nodes.smartBlockCellData.shape.duration"
1095
- }
1096
- ]
1097
- }
1098
- ]);
1099
- const metadata = {
1100
- entityFqdn: "wix.blog.v3.draft",
1101
- method: "PATCH",
1102
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.BulkUpdateDraftPosts",
1103
- packageName: PACKAGE_NAME,
1104
- migrationOptions: {
1105
- optInTransformResponse: true
1106
- },
1107
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
1108
- { protoPath: "/v3/draft-posts/update", data: serializedData, host }
1109
- ),
1110
- data: serializedData,
1111
- transformResponse: (payload2) => transformPaths(payload2, [
1112
- {
1113
- transformFn: transformRESTTimestampToSDKTimestamp,
1114
- paths: [
1115
- { path: "results.item.editedDate" },
1116
- { path: "results.item.scheduledPublishDate" },
1117
- { path: "results.item.firstPublishedDate" },
1118
- { path: "results.item.createdDate" },
1119
- { path: "results.item.heroImage.urlExpirationDate" },
1120
- { path: "results.item.richContent.metadata.createdTimestamp" },
1121
- { path: "results.item.richContent.metadata.updatedTimestamp" },
1122
- { path: "results.item.moderationDetails.submittedDate" },
1123
- { path: "results.item.moderationDetails.moderationDate" },
1124
- { path: "results.item.media.wixMedia.image.urlExpirationDate" },
1125
- { path: "results.item.media.wixMedia.videoV2.urlExpirationDate" },
1126
- {
1127
- path: "results.item.media.wixMedia.videoV2.resolutions.urlExpirationDate"
1128
- },
1129
- {
1130
- path: "results.item.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
1131
- },
1132
- {
1133
- path: "results.item.media.wixMedia.videoV2.posters.urlExpirationDate"
1134
- }
1135
- ]
1136
- },
1137
- {
1138
- transformFn: transformRESTFloatToSDKFloat,
1139
- paths: [
1140
- { path: "results.item.heroImage.focalPoint.x" },
1141
- { path: "results.item.heroImage.focalPoint.y" },
1142
- { path: "results.item.media.wixMedia.image.focalPoint.x" },
1143
- { path: "results.item.media.wixMedia.image.focalPoint.y" },
1144
- {
1145
- path: "results.item.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
1146
- },
1147
- {
1148
- path: "results.item.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
1149
- },
1150
- {
1151
- path: "results.item.media.wixMedia.videoV2.posters.focalPoint.x"
1152
- },
1153
- {
1154
- path: "results.item.media.wixMedia.videoV2.posters.focalPoint.y"
1155
- },
1156
- {
1157
- path: "results.item.richContent.nodes.buttonData.styles.background.gradient.centerX"
1158
- },
1159
- {
1160
- path: "results.item.richContent.nodes.buttonData.styles.background.gradient.centerY"
1161
- },
1162
- {
1163
- path: "results.item.richContent.nodes.buttonData.styles.background.gradient.stops.position"
1164
- },
1165
- {
1166
- path: "results.item.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1167
- },
1168
- {
1169
- path: "results.item.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
1170
- },
1171
- {
1172
- path: "results.item.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
1173
- },
1174
- {
1175
- path: "results.item.richContent.nodes.galleryData.items.image.media.duration"
1176
- },
1177
- {
1178
- path: "results.item.richContent.nodes.galleryData.items.video.media.duration"
1179
- },
1180
- {
1181
- path: "results.item.richContent.nodes.galleryData.items.video.thumbnail.duration"
1182
- },
1183
- {
1184
- path: "results.item.richContent.nodes.galleryData.options.item.ratio"
1185
- },
1186
- {
1187
- path: "results.item.richContent.nodes.imageData.image.duration"
1188
- },
1189
- { path: "results.item.richContent.nodes.imageData.crop.x" },
1190
- { path: "results.item.richContent.nodes.imageData.crop.y" },
1191
- { path: "results.item.richContent.nodes.imageData.crop.width" },
1192
- { path: "results.item.richContent.nodes.imageData.crop.height" },
1193
- {
1194
- path: "results.item.richContent.nodes.mapData.mapSettings.lat"
1195
- },
1196
- {
1197
- path: "results.item.richContent.nodes.mapData.mapSettings.lng"
1198
- },
1199
- {
1200
- path: "results.item.richContent.nodes.pollData.poll.image.duration"
1201
- },
1202
- {
1203
- path: "results.item.richContent.nodes.pollData.poll.options.image.duration"
1204
- },
1205
- {
1206
- path: "results.item.richContent.nodes.pollData.design.poll.background.image.duration"
1207
- },
1208
- {
1209
- path: "results.item.richContent.nodes.appEmbedData.image.duration"
1210
- },
1211
- {
1212
- path: "results.item.richContent.nodes.videoData.video.duration"
1213
- },
1214
- {
1215
- path: "results.item.richContent.nodes.videoData.thumbnail.duration"
1216
- },
1217
- {
1218
- path: "results.item.richContent.nodes.audioData.audio.duration"
1219
- },
1220
- {
1221
- path: "results.item.richContent.nodes.audioData.coverImage.duration"
1222
- },
1223
- {
1224
- path: "results.item.richContent.nodes.layoutData.backgroundImage.media.duration"
1225
- },
1226
- {
1227
- path: "results.item.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1228
- },
1229
- {
1230
- path: "results.item.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1231
- },
1232
- {
1233
- path: "results.item.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1234
- },
1235
- {
1236
- path: "results.item.richContent.nodes.layoutData.backdropImage.media.duration"
1237
- },
1238
- {
1239
- path: "results.item.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1240
- },
1241
- {
1242
- path: "results.item.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1243
- },
1244
- {
1245
- path: "results.item.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1246
- },
1247
- {
1248
- path: "results.item.richContent.nodes.layoutData.background.gradient.centerX"
1249
- },
1250
- {
1251
- path: "results.item.richContent.nodes.layoutData.background.gradient.centerY"
1252
- },
1253
- {
1254
- path: "results.item.richContent.nodes.layoutData.background.gradient.stops.position"
1255
- },
1256
- {
1257
- path: "results.item.richContent.nodes.layoutData.backdrop.gradient.centerX"
1258
- },
1259
- {
1260
- path: "results.item.richContent.nodes.layoutData.backdrop.gradient.centerY"
1261
- },
1262
- {
1263
- path: "results.item.richContent.nodes.layoutData.backdrop.gradient.stops.position"
1264
- },
1265
- {
1266
- path: "results.item.richContent.nodes.shapeData.shape.duration"
1267
- },
1268
- {
1269
- path: "results.item.richContent.nodes.cardData.background.gradient.centerX"
1270
- },
1271
- {
1272
- path: "results.item.richContent.nodes.cardData.background.gradient.centerY"
1273
- },
1274
- {
1275
- path: "results.item.richContent.nodes.cardData.background.gradient.stops.position"
1276
- },
1277
- {
1278
- path: "results.item.richContent.nodes.cardData.backgroundImage.media.duration"
1279
- },
1280
- {
1281
- path: "results.item.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1282
- },
1283
- {
1284
- path: "results.item.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1285
- },
1286
- {
1287
- path: "results.item.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1288
- },
1289
- { path: "results.item.richContent.nodes.tocData.fontSize" },
1290
- { path: "results.item.richContent.nodes.tocData.itemSpacing" },
1291
- {
1292
- path: "results.item.richContent.nodes.smartBlockCellData.shape.duration"
1293
- }
1294
- ]
1295
- }
1296
- ])
1297
- };
1298
- return metadata;
1299
- }
1300
- return __bulkUpdateDraftPosts;
1301
- }
1302
- function listDeletedDraftPosts(payload) {
1303
- function __listDeletedDraftPosts({ host }) {
1304
- const metadata = {
1305
- entityFqdn: "wix.blog.v3.draft",
1306
- method: "GET",
1307
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.ListDeletedDraftPosts",
1308
- packageName: PACKAGE_NAME,
1309
- migrationOptions: {
1310
- optInTransformResponse: true
1311
- },
1312
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
1313
- { protoPath: "/v3/draft-posts/trash-bin", data: payload, host }
1314
- ),
1315
- params: toURLSearchParams(payload),
1316
- transformResponse: (payload2) => transformPaths(payload2, [
1317
- {
1318
- transformFn: transformRESTTimestampToSDKTimestamp,
1319
- paths: [
1320
- { path: "draftPosts.editedDate" },
1321
- { path: "draftPosts.scheduledPublishDate" },
1322
- { path: "draftPosts.firstPublishedDate" },
1323
- { path: "draftPosts.createdDate" },
1324
- { path: "draftPosts.heroImage.urlExpirationDate" },
1325
- { path: "draftPosts.richContent.metadata.createdTimestamp" },
1326
- { path: "draftPosts.richContent.metadata.updatedTimestamp" },
1327
- { path: "draftPosts.moderationDetails.submittedDate" },
1328
- { path: "draftPosts.moderationDetails.moderationDate" },
1329
- { path: "draftPosts.media.wixMedia.image.urlExpirationDate" },
1330
- { path: "draftPosts.media.wixMedia.videoV2.urlExpirationDate" },
1331
- {
1332
- path: "draftPosts.media.wixMedia.videoV2.resolutions.urlExpirationDate"
1333
- },
1334
- {
1335
- path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
1336
- },
1337
- {
1338
- path: "draftPosts.media.wixMedia.videoV2.posters.urlExpirationDate"
1339
- }
1340
- ]
1341
- },
1342
- {
1343
- transformFn: transformRESTFloatToSDKFloat,
1344
- paths: [
1345
- { path: "draftPosts.heroImage.focalPoint.x" },
1346
- { path: "draftPosts.heroImage.focalPoint.y" },
1347
- { path: "draftPosts.media.wixMedia.image.focalPoint.x" },
1348
- { path: "draftPosts.media.wixMedia.image.focalPoint.y" },
1349
- {
1350
- path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
1351
- },
1352
- {
1353
- path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
1354
- },
1355
- {
1356
- path: "draftPosts.media.wixMedia.videoV2.posters.focalPoint.x"
1357
- },
1358
- {
1359
- path: "draftPosts.media.wixMedia.videoV2.posters.focalPoint.y"
1360
- },
1361
- {
1362
- path: "draftPosts.richContent.nodes.buttonData.styles.background.gradient.centerX"
1363
- },
1364
- {
1365
- path: "draftPosts.richContent.nodes.buttonData.styles.background.gradient.centerY"
1366
- },
1367
- {
1368
- path: "draftPosts.richContent.nodes.buttonData.styles.background.gradient.stops.position"
1369
- },
1370
- {
1371
- path: "draftPosts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1372
- },
1373
- {
1374
- path: "draftPosts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
1375
- },
1376
- {
1377
- path: "draftPosts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
1378
- },
1379
- {
1380
- path: "draftPosts.richContent.nodes.galleryData.items.image.media.duration"
1381
- },
1382
- {
1383
- path: "draftPosts.richContent.nodes.galleryData.items.video.media.duration"
1384
- },
1385
- {
1386
- path: "draftPosts.richContent.nodes.galleryData.items.video.thumbnail.duration"
1387
- },
1388
- {
1389
- path: "draftPosts.richContent.nodes.galleryData.options.item.ratio"
1390
- },
1391
- { path: "draftPosts.richContent.nodes.imageData.image.duration" },
1392
- { path: "draftPosts.richContent.nodes.imageData.crop.x" },
1393
- { path: "draftPosts.richContent.nodes.imageData.crop.y" },
1394
- { path: "draftPosts.richContent.nodes.imageData.crop.width" },
1395
- { path: "draftPosts.richContent.nodes.imageData.crop.height" },
1396
- { path: "draftPosts.richContent.nodes.mapData.mapSettings.lat" },
1397
- { path: "draftPosts.richContent.nodes.mapData.mapSettings.lng" },
1398
- {
1399
- path: "draftPosts.richContent.nodes.pollData.poll.image.duration"
1400
- },
1401
- {
1402
- path: "draftPosts.richContent.nodes.pollData.poll.options.image.duration"
1403
- },
1404
- {
1405
- path: "draftPosts.richContent.nodes.pollData.design.poll.background.image.duration"
1406
- },
1407
- {
1408
- path: "draftPosts.richContent.nodes.appEmbedData.image.duration"
1409
- },
1410
- { path: "draftPosts.richContent.nodes.videoData.video.duration" },
1411
- {
1412
- path: "draftPosts.richContent.nodes.videoData.thumbnail.duration"
1413
- },
1414
- { path: "draftPosts.richContent.nodes.audioData.audio.duration" },
1415
- {
1416
- path: "draftPosts.richContent.nodes.audioData.coverImage.duration"
1417
- },
1418
- {
1419
- path: "draftPosts.richContent.nodes.layoutData.backgroundImage.media.duration"
1420
- },
1421
- {
1422
- path: "draftPosts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1423
- },
1424
- {
1425
- path: "draftPosts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1426
- },
1427
- {
1428
- path: "draftPosts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1429
- },
1430
- {
1431
- path: "draftPosts.richContent.nodes.layoutData.backdropImage.media.duration"
1432
- },
1433
- {
1434
- path: "draftPosts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1435
- },
1436
- {
1437
- path: "draftPosts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1438
- },
1439
- {
1440
- path: "draftPosts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1441
- },
1442
- {
1443
- path: "draftPosts.richContent.nodes.layoutData.background.gradient.centerX"
1444
- },
1445
- {
1446
- path: "draftPosts.richContent.nodes.layoutData.background.gradient.centerY"
1447
- },
1448
- {
1449
- path: "draftPosts.richContent.nodes.layoutData.background.gradient.stops.position"
1450
- },
1451
- {
1452
- path: "draftPosts.richContent.nodes.layoutData.backdrop.gradient.centerX"
1453
- },
1454
- {
1455
- path: "draftPosts.richContent.nodes.layoutData.backdrop.gradient.centerY"
1456
- },
1457
- {
1458
- path: "draftPosts.richContent.nodes.layoutData.backdrop.gradient.stops.position"
1459
- },
1460
- { path: "draftPosts.richContent.nodes.shapeData.shape.duration" },
1461
- {
1462
- path: "draftPosts.richContent.nodes.cardData.background.gradient.centerX"
1463
- },
1464
- {
1465
- path: "draftPosts.richContent.nodes.cardData.background.gradient.centerY"
1466
- },
1467
- {
1468
- path: "draftPosts.richContent.nodes.cardData.background.gradient.stops.position"
1469
- },
1470
- {
1471
- path: "draftPosts.richContent.nodes.cardData.backgroundImage.media.duration"
1472
- },
1473
- {
1474
- path: "draftPosts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1475
- },
1476
- {
1477
- path: "draftPosts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1478
- },
1479
- {
1480
- path: "draftPosts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1481
- },
1482
- { path: "draftPosts.richContent.nodes.tocData.fontSize" },
1483
- { path: "draftPosts.richContent.nodes.tocData.itemSpacing" },
1484
- {
1485
- path: "draftPosts.richContent.nodes.smartBlockCellData.shape.duration"
1486
- }
1487
- ]
1488
- }
1489
- ])
1490
- };
1491
- return metadata;
1492
- }
1493
- return __listDeletedDraftPosts;
1494
- }
1495
- function getDraftPost(payload) {
1496
- function __getDraftPost({ host }) {
1497
- const metadata = {
1498
- entityFqdn: "wix.blog.v3.draft",
1499
- method: "GET",
1500
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.GetDraftPost",
1501
- packageName: PACKAGE_NAME,
1502
- migrationOptions: {
1503
- optInTransformResponse: true
1504
- },
1505
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
1506
- { protoPath: "/v3/draft-posts/{draftPostId}", data: payload, host }
1507
- ),
1508
- params: toURLSearchParams(payload),
1509
- transformResponse: (payload2) => transformPaths(payload2, [
1510
- {
1511
- transformFn: transformRESTTimestampToSDKTimestamp,
1512
- paths: [
1513
- { path: "draftPost.editedDate" },
1514
- { path: "draftPost.scheduledPublishDate" },
1515
- { path: "draftPost.firstPublishedDate" },
1516
- { path: "draftPost.createdDate" },
1517
- { path: "draftPost.heroImage.urlExpirationDate" },
1518
- { path: "draftPost.richContent.metadata.createdTimestamp" },
1519
- { path: "draftPost.richContent.metadata.updatedTimestamp" },
1520
- { path: "draftPost.moderationDetails.submittedDate" },
1521
- { path: "draftPost.moderationDetails.moderationDate" },
1522
- { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
1523
- { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
1524
- {
1525
- path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
1526
- },
1527
- {
1528
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
1529
- },
1530
- {
1531
- path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
1532
- }
1533
- ]
1534
- },
1535
- {
1536
- transformFn: transformRESTFloatToSDKFloat,
1537
- paths: [
1538
- { path: "draftPost.heroImage.focalPoint.x" },
1539
- { path: "draftPost.heroImage.focalPoint.y" },
1540
- { path: "draftPost.media.wixMedia.image.focalPoint.x" },
1541
- { path: "draftPost.media.wixMedia.image.focalPoint.y" },
1542
- {
1543
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
1544
- },
1545
- {
1546
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
1547
- },
1548
- { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
1549
- { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
1550
- {
1551
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerX"
1552
- },
1553
- {
1554
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerY"
1555
- },
1556
- {
1557
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.stops.position"
1558
- },
1559
- {
1560
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1561
- },
1562
- {
1563
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
1564
- },
1565
- {
1566
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
1567
- },
1568
- {
1569
- path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
1570
- },
1571
- {
1572
- path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
1573
- },
1574
- {
1575
- path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
1576
- },
1577
- {
1578
- path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
1579
- },
1580
- { path: "draftPost.richContent.nodes.imageData.image.duration" },
1581
- { path: "draftPost.richContent.nodes.imageData.crop.x" },
1582
- { path: "draftPost.richContent.nodes.imageData.crop.y" },
1583
- { path: "draftPost.richContent.nodes.imageData.crop.width" },
1584
- { path: "draftPost.richContent.nodes.imageData.crop.height" },
1585
- { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
1586
- { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
1587
- {
1588
- path: "draftPost.richContent.nodes.pollData.poll.image.duration"
1589
- },
1590
- {
1591
- path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
1592
- },
1593
- {
1594
- path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
1595
- },
1596
- {
1597
- path: "draftPost.richContent.nodes.appEmbedData.image.duration"
1598
- },
1599
- { path: "draftPost.richContent.nodes.videoData.video.duration" },
1600
- {
1601
- path: "draftPost.richContent.nodes.videoData.thumbnail.duration"
1602
- },
1603
- { path: "draftPost.richContent.nodes.audioData.audio.duration" },
1604
- {
1605
- path: "draftPost.richContent.nodes.audioData.coverImage.duration"
1606
- },
1607
- {
1608
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.media.duration"
1609
- },
1610
- {
1611
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1612
- },
1613
- {
1614
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1615
- },
1616
- {
1617
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1618
- },
1619
- {
1620
- path: "draftPost.richContent.nodes.layoutData.backdropImage.media.duration"
1621
- },
1622
- {
1623
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1624
- },
1625
- {
1626
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1627
- },
1628
- {
1629
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1630
- },
1631
- {
1632
- path: "draftPost.richContent.nodes.layoutData.background.gradient.centerX"
1633
- },
1634
- {
1635
- path: "draftPost.richContent.nodes.layoutData.background.gradient.centerY"
1636
- },
1637
- {
1638
- path: "draftPost.richContent.nodes.layoutData.background.gradient.stops.position"
1639
- },
1640
- {
1641
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerX"
1642
- },
1643
- {
1644
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerY"
1645
- },
1646
- {
1647
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.stops.position"
1648
- },
1649
- { path: "draftPost.richContent.nodes.shapeData.shape.duration" },
1650
- {
1651
- path: "draftPost.richContent.nodes.cardData.background.gradient.centerX"
1652
- },
1653
- {
1654
- path: "draftPost.richContent.nodes.cardData.background.gradient.centerY"
1655
- },
1656
- {
1657
- path: "draftPost.richContent.nodes.cardData.background.gradient.stops.position"
1658
- },
1659
- {
1660
- path: "draftPost.richContent.nodes.cardData.backgroundImage.media.duration"
1661
- },
1662
- {
1663
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1664
- },
1665
- {
1666
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1667
- },
1668
- {
1669
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1670
- },
1671
- { path: "draftPost.richContent.nodes.tocData.fontSize" },
1672
- { path: "draftPost.richContent.nodes.tocData.itemSpacing" },
1673
- {
1674
- path: "draftPost.richContent.nodes.smartBlockCellData.shape.duration"
1675
- }
1676
- ]
1677
- }
1678
- ])
1679
- };
1680
- return metadata;
1681
- }
1682
- return __getDraftPost;
1683
- }
1684
- function updateDraftPost(payload) {
1685
- function __updateDraftPost({ host }) {
1686
- const serializedData = transformPaths(payload, [
1687
- {
1688
- transformFn: transformSDKFieldMaskToRESTFieldMask,
1689
- paths: [{ path: "fieldMask" }]
1690
- },
1691
- {
1692
- transformFn: transformSDKTimestampToRESTTimestamp,
1693
- paths: [
1694
- { path: "scheduledPublishDate" },
1695
- { path: "draftPost.editedDate" },
1696
- { path: "draftPost.scheduledPublishDate" },
1697
- { path: "draftPost.firstPublishedDate" },
1698
- { path: "draftPost.createdDate" },
1699
- { path: "draftPost.heroImage.urlExpirationDate" },
1700
- { path: "draftPost.richContent.metadata.createdTimestamp" },
1701
- { path: "draftPost.richContent.metadata.updatedTimestamp" },
1702
- { path: "draftPost.moderationDetails.submittedDate" },
1703
- { path: "draftPost.moderationDetails.moderationDate" },
1704
- { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
1705
- { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
1706
- {
1707
- path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
1708
- },
1709
- {
1710
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
1711
- },
1712
- {
1713
- path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
1714
- }
1715
- ]
1716
- },
1717
- {
1718
- transformFn: transformSDKFloatToRESTFloat,
1719
- paths: [
1720
- { path: "draftPost.heroImage.focalPoint.x" },
1721
- { path: "draftPost.heroImage.focalPoint.y" },
1722
- { path: "draftPost.media.wixMedia.image.focalPoint.x" },
1723
- { path: "draftPost.media.wixMedia.image.focalPoint.y" },
1724
- {
1725
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
1726
- },
1727
- {
1728
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
1729
- },
1730
- { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
1731
- { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
1732
- {
1733
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerX"
1734
- },
1735
- {
1736
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerY"
1737
- },
1738
- {
1739
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.stops.position"
1740
- },
1741
- {
1742
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1743
- },
1744
- {
1745
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
1746
- },
1747
- {
1748
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
1749
- },
1750
- {
1751
- path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
1752
- },
1753
- {
1754
- path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
1755
- },
1756
- {
1757
- path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
1758
- },
1759
- {
1760
- path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
1761
- },
1762
- { path: "draftPost.richContent.nodes.imageData.image.duration" },
1763
- { path: "draftPost.richContent.nodes.imageData.crop.x" },
1764
- { path: "draftPost.richContent.nodes.imageData.crop.y" },
1765
- { path: "draftPost.richContent.nodes.imageData.crop.width" },
1766
- { path: "draftPost.richContent.nodes.imageData.crop.height" },
1767
- { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
1768
- { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
1769
- { path: "draftPost.richContent.nodes.pollData.poll.image.duration" },
1770
- {
1771
- path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
1772
- },
1773
- {
1774
- path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
1775
- },
1776
- { path: "draftPost.richContent.nodes.appEmbedData.image.duration" },
1777
- { path: "draftPost.richContent.nodes.videoData.video.duration" },
1778
- { path: "draftPost.richContent.nodes.videoData.thumbnail.duration" },
1779
- { path: "draftPost.richContent.nodes.audioData.audio.duration" },
1780
- { path: "draftPost.richContent.nodes.audioData.coverImage.duration" },
1781
- {
1782
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.media.duration"
1783
- },
1784
- {
1785
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1786
- },
1787
- {
1788
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1789
- },
1790
- {
1791
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1792
- },
1793
- {
1794
- path: "draftPost.richContent.nodes.layoutData.backdropImage.media.duration"
1795
- },
1796
- {
1797
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1798
- },
1799
- {
1800
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1801
- },
1802
- {
1803
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1804
- },
1805
- {
1806
- path: "draftPost.richContent.nodes.layoutData.background.gradient.centerX"
1807
- },
1808
- {
1809
- path: "draftPost.richContent.nodes.layoutData.background.gradient.centerY"
1810
- },
1811
- {
1812
- path: "draftPost.richContent.nodes.layoutData.background.gradient.stops.position"
1813
- },
1814
- {
1815
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerX"
1816
- },
1817
- {
1818
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerY"
1819
- },
1820
- {
1821
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.stops.position"
1822
- },
1823
- { path: "draftPost.richContent.nodes.shapeData.shape.duration" },
1824
- {
1825
- path: "draftPost.richContent.nodes.cardData.background.gradient.centerX"
1826
- },
1827
- {
1828
- path: "draftPost.richContent.nodes.cardData.background.gradient.centerY"
1829
- },
1830
- {
1831
- path: "draftPost.richContent.nodes.cardData.background.gradient.stops.position"
1832
- },
1833
- {
1834
- path: "draftPost.richContent.nodes.cardData.backgroundImage.media.duration"
1835
- },
1836
- {
1837
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1838
- },
1839
- {
1840
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1841
- },
1842
- {
1843
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1844
- },
1845
- { path: "draftPost.richContent.nodes.tocData.fontSize" },
1846
- { path: "draftPost.richContent.nodes.tocData.itemSpacing" },
1847
- {
1848
- path: "draftPost.richContent.nodes.smartBlockCellData.shape.duration"
1849
- }
1850
- ]
1851
- }
1852
- ]);
1853
- const metadata = {
1854
- entityFqdn: "wix.blog.v3.draft",
1855
- method: "PATCH",
1856
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.UpdateDraftPost",
1857
- packageName: PACKAGE_NAME,
1858
- migrationOptions: {
1859
- optInTransformResponse: true
1860
- },
1861
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
1862
- {
1863
- protoPath: "/v3/draft-posts/{draftPost.id}",
1864
- data: serializedData,
1865
- host
1866
- }
1867
- ),
1868
- data: serializedData,
1869
- transformResponse: (payload2) => transformPaths(payload2, [
1870
- {
1871
- transformFn: transformRESTTimestampToSDKTimestamp,
1872
- paths: [
1873
- { path: "draftPost.editedDate" },
1874
- { path: "draftPost.scheduledPublishDate" },
1875
- { path: "draftPost.firstPublishedDate" },
1876
- { path: "draftPost.createdDate" },
1877
- { path: "draftPost.heroImage.urlExpirationDate" },
1878
- { path: "draftPost.richContent.metadata.createdTimestamp" },
1879
- { path: "draftPost.richContent.metadata.updatedTimestamp" },
1880
- { path: "draftPost.moderationDetails.submittedDate" },
1881
- { path: "draftPost.moderationDetails.moderationDate" },
1882
- { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
1883
- { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
1884
- {
1885
- path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
1886
- },
1887
- {
1888
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
1889
- },
1890
- {
1891
- path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
1892
- }
1893
- ]
1894
- },
1895
- {
1896
- transformFn: transformRESTFloatToSDKFloat,
1897
- paths: [
1898
- { path: "draftPost.heroImage.focalPoint.x" },
1899
- { path: "draftPost.heroImage.focalPoint.y" },
1900
- { path: "draftPost.media.wixMedia.image.focalPoint.x" },
1901
- { path: "draftPost.media.wixMedia.image.focalPoint.y" },
1902
- {
1903
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
1904
- },
1905
- {
1906
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
1907
- },
1908
- { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
1909
- { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
1910
- {
1911
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerX"
1912
- },
1913
- {
1914
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerY"
1915
- },
1916
- {
1917
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.stops.position"
1918
- },
1919
- {
1920
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1921
- },
1922
- {
1923
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
1924
- },
1925
- {
1926
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
1927
- },
1928
- {
1929
- path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
1930
- },
1931
- {
1932
- path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
1933
- },
1934
- {
1935
- path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
1936
- },
1937
- {
1938
- path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
1939
- },
1940
- { path: "draftPost.richContent.nodes.imageData.image.duration" },
1941
- { path: "draftPost.richContent.nodes.imageData.crop.x" },
1942
- { path: "draftPost.richContent.nodes.imageData.crop.y" },
1943
- { path: "draftPost.richContent.nodes.imageData.crop.width" },
1944
- { path: "draftPost.richContent.nodes.imageData.crop.height" },
1945
- { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
1946
- { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
1947
- {
1948
- path: "draftPost.richContent.nodes.pollData.poll.image.duration"
1949
- },
1950
- {
1951
- path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
1952
- },
1953
- {
1954
- path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
1955
- },
1956
- {
1957
- path: "draftPost.richContent.nodes.appEmbedData.image.duration"
1958
- },
1959
- { path: "draftPost.richContent.nodes.videoData.video.duration" },
1960
- {
1961
- path: "draftPost.richContent.nodes.videoData.thumbnail.duration"
1962
- },
1963
- { path: "draftPost.richContent.nodes.audioData.audio.duration" },
1964
- {
1965
- path: "draftPost.richContent.nodes.audioData.coverImage.duration"
1966
- },
1967
- {
1968
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.media.duration"
1969
- },
1970
- {
1971
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1972
- },
1973
- {
1974
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1975
- },
1976
- {
1977
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1978
- },
1979
- {
1980
- path: "draftPost.richContent.nodes.layoutData.backdropImage.media.duration"
1981
- },
1982
- {
1983
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1984
- },
1985
- {
1986
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1987
- },
1988
- {
1989
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1990
- },
1991
- {
1992
- path: "draftPost.richContent.nodes.layoutData.background.gradient.centerX"
1993
- },
1994
- {
1995
- path: "draftPost.richContent.nodes.layoutData.background.gradient.centerY"
1996
- },
1997
- {
1998
- path: "draftPost.richContent.nodes.layoutData.background.gradient.stops.position"
1999
- },
2000
- {
2001
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerX"
2002
- },
2003
- {
2004
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerY"
2005
- },
2006
- {
2007
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.stops.position"
2008
- },
2009
- { path: "draftPost.richContent.nodes.shapeData.shape.duration" },
2010
- {
2011
- path: "draftPost.richContent.nodes.cardData.background.gradient.centerX"
2012
- },
2013
- {
2014
- path: "draftPost.richContent.nodes.cardData.background.gradient.centerY"
2015
- },
2016
- {
2017
- path: "draftPost.richContent.nodes.cardData.background.gradient.stops.position"
2018
- },
2019
- {
2020
- path: "draftPost.richContent.nodes.cardData.backgroundImage.media.duration"
2021
- },
2022
- {
2023
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
2024
- },
2025
- {
2026
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
2027
- },
2028
- {
2029
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
2030
- },
2031
- { path: "draftPost.richContent.nodes.tocData.fontSize" },
2032
- { path: "draftPost.richContent.nodes.tocData.itemSpacing" },
2033
- {
2034
- path: "draftPost.richContent.nodes.smartBlockCellData.shape.duration"
2035
- }
2036
- ]
2037
- }
2038
- ])
2039
- };
2040
- return metadata;
2041
- }
2042
- return __updateDraftPost;
2043
- }
2044
- function deleteDraftPost(payload) {
2045
- function __deleteDraftPost({ host }) {
2046
- const metadata = {
2047
- entityFqdn: "wix.blog.v3.draft",
2048
- method: "DELETE",
2049
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.DeleteDraftPost",
2050
- packageName: PACKAGE_NAME,
2051
- migrationOptions: {
2052
- optInTransformResponse: true
2053
- },
2054
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
2055
- { protoPath: "/v3/draft-posts/{draftPostId}", data: payload, host }
2056
- ),
2057
- params: toURLSearchParams(payload)
2058
- };
2059
- return metadata;
2060
- }
2061
- return __deleteDraftPost;
2062
- }
2063
- function removeFromTrashBin(payload) {
2064
- function __removeFromTrashBin({ host }) {
2065
- const metadata = {
2066
- entityFqdn: "wix.blog.v3.draft",
2067
- method: "DELETE",
2068
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.RemoveFromTrashBin",
2069
- packageName: PACKAGE_NAME,
2070
- migrationOptions: {
2071
- optInTransformResponse: true
2072
- },
2073
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
2074
- {
2075
- protoPath: "/v3/draft-posts/trash-bin/{draftPostId}",
2076
- data: payload,
2077
- host
2078
- }
2079
- ),
2080
- params: toURLSearchParams(payload)
2081
- };
2082
- return metadata;
2083
- }
2084
- return __removeFromTrashBin;
2085
- }
2086
- function bulkDeleteDraftPosts(payload) {
2087
- function __bulkDeleteDraftPosts({ host }) {
2088
- const metadata = {
2089
- entityFqdn: "wix.blog.v3.draft",
2090
- method: "DELETE",
2091
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.BulkDeleteDraftPosts",
2092
- packageName: PACKAGE_NAME,
2093
- migrationOptions: {
2094
- optInTransformResponse: true
2095
- },
2096
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
2097
- { protoPath: "/v3/bulk/draft-posts", data: payload, host }
2098
- ),
2099
- params: toURLSearchParams(payload),
2100
- transformResponse: (payload2) => transformPaths(payload2, [
2101
- {
2102
- transformFn: transformRESTTimestampToSDKTimestamp,
2103
- paths: [
2104
- { path: "results.item.editedDate" },
2105
- { path: "results.item.scheduledPublishDate" },
2106
- { path: "results.item.firstPublishedDate" },
2107
- { path: "results.item.createdDate" },
2108
- { path: "results.item.heroImage.urlExpirationDate" },
2109
- { path: "results.item.richContent.metadata.createdTimestamp" },
2110
- { path: "results.item.richContent.metadata.updatedTimestamp" },
2111
- { path: "results.item.moderationDetails.submittedDate" },
2112
- { path: "results.item.moderationDetails.moderationDate" },
2113
- { path: "results.item.media.wixMedia.image.urlExpirationDate" },
2114
- { path: "results.item.media.wixMedia.videoV2.urlExpirationDate" },
2115
- {
2116
- path: "results.item.media.wixMedia.videoV2.resolutions.urlExpirationDate"
2117
- },
2118
- {
2119
- path: "results.item.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
2120
- },
2121
- {
2122
- path: "results.item.media.wixMedia.videoV2.posters.urlExpirationDate"
2123
- }
2124
- ]
2125
- },
2126
- {
2127
- transformFn: transformRESTFloatToSDKFloat,
2128
- paths: [
2129
- { path: "results.item.heroImage.focalPoint.x" },
2130
- { path: "results.item.heroImage.focalPoint.y" },
2131
- { path: "results.item.media.wixMedia.image.focalPoint.x" },
2132
- { path: "results.item.media.wixMedia.image.focalPoint.y" },
2133
- {
2134
- path: "results.item.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
2135
- },
2136
- {
2137
- path: "results.item.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
2138
- },
2139
- {
2140
- path: "results.item.media.wixMedia.videoV2.posters.focalPoint.x"
2141
- },
2142
- {
2143
- path: "results.item.media.wixMedia.videoV2.posters.focalPoint.y"
2144
- },
2145
- {
2146
- path: "results.item.richContent.nodes.buttonData.styles.background.gradient.centerX"
2147
- },
2148
- {
2149
- path: "results.item.richContent.nodes.buttonData.styles.background.gradient.centerY"
2150
- },
2151
- {
2152
- path: "results.item.richContent.nodes.buttonData.styles.background.gradient.stops.position"
2153
- },
2154
- {
2155
- path: "results.item.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
2156
- },
2157
- {
2158
- path: "results.item.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
2159
- },
2160
- {
2161
- path: "results.item.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
2162
- },
2163
- {
2164
- path: "results.item.richContent.nodes.galleryData.items.image.media.duration"
2165
- },
2166
- {
2167
- path: "results.item.richContent.nodes.galleryData.items.video.media.duration"
2168
- },
2169
- {
2170
- path: "results.item.richContent.nodes.galleryData.items.video.thumbnail.duration"
2171
- },
2172
- {
2173
- path: "results.item.richContent.nodes.galleryData.options.item.ratio"
2174
- },
2175
- {
2176
- path: "results.item.richContent.nodes.imageData.image.duration"
2177
- },
2178
- { path: "results.item.richContent.nodes.imageData.crop.x" },
2179
- { path: "results.item.richContent.nodes.imageData.crop.y" },
2180
- { path: "results.item.richContent.nodes.imageData.crop.width" },
2181
- { path: "results.item.richContent.nodes.imageData.crop.height" },
2182
- {
2183
- path: "results.item.richContent.nodes.mapData.mapSettings.lat"
2184
- },
2185
- {
2186
- path: "results.item.richContent.nodes.mapData.mapSettings.lng"
2187
- },
2188
- {
2189
- path: "results.item.richContent.nodes.pollData.poll.image.duration"
2190
- },
2191
- {
2192
- path: "results.item.richContent.nodes.pollData.poll.options.image.duration"
2193
- },
2194
- {
2195
- path: "results.item.richContent.nodes.pollData.design.poll.background.image.duration"
2196
- },
2197
- {
2198
- path: "results.item.richContent.nodes.appEmbedData.image.duration"
2199
- },
2200
- {
2201
- path: "results.item.richContent.nodes.videoData.video.duration"
2202
- },
2203
- {
2204
- path: "results.item.richContent.nodes.videoData.thumbnail.duration"
2205
- },
2206
- {
2207
- path: "results.item.richContent.nodes.audioData.audio.duration"
2208
- },
2209
- {
2210
- path: "results.item.richContent.nodes.audioData.coverImage.duration"
2211
- },
2212
- {
2213
- path: "results.item.richContent.nodes.layoutData.backgroundImage.media.duration"
2214
- },
2215
- {
2216
- path: "results.item.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
2217
- },
2218
- {
2219
- path: "results.item.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
2220
- },
2221
- {
2222
- path: "results.item.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
2223
- },
2224
- {
2225
- path: "results.item.richContent.nodes.layoutData.backdropImage.media.duration"
2226
- },
2227
- {
2228
- path: "results.item.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
2229
- },
2230
- {
2231
- path: "results.item.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
2232
- },
2233
- {
2234
- path: "results.item.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
2235
- },
2236
- {
2237
- path: "results.item.richContent.nodes.layoutData.background.gradient.centerX"
2238
- },
2239
- {
2240
- path: "results.item.richContent.nodes.layoutData.background.gradient.centerY"
2241
- },
2242
- {
2243
- path: "results.item.richContent.nodes.layoutData.background.gradient.stops.position"
2244
- },
2245
- {
2246
- path: "results.item.richContent.nodes.layoutData.backdrop.gradient.centerX"
2247
- },
2248
- {
2249
- path: "results.item.richContent.nodes.layoutData.backdrop.gradient.centerY"
2250
- },
2251
- {
2252
- path: "results.item.richContent.nodes.layoutData.backdrop.gradient.stops.position"
2253
- },
2254
- {
2255
- path: "results.item.richContent.nodes.shapeData.shape.duration"
2256
- },
2257
- {
2258
- path: "results.item.richContent.nodes.cardData.background.gradient.centerX"
2259
- },
2260
- {
2261
- path: "results.item.richContent.nodes.cardData.background.gradient.centerY"
2262
- },
2263
- {
2264
- path: "results.item.richContent.nodes.cardData.background.gradient.stops.position"
2265
- },
2266
- {
2267
- path: "results.item.richContent.nodes.cardData.backgroundImage.media.duration"
2268
- },
2269
- {
2270
- path: "results.item.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
2271
- },
2272
- {
2273
- path: "results.item.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
2274
- },
2275
- {
2276
- path: "results.item.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
2277
- },
2278
- { path: "results.item.richContent.nodes.tocData.fontSize" },
2279
- { path: "results.item.richContent.nodes.tocData.itemSpacing" },
2280
- {
2281
- path: "results.item.richContent.nodes.smartBlockCellData.shape.duration"
2282
- }
2283
- ]
2284
- }
2285
- ])
2286
- };
2287
- return metadata;
2288
- }
2289
- return __bulkDeleteDraftPosts;
2290
- }
2291
- function listDraftPosts(payload) {
2292
- function __listDraftPosts({ host }) {
2293
- const metadata = {
2294
- entityFqdn: "wix.blog.v3.draft",
2295
- method: "GET",
2296
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.ListDraftPosts",
2297
- packageName: PACKAGE_NAME,
2298
- migrationOptions: {
2299
- optInTransformResponse: true
2300
- },
2301
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
2302
- { protoPath: "/v3/draft-posts", data: payload, host }
2303
- ),
2304
- params: toURLSearchParams(payload),
2305
- transformResponse: (payload2) => transformPaths(payload2, [
2306
- {
2307
- transformFn: transformRESTTimestampToSDKTimestamp,
2308
- paths: [
2309
- { path: "draftPosts.editedDate" },
2310
- { path: "draftPosts.scheduledPublishDate" },
2311
- { path: "draftPosts.firstPublishedDate" },
2312
- { path: "draftPosts.createdDate" },
2313
- { path: "draftPosts.heroImage.urlExpirationDate" },
2314
- { path: "draftPosts.richContent.metadata.createdTimestamp" },
2315
- { path: "draftPosts.richContent.metadata.updatedTimestamp" },
2316
- { path: "draftPosts.moderationDetails.submittedDate" },
2317
- { path: "draftPosts.moderationDetails.moderationDate" },
2318
- { path: "draftPosts.media.wixMedia.image.urlExpirationDate" },
2319
- { path: "draftPosts.media.wixMedia.videoV2.urlExpirationDate" },
2320
- {
2321
- path: "draftPosts.media.wixMedia.videoV2.resolutions.urlExpirationDate"
2322
- },
2323
- {
2324
- path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
2325
- },
2326
- {
2327
- path: "draftPosts.media.wixMedia.videoV2.posters.urlExpirationDate"
2328
- }
2329
- ]
2330
- },
2331
- {
2332
- transformFn: transformRESTFloatToSDKFloat,
2333
- paths: [
2334
- { path: "draftPosts.heroImage.focalPoint.x" },
2335
- { path: "draftPosts.heroImage.focalPoint.y" },
2336
- { path: "draftPosts.media.wixMedia.image.focalPoint.x" },
2337
- { path: "draftPosts.media.wixMedia.image.focalPoint.y" },
2338
- {
2339
- path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
2340
- },
2341
- {
2342
- path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
2343
- },
2344
- {
2345
- path: "draftPosts.media.wixMedia.videoV2.posters.focalPoint.x"
2346
- },
2347
- {
2348
- path: "draftPosts.media.wixMedia.videoV2.posters.focalPoint.y"
2349
- },
2350
- {
2351
- path: "draftPosts.richContent.nodes.buttonData.styles.background.gradient.centerX"
2352
- },
2353
- {
2354
- path: "draftPosts.richContent.nodes.buttonData.styles.background.gradient.centerY"
2355
- },
2356
- {
2357
- path: "draftPosts.richContent.nodes.buttonData.styles.background.gradient.stops.position"
2358
- },
2359
- {
2360
- path: "draftPosts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
2361
- },
2362
- {
2363
- path: "draftPosts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
2364
- },
2365
- {
2366
- path: "draftPosts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
2367
- },
2368
- {
2369
- path: "draftPosts.richContent.nodes.galleryData.items.image.media.duration"
2370
- },
2371
- {
2372
- path: "draftPosts.richContent.nodes.galleryData.items.video.media.duration"
2373
- },
2374
- {
2375
- path: "draftPosts.richContent.nodes.galleryData.items.video.thumbnail.duration"
2376
- },
2377
- {
2378
- path: "draftPosts.richContent.nodes.galleryData.options.item.ratio"
2379
- },
2380
- { path: "draftPosts.richContent.nodes.imageData.image.duration" },
2381
- { path: "draftPosts.richContent.nodes.imageData.crop.x" },
2382
- { path: "draftPosts.richContent.nodes.imageData.crop.y" },
2383
- { path: "draftPosts.richContent.nodes.imageData.crop.width" },
2384
- { path: "draftPosts.richContent.nodes.imageData.crop.height" },
2385
- { path: "draftPosts.richContent.nodes.mapData.mapSettings.lat" },
2386
- { path: "draftPosts.richContent.nodes.mapData.mapSettings.lng" },
2387
- {
2388
- path: "draftPosts.richContent.nodes.pollData.poll.image.duration"
2389
- },
2390
- {
2391
- path: "draftPosts.richContent.nodes.pollData.poll.options.image.duration"
2392
- },
2393
- {
2394
- path: "draftPosts.richContent.nodes.pollData.design.poll.background.image.duration"
2395
- },
2396
- {
2397
- path: "draftPosts.richContent.nodes.appEmbedData.image.duration"
2398
- },
2399
- { path: "draftPosts.richContent.nodes.videoData.video.duration" },
2400
- {
2401
- path: "draftPosts.richContent.nodes.videoData.thumbnail.duration"
2402
- },
2403
- { path: "draftPosts.richContent.nodes.audioData.audio.duration" },
2404
- {
2405
- path: "draftPosts.richContent.nodes.audioData.coverImage.duration"
2406
- },
2407
- {
2408
- path: "draftPosts.richContent.nodes.layoutData.backgroundImage.media.duration"
2409
- },
2410
- {
2411
- path: "draftPosts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
2412
- },
2413
- {
2414
- path: "draftPosts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
2415
- },
2416
- {
2417
- path: "draftPosts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
2418
- },
2419
- {
2420
- path: "draftPosts.richContent.nodes.layoutData.backdropImage.media.duration"
2421
- },
2422
- {
2423
- path: "draftPosts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
2424
- },
2425
- {
2426
- path: "draftPosts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
2427
- },
2428
- {
2429
- path: "draftPosts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
2430
- },
2431
- {
2432
- path: "draftPosts.richContent.nodes.layoutData.background.gradient.centerX"
2433
- },
2434
- {
2435
- path: "draftPosts.richContent.nodes.layoutData.background.gradient.centerY"
2436
- },
2437
- {
2438
- path: "draftPosts.richContent.nodes.layoutData.background.gradient.stops.position"
2439
- },
2440
- {
2441
- path: "draftPosts.richContent.nodes.layoutData.backdrop.gradient.centerX"
2442
- },
2443
- {
2444
- path: "draftPosts.richContent.nodes.layoutData.backdrop.gradient.centerY"
2445
- },
2446
- {
2447
- path: "draftPosts.richContent.nodes.layoutData.backdrop.gradient.stops.position"
2448
- },
2449
- { path: "draftPosts.richContent.nodes.shapeData.shape.duration" },
2450
- {
2451
- path: "draftPosts.richContent.nodes.cardData.background.gradient.centerX"
2452
- },
2453
- {
2454
- path: "draftPosts.richContent.nodes.cardData.background.gradient.centerY"
2455
- },
2456
- {
2457
- path: "draftPosts.richContent.nodes.cardData.background.gradient.stops.position"
2458
- },
2459
- {
2460
- path: "draftPosts.richContent.nodes.cardData.backgroundImage.media.duration"
2461
- },
2462
- {
2463
- path: "draftPosts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
2464
- },
2465
- {
2466
- path: "draftPosts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
2467
- },
2468
- {
2469
- path: "draftPosts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
2470
- },
2471
- { path: "draftPosts.richContent.nodes.tocData.fontSize" },
2472
- { path: "draftPosts.richContent.nodes.tocData.itemSpacing" },
2473
- {
2474
- path: "draftPosts.richContent.nodes.smartBlockCellData.shape.duration"
2475
- }
2476
- ]
2477
- }
2478
- ])
2479
- };
2480
- return metadata;
2481
- }
2482
- return __listDraftPosts;
2483
- }
2484
- function getDeletedDraftPost(payload) {
2485
- function __getDeletedDraftPost({ host }) {
2486
- const metadata = {
2487
- entityFqdn: "wix.blog.v3.draft",
2488
- method: "GET",
2489
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.GetDeletedDraftPost",
2490
- packageName: PACKAGE_NAME,
2491
- migrationOptions: {
2492
- optInTransformResponse: true
2493
- },
2494
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
2495
- {
2496
- protoPath: "/v3/draft-posts/trash-bin/{draftPostId}",
2497
- data: payload,
2498
- host
2499
- }
2500
- ),
2501
- params: toURLSearchParams(payload),
2502
- transformResponse: (payload2) => transformPaths(payload2, [
2503
- {
2504
- transformFn: transformRESTTimestampToSDKTimestamp,
2505
- paths: [
2506
- { path: "draftPost.editedDate" },
2507
- { path: "draftPost.scheduledPublishDate" },
2508
- { path: "draftPost.firstPublishedDate" },
2509
- { path: "draftPost.createdDate" },
2510
- { path: "draftPost.heroImage.urlExpirationDate" },
2511
- { path: "draftPost.richContent.metadata.createdTimestamp" },
2512
- { path: "draftPost.richContent.metadata.updatedTimestamp" },
2513
- { path: "draftPost.moderationDetails.submittedDate" },
2514
- { path: "draftPost.moderationDetails.moderationDate" },
2515
- { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
2516
- { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
2517
- {
2518
- path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
2519
- },
2520
- {
2521
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
2522
- },
2523
- {
2524
- path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
2525
- }
2526
- ]
2527
- },
2528
- {
2529
- transformFn: transformRESTFloatToSDKFloat,
2530
- paths: [
2531
- { path: "draftPost.heroImage.focalPoint.x" },
2532
- { path: "draftPost.heroImage.focalPoint.y" },
2533
- { path: "draftPost.media.wixMedia.image.focalPoint.x" },
2534
- { path: "draftPost.media.wixMedia.image.focalPoint.y" },
2535
- {
2536
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
2537
- },
2538
- {
2539
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
2540
- },
2541
- { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
2542
- { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
2543
- {
2544
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerX"
2545
- },
2546
- {
2547
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerY"
2548
- },
2549
- {
2550
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.stops.position"
2551
- },
2552
- {
2553
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
2554
- },
2555
- {
2556
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
2557
- },
2558
- {
2559
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
2560
- },
2561
- {
2562
- path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
2563
- },
2564
- {
2565
- path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
2566
- },
2567
- {
2568
- path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
2569
- },
2570
- {
2571
- path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
2572
- },
2573
- { path: "draftPost.richContent.nodes.imageData.image.duration" },
2574
- { path: "draftPost.richContent.nodes.imageData.crop.x" },
2575
- { path: "draftPost.richContent.nodes.imageData.crop.y" },
2576
- { path: "draftPost.richContent.nodes.imageData.crop.width" },
2577
- { path: "draftPost.richContent.nodes.imageData.crop.height" },
2578
- { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
2579
- { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
2580
- {
2581
- path: "draftPost.richContent.nodes.pollData.poll.image.duration"
2582
- },
2583
- {
2584
- path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
2585
- },
2586
- {
2587
- path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
2588
- },
2589
- {
2590
- path: "draftPost.richContent.nodes.appEmbedData.image.duration"
2591
- },
2592
- { path: "draftPost.richContent.nodes.videoData.video.duration" },
2593
- {
2594
- path: "draftPost.richContent.nodes.videoData.thumbnail.duration"
2595
- },
2596
- { path: "draftPost.richContent.nodes.audioData.audio.duration" },
2597
- {
2598
- path: "draftPost.richContent.nodes.audioData.coverImage.duration"
2599
- },
2600
- {
2601
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.media.duration"
2602
- },
2603
- {
2604
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
2605
- },
2606
- {
2607
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
2608
- },
2609
- {
2610
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
2611
- },
2612
- {
2613
- path: "draftPost.richContent.nodes.layoutData.backdropImage.media.duration"
2614
- },
2615
- {
2616
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
2617
- },
2618
- {
2619
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
2620
- },
2621
- {
2622
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
2623
- },
2624
- {
2625
- path: "draftPost.richContent.nodes.layoutData.background.gradient.centerX"
2626
- },
2627
- {
2628
- path: "draftPost.richContent.nodes.layoutData.background.gradient.centerY"
2629
- },
2630
- {
2631
- path: "draftPost.richContent.nodes.layoutData.background.gradient.stops.position"
2632
- },
2633
- {
2634
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerX"
2635
- },
2636
- {
2637
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerY"
2638
- },
2639
- {
2640
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.stops.position"
2641
- },
2642
- { path: "draftPost.richContent.nodes.shapeData.shape.duration" },
2643
- {
2644
- path: "draftPost.richContent.nodes.cardData.background.gradient.centerX"
2645
- },
2646
- {
2647
- path: "draftPost.richContent.nodes.cardData.background.gradient.centerY"
2648
- },
2649
- {
2650
- path: "draftPost.richContent.nodes.cardData.background.gradient.stops.position"
2651
- },
2652
- {
2653
- path: "draftPost.richContent.nodes.cardData.backgroundImage.media.duration"
2654
- },
2655
- {
2656
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
2657
- },
2658
- {
2659
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
2660
- },
2661
- {
2662
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
2663
- },
2664
- { path: "draftPost.richContent.nodes.tocData.fontSize" },
2665
- { path: "draftPost.richContent.nodes.tocData.itemSpacing" },
2666
- {
2667
- path: "draftPost.richContent.nodes.smartBlockCellData.shape.duration"
2668
- }
2669
- ]
2670
- }
2671
- ])
2672
- };
2673
- return metadata;
2674
- }
2675
- return __getDeletedDraftPost;
2676
- }
2677
- function restoreFromTrashBin(payload) {
2678
- function __restoreFromTrashBin({ host }) {
2679
- const metadata = {
2680
- entityFqdn: "wix.blog.v3.draft",
2681
- method: "POST",
2682
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.RestoreFromTrashBin",
2683
- packageName: PACKAGE_NAME,
2684
- migrationOptions: {
2685
- optInTransformResponse: true
2686
- },
2687
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
2688
- {
2689
- protoPath: "/v3/draft-posts/trash-bin/{draftPostId}/restore",
2690
- data: payload,
2691
- host
2692
- }
2693
- ),
2694
- data: payload,
2695
- transformResponse: (payload2) => transformPaths(payload2, [
2696
- {
2697
- transformFn: transformRESTTimestampToSDKTimestamp,
2698
- paths: [
2699
- { path: "draftPost.editedDate" },
2700
- { path: "draftPost.scheduledPublishDate" },
2701
- { path: "draftPost.firstPublishedDate" },
2702
- { path: "draftPost.createdDate" },
2703
- { path: "draftPost.heroImage.urlExpirationDate" },
2704
- { path: "draftPost.richContent.metadata.createdTimestamp" },
2705
- { path: "draftPost.richContent.metadata.updatedTimestamp" },
2706
- { path: "draftPost.moderationDetails.submittedDate" },
2707
- { path: "draftPost.moderationDetails.moderationDate" },
2708
- { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
2709
- { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
2710
- {
2711
- path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
2712
- },
2713
- {
2714
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
2715
- },
2716
- {
2717
- path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
2718
- }
2719
- ]
2720
- },
2721
- {
2722
- transformFn: transformRESTFloatToSDKFloat,
2723
- paths: [
2724
- { path: "draftPost.heroImage.focalPoint.x" },
2725
- { path: "draftPost.heroImage.focalPoint.y" },
2726
- { path: "draftPost.media.wixMedia.image.focalPoint.x" },
2727
- { path: "draftPost.media.wixMedia.image.focalPoint.y" },
2728
- {
2729
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
2730
- },
2731
- {
2732
- path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
2733
- },
2734
- { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
2735
- { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
2736
- {
2737
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerX"
2738
- },
2739
- {
2740
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerY"
2741
- },
2742
- {
2743
- path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.stops.position"
2744
- },
2745
- {
2746
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
2747
- },
2748
- {
2749
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
2750
- },
2751
- {
2752
- path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
2753
- },
2754
- {
2755
- path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
2756
- },
2757
- {
2758
- path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
2759
- },
2760
- {
2761
- path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
2762
- },
2763
- {
2764
- path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
2765
- },
2766
- { path: "draftPost.richContent.nodes.imageData.image.duration" },
2767
- { path: "draftPost.richContent.nodes.imageData.crop.x" },
2768
- { path: "draftPost.richContent.nodes.imageData.crop.y" },
2769
- { path: "draftPost.richContent.nodes.imageData.crop.width" },
2770
- { path: "draftPost.richContent.nodes.imageData.crop.height" },
2771
- { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
2772
- { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
2773
- {
2774
- path: "draftPost.richContent.nodes.pollData.poll.image.duration"
2775
- },
2776
- {
2777
- path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
2778
- },
2779
- {
2780
- path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
2781
- },
2782
- {
2783
- path: "draftPost.richContent.nodes.appEmbedData.image.duration"
2784
- },
2785
- { path: "draftPost.richContent.nodes.videoData.video.duration" },
2786
- {
2787
- path: "draftPost.richContent.nodes.videoData.thumbnail.duration"
2788
- },
2789
- { path: "draftPost.richContent.nodes.audioData.audio.duration" },
2790
- {
2791
- path: "draftPost.richContent.nodes.audioData.coverImage.duration"
2792
- },
2793
- {
2794
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.media.duration"
2795
- },
2796
- {
2797
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
2798
- },
2799
- {
2800
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
2801
- },
2802
- {
2803
- path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
2804
- },
2805
- {
2806
- path: "draftPost.richContent.nodes.layoutData.backdropImage.media.duration"
2807
- },
2808
- {
2809
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
2810
- },
2811
- {
2812
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
2813
- },
2814
- {
2815
- path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
2816
- },
2817
- {
2818
- path: "draftPost.richContent.nodes.layoutData.background.gradient.centerX"
2819
- },
2820
- {
2821
- path: "draftPost.richContent.nodes.layoutData.background.gradient.centerY"
2822
- },
2823
- {
2824
- path: "draftPost.richContent.nodes.layoutData.background.gradient.stops.position"
2825
- },
2826
- {
2827
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerX"
2828
- },
2829
- {
2830
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerY"
2831
- },
2832
- {
2833
- path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.stops.position"
2834
- },
2835
- { path: "draftPost.richContent.nodes.shapeData.shape.duration" },
2836
- {
2837
- path: "draftPost.richContent.nodes.cardData.background.gradient.centerX"
2838
- },
2839
- {
2840
- path: "draftPost.richContent.nodes.cardData.background.gradient.centerY"
2841
- },
2842
- {
2843
- path: "draftPost.richContent.nodes.cardData.background.gradient.stops.position"
2844
- },
2845
- {
2846
- path: "draftPost.richContent.nodes.cardData.backgroundImage.media.duration"
2847
- },
2848
- {
2849
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
2850
- },
2851
- {
2852
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
2853
- },
2854
- {
2855
- path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
2856
- },
2857
- { path: "draftPost.richContent.nodes.tocData.fontSize" },
2858
- { path: "draftPost.richContent.nodes.tocData.itemSpacing" },
2859
- {
2860
- path: "draftPost.richContent.nodes.smartBlockCellData.shape.duration"
2861
- }
2862
- ]
2863
- }
2864
- ])
2865
- };
2866
- return metadata;
2867
- }
2868
- return __restoreFromTrashBin;
2869
- }
2870
- function queryDraftPosts(payload) {
2871
- function __queryDraftPosts({ host }) {
2872
- const serializedData = transformPaths(payload, [
2873
- {
2874
- transformFn: transformSDKFloatToRESTFloat,
2875
- paths: [
2876
- { path: "query.sort.origin.latitude" },
2877
- { path: "query.sort.origin.longitude" }
2878
- ]
2879
- }
2880
- ]);
2881
- const metadata = {
2882
- entityFqdn: "wix.blog.v3.draft",
2883
- method: "POST",
2884
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.QueryDraftPosts",
2885
- packageName: PACKAGE_NAME,
2886
- migrationOptions: {
2887
- optInTransformResponse: true
2888
- },
2889
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
2890
- { protoPath: "/v3/draft-posts/query", data: serializedData, host }
2891
- ),
2892
- data: serializedData,
2893
- transformResponse: (payload2) => transformPaths(payload2, [
2894
- {
2895
- transformFn: transformRESTTimestampToSDKTimestamp,
2896
- paths: [
2897
- { path: "draftPosts.editedDate" },
2898
- { path: "draftPosts.scheduledPublishDate" },
2899
- { path: "draftPosts.firstPublishedDate" },
2900
- { path: "draftPosts.createdDate" },
2901
- { path: "draftPosts.heroImage.urlExpirationDate" },
2902
- { path: "draftPosts.richContent.metadata.createdTimestamp" },
2903
- { path: "draftPosts.richContent.metadata.updatedTimestamp" },
2904
- { path: "draftPosts.moderationDetails.submittedDate" },
2905
- { path: "draftPosts.moderationDetails.moderationDate" },
2906
- { path: "draftPosts.media.wixMedia.image.urlExpirationDate" },
2907
- { path: "draftPosts.media.wixMedia.videoV2.urlExpirationDate" },
2908
- {
2909
- path: "draftPosts.media.wixMedia.videoV2.resolutions.urlExpirationDate"
2910
- },
2911
- {
2912
- path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
2913
- },
2914
- {
2915
- path: "draftPosts.media.wixMedia.videoV2.posters.urlExpirationDate"
2916
- }
2917
- ]
2918
- },
2919
- {
2920
- transformFn: transformRESTFloatToSDKFloat,
2921
- paths: [
2922
- { path: "draftPosts.heroImage.focalPoint.x" },
2923
- { path: "draftPosts.heroImage.focalPoint.y" },
2924
- { path: "draftPosts.media.wixMedia.image.focalPoint.x" },
2925
- { path: "draftPosts.media.wixMedia.image.focalPoint.y" },
2926
- {
2927
- path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
2928
- },
2929
- {
2930
- path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
2931
- },
2932
- {
2933
- path: "draftPosts.media.wixMedia.videoV2.posters.focalPoint.x"
2934
- },
2935
- {
2936
- path: "draftPosts.media.wixMedia.videoV2.posters.focalPoint.y"
2937
- },
2938
- {
2939
- path: "draftPosts.richContent.nodes.buttonData.styles.background.gradient.centerX"
2940
- },
2941
- {
2942
- path: "draftPosts.richContent.nodes.buttonData.styles.background.gradient.centerY"
2943
- },
2944
- {
2945
- path: "draftPosts.richContent.nodes.buttonData.styles.background.gradient.stops.position"
2946
- },
2947
- {
2948
- path: "draftPosts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
2949
- },
2950
- {
2951
- path: "draftPosts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
2952
- },
2953
- {
2954
- path: "draftPosts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
2955
- },
2956
- {
2957
- path: "draftPosts.richContent.nodes.galleryData.items.image.media.duration"
2958
- },
2959
- {
2960
- path: "draftPosts.richContent.nodes.galleryData.items.video.media.duration"
2961
- },
2962
- {
2963
- path: "draftPosts.richContent.nodes.galleryData.items.video.thumbnail.duration"
2964
- },
2965
- {
2966
- path: "draftPosts.richContent.nodes.galleryData.options.item.ratio"
2967
- },
2968
- { path: "draftPosts.richContent.nodes.imageData.image.duration" },
2969
- { path: "draftPosts.richContent.nodes.imageData.crop.x" },
2970
- { path: "draftPosts.richContent.nodes.imageData.crop.y" },
2971
- { path: "draftPosts.richContent.nodes.imageData.crop.width" },
2972
- { path: "draftPosts.richContent.nodes.imageData.crop.height" },
2973
- { path: "draftPosts.richContent.nodes.mapData.mapSettings.lat" },
2974
- { path: "draftPosts.richContent.nodes.mapData.mapSettings.lng" },
2975
- {
2976
- path: "draftPosts.richContent.nodes.pollData.poll.image.duration"
2977
- },
2978
- {
2979
- path: "draftPosts.richContent.nodes.pollData.poll.options.image.duration"
2980
- },
2981
- {
2982
- path: "draftPosts.richContent.nodes.pollData.design.poll.background.image.duration"
2983
- },
2984
- {
2985
- path: "draftPosts.richContent.nodes.appEmbedData.image.duration"
2986
- },
2987
- { path: "draftPosts.richContent.nodes.videoData.video.duration" },
2988
- {
2989
- path: "draftPosts.richContent.nodes.videoData.thumbnail.duration"
2990
- },
2991
- { path: "draftPosts.richContent.nodes.audioData.audio.duration" },
2992
- {
2993
- path: "draftPosts.richContent.nodes.audioData.coverImage.duration"
2994
- },
2995
- {
2996
- path: "draftPosts.richContent.nodes.layoutData.backgroundImage.media.duration"
2997
- },
2998
- {
2999
- path: "draftPosts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
3000
- },
3001
- {
3002
- path: "draftPosts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
3003
- },
3004
- {
3005
- path: "draftPosts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
3006
- },
3007
- {
3008
- path: "draftPosts.richContent.nodes.layoutData.backdropImage.media.duration"
3009
- },
3010
- {
3011
- path: "draftPosts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
3012
- },
3013
- {
3014
- path: "draftPosts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
3015
- },
3016
- {
3017
- path: "draftPosts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
3018
- },
3019
- {
3020
- path: "draftPosts.richContent.nodes.layoutData.background.gradient.centerX"
3021
- },
3022
- {
3023
- path: "draftPosts.richContent.nodes.layoutData.background.gradient.centerY"
3024
- },
3025
- {
3026
- path: "draftPosts.richContent.nodes.layoutData.background.gradient.stops.position"
3027
- },
3028
- {
3029
- path: "draftPosts.richContent.nodes.layoutData.backdrop.gradient.centerX"
3030
- },
3031
- {
3032
- path: "draftPosts.richContent.nodes.layoutData.backdrop.gradient.centerY"
3033
- },
3034
- {
3035
- path: "draftPosts.richContent.nodes.layoutData.backdrop.gradient.stops.position"
3036
- },
3037
- { path: "draftPosts.richContent.nodes.shapeData.shape.duration" },
3038
- {
3039
- path: "draftPosts.richContent.nodes.cardData.background.gradient.centerX"
3040
- },
3041
- {
3042
- path: "draftPosts.richContent.nodes.cardData.background.gradient.centerY"
3043
- },
3044
- {
3045
- path: "draftPosts.richContent.nodes.cardData.background.gradient.stops.position"
3046
- },
3047
- {
3048
- path: "draftPosts.richContent.nodes.cardData.backgroundImage.media.duration"
3049
- },
3050
- {
3051
- path: "draftPosts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
3052
- },
3053
- {
3054
- path: "draftPosts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
3055
- },
3056
- {
3057
- path: "draftPosts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
3058
- },
3059
- { path: "draftPosts.richContent.nodes.tocData.fontSize" },
3060
- { path: "draftPosts.richContent.nodes.tocData.itemSpacing" },
3061
- {
3062
- path: "draftPosts.richContent.nodes.smartBlockCellData.shape.duration"
3063
- }
3064
- ]
3065
- }
3066
- ])
3067
- };
3068
- return metadata;
3069
- }
3070
- return __queryDraftPosts;
3071
- }
3072
- function publishDraftPost(payload) {
3073
- function __publishDraftPost({ host }) {
3074
- const metadata = {
3075
- entityFqdn: "wix.blog.v3.draft",
3076
- method: "POST",
3077
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.PublishDraftPost",
3078
- packageName: PACKAGE_NAME,
3079
- migrationOptions: {
3080
- optInTransformResponse: true
3081
- },
3082
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
3083
- {
3084
- protoPath: "/v3/draft-posts/{draftPostId}/publish",
3085
- data: payload,
3086
- host
3087
- }
3088
- ),
3089
- data: payload
3090
- };
3091
- return metadata;
3092
- }
3093
- return __publishDraftPost;
3094
- }
3095
-
3096
- // src/blog-v3-draft-draft-posts.universal.ts
3097
- import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/image";
3098
- import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
3099
- import { transformSDKVideoV2ToRESTVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
3100
- import { transformRESTVideoV2ToSDKVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
3101
- import { transformSDKPageURLToRESTPageURL } from "@wix/sdk-runtime/transformations/page-url";
3102
- import { transformRESTPageURLToSDKPageURL } from "@wix/sdk-runtime/transformations/page-url";
3103
- import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
3104
- import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
3105
- var Origin = /* @__PURE__ */ ((Origin2) => {
3106
- Origin2["UNKNOWN"] = "UNKNOWN";
3107
- Origin2["ADMIN"] = "ADMIN";
3108
- Origin2["ADD_CATEGORIES"] = "ADD_CATEGORIES";
3109
- Origin2["AUTO_SAVE"] = "AUTO_SAVE";
3110
- Origin2["COPY_TEMPLATE"] = "COPY_TEMPLATE";
3111
- Origin2["IMPORT"] = "IMPORT";
3112
- Origin2["IMPORT_BULK"] = "IMPORT_BULK";
3113
- Origin2["IMPORT_HTML"] = "IMPORT_HTML";
3114
- Origin2["IMPORT_PATCH"] = "IMPORT_PATCH";
3115
- Origin2["LANGUAGE_CHANGE"] = "LANGUAGE_CHANGE";
3116
- Origin2["MANUAL_SAVE"] = "MANUAL_SAVE";
3117
- Origin2["MIGRATION"] = "MIGRATION";
3118
- Origin2["MODERATION"] = "MODERATION";
3119
- Origin2["MOVE_TO_TRASH"] = "MOVE_TO_TRASH";
3120
- Origin2["PRICING_PLANS_CHANGE"] = "PRICING_PLANS_CHANGE";
3121
- Origin2["PROVISION"] = "PROVISION";
3122
- Origin2["PUBLISH"] = "PUBLISH";
3123
- Origin2["REASSIGN_OWNER"] = "REASSIGN_OWNER";
3124
- Origin2["REBLOG"] = "REBLOG";
3125
- Origin2["RESTORE"] = "RESTORE";
3126
- Origin2["REVERT_TO_DRAFT"] = "REVERT_TO_DRAFT";
3127
- Origin2["TRANSLATION"] = "TRANSLATION";
3128
- Origin2["UNPUBLISH"] = "UNPUBLISH";
3129
- Origin2["UNSCHEDULE"] = "UNSCHEDULE";
3130
- Origin2["NEW_EDIT_SESSION"] = "NEW_EDIT_SESSION";
3131
- Origin2["SCHEDULING_SERVICE_SCHEDULE"] = "SCHEDULING_SERVICE_SCHEDULE";
3132
- Origin2["SCHEDULING_SERVICE_UNSCHEDULE"] = "SCHEDULING_SERVICE_UNSCHEDULE";
3133
- Origin2["SCHEDULING_SERVICE_PUBLISH"] = "SCHEDULING_SERVICE_PUBLISH";
3134
- Origin2["SCHEDULE"] = "SCHEDULE";
3135
- Origin2["REMOVE_FROM_MODERATION"] = "REMOVE_FROM_MODERATION";
3136
- Origin2["REJECT_FROM_MODERATION"] = "REJECT_FROM_MODERATION";
3137
- Origin2["APPROVE_IN_MODERATION"] = "APPROVE_IN_MODERATION";
3138
- Origin2["DELETE_TAG"] = "DELETE_TAG";
3139
- Origin2["PIN"] = "PIN";
3140
- Origin2["UNPIN"] = "UNPIN";
3141
- Origin2["AI_AUTO_SAVE"] = "AI_AUTO_SAVE";
3142
- return Origin2;
3143
- })(Origin || {});
3144
- var NodeType = /* @__PURE__ */ ((NodeType2) => {
3145
- NodeType2["PARAGRAPH"] = "PARAGRAPH";
3146
- NodeType2["TEXT"] = "TEXT";
3147
- NodeType2["HEADING"] = "HEADING";
3148
- NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
3149
- NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
3150
- NodeType2["LIST_ITEM"] = "LIST_ITEM";
3151
- NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
3152
- NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
3153
- NodeType2["VIDEO"] = "VIDEO";
3154
- NodeType2["DIVIDER"] = "DIVIDER";
3155
- NodeType2["FILE"] = "FILE";
3156
- NodeType2["GALLERY"] = "GALLERY";
3157
- NodeType2["GIF"] = "GIF";
3158
- NodeType2["HTML"] = "HTML";
3159
- NodeType2["IMAGE"] = "IMAGE";
3160
- NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
3161
- NodeType2["MAP"] = "MAP";
3162
- NodeType2["POLL"] = "POLL";
3163
- NodeType2["APP_EMBED"] = "APP_EMBED";
3164
- NodeType2["BUTTON"] = "BUTTON";
3165
- NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
3166
- NodeType2["TABLE"] = "TABLE";
3167
- NodeType2["EMBED"] = "EMBED";
3168
- NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
3169
- NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
3170
- NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
3171
- NodeType2["TABLE_CELL"] = "TABLE_CELL";
3172
- NodeType2["TABLE_ROW"] = "TABLE_ROW";
3173
- NodeType2["EXTERNAL"] = "EXTERNAL";
3174
- NodeType2["AUDIO"] = "AUDIO";
3175
- NodeType2["CAPTION"] = "CAPTION";
3176
- NodeType2["LAYOUT"] = "LAYOUT";
3177
- NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
3178
- NodeType2["SHAPE"] = "SHAPE";
3179
- NodeType2["CARD"] = "CARD";
3180
- NodeType2["TOC"] = "TOC";
3181
- NodeType2["SMART_BLOCK"] = "SMART_BLOCK";
3182
- NodeType2["SMART_BLOCK_CELL"] = "SMART_BLOCK_CELL";
3183
- NodeType2["CHECKBOX_LIST"] = "CHECKBOX_LIST";
3184
- return NodeType2;
3185
- })(NodeType || {});
3186
- var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
3187
- BackgroundType2["COLOR"] = "COLOR";
3188
- BackgroundType2["GRADIENT"] = "GRADIENT";
3189
- return BackgroundType2;
3190
- })(BackgroundType || {});
3191
- var GradientType = /* @__PURE__ */ ((GradientType2) => {
3192
- GradientType2["LINEAR"] = "LINEAR";
3193
- GradientType2["RADIAL"] = "RADIAL";
3194
- return GradientType2;
3195
- })(GradientType || {});
3196
- var WidthType = /* @__PURE__ */ ((WidthType2) => {
3197
- WidthType2["CONTENT"] = "CONTENT";
3198
- WidthType2["SMALL"] = "SMALL";
3199
- WidthType2["ORIGINAL"] = "ORIGINAL";
3200
- WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
3201
- return WidthType2;
3202
- })(WidthType || {});
3203
- var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
3204
- PluginContainerDataAlignment2["CENTER"] = "CENTER";
3205
- PluginContainerDataAlignment2["LEFT"] = "LEFT";
3206
- PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
3207
- return PluginContainerDataAlignment2;
3208
- })(PluginContainerDataAlignment || {});
3209
- var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
3210
- ButtonDataType2["LINK"] = "LINK";
3211
- ButtonDataType2["ACTION"] = "ACTION";
3212
- return ButtonDataType2;
3213
- })(ButtonDataType || {});
3214
- var Target = /* @__PURE__ */ ((Target2) => {
3215
- Target2["SELF"] = "SELF";
3216
- Target2["BLANK"] = "BLANK";
3217
- Target2["PARENT"] = "PARENT";
3218
- Target2["TOP"] = "TOP";
3219
- return Target2;
3220
- })(Target || {});
3221
- var AnimationType = /* @__PURE__ */ ((AnimationType2) => {
3222
- AnimationType2["VIEW"] = "VIEW";
3223
- AnimationType2["POINTER"] = "POINTER";
3224
- return AnimationType2;
3225
- })(AnimationType || {});
3226
- var EntranceEffectType = /* @__PURE__ */ ((EntranceEffectType2) => {
3227
- EntranceEffectType2["FADE"] = "FADE";
3228
- EntranceEffectType2["ARC"] = "ARC";
3229
- EntranceEffectType2["BLUR"] = "BLUR";
3230
- EntranceEffectType2["BOUNCE"] = "BOUNCE";
3231
- EntranceEffectType2["DROP"] = "DROP";
3232
- EntranceEffectType2["EXPAND"] = "EXPAND";
3233
- EntranceEffectType2["FLIP"] = "FLIP";
3234
- EntranceEffectType2["FLOAT"] = "FLOAT";
3235
- EntranceEffectType2["FOLD"] = "FOLD";
3236
- EntranceEffectType2["GLIDE"] = "GLIDE";
3237
- EntranceEffectType2["REVEAL"] = "REVEAL";
3238
- EntranceEffectType2["SHAPE"] = "SHAPE";
3239
- EntranceEffectType2["SHUTTERS"] = "SHUTTERS";
3240
- EntranceEffectType2["SLIDE"] = "SLIDE";
3241
- EntranceEffectType2["SPIN"] = "SPIN";
3242
- EntranceEffectType2["TILT"] = "TILT";
3243
- EntranceEffectType2["TURN"] = "TURN";
3244
- EntranceEffectType2["WINK"] = "WINK";
3245
- return EntranceEffectType2;
3246
- })(EntranceEffectType || {});
3247
- var LoopEffectType = /* @__PURE__ */ ((LoopEffectType2) => {
3248
- LoopEffectType2["BOUNCE"] = "BOUNCE";
3249
- LoopEffectType2["BREATHE"] = "BREATHE";
3250
- LoopEffectType2["CROSS"] = "CROSS";
3251
- LoopEffectType2["FLASH"] = "FLASH";
3252
- LoopEffectType2["FLIP"] = "FLIP";
3253
- LoopEffectType2["FOLD"] = "FOLD";
3254
- LoopEffectType2["JELLO"] = "JELLO";
3255
- LoopEffectType2["POKE"] = "POKE";
3256
- LoopEffectType2["PULSE"] = "PULSE";
3257
- LoopEffectType2["RUBBER"] = "RUBBER";
3258
- LoopEffectType2["SPIN"] = "SPIN";
3259
- LoopEffectType2["SWING"] = "SWING";
3260
- LoopEffectType2["WIGGLE"] = "WIGGLE";
3261
- return LoopEffectType2;
3262
- })(LoopEffectType || {});
3263
- var PointerEffectType = /* @__PURE__ */ ((PointerEffectType2) => {
3264
- PointerEffectType2["AIRY"] = "AIRY";
3265
- PointerEffectType2["BLOB"] = "BLOB";
3266
- PointerEffectType2["BLUR"] = "BLUR";
3267
- PointerEffectType2["SCALE"] = "SCALE";
3268
- PointerEffectType2["SKEW"] = "SKEW";
3269
- PointerEffectType2["SWIVEL"] = "SWIVEL";
3270
- PointerEffectType2["TILT_3D"] = "TILT_3D";
3271
- PointerEffectType2["TRACK"] = "TRACK";
3272
- PointerEffectType2["TRACK_3D"] = "TRACK_3D";
3273
- return PointerEffectType2;
3274
- })(PointerEffectType || {});
3275
- var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
3276
- TextAlignment2["AUTO"] = "AUTO";
3277
- TextAlignment2["LEFT"] = "LEFT";
3278
- TextAlignment2["RIGHT"] = "RIGHT";
3279
- TextAlignment2["CENTER"] = "CENTER";
3280
- TextAlignment2["JUSTIFY"] = "JUSTIFY";
3281
- return TextAlignment2;
3282
- })(TextAlignment || {});
3283
- var LineCap = /* @__PURE__ */ ((LineCap2) => {
3284
- LineCap2["SQUARE"] = "SQUARE";
3285
- LineCap2["ROUND"] = "ROUND";
3286
- return LineCap2;
3287
- })(LineCap || {});
3288
- var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
3289
- LineStyle2["SINGLE"] = "SINGLE";
3290
- LineStyle2["DOUBLE"] = "DOUBLE";
3291
- LineStyle2["DASHED"] = "DASHED";
3292
- LineStyle2["DOTTED"] = "DOTTED";
3293
- return LineStyle2;
3294
- })(LineStyle || {});
3295
- var Width = /* @__PURE__ */ ((Width2) => {
3296
- Width2["LARGE"] = "LARGE";
3297
- Width2["MEDIUM"] = "MEDIUM";
3298
- Width2["SMALL"] = "SMALL";
3299
- return Width2;
3300
- })(Width || {});
3301
- var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
3302
- DividerDataAlignment2["CENTER"] = "CENTER";
3303
- DividerDataAlignment2["LEFT"] = "LEFT";
3304
- DividerDataAlignment2["RIGHT"] = "RIGHT";
3305
- return DividerDataAlignment2;
3306
- })(DividerDataAlignment || {});
3307
- var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
3308
- ViewMode2["NONE"] = "NONE";
3309
- ViewMode2["FULL"] = "FULL";
3310
- ViewMode2["MINI"] = "MINI";
3311
- return ViewMode2;
3312
- })(ViewMode || {});
3313
- var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
3314
- LayoutType2["COLLAGE"] = "COLLAGE";
3315
- LayoutType2["MASONRY"] = "MASONRY";
3316
- LayoutType2["GRID"] = "GRID";
3317
- LayoutType2["THUMBNAIL"] = "THUMBNAIL";
3318
- LayoutType2["SLIDER"] = "SLIDER";
3319
- LayoutType2["SLIDESHOW"] = "SLIDESHOW";
3320
- LayoutType2["PANORAMA"] = "PANORAMA";
3321
- LayoutType2["COLUMN"] = "COLUMN";
3322
- LayoutType2["MAGIC"] = "MAGIC";
3323
- LayoutType2["FULLSIZE"] = "FULLSIZE";
3324
- return LayoutType2;
3325
- })(LayoutType || {});
3326
- var Orientation = /* @__PURE__ */ ((Orientation2) => {
3327
- Orientation2["ROWS"] = "ROWS";
3328
- Orientation2["COLUMNS"] = "COLUMNS";
3329
- return Orientation2;
3330
- })(Orientation || {});
3331
- var Crop = /* @__PURE__ */ ((Crop2) => {
3332
- Crop2["FILL"] = "FILL";
3333
- Crop2["FIT"] = "FIT";
3334
- return Crop2;
3335
- })(Crop || {});
3336
- var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
3337
- ThumbnailsAlignment2["TOP"] = "TOP";
3338
- ThumbnailsAlignment2["RIGHT"] = "RIGHT";
3339
- ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
3340
- ThumbnailsAlignment2["LEFT"] = "LEFT";
3341
- ThumbnailsAlignment2["NONE"] = "NONE";
3342
- return ThumbnailsAlignment2;
3343
- })(ThumbnailsAlignment || {});
3344
- var GIFType = /* @__PURE__ */ ((GIFType2) => {
3345
- GIFType2["NORMAL"] = "NORMAL";
3346
- GIFType2["STICKER"] = "STICKER";
3347
- return GIFType2;
3348
- })(GIFType || {});
3349
- var Source = /* @__PURE__ */ ((Source2) => {
3350
- Source2["HTML"] = "HTML";
3351
- Source2["ADSENSE"] = "ADSENSE";
3352
- Source2["AI"] = "AI";
3353
- Source2["AI_WIDGET"] = "AI_WIDGET";
3354
- return Source2;
3355
- })(Source || {});
3356
- var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
3357
- StylesPosition2["START"] = "START";
3358
- StylesPosition2["END"] = "END";
3359
- StylesPosition2["TOP"] = "TOP";
3360
- StylesPosition2["HIDDEN"] = "HIDDEN";
3361
- return StylesPosition2;
3362
- })(StylesPosition || {});
3363
- var MapType = /* @__PURE__ */ ((MapType2) => {
3364
- MapType2["ROADMAP"] = "ROADMAP";
3365
- MapType2["SATELITE"] = "SATELITE";
3366
- MapType2["HYBRID"] = "HYBRID";
3367
- MapType2["TERRAIN"] = "TERRAIN";
3368
- return MapType2;
3369
- })(MapType || {});
3370
- var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
3371
- ViewRole2["CREATOR"] = "CREATOR";
3372
- ViewRole2["VOTERS"] = "VOTERS";
3373
- ViewRole2["EVERYONE"] = "EVERYONE";
3374
- return ViewRole2;
3375
- })(ViewRole || {});
3376
- var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
3377
- VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
3378
- VoteRole2["ALL"] = "ALL";
3379
- return VoteRole2;
3380
- })(VoteRole || {});
3381
- var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
3382
- PollLayoutType2["LIST"] = "LIST";
3383
- PollLayoutType2["GRID"] = "GRID";
3384
- return PollLayoutType2;
3385
- })(PollLayoutType || {});
3386
- var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
3387
- PollLayoutDirection2["LTR"] = "LTR";
3388
- PollLayoutDirection2["RTL"] = "RTL";
3389
- return PollLayoutDirection2;
3390
- })(PollLayoutDirection || {});
3391
- var PollDesignBackgroundType = /* @__PURE__ */ ((PollDesignBackgroundType2) => {
3392
- PollDesignBackgroundType2["COLOR"] = "COLOR";
3393
- PollDesignBackgroundType2["IMAGE"] = "IMAGE";
3394
- PollDesignBackgroundType2["GRADIENT"] = "GRADIENT";
3395
- return PollDesignBackgroundType2;
3396
- })(PollDesignBackgroundType || {});
3397
- var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
3398
- DecorationType2["BOLD"] = "BOLD";
3399
- DecorationType2["ITALIC"] = "ITALIC";
3400
- DecorationType2["UNDERLINE"] = "UNDERLINE";
3401
- DecorationType2["SPOILER"] = "SPOILER";
3402
- DecorationType2["ANCHOR"] = "ANCHOR";
3403
- DecorationType2["MENTION"] = "MENTION";
3404
- DecorationType2["LINK"] = "LINK";
3405
- DecorationType2["COLOR"] = "COLOR";
3406
- DecorationType2["FONT_SIZE"] = "FONT_SIZE";
3407
- DecorationType2["EXTERNAL"] = "EXTERNAL";
3408
- DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
3409
- DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
3410
- DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
3411
- DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
3412
- DecorationType2["SKETCH"] = "SKETCH";
3413
- return DecorationType2;
3414
- })(DecorationType || {});
3415
- var FontType = /* @__PURE__ */ ((FontType2) => {
3416
- FontType2["PX"] = "PX";
3417
- FontType2["EM"] = "EM";
3418
- return FontType2;
3419
- })(FontType || {});
3420
- var Variant = /* @__PURE__ */ ((Variant2) => {
3421
- Variant2["UNDERLINE"] = "UNDERLINE";
3422
- Variant2["BOX"] = "BOX";
3423
- Variant2["CIRCLE"] = "CIRCLE";
3424
- Variant2["HIGHLIGHT"] = "HIGHLIGHT";
3425
- Variant2["STRIKETHROUGH"] = "STRIKETHROUGH";
3426
- Variant2["CROSSED_OFF"] = "CROSSED_OFF";
3427
- return Variant2;
3428
- })(Variant || {});
3429
- var Position = /* @__PURE__ */ ((Position2) => {
3430
- Position2["START"] = "START";
3431
- Position2["END"] = "END";
3432
- Position2["TOP"] = "TOP";
3433
- return Position2;
3434
- })(Position || {});
3435
- var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
3436
- AspectRatio2["SQUARE"] = "SQUARE";
3437
- AspectRatio2["RECTANGLE"] = "RECTANGLE";
3438
- return AspectRatio2;
3439
- })(AspectRatio || {});
3440
- var Resizing = /* @__PURE__ */ ((Resizing2) => {
3441
- Resizing2["FILL"] = "FILL";
3442
- Resizing2["FIT"] = "FIT";
3443
- return Resizing2;
3444
- })(Resizing || {});
3445
- var Placement = /* @__PURE__ */ ((Placement2) => {
3446
- Placement2["IMAGE"] = "IMAGE";
3447
- Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
3448
- return Placement2;
3449
- })(Placement || {});
3450
- var CardStylesType = /* @__PURE__ */ ((CardStylesType2) => {
3451
- CardStylesType2["CONTAINED"] = "CONTAINED";
3452
- CardStylesType2["FRAMELESS"] = "FRAMELESS";
3453
- return CardStylesType2;
3454
- })(CardStylesType || {});
3455
- var Alignment = /* @__PURE__ */ ((Alignment2) => {
3456
- Alignment2["START"] = "START";
3457
- Alignment2["CENTER"] = "CENTER";
3458
- Alignment2["END"] = "END";
3459
- return Alignment2;
3460
- })(Alignment || {});
3461
- var Layout = /* @__PURE__ */ ((Layout2) => {
3462
- Layout2["STACKED"] = "STACKED";
3463
- Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
3464
- return Layout2;
3465
- })(Layout || {});
3466
- var AppType = /* @__PURE__ */ ((AppType2) => {
3467
- AppType2["PRODUCT"] = "PRODUCT";
3468
- AppType2["EVENT"] = "EVENT";
3469
- AppType2["BOOKING"] = "BOOKING";
3470
- return AppType2;
3471
- })(AppType || {});
3472
- var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
3473
- InitialExpandedItems2["FIRST"] = "FIRST";
3474
- InitialExpandedItems2["ALL"] = "ALL";
3475
- InitialExpandedItems2["NONE"] = "NONE";
3476
- return InitialExpandedItems2;
3477
- })(InitialExpandedItems || {});
3478
- var Direction = /* @__PURE__ */ ((Direction2) => {
3479
- Direction2["LTR"] = "LTR";
3480
- Direction2["RTL"] = "RTL";
3481
- return Direction2;
3482
- })(Direction || {});
3483
- var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
3484
- VerticalAlignment2["TOP"] = "TOP";
3485
- VerticalAlignment2["MIDDLE"] = "MIDDLE";
3486
- VerticalAlignment2["BOTTOM"] = "BOTTOM";
3487
- return VerticalAlignment2;
3488
- })(VerticalAlignment || {});
3489
- var NullValue = /* @__PURE__ */ ((NullValue2) => {
3490
- NullValue2["NULL_VALUE"] = "NULL_VALUE";
3491
- return NullValue2;
3492
- })(NullValue || {});
3493
- var ImageScalingScaling = /* @__PURE__ */ ((ImageScalingScaling2) => {
3494
- ImageScalingScaling2["AUTO"] = "AUTO";
3495
- ImageScalingScaling2["CONTAIN"] = "CONTAIN";
3496
- ImageScalingScaling2["COVER"] = "COVER";
3497
- return ImageScalingScaling2;
3498
- })(ImageScalingScaling || {});
3499
- var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
3500
- ImagePosition2["CENTER"] = "CENTER";
3501
- ImagePosition2["CENTER_LEFT"] = "CENTER_LEFT";
3502
- ImagePosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
3503
- ImagePosition2["TOP"] = "TOP";
3504
- ImagePosition2["TOP_LEFT"] = "TOP_LEFT";
3505
- ImagePosition2["TOP_RIGHT"] = "TOP_RIGHT";
3506
- ImagePosition2["BOTTOM"] = "BOTTOM";
3507
- ImagePosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
3508
- ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
3509
- return ImagePosition2;
3510
- })(ImagePosition || {});
3511
- var LayoutDataBackgroundType = /* @__PURE__ */ ((LayoutDataBackgroundType2) => {
3512
- LayoutDataBackgroundType2["COLOR"] = "COLOR";
3513
- LayoutDataBackgroundType2["GRADIENT"] = "GRADIENT";
3514
- return LayoutDataBackgroundType2;
3515
- })(LayoutDataBackgroundType || {});
3516
- var BannerOrigin = /* @__PURE__ */ ((BannerOrigin2) => {
3517
- BannerOrigin2["IMAGE"] = "IMAGE";
3518
- BannerOrigin2["LAYOUT"] = "LAYOUT";
3519
- return BannerOrigin2;
3520
- })(BannerOrigin || {});
3521
- var BannerPosition = /* @__PURE__ */ ((BannerPosition2) => {
3522
- BannerPosition2["TOP"] = "TOP";
3523
- BannerPosition2["BOTTOM"] = "BOTTOM";
3524
- return BannerPosition2;
3525
- })(BannerPosition || {});
3526
- var LayerEffect = /* @__PURE__ */ ((LayerEffect2) => {
3527
- LayerEffect2["CENTER"] = "CENTER";
3528
- LayerEffect2["FADE_TO_TOP"] = "FADE_TO_TOP";
3529
- LayerEffect2["FADE_TO_BOTTOM"] = "FADE_TO_BOTTOM";
3530
- return LayerEffect2;
3531
- })(LayerEffect || {});
3532
- var Shape = /* @__PURE__ */ ((Shape2) => {
3533
- Shape2["ELLIPSE"] = "ELLIPSE";
3534
- Shape2["TILT"] = "TILT";
3535
- Shape2["LIQUID"] = "LIQUID";
3536
- Shape2["LEFT_WAVE"] = "LEFT_WAVE";
3537
- Shape2["PAINT_SCRIBBLE"] = "PAINT_SCRIBBLE";
3538
- Shape2["INVERTED_ELLIPSE"] = "INVERTED_ELLIPSE";
3539
- Shape2["RIGHT_WAVE"] = "RIGHT_WAVE";
3540
- Shape2["DUNES"] = "DUNES";
3541
- Shape2["WAVES"] = "WAVES";
3542
- Shape2["TRIANGLE"] = "TRIANGLE";
3543
- Shape2["SEMI_ELLIPSE"] = "SEMI_ELLIPSE";
3544
- Shape2["PLANTS"] = "PLANTS";
3545
- Shape2["LAYERED_ELLIPSE"] = "LAYERED_ELLIPSE";
3546
- Shape2["PIXELS"] = "PIXELS";
3547
- Shape2["PAINT"] = "PAINT";
3548
- Shape2["CLOUDS"] = "CLOUDS";
3549
- Shape2["OPTICAL_ILLUSION"] = "OPTICAL_ILLUSION";
3550
- Shape2["STRIPES"] = "STRIPES";
3551
- Shape2["BLOBS"] = "BLOBS";
3552
- Shape2["SEMI_CIRCLES"] = "SEMI_CIRCLES";
3553
- Shape2["HILL"] = "HILL";
3554
- Shape2["BRUSH"] = "BRUSH";
3555
- Shape2["PEAKS"] = "PEAKS";
3556
- Shape2["ANGLED_TRIANGLE"] = "ANGLED_TRIANGLE";
3557
- return Shape2;
3558
- })(Shape || {});
3559
- var BackdropType = /* @__PURE__ */ ((BackdropType2) => {
3560
- BackdropType2["COLOR"] = "COLOR";
3561
- BackdropType2["GRADIENT"] = "GRADIENT";
3562
- return BackdropType2;
3563
- })(BackdropType || {});
3564
- var VerticalAlignmentAlignment = /* @__PURE__ */ ((VerticalAlignmentAlignment2) => {
3565
- VerticalAlignmentAlignment2["TOP"] = "TOP";
3566
- VerticalAlignmentAlignment2["MIDDLE"] = "MIDDLE";
3567
- VerticalAlignmentAlignment2["BOTTOM"] = "BOTTOM";
3568
- return VerticalAlignmentAlignment2;
3569
- })(VerticalAlignmentAlignment || {});
3570
- var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
3571
- ResponsivenessBehaviour2["STACK"] = "STACK";
3572
- ResponsivenessBehaviour2["WRAP"] = "WRAP";
3573
- return ResponsivenessBehaviour2;
3574
- })(ResponsivenessBehaviour || {});
3575
- var DesignTarget = /* @__PURE__ */ ((DesignTarget2) => {
3576
- DesignTarget2["LAYOUT"] = "LAYOUT";
3577
- DesignTarget2["CELL"] = "CELL";
3578
- return DesignTarget2;
3579
- })(DesignTarget || {});
3580
- var Scaling = /* @__PURE__ */ ((Scaling2) => {
3581
- Scaling2["AUTO"] = "AUTO";
3582
- Scaling2["CONTAIN"] = "CONTAIN";
3583
- Scaling2["COVER"] = "COVER";
3584
- return Scaling2;
3585
- })(Scaling || {});
3586
- var ImagePositionPosition = /* @__PURE__ */ ((ImagePositionPosition2) => {
3587
- ImagePositionPosition2["CENTER"] = "CENTER";
3588
- ImagePositionPosition2["CENTER_LEFT"] = "CENTER_LEFT";
3589
- ImagePositionPosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
3590
- ImagePositionPosition2["TOP"] = "TOP";
3591
- ImagePositionPosition2["TOP_LEFT"] = "TOP_LEFT";
3592
- ImagePositionPosition2["TOP_RIGHT"] = "TOP_RIGHT";
3593
- ImagePositionPosition2["BOTTOM"] = "BOTTOM";
3594
- ImagePositionPosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
3595
- ImagePositionPosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
3596
- return ImagePositionPosition2;
3597
- })(ImagePositionPosition || {});
3598
- var CardDataBackgroundType = /* @__PURE__ */ ((CardDataBackgroundType2) => {
3599
- CardDataBackgroundType2["COLOR"] = "COLOR";
3600
- CardDataBackgroundType2["GRADIENT"] = "GRADIENT";
3601
- return CardDataBackgroundType2;
3602
- })(CardDataBackgroundType || {});
3603
- var ListStyle = /* @__PURE__ */ ((ListStyle2) => {
3604
- ListStyle2["PLAIN"] = "PLAIN";
3605
- ListStyle2["NUMBERED"] = "NUMBERED";
3606
- ListStyle2["LETTERS"] = "LETTERS";
3607
- ListStyle2["ROMAN"] = "ROMAN";
3608
- ListStyle2["BULLETED"] = "BULLETED";
3609
- ListStyle2["ALPHABETICAL_INDEX"] = "ALPHABETICAL_INDEX";
3610
- ListStyle2["ALPHABETICAL_INDEX_COMPACT"] = "ALPHABETICAL_INDEX_COMPACT";
3611
- return ListStyle2;
3612
- })(ListStyle || {});
3613
- var Indentation = /* @__PURE__ */ ((Indentation2) => {
3614
- Indentation2["NESTED"] = "NESTED";
3615
- Indentation2["FLAT"] = "FLAT";
3616
- return Indentation2;
3617
- })(Indentation || {});
3618
- var SmartBlockDataType = /* @__PURE__ */ ((SmartBlockDataType2) => {
3619
- SmartBlockDataType2["SOLID_BOXES"] = "SOLID_BOXES";
3620
- SmartBlockDataType2["NUMBERED_BOXES"] = "NUMBERED_BOXES";
3621
- SmartBlockDataType2["STATS"] = "STATS";
3622
- SmartBlockDataType2["CIRCLE_STATS"] = "CIRCLE_STATS";
3623
- SmartBlockDataType2["SOLID_BOXES_ALTERNATING"] = "SOLID_BOXES_ALTERNATING";
3624
- SmartBlockDataType2["SOLID_JOINED_BOXES"] = "SOLID_JOINED_BOXES";
3625
- SmartBlockDataType2["SIDE_LINE_TEXT"] = "SIDE_LINE_TEXT";
3626
- SmartBlockDataType2["TOP_LINE_TEXT"] = "TOP_LINE_TEXT";
3627
- SmartBlockDataType2["OUTLINE_BOXES_WITH_TOP_CIRCLE"] = "OUTLINE_BOXES_WITH_TOP_CIRCLE";
3628
- SmartBlockDataType2["BIG_BULLETS"] = "BIG_BULLETS";
3629
- SmartBlockDataType2["SMALL_BULLETS"] = "SMALL_BULLETS";
3630
- SmartBlockDataType2["ARROW_BULLETS"] = "ARROW_BULLETS";
3631
- SmartBlockDataType2["PROCESS_STEPS"] = "PROCESS_STEPS";
3632
- SmartBlockDataType2["BAR_STATS"] = "BAR_STATS";
3633
- SmartBlockDataType2["TIMELINE"] = "TIMELINE";
3634
- SmartBlockDataType2["MINIMAL_TIMELINE"] = "MINIMAL_TIMELINE";
3635
- SmartBlockDataType2["PILLS"] = "PILLS";
3636
- SmartBlockDataType2["STAR_RATING"] = "STAR_RATING";
3637
- SmartBlockDataType2["QUOTE_BOXES"] = "QUOTE_BOXES";
3638
- SmartBlockDataType2["CIRCLE"] = "CIRCLE";
3639
- SmartBlockDataType2["PYRAMID"] = "PYRAMID";
3640
- SmartBlockDataType2["STAIRCASE"] = "STAIRCASE";
3641
- SmartBlockDataType2["VERTICAL_FUNNEL"] = "VERTICAL_FUNNEL";
3642
- return SmartBlockDataType2;
3643
- })(SmartBlockDataType || {});
3644
- var ColumnSize = /* @__PURE__ */ ((ColumnSize2) => {
3645
- ColumnSize2["SMALL"] = "SMALL";
3646
- ColumnSize2["MEDIUM"] = "MEDIUM";
3647
- ColumnSize2["LARGE"] = "LARGE";
3648
- ColumnSize2["EXTRA_LARGE"] = "EXTRA_LARGE";
3649
- return ColumnSize2;
3650
- })(ColumnSize || {});
3651
- var Status = /* @__PURE__ */ ((Status2) => {
3652
- Status2["UNKNOWN"] = "UNKNOWN";
3653
- Status2["PUBLISHED"] = "PUBLISHED";
3654
- Status2["UNPUBLISHED"] = "UNPUBLISHED";
3655
- Status2["SCHEDULED"] = "SCHEDULED";
3656
- Status2["DELETED"] = "DELETED";
3657
- Status2["IN_MODERATION"] = "IN_MODERATION";
3658
- Status2["IN_REVIEW"] = "IN_REVIEW";
3659
- return Status2;
3660
- })(Status || {});
3661
- var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
3662
- ModerationStatusStatus2["UNKNOWN"] = "UNKNOWN";
3663
- ModerationStatusStatus2["APPROVED"] = "APPROVED";
3664
- ModerationStatusStatus2["REJECTED"] = "REJECTED";
3665
- return ModerationStatusStatus2;
3666
- })(ModerationStatusStatus || {});
3667
- var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
3668
- TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
3669
- TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
3670
- return TotalDraftPostsGroupingField2;
3671
- })(TotalDraftPostsGroupingField || {});
3672
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3673
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
3674
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
3675
- WebhookIdentityType2["MEMBER"] = "MEMBER";
3676
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
3677
- WebhookIdentityType2["APP"] = "APP";
3678
- return WebhookIdentityType2;
3679
- })(WebhookIdentityType || {});
3680
- var Type = /* @__PURE__ */ ((Type2) => {
3681
- Type2["UNKNOWN"] = "UNKNOWN";
3682
- Type2["MANUAL"] = "MANUAL";
3683
- Type2["AUTO_SAVE"] = "AUTO_SAVE";
3684
- Type2["PROVISIONING"] = "PROVISIONING";
3685
- Type2["IMPORT"] = "IMPORT";
3686
- Type2["AI_AUTO_SAVE"] = "AI_AUTO_SAVE";
3687
- return Type2;
3688
- })(Type || {});
3689
- var Field = /* @__PURE__ */ ((Field2) => {
3690
- Field2["UNKNOWN"] = "UNKNOWN";
3691
- Field2["URL"] = "URL";
3692
- Field2["INTERNAL_ID"] = "INTERNAL_ID";
3693
- Field2["CONTENT"] = "CONTENT";
3694
- Field2["RICH_CONTENT"] = "RICH_CONTENT";
3695
- Field2["TRANSLATIONS"] = "TRANSLATIONS";
3696
- Field2["GENERATED_EXCERPT"] = "GENERATED_EXCERPT";
3697
- return Field2;
3698
- })(Field || {});
3699
- var Action = /* @__PURE__ */ ((Action2) => {
3700
- Action2["UPDATE"] = "UPDATE";
3701
- Action2["UPDATE_PUBLISH"] = "UPDATE_PUBLISH";
3702
- Action2["UPDATE_SCHEDULE"] = "UPDATE_SCHEDULE";
3703
- Action2["UPDATE_REVERT_TO_DRAFT"] = "UPDATE_REVERT_TO_DRAFT";
3704
- Action2["UPDATE_CANCEL_SCHEDULE"] = "UPDATE_CANCEL_SCHEDULE";
3705
- Action2["UPDATE_REJECT"] = "UPDATE_REJECT";
3706
- Action2["UPDATE_PUBLICATION"] = "UPDATE_PUBLICATION";
3707
- return Action2;
3708
- })(Action || {});
3709
- var GetDraftPostsSort = /* @__PURE__ */ ((GetDraftPostsSort2) => {
3710
- GetDraftPostsSort2["EDITING_DATE_DESC"] = "EDITING_DATE_DESC";
3711
- GetDraftPostsSort2["EDITING_DATE_ASC"] = "EDITING_DATE_ASC";
3712
- return GetDraftPostsSort2;
3713
- })(GetDraftPostsSort || {});
3714
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
3715
- SortOrder2["ASC"] = "ASC";
3716
- SortOrder2["DESC"] = "DESC";
3717
- return SortOrder2;
3718
- })(SortOrder || {});
3719
- async function createDraftPost2(draftPost, options) {
3720
- const { httpClient, sideEffects } = arguments[2];
3721
- const payload = transformPaths2(
3722
- renameKeysFromSDKRequestToRESTRequest(
3723
- {
3724
- draftPost,
3725
- publish: options?.publish,
3726
- fieldsets: options?.fieldsets
3727
- },
3728
- ["draftPost.richContent"]
3729
- ),
3730
- [
3731
- {
3732
- transformFn: transformSDKImageToRESTImage,
3733
- paths: [
3734
- { path: "draftPost.heroImage" },
3735
- { path: "draftPost.media.wixMedia.image" }
3736
- ]
3737
- },
3738
- {
3739
- transformFn: transformSDKPageURLToRESTPageURL,
3740
- paths: [
3741
- { path: "draftPost.url" },
3742
- { path: "draftPost.translations.url" }
3743
- ]
3744
- },
3745
- {
3746
- transformFn: transformSDKVideoV2ToRESTVideoV2,
3747
- paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
3748
- }
3749
- ]
3750
- );
3751
- const reqOpts = createDraftPost(payload);
3752
- sideEffects?.onSiteCall?.();
3753
- try {
3754
- const result = await httpClient.request(reqOpts);
3755
- sideEffects?.onSuccess?.(result);
3756
- return renameKeysFromRESTResponseToSDKResponse(
3757
- transformPaths2(result.data, [
3758
- {
3759
- transformFn: transformRESTImageToSDKImage,
3760
- paths: [
3761
- { path: "draftPost.heroImage" },
3762
- { path: "draftPost.media.wixMedia.image" }
3763
- ]
3764
- },
3765
- {
3766
- transformFn: transformRESTPageURLToSDKPageURL,
3767
- paths: [
3768
- { path: "draftPost.url" },
3769
- { path: "draftPost.translations.url" }
3770
- ]
3771
- },
3772
- {
3773
- transformFn: transformRESTVideoV2ToSDKVideoV2,
3774
- paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
3775
- }
3776
- ]),
3777
- ["draftPost.richContent"]
3778
- );
3779
- } catch (err) {
3780
- const transformedError = sdkTransformError(
3781
- err,
3782
- {
3783
- spreadPathsToArguments: {},
3784
- explicitPathsToArguments: {
3785
- draftPost: "$[0]",
3786
- publish: "$[1].publish",
3787
- fieldsets: "$[1].fieldsets"
3788
- },
3789
- singleArgumentUnchanged: false
3790
- },
3791
- ["draftPost", "options"]
3792
- );
3793
- sideEffects?.onError?.(err);
3794
- throw transformedError;
3795
- }
3796
- }
3797
- async function bulkCreateDraftPosts2(draftPosts, options) {
3798
- const { httpClient, sideEffects } = arguments[2];
3799
- const payload = transformPaths2(
3800
- renameKeysFromSDKRequestToRESTRequest(
3801
- {
3802
- draftPosts,
3803
- publish: options?.publish,
3804
- returnFullEntity: options?.returnFullEntity,
3805
- fieldsets: options?.fieldsets
3806
- },
3807
- ["draftPosts.richContent"]
3808
- ),
3809
- [
3810
- {
3811
- transformFn: transformSDKImageToRESTImage,
3812
- paths: [
3813
- { path: "draftPosts.heroImage" },
3814
- { path: "draftPosts.media.wixMedia.image" }
3815
- ]
3816
- },
3817
- {
3818
- transformFn: transformSDKPageURLToRESTPageURL,
3819
- paths: [
3820
- { path: "draftPosts.url" },
3821
- { path: "draftPosts.translations.url" }
3822
- ]
3823
- },
3824
- {
3825
- transformFn: transformSDKVideoV2ToRESTVideoV2,
3826
- paths: [{ path: "draftPosts.media.wixMedia.videoV2" }]
3827
- }
3828
- ]
3829
- );
3830
- const reqOpts = bulkCreateDraftPosts(payload);
3831
- sideEffects?.onSiteCall?.();
3832
- try {
3833
- const result = await httpClient.request(reqOpts);
3834
- sideEffects?.onSuccess?.(result);
3835
- return renameKeysFromRESTResponseToSDKResponse(
3836
- transformPaths2(result.data, [
3837
- {
3838
- transformFn: transformRESTImageToSDKImage,
3839
- paths: [
3840
- { path: "results.item.heroImage" },
3841
- { path: "results.item.media.wixMedia.image" }
3842
- ]
3843
- },
3844
- {
3845
- transformFn: transformRESTPageURLToSDKPageURL,
3846
- paths: [
3847
- { path: "results.item.url" },
3848
- { path: "results.item.translations.url" }
3849
- ]
3850
- },
3851
- {
3852
- transformFn: transformRESTVideoV2ToSDKVideoV2,
3853
- paths: [{ path: "results.item.media.wixMedia.videoV2" }]
3854
- }
3855
- ]),
3856
- ["results.item.richContent"]
3857
- );
3858
- } catch (err) {
3859
- const transformedError = sdkTransformError(
3860
- err,
3861
- {
3862
- spreadPathsToArguments: {},
3863
- explicitPathsToArguments: {
3864
- draftPosts: "$[0]",
3865
- publish: "$[1].publish",
3866
- returnFullEntity: "$[1].returnFullEntity",
3867
- fieldsets: "$[1].fieldsets"
3868
- },
3869
- singleArgumentUnchanged: false
3870
- },
3871
- ["draftPosts", "options"]
3872
- );
3873
- sideEffects?.onError?.(err);
3874
- throw transformedError;
3875
- }
3876
- }
3877
- async function bulkUpdateDraftPosts2(options) {
3878
- const { httpClient, sideEffects } = arguments[1];
3879
- const payload = transformPaths2(
3880
- renameKeysFromSDKRequestToRESTRequest(
3881
- {
3882
- draftPosts: options?.draftPosts,
3883
- action: options?.action,
3884
- scheduledPublishDate: options?.scheduledPublishDate,
3885
- returnFullEntity: options?.returnFullEntity,
3886
- fieldsets: options?.fieldsets
3887
- },
3888
- ["draftPosts.draftPost.richContent"]
3889
- ),
3890
- [
3891
- {
3892
- transformFn: transformSDKImageToRESTImage,
3893
- paths: [
3894
- { path: "draftPosts.draftPost.heroImage" },
3895
- { path: "draftPosts.draftPost.media.wixMedia.image" }
3896
- ]
3897
- },
3898
- {
3899
- transformFn: transformSDKPageURLToRESTPageURL,
3900
- paths: [
3901
- { path: "draftPosts.draftPost.url" },
3902
- { path: "draftPosts.draftPost.translations.url" }
3903
- ]
3904
- },
3905
- {
3906
- transformFn: transformSDKVideoV2ToRESTVideoV2,
3907
- paths: [{ path: "draftPosts.draftPost.media.wixMedia.videoV2" }]
3908
- }
3909
- ]
3910
- );
3911
- const reqOpts = bulkUpdateDraftPosts(payload);
3912
- sideEffects?.onSiteCall?.();
3913
- try {
3914
- const result = await httpClient.request(reqOpts);
3915
- sideEffects?.onSuccess?.(result);
3916
- return renameKeysFromRESTResponseToSDKResponse(
3917
- transformPaths2(result.data, [
3918
- {
3919
- transformFn: transformRESTImageToSDKImage,
3920
- paths: [
3921
- { path: "results.item.heroImage" },
3922
- { path: "results.item.media.wixMedia.image" }
3923
- ]
3924
- },
3925
- {
3926
- transformFn: transformRESTPageURLToSDKPageURL,
3927
- paths: [
3928
- { path: "results.item.url" },
3929
- { path: "results.item.translations.url" }
3930
- ]
3931
- },
3932
- {
3933
- transformFn: transformRESTVideoV2ToSDKVideoV2,
3934
- paths: [{ path: "results.item.media.wixMedia.videoV2" }]
3935
- }
3936
- ]),
3937
- ["results.item.richContent"]
3938
- );
3939
- } catch (err) {
3940
- const transformedError = sdkTransformError(
3941
- err,
3942
- {
3943
- spreadPathsToArguments: {},
3944
- explicitPathsToArguments: {
3945
- draftPosts: "$[0].draftPosts",
3946
- action: "$[0].action",
3947
- scheduledPublishDate: "$[0].scheduledPublishDate",
3948
- returnFullEntity: "$[0].returnFullEntity",
3949
- fieldsets: "$[0].fieldsets"
3950
- },
3951
- singleArgumentUnchanged: false
3952
- },
3953
- ["options"]
3954
- );
3955
- sideEffects?.onError?.(err);
3956
- throw transformedError;
3957
- }
3958
- }
3959
- async function listDeletedDraftPosts2(options) {
3960
- const { httpClient, sideEffects } = arguments[1];
3961
- const payload = renameKeysFromSDKRequestToRESTRequest(
3962
- {
3963
- language: options?.language,
3964
- sort: options?.sort,
3965
- paging: options?.paging,
3966
- fieldsets: options?.fieldsets,
3967
- draftPostIds: options?.draftPostIds
3968
- },
3969
- []
3970
- );
3971
- const reqOpts = listDeletedDraftPosts(payload);
3972
- sideEffects?.onSiteCall?.();
3973
- try {
3974
- const result = await httpClient.request(reqOpts);
3975
- sideEffects?.onSuccess?.(result);
3976
- return renameKeysFromRESTResponseToSDKResponse(
3977
- transformPaths2(result.data, [
3978
- {
3979
- transformFn: transformRESTImageToSDKImage,
3980
- paths: [
3981
- { path: "draftPosts.heroImage" },
3982
- { path: "draftPosts.media.wixMedia.image" }
3983
- ]
3984
- },
3985
- {
3986
- transformFn: transformRESTPageURLToSDKPageURL,
3987
- paths: [
3988
- { path: "draftPosts.url" },
3989
- { path: "draftPosts.translations.url" }
3990
- ]
3991
- },
3992
- {
3993
- transformFn: transformRESTVideoV2ToSDKVideoV2,
3994
- paths: [{ path: "draftPosts.media.wixMedia.videoV2" }]
3995
- }
3996
- ]),
3997
- ["draftPosts.richContent"]
3998
- );
3999
- } catch (err) {
4000
- const transformedError = sdkTransformError(
4001
- err,
4002
- {
4003
- spreadPathsToArguments: {},
4004
- explicitPathsToArguments: {
4005
- language: "$[0].language",
4006
- sort: "$[0].sort",
4007
- paging: "$[0].paging",
4008
- fieldsets: "$[0].fieldsets",
4009
- draftPostIds: "$[0].draftPostIds"
4010
- },
4011
- singleArgumentUnchanged: false
4012
- },
4013
- ["options"]
4014
- );
4015
- sideEffects?.onError?.(err);
4016
- throw transformedError;
4017
- }
4018
- }
4019
- async function getDraftPost2(draftPostId, options) {
4020
- const { httpClient, sideEffects } = arguments[2];
4021
- const payload = renameKeysFromSDKRequestToRESTRequest(
4022
- { draftPostId, fieldsets: options?.fieldsets },
4023
- []
4024
- );
4025
- const reqOpts = getDraftPost(payload);
4026
- sideEffects?.onSiteCall?.();
4027
- try {
4028
- const result = await httpClient.request(reqOpts);
4029
- sideEffects?.onSuccess?.(result);
4030
- return renameKeysFromRESTResponseToSDKResponse(
4031
- transformPaths2(result.data, [
4032
- {
4033
- transformFn: transformRESTImageToSDKImage,
4034
- paths: [
4035
- { path: "draftPost.heroImage" },
4036
- { path: "draftPost.media.wixMedia.image" }
4037
- ]
4038
- },
4039
- {
4040
- transformFn: transformRESTPageURLToSDKPageURL,
4041
- paths: [
4042
- { path: "draftPost.url" },
4043
- { path: "draftPost.translations.url" }
4044
- ]
4045
- },
4046
- {
4047
- transformFn: transformRESTVideoV2ToSDKVideoV2,
4048
- paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
4049
- }
4050
- ]),
4051
- ["draftPost.richContent"]
4052
- );
4053
- } catch (err) {
4054
- const transformedError = sdkTransformError(
4055
- err,
4056
- {
4057
- spreadPathsToArguments: {},
4058
- explicitPathsToArguments: {
4059
- draftPostId: "$[0]",
4060
- fieldsets: "$[1].fieldsets"
4061
- },
4062
- singleArgumentUnchanged: false
4063
- },
4064
- ["draftPostId", "options"]
4065
- );
4066
- sideEffects?.onError?.(err);
4067
- throw transformedError;
4068
- }
4069
- }
4070
- async function updateDraftPost2(_id, draftPost, options) {
4071
- const { httpClient, sideEffects } = arguments[3];
4072
- const payload = transformPaths2(
4073
- renameKeysFromSDKRequestToRESTRequest(
4074
- {
4075
- draftPost: { ...draftPost, id: _id },
4076
- action: options?.action,
4077
- scheduledPublishDate: options?.scheduledPublishDate,
4078
- fieldsets: options?.fieldsets
4079
- },
4080
- ["draftPost.richContent"]
4081
- ),
4082
- [
4083
- {
4084
- transformFn: transformSDKImageToRESTImage,
4085
- paths: [
4086
- { path: "draftPost.heroImage" },
4087
- { path: "draftPost.media.wixMedia.image" }
4088
- ]
4089
- },
4090
- {
4091
- transformFn: transformSDKPageURLToRESTPageURL,
4092
- paths: [
4093
- { path: "draftPost.url" },
4094
- { path: "draftPost.translations.url" }
4095
- ]
4096
- },
4097
- {
4098
- transformFn: transformSDKVideoV2ToRESTVideoV2,
4099
- paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
4100
- }
4101
- ]
4102
- );
4103
- const reqOpts = updateDraftPost(payload);
4104
- sideEffects?.onSiteCall?.();
4105
- try {
4106
- const result = await httpClient.request(reqOpts);
4107
- sideEffects?.onSuccess?.(result);
4108
- return renameKeysFromRESTResponseToSDKResponse(
4109
- transformPaths2(result.data, [
4110
- {
4111
- transformFn: transformRESTImageToSDKImage,
4112
- paths: [
4113
- { path: "draftPost.heroImage" },
4114
- { path: "draftPost.media.wixMedia.image" }
4115
- ]
4116
- },
4117
- {
4118
- transformFn: transformRESTPageURLToSDKPageURL,
4119
- paths: [
4120
- { path: "draftPost.url" },
4121
- { path: "draftPost.translations.url" }
4122
- ]
4123
- },
4124
- {
4125
- transformFn: transformRESTVideoV2ToSDKVideoV2,
4126
- paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
4127
- }
4128
- ]),
4129
- ["draftPost.richContent"]
4130
- );
4131
- } catch (err) {
4132
- const transformedError = sdkTransformError(
4133
- err,
4134
- {
4135
- spreadPathsToArguments: { draftPost: "$[1]" },
4136
- explicitPathsToArguments: {
4137
- "draftPost.id": "$[0]",
4138
- action: "$[2].action",
4139
- scheduledPublishDate: "$[2].scheduledPublishDate",
4140
- fieldsets: "$[2].fieldsets"
4141
- },
4142
- singleArgumentUnchanged: false
4143
- },
4144
- ["_id", "draftPost", "options"]
4145
- );
4146
- sideEffects?.onError?.(err);
4147
- throw transformedError;
4148
- }
4149
- }
4150
- async function deleteDraftPost2(draftPostId, options) {
4151
- const { httpClient, sideEffects } = arguments[2];
4152
- const payload = renameKeysFromSDKRequestToRESTRequest(
4153
- { draftPostId, permanent: options?.permanent },
4154
- []
4155
- );
4156
- const reqOpts = deleteDraftPost(payload);
4157
- sideEffects?.onSiteCall?.();
4158
- try {
4159
- const result = await httpClient.request(reqOpts);
4160
- sideEffects?.onSuccess?.(result);
4161
- } catch (err) {
4162
- const transformedError = sdkTransformError(
4163
- err,
4164
- {
4165
- spreadPathsToArguments: {},
4166
- explicitPathsToArguments: {
4167
- draftPostId: "$[0]",
4168
- permanent: "$[1].permanent"
4169
- },
4170
- singleArgumentUnchanged: false
4171
- },
4172
- ["draftPostId", "options"]
4173
- );
4174
- sideEffects?.onError?.(err);
4175
- throw transformedError;
4176
- }
4177
- }
4178
- async function removeFromTrashBin2(draftPostId) {
4179
- const { httpClient, sideEffects } = arguments[1];
4180
- const payload = renameKeysFromSDKRequestToRESTRequest(
4181
- { draftPostId },
4182
- []
4183
- );
4184
- const reqOpts = removeFromTrashBin(payload);
4185
- sideEffects?.onSiteCall?.();
4186
- try {
4187
- const result = await httpClient.request(reqOpts);
4188
- sideEffects?.onSuccess?.(result);
4189
- } catch (err) {
4190
- const transformedError = sdkTransformError(
4191
- err,
4192
- {
4193
- spreadPathsToArguments: {},
4194
- explicitPathsToArguments: { draftPostId: "$[0]" },
4195
- singleArgumentUnchanged: false
4196
- },
4197
- ["draftPostId"]
4198
- );
4199
- sideEffects?.onError?.(err);
4200
- throw transformedError;
4201
- }
4202
- }
4203
- async function bulkDeleteDraftPosts2(postIds, options) {
4204
- const { httpClient, sideEffects } = arguments[2];
4205
- const payload = renameKeysFromSDKRequestToRESTRequest(
4206
- { postIds, permanent: options?.permanent },
4207
- []
4208
- );
4209
- const reqOpts = bulkDeleteDraftPosts(payload);
4210
- sideEffects?.onSiteCall?.();
4211
- try {
4212
- const result = await httpClient.request(reqOpts);
4213
- sideEffects?.onSuccess?.(result);
4214
- return renameKeysFromRESTResponseToSDKResponse(
4215
- transformPaths2(result.data, [
4216
- {
4217
- transformFn: transformRESTImageToSDKImage,
4218
- paths: [
4219
- { path: "results.item.heroImage" },
4220
- { path: "results.item.media.wixMedia.image" }
4221
- ]
4222
- },
4223
- {
4224
- transformFn: transformRESTPageURLToSDKPageURL,
4225
- paths: [
4226
- { path: "results.item.url" },
4227
- { path: "results.item.translations.url" }
4228
- ]
4229
- },
4230
- {
4231
- transformFn: transformRESTVideoV2ToSDKVideoV2,
4232
- paths: [{ path: "results.item.media.wixMedia.videoV2" }]
4233
- }
4234
- ]),
4235
- ["results.item.richContent"]
4236
- );
4237
- } catch (err) {
4238
- const transformedError = sdkTransformError(
4239
- err,
4240
- {
4241
- spreadPathsToArguments: {},
4242
- explicitPathsToArguments: {
4243
- postIds: "$[0]",
4244
- permanent: "$[1].permanent"
4245
- },
4246
- singleArgumentUnchanged: false
4247
- },
4248
- ["postIds", "options"]
4249
- );
4250
- sideEffects?.onError?.(err);
4251
- throw transformedError;
4252
- }
4253
- }
4254
- async function listDraftPosts2(options) {
4255
- const { httpClient, sideEffects } = arguments[1];
4256
- const payload = renameKeysFromSDKRequestToRESTRequest(
4257
- {
4258
- status: options?.status,
4259
- language: options?.language,
4260
- sort: options?.sort,
4261
- paging: options?.paging,
4262
- fieldsets: options?.fieldsets
4263
- },
4264
- []
4265
- );
4266
- const reqOpts = listDraftPosts(payload);
4267
- sideEffects?.onSiteCall?.();
4268
- try {
4269
- const result = await httpClient.request(reqOpts);
4270
- sideEffects?.onSuccess?.(result);
4271
- return renameKeysFromRESTResponseToSDKResponse(
4272
- transformPaths2(result.data, [
4273
- {
4274
- transformFn: transformRESTImageToSDKImage,
4275
- paths: [
4276
- { path: "draftPosts.heroImage" },
4277
- { path: "draftPosts.media.wixMedia.image" }
4278
- ]
4279
- },
4280
- {
4281
- transformFn: transformRESTPageURLToSDKPageURL,
4282
- paths: [
4283
- { path: "draftPosts.url" },
4284
- { path: "draftPosts.translations.url" }
4285
- ]
4286
- },
4287
- {
4288
- transformFn: transformRESTVideoV2ToSDKVideoV2,
4289
- paths: [{ path: "draftPosts.media.wixMedia.videoV2" }]
4290
- }
4291
- ]),
4292
- ["draftPosts.richContent"]
4293
- );
4294
- } catch (err) {
4295
- const transformedError = sdkTransformError(
4296
- err,
4297
- {
4298
- spreadPathsToArguments: {},
4299
- explicitPathsToArguments: {
4300
- status: "$[0].status",
4301
- language: "$[0].language",
4302
- sort: "$[0].sort",
4303
- paging: "$[0].paging",
4304
- fieldsets: "$[0].fieldsets"
4305
- },
4306
- singleArgumentUnchanged: false
4307
- },
4308
- ["options"]
4309
- );
4310
- sideEffects?.onError?.(err);
4311
- throw transformedError;
4312
- }
4313
- }
4314
- async function getDeletedDraftPost2(draftPostId) {
4315
- const { httpClient, sideEffects } = arguments[1];
4316
- const payload = renameKeysFromSDKRequestToRESTRequest(
4317
- { draftPostId },
4318
- []
4319
- );
4320
- const reqOpts = getDeletedDraftPost(payload);
4321
- sideEffects?.onSiteCall?.();
4322
- try {
4323
- const result = await httpClient.request(reqOpts);
4324
- sideEffects?.onSuccess?.(result);
4325
- return renameKeysFromRESTResponseToSDKResponse(
4326
- transformPaths2(result.data, [
4327
- {
4328
- transformFn: transformRESTImageToSDKImage,
4329
- paths: [
4330
- { path: "draftPost.heroImage" },
4331
- { path: "draftPost.media.wixMedia.image" }
4332
- ]
4333
- },
4334
- {
4335
- transformFn: transformRESTPageURLToSDKPageURL,
4336
- paths: [
4337
- { path: "draftPost.url" },
4338
- { path: "draftPost.translations.url" }
4339
- ]
4340
- },
4341
- {
4342
- transformFn: transformRESTVideoV2ToSDKVideoV2,
4343
- paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
4344
- }
4345
- ]),
4346
- ["draftPost.richContent"]
4347
- );
4348
- } catch (err) {
4349
- const transformedError = sdkTransformError(
4350
- err,
4351
- {
4352
- spreadPathsToArguments: {},
4353
- explicitPathsToArguments: { draftPostId: "$[0]" },
4354
- singleArgumentUnchanged: false
4355
- },
4356
- ["draftPostId"]
4357
- );
4358
- sideEffects?.onError?.(err);
4359
- throw transformedError;
4360
- }
4361
- }
4362
- async function restoreFromTrashBin2(draftPostId) {
4363
- const { httpClient, sideEffects } = arguments[1];
4364
- const payload = renameKeysFromSDKRequestToRESTRequest(
4365
- { draftPostId },
4366
- []
4367
- );
4368
- const reqOpts = restoreFromTrashBin(payload);
4369
- sideEffects?.onSiteCall?.();
4370
- try {
4371
- const result = await httpClient.request(reqOpts);
4372
- sideEffects?.onSuccess?.(result);
4373
- return renameKeysFromRESTResponseToSDKResponse(
4374
- transformPaths2(result.data, [
4375
- {
4376
- transformFn: transformRESTImageToSDKImage,
4377
- paths: [
4378
- { path: "draftPost.heroImage" },
4379
- { path: "draftPost.media.wixMedia.image" }
4380
- ]
4381
- },
4382
- {
4383
- transformFn: transformRESTPageURLToSDKPageURL,
4384
- paths: [
4385
- { path: "draftPost.url" },
4386
- { path: "draftPost.translations.url" }
4387
- ]
4388
- },
4389
- {
4390
- transformFn: transformRESTVideoV2ToSDKVideoV2,
4391
- paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
4392
- }
4393
- ]),
4394
- ["draftPost.richContent"]
4395
- );
4396
- } catch (err) {
4397
- const transformedError = sdkTransformError(
4398
- err,
4399
- {
4400
- spreadPathsToArguments: {},
4401
- explicitPathsToArguments: { draftPostId: "$[0]" },
4402
- singleArgumentUnchanged: false
4403
- },
4404
- ["draftPostId"]
4405
- );
4406
- sideEffects?.onError?.(err);
4407
- throw transformedError;
4408
- }
4409
- }
4410
- function queryDraftPosts2(options) {
4411
- const { httpClient, sideEffects } = arguments[1];
4412
- return queryBuilder({
4413
- func: async (payload) => {
4414
- const reqOpts = queryDraftPosts({
4415
- ...payload,
4416
- ...options ?? {}
4417
- });
4418
- sideEffects?.onSiteCall?.();
4419
- try {
4420
- const result = await httpClient.request(reqOpts);
4421
- sideEffects?.onSuccess?.(result);
4422
- return result;
4423
- } catch (err) {
4424
- sideEffects?.onError?.(err);
4425
- throw err;
4426
- }
4427
- },
4428
- requestTransformer: (query) => {
4429
- const args = [query, options];
4430
- return renameKeysFromSDKRequestToRESTRequest(
4431
- { ...args?.[1], query: args?.[0] },
4432
- []
4433
- );
4434
- },
4435
- responseTransformer: ({ data }) => {
4436
- const transformedData = renameKeysFromRESTResponseToSDKResponse(
4437
- transformPaths2(data, [
4438
- {
4439
- transformFn: transformRESTImageToSDKImage,
4440
- paths: [
4441
- { path: "draftPosts.heroImage" },
4442
- { path: "draftPosts.media.wixMedia.image" }
4443
- ]
4444
- },
4445
- {
4446
- transformFn: transformRESTPageURLToSDKPageURL,
4447
- paths: [
4448
- { path: "draftPosts.url" },
4449
- { path: "draftPosts.translations.url" }
4450
- ]
4451
- },
4452
- {
4453
- transformFn: transformRESTVideoV2ToSDKVideoV2,
4454
- paths: [{ path: "draftPosts.media.wixMedia.videoV2" }]
4455
- }
4456
- ]),
4457
- ["draftPosts.richContent"]
4458
- );
4459
- return {
4460
- items: transformedData?.draftPosts,
4461
- pagingMetadata: transformedData?.pagingMetadata
4462
- };
4463
- },
4464
- errorTransformer: (err) => {
4465
- const transformedError = sdkTransformError(err, {
4466
- spreadPathsToArguments: {},
4467
- explicitPathsToArguments: { query: "$[0]" },
4468
- singleArgumentUnchanged: false
4469
- });
4470
- throw transformedError;
4471
- },
4472
- pagingMethod: "CURSOR",
4473
- transformationPaths: {}
4474
- });
4475
- }
4476
- async function typedQueryDraftPosts(query, options) {
4477
- const { httpClient, sideEffects } = arguments[2];
4478
- const payload = renameKeysFromSDKRequestToRESTRequest(
4479
- { query, ...options },
4480
- []
4481
- );
4482
- const reqOpts = queryDraftPosts(payload);
4483
- sideEffects?.onSiteCall?.();
4484
- try {
4485
- const result = await httpClient.request(reqOpts);
4486
- sideEffects?.onSuccess?.(result);
4487
- return renameKeysFromRESTResponseToSDKResponse(
4488
- transformPaths2(result.data, [
4489
- {
4490
- transformFn: transformRESTImageToSDKImage,
4491
- paths: [
4492
- { path: "draftPosts.heroImage" },
4493
- { path: "draftPosts.media.wixMedia.image" }
4494
- ]
4495
- },
4496
- {
4497
- transformFn: transformRESTPageURLToSDKPageURL,
4498
- paths: [
4499
- { path: "draftPosts.url" },
4500
- { path: "draftPosts.translations.url" }
4501
- ]
4502
- },
4503
- {
4504
- transformFn: transformRESTVideoV2ToSDKVideoV2,
4505
- paths: [{ path: "draftPosts.media.wixMedia.videoV2" }]
4506
- }
4507
- ]),
4508
- ["draftPosts.richContent"]
4509
- );
4510
- } catch (err) {
4511
- const transformedError = sdkTransformError(
4512
- err,
4513
- {
4514
- spreadPathsToArguments: {},
4515
- explicitPathsToArguments: { query: "$[0]" },
4516
- singleArgumentUnchanged: false
4517
- },
4518
- ["query", "options"]
4519
- );
4520
- sideEffects?.onError?.(err);
4521
- throw transformedError;
4522
- }
4523
- }
4524
- var utils = {
4525
- query: /* @__PURE__ */ createQueryUtils()
4526
- };
4527
- async function publishDraftPost2(draftPostId) {
4528
- const { httpClient, sideEffects } = arguments[1];
4529
- const payload = renameKeysFromSDKRequestToRESTRequest(
4530
- { draftPostId },
4531
- []
4532
- );
4533
- const reqOpts = publishDraftPost(payload);
4534
- sideEffects?.onSiteCall?.();
4535
- try {
4536
- const result = await httpClient.request(reqOpts);
4537
- sideEffects?.onSuccess?.(result);
4538
- return renameKeysFromRESTResponseToSDKResponse(result.data, []);
4539
- } catch (err) {
4540
- const transformedError = sdkTransformError(
4541
- err,
4542
- {
4543
- spreadPathsToArguments: {},
4544
- explicitPathsToArguments: { draftPostId: "$[0]" },
4545
- singleArgumentUnchanged: false
4546
- },
4547
- ["draftPostId"]
4548
- );
4549
- sideEffects?.onError?.(err);
4550
- throw transformedError;
4551
- }
4552
- }
4553
- export {
4554
- Action,
4555
- Alignment,
4556
- AnimationType,
4557
- AppType,
4558
- AspectRatio,
4559
- BackdropType,
4560
- BackgroundType,
4561
- BannerOrigin,
4562
- BannerPosition,
4563
- ButtonDataType,
4564
- CardDataBackgroundType,
4565
- CardStylesType,
4566
- ColumnSize,
4567
- Crop,
4568
- DecorationType,
4569
- DesignTarget,
4570
- Direction,
4571
- DividerDataAlignment,
4572
- EntranceEffectType,
4573
- Field,
4574
- FontType,
4575
- GIFType,
4576
- GetDraftPostsSort,
4577
- GradientType,
4578
- ImagePosition,
4579
- ImagePositionPosition,
4580
- ImageScalingScaling,
4581
- Indentation,
4582
- InitialExpandedItems,
4583
- LayerEffect,
4584
- Layout,
4585
- LayoutDataBackgroundType,
4586
- LayoutType,
4587
- LineCap,
4588
- LineStyle,
4589
- ListStyle,
4590
- LoopEffectType,
4591
- MapType,
4592
- ModerationStatusStatus,
4593
- NodeType,
4594
- NullValue,
4595
- Orientation,
4596
- Origin,
4597
- Placement,
4598
- PluginContainerDataAlignment,
4599
- PointerEffectType,
4600
- PollDesignBackgroundType,
4601
- PollLayoutDirection,
4602
- PollLayoutType,
4603
- Position,
4604
- Resizing,
4605
- ResponsivenessBehaviour,
4606
- Scaling,
4607
- Shape,
4608
- SmartBlockDataType,
4609
- SortOrder,
4610
- Source,
4611
- Status,
4612
- StylesPosition,
4613
- Target,
4614
- TextAlignment,
4615
- ThumbnailsAlignment,
4616
- TotalDraftPostsGroupingField,
4617
- Type,
4618
- Variant,
4619
- VerticalAlignment,
4620
- VerticalAlignmentAlignment,
4621
- ViewMode,
4622
- ViewRole,
4623
- VoteRole,
4624
- WebhookIdentityType,
4625
- Width,
4626
- WidthType,
4627
- bulkCreateDraftPosts2 as bulkCreateDraftPosts,
4628
- bulkDeleteDraftPosts2 as bulkDeleteDraftPosts,
4629
- bulkUpdateDraftPosts2 as bulkUpdateDraftPosts,
4630
- createDraftPost2 as createDraftPost,
4631
- deleteDraftPost2 as deleteDraftPost,
4632
- getDeletedDraftPost2 as getDeletedDraftPost,
4633
- getDraftPost2 as getDraftPost,
4634
- listDeletedDraftPosts2 as listDeletedDraftPosts,
4635
- listDraftPosts2 as listDraftPosts,
4636
- publishDraftPost2 as publishDraftPost,
4637
- queryDraftPosts2 as queryDraftPosts,
4638
- removeFromTrashBin2 as removeFromTrashBin,
4639
- restoreFromTrashBin2 as restoreFromTrashBin,
4640
- typedQueryDraftPosts,
4641
- updateDraftPost2 as updateDraftPost,
4642
- utils
4643
- };
4644
- //# sourceMappingURL=index.typings.mjs.map