@pulsecharterconnect/types 0.1.47 → 0.1.49
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.
|
@@ -90,6 +90,7 @@ export type TransportSegment = {
|
|
|
90
90
|
export declare enum RecoveryType {
|
|
91
91
|
DBD = "DBD",
|
|
92
92
|
DCD = "DCD",
|
|
93
|
+
DCD_NRP = "DCD NRP",
|
|
93
94
|
OTHER = "Other"
|
|
94
95
|
}
|
|
95
96
|
export type TransportationOptions = {
|
|
@@ -140,3 +141,9 @@ export declare class TransportationRequest implements ITransportationRequest {
|
|
|
140
141
|
updatedAt?: number;
|
|
141
142
|
constructor(transportationRequest: TransportationRequest);
|
|
142
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* Returns the procedure time in hours for a given recovery type
|
|
146
|
+
* @param recoveryType - The type of organ recovery procedure
|
|
147
|
+
* @returns The procedure time in hours
|
|
148
|
+
*/
|
|
149
|
+
export declare function getProcedureTime(recoveryType: RecoveryType): number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransportationRequest = exports.RecoveryType = exports.SegmentLocationType = exports.LiverEquipmentType = exports.LungEquipmentType = exports.HeartEquipmentType = exports.OrganType = exports.TransportRequestType = exports.OrganRecoveryStatus = exports.TransportationRequestProposalStatus = exports.TransportationRequestStatus = exports.DISTANCE_THRESHOLD_MILES_AIR_VS_GROUND = void 0;
|
|
3
|
+
exports.getProcedureTime = exports.TransportationRequest = exports.RecoveryType = exports.SegmentLocationType = exports.LiverEquipmentType = exports.LungEquipmentType = exports.HeartEquipmentType = exports.OrganType = exports.TransportRequestType = exports.OrganRecoveryStatus = exports.TransportationRequestProposalStatus = exports.TransportationRequestStatus = exports.DISTANCE_THRESHOLD_MILES_AIR_VS_GROUND = void 0;
|
|
4
4
|
exports.DISTANCE_THRESHOLD_MILES_AIR_VS_GROUND = 100;
|
|
5
5
|
var TransportationRequestStatus;
|
|
6
6
|
(function (TransportationRequestStatus) {
|
|
@@ -91,6 +91,7 @@ var RecoveryType;
|
|
|
91
91
|
(function (RecoveryType) {
|
|
92
92
|
RecoveryType["DBD"] = "DBD";
|
|
93
93
|
RecoveryType["DCD"] = "DCD";
|
|
94
|
+
RecoveryType["DCD_NRP"] = "DCD NRP";
|
|
94
95
|
RecoveryType["OTHER"] = "Other";
|
|
95
96
|
})(RecoveryType = exports.RecoveryType || (exports.RecoveryType = {}));
|
|
96
97
|
class TransportationRequest {
|
|
@@ -120,3 +121,23 @@ class TransportationRequest {
|
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
exports.TransportationRequest = TransportationRequest;
|
|
124
|
+
/**
|
|
125
|
+
* Returns the procedure time in hours for a given recovery type
|
|
126
|
+
* @param recoveryType - The type of organ recovery procedure
|
|
127
|
+
* @returns The procedure time in hours
|
|
128
|
+
*/
|
|
129
|
+
function getProcedureTime(recoveryType) {
|
|
130
|
+
switch (recoveryType) {
|
|
131
|
+
case RecoveryType.DBD:
|
|
132
|
+
return 3;
|
|
133
|
+
case RecoveryType.DCD_NRP:
|
|
134
|
+
return 5;
|
|
135
|
+
case RecoveryType.DCD:
|
|
136
|
+
return 6;
|
|
137
|
+
case RecoveryType.OTHER:
|
|
138
|
+
return 4; // Default fallback for other types
|
|
139
|
+
default:
|
|
140
|
+
return 4; // Default fallback for any unexpected values
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
exports.getProcedureTime = getProcedureTime;
|
package/dist/types/Trip.d.ts
CHANGED
|
@@ -156,6 +156,7 @@ export declare class Participant implements IParticipant {
|
|
|
156
156
|
export interface ITripParticipant {
|
|
157
157
|
participantRole: TripParticipantRole;
|
|
158
158
|
participant: IParticipant;
|
|
159
|
+
isPassenger?: boolean;
|
|
159
160
|
pilotTimeout?: number;
|
|
160
161
|
pilotTimeoutTimezone?: string;
|
|
161
162
|
}
|