sm-types 1.11.7 → 1.11.9

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.
@@ -310,4 +310,13 @@ export declare const APP_ERROR_CODES: {
310
310
  };
311
311
  };
312
312
  };
313
+ DOCUMENTS: {
314
+ INVALID_DOCUMENT_CREATION: {
315
+ usecase: string;
316
+ type: string;
317
+ messageLangMap: {
318
+ "PT-BR": string;
319
+ };
320
+ };
321
+ };
313
322
  };
@@ -6,10 +6,12 @@ var listFlightJourneyOptions_1 = require("./use-cases/flightChange/listFlightJou
6
6
  var recalculateFlightChanges_1 = require("./use-cases/flightChange/recalculateFlightChanges");
7
7
  var requestFlightChanges_1 = require("./use-cases/flightChange/requestFlightChanges");
8
8
  var selectFlightChangeOptions_1 = require("./use-cases/flightChange/selectFlightChangeOptions");
9
+ var documents_1 = require("./use-cases/documents");
9
10
  exports.APP_ERROR_CODES = {
10
11
  ORDER_TRAVEL: orderTravel_1.ORDER_TRAVEL,
11
12
  LIST_FLIGHT_JOURNEY_OPTIONS: listFlightJourneyOptions_1.LIST_FLIGHT_JOURNEY_OPTIONS,
12
13
  RECALCULATE_FLIGHT_CHANGES: recalculateFlightChanges_1.RECALCULATE_FLIGHT_CHANGES,
13
14
  REQUEST_FLIGHT_CHANGE: requestFlightChanges_1.REQUEST_FLIGHT_CHANGE,
14
- SELECT_FLIGHT_CHANGE_OPTIONS: selectFlightChangeOptions_1.SELECT_FLIGHT_CHANGE_OPTIONS
15
+ SELECT_FLIGHT_CHANGE_OPTIONS: selectFlightChangeOptions_1.SELECT_FLIGHT_CHANGE_OPTIONS,
16
+ DOCUMENTS: documents_1.DOCUMENTS
15
17
  };
@@ -0,0 +1,9 @@
1
+ export declare const DOCUMENTS: {
2
+ INVALID_DOCUMENT_CREATION: {
3
+ usecase: string;
4
+ type: string;
5
+ messageLangMap: {
6
+ "PT-BR": string;
7
+ };
8
+ };
9
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DOCUMENTS = void 0;
4
+ exports.DOCUMENTS = {
5
+ INVALID_DOCUMENT_CREATION: {
6
+ usecase: "DOCUMENT_CREATION",
7
+ type: "INVALID_DOCUMENT",
8
+ messageLangMap: {
9
+ "PT-BR": "Já existe um documento desse tipo cadastrado.",
10
+ },
11
+ },
12
+ };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Smartrips",
4
4
  "license": "ISC",
5
5
  "keywords": [],
6
- "version": "1.11.7",
6
+ "version": "1.11.9",
7
7
  "description": "",
8
8
  "repository": {
9
9
  "type": "git",
@@ -1,7 +1,7 @@
1
1
  import { RentabilityTypeEnum, CredentialTypeEnum } from "../../common";
2
2
  import { AmadeusCredentials } from "../../sm-amadeus";
3
3
  import { IAzulCredentials } from "../../sm-azul";
4
- import { IPaxInfo, IPassengerInfo, IContactInfo, IRoute, IOrderOptions, IWcfCredentials, ITTravelCredentialItem } from "../index";
4
+ import { IPaxInfo, IPassengerInfo, IContactInfo, IRoute, IOrderOptions, IWcfCredentials, ITTravelCredentialItem, IBoundFareDetails } from "../index";
5
5
  export interface IListFareFamiliesReqDto {
6
6
  searchId: string;
7
7
  offerId: string;
@@ -15,6 +15,10 @@ export interface IAddOfferReqDto {
15
15
  searchId: string;
16
16
  itineraryId: string;
17
17
  fareId: string;
18
+ fareDetails: {
19
+ outbound: IBoundFareDetails;
20
+ inbound?: IBoundFareDetails;
21
+ };
18
22
  }
19
23
  export interface IReserveOfferReqDto {
20
24
  contactInfo: IContactInfo;