@connectedxm/admin 7.2.1 → 7.2.2
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.cjs +62 -0
- package/dist/index.d.cts +42 -1
- package/dist/index.d.ts +42 -1
- package/dist/index.js +58 -0
- package/openapi.json +147 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -228,6 +228,7 @@ __export(index_exports, {
|
|
|
228
228
|
CancelEventPass: () => CancelEventPass,
|
|
229
229
|
CancelGroupInvitation: () => CancelGroupInvitation,
|
|
230
230
|
ChannelFormat: () => ChannelFormat,
|
|
231
|
+
CheckInBooking: () => CheckInBooking,
|
|
231
232
|
CheckinEventPass: () => CheckinEventPass,
|
|
232
233
|
CloneEvent: () => CloneEvent,
|
|
233
234
|
CloneEventSession: () => CloneEventSession,
|
|
@@ -2168,6 +2169,7 @@ __export(index_exports, {
|
|
|
2168
2169
|
ToggleTaxIntegration: () => ToggleTaxIntegration,
|
|
2169
2170
|
TransferEventPass: () => TransferEventPass,
|
|
2170
2171
|
TransformPrice: () => TransformPrice,
|
|
2172
|
+
UndoCheckInBooking: () => UndoCheckInBooking,
|
|
2171
2173
|
UndoCheckinEventPass: () => UndoCheckinEventPass,
|
|
2172
2174
|
UpdateAccount: () => UpdateAccount,
|
|
2173
2175
|
UpdateAccountAddress: () => UpdateAccountAddress,
|
|
@@ -2453,6 +2455,7 @@ __export(index_exports, {
|
|
|
2453
2455
|
useCancelChannelContentPublishSchedule: () => useCancelChannelContentPublishSchedule,
|
|
2454
2456
|
useCancelEventPass: () => useCancelEventPass,
|
|
2455
2457
|
useCancelGroupInvitation: () => useCancelGroupInvitation,
|
|
2458
|
+
useCheckInBooking: () => useCheckInBooking,
|
|
2456
2459
|
useCheckinEventPass: () => useCheckinEventPass,
|
|
2457
2460
|
useCloneEvent: () => useCloneEvent,
|
|
2458
2461
|
useCloneEventSession: () => useCloneEventSession,
|
|
@@ -3391,6 +3394,7 @@ __export(index_exports, {
|
|
|
3391
3394
|
useToggleOrganizationPaymentIntegration: () => useToggleOrganizationPaymentIntegration,
|
|
3392
3395
|
useToggleTaxIntegration: () => useToggleTaxIntegration,
|
|
3393
3396
|
useTransferEventPass: () => useTransferEventPass,
|
|
3397
|
+
useUndoCheckInBooking: () => useUndoCheckInBooking,
|
|
3394
3398
|
useUndoCheckinEventPass: () => useUndoCheckinEventPass,
|
|
3395
3399
|
useUpdateAccount: () => useUpdateAccount,
|
|
3396
3400
|
useUpdateAccountAddress: () => useUpdateAccountAddress,
|
|
@@ -27533,6 +27537,33 @@ var useCancelBooking = (options = {}) => {
|
|
|
27533
27537
|
return useConnectedMutation(CancelBooking, options);
|
|
27534
27538
|
};
|
|
27535
27539
|
|
|
27540
|
+
// src/mutations/bookings/useCheckInBooking.ts
|
|
27541
|
+
var CheckInBooking = async ({
|
|
27542
|
+
placeId,
|
|
27543
|
+
spaceId,
|
|
27544
|
+
bookingId,
|
|
27545
|
+
adminApiParams,
|
|
27546
|
+
queryClient
|
|
27547
|
+
}) => {
|
|
27548
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
27549
|
+
const { data } = await connectedXM.post(
|
|
27550
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/bookings/${bookingId}/checkin`
|
|
27551
|
+
);
|
|
27552
|
+
if (queryClient && data.status === "ok") {
|
|
27553
|
+
queryClient.invalidateQueries({
|
|
27554
|
+
queryKey: BOOKING_PLACE_BOOKINGS_QUERY_KEY(placeId)
|
|
27555
|
+
});
|
|
27556
|
+
queryClient.invalidateQueries({
|
|
27557
|
+
queryKey: BOOKING_SPACE_BOOKINGS_QUERY_KEY(placeId, spaceId)
|
|
27558
|
+
});
|
|
27559
|
+
SET_BOOKING_QUERY_DATA(queryClient, [bookingId], data);
|
|
27560
|
+
}
|
|
27561
|
+
return data;
|
|
27562
|
+
};
|
|
27563
|
+
var useCheckInBooking = (options = {}) => {
|
|
27564
|
+
return useConnectedMutation(CheckInBooking, options);
|
|
27565
|
+
};
|
|
27566
|
+
|
|
27536
27567
|
// src/mutations/bookings/useCreateBooking.ts
|
|
27537
27568
|
var CreateBooking = async ({
|
|
27538
27569
|
placeId,
|
|
@@ -27615,6 +27646,33 @@ var useRemoveBookingSpaceTier = (options = {}) => {
|
|
|
27615
27646
|
return useConnectedMutation(RemoveBookingSpaceTier, options);
|
|
27616
27647
|
};
|
|
27617
27648
|
|
|
27649
|
+
// src/mutations/bookings/useUndoCheckInBooking.ts
|
|
27650
|
+
var UndoCheckInBooking = async ({
|
|
27651
|
+
placeId,
|
|
27652
|
+
spaceId,
|
|
27653
|
+
bookingId,
|
|
27654
|
+
adminApiParams,
|
|
27655
|
+
queryClient
|
|
27656
|
+
}) => {
|
|
27657
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
27658
|
+
const { data } = await connectedXM.post(
|
|
27659
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/bookings/${bookingId}/checkin/undo`
|
|
27660
|
+
);
|
|
27661
|
+
if (queryClient && data.status === "ok") {
|
|
27662
|
+
queryClient.invalidateQueries({
|
|
27663
|
+
queryKey: BOOKING_PLACE_BOOKINGS_QUERY_KEY(placeId)
|
|
27664
|
+
});
|
|
27665
|
+
queryClient.invalidateQueries({
|
|
27666
|
+
queryKey: BOOKING_SPACE_BOOKINGS_QUERY_KEY(placeId, spaceId)
|
|
27667
|
+
});
|
|
27668
|
+
SET_BOOKING_QUERY_DATA(queryClient, [bookingId], data);
|
|
27669
|
+
}
|
|
27670
|
+
return data;
|
|
27671
|
+
};
|
|
27672
|
+
var useUndoCheckInBooking = (options = {}) => {
|
|
27673
|
+
return useConnectedMutation(UndoCheckInBooking, options);
|
|
27674
|
+
};
|
|
27675
|
+
|
|
27618
27676
|
// src/mutations/bookings/useUpdateBooking.ts
|
|
27619
27677
|
var UpdateBooking = async ({
|
|
27620
27678
|
placeId,
|
|
@@ -43608,6 +43666,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
43608
43666
|
CancelEventPass,
|
|
43609
43667
|
CancelGroupInvitation,
|
|
43610
43668
|
ChannelFormat,
|
|
43669
|
+
CheckInBooking,
|
|
43611
43670
|
CheckinEventPass,
|
|
43612
43671
|
CloneEvent,
|
|
43613
43672
|
CloneEventSession,
|
|
@@ -45548,6 +45607,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
45548
45607
|
ToggleTaxIntegration,
|
|
45549
45608
|
TransferEventPass,
|
|
45550
45609
|
TransformPrice,
|
|
45610
|
+
UndoCheckInBooking,
|
|
45551
45611
|
UndoCheckinEventPass,
|
|
45552
45612
|
UpdateAccount,
|
|
45553
45613
|
UpdateAccountAddress,
|
|
@@ -45833,6 +45893,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
45833
45893
|
useCancelChannelContentPublishSchedule,
|
|
45834
45894
|
useCancelEventPass,
|
|
45835
45895
|
useCancelGroupInvitation,
|
|
45896
|
+
useCheckInBooking,
|
|
45836
45897
|
useCheckinEventPass,
|
|
45837
45898
|
useCloneEvent,
|
|
45838
45899
|
useCloneEventSession,
|
|
@@ -46771,6 +46832,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
46771
46832
|
useToggleOrganizationPaymentIntegration,
|
|
46772
46833
|
useToggleTaxIntegration,
|
|
46773
46834
|
useTransferEventPass,
|
|
46835
|
+
useUndoCheckInBooking,
|
|
46774
46836
|
useUndoCheckinEventPass,
|
|
46775
46837
|
useUpdateAccount,
|
|
46776
46838
|
useUpdateAccountAddress,
|