@pulsecharterconnect/types 0.0.23 → 0.0.25

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.
@@ -41,6 +41,19 @@ export type UnosRegion = {
41
41
  regionNumber: number;
42
42
  stateCodes: StateCode[];
43
43
  };
44
+ export interface Aircraft {
45
+ tailNumber: string;
46
+ model: string;
47
+ year: number;
48
+ maxPassengers: number;
49
+ insurance: [
50
+ {
51
+ expirationDate: number;
52
+ documentUrl: string;
53
+ }
54
+ ];
55
+ safetyCertifications: SafetyCertifications[];
56
+ }
44
57
  export interface ISystemAdminOrganization {
45
58
  }
46
59
  export interface ITransplantCenterOrganization {
@@ -53,11 +66,11 @@ export interface ITranportationOperatorOrganization {
53
66
  air: AirService[];
54
67
  ground: GroundService[];
55
68
  };
56
- safetyCertifications: SafetyCertifications[];
57
- airFleet?: string[];
69
+ airFleet?: Aircraft[];
58
70
  regionsServed: {
59
71
  counties?: County[];
60
72
  states?: StateCode[];
73
+ unosRegions?: number[];
61
74
  };
62
75
  }
63
76
  export interface IOrganization {
@@ -77,5 +90,5 @@ export declare class Organization implements IOrganization {
77
90
  systemAdminOrganizationDetails?: ISystemAdminOrganization;
78
91
  transplantCenterOrganizationDetails?: ITransplantCenterOrganization;
79
92
  transportationOperatorOrganizationDetails?: ITranportationOperatorOrganization;
80
- constructor(id: string, workOsId: string, name: string, type: OrganizationType, systemAdminOrganizationDetails?: ISystemAdminOrganization, transplantCenterOrganizationDetails?: ITransplantCenterOrganization, transportationOperatorOrganizationDetails?: ITranportationOperatorOrganization);
93
+ constructor(organization: IOrganization);
81
94
  }
@@ -16,20 +16,20 @@ var SafetyRequirements;
16
16
  SafetyRequirements["OTHER"] = "Other";
17
17
  })(SafetyRequirements = exports.SafetyRequirements || (exports.SafetyRequirements = {}));
18
18
  class Organization {
19
- constructor(id, workOsId, name, type, systemAdminOrganizationDetails, transplantCenterOrganizationDetails, transportationOperatorOrganizationDetails) {
20
- this.id = id;
21
- this.workOsId = workOsId;
22
- this.name = name;
23
- this.type = type;
24
- switch (type) {
19
+ constructor(organization) {
20
+ this.id = organization.id;
21
+ this.workOsId = organization.workOsId;
22
+ this.name = organization.name;
23
+ this.type = organization.type;
24
+ switch (organization.type) {
25
25
  case 'System Admin':
26
- this.systemAdminOrganizationDetails = systemAdminOrganizationDetails;
26
+ this.systemAdminOrganizationDetails = organization.systemAdminOrganizationDetails;
27
27
  break;
28
28
  case 'Transplant Center':
29
- this.transplantCenterOrganizationDetails = transplantCenterOrganizationDetails;
29
+ this.transplantCenterOrganizationDetails = organization.transplantCenterOrganizationDetails;
30
30
  break;
31
31
  case 'Transportation Operator':
32
- this.transportationOperatorOrganizationDetails = transportationOperatorOrganizationDetails;
32
+ this.transportationOperatorOrganizationDetails = organization.transportationOperatorOrganizationDetails;
33
33
  break;
34
34
  default:
35
35
  throw new Error('Organization type not recognized');
@@ -37,7 +37,8 @@ export interface ITransportationRequest {
37
37
  recoveryType: RecoveryType;
38
38
  organTransportList: OrganTransport[];
39
39
  numberOfTravelers: number;
40
- specialInstructions: string;
40
+ specialInstructions?: string;
41
+ surgicalServicesRequested: boolean;
41
42
  transportationOptions: TransportationOptions;
42
43
  status: TransportationRequestStatus;
43
44
  }
@@ -54,7 +55,8 @@ export declare class TransportationRequest implements ITransportationRequest {
54
55
  recoveryType: RecoveryType;
55
56
  organTransportList: OrganTransport[];
56
57
  numberOfTravelers: number;
57
- specialInstructions: string;
58
+ specialInstructions?: string;
59
+ surgicalServicesRequested: boolean;
58
60
  transportationOptions: TransportationOptions;
59
61
  status: TransportationRequestStatus;
60
62
  constructor(transportationRequest: TransportationRequest);
@@ -16,6 +16,7 @@ class TransportationRequest {
16
16
  this.organTransportList = transportationRequest.organTransportList;
17
17
  this.numberOfTravelers = transportationRequest.numberOfTravelers;
18
18
  this.specialInstructions = transportationRequest.specialInstructions;
19
+ this.surgicalServicesRequested = transportationRequest.surgicalServicesRequested;
19
20
  this.transportationOptions = transportationRequest.transportationOptions;
20
21
  this.status = transportationRequest.status;
21
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",