@fiado/type-kit 3.1.28 → 3.1.30

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 (81) hide show
  1. package/bin/benefitCenter/dtos/BannerAction.d.ts +7 -0
  2. package/bin/benefitCenter/dtos/BannerAction.js +6 -0
  3. package/bin/benefitCenter/dtos/BannerContent.d.ts +14 -0
  4. package/bin/benefitCenter/dtos/BannerContent.js +11 -0
  5. package/bin/benefitCenter/dtos/BannerItem.d.ts +8 -0
  6. package/bin/benefitCenter/dtos/BannerItem.js +6 -0
  7. package/bin/benefitCenter/dtos/BenefitCatalogResponse.d.ts +6 -0
  8. package/bin/benefitCenter/dtos/BenefitCatalogResponse.js +6 -0
  9. package/bin/benefitCenter/dtos/BenefitItem.d.ts +10 -0
  10. package/bin/benefitCenter/dtos/BenefitItem.js +6 -0
  11. package/bin/benefitCenter/dtos/BenefitListResponse.d.ts +6 -0
  12. package/bin/benefitCenter/dtos/BenefitListResponse.js +6 -0
  13. package/bin/benefitCenter/dtos/BenefitReferenceVerificationRequest.d.ts +15 -0
  14. package/bin/benefitCenter/dtos/BenefitReferenceVerificationRequest.js +41 -0
  15. package/bin/benefitCenter/dtos/BenefitSummary.d.ts +7 -0
  16. package/bin/benefitCenter/dtos/BenefitSummary.js +6 -0
  17. package/bin/benefitCenter/dtos/CatalogNode.d.ts +12 -0
  18. package/bin/benefitCenter/dtos/CatalogNode.js +6 -0
  19. package/bin/benefitCenter/dtos/ConnectorCatalogItem.d.ts +27 -0
  20. package/bin/benefitCenter/dtos/ConnectorCatalogItem.js +14 -0
  21. package/bin/benefitCenter/dtos/ConnectorCatalogResponse.d.ts +4 -0
  22. package/bin/benefitCenter/dtos/ConnectorCatalogResponse.js +6 -0
  23. package/bin/benefitCenter/dtos/InputField.d.ts +13 -0
  24. package/bin/benefitCenter/dtos/InputField.js +6 -0
  25. package/bin/benefitCenter/dtos/InputSchema.d.ts +6 -0
  26. package/bin/benefitCenter/dtos/InputSchema.js +6 -0
  27. package/bin/benefitCenter/dtos/InputValidation.d.ts +8 -0
  28. package/bin/benefitCenter/dtos/InputValidation.js +6 -0
  29. package/bin/benefitCenter/dtos/ProductItem.d.ts +10 -0
  30. package/bin/benefitCenter/dtos/ProductItem.js +6 -0
  31. package/bin/benefitCenter/dtos/SelectOption.d.ts +4 -0
  32. package/bin/benefitCenter/dtos/SelectOption.js +6 -0
  33. package/bin/benefitCenter/dtos/ServiceLeaf.d.ts +13 -0
  34. package/bin/benefitCenter/dtos/ServiceLeaf.js +6 -0
  35. package/bin/benefitCenter/enums/BannerActionTypeEnum.d.ts +6 -0
  36. package/bin/benefitCenter/enums/BannerActionTypeEnum.js +10 -0
  37. package/bin/benefitCenter/enums/BannerContentTypeEnum.d.ts +5 -0
  38. package/bin/benefitCenter/enums/BannerContentTypeEnum.js +9 -0
  39. package/bin/benefitCenter/enums/BannerLocaleEnum.d.ts +4 -0
  40. package/bin/benefitCenter/enums/BannerLocaleEnum.js +8 -0
  41. package/bin/benefitCenter/enums/BannerStatusEnum.d.ts +5 -0
  42. package/bin/benefitCenter/enums/BannerStatusEnum.js +9 -0
  43. package/bin/benefitCenter/enums/BenefitFlowEnum.d.ts +9 -0
  44. package/bin/benefitCenter/enums/BenefitFlowEnum.js +13 -0
  45. package/bin/benefitCenter/enums/CatalogNodeTypeEnum.d.ts +4 -0
  46. package/bin/benefitCenter/enums/CatalogNodeTypeEnum.js +8 -0
  47. package/bin/benefitCenter/enums/InputFieldTypeEnum.d.ts +10 -0
  48. package/bin/benefitCenter/enums/InputFieldTypeEnum.js +14 -0
  49. package/bin/benefitCenter/index.d.ts +24 -0
  50. package/bin/benefitCenter/index.js +42 -0
  51. package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
  52. package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
  53. package/bin/index.d.ts +1 -0
  54. package/bin/index.js +20 -9
  55. package/package.json +1 -1
  56. package/src/benefitCenter/dtos/BannerAction.ts +8 -0
  57. package/src/benefitCenter/dtos/BannerContent.ts +15 -0
  58. package/src/benefitCenter/dtos/BannerItem.ts +9 -0
  59. package/src/benefitCenter/dtos/BenefitCatalogResponse.ts +7 -0
  60. package/src/benefitCenter/dtos/BenefitItem.ts +11 -0
  61. package/src/benefitCenter/dtos/BenefitListResponse.ts +7 -0
  62. package/src/benefitCenter/dtos/BenefitReferenceVerificationRequest.ts +25 -0
  63. package/src/benefitCenter/dtos/BenefitSummary.ts +8 -0
  64. package/src/benefitCenter/dtos/CatalogNode.ts +13 -0
  65. package/src/benefitCenter/dtos/ConnectorCatalogItem.ts +35 -0
  66. package/src/benefitCenter/dtos/ConnectorCatalogResponse.ts +5 -0
  67. package/src/benefitCenter/dtos/InputField.ts +14 -0
  68. package/src/benefitCenter/dtos/InputSchema.ts +7 -0
  69. package/src/benefitCenter/dtos/InputValidation.ts +8 -0
  70. package/src/benefitCenter/dtos/ProductItem.ts +11 -0
  71. package/src/benefitCenter/dtos/SelectOption.ts +4 -0
  72. package/src/benefitCenter/dtos/ServiceLeaf.ts +14 -0
  73. package/src/benefitCenter/enums/BannerActionTypeEnum.ts +6 -0
  74. package/src/benefitCenter/enums/BannerContentTypeEnum.ts +5 -0
  75. package/src/benefitCenter/enums/BannerLocaleEnum.ts +4 -0
  76. package/src/benefitCenter/enums/BannerStatusEnum.ts +5 -0
  77. package/src/benefitCenter/enums/BenefitFlowEnum.ts +9 -0
  78. package/src/benefitCenter/enums/CatalogNodeTypeEnum.ts +4 -0
  79. package/src/benefitCenter/enums/InputFieldTypeEnum.ts +10 -0
  80. package/src/benefitCenter/index.ts +27 -0
  81. package/src/index.ts +1 -0
@@ -0,0 +1,7 @@
1
+ import { BannerActionTypeEnum } from "../enums/BannerActionTypeEnum";
2
+ export declare class BannerAction {
3
+ type: BannerActionTypeEnum;
4
+ target?: string;
5
+ benefitId?: string;
6
+ metadata?: Record<string, unknown>;
7
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BannerAction = void 0;
4
+ class BannerAction {
5
+ }
6
+ exports.BannerAction = BannerAction;
@@ -0,0 +1,14 @@
1
+ import { BannerContentTypeEnum } from "../enums/BannerContentTypeEnum";
2
+ /**
3
+ * Contenido del banner ya resuelto al locale del usuario (plano, sin translations).
4
+ * El backend resuelve `translations[locale]` antes de devolverlo a la app.
5
+ * Ver doc 06 §"Manejo de Idioma".
6
+ */
7
+ export declare class BannerContent {
8
+ type: BannerContentTypeEnum;
9
+ imageUrl?: string;
10
+ html?: string;
11
+ title?: string;
12
+ subtitle?: string;
13
+ backgroundColor?: string;
14
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BannerContent = void 0;
4
+ /**
5
+ * Contenido del banner ya resuelto al locale del usuario (plano, sin translations).
6
+ * El backend resuelve `translations[locale]` antes de devolverlo a la app.
7
+ * Ver doc 06 §"Manejo de Idioma".
8
+ */
9
+ class BannerContent {
10
+ }
11
+ exports.BannerContent = BannerContent;
@@ -0,0 +1,8 @@
1
+ import { BannerContent } from "./BannerContent";
2
+ import { BannerAction } from "./BannerAction";
3
+ export declare class BannerItem {
4
+ id: string;
5
+ content: BannerContent;
6
+ sortOrder: number;
7
+ action?: BannerAction;
8
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BannerItem = void 0;
4
+ class BannerItem {
5
+ }
6
+ exports.BannerItem = BannerItem;
@@ -0,0 +1,6 @@
1
+ import { BenefitSummary } from "./BenefitSummary";
2
+ import { CatalogNode } from "./CatalogNode";
3
+ export declare class BenefitCatalogResponse {
4
+ benefit: BenefitSummary;
5
+ catalog: CatalogNode;
6
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BenefitCatalogResponse = void 0;
4
+ class BenefitCatalogResponse {
5
+ }
6
+ exports.BenefitCatalogResponse = BenefitCatalogResponse;
@@ -0,0 +1,10 @@
1
+ import { BenefitFlowEnum } from "../enums/BenefitFlowEnum";
2
+ export declare class BenefitItem {
3
+ id: string;
4
+ name: string;
5
+ description: string;
6
+ icon: string;
7
+ flow: BenefitFlowEnum;
8
+ translationKey: string;
9
+ sortOrder: number;
10
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BenefitItem = void 0;
4
+ class BenefitItem {
5
+ }
6
+ exports.BenefitItem = BenefitItem;
@@ -0,0 +1,6 @@
1
+ import { BenefitItem } from "./BenefitItem";
2
+ import { BannerItem } from "./BannerItem";
3
+ export declare class BenefitListResponse {
4
+ benefits: BenefitItem[];
5
+ banners?: BannerItem[];
6
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BenefitListResponse = void 0;
4
+ class BenefitListResponse {
5
+ }
6
+ exports.BenefitListResponse = BenefitListResponse;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * DTO propio del Centro de Beneficios para verificar una referencia antes de pagar.
3
+ *
4
+ * Reemplaza al legacy `ReferenceVerificationRequest` del dominio `servicePayment`
5
+ * (que usa `idProducto`/`idServicio` como `number` en español). El lambda del
6
+ * Centro mapea internamente a ese DTO legacy al invocar a los conectores.
7
+ *
8
+ * La respuesta sí se reusa: `ReferenceVerificationResponse` de `servicePayment`
9
+ * ya tiene los campos correctos (`validReference`, `amount`).
10
+ */
11
+ export declare class BenefitReferenceVerificationRequest {
12
+ serviceId: string;
13
+ productId: string;
14
+ reference: string;
15
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.BenefitReferenceVerificationRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /**
15
+ * DTO propio del Centro de Beneficios para verificar una referencia antes de pagar.
16
+ *
17
+ * Reemplaza al legacy `ReferenceVerificationRequest` del dominio `servicePayment`
18
+ * (que usa `idProducto`/`idServicio` como `number` en español). El lambda del
19
+ * Centro mapea internamente a ese DTO legacy al invocar a los conectores.
20
+ *
21
+ * La respuesta sí se reusa: `ReferenceVerificationResponse` de `servicePayment`
22
+ * ya tiene los campos correctos (`validReference`, `amount`).
23
+ */
24
+ class BenefitReferenceVerificationRequest {
25
+ }
26
+ exports.BenefitReferenceVerificationRequest = BenefitReferenceVerificationRequest;
27
+ __decorate([
28
+ (0, class_validator_1.IsNotEmpty)(),
29
+ (0, class_validator_1.Length)(1, 50),
30
+ __metadata("design:type", String)
31
+ ], BenefitReferenceVerificationRequest.prototype, "serviceId", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsNotEmpty)(),
34
+ (0, class_validator_1.Length)(1, 50),
35
+ __metadata("design:type", String)
36
+ ], BenefitReferenceVerificationRequest.prototype, "productId", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsNotEmpty)(),
39
+ (0, class_validator_1.Length)(1, 100),
40
+ __metadata("design:type", String)
41
+ ], BenefitReferenceVerificationRequest.prototype, "reference", void 0);
@@ -0,0 +1,7 @@
1
+ import { BenefitFlowEnum } from "../enums/BenefitFlowEnum";
2
+ export declare class BenefitSummary {
3
+ id: string;
4
+ name: string;
5
+ flow: BenefitFlowEnum;
6
+ version: string;
7
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BenefitSummary = void 0;
4
+ class BenefitSummary {
5
+ }
6
+ exports.BenefitSummary = BenefitSummary;
@@ -0,0 +1,12 @@
1
+ import { CatalogNodeTypeEnum } from "../enums/CatalogNodeTypeEnum";
2
+ import { ServiceLeaf } from "./ServiceLeaf";
3
+ export declare class CatalogNode {
4
+ id: string;
5
+ name: string;
6
+ sortOrder: number;
7
+ type: CatalogNodeTypeEnum;
8
+ logo?: string;
9
+ children?: CatalogNode[];
10
+ leafId?: string;
11
+ leaf?: ServiceLeaf;
12
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CatalogNode = void 0;
4
+ class CatalogNode {
5
+ }
6
+ exports.CatalogNode = CatalogNode;
@@ -0,0 +1,27 @@
1
+ import { ProductItem } from "./ProductItem";
2
+ import { InputSchema } from "./InputSchema";
3
+ /**
4
+ * Item de catálogo que cada conector devuelve en GET /catalog/standard.
5
+ * El CatalogTreeBuilder del Centro consume un array de estos items y arma
6
+ * el árbol de navegación agrupando por category → subcategory → (LEAF).
7
+ *
8
+ * El `moduleName` NO viene aquí — el Centro lo inyecta al armar el LEAF
9
+ * (sabe qué conector llamó).
10
+ */
11
+ export declare class ConnectorCatalogItem {
12
+ serviceId: string;
13
+ serviceName: string;
14
+ benefitId: string;
15
+ enabled: boolean;
16
+ category: string;
17
+ subcategory: string;
18
+ serviceOrder: number;
19
+ subcategoryOrder: number;
20
+ currency: string;
21
+ countryId: string;
22
+ logo?: string;
23
+ requiresReferenceVerification: boolean;
24
+ products: ProductItem[];
25
+ inputSchema: InputSchema;
26
+ updatedAt: number;
27
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConnectorCatalogItem = void 0;
4
+ /**
5
+ * Item de catálogo que cada conector devuelve en GET /catalog/standard.
6
+ * El CatalogTreeBuilder del Centro consume un array de estos items y arma
7
+ * el árbol de navegación agrupando por category → subcategory → (LEAF).
8
+ *
9
+ * El `moduleName` NO viene aquí — el Centro lo inyecta al armar el LEAF
10
+ * (sabe qué conector llamó).
11
+ */
12
+ class ConnectorCatalogItem {
13
+ }
14
+ exports.ConnectorCatalogItem = ConnectorCatalogItem;
@@ -0,0 +1,4 @@
1
+ import { ConnectorCatalogItem } from "./ConnectorCatalogItem";
2
+ export declare class ConnectorCatalogResponse {
3
+ items: ConnectorCatalogItem[];
4
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConnectorCatalogResponse = void 0;
4
+ class ConnectorCatalogResponse {
5
+ }
6
+ exports.ConnectorCatalogResponse = ConnectorCatalogResponse;
@@ -0,0 +1,13 @@
1
+ import { InputFieldTypeEnum } from "../enums/InputFieldTypeEnum";
2
+ import { SelectOption } from "./SelectOption";
3
+ export declare class InputField {
4
+ key: string;
5
+ type: InputFieldTypeEnum;
6
+ label: string;
7
+ required: boolean;
8
+ placeholder?: string;
9
+ helpImage?: string;
10
+ showHelp?: boolean;
11
+ options?: SelectOption[];
12
+ dependsOn?: string;
13
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InputField = void 0;
4
+ class InputField {
5
+ }
6
+ exports.InputField = InputField;
@@ -0,0 +1,6 @@
1
+ import { InputField } from "./InputField";
2
+ import { InputValidation } from "./InputValidation";
3
+ export declare class InputSchema {
4
+ fields: InputField[];
5
+ validations?: Record<string, InputValidation>;
6
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InputSchema = void 0;
4
+ class InputSchema {
5
+ }
6
+ exports.InputSchema = InputSchema;
@@ -0,0 +1,8 @@
1
+ export declare class InputValidation {
2
+ pattern?: string;
3
+ maxLength?: number;
4
+ minLength?: number;
5
+ min?: number;
6
+ max?: number;
7
+ hasCheckDigit?: boolean;
8
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InputValidation = void 0;
4
+ class InputValidation {
5
+ }
6
+ exports.InputValidation = InputValidation;
@@ -0,0 +1,10 @@
1
+ import { AmountTypeEnum } from "../../servicePayment";
2
+ export declare class ProductItem {
3
+ productId: string;
4
+ productName: string;
5
+ price: number;
6
+ fee: number;
7
+ amountType: AmountTypeEnum;
8
+ logo: string;
9
+ helpText: string;
10
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductItem = void 0;
4
+ class ProductItem {
5
+ }
6
+ exports.ProductItem = ProductItem;
@@ -0,0 +1,4 @@
1
+ export declare class SelectOption {
2
+ value: string;
3
+ label: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SelectOption = void 0;
4
+ class SelectOption {
5
+ }
6
+ exports.SelectOption = SelectOption;
@@ -0,0 +1,13 @@
1
+ import { ProductItem } from "./ProductItem";
2
+ import { InputSchema } from "./InputSchema";
3
+ export declare class ServiceLeaf {
4
+ leafId: string;
5
+ serviceId: string;
6
+ moduleName: string;
7
+ currency: string;
8
+ countryId: string;
9
+ requiresReferenceVerification: boolean;
10
+ products: ProductItem[];
11
+ inputSchema: InputSchema;
12
+ updatedAt: number;
13
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceLeaf = void 0;
4
+ class ServiceLeaf {
5
+ }
6
+ exports.ServiceLeaf = ServiceLeaf;
@@ -0,0 +1,6 @@
1
+ export declare enum BannerActionTypeEnum {
2
+ NAVIGATE = "NAVIGATE",
3
+ DEEPLINK = "DEEPLINK",
4
+ URL = "URL",
5
+ NONE = "NONE"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BannerActionTypeEnum = void 0;
4
+ var BannerActionTypeEnum;
5
+ (function (BannerActionTypeEnum) {
6
+ BannerActionTypeEnum["NAVIGATE"] = "NAVIGATE";
7
+ BannerActionTypeEnum["DEEPLINK"] = "DEEPLINK";
8
+ BannerActionTypeEnum["URL"] = "URL";
9
+ BannerActionTypeEnum["NONE"] = "NONE";
10
+ })(BannerActionTypeEnum || (exports.BannerActionTypeEnum = BannerActionTypeEnum = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum BannerContentTypeEnum {
2
+ IMAGE = "IMAGE",
3
+ HTML = "HTML",
4
+ TEMPLATE = "TEMPLATE"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BannerContentTypeEnum = void 0;
4
+ var BannerContentTypeEnum;
5
+ (function (BannerContentTypeEnum) {
6
+ BannerContentTypeEnum["IMAGE"] = "IMAGE";
7
+ BannerContentTypeEnum["HTML"] = "HTML";
8
+ BannerContentTypeEnum["TEMPLATE"] = "TEMPLATE";
9
+ })(BannerContentTypeEnum || (exports.BannerContentTypeEnum = BannerContentTypeEnum = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum BannerLocaleEnum {
2
+ ES = "ES",
3
+ EN = "EN"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BannerLocaleEnum = void 0;
4
+ var BannerLocaleEnum;
5
+ (function (BannerLocaleEnum) {
6
+ BannerLocaleEnum["ES"] = "ES";
7
+ BannerLocaleEnum["EN"] = "EN";
8
+ })(BannerLocaleEnum || (exports.BannerLocaleEnum = BannerLocaleEnum = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum BannerStatusEnum {
2
+ ACTIVE = "ACTIVE",
3
+ INACTIVE = "INACTIVE",
4
+ SCHEDULED = "SCHEDULED"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BannerStatusEnum = void 0;
4
+ var BannerStatusEnum;
5
+ (function (BannerStatusEnum) {
6
+ BannerStatusEnum["ACTIVE"] = "ACTIVE";
7
+ BannerStatusEnum["INACTIVE"] = "INACTIVE";
8
+ BannerStatusEnum["SCHEDULED"] = "SCHEDULED";
9
+ })(BannerStatusEnum || (exports.BannerStatusEnum = BannerStatusEnum = {}));
@@ -0,0 +1,9 @@
1
+ export declare enum BenefitFlowEnum {
2
+ TOPUPS = "TOPUPS",
3
+ BILL_PAYMENT = "BILL_PAYMENT",
4
+ CREDIT = "CREDIT",
5
+ INSURANCE = "INSURANCE",
6
+ DONATION = "DONATION",
7
+ PHARMACY = "PHARMACY",
8
+ REMITTANCE = "REMITTANCE"
9
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BenefitFlowEnum = void 0;
4
+ var BenefitFlowEnum;
5
+ (function (BenefitFlowEnum) {
6
+ BenefitFlowEnum["TOPUPS"] = "TOPUPS";
7
+ BenefitFlowEnum["BILL_PAYMENT"] = "BILL_PAYMENT";
8
+ BenefitFlowEnum["CREDIT"] = "CREDIT";
9
+ BenefitFlowEnum["INSURANCE"] = "INSURANCE";
10
+ BenefitFlowEnum["DONATION"] = "DONATION";
11
+ BenefitFlowEnum["PHARMACY"] = "PHARMACY";
12
+ BenefitFlowEnum["REMITTANCE"] = "REMITTANCE";
13
+ })(BenefitFlowEnum || (exports.BenefitFlowEnum = BenefitFlowEnum = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum CatalogNodeTypeEnum {
2
+ BRANCH = "BRANCH",
3
+ LEAF = "LEAF"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CatalogNodeTypeEnum = void 0;
4
+ var CatalogNodeTypeEnum;
5
+ (function (CatalogNodeTypeEnum) {
6
+ CatalogNodeTypeEnum["BRANCH"] = "BRANCH";
7
+ CatalogNodeTypeEnum["LEAF"] = "LEAF";
8
+ })(CatalogNodeTypeEnum || (exports.CatalogNodeTypeEnum = CatalogNodeTypeEnum = {}));
@@ -0,0 +1,10 @@
1
+ export declare enum InputFieldTypeEnum {
2
+ PHONE = "PHONE",
3
+ BARCODE = "BARCODE",
4
+ ACCOUNT_NUMBER = "ACCOUNT_NUMBER",
5
+ TEXT = "TEXT",
6
+ NUMBER = "NUMBER",
7
+ MONEY = "MONEY",
8
+ SELECT = "SELECT",
9
+ DATE = "DATE"
10
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InputFieldTypeEnum = void 0;
4
+ var InputFieldTypeEnum;
5
+ (function (InputFieldTypeEnum) {
6
+ InputFieldTypeEnum["PHONE"] = "PHONE";
7
+ InputFieldTypeEnum["BARCODE"] = "BARCODE";
8
+ InputFieldTypeEnum["ACCOUNT_NUMBER"] = "ACCOUNT_NUMBER";
9
+ InputFieldTypeEnum["TEXT"] = "TEXT";
10
+ InputFieldTypeEnum["NUMBER"] = "NUMBER";
11
+ InputFieldTypeEnum["MONEY"] = "MONEY";
12
+ InputFieldTypeEnum["SELECT"] = "SELECT";
13
+ InputFieldTypeEnum["DATE"] = "DATE";
14
+ })(InputFieldTypeEnum || (exports.InputFieldTypeEnum = InputFieldTypeEnum = {}));
@@ -0,0 +1,24 @@
1
+ export * from "./enums/BenefitFlowEnum";
2
+ export * from "./enums/CatalogNodeTypeEnum";
3
+ export * from "./enums/InputFieldTypeEnum";
4
+ export * from "./enums/BannerContentTypeEnum";
5
+ export * from "./enums/BannerActionTypeEnum";
6
+ export * from "./enums/BannerStatusEnum";
7
+ export * from "./enums/BannerLocaleEnum";
8
+ export * from "./dtos/BenefitItem";
9
+ export * from "./dtos/BenefitListResponse";
10
+ export * from "./dtos/BenefitSummary";
11
+ export * from "./dtos/CatalogNode";
12
+ export * from "./dtos/BenefitCatalogResponse";
13
+ export * from "./dtos/ProductItem";
14
+ export * from "./dtos/SelectOption";
15
+ export * from "./dtos/InputValidation";
16
+ export * from "./dtos/InputField";
17
+ export * from "./dtos/InputSchema";
18
+ export * from "./dtos/ServiceLeaf";
19
+ export * from "./dtos/BannerContent";
20
+ export * from "./dtos/BannerAction";
21
+ export * from "./dtos/BannerItem";
22
+ export * from "./dtos/BenefitReferenceVerificationRequest";
23
+ export * from "./dtos/ConnectorCatalogItem";
24
+ export * from "./dtos/ConnectorCatalogResponse";
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ //Enums
18
+ __exportStar(require("./enums/BenefitFlowEnum"), exports);
19
+ __exportStar(require("./enums/CatalogNodeTypeEnum"), exports);
20
+ __exportStar(require("./enums/InputFieldTypeEnum"), exports);
21
+ __exportStar(require("./enums/BannerContentTypeEnum"), exports);
22
+ __exportStar(require("./enums/BannerActionTypeEnum"), exports);
23
+ __exportStar(require("./enums/BannerStatusEnum"), exports);
24
+ __exportStar(require("./enums/BannerLocaleEnum"), exports);
25
+ //DTOs
26
+ __exportStar(require("./dtos/BenefitItem"), exports);
27
+ __exportStar(require("./dtos/BenefitListResponse"), exports);
28
+ __exportStar(require("./dtos/BenefitSummary"), exports);
29
+ __exportStar(require("./dtos/CatalogNode"), exports);
30
+ __exportStar(require("./dtos/BenefitCatalogResponse"), exports);
31
+ __exportStar(require("./dtos/ProductItem"), exports);
32
+ __exportStar(require("./dtos/SelectOption"), exports);
33
+ __exportStar(require("./dtos/InputValidation"), exports);
34
+ __exportStar(require("./dtos/InputField"), exports);
35
+ __exportStar(require("./dtos/InputSchema"), exports);
36
+ __exportStar(require("./dtos/ServiceLeaf"), exports);
37
+ __exportStar(require("./dtos/BannerContent"), exports);
38
+ __exportStar(require("./dtos/BannerAction"), exports);
39
+ __exportStar(require("./dtos/BannerItem"), exports);
40
+ __exportStar(require("./dtos/BenefitReferenceVerificationRequest"), exports);
41
+ __exportStar(require("./dtos/ConnectorCatalogItem"), exports);
42
+ __exportStar(require("./dtos/ConnectorCatalogResponse"), exports);
@@ -6,7 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.IsValueValid = exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
9
+ exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
10
+ exports.IsValueValid = IsValueValid;
10
11
  const class_validator_1 = require("class-validator");
11
12
  const Status_1 = require("../enums/Status");
12
13
  const UpdateKey_1 = require("../enums/UpdateKey");
@@ -70,4 +71,3 @@ function IsValueValid(validationOptions) {
70
71
  });
71
72
  };
72
73
  }
73
- exports.IsValueValid = IsValueValid;
@@ -6,7 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.IsPhoneNumberFiado = exports.IsPhoneNumberConstraint = void 0;
9
+ exports.IsPhoneNumberConstraint = void 0;
10
+ exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
10
11
  const class_validator_1 = require("class-validator");
11
12
  const regex_1 = require("../../helpers/constans/regex");
12
13
  let IsPhoneNumberConstraint = class IsPhoneNumberConstraint {
@@ -36,4 +37,3 @@ function IsPhoneNumberFiado(validationOptions) {
36
37
  });
37
38
  };
38
39
  }
39
- exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
package/bin/index.d.ts CHANGED
@@ -27,6 +27,7 @@ export * as Contract from './contract';
27
27
  export * as CreditContract from './creditContract';
28
28
  export * as P2pContact from './p2pContact';
29
29
  export * as BankAccount from './bankAccount';
30
+ export * as BenefitCenter from './benefitCenter';
30
31
  export * as Stp from './stpSpei';
31
32
  export * as BBVARst from './bbvaRst';
32
33
  export * as FraudPreventionEngine from './fraudPreventionEngine';
package/bin/index.js CHANGED
@@ -15,16 +15,26 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.Collector = exports.Pricelist = exports.Company = exports.Services = exports.AccountIssuanceBusiness = exports.AppSelectionData = exports.Device = exports.Observations = exports.IssuanceBusiness = exports.Blacklist = exports.CentralPayments = exports.Helpdesk = exports.FiadoApiResponse = exports.Auth = exports.LegalDocumentsBusiness = exports.Role = exports.STPAccount = exports.RiskProfile = exports.FraudPreventionEngine = exports.BBVARst = exports.Stp = exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Beneficiary = exports.Activity = exports.Account = exports.Crypto = void 0;
27
- exports.Sentry = exports.AiEngine = exports.Funnel = exports.TeamsConnector = exports.PlatformErrorEvents = exports.CreditEngine = exports.Credit = exports.ComissionBusiness = exports.ReferralBusiness = exports.ZendeskMessaging = exports.NotificationWS = exports.Event = exports.PayrollBusiness = exports.Cnbv = exports.DirectorySetting = exports.InvoiceCollector = void 0;
36
+ exports.Pricelist = exports.Company = exports.Services = exports.AccountIssuanceBusiness = exports.AppSelectionData = exports.Device = exports.Observations = exports.IssuanceBusiness = exports.Blacklist = exports.CentralPayments = exports.Helpdesk = exports.FiadoApiResponse = exports.Auth = exports.LegalDocumentsBusiness = exports.Role = exports.STPAccount = exports.RiskProfile = exports.FraudPreventionEngine = exports.BBVARst = exports.Stp = exports.BenefitCenter = exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Beneficiary = exports.Activity = exports.Account = exports.Crypto = void 0;
37
+ exports.Sentry = exports.AiEngine = exports.Funnel = exports.TeamsConnector = exports.PlatformErrorEvents = exports.CreditEngine = exports.Credit = exports.ComissionBusiness = exports.ReferralBusiness = exports.ZendeskMessaging = exports.NotificationWS = exports.Event = exports.PayrollBusiness = exports.Cnbv = exports.DirectorySetting = exports.InvoiceCollector = exports.Collector = void 0;
28
38
  exports.Crypto = __importStar(require("./crypto"));
29
39
  exports.Account = __importStar(require("./account"));
30
40
  exports.Activity = __importStar(require("./activity"));
@@ -54,6 +64,7 @@ exports.Contract = __importStar(require("./contract"));
54
64
  exports.CreditContract = __importStar(require("./creditContract"));
55
65
  exports.P2pContact = __importStar(require("./p2pContact"));
56
66
  exports.BankAccount = __importStar(require("./bankAccount"));
67
+ exports.BenefitCenter = __importStar(require("./benefitCenter"));
57
68
  exports.Stp = __importStar(require("./stpSpei"));
58
69
  exports.BBVARst = __importStar(require("./bbvaRst"));
59
70
  exports.FraudPreventionEngine = __importStar(require("./fraudPreventionEngine"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.1.28",
3
+ "version": "3.1.30",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,8 @@
1
+ import { BannerActionTypeEnum } from "../enums/BannerActionTypeEnum";
2
+
3
+ export class BannerAction {
4
+ type: BannerActionTypeEnum;
5
+ target?: string;
6
+ benefitId?: string;
7
+ metadata?: Record<string, unknown>;
8
+ }
@@ -0,0 +1,15 @@
1
+ import { BannerContentTypeEnum } from "../enums/BannerContentTypeEnum";
2
+
3
+ /**
4
+ * Contenido del banner ya resuelto al locale del usuario (plano, sin translations).
5
+ * El backend resuelve `translations[locale]` antes de devolverlo a la app.
6
+ * Ver doc 06 §"Manejo de Idioma".
7
+ */
8
+ export class BannerContent {
9
+ type: BannerContentTypeEnum;
10
+ imageUrl?: string; // Si type === IMAGE
11
+ html?: string; // Si type === HTML
12
+ title?: string; // Si type === TEMPLATE
13
+ subtitle?: string; // Si type === TEMPLATE
14
+ backgroundColor?: string; // Si type === TEMPLATE
15
+ }
@@ -0,0 +1,9 @@
1
+ import { BannerContent } from "./BannerContent";
2
+ import { BannerAction } from "./BannerAction";
3
+
4
+ export class BannerItem {
5
+ id: string;
6
+ content: BannerContent;
7
+ sortOrder: number;
8
+ action?: BannerAction;
9
+ }
@@ -0,0 +1,7 @@
1
+ import { BenefitSummary } from "./BenefitSummary";
2
+ import { CatalogNode } from "./CatalogNode";
3
+
4
+ export class BenefitCatalogResponse {
5
+ benefit: BenefitSummary;
6
+ catalog: CatalogNode;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { BenefitFlowEnum } from "../enums/BenefitFlowEnum";
2
+
3
+ export class BenefitItem {
4
+ id: string;
5
+ name: string;
6
+ description: string;
7
+ icon: string;
8
+ flow: BenefitFlowEnum;
9
+ translationKey: string;
10
+ sortOrder: number;
11
+ }
@@ -0,0 +1,7 @@
1
+ import { BenefitItem } from "./BenefitItem";
2
+ import { BannerItem } from "./BannerItem";
3
+
4
+ export class BenefitListResponse {
5
+ benefits: BenefitItem[];
6
+ banners?: BannerItem[];
7
+ }
@@ -0,0 +1,25 @@
1
+ import { IsNotEmpty, Length } from "class-validator";
2
+
3
+ /**
4
+ * DTO propio del Centro de Beneficios para verificar una referencia antes de pagar.
5
+ *
6
+ * Reemplaza al legacy `ReferenceVerificationRequest` del dominio `servicePayment`
7
+ * (que usa `idProducto`/`idServicio` como `number` en español). El lambda del
8
+ * Centro mapea internamente a ese DTO legacy al invocar a los conectores.
9
+ *
10
+ * La respuesta sí se reusa: `ReferenceVerificationResponse` de `servicePayment`
11
+ * ya tiene los campos correctos (`validReference`, `amount`).
12
+ */
13
+ export class BenefitReferenceVerificationRequest {
14
+ @IsNotEmpty()
15
+ @Length(1, 50)
16
+ serviceId: string;
17
+
18
+ @IsNotEmpty()
19
+ @Length(1, 50)
20
+ productId: string;
21
+
22
+ @IsNotEmpty()
23
+ @Length(1, 100)
24
+ reference: string;
25
+ }
@@ -0,0 +1,8 @@
1
+ import { BenefitFlowEnum } from "../enums/BenefitFlowEnum";
2
+
3
+ export class BenefitSummary {
4
+ id: string;
5
+ name: string;
6
+ flow: BenefitFlowEnum;
7
+ version: string;
8
+ }
@@ -0,0 +1,13 @@
1
+ import { CatalogNodeTypeEnum } from "../enums/CatalogNodeTypeEnum";
2
+ import { ServiceLeaf } from "./ServiceLeaf";
3
+
4
+ export class CatalogNode {
5
+ id: string;
6
+ name: string;
7
+ sortOrder: number;
8
+ type: CatalogNodeTypeEnum;
9
+ logo?: string;
10
+ children?: CatalogNode[]; // Solo si type === BRANCH
11
+ leafId?: string; // Solo si type === LEAF
12
+ leaf?: ServiceLeaf; // Solo si type === LEAF y el árbol es trivial (doc 07)
13
+ }
@@ -0,0 +1,35 @@
1
+ import { ProductItem } from "./ProductItem";
2
+ import { InputSchema } from "./InputSchema";
3
+
4
+ /**
5
+ * Item de catálogo que cada conector devuelve en GET /catalog/standard.
6
+ * El CatalogTreeBuilder del Centro consume un array de estos items y arma
7
+ * el árbol de navegación agrupando por category → subcategory → (LEAF).
8
+ *
9
+ * El `moduleName` NO viene aquí — el Centro lo inyecta al armar el LEAF
10
+ * (sabe qué conector llamó).
11
+ */
12
+ export class ConnectorCatalogItem {
13
+ // Identidad
14
+ serviceId: string;
15
+ serviceName: string;
16
+ benefitId: string; // "ben-3", "ben-6"
17
+ enabled: boolean;
18
+
19
+ // Navegación (usado por el CatalogTreeBuilder para armar BRANCHes)
20
+ category: string; // "RECARGA", "AGUA"
21
+ subcategory: string; // "TELCEL", "CESPM"
22
+ serviceOrder: number; // orden del LEAF dentro del subcategory
23
+ subcategoryOrder: number; // orden del subcategory dentro del category
24
+
25
+ // Data operacional
26
+ currency: string; // "USD", "MXN"
27
+ countryId: string; // ISO numérico
28
+ logo?: string;
29
+
30
+ // Data del leaf
31
+ requiresReferenceVerification: boolean;
32
+ products: ProductItem[];
33
+ inputSchema: InputSchema;
34
+ updatedAt: number;
35
+ }
@@ -0,0 +1,5 @@
1
+ import { ConnectorCatalogItem } from "./ConnectorCatalogItem";
2
+
3
+ export class ConnectorCatalogResponse {
4
+ items: ConnectorCatalogItem[];
5
+ }
@@ -0,0 +1,14 @@
1
+ import { InputFieldTypeEnum } from "../enums/InputFieldTypeEnum";
2
+ import { SelectOption } from "./SelectOption";
3
+
4
+ export class InputField {
5
+ key: string;
6
+ type: InputFieldTypeEnum;
7
+ label: string;
8
+ required: boolean;
9
+ placeholder?: string;
10
+ helpImage?: string;
11
+ showHelp?: boolean;
12
+ options?: SelectOption[];
13
+ dependsOn?: string;
14
+ }
@@ -0,0 +1,7 @@
1
+ import { InputField } from "./InputField";
2
+ import { InputValidation } from "./InputValidation";
3
+
4
+ export class InputSchema {
5
+ fields: InputField[];
6
+ validations?: Record<string, InputValidation>;
7
+ }
@@ -0,0 +1,8 @@
1
+ export class InputValidation {
2
+ pattern?: string;
3
+ maxLength?: number;
4
+ minLength?: number;
5
+ min?: number;
6
+ max?: number;
7
+ hasCheckDigit?: boolean;
8
+ }
@@ -0,0 +1,11 @@
1
+ import { AmountTypeEnum } from "../../servicePayment";
2
+
3
+ export class ProductItem {
4
+ productId: string;
5
+ productName: string;
6
+ price: number;
7
+ fee: number;
8
+ amountType: AmountTypeEnum;
9
+ logo: string;
10
+ helpText: string;
11
+ }
@@ -0,0 +1,4 @@
1
+ export class SelectOption {
2
+ value: string;
3
+ label: string;
4
+ }
@@ -0,0 +1,14 @@
1
+ import { ProductItem } from "./ProductItem";
2
+ import { InputSchema } from "./InputSchema";
3
+
4
+ export class ServiceLeaf {
5
+ leafId: string;
6
+ serviceId: string;
7
+ moduleName: string;
8
+ currency: string;
9
+ countryId: string;
10
+ requiresReferenceVerification: boolean;
11
+ products: ProductItem[];
12
+ inputSchema: InputSchema;
13
+ updatedAt: number;
14
+ }
@@ -0,0 +1,6 @@
1
+ export enum BannerActionTypeEnum {
2
+ NAVIGATE = "NAVIGATE",
3
+ DEEPLINK = "DEEPLINK",
4
+ URL = "URL",
5
+ NONE = "NONE",
6
+ }
@@ -0,0 +1,5 @@
1
+ export enum BannerContentTypeEnum {
2
+ IMAGE = "IMAGE",
3
+ HTML = "HTML",
4
+ TEMPLATE = "TEMPLATE",
5
+ }
@@ -0,0 +1,4 @@
1
+ export enum BannerLocaleEnum {
2
+ ES = "ES",
3
+ EN = "EN",
4
+ }
@@ -0,0 +1,5 @@
1
+ export enum BannerStatusEnum {
2
+ ACTIVE = "ACTIVE",
3
+ INACTIVE = "INACTIVE",
4
+ SCHEDULED = "SCHEDULED",
5
+ }
@@ -0,0 +1,9 @@
1
+ export enum BenefitFlowEnum {
2
+ TOPUPS = "TOPUPS",
3
+ BILL_PAYMENT = "BILL_PAYMENT",
4
+ CREDIT = "CREDIT",
5
+ INSURANCE = "INSURANCE",
6
+ DONATION = "DONATION",
7
+ PHARMACY = "PHARMACY",
8
+ REMITTANCE = "REMITTANCE",
9
+ }
@@ -0,0 +1,4 @@
1
+ export enum CatalogNodeTypeEnum {
2
+ BRANCH = "BRANCH",
3
+ LEAF = "LEAF",
4
+ }
@@ -0,0 +1,10 @@
1
+ export enum InputFieldTypeEnum {
2
+ PHONE = "PHONE",
3
+ BARCODE = "BARCODE",
4
+ ACCOUNT_NUMBER = "ACCOUNT_NUMBER",
5
+ TEXT = "TEXT",
6
+ NUMBER = "NUMBER",
7
+ MONEY = "MONEY",
8
+ SELECT = "SELECT",
9
+ DATE = "DATE",
10
+ }
@@ -0,0 +1,27 @@
1
+ //Enums
2
+ export * from "./enums/BenefitFlowEnum";
3
+ export * from "./enums/CatalogNodeTypeEnum";
4
+ export * from "./enums/InputFieldTypeEnum";
5
+ export * from "./enums/BannerContentTypeEnum";
6
+ export * from "./enums/BannerActionTypeEnum";
7
+ export * from "./enums/BannerStatusEnum";
8
+ export * from "./enums/BannerLocaleEnum";
9
+
10
+ //DTOs
11
+ export * from "./dtos/BenefitItem";
12
+ export * from "./dtos/BenefitListResponse";
13
+ export * from "./dtos/BenefitSummary";
14
+ export * from "./dtos/CatalogNode";
15
+ export * from "./dtos/BenefitCatalogResponse";
16
+ export * from "./dtos/ProductItem";
17
+ export * from "./dtos/SelectOption";
18
+ export * from "./dtos/InputValidation";
19
+ export * from "./dtos/InputField";
20
+ export * from "./dtos/InputSchema";
21
+ export * from "./dtos/ServiceLeaf";
22
+ export * from "./dtos/BannerContent";
23
+ export * from "./dtos/BannerAction";
24
+ export * from "./dtos/BannerItem";
25
+ export * from "./dtos/BenefitReferenceVerificationRequest";
26
+ export * from "./dtos/ConnectorCatalogItem";
27
+ export * from "./dtos/ConnectorCatalogResponse";
package/src/index.ts CHANGED
@@ -27,6 +27,7 @@ export * as Contract from './contract';
27
27
  export * as CreditContract from './creditContract';
28
28
  export * as P2pContact from './p2pContact';
29
29
  export * as BankAccount from './bankAccount';
30
+ export * as BenefitCenter from './benefitCenter';
30
31
  export * as Stp from './stpSpei';
31
32
  export * as BBVARst from './bbvaRst';
32
33
  export * as FraudPreventionEngine from './fraudPreventionEngine';