@pulsecharterconnect/types 0.1.20 → 0.1.22

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,4 +1,5 @@
1
1
  import { Facility, GroundService } from "./Organization";
2
+ export declare const DISTANCE_THRESHOLD_MILES_AIR_VS_GROUND = 100;
2
3
  export declare enum TransportationRequestStatus {
3
4
  CREATED = "created",
4
5
  AWAITING_SURGICAL_SERVICES_APPROVAL = "awaiting-surgical-services-approval",
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TransportationRequest = exports.RecoveryType = exports.SegmentLocationType = exports.LungEquipmentType = exports.HeartEquipmentType = exports.OrganType = exports.TransportRequestType = exports.OrganRecoveryStatus = exports.TransportationRequestProposalStatus = exports.TransportationRequestStatus = void 0;
3
+ exports.TransportationRequest = exports.RecoveryType = exports.SegmentLocationType = exports.LungEquipmentType = exports.HeartEquipmentType = exports.OrganType = exports.TransportRequestType = exports.OrganRecoveryStatus = exports.TransportationRequestProposalStatus = exports.TransportationRequestStatus = exports.DISTANCE_THRESHOLD_MILES_AIR_VS_GROUND = void 0;
4
+ exports.DISTANCE_THRESHOLD_MILES_AIR_VS_GROUND = 100;
4
5
  var TransportationRequestStatus;
5
6
  (function (TransportationRequestStatus) {
6
7
  TransportationRequestStatus["CREATED"] = "created";
@@ -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.20",
3
+ "version": "0.1.22",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",