@fiado/type-kit 3.198.0 → 3.200.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/loanConfig/enums/ModifiableByRoleEnum.d.ts +11 -0
- package/bin/loanConfig/enums/ModifiableByRoleEnum.js +15 -0
- package/bin/loanCredit/dtos/LoanBorrower.d.ts +1 -1
- package/bin/loanCredit/dtos/LoanBorrower.js +1 -1
- package/bin/loanCredit/dtos/LoanContract.d.ts +27 -0
- package/bin/loanCredit/dtos/LoanContract.js +91 -0
- package/bin/loanCredit/dtos/LoanCredit.d.ts +5 -1
- package/bin/loanCredit/dtos/LoanCredit.js +14 -1
- package/bin/loanCredit/dtos/requests/ActivationCheckRequest.d.ts +21 -0
- package/bin/loanCredit/dtos/requests/{UpdateActivationChecklistRequest.js → ActivationCheckRequest.js} +18 -12
- package/bin/loanCredit/dtos/requests/OriginateLoanCreditRequest.d.ts +12 -9
- package/bin/loanCredit/dtos/requests/OriginateLoanCreditRequest.js +14 -13
- package/bin/loanCredit/dtos/requests/QuoteLoanCreditRequest.d.ts +11 -0
- package/bin/loanCredit/dtos/requests/QuoteLoanCreditRequest.js +39 -0
- package/bin/loanCredit/dtos/requests/SignLoanCreditRequest.d.ts +17 -0
- package/bin/loanCredit/dtos/requests/SignLoanCreditRequest.js +37 -0
- package/bin/loanCredit/dtos/requests/UpsertLoanBorrowerRequest.d.ts +1 -1
- package/bin/loanCredit/dtos/requests/UpsertLoanBorrowerRequest.js +1 -1
- package/bin/loanCredit/dtos/responses/ActivationCheckResponse.d.ts +10 -0
- package/bin/loanCredit/dtos/responses/ActivationCheckResponse.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanBorrowerResponse.d.ts +1 -1
- package/bin/loanCredit/dtos/responses/LoanContractResponse.d.ts +16 -0
- package/bin/loanCredit/dtos/responses/LoanContractResponse.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanCreditResponse.d.ts +1 -1
- package/bin/loanCredit/dtos/responses/OriginateLoanCreditResponse.d.ts +5 -2
- package/bin/loanCredit/dtos/responses/QuoteLoanCreditResponse.d.ts +10 -0
- package/bin/loanCredit/dtos/responses/QuoteLoanCreditResponse.js +2 -0
- package/bin/loanCredit/dtos/responses/SignLoanCreditResponse.d.ts +20 -0
- package/bin/loanCredit/dtos/responses/SignLoanCreditResponse.js +2 -0
- package/bin/loanCredit/enums/ContractTypeEnum.d.ts +12 -0
- package/bin/loanCredit/enums/ContractTypeEnum.js +16 -0
- package/bin/loanCredit/enums/LoanInstallmentStatusEnum.d.ts +5 -2
- package/bin/loanCredit/enums/LoanInstallmentStatusEnum.js +5 -2
- package/bin/loanCredit/index.d.ts +10 -2
- package/bin/loanCredit/index.js +13 -2
- package/bin/places/dtos/CashInFeeDto.d.ts +17 -0
- package/bin/places/dtos/CashInFeeDto.js +12 -0
- package/bin/platformRbac/dtos/ResendOtpRequest.d.ts +22 -0
- package/bin/{walletFunding/dtos/CancelFundingRequest.js → platformRbac/dtos/ResendOtpRequest.js} +16 -13
- package/bin/platformRbac/dtos/ResendSelfRegisterOtpRequest.d.ts +11 -0
- package/bin/{walletFunding/dtos/CancelFundingReferenceRequest.js → platformRbac/dtos/ResendSelfRegisterOtpRequest.js} +18 -13
- package/bin/retailCustomer/dtos/RetailCustomer.d.ts +24 -2
- package/bin/retailCustomer/dtos/RetailCustomer.js +64 -1
- package/bin/retailCustomer/dtos/requests/CreateCustomerRequest.d.ts +7 -1
- package/bin/retailCustomer/dtos/requests/CreateCustomerRequest.js +30 -1
- package/bin/retailCustomer/dtos/requests/UpdateCustomerRequest.d.ts +7 -1
- package/bin/retailCustomer/dtos/requests/UpdateCustomerRequest.js +31 -1
- package/bin/retailCustomer/dtos/requests/UpsertCustomerFromKycRequest.d.ts +13 -1
- package/bin/retailCustomer/dtos/requests/UpsertCustomerFromKycRequest.js +41 -1
- package/bin/retailCustomer/dtos/responses/CustomerResponse.d.ts +14 -2
- package/bin/retailCustomer/enums/RetailCustomerStatusEnum.d.ts +10 -0
- package/bin/retailCustomer/enums/RetailCustomerStatusEnum.js +14 -0
- package/bin/retailCustomer/index.d.ts +1 -0
- package/bin/retailCustomer/index.js +1 -0
- package/package.json +1 -1
- package/src/loanCredit/dtos/LoanBorrower.ts +1 -1
- package/src/loanCredit/dtos/LoanContract.ts +70 -0
- package/src/loanCredit/dtos/LoanCredit.ts +14 -1
- package/src/loanCredit/dtos/requests/ActivationCheckRequest.ts +39 -0
- package/src/loanCredit/dtos/requests/OriginateLoanCreditRequest.ts +16 -15
- package/src/loanCredit/dtos/requests/QuoteLoanCreditRequest.ts +24 -0
- package/src/loanCredit/dtos/requests/SignLoanCreditRequest.ts +24 -0
- package/src/loanCredit/dtos/requests/UpsertLoanBorrowerRequest.ts +1 -1
- package/src/loanCredit/dtos/responses/ActivationCheckResponse.ts +11 -0
- package/src/loanCredit/dtos/responses/LoanBorrowerResponse.ts +1 -1
- package/src/loanCredit/dtos/responses/LoanContractResponse.ts +17 -0
- package/src/loanCredit/dtos/responses/LoanCreditResponse.ts +1 -1
- package/src/loanCredit/dtos/responses/OriginateLoanCreditResponse.ts +5 -2
- package/src/loanCredit/dtos/responses/QuoteLoanCreditResponse.ts +11 -0
- package/src/loanCredit/dtos/responses/SignLoanCreditResponse.ts +21 -0
- package/src/loanCredit/enums/ContractTypeEnum.ts +12 -0
- package/src/loanCredit/enums/LoanInstallmentStatusEnum.ts +5 -2
- package/src/loanCredit/index.ts +11 -2
- package/src/retailCustomer/dtos/RetailCustomer.ts +75 -3
- package/src/retailCustomer/dtos/requests/CreateCustomerRequest.ts +26 -2
- package/src/retailCustomer/dtos/requests/UpdateCustomerRequest.ts +28 -2
- package/src/retailCustomer/dtos/requests/UpsertCustomerFromKycRequest.ts +49 -2
- package/src/retailCustomer/dtos/responses/CustomerResponse.ts +14 -2
- package/src/retailCustomer/enums/RetailCustomerStatusEnum.ts +10 -0
- package/src/retailCustomer/index.ts +1 -0
- package/bin/loanCredit/dtos/requests/UpdateActivationChecklistRequest.d.ts +0 -11
- package/bin/loanCredit/enums/ClientLevelEnum.d.ts +0 -11
- package/bin/loanCredit/enums/ClientLevelEnum.js +0 -15
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +0 -6
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +0 -7
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.js +0 -6
- package/bin/walletFunding/dtos/CancelFundingRequest.d.ts +0 -11
- package/bin/walletFunding/dtos/CancelFundingResponse.d.ts +0 -14
- package/bin/walletFunding/dtos/CancelFundingResponse.js +0 -12
- package/bin/walletFunding/dtos/CancelWalletFundingRequest.d.ts +0 -3
- package/bin/walletFunding/dtos/CancelWalletFundingRequest.js +0 -21
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.d.ts +0 -7
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.js +0 -6
- package/src/loanCredit/dtos/requests/UpdateActivationChecklistRequest.ts +0 -29
- package/src/loanCredit/enums/ClientLevelEnum.ts +0 -11
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContractTypeEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Tipo de documento del contrato de crédito (M2 §4.3 / C4 — 3 documentos):
|
|
6
|
+
* `CREDIT` = contrato de crédito celular (RECA 16145-439-038506/04-01076-0525) ·
|
|
7
|
+
* `PROMISSORY_NOTE` = pagaré (garantiza el crédito; mismo monto/tasa/plazo) ·
|
|
8
|
+
* `SIC_AUTHORIZATION` = autorización de consulta/reporte a Círculo de Crédito (Art. 28 LRSIC).
|
|
9
|
+
* @enum {string}
|
|
10
|
+
*/
|
|
11
|
+
var ContractTypeEnum;
|
|
12
|
+
(function (ContractTypeEnum) {
|
|
13
|
+
ContractTypeEnum["CREDIT"] = "CREDIT";
|
|
14
|
+
ContractTypeEnum["PROMISSORY_NOTE"] = "PROMISSORY_NOTE";
|
|
15
|
+
ContractTypeEnum["SIC_AUTHORIZATION"] = "SIC_AUTHORIZATION";
|
|
16
|
+
})(ContractTypeEnum || (exports.ContractTypeEnum = ContractTypeEnum = {}));
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Estado de una cuota semanal del crédito (M2 §6.1
|
|
3
|
-
*
|
|
2
|
+
* Estado de una cuota semanal del crédito (M2 §6.1: pendiente · pagado · pagado_adelantado ·
|
|
3
|
+
* vencido · reestructurado). `PAID_IN_ADVANCE` = pago adelantado (cubre cuota futura tal cual,
|
|
4
|
+
* sin recalcular tabla — M2 §3.7). `RESTRUCTURED` = la cuota dejó de aplicar por
|
|
5
|
+
* reestructura o cancelación.
|
|
4
6
|
* @enum {string}
|
|
5
7
|
*/
|
|
6
8
|
export declare enum LoanInstallmentStatusEnum {
|
|
7
9
|
PENDING = "PENDING",
|
|
8
10
|
PAID = "PAID",
|
|
11
|
+
PAID_IN_ADVANCE = "PAID_IN_ADVANCE",
|
|
9
12
|
OVERDUE = "OVERDUE",
|
|
10
13
|
RESTRUCTURED = "RESTRUCTURED"
|
|
11
14
|
}
|
|
@@ -2,14 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LoanInstallmentStatusEnum = void 0;
|
|
4
4
|
/**
|
|
5
|
-
* Estado de una cuota semanal del crédito (M2 §6.1
|
|
6
|
-
*
|
|
5
|
+
* Estado de una cuota semanal del crédito (M2 §6.1: pendiente · pagado · pagado_adelantado ·
|
|
6
|
+
* vencido · reestructurado). `PAID_IN_ADVANCE` = pago adelantado (cubre cuota futura tal cual,
|
|
7
|
+
* sin recalcular tabla — M2 §3.7). `RESTRUCTURED` = la cuota dejó de aplicar por
|
|
8
|
+
* reestructura o cancelación.
|
|
7
9
|
* @enum {string}
|
|
8
10
|
*/
|
|
9
11
|
var LoanInstallmentStatusEnum;
|
|
10
12
|
(function (LoanInstallmentStatusEnum) {
|
|
11
13
|
LoanInstallmentStatusEnum["PENDING"] = "PENDING";
|
|
12
14
|
LoanInstallmentStatusEnum["PAID"] = "PAID";
|
|
15
|
+
LoanInstallmentStatusEnum["PAID_IN_ADVANCE"] = "PAID_IN_ADVANCE";
|
|
13
16
|
LoanInstallmentStatusEnum["OVERDUE"] = "OVERDUE";
|
|
14
17
|
LoanInstallmentStatusEnum["RESTRUCTURED"] = "RESTRUCTURED";
|
|
15
18
|
})(LoanInstallmentStatusEnum || (exports.LoanInstallmentStatusEnum = LoanInstallmentStatusEnum = {}));
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
export * from './enums/LoanCreditStatusEnum';
|
|
2
2
|
export * from './enums/LoanInstallmentStatusEnum';
|
|
3
|
-
export * from './enums/
|
|
3
|
+
export * from './enums/ContractTypeEnum';
|
|
4
|
+
export { ClientLevelEnum } from '../loanScoring/enums/ClientLevelEnum';
|
|
4
5
|
export * from './dtos/LoanBorrower';
|
|
5
6
|
export * from './dtos/LoanBeneficiary';
|
|
6
7
|
export * from './dtos/LoanCredit';
|
|
7
8
|
export * from './dtos/LoanInstallment';
|
|
9
|
+
export * from './dtos/LoanContract';
|
|
8
10
|
export * from './dtos/ActivationChecklist';
|
|
9
11
|
export * from './dtos/requests/UpsertLoanBorrowerRequest';
|
|
10
12
|
export * from './dtos/requests/OriginateLoanCreditRequest';
|
|
11
|
-
export * from './dtos/requests/
|
|
13
|
+
export * from './dtos/requests/QuoteLoanCreditRequest';
|
|
14
|
+
export * from './dtos/requests/SignLoanCreditRequest';
|
|
15
|
+
export * from './dtos/requests/ActivationCheckRequest';
|
|
12
16
|
export * from './dtos/requests/ChangeLoanCreditStatusRequest';
|
|
13
17
|
export * from './dtos/responses/LoanBorrowerResponse';
|
|
14
18
|
export * from './dtos/responses/LoanCreditResponse';
|
|
15
19
|
export * from './dtos/responses/LoanInstallmentResponse';
|
|
20
|
+
export * from './dtos/responses/LoanContractResponse';
|
|
16
21
|
export * from './dtos/responses/OriginateLoanCreditResponse';
|
|
22
|
+
export * from './dtos/responses/QuoteLoanCreditResponse';
|
|
23
|
+
export * from './dtos/responses/SignLoanCreditResponse';
|
|
24
|
+
export * from './dtos/responses/ActivationCheckResponse';
|
package/bin/loanCredit/index.js
CHANGED
|
@@ -14,23 +14,34 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ClientLevelEnum = void 0;
|
|
17
18
|
// Enums
|
|
18
19
|
__exportStar(require("./enums/LoanCreditStatusEnum"), exports);
|
|
19
20
|
__exportStar(require("./enums/LoanInstallmentStatusEnum"), exports);
|
|
20
|
-
__exportStar(require("./enums/
|
|
21
|
+
__exportStar(require("./enums/ContractTypeEnum"), exports);
|
|
22
|
+
// Re-export del enum canónico de nivel (owner: loanScoring — un solo origen de verdad).
|
|
23
|
+
var ClientLevelEnum_1 = require("../loanScoring/enums/ClientLevelEnum");
|
|
24
|
+
Object.defineProperty(exports, "ClientLevelEnum", { enumerable: true, get: function () { return ClientLevelEnum_1.ClientLevelEnum; } });
|
|
21
25
|
// Entity DTOs
|
|
22
26
|
__exportStar(require("./dtos/LoanBorrower"), exports);
|
|
23
27
|
__exportStar(require("./dtos/LoanBeneficiary"), exports);
|
|
24
28
|
__exportStar(require("./dtos/LoanCredit"), exports);
|
|
25
29
|
__exportStar(require("./dtos/LoanInstallment"), exports);
|
|
30
|
+
__exportStar(require("./dtos/LoanContract"), exports);
|
|
26
31
|
__exportStar(require("./dtos/ActivationChecklist"), exports);
|
|
27
32
|
// Request DTOs
|
|
28
33
|
__exportStar(require("./dtos/requests/UpsertLoanBorrowerRequest"), exports);
|
|
29
34
|
__exportStar(require("./dtos/requests/OriginateLoanCreditRequest"), exports);
|
|
30
|
-
__exportStar(require("./dtos/requests/
|
|
35
|
+
__exportStar(require("./dtos/requests/QuoteLoanCreditRequest"), exports);
|
|
36
|
+
__exportStar(require("./dtos/requests/SignLoanCreditRequest"), exports);
|
|
37
|
+
__exportStar(require("./dtos/requests/ActivationCheckRequest"), exports);
|
|
31
38
|
__exportStar(require("./dtos/requests/ChangeLoanCreditStatusRequest"), exports);
|
|
32
39
|
// Response DTOs
|
|
33
40
|
__exportStar(require("./dtos/responses/LoanBorrowerResponse"), exports);
|
|
34
41
|
__exportStar(require("./dtos/responses/LoanCreditResponse"), exports);
|
|
35
42
|
__exportStar(require("./dtos/responses/LoanInstallmentResponse"), exports);
|
|
43
|
+
__exportStar(require("./dtos/responses/LoanContractResponse"), exports);
|
|
36
44
|
__exportStar(require("./dtos/responses/OriginateLoanCreditResponse"), exports);
|
|
45
|
+
__exportStar(require("./dtos/responses/QuoteLoanCreditResponse"), exports);
|
|
46
|
+
__exportStar(require("./dtos/responses/SignLoanCreditResponse"), exports);
|
|
47
|
+
__exportStar(require("./dtos/responses/ActivationCheckResponse"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MfaMethodEnum } from '../enums/MfaMethodEnum';
|
|
2
|
+
/**
|
|
3
|
+
* Body del POST /auth/resend-otp (público, anónimo). DEC-RBAC-054.
|
|
4
|
+
* Reenvía el OTP del login re-disparando el challenge real CUSTOM_AUTH (EMAIL_OTP) para la
|
|
5
|
+
* identidad SIN password. `tenantId` obligatorio (DEC-064 — el picker ya lo resolvió, NO "solo email").
|
|
6
|
+
* El email se normaliza lowercase server-side. Postura anti-enumeración: respuesta 200 genérica
|
|
7
|
+
* siempre, sin filtrar existencia (ver AuthLoginManager.resendChallengeOtp).
|
|
8
|
+
*/
|
|
9
|
+
export declare class ResendOtpRequest {
|
|
10
|
+
email: string;
|
|
11
|
+
tenantId: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Respuesta del resend-otp. `session`/`mfaMethod` frescos del nuevo challenge CUSTOM_AUTH.
|
|
15
|
+
* Plain sin validators (no validamos lo que mandamos al cliente — fiado-validation-and-dtos § 7).
|
|
16
|
+
* Ambos opcionales: en los caminos de rechazo silencioso (anti-enumeración) o ramas sin CUSTOM_AUTH
|
|
17
|
+
* el server responde 200 genérico sin session ni método.
|
|
18
|
+
*/
|
|
19
|
+
export interface ResendOtpResponse {
|
|
20
|
+
session?: string;
|
|
21
|
+
mfaMethod?: MfaMethodEnum;
|
|
22
|
+
}
|
package/bin/{walletFunding/dtos/CancelFundingRequest.js → platformRbac/dtos/ResendOtpRequest.js}
RENAMED
|
@@ -9,25 +9,28 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.ResendOtpRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* `
|
|
18
|
-
*
|
|
19
|
-
*
|
|
16
|
+
* Body del POST /auth/resend-otp (público, anónimo). DEC-RBAC-054.
|
|
17
|
+
* Reenvía el OTP del login re-disparando el challenge real CUSTOM_AUTH (EMAIL_OTP) para la
|
|
18
|
+
* identidad SIN password. `tenantId` obligatorio (DEC-064 — el picker ya lo resolvió, NO "solo email").
|
|
19
|
+
* El email se normaliza lowercase server-side. Postura anti-enumeración: respuesta 200 genérica
|
|
20
|
+
* siempre, sin filtrar existencia (ver AuthLoginManager.resendChallengeOtp).
|
|
20
21
|
*/
|
|
21
|
-
class
|
|
22
|
+
class ResendOtpRequest {
|
|
22
23
|
}
|
|
23
|
-
exports.
|
|
24
|
+
exports.ResendOtpRequest = ResendOtpRequest;
|
|
24
25
|
__decorate([
|
|
25
|
-
(0,
|
|
26
|
-
(0, class_validator_1.
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsEmail)(),
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
29
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
30
|
+
], ResendOtpRequest.prototype, "email", void 0);
|
|
29
31
|
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
30
33
|
(0, class_validator_1.IsString)(),
|
|
31
|
-
(0, class_validator_1.
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
32
35
|
__metadata("design:type", String)
|
|
33
|
-
],
|
|
36
|
+
], ResendOtpRequest.prototype, "tenantId", void 0);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Body del POST /self-register/resend-otp (público, anónimo). DEC-RBAC-054.
|
|
3
|
+
* Re-envía el OTP del autoregistro (mecanismo messages-business, NO Cognito) tras validar un
|
|
4
|
+
* `pending` existente. Misma postura anti-enumeración del start. El email se normaliza lowercase
|
|
5
|
+
* server-side. DTO propio por endpoint (NO reusa SelfRegisterStartRequest, que exige roleId/scope/
|
|
6
|
+
* scopeRef, ni SelfRegisterVerifyOtpRequest, que exige otp).
|
|
7
|
+
*/
|
|
8
|
+
export declare class ResendSelfRegisterOtpRequest {
|
|
9
|
+
tenantId: string;
|
|
10
|
+
email: string;
|
|
11
|
+
}
|
|
@@ -9,23 +9,28 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.ResendSelfRegisterOtpRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Body del POST /self-register/resend-otp (público, anónimo). DEC-RBAC-054.
|
|
17
|
+
* Re-envía el OTP del autoregistro (mecanismo messages-business, NO Cognito) tras validar un
|
|
18
|
+
* `pending` existente. Misma postura anti-enumeración del start. El email se normaliza lowercase
|
|
19
|
+
* server-side. DTO propio por endpoint (NO reusa SelfRegisterStartRequest, que exige roleId/scope/
|
|
20
|
+
* scopeRef, ni SelfRegisterVerifyOtpRequest, que exige otp).
|
|
21
|
+
*/
|
|
22
|
+
class ResendSelfRegisterOtpRequest {
|
|
15
23
|
}
|
|
16
|
-
exports.
|
|
24
|
+
exports.ResendSelfRegisterOtpRequest = ResendSelfRegisterOtpRequest;
|
|
17
25
|
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
18
27
|
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
29
|
__metadata("design:type", String)
|
|
21
|
-
],
|
|
30
|
+
], ResendSelfRegisterOtpRequest.prototype, "tenantId", void 0);
|
|
22
31
|
__decorate([
|
|
23
|
-
(0,
|
|
24
|
-
(0, class_validator_1.
|
|
25
|
-
|
|
26
|
-
], CancelFundingReferenceRequest.prototype, "directoryId", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsString)(),
|
|
29
|
-
(0, class_validator_1.MaxLength)(64),
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
(0, class_validator_1.IsEmail)(),
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
30
35
|
__metadata("design:type", String)
|
|
31
|
-
],
|
|
36
|
+
], ResendSelfRegisterOtpRequest.prototype, "email", void 0);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AddressBase } from '../../address/dtos/AddressBase';
|
|
2
2
|
import { AccountStatusEnum } from '../enums/AccountStatusEnum';
|
|
3
3
|
import { KycModalityEnum } from '../enums/KycModalityEnum';
|
|
4
|
+
import { RetailCustomerStatusEnum } from '../enums/RetailCustomerStatusEnum';
|
|
4
5
|
import { RetailKycStatusEnum } from '../enums/RetailKycStatusEnum';
|
|
5
6
|
import { KycReview } from './KycReview';
|
|
6
7
|
/**
|
|
@@ -12,9 +13,20 @@ import { KycReview } from './KycReview';
|
|
|
12
13
|
export declare class RetailCustomer {
|
|
13
14
|
retailCustomerId: string;
|
|
14
15
|
retailerId: string;
|
|
15
|
-
|
|
16
|
+
/** Tienda de alta/origen del cliente — hash del GSI `retailerId-originStoreId-index` (F1 §3.5). */
|
|
17
|
+
originStoreId: string;
|
|
18
|
+
/** Nombre(s) de pila. Nombre partido por convención Fiado (`PeopleName` del dominio identity), F1 §3.5. */
|
|
19
|
+
names: string;
|
|
20
|
+
paternalLastName: string;
|
|
21
|
+
/** Segundo apellido — nullable (F1 §3.5: "el 2º apellido nullable"). */
|
|
22
|
+
maternalLastName: string | null;
|
|
16
23
|
phone: string;
|
|
17
|
-
|
|
24
|
+
/** Lo pone el OTP del paso 01 del wizard (F1 §3.5). Default false. */
|
|
25
|
+
phoneVerified: boolean;
|
|
26
|
+
/** null hasta el KYC (F1 §3.5); al capturarse se crea el centinela `UNIQ#CURP#<curp>` en la misma TX. */
|
|
27
|
+
curp: string | null;
|
|
28
|
+
rfc: string | null;
|
|
29
|
+
email: string | null;
|
|
18
30
|
/** Fecha de nacimiento (ISO 8601, admite fecha sola); se completa con el OCR del KYC. */
|
|
19
31
|
birthDate?: string;
|
|
20
32
|
fiadoDirectoryId: string | null;
|
|
@@ -30,6 +42,16 @@ export declare class RetailCustomer {
|
|
|
30
42
|
kycStatus: RetailKycStatusEnum;
|
|
31
43
|
kycModality: KycModalityEnum | null;
|
|
32
44
|
kycReview: KycReview | null;
|
|
45
|
+
/** Score de confianza que devuelve Metamap con el resultado del KYC (F1 §3.5). */
|
|
46
|
+
kycScore: number | null;
|
|
47
|
+
/** Referencia a la verificación en `kyc-verifications-business` (INT1, F1 §3.5). */
|
|
48
|
+
metamapVerificationId: string | null;
|
|
49
|
+
/** Alerta PLD (regulatorio, F1 §3.5). Default false. */
|
|
50
|
+
pldFlag: boolean;
|
|
51
|
+
/** Notas operativas del BO (F1 §3.5). */
|
|
52
|
+
notes: string | null;
|
|
53
|
+
/** Soft-delete (F1 §3.5). Default ACTIVE. */
|
|
54
|
+
status: RetailCustomerStatusEnum;
|
|
33
55
|
createdAt: string;
|
|
34
56
|
updatedAt: string;
|
|
35
57
|
createdBy: string;
|
|
@@ -16,6 +16,7 @@ const regex_1 = require("../../helpers/constans/regex");
|
|
|
16
16
|
const AddressBase_1 = require("../../address/dtos/AddressBase");
|
|
17
17
|
const AccountStatusEnum_1 = require("../enums/AccountStatusEnum");
|
|
18
18
|
const KycModalityEnum_1 = require("../enums/KycModalityEnum");
|
|
19
|
+
const RetailCustomerStatusEnum_1 = require("../enums/RetailCustomerStatusEnum");
|
|
19
20
|
const RetailKycStatusEnum_1 = require("../enums/RetailKycStatusEnum");
|
|
20
21
|
const KycReview_1 = require("./KycReview");
|
|
21
22
|
/**
|
|
@@ -41,7 +42,23 @@ __decorate([
|
|
|
41
42
|
(0, class_transformer_1.Expose)(),
|
|
42
43
|
(0, class_validator_1.IsString)(),
|
|
43
44
|
__metadata("design:type", String)
|
|
44
|
-
], RetailCustomer.prototype, "
|
|
45
|
+
], RetailCustomer.prototype, "originStoreId", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], RetailCustomer.prototype, "names", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_transformer_1.Expose)(),
|
|
53
|
+
(0, class_validator_1.IsString)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], RetailCustomer.prototype, "paternalLastName", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, class_validator_1.IsString)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], RetailCustomer.prototype, "maternalLastName", void 0);
|
|
45
62
|
__decorate([
|
|
46
63
|
(0, class_transformer_1.Expose)(),
|
|
47
64
|
(0, class_validator_1.IsString)(),
|
|
@@ -49,9 +66,27 @@ __decorate([
|
|
|
49
66
|
], RetailCustomer.prototype, "phone", void 0);
|
|
50
67
|
__decorate([
|
|
51
68
|
(0, class_transformer_1.Expose)(),
|
|
69
|
+
(0, class_validator_1.IsBoolean)(),
|
|
70
|
+
__metadata("design:type", Boolean)
|
|
71
|
+
], RetailCustomer.prototype, "phoneVerified", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_transformer_1.Expose)(),
|
|
74
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
75
|
(0, class_validator_1.IsString)(),
|
|
53
76
|
__metadata("design:type", String)
|
|
54
77
|
], RetailCustomer.prototype, "curp", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_transformer_1.Expose)(),
|
|
80
|
+
(0, class_validator_1.IsOptional)(),
|
|
81
|
+
(0, class_validator_1.IsString)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], RetailCustomer.prototype, "rfc", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_transformer_1.Expose)(),
|
|
86
|
+
(0, class_validator_1.IsOptional)(),
|
|
87
|
+
(0, class_validator_1.IsEmail)(),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], RetailCustomer.prototype, "email", void 0);
|
|
55
90
|
__decorate([
|
|
56
91
|
(0, class_transformer_1.Expose)(),
|
|
57
92
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -136,6 +171,34 @@ __decorate([
|
|
|
136
171
|
(0, class_transformer_1.Type)(() => KycReview_1.KycReview),
|
|
137
172
|
__metadata("design:type", KycReview_1.KycReview)
|
|
138
173
|
], RetailCustomer.prototype, "kycReview", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
(0, class_transformer_1.Expose)(),
|
|
176
|
+
(0, class_validator_1.IsOptional)(),
|
|
177
|
+
(0, class_validator_1.IsNumber)(),
|
|
178
|
+
__metadata("design:type", Number)
|
|
179
|
+
], RetailCustomer.prototype, "kycScore", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, class_transformer_1.Expose)(),
|
|
182
|
+
(0, class_validator_1.IsOptional)(),
|
|
183
|
+
(0, class_validator_1.IsString)(),
|
|
184
|
+
__metadata("design:type", String)
|
|
185
|
+
], RetailCustomer.prototype, "metamapVerificationId", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
(0, class_transformer_1.Expose)(),
|
|
188
|
+
(0, class_validator_1.IsBoolean)(),
|
|
189
|
+
__metadata("design:type", Boolean)
|
|
190
|
+
], RetailCustomer.prototype, "pldFlag", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
(0, class_transformer_1.Expose)(),
|
|
193
|
+
(0, class_validator_1.IsOptional)(),
|
|
194
|
+
(0, class_validator_1.IsString)(),
|
|
195
|
+
__metadata("design:type", String)
|
|
196
|
+
], RetailCustomer.prototype, "notes", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
(0, class_transformer_1.Expose)(),
|
|
199
|
+
(0, class_validator_1.IsEnum)(RetailCustomerStatusEnum_1.RetailCustomerStatusEnum),
|
|
200
|
+
__metadata("design:type", String)
|
|
201
|
+
], RetailCustomer.prototype, "status", void 0);
|
|
139
202
|
__decorate([
|
|
140
203
|
(0, class_transformer_1.Expose)(),
|
|
141
204
|
(0, class_validator_1.IsString)(),
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Alta básica de un cliente retail (identidad comercial mínima; el KYC la enriquece después).
|
|
3
|
+
* Nombre partido por convención Fiado y CURP opcional — "null hasta KYC" (F1 §3.5).
|
|
3
4
|
* SureKeep Fase 2 — pista Retail.
|
|
4
5
|
*/
|
|
5
6
|
export declare class CreateCustomerRequest {
|
|
6
|
-
|
|
7
|
+
originStoreId: string;
|
|
8
|
+
names: string;
|
|
9
|
+
paternalLastName: string;
|
|
10
|
+
maternalLastName?: string;
|
|
7
11
|
phone: string;
|
|
8
12
|
curp?: string;
|
|
13
|
+
rfc?: string;
|
|
14
|
+
email?: string;
|
|
9
15
|
birthDate?: string;
|
|
10
16
|
}
|
|
@@ -15,6 +15,7 @@ const class_validator_1 = require("class-validator");
|
|
|
15
15
|
const regex_1 = require("../../../helpers/constans/regex");
|
|
16
16
|
/**
|
|
17
17
|
* Alta básica de un cliente retail (identidad comercial mínima; el KYC la enriquece después).
|
|
18
|
+
* Nombre partido por convención Fiado y CURP opcional — "null hasta KYC" (F1 §3.5).
|
|
18
19
|
* SureKeep Fase 2 — pista Retail.
|
|
19
20
|
*/
|
|
20
21
|
class CreateCustomerRequest {
|
|
@@ -24,7 +25,23 @@ __decorate([
|
|
|
24
25
|
(0, class_transformer_1.Expose)(),
|
|
25
26
|
(0, class_validator_1.IsString)(),
|
|
26
27
|
__metadata("design:type", String)
|
|
27
|
-
], CreateCustomerRequest.prototype, "
|
|
28
|
+
], CreateCustomerRequest.prototype, "originStoreId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CreateCustomerRequest.prototype, "names", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CreateCustomerRequest.prototype, "paternalLastName", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], CreateCustomerRequest.prototype, "maternalLastName", void 0);
|
|
28
45
|
__decorate([
|
|
29
46
|
(0, class_transformer_1.Expose)(),
|
|
30
47
|
(0, class_validator_1.IsString)(),
|
|
@@ -36,6 +53,18 @@ __decorate([
|
|
|
36
53
|
(0, class_validator_1.IsString)(),
|
|
37
54
|
__metadata("design:type", String)
|
|
38
55
|
], CreateCustomerRequest.prototype, "curp", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, class_validator_1.IsString)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], CreateCustomerRequest.prototype, "rfc", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_transformer_1.Expose)(),
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
(0, class_validator_1.IsEmail)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], CreateCustomerRequest.prototype, "email", void 0);
|
|
39
68
|
__decorate([
|
|
40
69
|
(0, class_transformer_1.Expose)(),
|
|
41
70
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -3,8 +3,14 @@
|
|
|
3
3
|
* AuditTrail + PiiAccessLog en el lambda. SureKeep Fase 2 — pista Retail.
|
|
4
4
|
*/
|
|
5
5
|
export declare class UpdateCustomerRequest {
|
|
6
|
-
|
|
6
|
+
names?: string;
|
|
7
|
+
paternalLastName?: string;
|
|
8
|
+
maternalLastName?: string;
|
|
7
9
|
phone?: string;
|
|
8
10
|
curp?: string;
|
|
11
|
+
rfc?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
/** Notas operativas del BO (F1 §3.5). */
|
|
14
|
+
notes?: string;
|
|
9
15
|
birthDate?: string;
|
|
10
16
|
}
|
|
@@ -25,7 +25,19 @@ __decorate([
|
|
|
25
25
|
(0, class_validator_1.IsOptional)(),
|
|
26
26
|
(0, class_validator_1.IsString)(),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
|
-
], UpdateCustomerRequest.prototype, "
|
|
28
|
+
], UpdateCustomerRequest.prototype, "names", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], UpdateCustomerRequest.prototype, "paternalLastName", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], UpdateCustomerRequest.prototype, "maternalLastName", void 0);
|
|
29
41
|
__decorate([
|
|
30
42
|
(0, class_transformer_1.Expose)(),
|
|
31
43
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -38,6 +50,24 @@ __decorate([
|
|
|
38
50
|
(0, class_validator_1.IsString)(),
|
|
39
51
|
__metadata("design:type", String)
|
|
40
52
|
], UpdateCustomerRequest.prototype, "curp", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], UpdateCustomerRequest.prototype, "rfc", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_transformer_1.Expose)(),
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
(0, class_validator_1.IsEmail)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], UpdateCustomerRequest.prototype, "email", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
(0, class_validator_1.IsString)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], UpdateCustomerRequest.prototype, "notes", void 0);
|
|
41
71
|
__decorate([
|
|
42
72
|
(0, class_transformer_1.Expose)(),
|
|
43
73
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -7,10 +7,22 @@ import { RetailKycStatusEnum } from '../../enums/RetailKycStatusEnum';
|
|
|
7
7
|
* SureKeep Fase 2 — pista Retail.
|
|
8
8
|
*/
|
|
9
9
|
export declare class UpsertCustomerFromKycRequest {
|
|
10
|
-
|
|
10
|
+
/** Tienda de alta/origen — del JWT del vendedor dueño de la sesión del wizard (F1 §3.5). */
|
|
11
|
+
originStoreId: string;
|
|
12
|
+
/** Nombre partido por convención Fiado (F1 §3.5) — lo entrega el OCR del INE, NO se deriva de un string. */
|
|
13
|
+
names: string;
|
|
14
|
+
paternalLastName: string;
|
|
15
|
+
/** Segundo apellido — opcional (F1 §3.5: "el 2º apellido nullable"). */
|
|
16
|
+
maternalLastName?: string;
|
|
11
17
|
phone: string;
|
|
12
18
|
curp: string;
|
|
13
19
|
birthDate?: string;
|
|
20
|
+
rfc?: string;
|
|
21
|
+
email?: string;
|
|
22
|
+
/** Score de confianza que devuelve Metamap junto con el resultado del KYC (F1 §3.5). */
|
|
23
|
+
kycScore?: number;
|
|
24
|
+
/** Referencia a la verificación en `kyc-verifications-business` (INT1, F1 §3.5). */
|
|
25
|
+
metamapVerificationId?: string;
|
|
14
26
|
fiadoDirectoryId: string;
|
|
15
27
|
fiadoPeopleId: string;
|
|
16
28
|
pcfAccountId?: string;
|
|
@@ -28,7 +28,23 @@ __decorate([
|
|
|
28
28
|
(0, class_transformer_1.Expose)(),
|
|
29
29
|
(0, class_validator_1.IsString)(),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
|
-
], UpsertCustomerFromKycRequest.prototype, "
|
|
31
|
+
], UpsertCustomerFromKycRequest.prototype, "originStoreId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], UpsertCustomerFromKycRequest.prototype, "names", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], UpsertCustomerFromKycRequest.prototype, "paternalLastName", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.IsString)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], UpsertCustomerFromKycRequest.prototype, "maternalLastName", void 0);
|
|
32
48
|
__decorate([
|
|
33
49
|
(0, class_transformer_1.Expose)(),
|
|
34
50
|
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'string' ? value.replace(/[\s-]/g, '') : value)),
|
|
@@ -50,6 +66,30 @@ __decorate([
|
|
|
50
66
|
(0, class_validator_1.Matches)(regex_1.regexIso8601Date, { message: 'birthDate debe ser una fecha ISO 8601' }),
|
|
51
67
|
__metadata("design:type", String)
|
|
52
68
|
], UpsertCustomerFromKycRequest.prototype, "birthDate", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_transformer_1.Expose)(),
|
|
71
|
+
(0, class_validator_1.IsOptional)(),
|
|
72
|
+
(0, class_validator_1.IsString)(),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], UpsertCustomerFromKycRequest.prototype, "rfc", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_transformer_1.Expose)(),
|
|
77
|
+
(0, class_validator_1.IsOptional)(),
|
|
78
|
+
(0, class_validator_1.IsEmail)(),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], UpsertCustomerFromKycRequest.prototype, "email", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_transformer_1.Expose)(),
|
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
|
+
(0, class_validator_1.IsNumber)(),
|
|
85
|
+
__metadata("design:type", Number)
|
|
86
|
+
], UpsertCustomerFromKycRequest.prototype, "kycScore", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_transformer_1.Expose)(),
|
|
89
|
+
(0, class_validator_1.IsOptional)(),
|
|
90
|
+
(0, class_validator_1.IsString)(),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], UpsertCustomerFromKycRequest.prototype, "metamapVerificationId", void 0);
|
|
53
93
|
__decorate([
|
|
54
94
|
(0, class_transformer_1.Expose)(),
|
|
55
95
|
(0, class_validator_1.IsString)(),
|