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