@odynn/awayz-core 0.6.26 → 0.6.27
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.
|
@@ -36,11 +36,12 @@ export interface IHotelBookingDetails {
|
|
|
36
36
|
checkinAfterTime: string;
|
|
37
37
|
coordinates: ICoordinates;
|
|
38
38
|
cancellationTimeline: ICancellationTimeline[];
|
|
39
|
-
pointsAsCash?:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
pointsAsCash?: IPointsAsCash;
|
|
40
|
+
}
|
|
41
|
+
export interface IPointsAsCash {
|
|
42
|
+
authCode: string;
|
|
43
|
+
points: number;
|
|
44
|
+
pointsValue: number;
|
|
44
45
|
}
|
|
45
46
|
export interface ICancellationTimeline {
|
|
46
47
|
refundAmount: number;
|
|
@@ -86,6 +87,7 @@ export interface IFlightBookingDetails {
|
|
|
86
87
|
flights: IFlight[];
|
|
87
88
|
availableActions: string[];
|
|
88
89
|
airlineInitiatedChanges: IAirlineInitiatedChanges[];
|
|
90
|
+
pointsAsCash?: IPointsAsCash;
|
|
89
91
|
}
|
|
90
92
|
export interface IFlight {
|
|
91
93
|
origin: IAirport;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var p = (n, e, a) => e in n ?
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var p = (n, e, a) => e in n ? m(n, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[e] = a;
|
|
3
3
|
var c = (n, e, a) => p(n, typeof e != "symbol" ? e + "" : e, a);
|
|
4
4
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
5
|
-
import { c as r, a as
|
|
5
|
+
import { c as r, a as _ } from "../../AccountService-B9DbWoCe.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { EBookingEndpoints as d } from "../../configs/endpoints.js";
|
|
8
8
|
const g = (n) => {
|
|
@@ -51,12 +51,12 @@ class f {
|
|
|
51
51
|
longitude: a.data.accommodation.location.geographic_coordinates.longitude
|
|
52
52
|
},
|
|
53
53
|
images: a.data.accommodation.photos.map((i) => i.url),
|
|
54
|
-
guests: a.data.guests.map((i,
|
|
55
|
-
var
|
|
54
|
+
guests: a.data.guests.map((i, u) => {
|
|
55
|
+
var l;
|
|
56
56
|
return {
|
|
57
57
|
familyName: i.family_name,
|
|
58
58
|
givenName: i.given_name,
|
|
59
|
-
type: (
|
|
59
|
+
type: (l = a.data.guest_types[u]) == null ? void 0 : l.type
|
|
60
60
|
};
|
|
61
61
|
}),
|
|
62
62
|
numberOfRooms: (s = a.data.rooms) == null ? void 0 : s.length,
|
|
@@ -126,11 +126,16 @@ class f {
|
|
|
126
126
|
numberOfStops: t.segments.length - 1,
|
|
127
127
|
reference: a.data.booking_reference,
|
|
128
128
|
durationInMinutes: g(t.duration),
|
|
129
|
-
origin:
|
|
130
|
-
destination:
|
|
129
|
+
origin: _(t.origin),
|
|
130
|
+
destination: _(t.destination)
|
|
131
131
|
})),
|
|
132
132
|
availableActions: a.data.available_actions,
|
|
133
|
-
airlineInitiatedChanges:
|
|
133
|
+
airlineInitiatedChanges: _(a.data.airline_initiated_changes) || [],
|
|
134
|
+
pointsAsCash: a.data.points_as_cash ? {
|
|
135
|
+
authCode: a.data.points_as_cash.auth_code,
|
|
136
|
+
points: a.data.points_as_cash.points,
|
|
137
|
+
pointsValue: a.data.points_as_cash.points_value
|
|
138
|
+
} : void 0
|
|
134
139
|
};
|
|
135
140
|
});
|
|
136
141
|
c(this, "initiateCancelFlightBooking", async (e) => {
|
|
@@ -168,7 +173,7 @@ class f {
|
|
|
168
173
|
});
|
|
169
174
|
}
|
|
170
175
|
}
|
|
171
|
-
const
|
|
176
|
+
const k = new f();
|
|
172
177
|
export {
|
|
173
|
-
|
|
178
|
+
k as BookingService
|
|
174
179
|
};
|