@wix/auto_sdk_blog_posts 1.0.189 → 1.0.191

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.
@@ -15,6 +15,605 @@ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transform
15
15
  import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
16
16
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
17
17
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
18
+ var TRANSFORM_PATHS_0 = [{ path: "rangeStart" }, { path: "rangeEnd" }];
19
+ var TRANSFORM_PATHS_1 = [{ path: "stats.periodStart" }];
20
+ var TRANSFORM_PATHS_2 = [
21
+ { path: "post.firstPublishedDate" },
22
+ { path: "post.lastPublishedDate" },
23
+ { path: "post.heroImage.urlExpirationDate" },
24
+ { path: "post.richContent.metadata.createdTimestamp" },
25
+ { path: "post.richContent.metadata.updatedTimestamp" },
26
+ { path: "post.moderationDetails.submittedDate" },
27
+ { path: "post.moderationDetails.moderationDate" },
28
+ { path: "post.media.wixMedia.image.urlExpirationDate" },
29
+ { path: "post.media.wixMedia.videoV2.urlExpirationDate" },
30
+ { path: "post.media.wixMedia.videoV2.resolutions.urlExpirationDate" },
31
+ { path: "post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate" },
32
+ { path: "post.media.wixMedia.videoV2.posters.urlExpirationDate" }
33
+ ];
34
+ var TRANSFORM_PATHS_3 = [{ path: "post.richContentCompressed" }];
35
+ var TRANSFORM_PATHS_4 = [
36
+ { path: "post.heroImage.focalPoint.x" },
37
+ { path: "post.heroImage.focalPoint.y" },
38
+ { path: "post.media.wixMedia.image.focalPoint.x" },
39
+ { path: "post.media.wixMedia.image.focalPoint.y" },
40
+ { path: "post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x" },
41
+ { path: "post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y" },
42
+ { path: "post.media.wixMedia.videoV2.posters.focalPoint.x" },
43
+ { path: "post.media.wixMedia.videoV2.posters.focalPoint.y" },
44
+ { path: "post.metrics.averageRating" },
45
+ {
46
+ path: "post.richContent.nodes.buttonData.styles.background.gradient.centerX"
47
+ },
48
+ {
49
+ path: "post.richContent.nodes.buttonData.styles.background.gradient.centerY"
50
+ },
51
+ {
52
+ path: "post.richContent.nodes.buttonData.styles.background.gradient.stops.position"
53
+ },
54
+ {
55
+ path: "post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
56
+ },
57
+ {
58
+ path: "post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
59
+ },
60
+ {
61
+ path: "post.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
62
+ },
63
+ { path: "post.richContent.nodes.galleryData.items.image.media.duration" },
64
+ { path: "post.richContent.nodes.galleryData.items.video.media.duration" },
65
+ { path: "post.richContent.nodes.galleryData.items.video.thumbnail.duration" },
66
+ { path: "post.richContent.nodes.galleryData.options.item.ratio" },
67
+ { path: "post.richContent.nodes.imageData.image.duration" },
68
+ { path: "post.richContent.nodes.imageData.crop.x" },
69
+ { path: "post.richContent.nodes.imageData.crop.y" },
70
+ { path: "post.richContent.nodes.imageData.crop.width" },
71
+ { path: "post.richContent.nodes.imageData.crop.height" },
72
+ { path: "post.richContent.nodes.mapData.mapSettings.lat" },
73
+ { path: "post.richContent.nodes.mapData.mapSettings.lng" },
74
+ { path: "post.richContent.nodes.pollData.poll.image.duration" },
75
+ { path: "post.richContent.nodes.pollData.poll.options.image.duration" },
76
+ {
77
+ path: "post.richContent.nodes.pollData.design.poll.background.image.duration"
78
+ },
79
+ {
80
+ path: "post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX"
81
+ },
82
+ {
83
+ path: "post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY"
84
+ },
85
+ {
86
+ path: "post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position"
87
+ },
88
+ {
89
+ path: "post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX"
90
+ },
91
+ {
92
+ path: "post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY"
93
+ },
94
+ {
95
+ path: "post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position"
96
+ },
97
+ { path: "post.richContent.nodes.appEmbedData.image.duration" },
98
+ { path: "post.richContent.nodes.videoData.video.duration" },
99
+ { path: "post.richContent.nodes.videoData.thumbnail.duration" },
100
+ { path: "post.richContent.nodes.audioData.audio.duration" },
101
+ { path: "post.richContent.nodes.audioData.coverImage.duration" },
102
+ { path: "post.richContent.nodes.layoutData.backgroundImage.media.duration" },
103
+ {
104
+ path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
105
+ },
106
+ {
107
+ path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
108
+ },
109
+ {
110
+ path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
111
+ },
112
+ { path: "post.richContent.nodes.layoutData.backdropImage.media.duration" },
113
+ {
114
+ path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
115
+ },
116
+ {
117
+ path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
118
+ },
119
+ {
120
+ path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
121
+ },
122
+ { path: "post.richContent.nodes.layoutData.background.gradient.centerX" },
123
+ { path: "post.richContent.nodes.layoutData.background.gradient.centerY" },
124
+ {
125
+ path: "post.richContent.nodes.layoutData.background.gradient.stops.position"
126
+ },
127
+ { path: "post.richContent.nodes.layoutData.backdrop.gradient.centerX" },
128
+ { path: "post.richContent.nodes.layoutData.backdrop.gradient.centerY" },
129
+ {
130
+ path: "post.richContent.nodes.layoutData.backdrop.gradient.stops.position"
131
+ },
132
+ { path: "post.richContent.nodes.shapeData.shape.duration" },
133
+ { path: "post.richContent.nodes.cardData.background.gradient.centerX" },
134
+ { path: "post.richContent.nodes.cardData.background.gradient.centerY" },
135
+ {
136
+ path: "post.richContent.nodes.cardData.background.gradient.stops.position"
137
+ },
138
+ { path: "post.richContent.nodes.cardData.backgroundImage.media.duration" },
139
+ {
140
+ path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
141
+ },
142
+ {
143
+ path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
144
+ },
145
+ {
146
+ path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
147
+ },
148
+ { path: "post.richContent.nodes.tocData.fontSize" },
149
+ { path: "post.richContent.nodes.tocData.itemSpacing" },
150
+ { path: "post.richContent.nodes.smartBlockCellData.shape.duration" },
151
+ {
152
+ path: "post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX"
153
+ },
154
+ {
155
+ path: "post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY"
156
+ },
157
+ {
158
+ path: "post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position"
159
+ },
160
+ {
161
+ path: "post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX"
162
+ },
163
+ {
164
+ path: "post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY"
165
+ },
166
+ {
167
+ path: "post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position"
168
+ },
169
+ {
170
+ path: "post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX"
171
+ },
172
+ {
173
+ path: "post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY"
174
+ },
175
+ {
176
+ path: "post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position"
177
+ },
178
+ {
179
+ path: "post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX"
180
+ },
181
+ {
182
+ path: "post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY"
183
+ },
184
+ {
185
+ path: "post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position"
186
+ },
187
+ {
188
+ path: "post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX"
189
+ },
190
+ {
191
+ path: "post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY"
192
+ },
193
+ {
194
+ path: "post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position"
195
+ },
196
+ {
197
+ path: "post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX"
198
+ },
199
+ {
200
+ path: "post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY"
201
+ },
202
+ {
203
+ path: "post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position"
204
+ },
205
+ {
206
+ path: "post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX"
207
+ },
208
+ {
209
+ path: "post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY"
210
+ },
211
+ {
212
+ path: "post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position"
213
+ },
214
+ {
215
+ path: "post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX"
216
+ },
217
+ {
218
+ path: "post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY"
219
+ },
220
+ {
221
+ path: "post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position"
222
+ },
223
+ {
224
+ path: "post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX"
225
+ },
226
+ {
227
+ path: "post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY"
228
+ },
229
+ {
230
+ path: "post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position"
231
+ },
232
+ {
233
+ path: "post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX"
234
+ },
235
+ {
236
+ path: "post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY"
237
+ },
238
+ {
239
+ path: "post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position"
240
+ },
241
+ {
242
+ path: "post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX"
243
+ },
244
+ {
245
+ path: "post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY"
246
+ },
247
+ {
248
+ path: "post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position"
249
+ },
250
+ {
251
+ path: "post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX"
252
+ },
253
+ {
254
+ path: "post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY"
255
+ },
256
+ {
257
+ path: "post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position"
258
+ },
259
+ {
260
+ path: "post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX"
261
+ },
262
+ {
263
+ path: "post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY"
264
+ },
265
+ {
266
+ path: "post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position"
267
+ },
268
+ {
269
+ path: "post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX"
270
+ },
271
+ {
272
+ path: "post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY"
273
+ },
274
+ {
275
+ path: "post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position"
276
+ },
277
+ {
278
+ path: "post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX"
279
+ },
280
+ {
281
+ path: "post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY"
282
+ },
283
+ {
284
+ path: "post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position"
285
+ },
286
+ {
287
+ path: "post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX"
288
+ },
289
+ {
290
+ path: "post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY"
291
+ },
292
+ {
293
+ path: "post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position"
294
+ },
295
+ {
296
+ path: "post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX"
297
+ },
298
+ {
299
+ path: "post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY"
300
+ },
301
+ {
302
+ path: "post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position"
303
+ },
304
+ {
305
+ path: "post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX"
306
+ },
307
+ {
308
+ path: "post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY"
309
+ },
310
+ {
311
+ path: "post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position"
312
+ }
313
+ ];
314
+ var TRANSFORM_PATHS_5 = [
315
+ { path: "posts.firstPublishedDate" },
316
+ { path: "posts.lastPublishedDate" },
317
+ { path: "posts.heroImage.urlExpirationDate" },
318
+ { path: "posts.richContent.metadata.createdTimestamp" },
319
+ { path: "posts.richContent.metadata.updatedTimestamp" },
320
+ { path: "posts.moderationDetails.submittedDate" },
321
+ { path: "posts.moderationDetails.moderationDate" },
322
+ { path: "posts.media.wixMedia.image.urlExpirationDate" },
323
+ { path: "posts.media.wixMedia.videoV2.urlExpirationDate" },
324
+ { path: "posts.media.wixMedia.videoV2.resolutions.urlExpirationDate" },
325
+ { path: "posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate" },
326
+ { path: "posts.media.wixMedia.videoV2.posters.urlExpirationDate" }
327
+ ];
328
+ var TRANSFORM_PATHS_6 = [{ path: "posts.richContentCompressed" }];
329
+ var TRANSFORM_PATHS_7 = [
330
+ { path: "posts.heroImage.focalPoint.x" },
331
+ { path: "posts.heroImage.focalPoint.y" },
332
+ { path: "posts.media.wixMedia.image.focalPoint.x" },
333
+ { path: "posts.media.wixMedia.image.focalPoint.y" },
334
+ { path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x" },
335
+ { path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y" },
336
+ { path: "posts.media.wixMedia.videoV2.posters.focalPoint.x" },
337
+ { path: "posts.media.wixMedia.videoV2.posters.focalPoint.y" },
338
+ { path: "posts.metrics.averageRating" },
339
+ {
340
+ path: "posts.richContent.nodes.buttonData.styles.background.gradient.centerX"
341
+ },
342
+ {
343
+ path: "posts.richContent.nodes.buttonData.styles.background.gradient.centerY"
344
+ },
345
+ {
346
+ path: "posts.richContent.nodes.buttonData.styles.background.gradient.stops.position"
347
+ },
348
+ {
349
+ path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
350
+ },
351
+ {
352
+ path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
353
+ },
354
+ {
355
+ path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
356
+ },
357
+ { path: "posts.richContent.nodes.galleryData.items.image.media.duration" },
358
+ { path: "posts.richContent.nodes.galleryData.items.video.media.duration" },
359
+ {
360
+ path: "posts.richContent.nodes.galleryData.items.video.thumbnail.duration"
361
+ },
362
+ { path: "posts.richContent.nodes.galleryData.options.item.ratio" },
363
+ { path: "posts.richContent.nodes.imageData.image.duration" },
364
+ { path: "posts.richContent.nodes.imageData.crop.x" },
365
+ { path: "posts.richContent.nodes.imageData.crop.y" },
366
+ { path: "posts.richContent.nodes.imageData.crop.width" },
367
+ { path: "posts.richContent.nodes.imageData.crop.height" },
368
+ { path: "posts.richContent.nodes.mapData.mapSettings.lat" },
369
+ { path: "posts.richContent.nodes.mapData.mapSettings.lng" },
370
+ { path: "posts.richContent.nodes.pollData.poll.image.duration" },
371
+ { path: "posts.richContent.nodes.pollData.poll.options.image.duration" },
372
+ {
373
+ path: "posts.richContent.nodes.pollData.design.poll.background.image.duration"
374
+ },
375
+ {
376
+ path: "posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX"
377
+ },
378
+ {
379
+ path: "posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY"
380
+ },
381
+ {
382
+ path: "posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position"
383
+ },
384
+ {
385
+ path: "posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX"
386
+ },
387
+ {
388
+ path: "posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY"
389
+ },
390
+ {
391
+ path: "posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position"
392
+ },
393
+ { path: "posts.richContent.nodes.appEmbedData.image.duration" },
394
+ { path: "posts.richContent.nodes.videoData.video.duration" },
395
+ { path: "posts.richContent.nodes.videoData.thumbnail.duration" },
396
+ { path: "posts.richContent.nodes.audioData.audio.duration" },
397
+ { path: "posts.richContent.nodes.audioData.coverImage.duration" },
398
+ { path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration" },
399
+ {
400
+ path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
401
+ },
402
+ {
403
+ path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
404
+ },
405
+ {
406
+ path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
407
+ },
408
+ { path: "posts.richContent.nodes.layoutData.backdropImage.media.duration" },
409
+ {
410
+ path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
411
+ },
412
+ {
413
+ path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
414
+ },
415
+ {
416
+ path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
417
+ },
418
+ { path: "posts.richContent.nodes.layoutData.background.gradient.centerX" },
419
+ { path: "posts.richContent.nodes.layoutData.background.gradient.centerY" },
420
+ {
421
+ path: "posts.richContent.nodes.layoutData.background.gradient.stops.position"
422
+ },
423
+ { path: "posts.richContent.nodes.layoutData.backdrop.gradient.centerX" },
424
+ { path: "posts.richContent.nodes.layoutData.backdrop.gradient.centerY" },
425
+ {
426
+ path: "posts.richContent.nodes.layoutData.backdrop.gradient.stops.position"
427
+ },
428
+ { path: "posts.richContent.nodes.shapeData.shape.duration" },
429
+ { path: "posts.richContent.nodes.cardData.background.gradient.centerX" },
430
+ { path: "posts.richContent.nodes.cardData.background.gradient.centerY" },
431
+ {
432
+ path: "posts.richContent.nodes.cardData.background.gradient.stops.position"
433
+ },
434
+ { path: "posts.richContent.nodes.cardData.backgroundImage.media.duration" },
435
+ {
436
+ path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
437
+ },
438
+ {
439
+ path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
440
+ },
441
+ {
442
+ path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
443
+ },
444
+ { path: "posts.richContent.nodes.tocData.fontSize" },
445
+ { path: "posts.richContent.nodes.tocData.itemSpacing" },
446
+ { path: "posts.richContent.nodes.smartBlockCellData.shape.duration" },
447
+ {
448
+ path: "posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX"
449
+ },
450
+ {
451
+ path: "posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY"
452
+ },
453
+ {
454
+ path: "posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position"
455
+ },
456
+ {
457
+ path: "posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX"
458
+ },
459
+ {
460
+ path: "posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY"
461
+ },
462
+ {
463
+ path: "posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position"
464
+ },
465
+ {
466
+ path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX"
467
+ },
468
+ {
469
+ path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY"
470
+ },
471
+ {
472
+ path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position"
473
+ },
474
+ {
475
+ path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX"
476
+ },
477
+ {
478
+ path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY"
479
+ },
480
+ {
481
+ path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position"
482
+ },
483
+ {
484
+ path: "posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX"
485
+ },
486
+ {
487
+ path: "posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY"
488
+ },
489
+ {
490
+ path: "posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position"
491
+ },
492
+ {
493
+ path: "posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX"
494
+ },
495
+ {
496
+ path: "posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY"
497
+ },
498
+ {
499
+ path: "posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position"
500
+ },
501
+ {
502
+ path: "posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX"
503
+ },
504
+ {
505
+ path: "posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY"
506
+ },
507
+ {
508
+ path: "posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position"
509
+ },
510
+ {
511
+ path: "posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX"
512
+ },
513
+ {
514
+ path: "posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY"
515
+ },
516
+ {
517
+ path: "posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position"
518
+ },
519
+ {
520
+ path: "posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX"
521
+ },
522
+ {
523
+ path: "posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY"
524
+ },
525
+ {
526
+ path: "posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position"
527
+ },
528
+ {
529
+ path: "posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX"
530
+ },
531
+ {
532
+ path: "posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY"
533
+ },
534
+ {
535
+ path: "posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position"
536
+ },
537
+ {
538
+ path: "posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX"
539
+ },
540
+ {
541
+ path: "posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY"
542
+ },
543
+ {
544
+ path: "posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position"
545
+ },
546
+ {
547
+ path: "posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX"
548
+ },
549
+ {
550
+ path: "posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY"
551
+ },
552
+ {
553
+ path: "posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position"
554
+ },
555
+ {
556
+ path: "posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX"
557
+ },
558
+ {
559
+ path: "posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY"
560
+ },
561
+ {
562
+ path: "posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position"
563
+ },
564
+ {
565
+ path: "posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX"
566
+ },
567
+ {
568
+ path: "posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY"
569
+ },
570
+ {
571
+ path: "posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position"
572
+ },
573
+ {
574
+ path: "posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX"
575
+ },
576
+ {
577
+ path: "posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY"
578
+ },
579
+ {
580
+ path: "posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position"
581
+ },
582
+ {
583
+ path: "posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX"
584
+ },
585
+ {
586
+ path: "posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY"
587
+ },
588
+ {
589
+ path: "posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position"
590
+ },
591
+ {
592
+ path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX"
593
+ },
594
+ {
595
+ path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY"
596
+ },
597
+ {
598
+ path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position"
599
+ },
600
+ {
601
+ path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX"
602
+ },
603
+ {
604
+ path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY"
605
+ },
606
+ {
607
+ path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position"
608
+ }
609
+ ];
610
+ var TRANSFORM_PATHS_8 = [
611
+ { path: "sort.origin.latitude" },
612
+ { path: "sort.origin.longitude" },
613
+ { path: "query.sort.origin.latitude" },
614
+ { path: "query.sort.origin.longitude" }
615
+ ];
616
+ var TRANSFORM_PATHS_9 = [{ path: "metrics.averageRating" }];
18
617
  function resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl(opts) {
19
618
  const domainToMappings = {
20
619
  _: [
@@ -263,7 +862,7 @@ function queryPostCountStats(payload) {
263
862
  const serializedData = transformPaths(payload, [
264
863
  {
265
864
  transformFn: transformSDKTimestampToRESTTimestamp,
266
- paths: [{ path: "rangeStart" }, { path: "rangeEnd" }]
865
+ paths: TRANSFORM_PATHS_0
267
866
  }
268
867
  ]);
269
868
  const metadata = {
@@ -283,7 +882,7 @@ function queryPostCountStats(payload) {
283
882
  transformResponse: (payload2) => transformPaths(payload2, [
284
883
  {
285
884
  transformFn: transformRESTTimestampToSDKTimestamp,
286
- paths: [{ path: "stats.periodStart" }]
885
+ paths: TRANSFORM_PATHS_1
287
886
  }
288
887
  ])
289
888
  };
@@ -331,342 +930,15 @@ function getPost(payload) {
331
930
  transformResponse: (payload2) => transformPaths(payload2, [
332
931
  {
333
932
  transformFn: transformRESTTimestampToSDKTimestamp,
334
- paths: [
335
- { path: "post.firstPublishedDate" },
336
- { path: "post.lastPublishedDate" },
337
- { path: "post.heroImage.urlExpirationDate" },
338
- { path: "post.richContent.metadata.createdTimestamp" },
339
- { path: "post.richContent.metadata.updatedTimestamp" },
340
- { path: "post.moderationDetails.submittedDate" },
341
- { path: "post.moderationDetails.moderationDate" },
342
- { path: "post.media.wixMedia.image.urlExpirationDate" },
343
- { path: "post.media.wixMedia.videoV2.urlExpirationDate" },
344
- {
345
- path: "post.media.wixMedia.videoV2.resolutions.urlExpirationDate"
346
- },
347
- {
348
- path: "post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
349
- },
350
- { path: "post.media.wixMedia.videoV2.posters.urlExpirationDate" }
351
- ]
933
+ paths: TRANSFORM_PATHS_2
352
934
  },
353
935
  {
354
936
  transformFn: transformRESTBytesToSDKBytes,
355
- paths: [{ path: "post.richContentCompressed" }]
937
+ paths: TRANSFORM_PATHS_3
356
938
  },
357
939
  {
358
940
  transformFn: transformRESTFloatToSDKFloat,
359
- paths: [
360
- { path: "post.heroImage.focalPoint.x" },
361
- { path: "post.heroImage.focalPoint.y" },
362
- { path: "post.media.wixMedia.image.focalPoint.x" },
363
- { path: "post.media.wixMedia.image.focalPoint.y" },
364
- {
365
- path: "post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
366
- },
367
- {
368
- path: "post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
369
- },
370
- { path: "post.media.wixMedia.videoV2.posters.focalPoint.x" },
371
- { path: "post.media.wixMedia.videoV2.posters.focalPoint.y" },
372
- { path: "post.metrics.averageRating" },
373
- {
374
- path: "post.richContent.nodes.buttonData.styles.background.gradient.centerX"
375
- },
376
- {
377
- path: "post.richContent.nodes.buttonData.styles.background.gradient.centerY"
378
- },
379
- {
380
- path: "post.richContent.nodes.buttonData.styles.background.gradient.stops.position"
381
- },
382
- {
383
- path: "post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
384
- },
385
- {
386
- path: "post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
387
- },
388
- {
389
- path: "post.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
390
- },
391
- {
392
- path: "post.richContent.nodes.galleryData.items.image.media.duration"
393
- },
394
- {
395
- path: "post.richContent.nodes.galleryData.items.video.media.duration"
396
- },
397
- {
398
- path: "post.richContent.nodes.galleryData.items.video.thumbnail.duration"
399
- },
400
- { path: "post.richContent.nodes.galleryData.options.item.ratio" },
401
- { path: "post.richContent.nodes.imageData.image.duration" },
402
- { path: "post.richContent.nodes.imageData.crop.x" },
403
- { path: "post.richContent.nodes.imageData.crop.y" },
404
- { path: "post.richContent.nodes.imageData.crop.width" },
405
- { path: "post.richContent.nodes.imageData.crop.height" },
406
- { path: "post.richContent.nodes.mapData.mapSettings.lat" },
407
- { path: "post.richContent.nodes.mapData.mapSettings.lng" },
408
- { path: "post.richContent.nodes.pollData.poll.image.duration" },
409
- {
410
- path: "post.richContent.nodes.pollData.poll.options.image.duration"
411
- },
412
- {
413
- path: "post.richContent.nodes.pollData.design.poll.background.image.duration"
414
- },
415
- {
416
- path: "post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX"
417
- },
418
- {
419
- path: "post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY"
420
- },
421
- {
422
- path: "post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position"
423
- },
424
- {
425
- path: "post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX"
426
- },
427
- {
428
- path: "post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY"
429
- },
430
- {
431
- path: "post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position"
432
- },
433
- { path: "post.richContent.nodes.appEmbedData.image.duration" },
434
- { path: "post.richContent.nodes.videoData.video.duration" },
435
- { path: "post.richContent.nodes.videoData.thumbnail.duration" },
436
- { path: "post.richContent.nodes.audioData.audio.duration" },
437
- { path: "post.richContent.nodes.audioData.coverImage.duration" },
438
- {
439
- path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
440
- },
441
- {
442
- path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
443
- },
444
- {
445
- path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
446
- },
447
- {
448
- path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
449
- },
450
- {
451
- path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
452
- },
453
- {
454
- path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
455
- },
456
- {
457
- path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
458
- },
459
- {
460
- path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
461
- },
462
- {
463
- path: "post.richContent.nodes.layoutData.background.gradient.centerX"
464
- },
465
- {
466
- path: "post.richContent.nodes.layoutData.background.gradient.centerY"
467
- },
468
- {
469
- path: "post.richContent.nodes.layoutData.background.gradient.stops.position"
470
- },
471
- {
472
- path: "post.richContent.nodes.layoutData.backdrop.gradient.centerX"
473
- },
474
- {
475
- path: "post.richContent.nodes.layoutData.backdrop.gradient.centerY"
476
- },
477
- {
478
- path: "post.richContent.nodes.layoutData.backdrop.gradient.stops.position"
479
- },
480
- { path: "post.richContent.nodes.shapeData.shape.duration" },
481
- {
482
- path: "post.richContent.nodes.cardData.background.gradient.centerX"
483
- },
484
- {
485
- path: "post.richContent.nodes.cardData.background.gradient.centerY"
486
- },
487
- {
488
- path: "post.richContent.nodes.cardData.background.gradient.stops.position"
489
- },
490
- {
491
- path: "post.richContent.nodes.cardData.backgroundImage.media.duration"
492
- },
493
- {
494
- path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
495
- },
496
- {
497
- path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
498
- },
499
- {
500
- path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
501
- },
502
- { path: "post.richContent.nodes.tocData.fontSize" },
503
- { path: "post.richContent.nodes.tocData.itemSpacing" },
504
- {
505
- path: "post.richContent.nodes.smartBlockCellData.shape.duration"
506
- },
507
- {
508
- path: "post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX"
509
- },
510
- {
511
- path: "post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY"
512
- },
513
- {
514
- path: "post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position"
515
- },
516
- {
517
- path: "post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX"
518
- },
519
- {
520
- path: "post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY"
521
- },
522
- {
523
- path: "post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position"
524
- },
525
- {
526
- path: "post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX"
527
- },
528
- {
529
- path: "post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY"
530
- },
531
- {
532
- path: "post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position"
533
- },
534
- {
535
- path: "post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX"
536
- },
537
- {
538
- path: "post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY"
539
- },
540
- {
541
- path: "post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position"
542
- },
543
- {
544
- path: "post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX"
545
- },
546
- {
547
- path: "post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY"
548
- },
549
- {
550
- path: "post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position"
551
- },
552
- {
553
- path: "post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX"
554
- },
555
- {
556
- path: "post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY"
557
- },
558
- {
559
- path: "post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position"
560
- },
561
- {
562
- path: "post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX"
563
- },
564
- {
565
- path: "post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY"
566
- },
567
- {
568
- path: "post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position"
569
- },
570
- {
571
- path: "post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX"
572
- },
573
- {
574
- path: "post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY"
575
- },
576
- {
577
- path: "post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position"
578
- },
579
- {
580
- path: "post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX"
581
- },
582
- {
583
- path: "post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY"
584
- },
585
- {
586
- path: "post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position"
587
- },
588
- {
589
- path: "post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX"
590
- },
591
- {
592
- path: "post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY"
593
- },
594
- {
595
- path: "post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position"
596
- },
597
- {
598
- path: "post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX"
599
- },
600
- {
601
- path: "post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY"
602
- },
603
- {
604
- path: "post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position"
605
- },
606
- {
607
- path: "post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX"
608
- },
609
- {
610
- path: "post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY"
611
- },
612
- {
613
- path: "post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position"
614
- },
615
- {
616
- path: "post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX"
617
- },
618
- {
619
- path: "post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY"
620
- },
621
- {
622
- path: "post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position"
623
- },
624
- {
625
- path: "post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX"
626
- },
627
- {
628
- path: "post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY"
629
- },
630
- {
631
- path: "post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position"
632
- },
633
- {
634
- path: "post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX"
635
- },
636
- {
637
- path: "post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY"
638
- },
639
- {
640
- path: "post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position"
641
- },
642
- {
643
- path: "post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX"
644
- },
645
- {
646
- path: "post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY"
647
- },
648
- {
649
- path: "post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position"
650
- },
651
- {
652
- path: "post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX"
653
- },
654
- {
655
- path: "post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY"
656
- },
657
- {
658
- path: "post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position"
659
- },
660
- {
661
- path: "post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX"
662
- },
663
- {
664
- path: "post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY"
665
- },
666
- {
667
- path: "post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position"
668
- }
669
- ]
941
+ paths: TRANSFORM_PATHS_4
670
942
  }
671
943
  ])
672
944
  };
@@ -693,342 +965,15 @@ function getPostBySlug(payload) {
693
965
  transformResponse: (payload2) => transformPaths(payload2, [
694
966
  {
695
967
  transformFn: transformRESTTimestampToSDKTimestamp,
696
- paths: [
697
- { path: "post.firstPublishedDate" },
698
- { path: "post.lastPublishedDate" },
699
- { path: "post.heroImage.urlExpirationDate" },
700
- { path: "post.richContent.metadata.createdTimestamp" },
701
- { path: "post.richContent.metadata.updatedTimestamp" },
702
- { path: "post.moderationDetails.submittedDate" },
703
- { path: "post.moderationDetails.moderationDate" },
704
- { path: "post.media.wixMedia.image.urlExpirationDate" },
705
- { path: "post.media.wixMedia.videoV2.urlExpirationDate" },
706
- {
707
- path: "post.media.wixMedia.videoV2.resolutions.urlExpirationDate"
708
- },
709
- {
710
- path: "post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
711
- },
712
- { path: "post.media.wixMedia.videoV2.posters.urlExpirationDate" }
713
- ]
968
+ paths: TRANSFORM_PATHS_2
714
969
  },
715
970
  {
716
971
  transformFn: transformRESTBytesToSDKBytes,
717
- paths: [{ path: "post.richContentCompressed" }]
972
+ paths: TRANSFORM_PATHS_3
718
973
  },
719
974
  {
720
975
  transformFn: transformRESTFloatToSDKFloat,
721
- paths: [
722
- { path: "post.heroImage.focalPoint.x" },
723
- { path: "post.heroImage.focalPoint.y" },
724
- { path: "post.media.wixMedia.image.focalPoint.x" },
725
- { path: "post.media.wixMedia.image.focalPoint.y" },
726
- {
727
- path: "post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
728
- },
729
- {
730
- path: "post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
731
- },
732
- { path: "post.media.wixMedia.videoV2.posters.focalPoint.x" },
733
- { path: "post.media.wixMedia.videoV2.posters.focalPoint.y" },
734
- { path: "post.metrics.averageRating" },
735
- {
736
- path: "post.richContent.nodes.buttonData.styles.background.gradient.centerX"
737
- },
738
- {
739
- path: "post.richContent.nodes.buttonData.styles.background.gradient.centerY"
740
- },
741
- {
742
- path: "post.richContent.nodes.buttonData.styles.background.gradient.stops.position"
743
- },
744
- {
745
- path: "post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
746
- },
747
- {
748
- path: "post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
749
- },
750
- {
751
- path: "post.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
752
- },
753
- {
754
- path: "post.richContent.nodes.galleryData.items.image.media.duration"
755
- },
756
- {
757
- path: "post.richContent.nodes.galleryData.items.video.media.duration"
758
- },
759
- {
760
- path: "post.richContent.nodes.galleryData.items.video.thumbnail.duration"
761
- },
762
- { path: "post.richContent.nodes.galleryData.options.item.ratio" },
763
- { path: "post.richContent.nodes.imageData.image.duration" },
764
- { path: "post.richContent.nodes.imageData.crop.x" },
765
- { path: "post.richContent.nodes.imageData.crop.y" },
766
- { path: "post.richContent.nodes.imageData.crop.width" },
767
- { path: "post.richContent.nodes.imageData.crop.height" },
768
- { path: "post.richContent.nodes.mapData.mapSettings.lat" },
769
- { path: "post.richContent.nodes.mapData.mapSettings.lng" },
770
- { path: "post.richContent.nodes.pollData.poll.image.duration" },
771
- {
772
- path: "post.richContent.nodes.pollData.poll.options.image.duration"
773
- },
774
- {
775
- path: "post.richContent.nodes.pollData.design.poll.background.image.duration"
776
- },
777
- {
778
- path: "post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX"
779
- },
780
- {
781
- path: "post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY"
782
- },
783
- {
784
- path: "post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position"
785
- },
786
- {
787
- path: "post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX"
788
- },
789
- {
790
- path: "post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY"
791
- },
792
- {
793
- path: "post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position"
794
- },
795
- { path: "post.richContent.nodes.appEmbedData.image.duration" },
796
- { path: "post.richContent.nodes.videoData.video.duration" },
797
- { path: "post.richContent.nodes.videoData.thumbnail.duration" },
798
- { path: "post.richContent.nodes.audioData.audio.duration" },
799
- { path: "post.richContent.nodes.audioData.coverImage.duration" },
800
- {
801
- path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
802
- },
803
- {
804
- path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
805
- },
806
- {
807
- path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
808
- },
809
- {
810
- path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
811
- },
812
- {
813
- path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
814
- },
815
- {
816
- path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
817
- },
818
- {
819
- path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
820
- },
821
- {
822
- path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
823
- },
824
- {
825
- path: "post.richContent.nodes.layoutData.background.gradient.centerX"
826
- },
827
- {
828
- path: "post.richContent.nodes.layoutData.background.gradient.centerY"
829
- },
830
- {
831
- path: "post.richContent.nodes.layoutData.background.gradient.stops.position"
832
- },
833
- {
834
- path: "post.richContent.nodes.layoutData.backdrop.gradient.centerX"
835
- },
836
- {
837
- path: "post.richContent.nodes.layoutData.backdrop.gradient.centerY"
838
- },
839
- {
840
- path: "post.richContent.nodes.layoutData.backdrop.gradient.stops.position"
841
- },
842
- { path: "post.richContent.nodes.shapeData.shape.duration" },
843
- {
844
- path: "post.richContent.nodes.cardData.background.gradient.centerX"
845
- },
846
- {
847
- path: "post.richContent.nodes.cardData.background.gradient.centerY"
848
- },
849
- {
850
- path: "post.richContent.nodes.cardData.background.gradient.stops.position"
851
- },
852
- {
853
- path: "post.richContent.nodes.cardData.backgroundImage.media.duration"
854
- },
855
- {
856
- path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
857
- },
858
- {
859
- path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
860
- },
861
- {
862
- path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
863
- },
864
- { path: "post.richContent.nodes.tocData.fontSize" },
865
- { path: "post.richContent.nodes.tocData.itemSpacing" },
866
- {
867
- path: "post.richContent.nodes.smartBlockCellData.shape.duration"
868
- },
869
- {
870
- path: "post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX"
871
- },
872
- {
873
- path: "post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY"
874
- },
875
- {
876
- path: "post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position"
877
- },
878
- {
879
- path: "post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX"
880
- },
881
- {
882
- path: "post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY"
883
- },
884
- {
885
- path: "post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position"
886
- },
887
- {
888
- path: "post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX"
889
- },
890
- {
891
- path: "post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY"
892
- },
893
- {
894
- path: "post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position"
895
- },
896
- {
897
- path: "post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX"
898
- },
899
- {
900
- path: "post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY"
901
- },
902
- {
903
- path: "post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position"
904
- },
905
- {
906
- path: "post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX"
907
- },
908
- {
909
- path: "post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY"
910
- },
911
- {
912
- path: "post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position"
913
- },
914
- {
915
- path: "post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX"
916
- },
917
- {
918
- path: "post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY"
919
- },
920
- {
921
- path: "post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position"
922
- },
923
- {
924
- path: "post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX"
925
- },
926
- {
927
- path: "post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY"
928
- },
929
- {
930
- path: "post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position"
931
- },
932
- {
933
- path: "post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX"
934
- },
935
- {
936
- path: "post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY"
937
- },
938
- {
939
- path: "post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position"
940
- },
941
- {
942
- path: "post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX"
943
- },
944
- {
945
- path: "post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY"
946
- },
947
- {
948
- path: "post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position"
949
- },
950
- {
951
- path: "post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX"
952
- },
953
- {
954
- path: "post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY"
955
- },
956
- {
957
- path: "post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position"
958
- },
959
- {
960
- path: "post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX"
961
- },
962
- {
963
- path: "post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY"
964
- },
965
- {
966
- path: "post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position"
967
- },
968
- {
969
- path: "post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX"
970
- },
971
- {
972
- path: "post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY"
973
- },
974
- {
975
- path: "post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position"
976
- },
977
- {
978
- path: "post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX"
979
- },
980
- {
981
- path: "post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY"
982
- },
983
- {
984
- path: "post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position"
985
- },
986
- {
987
- path: "post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX"
988
- },
989
- {
990
- path: "post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY"
991
- },
992
- {
993
- path: "post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position"
994
- },
995
- {
996
- path: "post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX"
997
- },
998
- {
999
- path: "post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY"
1000
- },
1001
- {
1002
- path: "post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position"
1003
- },
1004
- {
1005
- path: "post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX"
1006
- },
1007
- {
1008
- path: "post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY"
1009
- },
1010
- {
1011
- path: "post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position"
1012
- },
1013
- {
1014
- path: "post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX"
1015
- },
1016
- {
1017
- path: "post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY"
1018
- },
1019
- {
1020
- path: "post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position"
1021
- },
1022
- {
1023
- path: "post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX"
1024
- },
1025
- {
1026
- path: "post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY"
1027
- },
1028
- {
1029
- path: "post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position"
1030
- }
1031
- ]
976
+ paths: TRANSFORM_PATHS_4
1032
977
  }
1033
978
  ])
1034
979
  };
@@ -1055,346 +1000,15 @@ function listPosts(payload) {
1055
1000
  transformResponse: (payload2) => transformPaths(payload2, [
1056
1001
  {
1057
1002
  transformFn: transformRESTTimestampToSDKTimestamp,
1058
- paths: [
1059
- { path: "posts.firstPublishedDate" },
1060
- { path: "posts.lastPublishedDate" },
1061
- { path: "posts.heroImage.urlExpirationDate" },
1062
- { path: "posts.richContent.metadata.createdTimestamp" },
1063
- { path: "posts.richContent.metadata.updatedTimestamp" },
1064
- { path: "posts.moderationDetails.submittedDate" },
1065
- { path: "posts.moderationDetails.moderationDate" },
1066
- { path: "posts.media.wixMedia.image.urlExpirationDate" },
1067
- { path: "posts.media.wixMedia.videoV2.urlExpirationDate" },
1068
- {
1069
- path: "posts.media.wixMedia.videoV2.resolutions.urlExpirationDate"
1070
- },
1071
- {
1072
- path: "posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
1073
- },
1074
- {
1075
- path: "posts.media.wixMedia.videoV2.posters.urlExpirationDate"
1076
- }
1077
- ]
1003
+ paths: TRANSFORM_PATHS_5
1078
1004
  },
1079
1005
  {
1080
1006
  transformFn: transformRESTBytesToSDKBytes,
1081
- paths: [{ path: "posts.richContentCompressed" }]
1007
+ paths: TRANSFORM_PATHS_6
1082
1008
  },
1083
1009
  {
1084
1010
  transformFn: transformRESTFloatToSDKFloat,
1085
- paths: [
1086
- { path: "posts.heroImage.focalPoint.x" },
1087
- { path: "posts.heroImage.focalPoint.y" },
1088
- { path: "posts.media.wixMedia.image.focalPoint.x" },
1089
- { path: "posts.media.wixMedia.image.focalPoint.y" },
1090
- {
1091
- path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
1092
- },
1093
- {
1094
- path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
1095
- },
1096
- { path: "posts.media.wixMedia.videoV2.posters.focalPoint.x" },
1097
- { path: "posts.media.wixMedia.videoV2.posters.focalPoint.y" },
1098
- { path: "posts.metrics.averageRating" },
1099
- {
1100
- path: "posts.richContent.nodes.buttonData.styles.background.gradient.centerX"
1101
- },
1102
- {
1103
- path: "posts.richContent.nodes.buttonData.styles.background.gradient.centerY"
1104
- },
1105
- {
1106
- path: "posts.richContent.nodes.buttonData.styles.background.gradient.stops.position"
1107
- },
1108
- {
1109
- path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1110
- },
1111
- {
1112
- path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
1113
- },
1114
- {
1115
- path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
1116
- },
1117
- {
1118
- path: "posts.richContent.nodes.galleryData.items.image.media.duration"
1119
- },
1120
- {
1121
- path: "posts.richContent.nodes.galleryData.items.video.media.duration"
1122
- },
1123
- {
1124
- path: "posts.richContent.nodes.galleryData.items.video.thumbnail.duration"
1125
- },
1126
- {
1127
- path: "posts.richContent.nodes.galleryData.options.item.ratio"
1128
- },
1129
- { path: "posts.richContent.nodes.imageData.image.duration" },
1130
- { path: "posts.richContent.nodes.imageData.crop.x" },
1131
- { path: "posts.richContent.nodes.imageData.crop.y" },
1132
- { path: "posts.richContent.nodes.imageData.crop.width" },
1133
- { path: "posts.richContent.nodes.imageData.crop.height" },
1134
- { path: "posts.richContent.nodes.mapData.mapSettings.lat" },
1135
- { path: "posts.richContent.nodes.mapData.mapSettings.lng" },
1136
- { path: "posts.richContent.nodes.pollData.poll.image.duration" },
1137
- {
1138
- path: "posts.richContent.nodes.pollData.poll.options.image.duration"
1139
- },
1140
- {
1141
- path: "posts.richContent.nodes.pollData.design.poll.background.image.duration"
1142
- },
1143
- {
1144
- path: "posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX"
1145
- },
1146
- {
1147
- path: "posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY"
1148
- },
1149
- {
1150
- path: "posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position"
1151
- },
1152
- {
1153
- path: "posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX"
1154
- },
1155
- {
1156
- path: "posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY"
1157
- },
1158
- {
1159
- path: "posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position"
1160
- },
1161
- { path: "posts.richContent.nodes.appEmbedData.image.duration" },
1162
- { path: "posts.richContent.nodes.videoData.video.duration" },
1163
- { path: "posts.richContent.nodes.videoData.thumbnail.duration" },
1164
- { path: "posts.richContent.nodes.audioData.audio.duration" },
1165
- { path: "posts.richContent.nodes.audioData.coverImage.duration" },
1166
- {
1167
- path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
1168
- },
1169
- {
1170
- path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1171
- },
1172
- {
1173
- path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1174
- },
1175
- {
1176
- path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1177
- },
1178
- {
1179
- path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
1180
- },
1181
- {
1182
- path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1183
- },
1184
- {
1185
- path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1186
- },
1187
- {
1188
- path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1189
- },
1190
- {
1191
- path: "posts.richContent.nodes.layoutData.background.gradient.centerX"
1192
- },
1193
- {
1194
- path: "posts.richContent.nodes.layoutData.background.gradient.centerY"
1195
- },
1196
- {
1197
- path: "posts.richContent.nodes.layoutData.background.gradient.stops.position"
1198
- },
1199
- {
1200
- path: "posts.richContent.nodes.layoutData.backdrop.gradient.centerX"
1201
- },
1202
- {
1203
- path: "posts.richContent.nodes.layoutData.backdrop.gradient.centerY"
1204
- },
1205
- {
1206
- path: "posts.richContent.nodes.layoutData.backdrop.gradient.stops.position"
1207
- },
1208
- { path: "posts.richContent.nodes.shapeData.shape.duration" },
1209
- {
1210
- path: "posts.richContent.nodes.cardData.background.gradient.centerX"
1211
- },
1212
- {
1213
- path: "posts.richContent.nodes.cardData.background.gradient.centerY"
1214
- },
1215
- {
1216
- path: "posts.richContent.nodes.cardData.background.gradient.stops.position"
1217
- },
1218
- {
1219
- path: "posts.richContent.nodes.cardData.backgroundImage.media.duration"
1220
- },
1221
- {
1222
- path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1223
- },
1224
- {
1225
- path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1226
- },
1227
- {
1228
- path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1229
- },
1230
- { path: "posts.richContent.nodes.tocData.fontSize" },
1231
- { path: "posts.richContent.nodes.tocData.itemSpacing" },
1232
- {
1233
- path: "posts.richContent.nodes.smartBlockCellData.shape.duration"
1234
- },
1235
- {
1236
- path: "posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX"
1237
- },
1238
- {
1239
- path: "posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY"
1240
- },
1241
- {
1242
- path: "posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position"
1243
- },
1244
- {
1245
- path: "posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX"
1246
- },
1247
- {
1248
- path: "posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY"
1249
- },
1250
- {
1251
- path: "posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position"
1252
- },
1253
- {
1254
- path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX"
1255
- },
1256
- {
1257
- path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY"
1258
- },
1259
- {
1260
- path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position"
1261
- },
1262
- {
1263
- path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX"
1264
- },
1265
- {
1266
- path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY"
1267
- },
1268
- {
1269
- path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position"
1270
- },
1271
- {
1272
- path: "posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX"
1273
- },
1274
- {
1275
- path: "posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY"
1276
- },
1277
- {
1278
- path: "posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position"
1279
- },
1280
- {
1281
- path: "posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX"
1282
- },
1283
- {
1284
- path: "posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY"
1285
- },
1286
- {
1287
- path: "posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position"
1288
- },
1289
- {
1290
- path: "posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX"
1291
- },
1292
- {
1293
- path: "posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY"
1294
- },
1295
- {
1296
- path: "posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position"
1297
- },
1298
- {
1299
- path: "posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX"
1300
- },
1301
- {
1302
- path: "posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY"
1303
- },
1304
- {
1305
- path: "posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position"
1306
- },
1307
- {
1308
- path: "posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX"
1309
- },
1310
- {
1311
- path: "posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY"
1312
- },
1313
- {
1314
- path: "posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position"
1315
- },
1316
- {
1317
- path: "posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX"
1318
- },
1319
- {
1320
- path: "posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY"
1321
- },
1322
- {
1323
- path: "posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position"
1324
- },
1325
- {
1326
- path: "posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX"
1327
- },
1328
- {
1329
- path: "posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY"
1330
- },
1331
- {
1332
- path: "posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position"
1333
- },
1334
- {
1335
- path: "posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX"
1336
- },
1337
- {
1338
- path: "posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY"
1339
- },
1340
- {
1341
- path: "posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position"
1342
- },
1343
- {
1344
- path: "posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX"
1345
- },
1346
- {
1347
- path: "posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY"
1348
- },
1349
- {
1350
- path: "posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position"
1351
- },
1352
- {
1353
- path: "posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX"
1354
- },
1355
- {
1356
- path: "posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY"
1357
- },
1358
- {
1359
- path: "posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position"
1360
- },
1361
- {
1362
- path: "posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX"
1363
- },
1364
- {
1365
- path: "posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY"
1366
- },
1367
- {
1368
- path: "posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position"
1369
- },
1370
- {
1371
- path: "posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX"
1372
- },
1373
- {
1374
- path: "posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY"
1375
- },
1376
- {
1377
- path: "posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position"
1378
- },
1379
- {
1380
- path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX"
1381
- },
1382
- {
1383
- path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY"
1384
- },
1385
- {
1386
- path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position"
1387
- },
1388
- {
1389
- path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX"
1390
- },
1391
- {
1392
- path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY"
1393
- },
1394
- {
1395
- path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position"
1396
- }
1397
- ]
1011
+ paths: TRANSFORM_PATHS_7
1398
1012
  }
1399
1013
  ])
1400
1014
  };
@@ -1407,12 +1021,7 @@ function queryPosts(payload) {
1407
1021
  const serializedData = transformPaths(payload, [
1408
1022
  {
1409
1023
  transformFn: transformSDKFloatToRESTFloat,
1410
- paths: [
1411
- { path: "sort.origin.latitude" },
1412
- { path: "sort.origin.longitude" },
1413
- { path: "query.sort.origin.latitude" },
1414
- { path: "query.sort.origin.longitude" }
1415
- ]
1024
+ paths: TRANSFORM_PATHS_8
1416
1025
  }
1417
1026
  ]);
1418
1027
  const metadata = {
@@ -1432,346 +1041,15 @@ function queryPosts(payload) {
1432
1041
  transformResponse: (payload2) => transformPaths(payload2, [
1433
1042
  {
1434
1043
  transformFn: transformRESTTimestampToSDKTimestamp,
1435
- paths: [
1436
- { path: "posts.firstPublishedDate" },
1437
- { path: "posts.lastPublishedDate" },
1438
- { path: "posts.heroImage.urlExpirationDate" },
1439
- { path: "posts.richContent.metadata.createdTimestamp" },
1440
- { path: "posts.richContent.metadata.updatedTimestamp" },
1441
- { path: "posts.moderationDetails.submittedDate" },
1442
- { path: "posts.moderationDetails.moderationDate" },
1443
- { path: "posts.media.wixMedia.image.urlExpirationDate" },
1444
- { path: "posts.media.wixMedia.videoV2.urlExpirationDate" },
1445
- {
1446
- path: "posts.media.wixMedia.videoV2.resolutions.urlExpirationDate"
1447
- },
1448
- {
1449
- path: "posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
1450
- },
1451
- {
1452
- path: "posts.media.wixMedia.videoV2.posters.urlExpirationDate"
1453
- }
1454
- ]
1044
+ paths: TRANSFORM_PATHS_5
1455
1045
  },
1456
1046
  {
1457
1047
  transformFn: transformRESTBytesToSDKBytes,
1458
- paths: [{ path: "posts.richContentCompressed" }]
1048
+ paths: TRANSFORM_PATHS_6
1459
1049
  },
1460
1050
  {
1461
1051
  transformFn: transformRESTFloatToSDKFloat,
1462
- paths: [
1463
- { path: "posts.heroImage.focalPoint.x" },
1464
- { path: "posts.heroImage.focalPoint.y" },
1465
- { path: "posts.media.wixMedia.image.focalPoint.x" },
1466
- { path: "posts.media.wixMedia.image.focalPoint.y" },
1467
- {
1468
- path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
1469
- },
1470
- {
1471
- path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
1472
- },
1473
- { path: "posts.media.wixMedia.videoV2.posters.focalPoint.x" },
1474
- { path: "posts.media.wixMedia.videoV2.posters.focalPoint.y" },
1475
- { path: "posts.metrics.averageRating" },
1476
- {
1477
- path: "posts.richContent.nodes.buttonData.styles.background.gradient.centerX"
1478
- },
1479
- {
1480
- path: "posts.richContent.nodes.buttonData.styles.background.gradient.centerY"
1481
- },
1482
- {
1483
- path: "posts.richContent.nodes.buttonData.styles.background.gradient.stops.position"
1484
- },
1485
- {
1486
- path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1487
- },
1488
- {
1489
- path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
1490
- },
1491
- {
1492
- path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
1493
- },
1494
- {
1495
- path: "posts.richContent.nodes.galleryData.items.image.media.duration"
1496
- },
1497
- {
1498
- path: "posts.richContent.nodes.galleryData.items.video.media.duration"
1499
- },
1500
- {
1501
- path: "posts.richContent.nodes.galleryData.items.video.thumbnail.duration"
1502
- },
1503
- {
1504
- path: "posts.richContent.nodes.galleryData.options.item.ratio"
1505
- },
1506
- { path: "posts.richContent.nodes.imageData.image.duration" },
1507
- { path: "posts.richContent.nodes.imageData.crop.x" },
1508
- { path: "posts.richContent.nodes.imageData.crop.y" },
1509
- { path: "posts.richContent.nodes.imageData.crop.width" },
1510
- { path: "posts.richContent.nodes.imageData.crop.height" },
1511
- { path: "posts.richContent.nodes.mapData.mapSettings.lat" },
1512
- { path: "posts.richContent.nodes.mapData.mapSettings.lng" },
1513
- { path: "posts.richContent.nodes.pollData.poll.image.duration" },
1514
- {
1515
- path: "posts.richContent.nodes.pollData.poll.options.image.duration"
1516
- },
1517
- {
1518
- path: "posts.richContent.nodes.pollData.design.poll.background.image.duration"
1519
- },
1520
- {
1521
- path: "posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX"
1522
- },
1523
- {
1524
- path: "posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY"
1525
- },
1526
- {
1527
- path: "posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position"
1528
- },
1529
- {
1530
- path: "posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX"
1531
- },
1532
- {
1533
- path: "posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY"
1534
- },
1535
- {
1536
- path: "posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position"
1537
- },
1538
- { path: "posts.richContent.nodes.appEmbedData.image.duration" },
1539
- { path: "posts.richContent.nodes.videoData.video.duration" },
1540
- { path: "posts.richContent.nodes.videoData.thumbnail.duration" },
1541
- { path: "posts.richContent.nodes.audioData.audio.duration" },
1542
- { path: "posts.richContent.nodes.audioData.coverImage.duration" },
1543
- {
1544
- path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
1545
- },
1546
- {
1547
- path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1548
- },
1549
- {
1550
- path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1551
- },
1552
- {
1553
- path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1554
- },
1555
- {
1556
- path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
1557
- },
1558
- {
1559
- path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1560
- },
1561
- {
1562
- path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1563
- },
1564
- {
1565
- path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1566
- },
1567
- {
1568
- path: "posts.richContent.nodes.layoutData.background.gradient.centerX"
1569
- },
1570
- {
1571
- path: "posts.richContent.nodes.layoutData.background.gradient.centerY"
1572
- },
1573
- {
1574
- path: "posts.richContent.nodes.layoutData.background.gradient.stops.position"
1575
- },
1576
- {
1577
- path: "posts.richContent.nodes.layoutData.backdrop.gradient.centerX"
1578
- },
1579
- {
1580
- path: "posts.richContent.nodes.layoutData.backdrop.gradient.centerY"
1581
- },
1582
- {
1583
- path: "posts.richContent.nodes.layoutData.backdrop.gradient.stops.position"
1584
- },
1585
- { path: "posts.richContent.nodes.shapeData.shape.duration" },
1586
- {
1587
- path: "posts.richContent.nodes.cardData.background.gradient.centerX"
1588
- },
1589
- {
1590
- path: "posts.richContent.nodes.cardData.background.gradient.centerY"
1591
- },
1592
- {
1593
- path: "posts.richContent.nodes.cardData.background.gradient.stops.position"
1594
- },
1595
- {
1596
- path: "posts.richContent.nodes.cardData.backgroundImage.media.duration"
1597
- },
1598
- {
1599
- path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1600
- },
1601
- {
1602
- path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1603
- },
1604
- {
1605
- path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1606
- },
1607
- { path: "posts.richContent.nodes.tocData.fontSize" },
1608
- { path: "posts.richContent.nodes.tocData.itemSpacing" },
1609
- {
1610
- path: "posts.richContent.nodes.smartBlockCellData.shape.duration"
1611
- },
1612
- {
1613
- path: "posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX"
1614
- },
1615
- {
1616
- path: "posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY"
1617
- },
1618
- {
1619
- path: "posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position"
1620
- },
1621
- {
1622
- path: "posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX"
1623
- },
1624
- {
1625
- path: "posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY"
1626
- },
1627
- {
1628
- path: "posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position"
1629
- },
1630
- {
1631
- path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX"
1632
- },
1633
- {
1634
- path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY"
1635
- },
1636
- {
1637
- path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position"
1638
- },
1639
- {
1640
- path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX"
1641
- },
1642
- {
1643
- path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY"
1644
- },
1645
- {
1646
- path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position"
1647
- },
1648
- {
1649
- path: "posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX"
1650
- },
1651
- {
1652
- path: "posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY"
1653
- },
1654
- {
1655
- path: "posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position"
1656
- },
1657
- {
1658
- path: "posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX"
1659
- },
1660
- {
1661
- path: "posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY"
1662
- },
1663
- {
1664
- path: "posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position"
1665
- },
1666
- {
1667
- path: "posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX"
1668
- },
1669
- {
1670
- path: "posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY"
1671
- },
1672
- {
1673
- path: "posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position"
1674
- },
1675
- {
1676
- path: "posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX"
1677
- },
1678
- {
1679
- path: "posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY"
1680
- },
1681
- {
1682
- path: "posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position"
1683
- },
1684
- {
1685
- path: "posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX"
1686
- },
1687
- {
1688
- path: "posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY"
1689
- },
1690
- {
1691
- path: "posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position"
1692
- },
1693
- {
1694
- path: "posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX"
1695
- },
1696
- {
1697
- path: "posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY"
1698
- },
1699
- {
1700
- path: "posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position"
1701
- },
1702
- {
1703
- path: "posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX"
1704
- },
1705
- {
1706
- path: "posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY"
1707
- },
1708
- {
1709
- path: "posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position"
1710
- },
1711
- {
1712
- path: "posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX"
1713
- },
1714
- {
1715
- path: "posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY"
1716
- },
1717
- {
1718
- path: "posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position"
1719
- },
1720
- {
1721
- path: "posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX"
1722
- },
1723
- {
1724
- path: "posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY"
1725
- },
1726
- {
1727
- path: "posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position"
1728
- },
1729
- {
1730
- path: "posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX"
1731
- },
1732
- {
1733
- path: "posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY"
1734
- },
1735
- {
1736
- path: "posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position"
1737
- },
1738
- {
1739
- path: "posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX"
1740
- },
1741
- {
1742
- path: "posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY"
1743
- },
1744
- {
1745
- path: "posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position"
1746
- },
1747
- {
1748
- path: "posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX"
1749
- },
1750
- {
1751
- path: "posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY"
1752
- },
1753
- {
1754
- path: "posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position"
1755
- },
1756
- {
1757
- path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX"
1758
- },
1759
- {
1760
- path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY"
1761
- },
1762
- {
1763
- path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position"
1764
- },
1765
- {
1766
- path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX"
1767
- },
1768
- {
1769
- path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY"
1770
- },
1771
- {
1772
- path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position"
1773
- }
1774
- ]
1052
+ paths: TRANSFORM_PATHS_7
1775
1053
  }
1776
1054
  ])
1777
1055
  };
@@ -1798,7 +1076,7 @@ function getPostMetrics(payload) {
1798
1076
  transformResponse: (payload2) => transformPaths(payload2, [
1799
1077
  {
1800
1078
  transformFn: transformRESTFloatToSDKFloat,
1801
- paths: [{ path: "metrics.averageRating" }]
1079
+ paths: TRANSFORM_PATHS_9
1802
1080
  }
1803
1081
  ])
1804
1082
  };
@@ -1834,6 +1112,24 @@ import { transformRESTVideoV2ToSDKVideoV2 } from "@wix/sdk-runtime/transformatio
1834
1112
  import { transformRESTPageURLToSDKPageURL } from "@wix/sdk-runtime/transformations/page-url";
1835
1113
  import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
1836
1114
  import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
1115
+ var TRANSFORM_PATHS_02 = [
1116
+ { path: "post.url" },
1117
+ { path: "post.translations.url" }
1118
+ ];
1119
+ var TRANSFORM_PATHS_12 = [
1120
+ { path: "post.heroImage" },
1121
+ { path: "post.media.wixMedia.image" }
1122
+ ];
1123
+ var TRANSFORM_PATHS_22 = [{ path: "post.media.wixMedia.videoV2" }];
1124
+ var TRANSFORM_PATHS_32 = [
1125
+ { path: "posts.url" },
1126
+ { path: "posts.translations.url" }
1127
+ ];
1128
+ var TRANSFORM_PATHS_42 = [
1129
+ { path: "posts.heroImage" },
1130
+ { path: "posts.media.wixMedia.image" }
1131
+ ];
1132
+ var TRANSFORM_PATHS_52 = [{ path: "posts.media.wixMedia.videoV2" }];
1837
1133
  var NodeType = /* @__PURE__ */ ((NodeType2) => {
1838
1134
  NodeType2["PARAGRAPH"] = "PARAGRAPH";
1839
1135
  NodeType2["TEXT"] = "TEXT";
@@ -2373,17 +1669,14 @@ var Order = /* @__PURE__ */ ((Order2) => {
2373
1669
  Order2["NEWEST"] = "NEWEST";
2374
1670
  return Order2;
2375
1671
  })(Order || {});
2376
- var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
2377
- GetPostsSort2["FEED"] = "FEED";
2378
- GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
2379
- GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
2380
- GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
2381
- GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
2382
- GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
2383
- GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
2384
- GetPostsSort2["RATING"] = "RATING";
2385
- return GetPostsSort2;
2386
- })(GetPostsSort || {});
1672
+ var Field = /* @__PURE__ */ ((Field2) => {
1673
+ Field2["UNKNOWN"] = "UNKNOWN";
1674
+ Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
1675
+ Field2["LIKE_COUNT"] = "LIKE_COUNT";
1676
+ Field2["VIEW_COUNT"] = "VIEW_COUNT";
1677
+ Field2["RATING_COUNT"] = "RATING_COUNT";
1678
+ return Field2;
1679
+ })(Field || {});
2387
1680
  var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
2388
1681
  PostFieldField2["UNKNOWN"] = "UNKNOWN";
2389
1682
  PostFieldField2["COUNTERS"] = "COUNTERS";
@@ -2407,14 +1700,17 @@ var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
2407
1700
  PostFieldField2["IMAGE"] = "IMAGE";
2408
1701
  return PostFieldField2;
2409
1702
  })(PostFieldField || {});
2410
- var Field = /* @__PURE__ */ ((Field2) => {
2411
- Field2["UNKNOWN"] = "UNKNOWN";
2412
- Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
2413
- Field2["LIKE_COUNT"] = "LIKE_COUNT";
2414
- Field2["VIEW_COUNT"] = "VIEW_COUNT";
2415
- Field2["RATING_COUNT"] = "RATING_COUNT";
2416
- return Field2;
2417
- })(Field || {});
1703
+ var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
1704
+ GetPostsSort2["FEED"] = "FEED";
1705
+ GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
1706
+ GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
1707
+ GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
1708
+ GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
1709
+ GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
1710
+ GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
1711
+ GetPostsSort2["RATING"] = "RATING";
1712
+ return GetPostsSort2;
1713
+ })(GetPostsSort || {});
2418
1714
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
2419
1715
  SortOrder2["ASC"] = "ASC";
2420
1716
  SortOrder2["DESC"] = "DESC";
@@ -2499,22 +1795,19 @@ async function getPost2(postId, options) {
2499
1795
  transformPaths2(result.data, [
2500
1796
  {
2501
1797
  transformFn: transformRESTPageURLToSDKPageURL,
2502
- paths: [{ path: "post.url" }, { path: "post.translations.url" }]
1798
+ paths: TRANSFORM_PATHS_02
2503
1799
  },
2504
1800
  {
2505
1801
  transformFn: transformRESTImageToSDKImage,
2506
- paths: [
2507
- { path: "post.heroImage" },
2508
- { path: "post.media.wixMedia.image" }
2509
- ]
1802
+ paths: TRANSFORM_PATHS_12
2510
1803
  },
2511
1804
  {
2512
1805
  transformFn: transformRESTVideoV2ToSDKVideoV2,
2513
- paths: [{ path: "post.media.wixMedia.videoV2" }]
1806
+ paths: TRANSFORM_PATHS_22
2514
1807
  }
2515
1808
  ]),
2516
- ["post.richContent"]
2517
- )?.post;
1809
+ ["post.richContent", "post.rich_content"]
1810
+ );
2518
1811
  } catch (err) {
2519
1812
  const transformedError = sdkTransformError(
2520
1813
  err,
@@ -2547,21 +1840,18 @@ async function getPostBySlug2(slug, options) {
2547
1840
  transformPaths2(result.data, [
2548
1841
  {
2549
1842
  transformFn: transformRESTPageURLToSDKPageURL,
2550
- paths: [{ path: "post.url" }, { path: "post.translations.url" }]
1843
+ paths: TRANSFORM_PATHS_02
2551
1844
  },
2552
1845
  {
2553
1846
  transformFn: transformRESTImageToSDKImage,
2554
- paths: [
2555
- { path: "post.heroImage" },
2556
- { path: "post.media.wixMedia.image" }
2557
- ]
1847
+ paths: TRANSFORM_PATHS_12
2558
1848
  },
2559
1849
  {
2560
1850
  transformFn: transformRESTVideoV2ToSDKVideoV2,
2561
- paths: [{ path: "post.media.wixMedia.videoV2" }]
1851
+ paths: TRANSFORM_PATHS_22
2562
1852
  }
2563
1853
  ]),
2564
- ["post.richContent"]
1854
+ ["post.richContent", "post.rich_content"]
2565
1855
  );
2566
1856
  } catch (err) {
2567
1857
  const transformedError = sdkTransformError(
@@ -2606,21 +1896,18 @@ async function listPosts2(options) {
2606
1896
  transformPaths2(result.data, [
2607
1897
  {
2608
1898
  transformFn: transformRESTPageURLToSDKPageURL,
2609
- paths: [{ path: "posts.url" }, { path: "posts.translations.url" }]
1899
+ paths: TRANSFORM_PATHS_32
2610
1900
  },
2611
1901
  {
2612
1902
  transformFn: transformRESTImageToSDKImage,
2613
- paths: [
2614
- { path: "posts.heroImage" },
2615
- { path: "posts.media.wixMedia.image" }
2616
- ]
1903
+ paths: TRANSFORM_PATHS_42
2617
1904
  },
2618
1905
  {
2619
1906
  transformFn: transformRESTVideoV2ToSDKVideoV2,
2620
- paths: [{ path: "posts.media.wixMedia.videoV2" }]
1907
+ paths: TRANSFORM_PATHS_52
2621
1908
  }
2622
1909
  ]),
2623
- ["posts.richContent"]
1910
+ ["posts.richContent", "posts.rich_content"]
2624
1911
  );
2625
1912
  } catch (err) {
2626
1913
  const transformedError = sdkTransformError(
@@ -2676,21 +1963,18 @@ function queryPosts2(options) {
2676
1963
  transformPaths2(data, [
2677
1964
  {
2678
1965
  transformFn: transformRESTPageURLToSDKPageURL,
2679
- paths: [{ path: "posts.url" }, { path: "posts.translations.url" }]
1966
+ paths: TRANSFORM_PATHS_32
2680
1967
  },
2681
1968
  {
2682
1969
  transformFn: transformRESTImageToSDKImage,
2683
- paths: [
2684
- { path: "posts.heroImage" },
2685
- { path: "posts.media.wixMedia.image" }
2686
- ]
1970
+ paths: TRANSFORM_PATHS_42
2687
1971
  },
2688
1972
  {
2689
1973
  transformFn: transformRESTVideoV2ToSDKVideoV2,
2690
- paths: [{ path: "posts.media.wixMedia.videoV2" }]
1974
+ paths: TRANSFORM_PATHS_52
2691
1975
  }
2692
1976
  ]),
2693
- ["posts.richContent"]
1977
+ ["posts.richContent", "posts.rich_content"]
2694
1978
  );
2695
1979
  return {
2696
1980
  items: transformedData?.posts,
@@ -2724,21 +2008,18 @@ async function typedQueryPosts(query, options) {
2724
2008
  transformPaths2(result.data, [
2725
2009
  {
2726
2010
  transformFn: transformRESTPageURLToSDKPageURL,
2727
- paths: [{ path: "posts.url" }, { path: "posts.translations.url" }]
2011
+ paths: TRANSFORM_PATHS_32
2728
2012
  },
2729
2013
  {
2730
2014
  transformFn: transformRESTImageToSDKImage,
2731
- paths: [
2732
- { path: "posts.heroImage" },
2733
- { path: "posts.media.wixMedia.image" }
2734
- ]
2015
+ paths: TRANSFORM_PATHS_42
2735
2016
  },
2736
2017
  {
2737
2018
  transformFn: transformRESTVideoV2ToSDKVideoV2,
2738
- paths: [{ path: "posts.media.wixMedia.videoV2" }]
2019
+ paths: TRANSFORM_PATHS_52
2739
2020
  }
2740
2021
  ]),
2741
- ["posts.richContent"]
2022
+ ["posts.richContent", "posts.rich_content"]
2742
2023
  );
2743
2024
  } catch (err) {
2744
2025
  const transformedError = sdkTransformError(