@wix/auto_sdk_table-reservations_experiences 1.0.40 → 1.0.42

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 (53) hide show
  1. package/build/cjs/index.d.ts +22 -3
  2. package/build/cjs/index.js +378 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2 -2
  5. package/build/cjs/index.typings.js +369 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +22 -5
  8. package/build/cjs/meta.js +312 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +361 -1
  11. package/build/cjs/schemas.js +595 -0
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/cjs/{table-reservations-v1-experience-experiences.universal-1Acqg8lu.d.ts → table-reservations-v1-experience-experiences.universal-y3E_tS1X.d.ts} +50 -4
  14. package/build/es/index.d.mts +22 -3
  15. package/build/es/index.mjs +377 -0
  16. package/build/es/index.mjs.map +1 -1
  17. package/build/es/index.typings.d.mts +2 -2
  18. package/build/es/index.typings.mjs +368 -0
  19. package/build/es/index.typings.mjs.map +1 -1
  20. package/build/es/meta.d.mts +22 -5
  21. package/build/es/meta.mjs +311 -0
  22. package/build/es/meta.mjs.map +1 -1
  23. package/build/es/schemas.d.mts +361 -1
  24. package/build/es/schemas.mjs +593 -0
  25. package/build/es/schemas.mjs.map +1 -1
  26. package/build/es/{table-reservations-v1-experience-experiences.universal-1Acqg8lu.d.mts → table-reservations-v1-experience-experiences.universal-y3E_tS1X.d.mts} +50 -4
  27. package/build/internal/cjs/index.d.ts +22 -3
  28. package/build/internal/cjs/index.js +378 -0
  29. package/build/internal/cjs/index.js.map +1 -1
  30. package/build/internal/cjs/index.typings.d.ts +2 -2
  31. package/build/internal/cjs/index.typings.js +369 -0
  32. package/build/internal/cjs/index.typings.js.map +1 -1
  33. package/build/internal/cjs/meta.d.ts +22 -5
  34. package/build/internal/cjs/meta.js +312 -0
  35. package/build/internal/cjs/meta.js.map +1 -1
  36. package/build/internal/cjs/schemas.d.ts +361 -1
  37. package/build/internal/cjs/schemas.js +595 -0
  38. package/build/internal/cjs/schemas.js.map +1 -1
  39. package/build/internal/cjs/{table-reservations-v1-experience-experiences.universal-1Acqg8lu.d.ts → table-reservations-v1-experience-experiences.universal-y3E_tS1X.d.ts} +50 -4
  40. package/build/internal/es/index.d.mts +22 -3
  41. package/build/internal/es/index.mjs +377 -0
  42. package/build/internal/es/index.mjs.map +1 -1
  43. package/build/internal/es/index.typings.d.mts +2 -2
  44. package/build/internal/es/index.typings.mjs +368 -0
  45. package/build/internal/es/index.typings.mjs.map +1 -1
  46. package/build/internal/es/meta.d.mts +22 -5
  47. package/build/internal/es/meta.mjs +311 -0
  48. package/build/internal/es/meta.mjs.map +1 -1
  49. package/build/internal/es/schemas.d.mts +361 -1
  50. package/build/internal/es/schemas.mjs +593 -0
  51. package/build/internal/es/schemas.mjs.map +1 -1
  52. package/build/internal/es/{table-reservations-v1-experience-experiences.universal-1Acqg8lu.d.mts → table-reservations-v1-experience-experiences.universal-y3E_tS1X.d.mts} +50 -4
  53. package/package.json +2 -2
@@ -1354,6 +1354,293 @@ function searchExperiences(payload) {
1354
1354
  }
1355
1355
  return __searchExperiences;
1356
1356
  }
1357
+ function bulkUpdateExperiences(payload) {
1358
+ function __bulkUpdateExperiences({ host }) {
1359
+ const serializedData = transformPaths(payload, [
1360
+ {
1361
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
1362
+ paths: [{ path: "experiences.fieldMask" }]
1363
+ },
1364
+ {
1365
+ transformFn: transformSDKTimestampToRESTTimestamp,
1366
+ paths: [
1367
+ { path: "experiences.experience.createdDate" },
1368
+ { path: "experiences.experience.updatedDate" },
1369
+ {
1370
+ path: "experiences.experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
1371
+ },
1372
+ {
1373
+ path: "experiences.experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
1374
+ }
1375
+ ]
1376
+ },
1377
+ {
1378
+ transformFn: transformSDKFloatToRESTFloat,
1379
+ paths: [
1380
+ {
1381
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
1382
+ },
1383
+ {
1384
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
1385
+ },
1386
+ {
1387
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
1388
+ },
1389
+ {
1390
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1391
+ },
1392
+ {
1393
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
1394
+ },
1395
+ {
1396
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
1397
+ },
1398
+ {
1399
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
1400
+ },
1401
+ {
1402
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
1403
+ },
1404
+ {
1405
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
1406
+ },
1407
+ {
1408
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
1409
+ },
1410
+ {
1411
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
1412
+ },
1413
+ {
1414
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
1415
+ },
1416
+ {
1417
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
1418
+ },
1419
+ {
1420
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
1421
+ },
1422
+ {
1423
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
1424
+ },
1425
+ {
1426
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
1427
+ },
1428
+ {
1429
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
1430
+ },
1431
+ {
1432
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
1433
+ },
1434
+ {
1435
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
1436
+ },
1437
+ {
1438
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
1439
+ },
1440
+ {
1441
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
1442
+ },
1443
+ {
1444
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
1445
+ },
1446
+ {
1447
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
1448
+ },
1449
+ {
1450
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
1451
+ },
1452
+ {
1453
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
1454
+ },
1455
+ {
1456
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
1457
+ },
1458
+ {
1459
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
1460
+ },
1461
+ {
1462
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
1463
+ },
1464
+ {
1465
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
1466
+ },
1467
+ {
1468
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
1469
+ },
1470
+ {
1471
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
1472
+ },
1473
+ {
1474
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
1475
+ },
1476
+ {
1477
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
1478
+ },
1479
+ {
1480
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
1481
+ },
1482
+ {
1483
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.tocData.fontSize"
1484
+ },
1485
+ {
1486
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
1487
+ },
1488
+ {
1489
+ path: "experiences.experience.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
1490
+ }
1491
+ ]
1492
+ }
1493
+ ]);
1494
+ const metadata = {
1495
+ entityFqdn: "wix.table_reservations.v1.experience",
1496
+ method: "POST",
1497
+ methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.BulkUpdateExperiences",
1498
+ packageName: PACKAGE_NAME,
1499
+ migrationOptions: {
1500
+ optInTransformResponse: true
1501
+ },
1502
+ url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
1503
+ protoPath: "/v1/bulk/experiences/update",
1504
+ data: serializedData,
1505
+ host
1506
+ }),
1507
+ data: serializedData,
1508
+ transformResponse: (payload2) => transformPaths(payload2, [
1509
+ {
1510
+ transformFn: transformRESTTimestampToSDKTimestamp,
1511
+ paths: [
1512
+ { path: "results.item.createdDate" },
1513
+ { path: "results.item.updatedDate" },
1514
+ {
1515
+ path: "results.item.configuration.displayInfo.richContent.metadata.createdTimestamp"
1516
+ },
1517
+ {
1518
+ path: "results.item.configuration.displayInfo.richContent.metadata.updatedTimestamp"
1519
+ }
1520
+ ]
1521
+ },
1522
+ {
1523
+ transformFn: transformRESTFloatToSDKFloat,
1524
+ paths: [
1525
+ {
1526
+ path: "results.item.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
1527
+ },
1528
+ {
1529
+ path: "results.item.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
1530
+ },
1531
+ {
1532
+ path: "results.item.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
1533
+ },
1534
+ {
1535
+ path: "results.item.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1536
+ },
1537
+ {
1538
+ path: "results.item.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
1539
+ },
1540
+ {
1541
+ path: "results.item.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
1542
+ },
1543
+ {
1544
+ path: "results.item.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
1545
+ },
1546
+ {
1547
+ path: "results.item.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
1548
+ },
1549
+ {
1550
+ path: "results.item.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
1551
+ },
1552
+ {
1553
+ path: "results.item.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
1554
+ },
1555
+ {
1556
+ path: "results.item.configuration.displayInfo.richContent.nodes.imageData.image.duration"
1557
+ },
1558
+ {
1559
+ path: "results.item.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
1560
+ },
1561
+ {
1562
+ path: "results.item.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
1563
+ },
1564
+ {
1565
+ path: "results.item.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
1566
+ },
1567
+ {
1568
+ path: "results.item.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
1569
+ },
1570
+ {
1571
+ path: "results.item.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
1572
+ },
1573
+ {
1574
+ path: "results.item.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
1575
+ },
1576
+ {
1577
+ path: "results.item.configuration.displayInfo.richContent.nodes.videoData.video.duration"
1578
+ },
1579
+ {
1580
+ path: "results.item.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
1581
+ },
1582
+ {
1583
+ path: "results.item.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
1584
+ },
1585
+ {
1586
+ path: "results.item.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
1587
+ },
1588
+ {
1589
+ path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
1590
+ },
1591
+ {
1592
+ path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
1593
+ },
1594
+ {
1595
+ path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
1596
+ },
1597
+ {
1598
+ path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
1599
+ },
1600
+ {
1601
+ path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
1602
+ },
1603
+ {
1604
+ path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
1605
+ },
1606
+ {
1607
+ path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
1608
+ },
1609
+ {
1610
+ path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
1611
+ },
1612
+ {
1613
+ path: "results.item.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
1614
+ },
1615
+ {
1616
+ path: "results.item.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
1617
+ },
1618
+ {
1619
+ path: "results.item.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
1620
+ },
1621
+ {
1622
+ path: "results.item.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
1623
+ },
1624
+ {
1625
+ path: "results.item.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
1626
+ },
1627
+ {
1628
+ path: "results.item.configuration.displayInfo.richContent.nodes.tocData.fontSize"
1629
+ },
1630
+ {
1631
+ path: "results.item.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
1632
+ },
1633
+ {
1634
+ path: "results.item.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
1635
+ }
1636
+ ]
1637
+ }
1638
+ ])
1639
+ };
1640
+ return metadata;
1641
+ }
1642
+ return __bulkUpdateExperiences;
1643
+ }
1357
1644
  function bulkUpdateExperienceTags(payload) {
1358
1645
  function __bulkUpdateExperienceTags({ host }) {
1359
1646
  const metadata = {
@@ -1874,6 +2161,11 @@ var SmartBlockDataType = /* @__PURE__ */ ((SmartBlockDataType2) => {
1874
2161
  SmartBlockDataType2["ARROW_BULLETS"] = "ARROW_BULLETS";
1875
2162
  SmartBlockDataType2["PROCESS_STEPS"] = "PROCESS_STEPS";
1876
2163
  SmartBlockDataType2["BAR_STATS"] = "BAR_STATS";
2164
+ SmartBlockDataType2["TIMELINE"] = "TIMELINE";
2165
+ SmartBlockDataType2["MINIMAL_TIMELINE"] = "MINIMAL_TIMELINE";
2166
+ SmartBlockDataType2["PILLS"] = "PILLS";
2167
+ SmartBlockDataType2["STAR_RATING"] = "STAR_RATING";
2168
+ SmartBlockDataType2["QUOTE_BOXES"] = "QUOTE_BOXES";
1877
2169
  return SmartBlockDataType2;
1878
2170
  })(SmartBlockDataType || {});
1879
2171
  var ColumnSize = /* @__PURE__ */ ((ColumnSize2) => {
@@ -2354,6 +2646,81 @@ async function searchExperiences2(search) {
2354
2646
  throw transformedError;
2355
2647
  }
2356
2648
  }
2649
+ async function bulkUpdateExperiences2(experiences, options) {
2650
+ const { httpClient, sideEffects } = arguments[2];
2651
+ const payload = transformPaths2(
2652
+ renameKeysFromSDKRequestToRESTRequest(
2653
+ { experiences, returnEntity: options?.returnEntity },
2654
+ ["experiences.experience.configuration.displayInfo.richContent"]
2655
+ ),
2656
+ [
2657
+ {
2658
+ transformFn: transformSDKPageURLV2ToRESTPageURLV2,
2659
+ paths: [
2660
+ { path: "experiences.experience.experiencePageUrl" },
2661
+ {
2662
+ path: "experiences.experience.configuration.reservationForm.privacyPolicy.url"
2663
+ },
2664
+ {
2665
+ path: "experiences.experience.configuration.reservationForm.termsAndConditions.url"
2666
+ }
2667
+ ]
2668
+ },
2669
+ {
2670
+ transformFn: transformSDKImageToRESTImage,
2671
+ paths: [
2672
+ {
2673
+ path: "experiences.experience.configuration.displayInfo.coverImage"
2674
+ }
2675
+ ]
2676
+ }
2677
+ ]
2678
+ );
2679
+ const reqOpts = bulkUpdateExperiences(payload);
2680
+ sideEffects?.onSiteCall?.();
2681
+ try {
2682
+ const result = await httpClient.request(reqOpts);
2683
+ sideEffects?.onSuccess?.(result);
2684
+ return renameKeysFromRESTResponseToSDKResponse(
2685
+ transformPaths2(result.data, [
2686
+ {
2687
+ transformFn: transformRESTPageURLV2ToSDKPageURLV2,
2688
+ paths: [
2689
+ { path: "results.item.experiencePageUrl" },
2690
+ {
2691
+ path: "results.item.configuration.reservationForm.privacyPolicy.url"
2692
+ },
2693
+ {
2694
+ path: "results.item.configuration.reservationForm.termsAndConditions.url"
2695
+ }
2696
+ ]
2697
+ },
2698
+ {
2699
+ transformFn: transformRESTImageToSDKImage,
2700
+ paths: [
2701
+ { path: "results.item.configuration.displayInfo.coverImage" }
2702
+ ]
2703
+ }
2704
+ ]),
2705
+ ["results.item.configuration.displayInfo.richContent"]
2706
+ );
2707
+ } catch (err) {
2708
+ const transformedError = sdkTransformError(
2709
+ err,
2710
+ {
2711
+ spreadPathsToArguments: {},
2712
+ explicitPathsToArguments: {
2713
+ experiences: "$[0]",
2714
+ returnEntity: "$[1].returnEntity"
2715
+ },
2716
+ singleArgumentUnchanged: false
2717
+ },
2718
+ ["experiences", "options"]
2719
+ );
2720
+ sideEffects?.onError?.(err);
2721
+ throw transformedError;
2722
+ }
2723
+ }
2357
2724
  async function bulkUpdateExperienceTags2(experienceIds, options) {
2358
2725
  const { httpClient, sideEffects } = arguments[2];
2359
2726
  const payload = renameKeysFromSDKRequestToRESTRequest(
@@ -2531,6 +2898,14 @@ function searchExperiences3(httpClient) {
2531
2898
  { httpClient }
2532
2899
  );
2533
2900
  }
2901
+ function bulkUpdateExperiences3(httpClient) {
2902
+ return (experiences, options) => bulkUpdateExperiences2(
2903
+ experiences,
2904
+ options,
2905
+ // @ts-ignore
2906
+ { httpClient }
2907
+ );
2908
+ }
2534
2909
  function bulkUpdateExperienceTags3(httpClient) {
2535
2910
  return (experienceIds, options) => bulkUpdateExperienceTags2(
2536
2911
  experienceIds,
@@ -3171,6 +3546,7 @@ var getExperience4 = /* @__PURE__ */ createRESTModule(getExperience3);
3171
3546
  var getExperienceBySlug4 = /* @__PURE__ */ createRESTModule(getExperienceBySlug3);
3172
3547
  var updateExperience4 = /* @__PURE__ */ createRESTModule(updateExperience3);
3173
3548
  var searchExperiences4 = /* @__PURE__ */ createRESTModule(searchExperiences3);
3549
+ var bulkUpdateExperiences4 = /* @__PURE__ */ createRESTModule(bulkUpdateExperiences3);
3174
3550
  var bulkUpdateExperienceTags4 = /* @__PURE__ */ createRESTModule(bulkUpdateExperienceTags3);
3175
3551
  var bulkUpdateExperienceTagsByFilter4 = /* @__PURE__ */ createRESTModule(bulkUpdateExperienceTagsByFilter3);
3176
3552
  var bulkArchiveExperiences4 = /* @__PURE__ */ createRESTModule(bulkArchiveExperiences3);
@@ -3266,6 +3642,7 @@ export {
3266
3642
  bulkUnarchiveExperiences4 as bulkUnarchiveExperiences,
3267
3643
  bulkUpdateExperienceTags4 as bulkUpdateExperienceTags,
3268
3644
  bulkUpdateExperienceTagsByFilter4 as bulkUpdateExperienceTagsByFilter,
3645
+ bulkUpdateExperiences4 as bulkUpdateExperiences,
3269
3646
  createExperience4 as createExperience,
3270
3647
  getExperience4 as getExperience,
3271
3648
  getExperienceBySlug4 as getExperienceBySlug,