@pulsecharterconnect/types 0.0.40 → 0.0.42
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.
|
@@ -119,7 +119,6 @@ export interface IAircraft {
|
|
|
119
119
|
year: number;
|
|
120
120
|
maxPassengers: number;
|
|
121
121
|
insurance: IInsurance[];
|
|
122
|
-
safetyCertifications: SafetyCertifications[];
|
|
123
122
|
}
|
|
124
123
|
export interface ISystemAdminOrganization {
|
|
125
124
|
}
|
|
@@ -139,6 +138,7 @@ export interface ITranportationOperatorOrganization {
|
|
|
139
138
|
states?: StateCode[];
|
|
140
139
|
unosRegions?: number[];
|
|
141
140
|
};
|
|
141
|
+
safetyCertifications: SafetyCertifications[];
|
|
142
142
|
}
|
|
143
143
|
export interface IOrganization {
|
|
144
144
|
id: string;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { AirService, Facility, GroundService } from "./";
|
|
2
|
+
export declare enum TypeOfService {
|
|
3
|
+
AIR = "air",
|
|
4
|
+
GROUND = "ground",
|
|
5
|
+
SURGICAL = "surgical"
|
|
6
|
+
}
|
|
7
|
+
export interface IProposalSegment {
|
|
8
|
+
typeOfService: TypeOfService;
|
|
9
|
+
segmentNumber: number;
|
|
10
|
+
scheduledDepartureTime: number;
|
|
11
|
+
scheduledArrivalTime: number;
|
|
12
|
+
}
|
|
13
|
+
export declare enum CrewMemberTypes {
|
|
14
|
+
PILOT = "pilot",
|
|
15
|
+
COPILOT = "copilot",
|
|
16
|
+
FLIGHT_ATTENDANT = "flight_attendant"
|
|
17
|
+
}
|
|
18
|
+
export interface IProposalAirSegment extends IProposalSegment {
|
|
19
|
+
scheduledDepartureAirportCode: string;
|
|
20
|
+
scheduledDepartureFBO: Facility;
|
|
21
|
+
scheduledArrivalAirportCode: string;
|
|
22
|
+
scheduledArrivalFBO: Facility;
|
|
23
|
+
airTransportationServices?: [
|
|
24
|
+
{
|
|
25
|
+
airService: AirService;
|
|
26
|
+
tailNumber: string;
|
|
27
|
+
crew: [
|
|
28
|
+
{
|
|
29
|
+
crewMemberType: CrewMemberTypes;
|
|
30
|
+
firstName: string;
|
|
31
|
+
lastName: string;
|
|
32
|
+
phoneNumber: string;
|
|
33
|
+
email?: string;
|
|
34
|
+
}
|
|
35
|
+
];
|
|
36
|
+
}
|
|
37
|
+
];
|
|
38
|
+
}
|
|
39
|
+
export interface IProposalGroundSegment extends IProposalSegment {
|
|
40
|
+
scheduledDepartureLocation: Facility;
|
|
41
|
+
scheduledArrivalLocation: Facility;
|
|
42
|
+
groundTransportatationServices?: [
|
|
43
|
+
{
|
|
44
|
+
groundService: GroundService;
|
|
45
|
+
vechicleId?: string;
|
|
46
|
+
driver?: {
|
|
47
|
+
firstName: string;
|
|
48
|
+
lastName: string;
|
|
49
|
+
phoneNumber: string;
|
|
50
|
+
email?: string;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
];
|
|
54
|
+
}
|
|
55
|
+
export declare enum ProposalStatus {
|
|
56
|
+
CREATED = "created",
|
|
57
|
+
AWAITING_APPROVAL = "awaiting-approval",
|
|
58
|
+
UPDATE_REQUESTED = "update-requested",
|
|
59
|
+
APPROVED = "approved",
|
|
60
|
+
APPROVED_STANDBY = "approved-standby",
|
|
61
|
+
DECLINED = "declined",
|
|
62
|
+
CANCELLED = "cancelled"
|
|
63
|
+
}
|
|
64
|
+
export interface IProposal {
|
|
65
|
+
id: string;
|
|
66
|
+
requestForProposalId: string;
|
|
67
|
+
transportationOperatorId: string;
|
|
68
|
+
price: number;
|
|
69
|
+
proposalStatus: ProposalStatus;
|
|
70
|
+
proposalSegments: IProposalSegment[];
|
|
71
|
+
createdAt?: number;
|
|
72
|
+
updatedAt?: number;
|
|
73
|
+
}
|
|
74
|
+
export declare class Proposal {
|
|
75
|
+
id: string;
|
|
76
|
+
requestForProposalId: string;
|
|
77
|
+
transportationOperatorId: string;
|
|
78
|
+
price: number;
|
|
79
|
+
proposalStatus: ProposalStatus;
|
|
80
|
+
proposalSegments: IProposalSegment[];
|
|
81
|
+
createdAt?: number;
|
|
82
|
+
updatedAt?: number;
|
|
83
|
+
acceptedOrDeclinedByUserId?: string;
|
|
84
|
+
constructor(proposal: IProposal);
|
|
85
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Proposal = exports.ProposalStatus = exports.CrewMemberTypes = exports.TypeOfService = void 0;
|
|
4
|
+
var TypeOfService;
|
|
5
|
+
(function (TypeOfService) {
|
|
6
|
+
TypeOfService["AIR"] = "air";
|
|
7
|
+
TypeOfService["GROUND"] = "ground";
|
|
8
|
+
TypeOfService["SURGICAL"] = "surgical";
|
|
9
|
+
})(TypeOfService = exports.TypeOfService || (exports.TypeOfService = {}));
|
|
10
|
+
var CrewMemberTypes;
|
|
11
|
+
(function (CrewMemberTypes) {
|
|
12
|
+
CrewMemberTypes["PILOT"] = "pilot";
|
|
13
|
+
CrewMemberTypes["COPILOT"] = "copilot";
|
|
14
|
+
CrewMemberTypes["FLIGHT_ATTENDANT"] = "flight_attendant";
|
|
15
|
+
})(CrewMemberTypes = exports.CrewMemberTypes || (exports.CrewMemberTypes = {}));
|
|
16
|
+
var ProposalStatus;
|
|
17
|
+
(function (ProposalStatus) {
|
|
18
|
+
ProposalStatus["CREATED"] = "created";
|
|
19
|
+
ProposalStatus["AWAITING_APPROVAL"] = "awaiting-approval";
|
|
20
|
+
ProposalStatus["UPDATE_REQUESTED"] = "update-requested";
|
|
21
|
+
ProposalStatus["APPROVED"] = "approved";
|
|
22
|
+
ProposalStatus["APPROVED_STANDBY"] = "approved-standby";
|
|
23
|
+
ProposalStatus["DECLINED"] = "declined";
|
|
24
|
+
ProposalStatus["CANCELLED"] = "cancelled";
|
|
25
|
+
})(ProposalStatus = exports.ProposalStatus || (exports.ProposalStatus = {}));
|
|
26
|
+
class Proposal {
|
|
27
|
+
constructor(proposal) {
|
|
28
|
+
this.id = proposal.id;
|
|
29
|
+
this.requestForProposalId = proposal.requestForProposalId;
|
|
30
|
+
this.transportationOperatorId = proposal.transportationOperatorId;
|
|
31
|
+
this.price = proposal.price;
|
|
32
|
+
this.proposalStatus = proposal.proposalStatus;
|
|
33
|
+
this.proposalSegments = proposal.proposalSegments;
|
|
34
|
+
this.createdAt = proposal.createdAt;
|
|
35
|
+
this.updatedAt = proposal.updatedAt;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.Proposal = Proposal;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
1
|
+
export * from "./ApiResult";
|
|
2
|
+
export * from "./ContactDetails";
|
|
3
|
+
export * from "./Organization";
|
|
4
|
+
export * from "./Sample";
|
|
5
|
+
export * from "./User";
|
|
6
|
+
export * from "./TransportationRequest";
|
|
7
|
+
export * from "./Notification";
|
|
8
|
+
export * from "./RequestForProposal";
|
|
9
|
+
export * from "./Proposal";
|
package/dist/types/index.js
CHANGED