@fiado/type-kit 3.55.0 → 3.56.0

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.
@@ -1,5 +1,6 @@
1
1
  import { ConnectorCatalogItem } from "./ConnectorCatalogItem";
2
2
  import { VerifyEquivalentInfo } from "./VerifyEquivalentInfo";
3
+ import { LeafConfigIssueEnum } from "./LeafConfigIssue";
3
4
  /**
4
5
  * Respuesta del detalle de un leaf en el backoffice (v2 in-place).
5
6
  * Devuelve el item del catálogo del conector tal cual — sin paso de merge
@@ -13,4 +14,6 @@ export interface BackofficeLeafDetailResponse {
13
14
  item: ConnectorCatalogItem;
14
15
  verifyEquivalent: VerifyEquivalentInfo;
15
16
  warnings?: string[];
17
+ /** Problemas de configuración detectados en este leaf. */
18
+ issues: LeafConfigIssueEnum[];
16
19
  }
@@ -1,4 +1,5 @@
1
1
  import { Provider } from "../../provider/enums/Provider";
2
+ import { LeafConfigIssueEnum } from "./LeafConfigIssue";
2
3
  /**
3
4
  * Item del listado paginado de leaves en el backoffice (v3 — provider + currency + orders).
4
5
  * Cada item representa un servicio del catálogo del conector, ya con
@@ -22,4 +23,6 @@ export interface BackofficeLeafListItem {
22
23
  serviceOrder: number;
23
24
  subcategoryOrder: number;
24
25
  requiresReferenceVerification: boolean;
26
+ /** Problemas de configuración detectados — para mostrar/filtrar en el listado del backoffice. */
27
+ issues: LeafConfigIssueEnum[];
25
28
  }
@@ -0,0 +1,11 @@
1
+ /** Problemas de configuración detectables por leaf, para que el backoffice los identifique y corrija con el editor. */
2
+ export declare enum LeafConfigIssueEnum {
3
+ /** Algún producto no tiene tipo de monto determinable (amountType NOT_CONFIGURED). */
4
+ AMOUNT_TYPE_NOT_CONFIGURED = "AMOUNT_TYPE_NOT_CONFIGURED",
5
+ /** Algún producto usa un tipoReferencia legacy (no es un ReferenceTypeEnum moderno). */
6
+ LEGACY_REFERENCE_TYPE = "LEGACY_REFERENCE_TYPE",
7
+ /** El servicio no tiene subcategoría (rompe facetas y el equivalente de verificación). */
8
+ MISSING_SUBCATEGORY = "MISSING_SUBCATEGORY",
9
+ /** Requiere verificación de referencia pero no hay equivalente STP factible → fallaría. */
10
+ VERIFY_NO_EQUIVALENT = "VERIFY_NO_EQUIVALENT"
11
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LeafConfigIssueEnum = void 0;
4
+ /** Problemas de configuración detectables por leaf, para que el backoffice los identifique y corrija con el editor. */
5
+ var LeafConfigIssueEnum;
6
+ (function (LeafConfigIssueEnum) {
7
+ /** Algún producto no tiene tipo de monto determinable (amountType NOT_CONFIGURED). */
8
+ LeafConfigIssueEnum["AMOUNT_TYPE_NOT_CONFIGURED"] = "AMOUNT_TYPE_NOT_CONFIGURED";
9
+ /** Algún producto usa un tipoReferencia legacy (no es un ReferenceTypeEnum moderno). */
10
+ LeafConfigIssueEnum["LEGACY_REFERENCE_TYPE"] = "LEGACY_REFERENCE_TYPE";
11
+ /** El servicio no tiene subcategoría (rompe facetas y el equivalente de verificación). */
12
+ LeafConfigIssueEnum["MISSING_SUBCATEGORY"] = "MISSING_SUBCATEGORY";
13
+ /** Requiere verificación de referencia pero no hay equivalente STP factible → fallaría. */
14
+ LeafConfigIssueEnum["VERIFY_NO_EQUIVALENT"] = "VERIFY_NO_EQUIVALENT";
15
+ })(LeafConfigIssueEnum || (exports.LeafConfigIssueEnum = LeafConfigIssueEnum = {}));
@@ -27,4 +27,10 @@ export declare class ProductItem {
27
27
  * ausente o `false` ⇒ no verifica.
28
28
  */
29
29
  verificateReference?: boolean;
30
+ /**
31
+ * Tipo de referencia CRUDO del catálogo (tipoReferencia nativo). Puede ser
32
+ * moderno (ReferenceTypeEnum) o legacy STP (a/b/c/bc). Se expone para que el
33
+ * backoffice vea/edite el valor actual y detecte legacy. NO se remapea.
34
+ */
35
+ referenceType?: string;
30
36
  }
@@ -76,3 +76,4 @@ export * from "./dtos/BannerUploadUrlRequest";
76
76
  export * from "./dtos/BannerUploadUrlResponse";
77
77
  export * from "./dtos/VerifyEquivalentInfo";
78
78
  export * from "./dtos/BackofficeProductUpdateRequest";
79
+ export * from "./dtos/LeafConfigIssue";
@@ -105,3 +105,5 @@ __exportStar(require("./dtos/BannerUploadUrlResponse"), exports);
105
105
  __exportStar(require("./dtos/VerifyEquivalentInfo"), exports);
106
106
  //Backoffice product editor (F2/F3): patch parcial in-place de un producto
107
107
  __exportStar(require("./dtos/BackofficeProductUpdateRequest"), exports);
108
+ //Backoffice config detection: problemas de configuración detectables por leaf
109
+ __exportStar(require("./dtos/LeafConfigIssue"), exports);
@@ -1,4 +1,6 @@
1
1
  export declare enum AmountTypeEnum {
2
2
  FIXED = "FIXED",
3
- VARIABLE = "VARIABLE"
3
+ VARIABLE = "VARIABLE",
4
+ /** El conector no pudo determinar si es fijo o variable (sin tipoFront válido ni amountType nativo). */
5
+ NOT_CONFIGURED = "NOT_CONFIGURED"
4
6
  }
@@ -5,4 +5,6 @@ var AmountTypeEnum;
5
5
  (function (AmountTypeEnum) {
6
6
  AmountTypeEnum["FIXED"] = "FIXED";
7
7
  AmountTypeEnum["VARIABLE"] = "VARIABLE";
8
+ /** El conector no pudo determinar si es fijo o variable (sin tipoFront válido ni amountType nativo). */
9
+ AmountTypeEnum["NOT_CONFIGURED"] = "NOT_CONFIGURED";
8
10
  })(AmountTypeEnum || (exports.AmountTypeEnum = AmountTypeEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.55.0",
3
+ "version": "3.56.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,5 +1,6 @@
1
1
  import { ConnectorCatalogItem } from "./ConnectorCatalogItem";
2
2
  import { VerifyEquivalentInfo } from "./VerifyEquivalentInfo";
3
+ import { LeafConfigIssueEnum } from "./LeafConfigIssue";
3
4
 
4
5
  /**
5
6
  * Respuesta del detalle de un leaf en el backoffice (v2 in-place).
@@ -14,4 +15,6 @@ export interface BackofficeLeafDetailResponse {
14
15
  item: ConnectorCatalogItem;
15
16
  verifyEquivalent: VerifyEquivalentInfo;
16
17
  warnings?: string[];
18
+ /** Problemas de configuración detectados en este leaf. */
19
+ issues: LeafConfigIssueEnum[];
17
20
  }
@@ -1,4 +1,5 @@
1
1
  import { Provider } from "../../provider/enums/Provider";
2
+ import { LeafConfigIssueEnum } from "./LeafConfigIssue";
2
3
 
3
4
  /**
4
5
  * Item del listado paginado de leaves en el backoffice (v3 — provider + currency + orders).
@@ -26,4 +27,7 @@ export interface BackofficeLeafListItem {
26
27
  subcategoryOrder: number;// orden de la subcategory en su category
27
28
 
28
29
  requiresReferenceVerification: boolean; // Derivado: ¿algún producto requiere verificación?
30
+
31
+ /** Problemas de configuración detectados — para mostrar/filtrar en el listado del backoffice. */
32
+ issues: LeafConfigIssueEnum[];
29
33
  }
@@ -0,0 +1,11 @@
1
+ /** Problemas de configuración detectables por leaf, para que el backoffice los identifique y corrija con el editor. */
2
+ export enum LeafConfigIssueEnum {
3
+ /** Algún producto no tiene tipo de monto determinable (amountType NOT_CONFIGURED). */
4
+ AMOUNT_TYPE_NOT_CONFIGURED = "AMOUNT_TYPE_NOT_CONFIGURED",
5
+ /** Algún producto usa un tipoReferencia legacy (no es un ReferenceTypeEnum moderno). */
6
+ LEGACY_REFERENCE_TYPE = "LEGACY_REFERENCE_TYPE",
7
+ /** El servicio no tiene subcategoría (rompe facetas y el equivalente de verificación). */
8
+ MISSING_SUBCATEGORY = "MISSING_SUBCATEGORY",
9
+ /** Requiere verificación de referencia pero no hay equivalente STP factible → fallaría. */
10
+ VERIFY_NO_EQUIVALENT = "VERIFY_NO_EQUIVALENT",
11
+ }
@@ -31,4 +31,11 @@ export class ProductItem {
31
31
  * ausente o `false` ⇒ no verifica.
32
32
  */
33
33
  verificateReference?: boolean;
34
+
35
+ /**
36
+ * Tipo de referencia CRUDO del catálogo (tipoReferencia nativo). Puede ser
37
+ * moderno (ReferenceTypeEnum) o legacy STP (a/b/c/bc). Se expone para que el
38
+ * backoffice vea/edite el valor actual y detecte legacy. NO se remapea.
39
+ */
40
+ referenceType?: string;
34
41
  }
@@ -90,3 +90,5 @@ export * from "./dtos/BannerUploadUrlResponse";
90
90
  export * from "./dtos/VerifyEquivalentInfo";
91
91
  //Backoffice product editor (F2/F3): patch parcial in-place de un producto
92
92
  export * from "./dtos/BackofficeProductUpdateRequest";
93
+ //Backoffice config detection: problemas de configuración detectables por leaf
94
+ export * from "./dtos/LeafConfigIssue";
@@ -1,4 +1,6 @@
1
1
  export enum AmountTypeEnum {
2
2
  FIXED = 'FIXED',
3
3
  VARIABLE = 'VARIABLE',
4
+ /** El conector no pudo determinar si es fijo o variable (sin tipoFront válido ni amountType nativo). */
5
+ NOT_CONFIGURED = 'NOT_CONFIGURED',
4
6
  }