@odynn/awayz-core 0.10.29 → 0.10.30

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.
@@ -105,7 +105,7 @@ export interface IUseBookingManagement {
105
105
  /**
106
106
  * Points as cash details for the booking, if available
107
107
  */
108
- pointsAsCashDetails: IPointsAsCash | undefined;
108
+ pointsAsCashDetails: IPointsAsCash | undefined | null;
109
109
  /**
110
110
  * Indicates if the points as cash details are being loaded
111
111
  */
@@ -17,7 +17,7 @@ declare class _BookingService {
17
17
  cancelHotelBooking: (bookingId: string) => Promise<any>;
18
18
  actionAirlineChanges: ({ bookingId, acceptChanges, aicId }: IActionAirlineChangesRequest) => Promise<any>;
19
19
  cancelPointsBooking: (bookingId: string) => Promise<any>;
20
- getPointsAsCash: (bookingId: string) => Promise<IPointsAsCash | undefined>;
20
+ getPointsAsCash: (bookingId: string) => Promise<IPointsAsCash | null>;
21
21
  }
22
22
  export declare const BookingService: _BookingService;
23
23
  export {};
@@ -210,7 +210,7 @@ class b {
210
210
  const { data: a } = await p.get(
211
211
  `${i.BOOKING_POINTS_AS_CASH}/${t}`
212
212
  );
213
- return !a.success || !a.data ? void 0 : {
213
+ return !a.success || !a.data ? null : {
214
214
  ...a.data,
215
215
  cashValue: a.data.cash
216
216
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odynn/awayz-core",
3
- "version": "0.10.29",
3
+ "version": "0.10.30",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"