@pulsecharterconnect/types 0.2.62 → 0.2.63
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.
|
@@ -208,7 +208,7 @@ class TransportationRequest {
|
|
|
208
208
|
return false;
|
|
209
209
|
}
|
|
210
210
|
createTripAirSegmentsFromTransportationRequest(localTimezone, distalTimezone) {
|
|
211
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
211
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
|
|
212
212
|
const recoveryTimeDuration = this.transportationRequestType === TransportRequestType.ONE_WAY
|
|
213
213
|
? luxon_1.Duration.fromObject({ minutes: 0 })
|
|
214
214
|
: (_a = exports.RECOVERY_TIME_DURATION[this.recoveryType]) !== null && _a !== void 0 ? _a : luxon_1.Duration.fromObject({ hours: 3, minutes: 0 });
|
|
@@ -253,7 +253,8 @@ class TransportationRequest {
|
|
|
253
253
|
scheduledArrivalTimeTimezone: distalTimezone,
|
|
254
254
|
scheduledDepartureAirportCode: `${((_f = this.recipientFacility) === null || _f === void 0 ? void 0 : _f.preferredNearbyAirportCode) ||
|
|
255
255
|
((_g = this.recipientFacility) === null || _g === void 0 ? void 0 : _g.city) + " area airport"}`,
|
|
256
|
-
|
|
256
|
+
scheduledDepartureFBO: (_h = this.recipientFacility) === null || _h === void 0 ? void 0 : _h.preferredNearbyFBO,
|
|
257
|
+
scheduledDepartureAirportLocation: ((_j = this.recipientFacility) === null || _j === void 0 ? void 0 : _j.location) || {
|
|
257
258
|
lat: 0,
|
|
258
259
|
lng: 0,
|
|
259
260
|
},
|
|
@@ -269,10 +270,10 @@ class TransportationRequest {
|
|
|
269
270
|
segmentStatus: Trip_1.SegmentStatus.NOT_STARTED,
|
|
270
271
|
segmentType: Trip_1.SegmentType.AIR_TRANSPORTATION,
|
|
271
272
|
segmentNumber: 0,
|
|
272
|
-
scheduledDepartureAirportCode: `${((
|
|
273
|
-
((
|
|
274
|
-
scheduledDepartureFBO: (
|
|
275
|
-
scheduledDepartureAirportLocation: ((
|
|
273
|
+
scheduledDepartureAirportCode: `${((_k = this.recoveryLocation) === null || _k === void 0 ? void 0 : _k.preferredNearbyAirportCode) ||
|
|
274
|
+
((_l = this.recoveryLocation) === null || _l === void 0 ? void 0 : _l.city) + " area airport"}`,
|
|
275
|
+
scheduledDepartureFBO: (_m = this.recoveryLocation) === null || _m === void 0 ? void 0 : _m.preferredNearbyFBO,
|
|
276
|
+
scheduledDepartureAirportLocation: ((_o = this.recoveryLocation) === null || _o === void 0 ? void 0 : _o.location) || {
|
|
276
277
|
lat: 0,
|
|
277
278
|
lng: 0,
|
|
278
279
|
},
|
|
@@ -280,10 +281,10 @@ class TransportationRequest {
|
|
|
280
281
|
.plus(recoveryTimeDuration)
|
|
281
282
|
.plus({ hours: 1, minutes: 30 })
|
|
282
283
|
.toMillis(),
|
|
283
|
-
scheduledArrivalAirportCode: `${((
|
|
284
|
-
((
|
|
285
|
-
scheduledArrivalFBO: (
|
|
286
|
-
scheduledArrivalAirportLocation: ((
|
|
284
|
+
scheduledArrivalAirportCode: `${((_p = this.recipientFacility) === null || _p === void 0 ? void 0 : _p.preferredNearbyAirportCode) ||
|
|
285
|
+
((_q = this.recipientFacility) === null || _q === void 0 ? void 0 : _q.city) + " area airport"}`,
|
|
286
|
+
scheduledArrivalFBO: (_r = this.recipientFacility) === null || _r === void 0 ? void 0 : _r.preferredNearbyFBO,
|
|
287
|
+
scheduledArrivalAirportLocation: ((_s = this.recipientFacility) === null || _s === void 0 ? void 0 : _s.location) || {
|
|
287
288
|
lat: 0,
|
|
288
289
|
lng: 0,
|
|
289
290
|
},
|
|
@@ -305,21 +306,25 @@ class TransportationRequest {
|
|
|
305
306
|
segmentStatus: Trip_1.SegmentStatus.NOT_STARTED,
|
|
306
307
|
segmentType: Trip_1.SegmentType.AIR_TRANSPORTATION,
|
|
307
308
|
segmentNumber: 0,
|
|
308
|
-
scheduledDepartureAirportCode: `${((
|
|
309
|
-
((
|
|
310
|
-
(
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
309
|
+
scheduledDepartureAirportCode: `${!((_t = this.pickupLocation) === null || _t === void 0 ? void 0 : _t.location) &&
|
|
310
|
+
((_u = this.recipientFacility) === null || _u === void 0 ? void 0 : _u.preferredNearbyAirportCode)
|
|
311
|
+
? (_v = this.recipientFacility) === null || _v === void 0 ? void 0 : _v.preferredNearbyAirportCode
|
|
312
|
+
: ((_w = this.pickupLocation) === null || _w === void 0 ? void 0 : _w.city) + " area airport" ||
|
|
313
|
+
((_x = this.recoveryLocation) === null || _x === void 0 ? void 0 : _x.city) + " area airport"}`,
|
|
314
|
+
scheduledDepartureFBO: !((_y = this.pickupLocation) === null || _y === void 0 ? void 0 : _y.location)
|
|
315
|
+
? (_z = this.recipientFacility) === null || _z === void 0 ? void 0 : _z.preferredNearbyFBO
|
|
316
|
+
: undefined,
|
|
317
|
+
scheduledDepartureAirportLocation: ((_0 = this.pickupLocation) === null || _0 === void 0 ? void 0 : _0.location) ||
|
|
318
|
+
((_1 = this.recoveryLocation) === null || _1 === void 0 ? void 0 : _1.location) || {
|
|
314
319
|
lat: 0,
|
|
315
320
|
lng: 0,
|
|
316
321
|
},
|
|
317
322
|
scheduledDepartureTime: luxon_1.DateTime.fromMillis(this.orDateTimeGMT)
|
|
318
323
|
.plus({ hours: 1, minutes: 0 })
|
|
319
324
|
.toMillis(),
|
|
320
|
-
scheduledArrivalAirportCode: `${((
|
|
321
|
-
((
|
|
322
|
-
scheduledArrivalFBO: (
|
|
325
|
+
scheduledArrivalAirportCode: `${((_2 = this.recipientFacility) === null || _2 === void 0 ? void 0 : _2.preferredNearbyAirportCode) ||
|
|
326
|
+
((_3 = this.recipientFacility) === null || _3 === void 0 ? void 0 : _3.city) + " area airport"}`,
|
|
327
|
+
scheduledArrivalFBO: (_4 = this.recipientFacility) === null || _4 === void 0 ? void 0 : _4.preferredNearbyFBO,
|
|
323
328
|
scheduledArrivalAirportLocation: this.recipientFacility.location || {
|
|
324
329
|
lat: 0,
|
|
325
330
|
lng: 0,
|