@connectedxm/admin 6.14.5 → 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 +31 -1
- package/dist/index.d.ts +31 -1
- package/dist/index.js +29 -0
- package/openapi.json +115 -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",
|
|
@@ -90198,6 +90269,14 @@
|
|
|
90198
90269
|
"type": "string",
|
|
90199
90270
|
"nullable": true
|
|
90200
90271
|
},
|
|
90272
|
+
"cancellationBody": {
|
|
90273
|
+
"type": "string",
|
|
90274
|
+
"nullable": true
|
|
90275
|
+
},
|
|
90276
|
+
"cancellationReplyTo": {
|
|
90277
|
+
"type": "string",
|
|
90278
|
+
"nullable": true
|
|
90279
|
+
},
|
|
90201
90280
|
"createdAt": {
|
|
90202
90281
|
"type": "string"
|
|
90203
90282
|
},
|
|
@@ -90208,6 +90287,8 @@
|
|
|
90208
90287
|
"required": [
|
|
90209
90288
|
"confirmationBody",
|
|
90210
90289
|
"confirmationReplyTo",
|
|
90290
|
+
"cancellationBody",
|
|
90291
|
+
"cancellationReplyTo",
|
|
90211
90292
|
"createdAt",
|
|
90212
90293
|
"updatedAt"
|
|
90213
90294
|
]
|
|
@@ -90264,6 +90345,14 @@
|
|
|
90264
90345
|
"type": "string",
|
|
90265
90346
|
"nullable": true
|
|
90266
90347
|
},
|
|
90348
|
+
"confirmationBody": {
|
|
90349
|
+
"type": "string",
|
|
90350
|
+
"nullable": true
|
|
90351
|
+
},
|
|
90352
|
+
"cancellationBody": {
|
|
90353
|
+
"type": "string",
|
|
90354
|
+
"nullable": true
|
|
90355
|
+
},
|
|
90267
90356
|
"createdAt": {
|
|
90268
90357
|
"type": "string"
|
|
90269
90358
|
},
|
|
@@ -90276,6 +90365,8 @@
|
|
|
90276
90365
|
"locale",
|
|
90277
90366
|
"name",
|
|
90278
90367
|
"description",
|
|
90368
|
+
"confirmationBody",
|
|
90369
|
+
"cancellationBody",
|
|
90279
90370
|
"createdAt",
|
|
90280
90371
|
"updatedAt"
|
|
90281
90372
|
]
|
|
@@ -101836,6 +101927,14 @@
|
|
|
101836
101927
|
"type": "string",
|
|
101837
101928
|
"nullable": true
|
|
101838
101929
|
},
|
|
101930
|
+
"cancellationBody": {
|
|
101931
|
+
"type": "string",
|
|
101932
|
+
"nullable": true
|
|
101933
|
+
},
|
|
101934
|
+
"cancellationReplyTo": {
|
|
101935
|
+
"type": "string",
|
|
101936
|
+
"nullable": true
|
|
101937
|
+
},
|
|
101839
101938
|
"taxCode": {
|
|
101840
101939
|
"type": "string",
|
|
101841
101940
|
"nullable": true
|
|
@@ -101917,6 +102016,14 @@
|
|
|
101917
102016
|
"type": "string",
|
|
101918
102017
|
"nullable": true
|
|
101919
102018
|
},
|
|
102019
|
+
"cancellationBody": {
|
|
102020
|
+
"type": "string",
|
|
102021
|
+
"nullable": true
|
|
102022
|
+
},
|
|
102023
|
+
"cancellationReplyTo": {
|
|
102024
|
+
"type": "string",
|
|
102025
|
+
"nullable": true
|
|
102026
|
+
},
|
|
101920
102027
|
"taxCode": {
|
|
101921
102028
|
"type": "string",
|
|
101922
102029
|
"nullable": true
|
|
@@ -101939,6 +102046,14 @@
|
|
|
101939
102046
|
"description": {
|
|
101940
102047
|
"type": "string",
|
|
101941
102048
|
"nullable": true
|
|
102049
|
+
},
|
|
102050
|
+
"confirmationBody": {
|
|
102051
|
+
"type": "string",
|
|
102052
|
+
"nullable": true
|
|
102053
|
+
},
|
|
102054
|
+
"cancellationBody": {
|
|
102055
|
+
"type": "string",
|
|
102056
|
+
"nullable": true
|
|
101942
102057
|
}
|
|
101943
102058
|
}
|
|
101944
102059
|
},
|