@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.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",
@@ -108853,6 +108995,10 @@
108853
108995
  "duration": {
108854
108996
  "type": "number"
108855
108997
  },
108998
+ "checkedIn": {
108999
+ "type": "string",
109000
+ "nullable": true
109001
+ },
108856
109002
  "status": {
108857
109003
  "$ref": "#/components/schemas/PurchaseStatus"
108858
109004
  },
@@ -108870,6 +109016,7 @@
108870
109016
  "day",
108871
109017
  "time",
108872
109018
  "duration",
109019
+ "checkedIn",
108873
109020
  "status",
108874
109021
  "account",
108875
109022
  "space"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "7.2.1",
3
+ "version": "7.2.2",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",