@wix/auto_sdk_online-programs_sections 1.0.25 → 1.0.27
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.
- package/build/cjs/index.d.ts +3 -3
- package/build/cjs/index.js +43 -399
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +6 -43
- package/build/cjs/index.typings.js +43 -399
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +3 -71
- package/build/cjs/meta.js +22 -241
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +3 -3
- package/build/es/index.mjs +43 -399
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +6 -43
- package/build/es/index.typings.mjs +43 -399
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +3 -71
- package/build/es/meta.mjs +22 -241
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -3
- package/build/internal/cjs/index.typings.d.ts +6 -134
- package/build/internal/cjs/meta.d.ts +3 -234
- package/build/internal/es/index.d.mts +3 -3
- package/build/internal/es/index.typings.d.mts +6 -134
- package/build/internal/es/meta.d.mts +3 -234
- package/package.json +2 -2
|
@@ -163,27 +163,12 @@ function createSection(payload) {
|
|
|
163
163
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
164
164
|
paths: [
|
|
165
165
|
{ path: "section.createdDate" },
|
|
166
|
-
{ path: "section.updatedDate" }
|
|
167
|
-
{ path: "section.description.image.urlExpirationDate" },
|
|
168
|
-
{ path: "section.description.video.urlExpirationDate" },
|
|
169
|
-
{ path: "section.description.video.resolutions.urlExpirationDate" },
|
|
170
|
-
{
|
|
171
|
-
path: "section.description.video.resolutions.poster.urlExpirationDate"
|
|
172
|
-
},
|
|
173
|
-
{ path: "section.description.video.posters.urlExpirationDate" }
|
|
166
|
+
{ path: "section.updatedDate" }
|
|
174
167
|
]
|
|
175
168
|
},
|
|
176
169
|
{
|
|
177
170
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
178
|
-
paths: [
|
|
179
|
-
{ path: "section.ordering" },
|
|
180
|
-
{ path: "section.description.image.focalPoint.x" },
|
|
181
|
-
{ path: "section.description.image.focalPoint.y" },
|
|
182
|
-
{ path: "section.description.video.resolutions.poster.focalPoint.x" },
|
|
183
|
-
{ path: "section.description.video.resolutions.poster.focalPoint.y" },
|
|
184
|
-
{ path: "section.description.video.posters.focalPoint.x" },
|
|
185
|
-
{ path: "section.description.video.posters.focalPoint.y" }
|
|
186
|
-
]
|
|
171
|
+
paths: [{ path: "section.ordering" }]
|
|
187
172
|
}
|
|
188
173
|
]);
|
|
189
174
|
const metadata = {
|
|
@@ -205,33 +190,12 @@ function createSection(payload) {
|
|
|
205
190
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
206
191
|
paths: [
|
|
207
192
|
{ path: "section.createdDate" },
|
|
208
|
-
{ path: "section.updatedDate" }
|
|
209
|
-
{ path: "section.description.image.urlExpirationDate" },
|
|
210
|
-
{ path: "section.description.video.urlExpirationDate" },
|
|
211
|
-
{
|
|
212
|
-
path: "section.description.video.resolutions.urlExpirationDate"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
path: "section.description.video.resolutions.poster.urlExpirationDate"
|
|
216
|
-
},
|
|
217
|
-
{ path: "section.description.video.posters.urlExpirationDate" }
|
|
193
|
+
{ path: "section.updatedDate" }
|
|
218
194
|
]
|
|
219
195
|
},
|
|
220
196
|
{
|
|
221
197
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
222
|
-
paths: [
|
|
223
|
-
{ path: "section.ordering" },
|
|
224
|
-
{ path: "section.description.image.focalPoint.x" },
|
|
225
|
-
{ path: "section.description.image.focalPoint.y" },
|
|
226
|
-
{
|
|
227
|
-
path: "section.description.video.resolutions.poster.focalPoint.x"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
path: "section.description.video.resolutions.poster.focalPoint.y"
|
|
231
|
-
},
|
|
232
|
-
{ path: "section.description.video.posters.focalPoint.x" },
|
|
233
|
-
{ path: "section.description.video.posters.focalPoint.y" }
|
|
234
|
-
]
|
|
198
|
+
paths: [{ path: "section.ordering" }]
|
|
235
199
|
}
|
|
236
200
|
])
|
|
237
201
|
};
|
|
@@ -246,31 +210,12 @@ function bulkCreateSections(payload) {
|
|
|
246
210
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
247
211
|
paths: [
|
|
248
212
|
{ path: "sections.createdDate" },
|
|
249
|
-
{ path: "sections.updatedDate" }
|
|
250
|
-
{ path: "sections.description.image.urlExpirationDate" },
|
|
251
|
-
{ path: "sections.description.video.urlExpirationDate" },
|
|
252
|
-
{ path: "sections.description.video.resolutions.urlExpirationDate" },
|
|
253
|
-
{
|
|
254
|
-
path: "sections.description.video.resolutions.poster.urlExpirationDate"
|
|
255
|
-
},
|
|
256
|
-
{ path: "sections.description.video.posters.urlExpirationDate" }
|
|
213
|
+
{ path: "sections.updatedDate" }
|
|
257
214
|
]
|
|
258
215
|
},
|
|
259
216
|
{
|
|
260
217
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
261
|
-
paths: [
|
|
262
|
-
{ path: "sections.ordering" },
|
|
263
|
-
{ path: "sections.description.image.focalPoint.x" },
|
|
264
|
-
{ path: "sections.description.image.focalPoint.y" },
|
|
265
|
-
{
|
|
266
|
-
path: "sections.description.video.resolutions.poster.focalPoint.x"
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
path: "sections.description.video.resolutions.poster.focalPoint.y"
|
|
270
|
-
},
|
|
271
|
-
{ path: "sections.description.video.posters.focalPoint.x" },
|
|
272
|
-
{ path: "sections.description.video.posters.focalPoint.y" }
|
|
273
|
-
]
|
|
218
|
+
paths: [{ path: "sections.ordering" }]
|
|
274
219
|
}
|
|
275
220
|
]);
|
|
276
221
|
const metadata = {
|
|
@@ -292,35 +237,12 @@ function bulkCreateSections(payload) {
|
|
|
292
237
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
293
238
|
paths: [
|
|
294
239
|
{ path: "results.item.createdDate" },
|
|
295
|
-
{ path: "results.item.updatedDate" }
|
|
296
|
-
{ path: "results.item.description.image.urlExpirationDate" },
|
|
297
|
-
{ path: "results.item.description.video.urlExpirationDate" },
|
|
298
|
-
{
|
|
299
|
-
path: "results.item.description.video.resolutions.urlExpirationDate"
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
path: "results.item.description.video.resolutions.poster.urlExpirationDate"
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
path: "results.item.description.video.posters.urlExpirationDate"
|
|
306
|
-
}
|
|
240
|
+
{ path: "results.item.updatedDate" }
|
|
307
241
|
]
|
|
308
242
|
},
|
|
309
243
|
{
|
|
310
244
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
311
|
-
paths: [
|
|
312
|
-
{ path: "results.item.ordering" },
|
|
313
|
-
{ path: "results.item.description.image.focalPoint.x" },
|
|
314
|
-
{ path: "results.item.description.image.focalPoint.y" },
|
|
315
|
-
{
|
|
316
|
-
path: "results.item.description.video.resolutions.poster.focalPoint.x"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
path: "results.item.description.video.resolutions.poster.focalPoint.y"
|
|
320
|
-
},
|
|
321
|
-
{ path: "results.item.description.video.posters.focalPoint.x" },
|
|
322
|
-
{ path: "results.item.description.video.posters.focalPoint.y" }
|
|
323
|
-
]
|
|
245
|
+
paths: [{ path: "results.item.ordering" }]
|
|
324
246
|
}
|
|
325
247
|
])
|
|
326
248
|
};
|
|
@@ -349,33 +271,12 @@ function getSection(payload) {
|
|
|
349
271
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
350
272
|
paths: [
|
|
351
273
|
{ path: "section.createdDate" },
|
|
352
|
-
{ path: "section.updatedDate" }
|
|
353
|
-
{ path: "section.description.image.urlExpirationDate" },
|
|
354
|
-
{ path: "section.description.video.urlExpirationDate" },
|
|
355
|
-
{
|
|
356
|
-
path: "section.description.video.resolutions.urlExpirationDate"
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
path: "section.description.video.resolutions.poster.urlExpirationDate"
|
|
360
|
-
},
|
|
361
|
-
{ path: "section.description.video.posters.urlExpirationDate" }
|
|
274
|
+
{ path: "section.updatedDate" }
|
|
362
275
|
]
|
|
363
276
|
},
|
|
364
277
|
{
|
|
365
278
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
366
|
-
paths: [
|
|
367
|
-
{ path: "section.ordering" },
|
|
368
|
-
{ path: "section.description.image.focalPoint.x" },
|
|
369
|
-
{ path: "section.description.image.focalPoint.y" },
|
|
370
|
-
{
|
|
371
|
-
path: "section.description.video.resolutions.poster.focalPoint.x"
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
path: "section.description.video.resolutions.poster.focalPoint.y"
|
|
375
|
-
},
|
|
376
|
-
{ path: "section.description.video.posters.focalPoint.x" },
|
|
377
|
-
{ path: "section.description.video.posters.focalPoint.y" }
|
|
378
|
-
]
|
|
279
|
+
paths: [{ path: "section.ordering" }]
|
|
379
280
|
}
|
|
380
281
|
])
|
|
381
282
|
};
|
|
@@ -394,27 +295,12 @@ function updateSection(payload) {
|
|
|
394
295
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
395
296
|
paths: [
|
|
396
297
|
{ path: "section.createdDate" },
|
|
397
|
-
{ path: "section.updatedDate" }
|
|
398
|
-
{ path: "section.description.image.urlExpirationDate" },
|
|
399
|
-
{ path: "section.description.video.urlExpirationDate" },
|
|
400
|
-
{ path: "section.description.video.resolutions.urlExpirationDate" },
|
|
401
|
-
{
|
|
402
|
-
path: "section.description.video.resolutions.poster.urlExpirationDate"
|
|
403
|
-
},
|
|
404
|
-
{ path: "section.description.video.posters.urlExpirationDate" }
|
|
298
|
+
{ path: "section.updatedDate" }
|
|
405
299
|
]
|
|
406
300
|
},
|
|
407
301
|
{
|
|
408
302
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
409
|
-
paths: [
|
|
410
|
-
{ path: "section.ordering" },
|
|
411
|
-
{ path: "section.description.image.focalPoint.x" },
|
|
412
|
-
{ path: "section.description.image.focalPoint.y" },
|
|
413
|
-
{ path: "section.description.video.resolutions.poster.focalPoint.x" },
|
|
414
|
-
{ path: "section.description.video.resolutions.poster.focalPoint.y" },
|
|
415
|
-
{ path: "section.description.video.posters.focalPoint.x" },
|
|
416
|
-
{ path: "section.description.video.posters.focalPoint.y" }
|
|
417
|
-
]
|
|
303
|
+
paths: [{ path: "section.ordering" }]
|
|
418
304
|
}
|
|
419
305
|
]);
|
|
420
306
|
const metadata = {
|
|
@@ -436,33 +322,12 @@ function updateSection(payload) {
|
|
|
436
322
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
437
323
|
paths: [
|
|
438
324
|
{ path: "section.createdDate" },
|
|
439
|
-
{ path: "section.updatedDate" }
|
|
440
|
-
{ path: "section.description.image.urlExpirationDate" },
|
|
441
|
-
{ path: "section.description.video.urlExpirationDate" },
|
|
442
|
-
{
|
|
443
|
-
path: "section.description.video.resolutions.urlExpirationDate"
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
path: "section.description.video.resolutions.poster.urlExpirationDate"
|
|
447
|
-
},
|
|
448
|
-
{ path: "section.description.video.posters.urlExpirationDate" }
|
|
325
|
+
{ path: "section.updatedDate" }
|
|
449
326
|
]
|
|
450
327
|
},
|
|
451
328
|
{
|
|
452
329
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
453
|
-
paths: [
|
|
454
|
-
{ path: "section.ordering" },
|
|
455
|
-
{ path: "section.description.image.focalPoint.x" },
|
|
456
|
-
{ path: "section.description.image.focalPoint.y" },
|
|
457
|
-
{
|
|
458
|
-
path: "section.description.video.resolutions.poster.focalPoint.x"
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
path: "section.description.video.resolutions.poster.focalPoint.y"
|
|
462
|
-
},
|
|
463
|
-
{ path: "section.description.video.posters.focalPoint.x" },
|
|
464
|
-
{ path: "section.description.video.posters.focalPoint.y" }
|
|
465
|
-
]
|
|
330
|
+
paths: [{ path: "section.ordering" }]
|
|
466
331
|
}
|
|
467
332
|
])
|
|
468
333
|
};
|
|
@@ -521,33 +386,12 @@ function querySections(payload) {
|
|
|
521
386
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
522
387
|
paths: [
|
|
523
388
|
{ path: "sections.createdDate" },
|
|
524
|
-
{ path: "sections.updatedDate" }
|
|
525
|
-
{ path: "sections.description.image.urlExpirationDate" },
|
|
526
|
-
{ path: "sections.description.video.urlExpirationDate" },
|
|
527
|
-
{
|
|
528
|
-
path: "sections.description.video.resolutions.urlExpirationDate"
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
path: "sections.description.video.resolutions.poster.urlExpirationDate"
|
|
532
|
-
},
|
|
533
|
-
{ path: "sections.description.video.posters.urlExpirationDate" }
|
|
389
|
+
{ path: "sections.updatedDate" }
|
|
534
390
|
]
|
|
535
391
|
},
|
|
536
392
|
{
|
|
537
393
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
538
|
-
paths: [
|
|
539
|
-
{ path: "sections.ordering" },
|
|
540
|
-
{ path: "sections.description.image.focalPoint.x" },
|
|
541
|
-
{ path: "sections.description.image.focalPoint.y" },
|
|
542
|
-
{
|
|
543
|
-
path: "sections.description.video.resolutions.poster.focalPoint.x"
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
path: "sections.description.video.resolutions.poster.focalPoint.y"
|
|
547
|
-
},
|
|
548
|
-
{ path: "sections.description.video.posters.focalPoint.x" },
|
|
549
|
-
{ path: "sections.description.video.posters.focalPoint.y" }
|
|
550
|
-
]
|
|
394
|
+
paths: [{ path: "sections.ordering" }]
|
|
551
395
|
}
|
|
552
396
|
])
|
|
553
397
|
};
|
|
@@ -576,33 +420,12 @@ function listSections(payload) {
|
|
|
576
420
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
577
421
|
paths: [
|
|
578
422
|
{ path: "sections.createdDate" },
|
|
579
|
-
{ path: "sections.updatedDate" }
|
|
580
|
-
{ path: "sections.description.image.urlExpirationDate" },
|
|
581
|
-
{ path: "sections.description.video.urlExpirationDate" },
|
|
582
|
-
{
|
|
583
|
-
path: "sections.description.video.resolutions.urlExpirationDate"
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
path: "sections.description.video.resolutions.poster.urlExpirationDate"
|
|
587
|
-
},
|
|
588
|
-
{ path: "sections.description.video.posters.urlExpirationDate" }
|
|
423
|
+
{ path: "sections.updatedDate" }
|
|
589
424
|
]
|
|
590
425
|
},
|
|
591
426
|
{
|
|
592
427
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
593
|
-
paths: [
|
|
594
|
-
{ path: "sections.ordering" },
|
|
595
|
-
{ path: "sections.description.image.focalPoint.x" },
|
|
596
|
-
{ path: "sections.description.image.focalPoint.y" },
|
|
597
|
-
{
|
|
598
|
-
path: "sections.description.video.resolutions.poster.focalPoint.x"
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
path: "sections.description.video.resolutions.poster.focalPoint.y"
|
|
602
|
-
},
|
|
603
|
-
{ path: "sections.description.video.posters.focalPoint.x" },
|
|
604
|
-
{ path: "sections.description.video.posters.focalPoint.y" }
|
|
605
|
-
]
|
|
428
|
+
paths: [{ path: "sections.ordering" }]
|
|
606
429
|
}
|
|
607
430
|
])
|
|
608
431
|
};
|
|
@@ -631,33 +454,12 @@ function cloneSection(payload) {
|
|
|
631
454
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
632
455
|
paths: [
|
|
633
456
|
{ path: "section.createdDate" },
|
|
634
|
-
{ path: "section.updatedDate" }
|
|
635
|
-
{ path: "section.description.image.urlExpirationDate" },
|
|
636
|
-
{ path: "section.description.video.urlExpirationDate" },
|
|
637
|
-
{
|
|
638
|
-
path: "section.description.video.resolutions.urlExpirationDate"
|
|
639
|
-
},
|
|
640
|
-
{
|
|
641
|
-
path: "section.description.video.resolutions.poster.urlExpirationDate"
|
|
642
|
-
},
|
|
643
|
-
{ path: "section.description.video.posters.urlExpirationDate" }
|
|
457
|
+
{ path: "section.updatedDate" }
|
|
644
458
|
]
|
|
645
459
|
},
|
|
646
460
|
{
|
|
647
461
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
648
|
-
paths: [
|
|
649
|
-
{ path: "section.ordering" },
|
|
650
|
-
{ path: "section.description.image.focalPoint.x" },
|
|
651
|
-
{ path: "section.description.image.focalPoint.y" },
|
|
652
|
-
{
|
|
653
|
-
path: "section.description.video.resolutions.poster.focalPoint.x"
|
|
654
|
-
},
|
|
655
|
-
{
|
|
656
|
-
path: "section.description.video.resolutions.poster.focalPoint.y"
|
|
657
|
-
},
|
|
658
|
-
{ path: "section.description.video.posters.focalPoint.x" },
|
|
659
|
-
{ path: "section.description.video.posters.focalPoint.y" }
|
|
660
|
-
]
|
|
462
|
+
paths: [{ path: "section.ordering" }]
|
|
661
463
|
}
|
|
662
464
|
])
|
|
663
465
|
};
|
|
@@ -686,33 +488,12 @@ function moveSection(payload) {
|
|
|
686
488
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
687
489
|
paths: [
|
|
688
490
|
{ path: "section.createdDate" },
|
|
689
|
-
{ path: "section.updatedDate" }
|
|
690
|
-
{ path: "section.description.image.urlExpirationDate" },
|
|
691
|
-
{ path: "section.description.video.urlExpirationDate" },
|
|
692
|
-
{
|
|
693
|
-
path: "section.description.video.resolutions.urlExpirationDate"
|
|
694
|
-
},
|
|
695
|
-
{
|
|
696
|
-
path: "section.description.video.resolutions.poster.urlExpirationDate"
|
|
697
|
-
},
|
|
698
|
-
{ path: "section.description.video.posters.urlExpirationDate" }
|
|
491
|
+
{ path: "section.updatedDate" }
|
|
699
492
|
]
|
|
700
493
|
},
|
|
701
494
|
{
|
|
702
495
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
703
|
-
paths: [
|
|
704
|
-
{ path: "section.ordering" },
|
|
705
|
-
{ path: "section.description.image.focalPoint.x" },
|
|
706
|
-
{ path: "section.description.image.focalPoint.y" },
|
|
707
|
-
{
|
|
708
|
-
path: "section.description.video.resolutions.poster.focalPoint.x"
|
|
709
|
-
},
|
|
710
|
-
{
|
|
711
|
-
path: "section.description.video.resolutions.poster.focalPoint.y"
|
|
712
|
-
},
|
|
713
|
-
{ path: "section.description.video.posters.focalPoint.x" },
|
|
714
|
-
{ path: "section.description.video.posters.focalPoint.y" }
|
|
715
|
-
]
|
|
496
|
+
paths: [{ path: "section.ordering" }]
|
|
716
497
|
}
|
|
717
498
|
])
|
|
718
499
|
};
|
|
@@ -722,10 +503,6 @@ function moveSection(payload) {
|
|
|
722
503
|
}
|
|
723
504
|
|
|
724
505
|
// src/online-programs-v3-section-sections.universal.ts
|
|
725
|
-
var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
726
|
-
var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
727
|
-
var import_video_v2 = require("@wix/sdk-runtime/transformations/video-v2");
|
|
728
|
-
var import_video_v22 = require("@wix/sdk-runtime/transformations/video-v2");
|
|
729
506
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
730
507
|
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
731
508
|
var State = /* @__PURE__ */ ((State2) => {
|
|
@@ -779,39 +556,16 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
779
556
|
})(WebhookIdentityType || {});
|
|
780
557
|
async function createSection2(section, options) {
|
|
781
558
|
const { httpClient, sideEffects } = arguments[2];
|
|
782
|
-
const payload = (0,
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
}),
|
|
787
|
-
[
|
|
788
|
-
{
|
|
789
|
-
transformFn: import_image.transformSDKImageToRESTImage,
|
|
790
|
-
paths: [{ path: "section.description.image" }]
|
|
791
|
-
},
|
|
792
|
-
{
|
|
793
|
-
transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
|
|
794
|
-
paths: [{ path: "section.description.video" }]
|
|
795
|
-
}
|
|
796
|
-
]
|
|
797
|
-
);
|
|
559
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
560
|
+
section,
|
|
561
|
+
fields: options?.fields
|
|
562
|
+
});
|
|
798
563
|
const reqOpts = createSection(payload);
|
|
799
564
|
sideEffects?.onSiteCall?.();
|
|
800
565
|
try {
|
|
801
566
|
const result = await httpClient.request(reqOpts);
|
|
802
567
|
sideEffects?.onSuccess?.(result);
|
|
803
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
804
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
805
|
-
{
|
|
806
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
807
|
-
paths: [{ path: "section.description.image" }]
|
|
808
|
-
},
|
|
809
|
-
{
|
|
810
|
-
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
811
|
-
paths: [{ path: "section.description.video" }]
|
|
812
|
-
}
|
|
813
|
-
])
|
|
814
|
-
)?.section;
|
|
568
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.section;
|
|
815
569
|
} catch (err) {
|
|
816
570
|
const transformedError = (0, import_transform_error.transformError)(
|
|
817
571
|
err,
|
|
@@ -828,39 +582,16 @@ async function createSection2(section, options) {
|
|
|
828
582
|
}
|
|
829
583
|
async function bulkCreateSections2(sections, options) {
|
|
830
584
|
const { httpClient, sideEffects } = arguments[2];
|
|
831
|
-
const payload = (0,
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
}),
|
|
836
|
-
[
|
|
837
|
-
{
|
|
838
|
-
transformFn: import_image.transformSDKImageToRESTImage,
|
|
839
|
-
paths: [{ path: "sections.description.image" }]
|
|
840
|
-
},
|
|
841
|
-
{
|
|
842
|
-
transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
|
|
843
|
-
paths: [{ path: "sections.description.video" }]
|
|
844
|
-
}
|
|
845
|
-
]
|
|
846
|
-
);
|
|
585
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
586
|
+
sections,
|
|
587
|
+
fields: options?.fields
|
|
588
|
+
});
|
|
847
589
|
const reqOpts = bulkCreateSections(payload);
|
|
848
590
|
sideEffects?.onSiteCall?.();
|
|
849
591
|
try {
|
|
850
592
|
const result = await httpClient.request(reqOpts);
|
|
851
593
|
sideEffects?.onSuccess?.(result);
|
|
852
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
853
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
854
|
-
{
|
|
855
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
856
|
-
paths: [{ path: "results.item.description.image" }]
|
|
857
|
-
},
|
|
858
|
-
{
|
|
859
|
-
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
860
|
-
paths: [{ path: "results.item.description.video" }]
|
|
861
|
-
}
|
|
862
|
-
])
|
|
863
|
-
);
|
|
594
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
864
595
|
} catch (err) {
|
|
865
596
|
const transformedError = (0, import_transform_error.transformError)(
|
|
866
597
|
err,
|
|
@@ -887,18 +618,7 @@ async function getSection2(sectionId, options) {
|
|
|
887
618
|
try {
|
|
888
619
|
const result = await httpClient.request(reqOpts);
|
|
889
620
|
sideEffects?.onSuccess?.(result);
|
|
890
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
891
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
892
|
-
{
|
|
893
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
894
|
-
paths: [{ path: "section.description.image" }]
|
|
895
|
-
},
|
|
896
|
-
{
|
|
897
|
-
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
898
|
-
paths: [{ path: "section.description.video" }]
|
|
899
|
-
}
|
|
900
|
-
])
|
|
901
|
-
)?.section;
|
|
621
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.section;
|
|
902
622
|
} catch (err) {
|
|
903
623
|
const transformedError = (0, import_transform_error.transformError)(
|
|
904
624
|
err,
|
|
@@ -919,39 +639,16 @@ async function getSection2(sectionId, options) {
|
|
|
919
639
|
}
|
|
920
640
|
async function updateSection2(_id, options) {
|
|
921
641
|
const { httpClient, sideEffects } = arguments[2];
|
|
922
|
-
const payload = (0,
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
}),
|
|
927
|
-
[
|
|
928
|
-
{
|
|
929
|
-
transformFn: import_image.transformSDKImageToRESTImage,
|
|
930
|
-
paths: [{ path: "section.description.image" }]
|
|
931
|
-
},
|
|
932
|
-
{
|
|
933
|
-
transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
|
|
934
|
-
paths: [{ path: "section.description.video" }]
|
|
935
|
-
}
|
|
936
|
-
]
|
|
937
|
-
);
|
|
642
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
643
|
+
section: { ...options?.section, id: _id },
|
|
644
|
+
fields: options?.fields
|
|
645
|
+
});
|
|
938
646
|
const reqOpts = updateSection(payload);
|
|
939
647
|
sideEffects?.onSiteCall?.();
|
|
940
648
|
try {
|
|
941
649
|
const result = await httpClient.request(reqOpts);
|
|
942
650
|
sideEffects?.onSuccess?.(result);
|
|
943
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
944
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
945
|
-
{
|
|
946
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
947
|
-
paths: [{ path: "section.description.image" }]
|
|
948
|
-
},
|
|
949
|
-
{
|
|
950
|
-
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
951
|
-
paths: [{ path: "section.description.video" }]
|
|
952
|
-
}
|
|
953
|
-
])
|
|
954
|
-
)?.section;
|
|
651
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.section;
|
|
955
652
|
} catch (err) {
|
|
956
653
|
const transformedError = (0, import_transform_error.transformError)(
|
|
957
654
|
err,
|
|
@@ -1020,16 +717,7 @@ function querySections2(options) {
|
|
|
1020
717
|
},
|
|
1021
718
|
responseTransformer: ({ data }) => {
|
|
1022
719
|
const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1023
|
-
(0, import_transform_paths2.transformPaths)(data, [
|
|
1024
|
-
{
|
|
1025
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1026
|
-
paths: [{ path: "sections.description.image" }]
|
|
1027
|
-
},
|
|
1028
|
-
{
|
|
1029
|
-
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1030
|
-
paths: [{ path: "sections.description.video" }]
|
|
1031
|
-
}
|
|
1032
|
-
])
|
|
720
|
+
(0, import_transform_paths2.transformPaths)(data, [])
|
|
1033
721
|
);
|
|
1034
722
|
return {
|
|
1035
723
|
items: transformedData?.sections,
|
|
@@ -1059,18 +747,7 @@ async function typedQuerySections(query, options) {
|
|
|
1059
747
|
try {
|
|
1060
748
|
const result = await httpClient.request(reqOpts);
|
|
1061
749
|
sideEffects?.onSuccess?.(result);
|
|
1062
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1063
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1064
|
-
{
|
|
1065
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1066
|
-
paths: [{ path: "sections.description.image" }]
|
|
1067
|
-
},
|
|
1068
|
-
{
|
|
1069
|
-
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1070
|
-
paths: [{ path: "sections.description.video" }]
|
|
1071
|
-
}
|
|
1072
|
-
])
|
|
1073
|
-
);
|
|
750
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1074
751
|
} catch (err) {
|
|
1075
752
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1076
753
|
err,
|
|
@@ -1100,18 +777,7 @@ async function listSections2(programId, options) {
|
|
|
1100
777
|
try {
|
|
1101
778
|
const result = await httpClient.request(reqOpts);
|
|
1102
779
|
sideEffects?.onSuccess?.(result);
|
|
1103
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1104
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1105
|
-
{
|
|
1106
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1107
|
-
paths: [{ path: "sections.description.image" }]
|
|
1108
|
-
},
|
|
1109
|
-
{
|
|
1110
|
-
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1111
|
-
paths: [{ path: "sections.description.video" }]
|
|
1112
|
-
}
|
|
1113
|
-
])
|
|
1114
|
-
);
|
|
780
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1115
781
|
} catch (err) {
|
|
1116
782
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1117
783
|
err,
|
|
@@ -1141,18 +807,7 @@ async function cloneSection2(sectionId, options) {
|
|
|
1141
807
|
try {
|
|
1142
808
|
const result = await httpClient.request(reqOpts);
|
|
1143
809
|
sideEffects?.onSuccess?.(result);
|
|
1144
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1145
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1146
|
-
{
|
|
1147
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1148
|
-
paths: [{ path: "section.description.image" }]
|
|
1149
|
-
},
|
|
1150
|
-
{
|
|
1151
|
-
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1152
|
-
paths: [{ path: "section.description.video" }]
|
|
1153
|
-
}
|
|
1154
|
-
])
|
|
1155
|
-
);
|
|
810
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1156
811
|
} catch (err) {
|
|
1157
812
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1158
813
|
err,
|
|
@@ -1180,18 +835,7 @@ async function moveSection2(options) {
|
|
|
1180
835
|
try {
|
|
1181
836
|
const result = await httpClient.request(reqOpts);
|
|
1182
837
|
sideEffects?.onSuccess?.(result);
|
|
1183
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1184
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1185
|
-
{
|
|
1186
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1187
|
-
paths: [{ path: "section.description.image" }]
|
|
1188
|
-
},
|
|
1189
|
-
{
|
|
1190
|
-
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1191
|
-
paths: [{ path: "section.description.video" }]
|
|
1192
|
-
}
|
|
1193
|
-
])
|
|
1194
|
-
);
|
|
838
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1195
839
|
} catch (err) {
|
|
1196
840
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1197
841
|
err,
|