sm-types 1.8.8 → 1.9.0
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.
- package/package.json +1 -1
- package/sm-airlines/dtos/request.d.ts +5 -10
- package/sm-airlines/dtos/response.d.ts +3 -0
- package/sm-airlines/index.d.ts +25 -308
- package/sm-airlines/index.js +0 -78
- package/sm-azul/index.d.ts +831 -187
- package/sm-azul/index.js +122 -15
- package/sm-car-rentals/index.d.ts +63 -1
- package/sm-car-rentals/index.js +12 -1
- package/sm-wcf/index.d.ts +5 -5
- package/sm-azul/shared/index.d.ts +0 -768
- package/sm-azul/shared/index.js +0 -210
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RentabilityTypeEnum, SuppliersEnum } from "../../common";
|
|
2
|
-
import { IPaxInfo, IPassengerInfo, IContactInfo, IRoute, IOrderOptions
|
|
2
|
+
import { IPaxInfo, IPassengerInfo, IContactInfo, IRoute, IOrderOptions } from "../index";
|
|
3
3
|
export interface IRentabilityOptions {
|
|
4
4
|
type: RentabilityTypeEnum;
|
|
5
5
|
value: number;
|
|
@@ -25,15 +25,10 @@ export interface IListOffersReqDto {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
export interface IAddOfferReqDto {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
airlinesCode: string;
|
|
33
|
-
paxInfo: IPaxInfo;
|
|
34
|
-
routes: IRoute[];
|
|
35
|
-
recordLocator?: string;
|
|
36
|
-
bookingCode?: string;
|
|
28
|
+
supplier: SuppliersEnum;
|
|
29
|
+
searchId: string;
|
|
30
|
+
itineraryId: string;
|
|
31
|
+
fareId: string;
|
|
37
32
|
}
|
|
38
33
|
export interface IReserveOfferReqDto {
|
|
39
34
|
contactInfo: IContactInfo;
|
package/sm-airlines/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DealOwnerEnum } from "../common";
|
|
2
|
+
import { IAzulFareDetails, IAzulFareInfo, IAzulOfferJourney } from "../sm-azul";
|
|
2
3
|
import { ISmTTravelOffer } from "../sm-tech";
|
|
3
4
|
import { IRentabilityOptions } from "./dtos/request";
|
|
4
5
|
export { IAddOfferReqDto, IBuyOfferReqDto, IReserveOfferReqDto, IOrderReserveOfferReqDto, IListOffersReqDto, IListOffersResDto, IAddOfferResDto, IGetOfferDetailsResDto, IRefreshAvailabilityResDto, IReplaceOfferResDto, IReserveOfferResDto, IOrderReserveOfferResDto, ICheckReserveOfferResDto, IBuyOfferResDto, ICancelOfferResDto, ICancelPreReserveResDto, IGetChargeDetailsResDto, IUpdateOfferDetialsResDto, IUpdateOfferDetailsReqDto } from "./dtos";
|
|
@@ -9,200 +10,16 @@ export interface IWrappedResponse<T> {
|
|
|
9
10
|
message?: string;
|
|
10
11
|
code?: number;
|
|
11
12
|
}
|
|
12
|
-
export interface ISmAzulTariffedJourney {
|
|
13
|
-
notForGeneralUse: boolean;
|
|
14
|
-
sellKey: string;
|
|
15
|
-
fare: ISmAzulFare;
|
|
16
|
-
segments: ISmAzulDetailedSegment[];
|
|
17
|
-
salesDate: Date;
|
|
18
|
-
}
|
|
19
|
-
export interface ISmAzulFare {
|
|
20
|
-
classOfService: string;
|
|
21
|
-
ruleTariff: string;
|
|
22
|
-
carrierCode: string;
|
|
23
|
-
ruleCode: string;
|
|
24
|
-
fareBasis: string;
|
|
25
|
-
paxFares: ISmPaxFareDto[];
|
|
26
|
-
fareApplicationType: ISmAzulFareApplicationType;
|
|
27
|
-
inboundOutbound: string;
|
|
28
|
-
isAllotmentMarketFare: boolean;
|
|
29
|
-
sellKey: string;
|
|
30
|
-
tripTypeRule: string;
|
|
31
|
-
}
|
|
32
|
-
export interface ISmPaxFareDto {
|
|
33
|
-
paxType: IPassengerType;
|
|
34
|
-
discountCode: string;
|
|
35
|
-
ruleTariff: string;
|
|
36
|
-
carrierCode: string;
|
|
37
|
-
ruleCode: string;
|
|
38
|
-
fareBasis: string;
|
|
39
|
-
fareDiscountCode: string;
|
|
40
|
-
actionStatusCode: string;
|
|
41
|
-
productClass: string;
|
|
42
|
-
productClassName: ISmAzulProductClassName;
|
|
43
|
-
fareStatus: ISmAzulFareStatus;
|
|
44
|
-
charges: ISmAzulServiceCharge[];
|
|
45
|
-
lastModified: Date;
|
|
46
|
-
availableCount: number;
|
|
47
|
-
status: string;
|
|
48
|
-
}
|
|
49
|
-
export interface ISmAzulSegment {
|
|
50
|
-
state: ISmAzulState;
|
|
51
|
-
departure: {
|
|
52
|
-
station: string;
|
|
53
|
-
dateTime: Date;
|
|
54
|
-
terminalOverride?: string;
|
|
55
|
-
};
|
|
56
|
-
arrival: {
|
|
57
|
-
station: string;
|
|
58
|
-
dateTime: Date;
|
|
59
|
-
terminalOverride?: string;
|
|
60
|
-
};
|
|
61
|
-
flightDesignator: ISmAzulFlightDesignator;
|
|
62
|
-
segmentType: string;
|
|
63
|
-
international: boolean;
|
|
64
|
-
legs: ISmAzulLeg[];
|
|
65
|
-
sellKey: string;
|
|
66
|
-
trafficRestriction: string;
|
|
67
|
-
}
|
|
68
|
-
export interface ISmAzulDetailedSegment extends ISmAzulSegment {
|
|
69
|
-
fares: ISmAzulFare[];
|
|
70
|
-
cancelSegment: boolean;
|
|
71
|
-
actionStatusCode: string;
|
|
72
|
-
classOfService: string;
|
|
73
|
-
classType: string;
|
|
74
|
-
paxCount: number;
|
|
75
|
-
priorityCode: string;
|
|
76
|
-
priorityDate: Date;
|
|
77
|
-
changeReasonCode: string;
|
|
78
|
-
timeChanged: boolean;
|
|
79
|
-
tripType: ISmAzulTripType;
|
|
80
|
-
checkInStatus: ISmAzulCheckInStatus;
|
|
81
|
-
createdDate: Date;
|
|
82
|
-
paxSegmentServices: ISmAzulPaxSegmentService[];
|
|
83
|
-
fareClassOfService: string;
|
|
84
|
-
cabinOfService: string;
|
|
85
|
-
aVSStatusIndicator: ISmAzulClassStatus;
|
|
86
|
-
segmentId: string;
|
|
87
|
-
}
|
|
88
|
-
export interface ISmAzulPaxSegmentService {
|
|
89
|
-
passengerId: number;
|
|
90
|
-
passengerNumber: number;
|
|
91
|
-
baggageCount: number;
|
|
92
|
-
baggageWeight: number;
|
|
93
|
-
paxLegServices?: any[];
|
|
94
|
-
}
|
|
95
|
-
export interface ISmAzulLeg {
|
|
96
|
-
departure: {
|
|
97
|
-
station: string;
|
|
98
|
-
dateTime: Date;
|
|
99
|
-
paxDateTime: Date;
|
|
100
|
-
terminal: string;
|
|
101
|
-
LTV: number;
|
|
102
|
-
};
|
|
103
|
-
arrival: {
|
|
104
|
-
station: string;
|
|
105
|
-
dateTime: Date;
|
|
106
|
-
paxDateTime: Date;
|
|
107
|
-
terminal: string;
|
|
108
|
-
LTV: number;
|
|
109
|
-
};
|
|
110
|
-
flightDesignator: ISmAzulFlightDesignator;
|
|
111
|
-
status: string;
|
|
112
|
-
inventoryLegKey: string;
|
|
113
|
-
aircraftType: string;
|
|
114
|
-
aircraftTypeSuffix: string;
|
|
115
|
-
PRBCCode: string;
|
|
116
|
-
scheduleServiceType: string;
|
|
117
|
-
onTime: string;
|
|
118
|
-
eTicket: boolean;
|
|
119
|
-
IROP: boolean;
|
|
120
|
-
FLIFOUpdated: boolean;
|
|
121
|
-
subjectToGovtApproval: boolean;
|
|
122
|
-
capacity: number;
|
|
123
|
-
lid: number;
|
|
124
|
-
adjustedCapacity: number;
|
|
125
|
-
sold: number;
|
|
126
|
-
soldNonStop: number;
|
|
127
|
-
soldConnect: number;
|
|
128
|
-
outMoveDays: number;
|
|
129
|
-
backMoveDays: number;
|
|
130
|
-
soldThru: number;
|
|
131
|
-
codeShareIndicator: string;
|
|
132
|
-
operatingCarrier: string;
|
|
133
|
-
operatingFlightNumber: string;
|
|
134
|
-
operatingOpSuffix: string;
|
|
135
|
-
operatedByText: string;
|
|
136
|
-
transitLayover: number;
|
|
137
|
-
transitDays: number;
|
|
138
|
-
}
|
|
139
|
-
export interface ISmAzulFlightDesignator {
|
|
140
|
-
carrierCode: string;
|
|
141
|
-
flightNumber: string;
|
|
142
|
-
opSuffix: string;
|
|
143
|
-
}
|
|
144
|
-
export interface ISmAzulBookingPassenger {
|
|
145
|
-
paxType: IPassengerType;
|
|
146
|
-
passengerFees: ISmAzulPassengerFee[];
|
|
147
|
-
}
|
|
148
|
-
export interface ISmAzulPassengerFee {
|
|
149
|
-
feeCode: string;
|
|
150
|
-
feeType: string;
|
|
151
|
-
charges: ISmAzulServiceCharge[];
|
|
152
|
-
}
|
|
153
|
-
export interface ISmAzulServiceCharge {
|
|
154
|
-
chargeType: ISmAzulChargeType;
|
|
155
|
-
collectType: ISmAzulCollectType;
|
|
156
|
-
chargeCode: string;
|
|
157
|
-
ticketCode: string;
|
|
158
|
-
currencyCode: string;
|
|
159
|
-
amount: number;
|
|
160
|
-
chargeDetail: string;
|
|
161
|
-
foreignCurrencyCode: string;
|
|
162
|
-
foreignAmount: number;
|
|
163
|
-
}
|
|
164
|
-
export interface ISmAzulJourney {
|
|
165
|
-
classOfService: string;
|
|
166
|
-
ruleTariff: string;
|
|
167
|
-
carrierCode: string;
|
|
168
|
-
ruleCode: string;
|
|
169
|
-
fareBasis: string;
|
|
170
|
-
paxFares: ISmAzulPaxFare[];
|
|
171
|
-
fareApplicationType: ISmAzulFareApplicationType;
|
|
172
|
-
inboundOutbound: string;
|
|
173
|
-
isAllotmentMarketFare: boolean;
|
|
174
|
-
sellKey: string;
|
|
175
|
-
tripTypeRule: string;
|
|
176
|
-
}
|
|
177
|
-
export interface ISmAzulPaxFare {
|
|
178
|
-
paxType: IPassengerType;
|
|
179
|
-
discountCode: string;
|
|
180
|
-
ruleTariff: string;
|
|
181
|
-
carrierCode: string;
|
|
182
|
-
ruleCode: string;
|
|
183
|
-
fareBasis: string;
|
|
184
|
-
fareDiscountCode: string;
|
|
185
|
-
actionStatusCode: string;
|
|
186
|
-
productClass: string;
|
|
187
|
-
productClassName: ISmAzulProductClassName;
|
|
188
|
-
fareStatus: ISmAzulFareStatus;
|
|
189
|
-
charges: ISmAzulServiceCharge[];
|
|
190
|
-
lastModified: Date;
|
|
191
|
-
availableCount: number;
|
|
192
|
-
status: string;
|
|
193
|
-
}
|
|
194
13
|
export interface ISmAzulOffer {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
tariffedJourneys: ISmAzulTariffedJourney[];
|
|
199
|
-
bookingPassengers: ISmAzulBookingPassenger[];
|
|
14
|
+
journeys: [IAzulOfferJourney, IAzulOfferJourney];
|
|
15
|
+
faresDetails: [IAzulFareDetails, IAzulFareDetails];
|
|
16
|
+
fareInfos: [IAzulFareInfo, IAzulFareInfo];
|
|
200
17
|
}
|
|
201
18
|
export interface ISmWcfOffer {
|
|
202
19
|
outbound: ISmWcfBound;
|
|
203
20
|
inbound: ISmWcfBound | null;
|
|
204
21
|
supplier: string;
|
|
205
|
-
itineraryId?: number;
|
|
22
|
+
itineraryId?: number | string;
|
|
206
23
|
travelIdentification: string | IJourneyIdentificator[];
|
|
207
24
|
price: number;
|
|
208
25
|
priceDetails: IPriceDetails;
|
|
@@ -259,17 +76,18 @@ export interface ISmWcfRentabilityOffer extends ISmWcfOffer {
|
|
|
259
76
|
};
|
|
260
77
|
}
|
|
261
78
|
export interface ISmWcfBound {
|
|
79
|
+
journeyId?: string;
|
|
262
80
|
segments: ISmWcfSegment[];
|
|
263
81
|
supplier: string;
|
|
264
82
|
type: string;
|
|
265
83
|
departure: string;
|
|
266
84
|
departureHour: string;
|
|
267
|
-
departureTextDate
|
|
268
|
-
departureWeekDay
|
|
85
|
+
departureTextDate?: string;
|
|
86
|
+
departureWeekDay?: string;
|
|
269
87
|
arrival: string;
|
|
270
88
|
arrivalHour: string;
|
|
271
|
-
arrivalTextDate
|
|
272
|
-
arrivalWeekDay
|
|
89
|
+
arrivalTextDate?: string;
|
|
90
|
+
arrivalWeekDay?: string;
|
|
273
91
|
daysDiff: number;
|
|
274
92
|
origin: ISmWcfStation;
|
|
275
93
|
destination: ISmWcfStation;
|
|
@@ -279,13 +97,23 @@ export interface ISmWcfBound {
|
|
|
279
97
|
cabinClass: string;
|
|
280
98
|
family: string;
|
|
281
99
|
familyCode: string;
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
100
|
+
boundFare?: IBoundFareInfo;
|
|
101
|
+
baggage?: boolean;
|
|
102
|
+
baggagePieces?: number;
|
|
103
|
+
baggageWeight?: number;
|
|
285
104
|
fareDetails?: IBoundFareDetails;
|
|
286
105
|
stops: any[];
|
|
287
106
|
durationHours: string;
|
|
288
107
|
}
|
|
108
|
+
export interface IBoundFareInfo {
|
|
109
|
+
code: string;
|
|
110
|
+
class: string;
|
|
111
|
+
basis: string;
|
|
112
|
+
farePrice: number;
|
|
113
|
+
tax: number;
|
|
114
|
+
duFee: number;
|
|
115
|
+
total: number;
|
|
116
|
+
}
|
|
289
117
|
export interface IBoundFareDetails {
|
|
290
118
|
checkedBaggage: {
|
|
291
119
|
pieces: number;
|
|
@@ -345,16 +173,7 @@ export interface ISmWcfFare {
|
|
|
345
173
|
export interface IJourneyIdentificator {
|
|
346
174
|
journeyKey: string;
|
|
347
175
|
fareKey: string;
|
|
348
|
-
fareInfo
|
|
349
|
-
}
|
|
350
|
-
export interface IFareInfo {
|
|
351
|
-
classOfService: string;
|
|
352
|
-
ruleTariff: string;
|
|
353
|
-
carrierCode: string;
|
|
354
|
-
ruleCode: string;
|
|
355
|
-
fareBasis: string;
|
|
356
|
-
productClass: string;
|
|
357
|
-
productClassName: ISmAzulProductClassName;
|
|
176
|
+
fareInfo?: ISmTechFareInfo;
|
|
358
177
|
}
|
|
359
178
|
export interface ISmTechFareInfo {
|
|
360
179
|
productClass: string;
|
|
@@ -439,20 +258,6 @@ export interface IPassengerInfo {
|
|
|
439
258
|
expirationDate: Date | string;
|
|
440
259
|
};
|
|
441
260
|
}
|
|
442
|
-
export interface IAirlinesOffer {
|
|
443
|
-
id: number;
|
|
444
|
-
status: IOfferStatus;
|
|
445
|
-
supplier: ISuppliers;
|
|
446
|
-
supplierOfferDetails: ISmAzulOffer | ISmWcfOffer;
|
|
447
|
-
price: number;
|
|
448
|
-
routes: IRoute[];
|
|
449
|
-
paxInfo: IPaxInfo;
|
|
450
|
-
oneway: boolean;
|
|
451
|
-
international: boolean;
|
|
452
|
-
recordLocator: string;
|
|
453
|
-
carrier: string;
|
|
454
|
-
availability: boolean;
|
|
455
|
-
}
|
|
456
261
|
export interface IRoute {
|
|
457
262
|
date: string;
|
|
458
263
|
departureStation: string;
|
|
@@ -464,7 +269,7 @@ export interface IRoute {
|
|
|
464
269
|
filters?: IRouteFilters;
|
|
465
270
|
}
|
|
466
271
|
export interface IRouteFilters {
|
|
467
|
-
productClassName:
|
|
272
|
+
productClassName: string;
|
|
468
273
|
flightNumber: string;
|
|
469
274
|
}
|
|
470
275
|
export interface IPaxInfo {
|
|
@@ -562,97 +367,9 @@ declare const SEX: {
|
|
|
562
367
|
readonly MALE: "M";
|
|
563
368
|
readonly FEMALE: "F";
|
|
564
369
|
};
|
|
565
|
-
declare const SM_AZUL_PRICE_STATUS: {
|
|
566
|
-
readonly INVALID: "Invalid";
|
|
567
|
-
readonly OVERRIDE: "Override";
|
|
568
|
-
readonly VALID: "Valid";
|
|
569
|
-
};
|
|
570
|
-
declare const SM_AZUL_CHARGE_TYPE: {
|
|
571
|
-
readonly FARE_PRICE: "FarePrice";
|
|
572
|
-
readonly DISCOUNT: "Discount";
|
|
573
|
-
readonly INCLUDED_TRAVEL_FEE: "IncludedTravelFee";
|
|
574
|
-
readonly INCLUDED_TAX: "IncludedTax";
|
|
575
|
-
readonly TRAVEL_FEE: "TravelFee";
|
|
576
|
-
readonly TAX: "Tax";
|
|
577
|
-
readonly SERVICE_CHARGE: "ServiceCharge";
|
|
578
|
-
readonly PROMOTION_DISCOUNT: "PromotionDiscount";
|
|
579
|
-
readonly CONNECTION_ADJUSTMENT_AMOUNT: "ConnectionAdjustmentAmount";
|
|
580
|
-
readonly ADD_ON_SERVICE_PRICE: "AddOnServicePrice";
|
|
581
|
-
readonly POINTS: "Points";
|
|
582
|
-
readonly INCLUDED_ADD_ON_SERVICE_FEE: "IncludedAddOnServiceFee";
|
|
583
|
-
readonly ADD_ON_SERVICE_FEE: "AddOnServiceFee";
|
|
584
|
-
readonly ADD_ON_SERVICE_MARKUP: "AddOnServiceMarkup";
|
|
585
|
-
readonly CALCULATED: "Calculated";
|
|
586
|
-
readonly NOTE: "Note";
|
|
587
|
-
};
|
|
588
|
-
declare const SM_AZUL_COLLECT_TYPE: {
|
|
589
|
-
readonly IMMEDIATE: "Immediate";
|
|
590
|
-
readonly DEFERRED: "Deferred";
|
|
591
|
-
};
|
|
592
|
-
declare const SM_AZUL_PRODUCT_CLASS_NAME: {
|
|
593
|
-
readonly AZUL: "azul";
|
|
594
|
-
readonly AZUL_MAIS: "azul+";
|
|
595
|
-
readonly AZUL_SOUTH_AMERICA: "azulSA";
|
|
596
|
-
readonly AZUL_MAIS_SOUTH_AMERICA: "azul+SA";
|
|
597
|
-
readonly AZUL_NORTH_AMERICA_AND_EUROPE: "azulEUAndSA";
|
|
598
|
-
readonly AZUL_MAIS_NORTH_AMERICA_AND_EUROPE: "azul+EUAndSA";
|
|
599
|
-
readonly AZUL_SUPER: "azulSuper";
|
|
600
|
-
readonly AZUL_BUSINESS: "azulBusiness";
|
|
601
|
-
};
|
|
602
|
-
declare const SM_AZUL_TRIP_TYPE: {
|
|
603
|
-
readonly NONE: "None";
|
|
604
|
-
readonly ONE_WAY: "OneWay";
|
|
605
|
-
readonly ROUND_TRIP: "RoundTrip";
|
|
606
|
-
readonly HALF_ROUND: "HalfRound";
|
|
607
|
-
readonly OPEN_JAW: "OpenJaw";
|
|
608
|
-
readonly CIRCLE_TRIP: "CircleTrip";
|
|
609
|
-
readonly ALL: "All";
|
|
610
|
-
};
|
|
611
|
-
declare const SM_AZUL_FARE_STATUS: {
|
|
612
|
-
readonly DEFAULT: "Default";
|
|
613
|
-
readonly SAME_DAY_STAND_BY: "SameDayStandBy";
|
|
614
|
-
readonly FARE_OVERRIDE_CONFIRMING: "FareOverrideConfirming";
|
|
615
|
-
readonly FARE_OVERRIDE_CONFIRMED: "FareOverrideConfirmed";
|
|
616
|
-
readonly UNMAPPED: "Unmapped";
|
|
617
|
-
};
|
|
618
|
-
declare const SM_AZUL_FARE_APPLICATION_TYPE: {
|
|
619
|
-
readonly ROUTE: "Route";
|
|
620
|
-
readonly SECTOR: "Sector";
|
|
621
|
-
readonly GOVERNING: "Governing";
|
|
622
|
-
readonly UNMAPPED: "Unmapped";
|
|
623
|
-
};
|
|
624
|
-
declare const SM_AZUL_CHECK_IN_STATUS: {
|
|
625
|
-
readonly NOT_YET_OPEN: "NotYetOpen";
|
|
626
|
-
readonly OPEN: "Open";
|
|
627
|
-
readonly CLOSED: "Closed";
|
|
628
|
-
};
|
|
629
|
-
declare const SM_AZUL_CLASS_STATUS: {
|
|
630
|
-
readonly ACTIVE: "Active";
|
|
631
|
-
readonly INACTIVE: "InActive";
|
|
632
|
-
readonly AVS_OPEN: "AVSOpen";
|
|
633
|
-
readonly AVS_ON_REQUEST: "AVSOnRequest";
|
|
634
|
-
readonly AVS_CLOSED: "AVSClosed";
|
|
635
|
-
};
|
|
636
|
-
declare const SM_AZUL_STATE: {
|
|
637
|
-
readonly CLEAN: "Clean";
|
|
638
|
-
readonly NEW: "New";
|
|
639
|
-
readonly MODIFIED: "Modified";
|
|
640
|
-
readonly DELETED: "Deleted";
|
|
641
|
-
readonly CONFIRMED: "Confirmed";
|
|
642
|
-
};
|
|
643
370
|
export type IResponseStatus = ValueOf<typeof RESPONSE_STATUS>;
|
|
644
371
|
export type ISuppliers = ValueOf<typeof SUPPLIERS>;
|
|
645
372
|
export type IOfferStatus = ValueOf<typeof OFFER_STATUS>;
|
|
646
373
|
export type IOrderOptions = ValueOf<typeof ORDER_OPTIONS>;
|
|
647
374
|
export type IPassengerType = ValueOf<typeof PASSENGER_TYPE>;
|
|
648
375
|
export type ISex = ValueOf<typeof SEX>;
|
|
649
|
-
export type ISmAzulPriceStatus = ValueOf<typeof SM_AZUL_PRICE_STATUS>;
|
|
650
|
-
export type ISmAzulChargeType = ValueOf<typeof SM_AZUL_CHARGE_TYPE>;
|
|
651
|
-
export type ISmAzulCollectType = ValueOf<typeof SM_AZUL_COLLECT_TYPE>;
|
|
652
|
-
export type ISmAzulProductClassName = ValueOf<typeof SM_AZUL_PRODUCT_CLASS_NAME>;
|
|
653
|
-
export type ISmAzulFareStatus = ValueOf<typeof SM_AZUL_FARE_STATUS>;
|
|
654
|
-
export type ISmAzulFareApplicationType = ValueOf<typeof SM_AZUL_FARE_APPLICATION_TYPE>;
|
|
655
|
-
export type ISmAzulTripType = ValueOf<typeof SM_AZUL_TRIP_TYPE>;
|
|
656
|
-
export type ISmAzulCheckInStatus = ValueOf<typeof SM_AZUL_CHECK_IN_STATUS>;
|
|
657
|
-
export type ISmAzulClassStatus = ValueOf<typeof SM_AZUL_CLASS_STATUS>;
|
|
658
|
-
export type ISmAzulState = ValueOf<typeof SM_AZUL_STATE>;
|
package/sm-airlines/index.js
CHANGED
|
@@ -30,81 +30,3 @@ var SEX = {
|
|
|
30
30
|
MALE: "M",
|
|
31
31
|
FEMALE: "F",
|
|
32
32
|
};
|
|
33
|
-
var SM_AZUL_PRICE_STATUS = {
|
|
34
|
-
INVALID: "Invalid",
|
|
35
|
-
OVERRIDE: "Override",
|
|
36
|
-
VALID: "Valid",
|
|
37
|
-
};
|
|
38
|
-
var SM_AZUL_CHARGE_TYPE = {
|
|
39
|
-
FARE_PRICE: "FarePrice",
|
|
40
|
-
DISCOUNT: "Discount",
|
|
41
|
-
INCLUDED_TRAVEL_FEE: "IncludedTravelFee",
|
|
42
|
-
INCLUDED_TAX: "IncludedTax",
|
|
43
|
-
TRAVEL_FEE: "TravelFee",
|
|
44
|
-
TAX: "Tax",
|
|
45
|
-
SERVICE_CHARGE: "ServiceCharge",
|
|
46
|
-
PROMOTION_DISCOUNT: "PromotionDiscount",
|
|
47
|
-
CONNECTION_ADJUSTMENT_AMOUNT: "ConnectionAdjustmentAmount",
|
|
48
|
-
ADD_ON_SERVICE_PRICE: "AddOnServicePrice",
|
|
49
|
-
POINTS: "Points",
|
|
50
|
-
INCLUDED_ADD_ON_SERVICE_FEE: "IncludedAddOnServiceFee",
|
|
51
|
-
ADD_ON_SERVICE_FEE: "AddOnServiceFee",
|
|
52
|
-
ADD_ON_SERVICE_MARKUP: "AddOnServiceMarkup",
|
|
53
|
-
CALCULATED: "Calculated",
|
|
54
|
-
NOTE: "Note",
|
|
55
|
-
};
|
|
56
|
-
var SM_AZUL_COLLECT_TYPE = {
|
|
57
|
-
IMMEDIATE: "Immediate",
|
|
58
|
-
DEFERRED: "Deferred",
|
|
59
|
-
};
|
|
60
|
-
var SM_AZUL_PRODUCT_CLASS_NAME = {
|
|
61
|
-
AZUL: "azul",
|
|
62
|
-
AZUL_MAIS: "azul+",
|
|
63
|
-
AZUL_SOUTH_AMERICA: "azulSA",
|
|
64
|
-
AZUL_MAIS_SOUTH_AMERICA: "azul+SA",
|
|
65
|
-
AZUL_NORTH_AMERICA_AND_EUROPE: "azulEUAndSA",
|
|
66
|
-
AZUL_MAIS_NORTH_AMERICA_AND_EUROPE: "azul+EUAndSA",
|
|
67
|
-
AZUL_SUPER: "azulSuper",
|
|
68
|
-
AZUL_BUSINESS: "azulBusiness",
|
|
69
|
-
};
|
|
70
|
-
var SM_AZUL_TRIP_TYPE = {
|
|
71
|
-
NONE: "None",
|
|
72
|
-
ONE_WAY: "OneWay",
|
|
73
|
-
ROUND_TRIP: "RoundTrip",
|
|
74
|
-
HALF_ROUND: "HalfRound",
|
|
75
|
-
OPEN_JAW: "OpenJaw",
|
|
76
|
-
CIRCLE_TRIP: "CircleTrip",
|
|
77
|
-
ALL: "All",
|
|
78
|
-
};
|
|
79
|
-
var SM_AZUL_FARE_STATUS = {
|
|
80
|
-
DEFAULT: "Default",
|
|
81
|
-
SAME_DAY_STAND_BY: "SameDayStandBy",
|
|
82
|
-
FARE_OVERRIDE_CONFIRMING: "FareOverrideConfirming",
|
|
83
|
-
FARE_OVERRIDE_CONFIRMED: "FareOverrideConfirmed",
|
|
84
|
-
UNMAPPED: "Unmapped",
|
|
85
|
-
};
|
|
86
|
-
var SM_AZUL_FARE_APPLICATION_TYPE = {
|
|
87
|
-
ROUTE: "Route",
|
|
88
|
-
SECTOR: "Sector",
|
|
89
|
-
GOVERNING: "Governing",
|
|
90
|
-
UNMAPPED: "Unmapped",
|
|
91
|
-
};
|
|
92
|
-
var SM_AZUL_CHECK_IN_STATUS = {
|
|
93
|
-
NOT_YET_OPEN: "NotYetOpen",
|
|
94
|
-
OPEN: "Open",
|
|
95
|
-
CLOSED: "Closed",
|
|
96
|
-
};
|
|
97
|
-
var SM_AZUL_CLASS_STATUS = {
|
|
98
|
-
ACTIVE: "Active",
|
|
99
|
-
INACTIVE: "InActive",
|
|
100
|
-
AVS_OPEN: "AVSOpen",
|
|
101
|
-
AVS_ON_REQUEST: "AVSOnRequest",
|
|
102
|
-
AVS_CLOSED: "AVSClosed",
|
|
103
|
-
};
|
|
104
|
-
var SM_AZUL_STATE = {
|
|
105
|
-
CLEAN: "Clean",
|
|
106
|
-
NEW: "New",
|
|
107
|
-
MODIFIED: "Modified",
|
|
108
|
-
DELETED: "Deleted",
|
|
109
|
-
CONFIRMED: "Confirmed",
|
|
110
|
-
};
|