mp-front-cli 2.0.1-next-0 → 2.1.0
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/dist/core/errors/error-catalog.d.ts +5 -2
- package/dist/core/errors/error-catalog.d.ts.map +1 -1
- package/dist/core/interfaces/api-response.d.ts +6 -0
- package/dist/core/interfaces/api-response.d.ts.map +1 -1
- package/dist/core/interfaces/index.d.ts +1 -1
- package/dist/core/interfaces/index.d.ts.map +1 -1
- package/dist/core/utils/api-request/fetch-service-parent-be.d.ts +4 -4
- package/dist/core/utils/api-request/fetch-service-parent-be.d.ts.map +1 -1
- package/dist/fetch-service-parent-be-ieWZxGPx.js +1365 -0
- package/dist/{i18n-1X2In6k5.js → index-B_86KXmg.js} +5 -226
- package/dist/lang/common/errors/es_MX/index.d.ts +52 -248
- package/dist/lang/common/errors/es_MX/index.d.ts.map +1 -1
- package/dist/lang/i18n.d.ts +2 -2
- package/dist/lang/i18n.d.ts.map +1 -1
- package/dist/lang/index.d.ts +0 -1
- package/dist/lang/index.d.ts.map +1 -1
- package/dist/mp-front-cli-all.es.js +1 -1
- package/dist/mp-front-cli-core.es.js +1 -1
- package/dist/mp-front-cli-locale.es.js +1 -3
- package/package.json +5 -2
- package/dist/core/errors/enrollment/error-catalog-enrollment.d.ts +0 -5
- package/dist/core/errors/enrollment/error-catalog-enrollment.d.ts.map +0 -1
- package/dist/core/errors/message-error.d.ts +0 -16
- package/dist/core/errors/message-error.d.ts.map +0 -1
- package/dist/fetch-service-parent-be-BIP14Z1m.js +0 -452
- package/dist/lang/common/errors/enrollment/en_EN/index.d.ts +0 -5
- package/dist/lang/common/errors/enrollment/en_EN/index.d.ts.map +0 -1
- package/dist/lang/common/errors/enrollment/es_MX/index.d.ts +0 -202
- package/dist/lang/common/errors/enrollment/es_MX/index.d.ts.map +0 -1
- package/dist/lang/common/errors/enrollment/index.d.ts +0 -3
- package/dist/lang/common/errors/enrollment/index.d.ts.map +0 -1
|
@@ -0,0 +1,1365 @@
|
|
|
1
|
+
var F = Object.defineProperty;
|
|
2
|
+
var w = (t, E, e) => E in t ? F(t, E, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[E] = e;
|
|
3
|
+
var N = (t, E, e) => w(t, typeof E != "symbol" ? E + "" : E, e);
|
|
4
|
+
import { of as O, switchMap as C, forkJoin as d, catchError as I, EMPTY as c, filter as u } from "rxjs";
|
|
5
|
+
import { CustomEncrypter as v } from "./mp-front-cli-encrypter.es.js";
|
|
6
|
+
import { CustomHeader as y } from "./mp-front-cli-header.es.js";
|
|
7
|
+
import h from "querystring";
|
|
8
|
+
import { f as g } from "./service-token-DceocCHP.js";
|
|
9
|
+
import { L as S, M as P } from "./loading-handler-Br21zGTA.js";
|
|
10
|
+
import { CustomEncoder as M } from "./mp-front-cli-encoder.es.js";
|
|
11
|
+
import { u as Q } from "./stringify-93tp0umt.js";
|
|
12
|
+
import { CustomLogger as G } from "./mp-front-cli-logger.es.js";
|
|
13
|
+
import B from "i18next";
|
|
14
|
+
import { t as V } from "./index-B_86KXmg.js";
|
|
15
|
+
const f = (t) => (B.init({
|
|
16
|
+
resources: {
|
|
17
|
+
es: {
|
|
18
|
+
translation: {
|
|
19
|
+
errors: {
|
|
20
|
+
...V.errors,
|
|
21
|
+
...(t == null ? void 0 : t.es) ?? {}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
lng: "es",
|
|
27
|
+
// language to use, more information here: https://www.i18next.com/overview/configuration-options#languages-namespaces-resources
|
|
28
|
+
// you can use the i18n.changeLanguage function to change the language manually: https://www.i18next.com/overview/api#changelanguage
|
|
29
|
+
// if you're using a language detector, do not define the lng option
|
|
30
|
+
supportedLngs: ["es"],
|
|
31
|
+
interpolation: {
|
|
32
|
+
escapeValue: !1
|
|
33
|
+
// react already safes from xss
|
|
34
|
+
},
|
|
35
|
+
debug: !1
|
|
36
|
+
}), B), J = {
|
|
37
|
+
"SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01": {
|
|
38
|
+
code: 400,
|
|
39
|
+
type: "modal",
|
|
40
|
+
message: "errors.helpdesk.SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01.message",
|
|
41
|
+
title: "errors.helpdesk.SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01.title",
|
|
42
|
+
level: "error"
|
|
43
|
+
},
|
|
44
|
+
"SKIPFINGERPRINT-WITHOUT-IDJOURNEY-01": {
|
|
45
|
+
code: 400,
|
|
46
|
+
type: "modal",
|
|
47
|
+
message: "errors.helpdesk.SKIPFINGERPRINT-WITHOUT-IDJOURNEY-01.message",
|
|
48
|
+
title: "errors.helpdesk.SKIPFINGERPRINT-WITHOUT-IDJOURNEY-01.title",
|
|
49
|
+
level: "error"
|
|
50
|
+
},
|
|
51
|
+
"SKIPFINGERPRINT-JOURNEY-UPDATE-ERROR-01": {
|
|
52
|
+
code: 400,
|
|
53
|
+
type: "modal",
|
|
54
|
+
message: "errors.helpdesk.SKIPFINGERPRINT-JOURNEY-UPDATE-ERROR-01.message",
|
|
55
|
+
title: "errors.helpdesk.SKIPFINGERPRINT-JOURNEY-UPDATE-ERROR-01.title",
|
|
56
|
+
level: "error"
|
|
57
|
+
},
|
|
58
|
+
"SKIPFINGERPRINT-UNEXCEPTED-ERROR-01": {
|
|
59
|
+
code: 400,
|
|
60
|
+
type: "modal",
|
|
61
|
+
message: "errors.helpdesk.SKIPFINGERPRINT-UNEXCEPTED-ERROR-01.message",
|
|
62
|
+
title: "errors.helpdesk.SKIPFINGERPRINT-UNEXCEPTED-ERROR-01.title",
|
|
63
|
+
level: "error"
|
|
64
|
+
},
|
|
65
|
+
"SKIPFINGERPRINT-JOURNEY-DATANOTFOUND-02": {
|
|
66
|
+
code: 400,
|
|
67
|
+
type: "modal",
|
|
68
|
+
message: "errors.helpdesk.SKIPFINGERPRINT-JOURNEY-DATANOTFOUND-02.message",
|
|
69
|
+
title: "errors.helpdesk.SKIPFINGERPRINT-JOURNEY-DATANOTFOUND-02.title",
|
|
70
|
+
level: "error"
|
|
71
|
+
},
|
|
72
|
+
"SKIPFINGERPRINT-CLIENT-NOT-FOUND": {
|
|
73
|
+
code: 400,
|
|
74
|
+
type: "modal",
|
|
75
|
+
message: "errors.helpdesk.SKIPFINGERPRINT-CLIENT-NOT-FOUND.message",
|
|
76
|
+
title: "errors.helpdesk.SKIPFINGERPRINT-CLIENT-NOT-FOUND.title",
|
|
77
|
+
level: "error"
|
|
78
|
+
},
|
|
79
|
+
"DUPLICATE-KEY-DATABASE-POSTGRES": {
|
|
80
|
+
code: 400,
|
|
81
|
+
type: "modal",
|
|
82
|
+
message: "errors.helpdesk.DUPLICATE-KEY-DATABASE-POSTGRES.message",
|
|
83
|
+
title: "errors.helpdesk.DUPLICATE-KEY-DATABASE-POSTGRES.title",
|
|
84
|
+
level: "error"
|
|
85
|
+
},
|
|
86
|
+
"UNEXCEPTED-ERROR": {
|
|
87
|
+
code: 400,
|
|
88
|
+
type: "modal",
|
|
89
|
+
message: "errors.helpdesk.UNEXCEPTED-ERROR.message",
|
|
90
|
+
title: "errors.helpdesk.UNEXCEPTED-ERROR.title",
|
|
91
|
+
level: "error"
|
|
92
|
+
}
|
|
93
|
+
}, $ = {
|
|
94
|
+
"PF-CANCEL-APPLICATION-GENERIC-ERROR-001": {
|
|
95
|
+
code: 400,
|
|
96
|
+
type: "modal",
|
|
97
|
+
message: "errors.PF-CANCEL-APPLICATION-GENERIC-ERROR-001.message",
|
|
98
|
+
title: "errors.PF-CANCEL-APPLICATION-GENERIC-ERROR-001.title",
|
|
99
|
+
level: "error"
|
|
100
|
+
}
|
|
101
|
+
}, Y = {
|
|
102
|
+
...$,
|
|
103
|
+
...J
|
|
104
|
+
}, X = {
|
|
105
|
+
UNAUTHORIZED: {
|
|
106
|
+
level: "warning",
|
|
107
|
+
type: "modal",
|
|
108
|
+
message: "errors.UnAuthorized.message",
|
|
109
|
+
title: "errors.UnAuthorized.title",
|
|
110
|
+
code: 310
|
|
111
|
+
},
|
|
112
|
+
"ERR-GENERAL-01": {
|
|
113
|
+
level: "warning",
|
|
114
|
+
type: "modal",
|
|
115
|
+
message: "errors.ERR-GENERAL-01.message",
|
|
116
|
+
title: "errors.ERR-GENERAL-01.title",
|
|
117
|
+
code: 400
|
|
118
|
+
},
|
|
119
|
+
internalError: {
|
|
120
|
+
level: "warning",
|
|
121
|
+
type: "modal",
|
|
122
|
+
message: "errors.internalError.message",
|
|
123
|
+
title: "errors.internalError.title",
|
|
124
|
+
code: 420
|
|
125
|
+
},
|
|
126
|
+
default: {
|
|
127
|
+
code: 420,
|
|
128
|
+
type: "modal",
|
|
129
|
+
message: "errors.default.message",
|
|
130
|
+
title: "errors.default.title",
|
|
131
|
+
level: "warning"
|
|
132
|
+
},
|
|
133
|
+
"PF-BIOMETRIC-001": {
|
|
134
|
+
title: "errors.PF-BIOMETRIC-001.title",
|
|
135
|
+
message: "errors.PF-BIOMETRIC-001.message",
|
|
136
|
+
level: "warning",
|
|
137
|
+
code: 420,
|
|
138
|
+
type: "modal"
|
|
139
|
+
},
|
|
140
|
+
"PF-BIOMETRIC-002": {
|
|
141
|
+
title: "errors.PF-BIOMETRIC-002.title",
|
|
142
|
+
message: "errors.PF-BIOMETRIC-002.message",
|
|
143
|
+
level: "warning",
|
|
144
|
+
code: 420,
|
|
145
|
+
type: "modal"
|
|
146
|
+
},
|
|
147
|
+
"PF-BIOMETRIC-003": {
|
|
148
|
+
title: "errors.PF-BIOMETRIC-003.title",
|
|
149
|
+
message: "errors.PF-BIOMETRIC-003.message",
|
|
150
|
+
level: "warning",
|
|
151
|
+
code: 420,
|
|
152
|
+
type: "modal"
|
|
153
|
+
},
|
|
154
|
+
"PF-BIOMETRIC-004": {
|
|
155
|
+
code: 421,
|
|
156
|
+
type: "modal",
|
|
157
|
+
message: "errors.PF-BIOMETRIC-004.message",
|
|
158
|
+
title: "errors.PF-BIOMETRIC-004.title",
|
|
159
|
+
level: "warning"
|
|
160
|
+
},
|
|
161
|
+
"PF-BIOMETRIC-007": {
|
|
162
|
+
title: "errors.PF-BIOMETRIC-007.title",
|
|
163
|
+
message: "errors.PF-BIOMETRIC-007.message",
|
|
164
|
+
level: "warning",
|
|
165
|
+
code: 420,
|
|
166
|
+
type: "modal"
|
|
167
|
+
},
|
|
168
|
+
"PF-VALIDATE-CLIENTTYPE-003": {
|
|
169
|
+
title: "errors.PF-VALIDATE-CLIENTTYPE-003.title",
|
|
170
|
+
message: "errors.PF-VALIDATE-CLIENTTYPE-003.message",
|
|
171
|
+
level: "warning",
|
|
172
|
+
code: 310,
|
|
173
|
+
type: "modal"
|
|
174
|
+
},
|
|
175
|
+
"PF-VALIDATE-CLIENTTYPE-006": {
|
|
176
|
+
title: "errors.PF-VALIDATE-CLIENTTYPE-006.title",
|
|
177
|
+
message: "errors.PF-VALIDATE-CLIENTTYPE-006.message",
|
|
178
|
+
level: "warning",
|
|
179
|
+
code: 310,
|
|
180
|
+
type: "modal"
|
|
181
|
+
},
|
|
182
|
+
ERROR_LOCATION: {
|
|
183
|
+
title: "errors.ERROR_LOCATION.title",
|
|
184
|
+
message: "errors.ERROR_LOCATION.message",
|
|
185
|
+
level: "warning",
|
|
186
|
+
code: 310,
|
|
187
|
+
type: "modal"
|
|
188
|
+
},
|
|
189
|
+
//Terms and conditions
|
|
190
|
+
"COMMUNICATIONS-INVALIDCODEEXCEPTION-001": {
|
|
191
|
+
title: "errors.COMMUNICATIONS-INVALIDCODEEXCEPTION-001.title",
|
|
192
|
+
message: "errors.COMMUNICATIONS-INVALIDCODEEXCEPTION-001.message",
|
|
193
|
+
code: 400,
|
|
194
|
+
type: "modal",
|
|
195
|
+
level: "warning"
|
|
196
|
+
},
|
|
197
|
+
"COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-001": {
|
|
198
|
+
title: "errors.COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-001.title",
|
|
199
|
+
message: "errors.COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-001.message",
|
|
200
|
+
code: 310,
|
|
201
|
+
type: "modal",
|
|
202
|
+
level: "warning"
|
|
203
|
+
},
|
|
204
|
+
"COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-002": {
|
|
205
|
+
title: "errors.COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-002.title",
|
|
206
|
+
message: "errors.COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-002.message",
|
|
207
|
+
code: 310,
|
|
208
|
+
type: "modal",
|
|
209
|
+
level: "warning"
|
|
210
|
+
},
|
|
211
|
+
"COMMUNICATIONS-INVALIDEXPIRATIONDATEEXCEPTION-001": {
|
|
212
|
+
title: "errors.COMMUNICATIONS-INVALIDEXPIRATIONDATEEXCEPTION-001.title",
|
|
213
|
+
message: "errors.COMMUNICATIONS-INVALIDEXPIRATIONDATEEXCEPTION-001.message",
|
|
214
|
+
code: 400,
|
|
215
|
+
type: "modal",
|
|
216
|
+
level: "warning"
|
|
217
|
+
},
|
|
218
|
+
"COMMUNICATIONS-INVALIDCODEEXCEPTION-002": {
|
|
219
|
+
title: "errors.COMMUNICATIONS-INVALIDCODEEXCEPTION-002.title",
|
|
220
|
+
message: "errors.COMMUNICATIONS-INVALIDCODEEXCEPTION-002.message",
|
|
221
|
+
code: 400,
|
|
222
|
+
type: "modal",
|
|
223
|
+
level: "warning"
|
|
224
|
+
},
|
|
225
|
+
"COMMUNICATIONS-BLACKLISTEXCEPTION-001": {
|
|
226
|
+
title: "errors.COMMUNICATIONS-BLACKLISTEXCEPTION-001.title",
|
|
227
|
+
message: "errors.COMMUNICATIONS-BLACKLISTEXCEPTION-001.message",
|
|
228
|
+
code: 403,
|
|
229
|
+
type: "modal",
|
|
230
|
+
level: "warning"
|
|
231
|
+
},
|
|
232
|
+
"COMMUNICATIONS-INVALIDNUMBEREXCEPTION-003": {
|
|
233
|
+
title: "errors.COMMUNICATIONS-INVALIDNUMBEREXCEPTION-003.title",
|
|
234
|
+
message: "errors.COMMUNICATIONS-INVALIDNUMBEREXCEPTION-003.message",
|
|
235
|
+
code: 400,
|
|
236
|
+
type: "modal",
|
|
237
|
+
level: "warning"
|
|
238
|
+
},
|
|
239
|
+
"COMMUNICATIONS-INVALIDNUMBEREXCEPTION-004": {
|
|
240
|
+
title: "errors.COMMUNICATIONS-INVALIDNUMBEREXCEPTION-004.title",
|
|
241
|
+
message: "errors.COMMUNICATIONS-INVALIDNUMBEREXCEPTION-004.message",
|
|
242
|
+
code: 400,
|
|
243
|
+
type: "modal",
|
|
244
|
+
level: "warning"
|
|
245
|
+
},
|
|
246
|
+
"COMMUNICATIONS-INVALIDNUMBEREXCEPTION-005": {
|
|
247
|
+
title: "errors.COMMUNICATIONS-INVALIDNUMBEREXCEPTION-005.title",
|
|
248
|
+
message: "errors.COMMUNICATIONS-INVALIDNUMBEREXCEPTION-005.message",
|
|
249
|
+
code: 400,
|
|
250
|
+
type: "modal",
|
|
251
|
+
level: "warning"
|
|
252
|
+
},
|
|
253
|
+
// Calculator
|
|
254
|
+
"SCORE-CLIENTREJECTED-01": {
|
|
255
|
+
title: "errors.calculator.SCORE-CLIENTREJECTED-01.title",
|
|
256
|
+
message: "errors.calculator.SCORE-CLIENTREJECTED-01.message",
|
|
257
|
+
code: 310,
|
|
258
|
+
type: "modal",
|
|
259
|
+
level: "info"
|
|
260
|
+
},
|
|
261
|
+
"SCORE-CLIENTREJECTED-02": {
|
|
262
|
+
title: "errors.calculator.SCORE-CLIENTREJECTED-02.title",
|
|
263
|
+
message: "errors.calculator.SCORE-CLIENTREJECTED-02.message",
|
|
264
|
+
code: 310,
|
|
265
|
+
type: "modal",
|
|
266
|
+
level: "info"
|
|
267
|
+
},
|
|
268
|
+
"CALCULATOR-MAPPING-01": {
|
|
269
|
+
title: "errors.calculator.CALCULATOR-MAPPING-01.title",
|
|
270
|
+
message: "errors.calculator.CALCULATOR-MAPPING-01.message",
|
|
271
|
+
code: 420,
|
|
272
|
+
type: "modal",
|
|
273
|
+
level: "warning"
|
|
274
|
+
},
|
|
275
|
+
"CALCULATOR-MAPPING-02": {
|
|
276
|
+
title: "errors.calculator.CALCULATOR-MAPPING-02.title",
|
|
277
|
+
message: "errors.calculator.CALCULATOR-MAPPING-02.message",
|
|
278
|
+
code: 420,
|
|
279
|
+
type: "modal",
|
|
280
|
+
level: "warning"
|
|
281
|
+
},
|
|
282
|
+
"CALCULATOR-MAPPING-03": {
|
|
283
|
+
title: "errors.calculator.CALCULATOR-MAPPING-03.title",
|
|
284
|
+
message: "errors.calculator.CALCULATOR-MAPPING-03.message",
|
|
285
|
+
code: 420,
|
|
286
|
+
type: "modal",
|
|
287
|
+
level: "warning"
|
|
288
|
+
},
|
|
289
|
+
"CALCULATOR-MAPPING-04": {
|
|
290
|
+
title: "errors.calculator.CALCULATOR-MAPPING-04.title",
|
|
291
|
+
message: "errors.calculator.CALCULATOR-MAPPING-04.message",
|
|
292
|
+
code: 420,
|
|
293
|
+
type: "modal",
|
|
294
|
+
level: "warning"
|
|
295
|
+
},
|
|
296
|
+
"CALCULATOR-BAD-REQUEST-01": {
|
|
297
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-01.title",
|
|
298
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-01.message",
|
|
299
|
+
code: 420,
|
|
300
|
+
type: "modal",
|
|
301
|
+
level: "warning"
|
|
302
|
+
},
|
|
303
|
+
"CALCULATOR-BAD-REQUEST-02": {
|
|
304
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-02.title",
|
|
305
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-02.message",
|
|
306
|
+
code: 420,
|
|
307
|
+
type: "modal",
|
|
308
|
+
level: "warning"
|
|
309
|
+
},
|
|
310
|
+
"CALCULATOR-BAD-REQUEST-03": {
|
|
311
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-03.title",
|
|
312
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-03.message",
|
|
313
|
+
code: 420,
|
|
314
|
+
type: "modal",
|
|
315
|
+
level: "warning"
|
|
316
|
+
},
|
|
317
|
+
"CALCULATOR-BAD-REQUEST-04": {
|
|
318
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-04.title",
|
|
319
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-04.message",
|
|
320
|
+
code: 420,
|
|
321
|
+
type: "modal",
|
|
322
|
+
level: "warning"
|
|
323
|
+
},
|
|
324
|
+
"CALCULATOR-BAD-REQUEST-05": {
|
|
325
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-05.title",
|
|
326
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-05.message",
|
|
327
|
+
code: 420,
|
|
328
|
+
type: "modal",
|
|
329
|
+
level: "warning"
|
|
330
|
+
},
|
|
331
|
+
"CALCULATOR-BAD-REQUEST-06": {
|
|
332
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-06.title",
|
|
333
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-06.message",
|
|
334
|
+
code: 420,
|
|
335
|
+
type: "modal",
|
|
336
|
+
level: "warning"
|
|
337
|
+
},
|
|
338
|
+
"CALCULATOR-BAD-REQUEST-07": {
|
|
339
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-07.title",
|
|
340
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-07.message",
|
|
341
|
+
code: 420,
|
|
342
|
+
type: "modal",
|
|
343
|
+
level: "warning"
|
|
344
|
+
},
|
|
345
|
+
"CALCULATOR-BAD-REQUEST-08": {
|
|
346
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-08.title",
|
|
347
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-08.message",
|
|
348
|
+
code: 420,
|
|
349
|
+
type: "modal",
|
|
350
|
+
level: "warning"
|
|
351
|
+
},
|
|
352
|
+
"CALCULATOR-BAD-REQUEST-09": {
|
|
353
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-09.title",
|
|
354
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-09.message",
|
|
355
|
+
code: 420,
|
|
356
|
+
type: "modal",
|
|
357
|
+
level: "warning"
|
|
358
|
+
},
|
|
359
|
+
"CALCULATOR-BAD-REQUEST-10": {
|
|
360
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-10.title",
|
|
361
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-10.message",
|
|
362
|
+
code: 420,
|
|
363
|
+
type: "modal",
|
|
364
|
+
level: "warning"
|
|
365
|
+
},
|
|
366
|
+
"CALCULATOR-BAD-REQUEST-11": {
|
|
367
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-11.title",
|
|
368
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-11.message",
|
|
369
|
+
code: 420,
|
|
370
|
+
type: "modal",
|
|
371
|
+
level: "warning"
|
|
372
|
+
},
|
|
373
|
+
"CALCULATOR-BAD-REQUEST-12": {
|
|
374
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-12.title",
|
|
375
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-12.message",
|
|
376
|
+
code: 420,
|
|
377
|
+
type: "modal",
|
|
378
|
+
level: "warning"
|
|
379
|
+
},
|
|
380
|
+
"CALCULATOR-BAD-REQUEST-13": {
|
|
381
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-13.title",
|
|
382
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-13.message",
|
|
383
|
+
code: 420,
|
|
384
|
+
type: "modal",
|
|
385
|
+
level: "warning"
|
|
386
|
+
},
|
|
387
|
+
"CALCULATOR-BAD-REQUEST-14": {
|
|
388
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-14.title",
|
|
389
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-14.message",
|
|
390
|
+
code: 420,
|
|
391
|
+
type: "modal",
|
|
392
|
+
level: "warning"
|
|
393
|
+
},
|
|
394
|
+
"CALCULATOR-BAD-REQUEST-15": {
|
|
395
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-15.title",
|
|
396
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-15.message",
|
|
397
|
+
code: 420,
|
|
398
|
+
type: "modal",
|
|
399
|
+
level: "warning"
|
|
400
|
+
},
|
|
401
|
+
"CALCULATOR-BAD-REQUEST-16": {
|
|
402
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-16.title",
|
|
403
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-16.message",
|
|
404
|
+
code: 420,
|
|
405
|
+
type: "modal",
|
|
406
|
+
level: "warning"
|
|
407
|
+
},
|
|
408
|
+
"CALCULATOR-BAD-REQUEST-17": {
|
|
409
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-17.title",
|
|
410
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-17.message",
|
|
411
|
+
code: 420,
|
|
412
|
+
type: "modal",
|
|
413
|
+
level: "warning"
|
|
414
|
+
},
|
|
415
|
+
"CALCULATOR-BAD-REQUEST-18": {
|
|
416
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-18.title",
|
|
417
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-18.message",
|
|
418
|
+
code: 420,
|
|
419
|
+
type: "modal",
|
|
420
|
+
level: "warning"
|
|
421
|
+
},
|
|
422
|
+
"CALCULATOR-BAD-REQUEST-19": {
|
|
423
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-19.title",
|
|
424
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-19.message",
|
|
425
|
+
code: 420,
|
|
426
|
+
type: "modal",
|
|
427
|
+
level: "warning"
|
|
428
|
+
},
|
|
429
|
+
"CALCULATOR-BAD-REQUEST-20": {
|
|
430
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-20.title",
|
|
431
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-20.message",
|
|
432
|
+
code: 420,
|
|
433
|
+
type: "modal",
|
|
434
|
+
level: "warning"
|
|
435
|
+
},
|
|
436
|
+
"CALCULATOR-BAD-REQUEST-21": {
|
|
437
|
+
code: 420,
|
|
438
|
+
type: "modal",
|
|
439
|
+
message: "errors.default.message",
|
|
440
|
+
title: "errors.default.title",
|
|
441
|
+
level: "warning"
|
|
442
|
+
},
|
|
443
|
+
"CALCULATOR-BAD-REQUEST-22": {
|
|
444
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-22.title",
|
|
445
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-22.message",
|
|
446
|
+
code: 420,
|
|
447
|
+
type: "modal",
|
|
448
|
+
level: "warning"
|
|
449
|
+
},
|
|
450
|
+
"CALCULATOR-BAD-REQUEST-23": {
|
|
451
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-23.title",
|
|
452
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-23.message",
|
|
453
|
+
code: 420,
|
|
454
|
+
type: "modal",
|
|
455
|
+
level: "info"
|
|
456
|
+
},
|
|
457
|
+
"CALCULATOR-BAD-REQUEST-24": {
|
|
458
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-24.title",
|
|
459
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-24.message",
|
|
460
|
+
code: 420,
|
|
461
|
+
type: "modal",
|
|
462
|
+
level: "warning"
|
|
463
|
+
},
|
|
464
|
+
"CALCULATOR-BAD-REQUEST-25": {
|
|
465
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-25.title",
|
|
466
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-25.message",
|
|
467
|
+
code: 420,
|
|
468
|
+
type: "modal",
|
|
469
|
+
level: "warning"
|
|
470
|
+
},
|
|
471
|
+
"CALCULATOR-UNAUTHORIZED-01": {
|
|
472
|
+
title: "errors.calculator.CALCULATOR-UNAUTHORIZED-01.title",
|
|
473
|
+
message: "errors.calculator.CALCULATOR-UNAUTHORIZED-01.message",
|
|
474
|
+
code: 420,
|
|
475
|
+
type: "modal",
|
|
476
|
+
level: "warning"
|
|
477
|
+
},
|
|
478
|
+
"CALCULATOR-UNAUTHORIZED-02": {
|
|
479
|
+
title: "errors.calculator.CALCULATOR-UNAUTHORIZED-02.title",
|
|
480
|
+
message: "errors.calculator.CALCULATOR-UNAUTHORIZED-02.message",
|
|
481
|
+
code: 420,
|
|
482
|
+
type: "modal",
|
|
483
|
+
level: "warning"
|
|
484
|
+
},
|
|
485
|
+
"CALCULATOR-SERVICE-UNAVAILABLE-01": {
|
|
486
|
+
title: "errors.calculator.CALCULATOR-SERVICE-UNAVAILABLE-01.title",
|
|
487
|
+
message: "errors.calculator.CALCULATOR-SERVICE-UNAVAILABLE-01.message",
|
|
488
|
+
code: 420,
|
|
489
|
+
type: "modal",
|
|
490
|
+
level: "warning"
|
|
491
|
+
},
|
|
492
|
+
"CALCULATOR-SERVICE-UNAVAILABLE-02": {
|
|
493
|
+
title: "errors.calculator.CALCULATOR-SERVICE-UNAVAILABLE-02.title",
|
|
494
|
+
message: "errors.calculator.CALCULATOR-SERVICE-UNAVAILABLE-02.message",
|
|
495
|
+
code: 420,
|
|
496
|
+
type: "modal",
|
|
497
|
+
level: "warning"
|
|
498
|
+
},
|
|
499
|
+
"CALCULATOR-NOT-FOUND-01": {
|
|
500
|
+
title: "errors.calculator.CALCULATOR-NOT-FOUND-01.title",
|
|
501
|
+
message: "errors.calculator.CALCULATOR-NOT-FOUND-01.message",
|
|
502
|
+
code: 420,
|
|
503
|
+
type: "modal",
|
|
504
|
+
level: "warning"
|
|
505
|
+
},
|
|
506
|
+
"CALCULATOR-NOT-FOUND-02": {
|
|
507
|
+
title: "errors.calculator.CALCULATOR-NOT-FOUND-02.title",
|
|
508
|
+
message: "errors.calculator.CALCULATOR-NOT-FOUND-02.message",
|
|
509
|
+
code: 420,
|
|
510
|
+
type: "modal",
|
|
511
|
+
level: "warning"
|
|
512
|
+
},
|
|
513
|
+
"CALCULATOR-SAP-ERROR-01": {
|
|
514
|
+
title: "errors.calculator.CALCULATOR-SAP-ERROR-01.title",
|
|
515
|
+
message: "errors.calculator.CALCULATOR-SAP-ERROR-01.message",
|
|
516
|
+
code: 420,
|
|
517
|
+
type: "modal",
|
|
518
|
+
level: "warning"
|
|
519
|
+
},
|
|
520
|
+
"CALCULATOR-SAP-ERROR-02": {
|
|
521
|
+
title: "errors.calculator.CALCULATOR-SAP-ERROR-02.title",
|
|
522
|
+
message: "errors.calculator.CALCULATOR-SAP-ERROR-02.message",
|
|
523
|
+
code: 420,
|
|
524
|
+
type: "modal",
|
|
525
|
+
level: "warning"
|
|
526
|
+
},
|
|
527
|
+
"CALCULATOR-SAP-ERROR-03": {
|
|
528
|
+
title: "errors.calculator.CALCULATOR-SAP-ERROR-03.title",
|
|
529
|
+
message: "errors.calculator.CALCULATOR-SAP-ERROR-03.message",
|
|
530
|
+
code: 420,
|
|
531
|
+
type: "modal",
|
|
532
|
+
level: "warning"
|
|
533
|
+
},
|
|
534
|
+
"CALCULATOR-SAP-ERROR-04": {
|
|
535
|
+
title: "errors.calculator.CALCULATOR-SAP-ERROR-04.title",
|
|
536
|
+
message: "errors.calculator.CALCULATOR-SAP-ERROR-04.message",
|
|
537
|
+
code: 420,
|
|
538
|
+
type: "modal",
|
|
539
|
+
level: "warning"
|
|
540
|
+
},
|
|
541
|
+
"CALCULATOR-BAD-REQUEST-26": {
|
|
542
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-26.title",
|
|
543
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-26.message",
|
|
544
|
+
code: 420,
|
|
545
|
+
type: "modal",
|
|
546
|
+
level: "warning"
|
|
547
|
+
},
|
|
548
|
+
"CALCULATOR-BAD-REQUEST-27": {
|
|
549
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-27.title",
|
|
550
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-27.message",
|
|
551
|
+
code: 420,
|
|
552
|
+
type: "modal",
|
|
553
|
+
level: "warning"
|
|
554
|
+
},
|
|
555
|
+
"CALCULATOR-BAD-REQUEST-28": {
|
|
556
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-28.title",
|
|
557
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-28.message",
|
|
558
|
+
code: 420,
|
|
559
|
+
type: "modal",
|
|
560
|
+
level: "warning"
|
|
561
|
+
},
|
|
562
|
+
"CALCULATOR-BAD-REQUEST-29": {
|
|
563
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-29.title",
|
|
564
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-29.message",
|
|
565
|
+
code: 420,
|
|
566
|
+
type: "modal",
|
|
567
|
+
level: "warning"
|
|
568
|
+
},
|
|
569
|
+
"CALCULATOR-BAD-REQUEST-30": {
|
|
570
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-30.title",
|
|
571
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-30.message",
|
|
572
|
+
code: 420,
|
|
573
|
+
type: "modal",
|
|
574
|
+
level: "warning"
|
|
575
|
+
},
|
|
576
|
+
"CALCULATOR-BAD-REQUEST-31": {
|
|
577
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-31.title",
|
|
578
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-31.message",
|
|
579
|
+
code: 420,
|
|
580
|
+
type: "modal",
|
|
581
|
+
level: "warning"
|
|
582
|
+
},
|
|
583
|
+
"CALCULATOR-BAD-REQUEST-34": {
|
|
584
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-34.title",
|
|
585
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-34.message",
|
|
586
|
+
code: 420,
|
|
587
|
+
type: "modal",
|
|
588
|
+
level: "warning"
|
|
589
|
+
},
|
|
590
|
+
"CALCULATOR-BAD-REQUEST-35": {
|
|
591
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-35.title",
|
|
592
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-35.message",
|
|
593
|
+
code: 420,
|
|
594
|
+
type: "modal",
|
|
595
|
+
level: "warning"
|
|
596
|
+
},
|
|
597
|
+
//Apartadito
|
|
598
|
+
"SAVING_NOT_FOUND-01": {
|
|
599
|
+
title: "errors.calculator.SAVING_NOT_FOUND-01.title",
|
|
600
|
+
message: "errors.calculator.SAVING_NOT_FOUND-01.message",
|
|
601
|
+
code: 420,
|
|
602
|
+
type: "modal",
|
|
603
|
+
level: "warning"
|
|
604
|
+
},
|
|
605
|
+
"SAVING-BAD-REQUEST-01": {
|
|
606
|
+
title: "errors.calculator.SAVING-BAD-REQUEST-01.title",
|
|
607
|
+
message: "errors.calculator.SAVING-BAD-REQUEST-01.message",
|
|
608
|
+
code: 420,
|
|
609
|
+
type: "modal",
|
|
610
|
+
level: "warning"
|
|
611
|
+
},
|
|
612
|
+
"SAVING-BAD-REQUEST-02": {
|
|
613
|
+
title: "errors.calculator.SAVING-BAD-REQUEST-02.title",
|
|
614
|
+
message: "errors.calculator.SAVING-BAD-REQUEST-02.message",
|
|
615
|
+
code: 420,
|
|
616
|
+
type: "modal",
|
|
617
|
+
level: "warning"
|
|
618
|
+
},
|
|
619
|
+
"SAVING-BAD-REQUEST-03": {
|
|
620
|
+
title: "errors.calculator.SAVING-BAD-REQUEST-03.title",
|
|
621
|
+
message: "errors.calculator.SAVING-BAD-REQUEST-03.message",
|
|
622
|
+
code: 420,
|
|
623
|
+
type: "modal",
|
|
624
|
+
level: "warning"
|
|
625
|
+
},
|
|
626
|
+
"SAVING-GENERIC-01": {
|
|
627
|
+
title: "errors.calculator.SAVING-GENERIC-01.title",
|
|
628
|
+
message: "errors.calculator.SAVING-GENERIC-01.message",
|
|
629
|
+
code: 420,
|
|
630
|
+
type: "modal",
|
|
631
|
+
level: "warning"
|
|
632
|
+
},
|
|
633
|
+
//JORNADA
|
|
634
|
+
"JOURNEY-CANCEL-01": {
|
|
635
|
+
title: "errors.JOURNEY-CANCEL-01.title",
|
|
636
|
+
message: "errors.JOURNEY-CANCEL-01.message",
|
|
637
|
+
code: 420,
|
|
638
|
+
type: "modal",
|
|
639
|
+
level: "warning"
|
|
640
|
+
},
|
|
641
|
+
"JOURNEY-INVALIDATEDATA-01": {
|
|
642
|
+
title: "errors.JOURNEY-INVALIDATEDATA-01.title",
|
|
643
|
+
message: "errors.JOURNEY-INVALIDATEDATA-01.message",
|
|
644
|
+
code: 420,
|
|
645
|
+
type: "modal",
|
|
646
|
+
level: "warning"
|
|
647
|
+
},
|
|
648
|
+
"JOURNEY-DATANOTFOUND-02": {
|
|
649
|
+
title: "errors.JOURNEY-DATANOTFOUND-02.title",
|
|
650
|
+
message: "errors.JOURNEY-DATANOTFOUND-02.message",
|
|
651
|
+
code: 420,
|
|
652
|
+
type: "modal",
|
|
653
|
+
level: "warning"
|
|
654
|
+
},
|
|
655
|
+
"JOURNEY-FLOWEND-03": {
|
|
656
|
+
title: "errors.JOURNEY-FLOWEND-03.title",
|
|
657
|
+
message: "errors.JOURNEY-FLOWEND-03.message",
|
|
658
|
+
code: 420,
|
|
659
|
+
type: "modal",
|
|
660
|
+
level: "warning"
|
|
661
|
+
},
|
|
662
|
+
"PF-ERROR-GENERIC": {
|
|
663
|
+
title: "errors.PF-ERROR-GENERIC.title",
|
|
664
|
+
message: "errors.PF-ERROR-GENERIC.message",
|
|
665
|
+
code: 420,
|
|
666
|
+
type: "modal",
|
|
667
|
+
level: "warning"
|
|
668
|
+
},
|
|
669
|
+
"JOURNEY-IDSTATEINCORRECT-04": {
|
|
670
|
+
title: "errors.JOURNEY-IDSTATEINCORRECT-04.title",
|
|
671
|
+
message: "errors.JOURNEY-IDSTATEINCORRECT-04.message",
|
|
672
|
+
code: 420,
|
|
673
|
+
type: "modal",
|
|
674
|
+
level: "warning"
|
|
675
|
+
},
|
|
676
|
+
"JOURNEY-HEADERS-05": {
|
|
677
|
+
title: "errors.JOURNEY-HEADERS-05.title",
|
|
678
|
+
message: "errors.JOURNEY-HEADERS-05.message",
|
|
679
|
+
code: 420,
|
|
680
|
+
type: "modal",
|
|
681
|
+
level: "warning"
|
|
682
|
+
},
|
|
683
|
+
//INITIAL
|
|
684
|
+
"INITIAL-INVALIDATEDATA-01": {
|
|
685
|
+
title: "errors.INITIAL-INVALIDATEDATA-01.title",
|
|
686
|
+
message: "errors.INITIAL-INVALIDATEDATA-01.message",
|
|
687
|
+
code: 420,
|
|
688
|
+
type: "modal",
|
|
689
|
+
level: "warning"
|
|
690
|
+
},
|
|
691
|
+
"INITIAL-DATANOTFOUND-02": {
|
|
692
|
+
title: "errors.INITIAL-DATANOTFOUND-02.title",
|
|
693
|
+
message: "errors.INITIAL-DATANOTFOUND-02.message",
|
|
694
|
+
code: 420,
|
|
695
|
+
type: "modal",
|
|
696
|
+
level: "warning"
|
|
697
|
+
},
|
|
698
|
+
"INITIAL-HEADERS-03": {
|
|
699
|
+
title: "errors.INITIAL-HEADERS-03.title",
|
|
700
|
+
message: "errors.INITIAL-HEADERS-03.message",
|
|
701
|
+
code: 420,
|
|
702
|
+
type: "modal",
|
|
703
|
+
level: "warning"
|
|
704
|
+
},
|
|
705
|
+
//PERSONAL DATA
|
|
706
|
+
"PERSONALDATA-INVALID-MEDIA-TYPE": {
|
|
707
|
+
title: "errors.PERSONALDATA-INVALID-MEDIA-TYPE.title",
|
|
708
|
+
message: "errors.PERSONALDATA-INVALID-MEDIA-TYPE.message",
|
|
709
|
+
code: 420,
|
|
710
|
+
type: "modal",
|
|
711
|
+
level: "warning"
|
|
712
|
+
},
|
|
713
|
+
"PERSONALDATA-INVALID-CONTENT-TYPE": {
|
|
714
|
+
title: "errors.PERSONALDATA-INVALID-CONTENT-TYPE.title",
|
|
715
|
+
message: "errors.PERSONALDATA-INVALID-CONTENT-TYPE.message",
|
|
716
|
+
code: 420,
|
|
717
|
+
type: "modal",
|
|
718
|
+
level: "warning"
|
|
719
|
+
},
|
|
720
|
+
"PERSONALDATA-INVALID-DATA-TYPE": {
|
|
721
|
+
title: "errors.PERSONALDATA-INVALID-DATA-TYPE.title",
|
|
722
|
+
message: "errors.PERSONALDATA-INVALID-DATA-TYPE.message",
|
|
723
|
+
code: 420,
|
|
724
|
+
type: "modal",
|
|
725
|
+
level: "warning"
|
|
726
|
+
},
|
|
727
|
+
"PERSONALDATA-UNKNOWN-REGISTER-01": {
|
|
728
|
+
title: "errors.PERSONALDATA-UNKNOWN-REGISTER-01.title",
|
|
729
|
+
message: "errors.PERSONALDATA-UNKNOWN-REGISTER-01.message",
|
|
730
|
+
code: 420,
|
|
731
|
+
type: "modal",
|
|
732
|
+
level: "warning"
|
|
733
|
+
},
|
|
734
|
+
"PERSONALDATA-UNKNOWN-REGISTER-02": {
|
|
735
|
+
title: "errors.PERSONALDATA-UNKNOWN-REGISTER-02.title",
|
|
736
|
+
message: "errors.PERSONALDATA-UNKNOWN-REGISTER-02.message",
|
|
737
|
+
code: 420,
|
|
738
|
+
type: "modal",
|
|
739
|
+
level: "warning"
|
|
740
|
+
},
|
|
741
|
+
"PERSONALDATA-BAD-REQUEST-01": {
|
|
742
|
+
title: "errors.PERSONALDATA-BAD-REQUEST-01.title",
|
|
743
|
+
message: "errors.PERSONALDATA-BAD-REQUEST-01.message",
|
|
744
|
+
code: 420,
|
|
745
|
+
type: "modal",
|
|
746
|
+
level: "warning"
|
|
747
|
+
},
|
|
748
|
+
"PERSONALDATA-BAD-REQUEST-02": {
|
|
749
|
+
title: "errors.PERSONALDATA-BAD-REQUEST-02.title",
|
|
750
|
+
message: "errors.PERSONALDATA-BAD-REQUEST-02.message",
|
|
751
|
+
code: 420,
|
|
752
|
+
type: "modal",
|
|
753
|
+
level: "warning"
|
|
754
|
+
},
|
|
755
|
+
"PERSONALDATA-BAD-REQUEST-03": {
|
|
756
|
+
title: "errors.PERSONALDATA-BAD-REQUEST-03.title",
|
|
757
|
+
message: "errors.PERSONALDATA-BAD-REQUEST-03.message",
|
|
758
|
+
code: 420,
|
|
759
|
+
type: "modal",
|
|
760
|
+
level: "warning"
|
|
761
|
+
},
|
|
762
|
+
"PERSONALDATA-BAD-REQUEST-04": {
|
|
763
|
+
title: "errors.PERSONALDATA-BAD-REQUEST-04.title",
|
|
764
|
+
message: "errors.PERSONALDATA-BAD-REQUEST-04.message",
|
|
765
|
+
code: 420,
|
|
766
|
+
type: "modal",
|
|
767
|
+
level: "warning"
|
|
768
|
+
},
|
|
769
|
+
"PERSONALDATA-BAD-REQUEST-05": {
|
|
770
|
+
title: "errors.PERSONALDATA-BAD-REQUEST-05.title",
|
|
771
|
+
message: "errors.PERSONALDATA-BAD-REQUEST-05.message",
|
|
772
|
+
code: 420,
|
|
773
|
+
type: "modal",
|
|
774
|
+
level: "warning"
|
|
775
|
+
},
|
|
776
|
+
"PERSONALDATA-BAD-REQUEST-06": {
|
|
777
|
+
title: "errors.PERSONALDATA-BAD-REQUEST-06.title",
|
|
778
|
+
message: "errors.PERSONALDATA-BAD-REQUEST-06.message",
|
|
779
|
+
code: 420,
|
|
780
|
+
type: "modal",
|
|
781
|
+
level: "warning"
|
|
782
|
+
},
|
|
783
|
+
"PERSONALDATA-BAD-REQUEST-07": {
|
|
784
|
+
title: "errors.PERSONALDATA-BAD-REQUEST-07.title",
|
|
785
|
+
message: "errors.PERSONALDATA-BAD-REQUEST-07.message",
|
|
786
|
+
code: 420,
|
|
787
|
+
type: "modal",
|
|
788
|
+
level: "warning"
|
|
789
|
+
},
|
|
790
|
+
"PERSONALDATA-BAD-REQUEST-08": {
|
|
791
|
+
title: "errors.PERSONALDATA-BAD-REQUEST-08.title",
|
|
792
|
+
message: "errors.PERSONALDATA-BAD-REQUEST-08.message",
|
|
793
|
+
code: 420,
|
|
794
|
+
type: "modal",
|
|
795
|
+
level: "warning"
|
|
796
|
+
},
|
|
797
|
+
"PERSONALDATA-GENERIC-ERROR": {
|
|
798
|
+
title: "errors.PERSONALDATA-GENERIC-ERROR.title",
|
|
799
|
+
message: "errors.PERSONALDATA-GENERIC-ERROR.message",
|
|
800
|
+
code: 420,
|
|
801
|
+
type: "modal",
|
|
802
|
+
level: "warning"
|
|
803
|
+
},
|
|
804
|
+
"PERSONALDATA-ODATA-ERROR-01": {
|
|
805
|
+
title: "errors.PERSONALDATA-ODATA-ERROR-01.title",
|
|
806
|
+
message: "errors.PERSONALDATA-ODATA-ERROR-01.message",
|
|
807
|
+
code: 420,
|
|
808
|
+
type: "modal",
|
|
809
|
+
level: "warning"
|
|
810
|
+
},
|
|
811
|
+
"PERSONALDATA-UNKNOWN-FG-01": {
|
|
812
|
+
title: "errors.PERSONALDATA-UNKNOWN-FG-01.title",
|
|
813
|
+
message: "errors.PERSONALDATA-UNKNOWN-FG-01.message",
|
|
814
|
+
code: 420,
|
|
815
|
+
type: "modal",
|
|
816
|
+
level: "warning"
|
|
817
|
+
},
|
|
818
|
+
"PERSONALDATA-CU-ERROR-01": {
|
|
819
|
+
title: "errors.PERSONALDATA-CU-ERROR-01.title",
|
|
820
|
+
message: "errors.PERSONALDATA-CU-ERROR-01.message",
|
|
821
|
+
code: 420,
|
|
822
|
+
type: "modal",
|
|
823
|
+
level: "warning"
|
|
824
|
+
},
|
|
825
|
+
"PERSONALDATA-INVALID-RFC-01": {
|
|
826
|
+
title: "errors.PERSONALDATA-INVALID-RFC-01.title",
|
|
827
|
+
message: "errors.PERSONALDATA-INVALID-RFC-01.message",
|
|
828
|
+
code: 420,
|
|
829
|
+
type: "modal",
|
|
830
|
+
level: "warning"
|
|
831
|
+
},
|
|
832
|
+
"PERSONALDATA-BAD-REQUEST-09": {
|
|
833
|
+
title: "errors.PERSONALDATA-BAD-REQUEST-09.title",
|
|
834
|
+
message: "errors.PERSONALDATA-BAD-REQUEST-09.message",
|
|
835
|
+
code: 420,
|
|
836
|
+
type: "modal",
|
|
837
|
+
level: "warning"
|
|
838
|
+
},
|
|
839
|
+
"PERSONALDATA-BAD-REQUEST-10": {
|
|
840
|
+
title: "errors.PERSONALDATA-BAD-REQUEST-10.title",
|
|
841
|
+
message: "errors.PERSONALDATA-BAD-REQUEST-10.message",
|
|
842
|
+
code: 420,
|
|
843
|
+
type: "modal",
|
|
844
|
+
level: "warning"
|
|
845
|
+
},
|
|
846
|
+
"PERSONALDATA-BAD-REQUEST-WHITE-LIST-11": {
|
|
847
|
+
title: "errors.PERSONALDATA-BAD-REQUEST-WHITE-LIST-11.title",
|
|
848
|
+
message: "errors.PERSONALDATA-BAD-REQUEST-WHITE-LIST-11.message",
|
|
849
|
+
code: 420,
|
|
850
|
+
type: "modal",
|
|
851
|
+
level: "warning"
|
|
852
|
+
},
|
|
853
|
+
//PERSONAL REFERENCES
|
|
854
|
+
"PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01": {
|
|
855
|
+
title: "errors.PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01.title",
|
|
856
|
+
message: "errors.PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01.message",
|
|
857
|
+
code: 422,
|
|
858
|
+
type: "modal",
|
|
859
|
+
level: "warning"
|
|
860
|
+
},
|
|
861
|
+
"PERSONALREFERENCE-REFERENCESEXCEPTION-01": {
|
|
862
|
+
title: "errors.PERSONALREFERENCE-REFERENCESEXCEPTION-01.title",
|
|
863
|
+
message: "errors.PERSONALREFERENCE-REFERENCESEXCEPTION-01.message",
|
|
864
|
+
code: 422,
|
|
865
|
+
type: "modal",
|
|
866
|
+
level: "warning"
|
|
867
|
+
},
|
|
868
|
+
"PERSONALREFERENCE-BLACKLISTEXCEPTION-01": {
|
|
869
|
+
title: "errors.PERSONALREFERENCE-BLACKLISTEXCEPTION-01.title",
|
|
870
|
+
message: "errors.PERSONALREFERENCE-BLACKLISTEXCEPTION-01.message",
|
|
871
|
+
code: 403,
|
|
872
|
+
type: "modal",
|
|
873
|
+
level: "warning"
|
|
874
|
+
},
|
|
875
|
+
"PERSONALREFERENCE-INVALIDPHONENUMBEREXCEPTION-01": {
|
|
876
|
+
title: "errors.PERSONALREFERENCE-INVALIDPHONENUMBEREXCEPTION-01.title",
|
|
877
|
+
message: "errors.PERSONALREFERENCE-INVALIDPHONENUMBEREXCEPTION-01.message",
|
|
878
|
+
code: 400,
|
|
879
|
+
type: "modal",
|
|
880
|
+
level: "warning"
|
|
881
|
+
},
|
|
882
|
+
"PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001": {
|
|
883
|
+
title: "errors.PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001.title",
|
|
884
|
+
message: "errors.PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001.message",
|
|
885
|
+
code: 400,
|
|
886
|
+
type: "modal",
|
|
887
|
+
level: "warning"
|
|
888
|
+
},
|
|
889
|
+
"PERSONALREFERENCE-INVALIDREFERENCESRELATIONSHIPSCOUNTEXCEPTION-001": {
|
|
890
|
+
title: "errors.PERSONALREFERENCE-INVALIDREFERENCESRELATIONSHIPSCOUNTEXCEPTION-001.title",
|
|
891
|
+
message: "errors.PERSONALREFERENCE-INVALIDREFERENCESRELATIONSHIPSCOUNTEXCEPTION-001.message",
|
|
892
|
+
code: 420,
|
|
893
|
+
type: "modal",
|
|
894
|
+
level: "warning"
|
|
895
|
+
},
|
|
896
|
+
"PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001": {
|
|
897
|
+
title: "errors.PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001.title",
|
|
898
|
+
message: "errors.PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001.message",
|
|
899
|
+
code: 422,
|
|
900
|
+
type: "modal",
|
|
901
|
+
level: "warning"
|
|
902
|
+
},
|
|
903
|
+
"PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001": {
|
|
904
|
+
title: "errors.PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001.title",
|
|
905
|
+
message: "errors.PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001.message",
|
|
906
|
+
code: 422,
|
|
907
|
+
type: "modal",
|
|
908
|
+
level: "warning"
|
|
909
|
+
},
|
|
910
|
+
//PAYMENTS
|
|
911
|
+
"SALES-SUMMARY-GENERIC-ERROR-001": {
|
|
912
|
+
title: "errors.SALES-SUMMARY-GENERIC-ERROR-001.title",
|
|
913
|
+
message: "errors.SALES-SUMMARY-GENERIC-ERROR-001.message",
|
|
914
|
+
code: 420,
|
|
915
|
+
type: "modal",
|
|
916
|
+
level: "warning"
|
|
917
|
+
},
|
|
918
|
+
"PF-SALES-SUMMARY-GENERIC-ERROR-001": {
|
|
919
|
+
title: "errors.PF-SALES-SUMMARY-GENERIC-ERROR-001.title",
|
|
920
|
+
message: "errors.PF-SALES-SUMMARY-GENERIC-ERROR-001.message",
|
|
921
|
+
code: 420,
|
|
922
|
+
type: "modal",
|
|
923
|
+
level: "warning"
|
|
924
|
+
},
|
|
925
|
+
"SALES-SUMMARY-ERROR-005": {
|
|
926
|
+
title: "errors.SALES-SUMMARY-ERROR-005.title",
|
|
927
|
+
message: "errors.SALES-SUMMARY-ERROR-005.message",
|
|
928
|
+
code: 420,
|
|
929
|
+
type: "modal",
|
|
930
|
+
level: "warning"
|
|
931
|
+
},
|
|
932
|
+
//REPRINT
|
|
933
|
+
"PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001": {
|
|
934
|
+
title: "errors.PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001.title",
|
|
935
|
+
message: "errors.PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001.message",
|
|
936
|
+
code: 420,
|
|
937
|
+
type: "modal",
|
|
938
|
+
level: "warning"
|
|
939
|
+
},
|
|
940
|
+
"PF-CANCEL-APPLICATION-GENERIC-ERROR-001": {
|
|
941
|
+
title: "errors.PF-CANCEL-APPLICATION-GENERIC-ERROR-001.title",
|
|
942
|
+
message: "errors.PF-CANCEL-APPLICATION-GENERIC-ERROR-001.message",
|
|
943
|
+
code: 420,
|
|
944
|
+
type: "modal",
|
|
945
|
+
level: "warning"
|
|
946
|
+
},
|
|
947
|
+
...Y
|
|
948
|
+
};
|
|
949
|
+
class L extends G {
|
|
950
|
+
constructor() {
|
|
951
|
+
super(...arguments);
|
|
952
|
+
N(this, "errorCatalog", { ...X });
|
|
953
|
+
N(this, "i18Next");
|
|
954
|
+
}
|
|
955
|
+
get(e = "default", r = "NOT_FOUND") {
|
|
956
|
+
var A, a;
|
|
957
|
+
const { errorCatalog: s } = this;
|
|
958
|
+
if (e instanceof Error)
|
|
959
|
+
return this.logError(e.message), {
|
|
960
|
+
...s.internalError,
|
|
961
|
+
title: this.translate(s.internalError.title),
|
|
962
|
+
message: this.translate(s.internalError.message),
|
|
963
|
+
uuid: r
|
|
964
|
+
};
|
|
965
|
+
const o = typeof e == "string" ? e : e.code ?? e.errorType;
|
|
966
|
+
this.logDebug("statusCode", o);
|
|
967
|
+
const l = typeof e == "string" ? {} : { ...e };
|
|
968
|
+
return {
|
|
969
|
+
...s[o] ?? s.default,
|
|
970
|
+
title: this.translate(
|
|
971
|
+
((A = s[o]) == null ? void 0 : A.title) ?? s.default.title,
|
|
972
|
+
l
|
|
973
|
+
),
|
|
974
|
+
message: this.translate(
|
|
975
|
+
((a = s[o]) == null ? void 0 : a.message) ?? s.default.message,
|
|
976
|
+
l
|
|
977
|
+
),
|
|
978
|
+
payload: typeof e != "string" ? { errorCode: e.code } : {},
|
|
979
|
+
uuid: r
|
|
980
|
+
};
|
|
981
|
+
}
|
|
982
|
+
setErrors(e) {
|
|
983
|
+
this.errorCatalog = { ...this.errorCatalog, ...e };
|
|
984
|
+
}
|
|
985
|
+
setI18nResources(e) {
|
|
986
|
+
this.i18Next = f(e);
|
|
987
|
+
}
|
|
988
|
+
translate(e, r = {}) {
|
|
989
|
+
return this.i18Next || (this.i18Next = f()), this.i18Next.t(e, { payload: r });
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
class Oe extends v {
|
|
993
|
+
constructor() {
|
|
994
|
+
super(...arguments);
|
|
995
|
+
N(this, "uuid", "");
|
|
996
|
+
N(this, "session", null);
|
|
997
|
+
}
|
|
998
|
+
setSession(e) {
|
|
999
|
+
this.session = e;
|
|
1000
|
+
}
|
|
1001
|
+
getSession() {
|
|
1002
|
+
if (!this.session) throw new L().get("SESSION_NOT_FOUND");
|
|
1003
|
+
return this.session;
|
|
1004
|
+
}
|
|
1005
|
+
returnData(e, r, s) {
|
|
1006
|
+
const o = this.encode(r, s);
|
|
1007
|
+
e.status(200).json(o);
|
|
1008
|
+
}
|
|
1009
|
+
returnError(e, r) {
|
|
1010
|
+
return r != null && r.uuid ? e.status(520).json(r) : e.status(520).json(new L().get(r, this.uuid));
|
|
1011
|
+
}
|
|
1012
|
+
get(e) {
|
|
1013
|
+
return this.logDebug("get ApiMiddleware"), (r, s) => {
|
|
1014
|
+
var o;
|
|
1015
|
+
this.logDebug("return ApiMiddleware"), this.uuid = (o = r == null ? void 0 : r.body) == null ? void 0 : o.uuid, O(r).pipe(
|
|
1016
|
+
C(
|
|
1017
|
+
(l) => d({
|
|
1018
|
+
params: O(this.decode(l.body)),
|
|
1019
|
+
headers: O(l.headers)
|
|
1020
|
+
})
|
|
1021
|
+
),
|
|
1022
|
+
C(
|
|
1023
|
+
({ params: l, headers: A }) => d({
|
|
1024
|
+
response: e(l, this.uuid, A),
|
|
1025
|
+
headers: O(A),
|
|
1026
|
+
params: O(l)
|
|
1027
|
+
})
|
|
1028
|
+
),
|
|
1029
|
+
C(({ params: l, response: A, headers: a }) => (this.logDebug(
|
|
1030
|
+
`ApiMiddleware \x1B[37m <URL>: \x1B[33m ${r.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(a)} \x1B[37m <UUID> \x1B[33m ${r.body.uuid} \x1B[37m <PARAMS> \x1B[33m ${JSON.stringify(l)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(A)}`
|
|
1031
|
+
), O(A))),
|
|
1032
|
+
I((l) => {
|
|
1033
|
+
var A;
|
|
1034
|
+
return this.logError(
|
|
1035
|
+
`ApiMiddleware <URL>: ${r == null ? void 0 : r.url} <HEADERS>: ${JSON.stringify(r == null ? void 0 : r.headers)} <UUID> ${(A = r == null ? void 0 : r.body) == null ? void 0 : A.uuid} <PARAMS> ${JSON.stringify(r == null ? void 0 : r.body)} <ERROR>: ${JSON.stringify(l)}`
|
|
1036
|
+
), this.returnError(s, l), c;
|
|
1037
|
+
})
|
|
1038
|
+
).subscribe({
|
|
1039
|
+
next: (l) => {
|
|
1040
|
+
this.logDebug("ApiMiddleware subscribe next", JSON.stringify(l)), this.returnData(s, l, this.uuid);
|
|
1041
|
+
}
|
|
1042
|
+
});
|
|
1043
|
+
};
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
const H = process.env.ID_FRONT ?? "NOT_AVAILABLE";
|
|
1047
|
+
class Ce extends y {
|
|
1048
|
+
constructor(e, r, s = {}) {
|
|
1049
|
+
super(s);
|
|
1050
|
+
N(this, "apiUrl");
|
|
1051
|
+
N(this, "method");
|
|
1052
|
+
this.apiUrl = e, this.method = r ?? "POST";
|
|
1053
|
+
}
|
|
1054
|
+
errorHandler(e, r) {
|
|
1055
|
+
if (e != null && e.errors)
|
|
1056
|
+
throw new L().get(e.errors[0], r);
|
|
1057
|
+
return !(e != null && e.errors);
|
|
1058
|
+
}
|
|
1059
|
+
formatParams(e) {
|
|
1060
|
+
return JSON.stringify({
|
|
1061
|
+
data: {
|
|
1062
|
+
type: H,
|
|
1063
|
+
attributes: e
|
|
1064
|
+
}
|
|
1065
|
+
});
|
|
1066
|
+
}
|
|
1067
|
+
fetchData(e = {}, r) {
|
|
1068
|
+
return this.getHeaders().pipe(
|
|
1069
|
+
C(
|
|
1070
|
+
(s) => g(
|
|
1071
|
+
this.apiUrl,
|
|
1072
|
+
{
|
|
1073
|
+
method: "POST",
|
|
1074
|
+
headers: s,
|
|
1075
|
+
body: this.formatParams(e),
|
|
1076
|
+
selector: (o) => o.json()
|
|
1077
|
+
}
|
|
1078
|
+
).pipe(
|
|
1079
|
+
I((o) => {
|
|
1080
|
+
throw this.logError(JSON.stringify(o)), this.logError(
|
|
1081
|
+
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1082
|
+
s
|
|
1083
|
+
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
1084
|
+
this.formatParams(e)
|
|
1085
|
+
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(o)} \x1B[33m`
|
|
1086
|
+
), new L().get("default", r);
|
|
1087
|
+
}),
|
|
1088
|
+
C((o) => (this.logDebug(
|
|
1089
|
+
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1090
|
+
s
|
|
1091
|
+
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
1092
|
+
this.formatParams(e)
|
|
1093
|
+
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(o)} \x1B[33m`
|
|
1094
|
+
), O(o)))
|
|
1095
|
+
)
|
|
1096
|
+
),
|
|
1097
|
+
u((s) => this.errorHandler(s, r))
|
|
1098
|
+
);
|
|
1099
|
+
}
|
|
1100
|
+
fetchCustomData(e = {}, r, s) {
|
|
1101
|
+
const o = {
|
|
1102
|
+
"Content-Type": "application/json"
|
|
1103
|
+
}, l = h.stringify(
|
|
1104
|
+
e
|
|
1105
|
+
), A = `${this.apiUrl}?${l}`, a = this.method === "GET" ? A : this.apiUrl;
|
|
1106
|
+
return this.getHeaders(o, s).pipe(
|
|
1107
|
+
C(
|
|
1108
|
+
(R) => g(a, {
|
|
1109
|
+
method: this.method,
|
|
1110
|
+
headers: R,
|
|
1111
|
+
body: this.method === "GET" ? null : JSON.stringify(e),
|
|
1112
|
+
selector: (i) => i.json()
|
|
1113
|
+
}).pipe(
|
|
1114
|
+
I((i) => {
|
|
1115
|
+
throw this.logError(JSON.stringify(i)), this.logError(
|
|
1116
|
+
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${a} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1117
|
+
R
|
|
1118
|
+
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
1119
|
+
this.formatParams(e)
|
|
1120
|
+
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(i)} \x1B[33m`
|
|
1121
|
+
), new L().get("default", r);
|
|
1122
|
+
}),
|
|
1123
|
+
C((i) => (this.logDebug(
|
|
1124
|
+
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${a} \x1B[37m \x1B[37m <METHOD>: \x1B[33m ${this.method} <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1125
|
+
R
|
|
1126
|
+
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
1127
|
+
e
|
|
1128
|
+
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(i)} \x1B[33m`
|
|
1129
|
+
), O(i)))
|
|
1130
|
+
)
|
|
1131
|
+
)
|
|
1132
|
+
);
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
const b = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
1136
|
+
function K(t) {
|
|
1137
|
+
return typeof t == "string" && b.test(t);
|
|
1138
|
+
}
|
|
1139
|
+
function W(t) {
|
|
1140
|
+
if (!K(t))
|
|
1141
|
+
throw TypeError("Invalid UUID");
|
|
1142
|
+
let E;
|
|
1143
|
+
const e = new Uint8Array(16);
|
|
1144
|
+
return e[0] = (E = parseInt(t.slice(0, 8), 16)) >>> 24, e[1] = E >>> 16 & 255, e[2] = E >>> 8 & 255, e[3] = E & 255, e[4] = (E = parseInt(t.slice(9, 13), 16)) >>> 8, e[5] = E & 255, e[6] = (E = parseInt(t.slice(14, 18), 16)) >>> 8, e[7] = E & 255, e[8] = (E = parseInt(t.slice(19, 23), 16)) >>> 8, e[9] = E & 255, e[10] = (E = parseInt(t.slice(24, 36), 16)) / 1099511627776 & 255, e[11] = E / 4294967296 & 255, e[12] = E >>> 24 & 255, e[13] = E >>> 16 & 255, e[14] = E >>> 8 & 255, e[15] = E & 255, e;
|
|
1145
|
+
}
|
|
1146
|
+
function k(t) {
|
|
1147
|
+
t = unescape(encodeURIComponent(t));
|
|
1148
|
+
const E = [];
|
|
1149
|
+
for (let e = 0; e < t.length; ++e)
|
|
1150
|
+
E.push(t.charCodeAt(e));
|
|
1151
|
+
return E;
|
|
1152
|
+
}
|
|
1153
|
+
const j = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", _ = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
1154
|
+
function Z(t, E, e) {
|
|
1155
|
+
function r(s, o, l, A) {
|
|
1156
|
+
var a;
|
|
1157
|
+
if (typeof s == "string" && (s = k(s)), typeof o == "string" && (o = W(o)), ((a = o) === null || a === void 0 ? void 0 : a.length) !== 16)
|
|
1158
|
+
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
1159
|
+
let R = new Uint8Array(16 + s.length);
|
|
1160
|
+
if (R.set(o), R.set(s, o.length), R = e(R), R[6] = R[6] & 15 | E, R[8] = R[8] & 63 | 128, l) {
|
|
1161
|
+
A = A || 0;
|
|
1162
|
+
for (let i = 0; i < 16; ++i)
|
|
1163
|
+
l[A + i] = R[i];
|
|
1164
|
+
return l;
|
|
1165
|
+
}
|
|
1166
|
+
return Q(R);
|
|
1167
|
+
}
|
|
1168
|
+
try {
|
|
1169
|
+
r.name = t;
|
|
1170
|
+
} catch {
|
|
1171
|
+
}
|
|
1172
|
+
return r.DNS = j, r.URL = _, r;
|
|
1173
|
+
}
|
|
1174
|
+
function z(t, E, e, r) {
|
|
1175
|
+
switch (t) {
|
|
1176
|
+
case 0:
|
|
1177
|
+
return E & e ^ ~E & r;
|
|
1178
|
+
case 1:
|
|
1179
|
+
return E ^ e ^ r;
|
|
1180
|
+
case 2:
|
|
1181
|
+
return E & e ^ E & r ^ e & r;
|
|
1182
|
+
case 3:
|
|
1183
|
+
return E ^ e ^ r;
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
function U(t, E) {
|
|
1187
|
+
return t << E | t >>> 32 - E;
|
|
1188
|
+
}
|
|
1189
|
+
function q(t) {
|
|
1190
|
+
const E = [1518500249, 1859775393, 2400959708, 3395469782], e = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
|
|
1191
|
+
if (typeof t == "string") {
|
|
1192
|
+
const l = unescape(encodeURIComponent(t));
|
|
1193
|
+
t = [];
|
|
1194
|
+
for (let A = 0; A < l.length; ++A)
|
|
1195
|
+
t.push(l.charCodeAt(A));
|
|
1196
|
+
} else Array.isArray(t) || (t = Array.prototype.slice.call(t));
|
|
1197
|
+
t.push(128);
|
|
1198
|
+
const r = t.length / 4 + 2, s = Math.ceil(r / 16), o = new Array(s);
|
|
1199
|
+
for (let l = 0; l < s; ++l) {
|
|
1200
|
+
const A = new Uint32Array(16);
|
|
1201
|
+
for (let a = 0; a < 16; ++a)
|
|
1202
|
+
A[a] = t[l * 64 + a * 4] << 24 | t[l * 64 + a * 4 + 1] << 16 | t[l * 64 + a * 4 + 2] << 8 | t[l * 64 + a * 4 + 3];
|
|
1203
|
+
o[l] = A;
|
|
1204
|
+
}
|
|
1205
|
+
o[s - 1][14] = (t.length - 1) * 8 / Math.pow(2, 32), o[s - 1][14] = Math.floor(o[s - 1][14]), o[s - 1][15] = (t.length - 1) * 8 & 4294967295;
|
|
1206
|
+
for (let l = 0; l < s; ++l) {
|
|
1207
|
+
const A = new Uint32Array(80);
|
|
1208
|
+
for (let T = 0; T < 16; ++T)
|
|
1209
|
+
A[T] = o[l][T];
|
|
1210
|
+
for (let T = 16; T < 80; ++T)
|
|
1211
|
+
A[T] = U(A[T - 3] ^ A[T - 8] ^ A[T - 14] ^ A[T - 16], 1);
|
|
1212
|
+
let a = e[0], R = e[1], i = e[2], m = e[3], n = e[4];
|
|
1213
|
+
for (let T = 0; T < 80; ++T) {
|
|
1214
|
+
const D = Math.floor(T / 20), x = U(a, 5) + z(D, R, i, m) + n + E[D] + A[T] >>> 0;
|
|
1215
|
+
n = m, m = i, i = U(R, 30) >>> 0, R = a, a = x;
|
|
1216
|
+
}
|
|
1217
|
+
e[0] = e[0] + a >>> 0, e[1] = e[1] + R >>> 0, e[2] = e[2] + i >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + n >>> 0;
|
|
1218
|
+
}
|
|
1219
|
+
return [e[0] >> 24 & 255, e[0] >> 16 & 255, e[0] >> 8 & 255, e[0] & 255, e[1] >> 24 & 255, e[1] >> 16 & 255, e[1] >> 8 & 255, e[1] & 255, e[2] >> 24 & 255, e[2] >> 16 & 255, e[2] >> 8 & 255, e[2] & 255, e[3] >> 24 & 255, e[3] >> 16 & 255, e[3] >> 8 & 255, e[3] & 255, e[4] >> 24 & 255, e[4] >> 16 & 255, e[4] >> 8 & 255, e[4] & 255];
|
|
1220
|
+
}
|
|
1221
|
+
const p = Z("v5", 80, q);
|
|
1222
|
+
class ne extends M {
|
|
1223
|
+
constructor(e, r = "POST", s = {}) {
|
|
1224
|
+
super();
|
|
1225
|
+
N(this, "apiUrl");
|
|
1226
|
+
N(this, "method");
|
|
1227
|
+
N(this, "headers");
|
|
1228
|
+
N(this, "isLoadingEnabled", !0);
|
|
1229
|
+
N(this, "errorResponse");
|
|
1230
|
+
this.apiUrl = e, this.method = r, this.headers = {
|
|
1231
|
+
"Content-Type": "application/json",
|
|
1232
|
+
...s
|
|
1233
|
+
};
|
|
1234
|
+
}
|
|
1235
|
+
setIsLoadingEnabled(e) {
|
|
1236
|
+
this.isLoadingEnabled = e;
|
|
1237
|
+
}
|
|
1238
|
+
setErrorResponse(e) {
|
|
1239
|
+
this.errorResponse = e;
|
|
1240
|
+
}
|
|
1241
|
+
fetchData(e = {}) {
|
|
1242
|
+
const r = (/* @__PURE__ */ new Date()).toISOString(), s = p(r, p.URL), o = this.encode({ ...e }, s);
|
|
1243
|
+
S.getInstance().setSubject(this.isLoadingEnabled);
|
|
1244
|
+
const A = new URLSearchParams(window.location.search).get("flow") ?? "N/A";
|
|
1245
|
+
return g(this.apiUrl, {
|
|
1246
|
+
method: this.method,
|
|
1247
|
+
headers: { ...this.headers, flow: A },
|
|
1248
|
+
body: o,
|
|
1249
|
+
selector: (a) => a.json()
|
|
1250
|
+
}).pipe(
|
|
1251
|
+
C((a) => O(this.decode(a))),
|
|
1252
|
+
C((a) => a.code && (a.type === "modal" || a.type === "message") ? (this.logError(
|
|
1253
|
+
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${o} <RESPONSE>: ${JSON.stringify(a)}`
|
|
1254
|
+
), S.getInstance().setSubject(!1), P.getInstance().setSubject(a), this.errorResponse ? O(this.errorResponse) : c) : O(a)),
|
|
1255
|
+
C((a) => (S.getInstance().setSubject(!1), this.logDebug(
|
|
1256
|
+
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${o} <RESPONSE>: ${JSON.stringify(a)}`
|
|
1257
|
+
), O(a))),
|
|
1258
|
+
I((a) => (this.logError(
|
|
1259
|
+
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${o} <RESPONSE>: ${JSON.stringify(a)}`
|
|
1260
|
+
), S.getInstance().setSubject(!1), P.getInstance().setSubject(
|
|
1261
|
+
new L().get(a, s)
|
|
1262
|
+
), this.errorResponse ? O(this.errorResponse) : c))
|
|
1263
|
+
);
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
const ee = process.env.ID_FRONT ?? "NOT_AVAILABLE";
|
|
1267
|
+
class Le extends y {
|
|
1268
|
+
constructor(e, r, s = {}) {
|
|
1269
|
+
super(s);
|
|
1270
|
+
N(this, "apiUrl");
|
|
1271
|
+
N(this, "method");
|
|
1272
|
+
N(this, "errorCatalog", new L());
|
|
1273
|
+
this.apiUrl = e, this.method = r ?? "POST";
|
|
1274
|
+
}
|
|
1275
|
+
errorHandler(e, r) {
|
|
1276
|
+
if (e != null && e.errors)
|
|
1277
|
+
throw this.errorCatalog.get(e.errors[0], r);
|
|
1278
|
+
return !(e != null && e.errors);
|
|
1279
|
+
}
|
|
1280
|
+
formatParams(e) {
|
|
1281
|
+
return JSON.stringify({
|
|
1282
|
+
data: {
|
|
1283
|
+
type: ee,
|
|
1284
|
+
attributes: e
|
|
1285
|
+
}
|
|
1286
|
+
});
|
|
1287
|
+
}
|
|
1288
|
+
fetchData(e = {}, r) {
|
|
1289
|
+
const { resources: s, errors: o } = this.onInit();
|
|
1290
|
+
return this.errorCatalog.setErrors(o), this.errorCatalog.setI18nResources(s), this.getHeaders().pipe(
|
|
1291
|
+
C(
|
|
1292
|
+
(l) => g(
|
|
1293
|
+
this.apiUrl,
|
|
1294
|
+
{
|
|
1295
|
+
method: "POST",
|
|
1296
|
+
headers: l,
|
|
1297
|
+
body: this.formatParams(e),
|
|
1298
|
+
selector: (A) => A.json()
|
|
1299
|
+
}
|
|
1300
|
+
).pipe(
|
|
1301
|
+
I((A) => {
|
|
1302
|
+
throw this.logError(JSON.stringify(A)), this.logError(
|
|
1303
|
+
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1304
|
+
l
|
|
1305
|
+
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
1306
|
+
this.formatParams(e)
|
|
1307
|
+
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(A)} \x1B[33m`
|
|
1308
|
+
), new L().get("default", r);
|
|
1309
|
+
}),
|
|
1310
|
+
C((A) => (this.logDebug(
|
|
1311
|
+
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1312
|
+
l
|
|
1313
|
+
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
1314
|
+
this.formatParams(e)
|
|
1315
|
+
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(A)} \x1B[33m`
|
|
1316
|
+
), O(A)))
|
|
1317
|
+
)
|
|
1318
|
+
),
|
|
1319
|
+
u((l) => this.errorHandler(l, r))
|
|
1320
|
+
);
|
|
1321
|
+
}
|
|
1322
|
+
fetchCustomData(e = {}, r, s) {
|
|
1323
|
+
const { resources: o, errors: l } = this.onInit();
|
|
1324
|
+
this.errorCatalog.setErrors(l), this.errorCatalog.setI18nResources(o);
|
|
1325
|
+
const A = {
|
|
1326
|
+
"Content-Type": "application/json"
|
|
1327
|
+
}, a = h.stringify(
|
|
1328
|
+
e
|
|
1329
|
+
), R = `${this.apiUrl}?${a}`, i = this.method === "GET" ? R : this.apiUrl;
|
|
1330
|
+
return this.getHeaders(A, s).pipe(
|
|
1331
|
+
C(
|
|
1332
|
+
(m) => g(i, {
|
|
1333
|
+
method: this.method,
|
|
1334
|
+
headers: m,
|
|
1335
|
+
body: this.method === "GET" ? null : JSON.stringify(e),
|
|
1336
|
+
selector: (n) => n.json()
|
|
1337
|
+
}).pipe(
|
|
1338
|
+
I((n) => {
|
|
1339
|
+
throw this.logError(JSON.stringify(n)), this.logError(
|
|
1340
|
+
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${i} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1341
|
+
m
|
|
1342
|
+
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
1343
|
+
this.formatParams(e)
|
|
1344
|
+
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(n)} \x1B[33m`
|
|
1345
|
+
), new L().get("default", r);
|
|
1346
|
+
}),
|
|
1347
|
+
C((n) => (this.logDebug(
|
|
1348
|
+
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${i} \x1B[37m \x1B[37m <METHOD>: \x1B[33m ${this.method} <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1349
|
+
m
|
|
1350
|
+
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
1351
|
+
e
|
|
1352
|
+
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(n)} \x1B[33m`
|
|
1353
|
+
), O(n)))
|
|
1354
|
+
)
|
|
1355
|
+
)
|
|
1356
|
+
);
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
export {
|
|
1360
|
+
Oe as A,
|
|
1361
|
+
L as E,
|
|
1362
|
+
Ce as F,
|
|
1363
|
+
ne as a,
|
|
1364
|
+
Le as b
|
|
1365
|
+
};
|