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