sm-types 1.9.11 → 1.9.12
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/index.d.ts +1 -0
- package/errors/index.js +3 -1
- package/errors/support/index.d.ts +38 -8
- package/errors/support/index.js +2 -0
- package/errors/support/use-cases/createSupplierConfig.d.ts +1 -8
- package/errors/support/use-cases/createSupplierConfig.js +3 -10
- package/errors/support/use-cases/editSupplierConfig.d.ts +7 -0
- package/errors/support/use-cases/editSupplierConfig.js +8 -1
- package/errors/support/use-cases/manualOrderTravelReprocess.d.ts +30 -0
- package/errors/support/use-cases/manualOrderTravelReprocess.js +33 -0
- package/errors/web-app/index.d.ts +53 -0
- package/errors/web-app/index.js +7 -0
- package/errors/web-app/use-cases/orderTravel.d.ts +51 -0
- package/errors/web-app/use-cases/orderTravel.js +54 -0
- package/package.json +1 -1
package/errors/index.d.ts
CHANGED
package/errors/index.js
CHANGED
|
@@ -23,7 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.REQUEST_ERRORS = exports.USER_ERRORS = exports.SUPPORT_ERROR_CODES = void 0;
|
|
26
|
+
exports.REQUEST_ERRORS = exports.USER_ERRORS = exports.SUPPORT_ERROR_CODES = exports.APP_ERROR_CODES = void 0;
|
|
27
|
+
var web_app_1 = require("./web-app");
|
|
28
|
+
Object.defineProperty(exports, "APP_ERROR_CODES", { enumerable: true, get: function () { return web_app_1.APP_ERROR_CODES; } });
|
|
27
29
|
var support_1 = require("./support");
|
|
28
30
|
Object.defineProperty(exports, "SUPPORT_ERROR_CODES", { enumerable: true, get: function () { return support_1.SUPPORT_ERROR_CODES; } });
|
|
29
31
|
exports.USER_ERRORS = __importStar(require("./user"));
|
|
@@ -30,7 +30,7 @@ export declare const SUPPORT_ERROR_CODES: {
|
|
|
30
30
|
"PT-BR": string;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
|
|
33
|
+
INVALID_PAY_OPTION_FOR_SAME_SERVICE_TYPE: {
|
|
34
34
|
usecase: string;
|
|
35
35
|
type: string;
|
|
36
36
|
messageLangMap: {
|
|
@@ -51,13 +51,6 @@ export declare const SUPPORT_ERROR_CODES: {
|
|
|
51
51
|
"PT-BR": string;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
|
-
MONETIZATION_CONFIG_INCOMPLETE: {
|
|
55
|
-
usecase: string;
|
|
56
|
-
type: string;
|
|
57
|
-
messageLangMap: {
|
|
58
|
-
"PT-BR": string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
54
|
INVALID_AGENCY_RECEIPT_OPTION: {
|
|
62
55
|
usecase: string;
|
|
63
56
|
type: string;
|
|
@@ -95,6 +88,13 @@ export declare const SUPPORT_ERROR_CODES: {
|
|
|
95
88
|
"PT-BR": string;
|
|
96
89
|
};
|
|
97
90
|
};
|
|
91
|
+
INVALID_PAY_OPTION_FOR_SAME_SERVICE_TYPE: {
|
|
92
|
+
usecase: string;
|
|
93
|
+
type: string;
|
|
94
|
+
messageLangMap: {
|
|
95
|
+
"PT-BR": string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
98
|
INVALID_AGENCY_RECEIPT_OPTION: {
|
|
99
99
|
usecase: string;
|
|
100
100
|
type: string;
|
|
@@ -131,4 +131,34 @@ export declare const SUPPORT_ERROR_CODES: {
|
|
|
131
131
|
};
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
|
+
MANUAL_ORDER_TRAVEL_REPROCESS: {
|
|
135
|
+
CANNOT_BE_REPROCESSED: {
|
|
136
|
+
usecase: string;
|
|
137
|
+
type: string;
|
|
138
|
+
messageLangMap: {
|
|
139
|
+
"PT-BR": string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
CANNOT_BE_AUTOMATICALLY_PROCESSED: {
|
|
143
|
+
usecase: string;
|
|
144
|
+
type: string;
|
|
145
|
+
messageLangMap: {
|
|
146
|
+
"PT-BR": string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
USER_NOT_FOUND: {
|
|
150
|
+
usecase: string;
|
|
151
|
+
type: string;
|
|
152
|
+
messageLangMap: {
|
|
153
|
+
"PT-BR": string;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
ITEMS_NOT_FOUND: {
|
|
157
|
+
usecase: string;
|
|
158
|
+
type: string;
|
|
159
|
+
messageLangMap: {
|
|
160
|
+
"PT-BR": string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
};
|
|
134
164
|
};
|
package/errors/support/index.js
CHANGED
|
@@ -3,9 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SUPPORT_ERROR_CODES = void 0;
|
|
4
4
|
var createSupplierConfig_1 = require("./use-cases/createSupplierConfig");
|
|
5
5
|
var editSupplierConfig_1 = require("./use-cases/editSupplierConfig");
|
|
6
|
+
var manualOrderTravelReprocess_1 = require("./use-cases/manualOrderTravelReprocess");
|
|
6
7
|
var replicateSupplierConfigs_1 = require("./use-cases/replicateSupplierConfigs");
|
|
7
8
|
exports.SUPPORT_ERROR_CODES = {
|
|
8
9
|
SUPPLIER_CONFIG_REPLICATION: replicateSupplierConfigs_1.SUPPLIER_CONFIG_REPLICATION,
|
|
9
10
|
SUPPLIER_CONFIG_CREATE: createSupplierConfig_1.SUPPLIER_CONFIG_CREATE,
|
|
10
11
|
SUPPLIER_CONFIG_EDIT: editSupplierConfig_1.SUPPLIER_CONFIG_EDIT,
|
|
12
|
+
MANUAL_ORDER_TRAVEL_REPROCESS: manualOrderTravelReprocess_1.MANUAL_ORDER_TRAVEL_REPROCESS
|
|
11
13
|
};
|
|
@@ -6,7 +6,7 @@ export declare const SUPPLIER_CONFIG_CREATE: {
|
|
|
6
6
|
"PT-BR": string;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
INVALID_PAY_OPTION_FOR_SAME_SERVICE_TYPE: {
|
|
10
10
|
usecase: string;
|
|
11
11
|
type: string;
|
|
12
12
|
messageLangMap: {
|
|
@@ -27,13 +27,6 @@ export declare const SUPPLIER_CONFIG_CREATE: {
|
|
|
27
27
|
"PT-BR": string;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
MONETIZATION_CONFIG_INCOMPLETE: {
|
|
31
|
-
usecase: string;
|
|
32
|
-
type: string;
|
|
33
|
-
messageLangMap: {
|
|
34
|
-
"PT-BR": string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
30
|
INVALID_AGENCY_RECEIPT_OPTION: {
|
|
38
31
|
usecase: string;
|
|
39
32
|
type: string;
|
|
@@ -9,11 +9,11 @@ exports.SUPPLIER_CONFIG_CREATE = {
|
|
|
9
9
|
"PT-BR": "Não é possível replicar um fornecedor integrado.",
|
|
10
10
|
},
|
|
11
11
|
},
|
|
12
|
-
|
|
12
|
+
INVALID_PAY_OPTION_FOR_SAME_SERVICE_TYPE: {
|
|
13
13
|
usecase: "SUPPLIER_CONFIG_CREATE",
|
|
14
|
-
type: "
|
|
14
|
+
type: "INVALID_PAY_OPTION_FOR_SAME_SERVICE_TYPE",
|
|
15
15
|
messageLangMap: {
|
|
16
|
-
"PT-BR": "
|
|
16
|
+
"PT-BR": "Fornecedores integrados do mesmo tipo de serviço não podem ter formas de pagamento diferentes.",
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
INVALID_MONETIZATION_LOCATION: {
|
|
@@ -30,13 +30,6 @@ exports.SUPPLIER_CONFIG_CREATE = {
|
|
|
30
30
|
"PT-BR": "Configuração de monetização inválida.",
|
|
31
31
|
},
|
|
32
32
|
},
|
|
33
|
-
MONETIZATION_CONFIG_INCOMPLETE: {
|
|
34
|
-
usecase: "SUPPLIER_CONFIG_CREATE",
|
|
35
|
-
type: "MONETIZATION_CONFIG_INCOMPLETE",
|
|
36
|
-
messageLangMap: {
|
|
37
|
-
"PT-BR": "Configuração de monetização incompleta.",
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
33
|
INVALID_AGENCY_RECEIPT_OPTION: {
|
|
41
34
|
usecase: "SUPPLIER_CONFIG_CREATE",
|
|
42
35
|
type: "INVALID_AGENCY_RECEIPT_OPTION",
|
|
@@ -13,6 +13,13 @@ export declare const SUPPLIER_CONFIG_EDIT: {
|
|
|
13
13
|
"PT-BR": string;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
+
INVALID_PAY_OPTION_FOR_SAME_SERVICE_TYPE: {
|
|
17
|
+
usecase: string;
|
|
18
|
+
type: string;
|
|
19
|
+
messageLangMap: {
|
|
20
|
+
"PT-BR": string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
16
23
|
INVALID_AGENCY_RECEIPT_OPTION: {
|
|
17
24
|
usecase: string;
|
|
18
25
|
type: string;
|
|
@@ -16,6 +16,13 @@ exports.SUPPLIER_CONFIG_EDIT = {
|
|
|
16
16
|
"PT-BR": "Configuração de monetização inválida.",
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
|
+
INVALID_PAY_OPTION_FOR_SAME_SERVICE_TYPE: {
|
|
20
|
+
usecase: "SUPPLIER_CONFIG_EDIT",
|
|
21
|
+
type: "INVALID_PAY_OPTION_FOR_SAME_SERVICE_TYPE",
|
|
22
|
+
messageLangMap: {
|
|
23
|
+
"PT-BR": "Fornecedores integrados do mesmo tipo de serviço não podem ter formas de pagamento diferentes.",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
19
26
|
INVALID_AGENCY_RECEIPT_OPTION: {
|
|
20
27
|
usecase: "SUPPLIER_CONFIG_EDIT",
|
|
21
28
|
type: "INVALID_AGENCY_RECEIPT_OPTION",
|
|
@@ -41,7 +48,7 @@ exports.SUPPLIER_CONFIG_EDIT = {
|
|
|
41
48
|
usecase: "SUPPLIER_CONFIG_EDIT",
|
|
42
49
|
type: "USER_NOT_FOUND",
|
|
43
50
|
messageLangMap: {
|
|
44
|
-
"PT-BR": "Usuário não encontrado.",
|
|
51
|
+
"PT-BR": "Usuário do suporte não encontrado.",
|
|
45
52
|
},
|
|
46
53
|
},
|
|
47
54
|
SUPPLIER_CONFIG_NOT_FOUND: {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const MANUAL_ORDER_TRAVEL_REPROCESS: {
|
|
2
|
+
CANNOT_BE_REPROCESSED: {
|
|
3
|
+
usecase: string;
|
|
4
|
+
type: string;
|
|
5
|
+
messageLangMap: {
|
|
6
|
+
"PT-BR": string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
CANNOT_BE_AUTOMATICALLY_PROCESSED: {
|
|
10
|
+
usecase: string;
|
|
11
|
+
type: string;
|
|
12
|
+
messageLangMap: {
|
|
13
|
+
"PT-BR": string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
USER_NOT_FOUND: {
|
|
17
|
+
usecase: string;
|
|
18
|
+
type: string;
|
|
19
|
+
messageLangMap: {
|
|
20
|
+
"PT-BR": string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
ITEMS_NOT_FOUND: {
|
|
24
|
+
usecase: string;
|
|
25
|
+
type: string;
|
|
26
|
+
messageLangMap: {
|
|
27
|
+
"PT-BR": string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MANUAL_ORDER_TRAVEL_REPROCESS = void 0;
|
|
4
|
+
exports.MANUAL_ORDER_TRAVEL_REPROCESS = {
|
|
5
|
+
CANNOT_BE_REPROCESSED: {
|
|
6
|
+
usecase: "MANUAL_ORDER_TRAVEL_REPROCESS",
|
|
7
|
+
type: "CANNOT_BE_REPROCESSED",
|
|
8
|
+
messageLangMap: {
|
|
9
|
+
"PT-BR": "Não é possível reprocessar as itens.",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
CANNOT_BE_AUTOMATICALLY_PROCESSED: {
|
|
13
|
+
usecase: "MANUAL_ORDER_TRAVEL_REPROCESS",
|
|
14
|
+
type: "CANNOT_BE_AUTOMATICALLY_PROCESSED",
|
|
15
|
+
messageLangMap: {
|
|
16
|
+
"PT-BR": "Não é possível prosseguir com o processamento automático.",
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
USER_NOT_FOUND: {
|
|
20
|
+
usecase: "MANUAL_ORDER_TRAVEL_REPROCESS",
|
|
21
|
+
type: "USER_NOT_FOUND",
|
|
22
|
+
messageLangMap: {
|
|
23
|
+
"PT-BR": "Usuário do suporte não encontrado.",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
ITEMS_NOT_FOUND: {
|
|
27
|
+
usecase: "MANUAL_ORDER_TRAVEL_REPROCESS",
|
|
28
|
+
type: "ITEMS_NOT_FOUND",
|
|
29
|
+
messageLangMap: {
|
|
30
|
+
"PT-BR": "Não foi possível encontrar os itens para reprocessamento.",
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const APP_ERROR_CODES: {
|
|
2
|
+
ORDER_TRAVEL: {
|
|
3
|
+
INVALID_CARD: {
|
|
4
|
+
usecase: string;
|
|
5
|
+
type: string;
|
|
6
|
+
messageLangMap: {
|
|
7
|
+
"PT-BR": string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
INVALID_PAYMENT_METHODS: {
|
|
11
|
+
usecase: string;
|
|
12
|
+
type: string;
|
|
13
|
+
messageLangMap: {
|
|
14
|
+
"PT-BR": string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
INVALID_TRAVEL_ITINERARY: {
|
|
18
|
+
usecase: string;
|
|
19
|
+
type: string;
|
|
20
|
+
messageLangMap: {
|
|
21
|
+
"PT-BR": string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
NOT_CONFIGURED_SUPPLIERS: {
|
|
25
|
+
usecase: string;
|
|
26
|
+
type: string;
|
|
27
|
+
messageLangMap: {
|
|
28
|
+
"PT-BR": string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
PENDING_DOCUMENTS: {
|
|
32
|
+
usecase: string;
|
|
33
|
+
type: string;
|
|
34
|
+
messageLangMap: {
|
|
35
|
+
"PT-BR": string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
PLANE_LIMIT_EXCEEDED: {
|
|
39
|
+
usecase: string;
|
|
40
|
+
type: string;
|
|
41
|
+
messageLangMap: {
|
|
42
|
+
"PT-BR": string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
UNPROCESSABLE_OFFER: {
|
|
46
|
+
usecase: string;
|
|
47
|
+
type: string;
|
|
48
|
+
messageLangMap: {
|
|
49
|
+
"PT-BR": string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const ORDER_TRAVEL: {
|
|
2
|
+
INVALID_CARD: {
|
|
3
|
+
usecase: string;
|
|
4
|
+
type: string;
|
|
5
|
+
messageLangMap: {
|
|
6
|
+
"PT-BR": string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
INVALID_PAYMENT_METHODS: {
|
|
10
|
+
usecase: string;
|
|
11
|
+
type: string;
|
|
12
|
+
messageLangMap: {
|
|
13
|
+
"PT-BR": string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
INVALID_TRAVEL_ITINERARY: {
|
|
17
|
+
usecase: string;
|
|
18
|
+
type: string;
|
|
19
|
+
messageLangMap: {
|
|
20
|
+
"PT-BR": string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
NOT_CONFIGURED_SUPPLIERS: {
|
|
24
|
+
usecase: string;
|
|
25
|
+
type: string;
|
|
26
|
+
messageLangMap: {
|
|
27
|
+
"PT-BR": string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
PENDING_DOCUMENTS: {
|
|
31
|
+
usecase: string;
|
|
32
|
+
type: string;
|
|
33
|
+
messageLangMap: {
|
|
34
|
+
"PT-BR": string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
PLANE_LIMIT_EXCEEDED: {
|
|
38
|
+
usecase: string;
|
|
39
|
+
type: string;
|
|
40
|
+
messageLangMap: {
|
|
41
|
+
"PT-BR": string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
UNPROCESSABLE_OFFER: {
|
|
45
|
+
usecase: string;
|
|
46
|
+
type: string;
|
|
47
|
+
messageLangMap: {
|
|
48
|
+
"PT-BR": string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ORDER_TRAVEL = void 0;
|
|
4
|
+
exports.ORDER_TRAVEL = {
|
|
5
|
+
INVALID_CARD: {
|
|
6
|
+
usecase: "ORDER_TRAVEL",
|
|
7
|
+
type: "INVALID_CARD",
|
|
8
|
+
messageLangMap: {
|
|
9
|
+
"PT-BR": "Cartão de crédito inválido.",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
INVALID_PAYMENT_METHODS: {
|
|
13
|
+
usecase: "ORDER_TRAVEL",
|
|
14
|
+
type: "INVALID_PAYMENT_METHODS",
|
|
15
|
+
messageLangMap: {
|
|
16
|
+
"PT-BR": "Método de pagamento inválido.",
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
INVALID_TRAVEL_ITINERARY: {
|
|
20
|
+
usecase: "ORDER_TRAVEL",
|
|
21
|
+
type: "INVALID_TRAVEL_ITINERARY",
|
|
22
|
+
messageLangMap: {
|
|
23
|
+
"PT-BR": "Itinerário inválido.",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
NOT_CONFIGURED_SUPPLIERS: {
|
|
27
|
+
usecase: "ORDER_TRAVEL",
|
|
28
|
+
type: "NOT_CONFIGURED_SUPPLIERS",
|
|
29
|
+
messageLangMap: {
|
|
30
|
+
"PT-BR": "Fornecedores não configurados.",
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
PENDING_DOCUMENTS: {
|
|
34
|
+
usecase: "ORDER_TRAVEL",
|
|
35
|
+
type: "PENDING_DOCUMENTS",
|
|
36
|
+
messageLangMap: {
|
|
37
|
+
"PT-BR": "Documentos pendentes.",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
PLANE_LIMIT_EXCEEDED: {
|
|
41
|
+
usecase: "ORDER_TRAVEL",
|
|
42
|
+
type: "PLANE_LIMIT_EXCEEDED",
|
|
43
|
+
messageLangMap: {
|
|
44
|
+
"PT-BR": "Limite aéreo excedido.",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
UNPROCESSABLE_OFFER: {
|
|
48
|
+
usecase: "ORDER_TRAVEL",
|
|
49
|
+
type: "UNPROCESSABLE_OFFER",
|
|
50
|
+
messageLangMap: {
|
|
51
|
+
"PT-BR": "Não é possível processar as ofertas.",
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
};
|