@connectedxm/client 0.5.28 → 0.5.30
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 +20 -25
- package/dist/index.d.ts +20 -25
- package/dist/index.js +37 -113
- package/dist/index.mjs +35 -107
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -72,7 +72,6 @@ __export(src_exports, {
|
|
|
72
72
|
CONTENTS_QUERY_KEY: () => CONTENTS_QUERY_KEY,
|
|
73
73
|
CONTENT_QUERY_KEY: () => CONTENT_QUERY_KEY,
|
|
74
74
|
CacheIndividualQueries: () => CacheIndividualQueries,
|
|
75
|
-
CancelEventRegistration: () => CancelEventRegistration,
|
|
76
75
|
CancelGroupInvitation: () => CancelGroupInvitation,
|
|
77
76
|
CancelGroupRequest: () => CancelGroupRequest,
|
|
78
77
|
CancelSubscription: () => CancelSubscription,
|
|
@@ -249,7 +248,7 @@ __export(src_exports, {
|
|
|
249
248
|
GetSelfEventListings: () => GetSelfEventListings,
|
|
250
249
|
GetSelfEventRegistration: () => GetSelfEventRegistration,
|
|
251
250
|
GetSelfEventRegistrationCoupon: () => GetSelfEventRegistrationCoupon,
|
|
252
|
-
|
|
251
|
+
GetSelfEventRegistrationCouponPurchases: () => GetSelfEventRegistrationCouponPurchases,
|
|
253
252
|
GetSelfEventRegistrationCoupons: () => GetSelfEventRegistrationCoupons,
|
|
254
253
|
GetSelfEventRegistrationIntent: () => GetSelfEventRegistrationIntent,
|
|
255
254
|
GetSelfEventRegistrationPayment: () => GetSelfEventRegistrationPayment,
|
|
@@ -323,7 +322,6 @@ __export(src_exports, {
|
|
|
323
322
|
PushDeviceAppType: () => PushDeviceAppType,
|
|
324
323
|
PushService: () => PushService,
|
|
325
324
|
REMOVE_SELF_RELATIONSHIP: () => REMOVE_SELF_RELATIONSHIP,
|
|
326
|
-
RegisterCancelledEventRegistration: () => RegisterCancelledEventRegistration,
|
|
327
325
|
RegistrationQuestionType: () => RegistrationQuestionType,
|
|
328
326
|
RegistrationStatus: () => RegistrationStatus,
|
|
329
327
|
ReinviteGroupInvitation: () => ReinviteGroupInvitation,
|
|
@@ -545,7 +543,6 @@ __export(src_exports, {
|
|
|
545
543
|
useAddSelfEventRegistrationPurchaseAddOn: () => useAddSelfEventRegistrationPurchaseAddOn,
|
|
546
544
|
useAddSelfEventSession: () => useAddSelfEventSession,
|
|
547
545
|
useAddSelfInterests: () => useAddSelfInterests,
|
|
548
|
-
useCancelEventRegistration: () => useCancelEventRegistration,
|
|
549
546
|
useCancelGroupInvitation: () => useCancelGroupInvitation,
|
|
550
547
|
useCancelGroupRequest: () => useCancelGroupRequest,
|
|
551
548
|
useCancelSubscription: () => useCancelSubscription,
|
|
@@ -680,7 +677,7 @@ __export(src_exports, {
|
|
|
680
677
|
useGetSelfEventListingsRegistrations: () => useGetSelfEventListingsRegistrations,
|
|
681
678
|
useGetSelfEventRegistration: () => useGetSelfEventRegistration,
|
|
682
679
|
useGetSelfEventRegistrationCoupon: () => useGetSelfEventRegistrationCoupon,
|
|
683
|
-
|
|
680
|
+
useGetSelfEventRegistrationCouponPurchases: () => useGetSelfEventRegistrationCouponPurchases,
|
|
684
681
|
useGetSelfEventRegistrationCoupons: () => useGetSelfEventRegistrationCoupons,
|
|
685
682
|
useGetSelfEventRegistrationIntent: () => useGetSelfEventRegistrationIntent,
|
|
686
683
|
useGetSelfEventRegistrationPayment: () => useGetSelfEventRegistrationPayment,
|
|
@@ -721,7 +718,6 @@ __export(src_exports, {
|
|
|
721
718
|
useLeaveSelfChatChannel: () => useLeaveSelfChatChannel,
|
|
722
719
|
useLikeActivity: () => useLikeActivity,
|
|
723
720
|
usePromoteGroupMember: () => usePromoteGroupMember,
|
|
724
|
-
useRegisterCancelledEventRegistration: () => useRegisterCancelledEventRegistration,
|
|
725
721
|
useReinviteGroupInvitation: () => useReinviteGroupInvitation,
|
|
726
722
|
useRejectGroupInvitation: () => useRejectGroupInvitation,
|
|
727
723
|
useRejectGroupRequest: () => useRejectGroupRequest,
|
|
@@ -4454,7 +4450,7 @@ var GetSelfEventRegistrationIntent = async ({
|
|
|
4454
4450
|
}) => {
|
|
4455
4451
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
4456
4452
|
const { data } = await clientApi.get(
|
|
4457
|
-
`/self/events/${eventId}/registration/${registrationId}/
|
|
4453
|
+
`/self/events/${eventId}/registration/${registrationId}/cart/intent`
|
|
4458
4454
|
);
|
|
4459
4455
|
return data;
|
|
4460
4456
|
};
|
|
@@ -4496,7 +4492,7 @@ var GetSelfEventRegistrationPayment = async ({
|
|
|
4496
4492
|
}) => {
|
|
4497
4493
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
4498
4494
|
const { data } = await clientApi.get(
|
|
4499
|
-
`/self/events/${eventId}/registration/${registrationId}/
|
|
4495
|
+
`/self/events/${eventId}/registration/${registrationId}/payments/${paymentId}`,
|
|
4500
4496
|
{}
|
|
4501
4497
|
);
|
|
4502
4498
|
return data;
|
|
@@ -4545,7 +4541,7 @@ var GetSelfEventRegistrationPurchase = async ({
|
|
|
4545
4541
|
}) => {
|
|
4546
4542
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
4547
4543
|
const { data } = await clientApi.get(
|
|
4548
|
-
`/self/events/${eventId}/registration/${registrationId}/
|
|
4544
|
+
`/self/events/${eventId}/registration/${registrationId}/purchases/${purchaseId}`,
|
|
4549
4545
|
{}
|
|
4550
4546
|
);
|
|
4551
4547
|
return data;
|
|
@@ -4599,7 +4595,7 @@ var GetSelfEventRegistrationPurchaseSections = async ({
|
|
|
4599
4595
|
}) => {
|
|
4600
4596
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
4601
4597
|
const { data } = await clientApi.get(
|
|
4602
|
-
`/self/events/${eventId}/registration/${registrationId}/
|
|
4598
|
+
`/self/events/${eventId}/registration/${registrationId}/cart/purchases/${purchaseId}`,
|
|
4603
4599
|
{}
|
|
4604
4600
|
);
|
|
4605
4601
|
return data;
|
|
@@ -4656,7 +4652,7 @@ var GetSelfEventRegistrationPurchaseAddOns = async ({
|
|
|
4656
4652
|
}) => {
|
|
4657
4653
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
4658
4654
|
const { data } = await clientApi.get(
|
|
4659
|
-
`/self/events/${eventId}/registration/${registrationId}/
|
|
4655
|
+
`/self/events/${eventId}/registration/${registrationId}/cart/purchases/${purchaseId}/addOns`,
|
|
4660
4656
|
{}
|
|
4661
4657
|
);
|
|
4662
4658
|
return data;
|
|
@@ -4712,7 +4708,7 @@ var GetSelfEventRegistrationPurchaseReservationSections = async ({
|
|
|
4712
4708
|
}) => {
|
|
4713
4709
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
4714
4710
|
const { data } = await clientApi.get(
|
|
4715
|
-
`/self/events/${eventId}/registration/${registrationId}/
|
|
4711
|
+
`/self/events/${eventId}/registration/${registrationId}/cart/purchases/${purchaseId}/reservationSections`,
|
|
4716
4712
|
{}
|
|
4717
4713
|
);
|
|
4718
4714
|
return data;
|
|
@@ -4799,7 +4795,7 @@ var GetSelfEventRegistrationPurchaseAddOnsIntent = async ({
|
|
|
4799
4795
|
}) => {
|
|
4800
4796
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
4801
4797
|
const { data } = await clientApi.get(
|
|
4802
|
-
`/self/events/${eventId}/registration/${registrationId}/
|
|
4798
|
+
`/self/events/${eventId}/registration/${registrationId}/purchases/${purchaseId}/addOns/intent`,
|
|
4803
4799
|
{
|
|
4804
4800
|
params: {
|
|
4805
4801
|
addOnIds: addOnIds ? addOnIds.join(",") : ""
|
|
@@ -4979,16 +4975,16 @@ var useGetSelfEventRegistrationCoupon = (eventId = "", registrationId = "", coup
|
|
|
4979
4975
|
);
|
|
4980
4976
|
};
|
|
4981
4977
|
|
|
4982
|
-
// src/queries/self/registration/
|
|
4978
|
+
// src/queries/self/registration/useGetSelfEventRegistrationCouponPurchases.ts
|
|
4983
4979
|
var SELF_EVENT_REGISTRATION_COUPON_REGISTRATIONS_QUERY_KEY = (eventId, registrationId, couponId) => [
|
|
4984
4980
|
...SELF_EVENT_REGISTRATION_COUPON_QUERY_KEY(
|
|
4985
4981
|
eventId,
|
|
4986
4982
|
registrationId,
|
|
4987
4983
|
couponId
|
|
4988
4984
|
),
|
|
4989
|
-
"
|
|
4985
|
+
"PURCHASES"
|
|
4990
4986
|
];
|
|
4991
|
-
var
|
|
4987
|
+
var GetSelfEventRegistrationCouponPurchases = async ({
|
|
4992
4988
|
eventId,
|
|
4993
4989
|
registrationId,
|
|
4994
4990
|
couponId,
|
|
@@ -4996,12 +4992,12 @@ var GetSelfEventRegistrationCouponRegistrations = async ({
|
|
|
4996
4992
|
}) => {
|
|
4997
4993
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
4998
4994
|
const { data } = await clientApi.get(
|
|
4999
|
-
`/self/events/${eventId}/registration/${registrationId}/coupons/${couponId}/
|
|
4995
|
+
`/self/events/${eventId}/registration/${registrationId}/coupons/${couponId}/purchases`,
|
|
5000
4996
|
{}
|
|
5001
4997
|
);
|
|
5002
4998
|
return data;
|
|
5003
4999
|
};
|
|
5004
|
-
var
|
|
5000
|
+
var useGetSelfEventRegistrationCouponPurchases = (eventId = "", registrationId = "", couponId = "", params = {}, options = {}) => {
|
|
5005
5001
|
const { authenticated } = useConnectedXM();
|
|
5006
5002
|
return useConnectedInfiniteQuery(
|
|
5007
5003
|
SELF_EVENT_REGISTRATION_COUPON_REGISTRATIONS_QUERY_KEY(
|
|
@@ -5009,7 +5005,7 @@ var useGetSelfEventRegistrationCouponRegistrations = (eventId = "", registration
|
|
|
5009
5005
|
registrationId,
|
|
5010
5006
|
couponId
|
|
5011
5007
|
),
|
|
5012
|
-
(params2) =>
|
|
5008
|
+
(params2) => GetSelfEventRegistrationCouponPurchases({
|
|
5013
5009
|
eventId,
|
|
5014
5010
|
registrationId,
|
|
5015
5011
|
couponId,
|
|
@@ -7308,41 +7304,7 @@ var useUpdateSelfChatChannelNotifications = (options = {}) => {
|
|
|
7308
7304
|
return useConnectedMutation_default(UpdateSelfChatChannelNotifications, options);
|
|
7309
7305
|
};
|
|
7310
7306
|
|
|
7311
|
-
// src/mutations/self/events/registration/
|
|
7312
|
-
var RegisterCancelledEventRegistration = async ({
|
|
7313
|
-
eventId,
|
|
7314
|
-
registrationId,
|
|
7315
|
-
clientApiParams,
|
|
7316
|
-
queryClient
|
|
7317
|
-
}) => {
|
|
7318
|
-
const clientApi = await GetClientAPI(clientApiParams);
|
|
7319
|
-
const { data } = await clientApi.post(
|
|
7320
|
-
`/self/events/${eventId}/registration/${registrationId}/cancelled/register`
|
|
7321
|
-
);
|
|
7322
|
-
if (queryClient && data.status === "ok") {
|
|
7323
|
-
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|
|
7324
|
-
clientApiParams.locale
|
|
7325
|
-
]);
|
|
7326
|
-
queryClient.invalidateQueries({
|
|
7327
|
-
queryKey: SELF_EVENTS_QUERY_KEY(false)
|
|
7328
|
-
});
|
|
7329
|
-
queryClient.invalidateQueries({
|
|
7330
|
-
queryKey: SELF_EVENTS_QUERY_KEY(true)
|
|
7331
|
-
});
|
|
7332
|
-
queryClient.invalidateQueries({
|
|
7333
|
-
queryKey: EVENT_QUERY_KEY(eventId)
|
|
7334
|
-
});
|
|
7335
|
-
queryClient.invalidateQueries({
|
|
7336
|
-
queryKey: EVENT_REGISTRANTS_QUERY_KEY(eventId)
|
|
7337
|
-
});
|
|
7338
|
-
}
|
|
7339
|
-
return data;
|
|
7340
|
-
};
|
|
7341
|
-
var useRegisterCancelledEventRegistration = (options = {}) => {
|
|
7342
|
-
return useConnectedMutation_default(RegisterCancelledEventRegistration, options);
|
|
7343
|
-
};
|
|
7344
|
-
|
|
7345
|
-
// src/mutations/self/events/registration/draft/useApplySelfEventRegistrationCoupon.ts
|
|
7307
|
+
// src/mutations/self/events/registration/cart/useApplySelfEventRegistrationCoupon.ts
|
|
7346
7308
|
var SelectSelfEventRegistrationCoupon = async ({
|
|
7347
7309
|
eventId,
|
|
7348
7310
|
registrationId,
|
|
@@ -7352,7 +7314,7 @@ var SelectSelfEventRegistrationCoupon = async ({
|
|
|
7352
7314
|
}) => {
|
|
7353
7315
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
7354
7316
|
const { data } = await clientApi.post(
|
|
7355
|
-
`/self/events/${eventId}/registration/${registrationId}/
|
|
7317
|
+
`/self/events/${eventId}/registration/${registrationId}/cart/coupon`,
|
|
7356
7318
|
{
|
|
7357
7319
|
couponId
|
|
7358
7320
|
}
|
|
@@ -7386,7 +7348,7 @@ var useSelectSelfEventRegistrationCoupon = (options = {}) => {
|
|
|
7386
7348
|
return useConnectedMutation_default(SelectSelfEventRegistrationCoupon, options);
|
|
7387
7349
|
};
|
|
7388
7350
|
|
|
7389
|
-
// src/mutations/self/events/registration/
|
|
7351
|
+
// src/mutations/self/events/registration/cart/useRemoveSelfEventRegistrationCoupon.ts
|
|
7390
7352
|
var RemoveSelfEventRegistrationCoupon = async ({
|
|
7391
7353
|
eventId,
|
|
7392
7354
|
registrationId,
|
|
@@ -7395,7 +7357,7 @@ var RemoveSelfEventRegistrationCoupon = async ({
|
|
|
7395
7357
|
}) => {
|
|
7396
7358
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
7397
7359
|
const { data } = await clientApi.delete(
|
|
7398
|
-
`/self/events/${eventId}/registration/${registrationId}/
|
|
7360
|
+
`/self/events/${eventId}/registration/${registrationId}/cart/coupons`
|
|
7399
7361
|
);
|
|
7400
7362
|
if (queryClient && data.status === "ok") {
|
|
7401
7363
|
queryClient.removeQueries({
|
|
@@ -7426,7 +7388,7 @@ var useRemoveSelfEventRegistrationCoupon = (options = {}) => {
|
|
|
7426
7388
|
return useConnectedMutation_default(RemoveSelfEventRegistrationCoupon, options);
|
|
7427
7389
|
};
|
|
7428
7390
|
|
|
7429
|
-
// src/mutations/self/events/registration/
|
|
7391
|
+
// src/mutations/self/events/registration/cart/useRemoveSelfEventRegistrationPurchase.ts
|
|
7430
7392
|
var RemoveSelfEventRegistrationPurchase = async ({
|
|
7431
7393
|
eventId,
|
|
7432
7394
|
registrationId,
|
|
@@ -7436,7 +7398,7 @@ var RemoveSelfEventRegistrationPurchase = async ({
|
|
|
7436
7398
|
}) => {
|
|
7437
7399
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
7438
7400
|
const { data } = await clientApi.delete(
|
|
7439
|
-
`/self/events/${eventId}/registration/${registrationId}/
|
|
7401
|
+
`/self/events/${eventId}/registration/${registrationId}/cart/purchases/${purchaseId}`
|
|
7440
7402
|
);
|
|
7441
7403
|
if (queryClient && data.status === "ok") {
|
|
7442
7404
|
queryClient.removeQueries({
|
|
@@ -7455,7 +7417,7 @@ var useRemoveSelfEventRegistrationPurchase = (options = {}) => {
|
|
|
7455
7417
|
return useConnectedMutation_default(RemoveSelfEventRegistrationPurchase, options);
|
|
7456
7418
|
};
|
|
7457
7419
|
|
|
7458
|
-
// src/mutations/self/events/registration/
|
|
7420
|
+
// src/mutations/self/events/registration/cart/useAddSelfEventRegistrationPurchase.ts
|
|
7459
7421
|
var AddSelfEventRegistrationPurchase = async ({
|
|
7460
7422
|
eventId,
|
|
7461
7423
|
registrationId,
|
|
@@ -7466,7 +7428,7 @@ var AddSelfEventRegistrationPurchase = async ({
|
|
|
7466
7428
|
}) => {
|
|
7467
7429
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
7468
7430
|
const { data } = await clientApi.post(
|
|
7469
|
-
`/self/events/${eventId}/registration/${registrationId}/
|
|
7431
|
+
`/self/events/${eventId}/registration/${registrationId}/cart/purchases`,
|
|
7470
7432
|
{
|
|
7471
7433
|
ticketId,
|
|
7472
7434
|
quantity
|
|
@@ -7495,7 +7457,7 @@ var useAddSelfEventRegistrationPurchase = (options = {}) => {
|
|
|
7495
7457
|
return useConnectedMutation_default(AddSelfEventRegistrationPurchase, options);
|
|
7496
7458
|
};
|
|
7497
7459
|
|
|
7498
|
-
// src/mutations/self/events/registration/
|
|
7460
|
+
// src/mutations/self/events/registration/cart/useSubmitSelfEventRegistration.ts
|
|
7499
7461
|
var SubmitSelfEventRegistration = async ({
|
|
7500
7462
|
eventId,
|
|
7501
7463
|
registrationId,
|
|
@@ -7505,7 +7467,7 @@ var SubmitSelfEventRegistration = async ({
|
|
|
7505
7467
|
}) => {
|
|
7506
7468
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
7507
7469
|
const { data } = await clientApi.post(
|
|
7508
|
-
`/self/events/${eventId}/registration/${registrationId}/
|
|
7470
|
+
`/self/events/${eventId}/registration/${registrationId}/cart/submit`,
|
|
7509
7471
|
payment
|
|
7510
7472
|
);
|
|
7511
7473
|
if (queryClient && data.status === "ok") {
|
|
@@ -7528,7 +7490,7 @@ var useSubmitSelfEventRegistration = (options = {}) => {
|
|
|
7528
7490
|
return useConnectedMutation_default(SubmitSelfEventRegistration, options);
|
|
7529
7491
|
};
|
|
7530
7492
|
|
|
7531
|
-
// src/mutations/self/events/registration/
|
|
7493
|
+
// src/mutations/self/events/registration/cart/useUpdateSelfEventRegistrationPurchaseQuestionResponse.ts
|
|
7532
7494
|
var import_immer4 = require("immer");
|
|
7533
7495
|
var UpdateSelfEventRegistrationQuestionResponse = async ({
|
|
7534
7496
|
eventId,
|
|
@@ -7544,7 +7506,7 @@ var UpdateSelfEventRegistrationQuestionResponse = async ({
|
|
|
7544
7506
|
let data;
|
|
7545
7507
|
if (update) {
|
|
7546
7508
|
const response2 = await clientApi.put(
|
|
7547
|
-
`/self/events/${eventId}/registration/${registrationId}/
|
|
7509
|
+
`/self/events/${eventId}/registration/${registrationId}/purchases/${purchaseId}/questions/${questionId}`,
|
|
7548
7510
|
{
|
|
7549
7511
|
value
|
|
7550
7512
|
}
|
|
@@ -7552,7 +7514,7 @@ var UpdateSelfEventRegistrationQuestionResponse = async ({
|
|
|
7552
7514
|
data = response2.data;
|
|
7553
7515
|
} else {
|
|
7554
7516
|
const response2 = await clientApi.put(
|
|
7555
|
-
`/self/events/${eventId}/registration/${registrationId}/
|
|
7517
|
+
`/self/events/${eventId}/registration/${registrationId}/cart/purchases/${purchaseId}/questions/${questionId}`,
|
|
7556
7518
|
{
|
|
7557
7519
|
value
|
|
7558
7520
|
}
|
|
@@ -7629,7 +7591,7 @@ var useUpdateSelfEventRegistrationQuestionResponse = (update, options = {}) => {
|
|
|
7629
7591
|
);
|
|
7630
7592
|
};
|
|
7631
7593
|
|
|
7632
|
-
// src/mutations/self/events/registration/
|
|
7594
|
+
// src/mutations/self/events/registration/cart/useAddSelfEventRegistrationPurchaseAddOn.ts
|
|
7633
7595
|
var AddSelfEventRegistrationPurchaseAddOn = async ({
|
|
7634
7596
|
eventId,
|
|
7635
7597
|
registrationId,
|
|
@@ -7640,7 +7602,7 @@ var AddSelfEventRegistrationPurchaseAddOn = async ({
|
|
|
7640
7602
|
}) => {
|
|
7641
7603
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
7642
7604
|
const { data } = await clientApi.post(
|
|
7643
|
-
`/self/events/${eventId}/registration/${registrationId}/
|
|
7605
|
+
`/self/events/${eventId}/registration/${registrationId}/cart/purchases/${purchaseId}/addOns/${addOnId}`
|
|
7644
7606
|
);
|
|
7645
7607
|
if (queryClient && data.status === "ok") {
|
|
7646
7608
|
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|
|
@@ -7672,7 +7634,7 @@ var useAddSelfEventRegistrationPurchaseAddOn = (options = {}) => {
|
|
|
7672
7634
|
return useConnectedMutation_default(AddSelfEventRegistrationPurchaseAddOn, options);
|
|
7673
7635
|
};
|
|
7674
7636
|
|
|
7675
|
-
// src/mutations/self/events/registration/
|
|
7637
|
+
// src/mutations/self/events/registration/cart/useRemoveSelfEventRegistrationPurchaseAddOn.ts
|
|
7676
7638
|
var RemoveSelfEventRegistrationPurchaseAddOn = async ({
|
|
7677
7639
|
eventId,
|
|
7678
7640
|
registrationId,
|
|
@@ -7683,7 +7645,7 @@ var RemoveSelfEventRegistrationPurchaseAddOn = async ({
|
|
|
7683
7645
|
}) => {
|
|
7684
7646
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
7685
7647
|
const { data } = await clientApi.delete(
|
|
7686
|
-
`/self/events/${eventId}/registration/${registrationId}/
|
|
7648
|
+
`/self/events/${eventId}/registration/${registrationId}/cart/purchases/${purchaseId}/addOns/${addOnId}`
|
|
7687
7649
|
);
|
|
7688
7650
|
if (queryClient && data.status === "ok") {
|
|
7689
7651
|
queryClient.removeQueries({
|
|
@@ -7709,7 +7671,7 @@ var useRemoveSelfEventRegistrationPurchaseAddOn = (options = {}) => {
|
|
|
7709
7671
|
return useConnectedMutation_default(RemoveSelfEventRegistrationPurchaseAddOn, options);
|
|
7710
7672
|
};
|
|
7711
7673
|
|
|
7712
|
-
// src/mutations/self/events/registration/
|
|
7674
|
+
// src/mutations/self/events/registration/cart/useSelectSelfEventRegistrationPurchaseReservation.ts
|
|
7713
7675
|
var SelectSelfEventRegistrationPurchaseReservation = async ({
|
|
7714
7676
|
eventId,
|
|
7715
7677
|
registrationId,
|
|
@@ -7722,7 +7684,7 @@ var SelectSelfEventRegistrationPurchaseReservation = async ({
|
|
|
7722
7684
|
}) => {
|
|
7723
7685
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
7724
7686
|
const { data } = await clientApi.post(
|
|
7725
|
-
`/self/events/${eventId}/registration/${registrationId}/
|
|
7687
|
+
`/self/events/${eventId}/registration/${registrationId}/cart/purchases/${purchaseId}/reservations/${locationId}`,
|
|
7726
7688
|
{
|
|
7727
7689
|
reservationStart,
|
|
7728
7690
|
reservationEnd
|
|
@@ -7752,40 +7714,6 @@ var useSelectSelfEventRegistrationPurchaseReservation = (options = {}) => {
|
|
|
7752
7714
|
return useConnectedMutation_default(SelectSelfEventRegistrationPurchaseReservation, options);
|
|
7753
7715
|
};
|
|
7754
7716
|
|
|
7755
|
-
// src/mutations/self/events/registration/registered/useCancelEventRegistration.ts
|
|
7756
|
-
var CancelEventRegistration = async ({
|
|
7757
|
-
eventId,
|
|
7758
|
-
registrationId,
|
|
7759
|
-
clientApiParams,
|
|
7760
|
-
queryClient
|
|
7761
|
-
}) => {
|
|
7762
|
-
const clientApi = await GetClientAPI(clientApiParams);
|
|
7763
|
-
const { data } = await clientApi.delete(
|
|
7764
|
-
`/self/events/${eventId}/registration/${registrationId}/registered/cancel`
|
|
7765
|
-
);
|
|
7766
|
-
if (queryClient && data.status === "ok") {
|
|
7767
|
-
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|
|
7768
|
-
clientApiParams.locale
|
|
7769
|
-
]);
|
|
7770
|
-
queryClient.invalidateQueries({
|
|
7771
|
-
queryKey: SELF_EVENTS_QUERY_KEY(false)
|
|
7772
|
-
});
|
|
7773
|
-
queryClient.invalidateQueries({
|
|
7774
|
-
queryKey: SELF_EVENTS_QUERY_KEY(true)
|
|
7775
|
-
});
|
|
7776
|
-
queryClient.invalidateQueries({
|
|
7777
|
-
queryKey: EVENT_QUERY_KEY(eventId)
|
|
7778
|
-
});
|
|
7779
|
-
queryClient.invalidateQueries({
|
|
7780
|
-
queryKey: EVENT_REGISTRANTS_QUERY_KEY(eventId)
|
|
7781
|
-
});
|
|
7782
|
-
}
|
|
7783
|
-
return data;
|
|
7784
|
-
};
|
|
7785
|
-
var useCancelEventRegistration = (options = {}) => {
|
|
7786
|
-
return useConnectedMutation_default(CancelEventRegistration, options);
|
|
7787
|
-
};
|
|
7788
|
-
|
|
7789
7717
|
// src/mutations/self/events/registration/registered/useCancelTransfer.ts
|
|
7790
7718
|
var CancelTransfer = async ({
|
|
7791
7719
|
transferId,
|
|
@@ -7863,7 +7791,7 @@ var AddFreePurchaseAddOns = async ({
|
|
|
7863
7791
|
}) => {
|
|
7864
7792
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
7865
7793
|
const { data } = await clientApi.post(
|
|
7866
|
-
`/self/events/${eventId}/registration/${registrationId}/
|
|
7794
|
+
`/self/events/${eventId}/registration/${registrationId}/purchases/${purchaseId}/addOns/free`,
|
|
7867
7795
|
{
|
|
7868
7796
|
addOnIds
|
|
7869
7797
|
}
|
|
@@ -9628,7 +9556,6 @@ var useUploadFile = (options = {}) => {
|
|
|
9628
9556
|
CONTENTS_QUERY_KEY,
|
|
9629
9557
|
CONTENT_QUERY_KEY,
|
|
9630
9558
|
CacheIndividualQueries,
|
|
9631
|
-
CancelEventRegistration,
|
|
9632
9559
|
CancelGroupInvitation,
|
|
9633
9560
|
CancelGroupRequest,
|
|
9634
9561
|
CancelSubscription,
|
|
@@ -9805,7 +9732,7 @@ var useUploadFile = (options = {}) => {
|
|
|
9805
9732
|
GetSelfEventListings,
|
|
9806
9733
|
GetSelfEventRegistration,
|
|
9807
9734
|
GetSelfEventRegistrationCoupon,
|
|
9808
|
-
|
|
9735
|
+
GetSelfEventRegistrationCouponPurchases,
|
|
9809
9736
|
GetSelfEventRegistrationCoupons,
|
|
9810
9737
|
GetSelfEventRegistrationIntent,
|
|
9811
9738
|
GetSelfEventRegistrationPayment,
|
|
@@ -9879,7 +9806,6 @@ var useUploadFile = (options = {}) => {
|
|
|
9879
9806
|
PushDeviceAppType,
|
|
9880
9807
|
PushService,
|
|
9881
9808
|
REMOVE_SELF_RELATIONSHIP,
|
|
9882
|
-
RegisterCancelledEventRegistration,
|
|
9883
9809
|
RegistrationQuestionType,
|
|
9884
9810
|
RegistrationStatus,
|
|
9885
9811
|
ReinviteGroupInvitation,
|
|
@@ -10101,7 +10027,6 @@ var useUploadFile = (options = {}) => {
|
|
|
10101
10027
|
useAddSelfEventRegistrationPurchaseAddOn,
|
|
10102
10028
|
useAddSelfEventSession,
|
|
10103
10029
|
useAddSelfInterests,
|
|
10104
|
-
useCancelEventRegistration,
|
|
10105
10030
|
useCancelGroupInvitation,
|
|
10106
10031
|
useCancelGroupRequest,
|
|
10107
10032
|
useCancelSubscription,
|
|
@@ -10236,7 +10161,7 @@ var useUploadFile = (options = {}) => {
|
|
|
10236
10161
|
useGetSelfEventListingsRegistrations,
|
|
10237
10162
|
useGetSelfEventRegistration,
|
|
10238
10163
|
useGetSelfEventRegistrationCoupon,
|
|
10239
|
-
|
|
10164
|
+
useGetSelfEventRegistrationCouponPurchases,
|
|
10240
10165
|
useGetSelfEventRegistrationCoupons,
|
|
10241
10166
|
useGetSelfEventRegistrationIntent,
|
|
10242
10167
|
useGetSelfEventRegistrationPayment,
|
|
@@ -10277,7 +10202,6 @@ var useUploadFile = (options = {}) => {
|
|
|
10277
10202
|
useLeaveSelfChatChannel,
|
|
10278
10203
|
useLikeActivity,
|
|
10279
10204
|
usePromoteGroupMember,
|
|
10280
|
-
useRegisterCancelledEventRegistration,
|
|
10281
10205
|
useReinviteGroupInvitation,
|
|
10282
10206
|
useRejectGroupInvitation,
|
|
10283
10207
|
useRejectGroupRequest,
|