@wix/auto_sdk_online-programs_sections 1.0.16 → 1.0.17

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 +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 +7 -30
  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 +4 -7
  8. package/build/cjs/meta.js +0 -109
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +1 -129
  11. package/build/cjs/schemas.js +3 -192
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +6 -16
  14. package/build/es/index.mjs +0 -148
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +7 -30
  17. package/build/es/index.typings.mjs +0 -139
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +4 -7
  20. package/build/es/meta.mjs +0 -108
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +1 -129
  23. package/build/es/schemas.mjs +3 -190
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +6 -16
  26. package/build/internal/cjs/index.js +0 -149
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +11 -29
  29. package/build/internal/cjs/index.typings.js +0 -140
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +8 -6
  32. package/build/internal/cjs/meta.js +0 -109
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +1 -129
  35. package/build/internal/cjs/schemas.js +3 -192
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +6 -16
  38. package/build/internal/es/index.mjs +0 -148
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +11 -29
  41. package/build/internal/es/index.typings.mjs +0 -139
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +8 -6
  44. package/build/internal/es/meta.mjs +0 -108
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +1 -129
  47. package/build/internal/es/schemas.mjs +3 -190
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -28,7 +28,6 @@ __export(index_exports, {
28
28
  SortOrder: () => SortOrder,
29
29
  State: () => State,
30
30
  WebhookIdentityType: () => WebhookIdentityType,
31
- bulkCreateSection: () => bulkCreateSection4,
32
31
  bulkCreateSections: () => bulkCreateSections4,
33
32
  cloneSection: () => cloneSection4,
34
33
  createSection: () => createSection4,
@@ -329,95 +328,6 @@ function bulkCreateSections(payload) {
329
328
  }
330
329
  return __bulkCreateSections;
331
330
  }
332
- function bulkCreateSection(payload) {
333
- function __bulkCreateSection({ host }) {
334
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
335
- {
336
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
337
- paths: [
338
- { path: "sections.createdDate" },
339
- { path: "sections.updatedDate" },
340
- { path: "sections.description.image.urlExpirationDate" },
341
- { path: "sections.description.video.urlExpirationDate" },
342
- { path: "sections.description.video.resolutions.urlExpirationDate" },
343
- {
344
- path: "sections.description.video.resolutions.poster.urlExpirationDate"
345
- },
346
- { path: "sections.description.video.posters.urlExpirationDate" }
347
- ]
348
- },
349
- {
350
- transformFn: import_float.transformSDKFloatToRESTFloat,
351
- paths: [
352
- { path: "sections.ordering" },
353
- { path: "sections.description.image.focalPoint.x" },
354
- { path: "sections.description.image.focalPoint.y" },
355
- {
356
- path: "sections.description.video.resolutions.poster.focalPoint.x"
357
- },
358
- {
359
- path: "sections.description.video.resolutions.poster.focalPoint.y"
360
- },
361
- { path: "sections.description.video.posters.focalPoint.x" },
362
- { path: "sections.description.video.posters.focalPoint.y" }
363
- ]
364
- }
365
- ]);
366
- const metadata = {
367
- entityFqdn: "wix.online_programs.v3.section",
368
- method: "POST",
369
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection",
370
- packageName: PACKAGE_NAME,
371
- migrationOptions: {
372
- optInTransformResponse: true
373
- },
374
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
375
- protoPath: "/v3/bulk/sections/create-deprecated",
376
- data: serializedData,
377
- host
378
- }),
379
- data: serializedData,
380
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
381
- {
382
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
383
- paths: [
384
- { path: "results.item.createdDate" },
385
- { path: "results.item.updatedDate" },
386
- { path: "results.item.description.image.urlExpirationDate" },
387
- { path: "results.item.description.video.urlExpirationDate" },
388
- {
389
- path: "results.item.description.video.resolutions.urlExpirationDate"
390
- },
391
- {
392
- path: "results.item.description.video.resolutions.poster.urlExpirationDate"
393
- },
394
- {
395
- path: "results.item.description.video.posters.urlExpirationDate"
396
- }
397
- ]
398
- },
399
- {
400
- transformFn: import_float2.transformRESTFloatToSDKFloat,
401
- paths: [
402
- { path: "results.item.ordering" },
403
- { path: "results.item.description.image.focalPoint.x" },
404
- { path: "results.item.description.image.focalPoint.y" },
405
- {
406
- path: "results.item.description.video.resolutions.poster.focalPoint.x"
407
- },
408
- {
409
- path: "results.item.description.video.resolutions.poster.focalPoint.y"
410
- },
411
- { path: "results.item.description.video.posters.focalPoint.x" },
412
- { path: "results.item.description.video.posters.focalPoint.y" }
413
- ]
414
- }
415
- ])
416
- };
417
- return metadata;
418
- }
419
- return __bulkCreateSection;
420
- }
421
331
  function getSection(payload) {
422
332
  function __getSection({ host }) {
423
333
  const metadata = {
@@ -1020,55 +930,6 @@ async function bulkCreateSections2(sections, options) {
1020
930
  throw transformedError;
1021
931
  }
1022
932
  }
1023
- async function bulkCreateSection2(sections, options) {
1024
- const { httpClient, sideEffects } = arguments[2];
1025
- const payload = (0, import_transform_paths2.transformPaths)(
1026
- (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1027
- sections,
1028
- fields: options?.fields
1029
- }),
1030
- [
1031
- {
1032
- transformFn: import_image.transformSDKImageToRESTImage,
1033
- paths: [{ path: "sections.description.image" }]
1034
- },
1035
- {
1036
- transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
1037
- paths: [{ path: "sections.description.video" }]
1038
- }
1039
- ]
1040
- );
1041
- const reqOpts = bulkCreateSection(payload);
1042
- sideEffects?.onSiteCall?.();
1043
- try {
1044
- const result = await httpClient.request(reqOpts);
1045
- sideEffects?.onSuccess?.(result);
1046
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1047
- (0, import_transform_paths2.transformPaths)(result.data, [
1048
- {
1049
- transformFn: import_image2.transformRESTImageToSDKImage,
1050
- paths: [{ path: "results.item.description.image" }]
1051
- },
1052
- {
1053
- transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
1054
- paths: [{ path: "results.item.description.video" }]
1055
- }
1056
- ])
1057
- );
1058
- } catch (err) {
1059
- const transformedError = (0, import_transform_error.transformError)(
1060
- err,
1061
- {
1062
- spreadPathsToArguments: {},
1063
- explicitPathsToArguments: { sections: "$[0]", fields: "$[1].fields" },
1064
- singleArgumentUnchanged: false
1065
- },
1066
- ["sections", "options"]
1067
- );
1068
- sideEffects?.onError?.(err);
1069
- throw transformedError;
1070
- }
1071
- }
1072
933
  async function getSection2(sectionId, options) {
1073
934
  const { httpClient, sideEffects } = arguments[2];
1074
935
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1465,14 +1326,6 @@ function bulkCreateSections3(httpClient) {
1465
1326
  { httpClient }
1466
1327
  );
1467
1328
  }
1468
- function bulkCreateSection3(httpClient) {
1469
- return (sections, options) => bulkCreateSection2(
1470
- sections,
1471
- options,
1472
- // @ts-ignore
1473
- { httpClient }
1474
- );
1475
- }
1476
1329
  function getSection3(httpClient) {
1477
1330
  return (sectionId, options) => getSection2(
1478
1331
  sectionId,
@@ -1558,7 +1411,6 @@ function customQuerySections(httpClient) {
1558
1411
  }
1559
1412
  var createSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createSection3);
1560
1413
  var bulkCreateSections4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateSections3);
1561
- var bulkCreateSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateSection3);
1562
1414
  var getSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSection3);
1563
1415
  var updateSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSection3);
1564
1416
  var deleteSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteSection3);
@@ -1577,7 +1429,6 @@ var querySections4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
1577
1429
  SortOrder,
1578
1430
  State,
1579
1431
  WebhookIdentityType,
1580
- bulkCreateSection,
1581
1432
  bulkCreateSections,
1582
1433
  cloneSection,
1583
1434
  createSection,