@odynn/awayz-core 0.10.12 → 0.10.13
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/{TripsService-fNtCUyxa.js → TripsService-BVsAk5Ky.js} +7 -6
- package/dist/hooks/useTripManagement/useTripManagement.js +1 -1
- package/dist/hooks/useTripManagement/useTripManagement.test.js +1 -1
- package/dist/lib/services/trips/TripService.types.d.ts +1 -0
- package/dist/services/trips/TripsService.js +1 -1
- package/package.json +1 -1
|
@@ -91,7 +91,7 @@ class O {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
const T = (r) => r.map((e) => {
|
|
94
|
-
var c,
|
|
94
|
+
var c, m, _, l;
|
|
95
95
|
const a = e.slices.length > 1, t = e.slices[0], s = a ? e.slices.getLast() : void 0;
|
|
96
96
|
return d({
|
|
97
97
|
id: e._id,
|
|
@@ -100,9 +100,9 @@ const T = (r) => r.map((e) => {
|
|
|
100
100
|
endDate: e.arrival_date,
|
|
101
101
|
bookingType: y.FLIGHT,
|
|
102
102
|
airlines: e.slices.map((p) => {
|
|
103
|
-
var
|
|
103
|
+
var g;
|
|
104
104
|
return {
|
|
105
|
-
logo: (
|
|
105
|
+
logo: (g = p.carriers.operating_iata_codes) != null && g.length ? `${I}${p.carriers.operating_iata_codes[0]}.svg` : S,
|
|
106
106
|
name: p.carriers.operating[0]
|
|
107
107
|
};
|
|
108
108
|
}),
|
|
@@ -121,8 +121,8 @@ const T = (r) => r.map((e) => {
|
|
|
121
121
|
type: e.type,
|
|
122
122
|
cancelledAt: e.cancelled_at,
|
|
123
123
|
isRoundTrip: a,
|
|
124
|
-
outboundArrivalDate: t.arriving_at ?? ((
|
|
125
|
-
inboundDepartureDate: s ? s.departing_at ?? ((
|
|
124
|
+
outboundArrivalDate: t.arriving_at ?? ((m = (c = t.segments) == null ? void 0 : c.getLast()) == null ? void 0 : m.arriving_at),
|
|
125
|
+
inboundDepartureDate: s ? s.departing_at ?? ((l = (_ = s.segments) == null ? void 0 : _[0]) == null ? void 0 : l.departing_at) : void 0,
|
|
126
126
|
inboundDeparture: s ? { airportCode: s.origin, location: "" } : void 0,
|
|
127
127
|
inboundArrival: s ? { airportCode: s.destination, location: "" } : void 0
|
|
128
128
|
});
|
|
@@ -133,7 +133,8 @@ const T = (r) => r.map((e) => {
|
|
|
133
133
|
startDate: e.check_in_date,
|
|
134
134
|
endDate: e.check_out_date,
|
|
135
135
|
bookingType: y.HOTEL,
|
|
136
|
-
name: e.rooms[0].name,
|
|
136
|
+
name: e.accommodation_name || e.rooms[0].name,
|
|
137
|
+
accommodationName: e.accommodation_name,
|
|
137
138
|
image: e.images[0],
|
|
138
139
|
guests: e.guests.length,
|
|
139
140
|
address: Object.values(e.address).filter((a) => a).map((a) => a.trim()).join(", "),
|
|
@@ -13,7 +13,7 @@ import { awayzClient as o } from "../../configs/awayzClient.js";
|
|
|
13
13
|
import "../../index-Cv-wvFlM.js";
|
|
14
14
|
import "../../context/AwayzContext.js";
|
|
15
15
|
/* empty css */
|
|
16
|
-
import { T as n } from "../../TripsService-
|
|
16
|
+
import { T as n } from "../../TripsService-BVsAk5Ky.js";
|
|
17
17
|
const b = ({
|
|
18
18
|
tripId: t,
|
|
19
19
|
tripDetails: s
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as p } from "../../arrayExtensions-DlcBOj5a.js";
|
|
2
|
-
import { D as f } from "../../TripsService-
|
|
2
|
+
import { D as f } from "../../TripsService-BVsAk5Ky.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { renderHook as o, waitFor as i } from "../../tests/TestWrapper.js";
|
|
5
5
|
import { EMyTripsEndpoints as c } from "../../configs/endpoints.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
2
2
|
import "../../noRetryInstance-C4bqpBc7.js";
|
|
3
|
-
import { T } from "../../TripsService-
|
|
3
|
+
import { T } from "../../TripsService-BVsAk5Ky.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../../configs/defaultAwayzConfig.js";
|
|
6
6
|
import "../../configs/endpoints.js";
|