sm-types 1.6.6 → 1.6.7

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 CHANGED
@@ -3,3 +3,12 @@ export declare enum TravelCustomFieldEnum {
3
3
  HOTEL_PURPOSE = "HOTEL_PURPOSE",
4
4
  FLIGHT_PURPOSE = "FLIGHT_PURPOSE"
5
5
  }
6
+ export declare enum RentabilityTypeEnum {
7
+ MARK_UP = "MARK_UP",
8
+ MARGIN = "MARGIN"
9
+ }
10
+ export declare enum SuppliersEnum {
11
+ SKYTEAM = "skyteam",
12
+ AZUL = "azul",
13
+ TTECH = "tech-travel"
14
+ }
package/common/enums.js CHANGED
@@ -1,9 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TravelCustomFieldEnum = void 0;
3
+ exports.SuppliersEnum = exports.RentabilityTypeEnum = exports.TravelCustomFieldEnum = void 0;
4
4
  var TravelCustomFieldEnum;
5
5
  (function (TravelCustomFieldEnum) {
6
6
  TravelCustomFieldEnum["TRIP_PURPOSE"] = "TRIP_PURPOSE";
7
7
  TravelCustomFieldEnum["HOTEL_PURPOSE"] = "HOTEL_PURPOSE";
8
8
  TravelCustomFieldEnum["FLIGHT_PURPOSE"] = "FLIGHT_PURPOSE";
9
9
  })(TravelCustomFieldEnum = exports.TravelCustomFieldEnum || (exports.TravelCustomFieldEnum = {}));
10
+ var RentabilityTypeEnum;
11
+ (function (RentabilityTypeEnum) {
12
+ RentabilityTypeEnum["MARK_UP"] = "MARK_UP";
13
+ RentabilityTypeEnum["MARGIN"] = "MARGIN";
14
+ })(RentabilityTypeEnum = exports.RentabilityTypeEnum || (exports.RentabilityTypeEnum = {}));
15
+ var SuppliersEnum;
16
+ (function (SuppliersEnum) {
17
+ SuppliersEnum["SKYTEAM"] = "skyteam";
18
+ SuppliersEnum["AZUL"] = "azul";
19
+ SuppliersEnum["TTECH"] = "tech-travel";
20
+ })(SuppliersEnum = exports.SuppliersEnum || (exports.SuppliersEnum = {}));
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Smartrips",
4
4
  "license": "ISC",
5
5
  "keywords": [],
6
- "version": "1.6.6",
6
+ "version": "1.6.7",
7
7
  "description": "",
8
8
  "repository": {
9
9
  "type": "git",
@@ -1,9 +1,22 @@
1
+ import { RentabilityTypeEnum, SuppliersEnum } from "../../common";
1
2
  import { IPaxInfo, IPassengerInfo, IContactInfo, IRoute, IOrderOptions, ISmWcfOffer } from "../index";
3
+ export interface IRentabilityOptions {
4
+ type: RentabilityTypeEnum;
5
+ value: number;
6
+ }
2
7
  export interface IListOffersReqDto {
3
8
  international: boolean;
4
9
  cabinClass: string;
5
10
  promoCode: string;
6
11
  airlinesCode: string;
12
+ customerCode?: string;
13
+ suppliers?: {
14
+ code: SuppliersEnum;
15
+ compareToAgencyDeals: boolean;
16
+ ciasToIgnore?: string[];
17
+ rentability?: IRentabilityOptions;
18
+ }[];
19
+ rentability?: IRentabilityOptions;
7
20
  paxInfo: IPaxInfo;
8
21
  routes: IRoute[];
9
22
  config: {