@fiado/type-kit 3.294.0 → 3.296.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.
- package/bin/country/enums/CountryId.d.ts +32 -1
- package/bin/country/enums/CountryId.js +31 -0
- package/bin/emailVerification/dtos/internal/EmailStartByDirectoryRequest.d.ts +10 -0
- package/bin/emailVerification/dtos/internal/EmailStartByDirectoryRequest.js +37 -0
- package/bin/emailVerification/dtos/internal/EmailStartByDirectoryResponse.d.ts +9 -0
- package/bin/emailVerification/dtos/internal/EmailStartByDirectoryResponse.js +32 -0
- package/bin/emailVerification/index.d.ts +2 -0
- package/bin/emailVerification/index.js +2 -0
- package/package.json +1 -1
- package/src/country/enums/CountryId.ts +32 -1
- package/src/emailVerification/dtos/internal/EmailStartByDirectoryRequest.ts +22 -0
- package/src/emailVerification/dtos/internal/EmailStartByDirectoryResponse.ts +16 -0
- package/src/emailVerification/index.ts +2 -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
|
-
|
|
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 = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request interno (api-invoker) para registrar un email y disparar su verificación.
|
|
3
|
+
* `directoryId` es @IsString (cognitoSub UUID v7 — no usar @IsUUID).
|
|
4
|
+
*/
|
|
5
|
+
export declare class EmailStartByDirectoryRequest {
|
|
6
|
+
directoryId: string;
|
|
7
|
+
email: string;
|
|
8
|
+
/** Nombre para el saludo del correo. Default "Cliente". */
|
|
9
|
+
name?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.EmailStartByDirectoryRequest = 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 registrar un email y disparar su verificación.
|
|
17
|
+
* `directoryId` es @IsString (cognitoSub UUID v7 — no usar @IsUUID).
|
|
18
|
+
*/
|
|
19
|
+
class EmailStartByDirectoryRequest {
|
|
20
|
+
}
|
|
21
|
+
exports.EmailStartByDirectoryRequest = EmailStartByDirectoryRequest;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], EmailStartByDirectoryRequest.prototype, "directoryId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
(0, class_validator_1.IsEmail)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], EmailStartByDirectoryRequest.prototype, "email", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], EmailStartByDirectoryRequest.prototype, "name", void 0);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EmailVerificationStatusEnum } from '../../enums/EmailVerificationStatusEnum';
|
|
2
|
+
/**
|
|
3
|
+
* Response interno del alta + disparo de verificación de un email por directorio.
|
|
4
|
+
*/
|
|
5
|
+
export declare class EmailStartByDirectoryResponse {
|
|
6
|
+
email: string;
|
|
7
|
+
verificationId: string;
|
|
8
|
+
status: EmailVerificationStatusEnum;
|
|
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.EmailStartByDirectoryResponse = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const EmailVerificationStatusEnum_1 = require("../../enums/EmailVerificationStatusEnum");
|
|
15
|
+
/**
|
|
16
|
+
* Response interno del alta + disparo de verificación de un email por directorio.
|
|
17
|
+
*/
|
|
18
|
+
class EmailStartByDirectoryResponse {
|
|
19
|
+
}
|
|
20
|
+
exports.EmailStartByDirectoryResponse = EmailStartByDirectoryResponse;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], EmailStartByDirectoryResponse.prototype, "email", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], EmailStartByDirectoryResponse.prototype, "verificationId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], EmailStartByDirectoryResponse.prototype, "status", void 0);
|
|
@@ -17,3 +17,5 @@ export * from './dtos/internal/PrimaryEmailByDirectoryRequest';
|
|
|
17
17
|
export * from './dtos/internal/PrimaryEmailResponse';
|
|
18
18
|
export * from './dtos/internal/EmailsByDirectoryRequest';
|
|
19
19
|
export * from './dtos/internal/EmailsByDirectoryResponse';
|
|
20
|
+
export * from './dtos/internal/EmailStartByDirectoryRequest';
|
|
21
|
+
export * from './dtos/internal/EmailStartByDirectoryResponse';
|
|
@@ -33,3 +33,5 @@ __exportStar(require("./dtos/internal/PrimaryEmailByDirectoryRequest"), exports)
|
|
|
33
33
|
__exportStar(require("./dtos/internal/PrimaryEmailResponse"), exports);
|
|
34
34
|
__exportStar(require("./dtos/internal/EmailsByDirectoryRequest"), exports);
|
|
35
35
|
__exportStar(require("./dtos/internal/EmailsByDirectoryResponse"), exports);
|
|
36
|
+
__exportStar(require("./dtos/internal/EmailStartByDirectoryRequest"), exports);
|
|
37
|
+
__exportStar(require("./dtos/internal/EmailStartByDirectoryResponse"), exports);
|
package/package.json
CHANGED
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsEmail, IsOptional, IsString } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Request interno (api-invoker) para registrar un email y disparar su verificación.
|
|
6
|
+
* `directoryId` es @IsString (cognitoSub UUID v7 — no usar @IsUUID).
|
|
7
|
+
*/
|
|
8
|
+
export class EmailStartByDirectoryRequest {
|
|
9
|
+
@Expose()
|
|
10
|
+
@IsString()
|
|
11
|
+
directoryId!: string;
|
|
12
|
+
|
|
13
|
+
@Expose()
|
|
14
|
+
@IsEmail()
|
|
15
|
+
email!: string;
|
|
16
|
+
|
|
17
|
+
/** Nombre para el saludo del correo. Default "Cliente". */
|
|
18
|
+
@Expose()
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@IsString()
|
|
21
|
+
name?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { EmailVerificationStatusEnum } from '../../enums/EmailVerificationStatusEnum';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Response interno del alta + disparo de verificación de un email por directorio.
|
|
6
|
+
*/
|
|
7
|
+
export class EmailStartByDirectoryResponse {
|
|
8
|
+
@Expose()
|
|
9
|
+
email!: string;
|
|
10
|
+
|
|
11
|
+
@Expose()
|
|
12
|
+
verificationId!: string;
|
|
13
|
+
|
|
14
|
+
@Expose()
|
|
15
|
+
status!: EmailVerificationStatusEnum;
|
|
16
|
+
}
|
|
@@ -17,3 +17,5 @@ export * from './dtos/internal/PrimaryEmailByDirectoryRequest';
|
|
|
17
17
|
export * from './dtos/internal/PrimaryEmailResponse';
|
|
18
18
|
export * from './dtos/internal/EmailsByDirectoryRequest';
|
|
19
19
|
export * from './dtos/internal/EmailsByDirectoryResponse';
|
|
20
|
+
export * from './dtos/internal/EmailStartByDirectoryRequest';
|
|
21
|
+
export * from './dtos/internal/EmailStartByDirectoryResponse';
|