@connectedxm/client 1.4.23 → 1.4.25

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/dist/index.mjs CHANGED
@@ -443,6 +443,7 @@ var OrganizationModuleType = /* @__PURE__ */ ((OrganizationModuleType2) => {
443
443
  OrganizationModuleType2["subscriptions"] = "subscriptions";
444
444
  OrganizationModuleType2["invoices"] = "invoices";
445
445
  OrganizationModuleType2["announcements"] = "announcements";
446
+ OrganizationModuleType2["bookings"] = "bookings";
446
447
  return OrganizationModuleType2;
447
448
  })(OrganizationModuleType || {});
448
449
  var PaymentIntegrationType = /* @__PURE__ */ ((PaymentIntegrationType2) => {
@@ -451,6 +452,16 @@ var PaymentIntegrationType = /* @__PURE__ */ ((PaymentIntegrationType2) => {
451
452
  PaymentIntegrationType2["braintree"] = "braintree";
452
453
  return PaymentIntegrationType2;
453
454
  })(PaymentIntegrationType || {});
455
+ var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
456
+ DayOfWeek2["sunday"] = "sunday";
457
+ DayOfWeek2["monday"] = "monday";
458
+ DayOfWeek2["tuesday"] = "tuesday";
459
+ DayOfWeek2["wednesday"] = "wednesday";
460
+ DayOfWeek2["thursday"] = "thursday";
461
+ DayOfWeek2["friday"] = "friday";
462
+ DayOfWeek2["saturday"] = "saturday";
463
+ return DayOfWeek2;
464
+ })(DayOfWeek || {});
454
465
 
455
466
  // src/utilities/AppendInfiniteQuery.ts
456
467
  import { produce } from "immer";
@@ -1450,6 +1461,339 @@ var useGetAdvertisement = (position, options = {}) => {
1450
1461
  );
1451
1462
  };
1452
1463
 
1464
+ // src/queries/bookings/useGetBookings.ts
1465
+ var BOOKINGS_QUERY_KEY = (past, placeId) => {
1466
+ const keys = ["BOOKINGS"];
1467
+ if (typeof past !== "undefined") {
1468
+ keys.push(past ? "PAST" : "UPCOMING");
1469
+ }
1470
+ if (placeId) {
1471
+ keys.push(placeId);
1472
+ }
1473
+ return keys;
1474
+ };
1475
+ var SET_BOOKINGS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
1476
+ client.setQueryData(
1477
+ [
1478
+ ...BOOKINGS_QUERY_KEY(...keyParams),
1479
+ ...GetBaseInfiniteQueryKeys(...baseKeys)
1480
+ ],
1481
+ setFirstPageData(response)
1482
+ );
1483
+ };
1484
+ var GetBookings = async ({
1485
+ pageParam,
1486
+ pageSize,
1487
+ orderBy,
1488
+ search,
1489
+ past,
1490
+ placeId,
1491
+ queryClient,
1492
+ clientApiParams,
1493
+ locale
1494
+ }) => {
1495
+ const clientApi = await GetClientAPI(clientApiParams);
1496
+ const { data } = await clientApi.get(`/bookings`, {
1497
+ params: {
1498
+ page: pageParam || void 0,
1499
+ pageSize: pageSize || void 0,
1500
+ orderBy: orderBy || void 0,
1501
+ search: search || void 0,
1502
+ past: past !== void 0 ? past : void 0,
1503
+ placeId: placeId || void 0
1504
+ }
1505
+ });
1506
+ if (queryClient && data.status === "ok") {
1507
+ CacheIndividualQueries(
1508
+ data,
1509
+ queryClient,
1510
+ (bookingId) => BOOKING_QUERY_KEY(bookingId),
1511
+ locale
1512
+ );
1513
+ }
1514
+ return data;
1515
+ };
1516
+ var useGetBookings = (past = false, placeId = "", params = {}, options = {}) => {
1517
+ return useConnectedInfiniteQuery(
1518
+ BOOKINGS_QUERY_KEY(past, placeId),
1519
+ (params2) => GetBookings({ past, placeId, ...params2 }),
1520
+ params,
1521
+ options
1522
+ );
1523
+ };
1524
+
1525
+ // src/queries/bookings/useGetBooking.ts
1526
+ var BOOKING_QUERY_KEY = (bookingId) => [
1527
+ ...BOOKINGS_QUERY_KEY(),
1528
+ bookingId
1529
+ ];
1530
+ var SET_BOOKING_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
1531
+ client.setQueryData(
1532
+ [
1533
+ ...BOOKING_QUERY_KEY(...keyParams),
1534
+ ...GetBaseSingleQueryKeys(...baseKeys)
1535
+ ],
1536
+ response
1537
+ );
1538
+ };
1539
+ var GetBooking = async ({
1540
+ bookingId,
1541
+ clientApiParams
1542
+ }) => {
1543
+ const clientApi = await GetClientAPI(clientApiParams);
1544
+ const { data } = await clientApi.get(`/bookings/${bookingId}`);
1545
+ return data;
1546
+ };
1547
+ var useGetBooking = (bookingId = "", options = {}) => {
1548
+ return useConnectedSingleQuery(
1549
+ BOOKING_QUERY_KEY(bookingId),
1550
+ (_params) => GetBooking({ bookingId, ..._params }),
1551
+ {
1552
+ ...options,
1553
+ enabled: !!bookingId && (options?.enabled ?? true)
1554
+ }
1555
+ );
1556
+ };
1557
+
1558
+ // src/queries/bookings/useGetBookingIntent.ts
1559
+ var SELF_BOOKING_INTENT_QUERY_KEY = (bookingId, addressId) => [...BOOKING_QUERY_KEY(bookingId), addressId, "INTENT"];
1560
+ var GetBookingIntent = async ({
1561
+ bookingId,
1562
+ addressId,
1563
+ clientApiParams
1564
+ }) => {
1565
+ const clientApi = await GetClientAPI(clientApiParams);
1566
+ const { data } = await clientApi.get(`/bookings/${bookingId}/intent`, {
1567
+ params: {
1568
+ addressId
1569
+ }
1570
+ });
1571
+ return data;
1572
+ };
1573
+ var useGetBookingIntent = (bookingId = "", addressId = "", options = {}) => {
1574
+ const { authenticated } = useConnectedXM();
1575
+ return useConnectedSingleQuery_default(
1576
+ SELF_BOOKING_INTENT_QUERY_KEY(bookingId, addressId),
1577
+ (params) => GetBookingIntent({ bookingId, addressId, ...params }),
1578
+ {
1579
+ staleTime: Infinity,
1580
+ retry: false,
1581
+ retryOnMount: false,
1582
+ ...options,
1583
+ enabled: !!authenticated && !!bookingId && !!addressId && (options?.enabled ?? true)
1584
+ }
1585
+ );
1586
+ };
1587
+
1588
+ // src/queries/bookings/useGetBookingPlaces.ts
1589
+ var BOOKING_PLACES_QUERY_KEY = () => ["BOOKING_PLACES"];
1590
+ var SET_BOOKING_PLACES_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
1591
+ client.setQueryData(
1592
+ [
1593
+ ...BOOKING_PLACES_QUERY_KEY(...keyParams),
1594
+ ...GetBaseInfiniteQueryKeys(...baseKeys)
1595
+ ],
1596
+ setFirstPageData(response)
1597
+ );
1598
+ };
1599
+ var GetBookingPlaces = async ({
1600
+ pageParam,
1601
+ pageSize,
1602
+ orderBy,
1603
+ search,
1604
+ queryClient,
1605
+ clientApiParams,
1606
+ locale
1607
+ }) => {
1608
+ const clientApi = await GetClientAPI(clientApiParams);
1609
+ const { data } = await clientApi.get(`/bookings/places`, {
1610
+ params: {
1611
+ page: pageParam || void 0,
1612
+ pageSize: pageSize || void 0,
1613
+ orderBy: orderBy || void 0,
1614
+ search: search || void 0
1615
+ }
1616
+ });
1617
+ if (queryClient && data.status === "ok") {
1618
+ CacheIndividualQueries(
1619
+ data,
1620
+ queryClient,
1621
+ (bookingPlaceId) => BOOKING_PLACE_QUERY_KEY(bookingPlaceId),
1622
+ locale
1623
+ );
1624
+ }
1625
+ return data;
1626
+ };
1627
+ var useGetBookingPlaces = (params = {}, options = {}) => {
1628
+ return useConnectedInfiniteQuery(
1629
+ BOOKING_PLACES_QUERY_KEY(),
1630
+ (params2) => GetBookingPlaces({ ...params2 }),
1631
+ params,
1632
+ options
1633
+ );
1634
+ };
1635
+
1636
+ // src/queries/bookings/useGetBookingPlace.ts
1637
+ var BOOKING_PLACE_QUERY_KEY = (placeId) => [
1638
+ ...BOOKING_PLACES_QUERY_KEY(),
1639
+ placeId
1640
+ ];
1641
+ var SET_BOOKING_PLACE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
1642
+ client.setQueryData(
1643
+ [
1644
+ ...BOOKING_PLACE_QUERY_KEY(...keyParams),
1645
+ ...GetBaseSingleQueryKeys(...baseKeys)
1646
+ ],
1647
+ response
1648
+ );
1649
+ };
1650
+ var GetBookingPlace = async ({
1651
+ placeId,
1652
+ clientApiParams
1653
+ }) => {
1654
+ const clientApi = await GetClientAPI(clientApiParams);
1655
+ const { data } = await clientApi.get(`/bookings/places/${placeId}`);
1656
+ return data;
1657
+ };
1658
+ var useGetBookingPlace = (placeId = "", options = {}) => {
1659
+ return useConnectedSingleQuery(
1660
+ BOOKING_PLACE_QUERY_KEY(placeId),
1661
+ (_params) => GetBookingPlace({ placeId, ..._params }),
1662
+ {
1663
+ ...options,
1664
+ enabled: !!placeId && (options?.enabled ?? true)
1665
+ }
1666
+ );
1667
+ };
1668
+
1669
+ // src/queries/bookings/useGetBookingPlaceSpace.ts
1670
+ var BOOKING_PLACE_SPACE_QUERY_KEY = (placeId, spaceId) => [...BOOKING_PLACES_QUERY_KEY(), placeId, "SPACE", spaceId];
1671
+ var SET_BOOKING_PLACE_SPACE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
1672
+ client.setQueryData(
1673
+ [
1674
+ ...BOOKING_PLACE_SPACE_QUERY_KEY(...keyParams),
1675
+ ...GetBaseSingleQueryKeys(...baseKeys)
1676
+ ],
1677
+ response
1678
+ );
1679
+ };
1680
+ var GetBookingPlaceSpace = async ({
1681
+ placeId,
1682
+ spaceId,
1683
+ clientApiParams
1684
+ }) => {
1685
+ const clientApi = await GetClientAPI(clientApiParams);
1686
+ const { data } = await clientApi.get(
1687
+ `/bookings/places/${placeId}/spaces/${spaceId}`
1688
+ );
1689
+ return data;
1690
+ };
1691
+ var useGetBookingPlaceSpace = (placeId = "", spaceId = "", options = {}) => {
1692
+ return useConnectedSingleQuery(
1693
+ BOOKING_PLACE_SPACE_QUERY_KEY(placeId, spaceId),
1694
+ (_params) => GetBookingPlaceSpace({ placeId, spaceId, ..._params }),
1695
+ {
1696
+ ...options,
1697
+ enabled: !!placeId && !!spaceId && (options?.enabled ?? true)
1698
+ }
1699
+ );
1700
+ };
1701
+
1702
+ // src/queries/bookings/useGetBookingPlaceSpaces.ts
1703
+ var BOOKING_PLACE_SPACES_QUERY_KEY = (bookingId) => [
1704
+ ...BOOKING_PLACE_QUERY_KEY(bookingId),
1705
+ "SPACES"
1706
+ ];
1707
+ var SET_BOOKING_PLACE_SPACES_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
1708
+ client.setQueryData(
1709
+ [
1710
+ ...BOOKING_PLACE_SPACES_QUERY_KEY(...keyParams),
1711
+ ...GetBaseInfiniteQueryKeys(...baseKeys)
1712
+ ],
1713
+ setFirstPageData(response)
1714
+ );
1715
+ };
1716
+ var GetBookingPlacesSpaces = async ({
1717
+ bookingId,
1718
+ pageParam,
1719
+ pageSize,
1720
+ orderBy,
1721
+ search,
1722
+ queryClient,
1723
+ clientApiParams,
1724
+ locale
1725
+ }) => {
1726
+ const clientApi = await GetClientAPI(clientApiParams);
1727
+ const { data } = await clientApi.get(`/bookings/places/${bookingId}/spaces`, {
1728
+ params: {
1729
+ page: pageParam || void 0,
1730
+ pageSize: pageSize || void 0,
1731
+ orderBy: orderBy || void 0,
1732
+ search: search || void 0
1733
+ }
1734
+ });
1735
+ if (queryClient && data.status === "ok") {
1736
+ CacheIndividualQueries(
1737
+ data,
1738
+ queryClient,
1739
+ (spaceId) => BOOKING_PLACE_SPACE_QUERY_KEY(bookingId, spaceId),
1740
+ locale
1741
+ );
1742
+ }
1743
+ return data;
1744
+ };
1745
+ var useGetBookingPlacesSpaces = (bookingId = "", params = {}, options = {}) => {
1746
+ return useConnectedInfiniteQuery(
1747
+ BOOKING_PLACE_SPACES_QUERY_KEY(bookingId),
1748
+ (params2) => GetBookingPlacesSpaces({ bookingId, ...params2 }),
1749
+ params,
1750
+ {
1751
+ ...options,
1752
+ enabled: !!bookingId && (options?.enabled ?? true)
1753
+ }
1754
+ );
1755
+ };
1756
+
1757
+ // src/queries/bookings/useGetBookingPlaceSpaceSlots.ts
1758
+ var BOOKING_PLACE_SPACE_SLOTS_QUERY_KEY = (placeId, spaceId, firstDayOfMonth) => [
1759
+ ...BOOKING_PLACES_QUERY_KEY(),
1760
+ placeId,
1761
+ "SPACE",
1762
+ spaceId,
1763
+ "SLOTS",
1764
+ firstDayOfMonth
1765
+ ];
1766
+ var GetBookingPlaceSpaceSlots = async ({
1767
+ placeId,
1768
+ spaceId,
1769
+ firstDayOfMonth,
1770
+ clientApiParams
1771
+ }) => {
1772
+ const clientApi = await GetClientAPI(clientApiParams);
1773
+ const { data } = await clientApi.get(
1774
+ `/bookings/places/${placeId}/spaces/${spaceId}/slots`,
1775
+ {
1776
+ params: { firstDayOfMonth }
1777
+ }
1778
+ );
1779
+ return data;
1780
+ };
1781
+ var useGetBookingPlaceSpaceSlots = (placeId = "", spaceId = "", firstDayOfMonth, options = {}) => {
1782
+ return useConnectedSingleQuery(
1783
+ BOOKING_PLACE_SPACE_SLOTS_QUERY_KEY(placeId, spaceId, firstDayOfMonth),
1784
+ (_params) => GetBookingPlaceSpaceSlots({
1785
+ placeId,
1786
+ spaceId,
1787
+ firstDayOfMonth,
1788
+ ..._params
1789
+ }),
1790
+ {
1791
+ ...options,
1792
+ enabled: !!placeId && !!spaceId && (options?.enabled ?? true)
1793
+ }
1794
+ );
1795
+ };
1796
+
1453
1797
  // src/queries/benefits/useGetBenefits.ts
1454
1798
  var BENEFITS_QUERY_KEY = () => ["BENEFITS"];
1455
1799
  var SET_BENEFITS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
@@ -8118,6 +8462,97 @@ var useUnlikeActivity = (options = {}) => {
8118
8462
  return useConnectedMutation_default(UnlikeActivity, options);
8119
8463
  };
8120
8464
 
8465
+ // src/mutations/bookings/useCancelBooking.ts
8466
+ var CancelBooking = async ({
8467
+ bookingId,
8468
+ clientApiParams,
8469
+ queryClient
8470
+ }) => {
8471
+ const clientApi = await GetClientAPI(clientApiParams);
8472
+ const { data } = await clientApi.delete(
8473
+ `/bookings/${bookingId}`
8474
+ );
8475
+ if (queryClient && data.status === "ok") {
8476
+ queryClient.setQueryData(BOOKING_QUERY_KEY(bookingId), data);
8477
+ queryClient.invalidateQueries({
8478
+ queryKey: BOOKINGS_QUERY_KEY()
8479
+ });
8480
+ }
8481
+ return data;
8482
+ };
8483
+ var useCancelBooking = (options = {}) => {
8484
+ return useConnectedMutation_default(CancelBooking, options);
8485
+ };
8486
+
8487
+ // src/mutations/bookings/useConfirmBooking.ts
8488
+ var ConfirmBooking = async ({
8489
+ bookingId,
8490
+ clientApiParams,
8491
+ queryClient
8492
+ }) => {
8493
+ const clientApi = await GetClientAPI(clientApiParams);
8494
+ const { data } = await clientApi.post(
8495
+ `/bookings/${bookingId}`
8496
+ );
8497
+ if (queryClient && data.status === "ok") {
8498
+ queryClient.setQueryData(BOOKING_QUERY_KEY(bookingId), data);
8499
+ queryClient.invalidateQueries({
8500
+ queryKey: BOOKINGS_QUERY_KEY()
8501
+ });
8502
+ queryClient.invalidateQueries({
8503
+ predicate: ({ queryKey }) => queryKey.includes("SLOTS")
8504
+ });
8505
+ }
8506
+ return data;
8507
+ };
8508
+ var useConfirmBooking = (options = {}) => {
8509
+ return useConnectedMutation_default(ConfirmBooking, options);
8510
+ };
8511
+
8512
+ // src/mutations/bookings/useDraftBooking.ts
8513
+ var DraftBooking = async ({
8514
+ placeId,
8515
+ spaceId,
8516
+ day,
8517
+ time,
8518
+ queryClient,
8519
+ clientApiParams
8520
+ }) => {
8521
+ const clientApi = await GetClientAPI(clientApiParams);
8522
+ const { data } = await clientApi.post(
8523
+ `/bookings/places/${placeId}/spaces/${spaceId}/slots`,
8524
+ { day, time }
8525
+ );
8526
+ if (data.status === "ok" && queryClient) {
8527
+ queryClient.invalidateQueries({
8528
+ queryKey: BOOKINGS_QUERY_KEY()
8529
+ });
8530
+ }
8531
+ return data;
8532
+ };
8533
+ var useDraftBooking = (options = {}) => {
8534
+ return useConnectedMutation_default(DraftBooking, options);
8535
+ };
8536
+
8537
+ // src/mutations/bookings/useDeleteDraftBooking.ts
8538
+ var DeleteDraftBooking = async ({
8539
+ bookingId,
8540
+ clientApiParams,
8541
+ queryClient
8542
+ }) => {
8543
+ const clientApi = await GetClientAPI(clientApiParams);
8544
+ const { data } = await clientApi.delete(
8545
+ `/bookings/${bookingId}`
8546
+ );
8547
+ if (queryClient && data.status === "ok") {
8548
+ queryClient.removeQueries({ queryKey: BOOKING_QUERY_KEY(bookingId) });
8549
+ }
8550
+ return data;
8551
+ };
8552
+ var useDeleteDraftBooking = (options = {}) => {
8553
+ return useConnectedMutation_default(DeleteDraftBooking, options);
8554
+ };
8555
+
8121
8556
  // src/mutations/channels/contents/useLikeContent.ts
8122
8557
  var LikeContent = async ({
8123
8558
  channelId,
@@ -8809,6 +9244,14 @@ var CapturePaymentIntent = async ({
8809
9244
  queryKey: INVOICE_QUERY_KEY(intent.invoiceId)
8810
9245
  });
8811
9246
  }
9247
+ if (intent.bookingId) {
9248
+ queryClient.invalidateQueries({
9249
+ queryKey: BOOKINGS_QUERY_KEY()
9250
+ });
9251
+ queryClient.invalidateQueries({
9252
+ predicate: ({ queryKey }) => queryKey.includes("SLOTS")
9253
+ });
9254
+ }
8812
9255
  }
8813
9256
  return data;
8814
9257
  };
@@ -11603,6 +12046,13 @@ export {
11603
12046
  AdvertisementType,
11604
12047
  AppendInfiniteQuery,
11605
12048
  BENEFITS_QUERY_KEY,
12049
+ BOOKINGS_QUERY_KEY,
12050
+ BOOKING_PLACES_QUERY_KEY,
12051
+ BOOKING_PLACE_QUERY_KEY,
12052
+ BOOKING_PLACE_SPACES_QUERY_KEY,
12053
+ BOOKING_PLACE_SPACE_QUERY_KEY,
12054
+ BOOKING_PLACE_SPACE_SLOTS_QUERY_KEY,
12055
+ BOOKING_QUERY_KEY,
11606
12056
  BlockIntegration,
11607
12057
  CHANNELS_QUERY_KEY,
11608
12058
  CHANNEL_COLLECTIONS_QUERY_KEY,
@@ -11620,6 +12070,7 @@ export {
11620
12070
  CONTENT_QUERY_KEY,
11621
12071
  CUSTOM_ERROR_CODES,
11622
12072
  CacheIndividualQueries,
12073
+ CancelBooking,
11623
12074
  CancelGroupInvitation,
11624
12075
  CancelGroupRequest,
11625
12076
  CancelPass,
@@ -11627,6 +12078,7 @@ export {
11627
12078
  CapturePaymentIntent,
11628
12079
  CheckinListingAttendeePass,
11629
12080
  CompleteEventActivation,
12081
+ ConfirmBooking,
11630
12082
  ConnectedXMProvider,
11631
12083
  ContentGuestType,
11632
12084
  CouponType,
@@ -11654,6 +12106,7 @@ export {
11654
12106
  CreateThread,
11655
12107
  CreateThreadMessage,
11656
12108
  Currency,
12109
+ DayOfWeek,
11657
12110
  DeactivateGroup,
11658
12111
  DefaultAuthAction,
11659
12112
  DeleteActivity,
@@ -11663,6 +12116,7 @@ export {
11663
12116
  DeleteChannelSubscriber,
11664
12117
  DeleteContentGuest,
11665
12118
  DeleteContentPublishSchedule,
12119
+ DeleteDraftBooking,
11666
12120
  DeleteListing,
11667
12121
  DeleteListingQuestion,
11668
12122
  DeleteListingSession,
@@ -11678,6 +12132,7 @@ export {
11678
12132
  DeleteThreadMessage,
11679
12133
  DemoteGroupModerator,
11680
12134
  DisableIntegration,
12135
+ DraftBooking,
11681
12136
  ERR_FEATURE_NOT_AVAILABLE,
11682
12137
  ERR_INTEGRATION_PERMISSION_DENIED,
11683
12138
  ERR_KNOWN_ERROR,
@@ -11746,6 +12201,14 @@ export {
11746
12201
  GetBaseInfiniteQueryKeys,
11747
12202
  GetBaseSingleQueryKeys,
11748
12203
  GetBenefits,
12204
+ GetBooking,
12205
+ GetBookingIntent,
12206
+ GetBookingPlace,
12207
+ GetBookingPlaceSpace,
12208
+ GetBookingPlaceSpaceSlots,
12209
+ GetBookingPlaces,
12210
+ GetBookingPlacesSpaces,
12211
+ GetBookings,
11749
12212
  GetChannel,
11750
12213
  GetChannelCollection,
11751
12214
  GetChannelCollectionContents,
@@ -11981,6 +12444,7 @@ export {
11981
12444
  SELF_ADDRESSES_QUERY_KEY,
11982
12445
  SELF_ADDRESS_QUERY_KEY,
11983
12446
  SELF_ANNOUNCEMENT_QUERY_KEY,
12447
+ SELF_BOOKING_INTENT_QUERY_KEY,
11984
12448
  SELF_CHAT_CHANNELS_QUERY_KEY,
11985
12449
  SELF_CHAT_CHANNEL_MEMBERS_QUERY_KEY,
11986
12450
  SELF_CHAT_CHANNEL_MESSAGES_QUERY_KEY,
@@ -12045,6 +12509,12 @@ export {
12045
12509
  SET_ADVERTISEMENT_QUERY_DATA,
12046
12510
  SET_ALL_GROUP_EVENTS_QUERY_DATA,
12047
12511
  SET_BENEFITS_QUERY_DATA,
12512
+ SET_BOOKINGS_QUERY_DATA,
12513
+ SET_BOOKING_PLACES_QUERY_DATA,
12514
+ SET_BOOKING_PLACE_QUERY_DATA,
12515
+ SET_BOOKING_PLACE_SPACES_QUERY_DATA,
12516
+ SET_BOOKING_PLACE_SPACE_QUERY_DATA,
12517
+ SET_BOOKING_QUERY_DATA,
12048
12518
  SET_CHANNELS_QUERY_DATA,
12049
12519
  SET_CHANNEL_COLLECTIONS_QUERY_DATA,
12050
12520
  SET_CHANNEL_COLLECTION_QUERY_DATA,
@@ -12258,6 +12728,7 @@ export {
12258
12728
  useAddThreadMessageReaction,
12259
12729
  useAddThreadMessageReply,
12260
12730
  useBlockIntegration,
12731
+ useCancelBooking,
12261
12732
  useCancelGroupInvitation,
12262
12733
  useCancelGroupRequest,
12263
12734
  useCancelPass,
@@ -12265,6 +12736,7 @@ export {
12265
12736
  useCapturePaymentIntent,
12266
12737
  useCheckinListingAttendeePass,
12267
12738
  useCompleteEventActivation,
12739
+ useConfirmBooking,
12268
12740
  useConnectedInfiniteQuery,
12269
12741
  useConnectedMutation,
12270
12742
  useConnectedSingleQuery,
@@ -12300,6 +12772,7 @@ export {
12300
12772
  useDeleteChannelSubscriber,
12301
12773
  useDeleteContentGuest,
12302
12774
  useDeleteContentPublishSchedule,
12775
+ useDeleteDraftBooking,
12303
12776
  useDeleteListing,
12304
12777
  useDeleteListingQuestion,
12305
12778
  useDeleteListingSession,
@@ -12315,6 +12788,7 @@ export {
12315
12788
  useDeleteThreadMessage,
12316
12789
  useDemoteGroupModerator,
12317
12790
  useDisableIntegration,
12791
+ useDraftBooking,
12318
12792
  useEnableIntegration,
12319
12793
  useFollowAccount,
12320
12794
  useGetAccount,
@@ -12333,6 +12807,14 @@ export {
12333
12807
  useGetAdvertisement,
12334
12808
  useGetAllGroupEvents,
12335
12809
  useGetBenefits,
12810
+ useGetBooking,
12811
+ useGetBookingIntent,
12812
+ useGetBookingPlace,
12813
+ useGetBookingPlaceSpace,
12814
+ useGetBookingPlaceSpaceSlots,
12815
+ useGetBookingPlaces,
12816
+ useGetBookingPlacesSpaces,
12817
+ useGetBookings,
12336
12818
  useGetChannel,
12337
12819
  useGetChannelCollection,
12338
12820
  useGetChannelCollectionContents,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "1.4.23",
3
+ "version": "1.4.25",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "repository": {