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