sm-types 1.11.97 → 1.11.98
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/enums.d.ts +7 -0
- package/common/enums.js +9 -1
- package/package.json +1 -1
- package/sm-airlines/index.d.ts +37 -4
package/common/enums.d.ts
CHANGED
|
@@ -143,3 +143,10 @@ export declare enum SectionToBeReplaced {
|
|
|
143
143
|
OUTBOUND = "OUTBOUND",
|
|
144
144
|
INBOUND = "INBOUND"
|
|
145
145
|
}
|
|
146
|
+
export declare enum SmartripsFareClass {
|
|
147
|
+
Base = "Base",
|
|
148
|
+
Standard = "Standard",
|
|
149
|
+
Enhanced = "Enhanced",
|
|
150
|
+
Premium = "Premium",
|
|
151
|
+
Luxury = "Luxury"
|
|
152
|
+
}
|
package/common/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SectionToBeReplaced = exports.ChangeFlightType = exports.FlightChangeProcessingStatus = exports.TripLink = exports.BookingConfirmationStatus = exports.CredentialTypeEnum = exports.OfferStatus = exports.ServiceType = exports.BookingStatus = exports.NavanStatus = exports.BookingFeeStatus = exports.EmailType = exports.IndicationStatus = exports.IndicationRewardStatus = exports.JustificationPolicy = exports.CabinClass = exports.DealOwnerEnum = exports.SuppliersEnum = exports.RentabilityTypeEnum = exports.TravelCustomFieldEnum = void 0;
|
|
3
|
+
exports.SmartripsFareClass = exports.SectionToBeReplaced = exports.ChangeFlightType = exports.FlightChangeProcessingStatus = exports.TripLink = exports.BookingConfirmationStatus = exports.CredentialTypeEnum = exports.OfferStatus = exports.ServiceType = exports.BookingStatus = exports.NavanStatus = exports.BookingFeeStatus = exports.EmailType = exports.IndicationStatus = exports.IndicationRewardStatus = exports.JustificationPolicy = exports.CabinClass = exports.DealOwnerEnum = exports.SuppliersEnum = exports.RentabilityTypeEnum = exports.TravelCustomFieldEnum = void 0;
|
|
4
4
|
var TravelCustomFieldEnum;
|
|
5
5
|
(function (TravelCustomFieldEnum) {
|
|
6
6
|
TravelCustomFieldEnum["TRIP_PURPOSE"] = "TRIP_PURPOSE";
|
|
@@ -141,3 +141,11 @@ var SectionToBeReplaced;
|
|
|
141
141
|
SectionToBeReplaced["OUTBOUND"] = "OUTBOUND";
|
|
142
142
|
SectionToBeReplaced["INBOUND"] = "INBOUND";
|
|
143
143
|
})(SectionToBeReplaced = exports.SectionToBeReplaced || (exports.SectionToBeReplaced = {}));
|
|
144
|
+
var SmartripsFareClass;
|
|
145
|
+
(function (SmartripsFareClass) {
|
|
146
|
+
SmartripsFareClass["Base"] = "Base";
|
|
147
|
+
SmartripsFareClass["Standard"] = "Standard";
|
|
148
|
+
SmartripsFareClass["Enhanced"] = "Enhanced";
|
|
149
|
+
SmartripsFareClass["Premium"] = "Premium";
|
|
150
|
+
SmartripsFareClass["Luxury"] = "Luxury";
|
|
151
|
+
})(SmartripsFareClass = exports.SmartripsFareClass || (exports.SmartripsFareClass = {}));
|
package/package.json
CHANGED
package/sm-airlines/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { BookingConfirmationStatus, DealOwnerEnum } from "../common";
|
|
1
|
+
import { BookingConfirmationStatus, DealOwnerEnum, SmartripsFareClass } from "../common";
|
|
2
2
|
import { SmAmadeusOffer } from "../sm-amadeus";
|
|
3
3
|
import { IAzulFareDetails, IAzulFareInfo, IAzulOfferJourney } from "../sm-azul";
|
|
4
|
-
import { ISmTTravelOffer } from "../sm-tech";
|
|
5
4
|
import { SmLatamOffer } from "../sm-latam";
|
|
5
|
+
import { ISmTTravelOffer } from "../sm-tech";
|
|
6
6
|
import { IRentabilityOptions } from "./dtos/request";
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
7
|
+
export { IAddOfferCommandParams, IBuyOfferCommandParams, ICancelOfferCommandParams, ICancelPreReserveCommandParams, ICheckReserveQueryParams, IOrderReserveOfferCommandParams, IProcessReserveCommandParams, IRefreshAvailabilityCommandParams, IReplaceOfferCommandParams, IReserveOfferCommandParams, } from "./command-params";
|
|
8
|
+
export { IAddOfferReqDto, IAddOfferResDto, IApplyOfferChangesReqDto, IApplyOfferChangesResDto, IAssocitateCustomerCredentialReqDto, IAssocitateCustomerCredentialResDto, IBuyOfferReqDto, IBuyOfferResDto, ICacheRoundtripOffersReqDto, ICancelOfferResDto, ICancelPreReserveResDto, ICheckReserveOfferResDto, ICreateCustomerReqDto, ICreateCustomerResDto, ICreateSupplierCredentialReqDto, ICreateSupplierCredentialResDto, IGetChargeDetailsResDto, IGetCustomerCredentialReqDto, IGetCustomerCredentialResDto, IGetOfferDetailsResDto, IGetSupplierCredentialByAgencyReqDto, IGetSupplierCredentialResDto, IGetSupplierOffersReqDto, IGetSupplierOffersResDto, IListChangeOptionsReqDto, IListChangeOptionsResDto, IListFareFamiliesReqDto, IListFareFamiliesResDto, IListOffersReqDto, IListOffersResDto, IListOffersSearchMetadata, IOrderReserveOfferReqDto, IOrderReserveOfferResDto, IPickedFlightOffer, IRecalculateOfferChangesReqDto, IRecalculateOfferChangesResDto, IRefreshAvailabilityResDto, IReplaceOfferResDto, IReserveOfferReqDto, IReserveOfferResDto, ITariffOffersReqDto, ITarifyOfferResDto, IUpdateCustomerReqDto, IUpdateCustomerResDto, IUpdateOfferDetailsReqDto, IUpdateOfferDetialsResDto, } from "./dtos";
|
|
9
9
|
export interface IWrappedResponse<T> {
|
|
10
10
|
status: IResponseStatus;
|
|
11
11
|
data?: T;
|
|
@@ -65,6 +65,8 @@ export interface ISmWcfFamilyOfferBound {
|
|
|
65
65
|
family: string;
|
|
66
66
|
familyCode: string;
|
|
67
67
|
fares: ISmWcfFamilyOfferBoundFare[];
|
|
68
|
+
smartripsFareClass?: SmartripsFareClass;
|
|
69
|
+
fareConditions?: FareConditions;
|
|
68
70
|
baggage: {
|
|
69
71
|
available: boolean;
|
|
70
72
|
pieces: number;
|
|
@@ -125,6 +127,8 @@ export interface ISmWcfBound {
|
|
|
125
127
|
fareDetails?: IBoundFareDetails;
|
|
126
128
|
stops: any[];
|
|
127
129
|
durationHours: string;
|
|
130
|
+
smartripsFareClass?: SmartripsFareClass;
|
|
131
|
+
fareConditions?: FareConditions;
|
|
128
132
|
}
|
|
129
133
|
export interface IBoundFareInfo {
|
|
130
134
|
externalKey?: string;
|
|
@@ -369,6 +373,35 @@ export interface IUpdatedOfferDetailsData {
|
|
|
369
373
|
systemLocator: string;
|
|
370
374
|
bookingCode?: string;
|
|
371
375
|
}
|
|
376
|
+
export type FareConditionAmountType = "monetary" | "percentage" | "unknown";
|
|
377
|
+
export interface FareConditionAmount {
|
|
378
|
+
amountType: FareConditionAmountType;
|
|
379
|
+
amount: number;
|
|
380
|
+
currencyCode?: string | null;
|
|
381
|
+
}
|
|
382
|
+
export interface FareRefundCondition {
|
|
383
|
+
refundable: boolean | null;
|
|
384
|
+
amount: FareConditionAmount[];
|
|
385
|
+
penalty: FareConditionAmount[];
|
|
386
|
+
ruleText?: string;
|
|
387
|
+
}
|
|
388
|
+
export interface FareCancelCondition {
|
|
389
|
+
cancelable: boolean | null;
|
|
390
|
+
receivableAmount: FareConditionAmount[];
|
|
391
|
+
penalty: FareConditionAmount[];
|
|
392
|
+
ruleText?: string;
|
|
393
|
+
}
|
|
394
|
+
export interface FareChangeCondition {
|
|
395
|
+
changeable: boolean | null;
|
|
396
|
+
penalty: FareConditionAmount[];
|
|
397
|
+
requiresFareDifference: boolean | null;
|
|
398
|
+
ruleText?: string;
|
|
399
|
+
}
|
|
400
|
+
export interface FareConditions {
|
|
401
|
+
refund: FareRefundCondition;
|
|
402
|
+
cancel: FareCancelCondition;
|
|
403
|
+
change: FareChangeCondition;
|
|
404
|
+
}
|
|
372
405
|
type ValueOf<T> = T[keyof T];
|
|
373
406
|
declare const RESPONSE_STATUS: {
|
|
374
407
|
readonly SUCCESS: "success";
|