@wix/auto_sdk_blog_posts 1.0.178 → 1.0.180

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