@pulsecharterconnect/types 0.2.8 → 0.2.10

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,5 @@
1
1
  import { Facility } from "./Organization";
2
- import { OrganType } from "./TransportationRequest";
2
+ import { OrganTransport, OrganType, RecoveryType, TransportRequestType } from "./TransportationRequest";
3
3
  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",
@@ -53,6 +53,22 @@ export declare class CaseWorkflowStep implements ICaseWorkflowStep {
53
53
  workflowActions: ICaseWorkflowStepAction[];
54
54
  constructor(caseWorkflowStep: ICaseWorkflowStep);
55
55
  }
56
+ export type TransportationRequestAdditionalDetail = {
57
+ transportationRequestType: TransportRequestType;
58
+ orDateTime: number;
59
+ numberOfPassengers: number;
60
+ organTransportList: OrganTransport[];
61
+ specialInstructions?: string;
62
+ };
63
+ export interface ICreateCaseDto {
64
+ unosId: string;
65
+ organTypes: OrganType[];
66
+ recoveryType: RecoveryType;
67
+ caseRecipientFacility: Facility;
68
+ caseRecoveryLocation: Facility;
69
+ transportationRequested: boolean;
70
+ transportationRequestAdditionalDetail?: TransportationRequestAdditionalDetail;
71
+ }
56
72
  export interface ICase {
57
73
  id: string;
58
74
  unosId: string;
@@ -73,10 +73,14 @@ export declare enum LiverEquipmentType {
73
73
  ORS_LIFEPORT_LIVER = "ORS LifePort Liver",
74
74
  PARAGONIX_LIVERGUARD = "Paragonix LIVERguard"
75
75
  }
76
+ export declare enum KidneyEquipmentType {
77
+ PARAGONIX_KIDNEY_VAULT = "Paragonix KidneyVault"
78
+ }
76
79
  export type NoType = "";
80
+ export type EquipmentType = HeartEquipmentType | LungEquipmentType | LiverEquipmentType | KidneyEquipmentType | NoType;
77
81
  export type OrganTransport = {
78
82
  organType: OrganType;
79
- equipmentType?: HeartEquipmentType | LungEquipmentType | LiverEquipmentType | NoType;
83
+ equipmentType?: EquipmentType;
80
84
  };
81
85
  export declare enum SegmentLocationType {
82
86
  RECIPIENT_TRANSPLANT_CENTER = "Recipient Transplant Center",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ exports.getProcedureTime = exports.TransportationRequest = exports.RECOVERY_TIME_DURATION = exports.RECOVERY_TIME = exports.RecoveryType = exports.SegmentLocationType = 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
  exports.DISTANCE_THRESHOLD_MILES_AIR_VS_GROUND = 100;
6
6
  exports.AVERAGE_AIR_SPEED = 450;
@@ -83,6 +83,10 @@ var LiverEquipmentType;
83
83
  LiverEquipmentType["ORS_LIFEPORT_LIVER"] = "ORS LifePort Liver";
84
84
  LiverEquipmentType["PARAGONIX_LIVERGUARD"] = "Paragonix LIVERguard";
85
85
  })(LiverEquipmentType = exports.LiverEquipmentType || (exports.LiverEquipmentType = {}));
86
+ var KidneyEquipmentType;
87
+ (function (KidneyEquipmentType) {
88
+ KidneyEquipmentType["PARAGONIX_KIDNEY_VAULT"] = "Paragonix KidneyVault";
89
+ })(KidneyEquipmentType = exports.KidneyEquipmentType || (exports.KidneyEquipmentType = {}));
86
90
  var SegmentLocationType;
87
91
  (function (SegmentLocationType) {
88
92
  SegmentLocationType["RECIPIENT_TRANSPLANT_CENTER"] = "Recipient Transplant Center";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",