@pulsecharterconnect/types 0.2.5 → 0.2.7
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/Case.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ export declare enum CaseWorkflowStepLabel {
|
|
|
4
4
|
SUBMIT_REQUEST_FOR_PROPOSALS = "Submit Request for Proposals",
|
|
5
5
|
REVIEW_PROPOSALS_AND_CHOOSE_AIR_TRANSPORTATION = "Review Proposals & Choose Air Transportation",
|
|
6
6
|
REVIEW_PROPOSALS_AND_CHOOSE_GROUND_TRANSPORTATION = "Review Proposals & Choose Ground Transportation",
|
|
7
|
-
|
|
7
|
+
REVIEW_REQUEST_AND_CONFIRM_REJECT = "Review Request & Confirm/Reject",
|
|
8
|
+
CREATE_PROPOSAL = "Create & Submit Proposals",
|
|
8
9
|
FINALIZE_TRANSPORTATION_DETAILS = "Finalize Transportation Details"
|
|
9
10
|
}
|
|
10
11
|
export declare enum CaseWorkflowStepStatus {
|
|
@@ -18,7 +19,9 @@ export declare enum CaseWorkflowStepActionLabel {
|
|
|
18
19
|
VIEW_PROPOSALS = "View Proposals",
|
|
19
20
|
CREATE_PROPOSAL = "Create Proposal",
|
|
20
21
|
ADD_PASSENGERS = "Add Passengers",
|
|
21
|
-
ADD_PARTICIPANTS = "Add Participants"
|
|
22
|
+
ADD_PARTICIPANTS = "Add Participants",
|
|
23
|
+
CONFIRM_REQUEST_FOR_PROPOSAL = "Confirm",
|
|
24
|
+
REJECT_REQUEST_FOR_PROPOSAL = "Reject"
|
|
22
25
|
}
|
|
23
26
|
export declare enum CaseWorkflowStepActionType {
|
|
24
27
|
CREATE_REQUEST = "create-transportation-request",
|
|
@@ -26,7 +29,9 @@ export declare enum CaseWorkflowStepActionType {
|
|
|
26
29
|
VIEW_PROPOSALS = "view-proposals",
|
|
27
30
|
CREATE_PROPOSAL = "create-proposal",
|
|
28
31
|
ADD_PASSENGERS = "add-passengers",
|
|
29
|
-
ADD_PARTICIPANTS = "add-participants"
|
|
32
|
+
ADD_PARTICIPANTS = "add-participants",
|
|
33
|
+
CONFIRM_REQUEST_FOR_PROPOSAL = "confirm-request-for-proposal",
|
|
34
|
+
REJECT_REQUEST_FOR_PROPOSAL = "reject-request-for-proposal"
|
|
30
35
|
}
|
|
31
36
|
export interface ICaseWorkflowStepAction {
|
|
32
37
|
actionId: number;
|
package/dist/types/Case.js
CHANGED
|
@@ -6,7 +6,8 @@ var CaseWorkflowStepLabel;
|
|
|
6
6
|
CaseWorkflowStepLabel["SUBMIT_REQUEST_FOR_PROPOSALS"] = "Submit Request for Proposals";
|
|
7
7
|
CaseWorkflowStepLabel["REVIEW_PROPOSALS_AND_CHOOSE_AIR_TRANSPORTATION"] = "Review Proposals & Choose Air Transportation";
|
|
8
8
|
CaseWorkflowStepLabel["REVIEW_PROPOSALS_AND_CHOOSE_GROUND_TRANSPORTATION"] = "Review Proposals & Choose Ground Transportation";
|
|
9
|
-
CaseWorkflowStepLabel["
|
|
9
|
+
CaseWorkflowStepLabel["REVIEW_REQUEST_AND_CONFIRM_REJECT"] = "Review Request & Confirm/Reject";
|
|
10
|
+
CaseWorkflowStepLabel["CREATE_PROPOSAL"] = "Create & Submit Proposals";
|
|
10
11
|
CaseWorkflowStepLabel["FINALIZE_TRANSPORTATION_DETAILS"] = "Finalize Transportation Details";
|
|
11
12
|
})(CaseWorkflowStepLabel = exports.CaseWorkflowStepLabel || (exports.CaseWorkflowStepLabel = {}));
|
|
12
13
|
var CaseWorkflowStepStatus;
|
|
@@ -23,6 +24,8 @@ var CaseWorkflowStepActionLabel;
|
|
|
23
24
|
CaseWorkflowStepActionLabel["CREATE_PROPOSAL"] = "Create Proposal";
|
|
24
25
|
CaseWorkflowStepActionLabel["ADD_PASSENGERS"] = "Add Passengers";
|
|
25
26
|
CaseWorkflowStepActionLabel["ADD_PARTICIPANTS"] = "Add Participants";
|
|
27
|
+
CaseWorkflowStepActionLabel["CONFIRM_REQUEST_FOR_PROPOSAL"] = "Confirm";
|
|
28
|
+
CaseWorkflowStepActionLabel["REJECT_REQUEST_FOR_PROPOSAL"] = "Reject";
|
|
26
29
|
})(CaseWorkflowStepActionLabel = exports.CaseWorkflowStepActionLabel || (exports.CaseWorkflowStepActionLabel = {}));
|
|
27
30
|
var CaseWorkflowStepActionType;
|
|
28
31
|
(function (CaseWorkflowStepActionType) {
|
|
@@ -32,6 +35,8 @@ var CaseWorkflowStepActionType;
|
|
|
32
35
|
CaseWorkflowStepActionType["CREATE_PROPOSAL"] = "create-proposal";
|
|
33
36
|
CaseWorkflowStepActionType["ADD_PASSENGERS"] = "add-passengers";
|
|
34
37
|
CaseWorkflowStepActionType["ADD_PARTICIPANTS"] = "add-participants";
|
|
38
|
+
CaseWorkflowStepActionType["CONFIRM_REQUEST_FOR_PROPOSAL"] = "confirm-request-for-proposal";
|
|
39
|
+
CaseWorkflowStepActionType["REJECT_REQUEST_FOR_PROPOSAL"] = "reject-request-for-proposal";
|
|
35
40
|
})(CaseWorkflowStepActionType = exports.CaseWorkflowStepActionType || (exports.CaseWorkflowStepActionType = {}));
|
|
36
41
|
class CaseWorkflowStep {
|
|
37
42
|
constructor(caseWorkflowStep) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Duration } from "luxon";
|
|
1
2
|
import { Facility, GroundService } from "./Organization";
|
|
2
3
|
export declare const DISTANCE_THRESHOLD_MILES_AIR_VS_GROUND = 100;
|
|
3
4
|
export declare enum TransportationRequestStatus {
|
|
@@ -93,6 +94,18 @@ export declare enum RecoveryType {
|
|
|
93
94
|
DCD_NRP = "DCD NRP",
|
|
94
95
|
OTHER = "Other"
|
|
95
96
|
}
|
|
97
|
+
export declare const RECOVERY_TIME: {
|
|
98
|
+
DCD: string;
|
|
99
|
+
DBD: string;
|
|
100
|
+
Other: string;
|
|
101
|
+
"DCD NRP": string;
|
|
102
|
+
};
|
|
103
|
+
export declare const RECOVERY_TIME_DURATION: {
|
|
104
|
+
DCD: Duration<true>;
|
|
105
|
+
DBD: Duration<true>;
|
|
106
|
+
Other: Duration<true>;
|
|
107
|
+
"DCD NRP": Duration<true>;
|
|
108
|
+
};
|
|
96
109
|
export type TransportationOptions = {
|
|
97
110
|
jet: boolean;
|
|
98
111
|
ground: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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;
|
|
3
|
+
exports.getProcedureTime = exports.TransportationRequest = exports.RECOVERY_TIME_DURATION = exports.RECOVERY_TIME = 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
|
+
const luxon_1 = require("luxon");
|
|
4
5
|
exports.DISTANCE_THRESHOLD_MILES_AIR_VS_GROUND = 100;
|
|
5
6
|
var TransportationRequestStatus;
|
|
6
7
|
(function (TransportationRequestStatus) {
|
|
@@ -94,6 +95,18 @@ var RecoveryType;
|
|
|
94
95
|
RecoveryType["DCD_NRP"] = "DCD NRP";
|
|
95
96
|
RecoveryType["OTHER"] = "Other";
|
|
96
97
|
})(RecoveryType = exports.RecoveryType || (exports.RecoveryType = {}));
|
|
98
|
+
exports.RECOVERY_TIME = {
|
|
99
|
+
[RecoveryType.DCD]: "6 hours",
|
|
100
|
+
[RecoveryType.DBD]: "3 hours",
|
|
101
|
+
[RecoveryType.OTHER]: "3 hours",
|
|
102
|
+
[RecoveryType.DCD_NRP]: "5 hours",
|
|
103
|
+
};
|
|
104
|
+
exports.RECOVERY_TIME_DURATION = {
|
|
105
|
+
[RecoveryType.DCD]: luxon_1.Duration.fromObject({ hours: 6 }),
|
|
106
|
+
[RecoveryType.DBD]: luxon_1.Duration.fromObject({ hours: 3 }),
|
|
107
|
+
[RecoveryType.OTHER]: luxon_1.Duration.fromObject({ hours: 3 }),
|
|
108
|
+
[RecoveryType.DCD_NRP]: luxon_1.Duration.fromObject({ hours: 5 }),
|
|
109
|
+
};
|
|
97
110
|
class TransportationRequest {
|
|
98
111
|
constructor(transportationRequest) {
|
|
99
112
|
this.id = transportationRequest.id;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulsecharterconnect/types",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "A TypeScript library for enhanced type safety.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
"typescript": "^4.0.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@types/express": "^5.0.0"
|
|
27
|
+
"@types/express": "^5.0.0",
|
|
28
|
+
"@types/luxon": "^3.7.1",
|
|
29
|
+
"luxon": "^3.7.2"
|
|
28
30
|
}
|
|
29
31
|
}
|