@wix/auto_sdk_online-programs_sections 1.0.13 → 1.0.14

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 (49) hide show
  1. package/build/cjs/index.d.ts +49 -31
  2. package/build/cjs/index.js +8 -145
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +164 -122
  5. package/build/cjs/index.typings.js +8 -137
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +84 -70
  8. package/build/cjs/meta.js +8 -109
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +1 -92
  11. package/build/cjs/schemas.js +270 -294
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +49 -31
  14. package/build/es/index.mjs +8 -144
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +164 -122
  17. package/build/es/index.typings.mjs +8 -136
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +84 -70
  20. package/build/es/meta.mjs +8 -108
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +1 -92
  23. package/build/es/schemas.mjs +270 -292
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +49 -31
  26. package/build/internal/cjs/index.js +8 -145
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +164 -122
  29. package/build/internal/cjs/index.typings.js +8 -137
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +84 -70
  32. package/build/internal/cjs/meta.js +8 -109
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +1 -92
  35. package/build/internal/cjs/schemas.js +270 -294
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +49 -31
  38. package/build/internal/es/index.mjs +8 -144
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +164 -122
  41. package/build/internal/es/index.typings.mjs +8 -136
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +84 -70
  44. package/build/internal/es/meta.mjs +8 -108
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +1 -92
  47. package/build/internal/es/schemas.mjs +270 -292
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -29,7 +29,6 @@ __export(index_exports, {
29
29
  State: () => State,
30
30
  WebhookIdentityType: () => WebhookIdentityType,
31
31
  bulkCreateSection: () => bulkCreateSection4,
32
- bulkCreateSectionMigration: () => bulkCreateSectionMigration4,
33
32
  cloneSection: () => cloneSection4,
34
33
  createSection: () => createSection4,
35
34
  deleteSection: () => deleteSection4,
@@ -143,6 +142,14 @@ function resolveWixOnlineprogramsSectionsV3SectionsServiceUrl(opts) {
143
142
  {
144
143
  srcPath: "/program-sections-service",
145
144
  destPath: ""
145
+ },
146
+ {
147
+ srcPath: "/online-programs/v3/sections",
148
+ destPath: "/v3/sections"
149
+ },
150
+ {
151
+ srcPath: "/online-programs/v3/bulk/sections",
152
+ destPath: "/v3/bulk/sections"
146
153
  }
147
154
  ]
148
155
  };
@@ -321,95 +328,6 @@ function bulkCreateSection(payload) {
321
328
  }
322
329
  return __bulkCreateSection;
323
330
  }
324
- function bulkCreateSectionMigration(payload) {
325
- function __bulkCreateSectionMigration({ host }) {
326
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
327
- {
328
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
329
- paths: [
330
- { path: "sections.createdDate" },
331
- { path: "sections.updatedDate" },
332
- { path: "sections.description.image.urlExpirationDate" },
333
- { path: "sections.description.video.urlExpirationDate" },
334
- { path: "sections.description.video.resolutions.urlExpirationDate" },
335
- {
336
- path: "sections.description.video.resolutions.poster.urlExpirationDate"
337
- },
338
- { path: "sections.description.video.posters.urlExpirationDate" }
339
- ]
340
- },
341
- {
342
- transformFn: import_float.transformSDKFloatToRESTFloat,
343
- paths: [
344
- { path: "sections.ordering" },
345
- { path: "sections.description.image.focalPoint.x" },
346
- { path: "sections.description.image.focalPoint.y" },
347
- {
348
- path: "sections.description.video.resolutions.poster.focalPoint.x"
349
- },
350
- {
351
- path: "sections.description.video.resolutions.poster.focalPoint.y"
352
- },
353
- { path: "sections.description.video.posters.focalPoint.x" },
354
- { path: "sections.description.video.posters.focalPoint.y" }
355
- ]
356
- }
357
- ]);
358
- const metadata = {
359
- entityFqdn: "wix.online_programs.v3.section",
360
- method: "POST",
361
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSectionMigration",
362
- packageName: PACKAGE_NAME,
363
- migrationOptions: {
364
- optInTransformResponse: true
365
- },
366
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
367
- protoPath: "/v3/bulk/sections/create/migration",
368
- data: serializedData,
369
- host
370
- }),
371
- data: serializedData,
372
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
373
- {
374
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
375
- paths: [
376
- { path: "results.item.createdDate" },
377
- { path: "results.item.updatedDate" },
378
- { path: "results.item.description.image.urlExpirationDate" },
379
- { path: "results.item.description.video.urlExpirationDate" },
380
- {
381
- path: "results.item.description.video.resolutions.urlExpirationDate"
382
- },
383
- {
384
- path: "results.item.description.video.resolutions.poster.urlExpirationDate"
385
- },
386
- {
387
- path: "results.item.description.video.posters.urlExpirationDate"
388
- }
389
- ]
390
- },
391
- {
392
- transformFn: import_float2.transformRESTFloatToSDKFloat,
393
- paths: [
394
- { path: "results.item.ordering" },
395
- { path: "results.item.description.image.focalPoint.x" },
396
- { path: "results.item.description.image.focalPoint.y" },
397
- {
398
- path: "results.item.description.video.resolutions.poster.focalPoint.x"
399
- },
400
- {
401
- path: "results.item.description.video.resolutions.poster.focalPoint.y"
402
- },
403
- { path: "results.item.description.video.posters.focalPoint.x" },
404
- { path: "results.item.description.video.posters.focalPoint.y" }
405
- ]
406
- }
407
- ])
408
- };
409
- return metadata;
410
- }
411
- return __bulkCreateSectionMigration;
412
- }
413
331
  function getSection(payload) {
414
332
  function __getSection({ host }) {
415
333
  const metadata = {
@@ -1003,52 +921,6 @@ async function bulkCreateSection2(sections, options) {
1003
921
  throw transformedError;
1004
922
  }
1005
923
  }
1006
- async function bulkCreateSectionMigration2(sections) {
1007
- const { httpClient, sideEffects } = arguments[1];
1008
- const payload = (0, import_transform_paths2.transformPaths)(
1009
- (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ sections }),
1010
- [
1011
- {
1012
- transformFn: import_image.transformSDKImageToRESTImage,
1013
- paths: [{ path: "sections.description.image" }]
1014
- },
1015
- {
1016
- transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
1017
- paths: [{ path: "sections.description.video" }]
1018
- }
1019
- ]
1020
- );
1021
- const reqOpts = bulkCreateSectionMigration(payload);
1022
- sideEffects?.onSiteCall?.();
1023
- try {
1024
- const result = await httpClient.request(reqOpts);
1025
- sideEffects?.onSuccess?.(result);
1026
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1027
- (0, import_transform_paths2.transformPaths)(result.data, [
1028
- {
1029
- transformFn: import_image2.transformRESTImageToSDKImage,
1030
- paths: [{ path: "results.item.description.image" }]
1031
- },
1032
- {
1033
- transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
1034
- paths: [{ path: "results.item.description.video" }]
1035
- }
1036
- ])
1037
- );
1038
- } catch (err) {
1039
- const transformedError = (0, import_transform_error.transformError)(
1040
- err,
1041
- {
1042
- spreadPathsToArguments: {},
1043
- explicitPathsToArguments: { sections: "$[0]" },
1044
- singleArgumentUnchanged: false
1045
- },
1046
- ["sections"]
1047
- );
1048
- sideEffects?.onError?.(err);
1049
- throw transformedError;
1050
- }
1051
- }
1052
924
  async function getSection2(sectionId, options) {
1053
925
  const { httpClient, sideEffects } = arguments[2];
1054
926
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1447,13 +1319,6 @@ function bulkCreateSection3(httpClient) {
1447
1319
  { httpClient }
1448
1320
  );
1449
1321
  }
1450
- function bulkCreateSectionMigration3(httpClient) {
1451
- return (sections) => bulkCreateSectionMigration2(
1452
- sections,
1453
- // @ts-ignore
1454
- { httpClient }
1455
- );
1456
- }
1457
1322
  function getSection3(httpClient) {
1458
1323
  return (sectionId, options) => getSection2(
1459
1324
  sectionId,
@@ -1539,7 +1404,6 @@ function customQuerySections(httpClient) {
1539
1404
  }
1540
1405
  var createSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createSection3);
1541
1406
  var bulkCreateSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateSection3);
1542
- var bulkCreateSectionMigration4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateSectionMigration3);
1543
1407
  var getSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSection3);
1544
1408
  var updateSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSection3);
1545
1409
  var deleteSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteSection3);
@@ -1559,7 +1423,6 @@ var querySections4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
1559
1423
  State,
1560
1424
  WebhookIdentityType,
1561
1425
  bulkCreateSection,
1562
- bulkCreateSectionMigration,
1563
1426
  cloneSection,
1564
1427
  createSection,
1565
1428
  deleteSection,