@connectedxm/admin 6.14.6 → 6.16.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.js CHANGED
@@ -707,6 +707,7 @@ var SideEffectTriggerType = /* @__PURE__ */ ((SideEffectTriggerType2) => {
707
707
  SideEffectTriggerType2["CHECKED_IN_EVENT_PASS"] = "CHECKED_IN_EVENT_PASS";
708
708
  SideEffectTriggerType2["NEW_ACCOUNT_TIER"] = "NEW_ACCOUNT_TIER";
709
709
  SideEffectTriggerType2["REMOVED_ACCOUNT_TIER"] = "REMOVED_ACCOUNT_TIER";
710
+ SideEffectTriggerType2["PASS_WITH_QUESTION_CHOICE"] = "PASS_WITH_QUESTION_CHOICE";
710
711
  return SideEffectTriggerType2;
711
712
  })(SideEffectTriggerType || {});
712
713
  var SideEffectActionType = /* @__PURE__ */ ((SideEffectActionType2) => {
@@ -22694,6 +22695,33 @@ var useUpdateBookingSpace = (options = {}) => {
22694
22695
  return useConnectedMutation(UpdateBookingSpace, options);
22695
22696
  };
22696
22697
 
22698
+ // src/mutations/bookings/useCancelBooking.ts
22699
+ var CancelBooking = async ({
22700
+ placeId,
22701
+ spaceId,
22702
+ bookingId,
22703
+ adminApiParams,
22704
+ queryClient
22705
+ }) => {
22706
+ const connectedXM = await GetAdminAPI(adminApiParams);
22707
+ const { data } = await connectedXM.put(
22708
+ `/bookings/places/${placeId}/spaces/${spaceId}/bookings/${bookingId}/cancel`
22709
+ );
22710
+ if (queryClient && data.status === "ok") {
22711
+ queryClient.invalidateQueries({
22712
+ queryKey: BOOKING_PLACE_BOOKINGS_QUERY_KEY(placeId)
22713
+ });
22714
+ queryClient.invalidateQueries({
22715
+ queryKey: BOOKING_SPACE_BOOKINGS_QUERY_KEY(placeId, spaceId)
22716
+ });
22717
+ SET_BOOKING_QUERY_DATA(queryClient, [bookingId], data);
22718
+ }
22719
+ return data;
22720
+ };
22721
+ var useCancelBooking = (options = {}) => {
22722
+ return useConnectedMutation(CancelBooking, options);
22723
+ };
22724
+
22697
22725
  // src/mutations/bookings/useCreateBooking.ts
22698
22726
  var CreateBooking = async ({
22699
22727
  placeId,
@@ -38166,6 +38194,7 @@ export {
38166
38194
  CalculateDuration,
38167
38195
  CancelActivitySchedule,
38168
38196
  CancelAnnouncementSchedule,
38197
+ CancelBooking,
38169
38198
  CancelChannelContentPublishSchedule,
38170
38199
  CancelEventPass,
38171
38200
  CancelGroupInvitation,
@@ -40321,6 +40350,7 @@ export {
40321
40350
  useBulkUploadSearchListValues,
40322
40351
  useCancelActivitySchedule,
40323
40352
  useCancelAnnouncementSchedule,
40353
+ useCancelBooking,
40324
40354
  useCancelChannelContentPublishSchedule,
40325
40355
  useCancelEventPass,
40326
40356
  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",
@@ -92452,7 +92523,8 @@
92452
92523
  "NEW_PASS_OF_PASS_TYPE",
92453
92524
  "CHECKED_IN_EVENT_PASS",
92454
92525
  "NEW_ACCOUNT_TIER",
92455
- "REMOVED_ACCOUNT_TIER"
92526
+ "REMOVED_ACCOUNT_TIER",
92527
+ "PASS_WITH_QUESTION_CHOICE"
92456
92528
  ]
92457
92529
  },
92458
92530
  "SideEffectActionType": {
@@ -92488,6 +92560,10 @@
92488
92560
  "type": "string",
92489
92561
  "nullable": true
92490
92562
  },
92563
+ "passWithQuestionChoiceId": {
92564
+ "type": "string",
92565
+ "nullable": true
92566
+ },
92491
92567
  "joinGroupId": {
92492
92568
  "type": "string",
92493
92569
  "nullable": true
@@ -92519,6 +92595,7 @@
92519
92595
  "checkedInPassEventId",
92520
92596
  "newAccountTierId",
92521
92597
  "removedAccountTierId",
92598
+ "passWithQuestionChoiceId",
92522
92599
  "joinGroupId",
92523
92600
  "leaveGroupId",
92524
92601
  "addToTierId",
@@ -92573,6 +92650,14 @@
92573
92650
  ],
92574
92651
  "nullable": true
92575
92652
  },
92653
+ "passWithQuestionChoice": {
92654
+ "allOf": [
92655
+ {
92656
+ "$ref": "#/components/schemas/BaseRegistrationQuestionChoice"
92657
+ }
92658
+ ],
92659
+ "nullable": true
92660
+ },
92576
92661
  "joinGroup": {
92577
92662
  "allOf": [
92578
92663
  {
@@ -92635,6 +92720,7 @@
92635
92720
  "checkedInPassEvent",
92636
92721
  "newAccountTier",
92637
92722
  "removedAccountTier",
92723
+ "passWithQuestionChoice",
92638
92724
  "joinGroup",
92639
92725
  "leaveGroup",
92640
92726
  "addToTier",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "6.14.6",
3
+ "version": "6.16.0",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",