mp-front-cli 0.0.78 → 0.0.79
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 +16 -0
- package/dist/core/errors/error-catalog.d.ts.map +1 -0
- package/dist/core/errors/index.d.ts +2 -0
- package/dist/core/errors/index.d.ts.map +1 -0
- package/dist/core/errors/message-error.d.ts +16 -0
- package/dist/core/errors/message-error.d.ts.map +1 -0
- package/dist/core/index.d.ts +5 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/interfaces/api-response.d.ts +56 -0
- package/dist/core/interfaces/api-response.d.ts.map +1 -0
- package/dist/core/interfaces/index.d.ts +4 -0
- package/dist/core/interfaces/index.d.ts.map +1 -0
- package/dist/core/interfaces/message.d.ts +16 -0
- package/dist/core/interfaces/message.d.ts.map +1 -0
- package/dist/core/interfaces/method.d.ts +2 -0
- package/dist/core/interfaces/method.d.ts.map +1 -0
- package/dist/core/middleware/index.d.ts +17 -0
- package/dist/core/middleware/index.d.ts.map +1 -0
- package/dist/core/utils/api-request/fetch-service-be.d.ts +14 -0
- package/dist/core/utils/api-request/fetch-service-be.d.ts.map +1 -0
- package/dist/core/utils/api-request/fetch-service-fe.d.ts +14 -0
- package/dist/core/utils/api-request/fetch-service-fe.d.ts.map +1 -0
- package/dist/core/utils/api-request/index.d.ts +3 -0
- package/dist/core/utils/api-request/index.d.ts.map +1 -0
- package/dist/core/utils/custom-adapter.d.ts +15 -0
- package/dist/core/utils/custom-adapter.d.ts.map +1 -0
- package/dist/core/utils/custom-cache.d.ts +58 -0
- package/dist/core/utils/custom-cache.d.ts.map +1 -0
- package/dist/core/utils/custom-encoder.d.ts +8 -0
- package/dist/core/utils/custom-encoder.d.ts.map +1 -0
- package/dist/core/utils/custom-encrypter.d.ts +10 -0
- package/dist/core/utils/custom-encrypter.d.ts.map +1 -0
- package/dist/core/utils/custom-header.d.ts +8 -0
- package/dist/core/utils/custom-header.d.ts.map +1 -0
- package/dist/core/utils/custom-logger.d.ts +16 -0
- package/dist/core/utils/custom-logger.d.ts.map +1 -0
- package/dist/core/utils/custom-redis.d.ts +4 -0
- package/dist/core/utils/custom-redis.d.ts.map +1 -0
- package/dist/core/utils/func/escape_unicode.d.ts +2 -0
- package/dist/core/utils/func/escape_unicode.d.ts.map +1 -0
- package/dist/core/utils/func/index.d.ts +2 -0
- package/dist/core/utils/func/index.d.ts.map +1 -0
- package/dist/core/utils/index.d.ts +3 -0
- package/dist/core/utils/index.d.ts.map +1 -0
- package/dist/core/utils/rxjs/index.d.ts +4 -0
- package/dist/core/utils/rxjs/index.d.ts.map +1 -0
- package/dist/core/utils/rxjs/loading-handler.d.ts +7 -0
- package/dist/core/utils/rxjs/loading-handler.d.ts.map +1 -0
- package/dist/core/utils/rxjs/message-handler.d.ts +8 -0
- package/dist/core/utils/rxjs/message-handler.d.ts.map +1 -0
- package/dist/core/utils/rxjs/rx-subject-manager.d.ts +9 -0
- package/dist/core/utils/rxjs/rx-subject-manager.d.ts.map +1 -0
- package/dist/custom-redis-bee66564.js +11 -0
- package/dist/index-f596eb97.js +341 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lang/common/errors/calculator/en_EN/index.d.ts +10 -0
- package/dist/lang/common/errors/calculator/en_EN/index.d.ts.map +1 -0
- package/dist/lang/common/errors/calculator/es_MX/index.d.ts +190 -0
- package/dist/lang/common/errors/calculator/es_MX/index.d.ts.map +1 -0
- package/dist/lang/common/errors/calculator/index.d.ts +3 -0
- package/dist/lang/common/errors/calculator/index.d.ts.map +1 -0
- package/dist/lang/common/errors/en_EN/index.d.ts +5 -0
- package/dist/lang/common/errors/en_EN/index.d.ts.map +1 -0
- package/dist/lang/common/errors/es_MX/index.d.ts +332 -0
- package/dist/lang/common/errors/es_MX/index.d.ts.map +1 -0
- package/dist/lang/common/errors/index.d.ts +3 -0
- package/dist/lang/common/errors/index.d.ts.map +1 -0
- package/dist/lang/common/index.d.ts +2 -0
- package/dist/lang/common/index.d.ts.map +1 -0
- package/dist/lang/index.d.ts +3 -0
- package/dist/lang/index.d.ts.map +1 -0
- package/dist/lang/validator/en_EN/index.d.ts +5 -0
- package/dist/lang/validator/en_EN/index.d.ts.map +1 -0
- package/dist/lang/validator/es_MX/index.d.ts +41 -0
- package/dist/lang/validator/es_MX/index.d.ts.map +1 -0
- package/dist/lang/validator/index.d.ts +3 -0
- package/dist/lang/validator/index.d.ts.map +1 -0
- package/dist/mp-front-cli-adapter.es.js +174 -0
- package/dist/mp-front-cli-all.es.js +21 -0
- package/dist/mp-front-cli-cache.es.js +87 -0
- package/dist/mp-front-cli-core.es.js +1677 -0
- package/dist/mp-front-cli-encoder.es.js +3706 -0
- package/dist/mp-front-cli-encrypter.es.js +55 -0
- package/dist/mp-front-cli-header.es.js +26 -0
- package/dist/mp-front-cli-locale.es.js +50 -0
- package/dist/mp-front-cli-logger.es.js +60 -0
- package/dist/mp-front-cli-utils-rxjs.es.js +46 -0
- package/dist/stringify-788d71a0.js +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
declare const translation: {
|
|
2
|
+
errors: {
|
|
3
|
+
"JOURNEY-INVALIDATEDATA-01": {
|
|
4
|
+
title: string;
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
|
+
"JOURNEY-DATANOTFOUND-02": {
|
|
8
|
+
title: string;
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
"JOURNEY-FLOWEND-03": {
|
|
12
|
+
title: string;
|
|
13
|
+
message: string;
|
|
14
|
+
};
|
|
15
|
+
"PF-ERROR-GENERIC": {
|
|
16
|
+
title: string;
|
|
17
|
+
message: string;
|
|
18
|
+
};
|
|
19
|
+
"JOURNEY-IDSTATEINCORRECT-04": {
|
|
20
|
+
title: string;
|
|
21
|
+
message: string;
|
|
22
|
+
};
|
|
23
|
+
"JOURNEY-HEADERS-05": {
|
|
24
|
+
title: string;
|
|
25
|
+
message: string;
|
|
26
|
+
};
|
|
27
|
+
"INITIAL-INVALIDATEDATA-01": {
|
|
28
|
+
title: string;
|
|
29
|
+
message: string;
|
|
30
|
+
};
|
|
31
|
+
"INITIAL-DATANOTFOUND-02": {
|
|
32
|
+
title: string;
|
|
33
|
+
message: string;
|
|
34
|
+
};
|
|
35
|
+
"INITIAL-HEADERS-03": {
|
|
36
|
+
title: string;
|
|
37
|
+
message: string;
|
|
38
|
+
};
|
|
39
|
+
"PERSONALDATA-INVALID-MEDIA-TYPE": {
|
|
40
|
+
title: string;
|
|
41
|
+
message: string;
|
|
42
|
+
};
|
|
43
|
+
"PERSONALDATA-INVALID-CONTENT-TYPE": {
|
|
44
|
+
title: string;
|
|
45
|
+
message: string;
|
|
46
|
+
};
|
|
47
|
+
"PERSONALDATA-INVALID-DATA-TYPE": {
|
|
48
|
+
title: string;
|
|
49
|
+
message: string;
|
|
50
|
+
};
|
|
51
|
+
"PERSONALDATA-UNKNOWN-REGISTER-01": {
|
|
52
|
+
title: string;
|
|
53
|
+
message: string;
|
|
54
|
+
};
|
|
55
|
+
"PERSONALDATA-UNKNOWN-REGISTER-02": {
|
|
56
|
+
title: string;
|
|
57
|
+
message: string;
|
|
58
|
+
};
|
|
59
|
+
"PERSONALDATA-BAD-REQUEST-01": {
|
|
60
|
+
title: string;
|
|
61
|
+
message: string;
|
|
62
|
+
};
|
|
63
|
+
"PERSONALDATA-BAD-REQUEST-02": {
|
|
64
|
+
title: string;
|
|
65
|
+
message: string;
|
|
66
|
+
};
|
|
67
|
+
"PERSONALDATA-BAD-REQUEST-03": {
|
|
68
|
+
title: string;
|
|
69
|
+
message: string;
|
|
70
|
+
};
|
|
71
|
+
"PERSONALDATA-BAD-REQUEST-04": {
|
|
72
|
+
title: string;
|
|
73
|
+
message: string;
|
|
74
|
+
};
|
|
75
|
+
"PERSONALDATA-BAD-REQUEST-05": {
|
|
76
|
+
title: string;
|
|
77
|
+
message: string;
|
|
78
|
+
};
|
|
79
|
+
"PERSONALDATA-BAD-REQUEST-06": {
|
|
80
|
+
title: string;
|
|
81
|
+
message: string;
|
|
82
|
+
};
|
|
83
|
+
"PERSONALDATA-BAD-REQUEST-07": {
|
|
84
|
+
title: string;
|
|
85
|
+
message: string;
|
|
86
|
+
};
|
|
87
|
+
"PERSONALDATA-BAD-REQUEST-08": {
|
|
88
|
+
title: string;
|
|
89
|
+
message: string;
|
|
90
|
+
};
|
|
91
|
+
"PERSONALDATA-GENERIC-ERROR": {
|
|
92
|
+
title: string;
|
|
93
|
+
message: string;
|
|
94
|
+
};
|
|
95
|
+
"PF-BIOMETRIC-001": {
|
|
96
|
+
title: string;
|
|
97
|
+
message: string;
|
|
98
|
+
};
|
|
99
|
+
"PF-BIOMETRIC-002": {
|
|
100
|
+
title: string;
|
|
101
|
+
message: string;
|
|
102
|
+
};
|
|
103
|
+
"PF-BIOMETRIC-003": {
|
|
104
|
+
title: string;
|
|
105
|
+
message: string;
|
|
106
|
+
};
|
|
107
|
+
"PF-BIOMETRIC-004": {
|
|
108
|
+
title: string;
|
|
109
|
+
message: string;
|
|
110
|
+
};
|
|
111
|
+
"PF-VALIDATE-CLIENTTYPE-003": {
|
|
112
|
+
title: string;
|
|
113
|
+
message: string;
|
|
114
|
+
};
|
|
115
|
+
calculator: {
|
|
116
|
+
"SCORE-CLIENTREJECTED-01": {
|
|
117
|
+
title: string;
|
|
118
|
+
message: string;
|
|
119
|
+
};
|
|
120
|
+
"CALCULATOR-MAPPING-01": {
|
|
121
|
+
title: string;
|
|
122
|
+
message: string;
|
|
123
|
+
};
|
|
124
|
+
"CALCULATOR-MAPPING-02": {
|
|
125
|
+
title: string;
|
|
126
|
+
message: string;
|
|
127
|
+
};
|
|
128
|
+
"CALCULATOR-MAPPING-03": {
|
|
129
|
+
title: string;
|
|
130
|
+
message: string;
|
|
131
|
+
};
|
|
132
|
+
"CALCULATOR-MAPPING-04": {
|
|
133
|
+
title: string;
|
|
134
|
+
message: string;
|
|
135
|
+
};
|
|
136
|
+
"CALCULATOR-BAD-REQUEST-01": {
|
|
137
|
+
title: string;
|
|
138
|
+
message: string;
|
|
139
|
+
};
|
|
140
|
+
"CALCULATOR-BAD-REQUEST-02": {
|
|
141
|
+
title: string;
|
|
142
|
+
message: string;
|
|
143
|
+
};
|
|
144
|
+
"CALCULATOR-BAD-REQUEST-03": {
|
|
145
|
+
title: string;
|
|
146
|
+
message: string;
|
|
147
|
+
};
|
|
148
|
+
"CALCULATOR-BAD-REQUEST-04": {
|
|
149
|
+
title: string;
|
|
150
|
+
message: string;
|
|
151
|
+
};
|
|
152
|
+
"CALCULATOR-BAD-REQUEST-05": {
|
|
153
|
+
title: string;
|
|
154
|
+
message: string;
|
|
155
|
+
};
|
|
156
|
+
"CALCULATOR-BAD-REQUEST-06": {
|
|
157
|
+
title: string;
|
|
158
|
+
message: string;
|
|
159
|
+
};
|
|
160
|
+
"CALCULATOR-BAD-REQUEST-07": {
|
|
161
|
+
title: string;
|
|
162
|
+
message: string;
|
|
163
|
+
};
|
|
164
|
+
"CALCULATOR-BAD-REQUEST-08": {
|
|
165
|
+
title: string;
|
|
166
|
+
message: string;
|
|
167
|
+
};
|
|
168
|
+
"CALCULATOR-BAD-REQUEST-09": {
|
|
169
|
+
title: string;
|
|
170
|
+
message: string;
|
|
171
|
+
};
|
|
172
|
+
"CALCULATOR-BAD-REQUEST-10": {
|
|
173
|
+
title: string;
|
|
174
|
+
message: string;
|
|
175
|
+
};
|
|
176
|
+
"CALCULATOR-BAD-REQUEST-11": {
|
|
177
|
+
title: string;
|
|
178
|
+
message: string;
|
|
179
|
+
};
|
|
180
|
+
"CALCULATOR-BAD-REQUEST-12": {
|
|
181
|
+
title: string;
|
|
182
|
+
message: string;
|
|
183
|
+
};
|
|
184
|
+
"CALCULATOR-BAD-REQUEST-13": {
|
|
185
|
+
title: string;
|
|
186
|
+
message: string;
|
|
187
|
+
};
|
|
188
|
+
"CALCULATOR-BAD-REQUEST-14": {
|
|
189
|
+
title: string;
|
|
190
|
+
message: string;
|
|
191
|
+
};
|
|
192
|
+
"CALCULATOR-BAD-REQUEST-15": {
|
|
193
|
+
title: string;
|
|
194
|
+
message: string;
|
|
195
|
+
};
|
|
196
|
+
"CALCULATOR-BAD-REQUEST-16": {
|
|
197
|
+
title: string;
|
|
198
|
+
message: string;
|
|
199
|
+
};
|
|
200
|
+
"CALCULATOR-BAD-REQUEST-17": {
|
|
201
|
+
title: string;
|
|
202
|
+
message: string;
|
|
203
|
+
};
|
|
204
|
+
"CALCULATOR-BAD-REQUEST-18": {
|
|
205
|
+
title: string;
|
|
206
|
+
message: string;
|
|
207
|
+
};
|
|
208
|
+
"CALCULATOR-BAD-REQUEST-19": {
|
|
209
|
+
title: string;
|
|
210
|
+
message: string;
|
|
211
|
+
};
|
|
212
|
+
"CALCULATOR-BAD-REQUEST-20": {
|
|
213
|
+
title: string;
|
|
214
|
+
message: string;
|
|
215
|
+
};
|
|
216
|
+
"CALCULATOR-BAD-REQUEST-21": {
|
|
217
|
+
title: string;
|
|
218
|
+
message: string;
|
|
219
|
+
};
|
|
220
|
+
"CALCULATOR-BAD-REQUEST-22": {
|
|
221
|
+
title: string;
|
|
222
|
+
message: string;
|
|
223
|
+
};
|
|
224
|
+
"CALCULATOR-BAD-REQUEST-23": {
|
|
225
|
+
title: string;
|
|
226
|
+
message: string;
|
|
227
|
+
};
|
|
228
|
+
"CALCULATOR-BAD-REQUEST-24": {
|
|
229
|
+
title: string;
|
|
230
|
+
message: string;
|
|
231
|
+
};
|
|
232
|
+
"CALCULATOR-BAD-REQUEST-25": {
|
|
233
|
+
title: string;
|
|
234
|
+
message: string;
|
|
235
|
+
};
|
|
236
|
+
"CALCULATOR-UNAUTHORIZED-01": {
|
|
237
|
+
title: string;
|
|
238
|
+
message: string;
|
|
239
|
+
};
|
|
240
|
+
"CALCULATOR-UNAUTHORIZED-02": {
|
|
241
|
+
title: string;
|
|
242
|
+
message: string;
|
|
243
|
+
};
|
|
244
|
+
"CALCULATOR-SERVICE-UNAVAILABLE-01": {
|
|
245
|
+
title: string;
|
|
246
|
+
message: string;
|
|
247
|
+
};
|
|
248
|
+
"CALCULATOR-SERVICE-UNAVAILABLE-02": {
|
|
249
|
+
title: string;
|
|
250
|
+
message: string;
|
|
251
|
+
};
|
|
252
|
+
"CALCULATOR-NOT-FOUND-01": {
|
|
253
|
+
title: string;
|
|
254
|
+
message: string;
|
|
255
|
+
};
|
|
256
|
+
"CALCULATOR-NOT-FOUND-02": {
|
|
257
|
+
title: string;
|
|
258
|
+
message: string;
|
|
259
|
+
};
|
|
260
|
+
"CALCULATOR-SAP-ERROR-01": {
|
|
261
|
+
title: string;
|
|
262
|
+
message: string;
|
|
263
|
+
};
|
|
264
|
+
"CALCULATOR-SAP-ERROR-02": {
|
|
265
|
+
title: string;
|
|
266
|
+
message: string;
|
|
267
|
+
};
|
|
268
|
+
"CALCULATOR-SAP-ERROR-03": {
|
|
269
|
+
title: string;
|
|
270
|
+
message: string;
|
|
271
|
+
};
|
|
272
|
+
"CALCULATOR-SAP-ERROR-04": {
|
|
273
|
+
title: string;
|
|
274
|
+
message: string;
|
|
275
|
+
};
|
|
276
|
+
"CALCULATOR-GENERIC-001": {
|
|
277
|
+
title: string;
|
|
278
|
+
message: string;
|
|
279
|
+
};
|
|
280
|
+
"SAVING_NOT_FOUND-01": {
|
|
281
|
+
title: string;
|
|
282
|
+
message: string;
|
|
283
|
+
};
|
|
284
|
+
"SAVING-BAD-REQUEST-01": {
|
|
285
|
+
title: string;
|
|
286
|
+
message: string;
|
|
287
|
+
};
|
|
288
|
+
"SAVING-BAD-REQUEST-02": {
|
|
289
|
+
title: string;
|
|
290
|
+
message: string;
|
|
291
|
+
};
|
|
292
|
+
"SAVING-BAD-REQUEST-03": {
|
|
293
|
+
title: string;
|
|
294
|
+
message: string;
|
|
295
|
+
};
|
|
296
|
+
"SAVING-GENERIC-01": {
|
|
297
|
+
title: string;
|
|
298
|
+
message: string;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
default: {
|
|
302
|
+
title: string;
|
|
303
|
+
message: string;
|
|
304
|
+
};
|
|
305
|
+
"MP-001": {
|
|
306
|
+
title: string;
|
|
307
|
+
message: string;
|
|
308
|
+
};
|
|
309
|
+
"ERR-GENERAL-01": {
|
|
310
|
+
title: string;
|
|
311
|
+
message: string;
|
|
312
|
+
};
|
|
313
|
+
UnAuthorized: {
|
|
314
|
+
title: string;
|
|
315
|
+
message: string;
|
|
316
|
+
};
|
|
317
|
+
ErrorGeneral: {
|
|
318
|
+
title: string;
|
|
319
|
+
message: string;
|
|
320
|
+
};
|
|
321
|
+
internalError: {
|
|
322
|
+
title: string;
|
|
323
|
+
message: string;
|
|
324
|
+
};
|
|
325
|
+
UserConfigError: {
|
|
326
|
+
title: string;
|
|
327
|
+
message: string;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
export default translation;
|
|
332
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgKhB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lang/common/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lang/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lang/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lang/validator/en_EN/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;CAEhB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const translation: {
|
|
2
|
+
validationMessages: {
|
|
3
|
+
mixed: {
|
|
4
|
+
required: string;
|
|
5
|
+
default: string;
|
|
6
|
+
notType: string;
|
|
7
|
+
min: string;
|
|
8
|
+
max: string;
|
|
9
|
+
matches: string;
|
|
10
|
+
};
|
|
11
|
+
number: {
|
|
12
|
+
min: string;
|
|
13
|
+
max: string;
|
|
14
|
+
lessThan: string;
|
|
15
|
+
moreThan: string;
|
|
16
|
+
positive: string;
|
|
17
|
+
negative: string;
|
|
18
|
+
integer: string;
|
|
19
|
+
};
|
|
20
|
+
string: {
|
|
21
|
+
length: string;
|
|
22
|
+
min: string;
|
|
23
|
+
max: string;
|
|
24
|
+
email: string;
|
|
25
|
+
url: string;
|
|
26
|
+
trim: string;
|
|
27
|
+
matches: string;
|
|
28
|
+
};
|
|
29
|
+
date: {
|
|
30
|
+
min: string;
|
|
31
|
+
max: string;
|
|
32
|
+
};
|
|
33
|
+
array: {
|
|
34
|
+
min: string;
|
|
35
|
+
max: string;
|
|
36
|
+
length: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export default translation;
|
|
41
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lang/validator/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsChB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lang/validator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,SAAS,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { C as Z } from "./custom-redis-bee66564.js";
|
|
2
|
+
import { u as $ } from "./stringify-788d71a0.js";
|
|
3
|
+
import "ioredis";
|
|
4
|
+
let x;
|
|
5
|
+
const v = new Uint8Array(16);
|
|
6
|
+
function C() {
|
|
7
|
+
if (!x && (x = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !x))
|
|
8
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
9
|
+
return x(v);
|
|
10
|
+
}
|
|
11
|
+
const G = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), A = {
|
|
12
|
+
randomUUID: G
|
|
13
|
+
};
|
|
14
|
+
function H(c, s, r) {
|
|
15
|
+
if (A.randomUUID && !s && !c)
|
|
16
|
+
return A.randomUUID();
|
|
17
|
+
c = c || {};
|
|
18
|
+
const i = c.random || (c.rng || C)();
|
|
19
|
+
if (i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, s) {
|
|
20
|
+
r = r || 0;
|
|
21
|
+
for (let u = 0; u < 16; ++u)
|
|
22
|
+
s[r + u] = i[u];
|
|
23
|
+
return s;
|
|
24
|
+
}
|
|
25
|
+
return $(i);
|
|
26
|
+
}
|
|
27
|
+
const L = process.env.PREFIX_LOGIN, B = process.env.TIMEOUT_SESSION_MINUTES, q = {
|
|
28
|
+
baseKeyPrefix: `${L}:`,
|
|
29
|
+
userKeyPrefix: "user:",
|
|
30
|
+
accountKeyPrefix: "account:",
|
|
31
|
+
accountByUserIdPrefix: "account:user:",
|
|
32
|
+
sessionKeyPrefix: "session:",
|
|
33
|
+
sessionByUserIdPrefix: "session:user:",
|
|
34
|
+
userByEmailKeyPrefix: "user:email:",
|
|
35
|
+
verificationKeyPrefix: "verification:",
|
|
36
|
+
expire: B * 60
|
|
37
|
+
}, z = (c) => {
|
|
38
|
+
for (const s in c)
|
|
39
|
+
return !1;
|
|
40
|
+
return !0;
|
|
41
|
+
}, J = /(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/, Q = (c) => c && J.test(c) && !Number.isNaN(Date.parse(c));
|
|
42
|
+
function te(c = { expire: B * 60 }) {
|
|
43
|
+
const s = Z, r = {
|
|
44
|
+
...q,
|
|
45
|
+
...c
|
|
46
|
+
}, i = r.baseKeyPrefix || "", u = i + r.userKeyPrefix, b = i + r.userByEmailKeyPrefix, k = i + r.accountKeyPrefix, T = i + r.accountByUserIdPrefix, D = i + r.sessionKeyPrefix, V = i + r.sessionByUserIdPrefix, j = i + r.verificationKeyPrefix, U = (e) => b + e, p = (e) => u + e, K = (e) => k + e, f = (e) => T + e, m = (e, t) => `${t}:${e}`, I = (e) => D + e, l = (e) => V + e, g = (e) => j + e, w = async (e, t) => {
|
|
47
|
+
const n = Object.entries(t).reduce((o, [S, a]) => (o[S] = a instanceof Date ? a.toISOString() : a, o), {});
|
|
48
|
+
await s.hset(e, n), await s.expire(e, r.expire);
|
|
49
|
+
}, y = async (e) => {
|
|
50
|
+
const t = await s.hgetall(e);
|
|
51
|
+
return !t || z(t) ? null : Object.entries(t).reduce((o, [S, a]) => (o[S] = Q(a) ? new Date(a) : a, o), {});
|
|
52
|
+
}, E = async (e, t) => (await w(p(e), t), t.email && await s.set(
|
|
53
|
+
U(t.email),
|
|
54
|
+
e,
|
|
55
|
+
"EX",
|
|
56
|
+
r.expire
|
|
57
|
+
), t), d = async (e) => {
|
|
58
|
+
const t = await y(p(e));
|
|
59
|
+
return t ? { ...t } : null;
|
|
60
|
+
}, N = async (e, t) => {
|
|
61
|
+
const n = K(e);
|
|
62
|
+
await w(n, t), await s.set(
|
|
63
|
+
f(t.userId),
|
|
64
|
+
n,
|
|
65
|
+
"EX",
|
|
66
|
+
r.expire
|
|
67
|
+
);
|
|
68
|
+
}, R = async (e) => {
|
|
69
|
+
const t = await y(K(e));
|
|
70
|
+
return t ? { ...t } : null;
|
|
71
|
+
}, h = async (e) => {
|
|
72
|
+
const t = K(e), n = await y(t);
|
|
73
|
+
if (!n)
|
|
74
|
+
return null;
|
|
75
|
+
await s.hdel(t), await s.del(f(n.userId));
|
|
76
|
+
}, O = async (e, t) => {
|
|
77
|
+
const n = I(e);
|
|
78
|
+
return await w(n, t), await s.set(
|
|
79
|
+
l(t.userId),
|
|
80
|
+
n,
|
|
81
|
+
"EX",
|
|
82
|
+
r.expire
|
|
83
|
+
), t;
|
|
84
|
+
}, P = async (e) => {
|
|
85
|
+
const t = await y(I(e));
|
|
86
|
+
return t ? {
|
|
87
|
+
id: t.id,
|
|
88
|
+
...t
|
|
89
|
+
} : null;
|
|
90
|
+
}, _ = async (e) => {
|
|
91
|
+
const t = await P(e);
|
|
92
|
+
if (!t)
|
|
93
|
+
return null;
|
|
94
|
+
const n = I(e);
|
|
95
|
+
await s.del(n), await s.del(l(t.userId));
|
|
96
|
+
}, X = async (e, t) => {
|
|
97
|
+
const n = g(e);
|
|
98
|
+
return await w(n, t), t;
|
|
99
|
+
}, M = async (e) => {
|
|
100
|
+
const t = g(e), n = await y(t);
|
|
101
|
+
return n ? { identifier: n.identifier, ...n } : null;
|
|
102
|
+
}, F = async (e) => {
|
|
103
|
+
const t = g(e);
|
|
104
|
+
await s.del(t);
|
|
105
|
+
};
|
|
106
|
+
return {
|
|
107
|
+
async createUser(e) {
|
|
108
|
+
const t = H();
|
|
109
|
+
return await E(t, { ...e, id: t });
|
|
110
|
+
},
|
|
111
|
+
getUser: d,
|
|
112
|
+
async getUserByEmail(e) {
|
|
113
|
+
const t = await s.get(U(e));
|
|
114
|
+
return t ? await d(t) : null;
|
|
115
|
+
},
|
|
116
|
+
async getUserByAccount({ providerAccountId: e, provider: t }) {
|
|
117
|
+
const n = await R(
|
|
118
|
+
m(e, t)
|
|
119
|
+
);
|
|
120
|
+
return n ? await d(n.userId) : null;
|
|
121
|
+
},
|
|
122
|
+
async updateUser(e) {
|
|
123
|
+
const t = e.id, n = await d(t);
|
|
124
|
+
return await E(t, { ...n, ...e });
|
|
125
|
+
},
|
|
126
|
+
async deleteUser(e) {
|
|
127
|
+
const t = await d(e);
|
|
128
|
+
if (!t)
|
|
129
|
+
return null;
|
|
130
|
+
const n = await s.get(f(e)), o = await s.get(l(e));
|
|
131
|
+
await s.del(
|
|
132
|
+
U(t.email),
|
|
133
|
+
f(e),
|
|
134
|
+
l(e)
|
|
135
|
+
), o && await s.del(o), n && await s.del(n), await s.del(p(e));
|
|
136
|
+
},
|
|
137
|
+
async linkAccount(e) {
|
|
138
|
+
const t = m(e.providerAccountId, e.provider);
|
|
139
|
+
return await N(t, { ...e, id: t });
|
|
140
|
+
},
|
|
141
|
+
async unlinkAccount({ providerAccountId: e, provider: t }) {
|
|
142
|
+
const n = m(e, t);
|
|
143
|
+
await h(n);
|
|
144
|
+
},
|
|
145
|
+
async createSession(e) {
|
|
146
|
+
const t = e.sessionToken;
|
|
147
|
+
return await O(t, { ...e, id: t });
|
|
148
|
+
},
|
|
149
|
+
async getSessionAndUser(e) {
|
|
150
|
+
const n = await P(e);
|
|
151
|
+
if (!n)
|
|
152
|
+
return null;
|
|
153
|
+
const o = await d(n.userId);
|
|
154
|
+
return o ? { session: n, user: o } : null;
|
|
155
|
+
},
|
|
156
|
+
async updateSession(e) {
|
|
157
|
+
const t = e.sessionToken, n = await P(t);
|
|
158
|
+
return n ? await O(t, { ...n, ...e }) : null;
|
|
159
|
+
},
|
|
160
|
+
deleteSession: _,
|
|
161
|
+
async createVerificationToken(e) {
|
|
162
|
+
const t = e.identifier;
|
|
163
|
+
return await X(t, e), e;
|
|
164
|
+
},
|
|
165
|
+
async useVerificationToken(e) {
|
|
166
|
+
const t = e.identifier, n = await M(t);
|
|
167
|
+
return !n || e.token !== n.token ? null : (await F(t), n);
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
export {
|
|
172
|
+
te as IORedisAdapter,
|
|
173
|
+
q as defaultOptions
|
|
174
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ApiMiddleware as n, ErrorCatalog as x, FetchServiceBE as E, FetchServiceFE as F } from "./mp-front-cli-core.es.js";
|
|
2
|
+
import { LoadingHandler as S, MessageHandler as f, RxSubjectManager as h } from "./mp-front-cli-utils-rxjs.es.js";
|
|
3
|
+
import "i18next";
|
|
4
|
+
import "./index-f596eb97.js";
|
|
5
|
+
import "./mp-front-cli-logger.es.js";
|
|
6
|
+
import "rxjs";
|
|
7
|
+
import "./mp-front-cli-encrypter.es.js";
|
|
8
|
+
import "node-jose";
|
|
9
|
+
import "crypto";
|
|
10
|
+
import "./mp-front-cli-encoder.es.js";
|
|
11
|
+
import "./mp-front-cli-header.es.js";
|
|
12
|
+
import "./stringify-788d71a0.js";
|
|
13
|
+
export {
|
|
14
|
+
n as ApiMiddleware,
|
|
15
|
+
x as ErrorCatalog,
|
|
16
|
+
E as FetchServiceBE,
|
|
17
|
+
F as FetchServiceFE,
|
|
18
|
+
S as LoadingHandler,
|
|
19
|
+
f as MessageHandler,
|
|
20
|
+
h as RxSubjectManager
|
|
21
|
+
};
|