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