@pulsecharterconnect/types 0.1.54 → 0.1.56

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,6 @@
1
1
  import { Facility, GroundService } from "./Organization";
2
2
  import { IProposalSegment } from "./Proposal";
3
+ import { OrganType } from "./TransportationRequest";
3
4
  export declare enum TripStatus {
4
5
  PREPARATION = "preparation",
5
6
  IN_PROGRESS = "in-progress",
@@ -112,6 +113,7 @@ export declare enum TripParticipantRole {
112
113
  SURGICAL_SUPPORT = "surgical-support",
113
114
  TRANSPLANT_COORDINATOR = "transplant-coordinator",
114
115
  PILOT = "pilot",
116
+ CREW = "crew",
115
117
  COPILOT = "copilot",
116
118
  DRIVER = "driver",
117
119
  TRANSPORATION_OPERATOR_DISPATCHER = "charter-operator-dispatcher",
@@ -184,7 +186,9 @@ export interface ITripOrganRecoverySegment extends ITripSegment {
184
186
  export interface ITrip {
185
187
  id: string;
186
188
  status: TripStatus;
187
- transportationRequestId: string;
189
+ transportationRequestId?: string;
190
+ unosId: string;
191
+ organTypes: OrganType[];
188
192
  currentSegmentNumber?: number;
189
193
  tripSegments: Array<ITripGroundSegment | ITripAirSegment | ITripOrganRecoverySegment>;
190
194
  scheduledStartTime: number;
@@ -202,7 +206,9 @@ export interface ITrip {
202
206
  export declare class Trip implements ITrip {
203
207
  id: string;
204
208
  status: TripStatus;
205
- transportationRequestId: string;
209
+ transportationRequestId?: string;
210
+ unosId: string;
211
+ organTypes: OrganType[];
206
212
  currentSegmentNumber?: number;
207
213
  tripSegments: Array<ITripGroundSegment | ITripAirSegment | ITripOrganRecoverySegment>;
208
214
  scheduledStartTime: number;
@@ -101,6 +101,7 @@ var TripParticipantRole;
101
101
  TripParticipantRole["SURGICAL_SUPPORT"] = "surgical-support";
102
102
  TripParticipantRole["TRANSPLANT_COORDINATOR"] = "transplant-coordinator";
103
103
  TripParticipantRole["PILOT"] = "pilot";
104
+ TripParticipantRole["CREW"] = "crew";
104
105
  TripParticipantRole["COPILOT"] = "copilot";
105
106
  TripParticipantRole["DRIVER"] = "driver";
106
107
  TripParticipantRole["TRANSPORATION_OPERATOR_DISPATCHER"] = "charter-operator-dispatcher";
@@ -139,6 +140,8 @@ class Trip {
139
140
  this.id = trip.id;
140
141
  this.status = trip.status;
141
142
  this.transportationRequestId = trip.transportationRequestId;
143
+ this.unosId = trip.unosId;
144
+ this.organTypes = trip.organTypes || [];
142
145
  this.currentSegmentNumber = trip.currentSegmentNumber || 0;
143
146
  this.tripSegments = trip.tripSegments || [];
144
147
  this.scheduledStartTime = trip.scheduledStartTime;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.1.54",
3
+ "version": "0.1.56",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",