@pulsecharterconnect/types 0.2.38 → 0.2.40

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 = {}));
@@ -84,6 +84,7 @@ export interface IProposal {
84
84
  acceptedOrDeclinedByUserId?: string;
85
85
  reasonForAcceptDeclineOrUpdate?: string;
86
86
  additionalInformation?: string;
87
+ source?: "Form" | "Document";
87
88
  createdAt?: number;
88
89
  updatedAt?: number;
89
90
  }
@@ -99,6 +100,7 @@ export declare class Proposal implements IProposal {
99
100
  proposalStatus: ProposalStatus;
100
101
  proposalSegments: Array<IProposalAirSegment | IProposalGroundSegment>;
101
102
  additionalInformation?: string | undefined;
103
+ source?: "Form" | "Document";
102
104
  createdAt?: number;
103
105
  updatedAt?: number;
104
106
  acceptedOrDeclinedByUserId?: string;
@@ -41,6 +41,7 @@ class Proposal {
41
41
  this.additionalInformation = proposal.additionalInformation;
42
42
  this.createdAt = proposal.createdAt;
43
43
  this.updatedAt = proposal.updatedAt;
44
+ this.source = proposal.source || "Form";
44
45
  this.acceptedOrDeclinedByUserId = proposal.acceptedOrDeclinedByUserId;
45
46
  this.reasonForAcceptDeclineOrUpdate =
46
47
  proposal.reasonForAcceptDeclineOrUpdate;
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.2.38",
3
+ "version": "0.2.40",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",