@fiado/type-kit 3.175.0 → 3.177.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.
Files changed (108) hide show
  1. package/_test_/unit/modelias/ModeliasScoreRequestDto.test.ts +25 -0
  2. package/_test_/unit/platformRbac/auth/PrepareChallengeRequest.test.ts +1 -1
  3. package/bin/index.d.ts +2 -0
  4. package/bin/index.js +8 -1
  5. package/bin/modelias/ModeliasScoreRequestDto.d.ts +15 -0
  6. package/bin/modelias/ModeliasScoreRequestDto.js +53 -0
  7. package/bin/modelias/ModeliasScoreResponseDto.d.ts +25 -0
  8. package/bin/modelias/ModeliasScoreResponseDto.js +12 -0
  9. package/bin/modelias/index.d.ts +2 -0
  10. package/bin/{rbac → modelias}/index.js +2 -1
  11. package/bin/passport/dtos/GetPassportPaymentRequest.d.ts +8 -0
  12. package/bin/{walletFunding/dtos/CancelWalletFundingRequest.js → passport/dtos/GetPassportPaymentRequest.js} +9 -4
  13. package/bin/passport/dtos/GetPassportPaymentResponse.d.ts +17 -0
  14. package/bin/passport/dtos/GetPassportPaymentResponse.js +11 -0
  15. package/bin/passport/dtos/GetPassportServiceStateResponse.d.ts +11 -0
  16. package/bin/passport/dtos/GetPassportServiceStateResponse.js +13 -0
  17. package/bin/passport/dtos/ListPassportAlertsRequest.d.ts +5 -0
  18. package/bin/{walletFunding/dtos/CancelFundingReferenceRequest.js → passport/dtos/ListPassportAlertsRequest.js} +7 -16
  19. package/bin/passport/dtos/ListPassportAlertsResponse.d.ts +6 -0
  20. package/bin/passport/dtos/ListPassportAlertsResponse.js +6 -0
  21. package/bin/passport/dtos/ListPassportPaymentsRequest.d.ts +33 -0
  22. package/bin/passport/dtos/ListPassportPaymentsRequest.js +87 -0
  23. package/bin/passport/dtos/ListPassportPaymentsResponse.d.ts +12 -0
  24. package/bin/passport/dtos/ListPassportPaymentsResponse.js +6 -0
  25. package/bin/passport/dtos/index.d.ts +7 -0
  26. package/bin/passport/dtos/index.js +23 -0
  27. package/bin/passport/entities/PassportAlertRow.d.ts +28 -0
  28. package/bin/passport/entities/PassportAlertRow.js +15 -0
  29. package/bin/passport/entities/PassportAlertTotals.d.ts +10 -0
  30. package/bin/passport/entities/PassportAlertTotals.js +9 -0
  31. package/bin/passport/entities/PassportClientInfo.d.ts +15 -0
  32. package/bin/passport/entities/PassportClientInfo.js +11 -0
  33. package/bin/passport/entities/PassportPaymentRow.d.ts +41 -0
  34. package/bin/passport/entities/PassportPaymentRow.js +13 -0
  35. package/bin/passport/entities/PassportPaymentTotals.d.ts +19 -0
  36. package/bin/passport/entities/PassportPaymentTotals.js +11 -0
  37. package/bin/passport/entities/PassportReferenceInfo.d.ts +20 -0
  38. package/bin/passport/entities/PassportReferenceInfo.js +11 -0
  39. package/bin/passport/entities/PassportServiceState.d.ts +19 -0
  40. package/bin/passport/entities/PassportServiceState.js +11 -0
  41. package/bin/passport/entities/index.d.ts +7 -0
  42. package/bin/passport/entities/index.js +23 -0
  43. package/bin/passport/enums/PassportAlertSeverityEnum.d.ts +16 -0
  44. package/bin/passport/enums/PassportAlertSeverityEnum.js +20 -0
  45. package/bin/passport/enums/PassportAlertStatusEnum.d.ts +13 -0
  46. package/bin/passport/enums/PassportAlertStatusEnum.js +17 -0
  47. package/bin/passport/enums/PassportAlertTypeEnum.d.ts +19 -0
  48. package/bin/passport/enums/PassportAlertTypeEnum.js +23 -0
  49. package/bin/passport/enums/PassportPaymentSortColEnum.d.ts +14 -0
  50. package/bin/passport/enums/PassportPaymentSortColEnum.js +18 -0
  51. package/bin/passport/enums/SortDirEnum.d.ts +8 -0
  52. package/bin/passport/enums/SortDirEnum.js +12 -0
  53. package/bin/passport/enums/index.d.ts +5 -0
  54. package/bin/passport/enums/index.js +21 -0
  55. package/bin/passport/index.d.ts +3 -0
  56. package/bin/passport/index.js +19 -0
  57. package/bin/platformRbac/dtos/ResendOtpRequest.d.ts +22 -0
  58. package/bin/{walletFunding/dtos/CancelFundingRequest.js → platformRbac/dtos/ResendOtpRequest.js} +16 -13
  59. package/bin/platformRbac/dtos/ResendSelfRegisterOtpRequest.d.ts +11 -0
  60. package/bin/{cognitoBackofficeConnector/dtos/MfaPoolConfig.js → platformRbac/dtos/ResendSelfRegisterOtpRequest.js} +18 -18
  61. package/package.json +1 -1
  62. package/src/index.ts +7 -0
  63. package/src/modelias/ModeliasScoreRequestDto.ts +29 -0
  64. package/src/modelias/ModeliasScoreResponseDto.ts +26 -0
  65. package/src/modelias/index.ts +2 -0
  66. package/src/passport/dtos/GetPassportPaymentRequest.ts +10 -0
  67. package/src/passport/dtos/GetPassportPaymentResponse.ts +18 -0
  68. package/src/passport/dtos/GetPassportServiceStateResponse.ts +12 -0
  69. package/src/passport/dtos/ListPassportAlertsRequest.ts +7 -0
  70. package/src/passport/dtos/ListPassportAlertsResponse.ts +7 -0
  71. package/src/passport/dtos/ListPassportPaymentsRequest.ts +47 -0
  72. package/src/passport/dtos/ListPassportPaymentsResponse.ts +13 -0
  73. package/src/passport/dtos/index.ts +7 -0
  74. package/src/passport/entities/PassportAlertRow.ts +29 -0
  75. package/src/passport/entities/PassportAlertTotals.ts +10 -0
  76. package/src/passport/entities/PassportClientInfo.ts +16 -0
  77. package/src/passport/entities/PassportPaymentRow.ts +42 -0
  78. package/src/passport/entities/PassportPaymentTotals.ts +19 -0
  79. package/src/passport/entities/PassportReferenceInfo.ts +21 -0
  80. package/src/passport/entities/PassportServiceState.ts +20 -0
  81. package/src/passport/entities/index.ts +7 -0
  82. package/src/passport/enums/PassportAlertSeverityEnum.ts +16 -0
  83. package/src/passport/enums/PassportAlertStatusEnum.ts +13 -0
  84. package/src/passport/enums/PassportAlertTypeEnum.ts +19 -0
  85. package/src/passport/enums/PassportPaymentSortColEnum.ts +14 -0
  86. package/src/passport/enums/SortDirEnum.ts +8 -0
  87. package/src/passport/enums/index.ts +5 -0
  88. package/src/passport/index.ts +3 -0
  89. package/src/platformRbac/auth/PrepareChallengeRequest.ts +1 -1
  90. package/bin/cognitoBackofficeConnector/dtos/MfaPoolConfig.d.ts +0 -7
  91. package/bin/cognitoBackofficeConnector/dtos/PoolConfigResponse.d.ts +0 -20
  92. package/bin/cognitoBackofficeConnector/dtos/PoolConfigResponse.js +0 -11
  93. package/bin/cognitoBackofficeConnector/dtos/PoolsListResponse.d.ts +0 -4
  94. package/bin/cognitoBackofficeConnector/dtos/PoolsListResponse.js +0 -6
  95. package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.d.ts +0 -17
  96. package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.js +0 -39
  97. package/bin/rbac/enums/PoolKind.d.ts +0 -16
  98. package/bin/rbac/enums/PoolKind.js +0 -20
  99. package/bin/rbac/index.d.ts +0 -1
  100. package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +0 -5
  101. package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +0 -7
  102. package/bin/walletFunding/dtos/CancelFundingReferenceResponse.js +0 -6
  103. package/bin/walletFunding/dtos/CancelFundingRequest.d.ts +0 -11
  104. package/bin/walletFunding/dtos/CancelFundingResponse.d.ts +0 -14
  105. package/bin/walletFunding/dtos/CancelFundingResponse.js +0 -12
  106. package/bin/walletFunding/dtos/CancelWalletFundingRequest.d.ts +0 -3
  107. package/bin/walletFunding/dtos/CancelWalletFundingResponse.d.ts +0 -7
  108. package/bin/walletFunding/dtos/CancelWalletFundingResponse.js +0 -6
@@ -0,0 +1,41 @@
1
+ import { WalletFundingPaymentStatusEnum } from "../../walletFunding/enums/WalletFundingPaymentStatusEnum";
2
+ /**
3
+ * Fila desnormalizada de un pago Cash In que la pantalla operativa del
4
+ * BackOffice consume en la tabla de Actividad / Problemas.
5
+ *
6
+ * Combina lo mínimo de `EqualityFundingPayment_GT`, `EqualityFundingReference_GT`
7
+ * y `AccountPagoConfiado_GT` para renderizar la fila sin joins en el cliente.
8
+ */
9
+ export declare class PassportPaymentRow {
10
+ /** ID del pago tal como lo emite el proveedor (equalityTransactionNumber). */
11
+ paymentId: string;
12
+ /** DirectoryId del Cliente Fiado. */
13
+ clientId: string;
14
+ /** Nombre visible del Cliente Fiado — desnormalizado desde AccountPagoConfiado. */
15
+ clientName: string;
16
+ /** ID del centro de pago (proveedor). */
17
+ centerId: string;
18
+ /** Nombre visible del centro (Oxxo, 7-Eleven, Kiosko, etc.). */
19
+ centerName: string;
20
+ /** ID interno de la Referencia usada para el pago. */
21
+ referenceId: string;
22
+ /** Código de Referencia visible al Cliente (13-15 caracteres, ej. SKP-100003). */
23
+ referenceCode: string;
24
+ /** ISO datetime de la consulta / primer aviso del pago. */
25
+ date: string;
26
+ /** Monto bruto entregado en el punto de pago (puede ser null en estados terminales sin monto). */
27
+ grossAmount?: number | null;
28
+ /** Comisión del proveedor. Puede ser null si aún no se calculó. */
29
+ commission?: number | null;
30
+ /** Monto neto acreditado al wallet CFPE del Cliente. */
31
+ netAmount?: number | null;
32
+ status: WalletFundingPaymentStatusEnum;
33
+ /** ISO datetime del momento en que el pago quedó APPLIED. */
34
+ appliedAt?: string | null;
35
+ /** Código del rechazo cuando status = REJECTED/FAILED/QUEUED_FOR_REFUND. */
36
+ rejectionCode?: string | null;
37
+ /** Folio de autorización devuelto al proveedor cuando aplica. */
38
+ providerAuthorizationCode?: string | null;
39
+ /** Nombre lógico del proveedor que originó el pago (equality | stp | ...). */
40
+ provider: string;
41
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PassportPaymentRow = void 0;
4
+ /**
5
+ * Fila desnormalizada de un pago Cash In que la pantalla operativa del
6
+ * BackOffice consume en la tabla de Actividad / Problemas.
7
+ *
8
+ * Combina lo mínimo de `EqualityFundingPayment_GT`, `EqualityFundingReference_GT`
9
+ * y `AccountPagoConfiado_GT` para renderizar la fila sin joins en el cliente.
10
+ */
11
+ class PassportPaymentRow {
12
+ }
13
+ exports.PassportPaymentRow = PassportPaymentRow;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Agregados del subconjunto de pagos que matchean los filtros del toolbar
3
+ * — se calculan sobre TODO el subconjunto, no sobre la página.
4
+ * Alimenta los sublabels de los tabs Actividad y Problemas.
5
+ */
6
+ export declare class PassportPaymentTotals {
7
+ /** Total de pagos en el subconjunto. */
8
+ count: number;
9
+ /** Suma del monto bruto. */
10
+ grossSum: number;
11
+ /** Suma del monto neto acreditado. */
12
+ netSum: number;
13
+ /**
14
+ * Suma del monto bruto de los pagos con problema en el subconjunto
15
+ * (stuck consultados + queued for refund). Alimenta el sublabel
16
+ * "$X en riesgo" del tab Problemas.
17
+ */
18
+ atRiskSum: number;
19
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PassportPaymentTotals = void 0;
4
+ /**
5
+ * Agregados del subconjunto de pagos que matchean los filtros del toolbar
6
+ * — se calculan sobre TODO el subconjunto, no sobre la página.
7
+ * Alimenta los sublabels de los tabs Actividad y Problemas.
8
+ */
9
+ class PassportPaymentTotals {
10
+ }
11
+ exports.PassportPaymentTotals = PassportPaymentTotals;
@@ -0,0 +1,20 @@
1
+ import { WalletFundingReferenceStatusEnum } from "../../walletFunding/enums/WalletFundingReferenceStatusEnum";
2
+ import { WalletFundingModeEnum } from "../../walletFunding/enums/WalletFundingModeEnum";
3
+ /**
4
+ * Datos de la Referencia asociada a un pago — se muestra en el modal de
5
+ * detalle del BackOffice para que Servicio a Clientes le explique al
6
+ * Cliente qué Referencia usó, cuándo se generó y cuándo vence.
7
+ */
8
+ export declare class PassportReferenceInfo {
9
+ referenceId: string;
10
+ /** Código visible al Cliente. */
11
+ referenceCode: string;
12
+ centerId: string;
13
+ centerName: string;
14
+ createdAt: string;
15
+ expiresAt: string;
16
+ status: WalletFundingReferenceStatusEnum;
17
+ /** Monto de la Referencia. Puede ser null cuando el mode es OPEN. */
18
+ amount?: number | null;
19
+ mode: WalletFundingModeEnum;
20
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PassportReferenceInfo = void 0;
4
+ /**
5
+ * Datos de la Referencia asociada a un pago — se muestra en el modal de
6
+ * detalle del BackOffice para que Servicio a Clientes le explique al
7
+ * Cliente qué Referencia usó, cuándo se generó y cuándo vence.
8
+ */
9
+ class PassportReferenceInfo {
10
+ }
11
+ exports.PassportReferenceInfo = PassportReferenceInfo;
@@ -0,0 +1,19 @@
1
+ import { ServiceStateEnum } from "../../walletFunding/enums/ServiceStateEnum";
2
+ /**
3
+ * Estado global del servicio Cash In para el widget del Cap en el header
4
+ * del BackOffice. Se calcula desde `AggregateExposureState_GT` + el snapshot
5
+ * del monto reservado en el momento del pedido.
6
+ */
7
+ export declare class PassportServiceState {
8
+ /** Tope prudencial FSA. */
9
+ capThreshold: number;
10
+ /** Monto actualmente reservado contra el cap. */
11
+ currentExposureAmount: number;
12
+ /** Umbral a partir del cual se activa el semáforo ámbar. */
13
+ alertThreshold: number;
14
+ /** Umbral para reactivar el servicio tras SUSPENDED. */
15
+ reactivationThreshold: number;
16
+ serviceState: ServiceStateEnum;
17
+ /** Porcentaje del cap usado (0-100+, calculado en el manager). */
18
+ usedPct: number;
19
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PassportServiceState = void 0;
4
+ /**
5
+ * Estado global del servicio Cash In para el widget del Cap en el header
6
+ * del BackOffice. Se calcula desde `AggregateExposureState_GT` + el snapshot
7
+ * del monto reservado en el momento del pedido.
8
+ */
9
+ class PassportServiceState {
10
+ }
11
+ exports.PassportServiceState = PassportServiceState;
@@ -0,0 +1,7 @@
1
+ export * from "./PassportAlertRow";
2
+ export * from "./PassportAlertTotals";
3
+ export * from "./PassportClientInfo";
4
+ export * from "./PassportPaymentRow";
5
+ export * from "./PassportPaymentTotals";
6
+ export * from "./PassportReferenceInfo";
7
+ export * from "./PassportServiceState";
@@ -0,0 +1,23 @@
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
+ __exportStar(require("./PassportAlertRow"), exports);
18
+ __exportStar(require("./PassportAlertTotals"), exports);
19
+ __exportStar(require("./PassportClientInfo"), exports);
20
+ __exportStar(require("./PassportPaymentRow"), exports);
21
+ __exportStar(require("./PassportPaymentTotals"), exports);
22
+ __exportStar(require("./PassportReferenceInfo"), exports);
23
+ __exportStar(require("./PassportServiceState"), exports);
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Severidad de una alerta operativa del servicio Cash In (Passport).
3
+ *
4
+ * Se usa para colorear el pill en la tabla de alertas del BackOffice y para
5
+ * priorizar la atención de Servicio a Clientes.
6
+ */
7
+ export declare enum PassportAlertSeverityEnum {
8
+ /** Info — evento notable pero sin acción requerida. */
9
+ LOW = "LOW",
10
+ /** Requiere revisión en el día. */
11
+ MEDIUM = "MEDIUM",
12
+ /** Requiere atención inmediata de Servicio a Clientes. */
13
+ HIGH = "HIGH",
14
+ /** Servicio caído o riesgo operativo mayor — escalar a Operaciones. */
15
+ CRITICAL = "CRITICAL"
16
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PassportAlertSeverityEnum = void 0;
4
+ /**
5
+ * Severidad de una alerta operativa del servicio Cash In (Passport).
6
+ *
7
+ * Se usa para colorear el pill en la tabla de alertas del BackOffice y para
8
+ * priorizar la atención de Servicio a Clientes.
9
+ */
10
+ var PassportAlertSeverityEnum;
11
+ (function (PassportAlertSeverityEnum) {
12
+ /** Info — evento notable pero sin acción requerida. */
13
+ PassportAlertSeverityEnum["LOW"] = "LOW";
14
+ /** Requiere revisión en el día. */
15
+ PassportAlertSeverityEnum["MEDIUM"] = "MEDIUM";
16
+ /** Requiere atención inmediata de Servicio a Clientes. */
17
+ PassportAlertSeverityEnum["HIGH"] = "HIGH";
18
+ /** Servicio caído o riesgo operativo mayor — escalar a Operaciones. */
19
+ PassportAlertSeverityEnum["CRITICAL"] = "CRITICAL";
20
+ })(PassportAlertSeverityEnum || (exports.PassportAlertSeverityEnum = PassportAlertSeverityEnum = {}));
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Estado de una alerta operativa del servicio Cash In (Passport).
3
+ *
4
+ * En la Fase 1 (alertas calculadas al vuelo) solo existen alertas OPEN — no
5
+ * hay ciclo de resolución explícito. Cuando el manager vuelve a correr y la
6
+ * condición ya no aplica, la alerta desaparece de la lista.
7
+ */
8
+ export declare enum PassportAlertStatusEnum {
9
+ /** Condición activa — Servicio a Clientes debe verla. */
10
+ OPEN = "OPEN",
11
+ /** Condición ya resuelta — solo aparece en históricos (Fase 2). */
12
+ RESOLVED = "RESOLVED"
13
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PassportAlertStatusEnum = void 0;
4
+ /**
5
+ * Estado de una alerta operativa del servicio Cash In (Passport).
6
+ *
7
+ * En la Fase 1 (alertas calculadas al vuelo) solo existen alertas OPEN — no
8
+ * hay ciclo de resolución explícito. Cuando el manager vuelve a correr y la
9
+ * condición ya no aplica, la alerta desaparece de la lista.
10
+ */
11
+ var PassportAlertStatusEnum;
12
+ (function (PassportAlertStatusEnum) {
13
+ /** Condición activa — Servicio a Clientes debe verla. */
14
+ PassportAlertStatusEnum["OPEN"] = "OPEN";
15
+ /** Condición ya resuelta — solo aparece en históricos (Fase 2). */
16
+ PassportAlertStatusEnum["RESOLVED"] = "RESOLVED";
17
+ })(PassportAlertStatusEnum || (exports.PassportAlertStatusEnum = PassportAlertStatusEnum = {}));
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Tipos de alerta que puede generar el servicio Cash In (Passport).
3
+ *
4
+ * En la Fase 1 las alertas se calculan al vuelo desde el estado de los
5
+ * pagos y del cap agregado — no hay tabla persistida. Cuando se materialice
6
+ * la tabla, el mismo enum se usa como discriminador de la fila.
7
+ */
8
+ export declare enum PassportAlertTypeEnum {
9
+ /** Pago en CONSULTED sin transicionar a APPLIED/REJECTED tras el umbral. */
10
+ PAYMENT_STUCK = "PAYMENT_STUCK",
11
+ /** Pago en QUEUED_FOR_REFUND — cliente ya gastó el dinero, Ops resuelve. */
12
+ PAYMENT_QUEUED_FOR_REFUND = "PAYMENT_QUEUED_FOR_REFUND",
13
+ /** Servicio Cash In suspendido — cap agregado alcanzado. */
14
+ SERVICE_SUSPENDED = "SERVICE_SUSPENDED",
15
+ /** Exposición ≥ 80% del cap — cerca del umbral de suspensión. */
16
+ EXPOSURE_HIGH = "EXPOSURE_HIGH",
17
+ /** El proveedor rechazó un pago que el connector había pre-aprobado. */
18
+ PROVIDER_REJECTED_APPROVED = "PROVIDER_REJECTED_APPROVED"
19
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PassportAlertTypeEnum = void 0;
4
+ /**
5
+ * Tipos de alerta que puede generar el servicio Cash In (Passport).
6
+ *
7
+ * En la Fase 1 las alertas se calculan al vuelo desde el estado de los
8
+ * pagos y del cap agregado — no hay tabla persistida. Cuando se materialice
9
+ * la tabla, el mismo enum se usa como discriminador de la fila.
10
+ */
11
+ var PassportAlertTypeEnum;
12
+ (function (PassportAlertTypeEnum) {
13
+ /** Pago en CONSULTED sin transicionar a APPLIED/REJECTED tras el umbral. */
14
+ PassportAlertTypeEnum["PAYMENT_STUCK"] = "PAYMENT_STUCK";
15
+ /** Pago en QUEUED_FOR_REFUND — cliente ya gastó el dinero, Ops resuelve. */
16
+ PassportAlertTypeEnum["PAYMENT_QUEUED_FOR_REFUND"] = "PAYMENT_QUEUED_FOR_REFUND";
17
+ /** Servicio Cash In suspendido — cap agregado alcanzado. */
18
+ PassportAlertTypeEnum["SERVICE_SUSPENDED"] = "SERVICE_SUSPENDED";
19
+ /** Exposición ≥ 80% del cap — cerca del umbral de suspensión. */
20
+ PassportAlertTypeEnum["EXPOSURE_HIGH"] = "EXPOSURE_HIGH";
21
+ /** El proveedor rechazó un pago que el connector había pre-aprobado. */
22
+ PassportAlertTypeEnum["PROVIDER_REJECTED_APPROVED"] = "PROVIDER_REJECTED_APPROVED";
23
+ })(PassportAlertTypeEnum || (exports.PassportAlertTypeEnum = PassportAlertTypeEnum = {}));
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Columnas ordenables de la tabla de pagos del BackOffice (Passport).
3
+ * Refleja el `sortBy` query param del endpoint GET /backoffice/passport/payments.
4
+ */
5
+ export declare enum PassportPaymentSortColEnum {
6
+ DATE = "date",
7
+ CLIENT_NAME = "clientName",
8
+ CENTER_NAME = "centerName",
9
+ REFERENCE_CODE = "referenceCode",
10
+ GROSS_AMOUNT = "grossAmount",
11
+ COMMISSION = "commission",
12
+ NET_AMOUNT = "netAmount",
13
+ STATUS = "status"
14
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PassportPaymentSortColEnum = void 0;
4
+ /**
5
+ * Columnas ordenables de la tabla de pagos del BackOffice (Passport).
6
+ * Refleja el `sortBy` query param del endpoint GET /backoffice/passport/payments.
7
+ */
8
+ var PassportPaymentSortColEnum;
9
+ (function (PassportPaymentSortColEnum) {
10
+ PassportPaymentSortColEnum["DATE"] = "date";
11
+ PassportPaymentSortColEnum["CLIENT_NAME"] = "clientName";
12
+ PassportPaymentSortColEnum["CENTER_NAME"] = "centerName";
13
+ PassportPaymentSortColEnum["REFERENCE_CODE"] = "referenceCode";
14
+ PassportPaymentSortColEnum["GROSS_AMOUNT"] = "grossAmount";
15
+ PassportPaymentSortColEnum["COMMISSION"] = "commission";
16
+ PassportPaymentSortColEnum["NET_AMOUNT"] = "netAmount";
17
+ PassportPaymentSortColEnum["STATUS"] = "status";
18
+ })(PassportPaymentSortColEnum || (exports.PassportPaymentSortColEnum = PassportPaymentSortColEnum = {}));
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Dirección de orden usada en listados paginados del BackOffice.
3
+ * Se comparte entre módulos — no vive bajo un dominio específico.
4
+ */
5
+ export declare enum SortDirEnum {
6
+ ASC = "asc",
7
+ DESC = "desc"
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SortDirEnum = void 0;
4
+ /**
5
+ * Dirección de orden usada en listados paginados del BackOffice.
6
+ * Se comparte entre módulos — no vive bajo un dominio específico.
7
+ */
8
+ var SortDirEnum;
9
+ (function (SortDirEnum) {
10
+ SortDirEnum["ASC"] = "asc";
11
+ SortDirEnum["DESC"] = "desc";
12
+ })(SortDirEnum || (exports.SortDirEnum = SortDirEnum = {}));
@@ -0,0 +1,5 @@
1
+ export * from "./PassportAlertSeverityEnum";
2
+ export * from "./PassportAlertStatusEnum";
3
+ export * from "./PassportAlertTypeEnum";
4
+ export * from "./PassportPaymentSortColEnum";
5
+ export * from "./SortDirEnum";
@@ -0,0 +1,21 @@
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
+ __exportStar(require("./PassportAlertSeverityEnum"), exports);
18
+ __exportStar(require("./PassportAlertStatusEnum"), exports);
19
+ __exportStar(require("./PassportAlertTypeEnum"), exports);
20
+ __exportStar(require("./PassportPaymentSortColEnum"), exports);
21
+ __exportStar(require("./SortDirEnum"), exports);
@@ -0,0 +1,3 @@
1
+ export * from "./dtos";
2
+ export * from "./entities";
3
+ export * from "./enums";
@@ -0,0 +1,19 @@
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
+ __exportStar(require("./dtos"), exports);
18
+ __exportStar(require("./entities"), exports);
19
+ __exportStar(require("./enums"), exports);
@@ -0,0 +1,22 @@
1
+ import { MfaMethodEnum } from '../enums/MfaMethodEnum';
2
+ /**
3
+ * Body del POST /auth/resend-otp (público, anónimo). DEC-RBAC-054.
4
+ * Reenvía el OTP del login re-disparando el challenge real CUSTOM_AUTH (EMAIL_OTP) para la
5
+ * identidad SIN password. `tenantId` obligatorio (DEC-064 — el picker ya lo resolvió, NO "solo email").
6
+ * El email se normaliza lowercase server-side. Postura anti-enumeración: respuesta 200 genérica
7
+ * siempre, sin filtrar existencia (ver AuthLoginManager.resendChallengeOtp).
8
+ */
9
+ export declare class ResendOtpRequest {
10
+ email: string;
11
+ tenantId: string;
12
+ }
13
+ /**
14
+ * Respuesta del resend-otp. `session`/`mfaMethod` frescos del nuevo challenge CUSTOM_AUTH.
15
+ * Plain sin validators (no validamos lo que mandamos al cliente — fiado-validation-and-dtos § 7).
16
+ * Ambos opcionales: en los caminos de rechazo silencioso (anti-enumeración) o ramas sin CUSTOM_AUTH
17
+ * el server responde 200 genérico sin session ni método.
18
+ */
19
+ export interface ResendOtpResponse {
20
+ session?: string;
21
+ mfaMethod?: MfaMethodEnum;
22
+ }
@@ -9,25 +9,28 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CancelFundingRequest = void 0;
12
+ exports.ResendOtpRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
13
14
  const class_validator_1 = require("class-validator");
14
15
  /**
15
- * Request del cancel via Centro de Beneficios (spec 13 v2.0).
16
- * `fundingId` viaja en el path, `directoryId` se resuelve del JWT.
17
- * `providerModuleName` permite al marketplace rutear al publisher correcto
18
- * sin tener que persistir el mapping (el wallet-app sabe el moduleName
19
- * porque vino en la respuesta del authorize).
16
+ * Body del POST /auth/resend-otp (público, anónimo). DEC-RBAC-054.
17
+ * Reenvía el OTP del login re-disparando el challenge real CUSTOM_AUTH (EMAIL_OTP) para la
18
+ * identidad SIN password. `tenantId` obligatorio (DEC-064 el picker ya lo resolvió, NO "solo email").
19
+ * El email se normaliza lowercase server-side. Postura anti-enumeración: respuesta 200 genérica
20
+ * siempre, sin filtrar existencia (ver AuthLoginManager.resendChallengeOtp).
20
21
  */
21
- class CancelFundingRequest {
22
+ class ResendOtpRequest {
22
23
  }
23
- exports.CancelFundingRequest = CancelFundingRequest;
24
+ exports.ResendOtpRequest = ResendOtpRequest;
24
25
  __decorate([
25
- (0, class_validator_1.IsString)(),
26
- (0, class_validator_1.MaxLength)(64),
26
+ (0, class_transformer_1.Expose)(),
27
+ (0, class_validator_1.IsEmail)(),
28
+ (0, class_validator_1.IsNotEmpty)(),
27
29
  __metadata("design:type", String)
28
- ], CancelFundingRequest.prototype, "idempotencyKey", void 0);
30
+ ], ResendOtpRequest.prototype, "email", void 0);
29
31
  __decorate([
32
+ (0, class_transformer_1.Expose)(),
30
33
  (0, class_validator_1.IsString)(),
31
- (0, class_validator_1.MaxLength)(128),
34
+ (0, class_validator_1.IsNotEmpty)(),
32
35
  __metadata("design:type", String)
33
- ], CancelFundingRequest.prototype, "providerModuleName", void 0);
36
+ ], ResendOtpRequest.prototype, "tenantId", void 0);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Body del POST /self-register/resend-otp (público, anónimo). DEC-RBAC-054.
3
+ * Re-envía el OTP del autoregistro (mecanismo messages-business, NO Cognito) tras validar un
4
+ * `pending` existente. Misma postura anti-enumeración del start. El email se normaliza lowercase
5
+ * server-side. DTO propio por endpoint (NO reusa SelfRegisterStartRequest, que exige roleId/scope/
6
+ * scopeRef, ni SelfRegisterVerifyOtpRequest, que exige otp).
7
+ */
8
+ export declare class ResendSelfRegisterOtpRequest {
9
+ tenantId: string;
10
+ email: string;
11
+ }
@@ -9,28 +9,28 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.MfaPoolConfig = void 0;
12
+ exports.ResendSelfRegisterOtpRequest = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const class_validator_1 = require("class-validator");
15
- const MfaTypesRequiresOne_1 = require("../validators/MfaTypesRequiresOne");
16
- // EMAIL_OTP removido (3.41.0): el cognito-backoffice-connector no provisiona
17
- // EmailMfaConfiguration a nivel pool (requiere infra SES que no está montada
18
- // y la integración con messages-lambda aún no tiene diseño). Ver TD-020 +
19
- // DEC-001 en cognito-backoffice-connector/docs/. Si se reintroduce, agregar
20
- // 'EMAIL_OTP' a este array.
21
- const ALLOWED_MFA_TYPES = ['SOFTWARE_TOKEN_MFA'];
22
- class MfaPoolConfig {
15
+ /**
16
+ * Body del POST /self-register/resend-otp (público, anónimo). DEC-RBAC-054.
17
+ * Re-envía el OTP del autoregistro (mecanismo messages-business, NO Cognito) tras validar un
18
+ * `pending` existente. Misma postura anti-enumeración del start. El email se normaliza lowercase
19
+ * server-side. DTO propio por endpoint (NO reusa SelfRegisterStartRequest, que exige roleId/scope/
20
+ * scopeRef, ni SelfRegisterVerifyOtpRequest, que exige otp).
21
+ */
22
+ class ResendSelfRegisterOtpRequest {
23
23
  }
24
- exports.MfaPoolConfig = MfaPoolConfig;
24
+ exports.ResendSelfRegisterOtpRequest = ResendSelfRegisterOtpRequest;
25
25
  __decorate([
26
26
  (0, class_transformer_1.Expose)(),
27
- (0, class_validator_1.IsBoolean)(),
28
- __metadata("design:type", Boolean)
29
- ], MfaPoolConfig.prototype, "requireMfa", void 0);
27
+ (0, class_validator_1.IsString)(),
28
+ (0, class_validator_1.IsNotEmpty)(),
29
+ __metadata("design:type", String)
30
+ ], ResendSelfRegisterOtpRequest.prototype, "tenantId", void 0);
30
31
  __decorate([
31
32
  (0, class_transformer_1.Expose)(),
32
- (0, class_validator_1.IsArray)(),
33
- (0, class_validator_1.IsIn)(ALLOWED_MFA_TYPES, { each: true }),
34
- (0, class_validator_1.Validate)(MfaTypesRequiresOne_1.MfaTypesRequiresOne),
35
- __metadata("design:type", Array)
36
- ], MfaPoolConfig.prototype, "mfaTypes", void 0);
33
+ (0, class_validator_1.IsEmail)(),
34
+ (0, class_validator_1.IsNotEmpty)(),
35
+ __metadata("design:type", String)
36
+ ], ResendSelfRegisterOtpRequest.prototype, "email", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.175.0",
3
+ "version": "3.177.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
package/src/index.ts CHANGED
@@ -88,7 +88,14 @@ export * as CognitoBackofficeConnector from './cognitoBackofficeConnector';
88
88
  export * as PlatformRbac from './platformRbac';
89
89
  export * as Remittance from './remittance';
90
90
  export * as WalletFunding from './walletFunding';
91
+ // Passport: DTOs consumidos por el BackOffice (`fiado-backoffice-webapp` → RTK Query)
92
+ // para la pantalla operativa Cash In. Los endpoints públicos viven en
93
+ // `benefits-marketplace-business` (/backoffice/passport/*) y a su vez llaman al
94
+ // `equality-connector` por sus endpoints privados. Ver SPEC 1.3 en repo passport.
95
+ export * as Passport from './passport';
91
96
  export * as TotpSecurity from './totpSecurity';
97
+ // Modelias: DTOs del contrato de la Modelias Scoring API.
98
+ export * as Modelias from './modelias';
92
99
  // NetworkConnector: módulo del lambda fiado-network-business (Access Card / Digital Business Card).
93
100
  // Contiene DTOs y enums para perfiles, leads, lead groups y fotos.
94
101
  export * as NetworkConnector from './networkConnector';
@@ -0,0 +1,29 @@
1
+ import { IsString, IsNotEmpty, IsOptional, IsEmail } from 'class-validator';
2
+
3
+ /**
4
+ * Contrato de entrada de la Modelias Scoring API.
5
+ *
6
+ * Valida SOLO presencia/estructura de los campos del payload: la validación de
7
+ * dominio (formato CURP, reglas de negocio, etc.) la realiza Modelias del lado
8
+ * del scoring, no este contrato.
9
+ */
10
+ export class ModeliasScoreRequestDto {
11
+ // TD-001: nombre del campo id sin confirmar (id_solicitante vs id). Ver TECH_DEBT.md.
12
+ @IsString() @IsNotEmpty()
13
+ id_solicitante!: string;
14
+
15
+ @IsString() @IsNotEmpty()
16
+ curp!: string;
17
+
18
+ @IsOptional() @IsEmail()
19
+ email?: string;
20
+
21
+ @IsString() @IsNotEmpty()
22
+ cellphone!: string;
23
+
24
+ @IsString() @IsNotEmpty()
25
+ timestamp!: string;
26
+
27
+ @IsString() @IsNotEmpty()
28
+ transaction_id!: string;
29
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Decisión de scoring de Modelias. Enum cerrado: el contrato garantiza que la
3
+ * decisión es uno de estos dos valores.
4
+ */
5
+ export enum ModeliasDecision {
6
+ ACEPTADO = 'ACEPTADO',
7
+ RECHAZADO = 'RECHAZADO',
8
+ }
9
+
10
+ /**
11
+ * Contrato de salida de la Modelias Scoring API.
12
+ */
13
+ export interface ModeliasScoreResponseDto {
14
+ request_id: string;
15
+ transaction_id: string;
16
+ id_solicitante: string;
17
+ score: number;
18
+ perfil_riesgo: string; // TD-002: catálogo incompleto → string tolerante, NO enum cerrado
19
+ decision: ModeliasDecision;
20
+ linea_credito: number | null;
21
+ enganche: number | null;
22
+ plazos: number[];
23
+ tasas: Record<string, number>;
24
+ marcas: string[];
25
+ timestamp: string;
26
+ }
@@ -0,0 +1,2 @@
1
+ export * from './ModeliasScoreRequestDto';
2
+ export * from './ModeliasScoreResponseDto';