@pulsecharterconnect/types 0.2.114 → 0.2.116
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/Schedule.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export interface IShift {
|
|
|
25
25
|
startTime: string;
|
|
26
26
|
endTime: string;
|
|
27
27
|
iconSlug?: ShiftRoleIconSlug;
|
|
28
|
+
/** Per-shift color override. When set, takes precedence over the parent role colorCode. */
|
|
29
|
+
colorCode?: ShiftRoleColorHex;
|
|
28
30
|
}
|
|
29
31
|
/** Payload for creating or updating a Shift Role (form submission shape) */
|
|
30
32
|
export interface IShiftRolePayload {
|
|
@@ -138,44 +138,6 @@ export type TransportationOptions = {
|
|
|
138
138
|
ground: boolean;
|
|
139
139
|
groundOptions?: GroundService[];
|
|
140
140
|
};
|
|
141
|
-
export declare enum AircraftAvailabilityLabel {
|
|
142
|
-
HIGH = "High",
|
|
143
|
-
MEDIUM = "Medium",
|
|
144
|
-
LOW = "Low"
|
|
145
|
-
}
|
|
146
|
-
export declare enum AircraftAvailabilityColor {
|
|
147
|
-
GREEN = "green",
|
|
148
|
-
YELLOW = "yellow",
|
|
149
|
-
RED = "red"
|
|
150
|
-
}
|
|
151
|
-
export interface IAircraftAvailability {
|
|
152
|
-
score: number;
|
|
153
|
-
label: AircraftAvailabilityLabel;
|
|
154
|
-
color: AircraftAvailabilityColor;
|
|
155
|
-
atOriginCount: number;
|
|
156
|
-
nearbyCount: number;
|
|
157
|
-
totalCount: number;
|
|
158
|
-
uniqueOperators: number;
|
|
159
|
-
uniqueEngineTypes: number;
|
|
160
|
-
breakdown: {
|
|
161
|
-
originScore: number;
|
|
162
|
-
nearbyScore: number;
|
|
163
|
-
diversityScore: number;
|
|
164
|
-
typeScore: number;
|
|
165
|
-
};
|
|
166
|
-
origin: {
|
|
167
|
-
code: string;
|
|
168
|
-
city: string;
|
|
169
|
-
name: string;
|
|
170
|
-
};
|
|
171
|
-
destination: {
|
|
172
|
-
code: string;
|
|
173
|
-
city: string;
|
|
174
|
-
name: string;
|
|
175
|
-
};
|
|
176
|
-
roundTrip: boolean;
|
|
177
|
-
timeFilterMinutes?: number | null;
|
|
178
|
-
}
|
|
179
141
|
export interface ITransportationRequest {
|
|
180
142
|
id: string;
|
|
181
143
|
unosId: string;
|
|
@@ -199,8 +161,6 @@ export interface ITransportationRequest {
|
|
|
199
161
|
eventLog?: IEventLog[];
|
|
200
162
|
isTrainingMode?: boolean;
|
|
201
163
|
equipmentReturnRequested?: boolean;
|
|
202
|
-
aircraftAvailabilityOneWay?: IAircraftAvailability;
|
|
203
|
-
aircraftAvailabilityRoundTrip?: IAircraftAvailability;
|
|
204
164
|
createdAt?: number;
|
|
205
165
|
updatedAt?: number;
|
|
206
166
|
}
|
|
@@ -227,8 +187,6 @@ export declare class TransportationRequest implements ITransportationRequest {
|
|
|
227
187
|
eventLog?: IEventLog[] | undefined;
|
|
228
188
|
isTrainingMode?: boolean;
|
|
229
189
|
equipmentReturnRequested?: boolean;
|
|
230
|
-
aircraftAvailabilityOneWay?: IAircraftAvailability | undefined;
|
|
231
|
-
aircraftAvailabilityRoundTrip?: IAircraftAvailability | undefined;
|
|
232
190
|
createdAt?: number;
|
|
233
191
|
updatedAt?: number;
|
|
234
192
|
constructor(transportationRequest: ITransportationRequest);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getProcedureTime = exports.calculateTravelTime = exports.TransportationRequest = exports.
|
|
3
|
+
exports.getProcedureTime = exports.calculateTravelTime = exports.TransportationRequest = exports.RECOVERY_TIME_DURATION = exports.RECOVERY_TIME = exports.RecoveryType = exports.SegmentLocationType = exports.getEquipmentForOrgan = exports.EquipmentType = exports.KidneyEquipmentType = exports.LiverEquipmentType = exports.LungEquipmentType = exports.HeartEquipmentType = exports.OrganType = exports.TransportRequestType = exports.OrganRecoveryStatus = exports.TransportationRequestProposalStatus = exports.TransportationRequestStatus = exports.AVERAGE_AIR_SPEED = exports.DISTANCE_THRESHOLD_MILES_AIR_VS_GROUND = void 0;
|
|
4
4
|
const luxon_1 = require("luxon");
|
|
5
5
|
const Trip_1 = require("./Trip");
|
|
6
6
|
exports.DISTANCE_THRESHOLD_MILES_AIR_VS_GROUND = 100;
|
|
@@ -173,18 +173,6 @@ exports.RECOVERY_TIME_DURATION = {
|
|
|
173
173
|
[RecoveryType.OTHER]: luxon_1.Duration.fromObject({ hours: 3 }),
|
|
174
174
|
[RecoveryType.DCD_NRP]: luxon_1.Duration.fromObject({ hours: 5 }),
|
|
175
175
|
};
|
|
176
|
-
var AircraftAvailabilityLabel;
|
|
177
|
-
(function (AircraftAvailabilityLabel) {
|
|
178
|
-
AircraftAvailabilityLabel["HIGH"] = "High";
|
|
179
|
-
AircraftAvailabilityLabel["MEDIUM"] = "Medium";
|
|
180
|
-
AircraftAvailabilityLabel["LOW"] = "Low";
|
|
181
|
-
})(AircraftAvailabilityLabel = exports.AircraftAvailabilityLabel || (exports.AircraftAvailabilityLabel = {}));
|
|
182
|
-
var AircraftAvailabilityColor;
|
|
183
|
-
(function (AircraftAvailabilityColor) {
|
|
184
|
-
AircraftAvailabilityColor["GREEN"] = "green";
|
|
185
|
-
AircraftAvailabilityColor["YELLOW"] = "yellow";
|
|
186
|
-
AircraftAvailabilityColor["RED"] = "red";
|
|
187
|
-
})(AircraftAvailabilityColor = exports.AircraftAvailabilityColor || (exports.AircraftAvailabilityColor = {}));
|
|
188
176
|
class TransportationRequest {
|
|
189
177
|
constructor(transportationRequest) {
|
|
190
178
|
this.id = transportationRequest.id;
|
|
@@ -215,10 +203,6 @@ class TransportationRequest {
|
|
|
215
203
|
transportationRequest.equipmentReturnRequested || false;
|
|
216
204
|
this.createdAt = transportationRequest.createdAt;
|
|
217
205
|
this.updatedAt = transportationRequest.updatedAt;
|
|
218
|
-
this.aircraftAvailabilityOneWay =
|
|
219
|
-
transportationRequest.aircraftAvailabilityOneWay;
|
|
220
|
-
this.aircraftAvailabilityRoundTrip =
|
|
221
|
-
transportationRequest.aircraftAvailabilityRoundTrip;
|
|
222
206
|
}
|
|
223
207
|
airTransportationRecommended() {
|
|
224
208
|
if (this.tripDistanceInMiles &&
|
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
|
}
|