@connectedxm/client 0.4.8 → 0.4.10

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
@@ -9,9 +9,20 @@ var ConnectedXMClientContext = React.createContext(
9
9
  var ConnectedXMProvider = ({
10
10
  queryClient,
11
11
  children,
12
+ getToken,
12
13
  ...state
13
14
  }) => {
15
+ const [authenticated, setAuthenticated] = React.useState(false);
14
16
  const [ssr, setSSR] = React.useState(true);
17
+ React.useEffect(() => {
18
+ if (!authenticated) {
19
+ getToken().then((token) => {
20
+ if (token) {
21
+ setAuthenticated(true);
22
+ }
23
+ });
24
+ }
25
+ }, [authenticated, getToken]);
15
26
  React.useEffect(() => {
16
27
  setSSR(false);
17
28
  }, []);
@@ -21,6 +32,9 @@ var ConnectedXMProvider = ({
21
32
  {
22
33
  value: {
23
34
  ...state,
35
+ getToken,
36
+ authenticated,
37
+ setAuthenticated,
24
38
  queryClient
25
39
  }
26
40
  },
@@ -32,6 +46,9 @@ var ConnectedXMProvider = ({
32
46
  {
33
47
  value: {
34
48
  ...state,
49
+ getToken,
50
+ authenticated,
51
+ setAuthenticated,
35
52
  queryClient
36
53
  }
37
54
  },
@@ -51,6 +68,55 @@ var useConnectedXM = () => {
51
68
  return context;
52
69
  };
53
70
 
71
+ // src/hooks/useIsAccountFollowing.ts
72
+ var useIsAccountFollowing = (accountId) => {
73
+ const { data: relationships } = useGetSelfRelationships();
74
+ if (!accountId)
75
+ return false;
76
+ if (!isUUID(accountId)) {
77
+ throw new Error("Invalid accountId. Did you pass in the username?");
78
+ }
79
+ return relationships?.data.accounts[accountId] || false;
80
+ };
81
+
82
+ // src/hooks/useIsCommunityMember.ts
83
+ var useIsCommunityMember = (communityId, role) => {
84
+ const { data: relationships } = useGetSelfRelationships();
85
+ if (!communityId)
86
+ return false;
87
+ if (!isUUID(communityId)) {
88
+ throw new Error("Invalid communityId. Did you pass in the slug?");
89
+ }
90
+ const _role = relationships?.data.communities[communityId];
91
+ if (role) {
92
+ return _role === role;
93
+ } else {
94
+ return _role === "member" || _role === "moderator";
95
+ }
96
+ };
97
+
98
+ // src/hooks/useIsEventRegistered.ts
99
+ var useIsEventRegistered = (eventId) => {
100
+ const { data: relationships } = useGetSelfRelationships();
101
+ if (!eventId)
102
+ return false;
103
+ if (!isUUID(eventId)) {
104
+ throw new Error("Invalid eventId. Did you pass in the slug?");
105
+ }
106
+ return relationships?.data.events[eventId] || false;
107
+ };
108
+
109
+ // src/hooks/useIsChannelSubscribed.ts
110
+ var useIsChannelSubscribed = (channelId) => {
111
+ const { data: relationships } = useGetSelfRelationships();
112
+ if (!channelId)
113
+ return false;
114
+ if (!isUUID(channelId)) {
115
+ throw new Error("Invalid channelId. Did you pass in the slug?");
116
+ }
117
+ return relationships?.data.channels[channelId] || false;
118
+ };
119
+
54
120
  // src/interfaces.ts
55
121
  var RegistrationStatus = /* @__PURE__ */ ((RegistrationStatus2) => {
56
122
  RegistrationStatus2["registered"] = "registered";
@@ -475,6 +541,12 @@ var CacheIndividualQueries = (page, queryClient, queryKeyFn, locale = "en", item
475
541
  });
476
542
  };
477
543
 
544
+ // src/utilities/IsUUID.ts
545
+ var isUUID = (id) => {
546
+ const uuidRegex = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/;
547
+ return uuidRegex.test(id);
548
+ };
549
+
478
550
  // src/queries/useConnectedInfiniteQuery.ts
479
551
  import {
480
552
  useInfiniteQuery
@@ -1924,7 +1996,7 @@ var useGetContentActivities = (contentId = "", params = {}, options = {}) => {
1924
1996
  params,
1925
1997
  {
1926
1998
  ...options,
1927
- enabled: !!contentId && (options.enabled ?? true)
1999
+ enabled: !!contentId && (options?.enabled ?? true)
1928
2000
  }
1929
2001
  );
1930
2002
  };
@@ -2005,7 +2077,7 @@ var useGetContentType = (contentTypeId = "", options = {}) => {
2005
2077
  (params) => GetContentType({ contentTypeId: contentTypeId || "", ...params }),
2006
2078
  {
2007
2079
  ...options,
2008
- enabled: !!contentTypeId && (options.enabled ?? true)
2080
+ enabled: !!contentTypeId && (options?.enabled ?? true)
2009
2081
  }
2010
2082
  );
2011
2083
  };
@@ -2060,7 +2132,7 @@ var useGetContentTypeContents = (contentTypeId = "", params = {}, options = {})
2060
2132
  params,
2061
2133
  {
2062
2134
  ...options,
2063
- enabled: !!contentTypeId && (options.enabled ?? true)
2135
+ enabled: !!contentTypeId && (options?.enabled ?? true)
2064
2136
  }
2065
2137
  );
2066
2138
  };
@@ -2260,7 +2332,7 @@ var useGetEventFaqs = (eventId = "", sectionId = "", params = {}, options = {})
2260
2332
  params,
2261
2333
  {
2262
2334
  ...options,
2263
- enabled: !!eventId && !!sectionId && (options.enabled ?? true)
2335
+ enabled: !!eventId && !!sectionId && (options?.enabled ?? true)
2264
2336
  }
2265
2337
  );
2266
2338
  };
@@ -2622,7 +2694,7 @@ var useGetEventSpeakers = (eventId = "", params = {}, options = {}) => {
2622
2694
  params,
2623
2695
  {
2624
2696
  ...options,
2625
- enabled: !!eventId && (options.enabled ?? true)
2697
+ enabled: !!eventId && (options?.enabled ?? true)
2626
2698
  }
2627
2699
  );
2628
2700
  };
@@ -2754,7 +2826,7 @@ var useGetEventSponsors = (eventId = "", params = {}, options = {}) => {
2754
2826
  params,
2755
2827
  {
2756
2828
  ...options,
2757
- enabled: !!eventId && (options.enabled ?? true)
2829
+ enabled: !!eventId && (options?.enabled ?? true)
2758
2830
  }
2759
2831
  );
2760
2832
  };
@@ -2874,7 +2946,7 @@ var useGetOrganizationPage = (type, options = {}) => {
2874
2946
  (params) => GetOrganizationPage({ type, ...params }),
2875
2947
  {
2876
2948
  ...options,
2877
- enabled: !!type && (options.enabled ?? true)
2949
+ enabled: !!type && (options?.enabled ?? true)
2878
2950
  }
2879
2951
  );
2880
2952
  };
@@ -2945,11 +3017,13 @@ var GetSelf = async ({
2945
3017
  return data;
2946
3018
  };
2947
3019
  var useGetSelf = (ignoreExecuteAs, options = {}) => {
3020
+ const { authenticated } = useConnectedXM();
2948
3021
  return useConnectedSingleQuery(
2949
3022
  SELF_QUERY_KEY(ignoreExecuteAs),
2950
3023
  (params) => GetSelf({ ignoreExecuteAs, ...params }),
2951
3024
  {
2952
- ...options
3025
+ ...options,
3026
+ enabled: authenticated && (options?.enabled ?? true)
2953
3027
  }
2954
3028
  );
2955
3029
  };
@@ -3003,12 +3077,14 @@ var GetSelfChatChannels = async ({
3003
3077
  return data;
3004
3078
  };
3005
3079
  var useGetSelfChatChannels = (params = {}, options = {}) => {
3080
+ const { authenticated } = useConnectedXM();
3006
3081
  return useConnectedInfiniteQuery(
3007
3082
  SELF_CHAT_CHANNELS_QUERY_KEY(),
3008
3083
  (params2) => GetSelfChatChannels(params2),
3009
3084
  params,
3010
3085
  {
3011
- ...options
3086
+ ...options,
3087
+ enabled: !!authenticated && (options?.enabled ?? true)
3012
3088
  }
3013
3089
  );
3014
3090
  };
@@ -3036,6 +3112,7 @@ var GetSelfChatChannel = async ({
3036
3112
  return data;
3037
3113
  };
3038
3114
  var useGetSelfChatChannel = (channelId, options = {}) => {
3115
+ const { authenticated } = useConnectedXM();
3039
3116
  return useConnectedSingleQuery(
3040
3117
  SELF_CHAT_CHANNEL_QUERY_KEY(channelId),
3041
3118
  (params) => GetSelfChatChannel({
@@ -3045,7 +3122,7 @@ var useGetSelfChatChannel = (channelId, options = {}) => {
3045
3122
  {
3046
3123
  staleTime: Infinity,
3047
3124
  ...options,
3048
- enabled: !!channelId && (options?.enabled ?? true)
3125
+ enabled: !!authenticated && !!channelId && (options?.enabled ?? true)
3049
3126
  }
3050
3127
  );
3051
3128
  };
@@ -3084,13 +3161,14 @@ var GetSelfChatChannelMembers = async ({
3084
3161
  return data;
3085
3162
  };
3086
3163
  var useGetSelfChatChannelMembers = (channelId, params = {}, options = {}) => {
3164
+ const { authenticated } = useConnectedXM();
3087
3165
  return useConnectedInfiniteQuery(
3088
3166
  SELF_CHAT_CHANNEL_MEMBERS_QUERY_KEY(channelId),
3089
3167
  (params2) => GetSelfChatChannelMembers({ ...params2, channelId }),
3090
3168
  params,
3091
3169
  {
3092
3170
  ...options,
3093
- enabled: !!channelId && (options?.enabled ?? true)
3171
+ enabled: !!authenticated && !!channelId && (options?.enabled ?? true)
3094
3172
  }
3095
3173
  );
3096
3174
  };
@@ -3139,13 +3217,14 @@ var GetSelfChatChannelMessages = async ({
3139
3217
  return data;
3140
3218
  };
3141
3219
  var useGetSelfChatChannelMessages = (channelId, params = {}, options = {}) => {
3220
+ const { authenticated } = useConnectedXM();
3142
3221
  return useConnectedInfiniteQuery(
3143
3222
  SELF_CHAT_CHANNEL_MESSAGES_QUERY_KEY(channelId),
3144
3223
  (params2) => GetSelfChatChannelMessages({ ...params2, channelId }),
3145
3224
  params,
3146
3225
  {
3147
3226
  ...options,
3148
- enabled: !!channelId && (options?.enabled ?? true)
3227
+ enabled: !!authenticated && !!channelId && (options?.enabled ?? true)
3149
3228
  }
3150
3229
  );
3151
3230
  };
@@ -3173,6 +3252,7 @@ var GetSelfEventRegistration = async ({
3173
3252
  return data;
3174
3253
  };
3175
3254
  var useGetSelfEventRegistration = (eventId, options = {}) => {
3255
+ const { authenticated } = useConnectedXM();
3176
3256
  return useConnectedSingleQuery_default(
3177
3257
  SELF_EVENT_REGISTRATION_QUERY_KEY(eventId),
3178
3258
  (params) => GetSelfEventRegistration({
@@ -3181,7 +3261,7 @@ var useGetSelfEventRegistration = (eventId, options = {}) => {
3181
3261
  }),
3182
3262
  {
3183
3263
  ...options,
3184
- enabled: !!eventId && (options?.enabled ?? true)
3264
+ enabled: !!authenticated && !!eventId && (options?.enabled ?? true)
3185
3265
  }
3186
3266
  );
3187
3267
  };
@@ -3204,6 +3284,7 @@ var GetSelfEventRegistrationCheckout = async ({
3204
3284
  return data;
3205
3285
  };
3206
3286
  var useGetSelfEventRegistrationCheckout = (eventId, registrationId = "", options = {}) => {
3287
+ const { authenticated } = useConnectedXM();
3207
3288
  return useConnectedSingleQuery_default(
3208
3289
  SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY(eventId, registrationId),
3209
3290
  (params) => GetSelfEventRegistrationCheckout({ eventId, registrationId, ...params }),
@@ -3212,7 +3293,7 @@ var useGetSelfEventRegistrationCheckout = (eventId, registrationId = "", options
3212
3293
  retry: false,
3213
3294
  retryOnMount: false,
3214
3295
  ...options,
3215
- enabled: !!eventId && !!registrationId && (options.enabled ?? true)
3296
+ enabled: !!authenticated && !!eventId && !!registrationId && (options?.enabled ?? true)
3216
3297
  }
3217
3298
  );
3218
3299
  };
@@ -3250,6 +3331,7 @@ var GetSelfEventRegistrationPurchase = async ({
3250
3331
  return data;
3251
3332
  };
3252
3333
  var useGetSelfEventRegistrationPurchase = (eventId, registrationId, purchaseId, options = {}) => {
3334
+ const { authenticated } = useConnectedXM();
3253
3335
  return useConnectedSingleQuery_default(
3254
3336
  SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY(
3255
3337
  eventId,
@@ -3264,7 +3346,7 @@ var useGetSelfEventRegistrationPurchase = (eventId, registrationId, purchaseId,
3264
3346
  }),
3265
3347
  {
3266
3348
  ...options,
3267
- enabled: !!eventId && !!registrationId && !!purchaseId && (options?.enabled ?? true)
3349
+ enabled: !!authenticated && !!eventId && !!registrationId && !!purchaseId && (options?.enabled ?? true)
3268
3350
  }
3269
3351
  );
3270
3352
  };
@@ -3303,6 +3385,7 @@ var GetSelfEventRegistrationPurchaseSections = async ({
3303
3385
  return data;
3304
3386
  };
3305
3387
  var useGetSelfEventRegistrationPurchaseSections = (eventId, registrationId, purchaseId, options = {}) => {
3388
+ const { authenticated } = useConnectedXM();
3306
3389
  return useConnectedSingleQuery_default(
3307
3390
  SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY(
3308
3391
  eventId,
@@ -3320,7 +3403,7 @@ var useGetSelfEventRegistrationPurchaseSections = (eventId, registrationId, purc
3320
3403
  staleTime: Infinity,
3321
3404
  refetchOnMount: false,
3322
3405
  ...options,
3323
- enabled: !!eventId && !!registrationId && !!purchaseId && (options?.enabled ?? true)
3406
+ enabled: !!authenticated && !!eventId && !!registrationId && !!purchaseId && (options?.enabled ?? true)
3324
3407
  }
3325
3408
  );
3326
3409
  };
@@ -3359,6 +3442,7 @@ var GetSelfEventRegistrationPurchaseAddOns = async ({
3359
3442
  return data;
3360
3443
  };
3361
3444
  var useGetSelfEventRegistrationPurchaseAddOns = (eventId, registrationId, purchaseId, options = {}) => {
3445
+ const { authenticated } = useConnectedXM();
3362
3446
  return useConnectedSingleQuery_default(
3363
3447
  SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_KEY(
3364
3448
  eventId,
@@ -3373,7 +3457,7 @@ var useGetSelfEventRegistrationPurchaseAddOns = (eventId, registrationId, purcha
3373
3457
  }),
3374
3458
  {
3375
3459
  ...options,
3376
- enabled: !!eventId && !!registrationId && !!purchaseId && (options?.enabled ?? true)
3460
+ enabled: !!authenticated && !!eventId && !!registrationId && !!purchaseId && (options?.enabled ?? true)
3377
3461
  }
3378
3462
  );
3379
3463
  };
@@ -3414,6 +3498,7 @@ var GetSelfEventRegistrationPurchaseReservationSections = async ({
3414
3498
  return data;
3415
3499
  };
3416
3500
  var useGetSelfEventRegistrationPurchaseReservationSections = (eventId, registrationId, purchaseId, options = {}) => {
3501
+ const { authenticated } = useConnectedXM();
3417
3502
  return useConnectedSingleQuery_default(
3418
3503
  SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_KEY(
3419
3504
  eventId,
@@ -3428,7 +3513,7 @@ var useGetSelfEventRegistrationPurchaseReservationSections = (eventId, registrat
3428
3513
  }),
3429
3514
  {
3430
3515
  ...options,
3431
- enabled: !!eventId && !!registrationId && !!purchaseId && (options?.enabled ?? true)
3516
+ enabled: !!authenticated && !!eventId && !!registrationId && !!purchaseId && (options?.enabled ?? true)
3432
3517
  }
3433
3518
  );
3434
3519
  };
@@ -3456,6 +3541,7 @@ var GetSelfEventRegistrationStatus = async ({
3456
3541
  return data;
3457
3542
  };
3458
3543
  var useGetSelfEventRegistrationStatus = (eventId, selfId, options = {}) => {
3544
+ const { authenticated } = useConnectedXM();
3459
3545
  return useConnectedSingleQuery_default(
3460
3546
  SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY(eventId),
3461
3547
  (params) => GetSelfEventRegistrationStatus({
@@ -3464,7 +3550,7 @@ var useGetSelfEventRegistrationStatus = (eventId, selfId, options = {}) => {
3464
3550
  }),
3465
3551
  {
3466
3552
  ...options,
3467
- enabled: !!eventId && !!selfId && (options?.enabled ?? true)
3553
+ enabled: !!authenticated && !!eventId && !!selfId && (options?.enabled ?? true)
3468
3554
  }
3469
3555
  );
3470
3556
  };
@@ -3508,13 +3594,14 @@ var GetSelfSubscriptions = async ({
3508
3594
  return data;
3509
3595
  };
3510
3596
  var useGetSelfSubscriptions = (status, params = {}, options = {}) => {
3597
+ const { authenticated } = useConnectedXM();
3511
3598
  return useConnectedInfiniteQuery(
3512
3599
  SELF_SUBSCRIPTIONS_QUERY_KEY(status),
3513
3600
  (params2) => GetSelfSubscriptions({ status, ...params2 }),
3514
3601
  params,
3515
3602
  {
3516
3603
  ...options,
3517
- enabled: options.enabled ?? true
3604
+ enabled: !!authenticated && (options?.enabled ?? true)
3518
3605
  }
3519
3606
  );
3520
3607
  };
@@ -3530,12 +3617,13 @@ var GetSelfSubcription = async ({
3530
3617
  return data;
3531
3618
  };
3532
3619
  var useGetSelfSubcription = (subscriptionId = "", options = {}) => {
3620
+ const { authenticated } = useConnectedXM();
3533
3621
  return useConnectedSingleQuery(
3534
3622
  SELF_SUBSCRIPTION_QUERY_KEY(subscriptionId),
3535
3623
  (params) => GetSelfSubcription({ subscriptionId, ...params }),
3536
3624
  {
3537
3625
  ...options,
3538
- enabled: !!subscriptionId && (options?.enabled ?? true)
3626
+ enabled: !!authenticated && !!subscriptionId && (options?.enabled ?? true)
3539
3627
  }
3540
3628
  );
3541
3629
  };
@@ -3565,13 +3653,69 @@ var GetSelfSubscriptionPayments = async ({
3565
3653
  return data;
3566
3654
  };
3567
3655
  var useGetSelfSubscriptionPayments = (subscriptionId, params = {}, options = {}) => {
3656
+ const { authenticated } = useConnectedXM();
3568
3657
  return useConnectedInfiniteQuery(
3569
3658
  SELF_SUBSCRIPTION_PAYMENTS_QUERY_KEY(subscriptionId),
3570
3659
  (params2) => GetSelfSubscriptionPayments({ ...params2, subscriptionId }),
3571
3660
  params,
3572
3661
  {
3573
3662
  ...options,
3574
- enabled: options.enabled ?? true
3663
+ enabled: !!authenticated && (options?.enabled ?? true)
3664
+ }
3665
+ );
3666
+ };
3667
+
3668
+ // src/queries/self/useGetSelfRelationships.ts
3669
+ var SELF_RELATIONSHIPS_QUERY_KEY = () => {
3670
+ const keys = [...SELF_QUERY_KEY(), "RELATIONSHIPS"];
3671
+ return keys;
3672
+ };
3673
+ var ADD_SELF_RELATIONSHIP = (client, baseKeys = ["en"], type, id, value = true) => {
3674
+ client.setQueryData(
3675
+ [...SELF_RELATIONSHIPS_QUERY_KEY(), ...GetBaseSingleQueryKeys(...baseKeys)],
3676
+ (prev) => ({
3677
+ ...prev,
3678
+ [type]: {
3679
+ ...prev[type],
3680
+ [id]: value
3681
+ }
3682
+ })
3683
+ );
3684
+ };
3685
+ var REMOVE_SELF_RELATIONSHIP = (client, baseKeys = ["en"], type, id, value = false) => {
3686
+ client.setQueryData(
3687
+ [...SELF_RELATIONSHIPS_QUERY_KEY(), ...GetBaseSingleQueryKeys(...baseKeys)],
3688
+ (prev) => ({
3689
+ ...prev,
3690
+ [type]: {
3691
+ ...prev[type],
3692
+ [id]: value
3693
+ }
3694
+ })
3695
+ );
3696
+ };
3697
+ var GetSelfRelationships = async ({
3698
+ clientApiParams
3699
+ }) => {
3700
+ const clientApi = await GetClientAPI({
3701
+ ...clientApiParams
3702
+ });
3703
+ const { data } = await clientApi.get(`/self/relationships`);
3704
+ return data;
3705
+ };
3706
+ var useGetSelfRelationships = (options = {}) => {
3707
+ const { authenticated } = useConnectedXM();
3708
+ return useConnectedSingleQuery(
3709
+ SELF_RELATIONSHIPS_QUERY_KEY(),
3710
+ (params) => GetSelfRelationships({ ...params }),
3711
+ {
3712
+ staleTime: 1e3 * 60 * 60,
3713
+ gcTime: 1e3 * 60 * 60,
3714
+ refetchOnMount: false,
3715
+ refetchOnWindowFocus: false,
3716
+ refetchOnReconnect: false,
3717
+ ...options,
3718
+ enabled: !!authenticated && (options?.enabled ?? true)
3575
3719
  }
3576
3720
  );
3577
3721
  };
@@ -3610,12 +3754,14 @@ var GetSelfActivities = async ({
3610
3754
  return data;
3611
3755
  };
3612
3756
  var useGetSelfActivities = (params = {}, options = {}) => {
3757
+ const { authenticated } = useConnectedXM();
3613
3758
  return useConnectedInfiniteQuery(
3614
3759
  SELF_ACTIVITIES_QUERY_KEY(),
3615
3760
  (params2) => GetSelfActivities({ ...params2 }),
3616
3761
  params,
3617
3762
  {
3618
- ...options
3763
+ ...options,
3764
+ enabled: !!authenticated && (options?.enabled ?? true)
3619
3765
  }
3620
3766
  );
3621
3767
  };
@@ -3631,12 +3777,13 @@ var GetSelfAnnouncement = async ({
3631
3777
  return data;
3632
3778
  };
3633
3779
  var useGetSelfAnnouncement = (announcementId, options = {}) => {
3780
+ const { authenticated } = useConnectedXM();
3634
3781
  return useConnectedSingleQuery(
3635
3782
  SELF_ANNOUNCEMENT_QUERY_KEY(announcementId),
3636
3783
  (params) => GetSelfAnnouncement({ announcementId, ...params }),
3637
3784
  {
3638
3785
  ...options,
3639
- enabled: !!announcementId && (options?.enabled ?? true)
3786
+ enabled: !!authenticated && !!announcementId && (options?.enabled ?? true)
3640
3787
  }
3641
3788
  );
3642
3789
  };
@@ -3665,12 +3812,14 @@ var GetSelfCommunityMemberships = async ({
3665
3812
  return data;
3666
3813
  };
3667
3814
  var useGetSelfCommunityMemberships = (params = {}, options = {}) => {
3815
+ const { authenticated } = useConnectedXM();
3668
3816
  return useConnectedInfiniteQuery(
3669
3817
  SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY(),
3670
3818
  (params2) => GetSelfCommunityMemberships({ ...params2 }),
3671
3819
  params,
3672
3820
  {
3673
- ...options
3821
+ ...options,
3822
+ enabled: !!authenticated && (options?.enabled ?? true)
3674
3823
  }
3675
3824
  );
3676
3825
  };
@@ -3697,12 +3846,13 @@ var GetSelfCommunityMembership = async ({
3697
3846
  return data;
3698
3847
  };
3699
3848
  var useGetSelfCommunityMembership = (communityId, options = {}) => {
3849
+ const { authenticated } = useConnectedXM();
3700
3850
  return useConnectedSingleQuery(
3701
3851
  SELF_COMMUNITY_MEMBERSHIP_QUERY_KEY(communityId),
3702
3852
  (params) => GetSelfCommunityMembership({ communityId, ...params }),
3703
3853
  {
3704
3854
  ...options,
3705
- enabled: !!communityId && (options?.enabled ?? true)
3855
+ enabled: !!authenticated && !!communityId && (options?.enabled ?? true)
3706
3856
  }
3707
3857
  );
3708
3858
  };
@@ -3741,12 +3891,14 @@ var GetSelfDelegateOf = async ({
3741
3891
  return data;
3742
3892
  };
3743
3893
  var useGetSelfDelegateOf = (params = {}, options = {}) => {
3894
+ const { authenticated } = useConnectedXM();
3744
3895
  return useConnectedInfiniteQuery(
3745
3896
  SELF_DELEGATE_OF_QUERY_KEY(),
3746
3897
  (params2) => GetSelfDelegateOf({ ...params2 }),
3747
3898
  params,
3748
3899
  {
3749
- ...options
3900
+ ...options,
3901
+ enabled: !!authenticated && (options?.enabled ?? true)
3750
3902
  }
3751
3903
  );
3752
3904
  };
@@ -3785,12 +3937,14 @@ var GetSelfDelegates = async ({
3785
3937
  return data;
3786
3938
  };
3787
3939
  var useGetSelfDelegates = (params = {}, options = {}) => {
3940
+ const { authenticated } = useConnectedXM();
3788
3941
  return useConnectedInfiniteQuery(
3789
3942
  SELF_DELEGATES_QUERY_KEY(),
3790
3943
  (params2) => GetSelfDelegates(params2),
3791
3944
  params,
3792
3945
  {
3793
- ...options
3946
+ ...options,
3947
+ enabled: !!authenticated && (options?.enabled ?? true)
3794
3948
  }
3795
3949
  );
3796
3950
  };
@@ -3832,12 +3986,14 @@ var GetSelfEvents = async ({
3832
3986
  return data;
3833
3987
  };
3834
3988
  var useGetSelfEvents = (past = false, params = {}, options = {}) => {
3989
+ const { authenticated } = useConnectedXM();
3835
3990
  return useConnectedInfiniteQuery(
3836
3991
  SELF_EVENTS_QUERY_KEY(past),
3837
3992
  (params2) => GetSelfEvents({ ...params2, past }),
3838
3993
  params,
3839
3994
  {
3840
- ...options
3995
+ ...options,
3996
+ enabled: !!authenticated && (options?.enabled ?? true)
3841
3997
  }
3842
3998
  );
3843
3999
  };
@@ -3879,13 +4035,14 @@ var GetSelfEventSessions = async ({
3879
4035
  return data;
3880
4036
  };
3881
4037
  var useGetSelfEventSessions = (eventId, params = {}, options = {}) => {
4038
+ const { authenticated } = useConnectedXM();
3882
4039
  return useConnectedInfiniteQuery(
3883
4040
  SELF_EVENT_SESSIONS_QUERY_KEY(eventId),
3884
4041
  (params2) => GetSelfEventSessions({ eventId, ...params2 }),
3885
4042
  params,
3886
4043
  {
3887
4044
  ...options,
3888
- enabled: !!eventId && (options.enabled ?? true)
4045
+ enabled: !!authenticated && !!eventId && (options?.enabled ?? true)
3889
4046
  }
3890
4047
  );
3891
4048
  };
@@ -3924,13 +4081,14 @@ var GetSelfFeed = async ({
3924
4081
  return data;
3925
4082
  };
3926
4083
  var useGetSelfFeed = (params = {}, options = {}) => {
4084
+ const { authenticated } = useConnectedXM();
3927
4085
  return useConnectedInfiniteQuery(
3928
4086
  SELF_FEED_QUERY_KEY(),
3929
4087
  (params2) => GetSelfFeed(params2),
3930
4088
  params,
3931
4089
  {
3932
4090
  ...options,
3933
- enabled: options.enabled ?? true
4091
+ enabled: !!authenticated && (options?.enabled ?? true)
3934
4092
  }
3935
4093
  );
3936
4094
  };
@@ -3959,12 +4117,14 @@ var GetSelfInterests = async ({
3959
4117
  return data;
3960
4118
  };
3961
4119
  var useGetSelfInterests = (params = {}, options = {}) => {
4120
+ const { authenticated } = useConnectedXM();
3962
4121
  return useConnectedInfiniteQuery(
3963
4122
  SELF_INTERESTS_QUERY_KEY(),
3964
4123
  (params2) => GetSelfInterests({ ...params2 }),
3965
4124
  params,
3966
4125
  {
3967
- ...options
4126
+ ...options,
4127
+ enabled: !!authenticated && (options?.enabled ?? true)
3968
4128
  }
3969
4129
  );
3970
4130
  };
@@ -3982,11 +4142,13 @@ var GetSelfNotificationPreferences = async ({
3982
4142
  return data;
3983
4143
  };
3984
4144
  var useGetSelfNotificationPreferences = (options = {}) => {
4145
+ const { authenticated } = useConnectedXM();
3985
4146
  return useConnectedSingleQuery(
3986
4147
  SELF_PREFERENCES_QUERY_KEY(),
3987
4148
  (params) => GetSelfNotificationPreferences({ ...params }),
3988
4149
  {
3989
- ...options
4150
+ ...options,
4151
+ enabled: authenticated && (options?.enabled ?? true)
3990
4152
  }
3991
4153
  );
3992
4154
  };
@@ -4018,13 +4180,15 @@ var GetSelfNotifications = async ({
4018
4180
  return data;
4019
4181
  };
4020
4182
  var useGetSelfNotifications = (filters = "", params = {}, options = {}) => {
4183
+ const { authenticated } = useConnectedXM();
4021
4184
  return useConnectedInfiniteQuery(
4022
4185
  SELF_NOTIFICATIONS_QUERY_KEY(filters),
4023
4186
  (params2) => GetSelfNotifications({ ...params2, filters }),
4024
4187
  params,
4025
4188
  {
4026
4189
  staleTime: 0,
4027
- ...options
4190
+ ...options,
4191
+ enabled: !!authenticated && (options?.enabled ?? true)
4028
4192
  }
4029
4193
  );
4030
4194
  };
@@ -4044,11 +4208,13 @@ var GetSelfNewNotificationsCount = async ({
4044
4208
  return data;
4045
4209
  };
4046
4210
  var useGetSelfNewNotificationsCount = (filters = "", options = {}) => {
4211
+ const { authenticated } = useConnectedXM();
4047
4212
  return useConnectedSingleQuery_default(
4048
4213
  SELF_NOTIFICATION_COUNT_QUERY_KEY(filters),
4049
4214
  (params) => GetSelfNewNotificationsCount({ filters, ...params }),
4050
4215
  {
4051
- ...options
4216
+ ...options,
4217
+ enabled: !!authenticated && (options?.enabled ?? true)
4052
4218
  }
4053
4219
  );
4054
4220
  };
@@ -4087,12 +4253,14 @@ var GetSelfPushDevices = async ({
4087
4253
  return data;
4088
4254
  };
4089
4255
  var useGetSelfPushDevices = (params = {}, options = {}) => {
4256
+ const { authenticated } = useConnectedXM();
4090
4257
  return useConnectedInfiniteQuery(
4091
4258
  SELF_PUSH_DEVICES_QUERY_KEY(),
4092
4259
  (params2) => GetSelfPushDevices({ ...params2 }),
4093
4260
  params,
4094
4261
  {
4095
- ...options
4262
+ ...options,
4263
+ enabled: !!authenticated && (options?.enabled ?? true)
4096
4264
  }
4097
4265
  );
4098
4266
  };
@@ -4120,12 +4288,13 @@ var GetSelfPushDevice = async ({
4120
4288
  return data;
4121
4289
  };
4122
4290
  var useGetSelfPushDevice = (pushDeviceId, options = {}) => {
4291
+ const { authenticated } = useConnectedXM();
4123
4292
  return useConnectedSingleQuery(
4124
4293
  SELF_PUSH_DEVICE_QUERY_KEY(pushDeviceId),
4125
4294
  (params) => GetSelfPushDevice({ pushDeviceId, ...params }),
4126
4295
  {
4127
4296
  ...options,
4128
- enabled: !!pushDeviceId && (options?.enabled ?? true)
4297
+ enabled: !!authenticated && !!pushDeviceId && (options?.enabled ?? true)
4129
4298
  }
4130
4299
  );
4131
4300
  };
@@ -4170,12 +4339,14 @@ var GetSelfRecommendations = async ({
4170
4339
  return data;
4171
4340
  };
4172
4341
  var useGetSelfRecommendations = (type, eventId = "", params = {}, options = {}) => {
4342
+ const { authenticated } = useConnectedXM();
4173
4343
  return useConnectedInfiniteQuery(
4174
4344
  SELF_RECOMMENDATIONS_QUERY_KEY(type, eventId),
4175
4345
  (params2) => GetSelfRecommendations({ ...params2, eventId, type }),
4176
4346
  params,
4177
4347
  {
4178
- ...options
4348
+ ...options,
4349
+ enabled: !!authenticated && (options?.enabled ?? true)
4179
4350
  }
4180
4351
  );
4181
4352
  };
@@ -4204,13 +4375,14 @@ var GetSelfTransfers = async ({
4204
4375
  return data;
4205
4376
  };
4206
4377
  var useGetSelfTransfers = (params = {}, options = {}) => {
4378
+ const { authenticated } = useConnectedXM();
4207
4379
  return useConnectedInfiniteQuery(
4208
4380
  SELF_TRANSFERS_QUERY_KEY(),
4209
4381
  (params2) => GetSelfTransfers({ ...params2 }),
4210
4382
  params,
4211
4383
  {
4212
4384
  ...options,
4213
- enabled: options.enabled ?? true
4385
+ enabled: !!authenticated && (options?.enabled ?? true)
4214
4386
  }
4215
4387
  );
4216
4388
  };
@@ -4226,12 +4398,13 @@ var GetSelfTransfer = async ({
4226
4398
  return data;
4227
4399
  };
4228
4400
  var useGetSelfTransfer = (transferId = "", options = {}) => {
4401
+ const { authenticated } = useConnectedXM();
4229
4402
  return useConnectedSingleQuery(
4230
4403
  SELF_PENDING_TRANSFER_QUERY_KEY(transferId),
4231
4404
  (params) => GetSelfTransfer({ ...params, transferId }),
4232
4405
  {
4233
4406
  ...options,
4234
- enabled: !!transferId && (options?.enabled ?? true)
4407
+ enabled: !!authenticated && !!transferId && (options?.enabled ?? true)
4235
4408
  }
4236
4409
  );
4237
4410
  };
@@ -4378,7 +4551,7 @@ var GetSeriesEvents = async ({
4378
4551
  var useGetSeriesEvents = (seriesId = "", past, include, params = {}, options = {}) => {
4379
4552
  return useConnectedInfiniteQuery(
4380
4553
  SERIES_EVENTS_QUERY_KEY(seriesId, past, include),
4381
- (params2) => GetSeriesEvents({ seriesId, past, ...params2 }),
4554
+ (params2) => GetSeriesEvents({ seriesId, past, include, ...params2 }),
4382
4555
  params,
4383
4556
  {
4384
4557
  ...options,
@@ -4596,7 +4769,7 @@ var useGetSelfEventListings = (past = false, params = {}, options = {}) => {
4596
4769
  params,
4597
4770
  {
4598
4771
  ...options,
4599
- enabled: options.enabled ?? true
4772
+ enabled: options?.enabled ?? true
4600
4773
  }
4601
4774
  );
4602
4775
  };
@@ -4703,6 +4876,42 @@ var useGetSelfEventListingAnnouncement = (eventId = "", announcementId = "", opt
4703
4876
  );
4704
4877
  };
4705
4878
 
4879
+ // src/queries/listings/useGetListingQuestions.ts
4880
+ var LISTING_QUESTIONS_QUERY_KEY = (eventId) => [
4881
+ ...LISTING_QUERY_KEY(eventId),
4882
+ "QUESTIONS"
4883
+ ];
4884
+ var GetSelfEventListingQuestions = async ({
4885
+ eventId,
4886
+ pageParam,
4887
+ pageSize,
4888
+ orderBy,
4889
+ search,
4890
+ clientApiParams
4891
+ }) => {
4892
+ const clientApi = await GetClientAPI(clientApiParams);
4893
+ const { data } = await clientApi.get(`/listings/${eventId}/questions`, {
4894
+ params: {
4895
+ page: pageParam || void 0,
4896
+ pageSize: pageSize || void 0,
4897
+ orderBy: orderBy || void 0,
4898
+ search: search || void 0
4899
+ }
4900
+ });
4901
+ return data;
4902
+ };
4903
+ var useGetSelfEventListingQuestions = (eventId, params = {}, options = {}) => {
4904
+ return useConnectedInfiniteQuery(
4905
+ LISTING_QUESTIONS_QUERY_KEY(eventId),
4906
+ (params2) => GetSelfEventListingQuestions({ eventId, ...params2 }),
4907
+ params,
4908
+ {
4909
+ ...options,
4910
+ enabled: !!eventId && (options?.enabled ?? true)
4911
+ }
4912
+ );
4913
+ };
4914
+
4706
4915
  // src/queries/listings/useGetListingRegistrations.ts
4707
4916
  var LISTING_REGISTRATIONS_QUERY_KEY = (eventId, status) => [...LISTING_QUERY_KEY(eventId), "REGISTRATIONS", status ?? "ALL"];
4708
4917
  var GetSelfEventListingRegistrations = async ({
@@ -4869,6 +5078,12 @@ var FollowAccount = async ({
4869
5078
  queryClient.invalidateQueries({
4870
5079
  queryKey: ACCOUNT_FOLLOWERS_QUERY_KEY(data.data.id)
4871
5080
  });
5081
+ ADD_SELF_RELATIONSHIP(
5082
+ queryClient,
5083
+ [clientApiParams.locale],
5084
+ "accounts",
5085
+ accountId
5086
+ );
4872
5087
  }
4873
5088
  return data;
4874
5089
  };
@@ -4896,6 +5111,12 @@ var UnfollowAccount = async ({
4896
5111
  queryClient.invalidateQueries({
4897
5112
  queryKey: ACCOUNT_FOLLOWERS_QUERY_KEY(data.data.id)
4898
5113
  });
5114
+ REMOVE_SELF_RELATIONSHIP(
5115
+ queryClient,
5116
+ [clientApiParams.locale],
5117
+ "accounts",
5118
+ accountId
5119
+ );
4899
5120
  }
4900
5121
  return data;
4901
5122
  };
@@ -5405,6 +5626,12 @@ var CaptureSelfEventRegistrationPayment = async ({
5405
5626
  queryClient.invalidateQueries({
5406
5627
  queryKey: SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY(eventId)
5407
5628
  });
5629
+ ADD_SELF_RELATIONSHIP(
5630
+ queryClient,
5631
+ [clientApiParams.locale],
5632
+ "events",
5633
+ eventId
5634
+ );
5408
5635
  }
5409
5636
  return data;
5410
5637
  };
@@ -5541,6 +5768,12 @@ var SubmitSelfEventRegistration = async ({
5541
5768
  queryClient.invalidateQueries({
5542
5769
  queryKey: SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY(eventId)
5543
5770
  });
5771
+ ADD_SELF_RELATIONSHIP(
5772
+ queryClient,
5773
+ [clientApiParams.locale],
5774
+ "events",
5775
+ eventId
5776
+ );
5544
5777
  }
5545
5778
  return data;
5546
5779
  };
@@ -6496,6 +6729,13 @@ var CreateCommunity = async ({
6496
6729
  queryClient.invalidateQueries({
6497
6730
  queryKey: COMMUNITIES_QUERY_KEY()
6498
6731
  });
6732
+ ADD_SELF_RELATIONSHIP(
6733
+ queryClient,
6734
+ [clientApiParams.locale],
6735
+ "communities",
6736
+ data.data.id,
6737
+ "moderator"
6738
+ );
6499
6739
  }
6500
6740
  return data;
6501
6741
  };
@@ -6613,6 +6853,13 @@ var JoinCommunity = async ({
6613
6853
  queryClient.invalidateQueries({
6614
6854
  queryKey: SELF_COMMUNITY_MEMBERSHIP_QUERY_KEY(communityId)
6615
6855
  });
6856
+ ADD_SELF_RELATIONSHIP(
6857
+ queryClient,
6858
+ [clientApiParams.locale],
6859
+ "communities",
6860
+ communityId,
6861
+ "member"
6862
+ );
6616
6863
  }
6617
6864
  return data;
6618
6865
  };
@@ -6643,6 +6890,12 @@ var LeaveCommunity = async ({
6643
6890
  queryClient.invalidateQueries({
6644
6891
  queryKey: SELF_COMMUNITY_MEMBERSHIP_QUERY_KEY(communityId)
6645
6892
  });
6893
+ REMOVE_SELF_RELATIONSHIP(
6894
+ queryClient,
6895
+ [clientApiParams.locale],
6896
+ "communities",
6897
+ communityId
6898
+ );
6646
6899
  }
6647
6900
  return data;
6648
6901
  };
@@ -7018,6 +7271,46 @@ var useCreateListingAnnouncement = (options = {}) => {
7018
7271
  return useConnectedMutation_default(CreateListingAnnouncement, options);
7019
7272
  };
7020
7273
 
7274
+ // src/mutations/listings/useCreateListingQuestion.ts
7275
+ var CreateListingQuestion = async ({
7276
+ eventId,
7277
+ question,
7278
+ clientApiParams,
7279
+ queryClient
7280
+ }) => {
7281
+ const clientApi = await GetClientAPI(clientApiParams);
7282
+ const { data } = await clientApi.post(`/listings/${eventId}/questions`, question);
7283
+ if (queryClient && data.status === "ok") {
7284
+ queryClient.invalidateQueries({
7285
+ queryKey: LISTING_QUESTIONS_QUERY_KEY(eventId)
7286
+ });
7287
+ }
7288
+ return data;
7289
+ };
7290
+ var useCreateListingQuestion = (options = {}) => {
7291
+ return useConnectedMutation_default(CreateListingQuestion, options);
7292
+ };
7293
+
7294
+ // src/mutations/listings/useDeleteListingQuestion.ts
7295
+ var DeleteListingQuestion = async ({
7296
+ eventId,
7297
+ questionId,
7298
+ clientApiParams,
7299
+ queryClient
7300
+ }) => {
7301
+ const clientApi = await GetClientAPI(clientApiParams);
7302
+ const { data } = await clientApi.delete(`/listings/${eventId}/questions/${questionId}`);
7303
+ if (queryClient && data.status === "ok") {
7304
+ queryClient.invalidateQueries({
7305
+ queryKey: LISTING_QUESTIONS_QUERY_KEY(eventId)
7306
+ });
7307
+ }
7308
+ return data;
7309
+ };
7310
+ var useDeleteListingQuestion = (options = {}) => {
7311
+ return useConnectedMutation_default(DeleteListingQuestion, options);
7312
+ };
7313
+
7021
7314
  // src/mutations/listings/useDeleteListingSession.ts
7022
7315
  var DeleteListingSession = async ({
7023
7316
  eventId,
@@ -7142,6 +7435,28 @@ var useUpdateListing = (options = {}) => {
7142
7435
  return useConnectedMutation_default(UpdateListing, options);
7143
7436
  };
7144
7437
 
7438
+ // src/mutations/listings/useUpdateListingQuestion.ts
7439
+ var UpdateListingQuestion = async ({
7440
+ eventId,
7441
+ question,
7442
+ questionId,
7443
+ clientApiParams,
7444
+ queryClient
7445
+ }) => {
7446
+ const clientApi = await GetClientAPI(clientApiParams);
7447
+ const { data } = await clientApi.put(`/listings/${eventId}/questions/${questionId}`, question);
7448
+ if (queryClient && data.status === "ok") {
7449
+ queryClient.invalidateQueries({
7450
+ queryKey: LISTING_QUESTIONS_QUERY_KEY(eventId),
7451
+ exact: false
7452
+ });
7453
+ }
7454
+ return data;
7455
+ };
7456
+ var useUpdateListingQuestion = (options = {}) => {
7457
+ return useConnectedMutation_default(UpdateListingQuestion, options);
7458
+ };
7459
+
7145
7460
  // src/mutations/listings/useUpdateListingSession.ts
7146
7461
  var UpdateListingSession = async ({
7147
7462
  eventId,
@@ -7210,6 +7525,7 @@ export {
7210
7525
  ACTIVITIES_QUERY_KEY,
7211
7526
  ACTIVITY_COMMENTS_QUERY_KEY,
7212
7527
  ACTIVITY_QUERY_KEY,
7528
+ ADD_SELF_RELATIONSHIP,
7213
7529
  ADVERTISEMENT_QUERY_KEY,
7214
7530
  AcceptCommunityInvitation,
7215
7531
  AcceptCommunityRequest,
@@ -7262,6 +7578,7 @@ export {
7262
7578
  CreateEventLead,
7263
7579
  CreateListing,
7264
7580
  CreateListingAnnouncement,
7581
+ CreateListingQuestion,
7265
7582
  CreateListingSession,
7266
7583
  CreateListingSpeaker,
7267
7584
  CreateSelfChatChannel,
@@ -7274,6 +7591,7 @@ export {
7274
7591
  DeleteActivity,
7275
7592
  DeleteCommunityInvitation,
7276
7593
  DeleteListing,
7594
+ DeleteListingQuestion,
7277
7595
  DeleteListingSession,
7278
7596
  DeleteListingSpeaker,
7279
7597
  DeleteReshare,
@@ -7378,6 +7696,7 @@ export {
7378
7696
  GetSelfEventListing,
7379
7697
  GetSelfEventListingAnnouncement,
7380
7698
  GetSelfEventListingAnnouncements,
7699
+ GetSelfEventListingQuestions,
7381
7700
  GetSelfEventListingRegistration,
7382
7701
  GetSelfEventListingRegistrations,
7383
7702
  GetSelfEventListings,
@@ -7398,6 +7717,7 @@ export {
7398
7717
  GetSelfPushDevice,
7399
7718
  GetSelfPushDevices,
7400
7719
  GetSelfRecommendations,
7720
+ GetSelfRelationships,
7401
7721
  GetSelfSubcription,
7402
7722
  GetSelfSubscriptionPayments,
7403
7723
  GetSelfSubscriptions,
@@ -7420,6 +7740,7 @@ export {
7420
7740
  LISTING_ANNOUNCEMENTS_QUERY_KEY,
7421
7741
  LISTING_ANNOUNCEMENT_QUERY_KEY,
7422
7742
  LISTING_QUERY_KEY,
7743
+ LISTING_QUESTIONS_QUERY_KEY,
7423
7744
  LISTING_REGISTRATIONS_QUERY_KEY,
7424
7745
  LISTING_REGISTRATION_QUERY_KEY,
7425
7746
  LeaveCommunity,
@@ -7435,6 +7756,7 @@ export {
7435
7756
  PromoteCommunityMember,
7436
7757
  PushDeviceAppType,
7437
7758
  PushService,
7759
+ REMOVE_SELF_RELATIONSHIP,
7438
7760
  RegisterCancelledEventRegistration,
7439
7761
  RegistrationQuestionType,
7440
7762
  RegistrationStatus,
@@ -7478,6 +7800,7 @@ export {
7478
7800
  SELF_PUSH_DEVICE_QUERY_KEY,
7479
7801
  SELF_QUERY_KEY,
7480
7802
  SELF_RECOMMENDATIONS_QUERY_KEY,
7803
+ SELF_RELATIONSHIPS_QUERY_KEY,
7481
7804
  SELF_SUBSCRIPTIONS_QUERY_KEY,
7482
7805
  SELF_SUBSCRIPTION_PAYMENTS_QUERY_KEY,
7483
7806
  SELF_SUBSCRIPTION_QUERY_KEY,
@@ -7573,6 +7896,7 @@ export {
7573
7896
  UnlikeActivity,
7574
7897
  UpdateCommunity,
7575
7898
  UpdateListing,
7899
+ UpdateListingQuestion,
7576
7900
  UpdateListingSession,
7577
7901
  UpdateListingSpeaker,
7578
7902
  UpdateSelf,
@@ -7621,6 +7945,7 @@ export {
7621
7945
  isTypeTicket,
7622
7946
  isTypeTrack,
7623
7947
  isTypeTransfer,
7948
+ isUUID,
7624
7949
  setFirstPageData,
7625
7950
  useAcceptCommunityInvitation,
7626
7951
  useAcceptCommunityRequest,
@@ -7649,6 +7974,7 @@ export {
7649
7974
  useCreateEventLead,
7650
7975
  useCreateListing,
7651
7976
  useCreateListingAnnouncement,
7977
+ useCreateListingQuestion,
7652
7978
  useCreateListingSession,
7653
7979
  useCreateListingSpeaker,
7654
7980
  useCreateSelfChatChannel,
@@ -7660,6 +7986,7 @@ export {
7660
7986
  useDeleteActivity,
7661
7987
  useDeleteCommunityInvitation,
7662
7988
  useDeleteListing,
7989
+ useDeleteListingQuestion,
7663
7990
  useDeleteListingSession,
7664
7991
  useDeleteListingSpeaker,
7665
7992
  useDeleteReshare,
@@ -7740,6 +8067,7 @@ export {
7740
8067
  useGetSelfEventListing,
7741
8068
  useGetSelfEventListingAnnouncement,
7742
8069
  useGetSelfEventListingAnnouncements,
8070
+ useGetSelfEventListingQuestions,
7743
8071
  useGetSelfEventListingRegistration,
7744
8072
  useGetSelfEventListings,
7745
8073
  useGetSelfEventListingsRegistrations,
@@ -7760,6 +8088,7 @@ export {
7760
8088
  useGetSelfPushDevice,
7761
8089
  useGetSelfPushDevices,
7762
8090
  useGetSelfRecommendations,
8091
+ useGetSelfRelationships,
7763
8092
  useGetSelfSubcription,
7764
8093
  useGetSelfSubscriptionPayments,
7765
8094
  useGetSelfSubscriptions,
@@ -7770,6 +8099,10 @@ export {
7770
8099
  useGetSeriesList,
7771
8100
  useGetSponsor,
7772
8101
  useGetSponsors,
8102
+ useIsAccountFollowing,
8103
+ useIsChannelSubscribed,
8104
+ useIsCommunityMember,
8105
+ useIsEventRegistered,
7773
8106
  useJoinCommunity,
7774
8107
  useLeaveCommunity,
7775
8108
  useLeaveSelfChatChannel,
@@ -7797,6 +8130,7 @@ export {
7797
8130
  useUnlikeActivity,
7798
8131
  useUpdateCommunity,
7799
8132
  useUpdateListing,
8133
+ useUpdateListingQuestion,
7800
8134
  useUpdateListingSession,
7801
8135
  useUpdateListingSpeaker,
7802
8136
  useUpdateSelf,