@wix/auto_sdk_online-programs_sections 1.0.16 → 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 (50) 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 +9 -32
  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 +5 -8
  8. package/build/cjs/meta.js +0 -109
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +6 -16
  11. package/build/es/index.mjs +0 -148
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +9 -32
  14. package/build/es/index.typings.mjs +0 -139
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +5 -8
  17. package/build/es/meta.mjs +0 -108
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +6 -16
  20. package/build/internal/cjs/index.typings.d.ts +13 -31
  21. package/build/internal/cjs/meta.d.ts +9 -7
  22. package/build/internal/es/index.d.mts +6 -16
  23. package/build/internal/es/index.typings.d.mts +13 -31
  24. package/build/internal/es/meta.d.mts +9 -7
  25. package/package.json +4 -11
  26. package/build/cjs/schemas.d.ts +0 -637
  27. package/build/cjs/schemas.js +0 -999
  28. package/build/cjs/schemas.js.map +0 -1
  29. package/build/es/schemas.d.mts +0 -637
  30. package/build/es/schemas.mjs +0 -941
  31. package/build/es/schemas.mjs.map +0 -1
  32. package/build/internal/cjs/index.js +0 -1593
  33. package/build/internal/cjs/index.js.map +0 -1
  34. package/build/internal/cjs/index.typings.js +0 -1475
  35. package/build/internal/cjs/index.typings.js.map +0 -1
  36. package/build/internal/cjs/meta.js +0 -1135
  37. package/build/internal/cjs/meta.js.map +0 -1
  38. package/build/internal/cjs/schemas.d.ts +0 -637
  39. package/build/internal/cjs/schemas.js +0 -999
  40. package/build/internal/cjs/schemas.js.map +0 -1
  41. package/build/internal/es/index.mjs +0 -1550
  42. package/build/internal/es/index.mjs.map +0 -1
  43. package/build/internal/es/index.typings.mjs +0 -1431
  44. package/build/internal/es/index.typings.mjs.map +0 -1
  45. package/build/internal/es/meta.mjs +0 -1090
  46. package/build/internal/es/meta.mjs.map +0 -1
  47. package/build/internal/es/schemas.d.mts +0 -637
  48. package/build/internal/es/schemas.mjs +0 -941
  49. package/build/internal/es/schemas.mjs.map +0 -1
  50. package/schemas/package.json +0 -3
@@ -287,95 +287,6 @@ function bulkCreateSections(payload) {
287
287
  }
288
288
  return __bulkCreateSections;
289
289
  }
290
- function bulkCreateSection(payload) {
291
- function __bulkCreateSection({ host }) {
292
- const serializedData = transformPaths(payload, [
293
- {
294
- transformFn: transformSDKTimestampToRESTTimestamp,
295
- paths: [
296
- { path: "sections.createdDate" },
297
- { path: "sections.updatedDate" },
298
- { path: "sections.description.image.urlExpirationDate" },
299
- { path: "sections.description.video.urlExpirationDate" },
300
- { path: "sections.description.video.resolutions.urlExpirationDate" },
301
- {
302
- path: "sections.description.video.resolutions.poster.urlExpirationDate"
303
- },
304
- { path: "sections.description.video.posters.urlExpirationDate" }
305
- ]
306
- },
307
- {
308
- transformFn: transformSDKFloatToRESTFloat,
309
- paths: [
310
- { path: "sections.ordering" },
311
- { path: "sections.description.image.focalPoint.x" },
312
- { path: "sections.description.image.focalPoint.y" },
313
- {
314
- path: "sections.description.video.resolutions.poster.focalPoint.x"
315
- },
316
- {
317
- path: "sections.description.video.resolutions.poster.focalPoint.y"
318
- },
319
- { path: "sections.description.video.posters.focalPoint.x" },
320
- { path: "sections.description.video.posters.focalPoint.y" }
321
- ]
322
- }
323
- ]);
324
- const metadata = {
325
- entityFqdn: "wix.online_programs.v3.section",
326
- method: "POST",
327
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection",
328
- packageName: PACKAGE_NAME,
329
- migrationOptions: {
330
- optInTransformResponse: true
331
- },
332
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
333
- protoPath: "/v3/bulk/sections/create-deprecated",
334
- data: serializedData,
335
- host
336
- }),
337
- data: serializedData,
338
- transformResponse: (payload2) => transformPaths(payload2, [
339
- {
340
- transformFn: transformRESTTimestampToSDKTimestamp,
341
- paths: [
342
- { path: "results.item.createdDate" },
343
- { path: "results.item.updatedDate" },
344
- { path: "results.item.description.image.urlExpirationDate" },
345
- { path: "results.item.description.video.urlExpirationDate" },
346
- {
347
- path: "results.item.description.video.resolutions.urlExpirationDate"
348
- },
349
- {
350
- path: "results.item.description.video.resolutions.poster.urlExpirationDate"
351
- },
352
- {
353
- path: "results.item.description.video.posters.urlExpirationDate"
354
- }
355
- ]
356
- },
357
- {
358
- transformFn: transformRESTFloatToSDKFloat,
359
- paths: [
360
- { path: "results.item.ordering" },
361
- { path: "results.item.description.image.focalPoint.x" },
362
- { path: "results.item.description.image.focalPoint.y" },
363
- {
364
- path: "results.item.description.video.resolutions.poster.focalPoint.x"
365
- },
366
- {
367
- path: "results.item.description.video.resolutions.poster.focalPoint.y"
368
- },
369
- { path: "results.item.description.video.posters.focalPoint.x" },
370
- { path: "results.item.description.video.posters.focalPoint.y" }
371
- ]
372
- }
373
- ])
374
- };
375
- return metadata;
376
- }
377
- return __bulkCreateSection;
378
- }
379
290
  function getSection(payload) {
380
291
  function __getSection({ host }) {
381
292
  const metadata = {
@@ -978,55 +889,6 @@ async function bulkCreateSections2(sections, options) {
978
889
  throw transformedError;
979
890
  }
980
891
  }
981
- async function bulkCreateSection2(sections, options) {
982
- const { httpClient, sideEffects } = arguments[2];
983
- const payload = transformPaths2(
984
- renameKeysFromSDKRequestToRESTRequest({
985
- sections,
986
- fields: options?.fields
987
- }),
988
- [
989
- {
990
- transformFn: transformSDKImageToRESTImage,
991
- paths: [{ path: "sections.description.image" }]
992
- },
993
- {
994
- transformFn: transformSDKVideoV2ToRESTVideoV2,
995
- paths: [{ path: "sections.description.video" }]
996
- }
997
- ]
998
- );
999
- const reqOpts = bulkCreateSection(payload);
1000
- sideEffects?.onSiteCall?.();
1001
- try {
1002
- const result = await httpClient.request(reqOpts);
1003
- sideEffects?.onSuccess?.(result);
1004
- return renameKeysFromRESTResponseToSDKResponse(
1005
- transformPaths2(result.data, [
1006
- {
1007
- transformFn: transformRESTImageToSDKImage,
1008
- paths: [{ path: "results.item.description.image" }]
1009
- },
1010
- {
1011
- transformFn: transformRESTVideoV2ToSDKVideoV2,
1012
- paths: [{ path: "results.item.description.video" }]
1013
- }
1014
- ])
1015
- );
1016
- } catch (err) {
1017
- const transformedError = sdkTransformError(
1018
- err,
1019
- {
1020
- spreadPathsToArguments: {},
1021
- explicitPathsToArguments: { sections: "$[0]", fields: "$[1].fields" },
1022
- singleArgumentUnchanged: false
1023
- },
1024
- ["sections", "options"]
1025
- );
1026
- sideEffects?.onError?.(err);
1027
- throw transformedError;
1028
- }
1029
- }
1030
892
  async function getSection2(sectionId, options) {
1031
893
  const { httpClient, sideEffects } = arguments[2];
1032
894
  const payload = renameKeysFromSDKRequestToRESTRequest({
@@ -1423,14 +1285,6 @@ function bulkCreateSections3(httpClient) {
1423
1285
  { httpClient }
1424
1286
  );
1425
1287
  }
1426
- function bulkCreateSection3(httpClient) {
1427
- return (sections, options) => bulkCreateSection2(
1428
- sections,
1429
- options,
1430
- // @ts-ignore
1431
- { httpClient }
1432
- );
1433
- }
1434
1288
  function getSection3(httpClient) {
1435
1289
  return (sectionId, options) => getSection2(
1436
1290
  sectionId,
@@ -1516,7 +1370,6 @@ function customQuerySections(httpClient) {
1516
1370
  }
1517
1371
  var createSection4 = /* @__PURE__ */ createRESTModule(createSection3);
1518
1372
  var bulkCreateSections4 = /* @__PURE__ */ createRESTModule(bulkCreateSections3);
1519
- var bulkCreateSection4 = /* @__PURE__ */ createRESTModule(bulkCreateSection3);
1520
1373
  var getSection4 = /* @__PURE__ */ createRESTModule(getSection3);
1521
1374
  var updateSection4 = /* @__PURE__ */ createRESTModule(updateSection3);
1522
1375
  var deleteSection4 = /* @__PURE__ */ createRESTModule(deleteSection3);
@@ -1534,7 +1387,6 @@ export {
1534
1387
  SortOrder,
1535
1388
  State,
1536
1389
  WebhookIdentityType,
1537
- bulkCreateSection4 as bulkCreateSection,
1538
1390
  bulkCreateSections4 as bulkCreateSections,
1539
1391
  cloneSection4 as cloneSection,
1540
1392
  createSection4 as createSection,