@pulsecharterconnect/types 0.2.6 → 0.2.8

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,5 +1,7 @@
1
+ import { Duration } from "luxon";
1
2
  import { Facility, GroundService } from "./Organization";
2
3
  export declare const DISTANCE_THRESHOLD_MILES_AIR_VS_GROUND = 100;
4
+ export declare const AVERAGE_AIR_SPEED = 450;
3
5
  export declare enum TransportationRequestStatus {
4
6
  CREATED = "created",
5
7
  AWAITING_SURGICAL_SERVICES_APPROVAL = "awaiting-surgical-services-approval",
@@ -93,6 +95,18 @@ export declare enum RecoveryType {
93
95
  DCD_NRP = "DCD NRP",
94
96
  OTHER = "Other"
95
97
  }
98
+ export declare const RECOVERY_TIME: {
99
+ DCD: string;
100
+ DBD: string;
101
+ Other: string;
102
+ "DCD NRP": string;
103
+ };
104
+ export declare const RECOVERY_TIME_DURATION: {
105
+ DCD: Duration<true>;
106
+ DBD: Duration<true>;
107
+ Other: Duration<true>;
108
+ "DCD NRP": Duration<true>;
109
+ };
96
110
  export type TransportationOptions = {
97
111
  jet: boolean;
98
112
  ground: boolean;
@@ -1,7 +1,9 @@
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.AVERAGE_AIR_SPEED = 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;
6
+ exports.AVERAGE_AIR_SPEED = 450;
5
7
  var TransportationRequestStatus;
6
8
  (function (TransportationRequestStatus) {
7
9
  TransportationRequestStatus["CREATED"] = "created";
@@ -94,6 +96,18 @@ var RecoveryType;
94
96
  RecoveryType["DCD_NRP"] = "DCD NRP";
95
97
  RecoveryType["OTHER"] = "Other";
96
98
  })(RecoveryType = exports.RecoveryType || (exports.RecoveryType = {}));
99
+ exports.RECOVERY_TIME = {
100
+ [RecoveryType.DCD]: "6 hours",
101
+ [RecoveryType.DBD]: "3 hours",
102
+ [RecoveryType.OTHER]: "3 hours",
103
+ [RecoveryType.DCD_NRP]: "5 hours",
104
+ };
105
+ exports.RECOVERY_TIME_DURATION = {
106
+ [RecoveryType.DCD]: luxon_1.Duration.fromObject({ hours: 6 }),
107
+ [RecoveryType.DBD]: luxon_1.Duration.fromObject({ hours: 3 }),
108
+ [RecoveryType.OTHER]: luxon_1.Duration.fromObject({ hours: 3 }),
109
+ [RecoveryType.DCD_NRP]: luxon_1.Duration.fromObject({ hours: 5 }),
110
+ };
97
111
  class TransportationRequest {
98
112
  constructor(transportationRequest) {
99
113
  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.8",
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
  }