@pulsecharterconnect/types 0.2.4 → 0.2.5

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.
@@ -140,6 +140,7 @@ export declare class TransportationRequest implements ITransportationRequest {
140
140
  createdAt?: number;
141
141
  updatedAt?: number;
142
142
  constructor(transportationRequest: TransportationRequest);
143
+ airTransportationRecommended(): boolean;
143
144
  }
144
145
  /**
145
146
  * Returns the procedure time in hours for a given recovery type
@@ -119,6 +119,13 @@ class TransportationRequest {
119
119
  this.createdAt = transportationRequest.createdAt;
120
120
  this.updatedAt = transportationRequest.updatedAt;
121
121
  }
122
+ airTransportationRecommended() {
123
+ if (this.tripDistanceInMiles &&
124
+ this.tripDistanceInMiles > exports.DISTANCE_THRESHOLD_MILES_AIR_VS_GROUND) {
125
+ return true;
126
+ }
127
+ return false;
128
+ }
122
129
  }
123
130
  exports.TransportationRequest = TransportationRequest;
124
131
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",