@connectedxm/client 0.3.6 → 0.4.3

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
@@ -174,6 +174,8 @@ var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
174
174
  NotificationType2["RESHARE"] = "RESHARE";
175
175
  NotificationType2["EVENT"] = "EVENT";
176
176
  NotificationType2["ACTIVITY"] = "ACTIVITY";
177
+ NotificationType2["GROUP_INVITATION"] = "GROUP_INVITATION";
178
+ NotificationType2["GROUP_REQUEST_ACCEPTED"] = "GROUP_REQUEST_ACCEPTED";
177
179
  return NotificationType2;
178
180
  })(NotificationType || {});
179
181
  var isTypeNotification = (notification) => {
@@ -302,6 +304,12 @@ var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
302
304
  InvoiceStatus2["void"] = "void";
303
305
  return InvoiceStatus2;
304
306
  })(InvoiceStatus || {});
307
+ var CommunityRequestStatus = /* @__PURE__ */ ((CommunityRequestStatus2) => {
308
+ CommunityRequestStatus2["requested"] = "requested";
309
+ CommunityRequestStatus2["invited"] = "invited";
310
+ CommunityRequestStatus2["rejected"] = "rejected";
311
+ return CommunityRequestStatus2;
312
+ })(CommunityRequestStatus || {});
305
313
 
306
314
  // src/utilities/AppendInfiniteQuery.ts
307
315
  import { produce } from "immer";
@@ -369,7 +377,7 @@ var useConnectedSingleQuery = (queryKeys, queryFn, options = {}) => {
369
377
  onNotFound(error, queryKeys, options.shouldRedirect || false);
370
378
  return false;
371
379
  }
372
- if (error.response?.status === 403) {
380
+ if (error.response?.status === 403 || error.response?.status === 453) {
373
381
  if (onModuleForbidden)
374
382
  onModuleForbidden(error, queryKeys, options.shouldRedirect || false);
375
383
  return false;
@@ -511,7 +519,7 @@ var useConnectedInfiniteQuery = (queryKeys, queryFn, params = {}, options = {
511
519
  onNotFound(error, queryKeys, options.shouldRedirect || false);
512
520
  return false;
513
521
  }
514
- if (error.response?.status === 403) {
522
+ if (error.response?.status === 403 || error.response?.status === 453) {
515
523
  if (onModuleForbidden)
516
524
  onModuleForbidden(error, queryKeys, options.shouldRedirect || false);
517
525
  return false;
@@ -1479,10 +1487,13 @@ var useGetCommunityEvents = (communityId = "", past = false, params = {}, option
1479
1487
  };
1480
1488
 
1481
1489
  // src/queries/communities/useGetCommunityMembers.ts
1482
- var COMMUNITY_MEMBERS_QUERY_KEY = (communityId) => [
1483
- ...COMMUNITY_QUERY_KEY(communityId),
1484
- "MEMBERS"
1485
- ];
1490
+ var COMMUNITY_MEMBERS_QUERY_KEY = (communityId, role) => {
1491
+ const keys = [...COMMUNITY_QUERY_KEY(communityId), "MEMBERS"];
1492
+ if (role) {
1493
+ keys.push(role);
1494
+ }
1495
+ return keys;
1496
+ };
1486
1497
  var SET_COMMUNITY_MEMBERS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
1487
1498
  client.setQueryData(
1488
1499
  [
@@ -1497,6 +1508,7 @@ var GetCommunityMembers = async ({
1497
1508
  pageSize,
1498
1509
  orderBy,
1499
1510
  search,
1511
+ role,
1500
1512
  communityId,
1501
1513
  clientApiParams
1502
1514
  }) => {
@@ -1506,60 +1518,16 @@ var GetCommunityMembers = async ({
1506
1518
  page: pageParam || void 0,
1507
1519
  pageSize: pageSize || void 0,
1508
1520
  orderBy: orderBy || void 0,
1509
- search: search || void 0
1521
+ search: search || void 0,
1522
+ role: role || void 0
1510
1523
  }
1511
1524
  });
1512
1525
  return data;
1513
1526
  };
1514
- var useGetCommunityMembers = (communityId = "", params = {}, options = {}) => {
1515
- return useConnectedInfiniteQuery(
1516
- COMMUNITY_MEMBERS_QUERY_KEY(communityId),
1517
- (params2) => GetCommunityMembers({ communityId, ...params2 }),
1518
- params,
1519
- {
1520
- ...options,
1521
- enabled: !!communityId && (options?.enabled ?? true)
1522
- }
1523
- );
1524
- };
1525
-
1526
- // src/queries/communities/useGetCommunityModerators.ts
1527
- var COMMUNITY_MODERATORS_QUERY_KEY = (communityId) => [...COMMUNITY_QUERY_KEY(communityId), "MODERATORS"];
1528
- var SET_COMMUNITY_MODERATORS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
1529
- client.setQueryData(
1530
- [
1531
- ...COMMUNITY_MODERATORS_QUERY_KEY(...keyParams),
1532
- ...GetBaseInfiniteQueryKeys(...baseKeys)
1533
- ],
1534
- setFirstPageData(response)
1535
- );
1536
- };
1537
- var GetCommunityModerators = async ({
1538
- pageParam,
1539
- pageSize,
1540
- orderBy,
1541
- search,
1542
- communityId,
1543
- clientApiParams
1544
- }) => {
1545
- const clientApi = await GetClientAPI(clientApiParams);
1546
- const { data } = await clientApi.get(
1547
- `/communities/${communityId}/moderators`,
1548
- {
1549
- params: {
1550
- page: pageParam || void 0,
1551
- pageSize: pageSize || void 0,
1552
- orderBy: orderBy || void 0,
1553
- search: search || void 0
1554
- }
1555
- }
1556
- );
1557
- return data;
1558
- };
1559
- var useGetCommunityModerators = (communityId = "", params = {}, options = {}) => {
1527
+ var useGetCommunityMembers = (communityId = "", role, params = {}, options = {}) => {
1560
1528
  return useConnectedInfiniteQuery(
1561
- COMMUNITY_MODERATORS_QUERY_KEY(communityId),
1562
- (params2) => GetCommunityModerators({ communityId, ...params2 }),
1529
+ COMMUNITY_MEMBERS_QUERY_KEY(communityId, role),
1530
+ (params2) => GetCommunityMembers({ communityId, role, ...params2 }),
1563
1531
  params,
1564
1532
  {
1565
1533
  ...options,
@@ -1694,6 +1662,137 @@ var useGetCommunitySponsors = (communityId = "", params = {}, options = {}) => {
1694
1662
  );
1695
1663
  };
1696
1664
 
1665
+ // src/queries/communities/useGetCommunityRequests.ts
1666
+ var COMMUNITY_REQUESTS_QUERY_KEY = (communityId, status) => {
1667
+ const keys = [...COMMUNITY_QUERY_KEY(communityId), "REQUESTS"];
1668
+ if (status) {
1669
+ keys.push(status);
1670
+ }
1671
+ return keys;
1672
+ };
1673
+ var SET_COMMUNITY_REQUESTS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
1674
+ client.setQueryData(
1675
+ [
1676
+ ...COMMUNITY_REQUESTS_QUERY_KEY(...keyParams),
1677
+ ...GetBaseInfiniteQueryKeys(...baseKeys)
1678
+ ],
1679
+ setFirstPageData(response)
1680
+ );
1681
+ };
1682
+ var GetCommunityRequests = async ({
1683
+ pageParam,
1684
+ pageSize,
1685
+ orderBy,
1686
+ search,
1687
+ status,
1688
+ communityId,
1689
+ queryClient,
1690
+ clientApiParams,
1691
+ locale
1692
+ }) => {
1693
+ const clientApi = await GetClientAPI(clientApiParams);
1694
+ const { data } = await clientApi.get(`/communities/${communityId}/requests`, {
1695
+ params: {
1696
+ page: pageParam || void 0,
1697
+ pageSize: pageSize || void 0,
1698
+ orderBy: orderBy || void 0,
1699
+ search: search || void 0,
1700
+ status: status || void 0
1701
+ }
1702
+ });
1703
+ if (queryClient && data.status === "ok") {
1704
+ CacheIndividualQueries(
1705
+ data,
1706
+ queryClient,
1707
+ (communityId2) => COMMUNITY_REQUEST_QUERY_KEY(communityId2, data.data.id),
1708
+ locale
1709
+ );
1710
+ }
1711
+ return data;
1712
+ };
1713
+ var useGetCommunityRequests = (communityId = "", status, params = {}, options = {}) => {
1714
+ return useConnectedInfiniteQuery(
1715
+ COMMUNITY_REQUESTS_QUERY_KEY(communityId, status),
1716
+ (params2) => GetCommunityRequests({ communityId, status, ...params2 }),
1717
+ params,
1718
+ {
1719
+ ...options,
1720
+ enabled: !!communityId && (options?.enabled ?? true)
1721
+ }
1722
+ );
1723
+ };
1724
+
1725
+ // src/queries/communities/useGetCommunityRequest.ts
1726
+ var COMMUNITY_REQUEST_QUERY_KEY = (communityId, requestId) => [
1727
+ ...COMMUNITY_REQUESTS_QUERY_KEY(communityId),
1728
+ "REQUESTS",
1729
+ requestId
1730
+ ];
1731
+ var SET_COMMUNITY_REQUEST_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"], options) => {
1732
+ client.setQueryData(
1733
+ [
1734
+ ...COMMUNITY_REQUEST_QUERY_KEY(...keyParams),
1735
+ ...GetBaseSingleQueryKeys(...baseKeys)
1736
+ ],
1737
+ response,
1738
+ options
1739
+ );
1740
+ };
1741
+ var GetCommunityRequest = async ({
1742
+ communityId,
1743
+ requestId,
1744
+ clientApiParams
1745
+ }) => {
1746
+ const clientApi = await GetClientAPI(clientApiParams);
1747
+ const { data } = await clientApi.get(
1748
+ `/communities/${communityId}/requests/${requestId}`
1749
+ );
1750
+ return data;
1751
+ };
1752
+ var useGetCommunityRequest = (communityId = "", requestId = "", options = {}) => {
1753
+ return useConnectedSingleQuery(
1754
+ COMMUNITY_REQUEST_QUERY_KEY(communityId, requestId),
1755
+ (params) => GetCommunityRequest({ communityId, requestId, ...params }),
1756
+ {
1757
+ ...options,
1758
+ enabled: !!communityId && !!requestId && (options?.enabled ?? true)
1759
+ }
1760
+ );
1761
+ };
1762
+
1763
+ // src/queries/communities/useGetCommunityInvitableAccounts.ts
1764
+ var COMMUNITY_INVITABLE_ACCOUNTS_QUERY_KEY = (communityId) => [...COMMUNITY_QUERY_KEY(communityId), "INVITABLE_ACCOUNTS"];
1765
+ var GetCommunityInvitableAccounts = async ({
1766
+ pageParam,
1767
+ pageSize,
1768
+ orderBy,
1769
+ search,
1770
+ communityId,
1771
+ clientApiParams
1772
+ }) => {
1773
+ const clientApi = await GetClientAPI(clientApiParams);
1774
+ const { data } = await clientApi.get(`/communities/${communityId}/invites`, {
1775
+ params: {
1776
+ page: pageParam || void 0,
1777
+ pageSize: pageSize || void 0,
1778
+ orderBy: orderBy || void 0,
1779
+ search: search || void 0
1780
+ }
1781
+ });
1782
+ return data;
1783
+ };
1784
+ var useGetCommunityInvitableAccounts = (communityId = "", params = {}, options = {}) => {
1785
+ return useConnectedInfiniteQuery(
1786
+ COMMUNITY_INVITABLE_ACCOUNTS_QUERY_KEY(communityId),
1787
+ (params2) => GetCommunityInvitableAccounts({ communityId, ...params2 }),
1788
+ params,
1789
+ {
1790
+ ...options,
1791
+ enabled: !!communityId && (options?.enabled ?? true)
1792
+ }
1793
+ );
1794
+ };
1795
+
1697
1796
  // src/queries/contents/useGetContents.ts
1698
1797
  var CONTENTS_QUERY_KEY = () => ["CONTENTS"];
1699
1798
  var SET_CONTENTS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
@@ -3334,6 +3433,42 @@ var useGetSelfEventRegistrationPurchaseReservationSections = (eventId, registrat
3334
3433
  );
3335
3434
  };
3336
3435
 
3436
+ // src/queries/self/registration/useGetSelfEventRegistrationStatus.ts
3437
+ var SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY = (eventId) => [...SELF_QUERY_KEY(), "EVENT_REGISTRATION_STATUS", eventId];
3438
+ var SET_SELF_EVENT_REGISTRATION_STATUS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
3439
+ client.setQueryData(
3440
+ [
3441
+ ...SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY(...keyParams),
3442
+ ...GetBaseSingleQueryKeys(...baseKeys)
3443
+ ],
3444
+ response
3445
+ );
3446
+ };
3447
+ var GetSelfEventRegistrationStatus = async ({
3448
+ eventId,
3449
+ clientApiParams
3450
+ }) => {
3451
+ const clientApi = await GetClientAPI(clientApiParams);
3452
+ const { data } = await clientApi.get(
3453
+ `/self/events/${eventId}/registration/status`,
3454
+ {}
3455
+ );
3456
+ return data;
3457
+ };
3458
+ var useGetSelfEventRegistrationStatus = (eventId, selfId, options = {}) => {
3459
+ return useConnectedSingleQuery_default(
3460
+ SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY(eventId),
3461
+ (params) => GetSelfEventRegistrationStatus({
3462
+ eventId,
3463
+ ...params
3464
+ }),
3465
+ {
3466
+ ...options,
3467
+ enabled: !!eventId && !!selfId && (options?.enabled ?? true)
3468
+ }
3469
+ );
3470
+ };
3471
+
3337
3472
  // src/queries/self/subscriptions/useGetSelfSubscriptions.ts
3338
3473
  var SELF_SUBSCRIPTIONS_QUERY_KEY = (status) => {
3339
3474
  const key = [...SELF_QUERY_KEY(), "SUBSCRIPTIONS"];
@@ -3660,13 +3795,13 @@ var useGetSelfDelegates = (params = {}, options = {}) => {
3660
3795
  );
3661
3796
  };
3662
3797
 
3663
- // src/queries/self/useGetSelfEventListings.ts
3664
- var SELF_EVENT_LISTINGS_QUERY_KEY = (past) => [
3798
+ // src/queries/self/useGetSelfEvents.ts
3799
+ var SELF_EVENTS_QUERY_KEY = (past) => [
3665
3800
  ...SELF_QUERY_KEY(),
3666
- "EVENT_LISTINGS",
3801
+ "EVENTS",
3667
3802
  past ? "PAST" : "UPCOMING"
3668
3803
  ];
3669
- var GetSelfEventListings = async ({
3804
+ var GetSelfEvents = async ({
3670
3805
  pageParam,
3671
3806
  pageSize,
3672
3807
  orderBy,
@@ -3677,209 +3812,86 @@ var GetSelfEventListings = async ({
3677
3812
  locale
3678
3813
  }) => {
3679
3814
  const clientApi = await GetClientAPI(clientApiParams);
3680
- const { data } = await clientApi.get(`/self/events/listings`, {
3815
+ const { data } = await clientApi.get(`/self/events`, {
3681
3816
  params: {
3682
3817
  page: pageParam || void 0,
3683
3818
  pageSize: pageSize || void 0,
3684
3819
  orderBy: orderBy || void 0,
3685
3820
  search: search || void 0,
3686
- past: typeof past == "boolean" ? past : void 0
3821
+ past: past || false
3687
3822
  }
3688
3823
  });
3689
3824
  if (queryClient && data.status === "ok") {
3690
3825
  CacheIndividualQueries(
3691
3826
  data,
3692
3827
  queryClient,
3693
- (eventId) => SELF_EVENT_LISTING_QUERY_KEY(eventId),
3828
+ (eventId) => EVENT_QUERY_KEY(eventId),
3694
3829
  locale
3695
3830
  );
3696
3831
  }
3697
3832
  return data;
3698
3833
  };
3699
- var useGetSelfEventListings = (past = false, params = {}, options = {}) => {
3834
+ var useGetSelfEvents = (past = false, params = {}, options = {}) => {
3700
3835
  return useConnectedInfiniteQuery(
3701
- SELF_EVENT_LISTINGS_QUERY_KEY(past),
3702
- (params2) => GetSelfEventListings({ past, ...params2 }),
3836
+ SELF_EVENTS_QUERY_KEY(past),
3837
+ (params2) => GetSelfEvents({ ...params2, past }),
3703
3838
  params,
3704
3839
  {
3705
- ...options,
3706
- enabled: options.enabled ?? true
3840
+ ...options
3707
3841
  }
3708
3842
  );
3709
3843
  };
3710
3844
 
3711
- // src/queries/self/useGetSelfEventListing.ts
3712
- var SELF_EVENT_LISTING_QUERY_KEY = (eventId) => [
3713
- ...SELF_EVENT_LISTINGS_QUERY_KEY(false),
3714
- eventId
3715
- ];
3716
- var SET_SELF_EVENT_LISTING_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
3717
- client.setQueryData(
3718
- [
3719
- ...SELF_EVENT_LISTING_QUERY_KEY(...keyParams),
3720
- ...GetBaseSingleQueryKeys(...baseKeys)
3721
- ],
3722
- response
3723
- );
3724
- };
3725
- var GetSelfEventListing = async ({
3845
+ // src/queries/self/useGetSelfEventSessions.ts
3846
+ var SELF_EVENT_SESSIONS_QUERY_KEY = (eventId) => [
3847
+ ...SELF_EVENTS_QUERY_KEY(false),
3726
3848
  eventId,
3727
- clientApiParams
3728
- }) => {
3729
- const clientApi = await GetClientAPI(clientApiParams);
3730
- const { data } = await clientApi.get(`self/events/listings/${eventId}`);
3731
- return data;
3732
- };
3733
- var useGetSelfEventListing = (eventId, options = {}) => {
3734
- return useConnectedSingleQuery(
3735
- SELF_EVENT_LISTING_QUERY_KEY(eventId),
3736
- (params) => GetSelfEventListing({ eventId, ...params }),
3737
- {
3738
- ...options,
3739
- enabled: !!eventId && (options?.enabled ?? true)
3740
- }
3741
- );
3742
- };
3743
-
3744
- // src/queries/self/useGetSelfEventListingRegistrations.ts
3745
- var SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY = (eventId, status) => [
3746
- ...SELF_EVENT_LISTING_QUERY_KEY(eventId),
3747
- "REGISTRATIONS",
3748
- status ?? "ALL"
3849
+ "SESSIONS"
3749
3850
  ];
3750
- var GetSelfEventListingRegistrations = async ({
3851
+ var GetSelfEventSessions = async ({
3751
3852
  eventId,
3752
3853
  pageParam,
3753
3854
  pageSize,
3754
3855
  orderBy,
3755
3856
  search,
3756
- status,
3757
- clientApiParams
3857
+ queryClient,
3858
+ clientApiParams,
3859
+ locale
3758
3860
  }) => {
3759
3861
  const clientApi = await GetClientAPI(clientApiParams);
3760
- const { data } = await clientApi.get(
3761
- `/self/events/listings/${eventId}/registrations`,
3762
- {
3763
- params: {
3764
- page: pageParam || void 0,
3765
- pageSize: pageSize || void 0,
3766
- orderBy: orderBy || void 0,
3767
- search: search || void 0,
3768
- status: status || void 0
3769
- }
3862
+ const { data } = await clientApi.get(`/self/events/${eventId}/sessions`, {
3863
+ params: {
3864
+ eventId: eventId || void 0,
3865
+ page: pageParam || void 0,
3866
+ pageSize: pageSize || void 0,
3867
+ orderBy: orderBy || void 0,
3868
+ search: search || void 0
3770
3869
  }
3771
- );
3870
+ });
3871
+ if (queryClient && data.status === "ok") {
3872
+ CacheIndividualQueries(
3873
+ data,
3874
+ queryClient,
3875
+ (sessionId) => EVENT_SESSION_QUERY_KEY(eventId, sessionId),
3876
+ locale
3877
+ );
3878
+ }
3772
3879
  return data;
3773
3880
  };
3774
- var useGetSelfEventListingsRegistrations = (eventId, status, params = {}, options = {}) => {
3881
+ var useGetSelfEventSessions = (eventId, params = {}, options = {}) => {
3775
3882
  return useConnectedInfiniteQuery(
3776
- SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId, status),
3777
- (params2) => GetSelfEventListingRegistrations({ eventId, status, ...params2 }),
3883
+ SELF_EVENT_SESSIONS_QUERY_KEY(eventId),
3884
+ (params2) => GetSelfEventSessions({ eventId, ...params2 }),
3778
3885
  params,
3779
3886
  {
3780
3887
  ...options,
3781
- enabled: !!eventId && (options?.enabled ?? true)
3888
+ enabled: !!eventId && (options.enabled ?? true)
3782
3889
  }
3783
3890
  );
3784
3891
  };
3785
3892
 
3786
- // src/queries/self/useGetSelfEvents.ts
3787
- var SELF_EVENTS_QUERY_KEY = (past) => [
3788
- ...SELF_QUERY_KEY(),
3789
- "EVENTS",
3790
- past ? "PAST" : "UPCOMING"
3791
- ];
3792
- var GetSelfEvents = async ({
3793
- pageParam,
3794
- pageSize,
3795
- orderBy,
3796
- search,
3797
- past,
3798
- queryClient,
3799
- clientApiParams,
3800
- locale
3801
- }) => {
3802
- const clientApi = await GetClientAPI(clientApiParams);
3803
- const { data } = await clientApi.get(`/self/events`, {
3804
- params: {
3805
- page: pageParam || void 0,
3806
- pageSize: pageSize || void 0,
3807
- orderBy: orderBy || void 0,
3808
- search: search || void 0,
3809
- past: past || false
3810
- }
3811
- });
3812
- if (queryClient && data.status === "ok") {
3813
- CacheIndividualQueries(
3814
- data,
3815
- queryClient,
3816
- (eventId) => EVENT_QUERY_KEY(eventId),
3817
- locale
3818
- );
3819
- }
3820
- return data;
3821
- };
3822
- var useGetSelfEvents = (past = false, params = {}, options = {}) => {
3823
- return useConnectedInfiniteQuery(
3824
- SELF_EVENTS_QUERY_KEY(past),
3825
- (params2) => GetSelfEvents({ ...params2, past }),
3826
- params,
3827
- {
3828
- ...options
3829
- }
3830
- );
3831
- };
3832
-
3833
- // src/queries/self/useGetSelfEventSessions.ts
3834
- var SELF_EVENT_SESSIONS_QUERY_KEY = (eventId) => [
3835
- ...SELF_EVENTS_QUERY_KEY(false),
3836
- eventId,
3837
- "SESSIONS"
3838
- ];
3839
- var GetSelfEventSessions = async ({
3840
- eventId,
3841
- pageParam,
3842
- pageSize,
3843
- orderBy,
3844
- search,
3845
- queryClient,
3846
- clientApiParams,
3847
- locale
3848
- }) => {
3849
- const clientApi = await GetClientAPI(clientApiParams);
3850
- const { data } = await clientApi.get(`/self/events/${eventId}/sessions`, {
3851
- params: {
3852
- eventId: eventId || void 0,
3853
- page: pageParam || void 0,
3854
- pageSize: pageSize || void 0,
3855
- orderBy: orderBy || void 0,
3856
- search: search || void 0
3857
- }
3858
- });
3859
- if (queryClient && data.status === "ok") {
3860
- CacheIndividualQueries(
3861
- data,
3862
- queryClient,
3863
- (sessionId) => EVENT_SESSION_QUERY_KEY(eventId, sessionId),
3864
- locale
3865
- );
3866
- }
3867
- return data;
3868
- };
3869
- var useGetSelfEventSessions = (eventId, params = {}, options = {}) => {
3870
- return useConnectedInfiniteQuery(
3871
- SELF_EVENT_SESSIONS_QUERY_KEY(eventId),
3872
- (params2) => GetSelfEventSessions({ eventId, ...params2 }),
3873
- params,
3874
- {
3875
- ...options,
3876
- enabled: !!eventId && (options.enabled ?? true)
3877
- }
3878
- );
3879
- };
3880
-
3881
- // src/queries/self/useGetSelfFeed.ts
3882
- var SELF_FEED_QUERY_KEY = () => [
3893
+ // src/queries/self/useGetSelfFeed.ts
3894
+ var SELF_FEED_QUERY_KEY = () => [
3883
3895
  ...SELF_QUERY_KEY(),
3884
3896
  "FEED"
3885
3897
  ];
@@ -4523,6 +4535,155 @@ var useGetInvoice = (invoiceId = "", options = {}) => {
4523
4535
  );
4524
4536
  };
4525
4537
 
4538
+ // src/queries/listings/useGetListings.ts
4539
+ var LISTINGS_QUERY_KEY = (past) => [
4540
+ ...SELF_QUERY_KEY(),
4541
+ "EVENT_LISTINGS",
4542
+ past ? "PAST" : "UPCOMING"
4543
+ ];
4544
+ var GetSelfEventListings = async ({
4545
+ pageParam,
4546
+ pageSize,
4547
+ orderBy,
4548
+ search,
4549
+ past,
4550
+ queryClient,
4551
+ clientApiParams,
4552
+ locale
4553
+ }) => {
4554
+ const clientApi = await GetClientAPI(clientApiParams);
4555
+ const { data } = await clientApi.get(`/listings`, {
4556
+ params: {
4557
+ page: pageParam || void 0,
4558
+ pageSize: pageSize || void 0,
4559
+ orderBy: orderBy || void 0,
4560
+ search: search || void 0,
4561
+ past: typeof past == "boolean" ? past : void 0
4562
+ }
4563
+ });
4564
+ if (queryClient && data.status === "ok") {
4565
+ CacheIndividualQueries(
4566
+ data,
4567
+ queryClient,
4568
+ (eventId) => LISTING_QUERY_KEY(eventId),
4569
+ locale
4570
+ );
4571
+ }
4572
+ return data;
4573
+ };
4574
+ var useGetSelfEventListings = (past = false, params = {}, options = {}) => {
4575
+ return useConnectedInfiniteQuery(
4576
+ LISTINGS_QUERY_KEY(past),
4577
+ (params2) => GetSelfEventListings({ past, ...params2 }),
4578
+ params,
4579
+ {
4580
+ ...options,
4581
+ enabled: options.enabled ?? true
4582
+ }
4583
+ );
4584
+ };
4585
+
4586
+ // src/queries/listings/useGetListing.ts
4587
+ var LISTING_QUERY_KEY = (eventId) => [
4588
+ ...LISTINGS_QUERY_KEY(false),
4589
+ eventId
4590
+ ];
4591
+ var SET_LISTING_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
4592
+ client.setQueryData(
4593
+ [
4594
+ ...LISTING_QUERY_KEY(...keyParams),
4595
+ ...GetBaseSingleQueryKeys(...baseKeys)
4596
+ ],
4597
+ response
4598
+ );
4599
+ };
4600
+ var GetSelfEventListing = async ({
4601
+ eventId,
4602
+ clientApiParams
4603
+ }) => {
4604
+ const clientApi = await GetClientAPI(clientApiParams);
4605
+ const { data } = await clientApi.get(`/listings/${eventId}`);
4606
+ return data;
4607
+ };
4608
+ var useGetSelfEventListing = (eventId, options = {}) => {
4609
+ return useConnectedSingleQuery(
4610
+ LISTING_QUERY_KEY(eventId),
4611
+ (params) => GetSelfEventListing({ eventId, ...params }),
4612
+ {
4613
+ ...options,
4614
+ enabled: !!eventId && (options?.enabled ?? true)
4615
+ }
4616
+ );
4617
+ };
4618
+
4619
+ // src/queries/listings/useGetListingRegistrations.ts
4620
+ var LISTING_REGISTRATIONS_QUERY_KEY = (eventId, status) => [...LISTING_QUERY_KEY(eventId), "REGISTRATIONS", status ?? "ALL"];
4621
+ var GetSelfEventListingRegistrations = async ({
4622
+ eventId,
4623
+ pageParam,
4624
+ pageSize,
4625
+ orderBy,
4626
+ search,
4627
+ status,
4628
+ clientApiParams
4629
+ }) => {
4630
+ const clientApi = await GetClientAPI(clientApiParams);
4631
+ const { data } = await clientApi.get(`/listings/${eventId}/registrations`, {
4632
+ params: {
4633
+ page: pageParam || void 0,
4634
+ pageSize: pageSize || void 0,
4635
+ orderBy: orderBy || void 0,
4636
+ search: search || void 0,
4637
+ status: status || void 0
4638
+ }
4639
+ });
4640
+ return data;
4641
+ };
4642
+ var useGetSelfEventListingsRegistrations = (eventId, status, params = {}, options = {}) => {
4643
+ return useConnectedInfiniteQuery(
4644
+ LISTING_REGISTRATIONS_QUERY_KEY(eventId, status),
4645
+ (params2) => GetSelfEventListingRegistrations({ eventId, status, ...params2 }),
4646
+ params,
4647
+ {
4648
+ ...options,
4649
+ enabled: !!eventId && (options?.enabled ?? true)
4650
+ }
4651
+ );
4652
+ };
4653
+
4654
+ // src/queries/listings/useGetListingRegistration.ts
4655
+ var LISTING_REGISTRATION_QUERY_KEY = (eventId, registrationId) => [LISTING_REGISTRATIONS_QUERY_KEY(eventId), registrationId];
4656
+ var SET_LISTING_REGISTRATION_QUERY_KEY = (client, keyParams, response, baseKeys = ["en"]) => {
4657
+ client.setQueryData(
4658
+ [
4659
+ ...LISTING_REGISTRATION_QUERY_KEY(...keyParams),
4660
+ ...GetBaseSingleQueryKeys(...baseKeys)
4661
+ ],
4662
+ response
4663
+ );
4664
+ };
4665
+ var GetSelfEventListingRegistration = async ({
4666
+ eventId,
4667
+ registrationId,
4668
+ clientApiParams
4669
+ }) => {
4670
+ const clientApi = await GetClientAPI(clientApiParams);
4671
+ const { data } = await clientApi.get(
4672
+ `/listings/${eventId}/registrations/${registrationId}`
4673
+ );
4674
+ return data;
4675
+ };
4676
+ var useGetSelfEventListingRegistration = (eventId = "", registrationId = "", options = {}) => {
4677
+ return useConnectedSingleQuery(
4678
+ LISTING_REGISTRATION_QUERY_KEY(eventId, registrationId),
4679
+ (params) => GetSelfEventListingRegistration({ eventId, registrationId, ...params }),
4680
+ {
4681
+ ...options,
4682
+ enabled: !!eventId && !!registrationId
4683
+ }
4684
+ );
4685
+ };
4686
+
4526
4687
  // src/mutations/useConnectedMutation.ts
4527
4688
  import {
4528
4689
  useMutation,
@@ -4786,167 +4947,42 @@ var useUnlikeActivity = (options = {}) => {
4786
4947
  return useConnectedMutation_default(UnlikeActivity, options);
4787
4948
  };
4788
4949
 
4789
- // src/mutations/communityModerator/useAddCommunityEvent.ts
4790
- var AddCommunityEvent = async ({
4791
- communityId,
4950
+ // src/mutations/events/useCompleteEventActivation.ts
4951
+ var CompleteEventActivation = async ({
4792
4952
  eventId,
4953
+ activationId,
4954
+ code,
4793
4955
  clientApiParams,
4794
4956
  queryClient
4795
4957
  }) => {
4796
4958
  const clientApi = await GetClientAPI(clientApiParams);
4797
4959
  const { data } = await clientApi.post(
4798
- `/communityModerator/${communityId}/events/${eventId}`
4960
+ `/events/${eventId}/activations/${activationId}`,
4961
+ {
4962
+ code: code || void 0
4963
+ }
4799
4964
  );
4800
- if (queryClient) {
4801
- queryClient.invalidateQueries({
4802
- queryKey: COMMUNITY_EVENTS_QUERY_KEY(communityId)
4803
- });
4804
- queryClient.invalidateQueries({
4805
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(true)
4806
- });
4807
- queryClient.invalidateQueries({
4808
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(false)
4809
- });
4965
+ if (queryClient && data.status === "ok") {
4810
4966
  }
4811
4967
  return data;
4812
4968
  };
4813
- var useAddCommunityEvent = (options = {}) => {
4814
- return useConnectedMutation_default(AddCommunityEvent, options);
4969
+ var useCompleteEventActivation = (options = {}) => {
4970
+ return useConnectedMutation_default(CompleteEventActivation, options);
4815
4971
  };
4816
4972
 
4817
- // src/mutations/communityModerator/useCreateCommunityAnnouncement.ts
4818
- var CreateCommunityAnnouncement = async ({
4819
- communityId,
4820
- title,
4821
- html,
4822
- email,
4823
- push,
4973
+ // src/mutations/events/useCreateEventLead.ts
4974
+ var CreateEventLead = async ({
4975
+ eventId,
4976
+ purchaseId,
4977
+ note,
4824
4978
  clientApiParams,
4825
4979
  queryClient
4826
4980
  }) => {
4827
4981
  const clientApi = await GetClientAPI(clientApiParams);
4828
4982
  const { data } = await clientApi.post(
4829
- `/communityModerator/${communityId}/announcements`,
4983
+ `/events/${eventId}/leads/${purchaseId}`,
4830
4984
  {
4831
- title,
4832
- html,
4833
- email,
4834
- push
4835
- }
4836
- );
4837
- if (queryClient && data.status === "ok") {
4838
- AppendInfiniteQuery(
4839
- queryClient,
4840
- [
4841
- ...COMMUNITY_ANNOUNCEMENTS_QUERY_KEY(communityId),
4842
- ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
4843
- ],
4844
- data.data
4845
- );
4846
- }
4847
- return data;
4848
- };
4849
- var useCreateCommunityAnnouncement = (options = {}) => {
4850
- return useConnectedMutation(CreateCommunityAnnouncement, options);
4851
- };
4852
-
4853
- // src/mutations/communityModerator/useRemoveCommunityEvent.ts
4854
- var RemoveCommunityEvent = async ({
4855
- communityId,
4856
- eventId,
4857
- clientApiParams,
4858
- queryClient
4859
- }) => {
4860
- const clientApi = await GetClientAPI(clientApiParams);
4861
- const { data } = await clientApi.delete(
4862
- `/communityModerator/${communityId}/events/${eventId}`
4863
- );
4864
- if (queryClient && data.status === "ok") {
4865
- queryClient.invalidateQueries({
4866
- queryKey: COMMUNITY_EVENTS_QUERY_KEY(communityId)
4867
- });
4868
- queryClient.invalidateQueries({
4869
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(true)
4870
- });
4871
- queryClient.invalidateQueries({
4872
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(false)
4873
- });
4874
- }
4875
- return data;
4876
- };
4877
- var useRemoveCommunityEvent = (options = {}) => {
4878
- return useConnectedMutation_default(RemoveCommunityEvent, options);
4879
- };
4880
-
4881
- // src/mutations/communityModerator/useUpdateCommunity.ts
4882
- var UpdateCommunity = async ({
4883
- communityId,
4884
- description,
4885
- externalUrl,
4886
- base64,
4887
- clientApiParams,
4888
- queryClient
4889
- }) => {
4890
- const clientApi = await GetClientAPI(clientApiParams);
4891
- const { data } = await clientApi.put(
4892
- `/communityModerator/${communityId}`,
4893
- {
4894
- description: description || void 0,
4895
- externalUrl: externalUrl || void 0,
4896
- buffer: base64 ? base64 : void 0
4897
- }
4898
- );
4899
- if (queryClient && data.status === "ok") {
4900
- SET_COMMUNITY_QUERY_DATA(queryClient, [data.data.slug], data, [
4901
- clientApiParams.locale
4902
- ]);
4903
- queryClient.invalidateQueries({
4904
- queryKey: SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY()
4905
- });
4906
- queryClient.invalidateQueries({ queryKey: COMMUNITIES_QUERY_KEY() });
4907
- }
4908
- return data;
4909
- };
4910
- var useUpdateCommunity = (options = {}) => {
4911
- return useConnectedMutation(UpdateCommunity, options);
4912
- };
4913
-
4914
- // src/mutations/events/useCompleteEventActivation.ts
4915
- var CompleteEventActivation = async ({
4916
- eventId,
4917
- activationId,
4918
- code,
4919
- clientApiParams,
4920
- queryClient
4921
- }) => {
4922
- const clientApi = await GetClientAPI(clientApiParams);
4923
- const { data } = await clientApi.post(
4924
- `/events/${eventId}/activations/${activationId}`,
4925
- {
4926
- code: code || void 0
4927
- }
4928
- );
4929
- if (queryClient && data.status === "ok") {
4930
- }
4931
- return data;
4932
- };
4933
- var useCompleteEventActivation = (options = {}) => {
4934
- return useConnectedMutation_default(CompleteEventActivation, options);
4935
- };
4936
-
4937
- // src/mutations/events/useCreateEventLead.ts
4938
- var CreateEventLead = async ({
4939
- eventId,
4940
- purchaseId,
4941
- note,
4942
- clientApiParams,
4943
- queryClient
4944
- }) => {
4945
- const clientApi = await GetClientAPI(clientApiParams);
4946
- const { data } = await clientApi.post(
4947
- `/events/${eventId}/leads/${purchaseId}`,
4948
- {
4949
- note: note || void 0
4985
+ note: note || void 0
4950
4986
  }
4951
4987
  );
4952
4988
  if (queryClient && data.status === "ok") {
@@ -5239,6 +5275,9 @@ var CaptureSelfEventRegistrationPayment = async ({
5239
5275
  SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
5240
5276
  clientApiParams.locale
5241
5277
  ]);
5278
+ queryClient.invalidateQueries({
5279
+ queryKey: SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY(eventId)
5280
+ });
5242
5281
  }
5243
5282
  return data;
5244
5283
  };
@@ -5372,6 +5411,9 @@ var SubmitSelfEventRegistration = async ({
5372
5411
  SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
5373
5412
  clientApiParams.locale
5374
5413
  ]);
5414
+ queryClient.invalidateQueries({
5415
+ queryKey: SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY(eventId)
5416
+ });
5375
5417
  }
5376
5418
  return data;
5377
5419
  };
@@ -5797,84 +5839,6 @@ var useAddSelfDelegate = (options = {}) => {
5797
5839
  return useConnectedMutation_default(AddSelfDelegate, options);
5798
5840
  };
5799
5841
 
5800
- // src/mutations/self/useAddSelfEventListingSession.ts
5801
- var AddSelfEventListingSession = async ({
5802
- eventId,
5803
- session,
5804
- clientApiParams,
5805
- queryClient
5806
- }) => {
5807
- const clientApi = await GetClientAPI(clientApiParams);
5808
- const { data } = await clientApi.post(
5809
- `/self/events/listings/${eventId}/sessions`,
5810
- {
5811
- session
5812
- }
5813
- );
5814
- if (queryClient && data.status === "ok") {
5815
- queryClient.invalidateQueries({
5816
- queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
5817
- });
5818
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
5819
- }
5820
- return data;
5821
- };
5822
- var useAddSelfEventListingSession = (options = {}) => {
5823
- return useConnectedMutation_default(AddSelfEventListingSession, options);
5824
- };
5825
-
5826
- // src/mutations/self/useAddSelfEventListingSpeaker.ts
5827
- var AddSelfEventListingSpeaker = async ({
5828
- eventId,
5829
- speaker,
5830
- clientApiParams,
5831
- queryClient
5832
- }) => {
5833
- const clientApi = await GetClientAPI(clientApiParams);
5834
- const { data } = await clientApi.post(
5835
- `/self/events/listings/${eventId}/speakers`,
5836
- {
5837
- speaker
5838
- }
5839
- );
5840
- if (queryClient && data.status === "ok") {
5841
- queryClient.invalidateQueries({
5842
- queryKey: EVENT_SPEAKERS_QUERY_KEY(eventId)
5843
- });
5844
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
5845
- }
5846
- return data;
5847
- };
5848
- var useAddSelfEventListingSpeaker = (options = {}) => {
5849
- return useConnectedMutation_default(AddSelfEventListingSpeaker, options);
5850
- };
5851
-
5852
- // src/mutations/self/useAddSelfEventListingSponsor.ts
5853
- var AddSelfEventListingSponsor = async ({
5854
- eventId,
5855
- sponsor,
5856
- clientApiParams,
5857
- queryClient
5858
- }) => {
5859
- const clientApi = await GetClientAPI(clientApiParams);
5860
- const { data } = await clientApi.post(
5861
- `/self/events/listings/${eventId}/sponsors`,
5862
- {
5863
- sponsorId: sponsor.id
5864
- }
5865
- );
5866
- if (queryClient && data.status === "ok") {
5867
- queryClient.invalidateQueries({
5868
- queryKey: EVENT_SPONSORS_QUERY_KEY(eventId)
5869
- });
5870
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
5871
- }
5872
- return data;
5873
- };
5874
- var useAddSelfEventListingSponsor = (options = {}) => {
5875
- return useConnectedMutation_default(AddSelfEventListingSponsor, options);
5876
- };
5877
-
5878
5842
  // src/mutations/self/useAddSelfEventSession.ts
5879
5843
  var AddSelfEventSession = async ({
5880
5844
  eventId,
@@ -5897,66 +5861,6 @@ var useAddSelfEventSession = (options = {}) => {
5897
5861
  return useConnectedMutation_default(AddSelfEventSession, options);
5898
5862
  };
5899
5863
 
5900
- // src/mutations/self/useCreateSelfEventListing.ts
5901
- var CreateSelfEventListing = async ({
5902
- event,
5903
- base64,
5904
- communityId,
5905
- sponsorIds,
5906
- speakers,
5907
- sessions,
5908
- clientApiParams,
5909
- queryClient
5910
- }) => {
5911
- const clientApi = await GetClientAPI(clientApiParams);
5912
- let data;
5913
- if (communityId) {
5914
- data = (await clientApi.post(
5915
- `/communityModerator/${communityId}/events`,
5916
- {
5917
- event,
5918
- image: base64 ? base64 : void 0,
5919
- communityId: communityId || void 0,
5920
- sponsorIds: sponsorIds || void 0,
5921
- speakers,
5922
- sessions
5923
- }
5924
- )).data;
5925
- } else {
5926
- data = (await clientApi.post(
5927
- `/self/events/listings`,
5928
- {
5929
- event,
5930
- image: base64 ? base64 : void 0,
5931
- sponsorIds: sponsorIds || void 0,
5932
- speakers,
5933
- sessions
5934
- }
5935
- )).data;
5936
- }
5937
- if (queryClient && data.status === "ok") {
5938
- queryClient.invalidateQueries({
5939
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(false)
5940
- });
5941
- queryClient.invalidateQueries({
5942
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(true)
5943
- });
5944
- if (communityId) {
5945
- queryClient.invalidateQueries({
5946
- queryKey: COMMUNITY_EVENTS_QUERY_KEY(communityId)
5947
- });
5948
- }
5949
- queryClient.setQueryData(
5950
- [...EVENT_QUERY_KEY(data.data.id), clientApiParams.locale],
5951
- data
5952
- );
5953
- }
5954
- return data;
5955
- };
5956
- var useCreateSelfEventListing = (options = {}) => {
5957
- return useConnectedMutation_default(CreateSelfEventListing, options);
5958
- };
5959
-
5960
5864
  // src/mutations/self/useDeleteSelf.ts
5961
5865
  var DeleteSelf = async ({
5962
5866
  clientApiParams,
@@ -6034,8 +5938,8 @@ var useRemoveSelfDelegate = (options = {}) => {
6034
5938
  return useConnectedMutation_default(RemoveSelfDelegate, options);
6035
5939
  };
6036
5940
 
6037
- // src/mutations/self/useRemoveSelfEventListingSession.ts
6038
- var RemoveSelfEventListingSession = async ({
5941
+ // src/mutations/self/useRemoveSelfEventSession.ts
5942
+ var RemoveSelfEventSession = async ({
6039
5943
  eventId,
6040
5944
  sessionId,
6041
5945
  clientApiParams,
@@ -6043,151 +5947,57 @@ var RemoveSelfEventListingSession = async ({
6043
5947
  }) => {
6044
5948
  const clientApi = await GetClientAPI(clientApiParams);
6045
5949
  const { data } = await clientApi.delete(
6046
- `/self/events/listings/${eventId}/sessions/${sessionId}`
5950
+ `/self/events/${eventId}/sessions/${sessionId}`
6047
5951
  );
6048
5952
  if (queryClient && data.status === "ok") {
6049
5953
  queryClient.invalidateQueries({
6050
- queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
5954
+ queryKey: SELF_EVENT_SESSIONS_QUERY_KEY(eventId)
6051
5955
  });
6052
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
6053
5956
  }
6054
5957
  return data;
6055
5958
  };
6056
- var useRemoveSelfEventListingSession = (options = {}) => {
6057
- return useConnectedMutation_default(RemoveSelfEventListingSession, options);
5959
+ var useRemoveSelfEventSession = (options = {}) => {
5960
+ return useConnectedMutation_default(RemoveSelfEventSession, options);
6058
5961
  };
6059
5962
 
6060
- // src/mutations/self/useRemoveSelfEventListingSpeaker.ts
6061
- var RemoveSelfEventListingSpeaker = async ({
6062
- eventId,
6063
- speakerId,
6064
- clientApiParams,
6065
- queryClient
6066
- }) => {
6067
- const clientApi = await GetClientAPI(clientApiParams);
6068
- const { data } = await clientApi.delete(
6069
- `/self/events/listings/${eventId}/speakers/${speakerId}`
5963
+ // src/mutations/activities/optimistic/UpdateComments.ts
5964
+ import { produce as produce5 } from "immer";
5965
+ var UpdateCommentsSingle = (increment, queryClient, KEY) => {
5966
+ queryClient.setQueryData(
5967
+ KEY,
5968
+ (originalData) => produce5(originalData, (draft) => {
5969
+ if (!draft?.data) {
5970
+ return;
5971
+ }
5972
+ draft.data._count.comments += increment ? 1 : -1;
5973
+ draft.data.comments = increment ? [{ id: Date.now().toString() }] : [];
5974
+ })
6070
5975
  );
6071
- if (queryClient && data.status === "ok") {
6072
- queryClient.invalidateQueries({
6073
- queryKey: EVENT_SPEAKERS_QUERY_KEY(eventId)
6074
- });
6075
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
6076
- }
6077
- return data;
6078
5976
  };
6079
- var useRemoveSelfEventListingSpeaker = (options = {}) => {
6080
- return useConnectedMutation_default(RemoveSelfEventListingSpeaker, options);
5977
+ var UpdateCommentsInfinite = (increment, queryClient, KEY, activityId) => {
5978
+ queryClient.setQueriesData(
5979
+ { queryKey: KEY, exact: false },
5980
+ (originalData) => produce5(originalData, (draft) => {
5981
+ if (!draft?.pages || draft.pages.length === 0) {
5982
+ return;
5983
+ }
5984
+ for (const page of draft.pages) {
5985
+ for (const activity of page.data) {
5986
+ if (activity.id === activityId) {
5987
+ activity._count.comments += increment ? 1 : -1;
5988
+ activity.comments = increment ? [{ id: Date.now().toString() }] : [];
5989
+ }
5990
+ }
5991
+ }
5992
+ })
5993
+ );
6081
5994
  };
6082
5995
 
6083
- // src/mutations/self/useRemoveSelfEventListingSponsor.ts
6084
- var RemoveSelfEventListingSponsor = async ({
6085
- eventId,
6086
- sponsorId,
6087
- clientApiParams,
6088
- queryClient
6089
- }) => {
6090
- const clientApi = await GetClientAPI(clientApiParams);
6091
- const { data } = await clientApi.delete(
6092
- `/self/events/listings/${eventId}/sponsors/${sponsorId}`
6093
- );
6094
- if (queryClient && data.status === "ok") {
6095
- queryClient.invalidateQueries({
6096
- queryKey: EVENT_SPONSORS_QUERY_KEY(eventId)
6097
- });
6098
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
6099
- }
6100
- return data;
6101
- };
6102
- var useRemoveSelfEventListingSponsor = (options = {}) => {
6103
- return useConnectedMutation_default(RemoveSelfEventListingSponsor, options);
6104
- };
6105
-
6106
- // src/mutations/self/useRemoveSelfEventSession.ts
6107
- var RemoveSelfEventSession = async ({
6108
- eventId,
6109
- sessionId,
6110
- clientApiParams,
6111
- queryClient
6112
- }) => {
6113
- const clientApi = await GetClientAPI(clientApiParams);
6114
- const { data } = await clientApi.delete(
6115
- `/self/events/${eventId}/sessions/${sessionId}`
6116
- );
6117
- if (queryClient && data.status === "ok") {
6118
- queryClient.invalidateQueries({
6119
- queryKey: SELF_EVENT_SESSIONS_QUERY_KEY(eventId)
6120
- });
6121
- }
6122
- return data;
6123
- };
6124
- var useRemoveSelfEventSession = (options = {}) => {
6125
- return useConnectedMutation_default(RemoveSelfEventSession, options);
6126
- };
6127
-
6128
- // src/mutations/self/useSelfCheckinRegistration.tsx
6129
- var SelfCheckinRegistration = async ({
6130
- eventId,
6131
- registrationId,
6132
- clientApiParams,
6133
- queryClient
6134
- }) => {
6135
- const clientApi = await GetClientAPI(clientApiParams);
6136
- const { data } = await clientApi.post(
6137
- `/self/events/listings/${eventId}/registrations/${registrationId}`
6138
- );
6139
- if (queryClient && data.status === "ok") {
6140
- queryClient.invalidateQueries({
6141
- queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId)
6142
- });
6143
- queryClient.invalidateQueries({
6144
- queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId)
6145
- });
6146
- }
6147
- return data;
6148
- };
6149
- var useSelfCheckinRegistration = (options = {}) => {
6150
- return useConnectedMutation_default(SelfCheckinRegistration, options);
6151
- };
6152
-
6153
- // src/mutations/activities/optimistic/UpdateComments.ts
6154
- import { produce as produce5 } from "immer";
6155
- var UpdateCommentsSingle = (increment, queryClient, KEY) => {
6156
- queryClient.setQueryData(
6157
- KEY,
6158
- (originalData) => produce5(originalData, (draft) => {
6159
- if (!draft?.data) {
6160
- return;
6161
- }
6162
- draft.data._count.comments += increment ? 1 : -1;
6163
- draft.data.comments = increment ? [{ id: Date.now().toString() }] : [];
6164
- })
6165
- );
6166
- };
6167
- var UpdateCommentsInfinite = (increment, queryClient, KEY, activityId) => {
6168
- queryClient.setQueriesData(
6169
- { queryKey: KEY, exact: false },
6170
- (originalData) => produce5(originalData, (draft) => {
6171
- if (!draft?.pages || draft.pages.length === 0) {
6172
- return;
6173
- }
6174
- for (const page of draft.pages) {
6175
- for (const activity of page.data) {
6176
- if (activity.id === activityId) {
6177
- activity._count.comments += increment ? 1 : -1;
6178
- activity.comments = increment ? [{ id: Date.now().toString() }] : [];
6179
- }
6180
- }
6181
- }
6182
- })
6183
- );
6184
- };
6185
-
6186
- // src/mutations/self/useSelfCreateActivity.ts
6187
- var SelfCreateActivity = async ({
6188
- activity,
6189
- base64Image,
6190
- videoUri,
5996
+ // src/mutations/self/useSelfCreateActivity.ts
5997
+ var SelfCreateActivity = async ({
5998
+ activity,
5999
+ base64Image,
6000
+ videoUri,
6191
6001
  clientApiParams,
6192
6002
  queryClient
6193
6003
  }) => {
@@ -6296,64 +6106,6 @@ var useDeleteActivity = (options = {}) => {
6296
6106
  return useConnectedMutation_default(DeleteActivity, options);
6297
6107
  };
6298
6108
 
6299
- // src/mutations/self/useSelfJoinCommunity.ts
6300
- var SelfJoinCommunity = async ({
6301
- communityId,
6302
- clientApiParams,
6303
- queryClient
6304
- }) => {
6305
- const clientApi = await GetClientAPI(clientApiParams);
6306
- const { data } = await clientApi.post(`/self/communities/${communityId}`);
6307
- if (queryClient && data.status === "ok") {
6308
- queryClient.invalidateQueries({
6309
- queryKey: COMMUNITY_QUERY_KEY(communityId)
6310
- });
6311
- queryClient.invalidateQueries({
6312
- queryKey: COMMUNITIES_QUERY_KEY()
6313
- });
6314
- queryClient.invalidateQueries({
6315
- queryKey: SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY()
6316
- });
6317
- queryClient.invalidateQueries({
6318
- queryKey: SELF_COMMUNITY_MEMBERSHIP_QUERY_KEY(communityId)
6319
- });
6320
- }
6321
- return data;
6322
- };
6323
- var useSelfJoinCommunity = (options = {}) => {
6324
- return useConnectedMutation_default(SelfJoinCommunity, options);
6325
- };
6326
-
6327
- // src/mutations/self/useSelfLeaveCommunity.ts
6328
- var SelfLeaveCommunity = async ({
6329
- communityId,
6330
- clientApiParams,
6331
- queryClient
6332
- }) => {
6333
- const clientApi = await GetClientAPI(clientApiParams);
6334
- const { data } = await clientApi.delete(
6335
- `/self/communities/${communityId}`
6336
- );
6337
- if (queryClient && data.status === "ok") {
6338
- queryClient.invalidateQueries({
6339
- queryKey: COMMUNITY_QUERY_KEY(communityId)
6340
- });
6341
- queryClient.invalidateQueries({
6342
- queryKey: COMMUNITIES_QUERY_KEY()
6343
- });
6344
- queryClient.invalidateQueries({
6345
- queryKey: SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY()
6346
- });
6347
- queryClient.invalidateQueries({
6348
- queryKey: SELF_COMMUNITY_MEMBERSHIP_QUERY_KEY(communityId)
6349
- });
6350
- }
6351
- return data;
6352
- };
6353
- var useSelfLeaveCommunity = (options = {}) => {
6354
- return useConnectedMutation_default(SelfLeaveCommunity, options);
6355
- };
6356
-
6357
6109
  // src/mutations/self/useSelfUpdateCommunityMembership.ts
6358
6110
  var SelfUpdateCommunityMembership = async ({
6359
6111
  communityId,
@@ -6406,102 +6158,6 @@ var useUpdateSelf = (options = {}) => {
6406
6158
  return useConnectedMutation_default(UpdateSelf, options);
6407
6159
  };
6408
6160
 
6409
- // src/mutations/self/useUpdateSelfEventListing.ts
6410
- var UpdateSelfEventListing = async ({
6411
- eventId,
6412
- event,
6413
- base64,
6414
- clientApiParams,
6415
- queryClient
6416
- }) => {
6417
- const clientApi = await GetClientAPI(clientApiParams);
6418
- const { data } = await clientApi.put(
6419
- `/self/events/listings/${eventId}`,
6420
- {
6421
- event,
6422
- image: base64 ?? void 0
6423
- }
6424
- );
6425
- if (queryClient && data.status === "ok") {
6426
- SET_EVENT_QUERY_DATA(queryClient, [eventId], data, [
6427
- clientApiParams.locale
6428
- ]);
6429
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data, [
6430
- clientApiParams.locale
6431
- ]);
6432
- queryClient.invalidateQueries({ queryKey: EVENT_QUERY_KEY(eventId) });
6433
- queryClient.invalidateQueries({
6434
- queryKey: SELF_EVENT_LISTING_QUERY_KEY(eventId)
6435
- });
6436
- queryClient.invalidateQueries({
6437
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(false)
6438
- });
6439
- queryClient.invalidateQueries({
6440
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(true)
6441
- });
6442
- }
6443
- return data;
6444
- };
6445
- var useUpdateSelfEventListing = (options = {}) => {
6446
- return useConnectedMutation_default(UpdateSelfEventListing, options);
6447
- };
6448
-
6449
- // src/mutations/self/useUpdateSelfEventListingSession.ts
6450
- var UpdateSelfEventListingSession = async ({
6451
- eventId,
6452
- session,
6453
- sessionId,
6454
- clientApiParams,
6455
- queryClient
6456
- }) => {
6457
- const clientApi = await GetClientAPI(clientApiParams);
6458
- const { data } = await clientApi.put(
6459
- `/self/events/listings/${eventId}/sessions/${sessionId}`,
6460
- {
6461
- session
6462
- }
6463
- );
6464
- if (queryClient && data.status === "ok") {
6465
- queryClient.invalidateQueries({
6466
- queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
6467
- });
6468
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
6469
- }
6470
- return data;
6471
- };
6472
- var useUpdateSelfEventListingSession = (options = {}) => {
6473
- return useConnectedMutation_default(UpdateSelfEventListingSession, options);
6474
- };
6475
-
6476
- // src/mutations/self/useUpdateSelfEventListingSpeaker.ts
6477
- var UpdateSelfEventListingSpeaker = async ({
6478
- eventId,
6479
- speaker,
6480
- speakerId,
6481
- buffer,
6482
- clientApiParams,
6483
- queryClient
6484
- }) => {
6485
- const clientApi = await GetClientAPI(clientApiParams);
6486
- const { data } = await clientApi.put(
6487
- `/self/events/listings/${eventId}/speakers/${speakerId}`,
6488
- {
6489
- speaker,
6490
- buffer: buffer || void 0
6491
- }
6492
- );
6493
- if (queryClient && data.status === "ok") {
6494
- queryClient.invalidateQueries({
6495
- queryKey: EVENT_SPEAKERS_QUERY_KEY(eventId)
6496
- });
6497
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
6498
- }
6499
- return data;
6500
- };
6501
- var useUpdateSelfEventListingSpeaker = (options = {}) => {
6502
- return useConnectedMutation_default(UpdateSelfEventListingSpeaker, options);
6503
- };
6504
-
6505
6161
  // src/mutations/self/useUpdateSelfImage.ts
6506
6162
  var UpdateSelfImage = async ({
6507
6163
  base64,
@@ -6643,6 +6299,713 @@ var CreateTeamAccount = async ({
6643
6299
  var useCreateTeamAccount = (options = {}) => {
6644
6300
  return useConnectedMutation_default(CreateTeamAccount, options);
6645
6301
  };
6302
+
6303
+ // src/mutations/communities/useAcceptCommunityInvitation.ts
6304
+ var AcceptCommunityInvitation = async ({
6305
+ communityId,
6306
+ requestId,
6307
+ clientApiParams,
6308
+ queryClient
6309
+ }) => {
6310
+ const clientApi = await GetClientAPI(clientApiParams);
6311
+ const { data } = await clientApi.post(
6312
+ `/communities/${communityId}/invites/${requestId}`
6313
+ );
6314
+ if (queryClient && data.status === "ok") {
6315
+ queryClient.invalidateQueries({
6316
+ queryKey: SELF_NOTIFICATIONS_QUERY_KEY("")
6317
+ });
6318
+ queryClient.invalidateQueries({
6319
+ queryKey: SELF_NOTIFICATION_COUNT_QUERY_KEY("")
6320
+ });
6321
+ }
6322
+ return data;
6323
+ };
6324
+ var useAcceptCommunityInvitation = (options = {}) => {
6325
+ return useConnectedMutation_default(AcceptCommunityInvitation, options);
6326
+ };
6327
+
6328
+ // src/mutations/communities/useAcceptCommunityRequest.ts
6329
+ var AcceptCommunityRequest = async ({
6330
+ communityId,
6331
+ requestId,
6332
+ clientApiParams,
6333
+ queryClient
6334
+ }) => {
6335
+ const clientApi = await GetClientAPI(clientApiParams);
6336
+ const { data } = await clientApi.post(
6337
+ `/communities/${communityId}/requests/${requestId}`
6338
+ );
6339
+ if (queryClient && data.status === "ok") {
6340
+ queryClient.invalidateQueries({
6341
+ queryKey: COMMUNITY_REQUESTS_QUERY_KEY(communityId)
6342
+ });
6343
+ }
6344
+ return data;
6345
+ };
6346
+ var useAcceptCommunityRequest = (options = {}) => {
6347
+ return useConnectedMutation_default(AcceptCommunityRequest, options);
6348
+ };
6349
+
6350
+ // src/mutations/communities/useCreateCommunity.ts
6351
+ var CreateCommunity = async ({
6352
+ community,
6353
+ imageDataUri,
6354
+ clientApiParams,
6355
+ queryClient
6356
+ }) => {
6357
+ const clientApi = await GetClientAPI(clientApiParams);
6358
+ const { data } = await clientApi.post(
6359
+ `/communities`,
6360
+ {
6361
+ community,
6362
+ imageDataUri
6363
+ }
6364
+ );
6365
+ if (queryClient && data.status === "ok") {
6366
+ SET_COMMUNITY_QUERY_DATA(queryClient, [data.data.id], data);
6367
+ queryClient.invalidateQueries({
6368
+ queryKey: COMMUNITIES_QUERY_KEY()
6369
+ });
6370
+ }
6371
+ return data;
6372
+ };
6373
+ var useCreateCommunity = (options = {}) => {
6374
+ return useConnectedMutation_default(CreateCommunity, options);
6375
+ };
6376
+
6377
+ // src/mutations/communities/useCreateCommunityInvitations.ts
6378
+ var CreateCommunityInvitations = async ({
6379
+ communityId,
6380
+ accountIds,
6381
+ clientApiParams,
6382
+ queryClient
6383
+ }) => {
6384
+ const clientApi = await GetClientAPI(clientApiParams);
6385
+ const { data } = await clientApi.post(
6386
+ `/communities/${communityId}/invites`,
6387
+ {
6388
+ accountIds
6389
+ }
6390
+ );
6391
+ if (queryClient && data.message === "ok") {
6392
+ queryClient.invalidateQueries({
6393
+ queryKey: COMMUNITY_INVITABLE_ACCOUNTS_QUERY_KEY(communityId)
6394
+ });
6395
+ }
6396
+ return data;
6397
+ };
6398
+ var useCreateCommunityInvitations = (options = {}) => {
6399
+ return useConnectedMutation_default(CreateCommunityInvitations, options);
6400
+ };
6401
+
6402
+ // src/mutations/communities/useCreateCommunityRequest.ts
6403
+ var CreateCommunityRequest = async ({
6404
+ communityId,
6405
+ clientApiParams
6406
+ }) => {
6407
+ const clientApi = await GetClientAPI(clientApiParams);
6408
+ const { data } = await clientApi.post(
6409
+ `/communities/${communityId}/requests`
6410
+ );
6411
+ return data;
6412
+ };
6413
+ var useCreateCommunityRequest = (options = {}) => {
6414
+ return useConnectedMutation_default(CreateCommunityRequest, options);
6415
+ };
6416
+
6417
+ // src/mutations/communities/useDeactivateCommunity.ts
6418
+ var DeactivateCommunity = async ({
6419
+ communityId,
6420
+ community,
6421
+ imageDataUri,
6422
+ clientApiParams,
6423
+ queryClient
6424
+ }) => {
6425
+ const clientApi = await GetClientAPI(clientApiParams);
6426
+ const { data } = await clientApi.post(
6427
+ `/communities/${communityId}`,
6428
+ {
6429
+ community,
6430
+ imageDataUri
6431
+ }
6432
+ );
6433
+ if (queryClient && data.status === "ok") {
6434
+ queryClient.invalidateQueries({
6435
+ queryKey: COMMUNITIES_QUERY_KEY()
6436
+ });
6437
+ }
6438
+ return data;
6439
+ };
6440
+ var useDeactivateCommunity = (options = {}) => {
6441
+ return useConnectedMutation_default(DeactivateCommunity, options);
6442
+ };
6443
+
6444
+ // src/mutations/communities/useDeleteCommunityInvitation.ts
6445
+ var DeleteCommunityInvitation = async ({
6446
+ communityId,
6447
+ requestId,
6448
+ clientApiParams,
6449
+ queryClient
6450
+ }) => {
6451
+ const clientApi = await GetClientAPI(clientApiParams);
6452
+ const { data } = await clientApi.delete(
6453
+ `/communities/${communityId}/invites/${requestId}`
6454
+ );
6455
+ if (queryClient && data.status === "ok") {
6456
+ queryClient.invalidateQueries({
6457
+ queryKey: COMMUNITY_REQUESTS_QUERY_KEY(communityId)
6458
+ });
6459
+ }
6460
+ return data;
6461
+ };
6462
+ var useDeleteCommunityInvitation = (options = {}) => {
6463
+ return useConnectedMutation_default(DeleteCommunityInvitation, options);
6464
+ };
6465
+
6466
+ // src/mutations/communities/useJoinCommunity.ts
6467
+ var JoinCommunity = async ({
6468
+ communityId,
6469
+ clientApiParams,
6470
+ queryClient
6471
+ }) => {
6472
+ const clientApi = await GetClientAPI(clientApiParams);
6473
+ const { data } = await clientApi.post(`/communities/${communityId}/join`);
6474
+ if (queryClient && data.status === "ok") {
6475
+ queryClient.invalidateQueries({
6476
+ queryKey: COMMUNITY_QUERY_KEY(communityId)
6477
+ });
6478
+ queryClient.invalidateQueries({
6479
+ queryKey: COMMUNITIES_QUERY_KEY()
6480
+ });
6481
+ queryClient.invalidateQueries({
6482
+ queryKey: SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY()
6483
+ });
6484
+ queryClient.invalidateQueries({
6485
+ queryKey: SELF_COMMUNITY_MEMBERSHIP_QUERY_KEY(communityId)
6486
+ });
6487
+ }
6488
+ return data;
6489
+ };
6490
+ var useJoinCommunity = (options = {}) => {
6491
+ return useConnectedMutation_default(JoinCommunity, options);
6492
+ };
6493
+
6494
+ // src/mutations/communities/useLeaveCommunity.ts
6495
+ var LeaveCommunity = async ({
6496
+ communityId,
6497
+ clientApiParams,
6498
+ queryClient
6499
+ }) => {
6500
+ const clientApi = await GetClientAPI(clientApiParams);
6501
+ const { data } = await clientApi.post(
6502
+ `/communities/${communityId}/leave`
6503
+ );
6504
+ if (queryClient && data.status === "ok") {
6505
+ queryClient.invalidateQueries({
6506
+ queryKey: COMMUNITY_QUERY_KEY(communityId)
6507
+ });
6508
+ queryClient.invalidateQueries({
6509
+ queryKey: COMMUNITIES_QUERY_KEY()
6510
+ });
6511
+ queryClient.invalidateQueries({
6512
+ queryKey: SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY()
6513
+ });
6514
+ queryClient.invalidateQueries({
6515
+ queryKey: SELF_COMMUNITY_MEMBERSHIP_QUERY_KEY(communityId)
6516
+ });
6517
+ }
6518
+ return data;
6519
+ };
6520
+ var useLeaveCommunity = (options = {}) => {
6521
+ return useConnectedMutation_default(LeaveCommunity, options);
6522
+ };
6523
+
6524
+ // src/mutations/communities/useRejectCommunityRequest.ts
6525
+ var RejectCommunityRequest = async ({
6526
+ communityId,
6527
+ requestId,
6528
+ clientApiParams,
6529
+ queryClient
6530
+ }) => {
6531
+ const clientApi = await GetClientAPI(clientApiParams);
6532
+ const { data } = await clientApi.delete(`/communities/${communityId}/requests/${requestId}`);
6533
+ if (queryClient && data.status === "ok") {
6534
+ SET_COMMUNITY_REQUEST_QUERY_DATA(
6535
+ queryClient,
6536
+ [communityId, data.data.id],
6537
+ data
6538
+ );
6539
+ queryClient.invalidateQueries({
6540
+ queryKey: COMMUNITY_REQUESTS_QUERY_KEY(communityId)
6541
+ });
6542
+ }
6543
+ return data;
6544
+ };
6545
+ var useRejectCommunityRequest = (options = {}) => {
6546
+ return useConnectedMutation_default(RejectCommunityRequest, options);
6547
+ };
6548
+
6549
+ // src/mutations/communities/useRemoveCommunityMember.ts
6550
+ var RemoveCommunityMember = async ({
6551
+ communityId,
6552
+ accountId,
6553
+ clientApiParams,
6554
+ queryClient
6555
+ }) => {
6556
+ const clientApi = await GetClientAPI(clientApiParams);
6557
+ const { data } = await clientApi.delete(
6558
+ `/communities/${communityId}/members/${accountId}`
6559
+ );
6560
+ if (queryClient && data.status === "ok") {
6561
+ queryClient.invalidateQueries({
6562
+ queryKey: COMMUNITY_MEMBERS_QUERY_KEY(communityId)
6563
+ });
6564
+ }
6565
+ return data;
6566
+ };
6567
+ var useRemoveCommunityMember = (options = {}) => {
6568
+ return useConnectedMutation_default(RemoveCommunityMember, options);
6569
+ };
6570
+
6571
+ // src/mutations/communities/useUpdateCommunity.ts
6572
+ var UpdateCommunity = async ({
6573
+ communityId,
6574
+ community,
6575
+ imageDataUri,
6576
+ clientApiParams,
6577
+ queryClient
6578
+ }) => {
6579
+ const clientApi = await GetClientAPI(clientApiParams);
6580
+ const { data } = await clientApi.put(
6581
+ `/communities/${communityId}`,
6582
+ {
6583
+ community,
6584
+ imageDataUri
6585
+ }
6586
+ );
6587
+ if (queryClient && data.status === "ok") {
6588
+ SET_COMMUNITY_QUERY_DATA(queryClient, [data.data.id], data);
6589
+ queryClient.invalidateQueries({
6590
+ queryKey: COMMUNITIES_QUERY_KEY()
6591
+ });
6592
+ }
6593
+ return data;
6594
+ };
6595
+ var useUpdateCommunity = (options = {}) => {
6596
+ return useConnectedMutation_default(UpdateCommunity, options);
6597
+ };
6598
+
6599
+ // src/mutations/communities/useDemoteCommunityModerator.ts
6600
+ var DemoteCommunityModerator = async ({
6601
+ communityId,
6602
+ accountId,
6603
+ clientApiParams,
6604
+ queryClient
6605
+ }) => {
6606
+ const clientApi = await GetClientAPI(clientApiParams);
6607
+ const { data } = await clientApi.post(`/communities/${communityId}/members/${accountId}/demote`);
6608
+ if (queryClient && data.status === "ok") {
6609
+ queryClient.invalidateQueries({
6610
+ queryKey: COMMUNITY_MEMBERS_QUERY_KEY(communityId)
6611
+ });
6612
+ }
6613
+ return data;
6614
+ };
6615
+ var useDemoteCommunityModerator = (options = {}) => {
6616
+ return useConnectedMutation_default(DemoteCommunityModerator, options);
6617
+ };
6618
+
6619
+ // src/mutations/communities/usePromoteCommunityMember.ts
6620
+ var PromoteCommunityMember = async ({
6621
+ communityId,
6622
+ accountId,
6623
+ clientApiParams,
6624
+ queryClient
6625
+ }) => {
6626
+ const clientApi = await GetClientAPI(clientApiParams);
6627
+ const { data } = await clientApi.post(`/communities/${communityId}/members/${accountId}/promote`);
6628
+ if (queryClient && data.status === "ok") {
6629
+ queryClient.invalidateQueries({
6630
+ queryKey: COMMUNITY_MEMBERS_QUERY_KEY(communityId)
6631
+ });
6632
+ }
6633
+ return data;
6634
+ };
6635
+ var usePromoteCommunityMember = (options = {}) => {
6636
+ return useConnectedMutation_default(PromoteCommunityMember, options);
6637
+ };
6638
+
6639
+ // src/mutations/communities/useCreateCommunityAnnouncement.ts
6640
+ var CreateCommunityAnnouncement = async ({
6641
+ communityId,
6642
+ title,
6643
+ html,
6644
+ email,
6645
+ push,
6646
+ clientApiParams,
6647
+ queryClient
6648
+ }) => {
6649
+ const clientApi = await GetClientAPI(clientApiParams);
6650
+ const { data } = await clientApi.post(
6651
+ `/communities/${communityId}/announcements`,
6652
+ {
6653
+ title,
6654
+ html,
6655
+ email,
6656
+ push
6657
+ }
6658
+ );
6659
+ if (queryClient && data.status === "ok") {
6660
+ queryClient.invalidateQueries({
6661
+ queryKey: COMMUNITY_ANNOUNCEMENTS_QUERY_KEY(communityId)
6662
+ });
6663
+ }
6664
+ return data;
6665
+ };
6666
+ var useCreateCommunityAnnouncement = (options = {}) => {
6667
+ return useConnectedMutation_default(CreateCommunityAnnouncement, options);
6668
+ };
6669
+
6670
+ // src/mutations/communities/useRejectCommunityInvitation.ts
6671
+ var RejectCommunityInvitation = async ({
6672
+ communityId,
6673
+ requestId,
6674
+ clientApiParams,
6675
+ queryClient
6676
+ }) => {
6677
+ const clientApi = await GetClientAPI(clientApiParams);
6678
+ const { data } = await clientApi.put(
6679
+ `/communities/${communityId}/invites/${requestId}`
6680
+ );
6681
+ if (queryClient && data.status === "ok") {
6682
+ SET_COMMUNITY_REQUEST_QUERY_DATA(
6683
+ queryClient,
6684
+ [communityId, data.data.id],
6685
+ data
6686
+ );
6687
+ queryClient.invalidateQueries({
6688
+ queryKey: SELF_NOTIFICATIONS_QUERY_KEY("")
6689
+ });
6690
+ queryClient.invalidateQueries({
6691
+ queryKey: SELF_NOTIFICATION_COUNT_QUERY_KEY("")
6692
+ });
6693
+ }
6694
+ return data;
6695
+ };
6696
+ var useRejectCommunityInvitation = (options = {}) => {
6697
+ return useConnectedMutation_default(RejectCommunityInvitation, options);
6698
+ };
6699
+
6700
+ // src/mutations/listings/useCreateListingSession.ts
6701
+ var CreateListingSession = async ({
6702
+ eventId,
6703
+ session,
6704
+ imageDataUri,
6705
+ clientApiParams,
6706
+ queryClient
6707
+ }) => {
6708
+ const clientApi = await GetClientAPI(clientApiParams);
6709
+ const { data } = await clientApi.post(
6710
+ `/listings/${eventId}/sessions`,
6711
+ {
6712
+ session,
6713
+ imageDataUri
6714
+ }
6715
+ );
6716
+ if (queryClient && data.status === "ok") {
6717
+ queryClient.invalidateQueries({
6718
+ queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
6719
+ });
6720
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
6721
+ }
6722
+ return data;
6723
+ };
6724
+ var useCreateListingSession = (options = {}) => {
6725
+ return useConnectedMutation_default(CreateListingSession, options);
6726
+ };
6727
+
6728
+ // src/mutations/listings/useCreateListingSpeaker.ts
6729
+ var CreateListingSpeaker = async ({
6730
+ eventId,
6731
+ speaker,
6732
+ imageDataUri,
6733
+ clientApiParams,
6734
+ queryClient
6735
+ }) => {
6736
+ const clientApi = await GetClientAPI(clientApiParams);
6737
+ const { data } = await clientApi.post(
6738
+ `/listings/${eventId}/speakers`,
6739
+ {
6740
+ speaker,
6741
+ imageDataUri
6742
+ }
6743
+ );
6744
+ if (queryClient && data.status === "ok") {
6745
+ queryClient.invalidateQueries({
6746
+ queryKey: EVENT_SPEAKERS_QUERY_KEY(eventId)
6747
+ });
6748
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
6749
+ }
6750
+ return data;
6751
+ };
6752
+ var useCreateListingSpeaker = (options = {}) => {
6753
+ return useConnectedMutation_default(CreateListingSpeaker, options);
6754
+ };
6755
+
6756
+ // src/mutations/listings/useAddListingSponsor.ts
6757
+ var AddListingSponsor = async ({
6758
+ eventId,
6759
+ sponsor,
6760
+ clientApiParams,
6761
+ queryClient
6762
+ }) => {
6763
+ const clientApi = await GetClientAPI(clientApiParams);
6764
+ const { data } = await clientApi.post(
6765
+ `/listings/${eventId}/sponsors`,
6766
+ {
6767
+ sponsorId: sponsor.id
6768
+ }
6769
+ );
6770
+ if (queryClient && data.status === "ok") {
6771
+ queryClient.invalidateQueries({
6772
+ queryKey: EVENT_SPONSORS_QUERY_KEY(eventId)
6773
+ });
6774
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
6775
+ }
6776
+ return data;
6777
+ };
6778
+ var useAddListingSponsor = (options = {}) => {
6779
+ return useConnectedMutation_default(AddListingSponsor, options);
6780
+ };
6781
+
6782
+ // src/mutations/listings/useCreateListing.ts
6783
+ var CreateListing = async ({
6784
+ event,
6785
+ imageDataUri,
6786
+ communityId,
6787
+ sponsorIds,
6788
+ speakers,
6789
+ sessions,
6790
+ clientApiParams,
6791
+ queryClient
6792
+ }) => {
6793
+ const clientApi = await GetClientAPI(clientApiParams);
6794
+ const { data } = await clientApi.post(
6795
+ `/listings`,
6796
+ {
6797
+ event,
6798
+ image: imageDataUri ? imageDataUri : void 0,
6799
+ communityId: communityId || void 0,
6800
+ sponsorIds: sponsorIds || void 0,
6801
+ speakers,
6802
+ sessions
6803
+ }
6804
+ );
6805
+ if (queryClient && data.status === "ok") {
6806
+ queryClient.invalidateQueries({
6807
+ queryKey: LISTINGS_QUERY_KEY(false)
6808
+ });
6809
+ queryClient.invalidateQueries({
6810
+ queryKey: LISTINGS_QUERY_KEY(true)
6811
+ });
6812
+ if (communityId) {
6813
+ queryClient.invalidateQueries({
6814
+ queryKey: COMMUNITY_EVENTS_QUERY_KEY(communityId)
6815
+ });
6816
+ }
6817
+ queryClient.setQueryData(
6818
+ [...EVENT_QUERY_KEY(data.data.id), clientApiParams.locale],
6819
+ data
6820
+ );
6821
+ }
6822
+ return data;
6823
+ };
6824
+ var useCreateListing = (options = {}) => {
6825
+ return useConnectedMutation_default(CreateListing, options);
6826
+ };
6827
+
6828
+ // src/mutations/listings/useDeleteListingSession.ts
6829
+ var DeleteListingSession = async ({
6830
+ eventId,
6831
+ sessionId,
6832
+ clientApiParams,
6833
+ queryClient
6834
+ }) => {
6835
+ const clientApi = await GetClientAPI(clientApiParams);
6836
+ const { data } = await clientApi.delete(
6837
+ `/listings/${eventId}/sessions/${sessionId}`
6838
+ );
6839
+ if (queryClient && data.status === "ok") {
6840
+ queryClient.invalidateQueries({
6841
+ queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
6842
+ });
6843
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
6844
+ }
6845
+ return data;
6846
+ };
6847
+ var useDeleteListingSession = (options = {}) => {
6848
+ return useConnectedMutation_default(DeleteListingSession, options);
6849
+ };
6850
+
6851
+ // src/mutations/listings/useDeleteListingSpeaker.ts
6852
+ var DeleteListingSpeaker = async ({
6853
+ eventId,
6854
+ speakerId,
6855
+ clientApiParams,
6856
+ queryClient
6857
+ }) => {
6858
+ const clientApi = await GetClientAPI(clientApiParams);
6859
+ const { data } = await clientApi.delete(
6860
+ `/listings/${eventId}/speakers/${speakerId}`
6861
+ );
6862
+ if (queryClient && data.status === "ok") {
6863
+ queryClient.invalidateQueries({
6864
+ queryKey: EVENT_SPEAKERS_QUERY_KEY(eventId)
6865
+ });
6866
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
6867
+ }
6868
+ return data;
6869
+ };
6870
+ var useDeleteListingSpeaker = (options = {}) => {
6871
+ return useConnectedMutation_default(DeleteListingSpeaker, options);
6872
+ };
6873
+
6874
+ // src/mutations/listings/useRemoveListingSponsor.ts
6875
+ var RemoveListingSponsor = async ({
6876
+ eventId,
6877
+ sponsorId,
6878
+ clientApiParams,
6879
+ queryClient
6880
+ }) => {
6881
+ const clientApi = await GetClientAPI(clientApiParams);
6882
+ const { data } = await clientApi.delete(
6883
+ `/listings/${eventId}/sponsors/${sponsorId}`
6884
+ );
6885
+ if (queryClient && data.status === "ok") {
6886
+ queryClient.invalidateQueries({
6887
+ queryKey: EVENT_SPONSORS_QUERY_KEY(eventId)
6888
+ });
6889
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
6890
+ }
6891
+ return data;
6892
+ };
6893
+ var useRemoveListingSponsor = (options = {}) => {
6894
+ return useConnectedMutation_default(RemoveListingSponsor, options);
6895
+ };
6896
+
6897
+ // src/mutations/listings/useCheckinListingRegistrationPurchase.ts
6898
+ var CheckinListingRegistrationPurchase = async ({
6899
+ eventId,
6900
+ registrationId,
6901
+ purchaseId,
6902
+ clientApiParams,
6903
+ queryClient
6904
+ }) => {
6905
+ const clientApi = await GetClientAPI(clientApiParams);
6906
+ const { data } = await clientApi.post(
6907
+ `/listings/${eventId}/registrations/${registrationId}/purchases/${purchaseId}`
6908
+ );
6909
+ if (queryClient && data.status === "ok") {
6910
+ queryClient.invalidateQueries({
6911
+ queryKey: LISTING_REGISTRATIONS_QUERY_KEY(eventId)
6912
+ });
6913
+ queryClient.invalidateQueries({
6914
+ queryKey: LISTING_REGISTRATION_QUERY_KEY(eventId, registrationId)
6915
+ });
6916
+ }
6917
+ return data;
6918
+ };
6919
+ var useCheckinListingRegistrationPurchase = (options = {}) => {
6920
+ return useConnectedMutation_default(CheckinListingRegistrationPurchase, options);
6921
+ };
6922
+
6923
+ // src/mutations/listings/useUpdateListing.ts
6924
+ var UpdateListing = async ({
6925
+ eventId,
6926
+ event,
6927
+ base64,
6928
+ clientApiParams,
6929
+ queryClient
6930
+ }) => {
6931
+ const clientApi = await GetClientAPI(clientApiParams);
6932
+ const { data } = await clientApi.put(
6933
+ `/listings/${eventId}`,
6934
+ {
6935
+ event,
6936
+ image: base64 ?? void 0
6937
+ }
6938
+ );
6939
+ if (queryClient && data.status === "ok") {
6940
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data, [
6941
+ clientApiParams.locale
6942
+ ]);
6943
+ queryClient.invalidateQueries({ queryKey: EVENTS_QUERY_KEY() });
6944
+ queryClient.invalidateQueries({ queryKey: EVENT_QUERY_KEY(eventId) });
6945
+ }
6946
+ return data;
6947
+ };
6948
+ var useUpdateListing = (options = {}) => {
6949
+ return useConnectedMutation_default(UpdateListing, options);
6950
+ };
6951
+
6952
+ // src/mutations/listings/useUpdateListingSession.ts
6953
+ var UpdateListingSession = async ({
6954
+ eventId,
6955
+ session,
6956
+ sessionId,
6957
+ imageDataUri,
6958
+ clientApiParams,
6959
+ queryClient
6960
+ }) => {
6961
+ const clientApi = await GetClientAPI(clientApiParams);
6962
+ const { data } = await clientApi.put(
6963
+ `/listings/${eventId}/sessions/${sessionId}`,
6964
+ {
6965
+ session,
6966
+ imageDataUri
6967
+ }
6968
+ );
6969
+ if (queryClient && data.status === "ok") {
6970
+ queryClient.invalidateQueries({
6971
+ queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
6972
+ });
6973
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
6974
+ }
6975
+ return data;
6976
+ };
6977
+ var useUpdateListingSession = (options = {}) => {
6978
+ return useConnectedMutation_default(UpdateListingSession, options);
6979
+ };
6980
+
6981
+ // src/mutations/listings/useUpdateListingSpeaker.ts
6982
+ var UpdateListingSpeaker = async ({
6983
+ eventId,
6984
+ speaker,
6985
+ speakerId,
6986
+ imageDataUri,
6987
+ clientApiParams,
6988
+ queryClient
6989
+ }) => {
6990
+ const clientApi = await GetClientAPI(clientApiParams);
6991
+ const { data } = await clientApi.put(
6992
+ `/listings/${eventId}/speakers/${speakerId}`,
6993
+ {
6994
+ speaker,
6995
+ imageDataUri
6996
+ }
6997
+ );
6998
+ if (queryClient && data.status === "ok") {
6999
+ queryClient.invalidateQueries({
7000
+ queryKey: EVENT_SPEAKERS_QUERY_KEY(eventId)
7001
+ });
7002
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
7003
+ }
7004
+ return data;
7005
+ };
7006
+ var useUpdateListingSpeaker = (options = {}) => {
7007
+ return useConnectedMutation_default(UpdateListingSpeaker, options);
7008
+ };
6646
7009
  export {
6647
7010
  ACCOUNTS_QUERY_KEY,
6648
7011
  ACCOUNT_ACTIVITIES_QUERY_KEY,
@@ -6655,14 +7018,13 @@ export {
6655
7018
  ACTIVITY_COMMENTS_QUERY_KEY,
6656
7019
  ACTIVITY_QUERY_KEY,
6657
7020
  ADVERTISEMENT_QUERY_KEY,
7021
+ AcceptCommunityInvitation,
7022
+ AcceptCommunityRequest,
6658
7023
  AcceptTransfer,
6659
7024
  AccountType,
6660
- AddCommunityEvent,
7025
+ AddListingSponsor,
6661
7026
  AddSelfChatChannelMember,
6662
7027
  AddSelfDelegate,
6663
- AddSelfEventListingSession,
6664
- AddSelfEventListingSpeaker,
6665
- AddSelfEventListingSponsor,
6666
7028
  AddSelfEventRegistrationPurchase,
6667
7029
  AddSelfEventRegistrationPurchaseAddOn,
6668
7030
  AddSelfEventSession,
@@ -6673,10 +7035,12 @@ export {
6673
7035
  COMMUNITY_ACTIVITIES_QUERY_KEY,
6674
7036
  COMMUNITY_ANNOUNCEMENTS_QUERY_KEY,
6675
7037
  COMMUNITY_EVENTS_QUERY_KEY,
7038
+ COMMUNITY_INVITABLE_ACCOUNTS_QUERY_KEY,
6676
7039
  COMMUNITY_MEDIA_QUERY_KEY,
6677
7040
  COMMUNITY_MEMBERS_QUERY_KEY,
6678
- COMMUNITY_MODERATORS_QUERY_KEY,
6679
7041
  COMMUNITY_QUERY_KEY,
7042
+ COMMUNITY_REQUESTS_QUERY_KEY,
7043
+ COMMUNITY_REQUEST_QUERY_KEY,
6680
7044
  COMMUNITY_SPONSORS_QUERY_KEY,
6681
7045
  CONTENTS_QUERY_KEY,
6682
7046
  CONTENT_ACTIVITIES_QUERY_KEY,
@@ -6690,27 +7054,39 @@ export {
6690
7054
  CancelTransfer,
6691
7055
  CaptureInvoicePayment,
6692
7056
  CaptureSelfEventRegistrationPayment,
7057
+ CheckinListingRegistrationPurchase,
6693
7058
  CommunityAccess,
6694
7059
  CommunityMembershipRole,
7060
+ CommunityRequestStatus,
6695
7061
  CompleteEventActivation,
6696
7062
  ConnectedXMProvider,
6697
7063
  ContentTypeFormat,
6698
7064
  CouponType,
7065
+ CreateCommunity,
6699
7066
  CreateCommunityAnnouncement,
7067
+ CreateCommunityInvitations,
7068
+ CreateCommunityRequest,
6700
7069
  CreateEventLead,
7070
+ CreateListing,
7071
+ CreateListingSession,
7072
+ CreateListingSpeaker,
6701
7073
  CreateSelfChatChannel,
6702
7074
  CreateSelfChatChannelMessage,
6703
- CreateSelfEventListing,
6704
7075
  CreateSubscription,
6705
7076
  CreateSupportTicket,
6706
7077
  CreateTeamAccount,
6707
7078
  Currency,
7079
+ DeactivateCommunity,
6708
7080
  DeleteActivity,
7081
+ DeleteCommunityInvitation,
7082
+ DeleteListingSession,
7083
+ DeleteListingSpeaker,
6709
7084
  DeleteReshare,
6710
7085
  DeleteSelf,
6711
7086
  DeleteSelfChatChannel,
6712
7087
  DeleteSelfChatChannelMessage,
6713
7088
  DeleteSelfPushDevice,
7089
+ DemoteCommunityModerator,
6714
7090
  EVENTS_FEATURED_QUERY_KEY,
6715
7091
  EVENTS_QUERY_KEY,
6716
7092
  EVENT_ACTIVITIES_QUERY_KEY,
@@ -6752,9 +7128,11 @@ export {
6752
7128
  GetCommunityActivities,
6753
7129
  GetCommunityAnnouncements,
6754
7130
  GetCommunityEvents,
7131
+ GetCommunityInvitableAccounts,
6755
7132
  GetCommunityMedia,
6756
7133
  GetCommunityMembers,
6757
- GetCommunityModerators,
7134
+ GetCommunityRequest,
7135
+ GetCommunityRequests,
6758
7136
  GetCommunitySponsors,
6759
7137
  GetContent,
6760
7138
  GetContentActivities,
@@ -6802,6 +7180,7 @@ export {
6802
7180
  GetSelfDelegateOf,
6803
7181
  GetSelfDelegates,
6804
7182
  GetSelfEventListing,
7183
+ GetSelfEventListingRegistration,
6805
7184
  GetSelfEventListingRegistrations,
6806
7185
  GetSelfEventListings,
6807
7186
  GetSelfEventRegistration,
@@ -6810,6 +7189,7 @@ export {
6810
7189
  GetSelfEventRegistrationPurchaseAddOns,
6811
7190
  GetSelfEventRegistrationPurchaseReservationSections,
6812
7191
  GetSelfEventRegistrationPurchaseSections,
7192
+ GetSelfEventRegistrationStatus,
6813
7193
  GetSelfEventSessions,
6814
7194
  GetSelfEvents,
6815
7195
  GetSelfFeed,
@@ -6833,9 +7213,15 @@ export {
6833
7213
  INVOICE_QUERY_KEY,
6834
7214
  ImageType,
6835
7215
  InvoiceStatus,
7216
+ JoinCommunity,
6836
7217
  LEVELS_QUERY_KEY,
6837
7218
  LEVEL_QUERY_KEY,
6838
7219
  LEVEL_SPONSORS_QUERY_KEY,
7220
+ LISTINGS_QUERY_KEY,
7221
+ LISTING_QUERY_KEY,
7222
+ LISTING_REGISTRATIONS_QUERY_KEY,
7223
+ LISTING_REGISTRATION_QUERY_KEY,
7224
+ LeaveCommunity,
6839
7225
  LeaveSelfChatChannel,
6840
7226
  LikeActivity,
6841
7227
  MergeInfinitePages,
@@ -6845,17 +7231,18 @@ export {
6845
7231
  ORGANIZATION_PAYMENT_INTEGRATION_QUERY_KEY,
6846
7232
  ORGANIZATION_QUERY_KEY,
6847
7233
  ORGANIZATION_SUBSCRIPTIONS_QUERY_KEY,
7234
+ PromoteCommunityMember,
6848
7235
  PushDeviceAppType,
6849
7236
  PushService,
6850
7237
  RegisterCancelledEventRegistration,
6851
7238
  RegistrationQuestionType,
6852
7239
  RegistrationStatus,
7240
+ RejectCommunityInvitation,
7241
+ RejectCommunityRequest,
6853
7242
  RejectTransfer,
6854
- RemoveCommunityEvent,
7243
+ RemoveCommunityMember,
7244
+ RemoveListingSponsor,
6855
7245
  RemoveSelfDelegate,
6856
- RemoveSelfEventListingSession,
6857
- RemoveSelfEventListingSpeaker,
6858
- RemoveSelfEventListingSponsor,
6859
7246
  RemoveSelfEventRegistrationCoupon,
6860
7247
  RemoveSelfEventRegistrationPurchase,
6861
7248
  RemoveSelfEventRegistrationPurchaseAddOn,
@@ -6872,15 +7259,13 @@ export {
6872
7259
  SELF_DELEGATES_QUERY_KEY,
6873
7260
  SELF_DELEGATE_OF_QUERY_KEY,
6874
7261
  SELF_EVENTS_QUERY_KEY,
6875
- SELF_EVENT_LISTINGS_QUERY_KEY,
6876
- SELF_EVENT_LISTING_QUERY_KEY,
6877
- SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY,
6878
7262
  SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY,
6879
7263
  SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_KEY,
6880
7264
  SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY,
6881
7265
  SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_KEY,
6882
7266
  SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY,
6883
7267
  SELF_EVENT_REGISTRATION_QUERY_KEY,
7268
+ SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY,
6884
7269
  SELF_EVENT_SESSIONS_QUERY_KEY,
6885
7270
  SELF_FEED_QUERY_KEY,
6886
7271
  SELF_INTERESTS_QUERY_KEY,
@@ -6917,8 +7302,9 @@ export {
6917
7302
  SET_COMMUNITY_EVENTS_QUERY_DATA,
6918
7303
  SET_COMMUNITY_MEDIA_QUERY_DATA,
6919
7304
  SET_COMMUNITY_MEMBERS_QUERY_DATA,
6920
- SET_COMMUNITY_MODERATORS_QUERY_DATA,
6921
7305
  SET_COMMUNITY_QUERY_DATA,
7306
+ SET_COMMUNITY_REQUESTS_QUERY_DATA,
7307
+ SET_COMMUNITY_REQUEST_QUERY_DATA,
6922
7308
  SET_COMMUNITY_SPONSORS_QUERY_DATA,
6923
7309
  SET_CONTENTS_QUERY_DATA,
6924
7310
  SET_CONTENT_ACTIVITIES_QUERY_DATA,
@@ -6947,6 +7333,8 @@ export {
6947
7333
  SET_LEVELS_QUERY_DATA,
6948
7334
  SET_LEVEL_QUERY_DATA,
6949
7335
  SET_LEVEL_SPONSORS_QUERY_DATA,
7336
+ SET_LISTING_QUERY_DATA,
7337
+ SET_LISTING_REGISTRATION_QUERY_KEY,
6950
7338
  SET_ORGANIZATION_PAGE_QUERY_DATA,
6951
7339
  SET_PUSH_DEVICE_QUERY_DATA,
6952
7340
  SET_SELF_CHAT_CHANNELS_QUERY_DATA,
@@ -6954,12 +7342,12 @@ export {
6954
7342
  SET_SELF_CHAT_CHANNEL_MESSAGES_QUERY_DATA,
6955
7343
  SET_SELF_CHAT_CHANNEL_QUERY_DATA,
6956
7344
  SET_SELF_COMMUNITY_MEMBERSHIP_QUERY_DATA,
6957
- SET_SELF_EVENT_LISTING_QUERY_DATA,
6958
7345
  SET_SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_DATA,
6959
7346
  SET_SELF_EVENT_REGISTRATION_PURCHASE_QUERY_DATA,
6960
7347
  SET_SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_DATA,
6961
7348
  SET_SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_DATA,
6962
7349
  SET_SELF_EVENT_REGISTRATION_QUERY_DATA,
7350
+ SET_SELF_EVENT_REGISTRATION_STATUS_QUERY_DATA,
6963
7351
  SET_SELF_QUERY_DATA,
6964
7352
  SET_SERIES_EVENTS_QUERY_DATA,
6965
7353
  SET_SERIES_LIST_QUERY_DATA,
@@ -6970,10 +7358,7 @@ export {
6970
7358
  SPONSOR_QUERY_KEY,
6971
7359
  SelectSelfEventRegistrationCoupon,
6972
7360
  SelectSelfEventRegistrationPurchaseReservation,
6973
- SelfCheckinRegistration,
6974
7361
  SelfCreateActivity,
6975
- SelfJoinCommunity,
6976
- SelfLeaveCommunity,
6977
7362
  SelfUpdateCommunityMembership,
6978
7363
  SubmitSelfEventRegistration,
6979
7364
  SubscriptionStatus,
@@ -6984,11 +7369,11 @@ export {
6984
7369
  UnfollowAccount,
6985
7370
  UnlikeActivity,
6986
7371
  UpdateCommunity,
7372
+ UpdateListing,
7373
+ UpdateListingSession,
7374
+ UpdateListingSpeaker,
6987
7375
  UpdateSelf,
6988
7376
  UpdateSelfChatChannelNotifications,
6989
- UpdateSelfEventListing,
6990
- UpdateSelfEventListingSession,
6991
- UpdateSelfEventListingSpeaker,
6992
7377
  UpdateSelfEventRegistrationQuestionResponse,
6993
7378
  UpdateSelfImage,
6994
7379
  UpdateSelfLead,
@@ -7034,13 +7419,12 @@ export {
7034
7419
  isTypeTrack,
7035
7420
  isTypeTransfer,
7036
7421
  setFirstPageData,
7422
+ useAcceptCommunityInvitation,
7423
+ useAcceptCommunityRequest,
7037
7424
  useAcceptTransfer,
7038
- useAddCommunityEvent,
7425
+ useAddListingSponsor,
7039
7426
  useAddSelfChatChannelMember,
7040
7427
  useAddSelfDelegate,
7041
- useAddSelfEventListingSession,
7042
- useAddSelfEventListingSpeaker,
7043
- useAddSelfEventListingSponsor,
7044
7428
  useAddSelfEventRegistrationPurchase,
7045
7429
  useAddSelfEventRegistrationPurchaseAddOn,
7046
7430
  useAddSelfEventSession,
@@ -7049,25 +7433,36 @@ export {
7049
7433
  useCancelTransfer,
7050
7434
  useCaptureInvoicePayment,
7051
7435
  useCaptureSelfEventRegistrationPayment,
7436
+ useCheckinListingRegistrationPurchase,
7052
7437
  useCompleteEventActivation,
7053
7438
  useConnectedInfiniteQuery,
7054
7439
  useConnectedMutation,
7055
7440
  useConnectedSingleQuery,
7056
7441
  useConnectedXM,
7442
+ useCreateCommunity,
7057
7443
  useCreateCommunityAnnouncement,
7444
+ useCreateCommunityInvitations,
7445
+ useCreateCommunityRequest,
7058
7446
  useCreateEventLead,
7447
+ useCreateListing,
7448
+ useCreateListingSession,
7449
+ useCreateListingSpeaker,
7059
7450
  useCreateSelfChatChannel,
7060
7451
  useCreateSelfChatChannelMessage,
7061
- useCreateSelfEventListing,
7062
7452
  useCreateSubscription,
7063
7453
  useCreateSupportTicket,
7064
7454
  useCreateTeamAccount,
7455
+ useDeactivateCommunity,
7065
7456
  useDeleteActivity,
7457
+ useDeleteCommunityInvitation,
7458
+ useDeleteListingSession,
7459
+ useDeleteListingSpeaker,
7066
7460
  useDeleteReshare,
7067
7461
  useDeleteSelf,
7068
7462
  useDeleteSelfChatChannel,
7069
7463
  useDeleteSelfChatChannelMessage,
7070
7464
  useDeleteSelfPushDevice,
7465
+ useDemoteCommunityModerator,
7071
7466
  useFollowAccount,
7072
7467
  useGetAccount,
7073
7468
  useGetAccountActivities,
@@ -7086,9 +7481,11 @@ export {
7086
7481
  useGetCommunityActivities,
7087
7482
  useGetCommunityAnnouncements,
7088
7483
  useGetCommunityEvents,
7484
+ useGetCommunityInvitableAccounts,
7089
7485
  useGetCommunityMedia,
7090
7486
  useGetCommunityMembers,
7091
- useGetCommunityModerators,
7487
+ useGetCommunityRequest,
7488
+ useGetCommunityRequests,
7092
7489
  useGetCommunitySponsors,
7093
7490
  useGetContent,
7094
7491
  useGetContentActivities,
@@ -7135,6 +7532,7 @@ export {
7135
7532
  useGetSelfDelegateOf,
7136
7533
  useGetSelfDelegates,
7137
7534
  useGetSelfEventListing,
7535
+ useGetSelfEventListingRegistration,
7138
7536
  useGetSelfEventListings,
7139
7537
  useGetSelfEventListingsRegistrations,
7140
7538
  useGetSelfEventRegistration,
@@ -7143,6 +7541,7 @@ export {
7143
7541
  useGetSelfEventRegistrationPurchaseAddOns,
7144
7542
  useGetSelfEventRegistrationPurchaseReservationSections,
7145
7543
  useGetSelfEventRegistrationPurchaseSections,
7544
+ useGetSelfEventRegistrationStatus,
7146
7545
  useGetSelfEventSessions,
7147
7546
  useGetSelfEvents,
7148
7547
  useGetSelfFeed,
@@ -7163,15 +7562,18 @@ export {
7163
7562
  useGetSeriesList,
7164
7563
  useGetSponsor,
7165
7564
  useGetSponsors,
7565
+ useJoinCommunity,
7566
+ useLeaveCommunity,
7166
7567
  useLeaveSelfChatChannel,
7167
7568
  useLikeActivity,
7569
+ usePromoteCommunityMember,
7168
7570
  useRegisterCancelledEventRegistration,
7571
+ useRejectCommunityInvitation,
7572
+ useRejectCommunityRequest,
7169
7573
  useRejectTransfer,
7170
- useRemoveCommunityEvent,
7574
+ useRemoveCommunityMember,
7575
+ useRemoveListingSponsor,
7171
7576
  useRemoveSelfDelegate,
7172
- useRemoveSelfEventListingSession,
7173
- useRemoveSelfEventListingSpeaker,
7174
- useRemoveSelfEventListingSponsor,
7175
7577
  useRemoveSelfEventRegistrationCoupon,
7176
7578
  useRemoveSelfEventRegistrationPurchase,
7177
7579
  useRemoveSelfEventRegistrationPurchaseAddOn,
@@ -7179,21 +7581,18 @@ export {
7179
7581
  useReshareActivity,
7180
7582
  useSelectSelfEventRegistrationCoupon,
7181
7583
  useSelectSelfEventRegistrationPurchaseReservation,
7182
- useSelfCheckinRegistration,
7183
7584
  useSelfCreateActivity,
7184
- useSelfJoinCommunity,
7185
- useSelfLeaveCommunity,
7186
7585
  useSelfUpdateCommunityMembership,
7187
7586
  useSubmitSelfEventRegistration,
7188
7587
  useTransferPurchase,
7189
7588
  useUnfollowAccount,
7190
7589
  useUnlikeActivity,
7191
7590
  useUpdateCommunity,
7591
+ useUpdateListing,
7592
+ useUpdateListingSession,
7593
+ useUpdateListingSpeaker,
7192
7594
  useUpdateSelf,
7193
7595
  useUpdateSelfChatChannelNotifications,
7194
- useUpdateSelfEventListing,
7195
- useUpdateSelfEventListingSession,
7196
- useUpdateSelfEventListingSpeaker,
7197
7596
  useUpdateSelfEventRegistrationQuestionResponse,
7198
7597
  useUpdateSelfImage,
7199
7598
  useUpdateSelfLead,