@connectedxm/client 0.3.6 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -41,14 +41,13 @@ __export(src_exports, {
41
41
  ACTIVITY_COMMENTS_QUERY_KEY: () => ACTIVITY_COMMENTS_QUERY_KEY,
42
42
  ACTIVITY_QUERY_KEY: () => ACTIVITY_QUERY_KEY,
43
43
  ADVERTISEMENT_QUERY_KEY: () => ADVERTISEMENT_QUERY_KEY,
44
+ AcceptCommunityInvitation: () => AcceptCommunityInvitation,
45
+ AcceptCommunityRequest: () => AcceptCommunityRequest,
44
46
  AcceptTransfer: () => AcceptTransfer,
45
47
  AccountType: () => AccountType,
46
- AddCommunityEvent: () => AddCommunityEvent,
48
+ AddListingSponsor: () => AddListingSponsor,
47
49
  AddSelfChatChannelMember: () => AddSelfChatChannelMember,
48
50
  AddSelfDelegate: () => AddSelfDelegate,
49
- AddSelfEventListingSession: () => AddSelfEventListingSession,
50
- AddSelfEventListingSpeaker: () => AddSelfEventListingSpeaker,
51
- AddSelfEventListingSponsor: () => AddSelfEventListingSponsor,
52
51
  AddSelfEventRegistrationPurchase: () => AddSelfEventRegistrationPurchase,
53
52
  AddSelfEventRegistrationPurchaseAddOn: () => AddSelfEventRegistrationPurchaseAddOn,
54
53
  AddSelfEventSession: () => AddSelfEventSession,
@@ -59,10 +58,12 @@ __export(src_exports, {
59
58
  COMMUNITY_ACTIVITIES_QUERY_KEY: () => COMMUNITY_ACTIVITIES_QUERY_KEY,
60
59
  COMMUNITY_ANNOUNCEMENTS_QUERY_KEY: () => COMMUNITY_ANNOUNCEMENTS_QUERY_KEY,
61
60
  COMMUNITY_EVENTS_QUERY_KEY: () => COMMUNITY_EVENTS_QUERY_KEY,
61
+ COMMUNITY_INVITABLE_ACCOUNTS_QUERY_KEY: () => COMMUNITY_INVITABLE_ACCOUNTS_QUERY_KEY,
62
62
  COMMUNITY_MEDIA_QUERY_KEY: () => COMMUNITY_MEDIA_QUERY_KEY,
63
63
  COMMUNITY_MEMBERS_QUERY_KEY: () => COMMUNITY_MEMBERS_QUERY_KEY,
64
- COMMUNITY_MODERATORS_QUERY_KEY: () => COMMUNITY_MODERATORS_QUERY_KEY,
65
64
  COMMUNITY_QUERY_KEY: () => COMMUNITY_QUERY_KEY,
65
+ COMMUNITY_REQUESTS_QUERY_KEY: () => COMMUNITY_REQUESTS_QUERY_KEY,
66
+ COMMUNITY_REQUEST_QUERY_KEY: () => COMMUNITY_REQUEST_QUERY_KEY,
66
67
  COMMUNITY_SPONSORS_QUERY_KEY: () => COMMUNITY_SPONSORS_QUERY_KEY,
67
68
  CONTENTS_QUERY_KEY: () => CONTENTS_QUERY_KEY,
68
69
  CONTENT_ACTIVITIES_QUERY_KEY: () => CONTENT_ACTIVITIES_QUERY_KEY,
@@ -76,27 +77,39 @@ __export(src_exports, {
76
77
  CancelTransfer: () => CancelTransfer,
77
78
  CaptureInvoicePayment: () => CaptureInvoicePayment,
78
79
  CaptureSelfEventRegistrationPayment: () => CaptureSelfEventRegistrationPayment,
80
+ CheckinListingRegistrationPurchase: () => CheckinListingRegistrationPurchase,
79
81
  CommunityAccess: () => CommunityAccess,
80
82
  CommunityMembershipRole: () => CommunityMembershipRole,
83
+ CommunityRequestStatus: () => CommunityRequestStatus,
81
84
  CompleteEventActivation: () => CompleteEventActivation,
82
85
  ConnectedXMProvider: () => ConnectedXMProvider,
83
86
  ContentTypeFormat: () => ContentTypeFormat,
84
87
  CouponType: () => CouponType,
88
+ CreateCommunity: () => CreateCommunity,
85
89
  CreateCommunityAnnouncement: () => CreateCommunityAnnouncement,
90
+ CreateCommunityInvitations: () => CreateCommunityInvitations,
91
+ CreateCommunityRequest: () => CreateCommunityRequest,
86
92
  CreateEventLead: () => CreateEventLead,
93
+ CreateListing: () => CreateListing,
94
+ CreateListingSession: () => CreateListingSession,
95
+ CreateListingSpeaker: () => CreateListingSpeaker,
87
96
  CreateSelfChatChannel: () => CreateSelfChatChannel,
88
97
  CreateSelfChatChannelMessage: () => CreateSelfChatChannelMessage,
89
- CreateSelfEventListing: () => CreateSelfEventListing,
90
98
  CreateSubscription: () => CreateSubscription,
91
99
  CreateSupportTicket: () => CreateSupportTicket,
92
100
  CreateTeamAccount: () => CreateTeamAccount,
93
101
  Currency: () => Currency,
102
+ DeactivateCommunity: () => DeactivateCommunity,
94
103
  DeleteActivity: () => DeleteActivity,
104
+ DeleteCommunityInvitation: () => DeleteCommunityInvitation,
105
+ DeleteListingSession: () => DeleteListingSession,
106
+ DeleteListingSpeaker: () => DeleteListingSpeaker,
95
107
  DeleteReshare: () => DeleteReshare,
96
108
  DeleteSelf: () => DeleteSelf,
97
109
  DeleteSelfChatChannel: () => DeleteSelfChatChannel,
98
110
  DeleteSelfChatChannelMessage: () => DeleteSelfChatChannelMessage,
99
111
  DeleteSelfPushDevice: () => DeleteSelfPushDevice,
112
+ DemoteCommunityModerator: () => DemoteCommunityModerator,
100
113
  EVENTS_FEATURED_QUERY_KEY: () => EVENTS_FEATURED_QUERY_KEY,
101
114
  EVENTS_QUERY_KEY: () => EVENTS_QUERY_KEY,
102
115
  EVENT_ACTIVITIES_QUERY_KEY: () => EVENT_ACTIVITIES_QUERY_KEY,
@@ -138,9 +151,11 @@ __export(src_exports, {
138
151
  GetCommunityActivities: () => GetCommunityActivities,
139
152
  GetCommunityAnnouncements: () => GetCommunityAnnouncements,
140
153
  GetCommunityEvents: () => GetCommunityEvents,
154
+ GetCommunityInvitableAccounts: () => GetCommunityInvitableAccounts,
141
155
  GetCommunityMedia: () => GetCommunityMedia,
142
156
  GetCommunityMembers: () => GetCommunityMembers,
143
- GetCommunityModerators: () => GetCommunityModerators,
157
+ GetCommunityRequest: () => GetCommunityRequest,
158
+ GetCommunityRequests: () => GetCommunityRequests,
144
159
  GetCommunitySponsors: () => GetCommunitySponsors,
145
160
  GetContent: () => GetContent,
146
161
  GetContentActivities: () => GetContentActivities,
@@ -188,6 +203,7 @@ __export(src_exports, {
188
203
  GetSelfDelegateOf: () => GetSelfDelegateOf,
189
204
  GetSelfDelegates: () => GetSelfDelegates,
190
205
  GetSelfEventListing: () => GetSelfEventListing,
206
+ GetSelfEventListingRegistration: () => GetSelfEventListingRegistration,
191
207
  GetSelfEventListingRegistrations: () => GetSelfEventListingRegistrations,
192
208
  GetSelfEventListings: () => GetSelfEventListings,
193
209
  GetSelfEventRegistration: () => GetSelfEventRegistration,
@@ -196,6 +212,7 @@ __export(src_exports, {
196
212
  GetSelfEventRegistrationPurchaseAddOns: () => GetSelfEventRegistrationPurchaseAddOns,
197
213
  GetSelfEventRegistrationPurchaseReservationSections: () => GetSelfEventRegistrationPurchaseReservationSections,
198
214
  GetSelfEventRegistrationPurchaseSections: () => GetSelfEventRegistrationPurchaseSections,
215
+ GetSelfEventRegistrationStatus: () => GetSelfEventRegistrationStatus,
199
216
  GetSelfEventSessions: () => GetSelfEventSessions,
200
217
  GetSelfEvents: () => GetSelfEvents,
201
218
  GetSelfFeed: () => GetSelfFeed,
@@ -219,9 +236,15 @@ __export(src_exports, {
219
236
  INVOICE_QUERY_KEY: () => INVOICE_QUERY_KEY,
220
237
  ImageType: () => ImageType,
221
238
  InvoiceStatus: () => InvoiceStatus,
239
+ JoinCommunity: () => JoinCommunity,
222
240
  LEVELS_QUERY_KEY: () => LEVELS_QUERY_KEY,
223
241
  LEVEL_QUERY_KEY: () => LEVEL_QUERY_KEY,
224
242
  LEVEL_SPONSORS_QUERY_KEY: () => LEVEL_SPONSORS_QUERY_KEY,
243
+ LISTINGS_QUERY_KEY: () => LISTINGS_QUERY_KEY,
244
+ LISTING_QUERY_KEY: () => LISTING_QUERY_KEY,
245
+ LISTING_REGISTRATIONS_QUERY_KEY: () => LISTING_REGISTRATIONS_QUERY_KEY,
246
+ LISTING_REGISTRATION_QUERY_KEY: () => LISTING_REGISTRATION_QUERY_KEY,
247
+ LeaveCommunity: () => LeaveCommunity,
225
248
  LeaveSelfChatChannel: () => LeaveSelfChatChannel,
226
249
  LikeActivity: () => LikeActivity,
227
250
  MergeInfinitePages: () => MergeInfinitePages,
@@ -231,17 +254,18 @@ __export(src_exports, {
231
254
  ORGANIZATION_PAYMENT_INTEGRATION_QUERY_KEY: () => ORGANIZATION_PAYMENT_INTEGRATION_QUERY_KEY,
232
255
  ORGANIZATION_QUERY_KEY: () => ORGANIZATION_QUERY_KEY,
233
256
  ORGANIZATION_SUBSCRIPTIONS_QUERY_KEY: () => ORGANIZATION_SUBSCRIPTIONS_QUERY_KEY,
257
+ PromoteCommunityMember: () => PromoteCommunityMember,
234
258
  PushDeviceAppType: () => PushDeviceAppType,
235
259
  PushService: () => PushService,
236
260
  RegisterCancelledEventRegistration: () => RegisterCancelledEventRegistration,
237
261
  RegistrationQuestionType: () => RegistrationQuestionType,
238
262
  RegistrationStatus: () => RegistrationStatus,
263
+ RejectCommunityInvitation: () => RejectCommunityInvitation,
264
+ RejectCommunityRequest: () => RejectCommunityRequest,
239
265
  RejectTransfer: () => RejectTransfer,
240
- RemoveCommunityEvent: () => RemoveCommunityEvent,
266
+ RemoveCommunityMember: () => RemoveCommunityMember,
267
+ RemoveListingSponsor: () => RemoveListingSponsor,
241
268
  RemoveSelfDelegate: () => RemoveSelfDelegate,
242
- RemoveSelfEventListingSession: () => RemoveSelfEventListingSession,
243
- RemoveSelfEventListingSpeaker: () => RemoveSelfEventListingSpeaker,
244
- RemoveSelfEventListingSponsor: () => RemoveSelfEventListingSponsor,
245
269
  RemoveSelfEventRegistrationCoupon: () => RemoveSelfEventRegistrationCoupon,
246
270
  RemoveSelfEventRegistrationPurchase: () => RemoveSelfEventRegistrationPurchase,
247
271
  RemoveSelfEventRegistrationPurchaseAddOn: () => RemoveSelfEventRegistrationPurchaseAddOn,
@@ -258,15 +282,13 @@ __export(src_exports, {
258
282
  SELF_DELEGATES_QUERY_KEY: () => SELF_DELEGATES_QUERY_KEY,
259
283
  SELF_DELEGATE_OF_QUERY_KEY: () => SELF_DELEGATE_OF_QUERY_KEY,
260
284
  SELF_EVENTS_QUERY_KEY: () => SELF_EVENTS_QUERY_KEY,
261
- SELF_EVENT_LISTINGS_QUERY_KEY: () => SELF_EVENT_LISTINGS_QUERY_KEY,
262
- SELF_EVENT_LISTING_QUERY_KEY: () => SELF_EVENT_LISTING_QUERY_KEY,
263
- SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY: () => SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY,
264
285
  SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY: () => SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY,
265
286
  SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_KEY: () => SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_KEY,
266
287
  SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY: () => SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY,
267
288
  SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_KEY: () => SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_KEY,
268
289
  SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY: () => SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY,
269
290
  SELF_EVENT_REGISTRATION_QUERY_KEY: () => SELF_EVENT_REGISTRATION_QUERY_KEY,
291
+ SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY: () => SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY,
270
292
  SELF_EVENT_SESSIONS_QUERY_KEY: () => SELF_EVENT_SESSIONS_QUERY_KEY,
271
293
  SELF_FEED_QUERY_KEY: () => SELF_FEED_QUERY_KEY,
272
294
  SELF_INTERESTS_QUERY_KEY: () => SELF_INTERESTS_QUERY_KEY,
@@ -303,8 +325,9 @@ __export(src_exports, {
303
325
  SET_COMMUNITY_EVENTS_QUERY_DATA: () => SET_COMMUNITY_EVENTS_QUERY_DATA,
304
326
  SET_COMMUNITY_MEDIA_QUERY_DATA: () => SET_COMMUNITY_MEDIA_QUERY_DATA,
305
327
  SET_COMMUNITY_MEMBERS_QUERY_DATA: () => SET_COMMUNITY_MEMBERS_QUERY_DATA,
306
- SET_COMMUNITY_MODERATORS_QUERY_DATA: () => SET_COMMUNITY_MODERATORS_QUERY_DATA,
307
328
  SET_COMMUNITY_QUERY_DATA: () => SET_COMMUNITY_QUERY_DATA,
329
+ SET_COMMUNITY_REQUESTS_QUERY_DATA: () => SET_COMMUNITY_REQUESTS_QUERY_DATA,
330
+ SET_COMMUNITY_REQUEST_QUERY_DATA: () => SET_COMMUNITY_REQUEST_QUERY_DATA,
308
331
  SET_COMMUNITY_SPONSORS_QUERY_DATA: () => SET_COMMUNITY_SPONSORS_QUERY_DATA,
309
332
  SET_CONTENTS_QUERY_DATA: () => SET_CONTENTS_QUERY_DATA,
310
333
  SET_CONTENT_ACTIVITIES_QUERY_DATA: () => SET_CONTENT_ACTIVITIES_QUERY_DATA,
@@ -333,6 +356,8 @@ __export(src_exports, {
333
356
  SET_LEVELS_QUERY_DATA: () => SET_LEVELS_QUERY_DATA,
334
357
  SET_LEVEL_QUERY_DATA: () => SET_LEVEL_QUERY_DATA,
335
358
  SET_LEVEL_SPONSORS_QUERY_DATA: () => SET_LEVEL_SPONSORS_QUERY_DATA,
359
+ SET_LISTING_QUERY_DATA: () => SET_LISTING_QUERY_DATA,
360
+ SET_LISTING_REGISTRATION_QUERY_KEY: () => SET_LISTING_REGISTRATION_QUERY_KEY,
336
361
  SET_ORGANIZATION_PAGE_QUERY_DATA: () => SET_ORGANIZATION_PAGE_QUERY_DATA,
337
362
  SET_PUSH_DEVICE_QUERY_DATA: () => SET_PUSH_DEVICE_QUERY_DATA,
338
363
  SET_SELF_CHAT_CHANNELS_QUERY_DATA: () => SET_SELF_CHAT_CHANNELS_QUERY_DATA,
@@ -340,12 +365,12 @@ __export(src_exports, {
340
365
  SET_SELF_CHAT_CHANNEL_MESSAGES_QUERY_DATA: () => SET_SELF_CHAT_CHANNEL_MESSAGES_QUERY_DATA,
341
366
  SET_SELF_CHAT_CHANNEL_QUERY_DATA: () => SET_SELF_CHAT_CHANNEL_QUERY_DATA,
342
367
  SET_SELF_COMMUNITY_MEMBERSHIP_QUERY_DATA: () => SET_SELF_COMMUNITY_MEMBERSHIP_QUERY_DATA,
343
- SET_SELF_EVENT_LISTING_QUERY_DATA: () => SET_SELF_EVENT_LISTING_QUERY_DATA,
344
368
  SET_SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_DATA: () => SET_SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_DATA,
345
369
  SET_SELF_EVENT_REGISTRATION_PURCHASE_QUERY_DATA: () => SET_SELF_EVENT_REGISTRATION_PURCHASE_QUERY_DATA,
346
370
  SET_SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_DATA: () => SET_SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_DATA,
347
371
  SET_SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_DATA: () => SET_SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_DATA,
348
372
  SET_SELF_EVENT_REGISTRATION_QUERY_DATA: () => SET_SELF_EVENT_REGISTRATION_QUERY_DATA,
373
+ SET_SELF_EVENT_REGISTRATION_STATUS_QUERY_DATA: () => SET_SELF_EVENT_REGISTRATION_STATUS_QUERY_DATA,
349
374
  SET_SELF_QUERY_DATA: () => SET_SELF_QUERY_DATA,
350
375
  SET_SERIES_EVENTS_QUERY_DATA: () => SET_SERIES_EVENTS_QUERY_DATA,
351
376
  SET_SERIES_LIST_QUERY_DATA: () => SET_SERIES_LIST_QUERY_DATA,
@@ -356,10 +381,7 @@ __export(src_exports, {
356
381
  SPONSOR_QUERY_KEY: () => SPONSOR_QUERY_KEY,
357
382
  SelectSelfEventRegistrationCoupon: () => SelectSelfEventRegistrationCoupon,
358
383
  SelectSelfEventRegistrationPurchaseReservation: () => SelectSelfEventRegistrationPurchaseReservation,
359
- SelfCheckinRegistration: () => SelfCheckinRegistration,
360
384
  SelfCreateActivity: () => SelfCreateActivity,
361
- SelfJoinCommunity: () => SelfJoinCommunity,
362
- SelfLeaveCommunity: () => SelfLeaveCommunity,
363
385
  SelfUpdateCommunityMembership: () => SelfUpdateCommunityMembership,
364
386
  SubmitSelfEventRegistration: () => SubmitSelfEventRegistration,
365
387
  SubscriptionStatus: () => SubscriptionStatus,
@@ -370,11 +392,11 @@ __export(src_exports, {
370
392
  UnfollowAccount: () => UnfollowAccount,
371
393
  UnlikeActivity: () => UnlikeActivity,
372
394
  UpdateCommunity: () => UpdateCommunity,
395
+ UpdateListing: () => UpdateListing,
396
+ UpdateListingSession: () => UpdateListingSession,
397
+ UpdateListingSpeaker: () => UpdateListingSpeaker,
373
398
  UpdateSelf: () => UpdateSelf,
374
399
  UpdateSelfChatChannelNotifications: () => UpdateSelfChatChannelNotifications,
375
- UpdateSelfEventListing: () => UpdateSelfEventListing,
376
- UpdateSelfEventListingSession: () => UpdateSelfEventListingSession,
377
- UpdateSelfEventListingSpeaker: () => UpdateSelfEventListingSpeaker,
378
400
  UpdateSelfEventRegistrationQuestionResponse: () => UpdateSelfEventRegistrationQuestionResponse,
379
401
  UpdateSelfImage: () => UpdateSelfImage,
380
402
  UpdateSelfLead: () => UpdateSelfLead,
@@ -420,13 +442,12 @@ __export(src_exports, {
420
442
  isTypeTrack: () => isTypeTrack,
421
443
  isTypeTransfer: () => isTypeTransfer,
422
444
  setFirstPageData: () => setFirstPageData,
445
+ useAcceptCommunityInvitation: () => useAcceptCommunityInvitation,
446
+ useAcceptCommunityRequest: () => useAcceptCommunityRequest,
423
447
  useAcceptTransfer: () => useAcceptTransfer,
424
- useAddCommunityEvent: () => useAddCommunityEvent,
448
+ useAddListingSponsor: () => useAddListingSponsor,
425
449
  useAddSelfChatChannelMember: () => useAddSelfChatChannelMember,
426
450
  useAddSelfDelegate: () => useAddSelfDelegate,
427
- useAddSelfEventListingSession: () => useAddSelfEventListingSession,
428
- useAddSelfEventListingSpeaker: () => useAddSelfEventListingSpeaker,
429
- useAddSelfEventListingSponsor: () => useAddSelfEventListingSponsor,
430
451
  useAddSelfEventRegistrationPurchase: () => useAddSelfEventRegistrationPurchase,
431
452
  useAddSelfEventRegistrationPurchaseAddOn: () => useAddSelfEventRegistrationPurchaseAddOn,
432
453
  useAddSelfEventSession: () => useAddSelfEventSession,
@@ -435,25 +456,36 @@ __export(src_exports, {
435
456
  useCancelTransfer: () => useCancelTransfer,
436
457
  useCaptureInvoicePayment: () => useCaptureInvoicePayment,
437
458
  useCaptureSelfEventRegistrationPayment: () => useCaptureSelfEventRegistrationPayment,
459
+ useCheckinListingRegistrationPurchase: () => useCheckinListingRegistrationPurchase,
438
460
  useCompleteEventActivation: () => useCompleteEventActivation,
439
461
  useConnectedInfiniteQuery: () => useConnectedInfiniteQuery,
440
462
  useConnectedMutation: () => useConnectedMutation,
441
463
  useConnectedSingleQuery: () => useConnectedSingleQuery,
442
464
  useConnectedXM: () => useConnectedXM,
465
+ useCreateCommunity: () => useCreateCommunity,
443
466
  useCreateCommunityAnnouncement: () => useCreateCommunityAnnouncement,
467
+ useCreateCommunityInvitations: () => useCreateCommunityInvitations,
468
+ useCreateCommunityRequest: () => useCreateCommunityRequest,
444
469
  useCreateEventLead: () => useCreateEventLead,
470
+ useCreateListing: () => useCreateListing,
471
+ useCreateListingSession: () => useCreateListingSession,
472
+ useCreateListingSpeaker: () => useCreateListingSpeaker,
445
473
  useCreateSelfChatChannel: () => useCreateSelfChatChannel,
446
474
  useCreateSelfChatChannelMessage: () => useCreateSelfChatChannelMessage,
447
- useCreateSelfEventListing: () => useCreateSelfEventListing,
448
475
  useCreateSubscription: () => useCreateSubscription,
449
476
  useCreateSupportTicket: () => useCreateSupportTicket,
450
477
  useCreateTeamAccount: () => useCreateTeamAccount,
478
+ useDeactivateCommunity: () => useDeactivateCommunity,
451
479
  useDeleteActivity: () => useDeleteActivity,
480
+ useDeleteCommunityInvitation: () => useDeleteCommunityInvitation,
481
+ useDeleteListingSession: () => useDeleteListingSession,
482
+ useDeleteListingSpeaker: () => useDeleteListingSpeaker,
452
483
  useDeleteReshare: () => useDeleteReshare,
453
484
  useDeleteSelf: () => useDeleteSelf,
454
485
  useDeleteSelfChatChannel: () => useDeleteSelfChatChannel,
455
486
  useDeleteSelfChatChannelMessage: () => useDeleteSelfChatChannelMessage,
456
487
  useDeleteSelfPushDevice: () => useDeleteSelfPushDevice,
488
+ useDemoteCommunityModerator: () => useDemoteCommunityModerator,
457
489
  useFollowAccount: () => useFollowAccount,
458
490
  useGetAccount: () => useGetAccount,
459
491
  useGetAccountActivities: () => useGetAccountActivities,
@@ -472,9 +504,11 @@ __export(src_exports, {
472
504
  useGetCommunityActivities: () => useGetCommunityActivities,
473
505
  useGetCommunityAnnouncements: () => useGetCommunityAnnouncements,
474
506
  useGetCommunityEvents: () => useGetCommunityEvents,
507
+ useGetCommunityInvitableAccounts: () => useGetCommunityInvitableAccounts,
475
508
  useGetCommunityMedia: () => useGetCommunityMedia,
476
509
  useGetCommunityMembers: () => useGetCommunityMembers,
477
- useGetCommunityModerators: () => useGetCommunityModerators,
510
+ useGetCommunityRequest: () => useGetCommunityRequest,
511
+ useGetCommunityRequests: () => useGetCommunityRequests,
478
512
  useGetCommunitySponsors: () => useGetCommunitySponsors,
479
513
  useGetContent: () => useGetContent,
480
514
  useGetContentActivities: () => useGetContentActivities,
@@ -521,6 +555,7 @@ __export(src_exports, {
521
555
  useGetSelfDelegateOf: () => useGetSelfDelegateOf,
522
556
  useGetSelfDelegates: () => useGetSelfDelegates,
523
557
  useGetSelfEventListing: () => useGetSelfEventListing,
558
+ useGetSelfEventListingRegistration: () => useGetSelfEventListingRegistration,
524
559
  useGetSelfEventListings: () => useGetSelfEventListings,
525
560
  useGetSelfEventListingsRegistrations: () => useGetSelfEventListingsRegistrations,
526
561
  useGetSelfEventRegistration: () => useGetSelfEventRegistration,
@@ -529,6 +564,7 @@ __export(src_exports, {
529
564
  useGetSelfEventRegistrationPurchaseAddOns: () => useGetSelfEventRegistrationPurchaseAddOns,
530
565
  useGetSelfEventRegistrationPurchaseReservationSections: () => useGetSelfEventRegistrationPurchaseReservationSections,
531
566
  useGetSelfEventRegistrationPurchaseSections: () => useGetSelfEventRegistrationPurchaseSections,
567
+ useGetSelfEventRegistrationStatus: () => useGetSelfEventRegistrationStatus,
532
568
  useGetSelfEventSessions: () => useGetSelfEventSessions,
533
569
  useGetSelfEvents: () => useGetSelfEvents,
534
570
  useGetSelfFeed: () => useGetSelfFeed,
@@ -549,15 +585,18 @@ __export(src_exports, {
549
585
  useGetSeriesList: () => useGetSeriesList,
550
586
  useGetSponsor: () => useGetSponsor,
551
587
  useGetSponsors: () => useGetSponsors,
588
+ useJoinCommunity: () => useJoinCommunity,
589
+ useLeaveCommunity: () => useLeaveCommunity,
552
590
  useLeaveSelfChatChannel: () => useLeaveSelfChatChannel,
553
591
  useLikeActivity: () => useLikeActivity,
592
+ usePromoteCommunityMember: () => usePromoteCommunityMember,
554
593
  useRegisterCancelledEventRegistration: () => useRegisterCancelledEventRegistration,
594
+ useRejectCommunityInvitation: () => useRejectCommunityInvitation,
595
+ useRejectCommunityRequest: () => useRejectCommunityRequest,
555
596
  useRejectTransfer: () => useRejectTransfer,
556
- useRemoveCommunityEvent: () => useRemoveCommunityEvent,
597
+ useRemoveCommunityMember: () => useRemoveCommunityMember,
598
+ useRemoveListingSponsor: () => useRemoveListingSponsor,
557
599
  useRemoveSelfDelegate: () => useRemoveSelfDelegate,
558
- useRemoveSelfEventListingSession: () => useRemoveSelfEventListingSession,
559
- useRemoveSelfEventListingSpeaker: () => useRemoveSelfEventListingSpeaker,
560
- useRemoveSelfEventListingSponsor: () => useRemoveSelfEventListingSponsor,
561
600
  useRemoveSelfEventRegistrationCoupon: () => useRemoveSelfEventRegistrationCoupon,
562
601
  useRemoveSelfEventRegistrationPurchase: () => useRemoveSelfEventRegistrationPurchase,
563
602
  useRemoveSelfEventRegistrationPurchaseAddOn: () => useRemoveSelfEventRegistrationPurchaseAddOn,
@@ -565,21 +604,18 @@ __export(src_exports, {
565
604
  useReshareActivity: () => useReshareActivity,
566
605
  useSelectSelfEventRegistrationCoupon: () => useSelectSelfEventRegistrationCoupon,
567
606
  useSelectSelfEventRegistrationPurchaseReservation: () => useSelectSelfEventRegistrationPurchaseReservation,
568
- useSelfCheckinRegistration: () => useSelfCheckinRegistration,
569
607
  useSelfCreateActivity: () => useSelfCreateActivity,
570
- useSelfJoinCommunity: () => useSelfJoinCommunity,
571
- useSelfLeaveCommunity: () => useSelfLeaveCommunity,
572
608
  useSelfUpdateCommunityMembership: () => useSelfUpdateCommunityMembership,
573
609
  useSubmitSelfEventRegistration: () => useSubmitSelfEventRegistration,
574
610
  useTransferPurchase: () => useTransferPurchase,
575
611
  useUnfollowAccount: () => useUnfollowAccount,
576
612
  useUnlikeActivity: () => useUnlikeActivity,
577
613
  useUpdateCommunity: () => useUpdateCommunity,
614
+ useUpdateListing: () => useUpdateListing,
615
+ useUpdateListingSession: () => useUpdateListingSession,
616
+ useUpdateListingSpeaker: () => useUpdateListingSpeaker,
578
617
  useUpdateSelf: () => useUpdateSelf,
579
618
  useUpdateSelfChatChannelNotifications: () => useUpdateSelfChatChannelNotifications,
580
- useUpdateSelfEventListing: () => useUpdateSelfEventListing,
581
- useUpdateSelfEventListingSession: () => useUpdateSelfEventListingSession,
582
- useUpdateSelfEventListingSpeaker: () => useUpdateSelfEventListingSpeaker,
583
619
  useUpdateSelfEventRegistrationQuestionResponse: () => useUpdateSelfEventRegistrationQuestionResponse,
584
620
  useUpdateSelfImage: () => useUpdateSelfImage,
585
621
  useUpdateSelfLead: () => useUpdateSelfLead,
@@ -763,6 +799,8 @@ var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
763
799
  NotificationType2["RESHARE"] = "RESHARE";
764
800
  NotificationType2["EVENT"] = "EVENT";
765
801
  NotificationType2["ACTIVITY"] = "ACTIVITY";
802
+ NotificationType2["GROUP_INVITATION"] = "GROUP_INVITATION";
803
+ NotificationType2["GROUP_REQUEST_ACCEPTED"] = "GROUP_REQUEST_ACCEPTED";
766
804
  return NotificationType2;
767
805
  })(NotificationType || {});
768
806
  var isTypeNotification = (notification) => {
@@ -891,6 +929,12 @@ var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
891
929
  InvoiceStatus2["void"] = "void";
892
930
  return InvoiceStatus2;
893
931
  })(InvoiceStatus || {});
932
+ var CommunityRequestStatus = /* @__PURE__ */ ((CommunityRequestStatus2) => {
933
+ CommunityRequestStatus2["requested"] = "requested";
934
+ CommunityRequestStatus2["invited"] = "invited";
935
+ CommunityRequestStatus2["rejected"] = "rejected";
936
+ return CommunityRequestStatus2;
937
+ })(CommunityRequestStatus || {});
894
938
 
895
939
  // src/utilities/AppendInfiniteQuery.ts
896
940
  var import_immer = require("immer");
@@ -958,7 +1002,7 @@ var useConnectedSingleQuery = (queryKeys, queryFn, options = {}) => {
958
1002
  onNotFound(error, queryKeys, options.shouldRedirect || false);
959
1003
  return false;
960
1004
  }
961
- if (error.response?.status === 403) {
1005
+ if (error.response?.status === 403 || error.response?.status === 453) {
962
1006
  if (onModuleForbidden)
963
1007
  onModuleForbidden(error, queryKeys, options.shouldRedirect || false);
964
1008
  return false;
@@ -1098,7 +1142,7 @@ var useConnectedInfiniteQuery = (queryKeys, queryFn, params = {}, options = {
1098
1142
  onNotFound(error, queryKeys, options.shouldRedirect || false);
1099
1143
  return false;
1100
1144
  }
1101
- if (error.response?.status === 403) {
1145
+ if (error.response?.status === 403 || error.response?.status === 453) {
1102
1146
  if (onModuleForbidden)
1103
1147
  onModuleForbidden(error, queryKeys, options.shouldRedirect || false);
1104
1148
  return false;
@@ -2066,10 +2110,13 @@ var useGetCommunityEvents = (communityId = "", past = false, params = {}, option
2066
2110
  };
2067
2111
 
2068
2112
  // src/queries/communities/useGetCommunityMembers.ts
2069
- var COMMUNITY_MEMBERS_QUERY_KEY = (communityId) => [
2070
- ...COMMUNITY_QUERY_KEY(communityId),
2071
- "MEMBERS"
2072
- ];
2113
+ var COMMUNITY_MEMBERS_QUERY_KEY = (communityId, role) => {
2114
+ const keys = [...COMMUNITY_QUERY_KEY(communityId), "MEMBERS"];
2115
+ if (role) {
2116
+ keys.push(role);
2117
+ }
2118
+ return keys;
2119
+ };
2073
2120
  var SET_COMMUNITY_MEMBERS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
2074
2121
  client.setQueryData(
2075
2122
  [
@@ -2084,6 +2131,7 @@ var GetCommunityMembers = async ({
2084
2131
  pageSize,
2085
2132
  orderBy,
2086
2133
  search,
2134
+ role,
2087
2135
  communityId,
2088
2136
  clientApiParams
2089
2137
  }) => {
@@ -2093,60 +2141,16 @@ var GetCommunityMembers = async ({
2093
2141
  page: pageParam || void 0,
2094
2142
  pageSize: pageSize || void 0,
2095
2143
  orderBy: orderBy || void 0,
2096
- search: search || void 0
2144
+ search: search || void 0,
2145
+ role: role || void 0
2097
2146
  }
2098
2147
  });
2099
2148
  return data;
2100
2149
  };
2101
- var useGetCommunityMembers = (communityId = "", params = {}, options = {}) => {
2102
- return useConnectedInfiniteQuery(
2103
- COMMUNITY_MEMBERS_QUERY_KEY(communityId),
2104
- (params2) => GetCommunityMembers({ communityId, ...params2 }),
2105
- params,
2106
- {
2107
- ...options,
2108
- enabled: !!communityId && (options?.enabled ?? true)
2109
- }
2110
- );
2111
- };
2112
-
2113
- // src/queries/communities/useGetCommunityModerators.ts
2114
- var COMMUNITY_MODERATORS_QUERY_KEY = (communityId) => [...COMMUNITY_QUERY_KEY(communityId), "MODERATORS"];
2115
- var SET_COMMUNITY_MODERATORS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
2116
- client.setQueryData(
2117
- [
2118
- ...COMMUNITY_MODERATORS_QUERY_KEY(...keyParams),
2119
- ...GetBaseInfiniteQueryKeys(...baseKeys)
2120
- ],
2121
- setFirstPageData(response)
2122
- );
2123
- };
2124
- var GetCommunityModerators = async ({
2125
- pageParam,
2126
- pageSize,
2127
- orderBy,
2128
- search,
2129
- communityId,
2130
- clientApiParams
2131
- }) => {
2132
- const clientApi = await GetClientAPI(clientApiParams);
2133
- const { data } = await clientApi.get(
2134
- `/communities/${communityId}/moderators`,
2135
- {
2136
- params: {
2137
- page: pageParam || void 0,
2138
- pageSize: pageSize || void 0,
2139
- orderBy: orderBy || void 0,
2140
- search: search || void 0
2141
- }
2142
- }
2143
- );
2144
- return data;
2145
- };
2146
- var useGetCommunityModerators = (communityId = "", params = {}, options = {}) => {
2150
+ var useGetCommunityMembers = (communityId = "", role, params = {}, options = {}) => {
2147
2151
  return useConnectedInfiniteQuery(
2148
- COMMUNITY_MODERATORS_QUERY_KEY(communityId),
2149
- (params2) => GetCommunityModerators({ communityId, ...params2 }),
2152
+ COMMUNITY_MEMBERS_QUERY_KEY(communityId, role),
2153
+ (params2) => GetCommunityMembers({ communityId, role, ...params2 }),
2150
2154
  params,
2151
2155
  {
2152
2156
  ...options,
@@ -2281,6 +2285,137 @@ var useGetCommunitySponsors = (communityId = "", params = {}, options = {}) => {
2281
2285
  );
2282
2286
  };
2283
2287
 
2288
+ // src/queries/communities/useGetCommunityRequests.ts
2289
+ var COMMUNITY_REQUESTS_QUERY_KEY = (communityId, status) => {
2290
+ const keys = [...COMMUNITY_QUERY_KEY(communityId), "REQUESTS"];
2291
+ if (status) {
2292
+ keys.push(status);
2293
+ }
2294
+ return keys;
2295
+ };
2296
+ var SET_COMMUNITY_REQUESTS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
2297
+ client.setQueryData(
2298
+ [
2299
+ ...COMMUNITY_REQUESTS_QUERY_KEY(...keyParams),
2300
+ ...GetBaseInfiniteQueryKeys(...baseKeys)
2301
+ ],
2302
+ setFirstPageData(response)
2303
+ );
2304
+ };
2305
+ var GetCommunityRequests = async ({
2306
+ pageParam,
2307
+ pageSize,
2308
+ orderBy,
2309
+ search,
2310
+ status,
2311
+ communityId,
2312
+ queryClient,
2313
+ clientApiParams,
2314
+ locale
2315
+ }) => {
2316
+ const clientApi = await GetClientAPI(clientApiParams);
2317
+ const { data } = await clientApi.get(`/communities/${communityId}/requests`, {
2318
+ params: {
2319
+ page: pageParam || void 0,
2320
+ pageSize: pageSize || void 0,
2321
+ orderBy: orderBy || void 0,
2322
+ search: search || void 0,
2323
+ status: status || void 0
2324
+ }
2325
+ });
2326
+ if (queryClient && data.status === "ok") {
2327
+ CacheIndividualQueries(
2328
+ data,
2329
+ queryClient,
2330
+ (communityId2) => COMMUNITY_REQUEST_QUERY_KEY(communityId2, data.data.id),
2331
+ locale
2332
+ );
2333
+ }
2334
+ return data;
2335
+ };
2336
+ var useGetCommunityRequests = (communityId = "", status, params = {}, options = {}) => {
2337
+ return useConnectedInfiniteQuery(
2338
+ COMMUNITY_REQUESTS_QUERY_KEY(communityId, status),
2339
+ (params2) => GetCommunityRequests({ communityId, status, ...params2 }),
2340
+ params,
2341
+ {
2342
+ ...options,
2343
+ enabled: !!communityId && (options?.enabled ?? true)
2344
+ }
2345
+ );
2346
+ };
2347
+
2348
+ // src/queries/communities/useGetCommunityRequest.ts
2349
+ var COMMUNITY_REQUEST_QUERY_KEY = (communityId, requestId) => [
2350
+ ...COMMUNITY_REQUESTS_QUERY_KEY(communityId),
2351
+ "REQUESTS",
2352
+ requestId
2353
+ ];
2354
+ var SET_COMMUNITY_REQUEST_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"], options) => {
2355
+ client.setQueryData(
2356
+ [
2357
+ ...COMMUNITY_REQUEST_QUERY_KEY(...keyParams),
2358
+ ...GetBaseSingleQueryKeys(...baseKeys)
2359
+ ],
2360
+ response,
2361
+ options
2362
+ );
2363
+ };
2364
+ var GetCommunityRequest = async ({
2365
+ communityId,
2366
+ requestId,
2367
+ clientApiParams
2368
+ }) => {
2369
+ const clientApi = await GetClientAPI(clientApiParams);
2370
+ const { data } = await clientApi.get(
2371
+ `/communities/${communityId}/requests/${requestId}`
2372
+ );
2373
+ return data;
2374
+ };
2375
+ var useGetCommunityRequest = (communityId = "", requestId = "", options = {}) => {
2376
+ return useConnectedSingleQuery(
2377
+ COMMUNITY_REQUEST_QUERY_KEY(communityId, requestId),
2378
+ (params) => GetCommunityRequest({ communityId, requestId, ...params }),
2379
+ {
2380
+ ...options,
2381
+ enabled: !!communityId && !!requestId && (options?.enabled ?? true)
2382
+ }
2383
+ );
2384
+ };
2385
+
2386
+ // src/queries/communities/useGetCommunityInvitableAccounts.ts
2387
+ var COMMUNITY_INVITABLE_ACCOUNTS_QUERY_KEY = (communityId) => [...COMMUNITY_QUERY_KEY(communityId), "INVITABLE_ACCOUNTS"];
2388
+ var GetCommunityInvitableAccounts = async ({
2389
+ pageParam,
2390
+ pageSize,
2391
+ orderBy,
2392
+ search,
2393
+ communityId,
2394
+ clientApiParams
2395
+ }) => {
2396
+ const clientApi = await GetClientAPI(clientApiParams);
2397
+ const { data } = await clientApi.get(`/communities/${communityId}/invites`, {
2398
+ params: {
2399
+ page: pageParam || void 0,
2400
+ pageSize: pageSize || void 0,
2401
+ orderBy: orderBy || void 0,
2402
+ search: search || void 0
2403
+ }
2404
+ });
2405
+ return data;
2406
+ };
2407
+ var useGetCommunityInvitableAccounts = (communityId = "", params = {}, options = {}) => {
2408
+ return useConnectedInfiniteQuery(
2409
+ COMMUNITY_INVITABLE_ACCOUNTS_QUERY_KEY(communityId),
2410
+ (params2) => GetCommunityInvitableAccounts({ communityId, ...params2 }),
2411
+ params,
2412
+ {
2413
+ ...options,
2414
+ enabled: !!communityId && (options?.enabled ?? true)
2415
+ }
2416
+ );
2417
+ };
2418
+
2284
2419
  // src/queries/contents/useGetContents.ts
2285
2420
  var CONTENTS_QUERY_KEY = () => ["CONTENTS"];
2286
2421
  var SET_CONTENTS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
@@ -3921,6 +4056,42 @@ var useGetSelfEventRegistrationPurchaseReservationSections = (eventId, registrat
3921
4056
  );
3922
4057
  };
3923
4058
 
4059
+ // src/queries/self/registration/useGetSelfEventRegistrationStatus.ts
4060
+ var SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY = (eventId) => [...SELF_QUERY_KEY(), "EVENT_REGISTRATION_STATUS", eventId];
4061
+ var SET_SELF_EVENT_REGISTRATION_STATUS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
4062
+ client.setQueryData(
4063
+ [
4064
+ ...SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY(...keyParams),
4065
+ ...GetBaseSingleQueryKeys(...baseKeys)
4066
+ ],
4067
+ response
4068
+ );
4069
+ };
4070
+ var GetSelfEventRegistrationStatus = async ({
4071
+ eventId,
4072
+ clientApiParams
4073
+ }) => {
4074
+ const clientApi = await GetClientAPI(clientApiParams);
4075
+ const { data } = await clientApi.get(
4076
+ `/self/events/${eventId}/registration/status`,
4077
+ {}
4078
+ );
4079
+ return data;
4080
+ };
4081
+ var useGetSelfEventRegistrationStatus = (eventId, selfId, options = {}) => {
4082
+ return useConnectedSingleQuery_default(
4083
+ SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY(eventId),
4084
+ (params) => GetSelfEventRegistrationStatus({
4085
+ eventId,
4086
+ ...params
4087
+ }),
4088
+ {
4089
+ ...options,
4090
+ enabled: !!eventId && !!selfId && (options?.enabled ?? true)
4091
+ }
4092
+ );
4093
+ };
4094
+
3924
4095
  // src/queries/self/subscriptions/useGetSelfSubscriptions.ts
3925
4096
  var SELF_SUBSCRIPTIONS_QUERY_KEY = (status) => {
3926
4097
  const key = [...SELF_QUERY_KEY(), "SUBSCRIPTIONS"];
@@ -4247,13 +4418,13 @@ var useGetSelfDelegates = (params = {}, options = {}) => {
4247
4418
  );
4248
4419
  };
4249
4420
 
4250
- // src/queries/self/useGetSelfEventListings.ts
4251
- var SELF_EVENT_LISTINGS_QUERY_KEY = (past) => [
4421
+ // src/queries/self/useGetSelfEvents.ts
4422
+ var SELF_EVENTS_QUERY_KEY = (past) => [
4252
4423
  ...SELF_QUERY_KEY(),
4253
- "EVENT_LISTINGS",
4424
+ "EVENTS",
4254
4425
  past ? "PAST" : "UPCOMING"
4255
4426
  ];
4256
- var GetSelfEventListings = async ({
4427
+ var GetSelfEvents = async ({
4257
4428
  pageParam,
4258
4429
  pageSize,
4259
4430
  orderBy,
@@ -4264,209 +4435,86 @@ var GetSelfEventListings = async ({
4264
4435
  locale
4265
4436
  }) => {
4266
4437
  const clientApi = await GetClientAPI(clientApiParams);
4267
- const { data } = await clientApi.get(`/self/events/listings`, {
4438
+ const { data } = await clientApi.get(`/self/events`, {
4268
4439
  params: {
4269
4440
  page: pageParam || void 0,
4270
4441
  pageSize: pageSize || void 0,
4271
4442
  orderBy: orderBy || void 0,
4272
4443
  search: search || void 0,
4273
- past: typeof past == "boolean" ? past : void 0
4444
+ past: past || false
4274
4445
  }
4275
4446
  });
4276
4447
  if (queryClient && data.status === "ok") {
4277
4448
  CacheIndividualQueries(
4278
4449
  data,
4279
4450
  queryClient,
4280
- (eventId) => SELF_EVENT_LISTING_QUERY_KEY(eventId),
4451
+ (eventId) => EVENT_QUERY_KEY(eventId),
4281
4452
  locale
4282
4453
  );
4283
4454
  }
4284
4455
  return data;
4285
4456
  };
4286
- var useGetSelfEventListings = (past = false, params = {}, options = {}) => {
4457
+ var useGetSelfEvents = (past = false, params = {}, options = {}) => {
4287
4458
  return useConnectedInfiniteQuery(
4288
- SELF_EVENT_LISTINGS_QUERY_KEY(past),
4289
- (params2) => GetSelfEventListings({ past, ...params2 }),
4459
+ SELF_EVENTS_QUERY_KEY(past),
4460
+ (params2) => GetSelfEvents({ ...params2, past }),
4290
4461
  params,
4291
4462
  {
4292
- ...options,
4293
- enabled: options.enabled ?? true
4463
+ ...options
4294
4464
  }
4295
4465
  );
4296
4466
  };
4297
4467
 
4298
- // src/queries/self/useGetSelfEventListing.ts
4299
- var SELF_EVENT_LISTING_QUERY_KEY = (eventId) => [
4300
- ...SELF_EVENT_LISTINGS_QUERY_KEY(false),
4301
- eventId
4302
- ];
4303
- var SET_SELF_EVENT_LISTING_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
4304
- client.setQueryData(
4305
- [
4306
- ...SELF_EVENT_LISTING_QUERY_KEY(...keyParams),
4307
- ...GetBaseSingleQueryKeys(...baseKeys)
4308
- ],
4309
- response
4310
- );
4311
- };
4312
- var GetSelfEventListing = async ({
4468
+ // src/queries/self/useGetSelfEventSessions.ts
4469
+ var SELF_EVENT_SESSIONS_QUERY_KEY = (eventId) => [
4470
+ ...SELF_EVENTS_QUERY_KEY(false),
4313
4471
  eventId,
4314
- clientApiParams
4315
- }) => {
4316
- const clientApi = await GetClientAPI(clientApiParams);
4317
- const { data } = await clientApi.get(`self/events/listings/${eventId}`);
4318
- return data;
4319
- };
4320
- var useGetSelfEventListing = (eventId, options = {}) => {
4321
- return useConnectedSingleQuery(
4322
- SELF_EVENT_LISTING_QUERY_KEY(eventId),
4323
- (params) => GetSelfEventListing({ eventId, ...params }),
4324
- {
4325
- ...options,
4326
- enabled: !!eventId && (options?.enabled ?? true)
4327
- }
4328
- );
4329
- };
4330
-
4331
- // src/queries/self/useGetSelfEventListingRegistrations.ts
4332
- var SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY = (eventId, status) => [
4333
- ...SELF_EVENT_LISTING_QUERY_KEY(eventId),
4334
- "REGISTRATIONS",
4335
- status ?? "ALL"
4472
+ "SESSIONS"
4336
4473
  ];
4337
- var GetSelfEventListingRegistrations = async ({
4474
+ var GetSelfEventSessions = async ({
4338
4475
  eventId,
4339
4476
  pageParam,
4340
4477
  pageSize,
4341
4478
  orderBy,
4342
4479
  search,
4343
- status,
4344
- clientApiParams
4480
+ queryClient,
4481
+ clientApiParams,
4482
+ locale
4345
4483
  }) => {
4346
4484
  const clientApi = await GetClientAPI(clientApiParams);
4347
- const { data } = await clientApi.get(
4348
- `/self/events/listings/${eventId}/registrations`,
4349
- {
4350
- params: {
4351
- page: pageParam || void 0,
4352
- pageSize: pageSize || void 0,
4353
- orderBy: orderBy || void 0,
4354
- search: search || void 0,
4355
- status: status || void 0
4356
- }
4485
+ const { data } = await clientApi.get(`/self/events/${eventId}/sessions`, {
4486
+ params: {
4487
+ eventId: eventId || void 0,
4488
+ page: pageParam || void 0,
4489
+ pageSize: pageSize || void 0,
4490
+ orderBy: orderBy || void 0,
4491
+ search: search || void 0
4357
4492
  }
4358
- );
4493
+ });
4494
+ if (queryClient && data.status === "ok") {
4495
+ CacheIndividualQueries(
4496
+ data,
4497
+ queryClient,
4498
+ (sessionId) => EVENT_SESSION_QUERY_KEY(eventId, sessionId),
4499
+ locale
4500
+ );
4501
+ }
4359
4502
  return data;
4360
4503
  };
4361
- var useGetSelfEventListingsRegistrations = (eventId, status, params = {}, options = {}) => {
4504
+ var useGetSelfEventSessions = (eventId, params = {}, options = {}) => {
4362
4505
  return useConnectedInfiniteQuery(
4363
- SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId, status),
4364
- (params2) => GetSelfEventListingRegistrations({ eventId, status, ...params2 }),
4506
+ SELF_EVENT_SESSIONS_QUERY_KEY(eventId),
4507
+ (params2) => GetSelfEventSessions({ eventId, ...params2 }),
4365
4508
  params,
4366
4509
  {
4367
4510
  ...options,
4368
- enabled: !!eventId && (options?.enabled ?? true)
4511
+ enabled: !!eventId && (options.enabled ?? true)
4369
4512
  }
4370
4513
  );
4371
4514
  };
4372
4515
 
4373
- // src/queries/self/useGetSelfEvents.ts
4374
- var SELF_EVENTS_QUERY_KEY = (past) => [
4375
- ...SELF_QUERY_KEY(),
4376
- "EVENTS",
4377
- past ? "PAST" : "UPCOMING"
4378
- ];
4379
- var GetSelfEvents = async ({
4380
- pageParam,
4381
- pageSize,
4382
- orderBy,
4383
- search,
4384
- past,
4385
- queryClient,
4386
- clientApiParams,
4387
- locale
4388
- }) => {
4389
- const clientApi = await GetClientAPI(clientApiParams);
4390
- const { data } = await clientApi.get(`/self/events`, {
4391
- params: {
4392
- page: pageParam || void 0,
4393
- pageSize: pageSize || void 0,
4394
- orderBy: orderBy || void 0,
4395
- search: search || void 0,
4396
- past: past || false
4397
- }
4398
- });
4399
- if (queryClient && data.status === "ok") {
4400
- CacheIndividualQueries(
4401
- data,
4402
- queryClient,
4403
- (eventId) => EVENT_QUERY_KEY(eventId),
4404
- locale
4405
- );
4406
- }
4407
- return data;
4408
- };
4409
- var useGetSelfEvents = (past = false, params = {}, options = {}) => {
4410
- return useConnectedInfiniteQuery(
4411
- SELF_EVENTS_QUERY_KEY(past),
4412
- (params2) => GetSelfEvents({ ...params2, past }),
4413
- params,
4414
- {
4415
- ...options
4416
- }
4417
- );
4418
- };
4419
-
4420
- // src/queries/self/useGetSelfEventSessions.ts
4421
- var SELF_EVENT_SESSIONS_QUERY_KEY = (eventId) => [
4422
- ...SELF_EVENTS_QUERY_KEY(false),
4423
- eventId,
4424
- "SESSIONS"
4425
- ];
4426
- var GetSelfEventSessions = async ({
4427
- eventId,
4428
- pageParam,
4429
- pageSize,
4430
- orderBy,
4431
- search,
4432
- queryClient,
4433
- clientApiParams,
4434
- locale
4435
- }) => {
4436
- const clientApi = await GetClientAPI(clientApiParams);
4437
- const { data } = await clientApi.get(`/self/events/${eventId}/sessions`, {
4438
- params: {
4439
- eventId: eventId || void 0,
4440
- page: pageParam || void 0,
4441
- pageSize: pageSize || void 0,
4442
- orderBy: orderBy || void 0,
4443
- search: search || void 0
4444
- }
4445
- });
4446
- if (queryClient && data.status === "ok") {
4447
- CacheIndividualQueries(
4448
- data,
4449
- queryClient,
4450
- (sessionId) => EVENT_SESSION_QUERY_KEY(eventId, sessionId),
4451
- locale
4452
- );
4453
- }
4454
- return data;
4455
- };
4456
- var useGetSelfEventSessions = (eventId, params = {}, options = {}) => {
4457
- return useConnectedInfiniteQuery(
4458
- SELF_EVENT_SESSIONS_QUERY_KEY(eventId),
4459
- (params2) => GetSelfEventSessions({ eventId, ...params2 }),
4460
- params,
4461
- {
4462
- ...options,
4463
- enabled: !!eventId && (options.enabled ?? true)
4464
- }
4465
- );
4466
- };
4467
-
4468
- // src/queries/self/useGetSelfFeed.ts
4469
- var SELF_FEED_QUERY_KEY = () => [
4516
+ // src/queries/self/useGetSelfFeed.ts
4517
+ var SELF_FEED_QUERY_KEY = () => [
4470
4518
  ...SELF_QUERY_KEY(),
4471
4519
  "FEED"
4472
4520
  ];
@@ -5110,6 +5158,155 @@ var useGetInvoice = (invoiceId = "", options = {}) => {
5110
5158
  );
5111
5159
  };
5112
5160
 
5161
+ // src/queries/listings/useGetListings.ts
5162
+ var LISTINGS_QUERY_KEY = (past) => [
5163
+ ...SELF_QUERY_KEY(),
5164
+ "EVENT_LISTINGS",
5165
+ past ? "PAST" : "UPCOMING"
5166
+ ];
5167
+ var GetSelfEventListings = async ({
5168
+ pageParam,
5169
+ pageSize,
5170
+ orderBy,
5171
+ search,
5172
+ past,
5173
+ queryClient,
5174
+ clientApiParams,
5175
+ locale
5176
+ }) => {
5177
+ const clientApi = await GetClientAPI(clientApiParams);
5178
+ const { data } = await clientApi.get(`/listings`, {
5179
+ params: {
5180
+ page: pageParam || void 0,
5181
+ pageSize: pageSize || void 0,
5182
+ orderBy: orderBy || void 0,
5183
+ search: search || void 0,
5184
+ past: typeof past == "boolean" ? past : void 0
5185
+ }
5186
+ });
5187
+ if (queryClient && data.status === "ok") {
5188
+ CacheIndividualQueries(
5189
+ data,
5190
+ queryClient,
5191
+ (eventId) => LISTING_QUERY_KEY(eventId),
5192
+ locale
5193
+ );
5194
+ }
5195
+ return data;
5196
+ };
5197
+ var useGetSelfEventListings = (past = false, params = {}, options = {}) => {
5198
+ return useConnectedInfiniteQuery(
5199
+ LISTINGS_QUERY_KEY(past),
5200
+ (params2) => GetSelfEventListings({ past, ...params2 }),
5201
+ params,
5202
+ {
5203
+ ...options,
5204
+ enabled: options.enabled ?? true
5205
+ }
5206
+ );
5207
+ };
5208
+
5209
+ // src/queries/listings/useGetListing.ts
5210
+ var LISTING_QUERY_KEY = (eventId) => [
5211
+ ...LISTINGS_QUERY_KEY(false),
5212
+ eventId
5213
+ ];
5214
+ var SET_LISTING_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
5215
+ client.setQueryData(
5216
+ [
5217
+ ...LISTING_QUERY_KEY(...keyParams),
5218
+ ...GetBaseSingleQueryKeys(...baseKeys)
5219
+ ],
5220
+ response
5221
+ );
5222
+ };
5223
+ var GetSelfEventListing = async ({
5224
+ eventId,
5225
+ clientApiParams
5226
+ }) => {
5227
+ const clientApi = await GetClientAPI(clientApiParams);
5228
+ const { data } = await clientApi.get(`/listings/${eventId}`);
5229
+ return data;
5230
+ };
5231
+ var useGetSelfEventListing = (eventId, options = {}) => {
5232
+ return useConnectedSingleQuery(
5233
+ LISTING_QUERY_KEY(eventId),
5234
+ (params) => GetSelfEventListing({ eventId, ...params }),
5235
+ {
5236
+ ...options,
5237
+ enabled: !!eventId && (options?.enabled ?? true)
5238
+ }
5239
+ );
5240
+ };
5241
+
5242
+ // src/queries/listings/useGetListingRegistrations.ts
5243
+ var LISTING_REGISTRATIONS_QUERY_KEY = (eventId, status) => [...LISTING_QUERY_KEY(eventId), "REGISTRATIONS", status ?? "ALL"];
5244
+ var GetSelfEventListingRegistrations = async ({
5245
+ eventId,
5246
+ pageParam,
5247
+ pageSize,
5248
+ orderBy,
5249
+ search,
5250
+ status,
5251
+ clientApiParams
5252
+ }) => {
5253
+ const clientApi = await GetClientAPI(clientApiParams);
5254
+ const { data } = await clientApi.get(`/listings/${eventId}/registrations`, {
5255
+ params: {
5256
+ page: pageParam || void 0,
5257
+ pageSize: pageSize || void 0,
5258
+ orderBy: orderBy || void 0,
5259
+ search: search || void 0,
5260
+ status: status || void 0
5261
+ }
5262
+ });
5263
+ return data;
5264
+ };
5265
+ var useGetSelfEventListingsRegistrations = (eventId, status, params = {}, options = {}) => {
5266
+ return useConnectedInfiniteQuery(
5267
+ LISTING_REGISTRATIONS_QUERY_KEY(eventId, status),
5268
+ (params2) => GetSelfEventListingRegistrations({ eventId, status, ...params2 }),
5269
+ params,
5270
+ {
5271
+ ...options,
5272
+ enabled: !!eventId && (options?.enabled ?? true)
5273
+ }
5274
+ );
5275
+ };
5276
+
5277
+ // src/queries/listings/useGetListingRegistration.ts
5278
+ var LISTING_REGISTRATION_QUERY_KEY = (eventId, registrationId) => [LISTING_REGISTRATIONS_QUERY_KEY(eventId), registrationId];
5279
+ var SET_LISTING_REGISTRATION_QUERY_KEY = (client, keyParams, response, baseKeys = ["en"]) => {
5280
+ client.setQueryData(
5281
+ [
5282
+ ...LISTING_REGISTRATION_QUERY_KEY(...keyParams),
5283
+ ...GetBaseSingleQueryKeys(...baseKeys)
5284
+ ],
5285
+ response
5286
+ );
5287
+ };
5288
+ var GetSelfEventListingRegistration = async ({
5289
+ eventId,
5290
+ registrationId,
5291
+ clientApiParams
5292
+ }) => {
5293
+ const clientApi = await GetClientAPI(clientApiParams);
5294
+ const { data } = await clientApi.get(
5295
+ `/listings/${eventId}/registrations/${registrationId}`
5296
+ );
5297
+ return data;
5298
+ };
5299
+ var useGetSelfEventListingRegistration = (eventId = "", registrationId = "", options = {}) => {
5300
+ return useConnectedSingleQuery(
5301
+ LISTING_REGISTRATION_QUERY_KEY(eventId, registrationId),
5302
+ (params) => GetSelfEventListingRegistration({ eventId, registrationId, ...params }),
5303
+ {
5304
+ ...options,
5305
+ enabled: !!eventId && !!registrationId
5306
+ }
5307
+ );
5308
+ };
5309
+
5113
5310
  // src/mutations/useConnectedMutation.ts
5114
5311
  var import_react_query4 = require("@tanstack/react-query");
5115
5312
  var useConnectedMutation = (mutation, options) => {
@@ -5370,167 +5567,42 @@ var useUnlikeActivity = (options = {}) => {
5370
5567
  return useConnectedMutation_default(UnlikeActivity, options);
5371
5568
  };
5372
5569
 
5373
- // src/mutations/communityModerator/useAddCommunityEvent.ts
5374
- var AddCommunityEvent = async ({
5375
- communityId,
5570
+ // src/mutations/events/useCompleteEventActivation.ts
5571
+ var CompleteEventActivation = async ({
5376
5572
  eventId,
5573
+ activationId,
5574
+ code,
5377
5575
  clientApiParams,
5378
5576
  queryClient
5379
5577
  }) => {
5380
5578
  const clientApi = await GetClientAPI(clientApiParams);
5381
5579
  const { data } = await clientApi.post(
5382
- `/communityModerator/${communityId}/events/${eventId}`
5580
+ `/events/${eventId}/activations/${activationId}`,
5581
+ {
5582
+ code: code || void 0
5583
+ }
5383
5584
  );
5384
- if (queryClient) {
5385
- queryClient.invalidateQueries({
5386
- queryKey: COMMUNITY_EVENTS_QUERY_KEY(communityId)
5387
- });
5388
- queryClient.invalidateQueries({
5389
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(true)
5390
- });
5391
- queryClient.invalidateQueries({
5392
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(false)
5393
- });
5585
+ if (queryClient && data.status === "ok") {
5394
5586
  }
5395
5587
  return data;
5396
5588
  };
5397
- var useAddCommunityEvent = (options = {}) => {
5398
- return useConnectedMutation_default(AddCommunityEvent, options);
5589
+ var useCompleteEventActivation = (options = {}) => {
5590
+ return useConnectedMutation_default(CompleteEventActivation, options);
5399
5591
  };
5400
5592
 
5401
- // src/mutations/communityModerator/useCreateCommunityAnnouncement.ts
5402
- var CreateCommunityAnnouncement = async ({
5403
- communityId,
5404
- title,
5405
- html,
5406
- email,
5407
- push,
5593
+ // src/mutations/events/useCreateEventLead.ts
5594
+ var CreateEventLead = async ({
5595
+ eventId,
5596
+ purchaseId,
5597
+ note,
5408
5598
  clientApiParams,
5409
5599
  queryClient
5410
5600
  }) => {
5411
5601
  const clientApi = await GetClientAPI(clientApiParams);
5412
5602
  const { data } = await clientApi.post(
5413
- `/communityModerator/${communityId}/announcements`,
5603
+ `/events/${eventId}/leads/${purchaseId}`,
5414
5604
  {
5415
- title,
5416
- html,
5417
- email,
5418
- push
5419
- }
5420
- );
5421
- if (queryClient && data.status === "ok") {
5422
- AppendInfiniteQuery(
5423
- queryClient,
5424
- [
5425
- ...COMMUNITY_ANNOUNCEMENTS_QUERY_KEY(communityId),
5426
- ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
5427
- ],
5428
- data.data
5429
- );
5430
- }
5431
- return data;
5432
- };
5433
- var useCreateCommunityAnnouncement = (options = {}) => {
5434
- return useConnectedMutation(CreateCommunityAnnouncement, options);
5435
- };
5436
-
5437
- // src/mutations/communityModerator/useRemoveCommunityEvent.ts
5438
- var RemoveCommunityEvent = async ({
5439
- communityId,
5440
- eventId,
5441
- clientApiParams,
5442
- queryClient
5443
- }) => {
5444
- const clientApi = await GetClientAPI(clientApiParams);
5445
- const { data } = await clientApi.delete(
5446
- `/communityModerator/${communityId}/events/${eventId}`
5447
- );
5448
- if (queryClient && data.status === "ok") {
5449
- queryClient.invalidateQueries({
5450
- queryKey: COMMUNITY_EVENTS_QUERY_KEY(communityId)
5451
- });
5452
- queryClient.invalidateQueries({
5453
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(true)
5454
- });
5455
- queryClient.invalidateQueries({
5456
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(false)
5457
- });
5458
- }
5459
- return data;
5460
- };
5461
- var useRemoveCommunityEvent = (options = {}) => {
5462
- return useConnectedMutation_default(RemoveCommunityEvent, options);
5463
- };
5464
-
5465
- // src/mutations/communityModerator/useUpdateCommunity.ts
5466
- var UpdateCommunity = async ({
5467
- communityId,
5468
- description,
5469
- externalUrl,
5470
- base64,
5471
- clientApiParams,
5472
- queryClient
5473
- }) => {
5474
- const clientApi = await GetClientAPI(clientApiParams);
5475
- const { data } = await clientApi.put(
5476
- `/communityModerator/${communityId}`,
5477
- {
5478
- description: description || void 0,
5479
- externalUrl: externalUrl || void 0,
5480
- buffer: base64 ? base64 : void 0
5481
- }
5482
- );
5483
- if (queryClient && data.status === "ok") {
5484
- SET_COMMUNITY_QUERY_DATA(queryClient, [data.data.slug], data, [
5485
- clientApiParams.locale
5486
- ]);
5487
- queryClient.invalidateQueries({
5488
- queryKey: SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY()
5489
- });
5490
- queryClient.invalidateQueries({ queryKey: COMMUNITIES_QUERY_KEY() });
5491
- }
5492
- return data;
5493
- };
5494
- var useUpdateCommunity = (options = {}) => {
5495
- return useConnectedMutation(UpdateCommunity, options);
5496
- };
5497
-
5498
- // src/mutations/events/useCompleteEventActivation.ts
5499
- var CompleteEventActivation = async ({
5500
- eventId,
5501
- activationId,
5502
- code,
5503
- clientApiParams,
5504
- queryClient
5505
- }) => {
5506
- const clientApi = await GetClientAPI(clientApiParams);
5507
- const { data } = await clientApi.post(
5508
- `/events/${eventId}/activations/${activationId}`,
5509
- {
5510
- code: code || void 0
5511
- }
5512
- );
5513
- if (queryClient && data.status === "ok") {
5514
- }
5515
- return data;
5516
- };
5517
- var useCompleteEventActivation = (options = {}) => {
5518
- return useConnectedMutation_default(CompleteEventActivation, options);
5519
- };
5520
-
5521
- // src/mutations/events/useCreateEventLead.ts
5522
- var CreateEventLead = async ({
5523
- eventId,
5524
- purchaseId,
5525
- note,
5526
- clientApiParams,
5527
- queryClient
5528
- }) => {
5529
- const clientApi = await GetClientAPI(clientApiParams);
5530
- const { data } = await clientApi.post(
5531
- `/events/${eventId}/leads/${purchaseId}`,
5532
- {
5533
- note: note || void 0
5605
+ note: note || void 0
5534
5606
  }
5535
5607
  );
5536
5608
  if (queryClient && data.status === "ok") {
@@ -5823,6 +5895,9 @@ var CaptureSelfEventRegistrationPayment = async ({
5823
5895
  SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
5824
5896
  clientApiParams.locale
5825
5897
  ]);
5898
+ queryClient.invalidateQueries({
5899
+ queryKey: SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY(eventId)
5900
+ });
5826
5901
  }
5827
5902
  return data;
5828
5903
  };
@@ -5956,6 +6031,9 @@ var SubmitSelfEventRegistration = async ({
5956
6031
  SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
5957
6032
  clientApiParams.locale
5958
6033
  ]);
6034
+ queryClient.invalidateQueries({
6035
+ queryKey: SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY(eventId)
6036
+ });
5959
6037
  }
5960
6038
  return data;
5961
6039
  };
@@ -6381,84 +6459,6 @@ var useAddSelfDelegate = (options = {}) => {
6381
6459
  return useConnectedMutation_default(AddSelfDelegate, options);
6382
6460
  };
6383
6461
 
6384
- // src/mutations/self/useAddSelfEventListingSession.ts
6385
- var AddSelfEventListingSession = async ({
6386
- eventId,
6387
- session,
6388
- clientApiParams,
6389
- queryClient
6390
- }) => {
6391
- const clientApi = await GetClientAPI(clientApiParams);
6392
- const { data } = await clientApi.post(
6393
- `/self/events/listings/${eventId}/sessions`,
6394
- {
6395
- session
6396
- }
6397
- );
6398
- if (queryClient && data.status === "ok") {
6399
- queryClient.invalidateQueries({
6400
- queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
6401
- });
6402
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
6403
- }
6404
- return data;
6405
- };
6406
- var useAddSelfEventListingSession = (options = {}) => {
6407
- return useConnectedMutation_default(AddSelfEventListingSession, options);
6408
- };
6409
-
6410
- // src/mutations/self/useAddSelfEventListingSpeaker.ts
6411
- var AddSelfEventListingSpeaker = async ({
6412
- eventId,
6413
- speaker,
6414
- clientApiParams,
6415
- queryClient
6416
- }) => {
6417
- const clientApi = await GetClientAPI(clientApiParams);
6418
- const { data } = await clientApi.post(
6419
- `/self/events/listings/${eventId}/speakers`,
6420
- {
6421
- speaker
6422
- }
6423
- );
6424
- if (queryClient && data.status === "ok") {
6425
- queryClient.invalidateQueries({
6426
- queryKey: EVENT_SPEAKERS_QUERY_KEY(eventId)
6427
- });
6428
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
6429
- }
6430
- return data;
6431
- };
6432
- var useAddSelfEventListingSpeaker = (options = {}) => {
6433
- return useConnectedMutation_default(AddSelfEventListingSpeaker, options);
6434
- };
6435
-
6436
- // src/mutations/self/useAddSelfEventListingSponsor.ts
6437
- var AddSelfEventListingSponsor = async ({
6438
- eventId,
6439
- sponsor,
6440
- clientApiParams,
6441
- queryClient
6442
- }) => {
6443
- const clientApi = await GetClientAPI(clientApiParams);
6444
- const { data } = await clientApi.post(
6445
- `/self/events/listings/${eventId}/sponsors`,
6446
- {
6447
- sponsorId: sponsor.id
6448
- }
6449
- );
6450
- if (queryClient && data.status === "ok") {
6451
- queryClient.invalidateQueries({
6452
- queryKey: EVENT_SPONSORS_QUERY_KEY(eventId)
6453
- });
6454
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
6455
- }
6456
- return data;
6457
- };
6458
- var useAddSelfEventListingSponsor = (options = {}) => {
6459
- return useConnectedMutation_default(AddSelfEventListingSponsor, options);
6460
- };
6461
-
6462
6462
  // src/mutations/self/useAddSelfEventSession.ts
6463
6463
  var AddSelfEventSession = async ({
6464
6464
  eventId,
@@ -6481,66 +6481,6 @@ var useAddSelfEventSession = (options = {}) => {
6481
6481
  return useConnectedMutation_default(AddSelfEventSession, options);
6482
6482
  };
6483
6483
 
6484
- // src/mutations/self/useCreateSelfEventListing.ts
6485
- var CreateSelfEventListing = async ({
6486
- event,
6487
- base64,
6488
- communityId,
6489
- sponsorIds,
6490
- speakers,
6491
- sessions,
6492
- clientApiParams,
6493
- queryClient
6494
- }) => {
6495
- const clientApi = await GetClientAPI(clientApiParams);
6496
- let data;
6497
- if (communityId) {
6498
- data = (await clientApi.post(
6499
- `/communityModerator/${communityId}/events`,
6500
- {
6501
- event,
6502
- image: base64 ? base64 : void 0,
6503
- communityId: communityId || void 0,
6504
- sponsorIds: sponsorIds || void 0,
6505
- speakers,
6506
- sessions
6507
- }
6508
- )).data;
6509
- } else {
6510
- data = (await clientApi.post(
6511
- `/self/events/listings`,
6512
- {
6513
- event,
6514
- image: base64 ? base64 : void 0,
6515
- sponsorIds: sponsorIds || void 0,
6516
- speakers,
6517
- sessions
6518
- }
6519
- )).data;
6520
- }
6521
- if (queryClient && data.status === "ok") {
6522
- queryClient.invalidateQueries({
6523
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(false)
6524
- });
6525
- queryClient.invalidateQueries({
6526
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(true)
6527
- });
6528
- if (communityId) {
6529
- queryClient.invalidateQueries({
6530
- queryKey: COMMUNITY_EVENTS_QUERY_KEY(communityId)
6531
- });
6532
- }
6533
- queryClient.setQueryData(
6534
- [...EVENT_QUERY_KEY(data.data.id), clientApiParams.locale],
6535
- data
6536
- );
6537
- }
6538
- return data;
6539
- };
6540
- var useCreateSelfEventListing = (options = {}) => {
6541
- return useConnectedMutation_default(CreateSelfEventListing, options);
6542
- };
6543
-
6544
6484
  // src/mutations/self/useDeleteSelf.ts
6545
6485
  var DeleteSelf = async ({
6546
6486
  clientApiParams,
@@ -6618,8 +6558,8 @@ var useRemoveSelfDelegate = (options = {}) => {
6618
6558
  return useConnectedMutation_default(RemoveSelfDelegate, options);
6619
6559
  };
6620
6560
 
6621
- // src/mutations/self/useRemoveSelfEventListingSession.ts
6622
- var RemoveSelfEventListingSession = async ({
6561
+ // src/mutations/self/useRemoveSelfEventSession.ts
6562
+ var RemoveSelfEventSession = async ({
6623
6563
  eventId,
6624
6564
  sessionId,
6625
6565
  clientApiParams,
@@ -6627,151 +6567,57 @@ var RemoveSelfEventListingSession = async ({
6627
6567
  }) => {
6628
6568
  const clientApi = await GetClientAPI(clientApiParams);
6629
6569
  const { data } = await clientApi.delete(
6630
- `/self/events/listings/${eventId}/sessions/${sessionId}`
6570
+ `/self/events/${eventId}/sessions/${sessionId}`
6631
6571
  );
6632
6572
  if (queryClient && data.status === "ok") {
6633
6573
  queryClient.invalidateQueries({
6634
- queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
6574
+ queryKey: SELF_EVENT_SESSIONS_QUERY_KEY(eventId)
6635
6575
  });
6636
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
6637
6576
  }
6638
6577
  return data;
6639
6578
  };
6640
- var useRemoveSelfEventListingSession = (options = {}) => {
6641
- return useConnectedMutation_default(RemoveSelfEventListingSession, options);
6579
+ var useRemoveSelfEventSession = (options = {}) => {
6580
+ return useConnectedMutation_default(RemoveSelfEventSession, options);
6642
6581
  };
6643
6582
 
6644
- // src/mutations/self/useRemoveSelfEventListingSpeaker.ts
6645
- var RemoveSelfEventListingSpeaker = async ({
6646
- eventId,
6647
- speakerId,
6648
- clientApiParams,
6649
- queryClient
6650
- }) => {
6651
- const clientApi = await GetClientAPI(clientApiParams);
6652
- const { data } = await clientApi.delete(
6653
- `/self/events/listings/${eventId}/speakers/${speakerId}`
6583
+ // src/mutations/activities/optimistic/UpdateComments.ts
6584
+ var import_immer5 = require("immer");
6585
+ var UpdateCommentsSingle = (increment, queryClient, KEY) => {
6586
+ queryClient.setQueryData(
6587
+ KEY,
6588
+ (originalData) => (0, import_immer5.produce)(originalData, (draft) => {
6589
+ if (!draft?.data) {
6590
+ return;
6591
+ }
6592
+ draft.data._count.comments += increment ? 1 : -1;
6593
+ draft.data.comments = increment ? [{ id: Date.now().toString() }] : [];
6594
+ })
6654
6595
  );
6655
- if (queryClient && data.status === "ok") {
6656
- queryClient.invalidateQueries({
6657
- queryKey: EVENT_SPEAKERS_QUERY_KEY(eventId)
6658
- });
6659
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
6660
- }
6661
- return data;
6662
6596
  };
6663
- var useRemoveSelfEventListingSpeaker = (options = {}) => {
6664
- return useConnectedMutation_default(RemoveSelfEventListingSpeaker, options);
6597
+ var UpdateCommentsInfinite = (increment, queryClient, KEY, activityId) => {
6598
+ queryClient.setQueriesData(
6599
+ { queryKey: KEY, exact: false },
6600
+ (originalData) => (0, import_immer5.produce)(originalData, (draft) => {
6601
+ if (!draft?.pages || draft.pages.length === 0) {
6602
+ return;
6603
+ }
6604
+ for (const page of draft.pages) {
6605
+ for (const activity of page.data) {
6606
+ if (activity.id === activityId) {
6607
+ activity._count.comments += increment ? 1 : -1;
6608
+ activity.comments = increment ? [{ id: Date.now().toString() }] : [];
6609
+ }
6610
+ }
6611
+ }
6612
+ })
6613
+ );
6665
6614
  };
6666
6615
 
6667
- // src/mutations/self/useRemoveSelfEventListingSponsor.ts
6668
- var RemoveSelfEventListingSponsor = async ({
6669
- eventId,
6670
- sponsorId,
6671
- clientApiParams,
6672
- queryClient
6673
- }) => {
6674
- const clientApi = await GetClientAPI(clientApiParams);
6675
- const { data } = await clientApi.delete(
6676
- `/self/events/listings/${eventId}/sponsors/${sponsorId}`
6677
- );
6678
- if (queryClient && data.status === "ok") {
6679
- queryClient.invalidateQueries({
6680
- queryKey: EVENT_SPONSORS_QUERY_KEY(eventId)
6681
- });
6682
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
6683
- }
6684
- return data;
6685
- };
6686
- var useRemoveSelfEventListingSponsor = (options = {}) => {
6687
- return useConnectedMutation_default(RemoveSelfEventListingSponsor, options);
6688
- };
6689
-
6690
- // src/mutations/self/useRemoveSelfEventSession.ts
6691
- var RemoveSelfEventSession = async ({
6692
- eventId,
6693
- sessionId,
6694
- clientApiParams,
6695
- queryClient
6696
- }) => {
6697
- const clientApi = await GetClientAPI(clientApiParams);
6698
- const { data } = await clientApi.delete(
6699
- `/self/events/${eventId}/sessions/${sessionId}`
6700
- );
6701
- if (queryClient && data.status === "ok") {
6702
- queryClient.invalidateQueries({
6703
- queryKey: SELF_EVENT_SESSIONS_QUERY_KEY(eventId)
6704
- });
6705
- }
6706
- return data;
6707
- };
6708
- var useRemoveSelfEventSession = (options = {}) => {
6709
- return useConnectedMutation_default(RemoveSelfEventSession, options);
6710
- };
6711
-
6712
- // src/mutations/self/useSelfCheckinRegistration.tsx
6713
- var SelfCheckinRegistration = async ({
6714
- eventId,
6715
- registrationId,
6716
- clientApiParams,
6717
- queryClient
6718
- }) => {
6719
- const clientApi = await GetClientAPI(clientApiParams);
6720
- const { data } = await clientApi.post(
6721
- `/self/events/listings/${eventId}/registrations/${registrationId}`
6722
- );
6723
- if (queryClient && data.status === "ok") {
6724
- queryClient.invalidateQueries({
6725
- queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId)
6726
- });
6727
- queryClient.invalidateQueries({
6728
- queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId)
6729
- });
6730
- }
6731
- return data;
6732
- };
6733
- var useSelfCheckinRegistration = (options = {}) => {
6734
- return useConnectedMutation_default(SelfCheckinRegistration, options);
6735
- };
6736
-
6737
- // src/mutations/activities/optimistic/UpdateComments.ts
6738
- var import_immer5 = require("immer");
6739
- var UpdateCommentsSingle = (increment, queryClient, KEY) => {
6740
- queryClient.setQueryData(
6741
- KEY,
6742
- (originalData) => (0, import_immer5.produce)(originalData, (draft) => {
6743
- if (!draft?.data) {
6744
- return;
6745
- }
6746
- draft.data._count.comments += increment ? 1 : -1;
6747
- draft.data.comments = increment ? [{ id: Date.now().toString() }] : [];
6748
- })
6749
- );
6750
- };
6751
- var UpdateCommentsInfinite = (increment, queryClient, KEY, activityId) => {
6752
- queryClient.setQueriesData(
6753
- { queryKey: KEY, exact: false },
6754
- (originalData) => (0, import_immer5.produce)(originalData, (draft) => {
6755
- if (!draft?.pages || draft.pages.length === 0) {
6756
- return;
6757
- }
6758
- for (const page of draft.pages) {
6759
- for (const activity of page.data) {
6760
- if (activity.id === activityId) {
6761
- activity._count.comments += increment ? 1 : -1;
6762
- activity.comments = increment ? [{ id: Date.now().toString() }] : [];
6763
- }
6764
- }
6765
- }
6766
- })
6767
- );
6768
- };
6769
-
6770
- // src/mutations/self/useSelfCreateActivity.ts
6771
- var SelfCreateActivity = async ({
6772
- activity,
6773
- base64Image,
6774
- videoUri,
6616
+ // src/mutations/self/useSelfCreateActivity.ts
6617
+ var SelfCreateActivity = async ({
6618
+ activity,
6619
+ base64Image,
6620
+ videoUri,
6775
6621
  clientApiParams,
6776
6622
  queryClient
6777
6623
  }) => {
@@ -6880,64 +6726,6 @@ var useDeleteActivity = (options = {}) => {
6880
6726
  return useConnectedMutation_default(DeleteActivity, options);
6881
6727
  };
6882
6728
 
6883
- // src/mutations/self/useSelfJoinCommunity.ts
6884
- var SelfJoinCommunity = async ({
6885
- communityId,
6886
- clientApiParams,
6887
- queryClient
6888
- }) => {
6889
- const clientApi = await GetClientAPI(clientApiParams);
6890
- const { data } = await clientApi.post(`/self/communities/${communityId}`);
6891
- if (queryClient && data.status === "ok") {
6892
- queryClient.invalidateQueries({
6893
- queryKey: COMMUNITY_QUERY_KEY(communityId)
6894
- });
6895
- queryClient.invalidateQueries({
6896
- queryKey: COMMUNITIES_QUERY_KEY()
6897
- });
6898
- queryClient.invalidateQueries({
6899
- queryKey: SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY()
6900
- });
6901
- queryClient.invalidateQueries({
6902
- queryKey: SELF_COMMUNITY_MEMBERSHIP_QUERY_KEY(communityId)
6903
- });
6904
- }
6905
- return data;
6906
- };
6907
- var useSelfJoinCommunity = (options = {}) => {
6908
- return useConnectedMutation_default(SelfJoinCommunity, options);
6909
- };
6910
-
6911
- // src/mutations/self/useSelfLeaveCommunity.ts
6912
- var SelfLeaveCommunity = async ({
6913
- communityId,
6914
- clientApiParams,
6915
- queryClient
6916
- }) => {
6917
- const clientApi = await GetClientAPI(clientApiParams);
6918
- const { data } = await clientApi.delete(
6919
- `/self/communities/${communityId}`
6920
- );
6921
- if (queryClient && data.status === "ok") {
6922
- queryClient.invalidateQueries({
6923
- queryKey: COMMUNITY_QUERY_KEY(communityId)
6924
- });
6925
- queryClient.invalidateQueries({
6926
- queryKey: COMMUNITIES_QUERY_KEY()
6927
- });
6928
- queryClient.invalidateQueries({
6929
- queryKey: SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY()
6930
- });
6931
- queryClient.invalidateQueries({
6932
- queryKey: SELF_COMMUNITY_MEMBERSHIP_QUERY_KEY(communityId)
6933
- });
6934
- }
6935
- return data;
6936
- };
6937
- var useSelfLeaveCommunity = (options = {}) => {
6938
- return useConnectedMutation_default(SelfLeaveCommunity, options);
6939
- };
6940
-
6941
6729
  // src/mutations/self/useSelfUpdateCommunityMembership.ts
6942
6730
  var SelfUpdateCommunityMembership = async ({
6943
6731
  communityId,
@@ -6990,102 +6778,6 @@ var useUpdateSelf = (options = {}) => {
6990
6778
  return useConnectedMutation_default(UpdateSelf, options);
6991
6779
  };
6992
6780
 
6993
- // src/mutations/self/useUpdateSelfEventListing.ts
6994
- var UpdateSelfEventListing = async ({
6995
- eventId,
6996
- event,
6997
- base64,
6998
- clientApiParams,
6999
- queryClient
7000
- }) => {
7001
- const clientApi = await GetClientAPI(clientApiParams);
7002
- const { data } = await clientApi.put(
7003
- `/self/events/listings/${eventId}`,
7004
- {
7005
- event,
7006
- image: base64 ?? void 0
7007
- }
7008
- );
7009
- if (queryClient && data.status === "ok") {
7010
- SET_EVENT_QUERY_DATA(queryClient, [eventId], data, [
7011
- clientApiParams.locale
7012
- ]);
7013
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data, [
7014
- clientApiParams.locale
7015
- ]);
7016
- queryClient.invalidateQueries({ queryKey: EVENT_QUERY_KEY(eventId) });
7017
- queryClient.invalidateQueries({
7018
- queryKey: SELF_EVENT_LISTING_QUERY_KEY(eventId)
7019
- });
7020
- queryClient.invalidateQueries({
7021
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(false)
7022
- });
7023
- queryClient.invalidateQueries({
7024
- queryKey: SELF_EVENT_LISTINGS_QUERY_KEY(true)
7025
- });
7026
- }
7027
- return data;
7028
- };
7029
- var useUpdateSelfEventListing = (options = {}) => {
7030
- return useConnectedMutation_default(UpdateSelfEventListing, options);
7031
- };
7032
-
7033
- // src/mutations/self/useUpdateSelfEventListingSession.ts
7034
- var UpdateSelfEventListingSession = async ({
7035
- eventId,
7036
- session,
7037
- sessionId,
7038
- clientApiParams,
7039
- queryClient
7040
- }) => {
7041
- const clientApi = await GetClientAPI(clientApiParams);
7042
- const { data } = await clientApi.put(
7043
- `/self/events/listings/${eventId}/sessions/${sessionId}`,
7044
- {
7045
- session
7046
- }
7047
- );
7048
- if (queryClient && data.status === "ok") {
7049
- queryClient.invalidateQueries({
7050
- queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
7051
- });
7052
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
7053
- }
7054
- return data;
7055
- };
7056
- var useUpdateSelfEventListingSession = (options = {}) => {
7057
- return useConnectedMutation_default(UpdateSelfEventListingSession, options);
7058
- };
7059
-
7060
- // src/mutations/self/useUpdateSelfEventListingSpeaker.ts
7061
- var UpdateSelfEventListingSpeaker = async ({
7062
- eventId,
7063
- speaker,
7064
- speakerId,
7065
- buffer,
7066
- clientApiParams,
7067
- queryClient
7068
- }) => {
7069
- const clientApi = await GetClientAPI(clientApiParams);
7070
- const { data } = await clientApi.put(
7071
- `/self/events/listings/${eventId}/speakers/${speakerId}`,
7072
- {
7073
- speaker,
7074
- buffer: buffer || void 0
7075
- }
7076
- );
7077
- if (queryClient && data.status === "ok") {
7078
- queryClient.invalidateQueries({
7079
- queryKey: EVENT_SPEAKERS_QUERY_KEY(eventId)
7080
- });
7081
- SET_SELF_EVENT_LISTING_QUERY_DATA(queryClient, [eventId], data);
7082
- }
7083
- return data;
7084
- };
7085
- var useUpdateSelfEventListingSpeaker = (options = {}) => {
7086
- return useConnectedMutation_default(UpdateSelfEventListingSpeaker, options);
7087
- };
7088
-
7089
6781
  // src/mutations/self/useUpdateSelfImage.ts
7090
6782
  var UpdateSelfImage = async ({
7091
6783
  base64,
@@ -7227,6 +6919,713 @@ var CreateTeamAccount = async ({
7227
6919
  var useCreateTeamAccount = (options = {}) => {
7228
6920
  return useConnectedMutation_default(CreateTeamAccount, options);
7229
6921
  };
6922
+
6923
+ // src/mutations/communities/useAcceptCommunityInvitation.ts
6924
+ var AcceptCommunityInvitation = async ({
6925
+ communityId,
6926
+ requestId,
6927
+ clientApiParams,
6928
+ queryClient
6929
+ }) => {
6930
+ const clientApi = await GetClientAPI(clientApiParams);
6931
+ const { data } = await clientApi.post(
6932
+ `/communities/${communityId}/invites/${requestId}`
6933
+ );
6934
+ if (queryClient && data.status === "ok") {
6935
+ queryClient.invalidateQueries({
6936
+ queryKey: SELF_NOTIFICATIONS_QUERY_KEY("")
6937
+ });
6938
+ queryClient.invalidateQueries({
6939
+ queryKey: SELF_NOTIFICATION_COUNT_QUERY_KEY("")
6940
+ });
6941
+ }
6942
+ return data;
6943
+ };
6944
+ var useAcceptCommunityInvitation = (options = {}) => {
6945
+ return useConnectedMutation_default(AcceptCommunityInvitation, options);
6946
+ };
6947
+
6948
+ // src/mutations/communities/useAcceptCommunityRequest.ts
6949
+ var AcceptCommunityRequest = async ({
6950
+ communityId,
6951
+ requestId,
6952
+ clientApiParams,
6953
+ queryClient
6954
+ }) => {
6955
+ const clientApi = await GetClientAPI(clientApiParams);
6956
+ const { data } = await clientApi.post(
6957
+ `/communities/${communityId}/requests/${requestId}`
6958
+ );
6959
+ if (queryClient && data.status === "ok") {
6960
+ queryClient.invalidateQueries({
6961
+ queryKey: COMMUNITY_REQUESTS_QUERY_KEY(communityId)
6962
+ });
6963
+ }
6964
+ return data;
6965
+ };
6966
+ var useAcceptCommunityRequest = (options = {}) => {
6967
+ return useConnectedMutation_default(AcceptCommunityRequest, options);
6968
+ };
6969
+
6970
+ // src/mutations/communities/useCreateCommunity.ts
6971
+ var CreateCommunity = async ({
6972
+ community,
6973
+ imageDataUri,
6974
+ clientApiParams,
6975
+ queryClient
6976
+ }) => {
6977
+ const clientApi = await GetClientAPI(clientApiParams);
6978
+ const { data } = await clientApi.post(
6979
+ `/communities`,
6980
+ {
6981
+ community,
6982
+ imageDataUri
6983
+ }
6984
+ );
6985
+ if (queryClient && data.status === "ok") {
6986
+ SET_COMMUNITY_QUERY_DATA(queryClient, [data.data.id], data);
6987
+ queryClient.invalidateQueries({
6988
+ queryKey: COMMUNITIES_QUERY_KEY()
6989
+ });
6990
+ }
6991
+ return data;
6992
+ };
6993
+ var useCreateCommunity = (options = {}) => {
6994
+ return useConnectedMutation_default(CreateCommunity, options);
6995
+ };
6996
+
6997
+ // src/mutations/communities/useCreateCommunityInvitations.ts
6998
+ var CreateCommunityInvitations = async ({
6999
+ communityId,
7000
+ accountIds,
7001
+ clientApiParams,
7002
+ queryClient
7003
+ }) => {
7004
+ const clientApi = await GetClientAPI(clientApiParams);
7005
+ const { data } = await clientApi.post(
7006
+ `/communities/${communityId}/invites`,
7007
+ {
7008
+ accountIds
7009
+ }
7010
+ );
7011
+ if (queryClient && data.message === "ok") {
7012
+ queryClient.invalidateQueries({
7013
+ queryKey: COMMUNITY_INVITABLE_ACCOUNTS_QUERY_KEY(communityId)
7014
+ });
7015
+ }
7016
+ return data;
7017
+ };
7018
+ var useCreateCommunityInvitations = (options = {}) => {
7019
+ return useConnectedMutation_default(CreateCommunityInvitations, options);
7020
+ };
7021
+
7022
+ // src/mutations/communities/useCreateCommunityRequest.ts
7023
+ var CreateCommunityRequest = async ({
7024
+ communityId,
7025
+ clientApiParams
7026
+ }) => {
7027
+ const clientApi = await GetClientAPI(clientApiParams);
7028
+ const { data } = await clientApi.post(
7029
+ `/communities/${communityId}/requests`
7030
+ );
7031
+ return data;
7032
+ };
7033
+ var useCreateCommunityRequest = (options = {}) => {
7034
+ return useConnectedMutation_default(CreateCommunityRequest, options);
7035
+ };
7036
+
7037
+ // src/mutations/communities/useDeactivateCommunity.ts
7038
+ var DeactivateCommunity = async ({
7039
+ communityId,
7040
+ community,
7041
+ imageDataUri,
7042
+ clientApiParams,
7043
+ queryClient
7044
+ }) => {
7045
+ const clientApi = await GetClientAPI(clientApiParams);
7046
+ const { data } = await clientApi.post(
7047
+ `/communities/${communityId}`,
7048
+ {
7049
+ community,
7050
+ imageDataUri
7051
+ }
7052
+ );
7053
+ if (queryClient && data.status === "ok") {
7054
+ queryClient.invalidateQueries({
7055
+ queryKey: COMMUNITIES_QUERY_KEY()
7056
+ });
7057
+ }
7058
+ return data;
7059
+ };
7060
+ var useDeactivateCommunity = (options = {}) => {
7061
+ return useConnectedMutation_default(DeactivateCommunity, options);
7062
+ };
7063
+
7064
+ // src/mutations/communities/useDeleteCommunityInvitation.ts
7065
+ var DeleteCommunityInvitation = async ({
7066
+ communityId,
7067
+ requestId,
7068
+ clientApiParams,
7069
+ queryClient
7070
+ }) => {
7071
+ const clientApi = await GetClientAPI(clientApiParams);
7072
+ const { data } = await clientApi.delete(
7073
+ `/communities/${communityId}/invites/${requestId}`
7074
+ );
7075
+ if (queryClient && data.status === "ok") {
7076
+ queryClient.invalidateQueries({
7077
+ queryKey: COMMUNITY_REQUESTS_QUERY_KEY(communityId)
7078
+ });
7079
+ }
7080
+ return data;
7081
+ };
7082
+ var useDeleteCommunityInvitation = (options = {}) => {
7083
+ return useConnectedMutation_default(DeleteCommunityInvitation, options);
7084
+ };
7085
+
7086
+ // src/mutations/communities/useJoinCommunity.ts
7087
+ var JoinCommunity = async ({
7088
+ communityId,
7089
+ clientApiParams,
7090
+ queryClient
7091
+ }) => {
7092
+ const clientApi = await GetClientAPI(clientApiParams);
7093
+ const { data } = await clientApi.post(`/communities/${communityId}/join`);
7094
+ if (queryClient && data.status === "ok") {
7095
+ queryClient.invalidateQueries({
7096
+ queryKey: COMMUNITY_QUERY_KEY(communityId)
7097
+ });
7098
+ queryClient.invalidateQueries({
7099
+ queryKey: COMMUNITIES_QUERY_KEY()
7100
+ });
7101
+ queryClient.invalidateQueries({
7102
+ queryKey: SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY()
7103
+ });
7104
+ queryClient.invalidateQueries({
7105
+ queryKey: SELF_COMMUNITY_MEMBERSHIP_QUERY_KEY(communityId)
7106
+ });
7107
+ }
7108
+ return data;
7109
+ };
7110
+ var useJoinCommunity = (options = {}) => {
7111
+ return useConnectedMutation_default(JoinCommunity, options);
7112
+ };
7113
+
7114
+ // src/mutations/communities/useLeaveCommunity.ts
7115
+ var LeaveCommunity = async ({
7116
+ communityId,
7117
+ clientApiParams,
7118
+ queryClient
7119
+ }) => {
7120
+ const clientApi = await GetClientAPI(clientApiParams);
7121
+ const { data } = await clientApi.post(
7122
+ `/communities/${communityId}/leave`
7123
+ );
7124
+ if (queryClient && data.status === "ok") {
7125
+ queryClient.invalidateQueries({
7126
+ queryKey: COMMUNITY_QUERY_KEY(communityId)
7127
+ });
7128
+ queryClient.invalidateQueries({
7129
+ queryKey: COMMUNITIES_QUERY_KEY()
7130
+ });
7131
+ queryClient.invalidateQueries({
7132
+ queryKey: SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY()
7133
+ });
7134
+ queryClient.invalidateQueries({
7135
+ queryKey: SELF_COMMUNITY_MEMBERSHIP_QUERY_KEY(communityId)
7136
+ });
7137
+ }
7138
+ return data;
7139
+ };
7140
+ var useLeaveCommunity = (options = {}) => {
7141
+ return useConnectedMutation_default(LeaveCommunity, options);
7142
+ };
7143
+
7144
+ // src/mutations/communities/useRejectCommunityRequest.ts
7145
+ var RejectCommunityRequest = async ({
7146
+ communityId,
7147
+ requestId,
7148
+ clientApiParams,
7149
+ queryClient
7150
+ }) => {
7151
+ const clientApi = await GetClientAPI(clientApiParams);
7152
+ const { data } = await clientApi.delete(`/communities/${communityId}/requests/${requestId}`);
7153
+ if (queryClient && data.status === "ok") {
7154
+ SET_COMMUNITY_REQUEST_QUERY_DATA(
7155
+ queryClient,
7156
+ [communityId, data.data.id],
7157
+ data
7158
+ );
7159
+ queryClient.invalidateQueries({
7160
+ queryKey: COMMUNITY_REQUESTS_QUERY_KEY(communityId)
7161
+ });
7162
+ }
7163
+ return data;
7164
+ };
7165
+ var useRejectCommunityRequest = (options = {}) => {
7166
+ return useConnectedMutation_default(RejectCommunityRequest, options);
7167
+ };
7168
+
7169
+ // src/mutations/communities/useRemoveCommunityMember.ts
7170
+ var RemoveCommunityMember = async ({
7171
+ communityId,
7172
+ accountId,
7173
+ clientApiParams,
7174
+ queryClient
7175
+ }) => {
7176
+ const clientApi = await GetClientAPI(clientApiParams);
7177
+ const { data } = await clientApi.delete(
7178
+ `/communities/${communityId}/members/${accountId}`
7179
+ );
7180
+ if (queryClient && data.status === "ok") {
7181
+ queryClient.invalidateQueries({
7182
+ queryKey: COMMUNITY_MEMBERS_QUERY_KEY(communityId)
7183
+ });
7184
+ }
7185
+ return data;
7186
+ };
7187
+ var useRemoveCommunityMember = (options = {}) => {
7188
+ return useConnectedMutation_default(RemoveCommunityMember, options);
7189
+ };
7190
+
7191
+ // src/mutations/communities/useUpdateCommunity.ts
7192
+ var UpdateCommunity = async ({
7193
+ communityId,
7194
+ community,
7195
+ imageDataUri,
7196
+ clientApiParams,
7197
+ queryClient
7198
+ }) => {
7199
+ const clientApi = await GetClientAPI(clientApiParams);
7200
+ const { data } = await clientApi.put(
7201
+ `/communities/${communityId}`,
7202
+ {
7203
+ community,
7204
+ imageDataUri
7205
+ }
7206
+ );
7207
+ if (queryClient && data.status === "ok") {
7208
+ SET_COMMUNITY_QUERY_DATA(queryClient, [data.data.id], data);
7209
+ queryClient.invalidateQueries({
7210
+ queryKey: COMMUNITIES_QUERY_KEY()
7211
+ });
7212
+ }
7213
+ return data;
7214
+ };
7215
+ var useUpdateCommunity = (options = {}) => {
7216
+ return useConnectedMutation_default(UpdateCommunity, options);
7217
+ };
7218
+
7219
+ // src/mutations/communities/useDemoteCommunityModerator.ts
7220
+ var DemoteCommunityModerator = async ({
7221
+ communityId,
7222
+ accountId,
7223
+ clientApiParams,
7224
+ queryClient
7225
+ }) => {
7226
+ const clientApi = await GetClientAPI(clientApiParams);
7227
+ const { data } = await clientApi.post(`/communities/${communityId}/members/${accountId}/demote`);
7228
+ if (queryClient && data.status === "ok") {
7229
+ queryClient.invalidateQueries({
7230
+ queryKey: COMMUNITY_MEMBERS_QUERY_KEY(communityId)
7231
+ });
7232
+ }
7233
+ return data;
7234
+ };
7235
+ var useDemoteCommunityModerator = (options = {}) => {
7236
+ return useConnectedMutation_default(DemoteCommunityModerator, options);
7237
+ };
7238
+
7239
+ // src/mutations/communities/usePromoteCommunityMember.ts
7240
+ var PromoteCommunityMember = async ({
7241
+ communityId,
7242
+ accountId,
7243
+ clientApiParams,
7244
+ queryClient
7245
+ }) => {
7246
+ const clientApi = await GetClientAPI(clientApiParams);
7247
+ const { data } = await clientApi.post(`/communities/${communityId}/members/${accountId}/promote`);
7248
+ if (queryClient && data.status === "ok") {
7249
+ queryClient.invalidateQueries({
7250
+ queryKey: COMMUNITY_MEMBERS_QUERY_KEY(communityId)
7251
+ });
7252
+ }
7253
+ return data;
7254
+ };
7255
+ var usePromoteCommunityMember = (options = {}) => {
7256
+ return useConnectedMutation_default(PromoteCommunityMember, options);
7257
+ };
7258
+
7259
+ // src/mutations/communities/useCreateCommunityAnnouncement.ts
7260
+ var CreateCommunityAnnouncement = async ({
7261
+ communityId,
7262
+ title,
7263
+ html,
7264
+ email,
7265
+ push,
7266
+ clientApiParams,
7267
+ queryClient
7268
+ }) => {
7269
+ const clientApi = await GetClientAPI(clientApiParams);
7270
+ const { data } = await clientApi.post(
7271
+ `/communities/${communityId}/announcements`,
7272
+ {
7273
+ title,
7274
+ html,
7275
+ email,
7276
+ push
7277
+ }
7278
+ );
7279
+ if (queryClient && data.status === "ok") {
7280
+ queryClient.invalidateQueries({
7281
+ queryKey: COMMUNITY_ANNOUNCEMENTS_QUERY_KEY(communityId)
7282
+ });
7283
+ }
7284
+ return data;
7285
+ };
7286
+ var useCreateCommunityAnnouncement = (options = {}) => {
7287
+ return useConnectedMutation_default(CreateCommunityAnnouncement, options);
7288
+ };
7289
+
7290
+ // src/mutations/communities/useRejectCommunityInvitation.ts
7291
+ var RejectCommunityInvitation = async ({
7292
+ communityId,
7293
+ requestId,
7294
+ clientApiParams,
7295
+ queryClient
7296
+ }) => {
7297
+ const clientApi = await GetClientAPI(clientApiParams);
7298
+ const { data } = await clientApi.put(
7299
+ `/communities/${communityId}/invites/${requestId}`
7300
+ );
7301
+ if (queryClient && data.status === "ok") {
7302
+ SET_COMMUNITY_REQUEST_QUERY_DATA(
7303
+ queryClient,
7304
+ [communityId, data.data.id],
7305
+ data
7306
+ );
7307
+ queryClient.invalidateQueries({
7308
+ queryKey: SELF_NOTIFICATIONS_QUERY_KEY("")
7309
+ });
7310
+ queryClient.invalidateQueries({
7311
+ queryKey: SELF_NOTIFICATION_COUNT_QUERY_KEY("")
7312
+ });
7313
+ }
7314
+ return data;
7315
+ };
7316
+ var useRejectCommunityInvitation = (options = {}) => {
7317
+ return useConnectedMutation_default(RejectCommunityInvitation, options);
7318
+ };
7319
+
7320
+ // src/mutations/listings/useCreateListingSession.ts
7321
+ var CreateListingSession = async ({
7322
+ eventId,
7323
+ session,
7324
+ imageDataUri,
7325
+ clientApiParams,
7326
+ queryClient
7327
+ }) => {
7328
+ const clientApi = await GetClientAPI(clientApiParams);
7329
+ const { data } = await clientApi.post(
7330
+ `/listings/${eventId}/sessions`,
7331
+ {
7332
+ session,
7333
+ imageDataUri
7334
+ }
7335
+ );
7336
+ if (queryClient && data.status === "ok") {
7337
+ queryClient.invalidateQueries({
7338
+ queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
7339
+ });
7340
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
7341
+ }
7342
+ return data;
7343
+ };
7344
+ var useCreateListingSession = (options = {}) => {
7345
+ return useConnectedMutation_default(CreateListingSession, options);
7346
+ };
7347
+
7348
+ // src/mutations/listings/useCreateListingSpeaker.ts
7349
+ var CreateListingSpeaker = async ({
7350
+ eventId,
7351
+ speaker,
7352
+ imageDataUri,
7353
+ clientApiParams,
7354
+ queryClient
7355
+ }) => {
7356
+ const clientApi = await GetClientAPI(clientApiParams);
7357
+ const { data } = await clientApi.post(
7358
+ `/listings/${eventId}/speakers`,
7359
+ {
7360
+ speaker,
7361
+ imageDataUri
7362
+ }
7363
+ );
7364
+ if (queryClient && data.status === "ok") {
7365
+ queryClient.invalidateQueries({
7366
+ queryKey: EVENT_SPEAKERS_QUERY_KEY(eventId)
7367
+ });
7368
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
7369
+ }
7370
+ return data;
7371
+ };
7372
+ var useCreateListingSpeaker = (options = {}) => {
7373
+ return useConnectedMutation_default(CreateListingSpeaker, options);
7374
+ };
7375
+
7376
+ // src/mutations/listings/useAddListingSponsor.ts
7377
+ var AddListingSponsor = async ({
7378
+ eventId,
7379
+ sponsor,
7380
+ clientApiParams,
7381
+ queryClient
7382
+ }) => {
7383
+ const clientApi = await GetClientAPI(clientApiParams);
7384
+ const { data } = await clientApi.post(
7385
+ `/listings/${eventId}/sponsors`,
7386
+ {
7387
+ sponsorId: sponsor.id
7388
+ }
7389
+ );
7390
+ if (queryClient && data.status === "ok") {
7391
+ queryClient.invalidateQueries({
7392
+ queryKey: EVENT_SPONSORS_QUERY_KEY(eventId)
7393
+ });
7394
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
7395
+ }
7396
+ return data;
7397
+ };
7398
+ var useAddListingSponsor = (options = {}) => {
7399
+ return useConnectedMutation_default(AddListingSponsor, options);
7400
+ };
7401
+
7402
+ // src/mutations/listings/useCreateListing.ts
7403
+ var CreateListing = async ({
7404
+ event,
7405
+ imageDataUri,
7406
+ communityId,
7407
+ sponsorIds,
7408
+ speakers,
7409
+ sessions,
7410
+ clientApiParams,
7411
+ queryClient
7412
+ }) => {
7413
+ const clientApi = await GetClientAPI(clientApiParams);
7414
+ const { data } = await clientApi.post(
7415
+ `/listings`,
7416
+ {
7417
+ event,
7418
+ image: imageDataUri ? imageDataUri : void 0,
7419
+ communityId: communityId || void 0,
7420
+ sponsorIds: sponsorIds || void 0,
7421
+ speakers,
7422
+ sessions
7423
+ }
7424
+ );
7425
+ if (queryClient && data.status === "ok") {
7426
+ queryClient.invalidateQueries({
7427
+ queryKey: LISTINGS_QUERY_KEY(false)
7428
+ });
7429
+ queryClient.invalidateQueries({
7430
+ queryKey: LISTINGS_QUERY_KEY(true)
7431
+ });
7432
+ if (communityId) {
7433
+ queryClient.invalidateQueries({
7434
+ queryKey: COMMUNITY_EVENTS_QUERY_KEY(communityId)
7435
+ });
7436
+ }
7437
+ queryClient.setQueryData(
7438
+ [...EVENT_QUERY_KEY(data.data.id), clientApiParams.locale],
7439
+ data
7440
+ );
7441
+ }
7442
+ return data;
7443
+ };
7444
+ var useCreateListing = (options = {}) => {
7445
+ return useConnectedMutation_default(CreateListing, options);
7446
+ };
7447
+
7448
+ // src/mutations/listings/useDeleteListingSession.ts
7449
+ var DeleteListingSession = async ({
7450
+ eventId,
7451
+ sessionId,
7452
+ clientApiParams,
7453
+ queryClient
7454
+ }) => {
7455
+ const clientApi = await GetClientAPI(clientApiParams);
7456
+ const { data } = await clientApi.delete(
7457
+ `/listings/${eventId}/sessions/${sessionId}`
7458
+ );
7459
+ if (queryClient && data.status === "ok") {
7460
+ queryClient.invalidateQueries({
7461
+ queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
7462
+ });
7463
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
7464
+ }
7465
+ return data;
7466
+ };
7467
+ var useDeleteListingSession = (options = {}) => {
7468
+ return useConnectedMutation_default(DeleteListingSession, options);
7469
+ };
7470
+
7471
+ // src/mutations/listings/useDeleteListingSpeaker.ts
7472
+ var DeleteListingSpeaker = async ({
7473
+ eventId,
7474
+ speakerId,
7475
+ clientApiParams,
7476
+ queryClient
7477
+ }) => {
7478
+ const clientApi = await GetClientAPI(clientApiParams);
7479
+ const { data } = await clientApi.delete(
7480
+ `/listings/${eventId}/speakers/${speakerId}`
7481
+ );
7482
+ if (queryClient && data.status === "ok") {
7483
+ queryClient.invalidateQueries({
7484
+ queryKey: EVENT_SPEAKERS_QUERY_KEY(eventId)
7485
+ });
7486
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
7487
+ }
7488
+ return data;
7489
+ };
7490
+ var useDeleteListingSpeaker = (options = {}) => {
7491
+ return useConnectedMutation_default(DeleteListingSpeaker, options);
7492
+ };
7493
+
7494
+ // src/mutations/listings/useRemoveListingSponsor.ts
7495
+ var RemoveListingSponsor = async ({
7496
+ eventId,
7497
+ sponsorId,
7498
+ clientApiParams,
7499
+ queryClient
7500
+ }) => {
7501
+ const clientApi = await GetClientAPI(clientApiParams);
7502
+ const { data } = await clientApi.delete(
7503
+ `/listings/${eventId}/sponsors/${sponsorId}`
7504
+ );
7505
+ if (queryClient && data.status === "ok") {
7506
+ queryClient.invalidateQueries({
7507
+ queryKey: EVENT_SPONSORS_QUERY_KEY(eventId)
7508
+ });
7509
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
7510
+ }
7511
+ return data;
7512
+ };
7513
+ var useRemoveListingSponsor = (options = {}) => {
7514
+ return useConnectedMutation_default(RemoveListingSponsor, options);
7515
+ };
7516
+
7517
+ // src/mutations/listings/useCheckinListingRegistrationPurchase.ts
7518
+ var CheckinListingRegistrationPurchase = async ({
7519
+ eventId,
7520
+ registrationId,
7521
+ purchaseId,
7522
+ clientApiParams,
7523
+ queryClient
7524
+ }) => {
7525
+ const clientApi = await GetClientAPI(clientApiParams);
7526
+ const { data } = await clientApi.post(
7527
+ `/listings/${eventId}/registrations/${registrationId}/purchases/${purchaseId}`
7528
+ );
7529
+ if (queryClient && data.status === "ok") {
7530
+ queryClient.invalidateQueries({
7531
+ queryKey: LISTING_REGISTRATIONS_QUERY_KEY(eventId)
7532
+ });
7533
+ queryClient.invalidateQueries({
7534
+ queryKey: LISTING_REGISTRATION_QUERY_KEY(eventId, registrationId)
7535
+ });
7536
+ }
7537
+ return data;
7538
+ };
7539
+ var useCheckinListingRegistrationPurchase = (options = {}) => {
7540
+ return useConnectedMutation_default(CheckinListingRegistrationPurchase, options);
7541
+ };
7542
+
7543
+ // src/mutations/listings/useUpdateListing.ts
7544
+ var UpdateListing = async ({
7545
+ eventId,
7546
+ event,
7547
+ base64,
7548
+ clientApiParams,
7549
+ queryClient
7550
+ }) => {
7551
+ const clientApi = await GetClientAPI(clientApiParams);
7552
+ const { data } = await clientApi.put(
7553
+ `/listings/${eventId}`,
7554
+ {
7555
+ event,
7556
+ image: base64 ?? void 0
7557
+ }
7558
+ );
7559
+ if (queryClient && data.status === "ok") {
7560
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data, [
7561
+ clientApiParams.locale
7562
+ ]);
7563
+ queryClient.invalidateQueries({ queryKey: EVENTS_QUERY_KEY() });
7564
+ queryClient.invalidateQueries({ queryKey: EVENT_QUERY_KEY(eventId) });
7565
+ }
7566
+ return data;
7567
+ };
7568
+ var useUpdateListing = (options = {}) => {
7569
+ return useConnectedMutation_default(UpdateListing, options);
7570
+ };
7571
+
7572
+ // src/mutations/listings/useUpdateListingSession.ts
7573
+ var UpdateListingSession = async ({
7574
+ eventId,
7575
+ session,
7576
+ sessionId,
7577
+ imageDataUri,
7578
+ clientApiParams,
7579
+ queryClient
7580
+ }) => {
7581
+ const clientApi = await GetClientAPI(clientApiParams);
7582
+ const { data } = await clientApi.put(
7583
+ `/listings/${eventId}/sessions/${sessionId}`,
7584
+ {
7585
+ session,
7586
+ imageDataUri
7587
+ }
7588
+ );
7589
+ if (queryClient && data.status === "ok") {
7590
+ queryClient.invalidateQueries({
7591
+ queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
7592
+ });
7593
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
7594
+ }
7595
+ return data;
7596
+ };
7597
+ var useUpdateListingSession = (options = {}) => {
7598
+ return useConnectedMutation_default(UpdateListingSession, options);
7599
+ };
7600
+
7601
+ // src/mutations/listings/useUpdateListingSpeaker.ts
7602
+ var UpdateListingSpeaker = async ({
7603
+ eventId,
7604
+ speaker,
7605
+ speakerId,
7606
+ imageDataUri,
7607
+ clientApiParams,
7608
+ queryClient
7609
+ }) => {
7610
+ const clientApi = await GetClientAPI(clientApiParams);
7611
+ const { data } = await clientApi.put(
7612
+ `/listings/${eventId}/speakers/${speakerId}`,
7613
+ {
7614
+ speaker,
7615
+ imageDataUri
7616
+ }
7617
+ );
7618
+ if (queryClient && data.status === "ok") {
7619
+ queryClient.invalidateQueries({
7620
+ queryKey: EVENT_SPEAKERS_QUERY_KEY(eventId)
7621
+ });
7622
+ SET_LISTING_QUERY_DATA(queryClient, [eventId], data);
7623
+ }
7624
+ return data;
7625
+ };
7626
+ var useUpdateListingSpeaker = (options = {}) => {
7627
+ return useConnectedMutation_default(UpdateListingSpeaker, options);
7628
+ };
7230
7629
  // Annotate the CommonJS export names for ESM import in node:
7231
7630
  0 && (module.exports = {
7232
7631
  ACCOUNTS_QUERY_KEY,
@@ -7240,14 +7639,13 @@ var useCreateTeamAccount = (options = {}) => {
7240
7639
  ACTIVITY_COMMENTS_QUERY_KEY,
7241
7640
  ACTIVITY_QUERY_KEY,
7242
7641
  ADVERTISEMENT_QUERY_KEY,
7642
+ AcceptCommunityInvitation,
7643
+ AcceptCommunityRequest,
7243
7644
  AcceptTransfer,
7244
7645
  AccountType,
7245
- AddCommunityEvent,
7646
+ AddListingSponsor,
7246
7647
  AddSelfChatChannelMember,
7247
7648
  AddSelfDelegate,
7248
- AddSelfEventListingSession,
7249
- AddSelfEventListingSpeaker,
7250
- AddSelfEventListingSponsor,
7251
7649
  AddSelfEventRegistrationPurchase,
7252
7650
  AddSelfEventRegistrationPurchaseAddOn,
7253
7651
  AddSelfEventSession,
@@ -7258,10 +7656,12 @@ var useCreateTeamAccount = (options = {}) => {
7258
7656
  COMMUNITY_ACTIVITIES_QUERY_KEY,
7259
7657
  COMMUNITY_ANNOUNCEMENTS_QUERY_KEY,
7260
7658
  COMMUNITY_EVENTS_QUERY_KEY,
7659
+ COMMUNITY_INVITABLE_ACCOUNTS_QUERY_KEY,
7261
7660
  COMMUNITY_MEDIA_QUERY_KEY,
7262
7661
  COMMUNITY_MEMBERS_QUERY_KEY,
7263
- COMMUNITY_MODERATORS_QUERY_KEY,
7264
7662
  COMMUNITY_QUERY_KEY,
7663
+ COMMUNITY_REQUESTS_QUERY_KEY,
7664
+ COMMUNITY_REQUEST_QUERY_KEY,
7265
7665
  COMMUNITY_SPONSORS_QUERY_KEY,
7266
7666
  CONTENTS_QUERY_KEY,
7267
7667
  CONTENT_ACTIVITIES_QUERY_KEY,
@@ -7275,27 +7675,39 @@ var useCreateTeamAccount = (options = {}) => {
7275
7675
  CancelTransfer,
7276
7676
  CaptureInvoicePayment,
7277
7677
  CaptureSelfEventRegistrationPayment,
7678
+ CheckinListingRegistrationPurchase,
7278
7679
  CommunityAccess,
7279
7680
  CommunityMembershipRole,
7681
+ CommunityRequestStatus,
7280
7682
  CompleteEventActivation,
7281
7683
  ConnectedXMProvider,
7282
7684
  ContentTypeFormat,
7283
7685
  CouponType,
7686
+ CreateCommunity,
7284
7687
  CreateCommunityAnnouncement,
7688
+ CreateCommunityInvitations,
7689
+ CreateCommunityRequest,
7285
7690
  CreateEventLead,
7691
+ CreateListing,
7692
+ CreateListingSession,
7693
+ CreateListingSpeaker,
7286
7694
  CreateSelfChatChannel,
7287
7695
  CreateSelfChatChannelMessage,
7288
- CreateSelfEventListing,
7289
7696
  CreateSubscription,
7290
7697
  CreateSupportTicket,
7291
7698
  CreateTeamAccount,
7292
7699
  Currency,
7700
+ DeactivateCommunity,
7293
7701
  DeleteActivity,
7702
+ DeleteCommunityInvitation,
7703
+ DeleteListingSession,
7704
+ DeleteListingSpeaker,
7294
7705
  DeleteReshare,
7295
7706
  DeleteSelf,
7296
7707
  DeleteSelfChatChannel,
7297
7708
  DeleteSelfChatChannelMessage,
7298
7709
  DeleteSelfPushDevice,
7710
+ DemoteCommunityModerator,
7299
7711
  EVENTS_FEATURED_QUERY_KEY,
7300
7712
  EVENTS_QUERY_KEY,
7301
7713
  EVENT_ACTIVITIES_QUERY_KEY,
@@ -7337,9 +7749,11 @@ var useCreateTeamAccount = (options = {}) => {
7337
7749
  GetCommunityActivities,
7338
7750
  GetCommunityAnnouncements,
7339
7751
  GetCommunityEvents,
7752
+ GetCommunityInvitableAccounts,
7340
7753
  GetCommunityMedia,
7341
7754
  GetCommunityMembers,
7342
- GetCommunityModerators,
7755
+ GetCommunityRequest,
7756
+ GetCommunityRequests,
7343
7757
  GetCommunitySponsors,
7344
7758
  GetContent,
7345
7759
  GetContentActivities,
@@ -7387,6 +7801,7 @@ var useCreateTeamAccount = (options = {}) => {
7387
7801
  GetSelfDelegateOf,
7388
7802
  GetSelfDelegates,
7389
7803
  GetSelfEventListing,
7804
+ GetSelfEventListingRegistration,
7390
7805
  GetSelfEventListingRegistrations,
7391
7806
  GetSelfEventListings,
7392
7807
  GetSelfEventRegistration,
@@ -7395,6 +7810,7 @@ var useCreateTeamAccount = (options = {}) => {
7395
7810
  GetSelfEventRegistrationPurchaseAddOns,
7396
7811
  GetSelfEventRegistrationPurchaseReservationSections,
7397
7812
  GetSelfEventRegistrationPurchaseSections,
7813
+ GetSelfEventRegistrationStatus,
7398
7814
  GetSelfEventSessions,
7399
7815
  GetSelfEvents,
7400
7816
  GetSelfFeed,
@@ -7418,9 +7834,15 @@ var useCreateTeamAccount = (options = {}) => {
7418
7834
  INVOICE_QUERY_KEY,
7419
7835
  ImageType,
7420
7836
  InvoiceStatus,
7837
+ JoinCommunity,
7421
7838
  LEVELS_QUERY_KEY,
7422
7839
  LEVEL_QUERY_KEY,
7423
7840
  LEVEL_SPONSORS_QUERY_KEY,
7841
+ LISTINGS_QUERY_KEY,
7842
+ LISTING_QUERY_KEY,
7843
+ LISTING_REGISTRATIONS_QUERY_KEY,
7844
+ LISTING_REGISTRATION_QUERY_KEY,
7845
+ LeaveCommunity,
7424
7846
  LeaveSelfChatChannel,
7425
7847
  LikeActivity,
7426
7848
  MergeInfinitePages,
@@ -7430,17 +7852,18 @@ var useCreateTeamAccount = (options = {}) => {
7430
7852
  ORGANIZATION_PAYMENT_INTEGRATION_QUERY_KEY,
7431
7853
  ORGANIZATION_QUERY_KEY,
7432
7854
  ORGANIZATION_SUBSCRIPTIONS_QUERY_KEY,
7855
+ PromoteCommunityMember,
7433
7856
  PushDeviceAppType,
7434
7857
  PushService,
7435
7858
  RegisterCancelledEventRegistration,
7436
7859
  RegistrationQuestionType,
7437
7860
  RegistrationStatus,
7861
+ RejectCommunityInvitation,
7862
+ RejectCommunityRequest,
7438
7863
  RejectTransfer,
7439
- RemoveCommunityEvent,
7864
+ RemoveCommunityMember,
7865
+ RemoveListingSponsor,
7440
7866
  RemoveSelfDelegate,
7441
- RemoveSelfEventListingSession,
7442
- RemoveSelfEventListingSpeaker,
7443
- RemoveSelfEventListingSponsor,
7444
7867
  RemoveSelfEventRegistrationCoupon,
7445
7868
  RemoveSelfEventRegistrationPurchase,
7446
7869
  RemoveSelfEventRegistrationPurchaseAddOn,
@@ -7457,15 +7880,13 @@ var useCreateTeamAccount = (options = {}) => {
7457
7880
  SELF_DELEGATES_QUERY_KEY,
7458
7881
  SELF_DELEGATE_OF_QUERY_KEY,
7459
7882
  SELF_EVENTS_QUERY_KEY,
7460
- SELF_EVENT_LISTINGS_QUERY_KEY,
7461
- SELF_EVENT_LISTING_QUERY_KEY,
7462
- SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY,
7463
7883
  SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY,
7464
7884
  SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_KEY,
7465
7885
  SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY,
7466
7886
  SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_KEY,
7467
7887
  SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY,
7468
7888
  SELF_EVENT_REGISTRATION_QUERY_KEY,
7889
+ SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY,
7469
7890
  SELF_EVENT_SESSIONS_QUERY_KEY,
7470
7891
  SELF_FEED_QUERY_KEY,
7471
7892
  SELF_INTERESTS_QUERY_KEY,
@@ -7502,8 +7923,9 @@ var useCreateTeamAccount = (options = {}) => {
7502
7923
  SET_COMMUNITY_EVENTS_QUERY_DATA,
7503
7924
  SET_COMMUNITY_MEDIA_QUERY_DATA,
7504
7925
  SET_COMMUNITY_MEMBERS_QUERY_DATA,
7505
- SET_COMMUNITY_MODERATORS_QUERY_DATA,
7506
7926
  SET_COMMUNITY_QUERY_DATA,
7927
+ SET_COMMUNITY_REQUESTS_QUERY_DATA,
7928
+ SET_COMMUNITY_REQUEST_QUERY_DATA,
7507
7929
  SET_COMMUNITY_SPONSORS_QUERY_DATA,
7508
7930
  SET_CONTENTS_QUERY_DATA,
7509
7931
  SET_CONTENT_ACTIVITIES_QUERY_DATA,
@@ -7532,6 +7954,8 @@ var useCreateTeamAccount = (options = {}) => {
7532
7954
  SET_LEVELS_QUERY_DATA,
7533
7955
  SET_LEVEL_QUERY_DATA,
7534
7956
  SET_LEVEL_SPONSORS_QUERY_DATA,
7957
+ SET_LISTING_QUERY_DATA,
7958
+ SET_LISTING_REGISTRATION_QUERY_KEY,
7535
7959
  SET_ORGANIZATION_PAGE_QUERY_DATA,
7536
7960
  SET_PUSH_DEVICE_QUERY_DATA,
7537
7961
  SET_SELF_CHAT_CHANNELS_QUERY_DATA,
@@ -7539,12 +7963,12 @@ var useCreateTeamAccount = (options = {}) => {
7539
7963
  SET_SELF_CHAT_CHANNEL_MESSAGES_QUERY_DATA,
7540
7964
  SET_SELF_CHAT_CHANNEL_QUERY_DATA,
7541
7965
  SET_SELF_COMMUNITY_MEMBERSHIP_QUERY_DATA,
7542
- SET_SELF_EVENT_LISTING_QUERY_DATA,
7543
7966
  SET_SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_DATA,
7544
7967
  SET_SELF_EVENT_REGISTRATION_PURCHASE_QUERY_DATA,
7545
7968
  SET_SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_DATA,
7546
7969
  SET_SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_DATA,
7547
7970
  SET_SELF_EVENT_REGISTRATION_QUERY_DATA,
7971
+ SET_SELF_EVENT_REGISTRATION_STATUS_QUERY_DATA,
7548
7972
  SET_SELF_QUERY_DATA,
7549
7973
  SET_SERIES_EVENTS_QUERY_DATA,
7550
7974
  SET_SERIES_LIST_QUERY_DATA,
@@ -7555,10 +7979,7 @@ var useCreateTeamAccount = (options = {}) => {
7555
7979
  SPONSOR_QUERY_KEY,
7556
7980
  SelectSelfEventRegistrationCoupon,
7557
7981
  SelectSelfEventRegistrationPurchaseReservation,
7558
- SelfCheckinRegistration,
7559
7982
  SelfCreateActivity,
7560
- SelfJoinCommunity,
7561
- SelfLeaveCommunity,
7562
7983
  SelfUpdateCommunityMembership,
7563
7984
  SubmitSelfEventRegistration,
7564
7985
  SubscriptionStatus,
@@ -7569,11 +7990,11 @@ var useCreateTeamAccount = (options = {}) => {
7569
7990
  UnfollowAccount,
7570
7991
  UnlikeActivity,
7571
7992
  UpdateCommunity,
7993
+ UpdateListing,
7994
+ UpdateListingSession,
7995
+ UpdateListingSpeaker,
7572
7996
  UpdateSelf,
7573
7997
  UpdateSelfChatChannelNotifications,
7574
- UpdateSelfEventListing,
7575
- UpdateSelfEventListingSession,
7576
- UpdateSelfEventListingSpeaker,
7577
7998
  UpdateSelfEventRegistrationQuestionResponse,
7578
7999
  UpdateSelfImage,
7579
8000
  UpdateSelfLead,
@@ -7619,13 +8040,12 @@ var useCreateTeamAccount = (options = {}) => {
7619
8040
  isTypeTrack,
7620
8041
  isTypeTransfer,
7621
8042
  setFirstPageData,
8043
+ useAcceptCommunityInvitation,
8044
+ useAcceptCommunityRequest,
7622
8045
  useAcceptTransfer,
7623
- useAddCommunityEvent,
8046
+ useAddListingSponsor,
7624
8047
  useAddSelfChatChannelMember,
7625
8048
  useAddSelfDelegate,
7626
- useAddSelfEventListingSession,
7627
- useAddSelfEventListingSpeaker,
7628
- useAddSelfEventListingSponsor,
7629
8049
  useAddSelfEventRegistrationPurchase,
7630
8050
  useAddSelfEventRegistrationPurchaseAddOn,
7631
8051
  useAddSelfEventSession,
@@ -7634,25 +8054,36 @@ var useCreateTeamAccount = (options = {}) => {
7634
8054
  useCancelTransfer,
7635
8055
  useCaptureInvoicePayment,
7636
8056
  useCaptureSelfEventRegistrationPayment,
8057
+ useCheckinListingRegistrationPurchase,
7637
8058
  useCompleteEventActivation,
7638
8059
  useConnectedInfiniteQuery,
7639
8060
  useConnectedMutation,
7640
8061
  useConnectedSingleQuery,
7641
8062
  useConnectedXM,
8063
+ useCreateCommunity,
7642
8064
  useCreateCommunityAnnouncement,
8065
+ useCreateCommunityInvitations,
8066
+ useCreateCommunityRequest,
7643
8067
  useCreateEventLead,
8068
+ useCreateListing,
8069
+ useCreateListingSession,
8070
+ useCreateListingSpeaker,
7644
8071
  useCreateSelfChatChannel,
7645
8072
  useCreateSelfChatChannelMessage,
7646
- useCreateSelfEventListing,
7647
8073
  useCreateSubscription,
7648
8074
  useCreateSupportTicket,
7649
8075
  useCreateTeamAccount,
8076
+ useDeactivateCommunity,
7650
8077
  useDeleteActivity,
8078
+ useDeleteCommunityInvitation,
8079
+ useDeleteListingSession,
8080
+ useDeleteListingSpeaker,
7651
8081
  useDeleteReshare,
7652
8082
  useDeleteSelf,
7653
8083
  useDeleteSelfChatChannel,
7654
8084
  useDeleteSelfChatChannelMessage,
7655
8085
  useDeleteSelfPushDevice,
8086
+ useDemoteCommunityModerator,
7656
8087
  useFollowAccount,
7657
8088
  useGetAccount,
7658
8089
  useGetAccountActivities,
@@ -7671,9 +8102,11 @@ var useCreateTeamAccount = (options = {}) => {
7671
8102
  useGetCommunityActivities,
7672
8103
  useGetCommunityAnnouncements,
7673
8104
  useGetCommunityEvents,
8105
+ useGetCommunityInvitableAccounts,
7674
8106
  useGetCommunityMedia,
7675
8107
  useGetCommunityMembers,
7676
- useGetCommunityModerators,
8108
+ useGetCommunityRequest,
8109
+ useGetCommunityRequests,
7677
8110
  useGetCommunitySponsors,
7678
8111
  useGetContent,
7679
8112
  useGetContentActivities,
@@ -7720,6 +8153,7 @@ var useCreateTeamAccount = (options = {}) => {
7720
8153
  useGetSelfDelegateOf,
7721
8154
  useGetSelfDelegates,
7722
8155
  useGetSelfEventListing,
8156
+ useGetSelfEventListingRegistration,
7723
8157
  useGetSelfEventListings,
7724
8158
  useGetSelfEventListingsRegistrations,
7725
8159
  useGetSelfEventRegistration,
@@ -7728,6 +8162,7 @@ var useCreateTeamAccount = (options = {}) => {
7728
8162
  useGetSelfEventRegistrationPurchaseAddOns,
7729
8163
  useGetSelfEventRegistrationPurchaseReservationSections,
7730
8164
  useGetSelfEventRegistrationPurchaseSections,
8165
+ useGetSelfEventRegistrationStatus,
7731
8166
  useGetSelfEventSessions,
7732
8167
  useGetSelfEvents,
7733
8168
  useGetSelfFeed,
@@ -7748,15 +8183,18 @@ var useCreateTeamAccount = (options = {}) => {
7748
8183
  useGetSeriesList,
7749
8184
  useGetSponsor,
7750
8185
  useGetSponsors,
8186
+ useJoinCommunity,
8187
+ useLeaveCommunity,
7751
8188
  useLeaveSelfChatChannel,
7752
8189
  useLikeActivity,
8190
+ usePromoteCommunityMember,
7753
8191
  useRegisterCancelledEventRegistration,
8192
+ useRejectCommunityInvitation,
8193
+ useRejectCommunityRequest,
7754
8194
  useRejectTransfer,
7755
- useRemoveCommunityEvent,
8195
+ useRemoveCommunityMember,
8196
+ useRemoveListingSponsor,
7756
8197
  useRemoveSelfDelegate,
7757
- useRemoveSelfEventListingSession,
7758
- useRemoveSelfEventListingSpeaker,
7759
- useRemoveSelfEventListingSponsor,
7760
8198
  useRemoveSelfEventRegistrationCoupon,
7761
8199
  useRemoveSelfEventRegistrationPurchase,
7762
8200
  useRemoveSelfEventRegistrationPurchaseAddOn,
@@ -7764,21 +8202,18 @@ var useCreateTeamAccount = (options = {}) => {
7764
8202
  useReshareActivity,
7765
8203
  useSelectSelfEventRegistrationCoupon,
7766
8204
  useSelectSelfEventRegistrationPurchaseReservation,
7767
- useSelfCheckinRegistration,
7768
8205
  useSelfCreateActivity,
7769
- useSelfJoinCommunity,
7770
- useSelfLeaveCommunity,
7771
8206
  useSelfUpdateCommunityMembership,
7772
8207
  useSubmitSelfEventRegistration,
7773
8208
  useTransferPurchase,
7774
8209
  useUnfollowAccount,
7775
8210
  useUnlikeActivity,
7776
8211
  useUpdateCommunity,
8212
+ useUpdateListing,
8213
+ useUpdateListingSession,
8214
+ useUpdateListingSpeaker,
7777
8215
  useUpdateSelf,
7778
8216
  useUpdateSelfChatChannelNotifications,
7779
- useUpdateSelfEventListing,
7780
- useUpdateSelfEventListingSession,
7781
- useUpdateSelfEventListingSpeaker,
7782
8217
  useUpdateSelfEventRegistrationQuestionResponse,
7783
8218
  useUpdateSelfImage,
7784
8219
  useUpdateSelfLead,