@wix/auto_sdk_online-programs_sections 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/build/cjs/index.d.ts +109 -0
  2. package/build/cjs/index.js +1478 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1128 -0
  5. package/build/cjs/index.typings.js +1379 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +514 -0
  8. package/build/cjs/meta.js +1018 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/index.d.mts +109 -0
  11. package/build/es/index.mjs +1436 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/index.typings.d.mts +1128 -0
  14. package/build/es/index.typings.mjs +1337 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +514 -0
  17. package/build/es/meta.mjs +981 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/es/package.json +3 -0
  20. package/build/internal/cjs/index.d.ts +109 -0
  21. package/build/internal/cjs/index.js +1478 -0
  22. package/build/internal/cjs/index.js.map +1 -0
  23. package/build/internal/cjs/index.typings.d.ts +1128 -0
  24. package/build/internal/cjs/index.typings.js +1379 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -0
  26. package/build/internal/cjs/meta.d.ts +514 -0
  27. package/build/internal/cjs/meta.js +1018 -0
  28. package/build/internal/cjs/meta.js.map +1 -0
  29. package/build/internal/es/index.d.mts +109 -0
  30. package/build/internal/es/index.mjs +1436 -0
  31. package/build/internal/es/index.mjs.map +1 -0
  32. package/build/internal/es/index.typings.d.mts +1128 -0
  33. package/build/internal/es/index.typings.mjs +1337 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -0
  35. package/build/internal/es/meta.d.mts +514 -0
  36. package/build/internal/es/meta.mjs +981 -0
  37. package/build/internal/es/meta.mjs.map +1 -0
  38. package/meta/package.json +3 -0
  39. package/package.json +54 -0
@@ -0,0 +1,981 @@
1
+ // src/online-programs-v3-section-sections.http.ts
2
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
+ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
4
+ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
5
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
6
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
7
+ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
8
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
9
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
10
+ function resolveWixOnlineprogramsSectionsV3SectionsServiceUrl(opts) {
11
+ const domainToMappings = {
12
+ "bo._base_domain_": [
13
+ {
14
+ srcPath: "/program-sections-service",
15
+ destPath: ""
16
+ }
17
+ ],
18
+ "wixbo.ai": [
19
+ {
20
+ srcPath: "/program-sections-service",
21
+ destPath: ""
22
+ }
23
+ ],
24
+ "wix-bo.com": [
25
+ {
26
+ srcPath: "/program-sections-service",
27
+ destPath: ""
28
+ }
29
+ ],
30
+ "api._api_base_domain_": [
31
+ {
32
+ srcPath: "/program-sections-service",
33
+ destPath: ""
34
+ }
35
+ ],
36
+ "manage._base_domain_": [
37
+ {
38
+ srcPath: "/_api/program-sections-service",
39
+ destPath: ""
40
+ }
41
+ ],
42
+ "www._base_domain_": [
43
+ {
44
+ srcPath: "/_api/program-sections-service",
45
+ destPath: ""
46
+ }
47
+ ],
48
+ "*.dev.wix-code.com": [
49
+ {
50
+ srcPath: "/_api/program-sections-service",
51
+ destPath: ""
52
+ },
53
+ {
54
+ srcPath: "/program-sections-service",
55
+ destPath: ""
56
+ }
57
+ ],
58
+ "editor._base_domain_": [
59
+ {
60
+ srcPath: "/_api/program-sections-service",
61
+ destPath: ""
62
+ }
63
+ ],
64
+ "blocks._base_domain_": [
65
+ {
66
+ srcPath: "/_api/program-sections-service",
67
+ destPath: ""
68
+ }
69
+ ],
70
+ "create.editorx": [
71
+ {
72
+ srcPath: "/_api/program-sections-service",
73
+ destPath: ""
74
+ }
75
+ ],
76
+ "editor.wixapps.net": [
77
+ {
78
+ srcPath: "/_api/program-sections-service",
79
+ destPath: ""
80
+ },
81
+ {
82
+ srcPath: "/program-sections-service",
83
+ destPath: ""
84
+ }
85
+ ],
86
+ _: [
87
+ {
88
+ srcPath: "/program-sections-service",
89
+ destPath: ""
90
+ }
91
+ ],
92
+ "www.wixapis.com": [
93
+ {
94
+ srcPath: "/program-sections-service",
95
+ destPath: ""
96
+ }
97
+ ]
98
+ };
99
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
100
+ }
101
+ var PACKAGE_NAME = "@wix/auto_sdk_online-programs_sections";
102
+ function createSection(payload) {
103
+ function __createSection({ host }) {
104
+ const serializedData = transformPaths(payload, [
105
+ {
106
+ transformFn: transformSDKTimestampToRESTTimestamp,
107
+ paths: [
108
+ { path: "section.createdDate" },
109
+ { path: "section.updatedDate" },
110
+ { path: "section.description.image.urlExpirationDate" },
111
+ { path: "section.description.video.urlExpirationDate" },
112
+ { path: "section.description.video.resolutions.urlExpirationDate" },
113
+ {
114
+ path: "section.description.video.resolutions.poster.urlExpirationDate"
115
+ },
116
+ { path: "section.description.video.posters.urlExpirationDate" }
117
+ ]
118
+ },
119
+ {
120
+ transformFn: transformSDKFloatToRESTFloat,
121
+ paths: [
122
+ { path: "section.ordering" },
123
+ { path: "section.description.image.focalPoint.x" },
124
+ { path: "section.description.image.focalPoint.y" },
125
+ { path: "section.description.video.resolutions.poster.focalPoint.x" },
126
+ { path: "section.description.video.resolutions.poster.focalPoint.y" },
127
+ { path: "section.description.video.posters.focalPoint.x" },
128
+ { path: "section.description.video.posters.focalPoint.y" }
129
+ ]
130
+ }
131
+ ]);
132
+ const metadata = {
133
+ entityFqdn: "wix.online_programs.v3.section",
134
+ method: "POST",
135
+ methodFqn: "wix.onlineprograms.sections.v3.SectionsService.CreateSection",
136
+ packageName: PACKAGE_NAME,
137
+ url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
138
+ protoPath: "/v3/sections",
139
+ data: serializedData,
140
+ host
141
+ }),
142
+ data: serializedData,
143
+ transformResponse: (payload2) => transformPaths(payload2, [
144
+ {
145
+ transformFn: transformRESTTimestampToSDKTimestamp,
146
+ paths: [
147
+ { path: "section.createdDate" },
148
+ { path: "section.updatedDate" },
149
+ { path: "section.description.image.urlExpirationDate" },
150
+ { path: "section.description.video.urlExpirationDate" },
151
+ {
152
+ path: "section.description.video.resolutions.urlExpirationDate"
153
+ },
154
+ {
155
+ path: "section.description.video.resolutions.poster.urlExpirationDate"
156
+ },
157
+ { path: "section.description.video.posters.urlExpirationDate" }
158
+ ]
159
+ },
160
+ {
161
+ transformFn: transformRESTFloatToSDKFloat,
162
+ paths: [
163
+ { path: "section.ordering" },
164
+ { path: "section.description.image.focalPoint.x" },
165
+ { path: "section.description.image.focalPoint.y" },
166
+ {
167
+ path: "section.description.video.resolutions.poster.focalPoint.x"
168
+ },
169
+ {
170
+ path: "section.description.video.resolutions.poster.focalPoint.y"
171
+ },
172
+ { path: "section.description.video.posters.focalPoint.x" },
173
+ { path: "section.description.video.posters.focalPoint.y" }
174
+ ]
175
+ }
176
+ ])
177
+ };
178
+ return metadata;
179
+ }
180
+ return __createSection;
181
+ }
182
+ function bulkCreateSection(payload) {
183
+ function __bulkCreateSection({ host }) {
184
+ const serializedData = transformPaths(payload, [
185
+ {
186
+ transformFn: transformSDKTimestampToRESTTimestamp,
187
+ paths: [
188
+ { path: "sections.createdDate" },
189
+ { path: "sections.updatedDate" },
190
+ { path: "sections.description.image.urlExpirationDate" },
191
+ { path: "sections.description.video.urlExpirationDate" },
192
+ { path: "sections.description.video.resolutions.urlExpirationDate" },
193
+ {
194
+ path: "sections.description.video.resolutions.poster.urlExpirationDate"
195
+ },
196
+ { path: "sections.description.video.posters.urlExpirationDate" }
197
+ ]
198
+ },
199
+ {
200
+ transformFn: transformSDKFloatToRESTFloat,
201
+ paths: [
202
+ { path: "sections.ordering" },
203
+ { path: "sections.description.image.focalPoint.x" },
204
+ { path: "sections.description.image.focalPoint.y" },
205
+ {
206
+ path: "sections.description.video.resolutions.poster.focalPoint.x"
207
+ },
208
+ {
209
+ path: "sections.description.video.resolutions.poster.focalPoint.y"
210
+ },
211
+ { path: "sections.description.video.posters.focalPoint.x" },
212
+ { path: "sections.description.video.posters.focalPoint.y" }
213
+ ]
214
+ }
215
+ ]);
216
+ const metadata = {
217
+ entityFqdn: "wix.online_programs.v3.section",
218
+ method: "POST",
219
+ methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection",
220
+ packageName: PACKAGE_NAME,
221
+ url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
222
+ protoPath: "/v3/bulk/sections/create",
223
+ data: serializedData,
224
+ host
225
+ }),
226
+ data: serializedData,
227
+ transformResponse: (payload2) => transformPaths(payload2, [
228
+ {
229
+ transformFn: transformRESTTimestampToSDKTimestamp,
230
+ paths: [
231
+ { path: "results.item.createdDate" },
232
+ { path: "results.item.updatedDate" },
233
+ { path: "results.item.description.image.urlExpirationDate" },
234
+ { path: "results.item.description.video.urlExpirationDate" },
235
+ {
236
+ path: "results.item.description.video.resolutions.urlExpirationDate"
237
+ },
238
+ {
239
+ path: "results.item.description.video.resolutions.poster.urlExpirationDate"
240
+ },
241
+ {
242
+ path: "results.item.description.video.posters.urlExpirationDate"
243
+ }
244
+ ]
245
+ },
246
+ {
247
+ transformFn: transformRESTFloatToSDKFloat,
248
+ paths: [
249
+ { path: "results.item.ordering" },
250
+ { path: "results.item.description.image.focalPoint.x" },
251
+ { path: "results.item.description.image.focalPoint.y" },
252
+ {
253
+ path: "results.item.description.video.resolutions.poster.focalPoint.x"
254
+ },
255
+ {
256
+ path: "results.item.description.video.resolutions.poster.focalPoint.y"
257
+ },
258
+ { path: "results.item.description.video.posters.focalPoint.x" },
259
+ { path: "results.item.description.video.posters.focalPoint.y" }
260
+ ]
261
+ }
262
+ ])
263
+ };
264
+ return metadata;
265
+ }
266
+ return __bulkCreateSection;
267
+ }
268
+ function bulkCreateSectionMigration(payload) {
269
+ function __bulkCreateSectionMigration({ host }) {
270
+ const serializedData = transformPaths(payload, [
271
+ {
272
+ transformFn: transformSDKTimestampToRESTTimestamp,
273
+ paths: [
274
+ { path: "sections.createdDate" },
275
+ { path: "sections.updatedDate" },
276
+ { path: "sections.description.image.urlExpirationDate" },
277
+ { path: "sections.description.video.urlExpirationDate" },
278
+ { path: "sections.description.video.resolutions.urlExpirationDate" },
279
+ {
280
+ path: "sections.description.video.resolutions.poster.urlExpirationDate"
281
+ },
282
+ { path: "sections.description.video.posters.urlExpirationDate" }
283
+ ]
284
+ },
285
+ {
286
+ transformFn: transformSDKFloatToRESTFloat,
287
+ paths: [
288
+ { path: "sections.ordering" },
289
+ { path: "sections.description.image.focalPoint.x" },
290
+ { path: "sections.description.image.focalPoint.y" },
291
+ {
292
+ path: "sections.description.video.resolutions.poster.focalPoint.x"
293
+ },
294
+ {
295
+ path: "sections.description.video.resolutions.poster.focalPoint.y"
296
+ },
297
+ { path: "sections.description.video.posters.focalPoint.x" },
298
+ { path: "sections.description.video.posters.focalPoint.y" }
299
+ ]
300
+ }
301
+ ]);
302
+ const metadata = {
303
+ entityFqdn: "wix.online_programs.v3.section",
304
+ method: "POST",
305
+ methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSectionMigration",
306
+ packageName: PACKAGE_NAME,
307
+ url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
308
+ protoPath: "/v3/bulk/sections/create/migration",
309
+ data: serializedData,
310
+ host
311
+ }),
312
+ data: serializedData,
313
+ transformResponse: (payload2) => transformPaths(payload2, [
314
+ {
315
+ transformFn: transformRESTTimestampToSDKTimestamp,
316
+ paths: [
317
+ { path: "results.item.createdDate" },
318
+ { path: "results.item.updatedDate" },
319
+ { path: "results.item.description.image.urlExpirationDate" },
320
+ { path: "results.item.description.video.urlExpirationDate" },
321
+ {
322
+ path: "results.item.description.video.resolutions.urlExpirationDate"
323
+ },
324
+ {
325
+ path: "results.item.description.video.resolutions.poster.urlExpirationDate"
326
+ },
327
+ {
328
+ path: "results.item.description.video.posters.urlExpirationDate"
329
+ }
330
+ ]
331
+ },
332
+ {
333
+ transformFn: transformRESTFloatToSDKFloat,
334
+ paths: [
335
+ { path: "results.item.ordering" },
336
+ { path: "results.item.description.image.focalPoint.x" },
337
+ { path: "results.item.description.image.focalPoint.y" },
338
+ {
339
+ path: "results.item.description.video.resolutions.poster.focalPoint.x"
340
+ },
341
+ {
342
+ path: "results.item.description.video.resolutions.poster.focalPoint.y"
343
+ },
344
+ { path: "results.item.description.video.posters.focalPoint.x" },
345
+ { path: "results.item.description.video.posters.focalPoint.y" }
346
+ ]
347
+ }
348
+ ])
349
+ };
350
+ return metadata;
351
+ }
352
+ return __bulkCreateSectionMigration;
353
+ }
354
+ function getSection(payload) {
355
+ function __getSection({ host }) {
356
+ const metadata = {
357
+ entityFqdn: "wix.online_programs.v3.section",
358
+ method: "GET",
359
+ methodFqn: "wix.onlineprograms.sections.v3.SectionsService.GetSection",
360
+ packageName: PACKAGE_NAME,
361
+ url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
362
+ protoPath: "/v3/sections/{sectionId}",
363
+ data: payload,
364
+ host
365
+ }),
366
+ params: toURLSearchParams(payload),
367
+ transformResponse: (payload2) => transformPaths(payload2, [
368
+ {
369
+ transformFn: transformRESTTimestampToSDKTimestamp,
370
+ paths: [
371
+ { path: "section.createdDate" },
372
+ { path: "section.updatedDate" },
373
+ { path: "section.description.image.urlExpirationDate" },
374
+ { path: "section.description.video.urlExpirationDate" },
375
+ {
376
+ path: "section.description.video.resolutions.urlExpirationDate"
377
+ },
378
+ {
379
+ path: "section.description.video.resolutions.poster.urlExpirationDate"
380
+ },
381
+ { path: "section.description.video.posters.urlExpirationDate" }
382
+ ]
383
+ },
384
+ {
385
+ transformFn: transformRESTFloatToSDKFloat,
386
+ paths: [
387
+ { path: "section.ordering" },
388
+ { path: "section.description.image.focalPoint.x" },
389
+ { path: "section.description.image.focalPoint.y" },
390
+ {
391
+ path: "section.description.video.resolutions.poster.focalPoint.x"
392
+ },
393
+ {
394
+ path: "section.description.video.resolutions.poster.focalPoint.y"
395
+ },
396
+ { path: "section.description.video.posters.focalPoint.x" },
397
+ { path: "section.description.video.posters.focalPoint.y" }
398
+ ]
399
+ }
400
+ ])
401
+ };
402
+ return metadata;
403
+ }
404
+ return __getSection;
405
+ }
406
+ function updateSection(payload) {
407
+ function __updateSection({ host }) {
408
+ const serializedData = transformPaths(payload, [
409
+ {
410
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
411
+ paths: [{ path: "fieldMask" }]
412
+ },
413
+ {
414
+ transformFn: transformSDKTimestampToRESTTimestamp,
415
+ paths: [
416
+ { path: "section.createdDate" },
417
+ { path: "section.updatedDate" },
418
+ { path: "section.description.image.urlExpirationDate" },
419
+ { path: "section.description.video.urlExpirationDate" },
420
+ { path: "section.description.video.resolutions.urlExpirationDate" },
421
+ {
422
+ path: "section.description.video.resolutions.poster.urlExpirationDate"
423
+ },
424
+ { path: "section.description.video.posters.urlExpirationDate" }
425
+ ]
426
+ },
427
+ {
428
+ transformFn: transformSDKFloatToRESTFloat,
429
+ paths: [
430
+ { path: "section.ordering" },
431
+ { path: "section.description.image.focalPoint.x" },
432
+ { path: "section.description.image.focalPoint.y" },
433
+ { path: "section.description.video.resolutions.poster.focalPoint.x" },
434
+ { path: "section.description.video.resolutions.poster.focalPoint.y" },
435
+ { path: "section.description.video.posters.focalPoint.x" },
436
+ { path: "section.description.video.posters.focalPoint.y" }
437
+ ]
438
+ }
439
+ ]);
440
+ const metadata = {
441
+ entityFqdn: "wix.online_programs.v3.section",
442
+ method: "PATCH",
443
+ methodFqn: "wix.onlineprograms.sections.v3.SectionsService.UpdateSection",
444
+ packageName: PACKAGE_NAME,
445
+ url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
446
+ protoPath: "/v3/sections/{section.id}",
447
+ data: serializedData,
448
+ host
449
+ }),
450
+ data: serializedData,
451
+ transformResponse: (payload2) => transformPaths(payload2, [
452
+ {
453
+ transformFn: transformRESTTimestampToSDKTimestamp,
454
+ paths: [
455
+ { path: "section.createdDate" },
456
+ { path: "section.updatedDate" },
457
+ { path: "section.description.image.urlExpirationDate" },
458
+ { path: "section.description.video.urlExpirationDate" },
459
+ {
460
+ path: "section.description.video.resolutions.urlExpirationDate"
461
+ },
462
+ {
463
+ path: "section.description.video.resolutions.poster.urlExpirationDate"
464
+ },
465
+ { path: "section.description.video.posters.urlExpirationDate" }
466
+ ]
467
+ },
468
+ {
469
+ transformFn: transformRESTFloatToSDKFloat,
470
+ paths: [
471
+ { path: "section.ordering" },
472
+ { path: "section.description.image.focalPoint.x" },
473
+ { path: "section.description.image.focalPoint.y" },
474
+ {
475
+ path: "section.description.video.resolutions.poster.focalPoint.x"
476
+ },
477
+ {
478
+ path: "section.description.video.resolutions.poster.focalPoint.y"
479
+ },
480
+ { path: "section.description.video.posters.focalPoint.x" },
481
+ { path: "section.description.video.posters.focalPoint.y" }
482
+ ]
483
+ }
484
+ ])
485
+ };
486
+ return metadata;
487
+ }
488
+ return __updateSection;
489
+ }
490
+ function deleteSection(payload) {
491
+ function __deleteSection({ host }) {
492
+ const metadata = {
493
+ entityFqdn: "wix.online_programs.v3.section",
494
+ method: "DELETE",
495
+ methodFqn: "wix.onlineprograms.sections.v3.SectionsService.DeleteSection",
496
+ packageName: PACKAGE_NAME,
497
+ url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
498
+ protoPath: "/v3/sections/{sectionId}",
499
+ data: payload,
500
+ host
501
+ }),
502
+ params: toURLSearchParams(payload)
503
+ };
504
+ return metadata;
505
+ }
506
+ return __deleteSection;
507
+ }
508
+ function querySections(payload) {
509
+ function __querySections({ host }) {
510
+ const metadata = {
511
+ entityFqdn: "wix.online_programs.v3.section",
512
+ method: "POST",
513
+ methodFqn: "wix.onlineprograms.sections.v3.SectionsService.QuerySections",
514
+ packageName: PACKAGE_NAME,
515
+ url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
516
+ protoPath: "/v3/sections/query",
517
+ data: payload,
518
+ host
519
+ }),
520
+ data: payload,
521
+ transformResponse: (payload2) => transformPaths(payload2, [
522
+ {
523
+ transformFn: transformRESTTimestampToSDKTimestamp,
524
+ paths: [
525
+ { path: "sections.createdDate" },
526
+ { path: "sections.updatedDate" },
527
+ { path: "sections.description.image.urlExpirationDate" },
528
+ { path: "sections.description.video.urlExpirationDate" },
529
+ {
530
+ path: "sections.description.video.resolutions.urlExpirationDate"
531
+ },
532
+ {
533
+ path: "sections.description.video.resolutions.poster.urlExpirationDate"
534
+ },
535
+ { path: "sections.description.video.posters.urlExpirationDate" }
536
+ ]
537
+ },
538
+ {
539
+ transformFn: transformRESTFloatToSDKFloat,
540
+ paths: [
541
+ { path: "sections.ordering" },
542
+ { path: "sections.description.image.focalPoint.x" },
543
+ { path: "sections.description.image.focalPoint.y" },
544
+ {
545
+ path: "sections.description.video.resolutions.poster.focalPoint.x"
546
+ },
547
+ {
548
+ path: "sections.description.video.resolutions.poster.focalPoint.y"
549
+ },
550
+ { path: "sections.description.video.posters.focalPoint.x" },
551
+ { path: "sections.description.video.posters.focalPoint.y" }
552
+ ]
553
+ }
554
+ ])
555
+ };
556
+ return metadata;
557
+ }
558
+ return __querySections;
559
+ }
560
+ function listSections(payload) {
561
+ function __listSections({ host }) {
562
+ const metadata = {
563
+ entityFqdn: "wix.online_programs.v3.section",
564
+ method: "GET",
565
+ methodFqn: "wix.onlineprograms.sections.v3.SectionsService.ListSections",
566
+ packageName: PACKAGE_NAME,
567
+ url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
568
+ protoPath: "/v3/sections",
569
+ data: payload,
570
+ host
571
+ }),
572
+ params: toURLSearchParams(payload),
573
+ transformResponse: (payload2) => transformPaths(payload2, [
574
+ {
575
+ transformFn: transformRESTTimestampToSDKTimestamp,
576
+ paths: [
577
+ { path: "sections.createdDate" },
578
+ { path: "sections.updatedDate" },
579
+ { path: "sections.description.image.urlExpirationDate" },
580
+ { path: "sections.description.video.urlExpirationDate" },
581
+ {
582
+ path: "sections.description.video.resolutions.urlExpirationDate"
583
+ },
584
+ {
585
+ path: "sections.description.video.resolutions.poster.urlExpirationDate"
586
+ },
587
+ { path: "sections.description.video.posters.urlExpirationDate" }
588
+ ]
589
+ },
590
+ {
591
+ transformFn: transformRESTFloatToSDKFloat,
592
+ paths: [
593
+ { path: "sections.ordering" },
594
+ { path: "sections.description.image.focalPoint.x" },
595
+ { path: "sections.description.image.focalPoint.y" },
596
+ {
597
+ path: "sections.description.video.resolutions.poster.focalPoint.x"
598
+ },
599
+ {
600
+ path: "sections.description.video.resolutions.poster.focalPoint.y"
601
+ },
602
+ { path: "sections.description.video.posters.focalPoint.x" },
603
+ { path: "sections.description.video.posters.focalPoint.y" }
604
+ ]
605
+ }
606
+ ])
607
+ };
608
+ return metadata;
609
+ }
610
+ return __listSections;
611
+ }
612
+ function cloneSection(payload) {
613
+ function __cloneSection({ host }) {
614
+ const metadata = {
615
+ entityFqdn: "wix.online_programs.v3.section",
616
+ method: "POST",
617
+ methodFqn: "wix.onlineprograms.sections.v3.SectionsService.CloneSection",
618
+ packageName: PACKAGE_NAME,
619
+ url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
620
+ protoPath: "/v3/sections/{sectionId}/clone",
621
+ data: payload,
622
+ host
623
+ }),
624
+ data: payload,
625
+ transformResponse: (payload2) => transformPaths(payload2, [
626
+ {
627
+ transformFn: transformRESTTimestampToSDKTimestamp,
628
+ paths: [
629
+ { path: "section.createdDate" },
630
+ { path: "section.updatedDate" },
631
+ { path: "section.description.image.urlExpirationDate" },
632
+ { path: "section.description.video.urlExpirationDate" },
633
+ {
634
+ path: "section.description.video.resolutions.urlExpirationDate"
635
+ },
636
+ {
637
+ path: "section.description.video.resolutions.poster.urlExpirationDate"
638
+ },
639
+ { path: "section.description.video.posters.urlExpirationDate" }
640
+ ]
641
+ },
642
+ {
643
+ transformFn: transformRESTFloatToSDKFloat,
644
+ paths: [
645
+ { path: "section.ordering" },
646
+ { path: "section.description.image.focalPoint.x" },
647
+ { path: "section.description.image.focalPoint.y" },
648
+ {
649
+ path: "section.description.video.resolutions.poster.focalPoint.x"
650
+ },
651
+ {
652
+ path: "section.description.video.resolutions.poster.focalPoint.y"
653
+ },
654
+ { path: "section.description.video.posters.focalPoint.x" },
655
+ { path: "section.description.video.posters.focalPoint.y" }
656
+ ]
657
+ }
658
+ ])
659
+ };
660
+ return metadata;
661
+ }
662
+ return __cloneSection;
663
+ }
664
+ function moveSection(payload) {
665
+ function __moveSection({ host }) {
666
+ const metadata = {
667
+ entityFqdn: "wix.online_programs.v3.section",
668
+ method: "PATCH",
669
+ methodFqn: "wix.onlineprograms.sections.v3.SectionsService.MoveSection",
670
+ packageName: PACKAGE_NAME,
671
+ url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
672
+ protoPath: "/v3/sections/move",
673
+ data: payload,
674
+ host
675
+ }),
676
+ data: payload,
677
+ transformResponse: (payload2) => transformPaths(payload2, [
678
+ {
679
+ transformFn: transformRESTTimestampToSDKTimestamp,
680
+ paths: [
681
+ { path: "section.createdDate" },
682
+ { path: "section.updatedDate" },
683
+ { path: "section.description.image.urlExpirationDate" },
684
+ { path: "section.description.video.urlExpirationDate" },
685
+ {
686
+ path: "section.description.video.resolutions.urlExpirationDate"
687
+ },
688
+ {
689
+ path: "section.description.video.resolutions.poster.urlExpirationDate"
690
+ },
691
+ { path: "section.description.video.posters.urlExpirationDate" }
692
+ ]
693
+ },
694
+ {
695
+ transformFn: transformRESTFloatToSDKFloat,
696
+ paths: [
697
+ { path: "section.ordering" },
698
+ { path: "section.description.image.focalPoint.x" },
699
+ { path: "section.description.image.focalPoint.y" },
700
+ {
701
+ path: "section.description.video.resolutions.poster.focalPoint.x"
702
+ },
703
+ {
704
+ path: "section.description.video.resolutions.poster.focalPoint.y"
705
+ },
706
+ { path: "section.description.video.posters.focalPoint.x" },
707
+ { path: "section.description.video.posters.focalPoint.y" }
708
+ ]
709
+ }
710
+ ])
711
+ };
712
+ return metadata;
713
+ }
714
+ return __moveSection;
715
+ }
716
+ function publishSection(payload) {
717
+ function __publishSection({ host }) {
718
+ const metadata = {
719
+ entityFqdn: "wix.online_programs.v3.section",
720
+ method: "PATCH",
721
+ methodFqn: "wix.onlineprograms.sections.v3.SectionsService.PublishSection",
722
+ packageName: PACKAGE_NAME,
723
+ url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
724
+ protoPath: "/v3/sections/publish",
725
+ data: payload,
726
+ host
727
+ }),
728
+ data: payload,
729
+ transformResponse: (payload2) => transformPaths(payload2, [
730
+ {
731
+ transformFn: transformRESTTimestampToSDKTimestamp,
732
+ paths: [
733
+ { path: "section.createdDate" },
734
+ { path: "section.updatedDate" },
735
+ { path: "section.description.image.urlExpirationDate" },
736
+ { path: "section.description.video.urlExpirationDate" },
737
+ {
738
+ path: "section.description.video.resolutions.urlExpirationDate"
739
+ },
740
+ {
741
+ path: "section.description.video.resolutions.poster.urlExpirationDate"
742
+ },
743
+ { path: "section.description.video.posters.urlExpirationDate" }
744
+ ]
745
+ },
746
+ {
747
+ transformFn: transformRESTFloatToSDKFloat,
748
+ paths: [
749
+ { path: "section.ordering" },
750
+ { path: "section.description.image.focalPoint.x" },
751
+ { path: "section.description.image.focalPoint.y" },
752
+ {
753
+ path: "section.description.video.resolutions.poster.focalPoint.x"
754
+ },
755
+ {
756
+ path: "section.description.video.resolutions.poster.focalPoint.y"
757
+ },
758
+ { path: "section.description.video.posters.focalPoint.x" },
759
+ { path: "section.description.video.posters.focalPoint.y" }
760
+ ]
761
+ }
762
+ ])
763
+ };
764
+ return metadata;
765
+ }
766
+ return __publishSection;
767
+ }
768
+
769
+ // src/online-programs-v3-section-sections.meta.ts
770
+ function createSection2() {
771
+ const payload = {};
772
+ const getRequestOptions = createSection(payload);
773
+ const getUrl = (context) => {
774
+ const { url } = getRequestOptions(context);
775
+ return url;
776
+ };
777
+ return {
778
+ getUrl,
779
+ httpMethod: "POST",
780
+ path: "/v3/sections",
781
+ pathParams: {},
782
+ __requestType: null,
783
+ __originalRequestType: null,
784
+ __responseType: null,
785
+ __originalResponseType: null
786
+ };
787
+ }
788
+ function bulkCreateSection2() {
789
+ const payload = {};
790
+ const getRequestOptions = bulkCreateSection(payload);
791
+ const getUrl = (context) => {
792
+ const { url } = getRequestOptions(context);
793
+ return url;
794
+ };
795
+ return {
796
+ getUrl,
797
+ httpMethod: "POST",
798
+ path: "/v3/bulk/sections/create",
799
+ pathParams: {},
800
+ __requestType: null,
801
+ __originalRequestType: null,
802
+ __responseType: null,
803
+ __originalResponseType: null
804
+ };
805
+ }
806
+ function bulkCreateSectionMigration2() {
807
+ const payload = {};
808
+ const getRequestOptions = bulkCreateSectionMigration(payload);
809
+ const getUrl = (context) => {
810
+ const { url } = getRequestOptions(context);
811
+ return url;
812
+ };
813
+ return {
814
+ getUrl,
815
+ httpMethod: "POST",
816
+ path: "/v3/bulk/sections/create/migration",
817
+ pathParams: {},
818
+ __requestType: null,
819
+ __originalRequestType: null,
820
+ __responseType: null,
821
+ __originalResponseType: null
822
+ };
823
+ }
824
+ function getSection2() {
825
+ const payload = { sectionId: ":sectionId" };
826
+ const getRequestOptions = getSection(payload);
827
+ const getUrl = (context) => {
828
+ const { url } = getRequestOptions(context);
829
+ return url;
830
+ };
831
+ return {
832
+ getUrl,
833
+ httpMethod: "GET",
834
+ path: "/v3/sections/{sectionId}",
835
+ pathParams: { sectionId: "sectionId" },
836
+ __requestType: null,
837
+ __originalRequestType: null,
838
+ __responseType: null,
839
+ __originalResponseType: null
840
+ };
841
+ }
842
+ function updateSection2() {
843
+ const payload = { section: { id: ":sectionId" } };
844
+ const getRequestOptions = updateSection(payload);
845
+ const getUrl = (context) => {
846
+ const { url } = getRequestOptions(context);
847
+ return url;
848
+ };
849
+ return {
850
+ getUrl,
851
+ httpMethod: "PATCH",
852
+ path: "/v3/sections/{section.id}",
853
+ pathParams: { sectionId: "sectionId" },
854
+ __requestType: null,
855
+ __originalRequestType: null,
856
+ __responseType: null,
857
+ __originalResponseType: null
858
+ };
859
+ }
860
+ function deleteSection2() {
861
+ const payload = { sectionId: ":sectionId" };
862
+ const getRequestOptions = deleteSection(payload);
863
+ const getUrl = (context) => {
864
+ const { url } = getRequestOptions(context);
865
+ return url;
866
+ };
867
+ return {
868
+ getUrl,
869
+ httpMethod: "DELETE",
870
+ path: "/v3/sections/{sectionId}",
871
+ pathParams: { sectionId: "sectionId" },
872
+ __requestType: null,
873
+ __originalRequestType: null,
874
+ __responseType: null,
875
+ __originalResponseType: null
876
+ };
877
+ }
878
+ function querySections2() {
879
+ const payload = {};
880
+ const getRequestOptions = querySections(payload);
881
+ const getUrl = (context) => {
882
+ const { url } = getRequestOptions(context);
883
+ return url;
884
+ };
885
+ return {
886
+ getUrl,
887
+ httpMethod: "POST",
888
+ path: "/v3/sections/query",
889
+ pathParams: {},
890
+ __requestType: null,
891
+ __originalRequestType: null,
892
+ __responseType: null,
893
+ __originalResponseType: null
894
+ };
895
+ }
896
+ function listSections2() {
897
+ const payload = {};
898
+ const getRequestOptions = listSections(payload);
899
+ const getUrl = (context) => {
900
+ const { url } = getRequestOptions(context);
901
+ return url;
902
+ };
903
+ return {
904
+ getUrl,
905
+ httpMethod: "GET",
906
+ path: "/v3/sections",
907
+ pathParams: {},
908
+ __requestType: null,
909
+ __originalRequestType: null,
910
+ __responseType: null,
911
+ __originalResponseType: null
912
+ };
913
+ }
914
+ function cloneSection2() {
915
+ const payload = { sectionId: ":sectionId" };
916
+ const getRequestOptions = cloneSection(payload);
917
+ const getUrl = (context) => {
918
+ const { url } = getRequestOptions(context);
919
+ return url;
920
+ };
921
+ return {
922
+ getUrl,
923
+ httpMethod: "POST",
924
+ path: "/v3/sections/{sectionId}/clone",
925
+ pathParams: { sectionId: "sectionId" },
926
+ __requestType: null,
927
+ __originalRequestType: null,
928
+ __responseType: null,
929
+ __originalResponseType: null
930
+ };
931
+ }
932
+ function moveSection2() {
933
+ const payload = {};
934
+ const getRequestOptions = moveSection(payload);
935
+ const getUrl = (context) => {
936
+ const { url } = getRequestOptions(context);
937
+ return url;
938
+ };
939
+ return {
940
+ getUrl,
941
+ httpMethod: "PATCH",
942
+ path: "/v3/sections/move",
943
+ pathParams: {},
944
+ __requestType: null,
945
+ __originalRequestType: null,
946
+ __responseType: null,
947
+ __originalResponseType: null
948
+ };
949
+ }
950
+ function publishSection2() {
951
+ const payload = {};
952
+ const getRequestOptions = publishSection(payload);
953
+ const getUrl = (context) => {
954
+ const { url } = getRequestOptions(context);
955
+ return url;
956
+ };
957
+ return {
958
+ getUrl,
959
+ httpMethod: "PATCH",
960
+ path: "/v3/sections/publish",
961
+ pathParams: {},
962
+ __requestType: null,
963
+ __originalRequestType: null,
964
+ __responseType: null,
965
+ __originalResponseType: null
966
+ };
967
+ }
968
+ export {
969
+ bulkCreateSection2 as bulkCreateSection,
970
+ bulkCreateSectionMigration2 as bulkCreateSectionMigration,
971
+ cloneSection2 as cloneSection,
972
+ createSection2 as createSection,
973
+ deleteSection2 as deleteSection,
974
+ getSection2 as getSection,
975
+ listSections2 as listSections,
976
+ moveSection2 as moveSection,
977
+ publishSection2 as publishSection,
978
+ querySections2 as querySections,
979
+ updateSection2 as updateSection
980
+ };
981
+ //# sourceMappingURL=meta.mjs.map