@fiado/type-kit 3.295.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 (31) hide show
  1. package/bin/country/enums/CountryId.d.ts +32 -1
  2. package/bin/country/enums/CountryId.js +31 -0
  3. package/bin/index.d.ts +1 -0
  4. package/bin/index.js +4 -1
  5. package/bin/userConfirmations/dtos/ConfirmationDismissRequest.d.ts +7 -0
  6. package/bin/userConfirmations/dtos/ConfirmationDismissRequest.js +26 -0
  7. package/bin/userConfirmations/dtos/ConfirmationDismissResponse.d.ts +8 -0
  8. package/bin/userConfirmations/dtos/ConfirmationDismissResponse.js +28 -0
  9. package/bin/userConfirmations/dtos/EmailConfirmationPayload.d.ts +8 -0
  10. package/bin/userConfirmations/dtos/EmailConfirmationPayload.js +28 -0
  11. package/bin/userConfirmations/dtos/PendingConfirmationItem.d.ts +13 -0
  12. package/bin/userConfirmations/dtos/PendingConfirmationItem.js +38 -0
  13. package/bin/userConfirmations/dtos/PendingConfirmationsResponse.d.ts +7 -0
  14. package/bin/userConfirmations/dtos/PendingConfirmationsResponse.js +23 -0
  15. package/bin/userConfirmations/enums/ConfirmationDisplayModeEnum.d.ts +9 -0
  16. package/bin/userConfirmations/enums/ConfirmationDisplayModeEnum.js +13 -0
  17. package/bin/userConfirmations/enums/ConfirmationTypeEnum.d.ts +6 -0
  18. package/bin/userConfirmations/enums/ConfirmationTypeEnum.js +10 -0
  19. package/bin/userConfirmations/index.d.ts +7 -0
  20. package/bin/userConfirmations/index.js +23 -0
  21. package/package.json +1 -1
  22. package/src/country/enums/CountryId.ts +32 -1
  23. package/src/index.ts +3 -0
  24. package/src/userConfirmations/dtos/ConfirmationDismissRequest.ts +12 -0
  25. package/src/userConfirmations/dtos/ConfirmationDismissResponse.ts +13 -0
  26. package/src/userConfirmations/dtos/EmailConfirmationPayload.ts +13 -0
  27. package/src/userConfirmations/dtos/PendingConfirmationItem.ts +22 -0
  28. package/src/userConfirmations/dtos/PendingConfirmationsResponse.ts +10 -0
  29. package/src/userConfirmations/enums/ConfirmationDisplayModeEnum.ts +9 -0
  30. package/src/userConfirmations/enums/ConfirmationTypeEnum.ts +6 -0
  31. package/src/userConfirmations/index.ts +7 -0
@@ -1,17 +1,48 @@
1
+ /**
2
+ * Código ISO 3166-1 numérico del país. Es el valor que viaja en `countryId` por toda la plataforma y
3
+ * el que `fiado-address-lambda` usa para filtrar su dedup de domicilios.
4
+ *
5
+ * Cubre los 35 países soberanos de América más España. Las llaves son el alfa-3 (ISO 3166-1 alpha-3),
6
+ * así que convertir de alfa-3 a numérico es un acceso por llave.
7
+ *
8
+ * Estar acá NO significa que el país esté habilitado para operar: qué países acepta cada flujo lo
9
+ * decide cada consumidor (por ejemplo `PAISES_ACEPTADOS` en `kyc-metamap-webhook`).
10
+ */
1
11
  export declare enum CountryId {
12
+ ATG = "028",
2
13
  ARG = "032",
14
+ BHS = "044",
15
+ BRB = "052",
3
16
  BOL = "068",
17
+ BRA = "076",
18
+ BLZ = "084",
19
+ CAN = "124",
20
+ CHL = "152",
4
21
  COL = "170",
5
22
  CRI = "188",
6
23
  CUB = "192",
24
+ DMA = "212",
7
25
  DOM = "214",
8
26
  ECU = "218",
9
27
  SLV = "222",
28
+ GRD = "308",
10
29
  GTM = "320",
30
+ GUY = "328",
11
31
  HTI = "332",
12
32
  HND = "340",
13
33
  JAM = "388",
14
34
  MEX = "484",
15
35
  NIC = "558",
16
- USA = "840"
36
+ PAN = "591",
37
+ PRY = "600",
38
+ PER = "604",
39
+ KNA = "659",
40
+ LCA = "662",
41
+ VCT = "670",
42
+ ESP = "724",
43
+ SUR = "740",
44
+ TTO = "780",
45
+ USA = "840",
46
+ URY = "858",
47
+ VEN = "862"
17
48
  }
@@ -2,21 +2,52 @@
2
2
  //*
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.CountryId = void 0;
5
+ /**
6
+ * Código ISO 3166-1 numérico del país. Es el valor que viaja en `countryId` por toda la plataforma y
7
+ * el que `fiado-address-lambda` usa para filtrar su dedup de domicilios.
8
+ *
9
+ * Cubre los 35 países soberanos de América más España. Las llaves son el alfa-3 (ISO 3166-1 alpha-3),
10
+ * así que convertir de alfa-3 a numérico es un acceso por llave.
11
+ *
12
+ * Estar acá NO significa que el país esté habilitado para operar: qué países acepta cada flujo lo
13
+ * decide cada consumidor (por ejemplo `PAISES_ACEPTADOS` en `kyc-metamap-webhook`).
14
+ */
5
15
  var CountryId;
6
16
  (function (CountryId) {
17
+ CountryId["ATG"] = "028";
7
18
  CountryId["ARG"] = "032";
19
+ CountryId["BHS"] = "044";
20
+ CountryId["BRB"] = "052";
8
21
  CountryId["BOL"] = "068";
22
+ CountryId["BRA"] = "076";
23
+ CountryId["BLZ"] = "084";
24
+ CountryId["CAN"] = "124";
25
+ CountryId["CHL"] = "152";
9
26
  CountryId["COL"] = "170";
10
27
  CountryId["CRI"] = "188";
11
28
  CountryId["CUB"] = "192";
29
+ CountryId["DMA"] = "212";
12
30
  CountryId["DOM"] = "214";
13
31
  CountryId["ECU"] = "218";
14
32
  CountryId["SLV"] = "222";
33
+ CountryId["GRD"] = "308";
15
34
  CountryId["GTM"] = "320";
35
+ CountryId["GUY"] = "328";
16
36
  CountryId["HTI"] = "332";
17
37
  CountryId["HND"] = "340";
18
38
  CountryId["JAM"] = "388";
19
39
  CountryId["MEX"] = "484";
20
40
  CountryId["NIC"] = "558";
41
+ CountryId["PAN"] = "591";
42
+ CountryId["PRY"] = "600";
43
+ CountryId["PER"] = "604";
44
+ CountryId["KNA"] = "659";
45
+ CountryId["LCA"] = "662";
46
+ CountryId["VCT"] = "670";
47
+ CountryId["ESP"] = "724";
48
+ CountryId["SUR"] = "740";
49
+ CountryId["TTO"] = "780";
21
50
  CountryId["USA"] = "840";
51
+ CountryId["URY"] = "858";
52
+ CountryId["VEN"] = "862";
22
53
  })(CountryId || (exports.CountryId = CountryId = {}));
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,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
+ }
@@ -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.EmailConfirmationPayload = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const EmailVerificationStatusEnum_1 = require("../../emailVerification/enums/EmailVerificationStatusEnum");
15
+ /**
16
+ * Payload de la confirmación EMAIL_VERIFICATION: el email pendiente y su estado actual.
17
+ */
18
+ class EmailConfirmationPayload {
19
+ }
20
+ exports.EmailConfirmationPayload = EmailConfirmationPayload;
21
+ __decorate([
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", String)
24
+ ], EmailConfirmationPayload.prototype, "email", void 0);
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
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
+ }
@@ -0,0 +1,38 @@
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.PendingConfirmationItem = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const ConfirmationTypeEnum_1 = require("../enums/ConfirmationTypeEnum");
15
+ const ConfirmationDisplayModeEnum_1 = require("../enums/ConfirmationDisplayModeEnum");
16
+ const EmailConfirmationPayload_1 = require("./EmailConfirmationPayload");
17
+ /**
18
+ * Una confirmación pendiente que la app debe mostrarle al usuario.
19
+ */
20
+ class PendingConfirmationItem {
21
+ }
22
+ exports.PendingConfirmationItem = PendingConfirmationItem;
23
+ __decorate([
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", String)
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
+ __decorate([
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", String)
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.295.0",
3
+ "version": "3.297.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,20 +1,51 @@
1
1
 
2
2
  //*
3
3
 
4
+ /**
5
+ * Código ISO 3166-1 numérico del país. Es el valor que viaja en `countryId` por toda la plataforma y
6
+ * el que `fiado-address-lambda` usa para filtrar su dedup de domicilios.
7
+ *
8
+ * Cubre los 35 países soberanos de América más España. Las llaves son el alfa-3 (ISO 3166-1 alpha-3),
9
+ * así que convertir de alfa-3 a numérico es un acceso por llave.
10
+ *
11
+ * Estar acá NO significa que el país esté habilitado para operar: qué países acepta cada flujo lo
12
+ * decide cada consumidor (por ejemplo `PAISES_ACEPTADOS` en `kyc-metamap-webhook`).
13
+ */
4
14
  export enum CountryId {
15
+ ATG = "028",
5
16
  ARG = "032",
17
+ BHS = "044",
18
+ BRB = "052",
6
19
  BOL = "068",
20
+ BRA = "076",
21
+ BLZ = "084",
22
+ CAN = "124",
23
+ CHL = "152",
7
24
  COL = "170",
8
25
  CRI = "188",
9
26
  CUB = "192",
27
+ DMA = "212",
10
28
  DOM = "214",
11
29
  ECU = "218",
12
30
  SLV = "222",
31
+ GRD = "308",
13
32
  GTM = "320",
33
+ GUY = "328",
14
34
  HTI = "332",
15
35
  HND = "340",
16
36
  JAM = "388",
17
37
  MEX = "484",
18
38
  NIC = "558",
39
+ PAN = "591",
40
+ PRY = "600",
41
+ PER = "604",
42
+ KNA = "659",
43
+ LCA = "662",
44
+ VCT = "670",
45
+ ESP = "724",
46
+ SUR = "740",
47
+ TTO = "780",
19
48
  USA = "840",
20
- }
49
+ URY = "858",
50
+ VEN = "862",
51
+ }
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';