@nocios/crudify-components 2.0.26 → 2.0.36

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.
Files changed (48) hide show
  1. package/coverage/coverage-final.json +69 -35
  2. package/coverage/index.html +326 -146
  3. package/dist/{CrudiaMarkdownField-C54-A_J3.d.mts → CrudiaMarkdownField-Bxl08sRG.d.mts} +12 -7
  4. package/dist/{CrudiaMarkdownField-C8HQh7s5.d.ts → CrudiaMarkdownField-DUJNOOzP.d.ts} +12 -7
  5. package/dist/chunk-44VU4TSP.mjs +1 -0
  6. package/dist/chunk-4LMFQECS.js +1 -0
  7. package/dist/chunk-77UKXG5L.mjs +1 -0
  8. package/dist/{chunk-4VN5YRYZ.js → chunk-BXFEQ6KP.js} +1 -1
  9. package/dist/{chunk-6ONAT4QU.js → chunk-H6XXWDUT.js} +1 -1
  10. package/dist/chunk-NIRLP2TC.js +1 -0
  11. package/dist/chunk-O4FUHIQG.mjs +1 -0
  12. package/dist/chunk-QFACMV2I.mjs +1 -0
  13. package/dist/chunk-QZH3KSJZ.js +1 -0
  14. package/dist/{chunk-RJBX4MWF.mjs → chunk-WMLIOPUC.mjs} +1 -1
  15. package/dist/components.d.mts +1 -1
  16. package/dist/components.d.ts +1 -1
  17. package/dist/components.js +1 -1
  18. package/dist/components.mjs +1 -1
  19. package/dist/errorTranslation-D-Y7uNN_.d.mts +141 -0
  20. package/dist/errorTranslation-DDlAXpMl.d.ts +141 -0
  21. package/dist/hooks.d.mts +2 -2
  22. package/dist/hooks.d.ts +2 -2
  23. package/dist/hooks.js +1 -1
  24. package/dist/hooks.mjs +1 -1
  25. package/dist/{index-DY90WVQQ.d.mts → index-U--xRr8A.d.mts} +225 -191
  26. package/dist/{index-d1vE803G.d.ts → index-dXVRVcEB.d.ts} +225 -191
  27. package/dist/index.d.mts +345 -18
  28. package/dist/index.d.ts +345 -18
  29. package/dist/index.js +2 -2
  30. package/dist/index.mjs +1 -1
  31. package/dist/{errorTranslation-By5Av0tL.d.ts → tenantConfig-DqJqQkoR.d.mts} +116 -139
  32. package/dist/{errorTranslation-DeeDj7Vt.d.mts → tenantConfig-DqJqQkoR.d.ts} +116 -139
  33. package/dist/utils.d.mts +2 -2
  34. package/dist/utils.d.ts +2 -2
  35. package/dist/utils.js +1 -1
  36. package/dist/utils.mjs +1 -1
  37. package/package.json +1 -1
  38. package/dist/api-B4uXiHF0.d.mts +0 -118
  39. package/dist/api-B4uXiHF0.d.ts +0 -118
  40. package/dist/chunk-4ILUXVPW.mjs +0 -1
  41. package/dist/chunk-CR5KJUST.js +0 -1
  42. package/dist/chunk-H5M2Q6PB.mjs +0 -1
  43. package/dist/chunk-J5A7XVNT.mjs +0 -1
  44. package/dist/chunk-JAPL7EZJ.mjs +0 -1
  45. package/dist/chunk-MPIGL3FY.js +0 -1
  46. package/dist/chunk-NSV6ECYO.js +0 -1
  47. package/dist/chunk-PTUSZGL4.mjs +0 -1
  48. package/dist/chunk-T6R65ROU.js +0 -1
@@ -1,11 +1,119 @@
1
- import { J as JwtPayload } from './api-B4uXiHF0.js';
2
-
3
- interface JWTPayload extends JwtPayload {
4
- "cognito:username"?: string;
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
- declare const decodeJwtSafely: (token: string) => JWTPayload | null;
7
- declare const getCurrentUserEmail: () => string | null;
8
- declare const isTokenExpired: (token: string) => boolean;
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
- declare class SecureStorage {
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
- import { J as JwtPayload } from './api-B4uXiHF0.mjs';
2
-
3
- interface JWTPayload extends JwtPayload {
4
- "cognito:username"?: string;
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
- declare const decodeJwtSafely: (token: string) => JWTPayload | null;
7
- declare const getCurrentUserEmail: () => string | null;
8
- declare const isTokenExpired: (token: string) => boolean;
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
- declare class SecureStorage {
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 { C as ConfigResolverOptions, h as CrudifyEnvironment, E as ERROR_CODES, n as ERROR_SEVERITY_MAP, w as ErrorCode, x as ErrorSeverity, y as ErrorTranslationConfig, P as ParsedError, f as ResolvedConfig, R as ResolvedTenantConfig, T as TenantConfig, b as TenantConfigOptions, v as createErrorTranslator, d as decodeJwtSafely, g as getCurrentUserEmail, m as getErrorMessage, j as handleCrudifyError, i as isTokenExpired, p as parseApiError, l as parseJavaScriptError, k as parseTransactionError, c as resolveConfig, r as resolveTenantConfig, a as secureLocalStorage, s as secureSessionStorage, q as translateError, t as translateErrorCode, o as translateErrorCodes, e as useResolvedConfig, u as useTenantConfig } from './errorTranslation-DeeDj7Vt.mjs';
2
- import './api-B4uXiHF0.mjs';
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 { C as ConfigResolverOptions, h as CrudifyEnvironment, E as ERROR_CODES, n as ERROR_SEVERITY_MAP, w as ErrorCode, x as ErrorSeverity, y as ErrorTranslationConfig, P as ParsedError, f as ResolvedConfig, R as ResolvedTenantConfig, T as TenantConfig, b as TenantConfigOptions, v as createErrorTranslator, d as decodeJwtSafely, g as getCurrentUserEmail, m as getErrorMessage, j as handleCrudifyError, i as isTokenExpired, p as parseApiError, l as parseJavaScriptError, k as parseTransactionError, c as resolveConfig, r as resolveTenantConfig, a as secureLocalStorage, s as secureSessionStorage, q as translateError, t as translateErrorCode, o as translateErrorCodes, e as useResolvedConfig, u as useTenantConfig } from './errorTranslation-By5Av0tL.js';
2
- import './api-B4uXiHF0.js';
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 _chunk4VN5YRYZjs = require('./chunk-4VN5YRYZ.js');var _chunkNSV6ECYOjs = require('./chunk-NSV6ECYO.js');var _chunkCR5KJUSTjs = require('./chunk-CR5KJUST.js');exports.ERROR_CODES = _chunkNSV6ECYOjs.a; exports.ERROR_SEVERITY_MAP = _chunkNSV6ECYOjs.b; exports.NavigationTracker = _chunkCR5KJUSTjs.q; exports.authEventBus = _chunkCR5KJUSTjs.f; exports.createErrorTranslator = _chunkCR5KJUSTjs.p; exports.decodeJwtSafely = _chunkCR5KJUSTjs.r; exports.getCurrentUserEmail = _chunkCR5KJUSTjs.s; exports.getErrorMessage = _chunkNSV6ECYOjs.e; exports.handleCrudifyError = _chunkNSV6ECYOjs.g; exports.isTokenExpired = _chunkCR5KJUSTjs.t; exports.parseApiError = _chunkNSV6ECYOjs.c; exports.parseJavaScriptError = _chunkNSV6ECYOjs.f; exports.parseTransactionError = _chunkNSV6ECYOjs.d; exports.resolveConfig = _chunkCR5KJUSTjs.d; exports.resolveTenantConfig = _chunkCR5KJUSTjs.b; exports.secureLocalStorage = _chunk4VN5YRYZjs.b; exports.secureSessionStorage = _chunk4VN5YRYZjs.a; exports.translateError = _chunkCR5KJUSTjs.o; exports.translateErrorCode = _chunkCR5KJUSTjs.m; exports.translateErrorCodes = _chunkCR5KJUSTjs.n; exports.useResolvedConfig = _chunkCR5KJUSTjs.e; exports.useTenantConfig = _chunkCR5KJUSTjs.c;
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-RJBX4MWF.mjs";import{a as C,b as v,c as m,d,e as u,f as x,g as T}from"./chunk-JAPL7EZJ.mjs";import{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}from"./chunk-4ILUXVPW.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};
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocios/crudify-components",
3
- "version": "2.0.26",
3
+ "version": "2.0.36",
4
4
  "engines": {
5
5
  "node": ">=24.12.0"
6
6
  },