@fiado/type-kit 3.253.0 → 3.255.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/helpdesk/dtos/HelpdeskCreateTicketRequest.d.ts +6 -0
- package/bin/helpdesk/dtos/HelpdeskCreateTicketRequest.js +16 -0
- package/bin/onboarding/dtos/responses/OnboardingStepsResponse.d.ts +1 -1
- package/bin/onboarding/enums/OnboardingStepIdEnum.d.ts +6 -5
- package/bin/onboarding/enums/OnboardingStepIdEnum.js +6 -5
- package/bin/platformRbac/dtos/CompleteMyProfileRequest.d.ts +9 -0
- package/bin/platformRbac/dtos/{ResendOtpRequest.js → CompleteMyProfileRequest.js} +12 -14
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +14 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.js +41 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +15 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.js +13 -0
- package/bin/walletFunding/dtos/CancelWalletFundingRequest.d.ts +3 -0
- package/bin/walletFunding/dtos/CancelWalletFundingRequest.js +21 -0
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.d.ts +7 -0
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.js +6 -0
- package/package.json +1 -1
- package/src/helpdesk/dtos/HelpdeskCreateTicketRequest.ts +17 -1
- package/src/onboarding/dtos/responses/OnboardingStepsResponse.ts +1 -1
- package/src/onboarding/enums/OnboardingStepIdEnum.ts +6 -5
- package/bin/loanConfig/enums/ModifiableByRoleEnum.d.ts +0 -11
- package/bin/loanConfig/enums/ModifiableByRoleEnum.js +0 -15
- package/bin/platformRbac/dtos/ResendOtpRequest.d.ts +0 -22
- package/bin/platformRbac/dtos/ResendSelfRegisterOtpRequest.d.ts +0 -11
- package/bin/platformRbac/dtos/ResendSelfRegisterOtpRequest.js +0 -36
|
@@ -6,4 +6,10 @@ export declare class HelpdeskCreateTicketRequest {
|
|
|
6
6
|
type: string;
|
|
7
7
|
directoryId: string;
|
|
8
8
|
peopleId: string;
|
|
9
|
+
/** true → la nota se crea como comentario interno (solo agentes). Default: false. */
|
|
10
|
+
internal?: boolean;
|
|
11
|
+
/** Tags del ticket (p. ej. ["kyc-listas", "interno"]) para vistas y triggers. */
|
|
12
|
+
tags?: string[];
|
|
13
|
+
/** GID del grupo de Zendesk al que se asigna (p. ej. Legal). */
|
|
14
|
+
groupId?: number;
|
|
9
15
|
}
|
|
@@ -46,3 +46,19 @@ __decorate([
|
|
|
46
46
|
(0, class_validator_1.IsString)(),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
48
|
], HelpdeskCreateTicketRequest.prototype, "peopleId", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsBoolean)(),
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
__metadata("design:type", Boolean)
|
|
53
|
+
], HelpdeskCreateTicketRequest.prototype, "internal", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsArray)(),
|
|
56
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
__metadata("design:type", Array)
|
|
59
|
+
], HelpdeskCreateTicketRequest.prototype, "tags", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsNumber)(),
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], HelpdeskCreateTicketRequest.prototype, "groupId", void 0);
|
|
@@ -39,7 +39,7 @@ export declare class OnboardingStepsResponse {
|
|
|
39
39
|
* array tal como llega: no reordena ni conoce las reglas de scope.
|
|
40
40
|
*
|
|
41
41
|
* El largo PUEDE CAMBIAR entre dos llamadas. Ejemplo real: en cuanto el usuario guarda una
|
|
42
|
-
* dirección, `
|
|
42
|
+
* dirección, `PROOF_OF_ADDRESS` deja de aplicar y sale de la lista.
|
|
43
43
|
*
|
|
44
44
|
* Vacío si la persona no tiene ningún scope de onboarding — eso NO es un error, significa que no
|
|
45
45
|
* tiene onboarding pendiente. Pasa justo después de firmar, cuando el scope pasa de `fiado.on_mx`
|
|
@@ -5,16 +5,17 @@
|
|
|
5
5
|
* El orden de este enum no define el orden de pintado: la respuesta trae los pasos ya ordenados y la
|
|
6
6
|
* app pinta el array tal como llega.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
* elimina es el `countryId` de la entrada, no la realidad de que el
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* Algunos ids llevan prefijo de lado (`US_` / `MX_`) porque **son** de un lado: lo que el rediseño
|
|
9
|
+
* elimina es el `countryId` de la entrada, no la realidad de que el paso pertenece a un lado.
|
|
10
|
+
* `PROOF_OF_ADDRESS` va sin prefijo por decisión de nombrado (la regla sigue siendo la del comprobante
|
|
11
|
+
* de domicilio mexicano). `DATA_CONFIRMATION` es el paso de "revisá y confirmá tus datos"; se llama así
|
|
12
|
+
* y no `INFO_SELF_VERIFY` para no confundirlo con la verificación de Metamap de `KYC_IDENTIFICATION`.
|
|
12
13
|
*/
|
|
13
14
|
export declare enum OnboardingStepIdEnum {
|
|
14
15
|
KYC_IDENTIFICATION = "KYC_IDENTIFICATION",
|
|
15
16
|
INCOME_INFORMATION = "INCOME_INFORMATION",
|
|
16
17
|
US_ADDRESS = "US_ADDRESS",
|
|
17
|
-
|
|
18
|
+
PROOF_OF_ADDRESS = "PROOF_OF_ADDRESS",
|
|
18
19
|
MX_REGULATORY_QUESTIONS = "MX_REGULATORY_QUESTIONS",
|
|
19
20
|
MX_BENEFICIARIES = "MX_BENEFICIARIES",
|
|
20
21
|
DATA_CONFIRMATION = "DATA_CONFIRMATION"
|
|
@@ -8,17 +8,18 @@ exports.OnboardingStepIdEnum = void 0;
|
|
|
8
8
|
* El orden de este enum no define el orden de pintado: la respuesta trae los pasos ya ordenados y la
|
|
9
9
|
* app pinta el array tal como llega.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
* elimina es el `countryId` de la entrada, no la realidad de que el
|
|
13
|
-
*
|
|
14
|
-
*
|
|
11
|
+
* Algunos ids llevan prefijo de lado (`US_` / `MX_`) porque **son** de un lado: lo que el rediseño
|
|
12
|
+
* elimina es el `countryId` de la entrada, no la realidad de que el paso pertenece a un lado.
|
|
13
|
+
* `PROOF_OF_ADDRESS` va sin prefijo por decisión de nombrado (la regla sigue siendo la del comprobante
|
|
14
|
+
* de domicilio mexicano). `DATA_CONFIRMATION` es el paso de "revisá y confirmá tus datos"; se llama así
|
|
15
|
+
* y no `INFO_SELF_VERIFY` para no confundirlo con la verificación de Metamap de `KYC_IDENTIFICATION`.
|
|
15
16
|
*/
|
|
16
17
|
var OnboardingStepIdEnum;
|
|
17
18
|
(function (OnboardingStepIdEnum) {
|
|
18
19
|
OnboardingStepIdEnum["KYC_IDENTIFICATION"] = "KYC_IDENTIFICATION";
|
|
19
20
|
OnboardingStepIdEnum["INCOME_INFORMATION"] = "INCOME_INFORMATION";
|
|
20
21
|
OnboardingStepIdEnum["US_ADDRESS"] = "US_ADDRESS";
|
|
21
|
-
OnboardingStepIdEnum["
|
|
22
|
+
OnboardingStepIdEnum["PROOF_OF_ADDRESS"] = "PROOF_OF_ADDRESS";
|
|
22
23
|
OnboardingStepIdEnum["MX_REGULATORY_QUESTIONS"] = "MX_REGULATORY_QUESTIONS";
|
|
23
24
|
OnboardingStepIdEnum["MX_BENEFICIARIES"] = "MX_BENEFICIARIES";
|
|
24
25
|
OnboardingStepIdEnum["DATA_CONFIRMATION"] = "DATA_CONFIRMATION";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Body del PUT /me/profile/complete (autenticado, gate post-MFA del autoregistro). DEC-RBAC-034.
|
|
3
|
+
* Opera sobre el propio usuario (cognitoSub del token). Valida nombre + los `userFieldDefs` requeridos
|
|
4
|
+
* del tenant (422 MISSING_REQUIRED_FIELDS si faltan) y flipea `profileComplete=true`.
|
|
5
|
+
*/
|
|
6
|
+
export declare class CompleteMyProfileRequest {
|
|
7
|
+
displayName: string;
|
|
8
|
+
customFields?: Record<string, string>;
|
|
9
|
+
}
|
|
@@ -9,28 +9,26 @@ 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.CompleteMyProfileRequest = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
/**
|
|
16
|
-
* Body del
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* El email se normaliza lowercase server-side. Postura anti-enumeración: respuesta 200 genérica
|
|
20
|
-
* siempre, sin filtrar existencia (ver AuthLoginManager.resendChallengeOtp).
|
|
16
|
+
* Body del PUT /me/profile/complete (autenticado, gate post-MFA del autoregistro). DEC-RBAC-034.
|
|
17
|
+
* Opera sobre el propio usuario (cognitoSub del token). Valida nombre + los `userFieldDefs` requeridos
|
|
18
|
+
* del tenant (422 MISSING_REQUIRED_FIELDS si faltan) y flipea `profileComplete=true`.
|
|
21
19
|
*/
|
|
22
|
-
class
|
|
20
|
+
class CompleteMyProfileRequest {
|
|
23
21
|
}
|
|
24
|
-
exports.
|
|
22
|
+
exports.CompleteMyProfileRequest = CompleteMyProfileRequest;
|
|
25
23
|
__decorate([
|
|
26
24
|
(0, class_transformer_1.Expose)(),
|
|
27
|
-
(0, class_validator_1.
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
28
26
|
(0, class_validator_1.IsNotEmpty)(),
|
|
29
27
|
__metadata("design:type", String)
|
|
30
|
-
],
|
|
28
|
+
], CompleteMyProfileRequest.prototype, "displayName", void 0);
|
|
31
29
|
__decorate([
|
|
32
30
|
(0, class_transformer_1.Expose)(),
|
|
33
|
-
(0, class_validator_1.
|
|
34
|
-
(0, class_validator_1.
|
|
35
|
-
__metadata("design:type",
|
|
36
|
-
],
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_validator_1.IsObject)(),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], CompleteMyProfileRequest.prototype, "customFields", void 0);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Body para cancelar una referencia de funding ya creada. La referencia/fundingId
|
|
3
|
+
* viaja en la URL (`/funding/{moduleName}/{fundingId}/cancel`); este body aporta
|
|
4
|
+
* el contexto del solicitante + idempotencia.
|
|
5
|
+
*
|
|
6
|
+
* NOTA: shape inferido desde el uso en `@fiado/api-invoker`
|
|
7
|
+
* (benefits-marketplace / equality-connector) — confirmar con el dueño del
|
|
8
|
+
* módulo walletFunding / el lambda equality-connector que implementa el cancel.
|
|
9
|
+
*/
|
|
10
|
+
export declare class CancelFundingReferenceRequest {
|
|
11
|
+
directoryId: string;
|
|
12
|
+
reason?: string;
|
|
13
|
+
idempotencyKey: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.CancelFundingReferenceRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* Body para cancelar una referencia de funding ya creada. La referencia/fundingId
|
|
16
|
+
* viaja en la URL (`/funding/{moduleName}/{fundingId}/cancel`); este body aporta
|
|
17
|
+
* el contexto del solicitante + idempotencia.
|
|
18
|
+
*
|
|
19
|
+
* NOTA: shape inferido desde el uso en `@fiado/api-invoker`
|
|
20
|
+
* (benefits-marketplace / equality-connector) — confirmar con el dueño del
|
|
21
|
+
* módulo walletFunding / el lambda equality-connector que implementa el cancel.
|
|
22
|
+
*/
|
|
23
|
+
class CancelFundingReferenceRequest {
|
|
24
|
+
}
|
|
25
|
+
exports.CancelFundingReferenceRequest = CancelFundingReferenceRequest;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.MaxLength)(64),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], CancelFundingReferenceRequest.prototype, "directoryId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.MaxLength)(256),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CancelFundingReferenceRequest.prototype, "reason", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.MaxLength)(64),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CancelFundingReferenceRequest.prototype, "idempotencyKey", void 0);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
+
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
+
/**
|
|
4
|
+
* Respuesta de la cancelación de una referencia de funding. Mismo estilo que
|
|
5
|
+
* CreateFundingReferenceResponse.
|
|
6
|
+
*
|
|
7
|
+
* NOTA: shape inferido desde el uso en `@fiado/api-invoker` — confirmar con el
|
|
8
|
+
* dueño del módulo walletFunding / el lambda equality-connector.
|
|
9
|
+
*/
|
|
10
|
+
export declare class CancelFundingReferenceResponse {
|
|
11
|
+
/** Referencia cancelada (misma PK que se creó). */
|
|
12
|
+
reference: string;
|
|
13
|
+
status: BenefitPaymentStatusEnum;
|
|
14
|
+
errorCode?: WalletFundingErrorCodeEnum;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CancelFundingReferenceResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Respuesta de la cancelación de una referencia de funding. Mismo estilo que
|
|
6
|
+
* CreateFundingReferenceResponse.
|
|
7
|
+
*
|
|
8
|
+
* NOTA: shape inferido desde el uso en `@fiado/api-invoker` — confirmar con el
|
|
9
|
+
* dueño del módulo walletFunding / el lambda equality-connector.
|
|
10
|
+
*/
|
|
11
|
+
class CancelFundingReferenceResponse {
|
|
12
|
+
}
|
|
13
|
+
exports.CancelFundingReferenceResponse = CancelFundingReferenceResponse;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.CancelWalletFundingRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CancelWalletFundingRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.CancelWalletFundingRequest = CancelWalletFundingRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.MaxLength)(64),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CancelWalletFundingRequest.prototype, "idempotencyKey", void 0);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
+
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
+
export declare class CancelWalletFundingResponse {
|
|
4
|
+
status: BenefitPaymentStatusEnum;
|
|
5
|
+
errorCode?: WalletFundingErrorCodeEnum;
|
|
6
|
+
fundingId?: string;
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsNotEmpty, IsString } from "class-validator";
|
|
1
|
+
import { IsArray, IsBoolean, IsNotEmpty, IsNumber, IsOptional, IsString } from "class-validator";
|
|
2
2
|
|
|
3
3
|
export class HelpdeskCreateTicketRequest {
|
|
4
4
|
|
|
@@ -27,4 +27,20 @@ export class HelpdeskCreateTicketRequest {
|
|
|
27
27
|
@IsString()
|
|
28
28
|
peopleId: string;
|
|
29
29
|
|
|
30
|
+
/** true → la nota se crea como comentario interno (solo agentes). Default: false. */
|
|
31
|
+
@IsBoolean()
|
|
32
|
+
@IsOptional()
|
|
33
|
+
internal?: boolean;
|
|
34
|
+
|
|
35
|
+
/** Tags del ticket (p. ej. ["kyc-listas", "interno"]) para vistas y triggers. */
|
|
36
|
+
@IsArray()
|
|
37
|
+
@IsString({ each: true })
|
|
38
|
+
@IsOptional()
|
|
39
|
+
tags?: string[];
|
|
40
|
+
|
|
41
|
+
/** GID del grupo de Zendesk al que se asigna (p. ej. Legal). */
|
|
42
|
+
@IsNumber()
|
|
43
|
+
@IsOptional()
|
|
44
|
+
groupId?: number;
|
|
45
|
+
|
|
30
46
|
}
|
|
@@ -42,7 +42,7 @@ export class OnboardingStepsResponse {
|
|
|
42
42
|
* array tal como llega: no reordena ni conoce las reglas de scope.
|
|
43
43
|
*
|
|
44
44
|
* El largo PUEDE CAMBIAR entre dos llamadas. Ejemplo real: en cuanto el usuario guarda una
|
|
45
|
-
* dirección, `
|
|
45
|
+
* dirección, `PROOF_OF_ADDRESS` deja de aplicar y sale de la lista.
|
|
46
46
|
*
|
|
47
47
|
* Vacío si la persona no tiene ningún scope de onboarding — eso NO es un error, significa que no
|
|
48
48
|
* tiene onboarding pendiente. Pasa justo después de firmar, cuando el scope pasa de `fiado.on_mx`
|
|
@@ -5,16 +5,17 @@
|
|
|
5
5
|
* El orden de este enum no define el orden de pintado: la respuesta trae los pasos ya ordenados y la
|
|
6
6
|
* app pinta el array tal como llega.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
* elimina es el `countryId` de la entrada, no la realidad de que el
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* Algunos ids llevan prefijo de lado (`US_` / `MX_`) porque **son** de un lado: lo que el rediseño
|
|
9
|
+
* elimina es el `countryId` de la entrada, no la realidad de que el paso pertenece a un lado.
|
|
10
|
+
* `PROOF_OF_ADDRESS` va sin prefijo por decisión de nombrado (la regla sigue siendo la del comprobante
|
|
11
|
+
* de domicilio mexicano). `DATA_CONFIRMATION` es el paso de "revisá y confirmá tus datos"; se llama así
|
|
12
|
+
* y no `INFO_SELF_VERIFY` para no confundirlo con la verificación de Metamap de `KYC_IDENTIFICATION`.
|
|
12
13
|
*/
|
|
13
14
|
export enum OnboardingStepIdEnum {
|
|
14
15
|
KYC_IDENTIFICATION = 'KYC_IDENTIFICATION',
|
|
15
16
|
INCOME_INFORMATION = 'INCOME_INFORMATION',
|
|
16
17
|
US_ADDRESS = 'US_ADDRESS',
|
|
17
|
-
|
|
18
|
+
PROOF_OF_ADDRESS = 'PROOF_OF_ADDRESS',
|
|
18
19
|
MX_REGULATORY_QUESTIONS = 'MX_REGULATORY_QUESTIONS',
|
|
19
20
|
MX_BENEFICIARIES = 'MX_BENEFICIARIES',
|
|
20
21
|
DATA_CONFIRMATION = 'DATA_CONFIRMATION',
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Rol RBAC mínimo que puede modificar un parámetro (RBAC a nivel de parámetro, modelo-datos §8).
|
|
3
|
-
* `retailer_admin` = "Admin VentasLuga" de M6 §8. Valores = identificadores de rol de RBAC F0.
|
|
4
|
-
* TD-004: confirmar mapeo super_admin ↔ platform_super_admin con el naming real de F0.
|
|
5
|
-
* @enum {string}
|
|
6
|
-
*/
|
|
7
|
-
export declare enum ModifiableByRoleEnum {
|
|
8
|
-
SUPER_ADMIN = "super_admin",
|
|
9
|
-
SOFOM_ADMIN = "sofom_admin",
|
|
10
|
-
RETAILER_ADMIN = "retailer_admin"
|
|
11
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModifiableByRoleEnum = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Rol RBAC mínimo que puede modificar un parámetro (RBAC a nivel de parámetro, modelo-datos §8).
|
|
6
|
-
* `retailer_admin` = "Admin VentasLuga" de M6 §8. Valores = identificadores de rol de RBAC F0.
|
|
7
|
-
* TD-004: confirmar mapeo super_admin ↔ platform_super_admin con el naming real de F0.
|
|
8
|
-
* @enum {string}
|
|
9
|
-
*/
|
|
10
|
-
var ModifiableByRoleEnum;
|
|
11
|
-
(function (ModifiableByRoleEnum) {
|
|
12
|
-
ModifiableByRoleEnum["SUPER_ADMIN"] = "super_admin";
|
|
13
|
-
ModifiableByRoleEnum["SOFOM_ADMIN"] = "sofom_admin";
|
|
14
|
-
ModifiableByRoleEnum["RETAILER_ADMIN"] = "retailer_admin";
|
|
15
|
-
})(ModifiableByRoleEnum || (exports.ModifiableByRoleEnum = ModifiableByRoleEnum = {}));
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { MfaMethodEnum } from '../enums/MfaMethodEnum';
|
|
2
|
-
/**
|
|
3
|
-
* Body del POST /auth/resend-otp (público, anónimo). DEC-RBAC-054.
|
|
4
|
-
* Reenvía el OTP del login re-disparando el challenge real CUSTOM_AUTH (EMAIL_OTP) para la
|
|
5
|
-
* identidad SIN password. `tenantId` obligatorio (DEC-064 — el picker ya lo resolvió, NO "solo email").
|
|
6
|
-
* El email se normaliza lowercase server-side. Postura anti-enumeración: respuesta 200 genérica
|
|
7
|
-
* siempre, sin filtrar existencia (ver AuthLoginManager.resendChallengeOtp).
|
|
8
|
-
*/
|
|
9
|
-
export declare class ResendOtpRequest {
|
|
10
|
-
email: string;
|
|
11
|
-
tenantId: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Respuesta del resend-otp. `session`/`mfaMethod` frescos del nuevo challenge CUSTOM_AUTH.
|
|
15
|
-
* Plain sin validators (no validamos lo que mandamos al cliente — fiado-validation-and-dtos § 7).
|
|
16
|
-
* Ambos opcionales: en los caminos de rechazo silencioso (anti-enumeración) o ramas sin CUSTOM_AUTH
|
|
17
|
-
* el server responde 200 genérico sin session ni método.
|
|
18
|
-
*/
|
|
19
|
-
export interface ResendOtpResponse {
|
|
20
|
-
session?: string;
|
|
21
|
-
mfaMethod?: MfaMethodEnum;
|
|
22
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Body del POST /self-register/resend-otp (público, anónimo). DEC-RBAC-054.
|
|
3
|
-
* Re-envía el OTP del autoregistro (mecanismo messages-business, NO Cognito) tras validar un
|
|
4
|
-
* `pending` existente. Misma postura anti-enumeración del start. El email se normaliza lowercase
|
|
5
|
-
* server-side. DTO propio por endpoint (NO reusa SelfRegisterStartRequest, que exige roleId/scope/
|
|
6
|
-
* scopeRef, ni SelfRegisterVerifyOtpRequest, que exige otp).
|
|
7
|
-
*/
|
|
8
|
-
export declare class ResendSelfRegisterOtpRequest {
|
|
9
|
-
tenantId: string;
|
|
10
|
-
email: string;
|
|
11
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
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.ResendSelfRegisterOtpRequest = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
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 {
|
|
23
|
-
}
|
|
24
|
-
exports.ResendSelfRegisterOtpRequest = ResendSelfRegisterOtpRequest;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_transformer_1.Expose)(),
|
|
27
|
-
(0, class_validator_1.IsString)(),
|
|
28
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], ResendSelfRegisterOtpRequest.prototype, "tenantId", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, class_transformer_1.Expose)(),
|
|
33
|
-
(0, class_validator_1.IsEmail)(),
|
|
34
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], ResendSelfRegisterOtpRequest.prototype, "email", void 0);
|