@connectedxm/client 0.3.5 → 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;
@@ -1290,6 +1298,50 @@ var useGetCommunityAnnouncements = (communityId = "", params = {}, options = {})
1290
1298
  );
1291
1299
  };
1292
1300
 
1301
+ // src/queries/communities/useGetCommunityMedia.ts
1302
+ var COMMUNITY_MEDIA_QUERY_KEY = (communityId, type) => [...COMMUNITY_QUERY_KEY(communityId), "MEDIA", type || "all"];
1303
+ var SET_COMMUNITY_MEDIA_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
1304
+ client.setQueryData(
1305
+ [
1306
+ ...COMMUNITY_MEDIA_QUERY_KEY(...keyParams),
1307
+ ...GetBaseInfiniteQueryKeys(...baseKeys)
1308
+ ],
1309
+ setFirstPageData(response)
1310
+ );
1311
+ };
1312
+ var GetCommunityMedia = async ({
1313
+ communityId,
1314
+ type,
1315
+ pageParam,
1316
+ pageSize,
1317
+ orderBy,
1318
+ search,
1319
+ clientApiParams
1320
+ }) => {
1321
+ const clientApi = await GetClientAPI(clientApiParams);
1322
+ const { data } = await clientApi.get(`/communities/${communityId}/media`, {
1323
+ params: {
1324
+ type: type || void 0,
1325
+ page: pageParam || void 0,
1326
+ pageSize: pageSize || void 0,
1327
+ orderBy: orderBy || void 0,
1328
+ search: search || void 0
1329
+ }
1330
+ });
1331
+ return data;
1332
+ };
1333
+ var useGetCommunityMedia = (communityId = "", type, params = {}, options = {}) => {
1334
+ return useConnectedInfiniteQuery(
1335
+ COMMUNITY_MEDIA_QUERY_KEY(communityId, type),
1336
+ (params2) => GetCommunityMedia({ communityId, type, ...params2 }),
1337
+ params,
1338
+ {
1339
+ ...options,
1340
+ enabled: !!communityId && (options?.enabled ?? true)
1341
+ }
1342
+ );
1343
+ };
1344
+
1293
1345
  // src/queries/events/useGetEvents.ts
1294
1346
  var EVENTS_QUERY_KEY = (past) => {
1295
1347
  const keys = ["EVENTS"];
@@ -1435,10 +1487,13 @@ var useGetCommunityEvents = (communityId = "", past = false, params = {}, option
1435
1487
  };
1436
1488
 
1437
1489
  // src/queries/communities/useGetCommunityMembers.ts
1438
- var COMMUNITY_MEMBERS_QUERY_KEY = (communityId) => [
1439
- ...COMMUNITY_QUERY_KEY(communityId),
1440
- "MEMBERS"
1441
- ];
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
+ };
1442
1497
  var SET_COMMUNITY_MEMBERS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
1443
1498
  client.setQueryData(
1444
1499
  [
@@ -1453,6 +1508,7 @@ var GetCommunityMembers = async ({
1453
1508
  pageSize,
1454
1509
  orderBy,
1455
1510
  search,
1511
+ role,
1456
1512
  communityId,
1457
1513
  clientApiParams
1458
1514
  }) => {
@@ -1462,60 +1518,16 @@ var GetCommunityMembers = async ({
1462
1518
  page: pageParam || void 0,
1463
1519
  pageSize: pageSize || void 0,
1464
1520
  orderBy: orderBy || void 0,
1465
- search: search || void 0
1521
+ search: search || void 0,
1522
+ role: role || void 0
1466
1523
  }
1467
1524
  });
1468
1525
  return data;
1469
1526
  };
1470
- var useGetCommunityMembers = (communityId = "", params = {}, options = {}) => {
1471
- return useConnectedInfiniteQuery(
1472
- COMMUNITY_MEMBERS_QUERY_KEY(communityId),
1473
- (params2) => GetCommunityMembers({ communityId, ...params2 }),
1474
- params,
1475
- {
1476
- ...options,
1477
- enabled: !!communityId && (options?.enabled ?? true)
1478
- }
1479
- );
1480
- };
1481
-
1482
- // src/queries/communities/useGetCommunityModerators.ts
1483
- var COMMUNITY_MODERATORS_QUERY_KEY = (communityId) => [...COMMUNITY_QUERY_KEY(communityId), "MODERATORS"];
1484
- var SET_COMMUNITY_MODERATORS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
1485
- client.setQueryData(
1486
- [
1487
- ...COMMUNITY_MODERATORS_QUERY_KEY(...keyParams),
1488
- ...GetBaseInfiniteQueryKeys(...baseKeys)
1489
- ],
1490
- setFirstPageData(response)
1491
- );
1492
- };
1493
- var GetCommunityModerators = async ({
1494
- pageParam,
1495
- pageSize,
1496
- orderBy,
1497
- search,
1498
- communityId,
1499
- clientApiParams
1500
- }) => {
1501
- const clientApi = await GetClientAPI(clientApiParams);
1502
- const { data } = await clientApi.get(
1503
- `/communities/${communityId}/moderators`,
1504
- {
1505
- params: {
1506
- page: pageParam || void 0,
1507
- pageSize: pageSize || void 0,
1508
- orderBy: orderBy || void 0,
1509
- search: search || void 0
1510
- }
1511
- }
1512
- );
1513
- return data;
1514
- };
1515
- var useGetCommunityModerators = (communityId = "", params = {}, options = {}) => {
1527
+ var useGetCommunityMembers = (communityId = "", role, params = {}, options = {}) => {
1516
1528
  return useConnectedInfiniteQuery(
1517
- COMMUNITY_MODERATORS_QUERY_KEY(communityId),
1518
- (params2) => GetCommunityModerators({ communityId, ...params2 }),
1529
+ COMMUNITY_MEMBERS_QUERY_KEY(communityId, role),
1530
+ (params2) => GetCommunityMembers({ communityId, role, ...params2 }),
1519
1531
  params,
1520
1532
  {
1521
1533
  ...options,
@@ -1650,6 +1662,137 @@ var useGetCommunitySponsors = (communityId = "", params = {}, options = {}) => {
1650
1662
  );
1651
1663
  };
1652
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
+
1653
1796
  // src/queries/contents/useGetContents.ts
1654
1797
  var CONTENTS_QUERY_KEY = () => ["CONTENTS"];
1655
1798
  var SET_CONTENTS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
@@ -3290,6 +3433,42 @@ var useGetSelfEventRegistrationPurchaseReservationSections = (eventId, registrat
3290
3433
  );
3291
3434
  };
3292
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
+
3293
3472
  // src/queries/self/subscriptions/useGetSelfSubscriptions.ts
3294
3473
  var SELF_SUBSCRIPTIONS_QUERY_KEY = (status) => {
3295
3474
  const key = [...SELF_QUERY_KEY(), "SUBSCRIPTIONS"];
@@ -3616,13 +3795,13 @@ var useGetSelfDelegates = (params = {}, options = {}) => {
3616
3795
  );
3617
3796
  };
3618
3797
 
3619
- // src/queries/self/useGetSelfEventListings.ts
3620
- var SELF_EVENT_LISTINGS_QUERY_KEY = (past) => [
3798
+ // src/queries/self/useGetSelfEvents.ts
3799
+ var SELF_EVENTS_QUERY_KEY = (past) => [
3621
3800
  ...SELF_QUERY_KEY(),
3622
- "EVENT_LISTINGS",
3801
+ "EVENTS",
3623
3802
  past ? "PAST" : "UPCOMING"
3624
3803
  ];
3625
- var GetSelfEventListings = async ({
3804
+ var GetSelfEvents = async ({
3626
3805
  pageParam,
3627
3806
  pageSize,
3628
3807
  orderBy,
@@ -3633,174 +3812,51 @@ var GetSelfEventListings = async ({
3633
3812
  locale
3634
3813
  }) => {
3635
3814
  const clientApi = await GetClientAPI(clientApiParams);
3636
- const { data } = await clientApi.get(`/self/events/listings`, {
3815
+ const { data } = await clientApi.get(`/self/events`, {
3637
3816
  params: {
3638
3817
  page: pageParam || void 0,
3639
3818
  pageSize: pageSize || void 0,
3640
3819
  orderBy: orderBy || void 0,
3641
3820
  search: search || void 0,
3642
- past: typeof past == "boolean" ? past : void 0
3821
+ past: past || false
3643
3822
  }
3644
3823
  });
3645
3824
  if (queryClient && data.status === "ok") {
3646
3825
  CacheIndividualQueries(
3647
3826
  data,
3648
3827
  queryClient,
3649
- (eventId) => SELF_EVENT_LISTING_QUERY_KEY(eventId),
3828
+ (eventId) => EVENT_QUERY_KEY(eventId),
3650
3829
  locale
3651
3830
  );
3652
3831
  }
3653
3832
  return data;
3654
3833
  };
3655
- var useGetSelfEventListings = (past = false, params = {}, options = {}) => {
3834
+ var useGetSelfEvents = (past = false, params = {}, options = {}) => {
3656
3835
  return useConnectedInfiniteQuery(
3657
- SELF_EVENT_LISTINGS_QUERY_KEY(past),
3658
- (params2) => GetSelfEventListings({ past, ...params2 }),
3836
+ SELF_EVENTS_QUERY_KEY(past),
3837
+ (params2) => GetSelfEvents({ ...params2, past }),
3659
3838
  params,
3660
3839
  {
3661
- ...options,
3662
- enabled: options.enabled ?? true
3840
+ ...options
3663
3841
  }
3664
3842
  );
3665
3843
  };
3666
3844
 
3667
- // src/queries/self/useGetSelfEventListing.ts
3668
- var SELF_EVENT_LISTING_QUERY_KEY = (eventId) => [
3669
- ...SELF_EVENT_LISTINGS_QUERY_KEY(false),
3670
- eventId
3671
- ];
3672
- var SET_SELF_EVENT_LISTING_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
3673
- client.setQueryData(
3674
- [
3675
- ...SELF_EVENT_LISTING_QUERY_KEY(...keyParams),
3676
- ...GetBaseSingleQueryKeys(...baseKeys)
3677
- ],
3678
- response
3679
- );
3680
- };
3681
- var GetSelfEventListing = async ({
3845
+ // src/queries/self/useGetSelfEventSessions.ts
3846
+ var SELF_EVENT_SESSIONS_QUERY_KEY = (eventId) => [
3847
+ ...SELF_EVENTS_QUERY_KEY(false),
3682
3848
  eventId,
3683
- clientApiParams
3684
- }) => {
3685
- const clientApi = await GetClientAPI(clientApiParams);
3686
- const { data } = await clientApi.get(`self/events/listings/${eventId}`);
3687
- return data;
3688
- };
3689
- var useGetSelfEventListing = (eventId, options = {}) => {
3690
- return useConnectedSingleQuery(
3691
- SELF_EVENT_LISTING_QUERY_KEY(eventId),
3692
- (params) => GetSelfEventListing({ eventId, ...params }),
3693
- {
3694
- ...options,
3695
- enabled: !!eventId && (options?.enabled ?? true)
3696
- }
3697
- );
3698
- };
3699
-
3700
- // src/queries/self/useGetSelfEventListingRegistrations.ts
3701
- var SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY = (eventId, status) => [
3702
- ...SELF_EVENT_LISTING_QUERY_KEY(eventId),
3703
- "REGISTRATIONS",
3704
- status ?? "ALL"
3849
+ "SESSIONS"
3705
3850
  ];
3706
- var GetSelfEventListingRegistrations = async ({
3851
+ var GetSelfEventSessions = async ({
3707
3852
  eventId,
3708
3853
  pageParam,
3709
3854
  pageSize,
3710
3855
  orderBy,
3711
3856
  search,
3712
- status,
3713
- clientApiParams
3714
- }) => {
3715
- const clientApi = await GetClientAPI(clientApiParams);
3716
- const { data } = await clientApi.get(
3717
- `/self/events/listings/${eventId}/registrations`,
3718
- {
3719
- params: {
3720
- page: pageParam || void 0,
3721
- pageSize: pageSize || void 0,
3722
- orderBy: orderBy || void 0,
3723
- search: search || void 0,
3724
- status: status || void 0
3725
- }
3726
- }
3727
- );
3728
- return data;
3729
- };
3730
- var useGetSelfEventListingsRegistrations = (eventId, status, params = {}, options = {}) => {
3731
- return useConnectedInfiniteQuery(
3732
- SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId, status),
3733
- (params2) => GetSelfEventListingRegistrations({ eventId, status, ...params2 }),
3734
- params,
3735
- {
3736
- ...options,
3737
- enabled: !!eventId && (options?.enabled ?? true)
3738
- }
3739
- );
3740
- };
3741
-
3742
- // src/queries/self/useGetSelfEvents.ts
3743
- var SELF_EVENTS_QUERY_KEY = (past) => [
3744
- ...SELF_QUERY_KEY(),
3745
- "EVENTS",
3746
- past ? "PAST" : "UPCOMING"
3747
- ];
3748
- var GetSelfEvents = async ({
3749
- pageParam,
3750
- pageSize,
3751
- orderBy,
3752
- search,
3753
- past,
3754
- queryClient,
3755
- clientApiParams,
3756
- locale
3757
- }) => {
3758
- const clientApi = await GetClientAPI(clientApiParams);
3759
- const { data } = await clientApi.get(`/self/events`, {
3760
- params: {
3761
- page: pageParam || void 0,
3762
- pageSize: pageSize || void 0,
3763
- orderBy: orderBy || void 0,
3764
- search: search || void 0,
3765
- past: past || false
3766
- }
3767
- });
3768
- if (queryClient && data.status === "ok") {
3769
- CacheIndividualQueries(
3770
- data,
3771
- queryClient,
3772
- (eventId) => EVENT_QUERY_KEY(eventId),
3773
- locale
3774
- );
3775
- }
3776
- return data;
3777
- };
3778
- var useGetSelfEvents = (past = false, params = {}, options = {}) => {
3779
- return useConnectedInfiniteQuery(
3780
- SELF_EVENTS_QUERY_KEY(past),
3781
- (params2) => GetSelfEvents({ ...params2, past }),
3782
- params,
3783
- {
3784
- ...options
3785
- }
3786
- );
3787
- };
3788
-
3789
- // src/queries/self/useGetSelfEventSessions.ts
3790
- var SELF_EVENT_SESSIONS_QUERY_KEY = (eventId) => [
3791
- ...SELF_EVENTS_QUERY_KEY(false),
3792
- eventId,
3793
- "SESSIONS"
3794
- ];
3795
- var GetSelfEventSessions = async ({
3796
- eventId,
3797
- pageParam,
3798
- pageSize,
3799
- orderBy,
3800
- search,
3801
- queryClient,
3802
- clientApiParams,
3803
- locale
3857
+ queryClient,
3858
+ clientApiParams,
3859
+ locale
3804
3860
  }) => {
3805
3861
  const clientApi = await GetClientAPI(clientApiParams);
3806
3862
  const { data } = await clientApi.get(`/self/events/${eventId}/sessions`, {
@@ -4479,6 +4535,122 @@ var useGetInvoice = (invoiceId = "", options = {}) => {
4479
4535
  );
4480
4536
  };
4481
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
+
4482
4654
  // src/mutations/useConnectedMutation.ts
4483
4655
  import {
4484
4656
  useMutation,
@@ -4742,200 +4914,75 @@ var useUnlikeActivity = (options = {}) => {
4742
4914
  return useConnectedMutation_default(UnlikeActivity, options);
4743
4915
  };
4744
4916
 
4745
- // src/mutations/communityModerator/useAddCommunityEvent.ts
4746
- var AddCommunityEvent = async ({
4747
- communityId,
4917
+ // src/mutations/events/useCompleteEventActivation.ts
4918
+ var CompleteEventActivation = async ({
4748
4919
  eventId,
4920
+ activationId,
4921
+ code,
4749
4922
  clientApiParams,
4750
4923
  queryClient
4751
4924
  }) => {
4752
4925
  const clientApi = await GetClientAPI(clientApiParams);
4753
4926
  const { data } = await clientApi.post(
4754
- `/communityModerator/${communityId}/events/${eventId}`
4927
+ `/events/${eventId}/activations/${activationId}`,
4928
+ {
4929
+ code: code || void 0
4930
+ }
4755
4931
  );
4756
- if (queryClient) {
4757
- queryClient.invalidateQueries({
4758
- queryKey: COMMUNITY_EVENTS_QUERY_KEY(communityId)
4759
- });
4760
- queryClient.invalidateQueries({
4761
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(true)
4762
- });
4763
- queryClient.invalidateQueries({
4764
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(false)
4765
- });
4932
+ if (queryClient && data.status === "ok") {
4766
4933
  }
4767
4934
  return data;
4768
4935
  };
4769
- var useAddCommunityEvent = (options = {}) => {
4770
- return useConnectedMutation_default(AddCommunityEvent, options);
4936
+ var useCompleteEventActivation = (options = {}) => {
4937
+ return useConnectedMutation_default(CompleteEventActivation, options);
4771
4938
  };
4772
4939
 
4773
- // src/mutations/communityModerator/useCreateCommunityAnnouncement.ts
4774
- var CreateCommunityAnnouncement = async ({
4775
- communityId,
4776
- title,
4777
- html,
4778
- email,
4779
- push,
4940
+ // src/mutations/events/useCreateEventLead.ts
4941
+ var CreateEventLead = async ({
4942
+ eventId,
4943
+ purchaseId,
4944
+ note,
4780
4945
  clientApiParams,
4781
4946
  queryClient
4782
4947
  }) => {
4783
4948
  const clientApi = await GetClientAPI(clientApiParams);
4784
4949
  const { data } = await clientApi.post(
4785
- `/communityModerator/${communityId}/announcements`,
4950
+ `/events/${eventId}/leads/${purchaseId}`,
4786
4951
  {
4787
- title,
4788
- html,
4789
- email,
4790
- push
4952
+ note: note || void 0
4791
4953
  }
4792
4954
  );
4793
4955
  if (queryClient && data.status === "ok") {
4794
- AppendInfiniteQuery(
4795
- queryClient,
4796
- [
4797
- ...COMMUNITY_ANNOUNCEMENTS_QUERY_KEY(communityId),
4798
- ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
4799
- ],
4800
- data.data
4801
- );
4802
4956
  }
4803
4957
  return data;
4804
4958
  };
4805
- var useCreateCommunityAnnouncement = (options = {}) => {
4806
- return useConnectedMutation(CreateCommunityAnnouncement, options);
4959
+ var useCreateEventLead = (options = {}) => {
4960
+ return useConnectedMutation(CreateEventLead, options);
4807
4961
  };
4808
4962
 
4809
- // src/mutations/communityModerator/useRemoveCommunityEvent.ts
4810
- var RemoveCommunityEvent = async ({
4811
- communityId,
4812
- eventId,
4963
+ // src/mutations/invoices/useCaptureInvoicePayment.ts
4964
+ var CaptureInvoicePayment = async ({
4965
+ invoiceId,
4966
+ intentId,
4813
4967
  clientApiParams,
4814
4968
  queryClient
4815
4969
  }) => {
4816
4970
  const clientApi = await GetClientAPI(clientApiParams);
4817
- const { data } = await clientApi.delete(
4818
- `/communityModerator/${communityId}/events/${eventId}`
4971
+ const { data } = await clientApi.post(
4972
+ `/invoices/${invoiceId}/capture`,
4973
+ {
4974
+ intentId
4975
+ }
4819
4976
  );
4820
4977
  if (queryClient && data.status === "ok") {
4821
- queryClient.invalidateQueries({
4822
- queryKey: COMMUNITY_EVENTS_QUERY_KEY(communityId)
4823
- });
4824
- queryClient.invalidateQueries({
4825
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(true)
4826
- });
4827
- queryClient.invalidateQueries({
4828
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(false)
4829
- });
4978
+ SET_INVOICE_QUERY_DATA(queryClient, [invoiceId], data, [
4979
+ clientApiParams.locale
4980
+ ]);
4830
4981
  }
4831
4982
  return data;
4832
4983
  };
4833
- var useRemoveCommunityEvent = (options = {}) => {
4834
- return useConnectedMutation_default(RemoveCommunityEvent, options);
4835
- };
4836
-
4837
- // src/mutations/communityModerator/useUpdateCommunity.ts
4838
- var UpdateCommunity = async ({
4839
- communityId,
4840
- description,
4841
- externalUrl,
4842
- base64,
4843
- clientApiParams,
4844
- queryClient
4845
- }) => {
4846
- const clientApi = await GetClientAPI(clientApiParams);
4847
- const { data } = await clientApi.put(
4848
- `/communityModerator/${communityId}`,
4849
- {
4850
- description: description || void 0,
4851
- externalUrl: externalUrl || void 0,
4852
- buffer: base64 ? base64 : void 0
4853
- }
4854
- );
4855
- if (queryClient && data.status === "ok") {
4856
- SET_COMMUNITY_QUERY_DATA(queryClient, [data.data.slug], data, [
4857
- clientApiParams.locale
4858
- ]);
4859
- queryClient.invalidateQueries({
4860
- queryKey: SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY()
4861
- });
4862
- queryClient.invalidateQueries({ queryKey: COMMUNITIES_QUERY_KEY() });
4863
- }
4864
- return data;
4865
- };
4866
- var useUpdateCommunity = (options = {}) => {
4867
- return useConnectedMutation(UpdateCommunity, options);
4868
- };
4869
-
4870
- // src/mutations/events/useCompleteEventActivation.ts
4871
- var CompleteEventActivation = async ({
4872
- eventId,
4873
- activationId,
4874
- code,
4875
- clientApiParams,
4876
- queryClient
4877
- }) => {
4878
- const clientApi = await GetClientAPI(clientApiParams);
4879
- const { data } = await clientApi.post(
4880
- `/events/${eventId}/activations/${activationId}`,
4881
- {
4882
- code: code || void 0
4883
- }
4884
- );
4885
- if (queryClient && data.status === "ok") {
4886
- }
4887
- return data;
4888
- };
4889
- var useCompleteEventActivation = (options = {}) => {
4890
- return useConnectedMutation_default(CompleteEventActivation, options);
4891
- };
4892
-
4893
- // src/mutations/events/useCreateEventLead.ts
4894
- var CreateEventLead = async ({
4895
- eventId,
4896
- purchaseId,
4897
- note,
4898
- clientApiParams,
4899
- queryClient
4900
- }) => {
4901
- const clientApi = await GetClientAPI(clientApiParams);
4902
- const { data } = await clientApi.post(
4903
- `/events/${eventId}/leads/${purchaseId}`,
4904
- {
4905
- note: note || void 0
4906
- }
4907
- );
4908
- if (queryClient && data.status === "ok") {
4909
- }
4910
- return data;
4911
- };
4912
- var useCreateEventLead = (options = {}) => {
4913
- return useConnectedMutation(CreateEventLead, options);
4914
- };
4915
-
4916
- // src/mutations/invoices/useCaptureInvoicePayment.ts
4917
- var CaptureInvoicePayment = async ({
4918
- invoiceId,
4919
- intentId,
4920
- clientApiParams,
4921
- queryClient
4922
- }) => {
4923
- const clientApi = await GetClientAPI(clientApiParams);
4924
- const { data } = await clientApi.post(
4925
- `/invoices/${invoiceId}/capture`,
4926
- {
4927
- intentId
4928
- }
4929
- );
4930
- if (queryClient && data.status === "ok") {
4931
- SET_INVOICE_QUERY_DATA(queryClient, [invoiceId], data, [
4932
- clientApiParams.locale
4933
- ]);
4934
- }
4935
- return data;
4936
- };
4937
- var useCaptureInvoicePayment = (options = {}) => {
4938
- return useConnectedMutation_default(CaptureInvoicePayment, options);
4984
+ var useCaptureInvoicePayment = (options = {}) => {
4985
+ return useConnectedMutation_default(CaptureInvoicePayment, options);
4939
4986
  };
4940
4987
 
4941
4988
  // src/mutations/self/chat/useAddSelfChatChannelMember.ts
@@ -5195,6 +5242,9 @@ var CaptureSelfEventRegistrationPayment = async ({
5195
5242
  SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
5196
5243
  clientApiParams.locale
5197
5244
  ]);
5245
+ queryClient.invalidateQueries({
5246
+ queryKey: SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY(eventId)
5247
+ });
5198
5248
  }
5199
5249
  return data;
5200
5250
  };
@@ -5328,6 +5378,9 @@ var SubmitSelfEventRegistration = async ({
5328
5378
  SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
5329
5379
  clientApiParams.locale
5330
5380
  ]);
5381
+ queryClient.invalidateQueries({
5382
+ queryKey: SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY(eventId)
5383
+ });
5331
5384
  }
5332
5385
  return data;
5333
5386
  };
@@ -5753,84 +5806,6 @@ var useAddSelfDelegate = (options = {}) => {
5753
5806
  return useConnectedMutation_default(AddSelfDelegate, options);
5754
5807
  };
5755
5808
 
5756
- // src/mutations/self/useAddSelfEventListingSession.ts
5757
- var AddSelfEventListingSession = async ({
5758
- eventId,
5759
- session,
5760
- clientApiParams,
5761
- queryClient
5762
- }) => {
5763
- const clientApi = await GetClientAPI(clientApiParams);
5764
- const { data } = await clientApi.post(
5765
- `/self/events/listings/${eventId}/sessions`,
5766
- {
5767
- session
5768
- }
5769
- );
5770
- if (queryClient && data.status === "ok") {
5771
- queryClient.invalidateQueries({
5772
- queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
5773
- });
5774
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
5775
- }
5776
- return data;
5777
- };
5778
- var useAddSelfEventListingSession = (options = {}) => {
5779
- return useConnectedMutation_default(AddSelfEventListingSession, options);
5780
- };
5781
-
5782
- // src/mutations/self/useAddSelfEventListingSpeaker.ts
5783
- var AddSelfEventListingSpeaker = async ({
5784
- eventId,
5785
- speaker,
5786
- clientApiParams,
5787
- queryClient
5788
- }) => {
5789
- const clientApi = await GetClientAPI(clientApiParams);
5790
- const { data } = await clientApi.post(
5791
- `/self/events/listings/${eventId}/speakers`,
5792
- {
5793
- speaker
5794
- }
5795
- );
5796
- if (queryClient && data.status === "ok") {
5797
- queryClient.invalidateQueries({
5798
- queryKey: EVENT_SPEAKERS_QUERY_KEY(eventId)
5799
- });
5800
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
5801
- }
5802
- return data;
5803
- };
5804
- var useAddSelfEventListingSpeaker = (options = {}) => {
5805
- return useConnectedMutation_default(AddSelfEventListingSpeaker, options);
5806
- };
5807
-
5808
- // src/mutations/self/useAddSelfEventListingSponsor.ts
5809
- var AddSelfEventListingSponsor = async ({
5810
- eventId,
5811
- sponsor,
5812
- clientApiParams,
5813
- queryClient
5814
- }) => {
5815
- const clientApi = await GetClientAPI(clientApiParams);
5816
- const { data } = await clientApi.post(
5817
- `/self/events/listings/${eventId}/sponsors`,
5818
- {
5819
- sponsorId: sponsor.id
5820
- }
5821
- );
5822
- if (queryClient && data.status === "ok") {
5823
- queryClient.invalidateQueries({
5824
- queryKey: EVENT_SPONSORS_QUERY_KEY(eventId)
5825
- });
5826
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
5827
- }
5828
- return data;
5829
- };
5830
- var useAddSelfEventListingSponsor = (options = {}) => {
5831
- return useConnectedMutation_default(AddSelfEventListingSponsor, options);
5832
- };
5833
-
5834
5809
  // src/mutations/self/useAddSelfEventSession.ts
5835
5810
  var AddSelfEventSession = async ({
5836
5811
  eventId,
@@ -5853,66 +5828,6 @@ var useAddSelfEventSession = (options = {}) => {
5853
5828
  return useConnectedMutation_default(AddSelfEventSession, options);
5854
5829
  };
5855
5830
 
5856
- // src/mutations/self/useCreateSelfEventListing.ts
5857
- var CreateSelfEventListing = async ({
5858
- event,
5859
- base64,
5860
- communityId,
5861
- sponsorIds,
5862
- speakers,
5863
- sessions,
5864
- clientApiParams,
5865
- queryClient
5866
- }) => {
5867
- const clientApi = await GetClientAPI(clientApiParams);
5868
- let data;
5869
- if (communityId) {
5870
- data = (await clientApi.post(
5871
- `/communityModerator/${communityId}/events`,
5872
- {
5873
- event,
5874
- image: base64 ? base64 : void 0,
5875
- communityId: communityId || void 0,
5876
- sponsorIds: sponsorIds || void 0,
5877
- speakers,
5878
- sessions
5879
- }
5880
- )).data;
5881
- } else {
5882
- data = (await clientApi.post(
5883
- `/self/events/listings`,
5884
- {
5885
- event,
5886
- image: base64 ? base64 : void 0,
5887
- sponsorIds: sponsorIds || void 0,
5888
- speakers,
5889
- sessions
5890
- }
5891
- )).data;
5892
- }
5893
- if (queryClient && data.status === "ok") {
5894
- queryClient.invalidateQueries({
5895
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(false)
5896
- });
5897
- queryClient.invalidateQueries({
5898
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(true)
5899
- });
5900
- if (communityId) {
5901
- queryClient.invalidateQueries({
5902
- queryKey: COMMUNITY_EVENTS_QUERY_KEY(communityId)
5903
- });
5904
- }
5905
- queryClient.setQueryData(
5906
- [...EVENT_QUERY_KEY(data.data.id), clientApiParams.locale],
5907
- data
5908
- );
5909
- }
5910
- return data;
5911
- };
5912
- var useCreateSelfEventListing = (options = {}) => {
5913
- return useConnectedMutation_default(CreateSelfEventListing, options);
5914
- };
5915
-
5916
5831
  // src/mutations/self/useDeleteSelf.ts
5917
5832
  var DeleteSelf = async ({
5918
5833
  clientApiParams,
@@ -5990,75 +5905,6 @@ var useRemoveSelfDelegate = (options = {}) => {
5990
5905
  return useConnectedMutation_default(RemoveSelfDelegate, options);
5991
5906
  };
5992
5907
 
5993
- // src/mutations/self/useRemoveSelfEventListingSession.ts
5994
- var RemoveSelfEventListingSession = async ({
5995
- eventId,
5996
- sessionId,
5997
- clientApiParams,
5998
- queryClient
5999
- }) => {
6000
- const clientApi = await GetClientAPI(clientApiParams);
6001
- const { data } = await clientApi.delete(
6002
- `/self/events/listings/${eventId}/sessions/${sessionId}`
6003
- );
6004
- if (queryClient && data.status === "ok") {
6005
- queryClient.invalidateQueries({
6006
- queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
6007
- });
6008
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
6009
- }
6010
- return data;
6011
- };
6012
- var useRemoveSelfEventListingSession = (options = {}) => {
6013
- return useConnectedMutation_default(RemoveSelfEventListingSession, options);
6014
- };
6015
-
6016
- // src/mutations/self/useRemoveSelfEventListingSpeaker.ts
6017
- var RemoveSelfEventListingSpeaker = async ({
6018
- eventId,
6019
- speakerId,
6020
- clientApiParams,
6021
- queryClient
6022
- }) => {
6023
- const clientApi = await GetClientAPI(clientApiParams);
6024
- const { data } = await clientApi.delete(
6025
- `/self/events/listings/${eventId}/speakers/${speakerId}`
6026
- );
6027
- if (queryClient && data.status === "ok") {
6028
- queryClient.invalidateQueries({
6029
- queryKey: EVENT_SPEAKERS_QUERY_KEY(eventId)
6030
- });
6031
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
6032
- }
6033
- return data;
6034
- };
6035
- var useRemoveSelfEventListingSpeaker = (options = {}) => {
6036
- return useConnectedMutation_default(RemoveSelfEventListingSpeaker, options);
6037
- };
6038
-
6039
- // src/mutations/self/useRemoveSelfEventListingSponsor.ts
6040
- var RemoveSelfEventListingSponsor = async ({
6041
- eventId,
6042
- sponsorId,
6043
- clientApiParams,
6044
- queryClient
6045
- }) => {
6046
- const clientApi = await GetClientAPI(clientApiParams);
6047
- const { data } = await clientApi.delete(
6048
- `/self/events/listings/${eventId}/sponsors/${sponsorId}`
6049
- );
6050
- if (queryClient && data.status === "ok") {
6051
- queryClient.invalidateQueries({
6052
- queryKey: EVENT_SPONSORS_QUERY_KEY(eventId)
6053
- });
6054
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
6055
- }
6056
- return data;
6057
- };
6058
- var useRemoveSelfEventListingSponsor = (options = {}) => {
6059
- return useConnectedMutation_default(RemoveSelfEventListingSponsor, options);
6060
- };
6061
-
6062
5908
  // src/mutations/self/useRemoveSelfEventSession.ts
6063
5909
  var RemoveSelfEventSession = async ({
6064
5910
  eventId,
@@ -6081,31 +5927,6 @@ var useRemoveSelfEventSession = (options = {}) => {
6081
5927
  return useConnectedMutation_default(RemoveSelfEventSession, options);
6082
5928
  };
6083
5929
 
6084
- // src/mutations/self/useSelfCheckinRegistration.tsx
6085
- var SelfCheckinRegistration = async ({
6086
- eventId,
6087
- registrationId,
6088
- clientApiParams,
6089
- queryClient
6090
- }) => {
6091
- const clientApi = await GetClientAPI(clientApiParams);
6092
- const { data } = await clientApi.post(
6093
- `/self/events/listings/${eventId}/registrations/${registrationId}`
6094
- );
6095
- if (queryClient && data.status === "ok") {
6096
- queryClient.invalidateQueries({
6097
- queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId)
6098
- });
6099
- queryClient.invalidateQueries({
6100
- queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId)
6101
- });
6102
- }
6103
- return data;
6104
- };
6105
- var useSelfCheckinRegistration = (options = {}) => {
6106
- return useConnectedMutation_default(SelfCheckinRegistration, options);
6107
- };
6108
-
6109
5930
  // src/mutations/activities/optimistic/UpdateComments.ts
6110
5931
  import { produce as produce5 } from "immer";
6111
5932
  var UpdateCommentsSingle = (increment, queryClient, KEY) => {
@@ -6252,64 +6073,6 @@ var useDeleteActivity = (options = {}) => {
6252
6073
  return useConnectedMutation_default(DeleteActivity, options);
6253
6074
  };
6254
6075
 
6255
- // src/mutations/self/useSelfJoinCommunity.ts
6256
- var SelfJoinCommunity = async ({
6257
- communityId,
6258
- clientApiParams,
6259
- queryClient
6260
- }) => {
6261
- const clientApi = await GetClientAPI(clientApiParams);
6262
- const { data } = await clientApi.post(`/self/communities/${communityId}`);
6263
- if (queryClient && data.status === "ok") {
6264
- queryClient.invalidateQueries({
6265
- queryKey: COMMUNITY_QUERY_KEY(communityId)
6266
- });
6267
- queryClient.invalidateQueries({
6268
- queryKey: COMMUNITIES_QUERY_KEY()
6269
- });
6270
- queryClient.invalidateQueries({
6271
- queryKey: SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY()
6272
- });
6273
- queryClient.invalidateQueries({
6274
- queryKey: SELF_COMMUNITY_MEMBERSHIP_QUERY_KEY(communityId)
6275
- });
6276
- }
6277
- return data;
6278
- };
6279
- var useSelfJoinCommunity = (options = {}) => {
6280
- return useConnectedMutation_default(SelfJoinCommunity, options);
6281
- };
6282
-
6283
- // src/mutations/self/useSelfLeaveCommunity.ts
6284
- var SelfLeaveCommunity = async ({
6285
- communityId,
6286
- clientApiParams,
6287
- queryClient
6288
- }) => {
6289
- const clientApi = await GetClientAPI(clientApiParams);
6290
- const { data } = await clientApi.delete(
6291
- `/self/communities/${communityId}`
6292
- );
6293
- if (queryClient && data.status === "ok") {
6294
- queryClient.invalidateQueries({
6295
- queryKey: COMMUNITY_QUERY_KEY(communityId)
6296
- });
6297
- queryClient.invalidateQueries({
6298
- queryKey: COMMUNITIES_QUERY_KEY()
6299
- });
6300
- queryClient.invalidateQueries({
6301
- queryKey: SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY()
6302
- });
6303
- queryClient.invalidateQueries({
6304
- queryKey: SELF_COMMUNITY_MEMBERSHIP_QUERY_KEY(communityId)
6305
- });
6306
- }
6307
- return data;
6308
- };
6309
- var useSelfLeaveCommunity = (options = {}) => {
6310
- return useConnectedMutation_default(SelfLeaveCommunity, options);
6311
- };
6312
-
6313
6076
  // src/mutations/self/useSelfUpdateCommunityMembership.ts
6314
6077
  var SelfUpdateCommunityMembership = async ({
6315
6078
  communityId,
@@ -6362,102 +6125,6 @@ var useUpdateSelf = (options = {}) => {
6362
6125
  return useConnectedMutation_default(UpdateSelf, options);
6363
6126
  };
6364
6127
 
6365
- // src/mutations/self/useUpdateSelfEventListing.ts
6366
- var UpdateSelfEventListing = async ({
6367
- eventId,
6368
- event,
6369
- base64,
6370
- clientApiParams,
6371
- queryClient
6372
- }) => {
6373
- const clientApi = await GetClientAPI(clientApiParams);
6374
- const { data } = await clientApi.put(
6375
- `/self/events/listings/${eventId}`,
6376
- {
6377
- event,
6378
- image: base64 ?? void 0
6379
- }
6380
- );
6381
- if (queryClient && data.status === "ok") {
6382
- SET_EVENT_QUERY_DATA(queryClient, [eventId], data, [
6383
- clientApiParams.locale
6384
- ]);
6385
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data, [
6386
- clientApiParams.locale
6387
- ]);
6388
- queryClient.invalidateQueries({ queryKey: EVENT_QUERY_KEY(eventId) });
6389
- queryClient.invalidateQueries({
6390
- queryKey: SELF_EVENT_LISTING_QUERY_KEY(eventId)
6391
- });
6392
- queryClient.invalidateQueries({
6393
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(false)
6394
- });
6395
- queryClient.invalidateQueries({
6396
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(true)
6397
- });
6398
- }
6399
- return data;
6400
- };
6401
- var useUpdateSelfEventListing = (options = {}) => {
6402
- return useConnectedMutation_default(UpdateSelfEventListing, options);
6403
- };
6404
-
6405
- // src/mutations/self/useUpdateSelfEventListingSession.ts
6406
- var UpdateSelfEventListingSession = async ({
6407
- eventId,
6408
- session,
6409
- sessionId,
6410
- clientApiParams,
6411
- queryClient
6412
- }) => {
6413
- const clientApi = await GetClientAPI(clientApiParams);
6414
- const { data } = await clientApi.put(
6415
- `/self/events/listings/${eventId}/sessions/${sessionId}`,
6416
- {
6417
- session
6418
- }
6419
- );
6420
- if (queryClient && data.status === "ok") {
6421
- queryClient.invalidateQueries({
6422
- queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
6423
- });
6424
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
6425
- }
6426
- return data;
6427
- };
6428
- var useUpdateSelfEventListingSession = (options = {}) => {
6429
- return useConnectedMutation_default(UpdateSelfEventListingSession, options);
6430
- };
6431
-
6432
- // src/mutations/self/useUpdateSelfEventListingSpeaker.ts
6433
- var UpdateSelfEventListingSpeaker = async ({
6434
- eventId,
6435
- speaker,
6436
- speakerId,
6437
- buffer,
6438
- clientApiParams,
6439
- queryClient
6440
- }) => {
6441
- const clientApi = await GetClientAPI(clientApiParams);
6442
- const { data } = await clientApi.put(
6443
- `/self/events/listings/${eventId}/speakers/${speakerId}`,
6444
- {
6445
- speaker,
6446
- buffer: buffer || void 0
6447
- }
6448
- );
6449
- if (queryClient && data.status === "ok") {
6450
- queryClient.invalidateQueries({
6451
- queryKey: EVENT_SPEAKERS_QUERY_KEY(eventId)
6452
- });
6453
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
6454
- }
6455
- return data;
6456
- };
6457
- var useUpdateSelfEventListingSpeaker = (options = {}) => {
6458
- return useConnectedMutation_default(UpdateSelfEventListingSpeaker, options);
6459
- };
6460
-
6461
6128
  // src/mutations/self/useUpdateSelfImage.ts
6462
6129
  var UpdateSelfImage = async ({
6463
6130
  base64,
@@ -6599,6 +6266,709 @@ var CreateTeamAccount = async ({
6599
6266
  var useCreateTeamAccount = (options = {}) => {
6600
6267
  return useConnectedMutation_default(CreateTeamAccount, options);
6601
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
+ };
6602
6972
  export {
6603
6973
  ACCOUNTS_QUERY_KEY,
6604
6974
  ACCOUNT_ACTIVITIES_QUERY_KEY,
@@ -6611,14 +6981,13 @@ export {
6611
6981
  ACTIVITY_COMMENTS_QUERY_KEY,
6612
6982
  ACTIVITY_QUERY_KEY,
6613
6983
  ADVERTISEMENT_QUERY_KEY,
6984
+ AcceptCommunityInvitation,
6985
+ AcceptCommunityRequest,
6614
6986
  AcceptTransfer,
6615
6987
  AccountType,
6616
- AddCommunityEvent,
6988
+ AddListingSponsor,
6617
6989
  AddSelfChatChannelMember,
6618
6990
  AddSelfDelegate,
6619
- AddSelfEventListingSession,
6620
- AddSelfEventListingSpeaker,
6621
- AddSelfEventListingSponsor,
6622
6991
  AddSelfEventRegistrationPurchase,
6623
6992
  AddSelfEventRegistrationPurchaseAddOn,
6624
6993
  AddSelfEventSession,
@@ -6629,9 +6998,12 @@ export {
6629
6998
  COMMUNITY_ACTIVITIES_QUERY_KEY,
6630
6999
  COMMUNITY_ANNOUNCEMENTS_QUERY_KEY,
6631
7000
  COMMUNITY_EVENTS_QUERY_KEY,
7001
+ COMMUNITY_INVITABLE_ACCOUNTS_QUERY_KEY,
7002
+ COMMUNITY_MEDIA_QUERY_KEY,
6632
7003
  COMMUNITY_MEMBERS_QUERY_KEY,
6633
- COMMUNITY_MODERATORS_QUERY_KEY,
6634
7004
  COMMUNITY_QUERY_KEY,
7005
+ COMMUNITY_REQUESTS_QUERY_KEY,
7006
+ COMMUNITY_REQUEST_QUERY_KEY,
6635
7007
  COMMUNITY_SPONSORS_QUERY_KEY,
6636
7008
  CONTENTS_QUERY_KEY,
6637
7009
  CONTENT_ACTIVITIES_QUERY_KEY,
@@ -6645,27 +7017,39 @@ export {
6645
7017
  CancelTransfer,
6646
7018
  CaptureInvoicePayment,
6647
7019
  CaptureSelfEventRegistrationPayment,
7020
+ CheckinListingRegistration,
6648
7021
  CommunityAccess,
6649
7022
  CommunityMembershipRole,
7023
+ CommunityRequestStatus,
6650
7024
  CompleteEventActivation,
6651
7025
  ConnectedXMProvider,
6652
7026
  ContentTypeFormat,
6653
7027
  CouponType,
7028
+ CreateCommunity,
6654
7029
  CreateCommunityAnnouncement,
7030
+ CreateCommunityInvitations,
7031
+ CreateCommunityRequest,
6655
7032
  CreateEventLead,
7033
+ CreateListing,
7034
+ CreateListingSession,
7035
+ CreateListingSpeaker,
6656
7036
  CreateSelfChatChannel,
6657
7037
  CreateSelfChatChannelMessage,
6658
- CreateSelfEventListing,
6659
7038
  CreateSubscription,
6660
7039
  CreateSupportTicket,
6661
7040
  CreateTeamAccount,
6662
7041
  Currency,
7042
+ DeactivateCommunity,
6663
7043
  DeleteActivity,
7044
+ DeleteCommunityInvitation,
7045
+ DeleteListingSession,
7046
+ DeleteListingSpeaker,
6664
7047
  DeleteReshare,
6665
7048
  DeleteSelf,
6666
7049
  DeleteSelfChatChannel,
6667
7050
  DeleteSelfChatChannelMessage,
6668
7051
  DeleteSelfPushDevice,
7052
+ DemoteCommunityModerator,
6669
7053
  EVENTS_FEATURED_QUERY_KEY,
6670
7054
  EVENTS_QUERY_KEY,
6671
7055
  EVENT_ACTIVITIES_QUERY_KEY,
@@ -6707,8 +7091,11 @@ export {
6707
7091
  GetCommunityActivities,
6708
7092
  GetCommunityAnnouncements,
6709
7093
  GetCommunityEvents,
7094
+ GetCommunityInvitableAccounts,
7095
+ GetCommunityMedia,
6710
7096
  GetCommunityMembers,
6711
- GetCommunityModerators,
7097
+ GetCommunityRequest,
7098
+ GetCommunityRequests,
6712
7099
  GetCommunitySponsors,
6713
7100
  GetContent,
6714
7101
  GetContentActivities,
@@ -6764,6 +7151,7 @@ export {
6764
7151
  GetSelfEventRegistrationPurchaseAddOns,
6765
7152
  GetSelfEventRegistrationPurchaseReservationSections,
6766
7153
  GetSelfEventRegistrationPurchaseSections,
7154
+ GetSelfEventRegistrationStatus,
6767
7155
  GetSelfEventSessions,
6768
7156
  GetSelfEvents,
6769
7157
  GetSelfFeed,
@@ -6787,9 +7175,14 @@ export {
6787
7175
  INVOICE_QUERY_KEY,
6788
7176
  ImageType,
6789
7177
  InvoiceStatus,
7178
+ JoinCommunity,
6790
7179
  LEVELS_QUERY_KEY,
6791
7180
  LEVEL_QUERY_KEY,
6792
7181
  LEVEL_SPONSORS_QUERY_KEY,
7182
+ LISTINGS_QUERY_KEY,
7183
+ LISTING_QUERY_KEY,
7184
+ LISTING_REGISTRATIONS_QUERY_KEY,
7185
+ LeaveCommunity,
6793
7186
  LeaveSelfChatChannel,
6794
7187
  LikeActivity,
6795
7188
  MergeInfinitePages,
@@ -6799,17 +7192,18 @@ export {
6799
7192
  ORGANIZATION_PAYMENT_INTEGRATION_QUERY_KEY,
6800
7193
  ORGANIZATION_QUERY_KEY,
6801
7194
  ORGANIZATION_SUBSCRIPTIONS_QUERY_KEY,
7195
+ PromoteCommunityMember,
6802
7196
  PushDeviceAppType,
6803
7197
  PushService,
6804
7198
  RegisterCancelledEventRegistration,
6805
7199
  RegistrationQuestionType,
6806
7200
  RegistrationStatus,
7201
+ RejectCommunityInvitation,
7202
+ RejectCommunityRequest,
6807
7203
  RejectTransfer,
6808
- RemoveCommunityEvent,
7204
+ RemoveCommunityMember,
7205
+ RemoveListingSponsor,
6809
7206
  RemoveSelfDelegate,
6810
- RemoveSelfEventListingSession,
6811
- RemoveSelfEventListingSpeaker,
6812
- RemoveSelfEventListingSponsor,
6813
7207
  RemoveSelfEventRegistrationCoupon,
6814
7208
  RemoveSelfEventRegistrationPurchase,
6815
7209
  RemoveSelfEventRegistrationPurchaseAddOn,
@@ -6826,15 +7220,13 @@ export {
6826
7220
  SELF_DELEGATES_QUERY_KEY,
6827
7221
  SELF_DELEGATE_OF_QUERY_KEY,
6828
7222
  SELF_EVENTS_QUERY_KEY,
6829
- SELF_EVENT_LISTINGS_QUERY_KEY,
6830
- SELF_EVENT_LISTING_QUERY_KEY,
6831
- SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY,
6832
7223
  SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY,
6833
7224
  SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_KEY,
6834
7225
  SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY,
6835
7226
  SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_KEY,
6836
7227
  SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY,
6837
7228
  SELF_EVENT_REGISTRATION_QUERY_KEY,
7229
+ SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY,
6838
7230
  SELF_EVENT_SESSIONS_QUERY_KEY,
6839
7231
  SELF_FEED_QUERY_KEY,
6840
7232
  SELF_INTERESTS_QUERY_KEY,
@@ -6869,9 +7261,11 @@ export {
6869
7261
  SET_COMMUNITY_ACTIVITIES_QUERY_DATA,
6870
7262
  SET_COMMUNITY_ANNOUNCEMENTS_QUERY_DATA,
6871
7263
  SET_COMMUNITY_EVENTS_QUERY_DATA,
7264
+ SET_COMMUNITY_MEDIA_QUERY_DATA,
6872
7265
  SET_COMMUNITY_MEMBERS_QUERY_DATA,
6873
- SET_COMMUNITY_MODERATORS_QUERY_DATA,
6874
7266
  SET_COMMUNITY_QUERY_DATA,
7267
+ SET_COMMUNITY_REQUESTS_QUERY_DATA,
7268
+ SET_COMMUNITY_REQUEST_QUERY_DATA,
6875
7269
  SET_COMMUNITY_SPONSORS_QUERY_DATA,
6876
7270
  SET_CONTENTS_QUERY_DATA,
6877
7271
  SET_CONTENT_ACTIVITIES_QUERY_DATA,
@@ -6900,6 +7294,7 @@ export {
6900
7294
  SET_LEVELS_QUERY_DATA,
6901
7295
  SET_LEVEL_QUERY_DATA,
6902
7296
  SET_LEVEL_SPONSORS_QUERY_DATA,
7297
+ SET_LISTING_QUERY_DATA,
6903
7298
  SET_ORGANIZATION_PAGE_QUERY_DATA,
6904
7299
  SET_PUSH_DEVICE_QUERY_DATA,
6905
7300
  SET_SELF_CHAT_CHANNELS_QUERY_DATA,
@@ -6907,12 +7302,12 @@ export {
6907
7302
  SET_SELF_CHAT_CHANNEL_MESSAGES_QUERY_DATA,
6908
7303
  SET_SELF_CHAT_CHANNEL_QUERY_DATA,
6909
7304
  SET_SELF_COMMUNITY_MEMBERSHIP_QUERY_DATA,
6910
- SET_SELF_EVENT_LISTING_QUERY_DATA,
6911
7305
  SET_SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_DATA,
6912
7306
  SET_SELF_EVENT_REGISTRATION_PURCHASE_QUERY_DATA,
6913
7307
  SET_SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_DATA,
6914
7308
  SET_SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_DATA,
6915
7309
  SET_SELF_EVENT_REGISTRATION_QUERY_DATA,
7310
+ SET_SELF_EVENT_REGISTRATION_STATUS_QUERY_DATA,
6916
7311
  SET_SELF_QUERY_DATA,
6917
7312
  SET_SERIES_EVENTS_QUERY_DATA,
6918
7313
  SET_SERIES_LIST_QUERY_DATA,
@@ -6923,10 +7318,7 @@ export {
6923
7318
  SPONSOR_QUERY_KEY,
6924
7319
  SelectSelfEventRegistrationCoupon,
6925
7320
  SelectSelfEventRegistrationPurchaseReservation,
6926
- SelfCheckinRegistration,
6927
7321
  SelfCreateActivity,
6928
- SelfJoinCommunity,
6929
- SelfLeaveCommunity,
6930
7322
  SelfUpdateCommunityMembership,
6931
7323
  SubmitSelfEventRegistration,
6932
7324
  SubscriptionStatus,
@@ -6937,11 +7329,11 @@ export {
6937
7329
  UnfollowAccount,
6938
7330
  UnlikeActivity,
6939
7331
  UpdateCommunity,
7332
+ UpdateListing,
7333
+ UpdateListingSession,
7334
+ UpdateListingSpeaker,
6940
7335
  UpdateSelf,
6941
7336
  UpdateSelfChatChannelNotifications,
6942
- UpdateSelfEventListing,
6943
- UpdateSelfEventListingSession,
6944
- UpdateSelfEventListingSpeaker,
6945
7337
  UpdateSelfEventRegistrationQuestionResponse,
6946
7338
  UpdateSelfImage,
6947
7339
  UpdateSelfLead,
@@ -6987,13 +7379,12 @@ export {
6987
7379
  isTypeTrack,
6988
7380
  isTypeTransfer,
6989
7381
  setFirstPageData,
7382
+ useAcceptCommunityInvitation,
7383
+ useAcceptCommunityRequest,
6990
7384
  useAcceptTransfer,
6991
- useAddCommunityEvent,
7385
+ useAddListingSponsor,
6992
7386
  useAddSelfChatChannelMember,
6993
7387
  useAddSelfDelegate,
6994
- useAddSelfEventListingSession,
6995
- useAddSelfEventListingSpeaker,
6996
- useAddSelfEventListingSponsor,
6997
7388
  useAddSelfEventRegistrationPurchase,
6998
7389
  useAddSelfEventRegistrationPurchaseAddOn,
6999
7390
  useAddSelfEventSession,
@@ -7002,25 +7393,36 @@ export {
7002
7393
  useCancelTransfer,
7003
7394
  useCaptureInvoicePayment,
7004
7395
  useCaptureSelfEventRegistrationPayment,
7396
+ useCheckinListingRegistration,
7005
7397
  useCompleteEventActivation,
7006
7398
  useConnectedInfiniteQuery,
7007
7399
  useConnectedMutation,
7008
7400
  useConnectedSingleQuery,
7009
7401
  useConnectedXM,
7402
+ useCreateCommunity,
7010
7403
  useCreateCommunityAnnouncement,
7404
+ useCreateCommunityInvitations,
7405
+ useCreateCommunityRequest,
7011
7406
  useCreateEventLead,
7407
+ useCreateListing,
7408
+ useCreateListingSession,
7409
+ useCreateListingSpeaker,
7012
7410
  useCreateSelfChatChannel,
7013
7411
  useCreateSelfChatChannelMessage,
7014
- useCreateSelfEventListing,
7015
7412
  useCreateSubscription,
7016
7413
  useCreateSupportTicket,
7017
7414
  useCreateTeamAccount,
7415
+ useDeactivateCommunity,
7018
7416
  useDeleteActivity,
7417
+ useDeleteCommunityInvitation,
7418
+ useDeleteListingSession,
7419
+ useDeleteListingSpeaker,
7019
7420
  useDeleteReshare,
7020
7421
  useDeleteSelf,
7021
7422
  useDeleteSelfChatChannel,
7022
7423
  useDeleteSelfChatChannelMessage,
7023
7424
  useDeleteSelfPushDevice,
7425
+ useDemoteCommunityModerator,
7024
7426
  useFollowAccount,
7025
7427
  useGetAccount,
7026
7428
  useGetAccountActivities,
@@ -7039,8 +7441,11 @@ export {
7039
7441
  useGetCommunityActivities,
7040
7442
  useGetCommunityAnnouncements,
7041
7443
  useGetCommunityEvents,
7444
+ useGetCommunityInvitableAccounts,
7445
+ useGetCommunityMedia,
7042
7446
  useGetCommunityMembers,
7043
- useGetCommunityModerators,
7447
+ useGetCommunityRequest,
7448
+ useGetCommunityRequests,
7044
7449
  useGetCommunitySponsors,
7045
7450
  useGetContent,
7046
7451
  useGetContentActivities,
@@ -7095,6 +7500,7 @@ export {
7095
7500
  useGetSelfEventRegistrationPurchaseAddOns,
7096
7501
  useGetSelfEventRegistrationPurchaseReservationSections,
7097
7502
  useGetSelfEventRegistrationPurchaseSections,
7503
+ useGetSelfEventRegistrationStatus,
7098
7504
  useGetSelfEventSessions,
7099
7505
  useGetSelfEvents,
7100
7506
  useGetSelfFeed,
@@ -7115,15 +7521,18 @@ export {
7115
7521
  useGetSeriesList,
7116
7522
  useGetSponsor,
7117
7523
  useGetSponsors,
7524
+ useJoinCommunity,
7525
+ useLeaveCommunity,
7118
7526
  useLeaveSelfChatChannel,
7119
7527
  useLikeActivity,
7528
+ usePromoteCommunityMember,
7120
7529
  useRegisterCancelledEventRegistration,
7530
+ useRejectCommunityInvitation,
7531
+ useRejectCommunityRequest,
7121
7532
  useRejectTransfer,
7122
- useRemoveCommunityEvent,
7533
+ useRemoveCommunityMember,
7534
+ useRemoveListingSponsor,
7123
7535
  useRemoveSelfDelegate,
7124
- useRemoveSelfEventListingSession,
7125
- useRemoveSelfEventListingSpeaker,
7126
- useRemoveSelfEventListingSponsor,
7127
7536
  useRemoveSelfEventRegistrationCoupon,
7128
7537
  useRemoveSelfEventRegistrationPurchase,
7129
7538
  useRemoveSelfEventRegistrationPurchaseAddOn,
@@ -7131,21 +7540,18 @@ export {
7131
7540
  useReshareActivity,
7132
7541
  useSelectSelfEventRegistrationCoupon,
7133
7542
  useSelectSelfEventRegistrationPurchaseReservation,
7134
- useSelfCheckinRegistration,
7135
7543
  useSelfCreateActivity,
7136
- useSelfJoinCommunity,
7137
- useSelfLeaveCommunity,
7138
7544
  useSelfUpdateCommunityMembership,
7139
7545
  useSubmitSelfEventRegistration,
7140
7546
  useTransferPurchase,
7141
7547
  useUnfollowAccount,
7142
7548
  useUnlikeActivity,
7143
7549
  useUpdateCommunity,
7550
+ useUpdateListing,
7551
+ useUpdateListingSession,
7552
+ useUpdateListingSpeaker,
7144
7553
  useUpdateSelf,
7145
7554
  useUpdateSelfChatChannelNotifications,
7146
- useUpdateSelfEventListing,
7147
- useUpdateSelfEventListingSession,
7148
- useUpdateSelfEventListingSpeaker,
7149
7555
  useUpdateSelfEventRegistrationQuestionResponse,
7150
7556
  useUpdateSelfImage,
7151
7557
  useUpdateSelfLead,