@pulsecharterconnect/types 0.0.16 → 0.0.18

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.
@@ -9,17 +9,28 @@ export type Facility = {
9
9
  formattedAddress: string;
10
10
  city: string;
11
11
  state: string;
12
+ zip: string;
12
13
  location?: {
13
14
  lat: number;
14
15
  lng: number;
15
16
  };
16
17
  utcOffsetMinutes: number;
17
18
  };
19
+ export type StateCode = 'AL' | 'AK' | 'AZ' | 'AR' | 'CA' | 'CO' | 'CT' | 'DE' | 'FL' | 'GA' | 'HI' | 'ID' | 'IL' | 'IN' | 'IA' | 'KS' | 'KY' | 'LA' | 'ME' | 'MD' | 'MA' | 'MI' | 'MN' | 'MS' | 'MO' | 'MT' | 'NE' | 'NV' | 'NH' | 'NJ' | 'NM' | 'NY' | 'NC' | 'ND' | 'OH' | 'OK' | 'OR' | 'PA' | 'RI' | 'SC' | 'SD' | 'TN' | 'TX' | 'UT' | 'VT' | 'VA' | 'WA' | 'WV' | 'WI' | 'WY';
20
+ export type County = {
21
+ countyName: string;
22
+ stateCode: StateCode;
23
+ };
24
+ export type UnosRegion = {
25
+ regionNumber: number;
26
+ stateCodes: StateCode[];
27
+ };
18
28
  export interface ISystemAdminOrganization {
19
29
  }
20
30
  export interface ITransplantCenterOrganization {
21
31
  facilities: Facility[];
22
32
  safetyRequirements: SafetyRequirements[];
33
+ unosRegionNumbersServed: number[];
23
34
  }
24
35
  export interface ITranportationOperatorOrganization {
25
36
  transportationServicesProvided: {
@@ -28,6 +39,10 @@ export interface ITranportationOperatorOrganization {
28
39
  };
29
40
  safetyCertifications: SafetyCertifications[];
30
41
  airFleet?: string[];
42
+ regionsServed: {
43
+ counties?: County[];
44
+ states?: StateCode[];
45
+ };
31
46
  }
32
47
  export interface IOrganization {
33
48
  id: string;
@@ -0,0 +1,57 @@
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';
9
+ export type NoType = '';
10
+ export type OrganTransport = {
11
+ organType: OrganType;
12
+ equipmentType: HeartEquipmentType | LungEquipmentType | NoType;
13
+ };
14
+ export type SegmentLocationType = 'Donor Transplant Center' | 'Recovery Location' | 'Address';
15
+ export type TransportSegment = {
16
+ originType: SegmentLocationType;
17
+ origin?: Facility;
18
+ destinationType: SegmentLocationType;
19
+ destination?: Facility;
20
+ };
21
+ export type RecoveryType = 'DBD' | 'DCD' | 'Other';
22
+ export type TransportationOptions = {
23
+ jet: boolean;
24
+ ground: boolean;
25
+ groundOptions?: GroundService[];
26
+ };
27
+ export interface ITransportationRequest {
28
+ unosId: string;
29
+ transportationRequestType: TransportRequestType;
30
+ transportationRequestSegments: TransportSegment[];
31
+ recipientFacility: Facility;
32
+ recoveryLocation: Facility;
33
+ orDateTimeGMT: number;
34
+ orTimezone: string;
35
+ recoveryType: RecoveryType;
36
+ organTransportList: OrganTransport[];
37
+ numberOfTravelers: number;
38
+ specialInstructions: string;
39
+ transportationOptions: TransportationOptions;
40
+ status: TransportationRequestStatus;
41
+ }
42
+ export declare class TransportationRequest implements ITransportationRequest {
43
+ unosId: string;
44
+ transportationRequestType: TransportRequestType;
45
+ transportationRequestSegments: TransportSegment[];
46
+ recipientFacility: Facility;
47
+ recoveryLocation: Facility;
48
+ orDateTimeGMT: number;
49
+ orTimezone: string;
50
+ recoveryType: RecoveryType;
51
+ organTransportList: OrganTransport[];
52
+ numberOfTravelers: number;
53
+ specialInstructions: string;
54
+ transportationOptions: TransportationOptions;
55
+ status: TransportationRequestStatus;
56
+ constructor(unosId: string, transportationRequestType: TransportRequestType, transportationRequestSegments: TransportSegment[], recipientFacility: Facility, recoveryLocation: Facility, orDateTimeGMT: number, orTimezone: string, recoveryType: RecoveryType, organTransportList: OrganTransport[], numberOfTravelers: number, specialInstructions: string, transportationOptions: TransportationOptions, status: TransportationRequestStatus);
57
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransportationRequest = void 0;
4
+ class TransportationRequest {
5
+ constructor(unosId, transportationRequestType, transportationRequestSegments, recipientFacility, recoveryLocation, orDateTimeGMT, orTimezone, recoveryType, organTransportList, numberOfTravelers, specialInstructions, transportationOptions, status) {
6
+ this.unosId = unosId;
7
+ this.transportationRequestType = transportationRequestType;
8
+ this.transportationRequestSegments = transportationRequestSegments;
9
+ this.recipientFacility = recipientFacility;
10
+ this.recoveryLocation = recoveryLocation;
11
+ this.orDateTimeGMT = orDateTimeGMT;
12
+ this.orTimezone = orTimezone;
13
+ this.recoveryType = recoveryType;
14
+ this.organTransportList = organTransportList;
15
+ this.numberOfTravelers = numberOfTravelers;
16
+ this.specialInstructions = specialInstructions;
17
+ this.transportationOptions = transportationOptions;
18
+ this.status = status;
19
+ }
20
+ }
21
+ exports.TransportationRequest = TransportationRequest;
@@ -46,3 +46,8 @@ export declare class User implements IUser {
46
46
  verifiedEmail?: boolean;
47
47
  constructor({ id, workOsId, primaryEmail, secondaryEmail, firstName, lastName, title, primaryPhoneNumber, secondaryPhoneNumber, privacyAgreedOnDate, termsAgreedOnDate, organizationId, role, addedByUserId, addedOnDate, lastLoginDate, notificationSettings, verifiedEmail, }: IUser);
48
48
  }
49
+ export declare class ResetPassword {
50
+ token: string;
51
+ password: string;
52
+ constructor(token: string, password: string);
53
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.User = void 0;
3
+ exports.ResetPassword = exports.User = void 0;
4
4
  class User {
5
5
  constructor({ id, workOsId, primaryEmail, secondaryEmail, firstName, lastName, title, primaryPhoneNumber, secondaryPhoneNumber, privacyAgreedOnDate, termsAgreedOnDate, organizationId, role, addedByUserId, addedOnDate, lastLoginDate, notificationSettings, verifiedEmail, }) {
6
6
  this.id = id;
@@ -29,3 +29,10 @@ class User {
29
29
  }
30
30
  }
31
31
  exports.User = User;
32
+ class ResetPassword {
33
+ constructor(token, password) {
34
+ this.token = token;
35
+ this.password = password;
36
+ }
37
+ }
38
+ exports.ResetPassword = ResetPassword;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",