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