@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_typings_exports, {
29
29
  State: () => State,
30
30
  WebhookIdentityType: () => WebhookIdentityType,
31
31
  bulkCreateSection: () => bulkCreateSection2,
32
- bulkCreateSectionMigration: () => bulkCreateSectionMigration2,
33
32
  cloneSection: () => cloneSection2,
34
33
  createSection: () => createSection2,
35
34
  deleteSection: () => deleteSection2,
@@ -144,6 +143,14 @@ function resolveWixOnlineprogramsSectionsV3SectionsServiceUrl(opts) {
144
143
  {
145
144
  srcPath: "/program-sections-service",
146
145
  destPath: ""
146
+ },
147
+ {
148
+ srcPath: "/online-programs/v3/sections",
149
+ destPath: "/v3/sections"
150
+ },
151
+ {
152
+ srcPath: "/online-programs/v3/bulk/sections",
153
+ destPath: "/v3/bulk/sections"
147
154
  }
148
155
  ]
149
156
  };
@@ -322,95 +329,6 @@ function bulkCreateSection(payload) {
322
329
  }
323
330
  return __bulkCreateSection;
324
331
  }
325
- function bulkCreateSectionMigration(payload) {
326
- function __bulkCreateSectionMigration({ host }) {
327
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
328
- {
329
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
330
- paths: [
331
- { path: "sections.createdDate" },
332
- { path: "sections.updatedDate" },
333
- { path: "sections.description.image.urlExpirationDate" },
334
- { path: "sections.description.video.urlExpirationDate" },
335
- { path: "sections.description.video.resolutions.urlExpirationDate" },
336
- {
337
- path: "sections.description.video.resolutions.poster.urlExpirationDate"
338
- },
339
- { path: "sections.description.video.posters.urlExpirationDate" }
340
- ]
341
- },
342
- {
343
- transformFn: import_float.transformSDKFloatToRESTFloat,
344
- paths: [
345
- { path: "sections.ordering" },
346
- { path: "sections.description.image.focalPoint.x" },
347
- { path: "sections.description.image.focalPoint.y" },
348
- {
349
- path: "sections.description.video.resolutions.poster.focalPoint.x"
350
- },
351
- {
352
- path: "sections.description.video.resolutions.poster.focalPoint.y"
353
- },
354
- { path: "sections.description.video.posters.focalPoint.x" },
355
- { path: "sections.description.video.posters.focalPoint.y" }
356
- ]
357
- }
358
- ]);
359
- const metadata = {
360
- entityFqdn: "wix.online_programs.v3.section",
361
- method: "POST",
362
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSectionMigration",
363
- packageName: PACKAGE_NAME,
364
- migrationOptions: {
365
- optInTransformResponse: true
366
- },
367
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
368
- protoPath: "/v3/bulk/sections/create/migration",
369
- data: serializedData,
370
- host
371
- }),
372
- data: serializedData,
373
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
374
- {
375
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
376
- paths: [
377
- { path: "results.item.createdDate" },
378
- { path: "results.item.updatedDate" },
379
- { path: "results.item.description.image.urlExpirationDate" },
380
- { path: "results.item.description.video.urlExpirationDate" },
381
- {
382
- path: "results.item.description.video.resolutions.urlExpirationDate"
383
- },
384
- {
385
- path: "results.item.description.video.resolutions.poster.urlExpirationDate"
386
- },
387
- {
388
- path: "results.item.description.video.posters.urlExpirationDate"
389
- }
390
- ]
391
- },
392
- {
393
- transformFn: import_float2.transformRESTFloatToSDKFloat,
394
- paths: [
395
- { path: "results.item.ordering" },
396
- { path: "results.item.description.image.focalPoint.x" },
397
- { path: "results.item.description.image.focalPoint.y" },
398
- {
399
- path: "results.item.description.video.resolutions.poster.focalPoint.x"
400
- },
401
- {
402
- path: "results.item.description.video.resolutions.poster.focalPoint.y"
403
- },
404
- { path: "results.item.description.video.posters.focalPoint.x" },
405
- { path: "results.item.description.video.posters.focalPoint.y" }
406
- ]
407
- }
408
- ])
409
- };
410
- return metadata;
411
- }
412
- return __bulkCreateSectionMigration;
413
- }
414
332
  function getSection(payload) {
415
333
  function __getSection({ host }) {
416
334
  const metadata = {
@@ -1004,52 +922,6 @@ async function bulkCreateSection2(sections, options) {
1004
922
  throw transformedError;
1005
923
  }
1006
924
  }
1007
- async function bulkCreateSectionMigration2(sections) {
1008
- const { httpClient, sideEffects } = arguments[1];
1009
- const payload = (0, import_transform_paths2.transformPaths)(
1010
- (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ sections }),
1011
- [
1012
- {
1013
- transformFn: import_image.transformSDKImageToRESTImage,
1014
- paths: [{ path: "sections.description.image" }]
1015
- },
1016
- {
1017
- transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
1018
- paths: [{ path: "sections.description.video" }]
1019
- }
1020
- ]
1021
- );
1022
- const reqOpts = bulkCreateSectionMigration(payload);
1023
- sideEffects?.onSiteCall?.();
1024
- try {
1025
- const result = await httpClient.request(reqOpts);
1026
- sideEffects?.onSuccess?.(result);
1027
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1028
- (0, import_transform_paths2.transformPaths)(result.data, [
1029
- {
1030
- transformFn: import_image2.transformRESTImageToSDKImage,
1031
- paths: [{ path: "results.item.description.image" }]
1032
- },
1033
- {
1034
- transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
1035
- paths: [{ path: "results.item.description.video" }]
1036
- }
1037
- ])
1038
- );
1039
- } catch (err) {
1040
- const transformedError = (0, import_transform_error.transformError)(
1041
- err,
1042
- {
1043
- spreadPathsToArguments: {},
1044
- explicitPathsToArguments: { sections: "$[0]" },
1045
- singleArgumentUnchanged: false
1046
- },
1047
- ["sections"]
1048
- );
1049
- sideEffects?.onError?.(err);
1050
- throw transformedError;
1051
- }
1052
- }
1053
925
  async function getSection2(sectionId, options) {
1054
926
  const { httpClient, sideEffects } = arguments[2];
1055
927
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1441,7 +1313,6 @@ async function publishSection2(options) {
1441
1313
  State,
1442
1314
  WebhookIdentityType,
1443
1315
  bulkCreateSection,
1444
- bulkCreateSectionMigration,
1445
1316
  cloneSection,
1446
1317
  createSection,
1447
1318
  deleteSection,