@pulsecharterconnect/types 0.2.113 → 0.2.115
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/types/Trip.d.ts +42 -0
- package/dist/types/Trip.js +17 -1
- package/package.json +2 -2
package/dist/types/Trip.d.ts
CHANGED
|
@@ -225,6 +225,44 @@ export interface ITripActionItem {
|
|
|
225
225
|
completedDate: number;
|
|
226
226
|
completedDateTimezone: string;
|
|
227
227
|
}
|
|
228
|
+
export interface IAircraftAvailability {
|
|
229
|
+
score: number;
|
|
230
|
+
label: AircraftAvailabilityLabel;
|
|
231
|
+
color: AircraftAvailabilityColor;
|
|
232
|
+
atOriginCount: number;
|
|
233
|
+
nearbyCount: number;
|
|
234
|
+
totalCount: number;
|
|
235
|
+
uniqueOperators: number;
|
|
236
|
+
uniqueEngineTypes: number;
|
|
237
|
+
breakdown: {
|
|
238
|
+
originScore: number;
|
|
239
|
+
nearbyScore: number;
|
|
240
|
+
diversityScore: number;
|
|
241
|
+
typeScore: number;
|
|
242
|
+
};
|
|
243
|
+
origin: {
|
|
244
|
+
code: string;
|
|
245
|
+
city: string;
|
|
246
|
+
name: string;
|
|
247
|
+
};
|
|
248
|
+
destination: {
|
|
249
|
+
code: string;
|
|
250
|
+
city: string;
|
|
251
|
+
name: string;
|
|
252
|
+
};
|
|
253
|
+
roundTrip: boolean;
|
|
254
|
+
timeFilterMinutes?: number | null;
|
|
255
|
+
}
|
|
256
|
+
export declare enum AircraftAvailabilityLabel {
|
|
257
|
+
HIGH = "High",
|
|
258
|
+
MEDIUM = "Medium",
|
|
259
|
+
LOW = "Low"
|
|
260
|
+
}
|
|
261
|
+
export declare enum AircraftAvailabilityColor {
|
|
262
|
+
GREEN = "green",
|
|
263
|
+
YELLOW = "yellow",
|
|
264
|
+
RED = "red"
|
|
265
|
+
}
|
|
228
266
|
export interface ITrip {
|
|
229
267
|
id: string;
|
|
230
268
|
status: TripStatus;
|
|
@@ -252,6 +290,8 @@ export interface ITrip {
|
|
|
252
290
|
tripActionHistory?: ITripActionItem[];
|
|
253
291
|
organProcurementOrganizationId?: string;
|
|
254
292
|
organProcurementOrganizationContactId?: string;
|
|
293
|
+
aircraftAvailabilityOneWay?: IAircraftAvailability;
|
|
294
|
+
aircraftAvailabilityRoundTrip?: IAircraftAvailability;
|
|
255
295
|
createdAt?: number;
|
|
256
296
|
updatedAt?: number;
|
|
257
297
|
}
|
|
@@ -282,6 +322,8 @@ export declare class Trip implements ITrip {
|
|
|
282
322
|
tripActionHistory?: ITripActionItem[] | undefined;
|
|
283
323
|
organProcurementOrganizationId?: string;
|
|
284
324
|
organProcurementOrganizationContactId?: string;
|
|
325
|
+
aircraftAvailabilityOneWay?: IAircraftAvailability;
|
|
326
|
+
aircraftAvailabilityRoundTrip?: IAircraftAvailability;
|
|
285
327
|
createdAt?: number;
|
|
286
328
|
updatedAt?: number;
|
|
287
329
|
constructor(trip: ITrip);
|
package/dist/types/Trip.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isSelectedOperator = exports.sortTripSegments = exports.Trip = exports.Participant = exports.Gender = exports.TripParticipantRole = exports.TripActions = exports.TripSmartCommsActionIds = exports.SegmentType = exports.OrganRecoveryInProcessStatus = exports.SegmentStatus = exports.getOrganRecoveryInProcessStatusLabel = exports.getSegmentStatusLabel = exports.getTripStatusLabel = exports.TripStatus = void 0;
|
|
3
|
+
exports.isSelectedOperator = exports.sortTripSegments = exports.Trip = exports.AircraftAvailabilityColor = exports.AircraftAvailabilityLabel = exports.Participant = exports.Gender = exports.TripParticipantRole = exports.TripActions = exports.TripSmartCommsActionIds = exports.SegmentType = exports.OrganRecoveryInProcessStatus = exports.SegmentStatus = exports.getOrganRecoveryInProcessStatusLabel = exports.getSegmentStatusLabel = exports.getTripStatusLabel = exports.TripStatus = void 0;
|
|
4
4
|
const Proposal_1 = require("./Proposal");
|
|
5
5
|
var TripStatus;
|
|
6
6
|
(function (TripStatus) {
|
|
@@ -155,6 +155,18 @@ class Participant {
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
exports.Participant = Participant;
|
|
158
|
+
var AircraftAvailabilityLabel;
|
|
159
|
+
(function (AircraftAvailabilityLabel) {
|
|
160
|
+
AircraftAvailabilityLabel["HIGH"] = "High";
|
|
161
|
+
AircraftAvailabilityLabel["MEDIUM"] = "Medium";
|
|
162
|
+
AircraftAvailabilityLabel["LOW"] = "Low";
|
|
163
|
+
})(AircraftAvailabilityLabel = exports.AircraftAvailabilityLabel || (exports.AircraftAvailabilityLabel = {}));
|
|
164
|
+
var AircraftAvailabilityColor;
|
|
165
|
+
(function (AircraftAvailabilityColor) {
|
|
166
|
+
AircraftAvailabilityColor["GREEN"] = "green";
|
|
167
|
+
AircraftAvailabilityColor["YELLOW"] = "yellow";
|
|
168
|
+
AircraftAvailabilityColor["RED"] = "red";
|
|
169
|
+
})(AircraftAvailabilityColor = exports.AircraftAvailabilityColor || (exports.AircraftAvailabilityColor = {}));
|
|
158
170
|
class Trip {
|
|
159
171
|
constructor(trip) {
|
|
160
172
|
this.id = trip.id;
|
|
@@ -188,6 +200,10 @@ class Trip {
|
|
|
188
200
|
trip.organProcurementOrganizationId || undefined;
|
|
189
201
|
this.organProcurementOrganizationContactId =
|
|
190
202
|
trip.organProcurementOrganizationContactId || undefined;
|
|
203
|
+
this.aircraftAvailabilityOneWay =
|
|
204
|
+
trip.aircraftAvailabilityOneWay || undefined;
|
|
205
|
+
this.aircraftAvailabilityRoundTrip =
|
|
206
|
+
trip.aircraftAvailabilityRoundTrip || undefined;
|
|
191
207
|
this.createdAt = trip.createdAt;
|
|
192
208
|
this.updatedAt = trip.updatedAt;
|
|
193
209
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulsecharterconnect/types",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.115",
|
|
4
4
|
"description": "A TypeScript library for enhanced type safety.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -28,4 +28,4 @@
|
|
|
28
28
|
"@types/luxon": "^3.7.1",
|
|
29
29
|
"luxon": "^3.7.2"
|
|
30
30
|
}
|
|
31
|
-
}
|
|
31
|
+
}
|