@wix/auto_sdk_blog_posts 1.0.178 → 1.0.179

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2221 +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
- Alignment: () => Alignment,
24
- AppType: () => AppType,
25
- AspectRatio: () => AspectRatio,
26
- BackdropType: () => BackdropType,
27
- BackgroundType: () => BackgroundType,
28
- BannerPosition: () => BannerPosition,
29
- ButtonDataType: () => ButtonDataType,
30
- CardDataBackgroundType: () => CardDataBackgroundType,
31
- CardStylesType: () => CardStylesType,
32
- ColumnSize: () => ColumnSize,
33
- Crop: () => Crop,
34
- DecorationType: () => DecorationType,
35
- DesignTarget: () => DesignTarget,
36
- Direction: () => Direction,
37
- DividerDataAlignment: () => DividerDataAlignment,
38
- EntranceEffectType: () => EntranceEffectType,
39
- Field: () => Field,
40
- FontType: () => FontType,
41
- GIFType: () => GIFType,
42
- GetPostsSort: () => GetPostsSort,
43
- GradientType: () => GradientType,
44
- ImagePosition: () => ImagePosition,
45
- ImagePositionPosition: () => ImagePositionPosition,
46
- ImageScalingScaling: () => ImageScalingScaling,
47
- Indentation: () => Indentation,
48
- InitialExpandedItems: () => InitialExpandedItems,
49
- LayerEffect: () => LayerEffect,
50
- Layout: () => Layout,
51
- LayoutDataBackgroundType: () => LayoutDataBackgroundType,
52
- LayoutType: () => LayoutType,
53
- LineCap: () => LineCap,
54
- LineStyle: () => LineStyle,
55
- ListStyle: () => ListStyle,
56
- LoopEffectType: () => LoopEffectType,
57
- MapType: () => MapType,
58
- NodeType: () => NodeType,
59
- NullValue: () => NullValue,
60
- Order: () => Order,
61
- Orientation: () => Orientation,
62
- Origin: () => Origin,
63
- Placement: () => Placement,
64
- PluginContainerDataAlignment: () => PluginContainerDataAlignment,
65
- PointerEffectType: () => PointerEffectType,
66
- PollDesignBackgroundType: () => PollDesignBackgroundType,
67
- PollLayoutDirection: () => PollLayoutDirection,
68
- PollLayoutType: () => PollLayoutType,
69
- Position: () => Position,
70
- PostFieldField: () => PostFieldField,
71
- QueryPublicationsCountStatsRequestOrder: () => QueryPublicationsCountStatsRequestOrder,
72
- Resizing: () => Resizing,
73
- ResponsivenessBehaviour: () => ResponsivenessBehaviour,
74
- Scaling: () => Scaling,
75
- Shape: () => Shape,
76
- SmartBlockDataType: () => SmartBlockDataType,
77
- SortOrder: () => SortOrder,
78
- Source: () => Source,
79
- Status: () => Status,
80
- StylesPosition: () => StylesPosition,
81
- Target: () => Target,
82
- TextAlignment: () => TextAlignment,
83
- ThumbnailsAlignment: () => ThumbnailsAlignment,
84
- Type: () => Type,
85
- Variant: () => Variant,
86
- VerticalAlignment: () => VerticalAlignment,
87
- VerticalAlignmentAlignment: () => VerticalAlignmentAlignment,
88
- ViewMode: () => ViewMode,
89
- ViewRole: () => ViewRole,
90
- VoteRole: () => VoteRole,
91
- WebhookIdentityType: () => WebhookIdentityType,
92
- Width: () => Width,
93
- WidthType: () => WidthType,
94
- getPost: () => getPost2,
95
- getPostBySlug: () => getPostBySlug2,
96
- getPostMetrics: () => getPostMetrics2,
97
- getTotalPosts: () => getTotalPosts2,
98
- listPosts: () => listPosts2,
99
- queryPostCountStats: () => queryPostCountStats2,
100
- queryPosts: () => queryPosts2,
101
- typedQueryPosts: () => typedQueryPosts,
102
- utils: () => utils
103
- });
104
- module.exports = __toCommonJS(index_typings_exports);
105
-
106
- // src/blog-v3-post-posts.universal.ts
107
- var import_transform_error = require("@wix/sdk-runtime/transform-error");
108
- var import_query_builder = require("@wix/sdk-runtime/query-builder");
109
- var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
110
-
111
- // src/blog-v3-post-posts.http.ts
112
- var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
113
- var import_float = require("@wix/sdk-runtime/transformations/float");
114
- var import_float2 = require("@wix/sdk-runtime/transformations/float");
115
- var import_bytes = require("@wix/sdk-runtime/transformations/bytes");
116
- var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
117
- var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
118
- var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
119
- var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
120
- function resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl(opts) {
121
- const domainToMappings = {
122
- _: [
123
- {
124
- srcPath: "/_api/communities-blog-node-api/v3/posts",
125
- destPath: "/v3/posts"
126
- }
127
- ],
128
- "apps._base_domain_": [
129
- {
130
- srcPath: "/_api/communities-blog-node-api/v3/posts",
131
- destPath: "/v3/posts"
132
- }
133
- ],
134
- "www._base_domain_": [
135
- {
136
- srcPath: "/_api/communities-blog-node-api/v3/posts",
137
- destPath: "/v3/posts"
138
- }
139
- ],
140
- "www.wixapis.com": [
141
- {
142
- srcPath: "/v3/posts",
143
- destPath: "/v3/posts"
144
- },
145
- {
146
- srcPath: "/blog/v3/posts",
147
- destPath: "/v3/posts"
148
- },
149
- {
150
- srcPath: "/_api/v3/posts",
151
- destPath: "/v3/posts"
152
- }
153
- ],
154
- "manage._base_domain_": [
155
- {
156
- srcPath: "/_api/communities-blog-node-api/v3/posts",
157
- destPath: "/v3/posts"
158
- },
159
- {
160
- srcPath: "/_api/post-service-api-proxy/v3/bulk/posts",
161
- destPath: "/v3/bulk/posts"
162
- }
163
- ],
164
- "*.dev.wix-code.com": [
165
- {
166
- srcPath: "/_api/communities-blog-node-api/v3/posts",
167
- destPath: "/v3/posts"
168
- }
169
- ],
170
- "editor._base_domain_": [
171
- {
172
- srcPath: "/_api/communities-blog-node-api/v3/posts",
173
- destPath: "/v3/posts"
174
- }
175
- ],
176
- "blocks._base_domain_": [
177
- {
178
- srcPath: "/_api/communities-blog-node-api/v3/posts",
179
- destPath: "/v3/posts"
180
- }
181
- ],
182
- "create.editorx": [
183
- {
184
- srcPath: "/_api/communities-blog-node-api/v3/posts",
185
- destPath: "/v3/posts"
186
- }
187
- ],
188
- "editor.wixapps.net": [
189
- {
190
- srcPath: "/_api/communities-blog-node-api/v3/posts",
191
- destPath: "/v3/posts"
192
- }
193
- ],
194
- "dev._base_domain_": [
195
- {
196
- srcPath: "/_api/communities-blog-node-api/v3/posts",
197
- destPath: "/v3/posts"
198
- }
199
- ]
200
- };
201
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
202
- }
203
- function resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl(opts) {
204
- const domainToMappings = {
205
- "api._api_base_domain_": [
206
- {
207
- srcPath: "/communities-blog-node-api",
208
- destPath: ""
209
- }
210
- ],
211
- "www._base_domain_": [
212
- {
213
- srcPath: "/_api/communities-blog-node-api",
214
- destPath: ""
215
- },
216
- {
217
- srcPath: "/_api/communities-blog-node-api/v2/stats",
218
- destPath: "/v2/stats"
219
- }
220
- ],
221
- "apps._base_domain_": [
222
- {
223
- srcPath: "/_api/communities-blog-node-api",
224
- destPath: ""
225
- },
226
- {
227
- srcPath: "/_api/communities-blog-node-api/v2/stats",
228
- destPath: "/v2/stats"
229
- }
230
- ],
231
- _: [
232
- {
233
- srcPath: "/_api/communities-blog-node-api",
234
- destPath: ""
235
- },
236
- {
237
- srcPath: "/_api/communities-blog-node-api/_api/blogs/this",
238
- destPath: "/_api/blogs/this"
239
- },
240
- {
241
- srcPath: "/_api/communities-blog-node-api/_api/categories",
242
- destPath: "/_api/categories"
243
- },
244
- {
245
- srcPath: "/_api/communities-blog-node-api/_api/site-properties",
246
- destPath: "/_api/site-properties"
247
- },
248
- {
249
- srcPath: "/_api/communities-blog-node-api/_api/posts/content",
250
- destPath: "/_api/posts/content"
251
- },
252
- {
253
- srcPath: "/_api/communities-blog-node-api/v2/stats",
254
- destPath: "/v2/stats"
255
- }
256
- ],
257
- "editor._base_domain_": [
258
- {
259
- srcPath: "/_api/communities-blog-node-api",
260
- destPath: ""
261
- }
262
- ],
263
- "blocks._base_domain_": [
264
- {
265
- srcPath: "/_api/communities-blog-node-api",
266
- destPath: ""
267
- }
268
- ],
269
- "create.editorx": [
270
- {
271
- srcPath: "/_api/communities-blog-node-api",
272
- destPath: ""
273
- }
274
- ],
275
- "*.dev.wix-code.com": [
276
- {
277
- srcPath: "/_api/communities-blog-node-api",
278
- destPath: ""
279
- }
280
- ],
281
- "*.pub.wix-code.com": [
282
- {
283
- srcPath: "/_api/communities-blog-node-api",
284
- destPath: ""
285
- }
286
- ],
287
- "bo._base_domain_": [
288
- {
289
- srcPath: "/_api/communities-blog-node-api",
290
- destPath: ""
291
- },
292
- {
293
- srcPath: "/_api/communities-blog-node-api",
294
- destPath: ""
295
- }
296
- ],
297
- "wixbo.ai": [
298
- {
299
- srcPath: "/_api/communities-blog-node-api",
300
- destPath: ""
301
- },
302
- {
303
- srcPath: "/_api/communities-blog-node-api",
304
- destPath: ""
305
- }
306
- ],
307
- "wix-bo.com": [
308
- {
309
- srcPath: "/_api/communities-blog-node-api",
310
- destPath: ""
311
- },
312
- {
313
- srcPath: "/_api/communities-blog-node-api",
314
- destPath: ""
315
- }
316
- ],
317
- "manage._base_domain_": [
318
- {
319
- srcPath: "/_api/communities-blog-node-api",
320
- destPath: ""
321
- }
322
- ],
323
- "social-blog._base_domain_": [
324
- {
325
- srcPath: "/_api/communities-blog-node-api",
326
- destPath: ""
327
- }
328
- ],
329
- "editor.wixapps.net": [
330
- {
331
- srcPath: "/_api/communities-blog-node-api",
332
- destPath: ""
333
- }
334
- ],
335
- "dev._base_domain_": [
336
- {
337
- srcPath: "/_api/communities-blog-node-api",
338
- destPath: ""
339
- }
340
- ],
341
- "www.wixapis.com": [
342
- {
343
- srcPath: "/blog/v2",
344
- destPath: "/v2"
345
- },
346
- {
347
- srcPath: "/blog/v3",
348
- destPath: "/v3"
349
- },
350
- {
351
- srcPath: "/v2/stats",
352
- destPath: "/v2/stats"
353
- },
354
- {
355
- srcPath: "/blog/v2/stats",
356
- destPath: "/v2/stats"
357
- }
358
- ]
359
- };
360
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
361
- }
362
- var PACKAGE_NAME = "@wix/auto_sdk_blog_posts";
363
- function queryPostCountStats(payload) {
364
- function __queryPostCountStats({ host }) {
365
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
366
- {
367
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
368
- paths: [{ path: "rangeStart" }, { path: "rangeEnd" }]
369
- }
370
- ]);
371
- const metadata = {
372
- entityFqdn: "wix.blog.v3.post",
373
- method: "GET",
374
- methodFqn: "com.wixpress.npm.communities.platformized.blog.BlogStatsService.QueryPostCountStats",
375
- packageName: PACKAGE_NAME,
376
- migrationOptions: {
377
- optInTransformResponse: true
378
- },
379
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({
380
- protoPath: "/v2/stats/post/count",
381
- data: serializedData,
382
- host
383
- }),
384
- params: (0, import_rest_modules.toURLSearchParams)(serializedData),
385
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
386
- {
387
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
388
- paths: [{ path: "stats.periodStart" }]
389
- }
390
- ])
391
- };
392
- return metadata;
393
- }
394
- return __queryPostCountStats;
395
- }
396
- function getTotalPosts(payload) {
397
- function __getTotalPosts({ host }) {
398
- const metadata = {
399
- entityFqdn: "wix.blog.v3.post",
400
- method: "GET",
401
- methodFqn: "com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts",
402
- packageName: PACKAGE_NAME,
403
- migrationOptions: {
404
- optInTransformResponse: true
405
- },
406
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({
407
- protoPath: "/v2/stats/posts/total",
408
- data: payload,
409
- host
410
- }),
411
- params: (0, import_rest_modules.toURLSearchParams)(payload)
412
- };
413
- return metadata;
414
- }
415
- return __getTotalPosts;
416
- }
417
- function getPost(payload) {
418
- function __getPost({ host }) {
419
- const metadata = {
420
- entityFqdn: "wix.blog.v3.post",
421
- method: "GET",
422
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost",
423
- packageName: PACKAGE_NAME,
424
- migrationOptions: {
425
- optInTransformResponse: true
426
- },
427
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
428
- protoPath: "/v3/posts/{postId}",
429
- data: payload,
430
- host
431
- }),
432
- params: (0, import_rest_modules.toURLSearchParams)(payload),
433
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
434
- {
435
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
436
- paths: [
437
- { path: "post.firstPublishedDate" },
438
- { path: "post.lastPublishedDate" },
439
- { path: "post.heroImage.urlExpirationDate" },
440
- { path: "post.richContent.metadata.createdTimestamp" },
441
- { path: "post.richContent.metadata.updatedTimestamp" },
442
- { path: "post.moderationDetails.submittedDate" },
443
- { path: "post.moderationDetails.moderationDate" },
444
- { path: "post.media.wixMedia.image.urlExpirationDate" },
445
- { path: "post.media.wixMedia.videoV2.urlExpirationDate" },
446
- {
447
- path: "post.media.wixMedia.videoV2.resolutions.urlExpirationDate"
448
- },
449
- {
450
- path: "post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
451
- },
452
- { path: "post.media.wixMedia.videoV2.posters.urlExpirationDate" }
453
- ]
454
- },
455
- {
456
- transformFn: import_bytes.transformRESTBytesToSDKBytes,
457
- paths: [{ path: "post.richContentCompressed" }]
458
- },
459
- {
460
- transformFn: import_float2.transformRESTFloatToSDKFloat,
461
- paths: [
462
- { path: "post.heroImage.focalPoint.x" },
463
- { path: "post.heroImage.focalPoint.y" },
464
- { path: "post.media.wixMedia.image.focalPoint.x" },
465
- { path: "post.media.wixMedia.image.focalPoint.y" },
466
- {
467
- path: "post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
468
- },
469
- {
470
- path: "post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
471
- },
472
- { path: "post.media.wixMedia.videoV2.posters.focalPoint.x" },
473
- { path: "post.media.wixMedia.videoV2.posters.focalPoint.y" },
474
- { path: "post.metrics.averageRating" },
475
- {
476
- path: "post.richContent.nodes.buttonData.styles.background.gradient.centerX"
477
- },
478
- {
479
- path: "post.richContent.nodes.buttonData.styles.background.gradient.centerY"
480
- },
481
- {
482
- path: "post.richContent.nodes.buttonData.styles.background.gradient.stops.position"
483
- },
484
- {
485
- path: "post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
486
- },
487
- {
488
- path: "post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
489
- },
490
- {
491
- path: "post.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
492
- },
493
- {
494
- path: "post.richContent.nodes.galleryData.items.image.media.duration"
495
- },
496
- {
497
- path: "post.richContent.nodes.galleryData.items.video.media.duration"
498
- },
499
- {
500
- path: "post.richContent.nodes.galleryData.items.video.thumbnail.duration"
501
- },
502
- { path: "post.richContent.nodes.galleryData.options.item.ratio" },
503
- { path: "post.richContent.nodes.imageData.image.duration" },
504
- { path: "post.richContent.nodes.imageData.crop.x" },
505
- { path: "post.richContent.nodes.imageData.crop.y" },
506
- { path: "post.richContent.nodes.imageData.crop.width" },
507
- { path: "post.richContent.nodes.imageData.crop.height" },
508
- { path: "post.richContent.nodes.mapData.mapSettings.lat" },
509
- { path: "post.richContent.nodes.mapData.mapSettings.lng" },
510
- { path: "post.richContent.nodes.pollData.poll.image.duration" },
511
- {
512
- path: "post.richContent.nodes.pollData.poll.options.image.duration"
513
- },
514
- {
515
- path: "post.richContent.nodes.pollData.design.poll.background.image.duration"
516
- },
517
- { path: "post.richContent.nodes.appEmbedData.image.duration" },
518
- { path: "post.richContent.nodes.videoData.video.duration" },
519
- { path: "post.richContent.nodes.videoData.thumbnail.duration" },
520
- { path: "post.richContent.nodes.audioData.audio.duration" },
521
- { path: "post.richContent.nodes.audioData.coverImage.duration" },
522
- {
523
- path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
524
- },
525
- {
526
- path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
527
- },
528
- {
529
- path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
530
- },
531
- {
532
- path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
533
- },
534
- {
535
- path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
536
- },
537
- {
538
- path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
539
- },
540
- {
541
- path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
542
- },
543
- {
544
- path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
545
- },
546
- {
547
- path: "post.richContent.nodes.layoutData.background.gradient.centerX"
548
- },
549
- {
550
- path: "post.richContent.nodes.layoutData.background.gradient.centerY"
551
- },
552
- {
553
- path: "post.richContent.nodes.layoutData.background.gradient.stops.position"
554
- },
555
- {
556
- path: "post.richContent.nodes.layoutData.backdrop.gradient.centerX"
557
- },
558
- {
559
- path: "post.richContent.nodes.layoutData.backdrop.gradient.centerY"
560
- },
561
- {
562
- path: "post.richContent.nodes.layoutData.backdrop.gradient.stops.position"
563
- },
564
- { path: "post.richContent.nodes.shapeData.shape.duration" },
565
- {
566
- path: "post.richContent.nodes.cardData.background.gradient.centerX"
567
- },
568
- {
569
- path: "post.richContent.nodes.cardData.background.gradient.centerY"
570
- },
571
- {
572
- path: "post.richContent.nodes.cardData.background.gradient.stops.position"
573
- },
574
- {
575
- path: "post.richContent.nodes.cardData.backgroundImage.media.duration"
576
- },
577
- {
578
- path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
579
- },
580
- {
581
- path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
582
- },
583
- {
584
- path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
585
- },
586
- { path: "post.richContent.nodes.tocData.fontSize" },
587
- { path: "post.richContent.nodes.tocData.itemSpacing" },
588
- {
589
- path: "post.richContent.nodes.smartBlockCellData.shape.duration"
590
- }
591
- ]
592
- }
593
- ])
594
- };
595
- return metadata;
596
- }
597
- return __getPost;
598
- }
599
- function getPostBySlug(payload) {
600
- function __getPostBySlug({ host }) {
601
- const metadata = {
602
- entityFqdn: "wix.blog.v3.post",
603
- method: "GET",
604
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug",
605
- packageName: PACKAGE_NAME,
606
- migrationOptions: {
607
- optInTransformResponse: true
608
- },
609
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
610
- protoPath: "/v3/posts/slugs/{slug}",
611
- data: payload,
612
- host
613
- }),
614
- params: (0, import_rest_modules.toURLSearchParams)(payload),
615
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
616
- {
617
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
618
- paths: [
619
- { path: "post.firstPublishedDate" },
620
- { path: "post.lastPublishedDate" },
621
- { path: "post.heroImage.urlExpirationDate" },
622
- { path: "post.richContent.metadata.createdTimestamp" },
623
- { path: "post.richContent.metadata.updatedTimestamp" },
624
- { path: "post.moderationDetails.submittedDate" },
625
- { path: "post.moderationDetails.moderationDate" },
626
- { path: "post.media.wixMedia.image.urlExpirationDate" },
627
- { path: "post.media.wixMedia.videoV2.urlExpirationDate" },
628
- {
629
- path: "post.media.wixMedia.videoV2.resolutions.urlExpirationDate"
630
- },
631
- {
632
- path: "post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
633
- },
634
- { path: "post.media.wixMedia.videoV2.posters.urlExpirationDate" }
635
- ]
636
- },
637
- {
638
- transformFn: import_bytes.transformRESTBytesToSDKBytes,
639
- paths: [{ path: "post.richContentCompressed" }]
640
- },
641
- {
642
- transformFn: import_float2.transformRESTFloatToSDKFloat,
643
- paths: [
644
- { path: "post.heroImage.focalPoint.x" },
645
- { path: "post.heroImage.focalPoint.y" },
646
- { path: "post.media.wixMedia.image.focalPoint.x" },
647
- { path: "post.media.wixMedia.image.focalPoint.y" },
648
- {
649
- path: "post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
650
- },
651
- {
652
- path: "post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
653
- },
654
- { path: "post.media.wixMedia.videoV2.posters.focalPoint.x" },
655
- { path: "post.media.wixMedia.videoV2.posters.focalPoint.y" },
656
- { path: "post.metrics.averageRating" },
657
- {
658
- path: "post.richContent.nodes.buttonData.styles.background.gradient.centerX"
659
- },
660
- {
661
- path: "post.richContent.nodes.buttonData.styles.background.gradient.centerY"
662
- },
663
- {
664
- path: "post.richContent.nodes.buttonData.styles.background.gradient.stops.position"
665
- },
666
- {
667
- path: "post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
668
- },
669
- {
670
- path: "post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
671
- },
672
- {
673
- path: "post.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
674
- },
675
- {
676
- path: "post.richContent.nodes.galleryData.items.image.media.duration"
677
- },
678
- {
679
- path: "post.richContent.nodes.galleryData.items.video.media.duration"
680
- },
681
- {
682
- path: "post.richContent.nodes.galleryData.items.video.thumbnail.duration"
683
- },
684
- { path: "post.richContent.nodes.galleryData.options.item.ratio" },
685
- { path: "post.richContent.nodes.imageData.image.duration" },
686
- { path: "post.richContent.nodes.imageData.crop.x" },
687
- { path: "post.richContent.nodes.imageData.crop.y" },
688
- { path: "post.richContent.nodes.imageData.crop.width" },
689
- { path: "post.richContent.nodes.imageData.crop.height" },
690
- { path: "post.richContent.nodes.mapData.mapSettings.lat" },
691
- { path: "post.richContent.nodes.mapData.mapSettings.lng" },
692
- { path: "post.richContent.nodes.pollData.poll.image.duration" },
693
- {
694
- path: "post.richContent.nodes.pollData.poll.options.image.duration"
695
- },
696
- {
697
- path: "post.richContent.nodes.pollData.design.poll.background.image.duration"
698
- },
699
- { path: "post.richContent.nodes.appEmbedData.image.duration" },
700
- { path: "post.richContent.nodes.videoData.video.duration" },
701
- { path: "post.richContent.nodes.videoData.thumbnail.duration" },
702
- { path: "post.richContent.nodes.audioData.audio.duration" },
703
- { path: "post.richContent.nodes.audioData.coverImage.duration" },
704
- {
705
- path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
706
- },
707
- {
708
- path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
709
- },
710
- {
711
- path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
712
- },
713
- {
714
- path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
715
- },
716
- {
717
- path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
718
- },
719
- {
720
- path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
721
- },
722
- {
723
- path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
724
- },
725
- {
726
- path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
727
- },
728
- {
729
- path: "post.richContent.nodes.layoutData.background.gradient.centerX"
730
- },
731
- {
732
- path: "post.richContent.nodes.layoutData.background.gradient.centerY"
733
- },
734
- {
735
- path: "post.richContent.nodes.layoutData.background.gradient.stops.position"
736
- },
737
- {
738
- path: "post.richContent.nodes.layoutData.backdrop.gradient.centerX"
739
- },
740
- {
741
- path: "post.richContent.nodes.layoutData.backdrop.gradient.centerY"
742
- },
743
- {
744
- path: "post.richContent.nodes.layoutData.backdrop.gradient.stops.position"
745
- },
746
- { path: "post.richContent.nodes.shapeData.shape.duration" },
747
- {
748
- path: "post.richContent.nodes.cardData.background.gradient.centerX"
749
- },
750
- {
751
- path: "post.richContent.nodes.cardData.background.gradient.centerY"
752
- },
753
- {
754
- path: "post.richContent.nodes.cardData.background.gradient.stops.position"
755
- },
756
- {
757
- path: "post.richContent.nodes.cardData.backgroundImage.media.duration"
758
- },
759
- {
760
- path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
761
- },
762
- {
763
- path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
764
- },
765
- {
766
- path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
767
- },
768
- { path: "post.richContent.nodes.tocData.fontSize" },
769
- { path: "post.richContent.nodes.tocData.itemSpacing" },
770
- {
771
- path: "post.richContent.nodes.smartBlockCellData.shape.duration"
772
- }
773
- ]
774
- }
775
- ])
776
- };
777
- return metadata;
778
- }
779
- return __getPostBySlug;
780
- }
781
- function listPosts(payload) {
782
- function __listPosts({ host }) {
783
- const metadata = {
784
- entityFqdn: "wix.blog.v3.post",
785
- method: "GET",
786
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts",
787
- packageName: PACKAGE_NAME,
788
- migrationOptions: {
789
- optInTransformResponse: true
790
- },
791
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
792
- protoPath: "/v3/posts",
793
- data: payload,
794
- host
795
- }),
796
- params: (0, import_rest_modules.toURLSearchParams)(payload),
797
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
798
- {
799
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
800
- paths: [
801
- { path: "posts.firstPublishedDate" },
802
- { path: "posts.lastPublishedDate" },
803
- { path: "posts.heroImage.urlExpirationDate" },
804
- { path: "posts.richContent.metadata.createdTimestamp" },
805
- { path: "posts.richContent.metadata.updatedTimestamp" },
806
- { path: "posts.moderationDetails.submittedDate" },
807
- { path: "posts.moderationDetails.moderationDate" },
808
- { path: "posts.media.wixMedia.image.urlExpirationDate" },
809
- { path: "posts.media.wixMedia.videoV2.urlExpirationDate" },
810
- {
811
- path: "posts.media.wixMedia.videoV2.resolutions.urlExpirationDate"
812
- },
813
- {
814
- path: "posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
815
- },
816
- {
817
- path: "posts.media.wixMedia.videoV2.posters.urlExpirationDate"
818
- }
819
- ]
820
- },
821
- {
822
- transformFn: import_bytes.transformRESTBytesToSDKBytes,
823
- paths: [{ path: "posts.richContentCompressed" }]
824
- },
825
- {
826
- transformFn: import_float2.transformRESTFloatToSDKFloat,
827
- paths: [
828
- { path: "posts.heroImage.focalPoint.x" },
829
- { path: "posts.heroImage.focalPoint.y" },
830
- { path: "posts.media.wixMedia.image.focalPoint.x" },
831
- { path: "posts.media.wixMedia.image.focalPoint.y" },
832
- {
833
- path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
834
- },
835
- {
836
- path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
837
- },
838
- { path: "posts.media.wixMedia.videoV2.posters.focalPoint.x" },
839
- { path: "posts.media.wixMedia.videoV2.posters.focalPoint.y" },
840
- { path: "posts.metrics.averageRating" },
841
- {
842
- path: "posts.richContent.nodes.buttonData.styles.background.gradient.centerX"
843
- },
844
- {
845
- path: "posts.richContent.nodes.buttonData.styles.background.gradient.centerY"
846
- },
847
- {
848
- path: "posts.richContent.nodes.buttonData.styles.background.gradient.stops.position"
849
- },
850
- {
851
- path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
852
- },
853
- {
854
- path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
855
- },
856
- {
857
- path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
858
- },
859
- {
860
- path: "posts.richContent.nodes.galleryData.items.image.media.duration"
861
- },
862
- {
863
- path: "posts.richContent.nodes.galleryData.items.video.media.duration"
864
- },
865
- {
866
- path: "posts.richContent.nodes.galleryData.items.video.thumbnail.duration"
867
- },
868
- {
869
- path: "posts.richContent.nodes.galleryData.options.item.ratio"
870
- },
871
- { path: "posts.richContent.nodes.imageData.image.duration" },
872
- { path: "posts.richContent.nodes.imageData.crop.x" },
873
- { path: "posts.richContent.nodes.imageData.crop.y" },
874
- { path: "posts.richContent.nodes.imageData.crop.width" },
875
- { path: "posts.richContent.nodes.imageData.crop.height" },
876
- { path: "posts.richContent.nodes.mapData.mapSettings.lat" },
877
- { path: "posts.richContent.nodes.mapData.mapSettings.lng" },
878
- { path: "posts.richContent.nodes.pollData.poll.image.duration" },
879
- {
880
- path: "posts.richContent.nodes.pollData.poll.options.image.duration"
881
- },
882
- {
883
- path: "posts.richContent.nodes.pollData.design.poll.background.image.duration"
884
- },
885
- { path: "posts.richContent.nodes.appEmbedData.image.duration" },
886
- { path: "posts.richContent.nodes.videoData.video.duration" },
887
- { path: "posts.richContent.nodes.videoData.thumbnail.duration" },
888
- { path: "posts.richContent.nodes.audioData.audio.duration" },
889
- { path: "posts.richContent.nodes.audioData.coverImage.duration" },
890
- {
891
- path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
892
- },
893
- {
894
- path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
895
- },
896
- {
897
- path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
898
- },
899
- {
900
- path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
901
- },
902
- {
903
- path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
904
- },
905
- {
906
- path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
907
- },
908
- {
909
- path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
910
- },
911
- {
912
- path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
913
- },
914
- {
915
- path: "posts.richContent.nodes.layoutData.background.gradient.centerX"
916
- },
917
- {
918
- path: "posts.richContent.nodes.layoutData.background.gradient.centerY"
919
- },
920
- {
921
- path: "posts.richContent.nodes.layoutData.background.gradient.stops.position"
922
- },
923
- {
924
- path: "posts.richContent.nodes.layoutData.backdrop.gradient.centerX"
925
- },
926
- {
927
- path: "posts.richContent.nodes.layoutData.backdrop.gradient.centerY"
928
- },
929
- {
930
- path: "posts.richContent.nodes.layoutData.backdrop.gradient.stops.position"
931
- },
932
- { path: "posts.richContent.nodes.shapeData.shape.duration" },
933
- {
934
- path: "posts.richContent.nodes.cardData.background.gradient.centerX"
935
- },
936
- {
937
- path: "posts.richContent.nodes.cardData.background.gradient.centerY"
938
- },
939
- {
940
- path: "posts.richContent.nodes.cardData.background.gradient.stops.position"
941
- },
942
- {
943
- path: "posts.richContent.nodes.cardData.backgroundImage.media.duration"
944
- },
945
- {
946
- path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
947
- },
948
- {
949
- path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
950
- },
951
- {
952
- path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
953
- },
954
- { path: "posts.richContent.nodes.tocData.fontSize" },
955
- { path: "posts.richContent.nodes.tocData.itemSpacing" },
956
- {
957
- path: "posts.richContent.nodes.smartBlockCellData.shape.duration"
958
- }
959
- ]
960
- }
961
- ])
962
- };
963
- return metadata;
964
- }
965
- return __listPosts;
966
- }
967
- function queryPosts(payload) {
968
- function __queryPosts({ host }) {
969
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
970
- {
971
- transformFn: import_float.transformSDKFloatToRESTFloat,
972
- paths: [
973
- { path: "sort.origin.latitude" },
974
- { path: "sort.origin.longitude" },
975
- { path: "query.sort.origin.latitude" },
976
- { path: "query.sort.origin.longitude" }
977
- ]
978
- }
979
- ]);
980
- const metadata = {
981
- entityFqdn: "wix.blog.v3.post",
982
- method: "POST",
983
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts",
984
- packageName: PACKAGE_NAME,
985
- migrationOptions: {
986
- optInTransformResponse: true
987
- },
988
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
989
- protoPath: "/v3/posts/query",
990
- data: serializedData,
991
- host
992
- }),
993
- data: serializedData,
994
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
995
- {
996
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
997
- paths: [
998
- { path: "posts.firstPublishedDate" },
999
- { path: "posts.lastPublishedDate" },
1000
- { path: "posts.heroImage.urlExpirationDate" },
1001
- { path: "posts.richContent.metadata.createdTimestamp" },
1002
- { path: "posts.richContent.metadata.updatedTimestamp" },
1003
- { path: "posts.moderationDetails.submittedDate" },
1004
- { path: "posts.moderationDetails.moderationDate" },
1005
- { path: "posts.media.wixMedia.image.urlExpirationDate" },
1006
- { path: "posts.media.wixMedia.videoV2.urlExpirationDate" },
1007
- {
1008
- path: "posts.media.wixMedia.videoV2.resolutions.urlExpirationDate"
1009
- },
1010
- {
1011
- path: "posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
1012
- },
1013
- {
1014
- path: "posts.media.wixMedia.videoV2.posters.urlExpirationDate"
1015
- }
1016
- ]
1017
- },
1018
- {
1019
- transformFn: import_bytes.transformRESTBytesToSDKBytes,
1020
- paths: [{ path: "posts.richContentCompressed" }]
1021
- },
1022
- {
1023
- transformFn: import_float2.transformRESTFloatToSDKFloat,
1024
- paths: [
1025
- { path: "posts.heroImage.focalPoint.x" },
1026
- { path: "posts.heroImage.focalPoint.y" },
1027
- { path: "posts.media.wixMedia.image.focalPoint.x" },
1028
- { path: "posts.media.wixMedia.image.focalPoint.y" },
1029
- {
1030
- path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
1031
- },
1032
- {
1033
- path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
1034
- },
1035
- { path: "posts.media.wixMedia.videoV2.posters.focalPoint.x" },
1036
- { path: "posts.media.wixMedia.videoV2.posters.focalPoint.y" },
1037
- { path: "posts.metrics.averageRating" },
1038
- {
1039
- path: "posts.richContent.nodes.buttonData.styles.background.gradient.centerX"
1040
- },
1041
- {
1042
- path: "posts.richContent.nodes.buttonData.styles.background.gradient.centerY"
1043
- },
1044
- {
1045
- path: "posts.richContent.nodes.buttonData.styles.background.gradient.stops.position"
1046
- },
1047
- {
1048
- path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1049
- },
1050
- {
1051
- path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
1052
- },
1053
- {
1054
- path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
1055
- },
1056
- {
1057
- path: "posts.richContent.nodes.galleryData.items.image.media.duration"
1058
- },
1059
- {
1060
- path: "posts.richContent.nodes.galleryData.items.video.media.duration"
1061
- },
1062
- {
1063
- path: "posts.richContent.nodes.galleryData.items.video.thumbnail.duration"
1064
- },
1065
- {
1066
- path: "posts.richContent.nodes.galleryData.options.item.ratio"
1067
- },
1068
- { path: "posts.richContent.nodes.imageData.image.duration" },
1069
- { path: "posts.richContent.nodes.imageData.crop.x" },
1070
- { path: "posts.richContent.nodes.imageData.crop.y" },
1071
- { path: "posts.richContent.nodes.imageData.crop.width" },
1072
- { path: "posts.richContent.nodes.imageData.crop.height" },
1073
- { path: "posts.richContent.nodes.mapData.mapSettings.lat" },
1074
- { path: "posts.richContent.nodes.mapData.mapSettings.lng" },
1075
- { path: "posts.richContent.nodes.pollData.poll.image.duration" },
1076
- {
1077
- path: "posts.richContent.nodes.pollData.poll.options.image.duration"
1078
- },
1079
- {
1080
- path: "posts.richContent.nodes.pollData.design.poll.background.image.duration"
1081
- },
1082
- { path: "posts.richContent.nodes.appEmbedData.image.duration" },
1083
- { path: "posts.richContent.nodes.videoData.video.duration" },
1084
- { path: "posts.richContent.nodes.videoData.thumbnail.duration" },
1085
- { path: "posts.richContent.nodes.audioData.audio.duration" },
1086
- { path: "posts.richContent.nodes.audioData.coverImage.duration" },
1087
- {
1088
- path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
1089
- },
1090
- {
1091
- path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1092
- },
1093
- {
1094
- path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1095
- },
1096
- {
1097
- path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1098
- },
1099
- {
1100
- path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
1101
- },
1102
- {
1103
- path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1104
- },
1105
- {
1106
- path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1107
- },
1108
- {
1109
- path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1110
- },
1111
- {
1112
- path: "posts.richContent.nodes.layoutData.background.gradient.centerX"
1113
- },
1114
- {
1115
- path: "posts.richContent.nodes.layoutData.background.gradient.centerY"
1116
- },
1117
- {
1118
- path: "posts.richContent.nodes.layoutData.background.gradient.stops.position"
1119
- },
1120
- {
1121
- path: "posts.richContent.nodes.layoutData.backdrop.gradient.centerX"
1122
- },
1123
- {
1124
- path: "posts.richContent.nodes.layoutData.backdrop.gradient.centerY"
1125
- },
1126
- {
1127
- path: "posts.richContent.nodes.layoutData.backdrop.gradient.stops.position"
1128
- },
1129
- { path: "posts.richContent.nodes.shapeData.shape.duration" },
1130
- {
1131
- path: "posts.richContent.nodes.cardData.background.gradient.centerX"
1132
- },
1133
- {
1134
- path: "posts.richContent.nodes.cardData.background.gradient.centerY"
1135
- },
1136
- {
1137
- path: "posts.richContent.nodes.cardData.background.gradient.stops.position"
1138
- },
1139
- {
1140
- path: "posts.richContent.nodes.cardData.backgroundImage.media.duration"
1141
- },
1142
- {
1143
- path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1144
- },
1145
- {
1146
- path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1147
- },
1148
- {
1149
- path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1150
- },
1151
- { path: "posts.richContent.nodes.tocData.fontSize" },
1152
- { path: "posts.richContent.nodes.tocData.itemSpacing" },
1153
- {
1154
- path: "posts.richContent.nodes.smartBlockCellData.shape.duration"
1155
- }
1156
- ]
1157
- }
1158
- ])
1159
- };
1160
- return metadata;
1161
- }
1162
- return __queryPosts;
1163
- }
1164
- function getPostMetrics(payload) {
1165
- function __getPostMetrics({ host }) {
1166
- const metadata = {
1167
- entityFqdn: "wix.blog.v3.post",
1168
- method: "GET",
1169
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics",
1170
- packageName: PACKAGE_NAME,
1171
- migrationOptions: {
1172
- optInTransformResponse: true
1173
- },
1174
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
1175
- protoPath: "/v3/posts/{postId}/metrics",
1176
- data: payload,
1177
- host
1178
- }),
1179
- params: (0, import_rest_modules.toURLSearchParams)(payload),
1180
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1181
- {
1182
- transformFn: import_float2.transformRESTFloatToSDKFloat,
1183
- paths: [{ path: "metrics.averageRating" }]
1184
- }
1185
- ])
1186
- };
1187
- return metadata;
1188
- }
1189
- return __getPostMetrics;
1190
- }
1191
-
1192
- // src/blog-v3-post-posts.universal.ts
1193
- var import_image = require("@wix/sdk-runtime/transformations/image");
1194
- var import_video_v2 = require("@wix/sdk-runtime/transformations/video-v2");
1195
- var import_page_url = require("@wix/sdk-runtime/transformations/page-url");
1196
- var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
1197
- var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
1198
- var NodeType = /* @__PURE__ */ ((NodeType2) => {
1199
- NodeType2["PARAGRAPH"] = "PARAGRAPH";
1200
- NodeType2["TEXT"] = "TEXT";
1201
- NodeType2["HEADING"] = "HEADING";
1202
- NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
1203
- NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
1204
- NodeType2["LIST_ITEM"] = "LIST_ITEM";
1205
- NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
1206
- NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
1207
- NodeType2["VIDEO"] = "VIDEO";
1208
- NodeType2["DIVIDER"] = "DIVIDER";
1209
- NodeType2["FILE"] = "FILE";
1210
- NodeType2["GALLERY"] = "GALLERY";
1211
- NodeType2["GIF"] = "GIF";
1212
- NodeType2["HTML"] = "HTML";
1213
- NodeType2["IMAGE"] = "IMAGE";
1214
- NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
1215
- NodeType2["MAP"] = "MAP";
1216
- NodeType2["POLL"] = "POLL";
1217
- NodeType2["APP_EMBED"] = "APP_EMBED";
1218
- NodeType2["BUTTON"] = "BUTTON";
1219
- NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
1220
- NodeType2["TABLE"] = "TABLE";
1221
- NodeType2["EMBED"] = "EMBED";
1222
- NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
1223
- NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
1224
- NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
1225
- NodeType2["TABLE_CELL"] = "TABLE_CELL";
1226
- NodeType2["TABLE_ROW"] = "TABLE_ROW";
1227
- NodeType2["EXTERNAL"] = "EXTERNAL";
1228
- NodeType2["AUDIO"] = "AUDIO";
1229
- NodeType2["CAPTION"] = "CAPTION";
1230
- NodeType2["LAYOUT"] = "LAYOUT";
1231
- NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
1232
- NodeType2["SHAPE"] = "SHAPE";
1233
- NodeType2["CARD"] = "CARD";
1234
- NodeType2["TOC"] = "TOC";
1235
- NodeType2["SMART_BLOCK"] = "SMART_BLOCK";
1236
- NodeType2["SMART_BLOCK_CELL"] = "SMART_BLOCK_CELL";
1237
- NodeType2["CHECKBOX_LIST"] = "CHECKBOX_LIST";
1238
- return NodeType2;
1239
- })(NodeType || {});
1240
- var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
1241
- BackgroundType2["COLOR"] = "COLOR";
1242
- BackgroundType2["GRADIENT"] = "GRADIENT";
1243
- return BackgroundType2;
1244
- })(BackgroundType || {});
1245
- var GradientType = /* @__PURE__ */ ((GradientType2) => {
1246
- GradientType2["LINEAR"] = "LINEAR";
1247
- GradientType2["RADIAL"] = "RADIAL";
1248
- return GradientType2;
1249
- })(GradientType || {});
1250
- var WidthType = /* @__PURE__ */ ((WidthType2) => {
1251
- WidthType2["CONTENT"] = "CONTENT";
1252
- WidthType2["SMALL"] = "SMALL";
1253
- WidthType2["ORIGINAL"] = "ORIGINAL";
1254
- WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
1255
- return WidthType2;
1256
- })(WidthType || {});
1257
- var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
1258
- PluginContainerDataAlignment2["CENTER"] = "CENTER";
1259
- PluginContainerDataAlignment2["LEFT"] = "LEFT";
1260
- PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
1261
- return PluginContainerDataAlignment2;
1262
- })(PluginContainerDataAlignment || {});
1263
- var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
1264
- ButtonDataType2["LINK"] = "LINK";
1265
- ButtonDataType2["ACTION"] = "ACTION";
1266
- return ButtonDataType2;
1267
- })(ButtonDataType || {});
1268
- var Target = /* @__PURE__ */ ((Target2) => {
1269
- Target2["SELF"] = "SELF";
1270
- Target2["BLANK"] = "BLANK";
1271
- Target2["PARENT"] = "PARENT";
1272
- Target2["TOP"] = "TOP";
1273
- return Target2;
1274
- })(Target || {});
1275
- var Type = /* @__PURE__ */ ((Type2) => {
1276
- Type2["VIEW"] = "VIEW";
1277
- Type2["POINTER"] = "POINTER";
1278
- return Type2;
1279
- })(Type || {});
1280
- var EntranceEffectType = /* @__PURE__ */ ((EntranceEffectType2) => {
1281
- EntranceEffectType2["FADE"] = "FADE";
1282
- EntranceEffectType2["ARC"] = "ARC";
1283
- EntranceEffectType2["BLUR"] = "BLUR";
1284
- EntranceEffectType2["BOUNCE"] = "BOUNCE";
1285
- EntranceEffectType2["DROP"] = "DROP";
1286
- EntranceEffectType2["EXPAND"] = "EXPAND";
1287
- EntranceEffectType2["FLIP"] = "FLIP";
1288
- EntranceEffectType2["FLOAT"] = "FLOAT";
1289
- EntranceEffectType2["FOLD"] = "FOLD";
1290
- EntranceEffectType2["GLIDE"] = "GLIDE";
1291
- EntranceEffectType2["REVEAL"] = "REVEAL";
1292
- EntranceEffectType2["SHAPE"] = "SHAPE";
1293
- EntranceEffectType2["SHUTTERS"] = "SHUTTERS";
1294
- EntranceEffectType2["SLIDE"] = "SLIDE";
1295
- EntranceEffectType2["SPIN"] = "SPIN";
1296
- EntranceEffectType2["TILT"] = "TILT";
1297
- EntranceEffectType2["TURN"] = "TURN";
1298
- EntranceEffectType2["WINK"] = "WINK";
1299
- return EntranceEffectType2;
1300
- })(EntranceEffectType || {});
1301
- var LoopEffectType = /* @__PURE__ */ ((LoopEffectType2) => {
1302
- LoopEffectType2["BOUNCE"] = "BOUNCE";
1303
- LoopEffectType2["BREATHE"] = "BREATHE";
1304
- LoopEffectType2["CROSS"] = "CROSS";
1305
- LoopEffectType2["FLASH"] = "FLASH";
1306
- LoopEffectType2["FLIP"] = "FLIP";
1307
- LoopEffectType2["FOLD"] = "FOLD";
1308
- LoopEffectType2["JELLO"] = "JELLO";
1309
- LoopEffectType2["POKE"] = "POKE";
1310
- LoopEffectType2["PULSE"] = "PULSE";
1311
- LoopEffectType2["RUBBER"] = "RUBBER";
1312
- LoopEffectType2["SPIN"] = "SPIN";
1313
- LoopEffectType2["SWING"] = "SWING";
1314
- LoopEffectType2["WIGGLE"] = "WIGGLE";
1315
- return LoopEffectType2;
1316
- })(LoopEffectType || {});
1317
- var PointerEffectType = /* @__PURE__ */ ((PointerEffectType2) => {
1318
- PointerEffectType2["AIRY"] = "AIRY";
1319
- PointerEffectType2["BLOB"] = "BLOB";
1320
- PointerEffectType2["BLUR"] = "BLUR";
1321
- PointerEffectType2["SCALE"] = "SCALE";
1322
- PointerEffectType2["SKEW"] = "SKEW";
1323
- PointerEffectType2["SWIVEL"] = "SWIVEL";
1324
- PointerEffectType2["TILT_3D"] = "TILT_3D";
1325
- PointerEffectType2["TRACK"] = "TRACK";
1326
- PointerEffectType2["TRACK_3D"] = "TRACK_3D";
1327
- return PointerEffectType2;
1328
- })(PointerEffectType || {});
1329
- var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
1330
- TextAlignment2["AUTO"] = "AUTO";
1331
- TextAlignment2["LEFT"] = "LEFT";
1332
- TextAlignment2["RIGHT"] = "RIGHT";
1333
- TextAlignment2["CENTER"] = "CENTER";
1334
- TextAlignment2["JUSTIFY"] = "JUSTIFY";
1335
- return TextAlignment2;
1336
- })(TextAlignment || {});
1337
- var LineCap = /* @__PURE__ */ ((LineCap2) => {
1338
- LineCap2["SQUARE"] = "SQUARE";
1339
- LineCap2["ROUND"] = "ROUND";
1340
- return LineCap2;
1341
- })(LineCap || {});
1342
- var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
1343
- LineStyle2["SINGLE"] = "SINGLE";
1344
- LineStyle2["DOUBLE"] = "DOUBLE";
1345
- LineStyle2["DASHED"] = "DASHED";
1346
- LineStyle2["DOTTED"] = "DOTTED";
1347
- return LineStyle2;
1348
- })(LineStyle || {});
1349
- var Width = /* @__PURE__ */ ((Width2) => {
1350
- Width2["LARGE"] = "LARGE";
1351
- Width2["MEDIUM"] = "MEDIUM";
1352
- Width2["SMALL"] = "SMALL";
1353
- return Width2;
1354
- })(Width || {});
1355
- var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
1356
- DividerDataAlignment2["CENTER"] = "CENTER";
1357
- DividerDataAlignment2["LEFT"] = "LEFT";
1358
- DividerDataAlignment2["RIGHT"] = "RIGHT";
1359
- return DividerDataAlignment2;
1360
- })(DividerDataAlignment || {});
1361
- var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
1362
- ViewMode2["NONE"] = "NONE";
1363
- ViewMode2["FULL"] = "FULL";
1364
- ViewMode2["MINI"] = "MINI";
1365
- return ViewMode2;
1366
- })(ViewMode || {});
1367
- var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
1368
- LayoutType2["COLLAGE"] = "COLLAGE";
1369
- LayoutType2["MASONRY"] = "MASONRY";
1370
- LayoutType2["GRID"] = "GRID";
1371
- LayoutType2["THUMBNAIL"] = "THUMBNAIL";
1372
- LayoutType2["SLIDER"] = "SLIDER";
1373
- LayoutType2["SLIDESHOW"] = "SLIDESHOW";
1374
- LayoutType2["PANORAMA"] = "PANORAMA";
1375
- LayoutType2["COLUMN"] = "COLUMN";
1376
- LayoutType2["MAGIC"] = "MAGIC";
1377
- LayoutType2["FULLSIZE"] = "FULLSIZE";
1378
- return LayoutType2;
1379
- })(LayoutType || {});
1380
- var Orientation = /* @__PURE__ */ ((Orientation2) => {
1381
- Orientation2["ROWS"] = "ROWS";
1382
- Orientation2["COLUMNS"] = "COLUMNS";
1383
- return Orientation2;
1384
- })(Orientation || {});
1385
- var Crop = /* @__PURE__ */ ((Crop2) => {
1386
- Crop2["FILL"] = "FILL";
1387
- Crop2["FIT"] = "FIT";
1388
- return Crop2;
1389
- })(Crop || {});
1390
- var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
1391
- ThumbnailsAlignment2["TOP"] = "TOP";
1392
- ThumbnailsAlignment2["RIGHT"] = "RIGHT";
1393
- ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
1394
- ThumbnailsAlignment2["LEFT"] = "LEFT";
1395
- ThumbnailsAlignment2["NONE"] = "NONE";
1396
- return ThumbnailsAlignment2;
1397
- })(ThumbnailsAlignment || {});
1398
- var GIFType = /* @__PURE__ */ ((GIFType2) => {
1399
- GIFType2["NORMAL"] = "NORMAL";
1400
- GIFType2["STICKER"] = "STICKER";
1401
- return GIFType2;
1402
- })(GIFType || {});
1403
- var Source = /* @__PURE__ */ ((Source2) => {
1404
- Source2["HTML"] = "HTML";
1405
- Source2["ADSENSE"] = "ADSENSE";
1406
- Source2["AI"] = "AI";
1407
- Source2["AI_WIDGET"] = "AI_WIDGET";
1408
- return Source2;
1409
- })(Source || {});
1410
- var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
1411
- StylesPosition2["START"] = "START";
1412
- StylesPosition2["END"] = "END";
1413
- StylesPosition2["TOP"] = "TOP";
1414
- StylesPosition2["HIDDEN"] = "HIDDEN";
1415
- return StylesPosition2;
1416
- })(StylesPosition || {});
1417
- var MapType = /* @__PURE__ */ ((MapType2) => {
1418
- MapType2["ROADMAP"] = "ROADMAP";
1419
- MapType2["SATELITE"] = "SATELITE";
1420
- MapType2["HYBRID"] = "HYBRID";
1421
- MapType2["TERRAIN"] = "TERRAIN";
1422
- return MapType2;
1423
- })(MapType || {});
1424
- var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
1425
- ViewRole2["CREATOR"] = "CREATOR";
1426
- ViewRole2["VOTERS"] = "VOTERS";
1427
- ViewRole2["EVERYONE"] = "EVERYONE";
1428
- return ViewRole2;
1429
- })(ViewRole || {});
1430
- var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
1431
- VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
1432
- VoteRole2["ALL"] = "ALL";
1433
- return VoteRole2;
1434
- })(VoteRole || {});
1435
- var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
1436
- PollLayoutType2["LIST"] = "LIST";
1437
- PollLayoutType2["GRID"] = "GRID";
1438
- return PollLayoutType2;
1439
- })(PollLayoutType || {});
1440
- var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
1441
- PollLayoutDirection2["LTR"] = "LTR";
1442
- PollLayoutDirection2["RTL"] = "RTL";
1443
- return PollLayoutDirection2;
1444
- })(PollLayoutDirection || {});
1445
- var PollDesignBackgroundType = /* @__PURE__ */ ((PollDesignBackgroundType2) => {
1446
- PollDesignBackgroundType2["COLOR"] = "COLOR";
1447
- PollDesignBackgroundType2["IMAGE"] = "IMAGE";
1448
- PollDesignBackgroundType2["GRADIENT"] = "GRADIENT";
1449
- return PollDesignBackgroundType2;
1450
- })(PollDesignBackgroundType || {});
1451
- var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
1452
- DecorationType2["BOLD"] = "BOLD";
1453
- DecorationType2["ITALIC"] = "ITALIC";
1454
- DecorationType2["UNDERLINE"] = "UNDERLINE";
1455
- DecorationType2["SPOILER"] = "SPOILER";
1456
- DecorationType2["ANCHOR"] = "ANCHOR";
1457
- DecorationType2["MENTION"] = "MENTION";
1458
- DecorationType2["LINK"] = "LINK";
1459
- DecorationType2["COLOR"] = "COLOR";
1460
- DecorationType2["FONT_SIZE"] = "FONT_SIZE";
1461
- DecorationType2["EXTERNAL"] = "EXTERNAL";
1462
- DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
1463
- DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
1464
- DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
1465
- DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
1466
- DecorationType2["SKETCH"] = "SKETCH";
1467
- return DecorationType2;
1468
- })(DecorationType || {});
1469
- var FontType = /* @__PURE__ */ ((FontType2) => {
1470
- FontType2["PX"] = "PX";
1471
- FontType2["EM"] = "EM";
1472
- return FontType2;
1473
- })(FontType || {});
1474
- var Variant = /* @__PURE__ */ ((Variant2) => {
1475
- Variant2["UNDERLINE"] = "UNDERLINE";
1476
- Variant2["BOX"] = "BOX";
1477
- Variant2["CIRCLE"] = "CIRCLE";
1478
- Variant2["HIGHLIGHT"] = "HIGHLIGHT";
1479
- Variant2["STRIKETHROUGH"] = "STRIKETHROUGH";
1480
- Variant2["CROSSED_OFF"] = "CROSSED_OFF";
1481
- return Variant2;
1482
- })(Variant || {});
1483
- var Position = /* @__PURE__ */ ((Position2) => {
1484
- Position2["START"] = "START";
1485
- Position2["END"] = "END";
1486
- Position2["TOP"] = "TOP";
1487
- return Position2;
1488
- })(Position || {});
1489
- var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
1490
- AspectRatio2["SQUARE"] = "SQUARE";
1491
- AspectRatio2["RECTANGLE"] = "RECTANGLE";
1492
- return AspectRatio2;
1493
- })(AspectRatio || {});
1494
- var Resizing = /* @__PURE__ */ ((Resizing2) => {
1495
- Resizing2["FILL"] = "FILL";
1496
- Resizing2["FIT"] = "FIT";
1497
- return Resizing2;
1498
- })(Resizing || {});
1499
- var Placement = /* @__PURE__ */ ((Placement2) => {
1500
- Placement2["IMAGE"] = "IMAGE";
1501
- Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
1502
- return Placement2;
1503
- })(Placement || {});
1504
- var CardStylesType = /* @__PURE__ */ ((CardStylesType2) => {
1505
- CardStylesType2["CONTAINED"] = "CONTAINED";
1506
- CardStylesType2["FRAMELESS"] = "FRAMELESS";
1507
- return CardStylesType2;
1508
- })(CardStylesType || {});
1509
- var Alignment = /* @__PURE__ */ ((Alignment2) => {
1510
- Alignment2["START"] = "START";
1511
- Alignment2["CENTER"] = "CENTER";
1512
- Alignment2["END"] = "END";
1513
- return Alignment2;
1514
- })(Alignment || {});
1515
- var Layout = /* @__PURE__ */ ((Layout2) => {
1516
- Layout2["STACKED"] = "STACKED";
1517
- Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
1518
- return Layout2;
1519
- })(Layout || {});
1520
- var AppType = /* @__PURE__ */ ((AppType2) => {
1521
- AppType2["PRODUCT"] = "PRODUCT";
1522
- AppType2["EVENT"] = "EVENT";
1523
- AppType2["BOOKING"] = "BOOKING";
1524
- return AppType2;
1525
- })(AppType || {});
1526
- var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
1527
- InitialExpandedItems2["FIRST"] = "FIRST";
1528
- InitialExpandedItems2["ALL"] = "ALL";
1529
- InitialExpandedItems2["NONE"] = "NONE";
1530
- return InitialExpandedItems2;
1531
- })(InitialExpandedItems || {});
1532
- var Direction = /* @__PURE__ */ ((Direction2) => {
1533
- Direction2["LTR"] = "LTR";
1534
- Direction2["RTL"] = "RTL";
1535
- return Direction2;
1536
- })(Direction || {});
1537
- var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
1538
- VerticalAlignment2["TOP"] = "TOP";
1539
- VerticalAlignment2["MIDDLE"] = "MIDDLE";
1540
- VerticalAlignment2["BOTTOM"] = "BOTTOM";
1541
- return VerticalAlignment2;
1542
- })(VerticalAlignment || {});
1543
- var NullValue = /* @__PURE__ */ ((NullValue2) => {
1544
- NullValue2["NULL_VALUE"] = "NULL_VALUE";
1545
- return NullValue2;
1546
- })(NullValue || {});
1547
- var ImageScalingScaling = /* @__PURE__ */ ((ImageScalingScaling2) => {
1548
- ImageScalingScaling2["AUTO"] = "AUTO";
1549
- ImageScalingScaling2["CONTAIN"] = "CONTAIN";
1550
- ImageScalingScaling2["COVER"] = "COVER";
1551
- return ImageScalingScaling2;
1552
- })(ImageScalingScaling || {});
1553
- var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
1554
- ImagePosition2["CENTER"] = "CENTER";
1555
- ImagePosition2["CENTER_LEFT"] = "CENTER_LEFT";
1556
- ImagePosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
1557
- ImagePosition2["TOP"] = "TOP";
1558
- ImagePosition2["TOP_LEFT"] = "TOP_LEFT";
1559
- ImagePosition2["TOP_RIGHT"] = "TOP_RIGHT";
1560
- ImagePosition2["BOTTOM"] = "BOTTOM";
1561
- ImagePosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
1562
- ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
1563
- return ImagePosition2;
1564
- })(ImagePosition || {});
1565
- var LayoutDataBackgroundType = /* @__PURE__ */ ((LayoutDataBackgroundType2) => {
1566
- LayoutDataBackgroundType2["COLOR"] = "COLOR";
1567
- LayoutDataBackgroundType2["GRADIENT"] = "GRADIENT";
1568
- return LayoutDataBackgroundType2;
1569
- })(LayoutDataBackgroundType || {});
1570
- var Origin = /* @__PURE__ */ ((Origin2) => {
1571
- Origin2["IMAGE"] = "IMAGE";
1572
- Origin2["LAYOUT"] = "LAYOUT";
1573
- return Origin2;
1574
- })(Origin || {});
1575
- var BannerPosition = /* @__PURE__ */ ((BannerPosition2) => {
1576
- BannerPosition2["TOP"] = "TOP";
1577
- BannerPosition2["BOTTOM"] = "BOTTOM";
1578
- return BannerPosition2;
1579
- })(BannerPosition || {});
1580
- var LayerEffect = /* @__PURE__ */ ((LayerEffect2) => {
1581
- LayerEffect2["CENTER"] = "CENTER";
1582
- LayerEffect2["FADE_TO_TOP"] = "FADE_TO_TOP";
1583
- LayerEffect2["FADE_TO_BOTTOM"] = "FADE_TO_BOTTOM";
1584
- return LayerEffect2;
1585
- })(LayerEffect || {});
1586
- var Shape = /* @__PURE__ */ ((Shape2) => {
1587
- Shape2["ELLIPSE"] = "ELLIPSE";
1588
- Shape2["TILT"] = "TILT";
1589
- Shape2["LIQUID"] = "LIQUID";
1590
- Shape2["LEFT_WAVE"] = "LEFT_WAVE";
1591
- Shape2["PAINT_SCRIBBLE"] = "PAINT_SCRIBBLE";
1592
- Shape2["INVERTED_ELLIPSE"] = "INVERTED_ELLIPSE";
1593
- Shape2["RIGHT_WAVE"] = "RIGHT_WAVE";
1594
- Shape2["DUNES"] = "DUNES";
1595
- Shape2["WAVES"] = "WAVES";
1596
- Shape2["TRIANGLE"] = "TRIANGLE";
1597
- Shape2["SEMI_ELLIPSE"] = "SEMI_ELLIPSE";
1598
- Shape2["PLANTS"] = "PLANTS";
1599
- Shape2["LAYERED_ELLIPSE"] = "LAYERED_ELLIPSE";
1600
- Shape2["PIXELS"] = "PIXELS";
1601
- Shape2["PAINT"] = "PAINT";
1602
- Shape2["CLOUDS"] = "CLOUDS";
1603
- Shape2["OPTICAL_ILLUSION"] = "OPTICAL_ILLUSION";
1604
- Shape2["STRIPES"] = "STRIPES";
1605
- Shape2["BLOBS"] = "BLOBS";
1606
- Shape2["SEMI_CIRCLES"] = "SEMI_CIRCLES";
1607
- Shape2["HILL"] = "HILL";
1608
- Shape2["BRUSH"] = "BRUSH";
1609
- Shape2["PEAKS"] = "PEAKS";
1610
- Shape2["ANGLED_TRIANGLE"] = "ANGLED_TRIANGLE";
1611
- return Shape2;
1612
- })(Shape || {});
1613
- var BackdropType = /* @__PURE__ */ ((BackdropType2) => {
1614
- BackdropType2["COLOR"] = "COLOR";
1615
- BackdropType2["GRADIENT"] = "GRADIENT";
1616
- return BackdropType2;
1617
- })(BackdropType || {});
1618
- var VerticalAlignmentAlignment = /* @__PURE__ */ ((VerticalAlignmentAlignment2) => {
1619
- VerticalAlignmentAlignment2["TOP"] = "TOP";
1620
- VerticalAlignmentAlignment2["MIDDLE"] = "MIDDLE";
1621
- VerticalAlignmentAlignment2["BOTTOM"] = "BOTTOM";
1622
- return VerticalAlignmentAlignment2;
1623
- })(VerticalAlignmentAlignment || {});
1624
- var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
1625
- ResponsivenessBehaviour2["STACK"] = "STACK";
1626
- ResponsivenessBehaviour2["WRAP"] = "WRAP";
1627
- return ResponsivenessBehaviour2;
1628
- })(ResponsivenessBehaviour || {});
1629
- var DesignTarget = /* @__PURE__ */ ((DesignTarget2) => {
1630
- DesignTarget2["LAYOUT"] = "LAYOUT";
1631
- DesignTarget2["CELL"] = "CELL";
1632
- return DesignTarget2;
1633
- })(DesignTarget || {});
1634
- var Scaling = /* @__PURE__ */ ((Scaling2) => {
1635
- Scaling2["AUTO"] = "AUTO";
1636
- Scaling2["CONTAIN"] = "CONTAIN";
1637
- Scaling2["COVER"] = "COVER";
1638
- return Scaling2;
1639
- })(Scaling || {});
1640
- var ImagePositionPosition = /* @__PURE__ */ ((ImagePositionPosition2) => {
1641
- ImagePositionPosition2["CENTER"] = "CENTER";
1642
- ImagePositionPosition2["CENTER_LEFT"] = "CENTER_LEFT";
1643
- ImagePositionPosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
1644
- ImagePositionPosition2["TOP"] = "TOP";
1645
- ImagePositionPosition2["TOP_LEFT"] = "TOP_LEFT";
1646
- ImagePositionPosition2["TOP_RIGHT"] = "TOP_RIGHT";
1647
- ImagePositionPosition2["BOTTOM"] = "BOTTOM";
1648
- ImagePositionPosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
1649
- ImagePositionPosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
1650
- return ImagePositionPosition2;
1651
- })(ImagePositionPosition || {});
1652
- var CardDataBackgroundType = /* @__PURE__ */ ((CardDataBackgroundType2) => {
1653
- CardDataBackgroundType2["COLOR"] = "COLOR";
1654
- CardDataBackgroundType2["GRADIENT"] = "GRADIENT";
1655
- return CardDataBackgroundType2;
1656
- })(CardDataBackgroundType || {});
1657
- var ListStyle = /* @__PURE__ */ ((ListStyle2) => {
1658
- ListStyle2["PLAIN"] = "PLAIN";
1659
- ListStyle2["NUMBERED"] = "NUMBERED";
1660
- ListStyle2["LETTERS"] = "LETTERS";
1661
- ListStyle2["ROMAN"] = "ROMAN";
1662
- ListStyle2["BULLETED"] = "BULLETED";
1663
- ListStyle2["ALPHABETICAL_INDEX"] = "ALPHABETICAL_INDEX";
1664
- ListStyle2["ALPHABETICAL_INDEX_COMPACT"] = "ALPHABETICAL_INDEX_COMPACT";
1665
- return ListStyle2;
1666
- })(ListStyle || {});
1667
- var Indentation = /* @__PURE__ */ ((Indentation2) => {
1668
- Indentation2["NESTED"] = "NESTED";
1669
- Indentation2["FLAT"] = "FLAT";
1670
- return Indentation2;
1671
- })(Indentation || {});
1672
- var SmartBlockDataType = /* @__PURE__ */ ((SmartBlockDataType2) => {
1673
- SmartBlockDataType2["SOLID_BOXES"] = "SOLID_BOXES";
1674
- SmartBlockDataType2["NUMBERED_BOXES"] = "NUMBERED_BOXES";
1675
- SmartBlockDataType2["STATS"] = "STATS";
1676
- SmartBlockDataType2["CIRCLE_STATS"] = "CIRCLE_STATS";
1677
- SmartBlockDataType2["SOLID_BOXES_ALTERNATING"] = "SOLID_BOXES_ALTERNATING";
1678
- SmartBlockDataType2["SOLID_JOINED_BOXES"] = "SOLID_JOINED_BOXES";
1679
- SmartBlockDataType2["SIDE_LINE_TEXT"] = "SIDE_LINE_TEXT";
1680
- SmartBlockDataType2["TOP_LINE_TEXT"] = "TOP_LINE_TEXT";
1681
- SmartBlockDataType2["OUTLINE_BOXES_WITH_TOP_CIRCLE"] = "OUTLINE_BOXES_WITH_TOP_CIRCLE";
1682
- SmartBlockDataType2["BIG_BULLETS"] = "BIG_BULLETS";
1683
- SmartBlockDataType2["SMALL_BULLETS"] = "SMALL_BULLETS";
1684
- SmartBlockDataType2["ARROW_BULLETS"] = "ARROW_BULLETS";
1685
- SmartBlockDataType2["PROCESS_STEPS"] = "PROCESS_STEPS";
1686
- SmartBlockDataType2["BAR_STATS"] = "BAR_STATS";
1687
- SmartBlockDataType2["TIMELINE"] = "TIMELINE";
1688
- SmartBlockDataType2["MINIMAL_TIMELINE"] = "MINIMAL_TIMELINE";
1689
- SmartBlockDataType2["PILLS"] = "PILLS";
1690
- SmartBlockDataType2["STAR_RATING"] = "STAR_RATING";
1691
- SmartBlockDataType2["QUOTE_BOXES"] = "QUOTE_BOXES";
1692
- SmartBlockDataType2["CIRCLE"] = "CIRCLE";
1693
- SmartBlockDataType2["PYRAMID"] = "PYRAMID";
1694
- SmartBlockDataType2["STAIRCASE"] = "STAIRCASE";
1695
- SmartBlockDataType2["VERTICAL_FUNNEL"] = "VERTICAL_FUNNEL";
1696
- return SmartBlockDataType2;
1697
- })(SmartBlockDataType || {});
1698
- var ColumnSize = /* @__PURE__ */ ((ColumnSize2) => {
1699
- ColumnSize2["SMALL"] = "SMALL";
1700
- ColumnSize2["MEDIUM"] = "MEDIUM";
1701
- ColumnSize2["LARGE"] = "LARGE";
1702
- ColumnSize2["EXTRA_LARGE"] = "EXTRA_LARGE";
1703
- return ColumnSize2;
1704
- })(ColumnSize || {});
1705
- var Status = /* @__PURE__ */ ((Status2) => {
1706
- Status2["UNKNOWN"] = "UNKNOWN";
1707
- Status2["APPROVED"] = "APPROVED";
1708
- Status2["REJECTED"] = "REJECTED";
1709
- return Status2;
1710
- })(Status || {});
1711
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1712
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1713
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1714
- WebhookIdentityType2["MEMBER"] = "MEMBER";
1715
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1716
- WebhookIdentityType2["APP"] = "APP";
1717
- return WebhookIdentityType2;
1718
- })(WebhookIdentityType || {});
1719
- var QueryPublicationsCountStatsRequestOrder = /* @__PURE__ */ ((QueryPublicationsCountStatsRequestOrder2) => {
1720
- QueryPublicationsCountStatsRequestOrder2["UNKNOWN"] = "UNKNOWN";
1721
- QueryPublicationsCountStatsRequestOrder2["OLDEST"] = "OLDEST";
1722
- QueryPublicationsCountStatsRequestOrder2["NEWEST"] = "NEWEST";
1723
- return QueryPublicationsCountStatsRequestOrder2;
1724
- })(QueryPublicationsCountStatsRequestOrder || {});
1725
- var Order = /* @__PURE__ */ ((Order2) => {
1726
- Order2["UNKNOWN"] = "UNKNOWN";
1727
- Order2["OLDEST"] = "OLDEST";
1728
- Order2["NEWEST"] = "NEWEST";
1729
- return Order2;
1730
- })(Order || {});
1731
- var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
1732
- GetPostsSort2["FEED"] = "FEED";
1733
- GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
1734
- GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
1735
- GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
1736
- GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
1737
- GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
1738
- GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
1739
- GetPostsSort2["RATING"] = "RATING";
1740
- return GetPostsSort2;
1741
- })(GetPostsSort || {});
1742
- var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
1743
- PostFieldField2["UNKNOWN"] = "UNKNOWN";
1744
- PostFieldField2["COUNTERS"] = "COUNTERS";
1745
- PostFieldField2["URL"] = "URL";
1746
- PostFieldField2["CONTENT_TEXT"] = "CONTENT_TEXT";
1747
- PostFieldField2["METRICS"] = "METRICS";
1748
- PostFieldField2["SEO"] = "SEO";
1749
- PostFieldField2["CONTENT"] = "CONTENT";
1750
- PostFieldField2["INTERNAL_ID"] = "INTERNAL_ID";
1751
- PostFieldField2["CONTACT_ID"] = "CONTACT_ID";
1752
- PostFieldField2["RICH_CONTENT"] = "RICH_CONTENT";
1753
- PostFieldField2["RICH_CONTENT_STRING"] = "RICH_CONTENT_STRING";
1754
- PostFieldField2["RICH_CONTENT_COMPRESSED"] = "RICH_CONTENT_COMPRESSED";
1755
- PostFieldField2["TRANSLATIONS"] = "TRANSLATIONS";
1756
- PostFieldField2["REFERENCE_ID"] = "REFERENCE_ID";
1757
- PostFieldField2["EXCLUDE_PAID_CONTENT"] = "EXCLUDE_PAID_CONTENT";
1758
- PostFieldField2["SEO_DATA"] = "SEO_DATA";
1759
- PostFieldField2["OWNER"] = "OWNER";
1760
- PostFieldField2["HAS_UNPUBLISHED_CHANGES"] = "HAS_UNPUBLISHED_CHANGES";
1761
- PostFieldField2["HEADING"] = "HEADING";
1762
- PostFieldField2["IMAGE"] = "IMAGE";
1763
- return PostFieldField2;
1764
- })(PostFieldField || {});
1765
- var Field = /* @__PURE__ */ ((Field2) => {
1766
- Field2["UNKNOWN"] = "UNKNOWN";
1767
- Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
1768
- Field2["LIKE_COUNT"] = "LIKE_COUNT";
1769
- Field2["VIEW_COUNT"] = "VIEW_COUNT";
1770
- Field2["RATING_COUNT"] = "RATING_COUNT";
1771
- return Field2;
1772
- })(Field || {});
1773
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1774
- SortOrder2["ASC"] = "ASC";
1775
- SortOrder2["DESC"] = "DESC";
1776
- return SortOrder2;
1777
- })(SortOrder || {});
1778
- async function queryPostCountStats2(options) {
1779
- const { httpClient, sideEffects } = arguments[1];
1780
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1781
- {
1782
- rangeStart: options?.rangeStart,
1783
- order: options?.order,
1784
- months: options?.months,
1785
- language: options?.language,
1786
- timeZone: options?.timeZone
1787
- },
1788
- []
1789
- );
1790
- const reqOpts = queryPostCountStats(payload);
1791
- sideEffects?.onSiteCall?.();
1792
- try {
1793
- const result = await httpClient.request(reqOpts);
1794
- sideEffects?.onSuccess?.(result);
1795
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
1796
- } catch (err) {
1797
- const transformedError = (0, import_transform_error.transformError)(
1798
- err,
1799
- {
1800
- spreadPathsToArguments: {},
1801
- explicitPathsToArguments: {
1802
- rangeStart: "$[0].rangeStart",
1803
- order: "$[0].order",
1804
- months: "$[0].months",
1805
- language: "$[0].language",
1806
- timeZone: "$[0].timeZone"
1807
- },
1808
- singleArgumentUnchanged: false
1809
- },
1810
- ["options"]
1811
- );
1812
- sideEffects?.onError?.(err);
1813
- throw transformedError;
1814
- }
1815
- }
1816
- async function getTotalPosts2(options) {
1817
- const { httpClient, sideEffects } = arguments[1];
1818
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1819
- { language: options?.language },
1820
- []
1821
- );
1822
- const reqOpts = getTotalPosts(payload);
1823
- sideEffects?.onSiteCall?.();
1824
- try {
1825
- const result = await httpClient.request(reqOpts);
1826
- sideEffects?.onSuccess?.(result);
1827
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
1828
- } catch (err) {
1829
- const transformedError = (0, import_transform_error.transformError)(
1830
- err,
1831
- {
1832
- spreadPathsToArguments: {},
1833
- explicitPathsToArguments: { language: "$[0].language" },
1834
- singleArgumentUnchanged: false
1835
- },
1836
- ["options"]
1837
- );
1838
- sideEffects?.onError?.(err);
1839
- throw transformedError;
1840
- }
1841
- }
1842
- async function getPost2(postId, options) {
1843
- const { httpClient, sideEffects } = arguments[2];
1844
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1845
- { postId, fieldsets: options?.fieldsets },
1846
- []
1847
- );
1848
- const reqOpts = getPost(payload);
1849
- sideEffects?.onSiteCall?.();
1850
- try {
1851
- const result = await httpClient.request(reqOpts);
1852
- sideEffects?.onSuccess?.(result);
1853
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1854
- (0, import_transform_paths2.transformPaths)(result.data, [
1855
- {
1856
- transformFn: import_page_url.transformRESTPageURLToSDKPageURL,
1857
- paths: [{ path: "post.url" }, { path: "post.translations.url" }]
1858
- },
1859
- {
1860
- transformFn: import_image.transformRESTImageToSDKImage,
1861
- paths: [
1862
- { path: "post.heroImage" },
1863
- { path: "post.media.wixMedia.image" }
1864
- ]
1865
- },
1866
- {
1867
- transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
1868
- paths: [{ path: "post.media.wixMedia.videoV2" }]
1869
- }
1870
- ]),
1871
- ["post.richContent", "post.rich_content"]
1872
- );
1873
- } catch (err) {
1874
- const transformedError = (0, import_transform_error.transformError)(
1875
- err,
1876
- {
1877
- spreadPathsToArguments: {},
1878
- explicitPathsToArguments: {
1879
- postId: "$[0]",
1880
- fieldsets: "$[1].fieldsets"
1881
- },
1882
- singleArgumentUnchanged: false
1883
- },
1884
- ["postId", "options"]
1885
- );
1886
- sideEffects?.onError?.(err);
1887
- throw transformedError;
1888
- }
1889
- }
1890
- async function getPostBySlug2(slug, options) {
1891
- const { httpClient, sideEffects } = arguments[2];
1892
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1893
- { slug, fieldsets: options?.fieldsets, language: options?.language },
1894
- []
1895
- );
1896
- const reqOpts = getPostBySlug(payload);
1897
- sideEffects?.onSiteCall?.();
1898
- try {
1899
- const result = await httpClient.request(reqOpts);
1900
- sideEffects?.onSuccess?.(result);
1901
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1902
- (0, import_transform_paths2.transformPaths)(result.data, [
1903
- {
1904
- transformFn: import_page_url.transformRESTPageURLToSDKPageURL,
1905
- paths: [{ path: "post.url" }, { path: "post.translations.url" }]
1906
- },
1907
- {
1908
- transformFn: import_image.transformRESTImageToSDKImage,
1909
- paths: [
1910
- { path: "post.heroImage" },
1911
- { path: "post.media.wixMedia.image" }
1912
- ]
1913
- },
1914
- {
1915
- transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
1916
- paths: [{ path: "post.media.wixMedia.videoV2" }]
1917
- }
1918
- ]),
1919
- ["post.richContent", "post.rich_content"]
1920
- );
1921
- } catch (err) {
1922
- const transformedError = (0, import_transform_error.transformError)(
1923
- err,
1924
- {
1925
- spreadPathsToArguments: {},
1926
- explicitPathsToArguments: {
1927
- slug: "$[0]",
1928
- fieldsets: "$[1].fieldsets",
1929
- language: "$[1].language"
1930
- },
1931
- singleArgumentUnchanged: false
1932
- },
1933
- ["slug", "options"]
1934
- );
1935
- sideEffects?.onError?.(err);
1936
- throw transformedError;
1937
- }
1938
- }
1939
- async function listPosts2(options) {
1940
- const { httpClient, sideEffects } = arguments[1];
1941
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1942
- {
1943
- featured: options?.featured,
1944
- hashtags: options?.hashtags,
1945
- categoryIds: options?.categoryIds,
1946
- tagIds: options?.tagIds,
1947
- sort: options?.sort,
1948
- paging: options?.paging,
1949
- language: options?.language,
1950
- memberId: options?.memberId,
1951
- fieldsets: options?.fieldsets
1952
- },
1953
- []
1954
- );
1955
- const reqOpts = listPosts(payload);
1956
- sideEffects?.onSiteCall?.();
1957
- try {
1958
- const result = await httpClient.request(reqOpts);
1959
- sideEffects?.onSuccess?.(result);
1960
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1961
- (0, import_transform_paths2.transformPaths)(result.data, [
1962
- {
1963
- transformFn: import_page_url.transformRESTPageURLToSDKPageURL,
1964
- paths: [{ path: "posts.url" }, { path: "posts.translations.url" }]
1965
- },
1966
- {
1967
- transformFn: import_image.transformRESTImageToSDKImage,
1968
- paths: [
1969
- { path: "posts.heroImage" },
1970
- { path: "posts.media.wixMedia.image" }
1971
- ]
1972
- },
1973
- {
1974
- transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
1975
- paths: [{ path: "posts.media.wixMedia.videoV2" }]
1976
- }
1977
- ]),
1978
- ["posts.richContent", "posts.rich_content"]
1979
- );
1980
- } catch (err) {
1981
- const transformedError = (0, import_transform_error.transformError)(
1982
- err,
1983
- {
1984
- spreadPathsToArguments: {},
1985
- explicitPathsToArguments: {
1986
- featured: "$[0].featured",
1987
- hashtags: "$[0].hashtags",
1988
- categoryIds: "$[0].categoryIds",
1989
- tagIds: "$[0].tagIds",
1990
- sort: "$[0].sort",
1991
- paging: "$[0].paging",
1992
- language: "$[0].language",
1993
- memberId: "$[0].memberId",
1994
- fieldsets: "$[0].fieldsets"
1995
- },
1996
- singleArgumentUnchanged: false
1997
- },
1998
- ["options"]
1999
- );
2000
- sideEffects?.onError?.(err);
2001
- throw transformedError;
2002
- }
2003
- }
2004
- function queryPosts2(options) {
2005
- const { httpClient, sideEffects } = arguments[1];
2006
- return (0, import_query_builder.queryBuilder)({
2007
- func: async (payload) => {
2008
- const reqOpts = queryPosts({
2009
- ...payload,
2010
- ...options ?? {}
2011
- });
2012
- sideEffects?.onSiteCall?.();
2013
- try {
2014
- const result = await httpClient.request(reqOpts);
2015
- sideEffects?.onSuccess?.(result);
2016
- return result;
2017
- } catch (err) {
2018
- sideEffects?.onError?.(err);
2019
- throw err;
2020
- }
2021
- },
2022
- requestTransformer: (query) => {
2023
- const args = [query, options];
2024
- return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2025
- { ...args?.[1], query: args?.[0] },
2026
- []
2027
- );
2028
- },
2029
- responseTransformer: ({ data }) => {
2030
- const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2031
- (0, import_transform_paths2.transformPaths)(data, [
2032
- {
2033
- transformFn: import_page_url.transformRESTPageURLToSDKPageURL,
2034
- paths: [{ path: "posts.url" }, { path: "posts.translations.url" }]
2035
- },
2036
- {
2037
- transformFn: import_image.transformRESTImageToSDKImage,
2038
- paths: [
2039
- { path: "posts.heroImage" },
2040
- { path: "posts.media.wixMedia.image" }
2041
- ]
2042
- },
2043
- {
2044
- transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
2045
- paths: [{ path: "posts.media.wixMedia.videoV2" }]
2046
- }
2047
- ]),
2048
- ["posts.richContent", "posts.rich_content"]
2049
- );
2050
- return {
2051
- items: transformedData?.posts,
2052
- pagingMetadata: transformedData?.pagingMetadata
2053
- };
2054
- },
2055
- errorTransformer: (err) => {
2056
- const transformedError = (0, import_transform_error.transformError)(err, {
2057
- spreadPathsToArguments: {},
2058
- explicitPathsToArguments: { query: "$[0]" },
2059
- singleArgumentUnchanged: false
2060
- });
2061
- throw transformedError;
2062
- },
2063
- pagingMethod: "CURSOR",
2064
- transformationPaths: {}
2065
- });
2066
- }
2067
- async function typedQueryPosts(query, options) {
2068
- const { httpClient, sideEffects } = arguments[2];
2069
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2070
- { query, ...options },
2071
- []
2072
- );
2073
- const reqOpts = queryPosts(payload);
2074
- sideEffects?.onSiteCall?.();
2075
- try {
2076
- const result = await httpClient.request(reqOpts);
2077
- sideEffects?.onSuccess?.(result);
2078
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2079
- (0, import_transform_paths2.transformPaths)(result.data, [
2080
- {
2081
- transformFn: import_page_url.transformRESTPageURLToSDKPageURL,
2082
- paths: [{ path: "posts.url" }, { path: "posts.translations.url" }]
2083
- },
2084
- {
2085
- transformFn: import_image.transformRESTImageToSDKImage,
2086
- paths: [
2087
- { path: "posts.heroImage" },
2088
- { path: "posts.media.wixMedia.image" }
2089
- ]
2090
- },
2091
- {
2092
- transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
2093
- paths: [{ path: "posts.media.wixMedia.videoV2" }]
2094
- }
2095
- ]),
2096
- ["posts.richContent", "posts.rich_content"]
2097
- );
2098
- } catch (err) {
2099
- const transformedError = (0, import_transform_error.transformError)(
2100
- err,
2101
- {
2102
- spreadPathsToArguments: {},
2103
- explicitPathsToArguments: { query: "$[0]" },
2104
- singleArgumentUnchanged: false
2105
- },
2106
- ["query", "options"]
2107
- );
2108
- sideEffects?.onError?.(err);
2109
- throw transformedError;
2110
- }
2111
- }
2112
- var utils = {
2113
- query: /* @__PURE__ */ (0, import_query_builder_utils.createQueryUtils)()
2114
- };
2115
- async function getPostMetrics2(postId) {
2116
- const { httpClient, sideEffects } = arguments[1];
2117
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ postId }, []);
2118
- const reqOpts = getPostMetrics(payload);
2119
- sideEffects?.onSiteCall?.();
2120
- try {
2121
- const result = await httpClient.request(reqOpts);
2122
- sideEffects?.onSuccess?.(result);
2123
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
2124
- } catch (err) {
2125
- const transformedError = (0, import_transform_error.transformError)(
2126
- err,
2127
- {
2128
- spreadPathsToArguments: {},
2129
- explicitPathsToArguments: { postId: "$[0]" },
2130
- singleArgumentUnchanged: false
2131
- },
2132
- ["postId"]
2133
- );
2134
- sideEffects?.onError?.(err);
2135
- throw transformedError;
2136
- }
2137
- }
2138
- // Annotate the CommonJS export names for ESM import in node:
2139
- 0 && (module.exports = {
2140
- Alignment,
2141
- AppType,
2142
- AspectRatio,
2143
- BackdropType,
2144
- BackgroundType,
2145
- BannerPosition,
2146
- ButtonDataType,
2147
- CardDataBackgroundType,
2148
- CardStylesType,
2149
- ColumnSize,
2150
- Crop,
2151
- DecorationType,
2152
- DesignTarget,
2153
- Direction,
2154
- DividerDataAlignment,
2155
- EntranceEffectType,
2156
- Field,
2157
- FontType,
2158
- GIFType,
2159
- GetPostsSort,
2160
- GradientType,
2161
- ImagePosition,
2162
- ImagePositionPosition,
2163
- ImageScalingScaling,
2164
- Indentation,
2165
- InitialExpandedItems,
2166
- LayerEffect,
2167
- Layout,
2168
- LayoutDataBackgroundType,
2169
- LayoutType,
2170
- LineCap,
2171
- LineStyle,
2172
- ListStyle,
2173
- LoopEffectType,
2174
- MapType,
2175
- NodeType,
2176
- NullValue,
2177
- Order,
2178
- Orientation,
2179
- Origin,
2180
- Placement,
2181
- PluginContainerDataAlignment,
2182
- PointerEffectType,
2183
- PollDesignBackgroundType,
2184
- PollLayoutDirection,
2185
- PollLayoutType,
2186
- Position,
2187
- PostFieldField,
2188
- QueryPublicationsCountStatsRequestOrder,
2189
- Resizing,
2190
- ResponsivenessBehaviour,
2191
- Scaling,
2192
- Shape,
2193
- SmartBlockDataType,
2194
- SortOrder,
2195
- Source,
2196
- Status,
2197
- StylesPosition,
2198
- Target,
2199
- TextAlignment,
2200
- ThumbnailsAlignment,
2201
- Type,
2202
- Variant,
2203
- VerticalAlignment,
2204
- VerticalAlignmentAlignment,
2205
- ViewMode,
2206
- ViewRole,
2207
- VoteRole,
2208
- WebhookIdentityType,
2209
- Width,
2210
- WidthType,
2211
- getPost,
2212
- getPostBySlug,
2213
- getPostMetrics,
2214
- getTotalPosts,
2215
- listPosts,
2216
- queryPostCountStats,
2217
- queryPosts,
2218
- typedQueryPosts,
2219
- utils
2220
- });
2221
- //# sourceMappingURL=index.typings.js.map