sm-types 1.11.98 → 1.11.100
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/errors/web-app/index.d.ts +18 -0
- package/errors/web-app/index.js +2 -0
- package/errors/web-app/use-cases/orderItem.d.ts +8 -0
- package/errors/web-app/use-cases/orderItem.js +8 -0
- package/errors/web-app/use-cases/requestItemApproval.d.ts +10 -0
- package/errors/web-app/use-cases/requestItemApproval.js +13 -0
- package/package.json +1 -1
- package/sm-rails/index.d.ts +8 -1
|
@@ -597,6 +597,14 @@ export declare const APP_ERROR_CODES: {
|
|
|
597
597
|
"EN-US": string;
|
|
598
598
|
};
|
|
599
599
|
};
|
|
600
|
+
COUNTRY_BLOCKED: {
|
|
601
|
+
usecase: string;
|
|
602
|
+
type: string;
|
|
603
|
+
messageLangMap: {
|
|
604
|
+
"PT-BR": string;
|
|
605
|
+
"EN-US": string;
|
|
606
|
+
};
|
|
607
|
+
};
|
|
600
608
|
};
|
|
601
609
|
RECALCULATE_FLIGHT_CHANGES: {
|
|
602
610
|
USER_NOT_FOUND: {
|
|
@@ -649,6 +657,16 @@ export declare const APP_ERROR_CODES: {
|
|
|
649
657
|
};
|
|
650
658
|
};
|
|
651
659
|
};
|
|
660
|
+
REQUEST_ITEM_APPROVAL: {
|
|
661
|
+
COUNTRY_BLOCKED: {
|
|
662
|
+
usecase: string;
|
|
663
|
+
type: string;
|
|
664
|
+
messageLangMap: {
|
|
665
|
+
"PT-BR": string;
|
|
666
|
+
"EN-US": string;
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
};
|
|
652
670
|
REQUEST_FLIGHT_CHANGE: {
|
|
653
671
|
USER_NOT_FOUND: {
|
|
654
672
|
usecase: string;
|
package/errors/web-app/index.js
CHANGED
|
@@ -17,6 +17,7 @@ var listFlightJourneyOptions_1 = require("./use-cases/flightChange/listFlightJou
|
|
|
17
17
|
var listRepaceableApprovers_1 = require("./use-cases/approval/approver-replacement/listRepaceableApprovers");
|
|
18
18
|
var orderTravel_1 = require("./use-cases/orderTravel");
|
|
19
19
|
var recalculateFlightChanges_1 = require("./use-cases/flightChange/recalculateFlightChanges");
|
|
20
|
+
var requestItemApproval_1 = require("./use-cases/requestItemApproval");
|
|
20
21
|
var requestFlightChanges_1 = require("./use-cases/flightChange/requestFlightChanges");
|
|
21
22
|
var selectFlightChangeOptions_1 = require("./use-cases/flightChange/selectFlightChangeOptions");
|
|
22
23
|
var shutDownApproverReplacement_1 = require("./use-cases/approval/approver-replacement/shutDownApproverReplacement");
|
|
@@ -48,6 +49,7 @@ exports.APP_ERROR_CODES = {
|
|
|
48
49
|
ORDER_TRAVEL: orderTravel_1.ORDER_TRAVEL,
|
|
49
50
|
ORDER_ITEM: orderItem_1.ORDER_ITEM,
|
|
50
51
|
RECALCULATE_FLIGHT_CHANGES: recalculateFlightChanges_1.RECALCULATE_FLIGHT_CHANGES,
|
|
52
|
+
REQUEST_ITEM_APPROVAL: requestItemApproval_1.REQUEST_ITEM_APPROVAL,
|
|
51
53
|
REQUEST_FLIGHT_CHANGE: requestFlightChanges_1.REQUEST_FLIGHT_CHANGE,
|
|
52
54
|
SELECT_FLIGHT_CHANGE_OPTIONS: selectFlightChangeOptions_1.SELECT_FLIGHT_CHANGE_OPTIONS,
|
|
53
55
|
SHUT_DOWN_APPROVER_REPLACEMENT: shutDownApproverReplacement_1.SHUT_DOWN_APPROVER_REPLACEMENT,
|
|
@@ -58,4 +58,12 @@ exports.ORDER_ITEM = {
|
|
|
58
58
|
"EN-US": "The order has invalid credits.",
|
|
59
59
|
},
|
|
60
60
|
},
|
|
61
|
+
COUNTRY_BLOCKED: {
|
|
62
|
+
usecase: "ORDER_ITEM",
|
|
63
|
+
type: "COUNTRY_BLOCKED",
|
|
64
|
+
messageLangMap: {
|
|
65
|
+
"PT-BR": "A emissão da oferta não pode prosseguir, pois um dos países relacionados aos trechos da oferta está bloqueado nas configurações de conta do cliente.",
|
|
66
|
+
"EN-US": "The offer issuance cannot proceed because one of the countries related to the offer segments is blocked in the client's account settings.",
|
|
67
|
+
},
|
|
68
|
+
},
|
|
61
69
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REQUEST_ITEM_APPROVAL = void 0;
|
|
4
|
+
exports.REQUEST_ITEM_APPROVAL = {
|
|
5
|
+
COUNTRY_BLOCKED: {
|
|
6
|
+
usecase: "REQUEST_ITEM_APPROVAL",
|
|
7
|
+
type: "COUNTRY_BLOCKED",
|
|
8
|
+
messageLangMap: {
|
|
9
|
+
"PT-BR": "A solicitação de aprovação da oferta não pode prosseguir, pois um dos países relacionados aos trechos da oferta está bloqueado nas configurações de conta do cliente.",
|
|
10
|
+
"EN-US": "The offer approval request cannot proceed because one of the countries related to the offer segments is blocked in the client's account settings.",
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
};
|
package/package.json
CHANGED
package/sm-rails/index.d.ts
CHANGED
|
@@ -31,13 +31,18 @@ export interface IRailPolicy {
|
|
|
31
31
|
free: boolean;
|
|
32
32
|
freeUntil: string;
|
|
33
33
|
}
|
|
34
|
+
export interface IRailCompany {
|
|
35
|
+
name: string;
|
|
36
|
+
code: string;
|
|
37
|
+
}
|
|
34
38
|
interface IRailTicket {
|
|
35
39
|
station: string;
|
|
36
|
-
company:
|
|
40
|
+
company: IRailCompany;
|
|
37
41
|
terminal: string;
|
|
38
42
|
railNumber: string;
|
|
39
43
|
fareCategory: string;
|
|
40
44
|
class: string;
|
|
45
|
+
carriage: string;
|
|
41
46
|
seatPreferences: SeatPreference;
|
|
42
47
|
cancelPolicy: IRailPolicy;
|
|
43
48
|
changePolicy: IRailPolicy;
|
|
@@ -50,6 +55,7 @@ export interface IRailTripPart {
|
|
|
50
55
|
departure: {
|
|
51
56
|
place: {
|
|
52
57
|
station: string;
|
|
58
|
+
address: string;
|
|
53
59
|
terminal: string;
|
|
54
60
|
city: string;
|
|
55
61
|
};
|
|
@@ -61,6 +67,7 @@ export interface IRailTripPart {
|
|
|
61
67
|
arrival: {
|
|
62
68
|
place: {
|
|
63
69
|
station: string;
|
|
70
|
+
address: string;
|
|
64
71
|
city: string;
|
|
65
72
|
};
|
|
66
73
|
schedule: {
|