@pulsecharterconnect/types 0.2.30 → 0.2.31

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.
@@ -104,6 +104,6 @@ export declare class Proposal implements IProposal {
104
104
  acceptedOrDeclinedByUserId?: string;
105
105
  reasonForAcceptDeclineOrUpdate?: string;
106
106
  constructor(proposal: IProposal);
107
- createTripAirSegmentsFromProposal(tripAirSegments: ITripSegment[], proposal: Proposal): ITripSegment[];
108
- createTripGroundSegmentsFromProposal(tripGroundSegments: ITripSegment[], proposal: Proposal): ITripSegment[];
107
+ createTripAirSegmentsFromProposal(tripAirSegments: ITripSegment[]): ITripSegment[];
108
+ createTripGroundSegmentsFromProposal(tripGroundSegments: ITripSegment[]): ITripSegment[];
109
109
  }
@@ -45,8 +45,8 @@ class Proposal {
45
45
  this.reasonForAcceptDeclineOrUpdate =
46
46
  proposal.reasonForAcceptDeclineOrUpdate;
47
47
  }
48
- createTripAirSegmentsFromProposal(tripAirSegments, proposal) {
49
- tripAirSegments = proposal.proposalSegments
48
+ createTripAirSegmentsFromProposal(tripAirSegments) {
49
+ tripAirSegments = this.proposalSegments
50
50
  .filter((segment) => segment.typeOfService === TypeOfService.AIR)
51
51
  .map((proposalSegment) => {
52
52
  var _a;
@@ -54,13 +54,13 @@ class Proposal {
54
54
  segmentNumber: 0,
55
55
  segmentType: _1.SegmentType.AIR_TRANSPORTATION,
56
56
  segmentStatus: _1.SegmentStatus.NOT_STARTED,
57
- additionalInformation: proposal.additionalInformation,
57
+ additionalInformation: this.additionalInformation,
58
58
  scheduledDepartureTime: proposalSegment.scheduledDepartureTime,
59
59
  scheduledDepartureTimeTimezone: proposalSegment.scheduledDepartureTimezone || "",
60
60
  scheduledArrivalTime: proposalSegment.scheduledArrivalTime,
61
61
  scheduledArrivalTimeTimezone: proposalSegment.scheduledArrivalTimezone || "",
62
62
  typeOfService: TypeOfService.AIR,
63
- transportationOperatorId: proposal.transportationOperatorId,
63
+ transportationOperatorId: this.transportationOperatorId,
64
64
  scheduledDepartureAirportCode: proposalSegment.scheduledDepartureAirportCode,
65
65
  scheduledDepartureAirportLocation: proposalSegment.scheduledDepartureAirportLocation,
66
66
  scheduledArrivalAirportCode: proposalSegment.scheduledArrivalAirportCode,
@@ -74,8 +74,8 @@ class Proposal {
74
74
  });
75
75
  return tripAirSegments;
76
76
  }
77
- createTripGroundSegmentsFromProposal(tripGroundSegments, proposal) {
78
- proposal.proposalSegments
77
+ createTripGroundSegmentsFromProposal(tripGroundSegments) {
78
+ this.proposalSegments
79
79
  .filter((segment) => segment.typeOfService ===
80
80
  TypeOfService.GROUND)
81
81
  .map((proposalSegment) => {
@@ -83,13 +83,13 @@ class Proposal {
83
83
  segmentNumber: 0,
84
84
  segmentType: _1.SegmentType.GROUND_TRANSPORTATION,
85
85
  segmentStatus: _1.SegmentStatus.NOT_STARTED,
86
- additionalInformation: proposal.additionalInformation,
86
+ additionalInformation: this.additionalInformation,
87
87
  scheduledDepartureTime: proposalSegment.scheduledDepartureTime,
88
88
  scheduledDepartureTimeTimezone: proposalSegment.scheduledDepartureTimezone || "",
89
89
  scheduledArrivalTime: proposalSegment.scheduledArrivalTime,
90
90
  scheduledArrivalTimeTimezone: proposalSegment.scheduledArrivalTimezone || "",
91
91
  typeOfService: TypeOfService.GROUND,
92
- transportationOperatorId: proposal.transportationOperatorId,
92
+ transportationOperatorId: this.transportationOperatorId,
93
93
  scheduledDepartureLocation: proposalSegment.scheduledDepartureLocation,
94
94
  scheduledArrivalLocation: proposalSegment.scheduledArrivalLocation,
95
95
  groundTransportationServices: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.2.30",
3
+ "version": "0.2.31",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",