@odynn/awayz-core 0.6.44 → 0.6.45

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.
@@ -12,7 +12,7 @@ import "../../_styles.flight-booking-BhlwjkAV.js";
12
12
  import "../../context/AwayzContext.js";
13
13
  import { EBookingType as o } from "../../services/trips/TripService.types.js";
14
14
  import { BookingService as e } from "../../services/bookings/BookingService.js";
15
- const $ = (n, t) => {
15
+ const Z = (n, t) => {
16
16
  const {
17
17
  data: i,
18
18
  isError: E,
@@ -33,8 +33,8 @@ const $ = (n, t) => {
33
33
  mutate: g,
34
34
  isPending: B,
35
35
  isError: F,
36
- error: O,
37
- isSuccess: H
36
+ error: H,
37
+ isSuccess: O
38
38
  } = u({
39
39
  mutationFn: async () => {
40
40
  if (i != null && i.pointsAsCash)
@@ -57,7 +57,7 @@ const $ = (n, t) => {
57
57
  if (t === o.FLIGHT)
58
58
  return r != null && r.pointsAsCash && await e.cancelPointsBooking({
59
59
  confirmationCode: r.pointsAsCash.confirmationCode,
60
- orderId: r.flightOfferId,
60
+ orderId: r.orderId,
61
61
  provider: r.pointsAsCash.provider,
62
62
  type: o.FLIGHT,
63
63
  pointsAmount: r.pointsAsCash.points,
@@ -66,7 +66,7 @@ const $ = (n, t) => {
66
66
  if (t === o.HOTEL)
67
67
  return i != null && i.pointsAsCash && await e.cancelPointsBooking({
68
68
  confirmationCode: i.pointsAsCash.confirmationCode,
69
- orderId: i.rateId,
69
+ orderId: i.bookingId,
70
70
  provider: i.pointsAsCash.provider,
71
71
  type: o.HOTEL,
72
72
  pointsAmount: i.pointsAsCash.points,
@@ -114,8 +114,8 @@ const $ = (n, t) => {
114
114
  initiateCancellation: g,
115
115
  isInitiatingCancellation: B,
116
116
  isInitiateCancellationError: F,
117
- initiateCancellationError: O,
118
- isInitiateCancellationSuccess: H,
117
+ initiateCancellationError: H,
118
+ isInitiateCancellationSuccess: O,
119
119
  cancelBooking: I,
120
120
  isCancellingBooking: C,
121
121
  isCancelingBooking: C,
@@ -129,5 +129,5 @@ const $ = (n, t) => {
129
129
  };
130
130
  };
131
131
  export {
132
- $ as useBookingManagement
132
+ Z as useBookingManagement
133
133
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odynn/awayz-core",
3
- "version": "0.6.44",
3
+ "version": "0.6.45",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"