@wix/auto_sdk_online-programs_sections 1.0.17 → 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 (40) hide show
  1. package/build/cjs/index.js.map +1 -1
  2. package/build/cjs/index.typings.d.ts +2 -2
  3. package/build/cjs/index.typings.js.map +1 -1
  4. package/build/cjs/meta.d.ts +1 -1
  5. package/build/cjs/meta.js.map +1 -1
  6. package/build/es/index.mjs.map +1 -1
  7. package/build/es/index.typings.d.mts +2 -2
  8. package/build/es/index.typings.mjs.map +1 -1
  9. package/build/es/meta.d.mts +1 -1
  10. package/build/es/meta.mjs.map +1 -1
  11. package/build/internal/cjs/index.typings.d.ts +2 -2
  12. package/build/internal/cjs/meta.d.ts +1 -1
  13. package/build/internal/es/index.typings.d.mts +2 -2
  14. package/build/internal/es/meta.d.mts +1 -1
  15. package/package.json +4 -11
  16. package/build/cjs/schemas.d.ts +0 -509
  17. package/build/cjs/schemas.js +0 -810
  18. package/build/cjs/schemas.js.map +0 -1
  19. package/build/es/schemas.d.mts +0 -509
  20. package/build/es/schemas.mjs +0 -754
  21. package/build/es/schemas.mjs.map +0 -1
  22. package/build/internal/cjs/index.js +0 -1444
  23. package/build/internal/cjs/index.js.map +0 -1
  24. package/build/internal/cjs/index.typings.js +0 -1335
  25. package/build/internal/cjs/index.typings.js.map +0 -1
  26. package/build/internal/cjs/meta.js +0 -1026
  27. package/build/internal/cjs/meta.js.map +0 -1
  28. package/build/internal/cjs/schemas.d.ts +0 -509
  29. package/build/internal/cjs/schemas.js +0 -810
  30. package/build/internal/cjs/schemas.js.map +0 -1
  31. package/build/internal/es/index.mjs +0 -1402
  32. package/build/internal/es/index.mjs.map +0 -1
  33. package/build/internal/es/index.typings.mjs +0 -1292
  34. package/build/internal/es/index.typings.mjs.map +0 -1
  35. package/build/internal/es/meta.mjs +0 -982
  36. package/build/internal/es/meta.mjs.map +0 -1
  37. package/build/internal/es/schemas.d.mts +0 -509
  38. package/build/internal/es/schemas.mjs +0 -754
  39. package/build/internal/es/schemas.mjs.map +0 -1
  40. package/schemas/package.json +0 -3
@@ -1,982 +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 getSection(payload) {
283
- function __getSection({ host }) {
284
- const metadata = {
285
- entityFqdn: "wix.online_programs.v3.section",
286
- method: "GET",
287
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.GetSection",
288
- packageName: PACKAGE_NAME,
289
- migrationOptions: {
290
- optInTransformResponse: true
291
- },
292
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
293
- protoPath: "/v3/sections/{sectionId}",
294
- data: payload,
295
- host
296
- }),
297
- params: toURLSearchParams(payload),
298
- transformResponse: (payload2) => transformPaths(payload2, [
299
- {
300
- transformFn: transformRESTTimestampToSDKTimestamp,
301
- paths: [
302
- { path: "section.createdDate" },
303
- { path: "section.updatedDate" },
304
- { path: "section.description.image.urlExpirationDate" },
305
- { path: "section.description.video.urlExpirationDate" },
306
- {
307
- path: "section.description.video.resolutions.urlExpirationDate"
308
- },
309
- {
310
- path: "section.description.video.resolutions.poster.urlExpirationDate"
311
- },
312
- { path: "section.description.video.posters.urlExpirationDate" }
313
- ]
314
- },
315
- {
316
- transformFn: transformRESTFloatToSDKFloat,
317
- paths: [
318
- { path: "section.ordering" },
319
- { path: "section.description.image.focalPoint.x" },
320
- { path: "section.description.image.focalPoint.y" },
321
- {
322
- path: "section.description.video.resolutions.poster.focalPoint.x"
323
- },
324
- {
325
- path: "section.description.video.resolutions.poster.focalPoint.y"
326
- },
327
- { path: "section.description.video.posters.focalPoint.x" },
328
- { path: "section.description.video.posters.focalPoint.y" }
329
- ]
330
- }
331
- ])
332
- };
333
- return metadata;
334
- }
335
- return __getSection;
336
- }
337
- function updateSection(payload) {
338
- function __updateSection({ host }) {
339
- const serializedData = transformPaths(payload, [
340
- {
341
- transformFn: transformSDKFieldMaskToRESTFieldMask,
342
- paths: [{ path: "fieldMask" }]
343
- },
344
- {
345
- transformFn: transformSDKTimestampToRESTTimestamp,
346
- paths: [
347
- { path: "section.createdDate" },
348
- { path: "section.updatedDate" },
349
- { path: "section.description.image.urlExpirationDate" },
350
- { path: "section.description.video.urlExpirationDate" },
351
- { path: "section.description.video.resolutions.urlExpirationDate" },
352
- {
353
- path: "section.description.video.resolutions.poster.urlExpirationDate"
354
- },
355
- { path: "section.description.video.posters.urlExpirationDate" }
356
- ]
357
- },
358
- {
359
- transformFn: transformSDKFloatToRESTFloat,
360
- paths: [
361
- { path: "section.ordering" },
362
- { path: "section.description.image.focalPoint.x" },
363
- { path: "section.description.image.focalPoint.y" },
364
- { path: "section.description.video.resolutions.poster.focalPoint.x" },
365
- { path: "section.description.video.resolutions.poster.focalPoint.y" },
366
- { path: "section.description.video.posters.focalPoint.x" },
367
- { path: "section.description.video.posters.focalPoint.y" }
368
- ]
369
- }
370
- ]);
371
- const metadata = {
372
- entityFqdn: "wix.online_programs.v3.section",
373
- method: "PATCH",
374
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.UpdateSection",
375
- packageName: PACKAGE_NAME,
376
- migrationOptions: {
377
- optInTransformResponse: true
378
- },
379
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
380
- protoPath: "/v3/sections/{section.id}",
381
- data: serializedData,
382
- host
383
- }),
384
- data: serializedData,
385
- transformResponse: (payload2) => transformPaths(payload2, [
386
- {
387
- transformFn: transformRESTTimestampToSDKTimestamp,
388
- paths: [
389
- { path: "section.createdDate" },
390
- { path: "section.updatedDate" },
391
- { path: "section.description.image.urlExpirationDate" },
392
- { path: "section.description.video.urlExpirationDate" },
393
- {
394
- path: "section.description.video.resolutions.urlExpirationDate"
395
- },
396
- {
397
- path: "section.description.video.resolutions.poster.urlExpirationDate"
398
- },
399
- { path: "section.description.video.posters.urlExpirationDate" }
400
- ]
401
- },
402
- {
403
- transformFn: transformRESTFloatToSDKFloat,
404
- paths: [
405
- { path: "section.ordering" },
406
- { path: "section.description.image.focalPoint.x" },
407
- { path: "section.description.image.focalPoint.y" },
408
- {
409
- path: "section.description.video.resolutions.poster.focalPoint.x"
410
- },
411
- {
412
- path: "section.description.video.resolutions.poster.focalPoint.y"
413
- },
414
- { path: "section.description.video.posters.focalPoint.x" },
415
- { path: "section.description.video.posters.focalPoint.y" }
416
- ]
417
- }
418
- ])
419
- };
420
- return metadata;
421
- }
422
- return __updateSection;
423
- }
424
- function deleteSection(payload) {
425
- function __deleteSection({ host }) {
426
- const metadata = {
427
- entityFqdn: "wix.online_programs.v3.section",
428
- method: "DELETE",
429
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.DeleteSection",
430
- packageName: PACKAGE_NAME,
431
- migrationOptions: {
432
- optInTransformResponse: true
433
- },
434
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
435
- protoPath: "/v3/sections/{sectionId}",
436
- data: payload,
437
- host
438
- }),
439
- params: toURLSearchParams(payload)
440
- };
441
- return metadata;
442
- }
443
- return __deleteSection;
444
- }
445
- function querySections(payload) {
446
- function __querySections({ host }) {
447
- const serializedData = transformPaths(payload, [
448
- {
449
- transformFn: transformSDKFloatToRESTFloat,
450
- paths: [
451
- { path: "query.sort.origin.latitude" },
452
- { path: "query.sort.origin.longitude" }
453
- ]
454
- }
455
- ]);
456
- const metadata = {
457
- entityFqdn: "wix.online_programs.v3.section",
458
- method: "POST",
459
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.QuerySections",
460
- packageName: PACKAGE_NAME,
461
- migrationOptions: {
462
- optInTransformResponse: true
463
- },
464
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
465
- protoPath: "/v3/sections/query",
466
- data: serializedData,
467
- host
468
- }),
469
- data: serializedData,
470
- transformResponse: (payload2) => transformPaths(payload2, [
471
- {
472
- transformFn: transformRESTTimestampToSDKTimestamp,
473
- paths: [
474
- { path: "sections.createdDate" },
475
- { path: "sections.updatedDate" },
476
- { path: "sections.description.image.urlExpirationDate" },
477
- { path: "sections.description.video.urlExpirationDate" },
478
- {
479
- path: "sections.description.video.resolutions.urlExpirationDate"
480
- },
481
- {
482
- path: "sections.description.video.resolutions.poster.urlExpirationDate"
483
- },
484
- { path: "sections.description.video.posters.urlExpirationDate" }
485
- ]
486
- },
487
- {
488
- transformFn: transformRESTFloatToSDKFloat,
489
- paths: [
490
- { path: "sections.ordering" },
491
- { path: "sections.description.image.focalPoint.x" },
492
- { path: "sections.description.image.focalPoint.y" },
493
- {
494
- path: "sections.description.video.resolutions.poster.focalPoint.x"
495
- },
496
- {
497
- path: "sections.description.video.resolutions.poster.focalPoint.y"
498
- },
499
- { path: "sections.description.video.posters.focalPoint.x" },
500
- { path: "sections.description.video.posters.focalPoint.y" }
501
- ]
502
- }
503
- ])
504
- };
505
- return metadata;
506
- }
507
- return __querySections;
508
- }
509
- function listSections(payload) {
510
- function __listSections({ host }) {
511
- const metadata = {
512
- entityFqdn: "wix.online_programs.v3.section",
513
- method: "GET",
514
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.ListSections",
515
- packageName: PACKAGE_NAME,
516
- migrationOptions: {
517
- optInTransformResponse: true
518
- },
519
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
520
- protoPath: "/v3/sections",
521
- data: payload,
522
- host
523
- }),
524
- params: toURLSearchParams(payload),
525
- transformResponse: (payload2) => transformPaths(payload2, [
526
- {
527
- transformFn: transformRESTTimestampToSDKTimestamp,
528
- paths: [
529
- { path: "sections.createdDate" },
530
- { path: "sections.updatedDate" },
531
- { path: "sections.description.image.urlExpirationDate" },
532
- { path: "sections.description.video.urlExpirationDate" },
533
- {
534
- path: "sections.description.video.resolutions.urlExpirationDate"
535
- },
536
- {
537
- path: "sections.description.video.resolutions.poster.urlExpirationDate"
538
- },
539
- { path: "sections.description.video.posters.urlExpirationDate" }
540
- ]
541
- },
542
- {
543
- transformFn: transformRESTFloatToSDKFloat,
544
- paths: [
545
- { path: "sections.ordering" },
546
- { path: "sections.description.image.focalPoint.x" },
547
- { path: "sections.description.image.focalPoint.y" },
548
- {
549
- path: "sections.description.video.resolutions.poster.focalPoint.x"
550
- },
551
- {
552
- path: "sections.description.video.resolutions.poster.focalPoint.y"
553
- },
554
- { path: "sections.description.video.posters.focalPoint.x" },
555
- { path: "sections.description.video.posters.focalPoint.y" }
556
- ]
557
- }
558
- ])
559
- };
560
- return metadata;
561
- }
562
- return __listSections;
563
- }
564
- function cloneSection(payload) {
565
- function __cloneSection({ host }) {
566
- const metadata = {
567
- entityFqdn: "wix.online_programs.v3.section",
568
- method: "POST",
569
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.CloneSection",
570
- packageName: PACKAGE_NAME,
571
- migrationOptions: {
572
- optInTransformResponse: true
573
- },
574
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
575
- protoPath: "/v3/sections/{sectionId}/clone",
576
- data: payload,
577
- host
578
- }),
579
- data: payload,
580
- transformResponse: (payload2) => transformPaths(payload2, [
581
- {
582
- transformFn: transformRESTTimestampToSDKTimestamp,
583
- paths: [
584
- { path: "section.createdDate" },
585
- { path: "section.updatedDate" },
586
- { path: "section.description.image.urlExpirationDate" },
587
- { path: "section.description.video.urlExpirationDate" },
588
- {
589
- path: "section.description.video.resolutions.urlExpirationDate"
590
- },
591
- {
592
- path: "section.description.video.resolutions.poster.urlExpirationDate"
593
- },
594
- { path: "section.description.video.posters.urlExpirationDate" }
595
- ]
596
- },
597
- {
598
- transformFn: transformRESTFloatToSDKFloat,
599
- paths: [
600
- { path: "section.ordering" },
601
- { path: "section.description.image.focalPoint.x" },
602
- { path: "section.description.image.focalPoint.y" },
603
- {
604
- path: "section.description.video.resolutions.poster.focalPoint.x"
605
- },
606
- {
607
- path: "section.description.video.resolutions.poster.focalPoint.y"
608
- },
609
- { path: "section.description.video.posters.focalPoint.x" },
610
- { path: "section.description.video.posters.focalPoint.y" }
611
- ]
612
- }
613
- ])
614
- };
615
- return metadata;
616
- }
617
- return __cloneSection;
618
- }
619
- function moveSection(payload) {
620
- function __moveSection({ host }) {
621
- const metadata = {
622
- entityFqdn: "wix.online_programs.v3.section",
623
- method: "PATCH",
624
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.MoveSection",
625
- packageName: PACKAGE_NAME,
626
- migrationOptions: {
627
- optInTransformResponse: true
628
- },
629
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
630
- protoPath: "/v3/sections/move",
631
- data: payload,
632
- host
633
- }),
634
- data: payload,
635
- transformResponse: (payload2) => transformPaths(payload2, [
636
- {
637
- transformFn: transformRESTTimestampToSDKTimestamp,
638
- paths: [
639
- { path: "section.createdDate" },
640
- { path: "section.updatedDate" },
641
- { path: "section.description.image.urlExpirationDate" },
642
- { path: "section.description.video.urlExpirationDate" },
643
- {
644
- path: "section.description.video.resolutions.urlExpirationDate"
645
- },
646
- {
647
- path: "section.description.video.resolutions.poster.urlExpirationDate"
648
- },
649
- { path: "section.description.video.posters.urlExpirationDate" }
650
- ]
651
- },
652
- {
653
- transformFn: transformRESTFloatToSDKFloat,
654
- paths: [
655
- { path: "section.ordering" },
656
- { path: "section.description.image.focalPoint.x" },
657
- { path: "section.description.image.focalPoint.y" },
658
- {
659
- path: "section.description.video.resolutions.poster.focalPoint.x"
660
- },
661
- {
662
- path: "section.description.video.resolutions.poster.focalPoint.y"
663
- },
664
- { path: "section.description.video.posters.focalPoint.x" },
665
- { path: "section.description.video.posters.focalPoint.y" }
666
- ]
667
- }
668
- ])
669
- };
670
- return metadata;
671
- }
672
- return __moveSection;
673
- }
674
- function publishSection(payload) {
675
- function __publishSection({ host }) {
676
- const metadata = {
677
- entityFqdn: "wix.online_programs.v3.section",
678
- method: "PATCH",
679
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.PublishSection",
680
- packageName: PACKAGE_NAME,
681
- migrationOptions: {
682
- optInTransformResponse: true
683
- },
684
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
685
- protoPath: "/v3/sections/publish",
686
- data: payload,
687
- host
688
- }),
689
- data: payload,
690
- transformResponse: (payload2) => transformPaths(payload2, [
691
- {
692
- transformFn: transformRESTTimestampToSDKTimestamp,
693
- paths: [
694
- { path: "section.createdDate" },
695
- { path: "section.updatedDate" },
696
- { path: "section.description.image.urlExpirationDate" },
697
- { path: "section.description.video.urlExpirationDate" },
698
- {
699
- path: "section.description.video.resolutions.urlExpirationDate"
700
- },
701
- {
702
- path: "section.description.video.resolutions.poster.urlExpirationDate"
703
- },
704
- { path: "section.description.video.posters.urlExpirationDate" }
705
- ]
706
- },
707
- {
708
- transformFn: transformRESTFloatToSDKFloat,
709
- paths: [
710
- { path: "section.ordering" },
711
- { path: "section.description.image.focalPoint.x" },
712
- { path: "section.description.image.focalPoint.y" },
713
- {
714
- path: "section.description.video.resolutions.poster.focalPoint.x"
715
- },
716
- {
717
- path: "section.description.video.resolutions.poster.focalPoint.y"
718
- },
719
- { path: "section.description.video.posters.focalPoint.x" },
720
- { path: "section.description.video.posters.focalPoint.y" }
721
- ]
722
- }
723
- ])
724
- };
725
- return metadata;
726
- }
727
- return __publishSection;
728
- }
729
-
730
- // src/online-programs-v3-section-sections.types.ts
731
- var State = /* @__PURE__ */ ((State2) => {
732
- State2["DRAFT"] = "DRAFT";
733
- State2["PUBLISHED"] = "PUBLISHED";
734
- return State2;
735
- })(State || {});
736
- var Enum = /* @__PURE__ */ ((Enum2) => {
737
- Enum2["UNKNOWN"] = "UNKNOWN";
738
- Enum2["PROTECTED"] = "PROTECTED";
739
- Enum2["PRIVATE"] = "PRIVATE";
740
- Enum2["PUBLIC"] = "PUBLIC";
741
- Enum2["UNCHANGED"] = "UNCHANGED";
742
- Enum2["GROUP_PROTECTED"] = "GROUP_PROTECTED";
743
- return Enum2;
744
- })(Enum || {});
745
- var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
746
- RequestedFields2["TOTAL_STEPS"] = "TOTAL_STEPS";
747
- return RequestedFields2;
748
- })(RequestedFields || {});
749
- var BulkActionType = /* @__PURE__ */ ((BulkActionType2) => {
750
- BulkActionType2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
751
- BulkActionType2["INSERT"] = "INSERT";
752
- BulkActionType2["UPDATE"] = "UPDATE";
753
- BulkActionType2["DELETE"] = "DELETE";
754
- return BulkActionType2;
755
- })(BulkActionType || {});
756
- var DescriptionFieldSet = /* @__PURE__ */ ((DescriptionFieldSet2) => {
757
- DescriptionFieldSet2["STANDARD"] = "STANDARD";
758
- DescriptionFieldSet2["EXTENDED"] = "EXTENDED";
759
- return DescriptionFieldSet2;
760
- })(DescriptionFieldSet || {});
761
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
762
- SortOrder2["ASC"] = "ASC";
763
- SortOrder2["DESC"] = "DESC";
764
- return SortOrder2;
765
- })(SortOrder || {});
766
- var SearchIndexingNotificationState = /* @__PURE__ */ ((SearchIndexingNotificationState2) => {
767
- SearchIndexingNotificationState2["Unknown"] = "Unknown";
768
- SearchIndexingNotificationState2["Off"] = "Off";
769
- SearchIndexingNotificationState2["On"] = "On";
770
- return SearchIndexingNotificationState2;
771
- })(SearchIndexingNotificationState || {});
772
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
773
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
774
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
775
- WebhookIdentityType2["MEMBER"] = "MEMBER";
776
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
777
- WebhookIdentityType2["APP"] = "APP";
778
- return WebhookIdentityType2;
779
- })(WebhookIdentityType || {});
780
-
781
- // src/online-programs-v3-section-sections.meta.ts
782
- function createSection2() {
783
- const payload = {};
784
- const getRequestOptions = createSection(payload);
785
- const getUrl = (context) => {
786
- const { url } = getRequestOptions(context);
787
- return url;
788
- };
789
- return {
790
- getUrl,
791
- httpMethod: "POST",
792
- path: "/v3/sections",
793
- pathParams: {},
794
- __requestType: null,
795
- __originalRequestType: null,
796
- __responseType: null,
797
- __originalResponseType: null
798
- };
799
- }
800
- function bulkCreateSections2() {
801
- const payload = {};
802
- const getRequestOptions = bulkCreateSections(payload);
803
- const getUrl = (context) => {
804
- const { url } = getRequestOptions(context);
805
- return url;
806
- };
807
- return {
808
- getUrl,
809
- httpMethod: "POST",
810
- path: "/v3/bulk/sections/create",
811
- pathParams: {},
812
- __requestType: null,
813
- __originalRequestType: null,
814
- __responseType: null,
815
- __originalResponseType: null
816
- };
817
- }
818
- function getSection2() {
819
- const payload = { sectionId: ":sectionId" };
820
- const getRequestOptions = getSection(payload);
821
- const getUrl = (context) => {
822
- const { url } = getRequestOptions(context);
823
- return url;
824
- };
825
- return {
826
- getUrl,
827
- httpMethod: "GET",
828
- path: "/v3/sections/{sectionId}",
829
- pathParams: { sectionId: "sectionId" },
830
- __requestType: null,
831
- __originalRequestType: null,
832
- __responseType: null,
833
- __originalResponseType: null
834
- };
835
- }
836
- function updateSection2() {
837
- const payload = { section: { id: ":sectionId" } };
838
- const getRequestOptions = updateSection(payload);
839
- const getUrl = (context) => {
840
- const { url } = getRequestOptions(context);
841
- return url;
842
- };
843
- return {
844
- getUrl,
845
- httpMethod: "PATCH",
846
- path: "/v3/sections/{section.id}",
847
- pathParams: { sectionId: "sectionId" },
848
- __requestType: null,
849
- __originalRequestType: null,
850
- __responseType: null,
851
- __originalResponseType: null
852
- };
853
- }
854
- function deleteSection2() {
855
- const payload = { sectionId: ":sectionId" };
856
- const getRequestOptions = deleteSection(payload);
857
- const getUrl = (context) => {
858
- const { url } = getRequestOptions(context);
859
- return url;
860
- };
861
- return {
862
- getUrl,
863
- httpMethod: "DELETE",
864
- path: "/v3/sections/{sectionId}",
865
- pathParams: { sectionId: "sectionId" },
866
- __requestType: null,
867
- __originalRequestType: null,
868
- __responseType: null,
869
- __originalResponseType: null
870
- };
871
- }
872
- function querySections2() {
873
- const payload = {};
874
- const getRequestOptions = querySections(payload);
875
- const getUrl = (context) => {
876
- const { url } = getRequestOptions(context);
877
- return url;
878
- };
879
- return {
880
- getUrl,
881
- httpMethod: "POST",
882
- path: "/v3/sections/query",
883
- pathParams: {},
884
- __requestType: null,
885
- __originalRequestType: null,
886
- __responseType: null,
887
- __originalResponseType: null
888
- };
889
- }
890
- function listSections2() {
891
- const payload = {};
892
- const getRequestOptions = listSections(payload);
893
- const getUrl = (context) => {
894
- const { url } = getRequestOptions(context);
895
- return url;
896
- };
897
- return {
898
- getUrl,
899
- httpMethod: "GET",
900
- path: "/v3/sections",
901
- pathParams: {},
902
- __requestType: null,
903
- __originalRequestType: null,
904
- __responseType: null,
905
- __originalResponseType: null
906
- };
907
- }
908
- function cloneSection2() {
909
- const payload = { sectionId: ":sectionId" };
910
- const getRequestOptions = cloneSection(payload);
911
- const getUrl = (context) => {
912
- const { url } = getRequestOptions(context);
913
- return url;
914
- };
915
- return {
916
- getUrl,
917
- httpMethod: "POST",
918
- path: "/v3/sections/{sectionId}/clone",
919
- pathParams: { sectionId: "sectionId" },
920
- __requestType: null,
921
- __originalRequestType: null,
922
- __responseType: null,
923
- __originalResponseType: null
924
- };
925
- }
926
- function moveSection2() {
927
- const payload = {};
928
- const getRequestOptions = moveSection(payload);
929
- const getUrl = (context) => {
930
- const { url } = getRequestOptions(context);
931
- return url;
932
- };
933
- return {
934
- getUrl,
935
- httpMethod: "PATCH",
936
- path: "/v3/sections/move",
937
- pathParams: {},
938
- __requestType: null,
939
- __originalRequestType: null,
940
- __responseType: null,
941
- __originalResponseType: null
942
- };
943
- }
944
- function publishSection2() {
945
- const payload = {};
946
- const getRequestOptions = publishSection(payload);
947
- const getUrl = (context) => {
948
- const { url } = getRequestOptions(context);
949
- return url;
950
- };
951
- return {
952
- getUrl,
953
- httpMethod: "PATCH",
954
- path: "/v3/sections/publish",
955
- pathParams: {},
956
- __requestType: null,
957
- __originalRequestType: null,
958
- __responseType: null,
959
- __originalResponseType: null
960
- };
961
- }
962
- export {
963
- BulkActionType as BulkActionTypeOriginal,
964
- DescriptionFieldSet as DescriptionFieldSetOriginal,
965
- Enum as EnumOriginal,
966
- RequestedFields as RequestedFieldsOriginal,
967
- SearchIndexingNotificationState as SearchIndexingNotificationStateOriginal,
968
- SortOrder as SortOrderOriginal,
969
- State as StateOriginal,
970
- WebhookIdentityType as WebhookIdentityTypeOriginal,
971
- bulkCreateSections2 as bulkCreateSections,
972
- cloneSection2 as cloneSection,
973
- createSection2 as createSection,
974
- deleteSection2 as deleteSection,
975
- getSection2 as getSection,
976
- listSections2 as listSections,
977
- moveSection2 as moveSection,
978
- publishSection2 as publishSection,
979
- querySections2 as querySections,
980
- updateSection2 as updateSection
981
- };
982
- //# sourceMappingURL=meta.mjs.map