@nocios/crudify-components 2.0.32 → 2.0.38
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/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/components/CrudiaAutoGenerate.tsx.html +583 -0
- package/coverage/components/CrudiaFileField/CrudiaFileField.tsx.html +1276 -0
- package/coverage/components/CrudiaFileField/components/DeleteConfirmationDialog.tsx.html +355 -0
- package/coverage/components/CrudiaFileField/components/DropZone.tsx.html +433 -0
- package/coverage/components/CrudiaFileField/components/FileItemRow.tsx.html +751 -0
- package/coverage/components/CrudiaFileField/components/FileThumbnail.tsx.html +1195 -0
- package/coverage/components/CrudiaFileField/components/index.html +176 -0
- package/coverage/components/CrudiaFileField/components/index.ts.html +115 -0
- package/coverage/components/CrudiaFileField/hooks/index.html +146 -0
- package/coverage/components/CrudiaFileField/hooks/index.ts.html +112 -0
- package/coverage/components/CrudiaFileField/hooks/useDeleteConfirmation.ts.html +421 -0
- package/coverage/components/CrudiaFileField/hooks/useDragDrop.ts.html +403 -0
- package/coverage/components/CrudiaFileField/index.html +131 -0
- package/coverage/components/CrudiaFileField/index.ts.html +112 -0
- package/coverage/components/CrudiaFileField/utils/formatters.ts.html +163 -0
- package/coverage/components/CrudiaFileField/utils/icons.tsx.html +253 -0
- package/coverage/components/CrudiaFileField/utils/index.html +131 -0
- package/coverage/components/CrudiaMarkdownField.tsx.html +619 -0
- package/coverage/components/CrudifyLogin/Forms/CheckCodeForm.tsx.html +586 -0
- package/coverage/components/CrudifyLogin/Forms/ForgotPasswordForm.tsx.html +694 -0
- package/coverage/components/CrudifyLogin/Forms/LoginForm.tsx.html +835 -0
- package/coverage/components/CrudifyLogin/Forms/ResetPasswordForm.tsx.html +1180 -0
- package/coverage/components/CrudifyLogin/Forms/components/CodeInput.tsx.html +283 -0
- package/coverage/components/CrudifyLogin/Forms/components/FormAlert.tsx.html +202 -0
- package/coverage/components/CrudifyLogin/Forms/components/PasswordInput.tsx.html +340 -0
- package/coverage/components/CrudifyLogin/Forms/components/index.html +161 -0
- package/coverage/components/CrudifyLogin/Forms/components/index.ts.html +106 -0
- package/coverage/components/CrudifyLogin/Forms/index.html +161 -0
- package/coverage/components/CrudifyLogin/Forms/utils/errorTranslation.ts.html +268 -0
- package/coverage/components/CrudifyLogin/Forms/utils/index.html +161 -0
- package/coverage/components/CrudifyLogin/Forms/utils/index.ts.html +106 -0
- package/coverage/components/CrudifyLogin/Forms/utils/paramUtils.ts.html +478 -0
- package/coverage/components/CrudifyLogin/Forms/utils/validation.ts.html +289 -0
- package/coverage/components/CrudifyLogin/components/CrudifyInitializer.tsx.html +262 -0
- package/coverage/components/CrudifyLogin/components/index.html +116 -0
- package/coverage/components/CrudifyLogin/context/CrudifyProvider.tsx.html +382 -0
- package/coverage/components/CrudifyLogin/context/I18nProvider.tsx.html +397 -0
- package/coverage/components/CrudifyLogin/context/LoginStateProvider.tsx.html +1249 -0
- package/coverage/components/CrudifyLogin/context/index.html +146 -0
- package/coverage/components/CrudifyLogin/hooks/index.html +116 -0
- package/coverage/components/CrudifyLogin/hooks/useTranslationsFromUrl.ts.html +292 -0
- package/coverage/components/CrudifyLogin/index.html +116 -0
- package/coverage/components/CrudifyLogin/index.tsx.html +475 -0
- package/coverage/components/GlobalNotificationProvider.tsx.html +781 -0
- package/coverage/components/LoginComponent.tsx.html +727 -0
- package/coverage/components/PasswordRequirements/index.html +116 -0
- package/coverage/components/PasswordRequirements/index.tsx.html +226 -0
- package/coverage/components/PublicPolicies/FieldSelector/FieldSelector.tsx.html +982 -0
- package/coverage/components/PublicPolicies/FieldSelector/index.html +131 -0
- package/coverage/components/PublicPolicies/FieldSelector/index.ts.html +85 -0
- package/coverage/components/PublicPolicies/Policies.tsx.html +610 -0
- package/coverage/components/PublicPolicies/PolicyItem/PolicyItem.tsx.html +856 -0
- package/coverage/components/PublicPolicies/PolicyItem/index.html +131 -0
- package/coverage/components/PublicPolicies/PolicyItem/index.ts.html +85 -0
- package/coverage/components/PublicPolicies/constants.ts.html +127 -0
- package/coverage/components/PublicPolicies/index.html +131 -0
- package/coverage/components/SessionTimeIndicator/index.html +116 -0
- package/coverage/components/SessionTimeIndicator/index.tsx.html +505 -0
- package/coverage/components/UserProfile/UserProfileDisplay.tsx.html +826 -0
- package/coverage/components/UserProfile/index.html +131 -0
- package/coverage/components/UserProfile/index.ts.html +85 -0
- package/coverage/components/index.html +176 -0
- package/coverage/components/index.ts.html +160 -0
- package/coverage/core/CrossTabSyncManager.ts.html +814 -0
- package/coverage/core/CrudifyInitializationManager.ts.html +1132 -0
- package/coverage/core/SessionManager.ts.html +2764 -0
- package/coverage/core/index.html +146 -0
- package/coverage/coverage-final.json +87 -0
- package/coverage/favicon.png +0 -0
- package/coverage/hooks/index.html +131 -0
- package/coverage/hooks/useAutoGenerate.ts.html +562 -0
- package/coverage/hooks/useFileUpload/index.html +131 -0
- package/coverage/hooks/useFileUpload/index.ts.html +112 -0
- package/coverage/hooks/useFileUpload/services/index.html +116 -0
- package/coverage/hooks/useFileUpload/services/uploadService.ts.html +610 -0
- package/coverage/hooks/useFileUpload/useFileUpload.ts.html +1870 -0
- package/coverage/hooks/useFileUpload/utils/fileUtils.ts.html +271 -0
- package/coverage/hooks/useFileUpload/utils/index.html +146 -0
- package/coverage/hooks/useFileUpload/utils/mimeTypes.ts.html +235 -0
- package/coverage/hooks/useFileUpload/utils/validation.ts.html +379 -0
- package/coverage/hooks/useSession/constants.ts.html +217 -0
- package/coverage/hooks/useSession/hooks/index.html +176 -0
- package/coverage/hooks/useSession/hooks/useAuthEventSubscriber.ts.html +331 -0
- package/coverage/hooks/useSession/hooks/useCrossTabSync.ts.html +433 -0
- package/coverage/hooks/useSession/hooks/useSessionActions.ts.html +664 -0
- package/coverage/hooks/useSession/hooks/useSessionState.ts.html +295 -0
- package/coverage/hooks/useSession/hooks/useTokenRefreshScheduler.ts.html +490 -0
- package/coverage/hooks/useSession/index.html +161 -0
- package/coverage/hooks/useSession/index.ts.html +127 -0
- package/coverage/hooks/useSession/types.ts.html +427 -0
- package/coverage/hooks/useSession/useSession.ts.html +526 -0
- package/coverage/hooks/useSession/utils/index.html +131 -0
- package/coverage/hooks/useSession/utils/initializeSession.ts.html +424 -0
- package/coverage/hooks/useSession/utils/tokenUtils.ts.html +280 -0
- package/coverage/hooks/useUserProfile.ts.html +658 -0
- package/coverage/index.html +566 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/providers/SessionProvider.tsx.html +1150 -0
- package/coverage/providers/TranslationsProvider.tsx.html +1450 -0
- package/coverage/providers/index.html +131 -0
- package/coverage/services/credentialsEventBus.ts.html +310 -0
- package/coverage/services/index.html +131 -0
- package/coverage/services/translationService.ts.html +1318 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +210 -0
- package/coverage/translations/critical.ts.html +1195 -0
- package/coverage/translations/index.html +116 -0
- package/coverage/types/index.html +116 -0
- package/coverage/types/password.ts.html +178 -0
- package/coverage/utils/authEventBus.ts.html +454 -0
- package/coverage/utils/configResolver.ts.html +460 -0
- package/coverage/utils/cookieSync.ts.html +580 -0
- package/coverage/utils/errorHandler.ts.html +1264 -0
- package/coverage/utils/errorTranslation.ts.html +862 -0
- package/coverage/utils/index.html +296 -0
- package/coverage/utils/jwtUtils.ts.html +301 -0
- package/coverage/utils/logger.ts.html +901 -0
- package/coverage/utils/navigationTracker.ts.html +565 -0
- package/coverage/utils/passwordValidation.ts.html +259 -0
- package/coverage/utils/redirectSecurity.ts.html +715 -0
- package/coverage/utils/tenantConfig.ts.html +700 -0
- package/coverage/utils/tokenStorage.ts.html +1768 -0
- package/coverage/utils/webCrypto.ts.html +472 -0
- package/dist/{CrudiaMarkdownField-C54-A_J3.d.mts → CrudiaMarkdownField-BvJn2GL8.d.mts} +17 -7
- package/dist/{CrudiaMarkdownField-C8HQh7s5.d.ts → CrudiaMarkdownField-CggOpcBM.d.ts} +17 -7
- package/dist/chunk-44VU4TSP.mjs +1 -0
- package/dist/chunk-4LMFQECS.js +1 -0
- package/dist/chunk-77UKXG5L.mjs +1 -0
- package/dist/{chunk-4VN5YRYZ.js → chunk-BXFEQ6KP.js} +1 -1
- package/dist/{chunk-6ONAT4QU.js → chunk-H6XXWDUT.js} +1 -1
- package/dist/chunk-NIRLP2TC.js +1 -0
- package/dist/chunk-O4FUHIQG.mjs +1 -0
- package/dist/chunk-SYHNHKFA.mjs +1 -0
- package/dist/chunk-W4ZYKPOK.js +1 -0
- package/dist/{chunk-RJBX4MWF.mjs → chunk-WMLIOPUC.mjs} +1 -1
- package/dist/components.d.mts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/components.js +1 -1
- package/dist/components.mjs +1 -1
- package/dist/errorTranslation-D-Y7uNN_.d.mts +141 -0
- package/dist/errorTranslation-DDlAXpMl.d.ts +141 -0
- package/dist/hooks.d.mts +2 -2
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.js +1 -1
- package/dist/hooks.mjs +1 -1
- package/dist/{index-DY90WVQQ.d.mts → index-U--xRr8A.d.mts} +225 -191
- package/dist/{index-d1vE803G.d.ts → index-dXVRVcEB.d.ts} +225 -191
- package/dist/index.d.mts +179 -6
- package/dist/index.d.ts +179 -6
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{errorTranslation-By5Av0tL.d.ts → tenantConfig-DqJqQkoR.d.mts} +116 -139
- package/dist/{errorTranslation-DeeDj7Vt.d.mts → tenantConfig-DqJqQkoR.d.ts} +116 -139
- package/dist/utils.d.mts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +1 -1
- package/package.json +1 -1
- package/coverage/.tmp/coverage-102.json +0 -1
- package/coverage/.tmp/coverage-103.json +0 -1
- package/coverage/.tmp/coverage-104.json +0 -1
- package/coverage/.tmp/coverage-105.json +0 -1
- package/coverage/.tmp/coverage-106.json +0 -1
- package/coverage/.tmp/coverage-107.json +0 -1
- package/dist/api-B4uXiHF0.d.mts +0 -118
- package/dist/api-B4uXiHF0.d.ts +0 -118
- package/dist/chunk-4ILUXVPW.mjs +0 -1
- package/dist/chunk-5XBTRBE5.js +0 -1
- package/dist/chunk-CR5KJUST.js +0 -1
- package/dist/chunk-H5M2Q6PB.mjs +0 -1
- package/dist/chunk-JAPL7EZJ.mjs +0 -1
- package/dist/chunk-L7GKP6XY.mjs +0 -1
- package/dist/chunk-NSV6ECYO.js +0 -1
- package/dist/chunk-PTUSZGL4.mjs +0 -1
- package/dist/chunk-T6R65ROU.js +0 -1
|
@@ -1,11 +1,119 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
interface CrudifyApiResponse<T = unknown> {
|
|
2
|
+
success: boolean;
|
|
3
|
+
data?: T;
|
|
4
|
+
errors?: string | Record<string, string[]> | string[];
|
|
5
|
+
errorCode?: string;
|
|
6
|
+
fieldsWarning?: Record<string, string[]> | null;
|
|
7
|
+
}
|
|
8
|
+
interface CrudifyTransactionResponse {
|
|
9
|
+
success: boolean;
|
|
10
|
+
data?: TransactionResponseData[];
|
|
11
|
+
errors?: string | Record<string, string[]>;
|
|
12
|
+
errorCode?: string;
|
|
13
|
+
}
|
|
14
|
+
interface TransactionResponseData {
|
|
15
|
+
response?: {
|
|
16
|
+
status: string;
|
|
17
|
+
data?: unknown;
|
|
18
|
+
message?: string;
|
|
19
|
+
};
|
|
20
|
+
errors?: string | Record<string, string[]>;
|
|
21
|
+
}
|
|
22
|
+
interface UserProfile {
|
|
23
|
+
id: string | number;
|
|
24
|
+
email: string;
|
|
25
|
+
username?: string;
|
|
26
|
+
firstName?: string;
|
|
27
|
+
lastName?: string;
|
|
28
|
+
fullName?: string;
|
|
29
|
+
avatar?: string;
|
|
30
|
+
role?: string;
|
|
31
|
+
permissions?: string[];
|
|
32
|
+
lastLogin?: string;
|
|
33
|
+
isActive?: boolean;
|
|
34
|
+
createdAt?: string;
|
|
35
|
+
updatedAt?: string;
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
}
|
|
38
|
+
interface LoginResponse {
|
|
39
|
+
token: string;
|
|
40
|
+
user?: UserProfile;
|
|
41
|
+
expiresIn?: number;
|
|
42
|
+
refreshToken?: string;
|
|
43
|
+
}
|
|
44
|
+
interface LoginRequest {
|
|
45
|
+
identifier: string;
|
|
46
|
+
password: string;
|
|
47
|
+
}
|
|
48
|
+
interface ForgotPasswordRequest {
|
|
49
|
+
email: string;
|
|
5
50
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
51
|
+
interface ResetPasswordRequest {
|
|
52
|
+
email: string;
|
|
53
|
+
code: string;
|
|
54
|
+
newPassword: string;
|
|
55
|
+
}
|
|
56
|
+
interface ValidateCodeRequest {
|
|
57
|
+
email: string;
|
|
58
|
+
codePassword: string;
|
|
59
|
+
}
|
|
60
|
+
interface JwtPayload {
|
|
61
|
+
sub?: string;
|
|
62
|
+
email?: string;
|
|
63
|
+
username?: string;
|
|
64
|
+
iat?: number;
|
|
65
|
+
exp?: number;
|
|
66
|
+
iss?: string;
|
|
67
|
+
aud?: string;
|
|
68
|
+
[key: string]: unknown;
|
|
69
|
+
}
|
|
70
|
+
interface ApiError {
|
|
71
|
+
code: string;
|
|
72
|
+
message: string;
|
|
73
|
+
field?: string;
|
|
74
|
+
details?: Record<string, unknown>;
|
|
75
|
+
}
|
|
76
|
+
interface ValidationError {
|
|
77
|
+
field: string;
|
|
78
|
+
message: string;
|
|
79
|
+
code: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Options for Crudify CRUD operations
|
|
83
|
+
*/
|
|
84
|
+
interface CrudifyOperationOptions {
|
|
85
|
+
signal?: AbortSignal;
|
|
86
|
+
/** Action metadata for success notifications */
|
|
87
|
+
actionConfig?: {
|
|
88
|
+
key?: string;
|
|
89
|
+
moduleKey?: string;
|
|
90
|
+
[key: string]: unknown;
|
|
91
|
+
};
|
|
92
|
+
/** Skip showing notifications for this operation */
|
|
93
|
+
skipNotifications?: boolean;
|
|
94
|
+
/** Allow additional properties */
|
|
95
|
+
[key: string]: unknown;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Options for Crudify request operations
|
|
99
|
+
*/
|
|
100
|
+
interface CrudifyRequestOptions {
|
|
101
|
+
signal?: AbortSignal;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Represents a single operation within a transaction.
|
|
105
|
+
*/
|
|
106
|
+
interface TransactionOperation {
|
|
107
|
+
operation: "create" | "update" | "delete" | string;
|
|
108
|
+
moduleKey?: string;
|
|
109
|
+
data?: Record<string, unknown>;
|
|
110
|
+
_id?: string;
|
|
111
|
+
[key: string]: unknown;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Input for transaction operations. Can be a single operation or an array of operations.
|
|
115
|
+
*/
|
|
116
|
+
type TransactionInput = TransactionOperation | TransactionOperation[] | Record<string, unknown>;
|
|
9
117
|
|
|
10
118
|
/**
|
|
11
119
|
* Configuration resolver for crudify-components
|
|
@@ -201,135 +309,4 @@ declare function resolveTenantConfig(options?: TenantConfigOptions): ResolvedTen
|
|
|
201
309
|
*/
|
|
202
310
|
declare function useTenantConfig(options?: TenantConfigOptions): ResolvedTenantConfig;
|
|
203
311
|
|
|
204
|
-
|
|
205
|
-
private readonly storage;
|
|
206
|
-
private encryptionKey;
|
|
207
|
-
private salt;
|
|
208
|
-
private initPromise;
|
|
209
|
-
private initialized;
|
|
210
|
-
constructor(storageType?: "localStorage" | "sessionStorage");
|
|
211
|
-
/**
|
|
212
|
-
* Initialize encryption key asynchronously
|
|
213
|
-
* Must be called before using encryption methods
|
|
214
|
-
*/
|
|
215
|
-
private ensureInitialized;
|
|
216
|
-
private initialize;
|
|
217
|
-
private generateFingerprint;
|
|
218
|
-
private clearLegacyData;
|
|
219
|
-
setItem(key: string, value: string, expiryMinutes?: number): Promise<void>;
|
|
220
|
-
getItem(key: string): Promise<string | null>;
|
|
221
|
-
removeItem(key: string): void;
|
|
222
|
-
clear(): void;
|
|
223
|
-
setToken(token: string): Promise<void>;
|
|
224
|
-
getToken(): Promise<string | null>;
|
|
225
|
-
hasValidToken(): Promise<boolean>;
|
|
226
|
-
migrateFromLocalStorage(key: string): Promise<void>;
|
|
227
|
-
private uint8ArrayToBase64;
|
|
228
|
-
private base64ToUint8Array;
|
|
229
|
-
}
|
|
230
|
-
declare const secureSessionStorage: SecureStorage;
|
|
231
|
-
declare const secureLocalStorage: SecureStorage;
|
|
232
|
-
|
|
233
|
-
declare const ERROR_CODES: {
|
|
234
|
-
readonly INVALID_CREDENTIALS: "INVALID_CREDENTIALS";
|
|
235
|
-
readonly UNAUTHORIZED: "UNAUTHORIZED";
|
|
236
|
-
readonly INVALID_API_KEY: "INVALID_API_KEY";
|
|
237
|
-
readonly USER_NOT_FOUND: "USER_NOT_FOUND";
|
|
238
|
-
readonly USER_NOT_ACTIVE: "USER_NOT_ACTIVE";
|
|
239
|
-
readonly NO_PERMISSION: "NO_PERMISSION";
|
|
240
|
-
readonly ITEM_NOT_FOUND: "ITEM_NOT_FOUND";
|
|
241
|
-
readonly NOT_FOUND: "NOT_FOUND";
|
|
242
|
-
readonly IN_USE: "IN_USE";
|
|
243
|
-
readonly FIELD_ERROR: "FIELD_ERROR";
|
|
244
|
-
readonly BAD_REQUEST: "BAD_REQUEST";
|
|
245
|
-
readonly INVALID_EMAIL: "INVALID_EMAIL";
|
|
246
|
-
readonly INVALID_CODE: "INVALID_CODE";
|
|
247
|
-
readonly INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR";
|
|
248
|
-
readonly DATABASE_CONNECTION_ERROR: "DATABASE_CONNECTION_ERROR";
|
|
249
|
-
readonly INVALID_CONFIGURATION: "INVALID_CONFIGURATION";
|
|
250
|
-
readonly UNKNOWN_OPERATION: "UNKNOWN_OPERATION";
|
|
251
|
-
readonly TOO_MANY_REQUESTS: "TOO_MANY_REQUESTS";
|
|
252
|
-
readonly NETWORK_ERROR: "NETWORK_ERROR";
|
|
253
|
-
readonly TIMEOUT_ERROR: "TIMEOUT_ERROR";
|
|
254
|
-
};
|
|
255
|
-
type ErrorCode = (typeof ERROR_CODES)[keyof typeof ERROR_CODES];
|
|
256
|
-
type ErrorSeverity = "info" | "warning" | "error" | "critical";
|
|
257
|
-
declare const ERROR_SEVERITY_MAP: Record<ErrorCode, ErrorSeverity>;
|
|
258
|
-
interface ParsedError {
|
|
259
|
-
code: ErrorCode;
|
|
260
|
-
message: string;
|
|
261
|
-
severity: ErrorSeverity;
|
|
262
|
-
field?: string;
|
|
263
|
-
details?: Record<string, unknown>;
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Parse a Crudify API response and extract standardized error information
|
|
267
|
-
*/
|
|
268
|
-
declare function parseApiError(response: unknown): ParsedError[];
|
|
269
|
-
/**
|
|
270
|
-
* Parse transaction response errors
|
|
271
|
-
*/
|
|
272
|
-
declare function parseTransactionError(response: unknown): ParsedError[];
|
|
273
|
-
/**
|
|
274
|
-
* Get a human-readable error message for an error code
|
|
275
|
-
*/
|
|
276
|
-
declare function getErrorMessage(code: ErrorCode): string;
|
|
277
|
-
/**
|
|
278
|
-
* Handle JavaScript/Network errors and convert to ParsedError
|
|
279
|
-
*/
|
|
280
|
-
declare function parseJavaScriptError(error: unknown): ParsedError;
|
|
281
|
-
/**
|
|
282
|
-
* Universal error handler that can process any type of error from Crudify APIs
|
|
283
|
-
*/
|
|
284
|
-
declare function handleCrudifyError(error: unknown): ParsedError[];
|
|
285
|
-
|
|
286
|
-
interface ErrorTranslationConfig {
|
|
287
|
-
/** Función de traducción de i18next */
|
|
288
|
-
translateFn: (key: string) => string;
|
|
289
|
-
/** Idioma actual (opcional, para logging) */
|
|
290
|
-
currentLanguage?: string;
|
|
291
|
-
/** Habilitar logs de debug */
|
|
292
|
-
enableDebug?: boolean;
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* Traduce un código de error usando jerarquía de fallbacks
|
|
296
|
-
*/
|
|
297
|
-
declare function translateErrorCode(errorCode: string, config: ErrorTranslationConfig): string;
|
|
298
|
-
/**
|
|
299
|
-
* Traduce múltiples códigos de error
|
|
300
|
-
*/
|
|
301
|
-
declare function translateErrorCodes(errorCodes: string[], config: ErrorTranslationConfig): string[];
|
|
302
|
-
/**
|
|
303
|
-
* Traduce un error completo (código + mensaje personalizado)
|
|
304
|
-
*/
|
|
305
|
-
declare function translateError(error: {
|
|
306
|
-
code: string;
|
|
307
|
-
message?: string;
|
|
308
|
-
field?: string;
|
|
309
|
-
}, config: ErrorTranslationConfig): string;
|
|
310
|
-
/**
|
|
311
|
-
* Hook para usar en componentes React con i18next
|
|
312
|
-
*/
|
|
313
|
-
declare function createErrorTranslator(translateFn: (key: string) => string, options?: {
|
|
314
|
-
currentLanguage?: string;
|
|
315
|
-
enableDebug?: boolean;
|
|
316
|
-
}): {
|
|
317
|
-
translateErrorCode: (code: string) => string;
|
|
318
|
-
translateErrorCodes: (codes: string[]) => string[];
|
|
319
|
-
translateError: (error: {
|
|
320
|
-
code: string;
|
|
321
|
-
message?: string;
|
|
322
|
-
field?: string;
|
|
323
|
-
}) => string;
|
|
324
|
-
translateApiError: (apiResponse: {
|
|
325
|
-
data?: {
|
|
326
|
-
response?: {
|
|
327
|
-
status?: string;
|
|
328
|
-
};
|
|
329
|
-
};
|
|
330
|
-
status?: string;
|
|
331
|
-
code?: string;
|
|
332
|
-
} | null | undefined) => string;
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
export { type ConfigResolverOptions as C, ERROR_CODES as E, type ParsedError as P, type ResolvedTenantConfig as R, type TenantConfig as T, secureLocalStorage as a, type TenantConfigOptions as b, resolveConfig as c, decodeJwtSafely as d, useResolvedConfig as e, type ResolvedConfig as f, getCurrentUserEmail as g, type CrudifyEnvironment as h, isTokenExpired as i, handleCrudifyError as j, parseTransactionError as k, parseJavaScriptError as l, getErrorMessage as m, ERROR_SEVERITY_MAP as n, translateErrorCodes as o, parseApiError as p, translateError as q, resolveTenantConfig as r, secureSessionStorage as s, translateErrorCode as t, useTenantConfig as u, createErrorTranslator as v, type ErrorCode as w, type ErrorSeverity as x, type ErrorTranslationConfig as y };
|
|
312
|
+
export { type ApiError as A, type ConfigResolverOptions as C, type ForgotPasswordRequest as F, type JwtPayload as J, type LoginResponse as L, type ResolvedTenantConfig as R, type TenantConfig as T, type UserProfile as U, type ValidateCodeRequest as V, type TenantConfigOptions as a, resolveConfig as b, useResolvedConfig as c, type ResolvedConfig as d, type CrudifyEnvironment as e, type CrudifyApiResponse as f, type CrudifyTransactionResponse as g, type TransactionResponseData as h, type LoginRequest as i, type ResetPasswordRequest as j, type ValidationError as k, type CrudifyOperationOptions as l, type CrudifyRequestOptions as m, type TransactionOperation as n, type TransactionInput as o, resolveTenantConfig as r, useTenantConfig as u };
|
|
@@ -1,11 +1,119 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
interface CrudifyApiResponse<T = unknown> {
|
|
2
|
+
success: boolean;
|
|
3
|
+
data?: T;
|
|
4
|
+
errors?: string | Record<string, string[]> | string[];
|
|
5
|
+
errorCode?: string;
|
|
6
|
+
fieldsWarning?: Record<string, string[]> | null;
|
|
7
|
+
}
|
|
8
|
+
interface CrudifyTransactionResponse {
|
|
9
|
+
success: boolean;
|
|
10
|
+
data?: TransactionResponseData[];
|
|
11
|
+
errors?: string | Record<string, string[]>;
|
|
12
|
+
errorCode?: string;
|
|
13
|
+
}
|
|
14
|
+
interface TransactionResponseData {
|
|
15
|
+
response?: {
|
|
16
|
+
status: string;
|
|
17
|
+
data?: unknown;
|
|
18
|
+
message?: string;
|
|
19
|
+
};
|
|
20
|
+
errors?: string | Record<string, string[]>;
|
|
21
|
+
}
|
|
22
|
+
interface UserProfile {
|
|
23
|
+
id: string | number;
|
|
24
|
+
email: string;
|
|
25
|
+
username?: string;
|
|
26
|
+
firstName?: string;
|
|
27
|
+
lastName?: string;
|
|
28
|
+
fullName?: string;
|
|
29
|
+
avatar?: string;
|
|
30
|
+
role?: string;
|
|
31
|
+
permissions?: string[];
|
|
32
|
+
lastLogin?: string;
|
|
33
|
+
isActive?: boolean;
|
|
34
|
+
createdAt?: string;
|
|
35
|
+
updatedAt?: string;
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
}
|
|
38
|
+
interface LoginResponse {
|
|
39
|
+
token: string;
|
|
40
|
+
user?: UserProfile;
|
|
41
|
+
expiresIn?: number;
|
|
42
|
+
refreshToken?: string;
|
|
43
|
+
}
|
|
44
|
+
interface LoginRequest {
|
|
45
|
+
identifier: string;
|
|
46
|
+
password: string;
|
|
47
|
+
}
|
|
48
|
+
interface ForgotPasswordRequest {
|
|
49
|
+
email: string;
|
|
5
50
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
51
|
+
interface ResetPasswordRequest {
|
|
52
|
+
email: string;
|
|
53
|
+
code: string;
|
|
54
|
+
newPassword: string;
|
|
55
|
+
}
|
|
56
|
+
interface ValidateCodeRequest {
|
|
57
|
+
email: string;
|
|
58
|
+
codePassword: string;
|
|
59
|
+
}
|
|
60
|
+
interface JwtPayload {
|
|
61
|
+
sub?: string;
|
|
62
|
+
email?: string;
|
|
63
|
+
username?: string;
|
|
64
|
+
iat?: number;
|
|
65
|
+
exp?: number;
|
|
66
|
+
iss?: string;
|
|
67
|
+
aud?: string;
|
|
68
|
+
[key: string]: unknown;
|
|
69
|
+
}
|
|
70
|
+
interface ApiError {
|
|
71
|
+
code: string;
|
|
72
|
+
message: string;
|
|
73
|
+
field?: string;
|
|
74
|
+
details?: Record<string, unknown>;
|
|
75
|
+
}
|
|
76
|
+
interface ValidationError {
|
|
77
|
+
field: string;
|
|
78
|
+
message: string;
|
|
79
|
+
code: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Options for Crudify CRUD operations
|
|
83
|
+
*/
|
|
84
|
+
interface CrudifyOperationOptions {
|
|
85
|
+
signal?: AbortSignal;
|
|
86
|
+
/** Action metadata for success notifications */
|
|
87
|
+
actionConfig?: {
|
|
88
|
+
key?: string;
|
|
89
|
+
moduleKey?: string;
|
|
90
|
+
[key: string]: unknown;
|
|
91
|
+
};
|
|
92
|
+
/** Skip showing notifications for this operation */
|
|
93
|
+
skipNotifications?: boolean;
|
|
94
|
+
/** Allow additional properties */
|
|
95
|
+
[key: string]: unknown;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Options for Crudify request operations
|
|
99
|
+
*/
|
|
100
|
+
interface CrudifyRequestOptions {
|
|
101
|
+
signal?: AbortSignal;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Represents a single operation within a transaction.
|
|
105
|
+
*/
|
|
106
|
+
interface TransactionOperation {
|
|
107
|
+
operation: "create" | "update" | "delete" | string;
|
|
108
|
+
moduleKey?: string;
|
|
109
|
+
data?: Record<string, unknown>;
|
|
110
|
+
_id?: string;
|
|
111
|
+
[key: string]: unknown;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Input for transaction operations. Can be a single operation or an array of operations.
|
|
115
|
+
*/
|
|
116
|
+
type TransactionInput = TransactionOperation | TransactionOperation[] | Record<string, unknown>;
|
|
9
117
|
|
|
10
118
|
/**
|
|
11
119
|
* Configuration resolver for crudify-components
|
|
@@ -201,135 +309,4 @@ declare function resolveTenantConfig(options?: TenantConfigOptions): ResolvedTen
|
|
|
201
309
|
*/
|
|
202
310
|
declare function useTenantConfig(options?: TenantConfigOptions): ResolvedTenantConfig;
|
|
203
311
|
|
|
204
|
-
|
|
205
|
-
private readonly storage;
|
|
206
|
-
private encryptionKey;
|
|
207
|
-
private salt;
|
|
208
|
-
private initPromise;
|
|
209
|
-
private initialized;
|
|
210
|
-
constructor(storageType?: "localStorage" | "sessionStorage");
|
|
211
|
-
/**
|
|
212
|
-
* Initialize encryption key asynchronously
|
|
213
|
-
* Must be called before using encryption methods
|
|
214
|
-
*/
|
|
215
|
-
private ensureInitialized;
|
|
216
|
-
private initialize;
|
|
217
|
-
private generateFingerprint;
|
|
218
|
-
private clearLegacyData;
|
|
219
|
-
setItem(key: string, value: string, expiryMinutes?: number): Promise<void>;
|
|
220
|
-
getItem(key: string): Promise<string | null>;
|
|
221
|
-
removeItem(key: string): void;
|
|
222
|
-
clear(): void;
|
|
223
|
-
setToken(token: string): Promise<void>;
|
|
224
|
-
getToken(): Promise<string | null>;
|
|
225
|
-
hasValidToken(): Promise<boolean>;
|
|
226
|
-
migrateFromLocalStorage(key: string): Promise<void>;
|
|
227
|
-
private uint8ArrayToBase64;
|
|
228
|
-
private base64ToUint8Array;
|
|
229
|
-
}
|
|
230
|
-
declare const secureSessionStorage: SecureStorage;
|
|
231
|
-
declare const secureLocalStorage: SecureStorage;
|
|
232
|
-
|
|
233
|
-
declare const ERROR_CODES: {
|
|
234
|
-
readonly INVALID_CREDENTIALS: "INVALID_CREDENTIALS";
|
|
235
|
-
readonly UNAUTHORIZED: "UNAUTHORIZED";
|
|
236
|
-
readonly INVALID_API_KEY: "INVALID_API_KEY";
|
|
237
|
-
readonly USER_NOT_FOUND: "USER_NOT_FOUND";
|
|
238
|
-
readonly USER_NOT_ACTIVE: "USER_NOT_ACTIVE";
|
|
239
|
-
readonly NO_PERMISSION: "NO_PERMISSION";
|
|
240
|
-
readonly ITEM_NOT_FOUND: "ITEM_NOT_FOUND";
|
|
241
|
-
readonly NOT_FOUND: "NOT_FOUND";
|
|
242
|
-
readonly IN_USE: "IN_USE";
|
|
243
|
-
readonly FIELD_ERROR: "FIELD_ERROR";
|
|
244
|
-
readonly BAD_REQUEST: "BAD_REQUEST";
|
|
245
|
-
readonly INVALID_EMAIL: "INVALID_EMAIL";
|
|
246
|
-
readonly INVALID_CODE: "INVALID_CODE";
|
|
247
|
-
readonly INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR";
|
|
248
|
-
readonly DATABASE_CONNECTION_ERROR: "DATABASE_CONNECTION_ERROR";
|
|
249
|
-
readonly INVALID_CONFIGURATION: "INVALID_CONFIGURATION";
|
|
250
|
-
readonly UNKNOWN_OPERATION: "UNKNOWN_OPERATION";
|
|
251
|
-
readonly TOO_MANY_REQUESTS: "TOO_MANY_REQUESTS";
|
|
252
|
-
readonly NETWORK_ERROR: "NETWORK_ERROR";
|
|
253
|
-
readonly TIMEOUT_ERROR: "TIMEOUT_ERROR";
|
|
254
|
-
};
|
|
255
|
-
type ErrorCode = (typeof ERROR_CODES)[keyof typeof ERROR_CODES];
|
|
256
|
-
type ErrorSeverity = "info" | "warning" | "error" | "critical";
|
|
257
|
-
declare const ERROR_SEVERITY_MAP: Record<ErrorCode, ErrorSeverity>;
|
|
258
|
-
interface ParsedError {
|
|
259
|
-
code: ErrorCode;
|
|
260
|
-
message: string;
|
|
261
|
-
severity: ErrorSeverity;
|
|
262
|
-
field?: string;
|
|
263
|
-
details?: Record<string, unknown>;
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Parse a Crudify API response and extract standardized error information
|
|
267
|
-
*/
|
|
268
|
-
declare function parseApiError(response: unknown): ParsedError[];
|
|
269
|
-
/**
|
|
270
|
-
* Parse transaction response errors
|
|
271
|
-
*/
|
|
272
|
-
declare function parseTransactionError(response: unknown): ParsedError[];
|
|
273
|
-
/**
|
|
274
|
-
* Get a human-readable error message for an error code
|
|
275
|
-
*/
|
|
276
|
-
declare function getErrorMessage(code: ErrorCode): string;
|
|
277
|
-
/**
|
|
278
|
-
* Handle JavaScript/Network errors and convert to ParsedError
|
|
279
|
-
*/
|
|
280
|
-
declare function parseJavaScriptError(error: unknown): ParsedError;
|
|
281
|
-
/**
|
|
282
|
-
* Universal error handler that can process any type of error from Crudify APIs
|
|
283
|
-
*/
|
|
284
|
-
declare function handleCrudifyError(error: unknown): ParsedError[];
|
|
285
|
-
|
|
286
|
-
interface ErrorTranslationConfig {
|
|
287
|
-
/** Función de traducción de i18next */
|
|
288
|
-
translateFn: (key: string) => string;
|
|
289
|
-
/** Idioma actual (opcional, para logging) */
|
|
290
|
-
currentLanguage?: string;
|
|
291
|
-
/** Habilitar logs de debug */
|
|
292
|
-
enableDebug?: boolean;
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* Traduce un código de error usando jerarquía de fallbacks
|
|
296
|
-
*/
|
|
297
|
-
declare function translateErrorCode(errorCode: string, config: ErrorTranslationConfig): string;
|
|
298
|
-
/**
|
|
299
|
-
* Traduce múltiples códigos de error
|
|
300
|
-
*/
|
|
301
|
-
declare function translateErrorCodes(errorCodes: string[], config: ErrorTranslationConfig): string[];
|
|
302
|
-
/**
|
|
303
|
-
* Traduce un error completo (código + mensaje personalizado)
|
|
304
|
-
*/
|
|
305
|
-
declare function translateError(error: {
|
|
306
|
-
code: string;
|
|
307
|
-
message?: string;
|
|
308
|
-
field?: string;
|
|
309
|
-
}, config: ErrorTranslationConfig): string;
|
|
310
|
-
/**
|
|
311
|
-
* Hook para usar en componentes React con i18next
|
|
312
|
-
*/
|
|
313
|
-
declare function createErrorTranslator(translateFn: (key: string) => string, options?: {
|
|
314
|
-
currentLanguage?: string;
|
|
315
|
-
enableDebug?: boolean;
|
|
316
|
-
}): {
|
|
317
|
-
translateErrorCode: (code: string) => string;
|
|
318
|
-
translateErrorCodes: (codes: string[]) => string[];
|
|
319
|
-
translateError: (error: {
|
|
320
|
-
code: string;
|
|
321
|
-
message?: string;
|
|
322
|
-
field?: string;
|
|
323
|
-
}) => string;
|
|
324
|
-
translateApiError: (apiResponse: {
|
|
325
|
-
data?: {
|
|
326
|
-
response?: {
|
|
327
|
-
status?: string;
|
|
328
|
-
};
|
|
329
|
-
};
|
|
330
|
-
status?: string;
|
|
331
|
-
code?: string;
|
|
332
|
-
} | null | undefined) => string;
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
export { type ConfigResolverOptions as C, ERROR_CODES as E, type ParsedError as P, type ResolvedTenantConfig as R, type TenantConfig as T, secureLocalStorage as a, type TenantConfigOptions as b, resolveConfig as c, decodeJwtSafely as d, useResolvedConfig as e, type ResolvedConfig as f, getCurrentUserEmail as g, type CrudifyEnvironment as h, isTokenExpired as i, handleCrudifyError as j, parseTransactionError as k, parseJavaScriptError as l, getErrorMessage as m, ERROR_SEVERITY_MAP as n, translateErrorCodes as o, parseApiError as p, translateError as q, resolveTenantConfig as r, secureSessionStorage as s, translateErrorCode as t, useTenantConfig as u, createErrorTranslator as v, type ErrorCode as w, type ErrorSeverity as x, type ErrorTranslationConfig as y };
|
|
312
|
+
export { type ApiError as A, type ConfigResolverOptions as C, type ForgotPasswordRequest as F, type JwtPayload as J, type LoginResponse as L, type ResolvedTenantConfig as R, type TenantConfig as T, type UserProfile as U, type ValidateCodeRequest as V, type TenantConfigOptions as a, resolveConfig as b, useResolvedConfig as c, type ResolvedConfig as d, type CrudifyEnvironment as e, type CrudifyApiResponse as f, type CrudifyTransactionResponse as g, type TransactionResponseData as h, type LoginRequest as i, type ResetPasswordRequest as j, type ValidationError as k, type CrudifyOperationOptions as l, type CrudifyRequestOptions as m, type TransactionOperation as n, type TransactionInput as o, resolveTenantConfig as r, useTenantConfig as u };
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
1
|
+
export { E as ERROR_CODES, f as ERROR_SEVERITY_MAP, m as ErrorCode, n as ErrorSeverity, o as ErrorTranslationConfig, P as ParsedError, l as createErrorTranslator, d as decodeJwtSafely, g as getCurrentUserEmail, e as getErrorMessage, h as handleCrudifyError, i as isTokenExpired, p as parseApiError, c as parseJavaScriptError, b as parseTransactionError, a as secureLocalStorage, s as secureSessionStorage, k as translateError, t as translateErrorCode, j as translateErrorCodes } from './errorTranslation-D-Y7uNN_.mjs';
|
|
2
|
+
export { C as ConfigResolverOptions, e as CrudifyEnvironment, d as ResolvedConfig, R as ResolvedTenantConfig, T as TenantConfig, a as TenantConfigOptions, b as resolveConfig, r as resolveTenantConfig, c as useResolvedConfig, u as useTenantConfig } from './tenantConfig-DqJqQkoR.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Event Bus para coordinar acciones de autenticación
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
1
|
+
export { E as ERROR_CODES, f as ERROR_SEVERITY_MAP, m as ErrorCode, n as ErrorSeverity, o as ErrorTranslationConfig, P as ParsedError, l as createErrorTranslator, d as decodeJwtSafely, g as getCurrentUserEmail, e as getErrorMessage, h as handleCrudifyError, i as isTokenExpired, p as parseApiError, c as parseJavaScriptError, b as parseTransactionError, a as secureLocalStorage, s as secureSessionStorage, k as translateError, t as translateErrorCode, j as translateErrorCodes } from './errorTranslation-DDlAXpMl.js';
|
|
2
|
+
export { C as ConfigResolverOptions, e as CrudifyEnvironment, d as ResolvedConfig, R as ResolvedTenantConfig, T as TenantConfig, a as TenantConfigOptions, b as resolveConfig, r as resolveTenantConfig, c as useResolvedConfig, u as useTenantConfig } from './tenantConfig-DqJqQkoR.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Event Bus para coordinar acciones de autenticación
|
package/dist/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBXFEQ6KPjs = require('./chunk-BXFEQ6KP.js');var _chunk4LMFQECSjs = require('./chunk-4LMFQECS.js');exports.ERROR_CODES = _chunk4LMFQECSjs.u; exports.ERROR_SEVERITY_MAP = _chunk4LMFQECSjs.v; exports.NavigationTracker = _chunk4LMFQECSjs.q; exports.authEventBus = _chunk4LMFQECSjs.f; exports.createErrorTranslator = _chunk4LMFQECSjs.p; exports.decodeJwtSafely = _chunk4LMFQECSjs.r; exports.getCurrentUserEmail = _chunk4LMFQECSjs.s; exports.getErrorMessage = _chunk4LMFQECSjs.y; exports.handleCrudifyError = _chunk4LMFQECSjs.A; exports.isTokenExpired = _chunk4LMFQECSjs.t; exports.parseApiError = _chunk4LMFQECSjs.w; exports.parseJavaScriptError = _chunk4LMFQECSjs.z; exports.parseTransactionError = _chunk4LMFQECSjs.x; exports.resolveConfig = _chunk4LMFQECSjs.d; exports.resolveTenantConfig = _chunk4LMFQECSjs.b; exports.secureLocalStorage = _chunkBXFEQ6KPjs.b; exports.secureSessionStorage = _chunkBXFEQ6KPjs.a; exports.translateError = _chunk4LMFQECSjs.o; exports.translateErrorCode = _chunk4LMFQECSjs.m; exports.translateErrorCodes = _chunk4LMFQECSjs.n; exports.useResolvedConfig = _chunk4LMFQECSjs.e; exports.useTenantConfig = _chunk4LMFQECSjs.c;
|
package/dist/utils.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as R,b as y}from"./chunk-
|
|
1
|
+
import{a as R,b as y}from"./chunk-WMLIOPUC.mjs";import{A as T,b as r,c as e,d as o,e as t,f as n,m as a,n as s,o as i,p as f,q as p,r as E,s as l,t as g,u as C,v,w as m,x as d,y as u,z as x}from"./chunk-44VU4TSP.mjs";export{C as ERROR_CODES,v as ERROR_SEVERITY_MAP,p as NavigationTracker,n as authEventBus,f as createErrorTranslator,E as decodeJwtSafely,l as getCurrentUserEmail,u as getErrorMessage,T as handleCrudifyError,g as isTokenExpired,m as parseApiError,x as parseJavaScriptError,d as parseTransactionError,o as resolveConfig,r as resolveTenantConfig,y as secureLocalStorage,R as secureSessionStorage,i as translateError,a as translateErrorCode,s as translateErrorCodes,t as useResolvedConfig,e as useTenantConfig};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"result":[{"scriptId":"1251","url":"file:///Users/yamildiego/Projects/current/nocios/CRUDIFY/process/crudify-components/src/__tests__/setup.ts","functions":[{"functionName":"","ranges":[{"startOffset":0,"endOffset":11754,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":13,"endOffset":11754,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":735,"endOffset":846,"count":26}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":881,"endOffset":1121,"count":26}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1246,"endOffset":1579,"count":0}],"isBlockCoverage":false},{"functionName":"IntersectionObserver","ranges":[{"startOffset":1650,"endOffset":1669,"count":0}],"isBlockCoverage":false},{"functionName":"disconnect","ranges":[{"startOffset":1672,"endOffset":1690,"count":0}],"isBlockCoverage":false},{"functionName":"observe","ranges":[{"startOffset":1693,"endOffset":1708,"count":0}],"isBlockCoverage":false},{"functionName":"takeRecords","ranges":[{"startOffset":1711,"endOffset":1745,"count":0}],"isBlockCoverage":false},{"functionName":"unobserve","ranges":[{"startOffset":1748,"endOffset":1765,"count":0}],"isBlockCoverage":false},{"functionName":"digest","ranges":[{"startOffset":1864,"endOffset":2087,"count":0}],"isBlockCoverage":false},{"functionName":"importKey","ranges":[{"startOffset":2138,"endOffset":2241,"count":0}],"isBlockCoverage":false},{"functionName":"deriveKey","ranges":[{"startOffset":2285,"endOffset":2396,"count":0}],"isBlockCoverage":false},{"functionName":"encrypt","ranges":[{"startOffset":2474,"endOffset":2712,"count":0}],"isBlockCoverage":false},{"functionName":"decrypt","ranges":[{"startOffset":2767,"endOffset":3005,"count":0}],"isBlockCoverage":false},{"functionName":"randomUUID","ranges":[{"startOffset":3082,"endOffset":3146,"count":0}],"isBlockCoverage":false},{"functionName":"getRandomValues","ranges":[{"startOffset":3169,"endOffset":3306,"count":0}],"isBlockCoverage":false}]},{"scriptId":"1567","url":"file:///Users/yamildiego/Projects/current/nocios/CRUDIFY/process/crudify-components/src/__tests__/translations/critical.test.ts","functions":[{"functionName":"","ranges":[{"startOffset":0,"endOffset":26582,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":13,"endOffset":26582,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":568,"endOffset":7653,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":622,"endOffset":2029,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":695,"endOffset":912,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":980,"endOffset":1197,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1272,"endOffset":1523,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1592,"endOffset":2023,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1677,"endOffset":1806,"count":168}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1886,"endOffset":2015,"count":0}],"isBlockCoverage":false},{"functionName":"","ranges":[{"startOffset":2083,"endOffset":5815,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2154,"endOffset":2535,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2611,"endOffset":3004,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3075,"endOffset":3450,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3525,"endOffset":3926,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3992,"endOffset":4392,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4465,"endOffset":4731,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4802,"endOffset":5185,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5252,"endOffset":5495,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5562,"endOffset":5809,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5876,"endOffset":7649,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5972,"endOffset":6551,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6141,"endOffset":6543,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6646,"endOffset":6925,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":7014,"endOffset":7281,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":7372,"endOffset":7643,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":7711,"endOffset":8274,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":7792,"endOffset":8064,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":8131,"endOffset":8270,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":8335,"endOffset":9882,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":8417,"endOffset":8699,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":8776,"endOffset":9050,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":9136,"endOffset":9326,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":9406,"endOffset":9594,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":9681,"endOffset":9878,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":9932,"endOffset":10304,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":10017,"endOffset":10102,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":10187,"endOffset":10300,"count":1}],"isBlockCoverage":true}]},{"scriptId":"1568","url":"file:///Users/yamildiego/Projects/current/nocios/CRUDIFY/process/crudify-components/src/translations/critical.ts","functions":[{"functionName":"","ranges":[{"startOffset":0,"endOffset":33565,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":13,"endOffset":33565,"count":1}],"isBlockCoverage":true},{"functionName":"get","ranges":[{"startOffset":11297,"endOffset":11334,"count":45}],"isBlockCoverage":true},{"functionName":"getCriticalLanguages","ranges":[{"startOffset":11367,"endOffset":11421,"count":2}],"isBlockCoverage":true},{"functionName":"get","ranges":[{"startOffset":11531,"endOffset":11567,"count":2}],"isBlockCoverage":true},{"functionName":"getCriticalTranslations","ranges":[{"startOffset":11603,"endOffset":11690,"count":5},{"startOffset":11660,"endOffset":11687,"count":3}],"isBlockCoverage":true},{"functionName":"get","ranges":[{"startOffset":11803,"endOffset":11842,"count":5}],"isBlockCoverage":true}]}]}
|