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 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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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];
@@ -9,7 +9,7 @@ declare const PaymentMethods: {
9
9
  readonly CreditCard: "credit_card";
10
10
  readonly Billed: "billed";
11
11
  };
12
- declare type ValueOf<T> = T[keyof T];
13
- export declare type ICardBrandsType = ValueOf<typeof ICardBrands>;
14
- export declare type PaymentMethodType = ValueOf<typeof PaymentMethods>;
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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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];
@@ -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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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.0",
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 <=16.19.1",
21
- "npm": ">=0.0.0 <=8.19.3"
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",
@@ -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
- declare type ValueOf<T> = T[keyof T];
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 declare type IResponseStatus = ValueOf<typeof RESPONSE_STATUS>;
580
- export declare type ISuppliers = ValueOf<typeof SUPPLIERS>;
581
- export declare type IOfferStatus = ValueOf<typeof OFFER_STATUS>;
582
- export declare type IOrderOptions = ValueOf<typeof ORDER_OPTIONS>;
583
- export declare type IPassengerType = ValueOf<typeof PASSENGER_TYPE>;
584
- export declare type ISex = ValueOf<typeof SEX>;
585
- export declare type ISmAzulPriceStatus = ValueOf<typeof SM_AZUL_PRICE_STATUS>;
586
- export declare type ISmAzulChargeType = ValueOf<typeof SM_AZUL_CHARGE_TYPE>;
587
- export declare type ISmAzulCollectType = ValueOf<typeof SM_AZUL_COLLECT_TYPE>;
588
- export declare type ISmAzulProductClassName = ValueOf<typeof SM_AZUL_PRODUCT_CLASS_NAME>;
589
- export declare type ISmAzulFareStatus = ValueOf<typeof SM_AZUL_FARE_STATUS>;
590
- export declare type ISmAzulFareApplicationType = ValueOf<typeof SM_AZUL_FARE_APPLICATION_TYPE>;
591
- export declare type ISmAzulTripType = ValueOf<typeof SM_AZUL_TRIP_TYPE>;
592
- export declare type ISmAzulCheckInStatus = ValueOf<typeof SM_AZUL_CHECK_IN_STATUS>;
593
- export declare type ISmAzulClassStatus = ValueOf<typeof SM_AZUL_CLASS_STATUS>;
594
- export declare type ISmAzulState = ValueOf<typeof SM_AZUL_STATE>;
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>;
@@ -5,7 +5,7 @@ export interface IHeadersDto {
5
5
  "x-azul-password": string;
6
6
  [key: string]: string;
7
7
  }
8
- export declare type ILogonResponse = {
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 declare type IGetAvailabilityResponseDto = {
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 declare type IGetTariffedOffersResponseDto = IGetTariffedOfferResponseDto[];
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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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
- declare type ValueOf<T> = T[keyof T];
209
- export declare type IFareTypeDto = ValueOf<typeof FareType>;
210
- export declare type ICurrencyOptionsDto = ValueOf<typeof CurrencyOptions>;
211
- export declare type IGenderDto = ValueOf<typeof Gender>;
212
- export declare type IFareClassControlDto = ValueOf<typeof FareClassControl>;
213
- export declare type IFareApplicationTypeDto = ValueOf<typeof FareApplicationType>;
214
- export declare type IFareStatusDto = ValueOf<typeof FareStatus>;
215
- export declare type IAvailabilityFilterDto = ValueOf<typeof AvailabilityFilter>;
216
- export declare type IAvailabilityTypeDto = ValueOf<typeof AvailabilityType>;
217
- export declare type IFlightTypeDto = ValueOf<typeof FlightType>;
218
- export declare type IInboundOutboundDto = ValueOf<typeof InboundOutbound>;
219
- export declare type IDayOfWeekDto = ValueOf<typeof DayOfWeek>;
220
- export declare type IChargeTypeDto = ValueOf<typeof ChargeType>;
221
- export declare type ICollectTypeDto = ValueOf<typeof CollectType>;
222
- export declare type IMessageStateDto = ValueOf<typeof MessageState>;
223
- export declare type ITripTypeDto = ValueOf<typeof TripType>;
224
- export declare type ICheckInStatusDto = ValueOf<typeof CheckInStatus>;
225
- export declare type IClassStatusDto = ValueOf<typeof ClassStatus>;
226
- export declare type ISeatAssignmentLevelDto = ValueOf<typeof SeatAssignmentLevel>;
227
- export declare type ILiftStatus1Dto = ValueOf<typeof LiftStatus1>;
228
- export declare type IBaggageStatusDto = ValueOf<typeof BaggageStatus>;
229
- export declare type IPriceStatusDto = ValueOf<typeof PriceStatus>;
230
- export declare type IFeeTypeDto = ValueOf<typeof FeeType>;
231
- export declare type IProductClassDto = ValueOf<typeof ProductClass>;
232
- export declare type IProductClassNameDto = ValueOf<typeof ProductClassName>;
233
- export declare type IPaxTypeDto = ValueOf<typeof PaxType>;
234
- export declare type ISeatPreferenceDto = ValueOf<typeof SeatPreference>;
235
- export declare type IBookingStatusDto = ValueOf<typeof BookingStatus>;
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
- declare type ValueOf<T> = T[keyof T];
31
- export declare type TSteeringType = ValueOf<typeof SteeringType>;
32
- export declare type TTransmissionType = ValueOf<typeof TransmissionType>;
33
- export declare type TFeeType = ValueOf<typeof FeeType>;
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;
@@ -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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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
- declare type ValueOf<T> = T[keyof T];
27
- export declare type ISystemType = ValueOf<typeof SystemType>;
28
- export declare type IJourneyType = ValueOf<typeof JourneyType>;
29
- export declare type IPaymentMethodType = ValueOf<typeof PaymentMethodType>;
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
@@ -144,6 +144,7 @@ export interface IPassengerInfoReqDto {
144
144
  export interface IWcfReserveOfferResDto {
145
145
  status?: string;
146
146
  recordLocator?: string;
147
+ systemLocator?: string;
147
148
  price?: number;
148
149
  priceDetails?: IPriceDetails;
149
150
  reservedUntil?: Date | string;