@wix/auto_sdk_blog_draft-posts 1.0.98 → 1.0.100

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