mp-front-cli 0.0.111 → 0.0.113
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.map +1 -1
- package/dist/{index-d7046911.js → index-9a22b5c0.js} +14 -5
- package/dist/lang/common/errors/calculator/es_MX/index.d.ts +0 -4
- package/dist/lang/common/errors/calculator/es_MX/index.d.ts.map +1 -1
- package/dist/lang/common/errors/es_MX/index.d.ts +12 -4
- package/dist/lang/common/errors/es_MX/index.d.ts.map +1 -1
- package/dist/mp-front-cli-all.es.js +1 -1
- package/dist/mp-front-cli-core.es.js +170 -155
- package/dist/mp-front-cli-locale.es.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-catalog.d.ts","sourceRoot":"","sources":["../../../src/core/errors/error-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAA;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"error-catalog.d.ts","sourceRoot":"","sources":["../../../src/core/errors/error-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAA;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AA0yBrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;CA8B7B"}
|
|
@@ -160,10 +160,6 @@ const e = {
|
|
|
160
160
|
title: "Verificar el estado del servicio",
|
|
161
161
|
message: "Error al obtener existencias"
|
|
162
162
|
},
|
|
163
|
-
"CALCULATOR-GENERIC-001": {
|
|
164
|
-
title: "Error genérico",
|
|
165
|
-
message: "Error genérico"
|
|
166
|
-
},
|
|
167
163
|
"CALCULATOR-BAD-REQUEST-26": {
|
|
168
164
|
title: "Clave de tipo de producto no encontrada",
|
|
169
165
|
message: "Revisar clave de tipo de producto enviada"
|
|
@@ -511,7 +507,7 @@ const e = {
|
|
|
511
507
|
//BIOMETRIC
|
|
512
508
|
"PF-BIOMETRIC-001": {
|
|
513
509
|
title: "Campo inválido",
|
|
514
|
-
message: "
|
|
510
|
+
message: "Se ha producido un error en la autenticación biométrica."
|
|
515
511
|
},
|
|
516
512
|
"PF-BIOMETRIC-002": {
|
|
517
513
|
title: "No aceptable",
|
|
@@ -525,6 +521,10 @@ const e = {
|
|
|
525
521
|
title: "Se encontró datos en Financing2",
|
|
526
522
|
message: "El cliente ha iniciado un proceso de financiación 2."
|
|
527
523
|
},
|
|
524
|
+
"PF-BIOMETRICS-007": {
|
|
525
|
+
title: "Error en la validación de identidad",
|
|
526
|
+
message: "La validación de los datos proporcionados no coinciden con la identidad del cliente, por favor verifique los datos del cliente."
|
|
527
|
+
},
|
|
528
528
|
"PF-VALIDATE-CLIENTTYPE-003": {
|
|
529
529
|
title: "Saldo pendiente por pagar",
|
|
530
530
|
message: "Notamos que tu historial presenta un saldo vencido, por esa razón, en este momento no será posible continuar con tu crédito."
|
|
@@ -601,6 +601,15 @@ const e = {
|
|
|
601
601
|
"PF-SALES-SUMMARY-GENERIC-ERROR-001": {
|
|
602
602
|
title: "Error al cerrar la venta",
|
|
603
603
|
message: "Por favor de revisar los datos enviados"
|
|
604
|
+
},
|
|
605
|
+
//REPRINT
|
|
606
|
+
"PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001": {
|
|
607
|
+
title: "Error al cancelar la solicitud",
|
|
608
|
+
message: "Por favor comunícate con mesa de ayuda"
|
|
609
|
+
},
|
|
610
|
+
"PF-CANCEL-APPLICATION-GENERIC-ERROR-001": {
|
|
611
|
+
title: "Error al cancelar la solicitud",
|
|
612
|
+
message: "Por favor comunícate con mesa de ayuda"
|
|
604
613
|
}
|
|
605
614
|
}
|
|
606
615
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/calculator/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/calculator/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyNhB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -32,6 +32,14 @@ declare const translation: {
|
|
|
32
32
|
title: string;
|
|
33
33
|
message: string;
|
|
34
34
|
};
|
|
35
|
+
"PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001": {
|
|
36
|
+
title: string;
|
|
37
|
+
message: string;
|
|
38
|
+
};
|
|
39
|
+
"PF-CANCEL-APPLICATION-GENERIC-ERROR-001": {
|
|
40
|
+
title: string;
|
|
41
|
+
message: string;
|
|
42
|
+
};
|
|
35
43
|
"ENROLLMENT-INVALIDCONFIGURATION-0000": {
|
|
36
44
|
title: string;
|
|
37
45
|
message: string;
|
|
@@ -308,6 +316,10 @@ declare const translation: {
|
|
|
308
316
|
title: string;
|
|
309
317
|
message: string;
|
|
310
318
|
};
|
|
319
|
+
"PF-BIOMETRICS-007": {
|
|
320
|
+
title: string;
|
|
321
|
+
message: string;
|
|
322
|
+
};
|
|
311
323
|
"PF-VALIDATE-CLIENTTYPE-003": {
|
|
312
324
|
title: string;
|
|
313
325
|
message: string;
|
|
@@ -509,10 +521,6 @@ declare const translation: {
|
|
|
509
521
|
title: string;
|
|
510
522
|
message: string;
|
|
511
523
|
};
|
|
512
|
-
"CALCULATOR-GENERIC-001": {
|
|
513
|
-
title: string;
|
|
514
|
-
message: string;
|
|
515
|
-
};
|
|
516
524
|
"CALCULATOR-BAD-REQUEST-26": {
|
|
517
525
|
title: string;
|
|
518
526
|
message: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwRhB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -2,7 +2,7 @@ import { ApiMiddleware as g, ErrorCatalog as l, FetchServiceBE as x, FetchServic
|
|
|
2
2
|
import { LoadingHandler as v, MessageHandler as E, RxSubjectManager as F } from "./mp-front-cli-utils-rxjs.es.js";
|
|
3
3
|
import { S as h } from "./index-def0b487.js";
|
|
4
4
|
import "i18next";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-9a22b5c0.js";
|
|
6
6
|
import "./mp-front-cli-logger.es.js";
|
|
7
7
|
import "rxjs";
|
|
8
8
|
import "./mp-front-cli-encrypter.es.js";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
2
|
var y = (t, E, e) => E in t ? f(t, E, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[E] = e;
|
|
3
3
|
var L = (t, E, e) => (y(t, typeof E != "symbol" ? E + "" : E, e), e);
|
|
4
|
-
import { LoadingHandler as
|
|
4
|
+
import { LoadingHandler as g, MessageHandler as M } from "./mp-front-cli-utils-rxjs.es.js";
|
|
5
5
|
import { RxSubjectManager as me } from "./mp-front-cli-utils-rxjs.es.js";
|
|
6
|
-
import { f as
|
|
7
|
-
import { S as
|
|
8
|
-
import
|
|
9
|
-
import { t as
|
|
10
|
-
import { CustomLogger as
|
|
11
|
-
import { of as T, switchMap as O, forkJoin as B, catchError as
|
|
12
|
-
import { CustomEncrypter as
|
|
6
|
+
import { f as D } from "./index-def0b487.js";
|
|
7
|
+
import { S as ne } from "./index-def0b487.js";
|
|
8
|
+
import w, { t as n } from "i18next";
|
|
9
|
+
import { t as v } from "./index-9a22b5c0.js";
|
|
10
|
+
import { CustomLogger as F } from "./mp-front-cli-logger.es.js";
|
|
11
|
+
import { of as T, switchMap as O, forkJoin as B, catchError as U, EMPTY as d, filter as V } from "rxjs";
|
|
12
|
+
import { CustomEncrypter as Q } from "./mp-front-cli-encrypter.es.js";
|
|
13
13
|
import { CustomHeader as h } from "./mp-front-cli-header.es.js";
|
|
14
14
|
import { CustomEncoder as x } from "./mp-front-cli-encoder.es.js";
|
|
15
15
|
import { u as Y } from "./stringify-788d71a0.js";
|
|
16
16
|
import "node-jose";
|
|
17
17
|
import "crypto";
|
|
18
|
-
const
|
|
18
|
+
const G = {
|
|
19
19
|
es: {
|
|
20
20
|
translation: {
|
|
21
|
-
...
|
|
21
|
+
...v
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
resources:
|
|
25
|
+
w.init({
|
|
26
|
+
resources: G,
|
|
27
27
|
lng: "es",
|
|
28
28
|
// language to use, more information here: https://www.i18next.com/overview/configuration-options#languages-namespaces-resources
|
|
29
29
|
// you can use the i18n.changeLanguage function to change the language manually: https://www.i18next.com/overview/api#changelanguage
|
|
@@ -35,251 +35,251 @@ v.init({
|
|
|
35
35
|
},
|
|
36
36
|
debug: !1
|
|
37
37
|
});
|
|
38
|
-
const
|
|
38
|
+
const H = {
|
|
39
39
|
"ENROLLMENT-INVALIDCONFIGURATION-0000": {
|
|
40
40
|
code: 400,
|
|
41
41
|
type: "modal",
|
|
42
42
|
message: "errors.ENROLLMENT-INVALIDCONFIGURATION-0000.message",
|
|
43
43
|
title: "errors.ENROLLMENT-INVALIDCONFIGURATION-0000.title",
|
|
44
|
-
level: "
|
|
44
|
+
level: "warning"
|
|
45
45
|
},
|
|
46
46
|
"ENROLLMENT-INVALIDDEVICEDID-0001": {
|
|
47
47
|
code: 400,
|
|
48
48
|
type: "modal",
|
|
49
49
|
message: "errors.ENROLLMENT-INVALIDDEVICEDID-0001.message",
|
|
50
50
|
title: "errors.ENROLLMENT-INVALIDDEVICEDID-0001.title",
|
|
51
|
-
level: "
|
|
51
|
+
level: "warning"
|
|
52
52
|
},
|
|
53
53
|
"ENROLLMENT-INVALIDIMEI-0002": {
|
|
54
54
|
code: 400,
|
|
55
55
|
type: "modal",
|
|
56
56
|
message: "errors.ENROLLMENT-INVALIDIMEI-0002.message",
|
|
57
57
|
title: "errors.ENROLLMENT-INVALIDIMEI-0002.title",
|
|
58
|
-
level: "
|
|
58
|
+
level: "warning"
|
|
59
59
|
},
|
|
60
60
|
"ENROLLMENT-INVALIDLOCKTYPE-0003": {
|
|
61
61
|
code: 400,
|
|
62
62
|
type: "modal",
|
|
63
63
|
message: "errors.ENROLLMENT-INVALIDLOCKTYPE-0003.message",
|
|
64
64
|
title: "errors.ENROLLMENT-INVALIDLOCKTYPE-0003.title",
|
|
65
|
-
level: "
|
|
65
|
+
level: "warning"
|
|
66
66
|
},
|
|
67
67
|
"ENROLLMENT-INVALIDTOKENSUPPLIERS-0004": {
|
|
68
68
|
code: 400,
|
|
69
69
|
type: "modal",
|
|
70
70
|
message: "errors.ENROLLMENT-INVALIDTOKENSUPPLIERS-0004.message",
|
|
71
71
|
title: "errors.ENROLLMENT-INVALIDTOKENSUPPLIERS-0004.title",
|
|
72
|
-
level: "
|
|
72
|
+
level: "warning"
|
|
73
73
|
},
|
|
74
74
|
"ENROLLMENT-IMEIDOESNTMATCH-0005": {
|
|
75
75
|
code: 400,
|
|
76
76
|
type: "modal",
|
|
77
77
|
message: "errors.ENROLLMENT-IMEIDOESNTMATCH-0005.message",
|
|
78
78
|
title: "errors.ENROLLMENT-IMEIDOESNTMATCH-0005.title",
|
|
79
|
-
level: "
|
|
79
|
+
level: "warning"
|
|
80
80
|
},
|
|
81
81
|
"ENROLLMENT-QRMACROLOCKNOTGENERATE-0006": {
|
|
82
82
|
code: 400,
|
|
83
83
|
type: "modal",
|
|
84
84
|
message: "errors.ENROLLMENT-QRMACROLOCKNOTGENERATE-0006.message",
|
|
85
85
|
title: "errors.ENROLLMENT-QRMACROLOCKNOTGENERATE-0006.title",
|
|
86
|
-
level: "
|
|
86
|
+
level: "warning"
|
|
87
87
|
},
|
|
88
88
|
"ENROLLMENT-IMEINOTVALIDATED-0007": {
|
|
89
89
|
code: 400,
|
|
90
90
|
type: "modal",
|
|
91
91
|
message: "errors.ENROLLMENT-IMEINOTVALIDATED-0007.message",
|
|
92
92
|
title: "errors.ENROLLMENT-IMEINOTVALIDATED-0007.title",
|
|
93
|
-
level: "
|
|
93
|
+
level: "warning"
|
|
94
94
|
},
|
|
95
95
|
"ENROLLMENT-DEVICESNOTFOUNDINSAPINVENTORY-0008": {
|
|
96
96
|
code: 400,
|
|
97
97
|
type: "modal",
|
|
98
98
|
message: "errors.ENROLLMENT-DEVICESNOTFOUNDINSAPINVENTORY-0008.message",
|
|
99
99
|
title: "errors.ENROLLMENT-DEVICESNOTFOUNDINSAPINVENTORY-0008.title",
|
|
100
|
-
level: "
|
|
100
|
+
level: "warning"
|
|
101
101
|
},
|
|
102
102
|
"ENROLLMENT-JOURNEYERROR-0009": {
|
|
103
103
|
code: 400,
|
|
104
104
|
type: "modal",
|
|
105
105
|
message: "errors.ENROLLMENT-JOURNEYERROR-0009.message",
|
|
106
106
|
title: "errors.ENROLLMENT-JOURNEYERROR-0009.title",
|
|
107
|
-
level: "
|
|
107
|
+
level: "warning"
|
|
108
108
|
},
|
|
109
109
|
"ENROLLMENT-APPLICATIONSNOTFOUND-0010": {
|
|
110
110
|
code: 400,
|
|
111
111
|
type: "modal",
|
|
112
112
|
message: "errors.ENROLLMENT-APPLICATIONSNOTFOUND-0010.message",
|
|
113
113
|
title: "errors.ENROLLMENT-APPLICATIONSNOTFOUND-0010.title",
|
|
114
|
-
level: "
|
|
114
|
+
level: "warning"
|
|
115
115
|
},
|
|
116
116
|
"ENROLLMENT-LOCKTYPENOTFOUND-0011": {
|
|
117
117
|
code: 400,
|
|
118
118
|
type: "modal",
|
|
119
119
|
message: "errors.ENROLLMENT-LOCKTYPENOTFOUND-0011.message",
|
|
120
120
|
title: "errors.ENROLLMENT-LOCKTYPENOTFOUND-0011.title",
|
|
121
|
-
level: "
|
|
121
|
+
level: "warning"
|
|
122
122
|
},
|
|
123
123
|
"ENROLLMENT-PREAPPLICATIONNOTFOUND-0012": {
|
|
124
124
|
code: 400,
|
|
125
125
|
type: "modal",
|
|
126
126
|
message: "errors.ENROLLMENT-PREAPPLICATIONNOTFOUND-0012.message",
|
|
127
127
|
title: "errors.ENROLLMENT-PREAPPLICATIONNOTFOUND-0012.title",
|
|
128
|
-
level: "
|
|
128
|
+
level: "warning"
|
|
129
129
|
},
|
|
130
130
|
"ENROLLMENT-UNSUPPORTED_MEDIA_TYPE-0013": {
|
|
131
131
|
code: 400,
|
|
132
132
|
type: "modal",
|
|
133
133
|
message: "errors.ENROLLMENT-UNSUPPORTED_MEDIA_TYPE-0013.message",
|
|
134
134
|
title: "errors.ENROLLMENT-UNSUPPORTED_MEDIA_TYPE-0013.title",
|
|
135
|
-
level: "
|
|
135
|
+
level: "warning"
|
|
136
136
|
},
|
|
137
137
|
"ENROLLMENT-NOT_ACCEPTABLE-0014": {
|
|
138
138
|
code: 400,
|
|
139
139
|
type: "modal",
|
|
140
140
|
message: "errors.ENROLLMENT-NOT_ACCEPTABLE-0014.message",
|
|
141
141
|
title: "errors.ENROLLMENT-NOT_ACCEPTABLE-0014.title",
|
|
142
|
-
level: "
|
|
142
|
+
level: "warning"
|
|
143
143
|
},
|
|
144
144
|
"ENROLLMENT-RESOURCENOTFOUND-0015": {
|
|
145
145
|
code: 400,
|
|
146
146
|
type: "modal",
|
|
147
147
|
message: "errors.ENROLLMENT-RESOURCENOTFOUND-0015.message",
|
|
148
148
|
title: "errors.ENROLLMENT-RESOURCENOTFOUND-0015.title",
|
|
149
|
-
level: "
|
|
149
|
+
level: "warning"
|
|
150
150
|
},
|
|
151
151
|
"ENROLLMENT-BADREQUEST-0016": {
|
|
152
152
|
code: 400,
|
|
153
153
|
type: "modal",
|
|
154
154
|
message: "errors.ENROLLMENT-BADREQUEST-0016.message",
|
|
155
155
|
title: "errors.ENROLLMENT-BADREQUEST-0016.title",
|
|
156
|
-
level: "
|
|
156
|
+
level: "warning"
|
|
157
157
|
},
|
|
158
158
|
"ENROLLMENT-METHODNOTIMPLEMENT-0017": {
|
|
159
159
|
code: 400,
|
|
160
160
|
type: "modal",
|
|
161
161
|
message: "errors.ENROLLMENT-METHODNOTIMPLEMENT-0017.message",
|
|
162
162
|
title: "errors.ENROLLMENT-METHODNOTIMPLEMENT-0017.title",
|
|
163
|
-
level: "
|
|
163
|
+
level: "warning"
|
|
164
164
|
},
|
|
165
165
|
"ENROLLMENT-PRODUCTNOTFOUNDINSAPINVENTORY-0018": {
|
|
166
166
|
code: 400,
|
|
167
167
|
type: "modal",
|
|
168
168
|
message: "errors.ENROLLMENT-PRODUCTNOTFOUNDINSAPINVENTORY-0018.message",
|
|
169
169
|
title: "errors.ENROLLMENT-PRODUCTNOTFOUNDINSAPINVENTORY-0018.title",
|
|
170
|
-
level: "
|
|
170
|
+
level: "warning"
|
|
171
171
|
},
|
|
172
172
|
"ENROLLMENT-PRODUCTKEYNOTFOUND-0019": {
|
|
173
173
|
code: 400,
|
|
174
174
|
type: "modal",
|
|
175
175
|
message: "errors.ENROLLMENT-PRODUCTKEYNOTFOUND-0019.message",
|
|
176
176
|
title: "errors.ENROLLMENT-PRODUCTKEYNOTFOUND-0019.title",
|
|
177
|
-
level: "
|
|
177
|
+
level: "warning"
|
|
178
178
|
},
|
|
179
179
|
"ENROLLMENT-FAILEDTORETRIEVEIMEI-0020": {
|
|
180
180
|
code: 400,
|
|
181
181
|
type: "modal",
|
|
182
182
|
message: "errors.ENROLLMENT-FAILEDTORETRIEVEIMEI-0020.message",
|
|
183
183
|
title: "errors.ENROLLMENT-FAILEDTORETRIEVEIMEI-0020.title",
|
|
184
|
-
level: "
|
|
184
|
+
level: "warning"
|
|
185
185
|
},
|
|
186
186
|
"ENROLLMENT-LOCKTYPENOTFOUND-0021": {
|
|
187
187
|
code: 400,
|
|
188
188
|
type: "modal",
|
|
189
189
|
message: "errors.ENROLLMENT-LOCKTYPENOTFOUND-0021.message",
|
|
190
190
|
title: "errors.ENROLLMENT-LOCKTYPENOTFOUND-0021.title",
|
|
191
|
-
level: "
|
|
191
|
+
level: "warning"
|
|
192
192
|
},
|
|
193
193
|
"ENROLLMENT-AUTH_HEADER_MISSING-0022": {
|
|
194
194
|
code: 400,
|
|
195
195
|
type: "modal",
|
|
196
196
|
message: "errors.ENROLLMENT-AUTH_HEADER_MISSING-0022.message",
|
|
197
197
|
title: "errors.ENROLLMENT-AUTH_HEADER_MISSING-0022.title",
|
|
198
|
-
level: "
|
|
198
|
+
level: "warning"
|
|
199
199
|
},
|
|
200
200
|
"ENROLLMENT-AUTH_HEADER_INVALID_FORMAT-0023": {
|
|
201
201
|
code: 400,
|
|
202
202
|
type: "modal",
|
|
203
203
|
message: "errors.ENROLLMENT-AUTH_HEADER_INVALID_FORMAT-0023.message",
|
|
204
204
|
title: "errors.ENROLLMENT-AUTH_HEADER_INVALID_FORMAT-0023.title",
|
|
205
|
-
level: "
|
|
205
|
+
level: "warning"
|
|
206
206
|
},
|
|
207
207
|
"ENROLLMENT-AUTH_TOKEN_MISSING-0024": {
|
|
208
208
|
code: 400,
|
|
209
209
|
type: "modal",
|
|
210
210
|
message: "errors.ENROLLMENT-AUTH_TOKEN_MISSING-0024.message",
|
|
211
211
|
title: "errors.ENROLLMENT-AUTH_TOKEN_MISSING-0024.title",
|
|
212
|
-
level: "
|
|
212
|
+
level: "warning"
|
|
213
213
|
},
|
|
214
214
|
"ENROLLMENT-AUTH_TOKEN_INVALID-0025": {
|
|
215
215
|
code: 400,
|
|
216
216
|
type: "modal",
|
|
217
217
|
message: "errors.ENROLLMENT-AUTH_TOKEN_INVALID-0025.message",
|
|
218
218
|
title: "errors.ENROLLMENT-AUTH_TOKEN_INVALID-0025.title",
|
|
219
|
-
level: "
|
|
219
|
+
level: "warning"
|
|
220
220
|
},
|
|
221
221
|
"ENROLLMENT-AUTH_UNSUPPORTED_MEDIA_TYPE-0026": {
|
|
222
222
|
code: 400,
|
|
223
223
|
type: "modal",
|
|
224
224
|
message: "errors.ENROLLMENT-AUTH_UNSUPPORTED_MEDIA_TYPE-0026.message",
|
|
225
225
|
title: "errors.ENROLLMENT-AUTH_UNSUPPORTED_MEDIA_TYPE-0026.title",
|
|
226
|
-
level: "
|
|
226
|
+
level: "warning"
|
|
227
227
|
},
|
|
228
228
|
"ENROLLMENT-AUTH_UNKNOWN_ERROR-0027": {
|
|
229
229
|
code: 400,
|
|
230
230
|
type: "modal",
|
|
231
231
|
message: "errors.ENROLLMENT-AUTH_UNKNOWN_ERROR-0027.message",
|
|
232
232
|
title: "errors.ENROLLMENT-AUTH_UNKNOWN_ERROR-0027.title",
|
|
233
|
-
level: "
|
|
233
|
+
level: "warning"
|
|
234
234
|
},
|
|
235
235
|
"ENROLLMENT-APISAPNOTAVAILABLE-0028": {
|
|
236
236
|
code: 400,
|
|
237
237
|
type: "modal",
|
|
238
238
|
message: "errors.ENROLLMENT-APISAPNOTAVAILABLE-0028.message",
|
|
239
239
|
title: "errors.ENROLLMENT-APISAPNOTAVAILABLE-0028.title",
|
|
240
|
-
level: "
|
|
240
|
+
level: "warning"
|
|
241
241
|
},
|
|
242
242
|
"ENROLLMENT-APIAUTHSUPPLIERNOTAVAILABLE-0029": {
|
|
243
243
|
code: 400,
|
|
244
244
|
type: "modal",
|
|
245
245
|
message: "errors.ENROLLMENT-APIAUTHSUPPLIERNOTAVAILABLE-0029.message",
|
|
246
246
|
title: "errors.ENROLLMENT-APIAUTHSUPPLIERNOTAVAILABLE-0029.title",
|
|
247
|
-
level: "
|
|
247
|
+
level: "warning"
|
|
248
248
|
},
|
|
249
249
|
"ENROLLMENT-APIAPISTATUSLOCKTYPEBYSUPPLIERNOTAVAILABLE-0030": {
|
|
250
250
|
code: 400,
|
|
251
251
|
type: "modal",
|
|
252
252
|
message: "errors.ENROLLMENT-APIAPISTATUSLOCKTYPEBYSUPPLIERNOTAVAILABLE-0030.message",
|
|
253
253
|
title: "errors.ENROLLMENT-APIAPISTATUSLOCKTYPEBYSUPPLIERNOTAVAILABLE-0030.title",
|
|
254
|
-
level: "
|
|
254
|
+
level: "warning"
|
|
255
255
|
},
|
|
256
256
|
"ENROLLMENT-INVALIDTOKENTRUSTONICSUPPLIER-0031": {
|
|
257
257
|
code: 400,
|
|
258
258
|
type: "modal",
|
|
259
259
|
message: "errors.ENROLLMENT-INVALIDTOKENTRUSTONICSUPPLIER-0031.message",
|
|
260
260
|
title: "errors.ENROLLMENT-INVALIDTOKENTRUSTONICSUPPLIER-0031.title",
|
|
261
|
-
level: "
|
|
261
|
+
level: "warning"
|
|
262
262
|
},
|
|
263
263
|
"ENROLLMENT-IMEIFOUNDINSAPINVENTORY-0035": {
|
|
264
264
|
code: 400,
|
|
265
265
|
type: "modal",
|
|
266
266
|
message: "errors.ENROLLMENT-IMEIFOUNDINSAPINVENTORY-0035.message",
|
|
267
267
|
title: "errors.ENROLLMENT-IMEIFOUNDINSAPINVENTORY-0035.title",
|
|
268
|
-
level: "
|
|
268
|
+
level: "warning"
|
|
269
269
|
},
|
|
270
270
|
"ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0036": {
|
|
271
271
|
code: 400,
|
|
272
272
|
type: "modal",
|
|
273
273
|
message: "errors.ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0036.message",
|
|
274
274
|
title: "errors.ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0036.title",
|
|
275
|
-
level: "
|
|
275
|
+
level: "warning"
|
|
276
276
|
},
|
|
277
277
|
"ENROLLMENT-MAXIMUMIMEIUSAGEREACHED-0037": {
|
|
278
278
|
code: 400,
|
|
279
279
|
type: "modal",
|
|
280
280
|
message: "errors.ENROLLMENT-MAXIMUMIMEIUSAGEREACHED-0037.message",
|
|
281
281
|
title: "errors.ENROLLMENT-MAXIMUMIMEIUSAGEREACHED-0037.title",
|
|
282
|
-
level: "
|
|
282
|
+
level: "warning"
|
|
283
283
|
}
|
|
284
284
|
}, I = {
|
|
285
285
|
"MP-001": {
|
|
@@ -290,25 +290,25 @@ const G = {
|
|
|
290
290
|
level: "info"
|
|
291
291
|
},
|
|
292
292
|
UNAUTHORIZED: {
|
|
293
|
-
level: "
|
|
293
|
+
level: "warning",
|
|
294
294
|
type: "modal",
|
|
295
295
|
message: "errors.UnAuthorized.message",
|
|
296
296
|
title: "errors.UnAuthorized.title",
|
|
297
297
|
code: 310
|
|
298
298
|
},
|
|
299
299
|
"ERR-GENERAL-01": {
|
|
300
|
-
level: "
|
|
300
|
+
level: "warning",
|
|
301
301
|
type: "modal",
|
|
302
302
|
message: "errors.ERR-GENERAL-01.message",
|
|
303
303
|
title: "errors.ERR-GENERAL-01.title",
|
|
304
304
|
code: 400
|
|
305
305
|
},
|
|
306
306
|
internalError: {
|
|
307
|
-
level: "
|
|
307
|
+
level: "warning",
|
|
308
308
|
type: "modal",
|
|
309
309
|
message: "errors.internalError.message",
|
|
310
310
|
title: "errors.internalError.title",
|
|
311
|
-
code:
|
|
311
|
+
code: 420
|
|
312
312
|
},
|
|
313
313
|
default: {
|
|
314
314
|
code: 420,
|
|
@@ -346,6 +346,13 @@ const G = {
|
|
|
346
346
|
title: "errors.PF-BIOMETRIC-004.title",
|
|
347
347
|
level: "warning"
|
|
348
348
|
},
|
|
349
|
+
"PF-BIOMETRICS-007": {
|
|
350
|
+
title: "errors.PF-BIOMETRICS-007.title",
|
|
351
|
+
message: "errors.PF-BIOMETRICS-007.message",
|
|
352
|
+
level: "warning",
|
|
353
|
+
code: 420,
|
|
354
|
+
type: "modal"
|
|
355
|
+
},
|
|
349
356
|
"PF-VALIDATE-CLIENTTYPE-003": {
|
|
350
357
|
title: "errors.PF-VALIDATE-CLIENTTYPE-003.title",
|
|
351
358
|
message: "errors.PF-VALIDATE-CLIENTTYPE-003.message",
|
|
@@ -705,13 +712,6 @@ const G = {
|
|
|
705
712
|
type: "modal",
|
|
706
713
|
level: "warning"
|
|
707
714
|
},
|
|
708
|
-
"CALCULATOR-GENERIC-001": {
|
|
709
|
-
title: "errors.calculator.CALCULATOR-GENERIC-001.title",
|
|
710
|
-
message: "errors.calculator.CALCULATOR-GENERIC-001.message",
|
|
711
|
-
code: 420,
|
|
712
|
-
type: "modal",
|
|
713
|
-
level: "warning"
|
|
714
|
-
},
|
|
715
715
|
"CALCULATOR-BAD-REQUEST-26": {
|
|
716
716
|
title: "errors.calculator.CALCULATOR-BAD-REQUEST-26.title",
|
|
717
717
|
message: "errors.calculator.CALCULATOR-BAD-REQUEST-26.message",
|
|
@@ -952,7 +952,7 @@ const G = {
|
|
|
952
952
|
message: "errors.PERSONALDATA-GENERIC-ERROR.message",
|
|
953
953
|
code: 420,
|
|
954
954
|
type: "modal",
|
|
955
|
-
level: "
|
|
955
|
+
level: "warning"
|
|
956
956
|
},
|
|
957
957
|
"PERSONALDATA-ODATA-ERROR-01": {
|
|
958
958
|
title: "errors.PERSONALDATA-ODATA-ERROR-01.title",
|
|
@@ -973,7 +973,7 @@ const G = {
|
|
|
973
973
|
message: "errors.PERSONALDATA-CU-ERROR-01.message",
|
|
974
974
|
code: 420,
|
|
975
975
|
type: "modal",
|
|
976
|
-
level: "
|
|
976
|
+
level: "warning"
|
|
977
977
|
},
|
|
978
978
|
"PERSONALDATA-INVALID-RFC-01": {
|
|
979
979
|
title: "errors.PERSONALDATA-INVALID-RFC-01.title",
|
|
@@ -1061,36 +1061,51 @@ const G = {
|
|
|
1061
1061
|
type: "modal",
|
|
1062
1062
|
level: "warning"
|
|
1063
1063
|
},
|
|
1064
|
-
|
|
1064
|
+
//REPRINT
|
|
1065
|
+
"PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001": {
|
|
1066
|
+
title: "errors.PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001.title",
|
|
1067
|
+
message: "errors.PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001.message",
|
|
1068
|
+
code: 420,
|
|
1069
|
+
type: "modal",
|
|
1070
|
+
level: "warning"
|
|
1071
|
+
},
|
|
1072
|
+
"PF-CANCEL-APPLICATION-GENERIC-ERROR-001": {
|
|
1073
|
+
title: "errors.PF-CANCEL-APPLICATION-GENERIC-ERROR-001.title",
|
|
1074
|
+
message: "errors.PF-CANCEL-APPLICATION-GENERIC-ERROR-001.message",
|
|
1075
|
+
code: 420,
|
|
1076
|
+
type: "modal",
|
|
1077
|
+
level: "warning"
|
|
1078
|
+
},
|
|
1079
|
+
...H
|
|
1065
1080
|
};
|
|
1066
|
-
class C extends
|
|
1081
|
+
class C extends F {
|
|
1067
1082
|
get(E = "default", e = "NOT_FOUND") {
|
|
1068
|
-
var s,
|
|
1083
|
+
var s, l;
|
|
1069
1084
|
if (E instanceof Error)
|
|
1070
1085
|
return this.logError(E.message), {
|
|
1071
1086
|
...I.internalError,
|
|
1072
|
-
title:
|
|
1073
|
-
message:
|
|
1087
|
+
title: n(I.internalError.title),
|
|
1088
|
+
message: n(I.internalError.message),
|
|
1074
1089
|
uuid: e
|
|
1075
1090
|
};
|
|
1076
1091
|
const r = typeof E == "string" ? E : E.code ?? E.errorType;
|
|
1077
1092
|
this.logDebug("statusCode", r);
|
|
1078
|
-
const
|
|
1093
|
+
const A = typeof E == "string" ? {} : { ...E };
|
|
1079
1094
|
return {
|
|
1080
1095
|
...I[r] ?? I.default,
|
|
1081
|
-
title:
|
|
1096
|
+
title: n(
|
|
1082
1097
|
((s = I[r]) == null ? void 0 : s.title) ?? I.default.title,
|
|
1083
|
-
|
|
1098
|
+
A
|
|
1084
1099
|
),
|
|
1085
|
-
message:
|
|
1086
|
-
((
|
|
1087
|
-
|
|
1100
|
+
message: n(
|
|
1101
|
+
((l = I[r]) == null ? void 0 : l.message) ?? I.default.message,
|
|
1102
|
+
A
|
|
1088
1103
|
),
|
|
1089
1104
|
uuid: e
|
|
1090
1105
|
};
|
|
1091
1106
|
}
|
|
1092
1107
|
}
|
|
1093
|
-
class Le extends
|
|
1108
|
+
class Le extends Q {
|
|
1094
1109
|
constructor() {
|
|
1095
1110
|
super(...arguments);
|
|
1096
1111
|
L(this, "uuid", "");
|
|
@@ -1104,42 +1119,42 @@ class Le extends F {
|
|
|
1104
1119
|
throw new C().get("SESSION_NOT_FOUND");
|
|
1105
1120
|
return this.session;
|
|
1106
1121
|
}
|
|
1107
|
-
returnData(e, r,
|
|
1108
|
-
const s = this.encode(r,
|
|
1122
|
+
returnData(e, r, A) {
|
|
1123
|
+
const s = this.encode(r, A);
|
|
1109
1124
|
e.status(200).json(s);
|
|
1110
1125
|
}
|
|
1111
1126
|
returnError(e, r) {
|
|
1112
1127
|
return r != null && r.uuid ? e.status(520).json(r) : e.status(520).json(new C().get(r, this.uuid));
|
|
1113
1128
|
}
|
|
1114
1129
|
get(e) {
|
|
1115
|
-
return this.logDebug("get ApiMiddleware"), (r,
|
|
1130
|
+
return this.logDebug("get ApiMiddleware"), (r, A) => {
|
|
1116
1131
|
var s;
|
|
1117
1132
|
this.logDebug("return ApiMiddleware"), this.uuid = (s = r == null ? void 0 : r.body) == null ? void 0 : s.uuid, T(r).pipe(
|
|
1118
1133
|
O(
|
|
1119
|
-
(
|
|
1120
|
-
params: T(this.decode(
|
|
1121
|
-
headers: T(
|
|
1134
|
+
(l) => B({
|
|
1135
|
+
params: T(this.decode(l.body)),
|
|
1136
|
+
headers: T(l.headers)
|
|
1122
1137
|
})
|
|
1123
1138
|
),
|
|
1124
1139
|
O(
|
|
1125
|
-
({ params:
|
|
1126
|
-
response: e(
|
|
1127
|
-
headers: T(
|
|
1128
|
-
params: T(
|
|
1140
|
+
({ params: l, headers: o }) => B({
|
|
1141
|
+
response: e(l, this.uuid, o),
|
|
1142
|
+
headers: T(o),
|
|
1143
|
+
params: T(l)
|
|
1129
1144
|
})
|
|
1130
1145
|
),
|
|
1131
|
-
O(({ params:
|
|
1132
|
-
`ApiMiddleware \x1B[37m <URL>: \x1B[33m ${r.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1133
|
-
), T(
|
|
1134
|
-
|
|
1135
|
-
var
|
|
1146
|
+
O(({ params: l, response: o, headers: a }) => (this.logDebug(
|
|
1147
|
+
`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(o)}`
|
|
1148
|
+
), T(o))),
|
|
1149
|
+
U((l) => {
|
|
1150
|
+
var o;
|
|
1136
1151
|
return this.logError(
|
|
1137
|
-
`ApiMiddleware <URL>: ${r == null ? void 0 : r.url} <HEADERS>: ${JSON.stringify(r == null ? void 0 : r.headers)} <UUID> ${(
|
|
1138
|
-
), this.returnError(
|
|
1152
|
+
`ApiMiddleware <URL>: ${r == null ? void 0 : r.url} <HEADERS>: ${JSON.stringify(r == null ? void 0 : r.headers)} <UUID> ${(o = r == null ? void 0 : r.body) == null ? void 0 : o.uuid} <PARAMS> ${JSON.stringify(r == null ? void 0 : r.body)} <ERROR>: ${JSON.stringify(l)}`
|
|
1153
|
+
), this.returnError(A, l), d;
|
|
1139
1154
|
})
|
|
1140
1155
|
).subscribe({
|
|
1141
|
-
next: (
|
|
1142
|
-
this.logDebug("ApiMiddleware subscribe next", JSON.stringify(
|
|
1156
|
+
next: (l) => {
|
|
1157
|
+
this.logDebug("ApiMiddleware subscribe next", JSON.stringify(l)), this.returnData(A, l, this.uuid);
|
|
1143
1158
|
}
|
|
1144
1159
|
});
|
|
1145
1160
|
};
|
|
@@ -1147,8 +1162,8 @@ class Le extends F {
|
|
|
1147
1162
|
}
|
|
1148
1163
|
const _ = process.env.ID_FRONT ?? "NOT_AVAILABLE";
|
|
1149
1164
|
class Oe extends h {
|
|
1150
|
-
constructor(e, r,
|
|
1151
|
-
super(
|
|
1165
|
+
constructor(e, r, A = {}) {
|
|
1166
|
+
super(A);
|
|
1152
1167
|
L(this, "apiUrl");
|
|
1153
1168
|
L(this, "method");
|
|
1154
1169
|
this.apiUrl = e, this.method = r ?? "POST";
|
|
@@ -1169,19 +1184,19 @@ class Oe extends h {
|
|
|
1169
1184
|
fetchData(e = {}, r) {
|
|
1170
1185
|
return this.getHeaders().pipe(
|
|
1171
1186
|
O(
|
|
1172
|
-
(
|
|
1187
|
+
(A) => D(
|
|
1173
1188
|
this.apiUrl,
|
|
1174
1189
|
{
|
|
1175
1190
|
method: "POST",
|
|
1176
|
-
headers:
|
|
1191
|
+
headers: A,
|
|
1177
1192
|
body: this.formatParams(e),
|
|
1178
1193
|
selector: (s) => s.json()
|
|
1179
1194
|
}
|
|
1180
1195
|
).pipe(
|
|
1181
|
-
|
|
1196
|
+
U((s) => {
|
|
1182
1197
|
throw this.logError(JSON.stringify(s)), this.logError(
|
|
1183
1198
|
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1184
|
-
|
|
1199
|
+
A
|
|
1185
1200
|
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
1186
1201
|
this.formatParams(e)
|
|
1187
1202
|
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(s)} \x1B[33m`
|
|
@@ -1189,29 +1204,29 @@ class Oe extends h {
|
|
|
1189
1204
|
}),
|
|
1190
1205
|
O((s) => (this.logDebug(
|
|
1191
1206
|
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1192
|
-
|
|
1207
|
+
A
|
|
1193
1208
|
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
1194
1209
|
this.formatParams(e)
|
|
1195
1210
|
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(s)} \x1B[33m`
|
|
1196
1211
|
), T(s)))
|
|
1197
1212
|
)
|
|
1198
1213
|
),
|
|
1199
|
-
|
|
1214
|
+
V((A) => this.errorHandler(A, r))
|
|
1200
1215
|
);
|
|
1201
1216
|
}
|
|
1202
1217
|
fetchCustomData(e = {}, r) {
|
|
1203
1218
|
return this.getHeaders().pipe(
|
|
1204
1219
|
O(
|
|
1205
|
-
(
|
|
1220
|
+
(A) => D(this.apiUrl, {
|
|
1206
1221
|
method: this.method,
|
|
1207
|
-
headers:
|
|
1222
|
+
headers: A,
|
|
1208
1223
|
body: this.method === "GET" ? null : JSON.stringify(e),
|
|
1209
1224
|
selector: (s) => s.json()
|
|
1210
1225
|
}).pipe(
|
|
1211
|
-
|
|
1226
|
+
U((s) => {
|
|
1212
1227
|
throw this.logError(JSON.stringify(s)), this.logError(
|
|
1213
1228
|
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1214
|
-
|
|
1229
|
+
A
|
|
1215
1230
|
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
1216
1231
|
this.formatParams(e)
|
|
1217
1232
|
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(s)} \x1B[33m`
|
|
@@ -1219,7 +1234,7 @@ class Oe extends h {
|
|
|
1219
1234
|
}),
|
|
1220
1235
|
O((s) => (this.logDebug(
|
|
1221
1236
|
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m \x1B[37m <METHOD>: \x1B[33m ${this.method} <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1222
|
-
|
|
1237
|
+
A
|
|
1223
1238
|
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
1224
1239
|
e
|
|
1225
1240
|
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(s)} \x1B[33m`
|
|
@@ -1233,14 +1248,14 @@ const J = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-
|
|
|
1233
1248
|
function K(t) {
|
|
1234
1249
|
return typeof t == "string" && J.test(t);
|
|
1235
1250
|
}
|
|
1236
|
-
function
|
|
1251
|
+
function X(t) {
|
|
1237
1252
|
if (!K(t))
|
|
1238
1253
|
throw TypeError("Invalid UUID");
|
|
1239
1254
|
let E;
|
|
1240
1255
|
const e = new Uint8Array(16);
|
|
1241
1256
|
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;
|
|
1242
1257
|
}
|
|
1243
|
-
function
|
|
1258
|
+
function $(t) {
|
|
1244
1259
|
t = unescape(encodeURIComponent(t));
|
|
1245
1260
|
const E = [];
|
|
1246
1261
|
for (let e = 0; e < t.length; ++e)
|
|
@@ -1249,16 +1264,16 @@ function X(t) {
|
|
|
1249
1264
|
}
|
|
1250
1265
|
const b = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", W = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
1251
1266
|
function j(t, E, e) {
|
|
1252
|
-
function r(
|
|
1253
|
-
var
|
|
1254
|
-
if (typeof
|
|
1267
|
+
function r(A, s, l, o) {
|
|
1268
|
+
var a;
|
|
1269
|
+
if (typeof A == "string" && (A = $(A)), typeof s == "string" && (s = X(s)), ((a = s) === null || a === void 0 ? void 0 : a.length) !== 16)
|
|
1255
1270
|
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
1256
|
-
let N = new Uint8Array(16 +
|
|
1257
|
-
if (N.set(s), N.set(
|
|
1258
|
-
|
|
1271
|
+
let N = new Uint8Array(16 + A.length);
|
|
1272
|
+
if (N.set(s), N.set(A, s.length), N = e(N), N[6] = N[6] & 15 | E, N[8] = N[8] & 63 | 128, l) {
|
|
1273
|
+
o = o || 0;
|
|
1259
1274
|
for (let i = 0; i < 16; ++i)
|
|
1260
|
-
|
|
1261
|
-
return
|
|
1275
|
+
l[o + i] = N[i];
|
|
1276
|
+
return l;
|
|
1262
1277
|
}
|
|
1263
1278
|
return Y(N);
|
|
1264
1279
|
}
|
|
@@ -1280,45 +1295,45 @@ function Z(t, E, e, r) {
|
|
|
1280
1295
|
return E ^ e ^ r;
|
|
1281
1296
|
}
|
|
1282
1297
|
}
|
|
1283
|
-
function
|
|
1298
|
+
function c(t, E) {
|
|
1284
1299
|
return t << E | t >>> 32 - E;
|
|
1285
1300
|
}
|
|
1286
1301
|
function k(t) {
|
|
1287
1302
|
const E = [1518500249, 1859775393, 2400959708, 3395469782], e = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
|
|
1288
1303
|
if (typeof t == "string") {
|
|
1289
|
-
const
|
|
1304
|
+
const l = unescape(encodeURIComponent(t));
|
|
1290
1305
|
t = [];
|
|
1291
|
-
for (let
|
|
1292
|
-
t.push(
|
|
1306
|
+
for (let o = 0; o < l.length; ++o)
|
|
1307
|
+
t.push(l.charCodeAt(o));
|
|
1293
1308
|
} else
|
|
1294
1309
|
Array.isArray(t) || (t = Array.prototype.slice.call(t));
|
|
1295
1310
|
t.push(128);
|
|
1296
|
-
const r = t.length / 4 + 2,
|
|
1297
|
-
for (let
|
|
1298
|
-
const
|
|
1299
|
-
for (let
|
|
1300
|
-
a
|
|
1301
|
-
s[
|
|
1311
|
+
const r = t.length / 4 + 2, A = Math.ceil(r / 16), s = new Array(A);
|
|
1312
|
+
for (let l = 0; l < A; ++l) {
|
|
1313
|
+
const o = new Uint32Array(16);
|
|
1314
|
+
for (let a = 0; a < 16; ++a)
|
|
1315
|
+
o[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];
|
|
1316
|
+
s[l] = o;
|
|
1302
1317
|
}
|
|
1303
|
-
s[
|
|
1304
|
-
for (let
|
|
1305
|
-
const
|
|
1318
|
+
s[A - 1][14] = (t.length - 1) * 8 / Math.pow(2, 32), s[A - 1][14] = Math.floor(s[A - 1][14]), s[A - 1][15] = (t.length - 1) * 8 & 4294967295;
|
|
1319
|
+
for (let l = 0; l < A; ++l) {
|
|
1320
|
+
const o = new Uint32Array(80);
|
|
1306
1321
|
for (let R = 0; R < 16; ++R)
|
|
1307
|
-
|
|
1322
|
+
o[R] = s[l][R];
|
|
1308
1323
|
for (let R = 16; R < 80; ++R)
|
|
1309
|
-
|
|
1310
|
-
let
|
|
1324
|
+
o[R] = c(o[R - 3] ^ o[R - 8] ^ o[R - 14] ^ o[R - 16], 1);
|
|
1325
|
+
let a = e[0], N = e[1], i = e[2], m = e[3], S = e[4];
|
|
1311
1326
|
for (let R = 0; R < 80; ++R) {
|
|
1312
|
-
const P = Math.floor(R / 20), u =
|
|
1313
|
-
|
|
1327
|
+
const P = Math.floor(R / 20), u = c(a, 5) + Z(P, N, i, m) + S + E[P] + o[R] >>> 0;
|
|
1328
|
+
S = m, m = i, i = c(N, 30) >>> 0, N = a, a = u;
|
|
1314
1329
|
}
|
|
1315
|
-
e[0] = e[0] +
|
|
1330
|
+
e[0] = e[0] + a >>> 0, e[1] = e[1] + N >>> 0, e[2] = e[2] + i >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + S >>> 0;
|
|
1316
1331
|
}
|
|
1317
1332
|
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];
|
|
1318
1333
|
}
|
|
1319
1334
|
const z = j("v5", 80, k), p = z;
|
|
1320
1335
|
class ie extends x {
|
|
1321
|
-
constructor(e, r = "POST",
|
|
1336
|
+
constructor(e, r = "POST", A = {}) {
|
|
1322
1337
|
super();
|
|
1323
1338
|
L(this, "apiUrl");
|
|
1324
1339
|
L(this, "method");
|
|
@@ -1327,7 +1342,7 @@ class ie extends x {
|
|
|
1327
1342
|
L(this, "errorResponse");
|
|
1328
1343
|
this.apiUrl = e, this.method = r, this.headers = {
|
|
1329
1344
|
"Content-Type": "application/json",
|
|
1330
|
-
...
|
|
1345
|
+
...A
|
|
1331
1346
|
};
|
|
1332
1347
|
}
|
|
1333
1348
|
setIsLoadingEnabled(e) {
|
|
@@ -1337,26 +1352,26 @@ class ie extends x {
|
|
|
1337
1352
|
this.errorResponse = e;
|
|
1338
1353
|
}
|
|
1339
1354
|
fetchData(e = {}) {
|
|
1340
|
-
const r = (/* @__PURE__ */ new Date()).toISOString(),
|
|
1341
|
-
|
|
1342
|
-
const
|
|
1343
|
-
return
|
|
1355
|
+
const r = (/* @__PURE__ */ new Date()).toISOString(), A = p(r, p.URL), s = this.encode({ ...e }, A);
|
|
1356
|
+
g.getInstance().setSubject(this.isLoadingEnabled);
|
|
1357
|
+
const o = new URLSearchParams(window.location.search).get("flow") ?? "N/A";
|
|
1358
|
+
return D(this.apiUrl, {
|
|
1344
1359
|
method: this.method,
|
|
1345
|
-
headers: { ...this.headers, flow:
|
|
1360
|
+
headers: { ...this.headers, flow: o },
|
|
1346
1361
|
body: s,
|
|
1347
|
-
selector: (
|
|
1362
|
+
selector: (a) => a.json()
|
|
1348
1363
|
}).pipe(
|
|
1349
|
-
O((
|
|
1350
|
-
O((
|
|
1351
|
-
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(
|
|
1352
|
-
),
|
|
1353
|
-
O((
|
|
1354
|
-
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(
|
|
1355
|
-
), T(
|
|
1356
|
-
|
|
1357
|
-
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(
|
|
1358
|
-
),
|
|
1359
|
-
new C().get(
|
|
1364
|
+
O((a) => T(this.decode(a))),
|
|
1365
|
+
O((a) => a.code && (a.type === "modal" || a.type === "message") ? (this.logError(
|
|
1366
|
+
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(a)}`
|
|
1367
|
+
), g.getInstance().setSubject(!1), M.getInstance().setSubject(a), this.errorResponse ? T(this.errorResponse) : d) : T(a)),
|
|
1368
|
+
O((a) => (g.getInstance().setSubject(!1), this.logDebug(
|
|
1369
|
+
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(a)}`
|
|
1370
|
+
), T(a))),
|
|
1371
|
+
U((a) => (this.logError(
|
|
1372
|
+
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(a)}`
|
|
1373
|
+
), g.getInstance().setSubject(!1), M.getInstance().setSubject(
|
|
1374
|
+
new C().get(a, A)
|
|
1360
1375
|
), this.errorResponse ? T(this.errorResponse) : d))
|
|
1361
1376
|
);
|
|
1362
1377
|
}
|
|
@@ -1366,8 +1381,8 @@ export {
|
|
|
1366
1381
|
C as ErrorCatalog,
|
|
1367
1382
|
Oe as FetchServiceBE,
|
|
1368
1383
|
ie as FetchServiceFE,
|
|
1369
|
-
|
|
1384
|
+
g as LoadingHandler,
|
|
1370
1385
|
M as MessageHandler,
|
|
1371
1386
|
me as RxSubjectManager,
|
|
1372
|
-
|
|
1387
|
+
ne as ServiceToken
|
|
1373
1388
|
};
|