@mc-hogar/crosslib 1.0.78 → 1.0.80
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/cjs/modules/Estadisticas/index.js +1 -0
- package/dist/cjs/modules/Estadisticas/index.js.map +1 -1
- package/dist/cjs/modules/Estadisticas/types/health-check.types.js +3 -0
- package/dist/cjs/modules/Estadisticas/types/health-check.types.js.map +1 -0
- package/dist/esm/modules/Estadisticas/index.js +1 -0
- package/dist/esm/modules/Estadisticas/index.js.map +1 -1
- package/dist/esm/modules/Estadisticas/types/health-check.types.js +2 -0
- package/dist/esm/modules/Estadisticas/types/health-check.types.js.map +1 -0
- package/dist/types/modules/Estadisticas/index.d.ts +1 -0
- package/dist/types/modules/Estadisticas/index.d.ts.map +1 -1
- package/dist/types/modules/Estadisticas/types/estadisticas.types.d.ts +2 -2
- package/dist/types/modules/Estadisticas/types/estadisticas.types.d.ts.map +1 -1
- package/dist/types/modules/Estadisticas/types/health-check.types.d.ts +58 -0
- package/dist/types/modules/Estadisticas/types/health-check.types.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./types/estadisticas.types"), exports);
|
|
18
|
+
__exportStar(require("./types/health-check.types"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/Estadisticas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA0C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/Estadisticas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA0C;AAC1C,6DAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"health-check.types.js","sourceRoot":"","sources":["../../../../../src/modules/Estadisticas/types/health-check.types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/Estadisticas/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/Estadisticas/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"health-check.types.js","sourceRoot":"","sources":["../../../../../src/modules/Estadisticas/types/health-check.types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/Estadisticas/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/Estadisticas/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA"}
|
|
@@ -3,8 +3,8 @@ export interface ComparacionArticuloParaVerificarDiferenciasEstado {
|
|
|
3
3
|
aik_ar_descri: string;
|
|
4
4
|
esa_codigo_web: string;
|
|
5
5
|
esa_codigo_api_aikon: string;
|
|
6
|
-
stock_total_web: number;
|
|
7
|
-
stock_total_api_aikon: number;
|
|
6
|
+
stock_total_web: number | null;
|
|
7
|
+
stock_total_api_aikon: number | null;
|
|
8
8
|
fecha_modificacion_web: string | null;
|
|
9
9
|
fecha_modificacion_api_aikon: string | null;
|
|
10
10
|
api_aikon_listado_articulo_no_habilitado: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"estadisticas.types.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Estadisticas/types/estadisticas.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iDAAiD;IAC9D,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"estadisticas.types.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Estadisticas/types/estadisticas.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iDAAiD;IAC9D,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,4BAA4B,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5C,wCAAwC,EAAE,OAAO,CAAC;CACrD"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Estado de un indicador de salud individual
|
|
3
|
+
*/
|
|
4
|
+
export type HealthStatus = 'up' | 'down';
|
|
5
|
+
/**
|
|
6
|
+
* Estado general del health check
|
|
7
|
+
*/
|
|
8
|
+
export type HealthCheckStatus = 'ok' | 'error' | 'shutting_down';
|
|
9
|
+
/**
|
|
10
|
+
* Detalles de un indicador de salud
|
|
11
|
+
*/
|
|
12
|
+
export interface HealthIndicatorDetails {
|
|
13
|
+
status: HealthStatus;
|
|
14
|
+
message?: string;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Mapa de indicadores cuando todo está OK
|
|
19
|
+
*/
|
|
20
|
+
export interface HealthCheckInfo {
|
|
21
|
+
database?: HealthIndicatorDetails;
|
|
22
|
+
aws_s3?: HealthIndicatorDetails;
|
|
23
|
+
aws_cognito_panel_interno?: HealthIndicatorDetails;
|
|
24
|
+
aws_cognito_panel_vendedor?: HealthIndicatorDetails;
|
|
25
|
+
algolia?: HealthIndicatorDetails;
|
|
26
|
+
firestore?: HealthIndicatorDetails;
|
|
27
|
+
erp_api?: HealthIndicatorDetails;
|
|
28
|
+
[key: string]: HealthIndicatorDetails | undefined;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Mapa de indicadores cuando hay errores
|
|
32
|
+
*/
|
|
33
|
+
export interface HealthCheckError {
|
|
34
|
+
database?: HealthIndicatorDetails;
|
|
35
|
+
aws_s3?: HealthIndicatorDetails;
|
|
36
|
+
aws_cognito_panel_interno?: HealthIndicatorDetails;
|
|
37
|
+
aws_cognito_panel_vendedor?: HealthIndicatorDetails;
|
|
38
|
+
algolia?: HealthIndicatorDetails;
|
|
39
|
+
firestore?: HealthIndicatorDetails;
|
|
40
|
+
erp_api?: HealthIndicatorDetails;
|
|
41
|
+
[key: string]: HealthIndicatorDetails | undefined;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Detalles adicionales del health check
|
|
45
|
+
*/
|
|
46
|
+
export interface HealthCheckDetails {
|
|
47
|
+
[key: string]: HealthIndicatorDetails;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Respuesta completa del endpoint /health
|
|
51
|
+
*/
|
|
52
|
+
export interface HealthCheckResponse {
|
|
53
|
+
status: HealthCheckStatus;
|
|
54
|
+
info?: HealthCheckInfo;
|
|
55
|
+
error?: HealthCheckError;
|
|
56
|
+
details?: HealthCheckDetails;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=health-check.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"health-check.types.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Estadisticas/types/health-check.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,Y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