@pulsecharterconnect/types 0.1.19 → 0.1.21

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.
@@ -98,6 +98,7 @@ export interface ITransportationRequest {
98
98
  transportationRequestSegments: TransportSegment[];
99
99
  recipientFacility: Facility;
100
100
  recoveryLocation: Facility;
101
+ tripDistanceInMiles?: number;
101
102
  orDateTimeGMT: number;
102
103
  orTimezone: string;
103
104
  recoveryType: RecoveryType;
@@ -118,6 +119,7 @@ export declare class TransportationRequest implements ITransportationRequest {
118
119
  transportationRequestSegments: TransportSegment[];
119
120
  recipientFacility: Facility;
120
121
  recoveryLocation: Facility;
122
+ tripDistanceInMiles?: number;
121
123
  orDateTimeGMT: number;
122
124
  orTimezone: string;
123
125
  recoveryType: RecoveryType;
@@ -96,6 +96,7 @@ class TransportationRequest {
96
96
  transportationRequest.transportationRequestSegments;
97
97
  this.recipientFacility = transportationRequest.recipientFacility;
98
98
  this.recoveryLocation = transportationRequest.recoveryLocation;
99
+ this.tripDistanceInMiles = transportationRequest.tripDistanceInMiles;
99
100
  this.orDateTimeGMT = transportationRequest.orDateTimeGMT;
100
101
  this.orTimezone = transportationRequest.orTimezone;
101
102
  this.recoveryType = transportationRequest.recoveryType;
@@ -139,6 +139,7 @@ export interface ITrip {
139
139
  id: string;
140
140
  status: TripStatus;
141
141
  transportationRequestId: string;
142
+ currentSegmentNumber?: number;
142
143
  tripSegments: Array<ITripGroundSegment | ITripAirSegment | ITripOrganRecoverySegment>;
143
144
  scheduledStartTime: number;
144
145
  scheduledCompletionTime: number;
@@ -152,6 +153,7 @@ export declare class Trip implements ITrip {
152
153
  id: string;
153
154
  status: TripStatus;
154
155
  transportationRequestId: string;
156
+ currentSegmentNumber?: number;
155
157
  tripSegments: Array<ITripGroundSegment | ITripAirSegment | ITripOrganRecoverySegment>;
156
158
  scheduledStartTime: number;
157
159
  scheduledCompletionTime: number;
@@ -83,6 +83,7 @@ class Trip {
83
83
  this.id = trip.id;
84
84
  this.status = trip.status;
85
85
  this.transportationRequestId = trip.transportationRequestId;
86
+ this.currentSegmentNumber = trip.currentSegmentNumber || 0;
86
87
  this.tripSegments = trip.tripSegments || [];
87
88
  this.scheduledStartTime = trip.scheduledStartTime;
88
89
  this.scheduledCompletionTime = trip.scheduledCompletionTime;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",