@connectedxm/admin 7.2.0 → 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 +54 -1
- package/dist/index.d.ts +54 -1
- package/dist/index.js +58 -0
- package/openapi.json +196 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23957,6 +23957,33 @@ var useCancelBooking = (options = {}) => {
|
|
|
23957
23957
|
return useConnectedMutation(CancelBooking, options);
|
|
23958
23958
|
};
|
|
23959
23959
|
|
|
23960
|
+
// src/mutations/bookings/useCheckInBooking.ts
|
|
23961
|
+
var CheckInBooking = async ({
|
|
23962
|
+
placeId,
|
|
23963
|
+
spaceId,
|
|
23964
|
+
bookingId,
|
|
23965
|
+
adminApiParams,
|
|
23966
|
+
queryClient
|
|
23967
|
+
}) => {
|
|
23968
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
23969
|
+
const { data } = await connectedXM.post(
|
|
23970
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/bookings/${bookingId}/checkin`
|
|
23971
|
+
);
|
|
23972
|
+
if (queryClient && data.status === "ok") {
|
|
23973
|
+
queryClient.invalidateQueries({
|
|
23974
|
+
queryKey: BOOKING_PLACE_BOOKINGS_QUERY_KEY(placeId)
|
|
23975
|
+
});
|
|
23976
|
+
queryClient.invalidateQueries({
|
|
23977
|
+
queryKey: BOOKING_SPACE_BOOKINGS_QUERY_KEY(placeId, spaceId)
|
|
23978
|
+
});
|
|
23979
|
+
SET_BOOKING_QUERY_DATA(queryClient, [bookingId], data);
|
|
23980
|
+
}
|
|
23981
|
+
return data;
|
|
23982
|
+
};
|
|
23983
|
+
var useCheckInBooking = (options = {}) => {
|
|
23984
|
+
return useConnectedMutation(CheckInBooking, options);
|
|
23985
|
+
};
|
|
23986
|
+
|
|
23960
23987
|
// src/mutations/bookings/useCreateBooking.ts
|
|
23961
23988
|
var CreateBooking = async ({
|
|
23962
23989
|
placeId,
|
|
@@ -24039,6 +24066,33 @@ var useRemoveBookingSpaceTier = (options = {}) => {
|
|
|
24039
24066
|
return useConnectedMutation(RemoveBookingSpaceTier, options);
|
|
24040
24067
|
};
|
|
24041
24068
|
|
|
24069
|
+
// src/mutations/bookings/useUndoCheckInBooking.ts
|
|
24070
|
+
var UndoCheckInBooking = async ({
|
|
24071
|
+
placeId,
|
|
24072
|
+
spaceId,
|
|
24073
|
+
bookingId,
|
|
24074
|
+
adminApiParams,
|
|
24075
|
+
queryClient
|
|
24076
|
+
}) => {
|
|
24077
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
24078
|
+
const { data } = await connectedXM.post(
|
|
24079
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/bookings/${bookingId}/checkin/undo`
|
|
24080
|
+
);
|
|
24081
|
+
if (queryClient && data.status === "ok") {
|
|
24082
|
+
queryClient.invalidateQueries({
|
|
24083
|
+
queryKey: BOOKING_PLACE_BOOKINGS_QUERY_KEY(placeId)
|
|
24084
|
+
});
|
|
24085
|
+
queryClient.invalidateQueries({
|
|
24086
|
+
queryKey: BOOKING_SPACE_BOOKINGS_QUERY_KEY(placeId, spaceId)
|
|
24087
|
+
});
|
|
24088
|
+
SET_BOOKING_QUERY_DATA(queryClient, [bookingId], data);
|
|
24089
|
+
}
|
|
24090
|
+
return data;
|
|
24091
|
+
};
|
|
24092
|
+
var useUndoCheckInBooking = (options = {}) => {
|
|
24093
|
+
return useConnectedMutation(UndoCheckInBooking, options);
|
|
24094
|
+
};
|
|
24095
|
+
|
|
24042
24096
|
// src/mutations/bookings/useUpdateBooking.ts
|
|
24043
24097
|
var UpdateBooking = async ({
|
|
24044
24098
|
placeId,
|
|
@@ -40031,6 +40085,7 @@ export {
|
|
|
40031
40085
|
CancelEventPass,
|
|
40032
40086
|
CancelGroupInvitation,
|
|
40033
40087
|
ChannelFormat,
|
|
40088
|
+
CheckInBooking,
|
|
40034
40089
|
CheckinEventPass,
|
|
40035
40090
|
CloneEvent,
|
|
40036
40091
|
CloneEventSession,
|
|
@@ -41971,6 +42026,7 @@ export {
|
|
|
41971
42026
|
ToggleTaxIntegration,
|
|
41972
42027
|
TransferEventPass,
|
|
41973
42028
|
TransformPrice,
|
|
42029
|
+
UndoCheckInBooking,
|
|
41974
42030
|
UndoCheckinEventPass,
|
|
41975
42031
|
UpdateAccount,
|
|
41976
42032
|
UpdateAccountAddress,
|
|
@@ -42256,6 +42312,7 @@ export {
|
|
|
42256
42312
|
useCancelChannelContentPublishSchedule,
|
|
42257
42313
|
useCancelEventPass,
|
|
42258
42314
|
useCancelGroupInvitation,
|
|
42315
|
+
useCheckInBooking,
|
|
42259
42316
|
useCheckinEventPass,
|
|
42260
42317
|
useCloneEvent,
|
|
42261
42318
|
useCloneEventSession,
|
|
@@ -43194,6 +43251,7 @@ export {
|
|
|
43194
43251
|
useToggleOrganizationPaymentIntegration,
|
|
43195
43252
|
useToggleTaxIntegration,
|
|
43196
43253
|
useTransferEventPass,
|
|
43254
|
+
useUndoCheckInBooking,
|
|
43197
43255
|
useUndoCheckinEventPass,
|
|
43198
43256
|
useUpdateAccount,
|
|
43199
43257
|
useUpdateAccountAddress,
|
package/openapi.json
CHANGED
|
@@ -9420,6 +9420,148 @@
|
|
|
9420
9420
|
]
|
|
9421
9421
|
}
|
|
9422
9422
|
},
|
|
9423
|
+
"/bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/checkin": {
|
|
9424
|
+
"post": {
|
|
9425
|
+
"operationId": "CheckInBooking",
|
|
9426
|
+
"summary": "Check In Booking",
|
|
9427
|
+
"description": "Check In Booking endpoint",
|
|
9428
|
+
"parameters": [
|
|
9429
|
+
{
|
|
9430
|
+
"in": "path",
|
|
9431
|
+
"name": "placeId",
|
|
9432
|
+
"schema": {
|
|
9433
|
+
"type": "string"
|
|
9434
|
+
},
|
|
9435
|
+
"description": "The place identifier",
|
|
9436
|
+
"required": true
|
|
9437
|
+
},
|
|
9438
|
+
{
|
|
9439
|
+
"in": "path",
|
|
9440
|
+
"name": "spaceId",
|
|
9441
|
+
"schema": {
|
|
9442
|
+
"type": "string"
|
|
9443
|
+
},
|
|
9444
|
+
"description": "The space identifier",
|
|
9445
|
+
"required": true
|
|
9446
|
+
},
|
|
9447
|
+
{
|
|
9448
|
+
"in": "path",
|
|
9449
|
+
"name": "bookingId",
|
|
9450
|
+
"schema": {
|
|
9451
|
+
"type": "string"
|
|
9452
|
+
},
|
|
9453
|
+
"description": "The booking identifier",
|
|
9454
|
+
"required": true
|
|
9455
|
+
}
|
|
9456
|
+
],
|
|
9457
|
+
"responses": {
|
|
9458
|
+
"200": {
|
|
9459
|
+
"description": "Successful response",
|
|
9460
|
+
"content": {
|
|
9461
|
+
"application/json": {
|
|
9462
|
+
"schema": {
|
|
9463
|
+
"type": "object",
|
|
9464
|
+
"properties": {
|
|
9465
|
+
"status": {
|
|
9466
|
+
"type": "string",
|
|
9467
|
+
"enum": [
|
|
9468
|
+
"ok"
|
|
9469
|
+
]
|
|
9470
|
+
},
|
|
9471
|
+
"message": {
|
|
9472
|
+
"type": "string",
|
|
9473
|
+
"example": "Success message."
|
|
9474
|
+
},
|
|
9475
|
+
"data": {
|
|
9476
|
+
"$ref": "#/components/schemas/Booking"
|
|
9477
|
+
}
|
|
9478
|
+
},
|
|
9479
|
+
"required": [
|
|
9480
|
+
"status",
|
|
9481
|
+
"message",
|
|
9482
|
+
"data"
|
|
9483
|
+
]
|
|
9484
|
+
}
|
|
9485
|
+
}
|
|
9486
|
+
}
|
|
9487
|
+
}
|
|
9488
|
+
},
|
|
9489
|
+
"tags": [
|
|
9490
|
+
"Bookings"
|
|
9491
|
+
]
|
|
9492
|
+
}
|
|
9493
|
+
},
|
|
9494
|
+
"/bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/checkin/undo": {
|
|
9495
|
+
"post": {
|
|
9496
|
+
"operationId": "UndoCheckInBooking",
|
|
9497
|
+
"summary": "Undo Check In Booking",
|
|
9498
|
+
"description": "Undo Check In Booking endpoint",
|
|
9499
|
+
"parameters": [
|
|
9500
|
+
{
|
|
9501
|
+
"in": "path",
|
|
9502
|
+
"name": "placeId",
|
|
9503
|
+
"schema": {
|
|
9504
|
+
"type": "string"
|
|
9505
|
+
},
|
|
9506
|
+
"description": "The place identifier",
|
|
9507
|
+
"required": true
|
|
9508
|
+
},
|
|
9509
|
+
{
|
|
9510
|
+
"in": "path",
|
|
9511
|
+
"name": "spaceId",
|
|
9512
|
+
"schema": {
|
|
9513
|
+
"type": "string"
|
|
9514
|
+
},
|
|
9515
|
+
"description": "The space identifier",
|
|
9516
|
+
"required": true
|
|
9517
|
+
},
|
|
9518
|
+
{
|
|
9519
|
+
"in": "path",
|
|
9520
|
+
"name": "bookingId",
|
|
9521
|
+
"schema": {
|
|
9522
|
+
"type": "string"
|
|
9523
|
+
},
|
|
9524
|
+
"description": "The booking identifier",
|
|
9525
|
+
"required": true
|
|
9526
|
+
}
|
|
9527
|
+
],
|
|
9528
|
+
"responses": {
|
|
9529
|
+
"200": {
|
|
9530
|
+
"description": "Successful response",
|
|
9531
|
+
"content": {
|
|
9532
|
+
"application/json": {
|
|
9533
|
+
"schema": {
|
|
9534
|
+
"type": "object",
|
|
9535
|
+
"properties": {
|
|
9536
|
+
"status": {
|
|
9537
|
+
"type": "string",
|
|
9538
|
+
"enum": [
|
|
9539
|
+
"ok"
|
|
9540
|
+
]
|
|
9541
|
+
},
|
|
9542
|
+
"message": {
|
|
9543
|
+
"type": "string",
|
|
9544
|
+
"example": "Success message."
|
|
9545
|
+
},
|
|
9546
|
+
"data": {
|
|
9547
|
+
"$ref": "#/components/schemas/Booking"
|
|
9548
|
+
}
|
|
9549
|
+
},
|
|
9550
|
+
"required": [
|
|
9551
|
+
"status",
|
|
9552
|
+
"message",
|
|
9553
|
+
"data"
|
|
9554
|
+
]
|
|
9555
|
+
}
|
|
9556
|
+
}
|
|
9557
|
+
}
|
|
9558
|
+
}
|
|
9559
|
+
},
|
|
9560
|
+
"tags": [
|
|
9561
|
+
"Bookings"
|
|
9562
|
+
]
|
|
9563
|
+
}
|
|
9564
|
+
},
|
|
9423
9565
|
"/bookings/places/{placeId}/spaces/{spaceId}/payments": {
|
|
9424
9566
|
"get": {
|
|
9425
9567
|
"operationId": "GetBookingSpacePayments",
|
|
@@ -98379,6 +98521,9 @@
|
|
|
98379
98521
|
"eventReminderEmail": {
|
|
98380
98522
|
"type": "boolean"
|
|
98381
98523
|
},
|
|
98524
|
+
"bookingReminderEmail": {
|
|
98525
|
+
"type": "boolean"
|
|
98526
|
+
},
|
|
98382
98527
|
"chatPush": {
|
|
98383
98528
|
"type": "boolean"
|
|
98384
98529
|
},
|
|
@@ -98417,6 +98562,7 @@
|
|
|
98417
98562
|
"transferPush",
|
|
98418
98563
|
"transferEmail",
|
|
98419
98564
|
"eventReminderEmail",
|
|
98565
|
+
"bookingReminderEmail",
|
|
98420
98566
|
"chatPush",
|
|
98421
98567
|
"chatUnreadEmail",
|
|
98422
98568
|
"chatUnreadPush",
|
|
@@ -108247,6 +108393,17 @@
|
|
|
108247
108393
|
"type": "string",
|
|
108248
108394
|
"nullable": true
|
|
108249
108395
|
},
|
|
108396
|
+
"reminderBody": {
|
|
108397
|
+
"type": "string",
|
|
108398
|
+
"nullable": true
|
|
108399
|
+
},
|
|
108400
|
+
"reminderReplyTo": {
|
|
108401
|
+
"type": "string",
|
|
108402
|
+
"nullable": true
|
|
108403
|
+
},
|
|
108404
|
+
"reminderEnabled": {
|
|
108405
|
+
"type": "boolean"
|
|
108406
|
+
},
|
|
108250
108407
|
"meetingId": {
|
|
108251
108408
|
"type": "string",
|
|
108252
108409
|
"nullable": true
|
|
@@ -108281,6 +108438,9 @@
|
|
|
108281
108438
|
"confirmationReplyTo",
|
|
108282
108439
|
"cancellationBody",
|
|
108283
108440
|
"cancellationReplyTo",
|
|
108441
|
+
"reminderBody",
|
|
108442
|
+
"reminderReplyTo",
|
|
108443
|
+
"reminderEnabled",
|
|
108284
108444
|
"meetingId",
|
|
108285
108445
|
"meeting",
|
|
108286
108446
|
"joinBeforeTime",
|
|
@@ -108349,6 +108509,10 @@
|
|
|
108349
108509
|
"type": "string",
|
|
108350
108510
|
"nullable": true
|
|
108351
108511
|
},
|
|
108512
|
+
"reminderBody": {
|
|
108513
|
+
"type": "string",
|
|
108514
|
+
"nullable": true
|
|
108515
|
+
},
|
|
108352
108516
|
"createdAt": {
|
|
108353
108517
|
"type": "string"
|
|
108354
108518
|
},
|
|
@@ -108363,6 +108527,7 @@
|
|
|
108363
108527
|
"description",
|
|
108364
108528
|
"confirmationBody",
|
|
108365
108529
|
"cancellationBody",
|
|
108530
|
+
"reminderBody",
|
|
108366
108531
|
"createdAt",
|
|
108367
108532
|
"updatedAt"
|
|
108368
108533
|
]
|
|
@@ -108830,6 +108995,10 @@
|
|
|
108830
108995
|
"duration": {
|
|
108831
108996
|
"type": "number"
|
|
108832
108997
|
},
|
|
108998
|
+
"checkedIn": {
|
|
108999
|
+
"type": "string",
|
|
109000
|
+
"nullable": true
|
|
109001
|
+
},
|
|
108833
109002
|
"status": {
|
|
108834
109003
|
"$ref": "#/components/schemas/PurchaseStatus"
|
|
108835
109004
|
},
|
|
@@ -108847,6 +109016,7 @@
|
|
|
108847
109016
|
"day",
|
|
108848
109017
|
"time",
|
|
108849
109018
|
"duration",
|
|
109019
|
+
"checkedIn",
|
|
108850
109020
|
"status",
|
|
108851
109021
|
"account",
|
|
108852
109022
|
"space"
|
|
@@ -120501,6 +120671,17 @@
|
|
|
120501
120671
|
"type": "string",
|
|
120502
120672
|
"nullable": true
|
|
120503
120673
|
},
|
|
120674
|
+
"reminderBody": {
|
|
120675
|
+
"type": "string",
|
|
120676
|
+
"nullable": true
|
|
120677
|
+
},
|
|
120678
|
+
"reminderReplyTo": {
|
|
120679
|
+
"type": "string",
|
|
120680
|
+
"nullable": true
|
|
120681
|
+
},
|
|
120682
|
+
"reminderEnabled": {
|
|
120683
|
+
"type": "boolean"
|
|
120684
|
+
},
|
|
120504
120685
|
"taxCode": {
|
|
120505
120686
|
"type": "string",
|
|
120506
120687
|
"nullable": true
|
|
@@ -120598,6 +120779,17 @@
|
|
|
120598
120779
|
"type": "string",
|
|
120599
120780
|
"nullable": true
|
|
120600
120781
|
},
|
|
120782
|
+
"reminderBody": {
|
|
120783
|
+
"type": "string",
|
|
120784
|
+
"nullable": true
|
|
120785
|
+
},
|
|
120786
|
+
"reminderReplyTo": {
|
|
120787
|
+
"type": "string",
|
|
120788
|
+
"nullable": true
|
|
120789
|
+
},
|
|
120790
|
+
"reminderEnabled": {
|
|
120791
|
+
"type": "boolean"
|
|
120792
|
+
},
|
|
120601
120793
|
"taxCode": {
|
|
120602
120794
|
"type": "string",
|
|
120603
120795
|
"nullable": true
|
|
@@ -120636,6 +120828,10 @@
|
|
|
120636
120828
|
"cancellationBody": {
|
|
120637
120829
|
"type": "string",
|
|
120638
120830
|
"nullable": true
|
|
120831
|
+
},
|
|
120832
|
+
"reminderBody": {
|
|
120833
|
+
"type": "string",
|
|
120834
|
+
"nullable": true
|
|
120639
120835
|
}
|
|
120640
120836
|
}
|
|
120641
120837
|
},
|