@connectedxm/admin 1.4.7 → 1.4.9
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 +235 -1
- package/dist/index.d.ts +235 -1
- package/dist/index.js +398 -0
- package/dist/index.mjs +372 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -97,6 +97,7 @@ __export(src_exports, {
|
|
|
97
97
|
AddEventPassTypeAddOn: () => AddEventPassTypeAddOn,
|
|
98
98
|
AddEventPassTypeTier: () => AddEventPassTypeTier,
|
|
99
99
|
AddEventQuestionChoiceSubQuestion: () => AddEventQuestionChoiceSubQuestion,
|
|
100
|
+
AddEventReservationPass: () => AddEventReservationPass,
|
|
100
101
|
AddEventRoomTypeTier: () => AddEventRoomTypeTier,
|
|
101
102
|
AddEventSectionAddOn: () => AddEventSectionAddOn,
|
|
102
103
|
AddEventSectionPassType: () => AddEventSectionPassType,
|
|
@@ -207,6 +208,7 @@ __export(src_exports, {
|
|
|
207
208
|
CreateEventQuestionSearchValues: () => CreateEventQuestionSearchValues,
|
|
208
209
|
CreateEventQuestionTranslation: () => CreateEventQuestionTranslation,
|
|
209
210
|
CreateEventRegistrationBypass: () => CreateEventRegistrationBypass,
|
|
211
|
+
CreateEventReservation: () => CreateEventReservation,
|
|
210
212
|
CreateEventRoomType: () => CreateEventRoomType,
|
|
211
213
|
CreateEventRoomTypeTranslation: () => CreateEventRoomTypeTranslation,
|
|
212
214
|
CreateEventSection: () => CreateEventSection,
|
|
@@ -293,6 +295,7 @@ __export(src_exports, {
|
|
|
293
295
|
DeleteEventQuestionSearchValues: () => DeleteEventQuestionSearchValues,
|
|
294
296
|
DeleteEventQuestionTranslation: () => DeleteEventQuestionTranslation,
|
|
295
297
|
DeleteEventRegistrationBypass: () => DeleteEventRegistrationBypass,
|
|
298
|
+
DeleteEventReservation: () => DeleteEventReservation,
|
|
296
299
|
DeleteEventRoomType: () => DeleteEventRoomType,
|
|
297
300
|
DeleteEventRoomTypeTranslation: () => DeleteEventRoomTypeTranslation,
|
|
298
301
|
DeleteEventSection: () => DeleteEventSection,
|
|
@@ -363,6 +366,7 @@ __export(src_exports, {
|
|
|
363
366
|
EVENT_ATTENDEE_PASSES_QUERY_KEY: () => EVENT_ATTENDEE_PASSES_QUERY_KEY,
|
|
364
367
|
EVENT_ATTENDEE_PAYMENTS_QUERY_KEY: () => EVENT_ATTENDEE_PAYMENTS_QUERY_KEY,
|
|
365
368
|
EVENT_ATTENDEE_QUERY_KEY: () => EVENT_ATTENDEE_QUERY_KEY,
|
|
369
|
+
EVENT_ATTENDEE_RESERVATIONS_QUERY_KEY: () => EVENT_ATTENDEE_RESERVATIONS_QUERY_KEY,
|
|
366
370
|
EVENT_ATTENDEE_TRANSFER_LOGS_QUERY_KEY: () => EVENT_ATTENDEE_TRANSFER_LOGS_QUERY_KEY,
|
|
367
371
|
EVENT_COUPONS_QUERY_KEY: () => EVENT_COUPONS_QUERY_KEY,
|
|
368
372
|
EVENT_COUPON_PASSES_QUERY_KEY: () => EVENT_COUPON_PASSES_QUERY_KEY,
|
|
@@ -423,6 +427,9 @@ __export(src_exports, {
|
|
|
423
427
|
EVENT_QUESTION_TRANSLATION_QUERY_KEY: () => EVENT_QUESTION_TRANSLATION_QUERY_KEY,
|
|
424
428
|
EVENT_REGISTRATION_BYPASS_LIST_QUERY_KEY: () => EVENT_REGISTRATION_BYPASS_LIST_QUERY_KEY,
|
|
425
429
|
EVENT_REGISTRATION_BYPASS_QUERY_KEY: () => EVENT_REGISTRATION_BYPASS_QUERY_KEY,
|
|
430
|
+
EVENT_RESERVATIONS_QUERY_KEY: () => EVENT_RESERVATIONS_QUERY_KEY,
|
|
431
|
+
EVENT_RESERVATION_PASSES_QUERY_KEY: () => EVENT_RESERVATION_PASSES_QUERY_KEY,
|
|
432
|
+
EVENT_RESERVATION_QUERY_KEY: () => EVENT_RESERVATION_QUERY_KEY,
|
|
426
433
|
EVENT_ROOM_TYPES_QUERY_KEY: () => EVENT_ROOM_TYPES_QUERY_KEY,
|
|
427
434
|
EVENT_ROOM_TYPE_PASSES_QUERY_KEY: () => EVENT_ROOM_TYPE_PASSES_QUERY_KEY,
|
|
428
435
|
EVENT_ROOM_TYPE_QUERY_KEY: () => EVENT_ROOM_TYPE_QUERY_KEY,
|
|
@@ -592,6 +599,7 @@ __export(src_exports, {
|
|
|
592
599
|
GetEventAttendeeCoupons: () => GetEventAttendeeCoupons,
|
|
593
600
|
GetEventAttendeePasses: () => GetEventAttendeePasses,
|
|
594
601
|
GetEventAttendeePayments: () => GetEventAttendeePayments,
|
|
602
|
+
GetEventAttendeeReservations: () => GetEventAttendeeReservations,
|
|
595
603
|
GetEventAttendeeTransfersLogs: () => GetEventAttendeeTransfersLogs,
|
|
596
604
|
GetEventAttendees: () => GetEventAttendees,
|
|
597
605
|
GetEventCoHosts: () => GetEventCoHosts,
|
|
@@ -651,6 +659,9 @@ __export(src_exports, {
|
|
|
651
659
|
GetEventQuestions: () => GetEventQuestions,
|
|
652
660
|
GetEventRegistrationBypass: () => GetEventRegistrationBypass,
|
|
653
661
|
GetEventRegistrationBypassList: () => GetEventRegistrationBypassList,
|
|
662
|
+
GetEventReservation: () => GetEventReservation,
|
|
663
|
+
GetEventReservationPasses: () => GetEventReservationPasses,
|
|
664
|
+
GetEventReservations: () => GetEventReservations,
|
|
654
665
|
GetEventRoomType: () => GetEventRoomType,
|
|
655
666
|
GetEventRoomTypePasses: () => GetEventRoomTypePasses,
|
|
656
667
|
GetEventRoomTypeTiers: () => GetEventRoomTypeTiers,
|
|
@@ -908,6 +919,7 @@ __export(src_exports, {
|
|
|
908
919
|
RemoveEventPassTypeAddOn: () => RemoveEventPassTypeAddOn,
|
|
909
920
|
RemoveEventPassTypeTier: () => RemoveEventPassTypeTier,
|
|
910
921
|
RemoveEventQuestionChoiceSubQuestion: () => RemoveEventQuestionChoiceSubQuestion,
|
|
922
|
+
RemoveEventReservationPass: () => RemoveEventReservationPass,
|
|
911
923
|
RemoveEventRoomTypeTier: () => RemoveEventRoomTypeTier,
|
|
912
924
|
RemoveEventSectionAddOn: () => RemoveEventSectionAddOn,
|
|
913
925
|
RemoveEventSectionPassType: () => RemoveEventSectionPassType,
|
|
@@ -1040,6 +1052,7 @@ __export(src_exports, {
|
|
|
1040
1052
|
SET_EVENT_ATTENDEE_PASSES_QUERY_DATA: () => SET_EVENT_ATTENDEE_PASSES_QUERY_DATA,
|
|
1041
1053
|
SET_EVENT_ATTENDEE_PAYMENTS_QUERY_DATA: () => SET_EVENT_ATTENDEE_PAYMENTS_QUERY_DATA,
|
|
1042
1054
|
SET_EVENT_ATTENDEE_QUERY_DATA: () => SET_EVENT_ATTENDEE_QUERY_DATA,
|
|
1055
|
+
SET_EVENT_ATTENDEE_RESERVATIONS_QUERY_DATA: () => SET_EVENT_ATTENDEE_RESERVATIONS_QUERY_DATA,
|
|
1043
1056
|
SET_EVENT_ATTENDEE_TRANSFER_LOGS_QUERY_DATA: () => SET_EVENT_ATTENDEE_TRANSFER_LOGS_QUERY_DATA,
|
|
1044
1057
|
SET_EVENT_COUPONS_QUERY_DATA: () => SET_EVENT_COUPONS_QUERY_DATA,
|
|
1045
1058
|
SET_EVENT_COUPON_PASSES_QUERY_DATA: () => SET_EVENT_COUPON_PASSES_QUERY_DATA,
|
|
@@ -1098,6 +1111,9 @@ __export(src_exports, {
|
|
|
1098
1111
|
SET_EVENT_QUESTION_TRANSLATION_QUERY_DATA: () => SET_EVENT_QUESTION_TRANSLATION_QUERY_DATA,
|
|
1099
1112
|
SET_EVENT_REGISTRATION_BYPASS_QUERY_DATA: () => SET_EVENT_REGISTRATION_BYPASS_QUERY_DATA,
|
|
1100
1113
|
SET_EVENT_REGISTRATION_COUPONS_QUERY_DATA: () => SET_EVENT_REGISTRATION_COUPONS_QUERY_DATA,
|
|
1114
|
+
SET_EVENT_RESERVATIONS_QUERY_DATA: () => SET_EVENT_RESERVATIONS_QUERY_DATA,
|
|
1115
|
+
SET_EVENT_RESERVATION_PASSES_QUERY_DATA: () => SET_EVENT_RESERVATION_PASSES_QUERY_DATA,
|
|
1116
|
+
SET_EVENT_RESERVATION_QUERY_DATA: () => SET_EVENT_RESERVATION_QUERY_DATA,
|
|
1101
1117
|
SET_EVENT_ROOM_TYPES_QUERY_DATA: () => SET_EVENT_ROOM_TYPES_QUERY_DATA,
|
|
1102
1118
|
SET_EVENT_ROOM_TYPE_PASSES_QUERY_DATA: () => SET_EVENT_ROOM_TYPE_PASSES_QUERY_DATA,
|
|
1103
1119
|
SET_EVENT_ROOM_TYPE_QUERY_DATA: () => SET_EVENT_ROOM_TYPE_QUERY_DATA,
|
|
@@ -1354,6 +1370,7 @@ __export(src_exports, {
|
|
|
1354
1370
|
UpdateEventQuestionSearchValue: () => UpdateEventQuestionSearchValue,
|
|
1355
1371
|
UpdateEventQuestionTranslation: () => UpdateEventQuestionTranslation,
|
|
1356
1372
|
UpdateEventRegistrationBypass: () => UpdateEventRegistrationBypass,
|
|
1373
|
+
UpdateEventReservation: () => UpdateEventReservation,
|
|
1357
1374
|
UpdateEventRoomType: () => UpdateEventRoomType,
|
|
1358
1375
|
UpdateEventRoomTypeAddOnDetails: () => UpdateEventRoomTypeAddOnDetails,
|
|
1359
1376
|
UpdateEventRoomTypePassTypeDetails: () => UpdateEventRoomTypePassTypeDetails,
|
|
@@ -1434,6 +1451,7 @@ __export(src_exports, {
|
|
|
1434
1451
|
useAddEventPassTypeAddOn: () => useAddEventPassTypeAddOn,
|
|
1435
1452
|
useAddEventPassTypeTier: () => useAddEventPassTypeTier,
|
|
1436
1453
|
useAddEventQuestionChoiceSubQuestion: () => useAddEventQuestionChoiceSubQuestion,
|
|
1454
|
+
useAddEventReservationPass: () => useAddEventReservationPass,
|
|
1437
1455
|
useAddEventRoomTypeTier: () => useAddEventRoomTypeTier,
|
|
1438
1456
|
useAddEventSectionAddOn: () => useAddEventSectionAddOn,
|
|
1439
1457
|
useAddEventSectionPassType: () => useAddEventSectionPassType,
|
|
@@ -1515,6 +1533,7 @@ __export(src_exports, {
|
|
|
1515
1533
|
useCreateEventQuestionSearchValues: () => useCreateEventQuestionSearchValues,
|
|
1516
1534
|
useCreateEventQuestionTranslation: () => useCreateEventQuestionTranslation,
|
|
1517
1535
|
useCreateEventRegistrationBypass: () => useCreateEventRegistrationBypass,
|
|
1536
|
+
useCreateEventReservation: () => useCreateEventReservation,
|
|
1518
1537
|
useCreateEventRoomType: () => useCreateEventRoomType,
|
|
1519
1538
|
useCreateEventRoomTypeTranslation: () => useCreateEventRoomTypeTranslation,
|
|
1520
1539
|
useCreateEventSection: () => useCreateEventSection,
|
|
@@ -1598,6 +1617,7 @@ __export(src_exports, {
|
|
|
1598
1617
|
useDeleteEventQuestionSearchValues: () => useDeleteEventQuestionSearchValues,
|
|
1599
1618
|
useDeleteEventQuestionTranslation: () => useDeleteEventQuestionTranslation,
|
|
1600
1619
|
useDeleteEventRegistrationBypass: () => useDeleteEventRegistrationBypass,
|
|
1620
|
+
useDeleteEventReservation: () => useDeleteEventReservation,
|
|
1601
1621
|
useDeleteEventRoomType: () => useDeleteEventRoomType,
|
|
1602
1622
|
useDeleteEventRoomTypeTranslation: () => useDeleteEventRoomTypeTranslation,
|
|
1603
1623
|
useDeleteEventSection: () => useDeleteEventSection,
|
|
@@ -1739,6 +1759,7 @@ __export(src_exports, {
|
|
|
1739
1759
|
useGetEventAttendeeCoupons: () => useGetEventAttendeeCoupons,
|
|
1740
1760
|
useGetEventAttendeePasses: () => useGetEventAttendeePasses,
|
|
1741
1761
|
useGetEventAttendeePayments: () => useGetEventAttendeePayments,
|
|
1762
|
+
useGetEventAttendeeReservations: () => useGetEventAttendeeReservations,
|
|
1742
1763
|
useGetEventAttendeeTransfersLogs: () => useGetEventAttendeeTransfersLogs,
|
|
1743
1764
|
useGetEventAttendees: () => useGetEventAttendees,
|
|
1744
1765
|
useGetEventCoHosts: () => useGetEventCoHosts,
|
|
@@ -1798,6 +1819,9 @@ __export(src_exports, {
|
|
|
1798
1819
|
useGetEventQuestions: () => useGetEventQuestions,
|
|
1799
1820
|
useGetEventRegistrationBypass: () => useGetEventRegistrationBypass,
|
|
1800
1821
|
useGetEventRegistrationBypassList: () => useGetEventRegistrationBypassList,
|
|
1822
|
+
useGetEventReservation: () => useGetEventReservation,
|
|
1823
|
+
useGetEventReservationPasses: () => useGetEventReservationPasses,
|
|
1824
|
+
useGetEventReservations: () => useGetEventReservations,
|
|
1801
1825
|
useGetEventRoomType: () => useGetEventRoomType,
|
|
1802
1826
|
useGetEventRoomTypePasses: () => useGetEventRoomTypePasses,
|
|
1803
1827
|
useGetEventRoomTypeTiers: () => useGetEventRoomTypeTiers,
|
|
@@ -1981,6 +2005,7 @@ __export(src_exports, {
|
|
|
1981
2005
|
useRemoveEventPassTypeAddOn: () => useRemoveEventPassTypeAddOn,
|
|
1982
2006
|
useRemoveEventPassTypeTier: () => useRemoveEventPassTypeTier,
|
|
1983
2007
|
useRemoveEventQuestionChoiceSubQuestion: () => useRemoveEventQuestionChoiceSubQuestion,
|
|
2008
|
+
useRemoveEventReservationPass: () => useRemoveEventReservationPass,
|
|
1984
2009
|
useRemoveEventRoomTypeTier: () => useRemoveEventRoomTypeTier,
|
|
1985
2010
|
useRemoveEventSectionAddOn: () => useRemoveEventSectionAddOn,
|
|
1986
2011
|
useRemoveEventSectionPassType: () => useRemoveEventSectionPassType,
|
|
@@ -2072,6 +2097,7 @@ __export(src_exports, {
|
|
|
2072
2097
|
useUpdateEventQuestionSearchValue: () => useUpdateEventQuestionSearchValue,
|
|
2073
2098
|
useUpdateEventQuestionTranslation: () => useUpdateEventQuestionTranslation,
|
|
2074
2099
|
useUpdateEventRegistrationBypass: () => useUpdateEventRegistrationBypass,
|
|
2100
|
+
useUpdateEventReservation: () => useUpdateEventReservation,
|
|
2075
2101
|
useUpdateEventRoomType: () => useUpdateEventRoomType,
|
|
2076
2102
|
useUpdateEventRoomTypeAddOnDetails: () => useUpdateEventRoomTypeAddOnDetails,
|
|
2077
2103
|
useUpdateEventRoomTypePassTypeDetails: () => useUpdateEventRoomTypePassTypeDetails,
|
|
@@ -5818,6 +5844,177 @@ var useGetEventAttendee = (eventId, accountId = "", options = {}) => {
|
|
|
5818
5844
|
);
|
|
5819
5845
|
};
|
|
5820
5846
|
|
|
5847
|
+
// src/queries/events/attendees/reservations/useGetEventAttendeeReservations.ts
|
|
5848
|
+
var EVENT_ATTENDEE_RESERVATIONS_QUERY_KEY = (eventId, accountId) => [...EVENT_ATTENDEE_QUERY_KEY(eventId, accountId), "RESERVATIONS"];
|
|
5849
|
+
var SET_EVENT_ATTENDEE_RESERVATIONS_QUERY_DATA = (client, keyParams, response) => {
|
|
5850
|
+
client.setQueryData(
|
|
5851
|
+
EVENT_ATTENDEE_RESERVATIONS_QUERY_KEY(...keyParams),
|
|
5852
|
+
response
|
|
5853
|
+
);
|
|
5854
|
+
};
|
|
5855
|
+
var GetEventAttendeeReservations = async ({
|
|
5856
|
+
eventId,
|
|
5857
|
+
accountId,
|
|
5858
|
+
pageParam,
|
|
5859
|
+
pageSize,
|
|
5860
|
+
orderBy,
|
|
5861
|
+
search,
|
|
5862
|
+
adminApiParams
|
|
5863
|
+
}) => {
|
|
5864
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
5865
|
+
const { data } = await adminApi.get(
|
|
5866
|
+
`/events/${eventId}/attendees/${accountId}/reservations`,
|
|
5867
|
+
{
|
|
5868
|
+
params: {
|
|
5869
|
+
page: pageParam || void 0,
|
|
5870
|
+
pageSize: pageSize || void 0,
|
|
5871
|
+
orderBy: orderBy || void 0,
|
|
5872
|
+
search: search || void 0
|
|
5873
|
+
}
|
|
5874
|
+
}
|
|
5875
|
+
);
|
|
5876
|
+
return data;
|
|
5877
|
+
};
|
|
5878
|
+
var useGetEventAttendeeReservations = (eventId, accountId, params = {}, options = {}) => {
|
|
5879
|
+
return useConnectedInfiniteQuery(
|
|
5880
|
+
EVENT_ATTENDEE_RESERVATIONS_QUERY_KEY(eventId, accountId),
|
|
5881
|
+
(params2) => GetEventAttendeeReservations({
|
|
5882
|
+
...params2,
|
|
5883
|
+
eventId,
|
|
5884
|
+
accountId
|
|
5885
|
+
}),
|
|
5886
|
+
params,
|
|
5887
|
+
{
|
|
5888
|
+
...options,
|
|
5889
|
+
enabled: !!eventId && !!accountId && (options.enabled ?? true)
|
|
5890
|
+
},
|
|
5891
|
+
"events"
|
|
5892
|
+
);
|
|
5893
|
+
};
|
|
5894
|
+
|
|
5895
|
+
// src/queries/events/attendees/reservations/useGetEventReservations.ts
|
|
5896
|
+
var EVENT_RESERVATIONS_QUERY_KEY = (eventId) => [
|
|
5897
|
+
...EVENT_QUERY_KEY(eventId),
|
|
5898
|
+
"RESERVATIONS"
|
|
5899
|
+
];
|
|
5900
|
+
var SET_EVENT_RESERVATIONS_QUERY_DATA = (client, keyParams, response) => {
|
|
5901
|
+
client.setQueryData(EVENT_RESERVATIONS_QUERY_KEY(...keyParams), response);
|
|
5902
|
+
};
|
|
5903
|
+
var GetEventReservations = async ({
|
|
5904
|
+
eventId,
|
|
5905
|
+
pageParam,
|
|
5906
|
+
pageSize,
|
|
5907
|
+
orderBy,
|
|
5908
|
+
search,
|
|
5909
|
+
adminApiParams
|
|
5910
|
+
}) => {
|
|
5911
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
5912
|
+
const { data } = await adminApi.get(`/events/${eventId}/reservations`, {
|
|
5913
|
+
params: {
|
|
5914
|
+
page: pageParam || void 0,
|
|
5915
|
+
pageSize: pageSize || void 0,
|
|
5916
|
+
orderBy: orderBy || void 0,
|
|
5917
|
+
search: search || void 0
|
|
5918
|
+
}
|
|
5919
|
+
});
|
|
5920
|
+
return data;
|
|
5921
|
+
};
|
|
5922
|
+
var useGetEventReservations = (eventId, params = {}, options = {}) => {
|
|
5923
|
+
return useConnectedInfiniteQuery(
|
|
5924
|
+
EVENT_RESERVATIONS_QUERY_KEY(eventId),
|
|
5925
|
+
(params2) => GetEventReservations({
|
|
5926
|
+
...params2,
|
|
5927
|
+
eventId
|
|
5928
|
+
}),
|
|
5929
|
+
params,
|
|
5930
|
+
{
|
|
5931
|
+
...options,
|
|
5932
|
+
enabled: !!eventId && (options.enabled ?? true)
|
|
5933
|
+
},
|
|
5934
|
+
"events"
|
|
5935
|
+
);
|
|
5936
|
+
};
|
|
5937
|
+
|
|
5938
|
+
// src/queries/events/attendees/reservations/useGetEventReservation.ts
|
|
5939
|
+
var EVENT_RESERVATION_QUERY_KEY = (eventId, reservationId) => [...EVENT_RESERVATIONS_QUERY_KEY(eventId), reservationId];
|
|
5940
|
+
var SET_EVENT_RESERVATION_QUERY_DATA = (client, keyParams, response) => {
|
|
5941
|
+
client.setQueryData(EVENT_RESERVATION_QUERY_KEY(...keyParams), response);
|
|
5942
|
+
};
|
|
5943
|
+
var GetEventReservation = async ({
|
|
5944
|
+
eventId,
|
|
5945
|
+
reservationId,
|
|
5946
|
+
adminApiParams
|
|
5947
|
+
}) => {
|
|
5948
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
5949
|
+
const { data } = await adminApi.get(
|
|
5950
|
+
`/events/${eventId}/reservations/${reservationId}`
|
|
5951
|
+
);
|
|
5952
|
+
return data;
|
|
5953
|
+
};
|
|
5954
|
+
var useGetEventReservation = (eventId, reservationId = "", options = {}) => {
|
|
5955
|
+
return useConnectedSingleQuery(
|
|
5956
|
+
EVENT_RESERVATION_QUERY_KEY(eventId, reservationId),
|
|
5957
|
+
(params) => GetEventReservation({
|
|
5958
|
+
eventId,
|
|
5959
|
+
reservationId,
|
|
5960
|
+
...params
|
|
5961
|
+
}),
|
|
5962
|
+
{
|
|
5963
|
+
...options,
|
|
5964
|
+
enabled: !!eventId && !!reservationId && (options?.enabled ?? true)
|
|
5965
|
+
},
|
|
5966
|
+
"events"
|
|
5967
|
+
);
|
|
5968
|
+
};
|
|
5969
|
+
|
|
5970
|
+
// src/queries/events/attendees/reservations/useGetEventReservationPasses.ts
|
|
5971
|
+
var EVENT_RESERVATION_PASSES_QUERY_KEY = (eventId, reservationId) => [...EVENT_RESERVATION_QUERY_KEY(eventId, reservationId), "PASSES"];
|
|
5972
|
+
var SET_EVENT_RESERVATION_PASSES_QUERY_DATA = (client, keyParams, response) => {
|
|
5973
|
+
client.setQueryData(
|
|
5974
|
+
EVENT_RESERVATION_PASSES_QUERY_KEY(...keyParams),
|
|
5975
|
+
response
|
|
5976
|
+
);
|
|
5977
|
+
};
|
|
5978
|
+
var GetEventReservationPasses = async ({
|
|
5979
|
+
eventId,
|
|
5980
|
+
reservationId,
|
|
5981
|
+
pageParam,
|
|
5982
|
+
pageSize,
|
|
5983
|
+
orderBy,
|
|
5984
|
+
search,
|
|
5985
|
+
adminApiParams
|
|
5986
|
+
}) => {
|
|
5987
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
5988
|
+
const { data } = await adminApi.get(
|
|
5989
|
+
`/events/${eventId}/reservations/${reservationId}/passes`,
|
|
5990
|
+
{
|
|
5991
|
+
params: {
|
|
5992
|
+
page: pageParam || void 0,
|
|
5993
|
+
pageSize: pageSize || void 0,
|
|
5994
|
+
orderBy: orderBy || void 0,
|
|
5995
|
+
search: search || void 0
|
|
5996
|
+
}
|
|
5997
|
+
}
|
|
5998
|
+
);
|
|
5999
|
+
return data;
|
|
6000
|
+
};
|
|
6001
|
+
var useGetEventReservationPasses = (eventId = "", reservationId = "", params = {}, options = {}) => {
|
|
6002
|
+
return useConnectedInfiniteQuery(
|
|
6003
|
+
EVENT_RESERVATION_PASSES_QUERY_KEY(eventId, reservationId),
|
|
6004
|
+
(params2) => GetEventReservationPasses({
|
|
6005
|
+
...params2,
|
|
6006
|
+
eventId,
|
|
6007
|
+
reservationId
|
|
6008
|
+
}),
|
|
6009
|
+
params,
|
|
6010
|
+
{
|
|
6011
|
+
...options,
|
|
6012
|
+
enabled: !!eventId && !!reservationId && (options.enabled ?? true)
|
|
6013
|
+
},
|
|
6014
|
+
"events"
|
|
6015
|
+
);
|
|
6016
|
+
};
|
|
6017
|
+
|
|
5821
6018
|
// src/queries/events/attendees/useGetEventAttendeeCoupons.ts
|
|
5822
6019
|
var EVENT_ATTENDEE_COUPONS_QUERY_KEY = (eventId, accountId, prePaid) => {
|
|
5823
6020
|
const key = [...EVENT_ATTENDEE_QUERY_KEY(eventId, accountId), "COUPONS"];
|
|
@@ -17689,6 +17886,181 @@ var useUpdateEventAddOn = (options = {}) => {
|
|
|
17689
17886
|
});
|
|
17690
17887
|
};
|
|
17691
17888
|
|
|
17889
|
+
// src/mutations/event/attendees/reservations/useAddEventReservationPass.ts
|
|
17890
|
+
var AddEventReservationPass = async ({
|
|
17891
|
+
eventId,
|
|
17892
|
+
reservationId,
|
|
17893
|
+
passId,
|
|
17894
|
+
accountId,
|
|
17895
|
+
adminApiParams,
|
|
17896
|
+
queryClient
|
|
17897
|
+
}) => {
|
|
17898
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
17899
|
+
const { data } = await connectedXM.post(`/events/${eventId}/reservations/${reservationId}/passes/${passId}`);
|
|
17900
|
+
if (queryClient && data.status === "ok") {
|
|
17901
|
+
queryClient.invalidateQueries({
|
|
17902
|
+
queryKey: EVENT_RESERVATION_PASSES_QUERY_KEY(eventId, reservationId)
|
|
17903
|
+
});
|
|
17904
|
+
queryClient.invalidateQueries({
|
|
17905
|
+
queryKey: EVENT_RESERVATIONS_QUERY_KEY(eventId)
|
|
17906
|
+
});
|
|
17907
|
+
if (accountId) {
|
|
17908
|
+
queryClient.invalidateQueries({
|
|
17909
|
+
queryKey: EVENT_ATTENDEE_RESERVATIONS_QUERY_KEY(eventId, accountId)
|
|
17910
|
+
});
|
|
17911
|
+
}
|
|
17912
|
+
}
|
|
17913
|
+
return data;
|
|
17914
|
+
};
|
|
17915
|
+
var useAddEventReservationPass = (options = {}) => {
|
|
17916
|
+
return useConnectedMutation(AddEventReservationPass, options, {
|
|
17917
|
+
domain: "events",
|
|
17918
|
+
type: "update"
|
|
17919
|
+
});
|
|
17920
|
+
};
|
|
17921
|
+
|
|
17922
|
+
// src/mutations/event/attendees/reservations/useCreateEventReservation.ts
|
|
17923
|
+
var CreateEventReservation = async ({
|
|
17924
|
+
eventId,
|
|
17925
|
+
reservation,
|
|
17926
|
+
accountId,
|
|
17927
|
+
adminApiParams,
|
|
17928
|
+
queryClient
|
|
17929
|
+
}) => {
|
|
17930
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
17931
|
+
const { data } = await connectedXM.post(
|
|
17932
|
+
`/events/${eventId}/reservations`,
|
|
17933
|
+
reservation
|
|
17934
|
+
);
|
|
17935
|
+
if (queryClient && data.status === "ok") {
|
|
17936
|
+
SET_EVENT_RESERVATION_QUERY_DATA(
|
|
17937
|
+
queryClient,
|
|
17938
|
+
[eventId, data.data.id],
|
|
17939
|
+
data
|
|
17940
|
+
);
|
|
17941
|
+
queryClient.invalidateQueries({
|
|
17942
|
+
queryKey: EVENT_RESERVATIONS_QUERY_KEY(eventId)
|
|
17943
|
+
});
|
|
17944
|
+
if (accountId) {
|
|
17945
|
+
queryClient.invalidateQueries({
|
|
17946
|
+
queryKey: EVENT_ATTENDEE_RESERVATIONS_QUERY_KEY(eventId, accountId)
|
|
17947
|
+
});
|
|
17948
|
+
}
|
|
17949
|
+
}
|
|
17950
|
+
return data;
|
|
17951
|
+
};
|
|
17952
|
+
var useCreateEventReservation = (options = {}) => {
|
|
17953
|
+
return useConnectedMutation(CreateEventReservation, options, {
|
|
17954
|
+
domain: "events",
|
|
17955
|
+
type: "update"
|
|
17956
|
+
});
|
|
17957
|
+
};
|
|
17958
|
+
|
|
17959
|
+
// src/mutations/event/attendees/reservations/useDeleteEventReservation.ts
|
|
17960
|
+
var DeleteEventReservation = async ({
|
|
17961
|
+
eventId,
|
|
17962
|
+
reservationId,
|
|
17963
|
+
accountId,
|
|
17964
|
+
adminApiParams,
|
|
17965
|
+
queryClient
|
|
17966
|
+
}) => {
|
|
17967
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
17968
|
+
const { data } = await connectedXM.delete(
|
|
17969
|
+
`/events/${eventId}/reservations/${reservationId}`
|
|
17970
|
+
);
|
|
17971
|
+
if (queryClient && data.status === "ok") {
|
|
17972
|
+
queryClient.removeQueries({
|
|
17973
|
+
queryKey: EVENT_RESERVATION_QUERY_KEY(eventId, reservationId)
|
|
17974
|
+
});
|
|
17975
|
+
queryClient.invalidateQueries({
|
|
17976
|
+
queryKey: EVENT_RESERVATIONS_QUERY_KEY(eventId)
|
|
17977
|
+
});
|
|
17978
|
+
if (accountId) {
|
|
17979
|
+
queryClient.invalidateQueries({
|
|
17980
|
+
queryKey: EVENT_ATTENDEE_RESERVATIONS_QUERY_KEY(eventId, accountId)
|
|
17981
|
+
});
|
|
17982
|
+
}
|
|
17983
|
+
}
|
|
17984
|
+
return data;
|
|
17985
|
+
};
|
|
17986
|
+
var useDeleteEventReservation = (options = {}) => {
|
|
17987
|
+
return useConnectedMutation(DeleteEventReservation, options, {
|
|
17988
|
+
domain: "events",
|
|
17989
|
+
type: "update"
|
|
17990
|
+
});
|
|
17991
|
+
};
|
|
17992
|
+
|
|
17993
|
+
// src/mutations/event/attendees/reservations/useRemoveEventReservationPass.ts
|
|
17994
|
+
var RemoveEventReservationPass = async ({
|
|
17995
|
+
eventId,
|
|
17996
|
+
reservationId,
|
|
17997
|
+
passId,
|
|
17998
|
+
accountId,
|
|
17999
|
+
adminApiParams,
|
|
18000
|
+
queryClient
|
|
18001
|
+
}) => {
|
|
18002
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
18003
|
+
const { data } = await connectedXM.delete(`/events/${eventId}/reservations/${reservationId}/passes/${passId}`);
|
|
18004
|
+
if (queryClient && data.status === "ok") {
|
|
18005
|
+
queryClient.invalidateQueries({
|
|
18006
|
+
queryKey: EVENT_RESERVATION_PASSES_QUERY_KEY(eventId, reservationId)
|
|
18007
|
+
});
|
|
18008
|
+
queryClient.invalidateQueries({
|
|
18009
|
+
queryKey: EVENT_RESERVATIONS_QUERY_KEY(eventId)
|
|
18010
|
+
});
|
|
18011
|
+
if (accountId) {
|
|
18012
|
+
queryClient.invalidateQueries({
|
|
18013
|
+
queryKey: EVENT_ATTENDEE_RESERVATIONS_QUERY_KEY(eventId, accountId)
|
|
18014
|
+
});
|
|
18015
|
+
}
|
|
18016
|
+
}
|
|
18017
|
+
return data;
|
|
18018
|
+
};
|
|
18019
|
+
var useRemoveEventReservationPass = (options = {}) => {
|
|
18020
|
+
return useConnectedMutation(RemoveEventReservationPass, options, {
|
|
18021
|
+
domain: "events",
|
|
18022
|
+
type: "update"
|
|
18023
|
+
});
|
|
18024
|
+
};
|
|
18025
|
+
|
|
18026
|
+
// src/mutations/event/attendees/reservations/useUpdateEventReservation.ts
|
|
18027
|
+
var UpdateEventReservation = async ({
|
|
18028
|
+
eventId,
|
|
18029
|
+
reservationId,
|
|
18030
|
+
reservation,
|
|
18031
|
+
accountId,
|
|
18032
|
+
adminApiParams,
|
|
18033
|
+
queryClient
|
|
18034
|
+
}) => {
|
|
18035
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
18036
|
+
const { data } = await connectedXM.put(
|
|
18037
|
+
`/events/${eventId}/reservations/${reservationId}`,
|
|
18038
|
+
reservation
|
|
18039
|
+
);
|
|
18040
|
+
if (queryClient && data.status === "ok") {
|
|
18041
|
+
SET_EVENT_RESERVATION_QUERY_DATA(
|
|
18042
|
+
queryClient,
|
|
18043
|
+
[eventId, reservationId],
|
|
18044
|
+
data
|
|
18045
|
+
);
|
|
18046
|
+
queryClient.invalidateQueries({
|
|
18047
|
+
queryKey: EVENT_RESERVATIONS_QUERY_KEY(eventId)
|
|
18048
|
+
});
|
|
18049
|
+
if (accountId) {
|
|
18050
|
+
queryClient.invalidateQueries({
|
|
18051
|
+
queryKey: EVENT_ATTENDEE_RESERVATIONS_QUERY_KEY(eventId, accountId)
|
|
18052
|
+
});
|
|
18053
|
+
}
|
|
18054
|
+
}
|
|
18055
|
+
return data;
|
|
18056
|
+
};
|
|
18057
|
+
var useUpdateEventReservation = (options = {}) => {
|
|
18058
|
+
return useConnectedMutation(UpdateEventReservation, options, {
|
|
18059
|
+
domain: "events",
|
|
18060
|
+
type: "update"
|
|
18061
|
+
});
|
|
18062
|
+
};
|
|
18063
|
+
|
|
17692
18064
|
// src/mutations/event/attendees/useCheckinAllAttendeePasses.ts
|
|
17693
18065
|
var CheckinAllAttendeePasses = async ({
|
|
17694
18066
|
eventId,
|
|
@@ -26568,6 +26940,7 @@ var useUpdateVideo = (options = {}) => {
|
|
|
26568
26940
|
AddEventPassTypeAddOn,
|
|
26569
26941
|
AddEventPassTypeTier,
|
|
26570
26942
|
AddEventQuestionChoiceSubQuestion,
|
|
26943
|
+
AddEventReservationPass,
|
|
26571
26944
|
AddEventRoomTypeTier,
|
|
26572
26945
|
AddEventSectionAddOn,
|
|
26573
26946
|
AddEventSectionPassType,
|
|
@@ -26678,6 +27051,7 @@ var useUpdateVideo = (options = {}) => {
|
|
|
26678
27051
|
CreateEventQuestionSearchValues,
|
|
26679
27052
|
CreateEventQuestionTranslation,
|
|
26680
27053
|
CreateEventRegistrationBypass,
|
|
27054
|
+
CreateEventReservation,
|
|
26681
27055
|
CreateEventRoomType,
|
|
26682
27056
|
CreateEventRoomTypeTranslation,
|
|
26683
27057
|
CreateEventSection,
|
|
@@ -26764,6 +27138,7 @@ var useUpdateVideo = (options = {}) => {
|
|
|
26764
27138
|
DeleteEventQuestionSearchValues,
|
|
26765
27139
|
DeleteEventQuestionTranslation,
|
|
26766
27140
|
DeleteEventRegistrationBypass,
|
|
27141
|
+
DeleteEventReservation,
|
|
26767
27142
|
DeleteEventRoomType,
|
|
26768
27143
|
DeleteEventRoomTypeTranslation,
|
|
26769
27144
|
DeleteEventSection,
|
|
@@ -26834,6 +27209,7 @@ var useUpdateVideo = (options = {}) => {
|
|
|
26834
27209
|
EVENT_ATTENDEE_PASSES_QUERY_KEY,
|
|
26835
27210
|
EVENT_ATTENDEE_PAYMENTS_QUERY_KEY,
|
|
26836
27211
|
EVENT_ATTENDEE_QUERY_KEY,
|
|
27212
|
+
EVENT_ATTENDEE_RESERVATIONS_QUERY_KEY,
|
|
26837
27213
|
EVENT_ATTENDEE_TRANSFER_LOGS_QUERY_KEY,
|
|
26838
27214
|
EVENT_COUPONS_QUERY_KEY,
|
|
26839
27215
|
EVENT_COUPON_PASSES_QUERY_KEY,
|
|
@@ -26894,6 +27270,9 @@ var useUpdateVideo = (options = {}) => {
|
|
|
26894
27270
|
EVENT_QUESTION_TRANSLATION_QUERY_KEY,
|
|
26895
27271
|
EVENT_REGISTRATION_BYPASS_LIST_QUERY_KEY,
|
|
26896
27272
|
EVENT_REGISTRATION_BYPASS_QUERY_KEY,
|
|
27273
|
+
EVENT_RESERVATIONS_QUERY_KEY,
|
|
27274
|
+
EVENT_RESERVATION_PASSES_QUERY_KEY,
|
|
27275
|
+
EVENT_RESERVATION_QUERY_KEY,
|
|
26897
27276
|
EVENT_ROOM_TYPES_QUERY_KEY,
|
|
26898
27277
|
EVENT_ROOM_TYPE_PASSES_QUERY_KEY,
|
|
26899
27278
|
EVENT_ROOM_TYPE_QUERY_KEY,
|
|
@@ -27063,6 +27442,7 @@ var useUpdateVideo = (options = {}) => {
|
|
|
27063
27442
|
GetEventAttendeeCoupons,
|
|
27064
27443
|
GetEventAttendeePasses,
|
|
27065
27444
|
GetEventAttendeePayments,
|
|
27445
|
+
GetEventAttendeeReservations,
|
|
27066
27446
|
GetEventAttendeeTransfersLogs,
|
|
27067
27447
|
GetEventAttendees,
|
|
27068
27448
|
GetEventCoHosts,
|
|
@@ -27122,6 +27502,9 @@ var useUpdateVideo = (options = {}) => {
|
|
|
27122
27502
|
GetEventQuestions,
|
|
27123
27503
|
GetEventRegistrationBypass,
|
|
27124
27504
|
GetEventRegistrationBypassList,
|
|
27505
|
+
GetEventReservation,
|
|
27506
|
+
GetEventReservationPasses,
|
|
27507
|
+
GetEventReservations,
|
|
27125
27508
|
GetEventRoomType,
|
|
27126
27509
|
GetEventRoomTypePasses,
|
|
27127
27510
|
GetEventRoomTypeTiers,
|
|
@@ -27379,6 +27762,7 @@ var useUpdateVideo = (options = {}) => {
|
|
|
27379
27762
|
RemoveEventPassTypeAddOn,
|
|
27380
27763
|
RemoveEventPassTypeTier,
|
|
27381
27764
|
RemoveEventQuestionChoiceSubQuestion,
|
|
27765
|
+
RemoveEventReservationPass,
|
|
27382
27766
|
RemoveEventRoomTypeTier,
|
|
27383
27767
|
RemoveEventSectionAddOn,
|
|
27384
27768
|
RemoveEventSectionPassType,
|
|
@@ -27511,6 +27895,7 @@ var useUpdateVideo = (options = {}) => {
|
|
|
27511
27895
|
SET_EVENT_ATTENDEE_PASSES_QUERY_DATA,
|
|
27512
27896
|
SET_EVENT_ATTENDEE_PAYMENTS_QUERY_DATA,
|
|
27513
27897
|
SET_EVENT_ATTENDEE_QUERY_DATA,
|
|
27898
|
+
SET_EVENT_ATTENDEE_RESERVATIONS_QUERY_DATA,
|
|
27514
27899
|
SET_EVENT_ATTENDEE_TRANSFER_LOGS_QUERY_DATA,
|
|
27515
27900
|
SET_EVENT_COUPONS_QUERY_DATA,
|
|
27516
27901
|
SET_EVENT_COUPON_PASSES_QUERY_DATA,
|
|
@@ -27569,6 +27954,9 @@ var useUpdateVideo = (options = {}) => {
|
|
|
27569
27954
|
SET_EVENT_QUESTION_TRANSLATION_QUERY_DATA,
|
|
27570
27955
|
SET_EVENT_REGISTRATION_BYPASS_QUERY_DATA,
|
|
27571
27956
|
SET_EVENT_REGISTRATION_COUPONS_QUERY_DATA,
|
|
27957
|
+
SET_EVENT_RESERVATIONS_QUERY_DATA,
|
|
27958
|
+
SET_EVENT_RESERVATION_PASSES_QUERY_DATA,
|
|
27959
|
+
SET_EVENT_RESERVATION_QUERY_DATA,
|
|
27572
27960
|
SET_EVENT_ROOM_TYPES_QUERY_DATA,
|
|
27573
27961
|
SET_EVENT_ROOM_TYPE_PASSES_QUERY_DATA,
|
|
27574
27962
|
SET_EVENT_ROOM_TYPE_QUERY_DATA,
|
|
@@ -27825,6 +28213,7 @@ var useUpdateVideo = (options = {}) => {
|
|
|
27825
28213
|
UpdateEventQuestionSearchValue,
|
|
27826
28214
|
UpdateEventQuestionTranslation,
|
|
27827
28215
|
UpdateEventRegistrationBypass,
|
|
28216
|
+
UpdateEventReservation,
|
|
27828
28217
|
UpdateEventRoomType,
|
|
27829
28218
|
UpdateEventRoomTypeAddOnDetails,
|
|
27830
28219
|
UpdateEventRoomTypePassTypeDetails,
|
|
@@ -27905,6 +28294,7 @@ var useUpdateVideo = (options = {}) => {
|
|
|
27905
28294
|
useAddEventPassTypeAddOn,
|
|
27906
28295
|
useAddEventPassTypeTier,
|
|
27907
28296
|
useAddEventQuestionChoiceSubQuestion,
|
|
28297
|
+
useAddEventReservationPass,
|
|
27908
28298
|
useAddEventRoomTypeTier,
|
|
27909
28299
|
useAddEventSectionAddOn,
|
|
27910
28300
|
useAddEventSectionPassType,
|
|
@@ -27986,6 +28376,7 @@ var useUpdateVideo = (options = {}) => {
|
|
|
27986
28376
|
useCreateEventQuestionSearchValues,
|
|
27987
28377
|
useCreateEventQuestionTranslation,
|
|
27988
28378
|
useCreateEventRegistrationBypass,
|
|
28379
|
+
useCreateEventReservation,
|
|
27989
28380
|
useCreateEventRoomType,
|
|
27990
28381
|
useCreateEventRoomTypeTranslation,
|
|
27991
28382
|
useCreateEventSection,
|
|
@@ -28069,6 +28460,7 @@ var useUpdateVideo = (options = {}) => {
|
|
|
28069
28460
|
useDeleteEventQuestionSearchValues,
|
|
28070
28461
|
useDeleteEventQuestionTranslation,
|
|
28071
28462
|
useDeleteEventRegistrationBypass,
|
|
28463
|
+
useDeleteEventReservation,
|
|
28072
28464
|
useDeleteEventRoomType,
|
|
28073
28465
|
useDeleteEventRoomTypeTranslation,
|
|
28074
28466
|
useDeleteEventSection,
|
|
@@ -28210,6 +28602,7 @@ var useUpdateVideo = (options = {}) => {
|
|
|
28210
28602
|
useGetEventAttendeeCoupons,
|
|
28211
28603
|
useGetEventAttendeePasses,
|
|
28212
28604
|
useGetEventAttendeePayments,
|
|
28605
|
+
useGetEventAttendeeReservations,
|
|
28213
28606
|
useGetEventAttendeeTransfersLogs,
|
|
28214
28607
|
useGetEventAttendees,
|
|
28215
28608
|
useGetEventCoHosts,
|
|
@@ -28269,6 +28662,9 @@ var useUpdateVideo = (options = {}) => {
|
|
|
28269
28662
|
useGetEventQuestions,
|
|
28270
28663
|
useGetEventRegistrationBypass,
|
|
28271
28664
|
useGetEventRegistrationBypassList,
|
|
28665
|
+
useGetEventReservation,
|
|
28666
|
+
useGetEventReservationPasses,
|
|
28667
|
+
useGetEventReservations,
|
|
28272
28668
|
useGetEventRoomType,
|
|
28273
28669
|
useGetEventRoomTypePasses,
|
|
28274
28670
|
useGetEventRoomTypeTiers,
|
|
@@ -28452,6 +28848,7 @@ var useUpdateVideo = (options = {}) => {
|
|
|
28452
28848
|
useRemoveEventPassTypeAddOn,
|
|
28453
28849
|
useRemoveEventPassTypeTier,
|
|
28454
28850
|
useRemoveEventQuestionChoiceSubQuestion,
|
|
28851
|
+
useRemoveEventReservationPass,
|
|
28455
28852
|
useRemoveEventRoomTypeTier,
|
|
28456
28853
|
useRemoveEventSectionAddOn,
|
|
28457
28854
|
useRemoveEventSectionPassType,
|
|
@@ -28543,6 +28940,7 @@ var useUpdateVideo = (options = {}) => {
|
|
|
28543
28940
|
useUpdateEventQuestionSearchValue,
|
|
28544
28941
|
useUpdateEventQuestionTranslation,
|
|
28545
28942
|
useUpdateEventRegistrationBypass,
|
|
28943
|
+
useUpdateEventReservation,
|
|
28546
28944
|
useUpdateEventRoomType,
|
|
28547
28945
|
useUpdateEventRoomTypeAddOnDetails,
|
|
28548
28946
|
useUpdateEventRoomTypePassTypeDetails,
|