@fiado/type-kit 3.296.0 → 3.297.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 (40) hide show
  1. package/bin/index.d.ts +1 -0
  2. package/bin/index.js +4 -1
  3. package/bin/loanCredit/dtos/requests/UpdateActivationChecklistRequest.d.ts +11 -0
  4. package/bin/loanCredit/dtos/requests/UpdateActivationChecklistRequest.js +46 -0
  5. package/bin/loanCredit/enums/ClientLevelEnum.d.ts +11 -0
  6. package/bin/loanCredit/enums/ClientLevelEnum.js +15 -0
  7. package/bin/userConfirmations/dtos/ConfirmationDismissRequest.d.ts +7 -0
  8. package/bin/userConfirmations/dtos/ConfirmationDismissRequest.js +26 -0
  9. package/bin/userConfirmations/dtos/ConfirmationDismissResponse.d.ts +8 -0
  10. package/bin/userConfirmations/dtos/ConfirmationDismissResponse.js +28 -0
  11. package/bin/userConfirmations/dtos/EmailConfirmationPayload.d.ts +8 -0
  12. package/bin/{platformRbac/dtos/ResendOtpRequest.js → userConfirmations/dtos/EmailConfirmationPayload.js} +7 -15
  13. package/bin/userConfirmations/dtos/PendingConfirmationItem.d.ts +13 -0
  14. package/bin/{platformRbac/dtos/ResendSelfRegisterOtpRequest.js → userConfirmations/dtos/PendingConfirmationItem.js} +17 -15
  15. package/bin/userConfirmations/dtos/PendingConfirmationsResponse.d.ts +7 -0
  16. package/bin/userConfirmations/dtos/PendingConfirmationsResponse.js +23 -0
  17. package/bin/userConfirmations/enums/ConfirmationDisplayModeEnum.d.ts +9 -0
  18. package/bin/userConfirmations/enums/ConfirmationDisplayModeEnum.js +13 -0
  19. package/bin/userConfirmations/enums/ConfirmationTypeEnum.d.ts +6 -0
  20. package/bin/userConfirmations/enums/ConfirmationTypeEnum.js +10 -0
  21. package/bin/userConfirmations/index.d.ts +7 -0
  22. package/bin/userConfirmations/index.js +23 -0
  23. package/package.json +1 -1
  24. package/src/index.ts +3 -0
  25. package/src/userConfirmations/dtos/ConfirmationDismissRequest.ts +12 -0
  26. package/src/userConfirmations/dtos/ConfirmationDismissResponse.ts +13 -0
  27. package/src/userConfirmations/dtos/EmailConfirmationPayload.ts +13 -0
  28. package/src/userConfirmations/dtos/PendingConfirmationItem.ts +22 -0
  29. package/src/userConfirmations/dtos/PendingConfirmationsResponse.ts +10 -0
  30. package/src/userConfirmations/enums/ConfirmationDisplayModeEnum.ts +9 -0
  31. package/src/userConfirmations/enums/ConfirmationTypeEnum.ts +6 -0
  32. package/src/userConfirmations/index.ts +7 -0
  33. package/bin/benefitCenter/enums/BenefitFlowEnum.d.ts +0 -11
  34. package/bin/benefitCenter/enums/BenefitFlowEnum.js +0 -15
  35. package/bin/loanConfig/enums/ModifiableByRoleEnum.d.ts +0 -11
  36. package/bin/loanConfig/enums/ModifiableByRoleEnum.js +0 -15
  37. package/bin/places/dtos/CashInFeeDto.d.ts +0 -17
  38. package/bin/places/dtos/CashInFeeDto.js +0 -12
  39. package/bin/platformRbac/dtos/ResendOtpRequest.d.ts +0 -22
  40. package/bin/platformRbac/dtos/ResendSelfRegisterOtpRequest.d.ts +0 -11
package/bin/index.d.ts CHANGED
@@ -110,3 +110,4 @@ export * from './complaint';
110
110
  export * as PhoneSales from './phoneSales';
111
111
  export * as Shipping from './shipping';
112
112
  export * as Collection from './collection';
113
+ export * as UserConfirmations from './userConfirmations';
package/bin/index.js CHANGED
@@ -38,7 +38,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  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.TransactionAnalytics = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.UserTags = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.AppContent = exports.App = exports.Offices = exports.Places = exports.Address = exports.Beneficiary = exports.Activity = exports.Biometrics = exports.MetamapConnector = exports.Account = exports.Crypto = void 0;
40
40
  exports.LoanConfig = exports.DatalakeQuery = exports.RetailWizard = exports.RetailCustomer = exports.RetailCards = exports.RetailCatalog = exports.RetailCommission = exports.RetailOrg = exports.EmailVerification = exports.NetworkConnector = exports.Modelias = exports.TotpSecurity = exports.Passport = exports.WalletFunding = exports.Remittance = exports.PlatformRbac = exports.CognitoBackofficeConnector = exports.TwilioConnector = exports.MessagesConnector = exports.Mdm = exports.MilestoneBusiness = exports.CirculoCredito = exports.CreditStatements = exports.Sentry = exports.AiEngine = exports.Funnel = exports.TeamsConnector = exports.PlatformErrorEvents = exports.CustomerFile = exports.CreditBackoffice = exports.CreditDashboard = exports.CreditEngine = exports.Credit = exports.ComissionBusiness = exports.ReferralBusiness = exports.ZendeskMessaging = exports.NotificationWS = exports.Event = exports.PayrollBusiness = exports.Cnbv = exports.DirectorySetting = exports.InvoiceCollector = exports.Collector = exports.Pricelist = exports.Company = exports.Services = exports.AccountIssuanceBusiness = exports.AppSelectionData = exports.Device = exports.Observations = void 0;
41
- exports.Collection = exports.Shipping = exports.PhoneSales = exports.Onboarding = exports.Kyc = exports.LoanScoring = exports.LoanCredit = exports.LoanCollectorAssignment = exports.LoanOfferings = exports.Shortlink = void 0;
41
+ exports.UserConfirmations = exports.Collection = exports.Shipping = exports.PhoneSales = exports.Onboarding = exports.Kyc = exports.LoanScoring = exports.LoanCredit = exports.LoanCollectorAssignment = exports.LoanOfferings = exports.Shortlink = void 0;
42
42
  exports.Crypto = __importStar(require("./crypto"));
43
43
  exports.Account = __importStar(require("./account"));
44
44
  exports.MetamapConnector = __importStar(require("./metamapConnector"));
@@ -204,3 +204,6 @@ exports.Shipping = __importStar(require("./shipping"));
204
204
  // CollectResponse el contrato dominio↔motor; AuthorizeCollectionMovementRequest/Response el
205
205
  // contrato motor↔processor. Ver spec 2026-07-29-motor-cobro-central-design.
206
206
  exports.Collection = __importStar(require("./collection"));
207
+ // UserConfirmations: contrato del motor de confirmaciones pendientes (people-business ↔ app) —
208
+ // la app consulta qué confirmaciones mostrar al usuario (verificar email, …) y reporta descartes.
209
+ exports.UserConfirmations = __importStar(require("./userConfirmations"));
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Body de PUT /credits/:creditId/checklist (loan-credit-business). Marca condiciones de activación
3
+ * cumplidas. Solo se mandan las que cambian; en F3 las marcarán los flujos de firma de contrato
4
+ * (`downPayment` + `contractSigned`) y de enrolamiento MDM (`imeiEnrolled` + `lockVerified`).
5
+ */
6
+ export declare class UpdateActivationChecklistRequest {
7
+ downPayment?: boolean;
8
+ contractSigned?: boolean;
9
+ imeiEnrolled?: boolean;
10
+ lockVerified?: boolean;
11
+ }
@@ -0,0 +1,46 @@
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.UpdateActivationChecklistRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ /**
16
+ * Body de PUT /credits/:creditId/checklist (loan-credit-business). Marca condiciones de activación
17
+ * cumplidas. Solo se mandan las que cambian; en F3 las marcarán los flujos de firma de contrato
18
+ * (`downPayment` + `contractSigned`) y de enrolamiento MDM (`imeiEnrolled` + `lockVerified`).
19
+ */
20
+ class UpdateActivationChecklistRequest {
21
+ }
22
+ exports.UpdateActivationChecklistRequest = UpdateActivationChecklistRequest;
23
+ __decorate([
24
+ (0, class_transformer_1.Expose)(),
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_validator_1.IsBoolean)(),
27
+ __metadata("design:type", Boolean)
28
+ ], UpdateActivationChecklistRequest.prototype, "downPayment", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsBoolean)(),
33
+ __metadata("design:type", Boolean)
34
+ ], UpdateActivationChecklistRequest.prototype, "contractSigned", void 0);
35
+ __decorate([
36
+ (0, class_transformer_1.Expose)(),
37
+ (0, class_validator_1.IsOptional)(),
38
+ (0, class_validator_1.IsBoolean)(),
39
+ __metadata("design:type", Boolean)
40
+ ], UpdateActivationChecklistRequest.prototype, "imeiEnrolled", void 0);
41
+ __decorate([
42
+ (0, class_transformer_1.Expose)(),
43
+ (0, class_validator_1.IsOptional)(),
44
+ (0, class_validator_1.IsBoolean)(),
45
+ __metadata("design:type", Boolean)
46
+ ], UpdateActivationChecklistRequest.prototype, "lockVerified", void 0);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Nivel del cliente según su SCI (M7/05_MOTOR §3.2): 21-60 Bronce · 61-80 Plata · 81-100 Oro.
3
+ * Distinto de `CreditPlanLevelEnum` de loanOfferings (que además tiene `ALL` para planes):
4
+ * un CLIENTE nunca es `ALL`.
5
+ * @enum {string}
6
+ */
7
+ export declare enum ClientLevelEnum {
8
+ BRONZE = "BRONZE",
9
+ SILVER = "SILVER",
10
+ GOLD = "GOLD"
11
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClientLevelEnum = void 0;
4
+ /**
5
+ * Nivel del cliente según su SCI (M7/05_MOTOR §3.2): 21-60 Bronce · 61-80 Plata · 81-100 Oro.
6
+ * Distinto de `CreditPlanLevelEnum` de loanOfferings (que además tiene `ALL` para planes):
7
+ * un CLIENTE nunca es `ALL`.
8
+ * @enum {string}
9
+ */
10
+ var ClientLevelEnum;
11
+ (function (ClientLevelEnum) {
12
+ ClientLevelEnum["BRONZE"] = "BRONZE";
13
+ ClientLevelEnum["SILVER"] = "SILVER";
14
+ ClientLevelEnum["GOLD"] = "GOLD";
15
+ })(ClientLevelEnum || (exports.ClientLevelEnum = ClientLevelEnum = {}));
@@ -0,0 +1,7 @@
1
+ import { ConfirmationTypeEnum } from '../enums/ConfirmationTypeEnum';
2
+ /**
3
+ * Solicitud del usuario para descartar una confirmación pendiente.
4
+ */
5
+ export declare class ConfirmationDismissRequest {
6
+ confirmationType: ConfirmationTypeEnum;
7
+ }
@@ -0,0 +1,26 @@
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.ConfirmationDismissRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const ConfirmationTypeEnum_1 = require("../enums/ConfirmationTypeEnum");
16
+ /**
17
+ * Solicitud del usuario para descartar una confirmación pendiente.
18
+ */
19
+ class ConfirmationDismissRequest {
20
+ }
21
+ exports.ConfirmationDismissRequest = ConfirmationDismissRequest;
22
+ __decorate([
23
+ (0, class_transformer_1.Expose)(),
24
+ (0, class_validator_1.IsEnum)(ConfirmationTypeEnum_1.ConfirmationTypeEnum),
25
+ __metadata("design:type", String)
26
+ ], ConfirmationDismissRequest.prototype, "confirmationType", void 0);
@@ -0,0 +1,8 @@
1
+ import { ConfirmationTypeEnum } from '../enums/ConfirmationTypeEnum';
2
+ /**
3
+ * Confirmación descartada y el momento del descarte (epoch ms).
4
+ */
5
+ export declare class ConfirmationDismissResponse {
6
+ confirmationType: ConfirmationTypeEnum;
7
+ dismissedAt: number;
8
+ }
@@ -0,0 +1,28 @@
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.ConfirmationDismissResponse = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const ConfirmationTypeEnum_1 = require("../enums/ConfirmationTypeEnum");
15
+ /**
16
+ * Confirmación descartada y el momento del descarte (epoch ms).
17
+ */
18
+ class ConfirmationDismissResponse {
19
+ }
20
+ exports.ConfirmationDismissResponse = ConfirmationDismissResponse;
21
+ __decorate([
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", String)
24
+ ], ConfirmationDismissResponse.prototype, "confirmationType", void 0);
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", Number)
28
+ ], ConfirmationDismissResponse.prototype, "dismissedAt", void 0);
@@ -0,0 +1,8 @@
1
+ import { EmailVerificationStatusEnum } from '../../emailVerification/enums/EmailVerificationStatusEnum';
2
+ /**
3
+ * Payload de la confirmación EMAIL_VERIFICATION: el email pendiente y su estado actual.
4
+ */
5
+ export declare class EmailConfirmationPayload {
6
+ email: string;
7
+ status: EmailVerificationStatusEnum;
8
+ }
@@ -9,28 +9,20 @@ 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.ResendOtpRequest = void 0;
12
+ exports.EmailConfirmationPayload = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const class_validator_1 = require("class-validator");
14
+ const EmailVerificationStatusEnum_1 = require("../../emailVerification/enums/EmailVerificationStatusEnum");
15
15
  /**
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).
16
+ * Payload de la confirmación EMAIL_VERIFICATION: el email pendiente y su estado actual.
21
17
  */
22
- class ResendOtpRequest {
18
+ class EmailConfirmationPayload {
23
19
  }
24
- exports.ResendOtpRequest = ResendOtpRequest;
20
+ exports.EmailConfirmationPayload = EmailConfirmationPayload;
25
21
  __decorate([
26
22
  (0, class_transformer_1.Expose)(),
27
- (0, class_validator_1.IsEmail)(),
28
- (0, class_validator_1.IsNotEmpty)(),
29
23
  __metadata("design:type", String)
30
- ], ResendOtpRequest.prototype, "email", void 0);
24
+ ], EmailConfirmationPayload.prototype, "email", void 0);
31
25
  __decorate([
32
26
  (0, class_transformer_1.Expose)(),
33
- (0, class_validator_1.IsString)(),
34
- (0, class_validator_1.IsNotEmpty)(),
35
27
  __metadata("design:type", String)
36
- ], ResendOtpRequest.prototype, "tenantId", void 0);
28
+ ], EmailConfirmationPayload.prototype, "status", void 0);
@@ -0,0 +1,13 @@
1
+ import { ConfirmationTypeEnum } from '../enums/ConfirmationTypeEnum';
2
+ import { ConfirmationDisplayModeEnum } from '../enums/ConfirmationDisplayModeEnum';
3
+ import { EmailConfirmationPayload } from './EmailConfirmationPayload';
4
+ /**
5
+ * Una confirmación pendiente que la app debe mostrarle al usuario.
6
+ */
7
+ export declare class PendingConfirmationItem {
8
+ confirmationType: ConfirmationTypeEnum;
9
+ priority: number;
10
+ displayMode: ConfirmationDisplayModeEnum;
11
+ /** Presente solo cuando confirmationType === EMAIL_VERIFICATION. */
12
+ payload?: EmailConfirmationPayload;
13
+ }
@@ -9,28 +9,30 @@ 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.ResendSelfRegisterOtpRequest = void 0;
12
+ exports.PendingConfirmationItem = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const class_validator_1 = require("class-validator");
14
+ const ConfirmationTypeEnum_1 = require("../enums/ConfirmationTypeEnum");
15
+ const ConfirmationDisplayModeEnum_1 = require("../enums/ConfirmationDisplayModeEnum");
16
+ const EmailConfirmationPayload_1 = require("./EmailConfirmationPayload");
15
17
  /**
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).
18
+ * Una confirmación pendiente que la app debe mostrarle al usuario.
21
19
  */
22
- class ResendSelfRegisterOtpRequest {
20
+ class PendingConfirmationItem {
23
21
  }
24
- exports.ResendSelfRegisterOtpRequest = ResendSelfRegisterOtpRequest;
22
+ exports.PendingConfirmationItem = PendingConfirmationItem;
25
23
  __decorate([
26
24
  (0, class_transformer_1.Expose)(),
27
- (0, class_validator_1.IsString)(),
28
- (0, class_validator_1.IsNotEmpty)(),
29
25
  __metadata("design:type", String)
30
- ], ResendSelfRegisterOtpRequest.prototype, "tenantId", void 0);
26
+ ], PendingConfirmationItem.prototype, "confirmationType", void 0);
27
+ __decorate([
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", Number)
30
+ ], PendingConfirmationItem.prototype, "priority", void 0);
31
31
  __decorate([
32
32
  (0, class_transformer_1.Expose)(),
33
- (0, class_validator_1.IsEmail)(),
34
- (0, class_validator_1.IsNotEmpty)(),
35
33
  __metadata("design:type", String)
36
- ], ResendSelfRegisterOtpRequest.prototype, "email", void 0);
34
+ ], PendingConfirmationItem.prototype, "displayMode", void 0);
35
+ __decorate([
36
+ (0, class_transformer_1.Expose)(),
37
+ __metadata("design:type", EmailConfirmationPayload_1.EmailConfirmationPayload)
38
+ ], PendingConfirmationItem.prototype, "payload", void 0);
@@ -0,0 +1,7 @@
1
+ import { PendingConfirmationItem } from './PendingConfirmationItem';
2
+ /**
3
+ * Confirmaciones pendientes del usuario, ordenadas por prioridad.
4
+ */
5
+ export declare class PendingConfirmationsResponse {
6
+ items: PendingConfirmationItem[];
7
+ }
@@ -0,0 +1,23 @@
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.PendingConfirmationsResponse = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ /**
15
+ * Confirmaciones pendientes del usuario, ordenadas por prioridad.
16
+ */
17
+ class PendingConfirmationsResponse {
18
+ }
19
+ exports.PendingConfirmationsResponse = PendingConfirmationsResponse;
20
+ __decorate([
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", Array)
23
+ ], PendingConfirmationsResponse.prototype, "items", void 0);
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Cómo debe presentar la app una confirmación pendiente.
3
+ * SINGLE: modal exclusivo, no se combina con otras confirmaciones.
4
+ * STACKABLE: puede apilarse junto a otras confirmaciones en la misma vista.
5
+ */
6
+ export declare enum ConfirmationDisplayModeEnum {
7
+ SINGLE = "SINGLE",
8
+ STACKABLE = "STACKABLE"
9
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConfirmationDisplayModeEnum = void 0;
4
+ /**
5
+ * Cómo debe presentar la app una confirmación pendiente.
6
+ * SINGLE: modal exclusivo, no se combina con otras confirmaciones.
7
+ * STACKABLE: puede apilarse junto a otras confirmaciones en la misma vista.
8
+ */
9
+ var ConfirmationDisplayModeEnum;
10
+ (function (ConfirmationDisplayModeEnum) {
11
+ ConfirmationDisplayModeEnum["SINGLE"] = "SINGLE";
12
+ ConfirmationDisplayModeEnum["STACKABLE"] = "STACKABLE";
13
+ })(ConfirmationDisplayModeEnum || (exports.ConfirmationDisplayModeEnum = ConfirmationDisplayModeEnum = {}));
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Tipo de confirmación pendiente que el motor de confirmaciones puede pedirle al usuario.
3
+ */
4
+ export declare enum ConfirmationTypeEnum {
5
+ EMAIL_VERIFICATION = "EMAIL_VERIFICATION"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConfirmationTypeEnum = void 0;
4
+ /**
5
+ * Tipo de confirmación pendiente que el motor de confirmaciones puede pedirle al usuario.
6
+ */
7
+ var ConfirmationTypeEnum;
8
+ (function (ConfirmationTypeEnum) {
9
+ ConfirmationTypeEnum["EMAIL_VERIFICATION"] = "EMAIL_VERIFICATION";
10
+ })(ConfirmationTypeEnum || (exports.ConfirmationTypeEnum = ConfirmationTypeEnum = {}));
@@ -0,0 +1,7 @@
1
+ export * from './enums/ConfirmationTypeEnum';
2
+ export * from './enums/ConfirmationDisplayModeEnum';
3
+ export * from './dtos/EmailConfirmationPayload';
4
+ export * from './dtos/PendingConfirmationItem';
5
+ export * from './dtos/PendingConfirmationsResponse';
6
+ export * from './dtos/ConfirmationDismissRequest';
7
+ export * from './dtos/ConfirmationDismissResponse';
@@ -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("./enums/ConfirmationTypeEnum"), exports);
18
+ __exportStar(require("./enums/ConfirmationDisplayModeEnum"), exports);
19
+ __exportStar(require("./dtos/EmailConfirmationPayload"), exports);
20
+ __exportStar(require("./dtos/PendingConfirmationItem"), exports);
21
+ __exportStar(require("./dtos/PendingConfirmationsResponse"), exports);
22
+ __exportStar(require("./dtos/ConfirmationDismissRequest"), exports);
23
+ __exportStar(require("./dtos/ConfirmationDismissResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.296.0",
3
+ "version": "3.297.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
package/src/index.ts CHANGED
@@ -163,3 +163,6 @@ export * as Shipping from './shipping';
163
163
  // CollectResponse el contrato dominio↔motor; AuthorizeCollectionMovementRequest/Response el
164
164
  // contrato motor↔processor. Ver spec 2026-07-29-motor-cobro-central-design.
165
165
  export * as Collection from './collection';
166
+ // UserConfirmations: contrato del motor de confirmaciones pendientes (people-business ↔ app) —
167
+ // la app consulta qué confirmaciones mostrar al usuario (verificar email, …) y reporta descartes.
168
+ export * as UserConfirmations from './userConfirmations';
@@ -0,0 +1,12 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { IsEnum } from 'class-validator';
3
+ import { ConfirmationTypeEnum } from '../enums/ConfirmationTypeEnum';
4
+
5
+ /**
6
+ * Solicitud del usuario para descartar una confirmación pendiente.
7
+ */
8
+ export class ConfirmationDismissRequest {
9
+ @Expose()
10
+ @IsEnum(ConfirmationTypeEnum)
11
+ confirmationType!: ConfirmationTypeEnum;
12
+ }
@@ -0,0 +1,13 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { ConfirmationTypeEnum } from '../enums/ConfirmationTypeEnum';
3
+
4
+ /**
5
+ * Confirmación descartada y el momento del descarte (epoch ms).
6
+ */
7
+ export class ConfirmationDismissResponse {
8
+ @Expose()
9
+ confirmationType!: ConfirmationTypeEnum;
10
+
11
+ @Expose()
12
+ dismissedAt!: number;
13
+ }
@@ -0,0 +1,13 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { EmailVerificationStatusEnum } from '../../emailVerification/enums/EmailVerificationStatusEnum';
3
+
4
+ /**
5
+ * Payload de la confirmación EMAIL_VERIFICATION: el email pendiente y su estado actual.
6
+ */
7
+ export class EmailConfirmationPayload {
8
+ @Expose()
9
+ email!: string;
10
+
11
+ @Expose()
12
+ status!: EmailVerificationStatusEnum;
13
+ }
@@ -0,0 +1,22 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { ConfirmationTypeEnum } from '../enums/ConfirmationTypeEnum';
3
+ import { ConfirmationDisplayModeEnum } from '../enums/ConfirmationDisplayModeEnum';
4
+ import { EmailConfirmationPayload } from './EmailConfirmationPayload';
5
+
6
+ /**
7
+ * Una confirmación pendiente que la app debe mostrarle al usuario.
8
+ */
9
+ export class PendingConfirmationItem {
10
+ @Expose()
11
+ confirmationType!: ConfirmationTypeEnum;
12
+
13
+ @Expose()
14
+ priority!: number;
15
+
16
+ @Expose()
17
+ displayMode!: ConfirmationDisplayModeEnum;
18
+
19
+ /** Presente solo cuando confirmationType === EMAIL_VERIFICATION. */
20
+ @Expose()
21
+ payload?: EmailConfirmationPayload;
22
+ }
@@ -0,0 +1,10 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { PendingConfirmationItem } from './PendingConfirmationItem';
3
+
4
+ /**
5
+ * Confirmaciones pendientes del usuario, ordenadas por prioridad.
6
+ */
7
+ export class PendingConfirmationsResponse {
8
+ @Expose()
9
+ items!: PendingConfirmationItem[];
10
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Cómo debe presentar la app una confirmación pendiente.
3
+ * SINGLE: modal exclusivo, no se combina con otras confirmaciones.
4
+ * STACKABLE: puede apilarse junto a otras confirmaciones en la misma vista.
5
+ */
6
+ export enum ConfirmationDisplayModeEnum {
7
+ SINGLE = 'SINGLE',
8
+ STACKABLE = 'STACKABLE',
9
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Tipo de confirmación pendiente que el motor de confirmaciones puede pedirle al usuario.
3
+ */
4
+ export enum ConfirmationTypeEnum {
5
+ EMAIL_VERIFICATION = 'EMAIL_VERIFICATION',
6
+ }
@@ -0,0 +1,7 @@
1
+ export * from './enums/ConfirmationTypeEnum';
2
+ export * from './enums/ConfirmationDisplayModeEnum';
3
+ export * from './dtos/EmailConfirmationPayload';
4
+ export * from './dtos/PendingConfirmationItem';
5
+ export * from './dtos/PendingConfirmationsResponse';
6
+ export * from './dtos/ConfirmationDismissRequest';
7
+ export * from './dtos/ConfirmationDismissResponse';
@@ -1,11 +0,0 @@
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
- /** Fondeo de wallet PCF con efectivo via provider externo (Equality/Passport, OpenPay, …) — spec 13. */
10
- WALLET_FUNDING = "WALLET_FUNDING"
11
- }
@@ -1,15 +0,0 @@
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
- /** Fondeo de wallet PCF con efectivo via provider externo (Equality/Passport, OpenPay, …) — spec 13. */
14
- BenefitFlowEnum["WALLET_FUNDING"] = "WALLET_FUNDING";
15
- })(BenefitFlowEnum || (exports.BenefitFlowEnum = BenefitFlowEnum = {}));
@@ -1,11 +0,0 @@
1
- /**
2
- * Rol RBAC mínimo que puede modificar un parámetro (RBAC a nivel de parámetro, modelo-datos §8).
3
- * `retailer_admin` = "Admin VentasLuga" de M6 §8. Valores = identificadores de rol de RBAC F0.
4
- * TD-004: confirmar mapeo super_admin ↔ platform_super_admin con el naming real de F0.
5
- * @enum {string}
6
- */
7
- export declare enum ModifiableByRoleEnum {
8
- SUPER_ADMIN = "super_admin",
9
- SOFOM_ADMIN = "sofom_admin",
10
- RETAILER_ADMIN = "retailer_admin"
11
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ModifiableByRoleEnum = void 0;
4
- /**
5
- * Rol RBAC mínimo que puede modificar un parámetro (RBAC a nivel de parámetro, modelo-datos §8).
6
- * `retailer_admin` = "Admin VentasLuga" de M6 §8. Valores = identificadores de rol de RBAC F0.
7
- * TD-004: confirmar mapeo super_admin ↔ platform_super_admin con el naming real de F0.
8
- * @enum {string}
9
- */
10
- var ModifiableByRoleEnum;
11
- (function (ModifiableByRoleEnum) {
12
- ModifiableByRoleEnum["SUPER_ADMIN"] = "super_admin";
13
- ModifiableByRoleEnum["SOFOM_ADMIN"] = "sofom_admin";
14
- ModifiableByRoleEnum["RETAILER_ADMIN"] = "retailer_admin";
15
- })(ModifiableByRoleEnum || (exports.ModifiableByRoleEnum = ModifiableByRoleEnum = {}));
@@ -1,17 +0,0 @@
1
- import { CurrencyId } from '../../currency/enums/CurrencyId';
2
- /**
3
- * Comisión que cobra un punto de cash-in (lo que el lambda MUESTRA, no cobra).
4
- * - GreenDot (US): representativo por cadena → `fixed` + `cap` (cada tienda cobra hasta el tope).
5
- * - Passport (MX): por red → `fixed` + `percentage`.
6
- * Response DTO — sin decoradores de validación.
7
- */
8
- export declare class CashInFeeDto {
9
- /** Comisión fija, en la moneda del país. */
10
- fixed?: number;
11
- /** Porcentaje del monto depositado (0–100). */
12
- percentage?: number;
13
- /** Tope máximo de comisión (GreenDot: el asociado cobra hasta este cap). */
14
- cap?: number;
15
- /** Moneda del fee: USD (GreenDot) | MXN (Passport). */
16
- currency: CurrencyId;
17
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CashInFeeDto = void 0;
4
- /**
5
- * Comisión que cobra un punto de cash-in (lo que el lambda MUESTRA, no cobra).
6
- * - GreenDot (US): representativo por cadena → `fixed` + `cap` (cada tienda cobra hasta el tope).
7
- * - Passport (MX): por red → `fixed` + `percentage`.
8
- * Response DTO — sin decoradores de validación.
9
- */
10
- class CashInFeeDto {
11
- }
12
- exports.CashInFeeDto = CashInFeeDto;
@@ -1,22 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }