@pulsecharterconnect/types 0.2.6 → 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.
@@ -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.6",
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
  }