@pulsecharterconnect/types 0.0.28 → 0.0.29

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,24 +1,88 @@
1
1
  import { Facility, GroundService } from "./Organization";
2
- export type TransportationRequestStatus = 'created' | 'awaiting-proposal-approvals' | 'awaiting-surgical-services-approval' | 'awaiting-air-transportation-services-approval' | 'awaiting-ground-transportation-services-approval' | 'approved' | 'cancelled';
3
- export type TransportationRequestProposalStatus = 'created' | 'awaiting-approval' | 'update-requested' | 'cancelled' | 'approved' | 'approved-standby' | 'declined';
4
- export type OrganRecoveryStatus = 'preparation' | 'recovering-organ' | 'start-segment' | 'ground-transportation-segment-started' | 'ground-transporation-en-route' | 'ground-transportaion-segment-on-time' | 'ground-transportation-segment-delayed' | 'ground-transportation-segment-completed' | 'air-transportation-segment-started' | 'air-transportation-en-route' | 'air-transportation-segment-on-time' | 'air-transportation-segment-delayed' | 'air-transportation-segment-completed' | 'organ-recovery-segment-started' | 'incision-made' | 'cross-clamp' | 'organ-recovered' | 'segment-completed' | 'completed' | 'cancelled' | 'aborted';
5
- export type TransportRequestType = 'One-Way' | 'Round-Trip' | 'Multi-Leg';
6
- export type OrganType = 'Heart' | 'Lung' | 'Kidney' | 'Pancreas' | 'VCA' | 'Other';
7
- export type HeartEquipmentType = 'TransMedics OCS Heart' | 'Paragonix SherpaPak';
8
- export type LungEquipmentType = 'TransMedics OCS Lung' | 'Paragonix LUNGguard' | 'Paragonix BAROguard' | 'XVIVO';
2
+ export declare enum TransportationRequestStatus {
3
+ CREATED = "created",
4
+ AWAITING_SURGICAL_SERVICES_APPROVAL = "awaiting-surgical-services-approval",
5
+ AWAITING_AIR_TRANSPORTATION_SERVICES_APPROVAL = "awaiting-air-transportation-services-approval",
6
+ AWAITING_GROUND_TRANSPORTATION_SERVICES_APPROVAL = "awaiting-ground-transportation-services-approval",
7
+ APPROVED = "approved",
8
+ CANCELLED = "cancelled"
9
+ }
10
+ export declare enum TransportationRequestProposalStatus {
11
+ CREATED = "created",
12
+ AWAITING_APPROVAL = "awaiting-approval",
13
+ UPDATE_REQUESTED = "update-requested",
14
+ CANCELLED = "cancelled",
15
+ APPROVED = "approved",
16
+ APPROVED_STANDBY = "approved-standby",
17
+ DECLINED = "declined"
18
+ }
19
+ export declare enum OrganRecoveryStatus {
20
+ PREPARATION = "preparation",
21
+ RECOVERING_ORGAN = "recovering-organ",
22
+ START_SEGMENT = "start-segment",
23
+ GROUND_TRANSPORTATION_SEGMENT_STARTED = "ground-transportation-segment-started",
24
+ GROUND_TRANSPORTATION_EN_ROUTE = "ground-transporation-en-route",
25
+ GROUND_TRANSPORTATION_SEGMENT_ON_TIME = "ground-transportaion-segment-on-time",
26
+ GROUND_TRANSPORTATION_SEGMENT_DELAYED = "ground-transportation-segment-delayed",
27
+ GROUND_TRANSPORTATION_SEGMENT_COMPLETED = "ground-transportation-segment-completed",
28
+ AIR_TRANSPORTATION_SEGMENT_STARTED = "air-transportation-segment-started",
29
+ AIR_TRANSPORTATION_EN_ROUTE = "air-transportation-en-route",
30
+ AIR_TRANSPORTATION_SEGMENT_ON_TIME = "air-transportation-segment-on-time",
31
+ AIR_TRANSPORTATION_SEGMENT_DELAYED = "air-transportation-segment-delayed",
32
+ AIR_TRANSPORTATION_SEGMENT_COMPLETED = "air-transportation-segment-completed",
33
+ ORGAN_RECOVERY_SEGMENT_STARTED = "organ-recovery-segment-started",
34
+ INCISION_MADE = "incision-made",
35
+ CROSS_CLAMP = "cross-clamp",
36
+ ORGAN_RECOVERED = "organ-recovered",
37
+ SEGMENT_COMPLETED = "segment-completed",
38
+ COMPLETED = "completed",
39
+ CANCELLED = "cancelled",
40
+ ABORTED = "aborted"
41
+ }
42
+ export declare enum TransportRequestType {
43
+ ONE_WAY = "One-Way",
44
+ ROUND_TRIP = "Round-Trip",
45
+ MULTI_LEG = "Multi-Leg"
46
+ }
47
+ export declare enum OrganType {
48
+ HEART = "Heart",
49
+ LUNG = "Lung",
50
+ KIDNEY = "Kidney",
51
+ PANCREAS = "Pancreas",
52
+ VCA = "VCA",
53
+ OTHER = "Other"
54
+ }
55
+ export declare enum HeartEquipmentType {
56
+ TRANSMEDICS_OCS_HEART = "TransMedics OCS Heart",
57
+ PARAGONIX_SHERPA_PAK = "Paragonix SherpaPak"
58
+ }
59
+ export declare enum LungEquipmentType {
60
+ TRANSMEDICS_OCS_LUNG = "TransMedics OCS Lung",
61
+ PARAGONIX_LUNGGUARD = "Paragonix LUNGguard",
62
+ PARAGONIX_BAROGUARD = "Paragonix BAROguard",
63
+ XVIVO = "XVIVO"
64
+ }
9
65
  export type NoType = '';
10
66
  export type OrganTransport = {
11
67
  organType: OrganType;
12
68
  equipmentType: HeartEquipmentType | LungEquipmentType | NoType;
13
69
  };
14
- export type SegmentLocationType = 'Donor Transplant Center' | 'Recovery Location' | 'Address';
70
+ export declare enum SegmentLocationType {
71
+ DONOR_TRANSPLANT_CENTER = "Donor Transplant Center",
72
+ RECOVERY_LOCATION = "Recovery Location",
73
+ ADDRESS = "Address"
74
+ }
15
75
  export type TransportSegment = {
16
76
  originType: SegmentLocationType;
17
77
  origin?: Facility;
18
78
  destinationType: SegmentLocationType;
19
79
  destination?: Facility;
20
80
  };
21
- export type RecoveryType = 'DBD' | 'DCD' | 'Other';
81
+ export declare enum RecoveryType {
82
+ DBD = "DBD",
83
+ DCD = "DCD",
84
+ OTHER = "Other"
85
+ }
22
86
  export type TransportationOptions = {
23
87
  jet: boolean;
24
88
  ground: boolean;
@@ -1,6 +1,88 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TransportationRequest = void 0;
3
+ exports.TransportationRequest = exports.RecoveryType = exports.SegmentLocationType = exports.LungEquipmentType = exports.HeartEquipmentType = exports.OrganType = exports.TransportRequestType = exports.OrganRecoveryStatus = exports.TransportationRequestProposalStatus = exports.TransportationRequestStatus = void 0;
4
+ var TransportationRequestStatus;
5
+ (function (TransportationRequestStatus) {
6
+ TransportationRequestStatus["CREATED"] = "created";
7
+ TransportationRequestStatus["AWAITING_SURGICAL_SERVICES_APPROVAL"] = "awaiting-surgical-services-approval";
8
+ TransportationRequestStatus["AWAITING_AIR_TRANSPORTATION_SERVICES_APPROVAL"] = "awaiting-air-transportation-services-approval";
9
+ TransportationRequestStatus["AWAITING_GROUND_TRANSPORTATION_SERVICES_APPROVAL"] = "awaiting-ground-transportation-services-approval";
10
+ TransportationRequestStatus["APPROVED"] = "approved";
11
+ TransportationRequestStatus["CANCELLED"] = "cancelled";
12
+ })(TransportationRequestStatus = exports.TransportationRequestStatus || (exports.TransportationRequestStatus = {}));
13
+ var TransportationRequestProposalStatus;
14
+ (function (TransportationRequestProposalStatus) {
15
+ TransportationRequestProposalStatus["CREATED"] = "created";
16
+ TransportationRequestProposalStatus["AWAITING_APPROVAL"] = "awaiting-approval";
17
+ TransportationRequestProposalStatus["UPDATE_REQUESTED"] = "update-requested";
18
+ TransportationRequestProposalStatus["CANCELLED"] = "cancelled";
19
+ TransportationRequestProposalStatus["APPROVED"] = "approved";
20
+ TransportationRequestProposalStatus["APPROVED_STANDBY"] = "approved-standby";
21
+ TransportationRequestProposalStatus["DECLINED"] = "declined";
22
+ })(TransportationRequestProposalStatus = exports.TransportationRequestProposalStatus || (exports.TransportationRequestProposalStatus = {}));
23
+ var OrganRecoveryStatus;
24
+ (function (OrganRecoveryStatus) {
25
+ OrganRecoveryStatus["PREPARATION"] = "preparation";
26
+ OrganRecoveryStatus["RECOVERING_ORGAN"] = "recovering-organ";
27
+ OrganRecoveryStatus["START_SEGMENT"] = "start-segment";
28
+ OrganRecoveryStatus["GROUND_TRANSPORTATION_SEGMENT_STARTED"] = "ground-transportation-segment-started";
29
+ OrganRecoveryStatus["GROUND_TRANSPORTATION_EN_ROUTE"] = "ground-transporation-en-route";
30
+ OrganRecoveryStatus["GROUND_TRANSPORTATION_SEGMENT_ON_TIME"] = "ground-transportaion-segment-on-time";
31
+ OrganRecoveryStatus["GROUND_TRANSPORTATION_SEGMENT_DELAYED"] = "ground-transportation-segment-delayed";
32
+ OrganRecoveryStatus["GROUND_TRANSPORTATION_SEGMENT_COMPLETED"] = "ground-transportation-segment-completed";
33
+ OrganRecoveryStatus["AIR_TRANSPORTATION_SEGMENT_STARTED"] = "air-transportation-segment-started";
34
+ OrganRecoveryStatus["AIR_TRANSPORTATION_EN_ROUTE"] = "air-transportation-en-route";
35
+ OrganRecoveryStatus["AIR_TRANSPORTATION_SEGMENT_ON_TIME"] = "air-transportation-segment-on-time";
36
+ OrganRecoveryStatus["AIR_TRANSPORTATION_SEGMENT_DELAYED"] = "air-transportation-segment-delayed";
37
+ OrganRecoveryStatus["AIR_TRANSPORTATION_SEGMENT_COMPLETED"] = "air-transportation-segment-completed";
38
+ OrganRecoveryStatus["ORGAN_RECOVERY_SEGMENT_STARTED"] = "organ-recovery-segment-started";
39
+ OrganRecoveryStatus["INCISION_MADE"] = "incision-made";
40
+ OrganRecoveryStatus["CROSS_CLAMP"] = "cross-clamp";
41
+ OrganRecoveryStatus["ORGAN_RECOVERED"] = "organ-recovered";
42
+ OrganRecoveryStatus["SEGMENT_COMPLETED"] = "segment-completed";
43
+ OrganRecoveryStatus["COMPLETED"] = "completed";
44
+ OrganRecoveryStatus["CANCELLED"] = "cancelled";
45
+ OrganRecoveryStatus["ABORTED"] = "aborted";
46
+ })(OrganRecoveryStatus = exports.OrganRecoveryStatus || (exports.OrganRecoveryStatus = {}));
47
+ var TransportRequestType;
48
+ (function (TransportRequestType) {
49
+ TransportRequestType["ONE_WAY"] = "One-Way";
50
+ TransportRequestType["ROUND_TRIP"] = "Round-Trip";
51
+ TransportRequestType["MULTI_LEG"] = "Multi-Leg";
52
+ })(TransportRequestType = exports.TransportRequestType || (exports.TransportRequestType = {}));
53
+ var OrganType;
54
+ (function (OrganType) {
55
+ OrganType["HEART"] = "Heart";
56
+ OrganType["LUNG"] = "Lung";
57
+ OrganType["KIDNEY"] = "Kidney";
58
+ OrganType["PANCREAS"] = "Pancreas";
59
+ OrganType["VCA"] = "VCA";
60
+ OrganType["OTHER"] = "Other";
61
+ })(OrganType = exports.OrganType || (exports.OrganType = {}));
62
+ var HeartEquipmentType;
63
+ (function (HeartEquipmentType) {
64
+ HeartEquipmentType["TRANSMEDICS_OCS_HEART"] = "TransMedics OCS Heart";
65
+ HeartEquipmentType["PARAGONIX_SHERPA_PAK"] = "Paragonix SherpaPak";
66
+ })(HeartEquipmentType = exports.HeartEquipmentType || (exports.HeartEquipmentType = {}));
67
+ var LungEquipmentType;
68
+ (function (LungEquipmentType) {
69
+ LungEquipmentType["TRANSMEDICS_OCS_LUNG"] = "TransMedics OCS Lung";
70
+ LungEquipmentType["PARAGONIX_LUNGGUARD"] = "Paragonix LUNGguard";
71
+ LungEquipmentType["PARAGONIX_BAROGUARD"] = "Paragonix BAROguard";
72
+ LungEquipmentType["XVIVO"] = "XVIVO";
73
+ })(LungEquipmentType = exports.LungEquipmentType || (exports.LungEquipmentType = {}));
74
+ var SegmentLocationType;
75
+ (function (SegmentLocationType) {
76
+ SegmentLocationType["DONOR_TRANSPLANT_CENTER"] = "Donor Transplant Center";
77
+ SegmentLocationType["RECOVERY_LOCATION"] = "Recovery Location";
78
+ SegmentLocationType["ADDRESS"] = "Address";
79
+ })(SegmentLocationType = exports.SegmentLocationType || (exports.SegmentLocationType = {}));
80
+ var RecoveryType;
81
+ (function (RecoveryType) {
82
+ RecoveryType["DBD"] = "DBD";
83
+ RecoveryType["DCD"] = "DCD";
84
+ RecoveryType["OTHER"] = "Other";
85
+ })(RecoveryType = exports.RecoveryType || (exports.RecoveryType = {}));
4
86
  class TransportationRequest {
5
87
  constructor(transportationRequest) {
6
88
  this.id = transportationRequest.id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",