sm-types 1.6.0 → 1.6.2
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/common/index.js +5 -1
- package/common/shared/index.d.ts +3 -3
- package/errors/index.js +5 -1
- package/errors/user/index.js +5 -1
- package/package.json +3 -3
- package/sm-airlines/index.d.ts +20 -17
- package/sm-azul/index.d.ts +3 -3
- package/sm-azul/index.js +5 -1
- package/sm-azul/shared/index.d.ts +28 -28
- package/sm-car-rentals/index.d.ts +4 -4
- package/sm-tech/index.d.ts +2 -0
- package/sm-tech/index.js +5 -1
- package/sm-tech/shared/index.d.ts +4 -4
- package/sm-wcf/index.d.ts +1 -0
package/common/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/common/shared/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare const PaymentMethods: {
|
|
|
9
9
|
readonly CreditCard: "credit_card";
|
|
10
10
|
readonly Billed: "billed";
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
export
|
|
12
|
+
type ValueOf<T> = T[keyof T];
|
|
13
|
+
export type ICardBrandsType = ValueOf<typeof ICardBrands>;
|
|
14
|
+
export type PaymentMethodType = ValueOf<typeof PaymentMethods>;
|
|
15
15
|
export {};
|
package/errors/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/errors/user/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"author": "Smartrips",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"keywords": [],
|
|
6
|
-
"version": "1.6.
|
|
6
|
+
"version": "1.6.2",
|
|
7
7
|
"description": "",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"publish-package": "npm run build && cd ./dist && npm publish"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": ">=12.0.0
|
|
21
|
-
"npm": ">=0.0.0
|
|
20
|
+
"node": ">=12.0.0 <17.0.0",
|
|
21
|
+
"npm": ">=0.0.0 <9"
|
|
22
22
|
},
|
|
23
23
|
"main": "index.js",
|
|
24
24
|
"types": "index.d.ts",
|
package/sm-airlines/index.d.ts
CHANGED
|
@@ -331,6 +331,7 @@ export interface IPriceDetails {
|
|
|
331
331
|
export interface IReserveDetails {
|
|
332
332
|
status: string;
|
|
333
333
|
recordLocator: string;
|
|
334
|
+
systemLocator: string;
|
|
334
335
|
price: number;
|
|
335
336
|
priceDetails?: IPriceDetails;
|
|
336
337
|
reservedUntil: Date | string;
|
|
@@ -456,6 +457,7 @@ export interface IReserveCheckInfo {
|
|
|
456
457
|
}
|
|
457
458
|
export interface IOfferEmissionData {
|
|
458
459
|
recordLocator: string;
|
|
460
|
+
systemLocator: string;
|
|
459
461
|
bookingCode: string;
|
|
460
462
|
authorizationCode: string;
|
|
461
463
|
price: number;
|
|
@@ -465,9 +467,10 @@ export interface IUpdatedOfferDetailsData {
|
|
|
465
467
|
reserveStatus: string;
|
|
466
468
|
currentPrice: number;
|
|
467
469
|
recordLocator: string;
|
|
470
|
+
systemLocator: string;
|
|
468
471
|
bookingCode?: string;
|
|
469
472
|
}
|
|
470
|
-
|
|
473
|
+
type ValueOf<T> = T[keyof T];
|
|
471
474
|
declare const RESPONSE_STATUS: {
|
|
472
475
|
readonly SUCCESS: "success";
|
|
473
476
|
readonly ERROR: "error";
|
|
@@ -576,19 +579,19 @@ declare const SM_AZUL_STATE: {
|
|
|
576
579
|
readonly DELETED: "Deleted";
|
|
577
580
|
readonly CONFIRMED: "Confirmed";
|
|
578
581
|
};
|
|
579
|
-
export
|
|
580
|
-
export
|
|
581
|
-
export
|
|
582
|
-
export
|
|
583
|
-
export
|
|
584
|
-
export
|
|
585
|
-
export
|
|
586
|
-
export
|
|
587
|
-
export
|
|
588
|
-
export
|
|
589
|
-
export
|
|
590
|
-
export
|
|
591
|
-
export
|
|
592
|
-
export
|
|
593
|
-
export
|
|
594
|
-
export
|
|
582
|
+
export type IResponseStatus = ValueOf<typeof RESPONSE_STATUS>;
|
|
583
|
+
export type ISuppliers = ValueOf<typeof SUPPLIERS>;
|
|
584
|
+
export type IOfferStatus = ValueOf<typeof OFFER_STATUS>;
|
|
585
|
+
export type IOrderOptions = ValueOf<typeof ORDER_OPTIONS>;
|
|
586
|
+
export type IPassengerType = ValueOf<typeof PASSENGER_TYPE>;
|
|
587
|
+
export type ISex = ValueOf<typeof SEX>;
|
|
588
|
+
export type ISmAzulPriceStatus = ValueOf<typeof SM_AZUL_PRICE_STATUS>;
|
|
589
|
+
export type ISmAzulChargeType = ValueOf<typeof SM_AZUL_CHARGE_TYPE>;
|
|
590
|
+
export type ISmAzulCollectType = ValueOf<typeof SM_AZUL_COLLECT_TYPE>;
|
|
591
|
+
export type ISmAzulProductClassName = ValueOf<typeof SM_AZUL_PRODUCT_CLASS_NAME>;
|
|
592
|
+
export type ISmAzulFareStatus = ValueOf<typeof SM_AZUL_FARE_STATUS>;
|
|
593
|
+
export type ISmAzulFareApplicationType = ValueOf<typeof SM_AZUL_FARE_APPLICATION_TYPE>;
|
|
594
|
+
export type ISmAzulTripType = ValueOf<typeof SM_AZUL_TRIP_TYPE>;
|
|
595
|
+
export type ISmAzulCheckInStatus = ValueOf<typeof SM_AZUL_CHECK_IN_STATUS>;
|
|
596
|
+
export type ISmAzulClassStatus = ValueOf<typeof SM_AZUL_CLASS_STATUS>;
|
|
597
|
+
export type ISmAzulState = ValueOf<typeof SM_AZUL_STATE>;
|
package/sm-azul/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export interface IHeadersDto {
|
|
|
5
5
|
"x-azul-password": string;
|
|
6
6
|
[key: string]: string;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type ILogonResponse = {
|
|
9
9
|
secureToken: string;
|
|
10
10
|
sessionId: number;
|
|
11
11
|
roleCode: string;
|
|
@@ -107,13 +107,13 @@ export interface IBuyOfferRequestDto {
|
|
|
107
107
|
export interface ICancelOfferRequestDto {
|
|
108
108
|
recordLocator: string;
|
|
109
109
|
}
|
|
110
|
-
export
|
|
110
|
+
export type IGetAvailabilityResponseDto = {
|
|
111
111
|
generalInfo: SharedTypes.IGeneralInfoDto;
|
|
112
112
|
allJourneysData: SharedTypes.IJourneysPerStepDto[];
|
|
113
113
|
};
|
|
114
114
|
export interface IGetTariffedOfferResponseDto extends SharedTypes.ITariffedOfferDto {
|
|
115
115
|
}
|
|
116
|
-
export
|
|
116
|
+
export type IGetTariffedOffersResponseDto = IGetTariffedOfferResponseDto[];
|
|
117
117
|
export interface IGetPriceItineraryResponseDto extends SharedTypes.ITariffedOfferDto {
|
|
118
118
|
}
|
|
119
119
|
export interface ICommitResponseDto {
|
package/sm-azul/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -205,34 +205,34 @@ export declare const BookingStatus: {
|
|
|
205
205
|
PENDING_ARCHIVE: string;
|
|
206
206
|
ARCHIVED: string;
|
|
207
207
|
};
|
|
208
|
-
|
|
209
|
-
export
|
|
210
|
-
export
|
|
211
|
-
export
|
|
212
|
-
export
|
|
213
|
-
export
|
|
214
|
-
export
|
|
215
|
-
export
|
|
216
|
-
export
|
|
217
|
-
export
|
|
218
|
-
export
|
|
219
|
-
export
|
|
220
|
-
export
|
|
221
|
-
export
|
|
222
|
-
export
|
|
223
|
-
export
|
|
224
|
-
export
|
|
225
|
-
export
|
|
226
|
-
export
|
|
227
|
-
export
|
|
228
|
-
export
|
|
229
|
-
export
|
|
230
|
-
export
|
|
231
|
-
export
|
|
232
|
-
export
|
|
233
|
-
export
|
|
234
|
-
export
|
|
235
|
-
export
|
|
208
|
+
type ValueOf<T> = T[keyof T];
|
|
209
|
+
export type IFareTypeDto = ValueOf<typeof FareType>;
|
|
210
|
+
export type ICurrencyOptionsDto = ValueOf<typeof CurrencyOptions>;
|
|
211
|
+
export type IGenderDto = ValueOf<typeof Gender>;
|
|
212
|
+
export type IFareClassControlDto = ValueOf<typeof FareClassControl>;
|
|
213
|
+
export type IFareApplicationTypeDto = ValueOf<typeof FareApplicationType>;
|
|
214
|
+
export type IFareStatusDto = ValueOf<typeof FareStatus>;
|
|
215
|
+
export type IAvailabilityFilterDto = ValueOf<typeof AvailabilityFilter>;
|
|
216
|
+
export type IAvailabilityTypeDto = ValueOf<typeof AvailabilityType>;
|
|
217
|
+
export type IFlightTypeDto = ValueOf<typeof FlightType>;
|
|
218
|
+
export type IInboundOutboundDto = ValueOf<typeof InboundOutbound>;
|
|
219
|
+
export type IDayOfWeekDto = ValueOf<typeof DayOfWeek>;
|
|
220
|
+
export type IChargeTypeDto = ValueOf<typeof ChargeType>;
|
|
221
|
+
export type ICollectTypeDto = ValueOf<typeof CollectType>;
|
|
222
|
+
export type IMessageStateDto = ValueOf<typeof MessageState>;
|
|
223
|
+
export type ITripTypeDto = ValueOf<typeof TripType>;
|
|
224
|
+
export type ICheckInStatusDto = ValueOf<typeof CheckInStatus>;
|
|
225
|
+
export type IClassStatusDto = ValueOf<typeof ClassStatus>;
|
|
226
|
+
export type ISeatAssignmentLevelDto = ValueOf<typeof SeatAssignmentLevel>;
|
|
227
|
+
export type ILiftStatus1Dto = ValueOf<typeof LiftStatus1>;
|
|
228
|
+
export type IBaggageStatusDto = ValueOf<typeof BaggageStatus>;
|
|
229
|
+
export type IPriceStatusDto = ValueOf<typeof PriceStatus>;
|
|
230
|
+
export type IFeeTypeDto = ValueOf<typeof FeeType>;
|
|
231
|
+
export type IProductClassDto = ValueOf<typeof ProductClass>;
|
|
232
|
+
export type IProductClassNameDto = ValueOf<typeof ProductClassName>;
|
|
233
|
+
export type IPaxTypeDto = ValueOf<typeof PaxType>;
|
|
234
|
+
export type ISeatPreferenceDto = ValueOf<typeof SeatPreference>;
|
|
235
|
+
export type IBookingStatusDto = ValueOf<typeof BookingStatus>;
|
|
236
236
|
export interface ITariffedOfferDto {
|
|
237
237
|
currencyCode: string;
|
|
238
238
|
total: number;
|
|
@@ -27,10 +27,10 @@ export declare const FeeType: {
|
|
|
27
27
|
readonly SERVICE_FEE: "serviceFee";
|
|
28
28
|
readonly RETURN_FEE: "returnFee";
|
|
29
29
|
};
|
|
30
|
-
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
30
|
+
type ValueOf<T> = T[keyof T];
|
|
31
|
+
export type TSteeringType = ValueOf<typeof SteeringType>;
|
|
32
|
+
export type TTransmissionType = ValueOf<typeof TransmissionType>;
|
|
33
|
+
export type TFeeType = ValueOf<typeof FeeType>;
|
|
34
34
|
export interface ISmCarFeatures {
|
|
35
35
|
passengers: number;
|
|
36
36
|
doors: number | null;
|
package/sm-tech/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export interface IServiceOrderInfo {
|
|
|
48
48
|
export interface ICheckReserveInfo {
|
|
49
49
|
reserveStatus: string;
|
|
50
50
|
recordLocator: string;
|
|
51
|
+
systemLocator: string;
|
|
51
52
|
bookingCode?: string;
|
|
52
53
|
availability: boolean;
|
|
53
54
|
reservedUntil?: Date;
|
|
@@ -95,6 +96,7 @@ export interface IEmitOfferInfo {
|
|
|
95
96
|
isEmitted: boolean;
|
|
96
97
|
bookingCode: string;
|
|
97
98
|
recordLocator: string;
|
|
99
|
+
systemLocator: string;
|
|
98
100
|
price: number;
|
|
99
101
|
tariffInfo: SharedTypes.ITariffInfo | null;
|
|
100
102
|
authorizationCode: string;
|
package/sm-tech/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -23,10 +23,10 @@ export declare enum OfferStatus {
|
|
|
23
23
|
Canceled = "Cancelada",
|
|
24
24
|
Emitted = "Emitida"
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
26
|
+
type ValueOf<T> = T[keyof T];
|
|
27
|
+
export type ISystemType = ValueOf<typeof SystemType>;
|
|
28
|
+
export type IJourneyType = ValueOf<typeof JourneyType>;
|
|
29
|
+
export type IPaymentMethodType = ValueOf<typeof PaymentMethodType>;
|
|
30
30
|
export interface ISmTTravelOffer {
|
|
31
31
|
searchId: string;
|
|
32
32
|
ttravelOfferId: number;
|
package/sm-wcf/index.d.ts
CHANGED