sm-types 1.11.17 → 1.11.19

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.
@@ -43,6 +43,7 @@ export interface IListFlightJourneyOptionsResDto {
43
43
  journeys: EnrichedJourneyOptions[];
44
44
  is_international: boolean;
45
45
  supplier: string;
46
+ travel_token: string;
46
47
  change_type: ChangeFlightType;
47
48
  session_info: SessionInfo;
48
49
  }
@@ -107,6 +107,13 @@ export declare const APP_ERROR_CODES: {
107
107
  'PT-BR': string;
108
108
  };
109
109
  };
110
+ TRAVEL_NOT_FOUND: {
111
+ usecase: string;
112
+ type: string;
113
+ messageLangMap: {
114
+ 'PT-BR': string;
115
+ };
116
+ };
110
117
  };
111
118
  ORDER_TRAVEL: {
112
119
  INVALID_CARD: {
@@ -316,4 +323,43 @@ export declare const APP_ERROR_CODES: {
316
323
  };
317
324
  };
318
325
  };
326
+ CHECK_USER_PAY_FOR_TRAVEL_CHANGE: {
327
+ USER_NOT_FOUND: {
328
+ usecase: string;
329
+ type: string;
330
+ messageLangMap: {
331
+ 'PT-BR': string;
332
+ };
333
+ };
334
+ TRAVEL_NOT_FOUND: {
335
+ usecase: string;
336
+ type: string;
337
+ messageLangMap: {
338
+ 'PT-BR': string;
339
+ };
340
+ };
341
+ };
342
+ GET_PAYMENT_METHOD_FOR_OFFER_CHANGE: {
343
+ USER_NOT_FOUND: {
344
+ usecase: string;
345
+ type: string;
346
+ messageLangMap: {
347
+ 'PT-BR': string;
348
+ };
349
+ };
350
+ OFFER_NOT_FOUND: {
351
+ usecase: string;
352
+ type: string;
353
+ messageLangMap: {
354
+ 'PT-BR': string;
355
+ };
356
+ };
357
+ SUPPLIER_CONFIG_NOT_FOUND: {
358
+ usecase: string;
359
+ type: string;
360
+ messageLangMap: {
361
+ 'PT-BR': string;
362
+ };
363
+ };
364
+ };
319
365
  };
@@ -9,6 +9,8 @@ var selectFlightChangeOptions_1 = require("./use-cases/flightChange/selectFlight
9
9
  var documents_1 = require("./use-cases/documents");
10
10
  var createFlightChangeSession_1 = require("./use-cases/flightChange/createFlightChangeSession");
11
11
  var getFlightChangeSummary_1 = require("./use-cases/flightChange/getFlightChangeSummary");
12
+ var checkUserPayForTravelChange_1 = require("./use-cases/checkUserPayForTravelChange");
13
+ var getPaymentMethodForOfferChange_1 = require("./use-cases/getPaymentMethodForOfferChange");
12
14
  exports.APP_ERROR_CODES = {
13
15
  CREATE_FLIGHT_CHANGE_SESSION: createFlightChangeSession_1.CREATE_FLIGHT_CHANGE_SESSION,
14
16
  GET_FLIGHT_CHANGE_SUMMARY: getFlightChangeSummary_1.GET_FLIGHT_CHANGE_SUMMARY,
@@ -17,5 +19,7 @@ exports.APP_ERROR_CODES = {
17
19
  RECALCULATE_FLIGHT_CHANGES: recalculateFlightChanges_1.RECALCULATE_FLIGHT_CHANGES,
18
20
  REQUEST_FLIGHT_CHANGE: requestFlightChanges_1.REQUEST_FLIGHT_CHANGE,
19
21
  SELECT_FLIGHT_CHANGE_OPTIONS: selectFlightChangeOptions_1.SELECT_FLIGHT_CHANGE_OPTIONS,
20
- DOCUMENTS: documents_1.DOCUMENTS
22
+ DOCUMENTS: documents_1.DOCUMENTS,
23
+ CHECK_USER_PAY_FOR_TRAVEL_CHANGE: checkUserPayForTravelChange_1.CHECK_USER_PAY_FOR_TRAVEL_CHANGE,
24
+ GET_PAYMENT_METHOD_FOR_OFFER_CHANGE: getPaymentMethodForOfferChange_1.GET_PAYMENT_METHOD_FOR_OFFER_CHANGE
21
25
  };
@@ -0,0 +1,16 @@
1
+ export declare const CHECK_USER_PAY_FOR_TRAVEL_CHANGE: {
2
+ USER_NOT_FOUND: {
3
+ usecase: string;
4
+ type: string;
5
+ messageLangMap: {
6
+ 'PT-BR': string;
7
+ };
8
+ };
9
+ TRAVEL_NOT_FOUND: {
10
+ usecase: string;
11
+ type: string;
12
+ messageLangMap: {
13
+ 'PT-BR': string;
14
+ };
15
+ };
16
+ };
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CHECK_USER_PAY_FOR_TRAVEL_CHANGE = void 0;
4
+ exports.CHECK_USER_PAY_FOR_TRAVEL_CHANGE = {
5
+ USER_NOT_FOUND: {
6
+ usecase: 'CHECK_USER_PAY_FOR_TRAVEL_CHANGE',
7
+ type: 'USER_NOT_FOUND',
8
+ messageLangMap: {
9
+ 'PT-BR': 'Usuário não encontrado.',
10
+ },
11
+ },
12
+ TRAVEL_NOT_FOUND: {
13
+ usecase: 'CHECK_USER_PAY_FOR_TRAVEL_CHANGE',
14
+ type: 'TRAVEL_NOT_FOUND',
15
+ messageLangMap: {
16
+ 'PT-BR': 'Viagem não encontrada.',
17
+ },
18
+ },
19
+ };
@@ -27,4 +27,11 @@ export declare const GET_FLIGHT_CHANGE_SUMMARY: {
27
27
  'PT-BR': string;
28
28
  };
29
29
  };
30
+ TRAVEL_NOT_FOUND: {
31
+ usecase: string;
32
+ type: string;
33
+ messageLangMap: {
34
+ 'PT-BR': string;
35
+ };
36
+ };
30
37
  };
@@ -30,4 +30,11 @@ exports.GET_FLIGHT_CHANGE_SUMMARY = {
30
30
  'PT-BR': 'A oferta original não encontrada.',
31
31
  },
32
32
  },
33
+ TRAVEL_NOT_FOUND: {
34
+ usecase: 'GET_FLIGHT_CHANGE_SUMMARY',
35
+ type: 'TRAVEL_NOT_FOUND',
36
+ messageLangMap: {
37
+ 'PT-BR': 'Viagem não encontrada.',
38
+ },
39
+ },
33
40
  };
@@ -0,0 +1,23 @@
1
+ export declare const GET_PAYMENT_METHOD_FOR_OFFER_CHANGE: {
2
+ USER_NOT_FOUND: {
3
+ usecase: string;
4
+ type: string;
5
+ messageLangMap: {
6
+ 'PT-BR': string;
7
+ };
8
+ };
9
+ OFFER_NOT_FOUND: {
10
+ usecase: string;
11
+ type: string;
12
+ messageLangMap: {
13
+ 'PT-BR': string;
14
+ };
15
+ };
16
+ SUPPLIER_CONFIG_NOT_FOUND: {
17
+ usecase: string;
18
+ type: string;
19
+ messageLangMap: {
20
+ 'PT-BR': string;
21
+ };
22
+ };
23
+ };
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_PAYMENT_METHOD_FOR_OFFER_CHANGE = void 0;
4
+ exports.GET_PAYMENT_METHOD_FOR_OFFER_CHANGE = {
5
+ USER_NOT_FOUND: {
6
+ usecase: 'GET_PAYMENT_METHOD_FOR_OFFER_CHANGE',
7
+ type: 'USER_NOT_FOUND',
8
+ messageLangMap: {
9
+ 'PT-BR': 'Usuário não encontrado.',
10
+ },
11
+ },
12
+ OFFER_NOT_FOUND: {
13
+ usecase: 'GET_PAYMENT_METHOD_FOR_OFFER_CHANGE',
14
+ type: 'OFFER_NOT_FOUND',
15
+ messageLangMap: {
16
+ 'PT-BR': 'Oferta não encontrada.',
17
+ },
18
+ },
19
+ SUPPLIER_CONFIG_NOT_FOUND: {
20
+ usecase: 'GET_PAYMENT_METHOD_FOR_OFFER_CHANGE',
21
+ type: 'SUPPLIER_CONFIG_NOT_FOUND',
22
+ messageLangMap: {
23
+ 'PT-BR': 'Configuração do fornecedor não encontrada.',
24
+ },
25
+ },
26
+ };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Smartrips",
4
4
  "license": "ISC",
5
5
  "keywords": [],
6
- "version": "1.11.17",
6
+ "version": "1.11.19",
7
7
  "description": "",
8
8
  "repository": {
9
9
  "type": "git",