@pulsecharterconnect/types 0.2.45 → 0.2.47
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.
|
@@ -153,6 +153,7 @@ export interface ITransportationRequest {
|
|
|
153
153
|
surgicalServicesRequested: boolean;
|
|
154
154
|
transportationOptions: TransportationOptions;
|
|
155
155
|
status: TransportationRequestStatus;
|
|
156
|
+
cancellationReason?: string;
|
|
156
157
|
createdAt?: number;
|
|
157
158
|
updatedAt?: number;
|
|
158
159
|
}
|
|
@@ -175,6 +176,7 @@ export declare class TransportationRequest implements ITransportationRequest {
|
|
|
175
176
|
surgicalServicesRequested: boolean;
|
|
176
177
|
transportationOptions: TransportationOptions;
|
|
177
178
|
status: TransportationRequestStatus;
|
|
179
|
+
cancellationReason?: string | undefined;
|
|
178
180
|
createdAt?: number;
|
|
179
181
|
updatedAt?: number;
|
|
180
182
|
constructor(transportationRequest: ITransportationRequest);
|
|
@@ -189,6 +189,7 @@ class TransportationRequest {
|
|
|
189
189
|
transportationRequest.surgicalServicesRequested;
|
|
190
190
|
this.transportationOptions = transportationRequest.transportationOptions;
|
|
191
191
|
this.status = transportationRequest.status;
|
|
192
|
+
this.cancellationReason = transportationRequest.cancellationReason;
|
|
192
193
|
this.createdAt = transportationRequest.createdAt;
|
|
193
194
|
this.updatedAt = transportationRequest.updatedAt;
|
|
194
195
|
}
|
|
@@ -542,7 +543,7 @@ class TransportationRequest {
|
|
|
542
543
|
scheduledORTimeTimezone: this.orTimezone,
|
|
543
544
|
estimatedOrganRecoveryTime: this.transportationRequestType === TransportRequestType.ONE_WAY
|
|
544
545
|
? 0
|
|
545
|
-
: luxon_1.DateTime.fromMillis(this.orDateTimeGMT)
|
|
546
|
+
: luxon_1.DateTime.fromMillis(this.orDateTimeGMT, { zone: this.orTimezone })
|
|
546
547
|
.plus(exports.RECOVERY_TIME_DURATION[this.recoveryType] || "3 hours")
|
|
547
548
|
.toMillis(),
|
|
548
549
|
estimatedOrganRecoveryTimeTimezone: this.orTimezone,
|