@connectedxm/client 0.3.6 → 0.4.2

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,122 @@ 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
+
4526
4654
  // src/mutations/useConnectedMutation.ts
4527
4655
  import {
4528
4656
  useMutation,
@@ -4786,190 +4914,65 @@ var useUnlikeActivity = (options = {}) => {
4786
4914
  return useConnectedMutation_default(UnlikeActivity, options);
4787
4915
  };
4788
4916
 
4789
- // src/mutations/communityModerator/useAddCommunityEvent.ts
4790
- var AddCommunityEvent = async ({
4791
- communityId,
4917
+ // src/mutations/events/useCompleteEventActivation.ts
4918
+ var CompleteEventActivation = async ({
4792
4919
  eventId,
4920
+ activationId,
4921
+ code,
4793
4922
  clientApiParams,
4794
4923
  queryClient
4795
4924
  }) => {
4796
4925
  const clientApi = await GetClientAPI(clientApiParams);
4797
4926
  const { data } = await clientApi.post(
4798
- `/communityModerator/${communityId}/events/${eventId}`
4927
+ `/events/${eventId}/activations/${activationId}`,
4928
+ {
4929
+ code: code || void 0
4930
+ }
4799
4931
  );
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
- });
4932
+ if (queryClient && data.status === "ok") {
4810
4933
  }
4811
4934
  return data;
4812
4935
  };
4813
- var useAddCommunityEvent = (options = {}) => {
4814
- return useConnectedMutation_default(AddCommunityEvent, options);
4936
+ var useCompleteEventActivation = (options = {}) => {
4937
+ return useConnectedMutation_default(CompleteEventActivation, options);
4815
4938
  };
4816
4939
 
4817
- // src/mutations/communityModerator/useCreateCommunityAnnouncement.ts
4818
- var CreateCommunityAnnouncement = async ({
4819
- communityId,
4820
- title,
4821
- html,
4822
- email,
4823
- push,
4940
+ // src/mutations/events/useCreateEventLead.ts
4941
+ var CreateEventLead = async ({
4942
+ eventId,
4943
+ purchaseId,
4944
+ note,
4824
4945
  clientApiParams,
4825
4946
  queryClient
4826
4947
  }) => {
4827
4948
  const clientApi = await GetClientAPI(clientApiParams);
4828
4949
  const { data } = await clientApi.post(
4829
- `/communityModerator/${communityId}/announcements`,
4950
+ `/events/${eventId}/leads/${purchaseId}`,
4830
4951
  {
4831
- title,
4832
- html,
4833
- email,
4834
- push
4952
+ note: note || void 0
4835
4953
  }
4836
4954
  );
4837
4955
  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
4956
  }
4847
4957
  return data;
4848
4958
  };
4849
- var useCreateCommunityAnnouncement = (options = {}) => {
4850
- return useConnectedMutation(CreateCommunityAnnouncement, options);
4959
+ var useCreateEventLead = (options = {}) => {
4960
+ return useConnectedMutation(CreateEventLead, options);
4851
4961
  };
4852
4962
 
4853
- // src/mutations/communityModerator/useRemoveCommunityEvent.ts
4854
- var RemoveCommunityEvent = async ({
4855
- communityId,
4856
- eventId,
4963
+ // src/mutations/invoices/useCaptureInvoicePayment.ts
4964
+ var CaptureInvoicePayment = async ({
4965
+ invoiceId,
4966
+ intentId,
4857
4967
  clientApiParams,
4858
4968
  queryClient
4859
4969
  }) => {
4860
4970
  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
4950
- }
4951
- );
4952
- if (queryClient && data.status === "ok") {
4953
- }
4954
- return data;
4955
- };
4956
- var useCreateEventLead = (options = {}) => {
4957
- return useConnectedMutation(CreateEventLead, options);
4958
- };
4959
-
4960
- // src/mutations/invoices/useCaptureInvoicePayment.ts
4961
- var CaptureInvoicePayment = async ({
4962
- invoiceId,
4963
- intentId,
4964
- clientApiParams,
4965
- queryClient
4966
- }) => {
4967
- const clientApi = await GetClientAPI(clientApiParams);
4968
- const { data } = await clientApi.post(
4969
- `/invoices/${invoiceId}/capture`,
4970
- {
4971
- intentId
4972
- }
4971
+ const { data } = await clientApi.post(
4972
+ `/invoices/${invoiceId}/capture`,
4973
+ {
4974
+ intentId
4975
+ }
4973
4976
  );
4974
4977
  if (queryClient && data.status === "ok") {
4975
4978
  SET_INVOICE_QUERY_DATA(queryClient, [invoiceId], data, [
@@ -5239,6 +5242,9 @@ var CaptureSelfEventRegistrationPayment = async ({
5239
5242
  SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
5240
5243
  clientApiParams.locale
5241
5244
  ]);
5245
+ queryClient.invalidateQueries({
5246
+ queryKey: SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY(eventId)
5247
+ });
5242
5248
  }
5243
5249
  return data;
5244
5250
  };
@@ -5372,6 +5378,9 @@ var SubmitSelfEventRegistration = async ({
5372
5378
  SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
5373
5379
  clientApiParams.locale
5374
5380
  ]);
5381
+ queryClient.invalidateQueries({
5382
+ queryKey: SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY(eventId)
5383
+ });
5375
5384
  }
5376
5385
  return data;
5377
5386
  };
@@ -5797,84 +5806,6 @@ var useAddSelfDelegate = (options = {}) => {
5797
5806
  return useConnectedMutation_default(AddSelfDelegate, options);
5798
5807
  };
5799
5808
 
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
5809
  // src/mutations/self/useAddSelfEventSession.ts
5879
5810
  var AddSelfEventSession = async ({
5880
5811
  eventId,
@@ -5897,66 +5828,6 @@ var useAddSelfEventSession = (options = {}) => {
5897
5828
  return useConnectedMutation_default(AddSelfEventSession, options);
5898
5829
  };
5899
5830
 
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
5831
  // src/mutations/self/useDeleteSelf.ts
5961
5832
  var DeleteSelf = async ({
5962
5833
  clientApiParams,
@@ -6034,75 +5905,6 @@ var useRemoveSelfDelegate = (options = {}) => {
6034
5905
  return useConnectedMutation_default(RemoveSelfDelegate, options);
6035
5906
  };
6036
5907
 
6037
- // src/mutations/self/useRemoveSelfEventListingSession.ts
6038
- var RemoveSelfEventListingSession = async ({
6039
- eventId,
6040
- sessionId,
6041
- clientApiParams,
6042
- queryClient
6043
- }) => {
6044
- const clientApi = await GetClientAPI(clientApiParams);
6045
- const { data } = await clientApi.delete(
6046
- `/self/events/listings/${eventId}/sessions/${sessionId}`
6047
- );
6048
- if (queryClient && data.status === "ok") {
6049
- queryClient.invalidateQueries({
6050
- queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
6051
- });
6052
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
6053
- }
6054
- return data;
6055
- };
6056
- var useRemoveSelfEventListingSession = (options = {}) => {
6057
- return useConnectedMutation_default(RemoveSelfEventListingSession, options);
6058
- };
6059
-
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}`
6070
- );
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
- };
6079
- var useRemoveSelfEventListingSpeaker = (options = {}) => {
6080
- return useConnectedMutation_default(RemoveSelfEventListingSpeaker, options);
6081
- };
6082
-
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
5908
  // src/mutations/self/useRemoveSelfEventSession.ts
6107
5909
  var RemoveSelfEventSession = async ({
6108
5910
  eventId,
@@ -6125,31 +5927,6 @@ var useRemoveSelfEventSession = (options = {}) => {
6125
5927
  return useConnectedMutation_default(RemoveSelfEventSession, options);
6126
5928
  };
6127
5929
 
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
5930
  // src/mutations/activities/optimistic/UpdateComments.ts
6154
5931
  import { produce as produce5 } from "immer";
6155
5932
  var UpdateCommentsSingle = (increment, queryClient, KEY) => {
@@ -6296,64 +6073,6 @@ var useDeleteActivity = (options = {}) => {
6296
6073
  return useConnectedMutation_default(DeleteActivity, options);
6297
6074
  };
6298
6075
 
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
6076
  // src/mutations/self/useSelfUpdateCommunityMembership.ts
6358
6077
  var SelfUpdateCommunityMembership = async ({
6359
6078
  communityId,
@@ -6406,102 +6125,6 @@ var useUpdateSelf = (options = {}) => {
6406
6125
  return useConnectedMutation_default(UpdateSelf, options);
6407
6126
  };
6408
6127
 
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
6128
  // src/mutations/self/useUpdateSelfImage.ts
6506
6129
  var UpdateSelfImage = async ({
6507
6130
  base64,
@@ -6643,6 +6266,709 @@ var CreateTeamAccount = async ({
6643
6266
  var useCreateTeamAccount = (options = {}) => {
6644
6267
  return useConnectedMutation_default(CreateTeamAccount, options);
6645
6268
  };
6269
+
6270
+ // src/mutations/communities/useAcceptCommunityInvitation.ts
6271
+ var AcceptCommunityInvitation = async ({
6272
+ communityId,
6273
+ requestId,
6274
+ clientApiParams,
6275
+ queryClient
6276
+ }) => {
6277
+ const clientApi = await GetClientAPI(clientApiParams);
6278
+ const { data } = await clientApi.post(
6279
+ `/communities/${communityId}/invites/${requestId}`
6280
+ );
6281
+ if (queryClient && data.status === "ok") {
6282
+ queryClient.invalidateQueries({
6283
+ queryKey: SELF_NOTIFICATIONS_QUERY_KEY("")
6284
+ });
6285
+ queryClient.invalidateQueries({
6286
+ queryKey: SELF_NOTIFICATION_COUNT_QUERY_KEY("")
6287
+ });
6288
+ }
6289
+ return data;
6290
+ };
6291
+ var useAcceptCommunityInvitation = (options = {}) => {
6292
+ return useConnectedMutation_default(AcceptCommunityInvitation, options);
6293
+ };
6294
+
6295
+ // src/mutations/communities/useAcceptCommunityRequest.ts
6296
+ var AcceptCommunityRequest = async ({
6297
+ communityId,
6298
+ requestId,
6299
+ clientApiParams,
6300
+ queryClient
6301
+ }) => {
6302
+ const clientApi = await GetClientAPI(clientApiParams);
6303
+ const { data } = await clientApi.post(
6304
+ `/communities/${communityId}/requests/${requestId}`
6305
+ );
6306
+ if (queryClient && data.status === "ok") {
6307
+ queryClient.invalidateQueries({
6308
+ queryKey: COMMUNITY_REQUESTS_QUERY_KEY(communityId)
6309
+ });
6310
+ }
6311
+ return data;
6312
+ };
6313
+ var useAcceptCommunityRequest = (options = {}) => {
6314
+ return useConnectedMutation_default(AcceptCommunityRequest, options);
6315
+ };
6316
+
6317
+ // src/mutations/communities/useCreateCommunity.ts
6318
+ var CreateCommunity = async ({
6319
+ community,
6320
+ imageDataUri,
6321
+ clientApiParams,
6322
+ queryClient
6323
+ }) => {
6324
+ const clientApi = await GetClientAPI(clientApiParams);
6325
+ const { data } = await clientApi.post(
6326
+ `/communities`,
6327
+ {
6328
+ community,
6329
+ imageDataUri
6330
+ }
6331
+ );
6332
+ if (queryClient && data.status === "ok") {
6333
+ SET_COMMUNITY_QUERY_DATA(queryClient, [data.data.id], data);
6334
+ queryClient.invalidateQueries({
6335
+ queryKey: COMMUNITIES_QUERY_KEY()
6336
+ });
6337
+ }
6338
+ return data;
6339
+ };
6340
+ var useCreateCommunity = (options = {}) => {
6341
+ return useConnectedMutation_default(CreateCommunity, options);
6342
+ };
6343
+
6344
+ // src/mutations/communities/useCreateCommunityInvitations.ts
6345
+ var CreateCommunityInvitations = async ({
6346
+ communityId,
6347
+ accountIds,
6348
+ clientApiParams,
6349
+ queryClient
6350
+ }) => {
6351
+ const clientApi = await GetClientAPI(clientApiParams);
6352
+ const { data } = await clientApi.post(
6353
+ `/communities/${communityId}/invites`,
6354
+ {
6355
+ accountIds
6356
+ }
6357
+ );
6358
+ if (queryClient && data.message === "ok") {
6359
+ queryClient.invalidateQueries({
6360
+ queryKey: COMMUNITY_INVITABLE_ACCOUNTS_QUERY_KEY(communityId)
6361
+ });
6362
+ }
6363
+ return data;
6364
+ };
6365
+ var useCreateCommunityInvitations = (options = {}) => {
6366
+ return useConnectedMutation_default(CreateCommunityInvitations, options);
6367
+ };
6368
+
6369
+ // src/mutations/communities/useCreateCommunityRequest.ts
6370
+ var CreateCommunityRequest = async ({
6371
+ communityId,
6372
+ clientApiParams
6373
+ }) => {
6374
+ const clientApi = await GetClientAPI(clientApiParams);
6375
+ const { data } = await clientApi.post(
6376
+ `/communities/${communityId}/requests`
6377
+ );
6378
+ return data;
6379
+ };
6380
+ var useCreateCommunityRequest = (options = {}) => {
6381
+ return useConnectedMutation_default(CreateCommunityRequest, options);
6382
+ };
6383
+
6384
+ // src/mutations/communities/useDeactivateCommunity.ts
6385
+ var DeactivateCommunity = async ({
6386
+ communityId,
6387
+ community,
6388
+ imageDataUri,
6389
+ clientApiParams,
6390
+ queryClient
6391
+ }) => {
6392
+ const clientApi = await GetClientAPI(clientApiParams);
6393
+ const { data } = await clientApi.post(
6394
+ `/communities/${communityId}`,
6395
+ {
6396
+ community,
6397
+ imageDataUri
6398
+ }
6399
+ );
6400
+ if (queryClient && data.status === "ok") {
6401
+ queryClient.invalidateQueries({
6402
+ queryKey: COMMUNITIES_QUERY_KEY()
6403
+ });
6404
+ }
6405
+ return data;
6406
+ };
6407
+ var useDeactivateCommunity = (options = {}) => {
6408
+ return useConnectedMutation_default(DeactivateCommunity, options);
6409
+ };
6410
+
6411
+ // src/mutations/communities/useDeleteCommunityInvitation.ts
6412
+ var DeleteCommunityInvitation = async ({
6413
+ communityId,
6414
+ requestId,
6415
+ clientApiParams,
6416
+ queryClient
6417
+ }) => {
6418
+ const clientApi = await GetClientAPI(clientApiParams);
6419
+ const { data } = await clientApi.delete(
6420
+ `/communities/${communityId}/invites/${requestId}`
6421
+ );
6422
+ if (queryClient && data.status === "ok") {
6423
+ queryClient.invalidateQueries({
6424
+ queryKey: COMMUNITY_REQUESTS_QUERY_KEY(communityId)
6425
+ });
6426
+ }
6427
+ return data;
6428
+ };
6429
+ var useDeleteCommunityInvitation = (options = {}) => {
6430
+ return useConnectedMutation_default(DeleteCommunityInvitation, options);
6431
+ };
6432
+
6433
+ // src/mutations/communities/useJoinCommunity.ts
6434
+ var JoinCommunity = async ({
6435
+ communityId,
6436
+ clientApiParams,
6437
+ queryClient
6438
+ }) => {
6439
+ const clientApi = await GetClientAPI(clientApiParams);
6440
+ const { data } = await clientApi.post(`/communities/${communityId}/join`);
6441
+ if (queryClient && data.status === "ok") {
6442
+ queryClient.invalidateQueries({
6443
+ queryKey: COMMUNITY_QUERY_KEY(communityId)
6444
+ });
6445
+ queryClient.invalidateQueries({
6446
+ queryKey: COMMUNITIES_QUERY_KEY()
6447
+ });
6448
+ queryClient.invalidateQueries({
6449
+ queryKey: SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY()
6450
+ });
6451
+ queryClient.invalidateQueries({
6452
+ queryKey: SELF_COMMUNITY_MEMBERSHIP_QUERY_KEY(communityId)
6453
+ });
6454
+ }
6455
+ return data;
6456
+ };
6457
+ var useJoinCommunity = (options = {}) => {
6458
+ return useConnectedMutation_default(JoinCommunity, options);
6459
+ };
6460
+
6461
+ // src/mutations/communities/useLeaveCommunity.ts
6462
+ var LeaveCommunity = async ({
6463
+ communityId,
6464
+ clientApiParams,
6465
+ queryClient
6466
+ }) => {
6467
+ const clientApi = await GetClientAPI(clientApiParams);
6468
+ const { data } = await clientApi.post(
6469
+ `/communities/${communityId}/leave`
6470
+ );
6471
+ if (queryClient && data.status === "ok") {
6472
+ queryClient.invalidateQueries({
6473
+ queryKey: COMMUNITY_QUERY_KEY(communityId)
6474
+ });
6475
+ queryClient.invalidateQueries({
6476
+ queryKey: COMMUNITIES_QUERY_KEY()
6477
+ });
6478
+ queryClient.invalidateQueries({
6479
+ queryKey: SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY()
6480
+ });
6481
+ queryClient.invalidateQueries({
6482
+ queryKey: SELF_COMMUNITY_MEMBERSHIP_QUERY_KEY(communityId)
6483
+ });
6484
+ }
6485
+ return data;
6486
+ };
6487
+ var useLeaveCommunity = (options = {}) => {
6488
+ return useConnectedMutation_default(LeaveCommunity, options);
6489
+ };
6490
+
6491
+ // src/mutations/communities/useRejectCommunityRequest.ts
6492
+ var RejectCommunityRequest = async ({
6493
+ communityId,
6494
+ requestId,
6495
+ clientApiParams,
6496
+ queryClient
6497
+ }) => {
6498
+ const clientApi = await GetClientAPI(clientApiParams);
6499
+ const { data } = await clientApi.delete(`/communities/${communityId}/requests/${requestId}`);
6500
+ if (queryClient && data.status === "ok") {
6501
+ SET_COMMUNITY_REQUEST_QUERY_DATA(
6502
+ queryClient,
6503
+ [communityId, data.data.id],
6504
+ data
6505
+ );
6506
+ queryClient.invalidateQueries({
6507
+ queryKey: COMMUNITY_REQUESTS_QUERY_KEY(communityId)
6508
+ });
6509
+ }
6510
+ return data;
6511
+ };
6512
+ var useRejectCommunityRequest = (options = {}) => {
6513
+ return useConnectedMutation_default(RejectCommunityRequest, options);
6514
+ };
6515
+
6516
+ // src/mutations/communities/useRemoveCommunityMember.ts
6517
+ var RemoveCommunityMember = async ({
6518
+ communityId,
6519
+ accountId,
6520
+ clientApiParams,
6521
+ queryClient
6522
+ }) => {
6523
+ const clientApi = await GetClientAPI(clientApiParams);
6524
+ const { data } = await clientApi.delete(
6525
+ `/communities/${communityId}/members/${accountId}`
6526
+ );
6527
+ if (queryClient && data.status === "ok") {
6528
+ queryClient.invalidateQueries({
6529
+ queryKey: COMMUNITY_MEMBERS_QUERY_KEY(communityId)
6530
+ });
6531
+ }
6532
+ return data;
6533
+ };
6534
+ var useRemoveCommunityMember = (options = {}) => {
6535
+ return useConnectedMutation_default(RemoveCommunityMember, options);
6536
+ };
6537
+
6538
+ // src/mutations/communities/useUpdateCommunity.ts
6539
+ var UpdateCommunity = async ({
6540
+ communityId,
6541
+ community,
6542
+ imageDataUri,
6543
+ clientApiParams,
6544
+ queryClient
6545
+ }) => {
6546
+ const clientApi = await GetClientAPI(clientApiParams);
6547
+ const { data } = await clientApi.put(
6548
+ `/communities/${communityId}`,
6549
+ {
6550
+ community,
6551
+ imageDataUri
6552
+ }
6553
+ );
6554
+ if (queryClient && data.status === "ok") {
6555
+ SET_COMMUNITY_QUERY_DATA(queryClient, [data.data.id], data);
6556
+ queryClient.invalidateQueries({
6557
+ queryKey: COMMUNITIES_QUERY_KEY()
6558
+ });
6559
+ }
6560
+ return data;
6561
+ };
6562
+ var useUpdateCommunity = (options = {}) => {
6563
+ return useConnectedMutation_default(UpdateCommunity, options);
6564
+ };
6565
+
6566
+ // src/mutations/communities/useDemoteCommunityModerator.ts
6567
+ var DemoteCommunityModerator = async ({
6568
+ communityId,
6569
+ accountId,
6570
+ clientApiParams,
6571
+ queryClient
6572
+ }) => {
6573
+ const clientApi = await GetClientAPI(clientApiParams);
6574
+ const { data } = await clientApi.post(`/communities/${communityId}/members/${accountId}/demote`);
6575
+ if (queryClient && data.status === "ok") {
6576
+ queryClient.invalidateQueries({
6577
+ queryKey: COMMUNITY_MEMBERS_QUERY_KEY(communityId)
6578
+ });
6579
+ }
6580
+ return data;
6581
+ };
6582
+ var useDemoteCommunityModerator = (options = {}) => {
6583
+ return useConnectedMutation_default(DemoteCommunityModerator, options);
6584
+ };
6585
+
6586
+ // src/mutations/communities/usePromoteCommunityMember.ts
6587
+ var PromoteCommunityMember = async ({
6588
+ communityId,
6589
+ accountId,
6590
+ clientApiParams,
6591
+ queryClient
6592
+ }) => {
6593
+ const clientApi = await GetClientAPI(clientApiParams);
6594
+ const { data } = await clientApi.post(`/communities/${communityId}/members/${accountId}/promote`);
6595
+ if (queryClient && data.status === "ok") {
6596
+ queryClient.invalidateQueries({
6597
+ queryKey: COMMUNITY_MEMBERS_QUERY_KEY(communityId)
6598
+ });
6599
+ }
6600
+ return data;
6601
+ };
6602
+ var usePromoteCommunityMember = (options = {}) => {
6603
+ return useConnectedMutation_default(PromoteCommunityMember, options);
6604
+ };
6605
+
6606
+ // src/mutations/communities/useCreateCommunityAnnouncement.ts
6607
+ var CreateCommunityAnnouncement = async ({
6608
+ communityId,
6609
+ title,
6610
+ html,
6611
+ email,
6612
+ push,
6613
+ clientApiParams,
6614
+ queryClient
6615
+ }) => {
6616
+ const clientApi = await GetClientAPI(clientApiParams);
6617
+ const { data } = await clientApi.post(
6618
+ `/communities/${communityId}/announcements`,
6619
+ {
6620
+ title,
6621
+ html,
6622
+ email,
6623
+ push
6624
+ }
6625
+ );
6626
+ if (queryClient && data.status === "ok") {
6627
+ queryClient.invalidateQueries({
6628
+ queryKey: COMMUNITY_ANNOUNCEMENTS_QUERY_KEY(communityId)
6629
+ });
6630
+ }
6631
+ return data;
6632
+ };
6633
+ var useCreateCommunityAnnouncement = (options = {}) => {
6634
+ return useConnectedMutation_default(CreateCommunityAnnouncement, options);
6635
+ };
6636
+
6637
+ // src/mutations/communities/useRejectCommunityInvitation.ts
6638
+ var RejectCommunityInvitation = async ({
6639
+ communityId,
6640
+ requestId,
6641
+ clientApiParams,
6642
+ queryClient
6643
+ }) => {
6644
+ const clientApi = await GetClientAPI(clientApiParams);
6645
+ const { data } = await clientApi.put(
6646
+ `/communities/${communityId}/invites/${requestId}`
6647
+ );
6648
+ if (queryClient && data.status === "ok") {
6649
+ SET_COMMUNITY_REQUEST_QUERY_DATA(
6650
+ queryClient,
6651
+ [communityId, data.data.id],
6652
+ data
6653
+ );
6654
+ queryClient.invalidateQueries({
6655
+ queryKey: SELF_NOTIFICATIONS_QUERY_KEY("")
6656
+ });
6657
+ queryClient.invalidateQueries({
6658
+ queryKey: SELF_NOTIFICATION_COUNT_QUERY_KEY("")
6659
+ });
6660
+ }
6661
+ return data;
6662
+ };
6663
+ var useRejectCommunityInvitation = (options = {}) => {
6664
+ return useConnectedMutation_default(RejectCommunityInvitation, options);
6665
+ };
6666
+
6667
+ // src/mutations/listings/useCreateListingSession.ts
6668
+ var CreateListingSession = async ({
6669
+ eventId,
6670
+ session,
6671
+ imageDataUri,
6672
+ clientApiParams,
6673
+ queryClient
6674
+ }) => {
6675
+ const clientApi = await GetClientAPI(clientApiParams);
6676
+ const { data } = await clientApi.post(
6677
+ `/listings/${eventId}/sessions`,
6678
+ {
6679
+ session,
6680
+ imageDataUri
6681
+ }
6682
+ );
6683
+ if (queryClient && data.status === "ok") {
6684
+ queryClient.invalidateQueries({
6685
+ queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
6686
+ });
6687
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
6688
+ }
6689
+ return data;
6690
+ };
6691
+ var useCreateListingSession = (options = {}) => {
6692
+ return useConnectedMutation_default(CreateListingSession, options);
6693
+ };
6694
+
6695
+ // src/mutations/listings/useCreateListingSpeaker.ts
6696
+ var CreateListingSpeaker = async ({
6697
+ eventId,
6698
+ speaker,
6699
+ imageDataUri,
6700
+ clientApiParams,
6701
+ queryClient
6702
+ }) => {
6703
+ const clientApi = await GetClientAPI(clientApiParams);
6704
+ const { data } = await clientApi.post(
6705
+ `/listings/${eventId}/speakers`,
6706
+ {
6707
+ speaker,
6708
+ imageDataUri
6709
+ }
6710
+ );
6711
+ if (queryClient && data.status === "ok") {
6712
+ queryClient.invalidateQueries({
6713
+ queryKey: EVENT_SPEAKERS_QUERY_KEY(eventId)
6714
+ });
6715
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
6716
+ }
6717
+ return data;
6718
+ };
6719
+ var useCreateListingSpeaker = (options = {}) => {
6720
+ return useConnectedMutation_default(CreateListingSpeaker, options);
6721
+ };
6722
+
6723
+ // src/mutations/listings/useAddListingSponsor.ts
6724
+ var AddListingSponsor = async ({
6725
+ eventId,
6726
+ sponsor,
6727
+ clientApiParams,
6728
+ queryClient
6729
+ }) => {
6730
+ const clientApi = await GetClientAPI(clientApiParams);
6731
+ const { data } = await clientApi.post(
6732
+ `/listings/${eventId}/sponsors`,
6733
+ {
6734
+ sponsorId: sponsor.id
6735
+ }
6736
+ );
6737
+ if (queryClient && data.status === "ok") {
6738
+ queryClient.invalidateQueries({
6739
+ queryKey: EVENT_SPONSORS_QUERY_KEY(eventId)
6740
+ });
6741
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
6742
+ }
6743
+ return data;
6744
+ };
6745
+ var useAddListingSponsor = (options = {}) => {
6746
+ return useConnectedMutation_default(AddListingSponsor, options);
6747
+ };
6748
+
6749
+ // src/mutations/listings/useCreateListing.ts
6750
+ var CreateListing = async ({
6751
+ event,
6752
+ imageDataUri,
6753
+ communityId,
6754
+ sponsorIds,
6755
+ speakers,
6756
+ sessions,
6757
+ clientApiParams,
6758
+ queryClient
6759
+ }) => {
6760
+ const clientApi = await GetClientAPI(clientApiParams);
6761
+ const { data } = await clientApi.post(
6762
+ `/listings`,
6763
+ {
6764
+ event,
6765
+ image: imageDataUri ? imageDataUri : void 0,
6766
+ communityId: communityId || void 0,
6767
+ sponsorIds: sponsorIds || void 0,
6768
+ speakers,
6769
+ sessions
6770
+ }
6771
+ );
6772
+ if (queryClient && data.status === "ok") {
6773
+ queryClient.invalidateQueries({
6774
+ queryKey: LISTINGS_QUERY_KEY(false)
6775
+ });
6776
+ queryClient.invalidateQueries({
6777
+ queryKey: LISTINGS_QUERY_KEY(true)
6778
+ });
6779
+ if (communityId) {
6780
+ queryClient.invalidateQueries({
6781
+ queryKey: COMMUNITY_EVENTS_QUERY_KEY(communityId)
6782
+ });
6783
+ }
6784
+ queryClient.setQueryData(
6785
+ [...EVENT_QUERY_KEY(data.data.id), clientApiParams.locale],
6786
+ data
6787
+ );
6788
+ }
6789
+ return data;
6790
+ };
6791
+ var useCreateListing = (options = {}) => {
6792
+ return useConnectedMutation_default(CreateListing, options);
6793
+ };
6794
+
6795
+ // src/mutations/listings/useDeleteListingSession.ts
6796
+ var DeleteListingSession = async ({
6797
+ eventId,
6798
+ sessionId,
6799
+ clientApiParams,
6800
+ queryClient
6801
+ }) => {
6802
+ const clientApi = await GetClientAPI(clientApiParams);
6803
+ const { data } = await clientApi.delete(
6804
+ `/listings/${eventId}/sessions/${sessionId}`
6805
+ );
6806
+ if (queryClient && data.status === "ok") {
6807
+ queryClient.invalidateQueries({
6808
+ queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
6809
+ });
6810
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
6811
+ }
6812
+ return data;
6813
+ };
6814
+ var useDeleteListingSession = (options = {}) => {
6815
+ return useConnectedMutation_default(DeleteListingSession, options);
6816
+ };
6817
+
6818
+ // src/mutations/listings/useDeleteListingSpeaker.ts
6819
+ var DeleteListingSpeaker = async ({
6820
+ eventId,
6821
+ speakerId,
6822
+ clientApiParams,
6823
+ queryClient
6824
+ }) => {
6825
+ const clientApi = await GetClientAPI(clientApiParams);
6826
+ const { data } = await clientApi.delete(
6827
+ `/listings/${eventId}/speakers/${speakerId}`
6828
+ );
6829
+ if (queryClient && data.status === "ok") {
6830
+ queryClient.invalidateQueries({
6831
+ queryKey: EVENT_SPEAKERS_QUERY_KEY(eventId)
6832
+ });
6833
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
6834
+ }
6835
+ return data;
6836
+ };
6837
+ var useDeleteListingSpeaker = (options = {}) => {
6838
+ return useConnectedMutation_default(DeleteListingSpeaker, options);
6839
+ };
6840
+
6841
+ // src/mutations/listings/useRemoveListingSponsor.ts
6842
+ var RemoveListingSponsor = async ({
6843
+ eventId,
6844
+ sponsorId,
6845
+ clientApiParams,
6846
+ queryClient
6847
+ }) => {
6848
+ const clientApi = await GetClientAPI(clientApiParams);
6849
+ const { data } = await clientApi.delete(
6850
+ `/listings/${eventId}/sponsors/${sponsorId}`
6851
+ );
6852
+ if (queryClient && data.status === "ok") {
6853
+ queryClient.invalidateQueries({
6854
+ queryKey: EVENT_SPONSORS_QUERY_KEY(eventId)
6855
+ });
6856
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
6857
+ }
6858
+ return data;
6859
+ };
6860
+ var useRemoveListingSponsor = (options = {}) => {
6861
+ return useConnectedMutation_default(RemoveListingSponsor, options);
6862
+ };
6863
+
6864
+ // src/mutations/listings/useCheckinListingRegistration.ts
6865
+ var CheckinListingRegistration = async ({
6866
+ eventId,
6867
+ registrationId,
6868
+ clientApiParams,
6869
+ queryClient
6870
+ }) => {
6871
+ const clientApi = await GetClientAPI(clientApiParams);
6872
+ const { data } = await clientApi.post(
6873
+ `/listings/${eventId}/registrations/${registrationId}`
6874
+ );
6875
+ if (queryClient && data.status === "ok") {
6876
+ queryClient.invalidateQueries({
6877
+ queryKey: LISTING_REGISTRATIONS_QUERY_KEY(eventId)
6878
+ });
6879
+ }
6880
+ return data;
6881
+ };
6882
+ var useCheckinListingRegistration = (options = {}) => {
6883
+ return useConnectedMutation_default(CheckinListingRegistration, options);
6884
+ };
6885
+
6886
+ // src/mutations/listings/useUpdateListing.ts
6887
+ var UpdateListing = async ({
6888
+ eventId,
6889
+ event,
6890
+ base64,
6891
+ clientApiParams,
6892
+ queryClient
6893
+ }) => {
6894
+ const clientApi = await GetClientAPI(clientApiParams);
6895
+ const { data } = await clientApi.put(
6896
+ `/listings/${eventId}`,
6897
+ {
6898
+ event,
6899
+ image: base64 ?? void 0
6900
+ }
6901
+ );
6902
+ if (queryClient && data.status === "ok") {
6903
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data, [
6904
+ clientApiParams.locale
6905
+ ]);
6906
+ queryClient.invalidateQueries({ queryKey: EVENTS_QUERY_KEY() });
6907
+ queryClient.invalidateQueries({ queryKey: EVENT_QUERY_KEY(eventId) });
6908
+ }
6909
+ return data;
6910
+ };
6911
+ var useUpdateListing = (options = {}) => {
6912
+ return useConnectedMutation_default(UpdateListing, options);
6913
+ };
6914
+
6915
+ // src/mutations/listings/useUpdateListingSession.ts
6916
+ var UpdateListingSession = async ({
6917
+ eventId,
6918
+ session,
6919
+ sessionId,
6920
+ imageDataUri,
6921
+ clientApiParams,
6922
+ queryClient
6923
+ }) => {
6924
+ const clientApi = await GetClientAPI(clientApiParams);
6925
+ const { data } = await clientApi.put(
6926
+ `/listings/${eventId}/sessions/${sessionId}`,
6927
+ {
6928
+ session,
6929
+ imageDataUri
6930
+ }
6931
+ );
6932
+ if (queryClient && data.status === "ok") {
6933
+ queryClient.invalidateQueries({
6934
+ queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
6935
+ });
6936
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
6937
+ }
6938
+ return data;
6939
+ };
6940
+ var useUpdateListingSession = (options = {}) => {
6941
+ return useConnectedMutation_default(UpdateListingSession, options);
6942
+ };
6943
+
6944
+ // src/mutations/listings/useUpdateListingSpeaker.ts
6945
+ var UpdateListingSpeaker = async ({
6946
+ eventId,
6947
+ speaker,
6948
+ speakerId,
6949
+ imageDataUri,
6950
+ clientApiParams,
6951
+ queryClient
6952
+ }) => {
6953
+ const clientApi = await GetClientAPI(clientApiParams);
6954
+ const { data } = await clientApi.put(
6955
+ `/listings/${eventId}/speakers/${speakerId}`,
6956
+ {
6957
+ speaker,
6958
+ imageDataUri
6959
+ }
6960
+ );
6961
+ if (queryClient && data.status === "ok") {
6962
+ queryClient.invalidateQueries({
6963
+ queryKey: EVENT_SPEAKERS_QUERY_KEY(eventId)
6964
+ });
6965
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
6966
+ }
6967
+ return data;
6968
+ };
6969
+ var useUpdateListingSpeaker = (options = {}) => {
6970
+ return useConnectedMutation_default(UpdateListingSpeaker, options);
6971
+ };
6646
6972
  export {
6647
6973
  ACCOUNTS_QUERY_KEY,
6648
6974
  ACCOUNT_ACTIVITIES_QUERY_KEY,
@@ -6655,14 +6981,13 @@ export {
6655
6981
  ACTIVITY_COMMENTS_QUERY_KEY,
6656
6982
  ACTIVITY_QUERY_KEY,
6657
6983
  ADVERTISEMENT_QUERY_KEY,
6984
+ AcceptCommunityInvitation,
6985
+ AcceptCommunityRequest,
6658
6986
  AcceptTransfer,
6659
6987
  AccountType,
6660
- AddCommunityEvent,
6988
+ AddListingSponsor,
6661
6989
  AddSelfChatChannelMember,
6662
6990
  AddSelfDelegate,
6663
- AddSelfEventListingSession,
6664
- AddSelfEventListingSpeaker,
6665
- AddSelfEventListingSponsor,
6666
6991
  AddSelfEventRegistrationPurchase,
6667
6992
  AddSelfEventRegistrationPurchaseAddOn,
6668
6993
  AddSelfEventSession,
@@ -6673,10 +6998,12 @@ export {
6673
6998
  COMMUNITY_ACTIVITIES_QUERY_KEY,
6674
6999
  COMMUNITY_ANNOUNCEMENTS_QUERY_KEY,
6675
7000
  COMMUNITY_EVENTS_QUERY_KEY,
7001
+ COMMUNITY_INVITABLE_ACCOUNTS_QUERY_KEY,
6676
7002
  COMMUNITY_MEDIA_QUERY_KEY,
6677
7003
  COMMUNITY_MEMBERS_QUERY_KEY,
6678
- COMMUNITY_MODERATORS_QUERY_KEY,
6679
7004
  COMMUNITY_QUERY_KEY,
7005
+ COMMUNITY_REQUESTS_QUERY_KEY,
7006
+ COMMUNITY_REQUEST_QUERY_KEY,
6680
7007
  COMMUNITY_SPONSORS_QUERY_KEY,
6681
7008
  CONTENTS_QUERY_KEY,
6682
7009
  CONTENT_ACTIVITIES_QUERY_KEY,
@@ -6690,27 +7017,39 @@ export {
6690
7017
  CancelTransfer,
6691
7018
  CaptureInvoicePayment,
6692
7019
  CaptureSelfEventRegistrationPayment,
7020
+ CheckinListingRegistration,
6693
7021
  CommunityAccess,
6694
7022
  CommunityMembershipRole,
7023
+ CommunityRequestStatus,
6695
7024
  CompleteEventActivation,
6696
7025
  ConnectedXMProvider,
6697
7026
  ContentTypeFormat,
6698
7027
  CouponType,
7028
+ CreateCommunity,
6699
7029
  CreateCommunityAnnouncement,
7030
+ CreateCommunityInvitations,
7031
+ CreateCommunityRequest,
6700
7032
  CreateEventLead,
7033
+ CreateListing,
7034
+ CreateListingSession,
7035
+ CreateListingSpeaker,
6701
7036
  CreateSelfChatChannel,
6702
7037
  CreateSelfChatChannelMessage,
6703
- CreateSelfEventListing,
6704
7038
  CreateSubscription,
6705
7039
  CreateSupportTicket,
6706
7040
  CreateTeamAccount,
6707
7041
  Currency,
7042
+ DeactivateCommunity,
6708
7043
  DeleteActivity,
7044
+ DeleteCommunityInvitation,
7045
+ DeleteListingSession,
7046
+ DeleteListingSpeaker,
6709
7047
  DeleteReshare,
6710
7048
  DeleteSelf,
6711
7049
  DeleteSelfChatChannel,
6712
7050
  DeleteSelfChatChannelMessage,
6713
7051
  DeleteSelfPushDevice,
7052
+ DemoteCommunityModerator,
6714
7053
  EVENTS_FEATURED_QUERY_KEY,
6715
7054
  EVENTS_QUERY_KEY,
6716
7055
  EVENT_ACTIVITIES_QUERY_KEY,
@@ -6752,9 +7091,11 @@ export {
6752
7091
  GetCommunityActivities,
6753
7092
  GetCommunityAnnouncements,
6754
7093
  GetCommunityEvents,
7094
+ GetCommunityInvitableAccounts,
6755
7095
  GetCommunityMedia,
6756
7096
  GetCommunityMembers,
6757
- GetCommunityModerators,
7097
+ GetCommunityRequest,
7098
+ GetCommunityRequests,
6758
7099
  GetCommunitySponsors,
6759
7100
  GetContent,
6760
7101
  GetContentActivities,
@@ -6810,6 +7151,7 @@ export {
6810
7151
  GetSelfEventRegistrationPurchaseAddOns,
6811
7152
  GetSelfEventRegistrationPurchaseReservationSections,
6812
7153
  GetSelfEventRegistrationPurchaseSections,
7154
+ GetSelfEventRegistrationStatus,
6813
7155
  GetSelfEventSessions,
6814
7156
  GetSelfEvents,
6815
7157
  GetSelfFeed,
@@ -6833,9 +7175,14 @@ export {
6833
7175
  INVOICE_QUERY_KEY,
6834
7176
  ImageType,
6835
7177
  InvoiceStatus,
7178
+ JoinCommunity,
6836
7179
  LEVELS_QUERY_KEY,
6837
7180
  LEVEL_QUERY_KEY,
6838
7181
  LEVEL_SPONSORS_QUERY_KEY,
7182
+ LISTINGS_QUERY_KEY,
7183
+ LISTING_QUERY_KEY,
7184
+ LISTING_REGISTRATIONS_QUERY_KEY,
7185
+ LeaveCommunity,
6839
7186
  LeaveSelfChatChannel,
6840
7187
  LikeActivity,
6841
7188
  MergeInfinitePages,
@@ -6845,17 +7192,18 @@ export {
6845
7192
  ORGANIZATION_PAYMENT_INTEGRATION_QUERY_KEY,
6846
7193
  ORGANIZATION_QUERY_KEY,
6847
7194
  ORGANIZATION_SUBSCRIPTIONS_QUERY_KEY,
7195
+ PromoteCommunityMember,
6848
7196
  PushDeviceAppType,
6849
7197
  PushService,
6850
7198
  RegisterCancelledEventRegistration,
6851
7199
  RegistrationQuestionType,
6852
7200
  RegistrationStatus,
7201
+ RejectCommunityInvitation,
7202
+ RejectCommunityRequest,
6853
7203
  RejectTransfer,
6854
- RemoveCommunityEvent,
7204
+ RemoveCommunityMember,
7205
+ RemoveListingSponsor,
6855
7206
  RemoveSelfDelegate,
6856
- RemoveSelfEventListingSession,
6857
- RemoveSelfEventListingSpeaker,
6858
- RemoveSelfEventListingSponsor,
6859
7207
  RemoveSelfEventRegistrationCoupon,
6860
7208
  RemoveSelfEventRegistrationPurchase,
6861
7209
  RemoveSelfEventRegistrationPurchaseAddOn,
@@ -6872,15 +7220,13 @@ export {
6872
7220
  SELF_DELEGATES_QUERY_KEY,
6873
7221
  SELF_DELEGATE_OF_QUERY_KEY,
6874
7222
  SELF_EVENTS_QUERY_KEY,
6875
- SELF_EVENT_LISTINGS_QUERY_KEY,
6876
- SELF_EVENT_LISTING_QUERY_KEY,
6877
- SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY,
6878
7223
  SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY,
6879
7224
  SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_KEY,
6880
7225
  SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY,
6881
7226
  SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_KEY,
6882
7227
  SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY,
6883
7228
  SELF_EVENT_REGISTRATION_QUERY_KEY,
7229
+ SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY,
6884
7230
  SELF_EVENT_SESSIONS_QUERY_KEY,
6885
7231
  SELF_FEED_QUERY_KEY,
6886
7232
  SELF_INTERESTS_QUERY_KEY,
@@ -6917,8 +7263,9 @@ export {
6917
7263
  SET_COMMUNITY_EVENTS_QUERY_DATA,
6918
7264
  SET_COMMUNITY_MEDIA_QUERY_DATA,
6919
7265
  SET_COMMUNITY_MEMBERS_QUERY_DATA,
6920
- SET_COMMUNITY_MODERATORS_QUERY_DATA,
6921
7266
  SET_COMMUNITY_QUERY_DATA,
7267
+ SET_COMMUNITY_REQUESTS_QUERY_DATA,
7268
+ SET_COMMUNITY_REQUEST_QUERY_DATA,
6922
7269
  SET_COMMUNITY_SPONSORS_QUERY_DATA,
6923
7270
  SET_CONTENTS_QUERY_DATA,
6924
7271
  SET_CONTENT_ACTIVITIES_QUERY_DATA,
@@ -6947,6 +7294,7 @@ export {
6947
7294
  SET_LEVELS_QUERY_DATA,
6948
7295
  SET_LEVEL_QUERY_DATA,
6949
7296
  SET_LEVEL_SPONSORS_QUERY_DATA,
7297
+ SET_LISTING_QUERY_DATA,
6950
7298
  SET_ORGANIZATION_PAGE_QUERY_DATA,
6951
7299
  SET_PUSH_DEVICE_QUERY_DATA,
6952
7300
  SET_SELF_CHAT_CHANNELS_QUERY_DATA,
@@ -6954,12 +7302,12 @@ export {
6954
7302
  SET_SELF_CHAT_CHANNEL_MESSAGES_QUERY_DATA,
6955
7303
  SET_SELF_CHAT_CHANNEL_QUERY_DATA,
6956
7304
  SET_SELF_COMMUNITY_MEMBERSHIP_QUERY_DATA,
6957
- SET_SELF_EVENT_LISTING_QUERY_DATA,
6958
7305
  SET_SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_DATA,
6959
7306
  SET_SELF_EVENT_REGISTRATION_PURCHASE_QUERY_DATA,
6960
7307
  SET_SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_DATA,
6961
7308
  SET_SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_DATA,
6962
7309
  SET_SELF_EVENT_REGISTRATION_QUERY_DATA,
7310
+ SET_SELF_EVENT_REGISTRATION_STATUS_QUERY_DATA,
6963
7311
  SET_SELF_QUERY_DATA,
6964
7312
  SET_SERIES_EVENTS_QUERY_DATA,
6965
7313
  SET_SERIES_LIST_QUERY_DATA,
@@ -6970,10 +7318,7 @@ export {
6970
7318
  SPONSOR_QUERY_KEY,
6971
7319
  SelectSelfEventRegistrationCoupon,
6972
7320
  SelectSelfEventRegistrationPurchaseReservation,
6973
- SelfCheckinRegistration,
6974
7321
  SelfCreateActivity,
6975
- SelfJoinCommunity,
6976
- SelfLeaveCommunity,
6977
7322
  SelfUpdateCommunityMembership,
6978
7323
  SubmitSelfEventRegistration,
6979
7324
  SubscriptionStatus,
@@ -6984,11 +7329,11 @@ export {
6984
7329
  UnfollowAccount,
6985
7330
  UnlikeActivity,
6986
7331
  UpdateCommunity,
7332
+ UpdateListing,
7333
+ UpdateListingSession,
7334
+ UpdateListingSpeaker,
6987
7335
  UpdateSelf,
6988
7336
  UpdateSelfChatChannelNotifications,
6989
- UpdateSelfEventListing,
6990
- UpdateSelfEventListingSession,
6991
- UpdateSelfEventListingSpeaker,
6992
7337
  UpdateSelfEventRegistrationQuestionResponse,
6993
7338
  UpdateSelfImage,
6994
7339
  UpdateSelfLead,
@@ -7034,13 +7379,12 @@ export {
7034
7379
  isTypeTrack,
7035
7380
  isTypeTransfer,
7036
7381
  setFirstPageData,
7382
+ useAcceptCommunityInvitation,
7383
+ useAcceptCommunityRequest,
7037
7384
  useAcceptTransfer,
7038
- useAddCommunityEvent,
7385
+ useAddListingSponsor,
7039
7386
  useAddSelfChatChannelMember,
7040
7387
  useAddSelfDelegate,
7041
- useAddSelfEventListingSession,
7042
- useAddSelfEventListingSpeaker,
7043
- useAddSelfEventListingSponsor,
7044
7388
  useAddSelfEventRegistrationPurchase,
7045
7389
  useAddSelfEventRegistrationPurchaseAddOn,
7046
7390
  useAddSelfEventSession,
@@ -7049,25 +7393,36 @@ export {
7049
7393
  useCancelTransfer,
7050
7394
  useCaptureInvoicePayment,
7051
7395
  useCaptureSelfEventRegistrationPayment,
7396
+ useCheckinListingRegistration,
7052
7397
  useCompleteEventActivation,
7053
7398
  useConnectedInfiniteQuery,
7054
7399
  useConnectedMutation,
7055
7400
  useConnectedSingleQuery,
7056
7401
  useConnectedXM,
7402
+ useCreateCommunity,
7057
7403
  useCreateCommunityAnnouncement,
7404
+ useCreateCommunityInvitations,
7405
+ useCreateCommunityRequest,
7058
7406
  useCreateEventLead,
7407
+ useCreateListing,
7408
+ useCreateListingSession,
7409
+ useCreateListingSpeaker,
7059
7410
  useCreateSelfChatChannel,
7060
7411
  useCreateSelfChatChannelMessage,
7061
- useCreateSelfEventListing,
7062
7412
  useCreateSubscription,
7063
7413
  useCreateSupportTicket,
7064
7414
  useCreateTeamAccount,
7415
+ useDeactivateCommunity,
7065
7416
  useDeleteActivity,
7417
+ useDeleteCommunityInvitation,
7418
+ useDeleteListingSession,
7419
+ useDeleteListingSpeaker,
7066
7420
  useDeleteReshare,
7067
7421
  useDeleteSelf,
7068
7422
  useDeleteSelfChatChannel,
7069
7423
  useDeleteSelfChatChannelMessage,
7070
7424
  useDeleteSelfPushDevice,
7425
+ useDemoteCommunityModerator,
7071
7426
  useFollowAccount,
7072
7427
  useGetAccount,
7073
7428
  useGetAccountActivities,
@@ -7086,9 +7441,11 @@ export {
7086
7441
  useGetCommunityActivities,
7087
7442
  useGetCommunityAnnouncements,
7088
7443
  useGetCommunityEvents,
7444
+ useGetCommunityInvitableAccounts,
7089
7445
  useGetCommunityMedia,
7090
7446
  useGetCommunityMembers,
7091
- useGetCommunityModerators,
7447
+ useGetCommunityRequest,
7448
+ useGetCommunityRequests,
7092
7449
  useGetCommunitySponsors,
7093
7450
  useGetContent,
7094
7451
  useGetContentActivities,
@@ -7143,6 +7500,7 @@ export {
7143
7500
  useGetSelfEventRegistrationPurchaseAddOns,
7144
7501
  useGetSelfEventRegistrationPurchaseReservationSections,
7145
7502
  useGetSelfEventRegistrationPurchaseSections,
7503
+ useGetSelfEventRegistrationStatus,
7146
7504
  useGetSelfEventSessions,
7147
7505
  useGetSelfEvents,
7148
7506
  useGetSelfFeed,
@@ -7163,15 +7521,18 @@ export {
7163
7521
  useGetSeriesList,
7164
7522
  useGetSponsor,
7165
7523
  useGetSponsors,
7524
+ useJoinCommunity,
7525
+ useLeaveCommunity,
7166
7526
  useLeaveSelfChatChannel,
7167
7527
  useLikeActivity,
7528
+ usePromoteCommunityMember,
7168
7529
  useRegisterCancelledEventRegistration,
7530
+ useRejectCommunityInvitation,
7531
+ useRejectCommunityRequest,
7169
7532
  useRejectTransfer,
7170
- useRemoveCommunityEvent,
7533
+ useRemoveCommunityMember,
7534
+ useRemoveListingSponsor,
7171
7535
  useRemoveSelfDelegate,
7172
- useRemoveSelfEventListingSession,
7173
- useRemoveSelfEventListingSpeaker,
7174
- useRemoveSelfEventListingSponsor,
7175
7536
  useRemoveSelfEventRegistrationCoupon,
7176
7537
  useRemoveSelfEventRegistrationPurchase,
7177
7538
  useRemoveSelfEventRegistrationPurchaseAddOn,
@@ -7179,21 +7540,18 @@ export {
7179
7540
  useReshareActivity,
7180
7541
  useSelectSelfEventRegistrationCoupon,
7181
7542
  useSelectSelfEventRegistrationPurchaseReservation,
7182
- useSelfCheckinRegistration,
7183
7543
  useSelfCreateActivity,
7184
- useSelfJoinCommunity,
7185
- useSelfLeaveCommunity,
7186
7544
  useSelfUpdateCommunityMembership,
7187
7545
  useSubmitSelfEventRegistration,
7188
7546
  useTransferPurchase,
7189
7547
  useUnfollowAccount,
7190
7548
  useUnlikeActivity,
7191
7549
  useUpdateCommunity,
7550
+ useUpdateListing,
7551
+ useUpdateListingSession,
7552
+ useUpdateListingSpeaker,
7192
7553
  useUpdateSelf,
7193
7554
  useUpdateSelfChatChannelNotifications,
7194
- useUpdateSelfEventListing,
7195
- useUpdateSelfEventListingSession,
7196
- useUpdateSelfEventListingSpeaker,
7197
7555
  useUpdateSelfEventRegistrationQuestionResponse,
7198
7556
  useUpdateSelfImage,
7199
7557
  useUpdateSelfLead,