@connectedxm/admin 6.14.6 → 6.15.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.cjs +31 -0
- package/dist/index.d.cts +21 -1
- package/dist/index.d.ts +21 -1
- package/dist/index.js +29 -0
- package/openapi.json +71 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22694,6 +22694,33 @@ var useUpdateBookingSpace = (options = {}) => {
|
|
|
22694
22694
|
return useConnectedMutation(UpdateBookingSpace, options);
|
|
22695
22695
|
};
|
|
22696
22696
|
|
|
22697
|
+
// src/mutations/bookings/useCancelBooking.ts
|
|
22698
|
+
var CancelBooking = async ({
|
|
22699
|
+
placeId,
|
|
22700
|
+
spaceId,
|
|
22701
|
+
bookingId,
|
|
22702
|
+
adminApiParams,
|
|
22703
|
+
queryClient
|
|
22704
|
+
}) => {
|
|
22705
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
22706
|
+
const { data } = await connectedXM.put(
|
|
22707
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/bookings/${bookingId}/cancel`
|
|
22708
|
+
);
|
|
22709
|
+
if (queryClient && data.status === "ok") {
|
|
22710
|
+
queryClient.invalidateQueries({
|
|
22711
|
+
queryKey: BOOKING_PLACE_BOOKINGS_QUERY_KEY(placeId)
|
|
22712
|
+
});
|
|
22713
|
+
queryClient.invalidateQueries({
|
|
22714
|
+
queryKey: BOOKING_SPACE_BOOKINGS_QUERY_KEY(placeId, spaceId)
|
|
22715
|
+
});
|
|
22716
|
+
SET_BOOKING_QUERY_DATA(queryClient, [bookingId], data);
|
|
22717
|
+
}
|
|
22718
|
+
return data;
|
|
22719
|
+
};
|
|
22720
|
+
var useCancelBooking = (options = {}) => {
|
|
22721
|
+
return useConnectedMutation(CancelBooking, options);
|
|
22722
|
+
};
|
|
22723
|
+
|
|
22697
22724
|
// src/mutations/bookings/useCreateBooking.ts
|
|
22698
22725
|
var CreateBooking = async ({
|
|
22699
22726
|
placeId,
|
|
@@ -38166,6 +38193,7 @@ export {
|
|
|
38166
38193
|
CalculateDuration,
|
|
38167
38194
|
CancelActivitySchedule,
|
|
38168
38195
|
CancelAnnouncementSchedule,
|
|
38196
|
+
CancelBooking,
|
|
38169
38197
|
CancelChannelContentPublishSchedule,
|
|
38170
38198
|
CancelEventPass,
|
|
38171
38199
|
CancelGroupInvitation,
|
|
@@ -40321,6 +40349,7 @@ export {
|
|
|
40321
40349
|
useBulkUploadSearchListValues,
|
|
40322
40350
|
useCancelActivitySchedule,
|
|
40323
40351
|
useCancelAnnouncementSchedule,
|
|
40352
|
+
useCancelBooking,
|
|
40324
40353
|
useCancelChannelContentPublishSchedule,
|
|
40325
40354
|
useCancelEventPass,
|
|
40326
40355
|
useCancelGroupInvitation,
|
package/openapi.json
CHANGED
|
@@ -8478,6 +8478,77 @@
|
|
|
8478
8478
|
]
|
|
8479
8479
|
}
|
|
8480
8480
|
},
|
|
8481
|
+
"/bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/cancel": {
|
|
8482
|
+
"put": {
|
|
8483
|
+
"operationId": "CancelBooking",
|
|
8484
|
+
"summary": "Cancel Booking",
|
|
8485
|
+
"description": "Cancel Booking endpoint",
|
|
8486
|
+
"parameters": [
|
|
8487
|
+
{
|
|
8488
|
+
"in": "path",
|
|
8489
|
+
"name": "placeId",
|
|
8490
|
+
"schema": {
|
|
8491
|
+
"type": "string"
|
|
8492
|
+
},
|
|
8493
|
+
"description": "The place identifier",
|
|
8494
|
+
"required": true
|
|
8495
|
+
},
|
|
8496
|
+
{
|
|
8497
|
+
"in": "path",
|
|
8498
|
+
"name": "spaceId",
|
|
8499
|
+
"schema": {
|
|
8500
|
+
"type": "string"
|
|
8501
|
+
},
|
|
8502
|
+
"description": "The space identifier",
|
|
8503
|
+
"required": true
|
|
8504
|
+
},
|
|
8505
|
+
{
|
|
8506
|
+
"in": "path",
|
|
8507
|
+
"name": "bookingId",
|
|
8508
|
+
"schema": {
|
|
8509
|
+
"type": "string"
|
|
8510
|
+
},
|
|
8511
|
+
"description": "The booking identifier",
|
|
8512
|
+
"required": true
|
|
8513
|
+
}
|
|
8514
|
+
],
|
|
8515
|
+
"responses": {
|
|
8516
|
+
"200": {
|
|
8517
|
+
"description": "Successful response",
|
|
8518
|
+
"content": {
|
|
8519
|
+
"application/json": {
|
|
8520
|
+
"schema": {
|
|
8521
|
+
"type": "object",
|
|
8522
|
+
"properties": {
|
|
8523
|
+
"status": {
|
|
8524
|
+
"type": "string",
|
|
8525
|
+
"enum": [
|
|
8526
|
+
"ok"
|
|
8527
|
+
]
|
|
8528
|
+
},
|
|
8529
|
+
"message": {
|
|
8530
|
+
"type": "string",
|
|
8531
|
+
"example": "Success message."
|
|
8532
|
+
},
|
|
8533
|
+
"data": {
|
|
8534
|
+
"$ref": "#/components/schemas/Booking"
|
|
8535
|
+
}
|
|
8536
|
+
},
|
|
8537
|
+
"required": [
|
|
8538
|
+
"status",
|
|
8539
|
+
"message",
|
|
8540
|
+
"data"
|
|
8541
|
+
]
|
|
8542
|
+
}
|
|
8543
|
+
}
|
|
8544
|
+
}
|
|
8545
|
+
}
|
|
8546
|
+
},
|
|
8547
|
+
"tags": [
|
|
8548
|
+
"Bookings"
|
|
8549
|
+
]
|
|
8550
|
+
}
|
|
8551
|
+
},
|
|
8481
8552
|
"/bookings/places/{placeId}/spaces/{spaceId}/payments": {
|
|
8482
8553
|
"get": {
|
|
8483
8554
|
"operationId": "GetBookingSpacePayments",
|