@connectedxm/client 0.1.28 → 0.2.0
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.d.mts +74 -134
- package/dist/index.d.ts +74 -134
- package/dist/index.js +287 -293
- package/dist/index.mjs +272 -273
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49,6 +49,7 @@ __export(src_exports, {
|
|
|
49
49
|
AddSelfEventListingSession: () => AddSelfEventListingSession,
|
|
50
50
|
AddSelfEventListingSpeaker: () => AddSelfEventListingSpeaker,
|
|
51
51
|
AddSelfEventListingSponsor: () => AddSelfEventListingSponsor,
|
|
52
|
+
AddSelfEventRegistrationPurchase: () => AddSelfEventRegistrationPurchase,
|
|
52
53
|
AddSelfEventSession: () => AddSelfEventSession,
|
|
53
54
|
AdvertisementType: () => AdvertisementType,
|
|
54
55
|
AppendInfiniteQuery: () => AppendInfiniteQuery,
|
|
@@ -71,6 +72,7 @@ __export(src_exports, {
|
|
|
71
72
|
CancelEventRegistration: () => CancelEventRegistration,
|
|
72
73
|
CancelSubscription: () => CancelSubscription,
|
|
73
74
|
CancelTransfer: () => CancelTransfer,
|
|
75
|
+
CaptureInvoicePayment: () => CaptureInvoicePayment,
|
|
74
76
|
CaptureSelfEventRegistrationPayment: () => CaptureSelfEventRegistrationPayment,
|
|
75
77
|
CommunityAccess: () => CommunityAccess,
|
|
76
78
|
CommunityMembershipRole: () => CommunityMembershipRole,
|
|
@@ -83,7 +85,6 @@ __export(src_exports, {
|
|
|
83
85
|
CreateSelfChatChannel: () => CreateSelfChatChannel,
|
|
84
86
|
CreateSelfChatChannelMessage: () => CreateSelfChatChannelMessage,
|
|
85
87
|
CreateSelfEventListing: () => CreateSelfEventListing,
|
|
86
|
-
CreateSelfEventRegistrationGuest: () => CreateSelfEventRegistrationGuest,
|
|
87
88
|
CreateSubscription: () => CreateSubscription,
|
|
88
89
|
CreateSupportTicket: () => CreateSupportTicket,
|
|
89
90
|
CreateTeamAccount: () => CreateTeamAccount,
|
|
@@ -93,7 +94,6 @@ __export(src_exports, {
|
|
|
93
94
|
DeleteSelf: () => DeleteSelf,
|
|
94
95
|
DeleteSelfChatChannel: () => DeleteSelfChatChannel,
|
|
95
96
|
DeleteSelfChatChannelMessage: () => DeleteSelfChatChannelMessage,
|
|
96
|
-
DeleteSelfEventRegistrationGuest: () => DeleteSelfEventRegistrationGuest,
|
|
97
97
|
DeleteSelfPushDevice: () => DeleteSelfPushDevice,
|
|
98
98
|
EVENTS_FEATURED_QUERY_KEY: () => EVENTS_FEATURED_QUERY_KEY,
|
|
99
99
|
EVENTS_QUERY_KEY: () => EVENTS_QUERY_KEY,
|
|
@@ -189,6 +189,8 @@ __export(src_exports, {
|
|
|
189
189
|
GetSelfEventListings: () => GetSelfEventListings,
|
|
190
190
|
GetSelfEventRegistration: () => GetSelfEventRegistration,
|
|
191
191
|
GetSelfEventRegistrationCheckout: () => GetSelfEventRegistrationCheckout,
|
|
192
|
+
GetSelfEventRegistrationPurchase: () => GetSelfEventRegistrationPurchase,
|
|
193
|
+
GetSelfEventRegistrationPurchaseSections: () => GetSelfEventRegistrationPurchaseSections,
|
|
192
194
|
GetSelfEventSessions: () => GetSelfEventSessions,
|
|
193
195
|
GetSelfEvents: () => GetSelfEvents,
|
|
194
196
|
GetSelfFeed: () => GetSelfFeed,
|
|
@@ -211,6 +213,7 @@ __export(src_exports, {
|
|
|
211
213
|
GetSponsors: () => GetSponsors,
|
|
212
214
|
INVOICE_QUERY_KEY: () => INVOICE_QUERY_KEY,
|
|
213
215
|
ImageType: () => ImageType,
|
|
216
|
+
InvoiceStatus: () => InvoiceStatus,
|
|
214
217
|
LEVELS_QUERY_KEY: () => LEVELS_QUERY_KEY,
|
|
215
218
|
LEVEL_QUERY_KEY: () => LEVEL_QUERY_KEY,
|
|
216
219
|
LEVEL_SPONSORS_QUERY_KEY: () => LEVEL_SPONSORS_QUERY_KEY,
|
|
@@ -253,6 +256,8 @@ __export(src_exports, {
|
|
|
253
256
|
SELF_EVENT_LISTING_QUERY_KEY: () => SELF_EVENT_LISTING_QUERY_KEY,
|
|
254
257
|
SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY: () => SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY,
|
|
255
258
|
SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY: () => SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY,
|
|
259
|
+
SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY: () => SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY,
|
|
260
|
+
SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY: () => SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY,
|
|
256
261
|
SELF_EVENT_REGISTRATION_QUERY_KEY: () => SELF_EVENT_REGISTRATION_QUERY_KEY,
|
|
257
262
|
SELF_EVENT_SESSIONS_QUERY_KEY: () => SELF_EVENT_SESSIONS_QUERY_KEY,
|
|
258
263
|
SELF_FEED_QUERY_KEY: () => SELF_FEED_QUERY_KEY,
|
|
@@ -327,6 +332,8 @@ __export(src_exports, {
|
|
|
327
332
|
SET_SELF_CHAT_CHANNEL_QUERY_DATA: () => SET_SELF_CHAT_CHANNEL_QUERY_DATA,
|
|
328
333
|
SET_SELF_COMMUNITY_MEMBERSHIP_QUERY_DATA: () => SET_SELF_COMMUNITY_MEMBERSHIP_QUERY_DATA,
|
|
329
334
|
SET_SELF_EVENT_LISTING_QUERY_DATA: () => SET_SELF_EVENT_LISTING_QUERY_DATA,
|
|
335
|
+
SET_SELF_EVENT_REGISTRATION_PURCHASE_QUERY_DATA: () => SET_SELF_EVENT_REGISTRATION_PURCHASE_QUERY_DATA,
|
|
336
|
+
SET_SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_DATA: () => SET_SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_DATA,
|
|
330
337
|
SET_SELF_EVENT_REGISTRATION_QUERY_DATA: () => SET_SELF_EVENT_REGISTRATION_QUERY_DATA,
|
|
331
338
|
SET_SELF_QUERY_DATA: () => SET_SELF_QUERY_DATA,
|
|
332
339
|
SET_SERIES_EVENTS_QUERY_DATA: () => SET_SERIES_EVENTS_QUERY_DATA,
|
|
@@ -337,7 +344,6 @@ __export(src_exports, {
|
|
|
337
344
|
SPONSORS_QUERY_KEY: () => SPONSORS_QUERY_KEY,
|
|
338
345
|
SPONSOR_QUERY_KEY: () => SPONSOR_QUERY_KEY,
|
|
339
346
|
SelectSelfEventRegistrationCoupon: () => SelectSelfEventRegistrationCoupon,
|
|
340
|
-
SelectSelfEventRegistrationTicket: () => SelectSelfEventRegistrationTicket,
|
|
341
347
|
SelfCheckinRegistration: () => SelfCheckinRegistration,
|
|
342
348
|
SelfCreateActivity: () => SelfCreateActivity,
|
|
343
349
|
SelfJoinCommunity: () => SelfJoinCommunity,
|
|
@@ -357,13 +363,7 @@ __export(src_exports, {
|
|
|
357
363
|
UpdateSelfEventListing: () => UpdateSelfEventListing,
|
|
358
364
|
UpdateSelfEventListingSession: () => UpdateSelfEventListingSession,
|
|
359
365
|
UpdateSelfEventListingSpeaker: () => UpdateSelfEventListingSpeaker,
|
|
360
|
-
|
|
361
|
-
UpdateSelfEventRegistrationGuestResponse: () => UpdateSelfEventRegistrationGuestResponse,
|
|
362
|
-
UpdateSelfEventRegistrationGuestResponseFile: () => UpdateSelfEventRegistrationGuestResponseFile,
|
|
363
|
-
UpdateSelfEventRegistrationGuestResponses: () => UpdateSelfEventRegistrationGuestResponses,
|
|
364
|
-
UpdateSelfEventRegistrationResponse: () => UpdateSelfEventRegistrationResponse,
|
|
365
|
-
UpdateSelfEventRegistrationResponseFile: () => UpdateSelfEventRegistrationResponseFile,
|
|
366
|
-
UpdateSelfEventRegistrationResponses: () => UpdateSelfEventRegistrationResponses,
|
|
366
|
+
UpdateSelfEventRegistrationQuestionResponse: () => UpdateSelfEventRegistrationQuestionResponse,
|
|
367
367
|
UpdateSelfImage: () => UpdateSelfImage,
|
|
368
368
|
UpdateSelfLead: () => UpdateSelfLead,
|
|
369
369
|
UpdateSelfNotificationPreferences: () => UpdateSelfNotificationPreferences,
|
|
@@ -414,10 +414,12 @@ __export(src_exports, {
|
|
|
414
414
|
useAddSelfEventListingSession: () => useAddSelfEventListingSession,
|
|
415
415
|
useAddSelfEventListingSpeaker: () => useAddSelfEventListingSpeaker,
|
|
416
416
|
useAddSelfEventListingSponsor: () => useAddSelfEventListingSponsor,
|
|
417
|
+
useAddSelfEventRegistrationPurchase: () => useAddSelfEventRegistrationPurchase,
|
|
417
418
|
useAddSelfEventSession: () => useAddSelfEventSession,
|
|
418
419
|
useCancelEventRegistration: () => useCancelEventRegistration,
|
|
419
420
|
useCancelSubscription: () => useCancelSubscription,
|
|
420
421
|
useCancelTransfer: () => useCancelTransfer,
|
|
422
|
+
useCaptureInvoicePayment: () => useCaptureInvoicePayment,
|
|
421
423
|
useCaptureSelfEventRegistrationPayment: () => useCaptureSelfEventRegistrationPayment,
|
|
422
424
|
useCompleteEventActivation: () => useCompleteEventActivation,
|
|
423
425
|
useConnectedInfiniteQuery: () => useConnectedInfiniteQuery,
|
|
@@ -429,7 +431,6 @@ __export(src_exports, {
|
|
|
429
431
|
useCreateSelfChatChannel: () => useCreateSelfChatChannel,
|
|
430
432
|
useCreateSelfChatChannelMessage: () => useCreateSelfChatChannelMessage,
|
|
431
433
|
useCreateSelfEventListing: () => useCreateSelfEventListing,
|
|
432
|
-
useCreateSelfEventRegistrationGuest: () => useCreateSelfEventRegistrationGuest,
|
|
433
434
|
useCreateSubscription: () => useCreateSubscription,
|
|
434
435
|
useCreateSupportTicket: () => useCreateSupportTicket,
|
|
435
436
|
useCreateTeamAccount: () => useCreateTeamAccount,
|
|
@@ -438,7 +439,6 @@ __export(src_exports, {
|
|
|
438
439
|
useDeleteSelf: () => useDeleteSelf,
|
|
439
440
|
useDeleteSelfChatChannel: () => useDeleteSelfChatChannel,
|
|
440
441
|
useDeleteSelfChatChannelMessage: () => useDeleteSelfChatChannelMessage,
|
|
441
|
-
useDeleteSelfEventRegistrationGuest: () => useDeleteSelfEventRegistrationGuest,
|
|
442
442
|
useDeleteSelfPushDevice: () => useDeleteSelfPushDevice,
|
|
443
443
|
useFollowAccount: () => useFollowAccount,
|
|
444
444
|
useGetAccount: () => useGetAccount,
|
|
@@ -510,6 +510,8 @@ __export(src_exports, {
|
|
|
510
510
|
useGetSelfEventListingsRegistrations: () => useGetSelfEventListingsRegistrations,
|
|
511
511
|
useGetSelfEventRegistration: () => useGetSelfEventRegistration,
|
|
512
512
|
useGetSelfEventRegistrationCheckout: () => useGetSelfEventRegistrationCheckout,
|
|
513
|
+
useGetSelfEventRegistrationPurchase: () => useGetSelfEventRegistrationPurchase,
|
|
514
|
+
useGetSelfEventRegistrationPurchaseSections: () => useGetSelfEventRegistrationPurchaseSections,
|
|
513
515
|
useGetSelfEventSessions: () => useGetSelfEventSessions,
|
|
514
516
|
useGetSelfEvents: () => useGetSelfEvents,
|
|
515
517
|
useGetSelfFeed: () => useGetSelfFeed,
|
|
@@ -544,7 +546,6 @@ __export(src_exports, {
|
|
|
544
546
|
useRemoveSelfEventSession: () => useRemoveSelfEventSession,
|
|
545
547
|
useReshareActivity: () => useReshareActivity,
|
|
546
548
|
useSelectSelfEventRegistrationCoupon: () => useSelectSelfEventRegistrationCoupon,
|
|
547
|
-
useSelectSelfEventRegistrationTicket: () => useSelectSelfEventRegistrationTicket,
|
|
548
549
|
useSelfCheckinRegistration: () => useSelfCheckinRegistration,
|
|
549
550
|
useSelfCreateActivity: () => useSelfCreateActivity,
|
|
550
551
|
useSelfJoinCommunity: () => useSelfJoinCommunity,
|
|
@@ -560,13 +561,7 @@ __export(src_exports, {
|
|
|
560
561
|
useUpdateSelfEventListing: () => useUpdateSelfEventListing,
|
|
561
562
|
useUpdateSelfEventListingSession: () => useUpdateSelfEventListingSession,
|
|
562
563
|
useUpdateSelfEventListingSpeaker: () => useUpdateSelfEventListingSpeaker,
|
|
563
|
-
|
|
564
|
-
useUpdateSelfEventRegistrationGuestResponse: () => useUpdateSelfEventRegistrationGuestResponse,
|
|
565
|
-
useUpdateSelfEventRegistrationGuestResponseFile: () => useUpdateSelfEventRegistrationGuestResponseFile,
|
|
566
|
-
useUpdateSelfEventRegistrationGuestResponses: () => useUpdateSelfEventRegistrationGuestResponses,
|
|
567
|
-
useUpdateSelfEventRegistrationResponse: () => useUpdateSelfEventRegistrationResponse,
|
|
568
|
-
useUpdateSelfEventRegistrationResponseFile: () => useUpdateSelfEventRegistrationResponseFile,
|
|
569
|
-
useUpdateSelfEventRegistrationResponses: () => useUpdateSelfEventRegistrationResponses,
|
|
564
|
+
useUpdateSelfEventRegistrationQuestionResponse: () => useUpdateSelfEventRegistrationQuestionResponse,
|
|
570
565
|
useUpdateSelfImage: () => useUpdateSelfImage,
|
|
571
566
|
useUpdateSelfLead: () => useUpdateSelfLead,
|
|
572
567
|
useUpdateSelfNotificationPreferences: () => useUpdateSelfNotificationPreferences,
|
|
@@ -867,6 +862,13 @@ var SubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatus2) => {
|
|
|
867
862
|
SubscriptionStatus2["unpaid"] = "unpaid";
|
|
868
863
|
return SubscriptionStatus2;
|
|
869
864
|
})(SubscriptionStatus || {});
|
|
865
|
+
var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
|
|
866
|
+
InvoiceStatus2["draft"] = "draft";
|
|
867
|
+
InvoiceStatus2["sent"] = "sent";
|
|
868
|
+
InvoiceStatus2["paid"] = "paid";
|
|
869
|
+
InvoiceStatus2["void"] = "void";
|
|
870
|
+
return InvoiceStatus2;
|
|
871
|
+
})(InvoiceStatus || {});
|
|
870
872
|
|
|
871
873
|
// src/utilities/AppendInfiniteQuery.ts
|
|
872
874
|
var import_immer = require("immer");
|
|
@@ -3582,29 +3584,20 @@ var SET_SELF_EVENT_REGISTRATION_QUERY_DATA = (client, keyParams, response, baseK
|
|
|
3582
3584
|
};
|
|
3583
3585
|
var GetSelfEventRegistration = async ({
|
|
3584
3586
|
eventId,
|
|
3585
|
-
ticket,
|
|
3586
|
-
quantity,
|
|
3587
|
-
coupon,
|
|
3588
3587
|
clientApiParams
|
|
3589
3588
|
}) => {
|
|
3590
3589
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
3591
|
-
const { data } = await clientApi.get(
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
coupon: coupon || void 0
|
|
3596
|
-
}
|
|
3597
|
-
});
|
|
3590
|
+
const { data } = await clientApi.get(
|
|
3591
|
+
`/self/events/${eventId}/registration`,
|
|
3592
|
+
{}
|
|
3593
|
+
);
|
|
3598
3594
|
return data;
|
|
3599
3595
|
};
|
|
3600
|
-
var useGetSelfEventRegistration = (eventId,
|
|
3596
|
+
var useGetSelfEventRegistration = (eventId, options = {}) => {
|
|
3601
3597
|
return useConnectedSingleQuery_default(
|
|
3602
3598
|
SELF_EVENT_REGISTRATION_QUERY_KEY(eventId),
|
|
3603
3599
|
(params) => GetSelfEventRegistration({
|
|
3604
3600
|
eventId,
|
|
3605
|
-
ticket,
|
|
3606
|
-
quantity,
|
|
3607
|
-
coupon,
|
|
3608
3601
|
...params
|
|
3609
3602
|
}),
|
|
3610
3603
|
{
|
|
@@ -3648,6 +3641,114 @@ var useGetSelfEventRegistrationCheckout = (eventId, registrationId = "", options
|
|
|
3648
3641
|
);
|
|
3649
3642
|
};
|
|
3650
3643
|
|
|
3644
|
+
// src/queries/self/registration/useGetSelfEventRegistrationPurchase.ts
|
|
3645
|
+
var SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY = (eventId, registrationId, purchaseId) => [
|
|
3646
|
+
...SELF_QUERY_KEY(),
|
|
3647
|
+
"EVENT",
|
|
3648
|
+
eventId,
|
|
3649
|
+
"REGISTRATION",
|
|
3650
|
+
registrationId,
|
|
3651
|
+
"PURCHASE",
|
|
3652
|
+
purchaseId
|
|
3653
|
+
];
|
|
3654
|
+
var SET_SELF_EVENT_REGISTRATION_PURCHASE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
3655
|
+
client.setQueryData(
|
|
3656
|
+
[
|
|
3657
|
+
...SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY(...keyParams),
|
|
3658
|
+
...GetBaseSingleQueryKeys(...baseKeys)
|
|
3659
|
+
],
|
|
3660
|
+
response
|
|
3661
|
+
);
|
|
3662
|
+
};
|
|
3663
|
+
var GetSelfEventRegistrationPurchase = async ({
|
|
3664
|
+
eventId,
|
|
3665
|
+
registrationId,
|
|
3666
|
+
purchaseId,
|
|
3667
|
+
clientApiParams
|
|
3668
|
+
}) => {
|
|
3669
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3670
|
+
const { data } = await clientApi.get(
|
|
3671
|
+
`/self/events/${eventId}/registration/${registrationId}/registered/purchases/${purchaseId}`,
|
|
3672
|
+
{}
|
|
3673
|
+
);
|
|
3674
|
+
return data;
|
|
3675
|
+
};
|
|
3676
|
+
var useGetSelfEventRegistrationPurchase = (eventId, registrationId, purchaseId, options = {}) => {
|
|
3677
|
+
return useConnectedSingleQuery_default(
|
|
3678
|
+
SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY(
|
|
3679
|
+
eventId,
|
|
3680
|
+
registrationId,
|
|
3681
|
+
purchaseId
|
|
3682
|
+
),
|
|
3683
|
+
(params) => GetSelfEventRegistrationPurchase({
|
|
3684
|
+
eventId,
|
|
3685
|
+
registrationId,
|
|
3686
|
+
purchaseId,
|
|
3687
|
+
...params
|
|
3688
|
+
}),
|
|
3689
|
+
{
|
|
3690
|
+
...options,
|
|
3691
|
+
enabled: !!eventId && !!registrationId && !!purchaseId && (options?.enabled ?? true)
|
|
3692
|
+
}
|
|
3693
|
+
);
|
|
3694
|
+
};
|
|
3695
|
+
|
|
3696
|
+
// src/queries/self/registration/useGetSelfEventRegistrationPurchaseSections.ts
|
|
3697
|
+
var SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY = (eventId, registrationId, purchaseId) => [
|
|
3698
|
+
...SELF_QUERY_KEY(),
|
|
3699
|
+
"EVENT",
|
|
3700
|
+
eventId,
|
|
3701
|
+
"REGISTRATION",
|
|
3702
|
+
registrationId,
|
|
3703
|
+
"PURCHASE",
|
|
3704
|
+
purchaseId,
|
|
3705
|
+
"SECTIONS"
|
|
3706
|
+
];
|
|
3707
|
+
var SET_SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
3708
|
+
client.setQueryData(
|
|
3709
|
+
[
|
|
3710
|
+
...SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY(...keyParams),
|
|
3711
|
+
...GetBaseSingleQueryKeys(...baseKeys)
|
|
3712
|
+
],
|
|
3713
|
+
response
|
|
3714
|
+
);
|
|
3715
|
+
};
|
|
3716
|
+
var GetSelfEventRegistrationPurchaseSections = async ({
|
|
3717
|
+
eventId,
|
|
3718
|
+
registrationId,
|
|
3719
|
+
purchaseId,
|
|
3720
|
+
clientApiParams
|
|
3721
|
+
}) => {
|
|
3722
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3723
|
+
const { data } = await clientApi.get(
|
|
3724
|
+
`/self/events/${eventId}/registration/${registrationId}/draft/purchases/${purchaseId}`,
|
|
3725
|
+
{}
|
|
3726
|
+
);
|
|
3727
|
+
return data;
|
|
3728
|
+
};
|
|
3729
|
+
var useGetSelfEventRegistrationPurchaseSections = (eventId, registrationId, purchaseId, options = {}) => {
|
|
3730
|
+
return useConnectedSingleQuery_default(
|
|
3731
|
+
SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY(
|
|
3732
|
+
eventId,
|
|
3733
|
+
registrationId,
|
|
3734
|
+
purchaseId
|
|
3735
|
+
),
|
|
3736
|
+
(params) => GetSelfEventRegistrationPurchaseSections({
|
|
3737
|
+
eventId,
|
|
3738
|
+
registrationId,
|
|
3739
|
+
purchaseId,
|
|
3740
|
+
...params
|
|
3741
|
+
}),
|
|
3742
|
+
{
|
|
3743
|
+
retry: false,
|
|
3744
|
+
staleTime: Infinity,
|
|
3745
|
+
refetchOnMount: false,
|
|
3746
|
+
...options,
|
|
3747
|
+
enabled: !!eventId && !!registrationId && !!purchaseId && (options?.enabled ?? true)
|
|
3748
|
+
}
|
|
3749
|
+
);
|
|
3750
|
+
};
|
|
3751
|
+
|
|
3651
3752
|
// src/queries/self/subscriptions/useGetSelfSubscriptions.ts
|
|
3652
3753
|
var SELF_SUBSCRIPTIONS_QUERY_KEY = (status) => {
|
|
3653
3754
|
const key = [...SELF_QUERY_KEY(), "SUBSCRIPTIONS"];
|
|
@@ -5268,6 +5369,31 @@ var useCreateEventLead = (options = {}) => {
|
|
|
5268
5369
|
return useConnectedMutation(CreateEventLead, options);
|
|
5269
5370
|
};
|
|
5270
5371
|
|
|
5372
|
+
// src/mutations/invoices/useCaptureInvoicePayment.ts
|
|
5373
|
+
var CaptureInvoicePayment = async ({
|
|
5374
|
+
invoiceId,
|
|
5375
|
+
intentId,
|
|
5376
|
+
clientApiParams,
|
|
5377
|
+
queryClient
|
|
5378
|
+
}) => {
|
|
5379
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5380
|
+
const { data } = await clientApi.post(
|
|
5381
|
+
`/invoices/${invoiceId}/capture`,
|
|
5382
|
+
{
|
|
5383
|
+
intentId
|
|
5384
|
+
}
|
|
5385
|
+
);
|
|
5386
|
+
if (queryClient && data.status === "ok") {
|
|
5387
|
+
SET_INVOICE_QUERY_DATA(queryClient, [invoiceId], data, [
|
|
5388
|
+
clientApiParams.locale
|
|
5389
|
+
]);
|
|
5390
|
+
}
|
|
5391
|
+
return data;
|
|
5392
|
+
};
|
|
5393
|
+
var useCaptureInvoicePayment = (options = {}) => {
|
|
5394
|
+
return useConnectedMutation_default(CaptureInvoicePayment, options);
|
|
5395
|
+
};
|
|
5396
|
+
|
|
5271
5397
|
// src/mutations/self/chat/useAddSelfChatChannelMember.ts
|
|
5272
5398
|
var AddSelfChatChannelMember = async ({
|
|
5273
5399
|
channelId,
|
|
@@ -5532,53 +5658,6 @@ var useCaptureSelfEventRegistrationPayment = (options = {}) => {
|
|
|
5532
5658
|
return useConnectedMutation_default(CaptureSelfEventRegistrationPayment, options);
|
|
5533
5659
|
};
|
|
5534
5660
|
|
|
5535
|
-
// src/mutations/self/events/registration/draft/useCreateSelfEventRegistrationGuest.tsx
|
|
5536
|
-
var CreateSelfEventRegistrationGuest = async ({
|
|
5537
|
-
eventId,
|
|
5538
|
-
registrationId,
|
|
5539
|
-
guest,
|
|
5540
|
-
clientApiParams,
|
|
5541
|
-
queryClient
|
|
5542
|
-
}) => {
|
|
5543
|
-
const clientApi = await GetClientAPI(clientApiParams);
|
|
5544
|
-
const { data } = await clientApi.post(
|
|
5545
|
-
`/self/events/${eventId}/registration/${registrationId}/draft/guests`,
|
|
5546
|
-
guest
|
|
5547
|
-
);
|
|
5548
|
-
if (queryClient && data.status === "ok") {
|
|
5549
|
-
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|
|
5550
|
-
clientApiParams.locale
|
|
5551
|
-
]);
|
|
5552
|
-
}
|
|
5553
|
-
return data;
|
|
5554
|
-
};
|
|
5555
|
-
var useCreateSelfEventRegistrationGuest = (options = {}) => {
|
|
5556
|
-
return useConnectedMutation_default(CreateSelfEventRegistrationGuest, options);
|
|
5557
|
-
};
|
|
5558
|
-
|
|
5559
|
-
// src/mutations/self/events/registration/draft/useDeleteSelfEventRegistrationGuest.tsx
|
|
5560
|
-
var DeleteSelfEventRegistrationGuest = async ({
|
|
5561
|
-
eventId,
|
|
5562
|
-
registrationId,
|
|
5563
|
-
guestId,
|
|
5564
|
-
clientApiParams,
|
|
5565
|
-
queryClient
|
|
5566
|
-
}) => {
|
|
5567
|
-
const clientApi = await GetClientAPI(clientApiParams);
|
|
5568
|
-
const { data } = await clientApi.delete(
|
|
5569
|
-
`/self/events/${eventId}/registration/${registrationId}/draft/guests/${guestId}`
|
|
5570
|
-
);
|
|
5571
|
-
if (queryClient && data.status === "ok") {
|
|
5572
|
-
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|
|
5573
|
-
clientApiParams.locale
|
|
5574
|
-
]);
|
|
5575
|
-
}
|
|
5576
|
-
return data;
|
|
5577
|
-
};
|
|
5578
|
-
var useDeleteSelfEventRegistrationGuest = (options = {}) => {
|
|
5579
|
-
return useConnectedMutation_default(DeleteSelfEventRegistrationGuest, options);
|
|
5580
|
-
};
|
|
5581
|
-
|
|
5582
5661
|
// src/mutations/self/events/registration/draft/useRemoveSelfEventRegistrationCoupon.ts
|
|
5583
5662
|
var RemoveSelfEventRegistrationCoupon = async ({
|
|
5584
5663
|
eventId,
|
|
@@ -5623,12 +5702,13 @@ var useRemoveSelfEventRegistrationCoupon = (options = {}) => {
|
|
|
5623
5702
|
var RemoveSelfEventRegistrationTicket = async ({
|
|
5624
5703
|
eventId,
|
|
5625
5704
|
registrationId,
|
|
5705
|
+
ticketId,
|
|
5626
5706
|
clientApiParams,
|
|
5627
5707
|
queryClient
|
|
5628
5708
|
}) => {
|
|
5629
5709
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
5630
5710
|
const { data } = await clientApi.delete(
|
|
5631
|
-
`/self/events/${eventId}/registration/${registrationId}/draft/ticket`
|
|
5711
|
+
`/self/events/${eventId}/registration/${registrationId}/draft/ticket/${ticketId}`
|
|
5632
5712
|
);
|
|
5633
5713
|
if (queryClient && data.status === "ok") {
|
|
5634
5714
|
queryClient.removeQueries({
|
|
@@ -5640,18 +5720,6 @@ var RemoveSelfEventRegistrationTicket = async ({
|
|
|
5640
5720
|
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|
|
5641
5721
|
clientApiParams.locale
|
|
5642
5722
|
]);
|
|
5643
|
-
queryClient.invalidateQueries({
|
|
5644
|
-
queryKey: SELF_EVENTS_QUERY_KEY(false)
|
|
5645
|
-
});
|
|
5646
|
-
queryClient.invalidateQueries({
|
|
5647
|
-
queryKey: SELF_EVENTS_QUERY_KEY(true)
|
|
5648
|
-
});
|
|
5649
|
-
queryClient.invalidateQueries({
|
|
5650
|
-
queryKey: EVENT_QUERY_KEY(eventId)
|
|
5651
|
-
});
|
|
5652
|
-
queryClient.invalidateQueries({
|
|
5653
|
-
queryKey: EVENT_REGISTRANTS_QUERY_KEY(eventId)
|
|
5654
|
-
});
|
|
5655
5723
|
}
|
|
5656
5724
|
return data;
|
|
5657
5725
|
};
|
|
@@ -5659,20 +5727,21 @@ var useRemoveSelfEventRegistrationTicket = (options = {}) => {
|
|
|
5659
5727
|
return useConnectedMutation_default(RemoveSelfEventRegistrationTicket, options);
|
|
5660
5728
|
};
|
|
5661
5729
|
|
|
5662
|
-
// src/mutations/self/events/registration/draft/
|
|
5663
|
-
var
|
|
5730
|
+
// src/mutations/self/events/registration/draft/useAddSelfEventRegistrationPurchase.ts
|
|
5731
|
+
var AddSelfEventRegistrationPurchase = async ({
|
|
5664
5732
|
eventId,
|
|
5665
5733
|
registrationId,
|
|
5666
5734
|
ticketId,
|
|
5735
|
+
quantity,
|
|
5667
5736
|
clientApiParams,
|
|
5668
5737
|
queryClient
|
|
5669
5738
|
}) => {
|
|
5670
5739
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
5671
5740
|
const { data } = await clientApi.post(
|
|
5672
|
-
`/self/events/${eventId}/registration/${registrationId}/draft/
|
|
5741
|
+
`/self/events/${eventId}/registration/${registrationId}/draft/purchases`,
|
|
5673
5742
|
{
|
|
5674
5743
|
ticketId,
|
|
5675
|
-
quantity
|
|
5744
|
+
quantity
|
|
5676
5745
|
}
|
|
5677
5746
|
);
|
|
5678
5747
|
if (queryClient && data.status === "ok") {
|
|
@@ -5694,8 +5763,8 @@ var SelectSelfEventRegistrationTicket = async ({
|
|
|
5694
5763
|
}
|
|
5695
5764
|
return data;
|
|
5696
5765
|
};
|
|
5697
|
-
var
|
|
5698
|
-
return useConnectedMutation_default(
|
|
5766
|
+
var useAddSelfEventRegistrationPurchase = (options = {}) => {
|
|
5767
|
+
return useConnectedMutation_default(AddSelfEventRegistrationPurchase, options);
|
|
5699
5768
|
};
|
|
5700
5769
|
|
|
5701
5770
|
// src/mutations/self/events/registration/draft/useSubmitSelfEventRegistration.ts
|
|
@@ -5722,123 +5791,103 @@ var useSubmitSelfEventRegistration = (options = {}) => {
|
|
|
5722
5791
|
return useConnectedMutation_default(SubmitSelfEventRegistration, options);
|
|
5723
5792
|
};
|
|
5724
5793
|
|
|
5725
|
-
// src/mutations/self/events/registration/draft/
|
|
5726
|
-
var
|
|
5727
|
-
|
|
5728
|
-
registrationId,
|
|
5729
|
-
guestId,
|
|
5730
|
-
guest,
|
|
5731
|
-
clientApiParams,
|
|
5732
|
-
queryClient
|
|
5733
|
-
}) => {
|
|
5734
|
-
const clientApi = await GetClientAPI(clientApiParams);
|
|
5735
|
-
const { data } = await clientApi.put(
|
|
5736
|
-
`/self/events/${eventId}/registration/${registrationId}/draft/guests/${guestId}`,
|
|
5737
|
-
guest
|
|
5738
|
-
);
|
|
5739
|
-
if (queryClient && data.status === "ok") {
|
|
5740
|
-
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|
|
5741
|
-
clientApiParams.locale
|
|
5742
|
-
]);
|
|
5743
|
-
}
|
|
5744
|
-
return data;
|
|
5745
|
-
};
|
|
5746
|
-
var useUpdateSelfEventRegistrationGuest = (options = {}) => {
|
|
5747
|
-
return useConnectedMutation_default(UpdateSelfEventRegistrationGuest, options);
|
|
5748
|
-
};
|
|
5749
|
-
|
|
5750
|
-
// src/mutations/self/events/registration/draft/useUpdateSelfEventRegistrationGuestResponseFile.tsx
|
|
5751
|
-
var UpdateSelfEventRegistrationGuestResponseFile = async ({
|
|
5752
|
-
eventId,
|
|
5753
|
-
registrationId,
|
|
5754
|
-
questionId,
|
|
5755
|
-
guestId,
|
|
5756
|
-
dataUrl,
|
|
5757
|
-
name,
|
|
5758
|
-
clientApiParams
|
|
5759
|
-
}) => {
|
|
5760
|
-
if (!guestId)
|
|
5761
|
-
throw new Error("Guest ID is required");
|
|
5762
|
-
const clientApi = await GetClientAPI(clientApiParams);
|
|
5763
|
-
const { data } = await clientApi.put(
|
|
5764
|
-
`/self/events/${eventId}/registration/${registrationId}/draft/guests/${guestId}/responses/file`,
|
|
5765
|
-
{
|
|
5766
|
-
dataUrl,
|
|
5767
|
-
name,
|
|
5768
|
-
questionId
|
|
5769
|
-
}
|
|
5770
|
-
);
|
|
5771
|
-
return data;
|
|
5772
|
-
};
|
|
5773
|
-
var useUpdateSelfEventRegistrationGuestResponseFile = (options = {}) => {
|
|
5774
|
-
return useConnectedMutation_default(UpdateSelfEventRegistrationGuestResponseFile, options);
|
|
5775
|
-
};
|
|
5776
|
-
|
|
5777
|
-
// src/mutations/self/events/registration/draft/useUpdateSelfEventRegistrationGuestResponses.tsx
|
|
5778
|
-
var UpdateSelfEventRegistrationGuestResponses = async ({
|
|
5779
|
-
eventId,
|
|
5780
|
-
registrationId,
|
|
5781
|
-
guestId,
|
|
5782
|
-
responses,
|
|
5783
|
-
clientApiParams
|
|
5784
|
-
}) => {
|
|
5785
|
-
const clientApi = await GetClientAPI(clientApiParams);
|
|
5786
|
-
const { data } = await clientApi.put(
|
|
5787
|
-
`/self/events/${eventId}/registration/${registrationId}/draft/guests/${guestId}/responses`,
|
|
5788
|
-
responses
|
|
5789
|
-
);
|
|
5790
|
-
return data;
|
|
5791
|
-
};
|
|
5792
|
-
var useUpdateSelfEventRegistrationGuestResponses = (options = {}) => {
|
|
5793
|
-
return useConnectedMutation_default(UpdateSelfEventRegistrationGuestResponses, options);
|
|
5794
|
-
};
|
|
5795
|
-
|
|
5796
|
-
// src/mutations/self/events/registration/draft/useUpdateSelfEventRegistrationResponseFile.tsx
|
|
5797
|
-
var UpdateSelfEventRegistrationResponseFile = async ({
|
|
5794
|
+
// src/mutations/self/events/registration/draft/useUpdateSelfEventRegistrationPurchaseQuestionResponse.ts
|
|
5795
|
+
var import_immer4 = require("immer");
|
|
5796
|
+
var UpdateSelfEventRegistrationQuestionResponse = async ({
|
|
5798
5797
|
eventId,
|
|
5799
5798
|
registrationId,
|
|
5800
|
-
|
|
5801
|
-
name,
|
|
5799
|
+
purchaseId,
|
|
5802
5800
|
questionId,
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
const clientApi = await GetClientAPI(clientApiParams);
|
|
5806
|
-
const { data } = await clientApi.put(
|
|
5807
|
-
`/self/events/${eventId}/registration/${registrationId}/draft/responses/file`,
|
|
5808
|
-
{
|
|
5809
|
-
dataUrl,
|
|
5810
|
-
name,
|
|
5811
|
-
questionId
|
|
5812
|
-
}
|
|
5813
|
-
);
|
|
5814
|
-
return data;
|
|
5815
|
-
};
|
|
5816
|
-
var useUpdateSelfEventRegistrationResponseFile = (options = {}) => {
|
|
5817
|
-
return useConnectedMutation_default(UpdateSelfEventRegistrationResponseFile, options);
|
|
5818
|
-
};
|
|
5819
|
-
|
|
5820
|
-
// src/mutations/self/events/registration/draft/useUpdateSelfEventRegistrationResponses.tsx
|
|
5821
|
-
var UpdateSelfEventRegistrationResponses = async ({
|
|
5822
|
-
eventId,
|
|
5823
|
-
registrationId,
|
|
5824
|
-
responses,
|
|
5801
|
+
value,
|
|
5802
|
+
update,
|
|
5825
5803
|
clientApiParams,
|
|
5826
5804
|
queryClient
|
|
5827
5805
|
}) => {
|
|
5828
5806
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5807
|
+
let data;
|
|
5808
|
+
if (update) {
|
|
5809
|
+
const response2 = await clientApi.put(
|
|
5810
|
+
`/self/events/${eventId}/registration/${registrationId}/registered/purchases/${purchaseId}/questions/${questionId}`,
|
|
5811
|
+
{
|
|
5812
|
+
value
|
|
5813
|
+
}
|
|
5814
|
+
);
|
|
5815
|
+
data = response2.data;
|
|
5816
|
+
} else {
|
|
5817
|
+
const response2 = await clientApi.put(
|
|
5818
|
+
`/self/events/${eventId}/registration/${registrationId}/draft/purchases/${purchaseId}/questions/${questionId}`,
|
|
5819
|
+
{
|
|
5820
|
+
value
|
|
5821
|
+
}
|
|
5822
|
+
);
|
|
5823
|
+
data = response2.data;
|
|
5824
|
+
}
|
|
5825
|
+
const response = {
|
|
5826
|
+
...data,
|
|
5827
|
+
data: data.data[0]
|
|
5828
|
+
};
|
|
5833
5829
|
if (queryClient && data.status === "ok") {
|
|
5834
|
-
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId],
|
|
5830
|
+
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], response, [
|
|
5835
5831
|
clientApiParams.locale
|
|
5836
5832
|
]);
|
|
5833
|
+
queryClient.invalidateQueries({
|
|
5834
|
+
queryKey: SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY(
|
|
5835
|
+
eventId,
|
|
5836
|
+
registrationId,
|
|
5837
|
+
purchaseId
|
|
5838
|
+
)
|
|
5839
|
+
});
|
|
5840
|
+
queryClient.invalidateQueries({
|
|
5841
|
+
queryKey: SELF_EVENT_REGISTRATION_QUERY_KEY(eventId)
|
|
5842
|
+
});
|
|
5843
|
+
queryClient.setQueryData(
|
|
5844
|
+
[
|
|
5845
|
+
...SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY(
|
|
5846
|
+
eventId,
|
|
5847
|
+
registrationId,
|
|
5848
|
+
purchaseId
|
|
5849
|
+
),
|
|
5850
|
+
...GetBaseSingleQueryKeys(clientApiParams.locale)
|
|
5851
|
+
],
|
|
5852
|
+
(oldData) => {
|
|
5853
|
+
if (oldData.data) {
|
|
5854
|
+
return (0, import_immer4.produce)(oldData, (draft) => {
|
|
5855
|
+
draft.data.forEach((section) => {
|
|
5856
|
+
section.questions.forEach((question) => {
|
|
5857
|
+
const fillQuestionResponse = (question2, questionId2, value2) => {
|
|
5858
|
+
if (question2.id === questionId2) {
|
|
5859
|
+
question2.response = value2;
|
|
5860
|
+
}
|
|
5861
|
+
if (question2.choices.length > 0) {
|
|
5862
|
+
question2.choices.forEach((choice) => {
|
|
5863
|
+
if (choice.subQuestions.length > 0) {
|
|
5864
|
+
choice.subQuestions.forEach((subQuestion) => {
|
|
5865
|
+
fillQuestionResponse(
|
|
5866
|
+
subQuestion,
|
|
5867
|
+
questionId2,
|
|
5868
|
+
data.data[1]
|
|
5869
|
+
);
|
|
5870
|
+
});
|
|
5871
|
+
}
|
|
5872
|
+
});
|
|
5873
|
+
}
|
|
5874
|
+
};
|
|
5875
|
+
fillQuestionResponse(question, questionId, data.data[1]);
|
|
5876
|
+
});
|
|
5877
|
+
});
|
|
5878
|
+
});
|
|
5879
|
+
}
|
|
5880
|
+
return oldData;
|
|
5881
|
+
}
|
|
5882
|
+
);
|
|
5837
5883
|
}
|
|
5838
|
-
return
|
|
5884
|
+
return response;
|
|
5839
5885
|
};
|
|
5840
|
-
var
|
|
5841
|
-
return useConnectedMutation_default(
|
|
5886
|
+
var useUpdateSelfEventRegistrationQuestionResponse = (update, options = {}) => {
|
|
5887
|
+
return useConnectedMutation_default(
|
|
5888
|
+
(params) => UpdateSelfEventRegistrationQuestionResponse({ update, ...params }),
|
|
5889
|
+
options
|
|
5890
|
+
);
|
|
5842
5891
|
};
|
|
5843
5892
|
|
|
5844
5893
|
// src/mutations/self/events/registration/registered/useCancelEventRegistration.ts
|
|
@@ -5880,6 +5929,7 @@ var CancelTransfer = async ({
|
|
|
5880
5929
|
transferId,
|
|
5881
5930
|
eventId,
|
|
5882
5931
|
registrationId,
|
|
5932
|
+
purchaseId,
|
|
5883
5933
|
clientApiParams,
|
|
5884
5934
|
queryClient
|
|
5885
5935
|
}) => {
|
|
@@ -5888,6 +5938,13 @@ var CancelTransfer = async ({
|
|
|
5888
5938
|
`/self/events/${eventId}/registration/${registrationId}/transfer/${transferId}`
|
|
5889
5939
|
);
|
|
5890
5940
|
if (queryClient && data.status === "ok") {
|
|
5941
|
+
queryClient.invalidateQueries({
|
|
5942
|
+
queryKey: SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY(
|
|
5943
|
+
eventId,
|
|
5944
|
+
registrationId,
|
|
5945
|
+
purchaseId
|
|
5946
|
+
)
|
|
5947
|
+
});
|
|
5891
5948
|
queryClient.invalidateQueries({
|
|
5892
5949
|
queryKey: SELF_EVENT_REGISTRATION_QUERY_KEY(eventId)
|
|
5893
5950
|
});
|
|
@@ -5916,6 +5973,13 @@ var TransferPurchase = async ({
|
|
|
5916
5973
|
}
|
|
5917
5974
|
);
|
|
5918
5975
|
if (queryClient && data.status === "ok") {
|
|
5976
|
+
queryClient.invalidateQueries({
|
|
5977
|
+
queryKey: SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY(
|
|
5978
|
+
eventId,
|
|
5979
|
+
registrationId,
|
|
5980
|
+
purchaseId
|
|
5981
|
+
)
|
|
5982
|
+
});
|
|
5919
5983
|
queryClient.invalidateQueries({
|
|
5920
5984
|
queryKey: SELF_EVENT_REGISTRATION_QUERY_KEY(eventId)
|
|
5921
5985
|
});
|
|
@@ -5926,71 +5990,6 @@ var useTransferPurchase = (options = {}) => {
|
|
|
5926
5990
|
return useConnectedMutation_default(TransferPurchase, options);
|
|
5927
5991
|
};
|
|
5928
5992
|
|
|
5929
|
-
// src/mutations/self/events/registration/registered/useUpdateSelfEventRegistrationResponse.ts
|
|
5930
|
-
var UpdateSelfEventRegistrationResponse = async ({
|
|
5931
|
-
eventId,
|
|
5932
|
-
registrationId,
|
|
5933
|
-
questionId,
|
|
5934
|
-
response,
|
|
5935
|
-
clientApiParams,
|
|
5936
|
-
queryClient
|
|
5937
|
-
}) => {
|
|
5938
|
-
const clientApi = await GetClientAPI(clientApiParams);
|
|
5939
|
-
const { data } = await clientApi.put(
|
|
5940
|
-
`/self/events/${eventId}/registration/${registrationId}/registered/response`,
|
|
5941
|
-
{
|
|
5942
|
-
response
|
|
5943
|
-
},
|
|
5944
|
-
{
|
|
5945
|
-
params: {
|
|
5946
|
-
questionId
|
|
5947
|
-
}
|
|
5948
|
-
}
|
|
5949
|
-
);
|
|
5950
|
-
if (queryClient && data.status === "ok") {
|
|
5951
|
-
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|
|
5952
|
-
clientApiParams.locale
|
|
5953
|
-
]);
|
|
5954
|
-
}
|
|
5955
|
-
return data;
|
|
5956
|
-
};
|
|
5957
|
-
var useUpdateSelfEventRegistrationResponse = (options = {}) => {
|
|
5958
|
-
return useConnectedMutation_default(UpdateSelfEventRegistrationResponse, options);
|
|
5959
|
-
};
|
|
5960
|
-
|
|
5961
|
-
// src/mutations/self/events/registration/registered/useUpdateSelfEventRegistrationGuestResponse.tsx
|
|
5962
|
-
var UpdateSelfEventRegistrationGuestResponse = async ({
|
|
5963
|
-
eventId,
|
|
5964
|
-
registrationId,
|
|
5965
|
-
questionId,
|
|
5966
|
-
guestId,
|
|
5967
|
-
response,
|
|
5968
|
-
clientApiParams,
|
|
5969
|
-
queryClient
|
|
5970
|
-
}) => {
|
|
5971
|
-
const clientApi = await GetClientAPI(clientApiParams);
|
|
5972
|
-
const { data } = await clientApi.put(
|
|
5973
|
-
`/self/events/${eventId}/registration/${registrationId}/registered/guests/${guestId}/response`,
|
|
5974
|
-
{
|
|
5975
|
-
response
|
|
5976
|
-
},
|
|
5977
|
-
{
|
|
5978
|
-
params: {
|
|
5979
|
-
questionId
|
|
5980
|
-
}
|
|
5981
|
-
}
|
|
5982
|
-
);
|
|
5983
|
-
if (queryClient && data.status === "ok") {
|
|
5984
|
-
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|
|
5985
|
-
clientApiParams.locale
|
|
5986
|
-
]);
|
|
5987
|
-
}
|
|
5988
|
-
return data;
|
|
5989
|
-
};
|
|
5990
|
-
var useUpdateSelfEventRegistrationGuestResponse = (options = {}) => {
|
|
5991
|
-
return useConnectedMutation_default(UpdateSelfEventRegistrationGuestResponse, options);
|
|
5992
|
-
};
|
|
5993
|
-
|
|
5994
5993
|
// src/mutations/self/subscriptions/useCancelSubscription.ts
|
|
5995
5994
|
var CancelSubscription = async ({
|
|
5996
5995
|
subscriptionId,
|
|
@@ -6453,11 +6452,11 @@ var useSelfCheckinRegistration = (options = {}) => {
|
|
|
6453
6452
|
};
|
|
6454
6453
|
|
|
6455
6454
|
// src/mutations/activities/optimistic/UpdateComments.ts
|
|
6456
|
-
var
|
|
6455
|
+
var import_immer5 = require("immer");
|
|
6457
6456
|
var UpdateCommentsSingle = (increment, queryClient, KEY) => {
|
|
6458
6457
|
queryClient.setQueryData(
|
|
6459
6458
|
KEY,
|
|
6460
|
-
(originalData) => (0,
|
|
6459
|
+
(originalData) => (0, import_immer5.produce)(originalData, (draft) => {
|
|
6461
6460
|
if (!draft?.data) {
|
|
6462
6461
|
return;
|
|
6463
6462
|
}
|
|
@@ -6469,7 +6468,7 @@ var UpdateCommentsSingle = (increment, queryClient, KEY) => {
|
|
|
6469
6468
|
var UpdateCommentsInfinite = (increment, queryClient, KEY, activityId) => {
|
|
6470
6469
|
queryClient.setQueriesData(
|
|
6471
6470
|
{ queryKey: KEY, exact: false },
|
|
6472
|
-
(originalData) => (0,
|
|
6471
|
+
(originalData) => (0, import_immer5.produce)(originalData, (draft) => {
|
|
6473
6472
|
if (!draft?.pages || draft.pages.length === 0) {
|
|
6474
6473
|
return;
|
|
6475
6474
|
}
|
|
@@ -6966,6 +6965,7 @@ var useCreateTeamAccount = (options = {}) => {
|
|
|
6966
6965
|
AddSelfEventListingSession,
|
|
6967
6966
|
AddSelfEventListingSpeaker,
|
|
6968
6967
|
AddSelfEventListingSponsor,
|
|
6968
|
+
AddSelfEventRegistrationPurchase,
|
|
6969
6969
|
AddSelfEventSession,
|
|
6970
6970
|
AdvertisementType,
|
|
6971
6971
|
AppendInfiniteQuery,
|
|
@@ -6988,6 +6988,7 @@ var useCreateTeamAccount = (options = {}) => {
|
|
|
6988
6988
|
CancelEventRegistration,
|
|
6989
6989
|
CancelSubscription,
|
|
6990
6990
|
CancelTransfer,
|
|
6991
|
+
CaptureInvoicePayment,
|
|
6991
6992
|
CaptureSelfEventRegistrationPayment,
|
|
6992
6993
|
CommunityAccess,
|
|
6993
6994
|
CommunityMembershipRole,
|
|
@@ -7000,7 +7001,6 @@ var useCreateTeamAccount = (options = {}) => {
|
|
|
7000
7001
|
CreateSelfChatChannel,
|
|
7001
7002
|
CreateSelfChatChannelMessage,
|
|
7002
7003
|
CreateSelfEventListing,
|
|
7003
|
-
CreateSelfEventRegistrationGuest,
|
|
7004
7004
|
CreateSubscription,
|
|
7005
7005
|
CreateSupportTicket,
|
|
7006
7006
|
CreateTeamAccount,
|
|
@@ -7010,7 +7010,6 @@ var useCreateTeamAccount = (options = {}) => {
|
|
|
7010
7010
|
DeleteSelf,
|
|
7011
7011
|
DeleteSelfChatChannel,
|
|
7012
7012
|
DeleteSelfChatChannelMessage,
|
|
7013
|
-
DeleteSelfEventRegistrationGuest,
|
|
7014
7013
|
DeleteSelfPushDevice,
|
|
7015
7014
|
EVENTS_FEATURED_QUERY_KEY,
|
|
7016
7015
|
EVENTS_QUERY_KEY,
|
|
@@ -7106,6 +7105,8 @@ var useCreateTeamAccount = (options = {}) => {
|
|
|
7106
7105
|
GetSelfEventListings,
|
|
7107
7106
|
GetSelfEventRegistration,
|
|
7108
7107
|
GetSelfEventRegistrationCheckout,
|
|
7108
|
+
GetSelfEventRegistrationPurchase,
|
|
7109
|
+
GetSelfEventRegistrationPurchaseSections,
|
|
7109
7110
|
GetSelfEventSessions,
|
|
7110
7111
|
GetSelfEvents,
|
|
7111
7112
|
GetSelfFeed,
|
|
@@ -7128,6 +7129,7 @@ var useCreateTeamAccount = (options = {}) => {
|
|
|
7128
7129
|
GetSponsors,
|
|
7129
7130
|
INVOICE_QUERY_KEY,
|
|
7130
7131
|
ImageType,
|
|
7132
|
+
InvoiceStatus,
|
|
7131
7133
|
LEVELS_QUERY_KEY,
|
|
7132
7134
|
LEVEL_QUERY_KEY,
|
|
7133
7135
|
LEVEL_SPONSORS_QUERY_KEY,
|
|
@@ -7170,6 +7172,8 @@ var useCreateTeamAccount = (options = {}) => {
|
|
|
7170
7172
|
SELF_EVENT_LISTING_QUERY_KEY,
|
|
7171
7173
|
SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY,
|
|
7172
7174
|
SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY,
|
|
7175
|
+
SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY,
|
|
7176
|
+
SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_KEY,
|
|
7173
7177
|
SELF_EVENT_REGISTRATION_QUERY_KEY,
|
|
7174
7178
|
SELF_EVENT_SESSIONS_QUERY_KEY,
|
|
7175
7179
|
SELF_FEED_QUERY_KEY,
|
|
@@ -7244,6 +7248,8 @@ var useCreateTeamAccount = (options = {}) => {
|
|
|
7244
7248
|
SET_SELF_CHAT_CHANNEL_QUERY_DATA,
|
|
7245
7249
|
SET_SELF_COMMUNITY_MEMBERSHIP_QUERY_DATA,
|
|
7246
7250
|
SET_SELF_EVENT_LISTING_QUERY_DATA,
|
|
7251
|
+
SET_SELF_EVENT_REGISTRATION_PURCHASE_QUERY_DATA,
|
|
7252
|
+
SET_SELF_EVENT_REGISTRATION_PURCHASE_SECTIONS_QUERY_DATA,
|
|
7247
7253
|
SET_SELF_EVENT_REGISTRATION_QUERY_DATA,
|
|
7248
7254
|
SET_SELF_QUERY_DATA,
|
|
7249
7255
|
SET_SERIES_EVENTS_QUERY_DATA,
|
|
@@ -7254,7 +7260,6 @@ var useCreateTeamAccount = (options = {}) => {
|
|
|
7254
7260
|
SPONSORS_QUERY_KEY,
|
|
7255
7261
|
SPONSOR_QUERY_KEY,
|
|
7256
7262
|
SelectSelfEventRegistrationCoupon,
|
|
7257
|
-
SelectSelfEventRegistrationTicket,
|
|
7258
7263
|
SelfCheckinRegistration,
|
|
7259
7264
|
SelfCreateActivity,
|
|
7260
7265
|
SelfJoinCommunity,
|
|
@@ -7274,13 +7279,7 @@ var useCreateTeamAccount = (options = {}) => {
|
|
|
7274
7279
|
UpdateSelfEventListing,
|
|
7275
7280
|
UpdateSelfEventListingSession,
|
|
7276
7281
|
UpdateSelfEventListingSpeaker,
|
|
7277
|
-
|
|
7278
|
-
UpdateSelfEventRegistrationGuestResponse,
|
|
7279
|
-
UpdateSelfEventRegistrationGuestResponseFile,
|
|
7280
|
-
UpdateSelfEventRegistrationGuestResponses,
|
|
7281
|
-
UpdateSelfEventRegistrationResponse,
|
|
7282
|
-
UpdateSelfEventRegistrationResponseFile,
|
|
7283
|
-
UpdateSelfEventRegistrationResponses,
|
|
7282
|
+
UpdateSelfEventRegistrationQuestionResponse,
|
|
7284
7283
|
UpdateSelfImage,
|
|
7285
7284
|
UpdateSelfLead,
|
|
7286
7285
|
UpdateSelfNotificationPreferences,
|
|
@@ -7331,10 +7330,12 @@ var useCreateTeamAccount = (options = {}) => {
|
|
|
7331
7330
|
useAddSelfEventListingSession,
|
|
7332
7331
|
useAddSelfEventListingSpeaker,
|
|
7333
7332
|
useAddSelfEventListingSponsor,
|
|
7333
|
+
useAddSelfEventRegistrationPurchase,
|
|
7334
7334
|
useAddSelfEventSession,
|
|
7335
7335
|
useCancelEventRegistration,
|
|
7336
7336
|
useCancelSubscription,
|
|
7337
7337
|
useCancelTransfer,
|
|
7338
|
+
useCaptureInvoicePayment,
|
|
7338
7339
|
useCaptureSelfEventRegistrationPayment,
|
|
7339
7340
|
useCompleteEventActivation,
|
|
7340
7341
|
useConnectedInfiniteQuery,
|
|
@@ -7346,7 +7347,6 @@ var useCreateTeamAccount = (options = {}) => {
|
|
|
7346
7347
|
useCreateSelfChatChannel,
|
|
7347
7348
|
useCreateSelfChatChannelMessage,
|
|
7348
7349
|
useCreateSelfEventListing,
|
|
7349
|
-
useCreateSelfEventRegistrationGuest,
|
|
7350
7350
|
useCreateSubscription,
|
|
7351
7351
|
useCreateSupportTicket,
|
|
7352
7352
|
useCreateTeamAccount,
|
|
@@ -7355,7 +7355,6 @@ var useCreateTeamAccount = (options = {}) => {
|
|
|
7355
7355
|
useDeleteSelf,
|
|
7356
7356
|
useDeleteSelfChatChannel,
|
|
7357
7357
|
useDeleteSelfChatChannelMessage,
|
|
7358
|
-
useDeleteSelfEventRegistrationGuest,
|
|
7359
7358
|
useDeleteSelfPushDevice,
|
|
7360
7359
|
useFollowAccount,
|
|
7361
7360
|
useGetAccount,
|
|
@@ -7427,6 +7426,8 @@ var useCreateTeamAccount = (options = {}) => {
|
|
|
7427
7426
|
useGetSelfEventListingsRegistrations,
|
|
7428
7427
|
useGetSelfEventRegistration,
|
|
7429
7428
|
useGetSelfEventRegistrationCheckout,
|
|
7429
|
+
useGetSelfEventRegistrationPurchase,
|
|
7430
|
+
useGetSelfEventRegistrationPurchaseSections,
|
|
7430
7431
|
useGetSelfEventSessions,
|
|
7431
7432
|
useGetSelfEvents,
|
|
7432
7433
|
useGetSelfFeed,
|
|
@@ -7461,7 +7462,6 @@ var useCreateTeamAccount = (options = {}) => {
|
|
|
7461
7462
|
useRemoveSelfEventSession,
|
|
7462
7463
|
useReshareActivity,
|
|
7463
7464
|
useSelectSelfEventRegistrationCoupon,
|
|
7464
|
-
useSelectSelfEventRegistrationTicket,
|
|
7465
7465
|
useSelfCheckinRegistration,
|
|
7466
7466
|
useSelfCreateActivity,
|
|
7467
7467
|
useSelfJoinCommunity,
|
|
@@ -7477,13 +7477,7 @@ var useCreateTeamAccount = (options = {}) => {
|
|
|
7477
7477
|
useUpdateSelfEventListing,
|
|
7478
7478
|
useUpdateSelfEventListingSession,
|
|
7479
7479
|
useUpdateSelfEventListingSpeaker,
|
|
7480
|
-
|
|
7481
|
-
useUpdateSelfEventRegistrationGuestResponse,
|
|
7482
|
-
useUpdateSelfEventRegistrationGuestResponseFile,
|
|
7483
|
-
useUpdateSelfEventRegistrationGuestResponses,
|
|
7484
|
-
useUpdateSelfEventRegistrationResponse,
|
|
7485
|
-
useUpdateSelfEventRegistrationResponseFile,
|
|
7486
|
-
useUpdateSelfEventRegistrationResponses,
|
|
7480
|
+
useUpdateSelfEventRegistrationQuestionResponse,
|
|
7487
7481
|
useUpdateSelfImage,
|
|
7488
7482
|
useUpdateSelfLead,
|
|
7489
7483
|
useUpdateSelfNotificationPreferences,
|