sm-types 1.11.20 → 1.11.21

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.
@@ -292,7 +292,7 @@ export declare const APP_ERROR_CODES: {
292
292
  'PT-BR': string;
293
293
  };
294
294
  };
295
- INVALID_ACTOR: {
295
+ USER_NOT_BELONG_TO_SESSION: {
296
296
  usecase: string;
297
297
  type: string;
298
298
  messageLangMap: {
@@ -306,13 +306,6 @@ export declare const APP_ERROR_CODES: {
306
306
  'PT-BR': string;
307
307
  };
308
308
  };
309
- OFFER_IS_NOT_EMITTED: {
310
- usecase: string;
311
- type: string;
312
- messageLangMap: {
313
- 'PT-BR': string;
314
- };
315
- };
316
309
  };
317
310
  DOCUMENTS: {
318
311
  INVALID_DOCUMENT_CREATION: {
@@ -323,14 +316,7 @@ export declare const APP_ERROR_CODES: {
323
316
  };
324
317
  };
325
318
  };
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
- };
319
+ GET_OFFER_CHANGE_APPROVAL: {
334
320
  TRAVEL_NOT_FOUND: {
335
321
  usecase: string;
336
322
  type: string;
@@ -338,7 +324,7 @@ export declare const APP_ERROR_CODES: {
338
324
  'PT-BR': string;
339
325
  };
340
326
  };
341
- USER_NOT_BELONG_TO_CLIENT: {
327
+ OFFER_NOT_FOUND: {
342
328
  usecase: string;
343
329
  type: string;
344
330
  messageLangMap: {
@@ -368,12 +354,5 @@ export declare const APP_ERROR_CODES: {
368
354
  'PT-BR': string;
369
355
  };
370
356
  };
371
- USER_NOT_BELONG_TO_CLIENT: {
372
- usecase: string;
373
- type: string;
374
- messageLangMap: {
375
- 'PT-BR': string;
376
- };
377
- };
378
357
  };
379
358
  };
@@ -9,8 +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
12
  var getPaymentMethodForOfferChange_1 = require("./use-cases/getPaymentMethodForOfferChange");
13
+ var getOfferChangeApproval_1 = require("./use-cases/getOfferChangeApproval");
14
14
  exports.APP_ERROR_CODES = {
15
15
  CREATE_FLIGHT_CHANGE_SESSION: createFlightChangeSession_1.CREATE_FLIGHT_CHANGE_SESSION,
16
16
  GET_FLIGHT_CHANGE_SUMMARY: getFlightChangeSummary_1.GET_FLIGHT_CHANGE_SUMMARY,
@@ -20,6 +20,6 @@ exports.APP_ERROR_CODES = {
20
20
  REQUEST_FLIGHT_CHANGE: requestFlightChanges_1.REQUEST_FLIGHT_CHANGE,
21
21
  SELECT_FLIGHT_CHANGE_OPTIONS: selectFlightChangeOptions_1.SELECT_FLIGHT_CHANGE_OPTIONS,
22
22
  DOCUMENTS: documents_1.DOCUMENTS,
23
- CHECK_USER_PAY_FOR_TRAVEL_CHANGE: checkUserPayForTravelChange_1.CHECK_USER_PAY_FOR_TRAVEL_CHANGE,
23
+ GET_OFFER_CHANGE_APPROVAL: getOfferChangeApproval_1.GET_OFFER_CHANGE_APPROVAL,
24
24
  GET_PAYMENT_METHOD_FOR_OFFER_CHANGE: getPaymentMethodForOfferChange_1.GET_PAYMENT_METHOD_FOR_OFFER_CHANGE
25
25
  };
@@ -13,7 +13,7 @@ export declare const SELECT_FLIGHT_CHANGE_OPTIONS: {
13
13
  'PT-BR': string;
14
14
  };
15
15
  };
16
- INVALID_ACTOR: {
16
+ USER_NOT_BELONG_TO_SESSION: {
17
17
  usecase: string;
18
18
  type: string;
19
19
  messageLangMap: {
@@ -27,11 +27,4 @@ export declare const SELECT_FLIGHT_CHANGE_OPTIONS: {
27
27
  'PT-BR': string;
28
28
  };
29
29
  };
30
- OFFER_IS_NOT_EMITTED: {
31
- usecase: string;
32
- type: string;
33
- messageLangMap: {
34
- 'PT-BR': string;
35
- };
36
- };
37
30
  };
@@ -16,11 +16,11 @@ exports.SELECT_FLIGHT_CHANGE_OPTIONS = {
16
16
  'PT-BR': 'A oferta original não encontrada.',
17
17
  },
18
18
  },
19
- INVALID_ACTOR: {
20
- usecase: 'SELECT_FLIGHT_CHANGE_OPTIONS',
21
- type: 'INVALID_ACTOR',
19
+ USER_NOT_BELONG_TO_SESSION: {
20
+ usecase: 'RECALCULATE_FLIGHT_CHANGES',
21
+ type: 'USER_NOT_BELONG_TO_SESSION',
22
22
  messageLangMap: {
23
- 'PT-BR': 'O usuário logado não é válido para selecionar as mudanças.',
23
+ 'PT-BR': 'Não é possível trocar o usuário durante uma solicitação de alteração de voo.',
24
24
  },
25
25
  },
26
26
  SESSION_WITH_INCOMPLETE_DATA: {
@@ -30,11 +30,4 @@ exports.SELECT_FLIGHT_CHANGE_OPTIONS = {
30
30
  'PT-BR': 'Sessão com dados incompletos.',
31
31
  },
32
32
  },
33
- OFFER_IS_NOT_EMITTED: {
34
- usecase: 'SELECT_FLIGHT_CHANGE_OPTIONS',
35
- type: 'OFFER_IS_NOT_EMITTED',
36
- messageLangMap: {
37
- 'PT-BR': 'Apenas ofertas com status de emitida podem ser alteradas.',
38
- },
39
- },
40
33
  };
@@ -1,11 +1,4 @@
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
- };
1
+ export declare const GET_OFFER_CHANGE_APPROVAL: {
9
2
  TRAVEL_NOT_FOUND: {
10
3
  usecase: string;
11
4
  type: string;
@@ -13,7 +6,7 @@ export declare const CHECK_USER_PAY_FOR_TRAVEL_CHANGE: {
13
6
  'PT-BR': string;
14
7
  };
15
8
  };
16
- USER_NOT_BELONG_TO_CLIENT: {
9
+ OFFER_NOT_FOUND: {
17
10
  usecase: string;
18
11
  type: string;
19
12
  messageLangMap: {
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_OFFER_CHANGE_APPROVAL = void 0;
4
+ exports.GET_OFFER_CHANGE_APPROVAL = {
5
+ TRAVEL_NOT_FOUND: {
6
+ usecase: 'GET_OFFER_CHANGE_APPROVAL',
7
+ type: 'TRAVEL_NOT_FOUND',
8
+ messageLangMap: {
9
+ 'PT-BR': 'Viagem não encontrada.',
10
+ },
11
+ },
12
+ OFFER_NOT_FOUND: {
13
+ usecase: 'GET_OFFER_CHANGE_APPROVAL',
14
+ type: 'OFFER_NOT_FOUND',
15
+ messageLangMap: {
16
+ 'PT-BR': 'Oferta não encontrada.',
17
+ },
18
+ },
19
+ };
@@ -20,11 +20,4 @@ export declare const GET_PAYMENT_METHOD_FOR_OFFER_CHANGE: {
20
20
  'PT-BR': string;
21
21
  };
22
22
  };
23
- USER_NOT_BELONG_TO_CLIENT: {
24
- usecase: string;
25
- type: string;
26
- messageLangMap: {
27
- 'PT-BR': string;
28
- };
29
- };
30
23
  };
@@ -23,11 +23,4 @@ exports.GET_PAYMENT_METHOD_FOR_OFFER_CHANGE = {
23
23
  'PT-BR': 'Configuração do fornecedor não encontrada.',
24
24
  },
25
25
  },
26
- USER_NOT_BELONG_TO_CLIENT: {
27
- usecase: 'GET_PAYMENT_METHOD_FOR_OFFER_CHANGE',
28
- type: 'USER_NOT_BELONG_TO_CLIENT',
29
- messageLangMap: {
30
- 'PT-BR': 'O usuário e a oferta não estão associados ao mesmo cliente.',
31
- },
32
- },
33
26
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Smartrips",
4
4
  "license": "ISC",
5
5
  "keywords": [],
6
- "version": "1.11.20",
6
+ "version": "1.11.21",
7
7
  "description": "",
8
8
  "repository": {
9
9
  "type": "git",
@@ -1,26 +0,0 @@
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
- USER_NOT_BELONG_TO_CLIENT: {
20
- usecase: 'CHECK_USER_PAY_FOR_TRAVEL_CHANGE',
21
- type: 'USER_NOT_BELONG_TO_CLIENT',
22
- messageLangMap: {
23
- 'PT-BR': 'O usuário e a oferta não estão associados ao mesmo cliente.',
24
- },
25
- },
26
- };