@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.
- package/build/cjs/index.d.ts +22 -3
- package/build/cjs/index.js +378 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +369 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +22 -5
- package/build/cjs/meta.js +312 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +361 -1
- package/build/cjs/schemas.js +595 -0
- package/build/cjs/schemas.js.map +1 -1
- package/build/cjs/{table-reservations-v1-experience-experiences.universal-1Acqg8lu.d.ts → table-reservations-v1-experience-experiences.universal-y3E_tS1X.d.ts} +50 -4
- package/build/es/index.d.mts +22 -3
- package/build/es/index.mjs +377 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +368 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +22 -5
- package/build/es/meta.mjs +311 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +361 -1
- package/build/es/schemas.mjs +593 -0
- package/build/es/schemas.mjs.map +1 -1
- package/build/es/{table-reservations-v1-experience-experiences.universal-1Acqg8lu.d.mts → table-reservations-v1-experience-experiences.universal-y3E_tS1X.d.mts} +50 -4
- package/build/internal/cjs/index.d.ts +22 -3
- package/build/internal/cjs/index.js +378 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +369 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +22 -5
- package/build/internal/cjs/meta.js +312 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +361 -1
- package/build/internal/cjs/schemas.js +595 -0
- package/build/internal/cjs/schemas.js.map +1 -1
- 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
- package/build/internal/es/index.d.mts +22 -3
- package/build/internal/es/index.mjs +377 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +368 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +22 -5
- package/build/internal/es/meta.mjs +311 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +361 -1
- package/build/internal/es/schemas.mjs +593 -0
- package/build/internal/es/schemas.mjs.map +1 -1
- 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
- package/package.json +2 -2
|
@@ -100,6 +100,7 @@ __export(index_exports, {
|
|
|
100
100
|
bulkUnarchiveExperiences: () => bulkUnarchiveExperiences4,
|
|
101
101
|
bulkUpdateExperienceTags: () => bulkUpdateExperienceTags4,
|
|
102
102
|
bulkUpdateExperienceTagsByFilter: () => bulkUpdateExperienceTagsByFilter4,
|
|
103
|
+
bulkUpdateExperiences: () => bulkUpdateExperiences4,
|
|
103
104
|
createExperience: () => createExperience4,
|
|
104
105
|
getExperience: () => getExperience4,
|
|
105
106
|
getExperienceBySlug: () => getExperienceBySlug4,
|
|
@@ -1466,6 +1467,293 @@ function searchExperiences(payload) {
|
|
|
1466
1467
|
}
|
|
1467
1468
|
return __searchExperiences;
|
|
1468
1469
|
}
|
|
1470
|
+
function bulkUpdateExperiences(payload) {
|
|
1471
|
+
function __bulkUpdateExperiences({ host }) {
|
|
1472
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1473
|
+
{
|
|
1474
|
+
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
1475
|
+
paths: [{ path: "experiences.fieldMask" }]
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
1479
|
+
paths: [
|
|
1480
|
+
{ path: "experiences.experience.createdDate" },
|
|
1481
|
+
{ path: "experiences.experience.updatedDate" },
|
|
1482
|
+
{
|
|
1483
|
+
path: "experiences.experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
path: "experiences.experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
|
|
1487
|
+
}
|
|
1488
|
+
]
|
|
1489
|
+
},
|
|
1490
|
+
{
|
|
1491
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1492
|
+
paths: [
|
|
1493
|
+
{
|
|
1494
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
|
|
1531
|
+
},
|
|
1532
|
+
{
|
|
1533
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
|
|
1534
|
+
},
|
|
1535
|
+
{
|
|
1536
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
|
|
1573
|
+
},
|
|
1574
|
+
{
|
|
1575
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
|
|
1576
|
+
},
|
|
1577
|
+
{
|
|
1578
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
|
|
1582
|
+
},
|
|
1583
|
+
{
|
|
1584
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
|
|
1594
|
+
},
|
|
1595
|
+
{
|
|
1596
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.tocData.fontSize"
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
path: "experiences.experience.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
|
|
1603
|
+
}
|
|
1604
|
+
]
|
|
1605
|
+
}
|
|
1606
|
+
]);
|
|
1607
|
+
const metadata = {
|
|
1608
|
+
entityFqdn: "wix.table_reservations.v1.experience",
|
|
1609
|
+
method: "POST",
|
|
1610
|
+
methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.BulkUpdateExperiences",
|
|
1611
|
+
packageName: PACKAGE_NAME,
|
|
1612
|
+
migrationOptions: {
|
|
1613
|
+
optInTransformResponse: true
|
|
1614
|
+
},
|
|
1615
|
+
url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
|
|
1616
|
+
protoPath: "/v1/bulk/experiences/update",
|
|
1617
|
+
data: serializedData,
|
|
1618
|
+
host
|
|
1619
|
+
}),
|
|
1620
|
+
data: serializedData,
|
|
1621
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1622
|
+
{
|
|
1623
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1624
|
+
paths: [
|
|
1625
|
+
{ path: "results.item.createdDate" },
|
|
1626
|
+
{ path: "results.item.updatedDate" },
|
|
1627
|
+
{
|
|
1628
|
+
path: "results.item.configuration.displayInfo.richContent.metadata.createdTimestamp"
|
|
1629
|
+
},
|
|
1630
|
+
{
|
|
1631
|
+
path: "results.item.configuration.displayInfo.richContent.metadata.updatedTimestamp"
|
|
1632
|
+
}
|
|
1633
|
+
]
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1637
|
+
paths: [
|
|
1638
|
+
{
|
|
1639
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
|
|
1643
|
+
},
|
|
1644
|
+
{
|
|
1645
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
|
|
1646
|
+
},
|
|
1647
|
+
{
|
|
1648
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
|
|
1652
|
+
},
|
|
1653
|
+
{
|
|
1654
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
|
|
1667
|
+
},
|
|
1668
|
+
{
|
|
1669
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.imageData.image.duration"
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
|
|
1682
|
+
},
|
|
1683
|
+
{
|
|
1684
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.videoData.video.duration"
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
|
|
1694
|
+
},
|
|
1695
|
+
{
|
|
1696
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
|
|
1700
|
+
},
|
|
1701
|
+
{
|
|
1702
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
1706
|
+
},
|
|
1707
|
+
{
|
|
1708
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
|
|
1712
|
+
},
|
|
1713
|
+
{
|
|
1714
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
|
|
1718
|
+
},
|
|
1719
|
+
{
|
|
1720
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
|
|
1724
|
+
},
|
|
1725
|
+
{
|
|
1726
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
|
|
1727
|
+
},
|
|
1728
|
+
{
|
|
1729
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
|
|
1736
|
+
},
|
|
1737
|
+
{
|
|
1738
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.tocData.fontSize"
|
|
1742
|
+
},
|
|
1743
|
+
{
|
|
1744
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
path: "results.item.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
|
|
1748
|
+
}
|
|
1749
|
+
]
|
|
1750
|
+
}
|
|
1751
|
+
])
|
|
1752
|
+
};
|
|
1753
|
+
return metadata;
|
|
1754
|
+
}
|
|
1755
|
+
return __bulkUpdateExperiences;
|
|
1756
|
+
}
|
|
1469
1757
|
function bulkUpdateExperienceTags(payload) {
|
|
1470
1758
|
function __bulkUpdateExperienceTags({ host }) {
|
|
1471
1759
|
const metadata = {
|
|
@@ -1986,6 +2274,11 @@ var SmartBlockDataType = /* @__PURE__ */ ((SmartBlockDataType2) => {
|
|
|
1986
2274
|
SmartBlockDataType2["ARROW_BULLETS"] = "ARROW_BULLETS";
|
|
1987
2275
|
SmartBlockDataType2["PROCESS_STEPS"] = "PROCESS_STEPS";
|
|
1988
2276
|
SmartBlockDataType2["BAR_STATS"] = "BAR_STATS";
|
|
2277
|
+
SmartBlockDataType2["TIMELINE"] = "TIMELINE";
|
|
2278
|
+
SmartBlockDataType2["MINIMAL_TIMELINE"] = "MINIMAL_TIMELINE";
|
|
2279
|
+
SmartBlockDataType2["PILLS"] = "PILLS";
|
|
2280
|
+
SmartBlockDataType2["STAR_RATING"] = "STAR_RATING";
|
|
2281
|
+
SmartBlockDataType2["QUOTE_BOXES"] = "QUOTE_BOXES";
|
|
1989
2282
|
return SmartBlockDataType2;
|
|
1990
2283
|
})(SmartBlockDataType || {});
|
|
1991
2284
|
var ColumnSize = /* @__PURE__ */ ((ColumnSize2) => {
|
|
@@ -2466,6 +2759,81 @@ async function searchExperiences2(search) {
|
|
|
2466
2759
|
throw transformedError;
|
|
2467
2760
|
}
|
|
2468
2761
|
}
|
|
2762
|
+
async function bulkUpdateExperiences2(experiences, options) {
|
|
2763
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2764
|
+
const payload = (0, import_transform_paths2.transformPaths)(
|
|
2765
|
+
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
|
|
2766
|
+
{ experiences, returnEntity: options?.returnEntity },
|
|
2767
|
+
["experiences.experience.configuration.displayInfo.richContent"]
|
|
2768
|
+
),
|
|
2769
|
+
[
|
|
2770
|
+
{
|
|
2771
|
+
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
2772
|
+
paths: [
|
|
2773
|
+
{ path: "experiences.experience.experiencePageUrl" },
|
|
2774
|
+
{
|
|
2775
|
+
path: "experiences.experience.configuration.reservationForm.privacyPolicy.url"
|
|
2776
|
+
},
|
|
2777
|
+
{
|
|
2778
|
+
path: "experiences.experience.configuration.reservationForm.termsAndConditions.url"
|
|
2779
|
+
}
|
|
2780
|
+
]
|
|
2781
|
+
},
|
|
2782
|
+
{
|
|
2783
|
+
transformFn: import_image.transformSDKImageToRESTImage,
|
|
2784
|
+
paths: [
|
|
2785
|
+
{
|
|
2786
|
+
path: "experiences.experience.configuration.displayInfo.coverImage"
|
|
2787
|
+
}
|
|
2788
|
+
]
|
|
2789
|
+
}
|
|
2790
|
+
]
|
|
2791
|
+
);
|
|
2792
|
+
const reqOpts = bulkUpdateExperiences(payload);
|
|
2793
|
+
sideEffects?.onSiteCall?.();
|
|
2794
|
+
try {
|
|
2795
|
+
const result = await httpClient.request(reqOpts);
|
|
2796
|
+
sideEffects?.onSuccess?.(result);
|
|
2797
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
2798
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2799
|
+
{
|
|
2800
|
+
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2801
|
+
paths: [
|
|
2802
|
+
{ path: "results.item.experiencePageUrl" },
|
|
2803
|
+
{
|
|
2804
|
+
path: "results.item.configuration.reservationForm.privacyPolicy.url"
|
|
2805
|
+
},
|
|
2806
|
+
{
|
|
2807
|
+
path: "results.item.configuration.reservationForm.termsAndConditions.url"
|
|
2808
|
+
}
|
|
2809
|
+
]
|
|
2810
|
+
},
|
|
2811
|
+
{
|
|
2812
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2813
|
+
paths: [
|
|
2814
|
+
{ path: "results.item.configuration.displayInfo.coverImage" }
|
|
2815
|
+
]
|
|
2816
|
+
}
|
|
2817
|
+
]),
|
|
2818
|
+
["results.item.configuration.displayInfo.richContent"]
|
|
2819
|
+
);
|
|
2820
|
+
} catch (err) {
|
|
2821
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2822
|
+
err,
|
|
2823
|
+
{
|
|
2824
|
+
spreadPathsToArguments: {},
|
|
2825
|
+
explicitPathsToArguments: {
|
|
2826
|
+
experiences: "$[0]",
|
|
2827
|
+
returnEntity: "$[1].returnEntity"
|
|
2828
|
+
},
|
|
2829
|
+
singleArgumentUnchanged: false
|
|
2830
|
+
},
|
|
2831
|
+
["experiences", "options"]
|
|
2832
|
+
);
|
|
2833
|
+
sideEffects?.onError?.(err);
|
|
2834
|
+
throw transformedError;
|
|
2835
|
+
}
|
|
2836
|
+
}
|
|
2469
2837
|
async function bulkUpdateExperienceTags2(experienceIds, options) {
|
|
2470
2838
|
const { httpClient, sideEffects } = arguments[2];
|
|
2471
2839
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
|
|
@@ -2643,6 +3011,14 @@ function searchExperiences3(httpClient) {
|
|
|
2643
3011
|
{ httpClient }
|
|
2644
3012
|
);
|
|
2645
3013
|
}
|
|
3014
|
+
function bulkUpdateExperiences3(httpClient) {
|
|
3015
|
+
return (experiences, options) => bulkUpdateExperiences2(
|
|
3016
|
+
experiences,
|
|
3017
|
+
options,
|
|
3018
|
+
// @ts-ignore
|
|
3019
|
+
{ httpClient }
|
|
3020
|
+
);
|
|
3021
|
+
}
|
|
2646
3022
|
function bulkUpdateExperienceTags3(httpClient) {
|
|
2647
3023
|
return (experienceIds, options) => bulkUpdateExperienceTags2(
|
|
2648
3024
|
experienceIds,
|
|
@@ -3283,6 +3659,7 @@ var getExperience4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
|
3283
3659
|
var getExperienceBySlug4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getExperienceBySlug3);
|
|
3284
3660
|
var updateExperience4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateExperience3);
|
|
3285
3661
|
var searchExperiences4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchExperiences3);
|
|
3662
|
+
var bulkUpdateExperiences4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateExperiences3);
|
|
3286
3663
|
var bulkUpdateExperienceTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateExperienceTags3);
|
|
3287
3664
|
var bulkUpdateExperienceTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateExperienceTagsByFilter3);
|
|
3288
3665
|
var bulkArchiveExperiences4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkArchiveExperiences3);
|
|
@@ -3379,6 +3756,7 @@ var onExperienceUpdated2 = (0, import_event_definition_modules.createEventModule
|
|
|
3379
3756
|
bulkUnarchiveExperiences,
|
|
3380
3757
|
bulkUpdateExperienceTags,
|
|
3381
3758
|
bulkUpdateExperienceTagsByFilter,
|
|
3759
|
+
bulkUpdateExperiences,
|
|
3382
3760
|
createExperience,
|
|
3383
3761
|
getExperience,
|
|
3384
3762
|
getExperienceBySlug,
|