@wix/auto_sdk_online-programs_sections 1.0.16 → 1.0.18

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 (50) hide show
  1. package/build/cjs/index.d.ts +6 -16
  2. package/build/cjs/index.js +0 -149
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +9 -32
  5. package/build/cjs/index.typings.js +0 -140
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +5 -8
  8. package/build/cjs/meta.js +0 -109
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +6 -16
  11. package/build/es/index.mjs +0 -148
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +9 -32
  14. package/build/es/index.typings.mjs +0 -139
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +5 -8
  17. package/build/es/meta.mjs +0 -108
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +6 -16
  20. package/build/internal/cjs/index.typings.d.ts +13 -31
  21. package/build/internal/cjs/meta.d.ts +9 -7
  22. package/build/internal/es/index.d.mts +6 -16
  23. package/build/internal/es/index.typings.d.mts +13 -31
  24. package/build/internal/es/meta.d.mts +9 -7
  25. package/package.json +4 -11
  26. package/build/cjs/schemas.d.ts +0 -637
  27. package/build/cjs/schemas.js +0 -999
  28. package/build/cjs/schemas.js.map +0 -1
  29. package/build/es/schemas.d.mts +0 -637
  30. package/build/es/schemas.mjs +0 -941
  31. package/build/es/schemas.mjs.map +0 -1
  32. package/build/internal/cjs/index.js +0 -1593
  33. package/build/internal/cjs/index.js.map +0 -1
  34. package/build/internal/cjs/index.typings.js +0 -1475
  35. package/build/internal/cjs/index.typings.js.map +0 -1
  36. package/build/internal/cjs/meta.js +0 -1135
  37. package/build/internal/cjs/meta.js.map +0 -1
  38. package/build/internal/cjs/schemas.d.ts +0 -637
  39. package/build/internal/cjs/schemas.js +0 -999
  40. package/build/internal/cjs/schemas.js.map +0 -1
  41. package/build/internal/es/index.mjs +0 -1550
  42. package/build/internal/es/index.mjs.map +0 -1
  43. package/build/internal/es/index.typings.mjs +0 -1431
  44. package/build/internal/es/index.typings.mjs.map +0 -1
  45. package/build/internal/es/meta.mjs +0 -1090
  46. package/build/internal/es/meta.mjs.map +0 -1
  47. package/build/internal/es/schemas.d.mts +0 -637
  48. package/build/internal/es/schemas.mjs +0 -941
  49. package/build/internal/es/schemas.mjs.map +0 -1
  50. package/schemas/package.json +0 -3
@@ -1,1090 +0,0 @@
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
- srcPath: "/online-programs/v3/sections",
99
- destPath: "/v3/sections"
100
- },
101
- {
102
- srcPath: "/online-programs/v3/bulk/sections",
103
- destPath: "/v3/bulk/sections"
104
- }
105
- ]
106
- };
107
- return resolveUrl(Object.assign(opts, { domainToMappings }));
108
- }
109
- var PACKAGE_NAME = "@wix/auto_sdk_online-programs_sections";
110
- function createSection(payload) {
111
- function __createSection({ host }) {
112
- const serializedData = transformPaths(payload, [
113
- {
114
- transformFn: transformSDKTimestampToRESTTimestamp,
115
- paths: [
116
- { path: "section.createdDate" },
117
- { path: "section.updatedDate" },
118
- { path: "section.description.image.urlExpirationDate" },
119
- { path: "section.description.video.urlExpirationDate" },
120
- { path: "section.description.video.resolutions.urlExpirationDate" },
121
- {
122
- path: "section.description.video.resolutions.poster.urlExpirationDate"
123
- },
124
- { path: "section.description.video.posters.urlExpirationDate" }
125
- ]
126
- },
127
- {
128
- transformFn: transformSDKFloatToRESTFloat,
129
- paths: [
130
- { path: "section.ordering" },
131
- { path: "section.description.image.focalPoint.x" },
132
- { path: "section.description.image.focalPoint.y" },
133
- { path: "section.description.video.resolutions.poster.focalPoint.x" },
134
- { path: "section.description.video.resolutions.poster.focalPoint.y" },
135
- { path: "section.description.video.posters.focalPoint.x" },
136
- { path: "section.description.video.posters.focalPoint.y" }
137
- ]
138
- }
139
- ]);
140
- const metadata = {
141
- entityFqdn: "wix.online_programs.v3.section",
142
- method: "POST",
143
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.CreateSection",
144
- packageName: PACKAGE_NAME,
145
- migrationOptions: {
146
- optInTransformResponse: true
147
- },
148
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
149
- protoPath: "/v3/sections",
150
- data: serializedData,
151
- host
152
- }),
153
- data: serializedData,
154
- transformResponse: (payload2) => transformPaths(payload2, [
155
- {
156
- transformFn: transformRESTTimestampToSDKTimestamp,
157
- paths: [
158
- { path: "section.createdDate" },
159
- { path: "section.updatedDate" },
160
- { path: "section.description.image.urlExpirationDate" },
161
- { path: "section.description.video.urlExpirationDate" },
162
- {
163
- path: "section.description.video.resolutions.urlExpirationDate"
164
- },
165
- {
166
- path: "section.description.video.resolutions.poster.urlExpirationDate"
167
- },
168
- { path: "section.description.video.posters.urlExpirationDate" }
169
- ]
170
- },
171
- {
172
- transformFn: transformRESTFloatToSDKFloat,
173
- paths: [
174
- { path: "section.ordering" },
175
- { path: "section.description.image.focalPoint.x" },
176
- { path: "section.description.image.focalPoint.y" },
177
- {
178
- path: "section.description.video.resolutions.poster.focalPoint.x"
179
- },
180
- {
181
- path: "section.description.video.resolutions.poster.focalPoint.y"
182
- },
183
- { path: "section.description.video.posters.focalPoint.x" },
184
- { path: "section.description.video.posters.focalPoint.y" }
185
- ]
186
- }
187
- ])
188
- };
189
- return metadata;
190
- }
191
- return __createSection;
192
- }
193
- function bulkCreateSections(payload) {
194
- function __bulkCreateSections({ host }) {
195
- const serializedData = transformPaths(payload, [
196
- {
197
- transformFn: transformSDKTimestampToRESTTimestamp,
198
- paths: [
199
- { path: "sections.createdDate" },
200
- { path: "sections.updatedDate" },
201
- { path: "sections.description.image.urlExpirationDate" },
202
- { path: "sections.description.video.urlExpirationDate" },
203
- { path: "sections.description.video.resolutions.urlExpirationDate" },
204
- {
205
- path: "sections.description.video.resolutions.poster.urlExpirationDate"
206
- },
207
- { path: "sections.description.video.posters.urlExpirationDate" }
208
- ]
209
- },
210
- {
211
- transformFn: transformSDKFloatToRESTFloat,
212
- paths: [
213
- { path: "sections.ordering" },
214
- { path: "sections.description.image.focalPoint.x" },
215
- { path: "sections.description.image.focalPoint.y" },
216
- {
217
- path: "sections.description.video.resolutions.poster.focalPoint.x"
218
- },
219
- {
220
- path: "sections.description.video.resolutions.poster.focalPoint.y"
221
- },
222
- { path: "sections.description.video.posters.focalPoint.x" },
223
- { path: "sections.description.video.posters.focalPoint.y" }
224
- ]
225
- }
226
- ]);
227
- const metadata = {
228
- entityFqdn: "wix.online_programs.v3.section",
229
- method: "POST",
230
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSections",
231
- packageName: PACKAGE_NAME,
232
- migrationOptions: {
233
- optInTransformResponse: true
234
- },
235
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
236
- protoPath: "/v3/bulk/sections/create",
237
- data: serializedData,
238
- host
239
- }),
240
- data: serializedData,
241
- transformResponse: (payload2) => transformPaths(payload2, [
242
- {
243
- transformFn: transformRESTTimestampToSDKTimestamp,
244
- paths: [
245
- { path: "results.item.createdDate" },
246
- { path: "results.item.updatedDate" },
247
- { path: "results.item.description.image.urlExpirationDate" },
248
- { path: "results.item.description.video.urlExpirationDate" },
249
- {
250
- path: "results.item.description.video.resolutions.urlExpirationDate"
251
- },
252
- {
253
- path: "results.item.description.video.resolutions.poster.urlExpirationDate"
254
- },
255
- {
256
- path: "results.item.description.video.posters.urlExpirationDate"
257
- }
258
- ]
259
- },
260
- {
261
- transformFn: transformRESTFloatToSDKFloat,
262
- paths: [
263
- { path: "results.item.ordering" },
264
- { path: "results.item.description.image.focalPoint.x" },
265
- { path: "results.item.description.image.focalPoint.y" },
266
- {
267
- path: "results.item.description.video.resolutions.poster.focalPoint.x"
268
- },
269
- {
270
- path: "results.item.description.video.resolutions.poster.focalPoint.y"
271
- },
272
- { path: "results.item.description.video.posters.focalPoint.x" },
273
- { path: "results.item.description.video.posters.focalPoint.y" }
274
- ]
275
- }
276
- ])
277
- };
278
- return metadata;
279
- }
280
- return __bulkCreateSections;
281
- }
282
- function bulkCreateSection(payload) {
283
- function __bulkCreateSection({ host }) {
284
- const serializedData = transformPaths(payload, [
285
- {
286
- transformFn: transformSDKTimestampToRESTTimestamp,
287
- paths: [
288
- { path: "sections.createdDate" },
289
- { path: "sections.updatedDate" },
290
- { path: "sections.description.image.urlExpirationDate" },
291
- { path: "sections.description.video.urlExpirationDate" },
292
- { path: "sections.description.video.resolutions.urlExpirationDate" },
293
- {
294
- path: "sections.description.video.resolutions.poster.urlExpirationDate"
295
- },
296
- { path: "sections.description.video.posters.urlExpirationDate" }
297
- ]
298
- },
299
- {
300
- transformFn: transformSDKFloatToRESTFloat,
301
- paths: [
302
- { path: "sections.ordering" },
303
- { path: "sections.description.image.focalPoint.x" },
304
- { path: "sections.description.image.focalPoint.y" },
305
- {
306
- path: "sections.description.video.resolutions.poster.focalPoint.x"
307
- },
308
- {
309
- path: "sections.description.video.resolutions.poster.focalPoint.y"
310
- },
311
- { path: "sections.description.video.posters.focalPoint.x" },
312
- { path: "sections.description.video.posters.focalPoint.y" }
313
- ]
314
- }
315
- ]);
316
- const metadata = {
317
- entityFqdn: "wix.online_programs.v3.section",
318
- method: "POST",
319
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection",
320
- packageName: PACKAGE_NAME,
321
- migrationOptions: {
322
- optInTransformResponse: true
323
- },
324
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
325
- protoPath: "/v3/bulk/sections/create-deprecated",
326
- data: serializedData,
327
- host
328
- }),
329
- data: serializedData,
330
- transformResponse: (payload2) => transformPaths(payload2, [
331
- {
332
- transformFn: transformRESTTimestampToSDKTimestamp,
333
- paths: [
334
- { path: "results.item.createdDate" },
335
- { path: "results.item.updatedDate" },
336
- { path: "results.item.description.image.urlExpirationDate" },
337
- { path: "results.item.description.video.urlExpirationDate" },
338
- {
339
- path: "results.item.description.video.resolutions.urlExpirationDate"
340
- },
341
- {
342
- path: "results.item.description.video.resolutions.poster.urlExpirationDate"
343
- },
344
- {
345
- path: "results.item.description.video.posters.urlExpirationDate"
346
- }
347
- ]
348
- },
349
- {
350
- transformFn: transformRESTFloatToSDKFloat,
351
- paths: [
352
- { path: "results.item.ordering" },
353
- { path: "results.item.description.image.focalPoint.x" },
354
- { path: "results.item.description.image.focalPoint.y" },
355
- {
356
- path: "results.item.description.video.resolutions.poster.focalPoint.x"
357
- },
358
- {
359
- path: "results.item.description.video.resolutions.poster.focalPoint.y"
360
- },
361
- { path: "results.item.description.video.posters.focalPoint.x" },
362
- { path: "results.item.description.video.posters.focalPoint.y" }
363
- ]
364
- }
365
- ])
366
- };
367
- return metadata;
368
- }
369
- return __bulkCreateSection;
370
- }
371
- function getSection(payload) {
372
- function __getSection({ host }) {
373
- const metadata = {
374
- entityFqdn: "wix.online_programs.v3.section",
375
- method: "GET",
376
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.GetSection",
377
- packageName: PACKAGE_NAME,
378
- migrationOptions: {
379
- optInTransformResponse: true
380
- },
381
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
382
- protoPath: "/v3/sections/{sectionId}",
383
- data: payload,
384
- host
385
- }),
386
- params: toURLSearchParams(payload),
387
- transformResponse: (payload2) => transformPaths(payload2, [
388
- {
389
- transformFn: transformRESTTimestampToSDKTimestamp,
390
- paths: [
391
- { path: "section.createdDate" },
392
- { path: "section.updatedDate" },
393
- { path: "section.description.image.urlExpirationDate" },
394
- { path: "section.description.video.urlExpirationDate" },
395
- {
396
- path: "section.description.video.resolutions.urlExpirationDate"
397
- },
398
- {
399
- path: "section.description.video.resolutions.poster.urlExpirationDate"
400
- },
401
- { path: "section.description.video.posters.urlExpirationDate" }
402
- ]
403
- },
404
- {
405
- transformFn: transformRESTFloatToSDKFloat,
406
- paths: [
407
- { path: "section.ordering" },
408
- { path: "section.description.image.focalPoint.x" },
409
- { path: "section.description.image.focalPoint.y" },
410
- {
411
- path: "section.description.video.resolutions.poster.focalPoint.x"
412
- },
413
- {
414
- path: "section.description.video.resolutions.poster.focalPoint.y"
415
- },
416
- { path: "section.description.video.posters.focalPoint.x" },
417
- { path: "section.description.video.posters.focalPoint.y" }
418
- ]
419
- }
420
- ])
421
- };
422
- return metadata;
423
- }
424
- return __getSection;
425
- }
426
- function updateSection(payload) {
427
- function __updateSection({ host }) {
428
- const serializedData = transformPaths(payload, [
429
- {
430
- transformFn: transformSDKFieldMaskToRESTFieldMask,
431
- paths: [{ path: "fieldMask" }]
432
- },
433
- {
434
- transformFn: transformSDKTimestampToRESTTimestamp,
435
- paths: [
436
- { path: "section.createdDate" },
437
- { path: "section.updatedDate" },
438
- { path: "section.description.image.urlExpirationDate" },
439
- { path: "section.description.video.urlExpirationDate" },
440
- { path: "section.description.video.resolutions.urlExpirationDate" },
441
- {
442
- path: "section.description.video.resolutions.poster.urlExpirationDate"
443
- },
444
- { path: "section.description.video.posters.urlExpirationDate" }
445
- ]
446
- },
447
- {
448
- transformFn: transformSDKFloatToRESTFloat,
449
- paths: [
450
- { path: "section.ordering" },
451
- { path: "section.description.image.focalPoint.x" },
452
- { path: "section.description.image.focalPoint.y" },
453
- { path: "section.description.video.resolutions.poster.focalPoint.x" },
454
- { path: "section.description.video.resolutions.poster.focalPoint.y" },
455
- { path: "section.description.video.posters.focalPoint.x" },
456
- { path: "section.description.video.posters.focalPoint.y" }
457
- ]
458
- }
459
- ]);
460
- const metadata = {
461
- entityFqdn: "wix.online_programs.v3.section",
462
- method: "PATCH",
463
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.UpdateSection",
464
- packageName: PACKAGE_NAME,
465
- migrationOptions: {
466
- optInTransformResponse: true
467
- },
468
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
469
- protoPath: "/v3/sections/{section.id}",
470
- data: serializedData,
471
- host
472
- }),
473
- data: serializedData,
474
- transformResponse: (payload2) => transformPaths(payload2, [
475
- {
476
- transformFn: transformRESTTimestampToSDKTimestamp,
477
- paths: [
478
- { path: "section.createdDate" },
479
- { path: "section.updatedDate" },
480
- { path: "section.description.image.urlExpirationDate" },
481
- { path: "section.description.video.urlExpirationDate" },
482
- {
483
- path: "section.description.video.resolutions.urlExpirationDate"
484
- },
485
- {
486
- path: "section.description.video.resolutions.poster.urlExpirationDate"
487
- },
488
- { path: "section.description.video.posters.urlExpirationDate" }
489
- ]
490
- },
491
- {
492
- transformFn: transformRESTFloatToSDKFloat,
493
- paths: [
494
- { path: "section.ordering" },
495
- { path: "section.description.image.focalPoint.x" },
496
- { path: "section.description.image.focalPoint.y" },
497
- {
498
- path: "section.description.video.resolutions.poster.focalPoint.x"
499
- },
500
- {
501
- path: "section.description.video.resolutions.poster.focalPoint.y"
502
- },
503
- { path: "section.description.video.posters.focalPoint.x" },
504
- { path: "section.description.video.posters.focalPoint.y" }
505
- ]
506
- }
507
- ])
508
- };
509
- return metadata;
510
- }
511
- return __updateSection;
512
- }
513
- function deleteSection(payload) {
514
- function __deleteSection({ host }) {
515
- const metadata = {
516
- entityFqdn: "wix.online_programs.v3.section",
517
- method: "DELETE",
518
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.DeleteSection",
519
- packageName: PACKAGE_NAME,
520
- migrationOptions: {
521
- optInTransformResponse: true
522
- },
523
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
524
- protoPath: "/v3/sections/{sectionId}",
525
- data: payload,
526
- host
527
- }),
528
- params: toURLSearchParams(payload)
529
- };
530
- return metadata;
531
- }
532
- return __deleteSection;
533
- }
534
- function querySections(payload) {
535
- function __querySections({ host }) {
536
- const serializedData = transformPaths(payload, [
537
- {
538
- transformFn: transformSDKFloatToRESTFloat,
539
- paths: [
540
- { path: "query.sort.origin.latitude" },
541
- { path: "query.sort.origin.longitude" }
542
- ]
543
- }
544
- ]);
545
- const metadata = {
546
- entityFqdn: "wix.online_programs.v3.section",
547
- method: "POST",
548
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.QuerySections",
549
- packageName: PACKAGE_NAME,
550
- migrationOptions: {
551
- optInTransformResponse: true
552
- },
553
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
554
- protoPath: "/v3/sections/query",
555
- data: serializedData,
556
- host
557
- }),
558
- data: serializedData,
559
- transformResponse: (payload2) => transformPaths(payload2, [
560
- {
561
- transformFn: transformRESTTimestampToSDKTimestamp,
562
- paths: [
563
- { path: "sections.createdDate" },
564
- { path: "sections.updatedDate" },
565
- { path: "sections.description.image.urlExpirationDate" },
566
- { path: "sections.description.video.urlExpirationDate" },
567
- {
568
- path: "sections.description.video.resolutions.urlExpirationDate"
569
- },
570
- {
571
- path: "sections.description.video.resolutions.poster.urlExpirationDate"
572
- },
573
- { path: "sections.description.video.posters.urlExpirationDate" }
574
- ]
575
- },
576
- {
577
- transformFn: transformRESTFloatToSDKFloat,
578
- paths: [
579
- { path: "sections.ordering" },
580
- { path: "sections.description.image.focalPoint.x" },
581
- { path: "sections.description.image.focalPoint.y" },
582
- {
583
- path: "sections.description.video.resolutions.poster.focalPoint.x"
584
- },
585
- {
586
- path: "sections.description.video.resolutions.poster.focalPoint.y"
587
- },
588
- { path: "sections.description.video.posters.focalPoint.x" },
589
- { path: "sections.description.video.posters.focalPoint.y" }
590
- ]
591
- }
592
- ])
593
- };
594
- return metadata;
595
- }
596
- return __querySections;
597
- }
598
- function listSections(payload) {
599
- function __listSections({ host }) {
600
- const metadata = {
601
- entityFqdn: "wix.online_programs.v3.section",
602
- method: "GET",
603
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.ListSections",
604
- packageName: PACKAGE_NAME,
605
- migrationOptions: {
606
- optInTransformResponse: true
607
- },
608
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
609
- protoPath: "/v3/sections",
610
- data: payload,
611
- host
612
- }),
613
- params: toURLSearchParams(payload),
614
- transformResponse: (payload2) => transformPaths(payload2, [
615
- {
616
- transformFn: transformRESTTimestampToSDKTimestamp,
617
- paths: [
618
- { path: "sections.createdDate" },
619
- { path: "sections.updatedDate" },
620
- { path: "sections.description.image.urlExpirationDate" },
621
- { path: "sections.description.video.urlExpirationDate" },
622
- {
623
- path: "sections.description.video.resolutions.urlExpirationDate"
624
- },
625
- {
626
- path: "sections.description.video.resolutions.poster.urlExpirationDate"
627
- },
628
- { path: "sections.description.video.posters.urlExpirationDate" }
629
- ]
630
- },
631
- {
632
- transformFn: transformRESTFloatToSDKFloat,
633
- paths: [
634
- { path: "sections.ordering" },
635
- { path: "sections.description.image.focalPoint.x" },
636
- { path: "sections.description.image.focalPoint.y" },
637
- {
638
- path: "sections.description.video.resolutions.poster.focalPoint.x"
639
- },
640
- {
641
- path: "sections.description.video.resolutions.poster.focalPoint.y"
642
- },
643
- { path: "sections.description.video.posters.focalPoint.x" },
644
- { path: "sections.description.video.posters.focalPoint.y" }
645
- ]
646
- }
647
- ])
648
- };
649
- return metadata;
650
- }
651
- return __listSections;
652
- }
653
- function cloneSection(payload) {
654
- function __cloneSection({ host }) {
655
- const metadata = {
656
- entityFqdn: "wix.online_programs.v3.section",
657
- method: "POST",
658
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.CloneSection",
659
- packageName: PACKAGE_NAME,
660
- migrationOptions: {
661
- optInTransformResponse: true
662
- },
663
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
664
- protoPath: "/v3/sections/{sectionId}/clone",
665
- data: payload,
666
- host
667
- }),
668
- data: payload,
669
- transformResponse: (payload2) => transformPaths(payload2, [
670
- {
671
- transformFn: transformRESTTimestampToSDKTimestamp,
672
- paths: [
673
- { path: "section.createdDate" },
674
- { path: "section.updatedDate" },
675
- { path: "section.description.image.urlExpirationDate" },
676
- { path: "section.description.video.urlExpirationDate" },
677
- {
678
- path: "section.description.video.resolutions.urlExpirationDate"
679
- },
680
- {
681
- path: "section.description.video.resolutions.poster.urlExpirationDate"
682
- },
683
- { path: "section.description.video.posters.urlExpirationDate" }
684
- ]
685
- },
686
- {
687
- transformFn: transformRESTFloatToSDKFloat,
688
- paths: [
689
- { path: "section.ordering" },
690
- { path: "section.description.image.focalPoint.x" },
691
- { path: "section.description.image.focalPoint.y" },
692
- {
693
- path: "section.description.video.resolutions.poster.focalPoint.x"
694
- },
695
- {
696
- path: "section.description.video.resolutions.poster.focalPoint.y"
697
- },
698
- { path: "section.description.video.posters.focalPoint.x" },
699
- { path: "section.description.video.posters.focalPoint.y" }
700
- ]
701
- }
702
- ])
703
- };
704
- return metadata;
705
- }
706
- return __cloneSection;
707
- }
708
- function moveSection(payload) {
709
- function __moveSection({ host }) {
710
- const metadata = {
711
- entityFqdn: "wix.online_programs.v3.section",
712
- method: "PATCH",
713
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.MoveSection",
714
- packageName: PACKAGE_NAME,
715
- migrationOptions: {
716
- optInTransformResponse: true
717
- },
718
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
719
- protoPath: "/v3/sections/move",
720
- data: payload,
721
- host
722
- }),
723
- data: payload,
724
- transformResponse: (payload2) => transformPaths(payload2, [
725
- {
726
- transformFn: transformRESTTimestampToSDKTimestamp,
727
- paths: [
728
- { path: "section.createdDate" },
729
- { path: "section.updatedDate" },
730
- { path: "section.description.image.urlExpirationDate" },
731
- { path: "section.description.video.urlExpirationDate" },
732
- {
733
- path: "section.description.video.resolutions.urlExpirationDate"
734
- },
735
- {
736
- path: "section.description.video.resolutions.poster.urlExpirationDate"
737
- },
738
- { path: "section.description.video.posters.urlExpirationDate" }
739
- ]
740
- },
741
- {
742
- transformFn: transformRESTFloatToSDKFloat,
743
- paths: [
744
- { path: "section.ordering" },
745
- { path: "section.description.image.focalPoint.x" },
746
- { path: "section.description.image.focalPoint.y" },
747
- {
748
- path: "section.description.video.resolutions.poster.focalPoint.x"
749
- },
750
- {
751
- path: "section.description.video.resolutions.poster.focalPoint.y"
752
- },
753
- { path: "section.description.video.posters.focalPoint.x" },
754
- { path: "section.description.video.posters.focalPoint.y" }
755
- ]
756
- }
757
- ])
758
- };
759
- return metadata;
760
- }
761
- return __moveSection;
762
- }
763
- function publishSection(payload) {
764
- function __publishSection({ host }) {
765
- const metadata = {
766
- entityFqdn: "wix.online_programs.v3.section",
767
- method: "PATCH",
768
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.PublishSection",
769
- packageName: PACKAGE_NAME,
770
- migrationOptions: {
771
- optInTransformResponse: true
772
- },
773
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
774
- protoPath: "/v3/sections/publish",
775
- data: payload,
776
- host
777
- }),
778
- data: payload,
779
- transformResponse: (payload2) => transformPaths(payload2, [
780
- {
781
- transformFn: transformRESTTimestampToSDKTimestamp,
782
- paths: [
783
- { path: "section.createdDate" },
784
- { path: "section.updatedDate" },
785
- { path: "section.description.image.urlExpirationDate" },
786
- { path: "section.description.video.urlExpirationDate" },
787
- {
788
- path: "section.description.video.resolutions.urlExpirationDate"
789
- },
790
- {
791
- path: "section.description.video.resolutions.poster.urlExpirationDate"
792
- },
793
- { path: "section.description.video.posters.urlExpirationDate" }
794
- ]
795
- },
796
- {
797
- transformFn: transformRESTFloatToSDKFloat,
798
- paths: [
799
- { path: "section.ordering" },
800
- { path: "section.description.image.focalPoint.x" },
801
- { path: "section.description.image.focalPoint.y" },
802
- {
803
- path: "section.description.video.resolutions.poster.focalPoint.x"
804
- },
805
- {
806
- path: "section.description.video.resolutions.poster.focalPoint.y"
807
- },
808
- { path: "section.description.video.posters.focalPoint.x" },
809
- { path: "section.description.video.posters.focalPoint.y" }
810
- ]
811
- }
812
- ])
813
- };
814
- return metadata;
815
- }
816
- return __publishSection;
817
- }
818
-
819
- // src/online-programs-v3-section-sections.types.ts
820
- var State = /* @__PURE__ */ ((State2) => {
821
- State2["DRAFT"] = "DRAFT";
822
- State2["PUBLISHED"] = "PUBLISHED";
823
- return State2;
824
- })(State || {});
825
- var Enum = /* @__PURE__ */ ((Enum2) => {
826
- Enum2["UNKNOWN"] = "UNKNOWN";
827
- Enum2["PROTECTED"] = "PROTECTED";
828
- Enum2["PRIVATE"] = "PRIVATE";
829
- Enum2["PUBLIC"] = "PUBLIC";
830
- Enum2["UNCHANGED"] = "UNCHANGED";
831
- Enum2["GROUP_PROTECTED"] = "GROUP_PROTECTED";
832
- return Enum2;
833
- })(Enum || {});
834
- var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
835
- RequestedFields2["TOTAL_STEPS"] = "TOTAL_STEPS";
836
- return RequestedFields2;
837
- })(RequestedFields || {});
838
- var BulkActionType = /* @__PURE__ */ ((BulkActionType2) => {
839
- BulkActionType2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
840
- BulkActionType2["INSERT"] = "INSERT";
841
- BulkActionType2["UPDATE"] = "UPDATE";
842
- BulkActionType2["DELETE"] = "DELETE";
843
- return BulkActionType2;
844
- })(BulkActionType || {});
845
- var DescriptionFieldSet = /* @__PURE__ */ ((DescriptionFieldSet2) => {
846
- DescriptionFieldSet2["STANDARD"] = "STANDARD";
847
- DescriptionFieldSet2["EXTENDED"] = "EXTENDED";
848
- return DescriptionFieldSet2;
849
- })(DescriptionFieldSet || {});
850
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
851
- SortOrder2["ASC"] = "ASC";
852
- SortOrder2["DESC"] = "DESC";
853
- return SortOrder2;
854
- })(SortOrder || {});
855
- var SearchIndexingNotificationState = /* @__PURE__ */ ((SearchIndexingNotificationState2) => {
856
- SearchIndexingNotificationState2["Unknown"] = "Unknown";
857
- SearchIndexingNotificationState2["Off"] = "Off";
858
- SearchIndexingNotificationState2["On"] = "On";
859
- return SearchIndexingNotificationState2;
860
- })(SearchIndexingNotificationState || {});
861
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
862
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
863
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
864
- WebhookIdentityType2["MEMBER"] = "MEMBER";
865
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
866
- WebhookIdentityType2["APP"] = "APP";
867
- return WebhookIdentityType2;
868
- })(WebhookIdentityType || {});
869
-
870
- // src/online-programs-v3-section-sections.meta.ts
871
- function createSection2() {
872
- const payload = {};
873
- const getRequestOptions = createSection(payload);
874
- const getUrl = (context) => {
875
- const { url } = getRequestOptions(context);
876
- return url;
877
- };
878
- return {
879
- getUrl,
880
- httpMethod: "POST",
881
- path: "/v3/sections",
882
- pathParams: {},
883
- __requestType: null,
884
- __originalRequestType: null,
885
- __responseType: null,
886
- __originalResponseType: null
887
- };
888
- }
889
- function bulkCreateSections2() {
890
- const payload = {};
891
- const getRequestOptions = bulkCreateSections(payload);
892
- const getUrl = (context) => {
893
- const { url } = getRequestOptions(context);
894
- return url;
895
- };
896
- return {
897
- getUrl,
898
- httpMethod: "POST",
899
- path: "/v3/bulk/sections/create",
900
- pathParams: {},
901
- __requestType: null,
902
- __originalRequestType: null,
903
- __responseType: null,
904
- __originalResponseType: null
905
- };
906
- }
907
- function bulkCreateSection2() {
908
- const payload = {};
909
- const getRequestOptions = bulkCreateSection(payload);
910
- const getUrl = (context) => {
911
- const { url } = getRequestOptions(context);
912
- return url;
913
- };
914
- return {
915
- getUrl,
916
- httpMethod: "POST",
917
- path: "/v3/bulk/sections/create-deprecated",
918
- pathParams: {},
919
- __requestType: null,
920
- __originalRequestType: null,
921
- __responseType: null,
922
- __originalResponseType: null
923
- };
924
- }
925
- function getSection2() {
926
- const payload = { sectionId: ":sectionId" };
927
- const getRequestOptions = getSection(payload);
928
- const getUrl = (context) => {
929
- const { url } = getRequestOptions(context);
930
- return url;
931
- };
932
- return {
933
- getUrl,
934
- httpMethod: "GET",
935
- path: "/v3/sections/{sectionId}",
936
- pathParams: { sectionId: "sectionId" },
937
- __requestType: null,
938
- __originalRequestType: null,
939
- __responseType: null,
940
- __originalResponseType: null
941
- };
942
- }
943
- function updateSection2() {
944
- const payload = { section: { id: ":sectionId" } };
945
- const getRequestOptions = updateSection(payload);
946
- const getUrl = (context) => {
947
- const { url } = getRequestOptions(context);
948
- return url;
949
- };
950
- return {
951
- getUrl,
952
- httpMethod: "PATCH",
953
- path: "/v3/sections/{section.id}",
954
- pathParams: { sectionId: "sectionId" },
955
- __requestType: null,
956
- __originalRequestType: null,
957
- __responseType: null,
958
- __originalResponseType: null
959
- };
960
- }
961
- function deleteSection2() {
962
- const payload = { sectionId: ":sectionId" };
963
- const getRequestOptions = deleteSection(payload);
964
- const getUrl = (context) => {
965
- const { url } = getRequestOptions(context);
966
- return url;
967
- };
968
- return {
969
- getUrl,
970
- httpMethod: "DELETE",
971
- path: "/v3/sections/{sectionId}",
972
- pathParams: { sectionId: "sectionId" },
973
- __requestType: null,
974
- __originalRequestType: null,
975
- __responseType: null,
976
- __originalResponseType: null
977
- };
978
- }
979
- function querySections2() {
980
- const payload = {};
981
- const getRequestOptions = querySections(payload);
982
- const getUrl = (context) => {
983
- const { url } = getRequestOptions(context);
984
- return url;
985
- };
986
- return {
987
- getUrl,
988
- httpMethod: "POST",
989
- path: "/v3/sections/query",
990
- pathParams: {},
991
- __requestType: null,
992
- __originalRequestType: null,
993
- __responseType: null,
994
- __originalResponseType: null
995
- };
996
- }
997
- function listSections2() {
998
- const payload = {};
999
- const getRequestOptions = listSections(payload);
1000
- const getUrl = (context) => {
1001
- const { url } = getRequestOptions(context);
1002
- return url;
1003
- };
1004
- return {
1005
- getUrl,
1006
- httpMethod: "GET",
1007
- path: "/v3/sections",
1008
- pathParams: {},
1009
- __requestType: null,
1010
- __originalRequestType: null,
1011
- __responseType: null,
1012
- __originalResponseType: null
1013
- };
1014
- }
1015
- function cloneSection2() {
1016
- const payload = { sectionId: ":sectionId" };
1017
- const getRequestOptions = cloneSection(payload);
1018
- const getUrl = (context) => {
1019
- const { url } = getRequestOptions(context);
1020
- return url;
1021
- };
1022
- return {
1023
- getUrl,
1024
- httpMethod: "POST",
1025
- path: "/v3/sections/{sectionId}/clone",
1026
- pathParams: { sectionId: "sectionId" },
1027
- __requestType: null,
1028
- __originalRequestType: null,
1029
- __responseType: null,
1030
- __originalResponseType: null
1031
- };
1032
- }
1033
- function moveSection2() {
1034
- const payload = {};
1035
- const getRequestOptions = moveSection(payload);
1036
- const getUrl = (context) => {
1037
- const { url } = getRequestOptions(context);
1038
- return url;
1039
- };
1040
- return {
1041
- getUrl,
1042
- httpMethod: "PATCH",
1043
- path: "/v3/sections/move",
1044
- pathParams: {},
1045
- __requestType: null,
1046
- __originalRequestType: null,
1047
- __responseType: null,
1048
- __originalResponseType: null
1049
- };
1050
- }
1051
- function publishSection2() {
1052
- const payload = {};
1053
- const getRequestOptions = publishSection(payload);
1054
- const getUrl = (context) => {
1055
- const { url } = getRequestOptions(context);
1056
- return url;
1057
- };
1058
- return {
1059
- getUrl,
1060
- httpMethod: "PATCH",
1061
- path: "/v3/sections/publish",
1062
- pathParams: {},
1063
- __requestType: null,
1064
- __originalRequestType: null,
1065
- __responseType: null,
1066
- __originalResponseType: null
1067
- };
1068
- }
1069
- export {
1070
- BulkActionType as BulkActionTypeOriginal,
1071
- DescriptionFieldSet as DescriptionFieldSetOriginal,
1072
- Enum as EnumOriginal,
1073
- RequestedFields as RequestedFieldsOriginal,
1074
- SearchIndexingNotificationState as SearchIndexingNotificationStateOriginal,
1075
- SortOrder as SortOrderOriginal,
1076
- State as StateOriginal,
1077
- WebhookIdentityType as WebhookIdentityTypeOriginal,
1078
- bulkCreateSection2 as bulkCreateSection,
1079
- bulkCreateSections2 as bulkCreateSections,
1080
- cloneSection2 as cloneSection,
1081
- createSection2 as createSection,
1082
- deleteSection2 as deleteSection,
1083
- getSection2 as getSection,
1084
- listSections2 as listSections,
1085
- moveSection2 as moveSection,
1086
- publishSection2 as publishSection,
1087
- querySections2 as querySections,
1088
- updateSection2 as updateSection
1089
- };
1090
- //# sourceMappingURL=meta.mjs.map