@fiado/type-kit 3.100.0 → 3.102.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 (68) hide show
  1. package/_test_/unit/emailVerification/dtos/EmailConfirmRequest.test.ts +38 -0
  2. package/_test_/unit/emailVerification/dtos/EmailVerificationStartRequest.test.ts +44 -0
  3. package/_test_/unit/emailVerification/dtos/internal/PrimaryEmailByDirectoryRequest.test.ts +22 -0
  4. package/_test_/unit/emailVerification/enums/EmailVerificationStatusEnum.test.ts +17 -0
  5. package/bin/emailVerification/dtos/EmailConfirmRequest.d.ts +9 -0
  6. package/bin/emailVerification/dtos/EmailConfirmRequest.js +34 -0
  7. package/bin/emailVerification/dtos/EmailDeleteRequest.d.ts +7 -0
  8. package/bin/emailVerification/dtos/EmailDeleteRequest.js +30 -0
  9. package/bin/emailVerification/dtos/EmailDeleteResponse.d.ts +7 -0
  10. package/bin/emailVerification/dtos/EmailDeleteResponse.js +27 -0
  11. package/bin/emailVerification/dtos/EmailItem.d.ts +12 -0
  12. package/bin/emailVerification/dtos/EmailItem.js +41 -0
  13. package/bin/emailVerification/dtos/EmailListResponse.d.ts +7 -0
  14. package/bin/emailVerification/dtos/EmailListResponse.js +23 -0
  15. package/bin/emailVerification/dtos/EmailSetPrincipalRequest.d.ts +7 -0
  16. package/bin/emailVerification/dtos/EmailSetPrincipalRequest.js +30 -0
  17. package/bin/emailVerification/dtos/EmailSetPrincipalResponse.d.ts +7 -0
  18. package/bin/emailVerification/dtos/EmailSetPrincipalResponse.js +27 -0
  19. package/bin/emailVerification/dtos/EmailVerificationResendRequest.d.ts +7 -0
  20. package/bin/emailVerification/dtos/EmailVerificationResendRequest.js +30 -0
  21. package/bin/emailVerification/dtos/EmailVerificationResendResponse.d.ts +8 -0
  22. package/bin/emailVerification/dtos/EmailVerificationResendResponse.js +28 -0
  23. package/bin/emailVerification/dtos/EmailVerificationStartRequest.d.ts +9 -0
  24. package/bin/emailVerification/dtos/EmailVerificationStartRequest.js +32 -0
  25. package/bin/emailVerification/dtos/EmailVerificationStartResponse.d.ts +9 -0
  26. package/bin/emailVerification/dtos/EmailVerificationStartResponse.js +32 -0
  27. package/bin/emailVerification/dtos/EmailVerificationStatusRequest.d.ts +7 -0
  28. package/bin/emailVerification/dtos/EmailVerificationStatusRequest.js +30 -0
  29. package/bin/emailVerification/dtos/EmailVerificationStatusResponse.d.ts +10 -0
  30. package/bin/emailVerification/dtos/EmailVerificationStatusResponse.js +36 -0
  31. package/bin/emailVerification/dtos/internal/EmailsByDirectoryRequest.d.ts +6 -0
  32. package/bin/emailVerification/dtos/internal/EmailsByDirectoryRequest.js +25 -0
  33. package/bin/emailVerification/dtos/internal/EmailsByDirectoryResponse.d.ts +7 -0
  34. package/bin/emailVerification/dtos/internal/EmailsByDirectoryResponse.js +23 -0
  35. package/bin/emailVerification/dtos/internal/PrimaryEmailByDirectoryRequest.d.ts +7 -0
  36. package/bin/emailVerification/dtos/internal/PrimaryEmailByDirectoryRequest.js +26 -0
  37. package/bin/emailVerification/dtos/internal/PrimaryEmailResponse.d.ts +9 -0
  38. package/bin/emailVerification/dtos/internal/PrimaryEmailResponse.js +32 -0
  39. package/bin/emailVerification/enums/EmailVerificationStatusEnum.d.ts +15 -0
  40. package/bin/emailVerification/enums/EmailVerificationStatusEnum.js +19 -0
  41. package/bin/emailVerification/index.d.ts +18 -0
  42. package/bin/emailVerification/index.js +34 -0
  43. package/bin/index.d.ts +1 -0
  44. package/bin/index.js +2 -1
  45. package/bin/productCatalog/enums/ProductTypeEnum.d.ts +2 -1
  46. package/bin/productCatalog/enums/ProductTypeEnum.js +1 -0
  47. package/package.json +1 -1
  48. package/src/emailVerification/dtos/EmailConfirmRequest.ts +19 -0
  49. package/src/emailVerification/dtos/EmailDeleteRequest.ts +15 -0
  50. package/src/emailVerification/dtos/EmailDeleteResponse.ts +12 -0
  51. package/src/emailVerification/dtos/EmailItem.ts +23 -0
  52. package/src/emailVerification/dtos/EmailListResponse.ts +10 -0
  53. package/src/emailVerification/dtos/EmailSetPrincipalRequest.ts +15 -0
  54. package/src/emailVerification/dtos/EmailSetPrincipalResponse.ts +12 -0
  55. package/src/emailVerification/dtos/EmailVerificationResendRequest.ts +15 -0
  56. package/src/emailVerification/dtos/EmailVerificationResendResponse.ts +13 -0
  57. package/src/emailVerification/dtos/EmailVerificationStartRequest.ts +17 -0
  58. package/src/emailVerification/dtos/EmailVerificationStartResponse.ts +16 -0
  59. package/src/emailVerification/dtos/EmailVerificationStatusRequest.ts +15 -0
  60. package/src/emailVerification/dtos/EmailVerificationStatusResponse.ts +19 -0
  61. package/src/emailVerification/dtos/internal/EmailsByDirectoryRequest.ts +11 -0
  62. package/src/emailVerification/dtos/internal/EmailsByDirectoryResponse.ts +10 -0
  63. package/src/emailVerification/dtos/internal/PrimaryEmailByDirectoryRequest.ts +12 -0
  64. package/src/emailVerification/dtos/internal/PrimaryEmailResponse.ts +16 -0
  65. package/src/emailVerification/enums/EmailVerificationStatusEnum.ts +15 -0
  66. package/src/emailVerification/index.ts +18 -0
  67. package/src/index.ts +1 -0
  68. package/src/productCatalog/enums/ProductTypeEnum.ts +2 -1
@@ -0,0 +1,36 @@
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.EmailVerificationStatusResponse = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const EmailVerificationStatusEnum_1 = require("../enums/EmailVerificationStatusEnum");
15
+ /**
16
+ * Estado de verificación de un email puntual de un directorio.
17
+ */
18
+ class EmailVerificationStatusResponse {
19
+ }
20
+ exports.EmailVerificationStatusResponse = EmailVerificationStatusResponse;
21
+ __decorate([
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", String)
24
+ ], EmailVerificationStatusResponse.prototype, "email", void 0);
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
28
+ ], EmailVerificationStatusResponse.prototype, "status", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", Boolean)
32
+ ], EmailVerificationStatusResponse.prototype, "isVerified", void 0);
33
+ __decorate([
34
+ (0, class_transformer_1.Expose)(),
35
+ __metadata("design:type", Boolean)
36
+ ], EmailVerificationStatusResponse.prototype, "isPrincipal", void 0);
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Request interno (api-invoker) para listar todos los emails de un directorio.
3
+ */
4
+ export declare class EmailsByDirectoryRequest {
5
+ directoryId: string;
6
+ }
@@ -0,0 +1,25 @@
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.EmailsByDirectoryRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ /**
16
+ * Request interno (api-invoker) para listar todos los emails de un directorio.
17
+ */
18
+ class EmailsByDirectoryRequest {
19
+ }
20
+ exports.EmailsByDirectoryRequest = EmailsByDirectoryRequest;
21
+ __decorate([
22
+ (0, class_transformer_1.Expose)(),
23
+ (0, class_validator_1.IsString)(),
24
+ __metadata("design:type", String)
25
+ ], EmailsByDirectoryRequest.prototype, "directoryId", void 0);
@@ -0,0 +1,7 @@
1
+ import { EmailItem } from '../EmailItem';
2
+ /**
3
+ * Lista interna de emails de un directorio. Reutiliza el EmailItem público.
4
+ */
5
+ export declare class EmailsByDirectoryResponse {
6
+ items: EmailItem[];
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.EmailsByDirectoryResponse = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ /**
15
+ * Lista interna de emails de un directorio. Reutiliza el EmailItem público.
16
+ */
17
+ class EmailsByDirectoryResponse {
18
+ }
19
+ exports.EmailsByDirectoryResponse = EmailsByDirectoryResponse;
20
+ __decorate([
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", Array)
23
+ ], EmailsByDirectoryResponse.prototype, "items", void 0);
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Request interno (api-invoker) para obtener el email principal de un directorio.
3
+ * `directoryId` es @IsString (cognitoSub UUID v7 — no usar @IsUUID).
4
+ */
5
+ export declare class PrimaryEmailByDirectoryRequest {
6
+ directoryId: string;
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.PrimaryEmailByDirectoryRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ /**
16
+ * Request interno (api-invoker) para obtener el email principal de un directorio.
17
+ * `directoryId` es @IsString (cognitoSub UUID v7 — no usar @IsUUID).
18
+ */
19
+ class PrimaryEmailByDirectoryRequest {
20
+ }
21
+ exports.PrimaryEmailByDirectoryRequest = PrimaryEmailByDirectoryRequest;
22
+ __decorate([
23
+ (0, class_transformer_1.Expose)(),
24
+ (0, class_validator_1.IsString)(),
25
+ __metadata("design:type", String)
26
+ ], PrimaryEmailByDirectoryRequest.prototype, "directoryId", void 0);
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Email principal de un directorio. `email` es null si el directorio todavía
3
+ * no tiene un email principal definido.
4
+ */
5
+ export declare class PrimaryEmailResponse {
6
+ directoryId: string;
7
+ email: string | null;
8
+ isVerified: boolean;
9
+ }
@@ -0,0 +1,32 @@
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.PrimaryEmailResponse = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ /**
15
+ * Email principal de un directorio. `email` es null si el directorio todavía
16
+ * no tiene un email principal definido.
17
+ */
18
+ class PrimaryEmailResponse {
19
+ }
20
+ exports.PrimaryEmailResponse = PrimaryEmailResponse;
21
+ __decorate([
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", String)
24
+ ], PrimaryEmailResponse.prototype, "directoryId", void 0);
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
28
+ ], PrimaryEmailResponse.prototype, "email", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", Boolean)
32
+ ], PrimaryEmailResponse.prototype, "isVerified", void 0);
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Estado del flujo de verificación de un email asociado a un directorio.
3
+ * PENDING: creado, todavía no se envió el correo.
4
+ * SENT: correo de verificación enviado.
5
+ * VERIFIED: el usuario confirmó el email vía el link.
6
+ * EXPIRED: el token de verificación venció sin confirmarse.
7
+ * FAILED: el envío o la verificación falló de forma terminal.
8
+ */
9
+ export declare enum EmailVerificationStatusEnum {
10
+ PENDING = "PENDING",
11
+ SENT = "SENT",
12
+ VERIFIED = "VERIFIED",
13
+ EXPIRED = "EXPIRED",
14
+ FAILED = "FAILED"
15
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmailVerificationStatusEnum = void 0;
4
+ /**
5
+ * Estado del flujo de verificación de un email asociado a un directorio.
6
+ * PENDING: creado, todavía no se envió el correo.
7
+ * SENT: correo de verificación enviado.
8
+ * VERIFIED: el usuario confirmó el email vía el link.
9
+ * EXPIRED: el token de verificación venció sin confirmarse.
10
+ * FAILED: el envío o la verificación falló de forma terminal.
11
+ */
12
+ var EmailVerificationStatusEnum;
13
+ (function (EmailVerificationStatusEnum) {
14
+ EmailVerificationStatusEnum["PENDING"] = "PENDING";
15
+ EmailVerificationStatusEnum["SENT"] = "SENT";
16
+ EmailVerificationStatusEnum["VERIFIED"] = "VERIFIED";
17
+ EmailVerificationStatusEnum["EXPIRED"] = "EXPIRED";
18
+ EmailVerificationStatusEnum["FAILED"] = "FAILED";
19
+ })(EmailVerificationStatusEnum || (exports.EmailVerificationStatusEnum = EmailVerificationStatusEnum = {}));
@@ -0,0 +1,18 @@
1
+ export * from './enums/EmailVerificationStatusEnum';
2
+ export * from './dtos/EmailVerificationStartRequest';
3
+ export * from './dtos/EmailVerificationStartResponse';
4
+ export * from './dtos/EmailVerificationResendRequest';
5
+ export * from './dtos/EmailVerificationResendResponse';
6
+ export * from './dtos/EmailVerificationStatusRequest';
7
+ export * from './dtos/EmailVerificationStatusResponse';
8
+ export * from './dtos/EmailItem';
9
+ export * from './dtos/EmailListResponse';
10
+ export * from './dtos/EmailSetPrincipalRequest';
11
+ export * from './dtos/EmailSetPrincipalResponse';
12
+ export * from './dtos/EmailDeleteRequest';
13
+ export * from './dtos/EmailDeleteResponse';
14
+ export * from './dtos/EmailConfirmRequest';
15
+ export * from './dtos/internal/PrimaryEmailByDirectoryRequest';
16
+ export * from './dtos/internal/PrimaryEmailResponse';
17
+ export * from './dtos/internal/EmailsByDirectoryRequest';
18
+ export * from './dtos/internal/EmailsByDirectoryResponse';
@@ -0,0 +1,34 @@
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/EmailVerificationStatusEnum"), exports);
18
+ __exportStar(require("./dtos/EmailVerificationStartRequest"), exports);
19
+ __exportStar(require("./dtos/EmailVerificationStartResponse"), exports);
20
+ __exportStar(require("./dtos/EmailVerificationResendRequest"), exports);
21
+ __exportStar(require("./dtos/EmailVerificationResendResponse"), exports);
22
+ __exportStar(require("./dtos/EmailVerificationStatusRequest"), exports);
23
+ __exportStar(require("./dtos/EmailVerificationStatusResponse"), exports);
24
+ __exportStar(require("./dtos/EmailItem"), exports);
25
+ __exportStar(require("./dtos/EmailListResponse"), exports);
26
+ __exportStar(require("./dtos/EmailSetPrincipalRequest"), exports);
27
+ __exportStar(require("./dtos/EmailSetPrincipalResponse"), exports);
28
+ __exportStar(require("./dtos/EmailDeleteRequest"), exports);
29
+ __exportStar(require("./dtos/EmailDeleteResponse"), exports);
30
+ __exportStar(require("./dtos/EmailConfirmRequest"), exports);
31
+ __exportStar(require("./dtos/internal/PrimaryEmailByDirectoryRequest"), exports);
32
+ __exportStar(require("./dtos/internal/PrimaryEmailResponse"), exports);
33
+ __exportStar(require("./dtos/internal/EmailsByDirectoryRequest"), exports);
34
+ __exportStar(require("./dtos/internal/EmailsByDirectoryResponse"), exports);
package/bin/index.d.ts CHANGED
@@ -81,5 +81,6 @@ export * as Remittance from './remittance';
81
81
  export * as WalletFunding from './walletFunding';
82
82
  export * as TotpSecurity from './totpSecurity';
83
83
  export * as NetworkConnector from './networkConnector';
84
+ export * as EmailVerification from './emailVerification';
84
85
  export * from './messaging';
85
86
  export * from './complaint';
package/bin/index.js CHANGED
@@ -37,7 +37,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Company = exports.Services = exports.AccountIssuanceBusiness = exports.AppSelectionData = exports.Device = exports.Observations = exports.IssuanceBusiness = exports.Blacklist = exports.CentralPayments = exports.Helpdesk = exports.FiadoApiResponse = exports.Auth = exports.LegalDocumentsBusiness = exports.Role = exports.STPAccount = exports.RiskProfile = exports.FraudPreventionEngine = exports.BBVARst = exports.Stp = exports.BenefitCenter = exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.TransactionAnalytics = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Beneficiary = exports.Activity = exports.Account = exports.Crypto = void 0;
40
- exports.NetworkConnector = exports.TotpSecurity = 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 = void 0;
40
+ exports.EmailVerification = exports.NetworkConnector = exports.TotpSecurity = 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 = void 0;
41
41
  exports.Crypto = __importStar(require("./crypto"));
42
42
  exports.Account = __importStar(require("./account"));
43
43
  exports.Activity = __importStar(require("./activity"));
@@ -128,5 +128,6 @@ exports.TotpSecurity = __importStar(require("./totpSecurity"));
128
128
  // NetworkConnector: módulo del lambda fiado-network-business (Access Card / Digital Business Card).
129
129
  // Contiene DTOs y enums para perfiles, leads, lead groups y fotos.
130
130
  exports.NetworkConnector = __importStar(require("./networkConnector"));
131
+ exports.EmailVerification = __importStar(require("./emailVerification"));
131
132
  __exportStar(require("./messaging"), exports);
132
133
  __exportStar(require("./complaint"), exports);
@@ -10,5 +10,6 @@ export declare enum ProductTypeEnum {
10
10
  CREDIT = "CREDIT",
11
11
  MULTICOMM_SERV_SA = "MULTICOMM_SERV_SA",
12
12
  MULTICENTER_SERV_SA = "MULTICENTER_SERV_SA",
13
- UNITELLER_REMIT = "UNITELLER_REMIT"
13
+ UNITELLER_REMIT = "UNITELLER_REMIT",
14
+ WALLET_FUNDING = "WALLET_FUNDING"
14
15
  }
@@ -15,4 +15,5 @@ var ProductTypeEnum;
15
15
  ProductTypeEnum["MULTICOMM_SERV_SA"] = "MULTICOMM_SERV_SA";
16
16
  ProductTypeEnum["MULTICENTER_SERV_SA"] = "MULTICENTER_SERV_SA";
17
17
  ProductTypeEnum["UNITELLER_REMIT"] = "UNITELLER_REMIT";
18
+ ProductTypeEnum["WALLET_FUNDING"] = "WALLET_FUNDING";
18
19
  })(ProductTypeEnum || (exports.ProductTypeEnum = ProductTypeEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.100.0",
3
+ "version": "3.102.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,19 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { IsNotEmpty, IsString } from 'class-validator';
3
+
4
+ /**
5
+ * Datos de confirmación que llegan desde el link del correo de verificación.
6
+ * `vid` = verificationId; `t` = token opaco de un solo uso.
7
+ * Ambos son opacos para el cliente: @IsString + @IsNotEmpty (no se parsean).
8
+ */
9
+ export class EmailConfirmRequest {
10
+ @Expose()
11
+ @IsString()
12
+ @IsNotEmpty()
13
+ vid!: string;
14
+
15
+ @Expose()
16
+ @IsString()
17
+ @IsNotEmpty()
18
+ t!: string;
19
+ }
@@ -0,0 +1,15 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { IsEmail, IsString } from 'class-validator';
3
+
4
+ /**
5
+ * Body para eliminar un email asociado a un directorio.
6
+ */
7
+ export class EmailDeleteRequest {
8
+ @Expose()
9
+ @IsString()
10
+ directoryId!: string;
11
+
12
+ @Expose()
13
+ @IsEmail()
14
+ email!: string;
15
+ }
@@ -0,0 +1,12 @@
1
+ import { Expose } from 'class-transformer';
2
+
3
+ /**
4
+ * Respuesta al eliminar un email.
5
+ */
6
+ export class EmailDeleteResponse {
7
+ @Expose()
8
+ email!: string;
9
+
10
+ @Expose()
11
+ deleted!: boolean;
12
+ }
@@ -0,0 +1,23 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { EmailVerificationStatusEnum } from '../enums/EmailVerificationStatusEnum';
3
+
4
+ /**
5
+ * Item de email asociado a un directorio. Se reutiliza en EmailListResponse
6
+ * (público) y en EmailsByDirectoryResponse (interno).
7
+ */
8
+ export class EmailItem {
9
+ @Expose()
10
+ email!: string;
11
+
12
+ @Expose()
13
+ isVerified!: boolean;
14
+
15
+ @Expose()
16
+ isPrincipal!: boolean;
17
+
18
+ @Expose()
19
+ status!: EmailVerificationStatusEnum;
20
+
21
+ @Expose()
22
+ verifiedAt?: number;
23
+ }
@@ -0,0 +1,10 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { EmailItem } from './EmailItem';
3
+
4
+ /**
5
+ * Lista de emails asociados a un directorio (endpoint público de listado).
6
+ */
7
+ export class EmailListResponse {
8
+ @Expose()
9
+ items!: EmailItem[];
10
+ }
@@ -0,0 +1,15 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { IsEmail, IsString } from 'class-validator';
3
+
4
+ /**
5
+ * Body para marcar un email como principal del directorio.
6
+ */
7
+ export class EmailSetPrincipalRequest {
8
+ @Expose()
9
+ @IsString()
10
+ directoryId!: string;
11
+
12
+ @Expose()
13
+ @IsEmail()
14
+ email!: string;
15
+ }
@@ -0,0 +1,12 @@
1
+ import { Expose } from 'class-transformer';
2
+
3
+ /**
4
+ * Respuesta al marcar un email como principal.
5
+ */
6
+ export class EmailSetPrincipalResponse {
7
+ @Expose()
8
+ email!: string;
9
+
10
+ @Expose()
11
+ isPrincipal!: boolean;
12
+ }
@@ -0,0 +1,15 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { IsEmail, IsString } from 'class-validator';
3
+
4
+ /**
5
+ * Body para reenviar el correo de verificación de un email ya iniciado.
6
+ */
7
+ export class EmailVerificationResendRequest {
8
+ @Expose()
9
+ @IsString()
10
+ directoryId!: string;
11
+
12
+ @Expose()
13
+ @IsEmail()
14
+ email!: string;
15
+ }
@@ -0,0 +1,13 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { EmailVerificationStatusEnum } from '../enums/EmailVerificationStatusEnum';
3
+
4
+ /**
5
+ * Respuesta al reenviar el correo de verificación.
6
+ */
7
+ export class EmailVerificationResendResponse {
8
+ @Expose()
9
+ verificationId!: string;
10
+
11
+ @Expose()
12
+ status!: EmailVerificationStatusEnum;
13
+ }
@@ -0,0 +1,17 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { IsEmail, IsString } from 'class-validator';
3
+
4
+ /**
5
+ * Body para iniciar la verificación de un email asociado a un directorio.
6
+ * `directoryId` es @IsString (NO @IsUUID): el cognitoSub de backoffice es UUID v7
7
+ * y rompe la validación @IsUUID de class-validator.
8
+ */
9
+ export class EmailVerificationStartRequest {
10
+ @Expose()
11
+ @IsString()
12
+ directoryId!: string;
13
+
14
+ @Expose()
15
+ @IsEmail()
16
+ email!: string;
17
+ }
@@ -0,0 +1,16 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { EmailVerificationStatusEnum } from '../enums/EmailVerificationStatusEnum';
3
+
4
+ /**
5
+ * Respuesta al iniciar la verificación de un email.
6
+ */
7
+ export class EmailVerificationStartResponse {
8
+ @Expose()
9
+ verificationId!: string;
10
+
11
+ @Expose()
12
+ email!: string;
13
+
14
+ @Expose()
15
+ status!: EmailVerificationStatusEnum;
16
+ }
@@ -0,0 +1,15 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { IsEmail, IsString } from 'class-validator';
3
+
4
+ /**
5
+ * Body para consultar el estado de verificación de un email.
6
+ */
7
+ export class EmailVerificationStatusRequest {
8
+ @Expose()
9
+ @IsString()
10
+ directoryId!: string;
11
+
12
+ @Expose()
13
+ @IsEmail()
14
+ email!: string;
15
+ }
@@ -0,0 +1,19 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { EmailVerificationStatusEnum } from '../enums/EmailVerificationStatusEnum';
3
+
4
+ /**
5
+ * Estado de verificación de un email puntual de un directorio.
6
+ */
7
+ export class EmailVerificationStatusResponse {
8
+ @Expose()
9
+ email!: string;
10
+
11
+ @Expose()
12
+ status!: EmailVerificationStatusEnum;
13
+
14
+ @Expose()
15
+ isVerified!: boolean;
16
+
17
+ @Expose()
18
+ isPrincipal!: boolean;
19
+ }
@@ -0,0 +1,11 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { IsString } from 'class-validator';
3
+
4
+ /**
5
+ * Request interno (api-invoker) para listar todos los emails de un directorio.
6
+ */
7
+ export class EmailsByDirectoryRequest {
8
+ @Expose()
9
+ @IsString()
10
+ directoryId!: string;
11
+ }
@@ -0,0 +1,10 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { EmailItem } from '../EmailItem';
3
+
4
+ /**
5
+ * Lista interna de emails de un directorio. Reutiliza el EmailItem público.
6
+ */
7
+ export class EmailsByDirectoryResponse {
8
+ @Expose()
9
+ items!: EmailItem[];
10
+ }
@@ -0,0 +1,12 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { IsString } from 'class-validator';
3
+
4
+ /**
5
+ * Request interno (api-invoker) para obtener el email principal de un directorio.
6
+ * `directoryId` es @IsString (cognitoSub UUID v7 — no usar @IsUUID).
7
+ */
8
+ export class PrimaryEmailByDirectoryRequest {
9
+ @Expose()
10
+ @IsString()
11
+ directoryId!: string;
12
+ }
@@ -0,0 +1,16 @@
1
+ import { Expose } from 'class-transformer';
2
+
3
+ /**
4
+ * Email principal de un directorio. `email` es null si el directorio todavía
5
+ * no tiene un email principal definido.
6
+ */
7
+ export class PrimaryEmailResponse {
8
+ @Expose()
9
+ directoryId!: string;
10
+
11
+ @Expose()
12
+ email!: string | null;
13
+
14
+ @Expose()
15
+ isVerified!: boolean;
16
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Estado del flujo de verificación de un email asociado a un directorio.
3
+ * PENDING: creado, todavía no se envió el correo.
4
+ * SENT: correo de verificación enviado.
5
+ * VERIFIED: el usuario confirmó el email vía el link.
6
+ * EXPIRED: el token de verificación venció sin confirmarse.
7
+ * FAILED: el envío o la verificación falló de forma terminal.
8
+ */
9
+ export enum EmailVerificationStatusEnum {
10
+ PENDING = 'PENDING',
11
+ SENT = 'SENT',
12
+ VERIFIED = 'VERIFIED',
13
+ EXPIRED = 'EXPIRED',
14
+ FAILED = 'FAILED',
15
+ }
@@ -0,0 +1,18 @@
1
+ export * from './enums/EmailVerificationStatusEnum';
2
+ export * from './dtos/EmailVerificationStartRequest';
3
+ export * from './dtos/EmailVerificationStartResponse';
4
+ export * from './dtos/EmailVerificationResendRequest';
5
+ export * from './dtos/EmailVerificationResendResponse';
6
+ export * from './dtos/EmailVerificationStatusRequest';
7
+ export * from './dtos/EmailVerificationStatusResponse';
8
+ export * from './dtos/EmailItem';
9
+ export * from './dtos/EmailListResponse';
10
+ export * from './dtos/EmailSetPrincipalRequest';
11
+ export * from './dtos/EmailSetPrincipalResponse';
12
+ export * from './dtos/EmailDeleteRequest';
13
+ export * from './dtos/EmailDeleteResponse';
14
+ export * from './dtos/EmailConfirmRequest';
15
+ export * from './dtos/internal/PrimaryEmailByDirectoryRequest';
16
+ export * from './dtos/internal/PrimaryEmailResponse';
17
+ export * from './dtos/internal/EmailsByDirectoryRequest';
18
+ export * from './dtos/internal/EmailsByDirectoryResponse';