@pulsecharterconnect/types 0.2.88 → 0.2.90

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.
@@ -37,7 +37,7 @@ export declare enum ProposalLocationProxmityAssociationType {
37
37
  export declare enum ProposalAirSegmentType {
38
38
  REPOSITIONING_ROUND_TRIP = "Repositioning Round Trip",
39
39
  REPOSITIONING_ONE_WAY = "Repositioning One Way",
40
- OUTBOUND_FROM_RECIPIENT_FACILITY_ONE_WAY = "Outbound from Recipient Facility One Way",
40
+ OUTBOUND_FROM_RECIPIENT_FACILITY_ROUND_TRIP = "Outbound from Recipient Facility",
41
41
  INBOUND_TO_RECOVERY_LOCATION = "Inbound to Recovery Location",
42
42
  INBOUND_TO_RECIPIENT_LOCATION = "Inbound to Recipient Location",
43
43
  EQUIPMENT_RETURN = "Equipment Return",
@@ -24,7 +24,7 @@ var ProposalAirSegmentType;
24
24
  (function (ProposalAirSegmentType) {
25
25
  ProposalAirSegmentType["REPOSITIONING_ROUND_TRIP"] = "Repositioning Round Trip";
26
26
  ProposalAirSegmentType["REPOSITIONING_ONE_WAY"] = "Repositioning One Way";
27
- ProposalAirSegmentType["OUTBOUND_FROM_RECIPIENT_FACILITY_ONE_WAY"] = "Outbound from Recipient Facility One Way";
27
+ ProposalAirSegmentType["OUTBOUND_FROM_RECIPIENT_FACILITY_ROUND_TRIP"] = "Outbound from Recipient Facility";
28
28
  ProposalAirSegmentType["INBOUND_TO_RECOVERY_LOCATION"] = "Inbound to Recovery Location";
29
29
  ProposalAirSegmentType["INBOUND_TO_RECIPIENT_LOCATION"] = "Inbound to Recipient Location";
30
30
  ProposalAirSegmentType["EQUIPMENT_RETURN"] = "Equipment Return";
@@ -73,6 +73,7 @@ class Proposal {
73
73
  var _a;
74
74
  const tripAirSegment = {
75
75
  segmentNumber: 0,
76
+ airSegmentType: proposalSegment.airSegmentType || ProposalAirSegmentType.OTHER,
76
77
  segmentType: _1.SegmentType.AIR_TRANSPORTATION,
77
78
  segmentStatus: _1.SegmentStatus.NOT_STARTED,
78
79
  additionalInformation: this.additionalInformation,
@@ -103,9 +104,10 @@ class Proposal {
103
104
  segmentType: _1.SegmentType.GROUND_TRANSPORTATION,
104
105
  segmentStatus: _1.SegmentStatus.NOT_STARTED,
105
106
  additionalInformation: this.additionalInformation,
106
- scheduledDepartureTime: inboundToRecipientAirSegment.scheduledDepartureTime,
107
- scheduledDepartureTimeTimezone: inboundToRecipientAirSegment.scheduledDepartureTimezone || "",
108
- scheduledArrivalTime: inboundToRecipientAirSegment.scheduledArrivalTime,
107
+ scheduledDepartureTime: inboundToRecipientAirSegment.scheduledArrivalTime,
108
+ scheduledDepartureTimeTimezone: inboundToRecipientAirSegment.scheduledArrivalTimezone || "",
109
+ scheduledArrivalTime: inboundToRecipientAirSegment.scheduledArrivalTime +
110
+ (inboundToRecipientAirSegment.anticipatedDriveTime || 0),
109
111
  scheduledArrivalTimeTimezone: inboundToRecipientAirSegment.scheduledArrivalTimezone || "",
110
112
  transportationOperatorId: this.transportationOperatorId,
111
113
  scheduledDepartureLocation: inboundToRecipientAirSegment.scheduledArrivalFBO
@@ -1,7 +1,7 @@
1
1
  import { ICommunicationsChannel } from "./Communications";
2
2
  import { IFlightTrackingLocation } from "./FlightTracking";
3
3
  import { Facility, GroundService } from "./Organization";
4
- import { IProposalSegment, TypeOfService } from "./Proposal";
4
+ import { IProposalSegment, ProposalAirSegmentType, TypeOfService } from "./Proposal";
5
5
  import { OrganType, RecoveryType } from "./TransportationRequest";
6
6
  export declare enum TripStatus {
7
7
  PREPARATION = "preparation",
@@ -95,6 +95,7 @@ export interface ITripGroundSegment extends ITripSegment {
95
95
  groundTransportationServices: ITripGroundTransportationService[];
96
96
  }
97
97
  export interface ITripAirSegment extends ITripSegment {
98
+ airSegmentType?: ProposalAirSegmentType;
98
99
  transportationOperatorId: string;
99
100
  scheduledDepartureAirportCode: string;
100
101
  scheduledDepartureAirportLocation: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.2.88",
3
+ "version": "0.2.90",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",