@pulsecharterconnect/types 0.2.39 → 0.2.41
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.
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface IFlightTrackingLocation {
|
|
2
|
+
latitude: number;
|
|
3
|
+
longitude: number;
|
|
4
|
+
altitude: number;
|
|
5
|
+
groundspeed: number;
|
|
6
|
+
heading: number;
|
|
7
|
+
timestamp: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IFlightTrackingTimes {
|
|
10
|
+
scheduledDepartureTime: string;
|
|
11
|
+
scheduledArrivalTime: string;
|
|
12
|
+
estimatedDepartureTime?: string;
|
|
13
|
+
estimatedArrivalTime?: string;
|
|
14
|
+
actualDepartureTime?: string;
|
|
15
|
+
actualArrivalTime?: string;
|
|
16
|
+
departureTimezone: string;
|
|
17
|
+
arrivalTimezone: string;
|
|
18
|
+
departureIsDelayed: boolean;
|
|
19
|
+
arrivalIsDelayed: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface IFlightTrackingInfo {
|
|
22
|
+
tailNumber: string;
|
|
23
|
+
currentLocation: IFlightTrackingLocation;
|
|
24
|
+
flightId: string;
|
|
25
|
+
lastUpdated: string;
|
|
26
|
+
originAirportCode: string;
|
|
27
|
+
originAirportName: string;
|
|
28
|
+
destinationAirportCode: string;
|
|
29
|
+
destinationAirportName: string;
|
|
30
|
+
times: IFlightTrackingTimes;
|
|
31
|
+
isDepartureDelayed: boolean;
|
|
32
|
+
isArrivalDelayed: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare enum FlightTrackingProvider {
|
|
35
|
+
FLIGHTAWARE = "flightaware",
|
|
36
|
+
FLIGHTRADAR24 = "flightradar24",
|
|
37
|
+
FAA = "faa"
|
|
38
|
+
}
|
|
39
|
+
export interface IFlightTrackingProviderConfig {
|
|
40
|
+
provider: FlightTrackingProvider;
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
priority: number;
|
|
43
|
+
fallbackTimeout?: number;
|
|
44
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FlightTrackingProvider = void 0;
|
|
4
|
+
// Service provider types for future
|
|
5
|
+
var FlightTrackingProvider;
|
|
6
|
+
(function (FlightTrackingProvider) {
|
|
7
|
+
FlightTrackingProvider["FLIGHTAWARE"] = "flightaware";
|
|
8
|
+
FlightTrackingProvider["FLIGHTRADAR24"] = "flightradar24";
|
|
9
|
+
FlightTrackingProvider["FAA"] = "faa";
|
|
10
|
+
})(FlightTrackingProvider = exports.FlightTrackingProvider || (exports.FlightTrackingProvider = {}));
|
package/dist/types/Trip.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ICommunicationsChannel } from "./Communications";
|
|
2
|
+
import { IFlightTrackingLocation } from "./FlightTracking";
|
|
2
3
|
import { Facility, GroundService } from "./Organization";
|
|
3
4
|
import { IProposalSegment } from "./Proposal";
|
|
4
5
|
import { OrganType, RecoveryType } from "./TransportationRequest";
|
|
@@ -50,6 +51,10 @@ export interface ITripSegment extends Omit<IProposalSegment, "typeOfService"> {
|
|
|
50
51
|
scheduledDepartureTimeTimezone: string;
|
|
51
52
|
scheduledArrivalTime: number;
|
|
52
53
|
scheduledArrivalTimeTimezone: string;
|
|
54
|
+
estimatedDepartureTime?: number;
|
|
55
|
+
estimatedDepartureTimeTimezone?: string;
|
|
56
|
+
estimatedArrivalTime?: number;
|
|
57
|
+
estimatedArrivalTimeTimezone?: string;
|
|
53
58
|
actualDepartureTime?: number;
|
|
54
59
|
actualDepartureTimeTimezone?: string;
|
|
55
60
|
actualArrivalTime?: number;
|
|
@@ -101,14 +106,7 @@ export interface ITripAirSegment extends ITripSegment {
|
|
|
101
106
|
passengers: ITripParticipant[];
|
|
102
107
|
scheduledTailNumber?: string;
|
|
103
108
|
actualTailNumber?: string;
|
|
104
|
-
currentLocation?:
|
|
105
|
-
lat: number;
|
|
106
|
-
lng: number;
|
|
107
|
-
altitude: number;
|
|
108
|
-
groundspeed: number;
|
|
109
|
-
heading: number;
|
|
110
|
-
timestamp: number;
|
|
111
|
-
};
|
|
109
|
+
currentLocation?: IFlightTrackingLocation;
|
|
112
110
|
}
|
|
113
111
|
export declare enum TripParticipantRole {
|
|
114
112
|
SURGEON = "surgeon",
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED