@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
|
@@ -122,27 +122,12 @@ function createSection(payload) {
|
|
|
122
122
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
123
123
|
paths: [
|
|
124
124
|
{ path: "section.createdDate" },
|
|
125
|
-
{ path: "section.updatedDate" }
|
|
126
|
-
{ path: "section.description.image.urlExpirationDate" },
|
|
127
|
-
{ path: "section.description.video.urlExpirationDate" },
|
|
128
|
-
{ path: "section.description.video.resolutions.urlExpirationDate" },
|
|
129
|
-
{
|
|
130
|
-
path: "section.description.video.resolutions.poster.urlExpirationDate"
|
|
131
|
-
},
|
|
132
|
-
{ path: "section.description.video.posters.urlExpirationDate" }
|
|
125
|
+
{ path: "section.updatedDate" }
|
|
133
126
|
]
|
|
134
127
|
},
|
|
135
128
|
{
|
|
136
129
|
transformFn: transformSDKFloatToRESTFloat,
|
|
137
|
-
paths: [
|
|
138
|
-
{ path: "section.ordering" },
|
|
139
|
-
{ path: "section.description.image.focalPoint.x" },
|
|
140
|
-
{ path: "section.description.image.focalPoint.y" },
|
|
141
|
-
{ path: "section.description.video.resolutions.poster.focalPoint.x" },
|
|
142
|
-
{ path: "section.description.video.resolutions.poster.focalPoint.y" },
|
|
143
|
-
{ path: "section.description.video.posters.focalPoint.x" },
|
|
144
|
-
{ path: "section.description.video.posters.focalPoint.y" }
|
|
145
|
-
]
|
|
130
|
+
paths: [{ path: "section.ordering" }]
|
|
146
131
|
}
|
|
147
132
|
]);
|
|
148
133
|
const metadata = {
|
|
@@ -164,33 +149,12 @@ function createSection(payload) {
|
|
|
164
149
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
165
150
|
paths: [
|
|
166
151
|
{ path: "section.createdDate" },
|
|
167
|
-
{ path: "section.updatedDate" }
|
|
168
|
-
{ path: "section.description.image.urlExpirationDate" },
|
|
169
|
-
{ path: "section.description.video.urlExpirationDate" },
|
|
170
|
-
{
|
|
171
|
-
path: "section.description.video.resolutions.urlExpirationDate"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
path: "section.description.video.resolutions.poster.urlExpirationDate"
|
|
175
|
-
},
|
|
176
|
-
{ path: "section.description.video.posters.urlExpirationDate" }
|
|
152
|
+
{ path: "section.updatedDate" }
|
|
177
153
|
]
|
|
178
154
|
},
|
|
179
155
|
{
|
|
180
156
|
transformFn: transformRESTFloatToSDKFloat,
|
|
181
|
-
paths: [
|
|
182
|
-
{ path: "section.ordering" },
|
|
183
|
-
{ path: "section.description.image.focalPoint.x" },
|
|
184
|
-
{ path: "section.description.image.focalPoint.y" },
|
|
185
|
-
{
|
|
186
|
-
path: "section.description.video.resolutions.poster.focalPoint.x"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
path: "section.description.video.resolutions.poster.focalPoint.y"
|
|
190
|
-
},
|
|
191
|
-
{ path: "section.description.video.posters.focalPoint.x" },
|
|
192
|
-
{ path: "section.description.video.posters.focalPoint.y" }
|
|
193
|
-
]
|
|
157
|
+
paths: [{ path: "section.ordering" }]
|
|
194
158
|
}
|
|
195
159
|
])
|
|
196
160
|
};
|
|
@@ -205,31 +169,12 @@ function bulkCreateSections(payload) {
|
|
|
205
169
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
206
170
|
paths: [
|
|
207
171
|
{ path: "sections.createdDate" },
|
|
208
|
-
{ path: "sections.updatedDate" }
|
|
209
|
-
{ path: "sections.description.image.urlExpirationDate" },
|
|
210
|
-
{ path: "sections.description.video.urlExpirationDate" },
|
|
211
|
-
{ path: "sections.description.video.resolutions.urlExpirationDate" },
|
|
212
|
-
{
|
|
213
|
-
path: "sections.description.video.resolutions.poster.urlExpirationDate"
|
|
214
|
-
},
|
|
215
|
-
{ path: "sections.description.video.posters.urlExpirationDate" }
|
|
172
|
+
{ path: "sections.updatedDate" }
|
|
216
173
|
]
|
|
217
174
|
},
|
|
218
175
|
{
|
|
219
176
|
transformFn: transformSDKFloatToRESTFloat,
|
|
220
|
-
paths: [
|
|
221
|
-
{ path: "sections.ordering" },
|
|
222
|
-
{ path: "sections.description.image.focalPoint.x" },
|
|
223
|
-
{ path: "sections.description.image.focalPoint.y" },
|
|
224
|
-
{
|
|
225
|
-
path: "sections.description.video.resolutions.poster.focalPoint.x"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
path: "sections.description.video.resolutions.poster.focalPoint.y"
|
|
229
|
-
},
|
|
230
|
-
{ path: "sections.description.video.posters.focalPoint.x" },
|
|
231
|
-
{ path: "sections.description.video.posters.focalPoint.y" }
|
|
232
|
-
]
|
|
177
|
+
paths: [{ path: "sections.ordering" }]
|
|
233
178
|
}
|
|
234
179
|
]);
|
|
235
180
|
const metadata = {
|
|
@@ -251,35 +196,12 @@ function bulkCreateSections(payload) {
|
|
|
251
196
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
252
197
|
paths: [
|
|
253
198
|
{ path: "results.item.createdDate" },
|
|
254
|
-
{ path: "results.item.updatedDate" }
|
|
255
|
-
{ path: "results.item.description.image.urlExpirationDate" },
|
|
256
|
-
{ path: "results.item.description.video.urlExpirationDate" },
|
|
257
|
-
{
|
|
258
|
-
path: "results.item.description.video.resolutions.urlExpirationDate"
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
path: "results.item.description.video.resolutions.poster.urlExpirationDate"
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
path: "results.item.description.video.posters.urlExpirationDate"
|
|
265
|
-
}
|
|
199
|
+
{ path: "results.item.updatedDate" }
|
|
266
200
|
]
|
|
267
201
|
},
|
|
268
202
|
{
|
|
269
203
|
transformFn: transformRESTFloatToSDKFloat,
|
|
270
|
-
paths: [
|
|
271
|
-
{ path: "results.item.ordering" },
|
|
272
|
-
{ path: "results.item.description.image.focalPoint.x" },
|
|
273
|
-
{ path: "results.item.description.image.focalPoint.y" },
|
|
274
|
-
{
|
|
275
|
-
path: "results.item.description.video.resolutions.poster.focalPoint.x"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
path: "results.item.description.video.resolutions.poster.focalPoint.y"
|
|
279
|
-
},
|
|
280
|
-
{ path: "results.item.description.video.posters.focalPoint.x" },
|
|
281
|
-
{ path: "results.item.description.video.posters.focalPoint.y" }
|
|
282
|
-
]
|
|
204
|
+
paths: [{ path: "results.item.ordering" }]
|
|
283
205
|
}
|
|
284
206
|
])
|
|
285
207
|
};
|
|
@@ -308,33 +230,12 @@ function getSection(payload) {
|
|
|
308
230
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
309
231
|
paths: [
|
|
310
232
|
{ path: "section.createdDate" },
|
|
311
|
-
{ path: "section.updatedDate" }
|
|
312
|
-
{ path: "section.description.image.urlExpirationDate" },
|
|
313
|
-
{ path: "section.description.video.urlExpirationDate" },
|
|
314
|
-
{
|
|
315
|
-
path: "section.description.video.resolutions.urlExpirationDate"
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
path: "section.description.video.resolutions.poster.urlExpirationDate"
|
|
319
|
-
},
|
|
320
|
-
{ path: "section.description.video.posters.urlExpirationDate" }
|
|
233
|
+
{ path: "section.updatedDate" }
|
|
321
234
|
]
|
|
322
235
|
},
|
|
323
236
|
{
|
|
324
237
|
transformFn: transformRESTFloatToSDKFloat,
|
|
325
|
-
paths: [
|
|
326
|
-
{ path: "section.ordering" },
|
|
327
|
-
{ path: "section.description.image.focalPoint.x" },
|
|
328
|
-
{ path: "section.description.image.focalPoint.y" },
|
|
329
|
-
{
|
|
330
|
-
path: "section.description.video.resolutions.poster.focalPoint.x"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
path: "section.description.video.resolutions.poster.focalPoint.y"
|
|
334
|
-
},
|
|
335
|
-
{ path: "section.description.video.posters.focalPoint.x" },
|
|
336
|
-
{ path: "section.description.video.posters.focalPoint.y" }
|
|
337
|
-
]
|
|
238
|
+
paths: [{ path: "section.ordering" }]
|
|
338
239
|
}
|
|
339
240
|
])
|
|
340
241
|
};
|
|
@@ -353,27 +254,12 @@ function updateSection(payload) {
|
|
|
353
254
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
354
255
|
paths: [
|
|
355
256
|
{ path: "section.createdDate" },
|
|
356
|
-
{ path: "section.updatedDate" }
|
|
357
|
-
{ path: "section.description.image.urlExpirationDate" },
|
|
358
|
-
{ path: "section.description.video.urlExpirationDate" },
|
|
359
|
-
{ path: "section.description.video.resolutions.urlExpirationDate" },
|
|
360
|
-
{
|
|
361
|
-
path: "section.description.video.resolutions.poster.urlExpirationDate"
|
|
362
|
-
},
|
|
363
|
-
{ path: "section.description.video.posters.urlExpirationDate" }
|
|
257
|
+
{ path: "section.updatedDate" }
|
|
364
258
|
]
|
|
365
259
|
},
|
|
366
260
|
{
|
|
367
261
|
transformFn: transformSDKFloatToRESTFloat,
|
|
368
|
-
paths: [
|
|
369
|
-
{ path: "section.ordering" },
|
|
370
|
-
{ path: "section.description.image.focalPoint.x" },
|
|
371
|
-
{ path: "section.description.image.focalPoint.y" },
|
|
372
|
-
{ path: "section.description.video.resolutions.poster.focalPoint.x" },
|
|
373
|
-
{ path: "section.description.video.resolutions.poster.focalPoint.y" },
|
|
374
|
-
{ path: "section.description.video.posters.focalPoint.x" },
|
|
375
|
-
{ path: "section.description.video.posters.focalPoint.y" }
|
|
376
|
-
]
|
|
262
|
+
paths: [{ path: "section.ordering" }]
|
|
377
263
|
}
|
|
378
264
|
]);
|
|
379
265
|
const metadata = {
|
|
@@ -395,33 +281,12 @@ function updateSection(payload) {
|
|
|
395
281
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
396
282
|
paths: [
|
|
397
283
|
{ path: "section.createdDate" },
|
|
398
|
-
{ path: "section.updatedDate" }
|
|
399
|
-
{ path: "section.description.image.urlExpirationDate" },
|
|
400
|
-
{ path: "section.description.video.urlExpirationDate" },
|
|
401
|
-
{
|
|
402
|
-
path: "section.description.video.resolutions.urlExpirationDate"
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
path: "section.description.video.resolutions.poster.urlExpirationDate"
|
|
406
|
-
},
|
|
407
|
-
{ path: "section.description.video.posters.urlExpirationDate" }
|
|
284
|
+
{ path: "section.updatedDate" }
|
|
408
285
|
]
|
|
409
286
|
},
|
|
410
287
|
{
|
|
411
288
|
transformFn: transformRESTFloatToSDKFloat,
|
|
412
|
-
paths: [
|
|
413
|
-
{ path: "section.ordering" },
|
|
414
|
-
{ path: "section.description.image.focalPoint.x" },
|
|
415
|
-
{ path: "section.description.image.focalPoint.y" },
|
|
416
|
-
{
|
|
417
|
-
path: "section.description.video.resolutions.poster.focalPoint.x"
|
|
418
|
-
},
|
|
419
|
-
{
|
|
420
|
-
path: "section.description.video.resolutions.poster.focalPoint.y"
|
|
421
|
-
},
|
|
422
|
-
{ path: "section.description.video.posters.focalPoint.x" },
|
|
423
|
-
{ path: "section.description.video.posters.focalPoint.y" }
|
|
424
|
-
]
|
|
289
|
+
paths: [{ path: "section.ordering" }]
|
|
425
290
|
}
|
|
426
291
|
])
|
|
427
292
|
};
|
|
@@ -480,33 +345,12 @@ function querySections(payload) {
|
|
|
480
345
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
481
346
|
paths: [
|
|
482
347
|
{ path: "sections.createdDate" },
|
|
483
|
-
{ path: "sections.updatedDate" }
|
|
484
|
-
{ path: "sections.description.image.urlExpirationDate" },
|
|
485
|
-
{ path: "sections.description.video.urlExpirationDate" },
|
|
486
|
-
{
|
|
487
|
-
path: "sections.description.video.resolutions.urlExpirationDate"
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
path: "sections.description.video.resolutions.poster.urlExpirationDate"
|
|
491
|
-
},
|
|
492
|
-
{ path: "sections.description.video.posters.urlExpirationDate" }
|
|
348
|
+
{ path: "sections.updatedDate" }
|
|
493
349
|
]
|
|
494
350
|
},
|
|
495
351
|
{
|
|
496
352
|
transformFn: transformRESTFloatToSDKFloat,
|
|
497
|
-
paths: [
|
|
498
|
-
{ path: "sections.ordering" },
|
|
499
|
-
{ path: "sections.description.image.focalPoint.x" },
|
|
500
|
-
{ path: "sections.description.image.focalPoint.y" },
|
|
501
|
-
{
|
|
502
|
-
path: "sections.description.video.resolutions.poster.focalPoint.x"
|
|
503
|
-
},
|
|
504
|
-
{
|
|
505
|
-
path: "sections.description.video.resolutions.poster.focalPoint.y"
|
|
506
|
-
},
|
|
507
|
-
{ path: "sections.description.video.posters.focalPoint.x" },
|
|
508
|
-
{ path: "sections.description.video.posters.focalPoint.y" }
|
|
509
|
-
]
|
|
353
|
+
paths: [{ path: "sections.ordering" }]
|
|
510
354
|
}
|
|
511
355
|
])
|
|
512
356
|
};
|
|
@@ -535,33 +379,12 @@ function listSections(payload) {
|
|
|
535
379
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
536
380
|
paths: [
|
|
537
381
|
{ path: "sections.createdDate" },
|
|
538
|
-
{ path: "sections.updatedDate" }
|
|
539
|
-
{ path: "sections.description.image.urlExpirationDate" },
|
|
540
|
-
{ path: "sections.description.video.urlExpirationDate" },
|
|
541
|
-
{
|
|
542
|
-
path: "sections.description.video.resolutions.urlExpirationDate"
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
path: "sections.description.video.resolutions.poster.urlExpirationDate"
|
|
546
|
-
},
|
|
547
|
-
{ path: "sections.description.video.posters.urlExpirationDate" }
|
|
382
|
+
{ path: "sections.updatedDate" }
|
|
548
383
|
]
|
|
549
384
|
},
|
|
550
385
|
{
|
|
551
386
|
transformFn: transformRESTFloatToSDKFloat,
|
|
552
|
-
paths: [
|
|
553
|
-
{ path: "sections.ordering" },
|
|
554
|
-
{ path: "sections.description.image.focalPoint.x" },
|
|
555
|
-
{ path: "sections.description.image.focalPoint.y" },
|
|
556
|
-
{
|
|
557
|
-
path: "sections.description.video.resolutions.poster.focalPoint.x"
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
path: "sections.description.video.resolutions.poster.focalPoint.y"
|
|
561
|
-
},
|
|
562
|
-
{ path: "sections.description.video.posters.focalPoint.x" },
|
|
563
|
-
{ path: "sections.description.video.posters.focalPoint.y" }
|
|
564
|
-
]
|
|
387
|
+
paths: [{ path: "sections.ordering" }]
|
|
565
388
|
}
|
|
566
389
|
])
|
|
567
390
|
};
|
|
@@ -590,33 +413,12 @@ function cloneSection(payload) {
|
|
|
590
413
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
591
414
|
paths: [
|
|
592
415
|
{ path: "section.createdDate" },
|
|
593
|
-
{ path: "section.updatedDate" }
|
|
594
|
-
{ path: "section.description.image.urlExpirationDate" },
|
|
595
|
-
{ path: "section.description.video.urlExpirationDate" },
|
|
596
|
-
{
|
|
597
|
-
path: "section.description.video.resolutions.urlExpirationDate"
|
|
598
|
-
},
|
|
599
|
-
{
|
|
600
|
-
path: "section.description.video.resolutions.poster.urlExpirationDate"
|
|
601
|
-
},
|
|
602
|
-
{ path: "section.description.video.posters.urlExpirationDate" }
|
|
416
|
+
{ path: "section.updatedDate" }
|
|
603
417
|
]
|
|
604
418
|
},
|
|
605
419
|
{
|
|
606
420
|
transformFn: transformRESTFloatToSDKFloat,
|
|
607
|
-
paths: [
|
|
608
|
-
{ path: "section.ordering" },
|
|
609
|
-
{ path: "section.description.image.focalPoint.x" },
|
|
610
|
-
{ path: "section.description.image.focalPoint.y" },
|
|
611
|
-
{
|
|
612
|
-
path: "section.description.video.resolutions.poster.focalPoint.x"
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
path: "section.description.video.resolutions.poster.focalPoint.y"
|
|
616
|
-
},
|
|
617
|
-
{ path: "section.description.video.posters.focalPoint.x" },
|
|
618
|
-
{ path: "section.description.video.posters.focalPoint.y" }
|
|
619
|
-
]
|
|
421
|
+
paths: [{ path: "section.ordering" }]
|
|
620
422
|
}
|
|
621
423
|
])
|
|
622
424
|
};
|
|
@@ -645,33 +447,12 @@ function moveSection(payload) {
|
|
|
645
447
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
646
448
|
paths: [
|
|
647
449
|
{ path: "section.createdDate" },
|
|
648
|
-
{ path: "section.updatedDate" }
|
|
649
|
-
{ path: "section.description.image.urlExpirationDate" },
|
|
650
|
-
{ path: "section.description.video.urlExpirationDate" },
|
|
651
|
-
{
|
|
652
|
-
path: "section.description.video.resolutions.urlExpirationDate"
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
path: "section.description.video.resolutions.poster.urlExpirationDate"
|
|
656
|
-
},
|
|
657
|
-
{ path: "section.description.video.posters.urlExpirationDate" }
|
|
450
|
+
{ path: "section.updatedDate" }
|
|
658
451
|
]
|
|
659
452
|
},
|
|
660
453
|
{
|
|
661
454
|
transformFn: transformRESTFloatToSDKFloat,
|
|
662
|
-
paths: [
|
|
663
|
-
{ path: "section.ordering" },
|
|
664
|
-
{ path: "section.description.image.focalPoint.x" },
|
|
665
|
-
{ path: "section.description.image.focalPoint.y" },
|
|
666
|
-
{
|
|
667
|
-
path: "section.description.video.resolutions.poster.focalPoint.x"
|
|
668
|
-
},
|
|
669
|
-
{
|
|
670
|
-
path: "section.description.video.resolutions.poster.focalPoint.y"
|
|
671
|
-
},
|
|
672
|
-
{ path: "section.description.video.posters.focalPoint.x" },
|
|
673
|
-
{ path: "section.description.video.posters.focalPoint.y" }
|
|
674
|
-
]
|
|
455
|
+
paths: [{ path: "section.ordering" }]
|
|
675
456
|
}
|
|
676
457
|
])
|
|
677
458
|
};
|
|
@@ -681,10 +462,6 @@ function moveSection(payload) {
|
|
|
681
462
|
}
|
|
682
463
|
|
|
683
464
|
// src/online-programs-v3-section-sections.universal.ts
|
|
684
|
-
import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/image";
|
|
685
|
-
import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
|
|
686
|
-
import { transformSDKVideoV2ToRESTVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
|
|
687
|
-
import { transformRESTVideoV2ToSDKVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
|
|
688
465
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
689
466
|
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
690
467
|
var State = /* @__PURE__ */ ((State2) => {
|
|
@@ -738,39 +515,16 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
738
515
|
})(WebhookIdentityType || {});
|
|
739
516
|
async function createSection2(section, options) {
|
|
740
517
|
const { httpClient, sideEffects } = arguments[2];
|
|
741
|
-
const payload =
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
}),
|
|
746
|
-
[
|
|
747
|
-
{
|
|
748
|
-
transformFn: transformSDKImageToRESTImage,
|
|
749
|
-
paths: [{ path: "section.description.image" }]
|
|
750
|
-
},
|
|
751
|
-
{
|
|
752
|
-
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
753
|
-
paths: [{ path: "section.description.video" }]
|
|
754
|
-
}
|
|
755
|
-
]
|
|
756
|
-
);
|
|
518
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
519
|
+
section,
|
|
520
|
+
fields: options?.fields
|
|
521
|
+
});
|
|
757
522
|
const reqOpts = createSection(payload);
|
|
758
523
|
sideEffects?.onSiteCall?.();
|
|
759
524
|
try {
|
|
760
525
|
const result = await httpClient.request(reqOpts);
|
|
761
526
|
sideEffects?.onSuccess?.(result);
|
|
762
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
763
|
-
transformPaths2(result.data, [
|
|
764
|
-
{
|
|
765
|
-
transformFn: transformRESTImageToSDKImage,
|
|
766
|
-
paths: [{ path: "section.description.image" }]
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
770
|
-
paths: [{ path: "section.description.video" }]
|
|
771
|
-
}
|
|
772
|
-
])
|
|
773
|
-
)?.section;
|
|
527
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.section;
|
|
774
528
|
} catch (err) {
|
|
775
529
|
const transformedError = sdkTransformError(
|
|
776
530
|
err,
|
|
@@ -787,39 +541,16 @@ async function createSection2(section, options) {
|
|
|
787
541
|
}
|
|
788
542
|
async function bulkCreateSections2(sections, options) {
|
|
789
543
|
const { httpClient, sideEffects } = arguments[2];
|
|
790
|
-
const payload =
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
}),
|
|
795
|
-
[
|
|
796
|
-
{
|
|
797
|
-
transformFn: transformSDKImageToRESTImage,
|
|
798
|
-
paths: [{ path: "sections.description.image" }]
|
|
799
|
-
},
|
|
800
|
-
{
|
|
801
|
-
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
802
|
-
paths: [{ path: "sections.description.video" }]
|
|
803
|
-
}
|
|
804
|
-
]
|
|
805
|
-
);
|
|
544
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
545
|
+
sections,
|
|
546
|
+
fields: options?.fields
|
|
547
|
+
});
|
|
806
548
|
const reqOpts = bulkCreateSections(payload);
|
|
807
549
|
sideEffects?.onSiteCall?.();
|
|
808
550
|
try {
|
|
809
551
|
const result = await httpClient.request(reqOpts);
|
|
810
552
|
sideEffects?.onSuccess?.(result);
|
|
811
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
812
|
-
transformPaths2(result.data, [
|
|
813
|
-
{
|
|
814
|
-
transformFn: transformRESTImageToSDKImage,
|
|
815
|
-
paths: [{ path: "results.item.description.image" }]
|
|
816
|
-
},
|
|
817
|
-
{
|
|
818
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
819
|
-
paths: [{ path: "results.item.description.video" }]
|
|
820
|
-
}
|
|
821
|
-
])
|
|
822
|
-
);
|
|
553
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
823
554
|
} catch (err) {
|
|
824
555
|
const transformedError = sdkTransformError(
|
|
825
556
|
err,
|
|
@@ -846,18 +577,7 @@ async function getSection2(sectionId, options) {
|
|
|
846
577
|
try {
|
|
847
578
|
const result = await httpClient.request(reqOpts);
|
|
848
579
|
sideEffects?.onSuccess?.(result);
|
|
849
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
850
|
-
transformPaths2(result.data, [
|
|
851
|
-
{
|
|
852
|
-
transformFn: transformRESTImageToSDKImage,
|
|
853
|
-
paths: [{ path: "section.description.image" }]
|
|
854
|
-
},
|
|
855
|
-
{
|
|
856
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
857
|
-
paths: [{ path: "section.description.video" }]
|
|
858
|
-
}
|
|
859
|
-
])
|
|
860
|
-
)?.section;
|
|
580
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.section;
|
|
861
581
|
} catch (err) {
|
|
862
582
|
const transformedError = sdkTransformError(
|
|
863
583
|
err,
|
|
@@ -878,39 +598,16 @@ async function getSection2(sectionId, options) {
|
|
|
878
598
|
}
|
|
879
599
|
async function updateSection2(_id, options) {
|
|
880
600
|
const { httpClient, sideEffects } = arguments[2];
|
|
881
|
-
const payload =
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
}),
|
|
886
|
-
[
|
|
887
|
-
{
|
|
888
|
-
transformFn: transformSDKImageToRESTImage,
|
|
889
|
-
paths: [{ path: "section.description.image" }]
|
|
890
|
-
},
|
|
891
|
-
{
|
|
892
|
-
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
893
|
-
paths: [{ path: "section.description.video" }]
|
|
894
|
-
}
|
|
895
|
-
]
|
|
896
|
-
);
|
|
601
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
602
|
+
section: { ...options?.section, id: _id },
|
|
603
|
+
fields: options?.fields
|
|
604
|
+
});
|
|
897
605
|
const reqOpts = updateSection(payload);
|
|
898
606
|
sideEffects?.onSiteCall?.();
|
|
899
607
|
try {
|
|
900
608
|
const result = await httpClient.request(reqOpts);
|
|
901
609
|
sideEffects?.onSuccess?.(result);
|
|
902
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
903
|
-
transformPaths2(result.data, [
|
|
904
|
-
{
|
|
905
|
-
transformFn: transformRESTImageToSDKImage,
|
|
906
|
-
paths: [{ path: "section.description.image" }]
|
|
907
|
-
},
|
|
908
|
-
{
|
|
909
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
910
|
-
paths: [{ path: "section.description.video" }]
|
|
911
|
-
}
|
|
912
|
-
])
|
|
913
|
-
)?.section;
|
|
610
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.section;
|
|
914
611
|
} catch (err) {
|
|
915
612
|
const transformedError = sdkTransformError(
|
|
916
613
|
err,
|
|
@@ -979,16 +676,7 @@ function querySections2(options) {
|
|
|
979
676
|
},
|
|
980
677
|
responseTransformer: ({ data }) => {
|
|
981
678
|
const transformedData = renameKeysFromRESTResponseToSDKResponse(
|
|
982
|
-
transformPaths2(data, [
|
|
983
|
-
{
|
|
984
|
-
transformFn: transformRESTImageToSDKImage,
|
|
985
|
-
paths: [{ path: "sections.description.image" }]
|
|
986
|
-
},
|
|
987
|
-
{
|
|
988
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
989
|
-
paths: [{ path: "sections.description.video" }]
|
|
990
|
-
}
|
|
991
|
-
])
|
|
679
|
+
transformPaths2(data, [])
|
|
992
680
|
);
|
|
993
681
|
return {
|
|
994
682
|
items: transformedData?.sections,
|
|
@@ -1018,18 +706,7 @@ async function typedQuerySections(query, options) {
|
|
|
1018
706
|
try {
|
|
1019
707
|
const result = await httpClient.request(reqOpts);
|
|
1020
708
|
sideEffects?.onSuccess?.(result);
|
|
1021
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
1022
|
-
transformPaths2(result.data, [
|
|
1023
|
-
{
|
|
1024
|
-
transformFn: transformRESTImageToSDKImage,
|
|
1025
|
-
paths: [{ path: "sections.description.image" }]
|
|
1026
|
-
},
|
|
1027
|
-
{
|
|
1028
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1029
|
-
paths: [{ path: "sections.description.video" }]
|
|
1030
|
-
}
|
|
1031
|
-
])
|
|
1032
|
-
);
|
|
709
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1033
710
|
} catch (err) {
|
|
1034
711
|
const transformedError = sdkTransformError(
|
|
1035
712
|
err,
|
|
@@ -1059,18 +736,7 @@ async function listSections2(programId, options) {
|
|
|
1059
736
|
try {
|
|
1060
737
|
const result = await httpClient.request(reqOpts);
|
|
1061
738
|
sideEffects?.onSuccess?.(result);
|
|
1062
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
1063
|
-
transformPaths2(result.data, [
|
|
1064
|
-
{
|
|
1065
|
-
transformFn: transformRESTImageToSDKImage,
|
|
1066
|
-
paths: [{ path: "sections.description.image" }]
|
|
1067
|
-
},
|
|
1068
|
-
{
|
|
1069
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1070
|
-
paths: [{ path: "sections.description.video" }]
|
|
1071
|
-
}
|
|
1072
|
-
])
|
|
1073
|
-
);
|
|
739
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1074
740
|
} catch (err) {
|
|
1075
741
|
const transformedError = sdkTransformError(
|
|
1076
742
|
err,
|
|
@@ -1100,18 +766,7 @@ async function cloneSection2(sectionId, options) {
|
|
|
1100
766
|
try {
|
|
1101
767
|
const result = await httpClient.request(reqOpts);
|
|
1102
768
|
sideEffects?.onSuccess?.(result);
|
|
1103
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
1104
|
-
transformPaths2(result.data, [
|
|
1105
|
-
{
|
|
1106
|
-
transformFn: transformRESTImageToSDKImage,
|
|
1107
|
-
paths: [{ path: "section.description.image" }]
|
|
1108
|
-
},
|
|
1109
|
-
{
|
|
1110
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1111
|
-
paths: [{ path: "section.description.video" }]
|
|
1112
|
-
}
|
|
1113
|
-
])
|
|
1114
|
-
);
|
|
769
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1115
770
|
} catch (err) {
|
|
1116
771
|
const transformedError = sdkTransformError(
|
|
1117
772
|
err,
|
|
@@ -1139,18 +794,7 @@ async function moveSection2(options) {
|
|
|
1139
794
|
try {
|
|
1140
795
|
const result = await httpClient.request(reqOpts);
|
|
1141
796
|
sideEffects?.onSuccess?.(result);
|
|
1142
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
1143
|
-
transformPaths2(result.data, [
|
|
1144
|
-
{
|
|
1145
|
-
transformFn: transformRESTImageToSDKImage,
|
|
1146
|
-
paths: [{ path: "section.description.image" }]
|
|
1147
|
-
},
|
|
1148
|
-
{
|
|
1149
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1150
|
-
paths: [{ path: "section.description.video" }]
|
|
1151
|
-
}
|
|
1152
|
-
])
|
|
1153
|
-
);
|
|
797
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1154
798
|
} catch (err) {
|
|
1155
799
|
const transformedError = sdkTransformError(
|
|
1156
800
|
err,
|