@pulsecharterconnect/types 0.2.64 → 0.2.66

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.
@@ -85,6 +85,10 @@ export interface IProposal {
85
85
  reasonForAcceptDeclineOrUpdate?: string;
86
86
  additionalInformation?: string;
87
87
  source?: "Form" | "Document";
88
+ physicianApproverName?: string;
89
+ administratorApproverName?: string;
90
+ opoCostCoverage?: number;
91
+ opoApproverName?: string;
88
92
  createdAt?: number;
89
93
  updatedAt?: number;
90
94
  }
@@ -105,6 +109,10 @@ export declare class Proposal implements IProposal {
105
109
  updatedAt?: number;
106
110
  acceptedOrDeclinedByUserId?: string;
107
111
  reasonForAcceptDeclineOrUpdate?: string;
112
+ physicianApproverName?: string;
113
+ administratorApproverName?: string;
114
+ opoCostCoverage?: number;
115
+ opoApproverName?: string;
108
116
  constructor(proposal: IProposal);
109
117
  createTripAirSegmentsFromProposal(tripAirSegments: ITripSegment[]): ITripSegment[];
110
118
  createTripGroundSegmentsFromProposal(tripGroundSegments: ITripSegment[]): ITripSegment[];
@@ -45,6 +45,10 @@ class Proposal {
45
45
  this.acceptedOrDeclinedByUserId = proposal.acceptedOrDeclinedByUserId;
46
46
  this.reasonForAcceptDeclineOrUpdate =
47
47
  proposal.reasonForAcceptDeclineOrUpdate;
48
+ this.physicianApproverName = proposal.physicianApproverName;
49
+ this.administratorApproverName = proposal.administratorApproverName;
50
+ this.opoCostCoverage = proposal.opoCostCoverage;
51
+ this.opoApproverName = proposal.opoApproverName;
48
52
  }
49
53
  createTripAirSegmentsFromProposal(tripAirSegments) {
50
54
  tripAirSegments = this.proposalSegments
@@ -240,8 +240,8 @@ class TransportationRequest {
240
240
  segmentStatus: Trip_1.SegmentStatus.NOT_STARTED,
241
241
  passengers: [],
242
242
  segmentNumber: 0,
243
- scheduledArrivalAirportCode: `${((_b = this.recoveryLocation) === null || _b === void 0 ? void 0 : _b.preferredNearbyAirportCode) +
244
- " - preferred" || ((_c = this.recoveryLocation) === null || _c === void 0 ? void 0 : _c.city) + " area airport"}`,
243
+ scheduledArrivalAirportCode: `${((_b = this.recoveryLocation) === null || _b === void 0 ? void 0 : _b.preferredNearbyAirportCode) ||
244
+ ((_c = this.recoveryLocation) === null || _c === void 0 ? void 0 : _c.city) + " area airport"}`,
245
245
  scheduledArrivalAirportLocation: ((_d = this.recoveryLocation) === null || _d === void 0 ? void 0 : _d.location) || {
246
246
  lat: 0,
247
247
  lng: 0,
@@ -251,8 +251,8 @@ class TransportationRequest {
251
251
  .minus({ hours: 1, minutes: 30 })
252
252
  .toMillis(),
253
253
  scheduledArrivalTimeTimezone: distalTimezone,
254
- scheduledDepartureAirportCode: `${((_f = this.recipientFacility) === null || _f === void 0 ? void 0 : _f.preferredNearbyAirportCode) +
255
- " - preferred" || ((_g = this.recipientFacility) === null || _g === void 0 ? void 0 : _g.city) + " area airport"}`,
254
+ scheduledDepartureAirportCode: `${((_f = this.recipientFacility) === null || _f === void 0 ? void 0 : _f.preferredNearbyAirportCode) ||
255
+ ((_g = this.recipientFacility) === null || _g === void 0 ? void 0 : _g.city) + " area airport"}`,
256
256
  scheduledDepartureFBO: (_h = this.recipientFacility) === null || _h === void 0 ? void 0 : _h.preferredNearbyFBO,
257
257
  scheduledDepartureAirportLocation: ((_j = this.recipientFacility) === null || _j === void 0 ? void 0 : _j.location) || {
258
258
  lat: 0,
@@ -270,8 +270,8 @@ class TransportationRequest {
270
270
  segmentStatus: Trip_1.SegmentStatus.NOT_STARTED,
271
271
  segmentType: Trip_1.SegmentType.AIR_TRANSPORTATION,
272
272
  segmentNumber: 0,
273
- scheduledDepartureAirportCode: `${((_k = this.recoveryLocation) === null || _k === void 0 ? void 0 : _k.preferredNearbyAirportCode) +
274
- " - preferred" || ((_l = this.recoveryLocation) === null || _l === void 0 ? void 0 : _l.city) + " area airport"}`,
273
+ scheduledDepartureAirportCode: `${((_k = this.recoveryLocation) === null || _k === void 0 ? void 0 : _k.preferredNearbyAirportCode) ||
274
+ ((_l = this.recoveryLocation) === null || _l === void 0 ? void 0 : _l.city) + " area airport"}`,
275
275
  scheduledDepartureFBO: (_m = this.recoveryLocation) === null || _m === void 0 ? void 0 : _m.preferredNearbyFBO,
276
276
  scheduledDepartureAirportLocation: ((_o = this.recoveryLocation) === null || _o === void 0 ? void 0 : _o.location) || {
277
277
  lat: 0,
@@ -281,8 +281,8 @@ class TransportationRequest {
281
281
  .plus(recoveryTimeDuration)
282
282
  .plus({ hours: 1, minutes: 30 })
283
283
  .toMillis(),
284
- scheduledArrivalAirportCode: `${((_p = this.recipientFacility) === null || _p === void 0 ? void 0 : _p.preferredNearbyAirportCode) +
285
- " - preferred" || ((_q = this.recipientFacility) === null || _q === void 0 ? void 0 : _q.city) + " area airport"}`,
284
+ scheduledArrivalAirportCode: `${((_p = this.recipientFacility) === null || _p === void 0 ? void 0 : _p.preferredNearbyAirportCode) ||
285
+ ((_q = this.recipientFacility) === null || _q === void 0 ? void 0 : _q.city) + " area airport"}`,
286
286
  scheduledArrivalFBO: (_r = this.recipientFacility) === null || _r === void 0 ? void 0 : _r.preferredNearbyFBO,
287
287
  scheduledArrivalAirportLocation: ((_s = this.recipientFacility) === null || _s === void 0 ? void 0 : _s.location) || {
288
288
  lat: 0,
@@ -308,8 +308,7 @@ class TransportationRequest {
308
308
  segmentNumber: 0,
309
309
  scheduledDepartureAirportCode: `${!((_t = this.pickupLocation) === null || _t === void 0 ? void 0 : _t.location) &&
310
310
  ((_u = this.recipientFacility) === null || _u === void 0 ? void 0 : _u.preferredNearbyAirportCode)
311
- ? ((_v = this.recipientFacility) === null || _v === void 0 ? void 0 : _v.preferredNearbyAirportCode) +
312
- " - preferred"
311
+ ? (_v = this.recipientFacility) === null || _v === void 0 ? void 0 : _v.preferredNearbyAirportCode
313
312
  : ((_w = this.pickupLocation) === null || _w === void 0 ? void 0 : _w.city) + " area airport" ||
314
313
  ((_x = this.recoveryLocation) === null || _x === void 0 ? void 0 : _x.city) + " area airport"}`,
315
314
  scheduledDepartureFBO: !((_y = this.pickupLocation) === null || _y === void 0 ? void 0 : _y.location)
@@ -323,8 +322,8 @@ class TransportationRequest {
323
322
  scheduledDepartureTime: luxon_1.DateTime.fromMillis(this.orDateTimeGMT)
324
323
  .plus({ hours: 1, minutes: 0 })
325
324
  .toMillis(),
326
- scheduledArrivalAirportCode: `${((_2 = this.recipientFacility) === null || _2 === void 0 ? void 0 : _2.preferredNearbyAirportCode) +
327
- " - preferred" || ((_3 = this.recipientFacility) === null || _3 === void 0 ? void 0 : _3.city) + " area airport"}`,
325
+ scheduledArrivalAirportCode: `${((_2 = this.recipientFacility) === null || _2 === void 0 ? void 0 : _2.preferredNearbyAirportCode) ||
326
+ ((_3 = this.recipientFacility) === null || _3 === void 0 ? void 0 : _3.city) + " area airport"}`,
328
327
  scheduledArrivalFBO: (_4 = this.recipientFacility) === null || _4 === void 0 ? void 0 : _4.preferredNearbyFBO,
329
328
  scheduledArrivalAirportLocation: this.recipientFacility.location || {
330
329
  lat: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.2.64",
3
+ "version": "0.2.66",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",