@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
@@ -101,6 +101,14 @@ function resolveWixOnlineprogramsSectionsV3SectionsServiceUrl(opts) {
101
101
  {
102
102
  srcPath: "/program-sections-service",
103
103
  destPath: ""
104
+ },
105
+ {
106
+ srcPath: "/online-programs/v3/sections",
107
+ destPath: "/v3/sections"
108
+ },
109
+ {
110
+ srcPath: "/online-programs/v3/bulk/sections",
111
+ destPath: "/v3/bulk/sections"
104
112
  }
105
113
  ]
106
114
  };
@@ -279,95 +287,6 @@ function bulkCreateSection(payload) {
279
287
  }
280
288
  return __bulkCreateSection;
281
289
  }
282
- function bulkCreateSectionMigration(payload) {
283
- function __bulkCreateSectionMigration({ host }) {
284
- const serializedData = transformPaths(payload, [
285
- {
286
- transformFn: transformSDKTimestampToRESTTimestamp,
287
- paths: [
288
- { path: "sections.createdDate" },
289
- { path: "sections.updatedDate" },
290
- { path: "sections.description.image.urlExpirationDate" },
291
- { path: "sections.description.video.urlExpirationDate" },
292
- { path: "sections.description.video.resolutions.urlExpirationDate" },
293
- {
294
- path: "sections.description.video.resolutions.poster.urlExpirationDate"
295
- },
296
- { path: "sections.description.video.posters.urlExpirationDate" }
297
- ]
298
- },
299
- {
300
- transformFn: transformSDKFloatToRESTFloat,
301
- paths: [
302
- { path: "sections.ordering" },
303
- { path: "sections.description.image.focalPoint.x" },
304
- { path: "sections.description.image.focalPoint.y" },
305
- {
306
- path: "sections.description.video.resolutions.poster.focalPoint.x"
307
- },
308
- {
309
- path: "sections.description.video.resolutions.poster.focalPoint.y"
310
- },
311
- { path: "sections.description.video.posters.focalPoint.x" },
312
- { path: "sections.description.video.posters.focalPoint.y" }
313
- ]
314
- }
315
- ]);
316
- const metadata = {
317
- entityFqdn: "wix.online_programs.v3.section",
318
- method: "POST",
319
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSectionMigration",
320
- packageName: PACKAGE_NAME,
321
- migrationOptions: {
322
- optInTransformResponse: true
323
- },
324
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
325
- protoPath: "/v3/bulk/sections/create/migration",
326
- data: serializedData,
327
- host
328
- }),
329
- data: serializedData,
330
- transformResponse: (payload2) => transformPaths(payload2, [
331
- {
332
- transformFn: transformRESTTimestampToSDKTimestamp,
333
- paths: [
334
- { path: "results.item.createdDate" },
335
- { path: "results.item.updatedDate" },
336
- { path: "results.item.description.image.urlExpirationDate" },
337
- { path: "results.item.description.video.urlExpirationDate" },
338
- {
339
- path: "results.item.description.video.resolutions.urlExpirationDate"
340
- },
341
- {
342
- path: "results.item.description.video.resolutions.poster.urlExpirationDate"
343
- },
344
- {
345
- path: "results.item.description.video.posters.urlExpirationDate"
346
- }
347
- ]
348
- },
349
- {
350
- transformFn: transformRESTFloatToSDKFloat,
351
- paths: [
352
- { path: "results.item.ordering" },
353
- { path: "results.item.description.image.focalPoint.x" },
354
- { path: "results.item.description.image.focalPoint.y" },
355
- {
356
- path: "results.item.description.video.resolutions.poster.focalPoint.x"
357
- },
358
- {
359
- path: "results.item.description.video.resolutions.poster.focalPoint.y"
360
- },
361
- { path: "results.item.description.video.posters.focalPoint.x" },
362
- { path: "results.item.description.video.posters.focalPoint.y" }
363
- ]
364
- }
365
- ])
366
- };
367
- return metadata;
368
- }
369
- return __bulkCreateSectionMigration;
370
- }
371
290
  function getSection(payload) {
372
291
  function __getSection({ host }) {
373
292
  const metadata = {
@@ -961,52 +880,6 @@ async function bulkCreateSection2(sections, options) {
961
880
  throw transformedError;
962
881
  }
963
882
  }
964
- async function bulkCreateSectionMigration2(sections) {
965
- const { httpClient, sideEffects } = arguments[1];
966
- const payload = transformPaths2(
967
- renameKeysFromSDKRequestToRESTRequest({ sections }),
968
- [
969
- {
970
- transformFn: transformSDKImageToRESTImage,
971
- paths: [{ path: "sections.description.image" }]
972
- },
973
- {
974
- transformFn: transformSDKVideoV2ToRESTVideoV2,
975
- paths: [{ path: "sections.description.video" }]
976
- }
977
- ]
978
- );
979
- const reqOpts = bulkCreateSectionMigration(payload);
980
- sideEffects?.onSiteCall?.();
981
- try {
982
- const result = await httpClient.request(reqOpts);
983
- sideEffects?.onSuccess?.(result);
984
- return renameKeysFromRESTResponseToSDKResponse(
985
- transformPaths2(result.data, [
986
- {
987
- transformFn: transformRESTImageToSDKImage,
988
- paths: [{ path: "results.item.description.image" }]
989
- },
990
- {
991
- transformFn: transformRESTVideoV2ToSDKVideoV2,
992
- paths: [{ path: "results.item.description.video" }]
993
- }
994
- ])
995
- );
996
- } catch (err) {
997
- const transformedError = sdkTransformError(
998
- err,
999
- {
1000
- spreadPathsToArguments: {},
1001
- explicitPathsToArguments: { sections: "$[0]" },
1002
- singleArgumentUnchanged: false
1003
- },
1004
- ["sections"]
1005
- );
1006
- sideEffects?.onError?.(err);
1007
- throw transformedError;
1008
- }
1009
- }
1010
883
  async function getSection2(sectionId, options) {
1011
884
  const { httpClient, sideEffects } = arguments[2];
1012
885
  const payload = renameKeysFromSDKRequestToRESTRequest({
@@ -1405,13 +1278,6 @@ function bulkCreateSection3(httpClient) {
1405
1278
  { httpClient }
1406
1279
  );
1407
1280
  }
1408
- function bulkCreateSectionMigration3(httpClient) {
1409
- return (sections) => bulkCreateSectionMigration2(
1410
- sections,
1411
- // @ts-ignore
1412
- { httpClient }
1413
- );
1414
- }
1415
1281
  function getSection3(httpClient) {
1416
1282
  return (sectionId, options) => getSection2(
1417
1283
  sectionId,
@@ -1497,7 +1363,6 @@ function customQuerySections(httpClient) {
1497
1363
  }
1498
1364
  var createSection4 = /* @__PURE__ */ createRESTModule(createSection3);
1499
1365
  var bulkCreateSection4 = /* @__PURE__ */ createRESTModule(bulkCreateSection3);
1500
- var bulkCreateSectionMigration4 = /* @__PURE__ */ createRESTModule(bulkCreateSectionMigration3);
1501
1366
  var getSection4 = /* @__PURE__ */ createRESTModule(getSection3);
1502
1367
  var updateSection4 = /* @__PURE__ */ createRESTModule(updateSection3);
1503
1368
  var deleteSection4 = /* @__PURE__ */ createRESTModule(deleteSection3);
@@ -1516,7 +1381,6 @@ export {
1516
1381
  State,
1517
1382
  WebhookIdentityType,
1518
1383
  bulkCreateSection4 as bulkCreateSection,
1519
- bulkCreateSectionMigration4 as bulkCreateSectionMigration,
1520
1384
  cloneSection4 as cloneSection,
1521
1385
  createSection4 as createSection,
1522
1386
  deleteSection4 as deleteSection,