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