@fiado/type-kit 3.115.0 → 3.116.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/cognitoBackofficeConnector/dtos/VerifyPasswordResponse.d.ts +8 -0
- package/bin/cognitoBackofficeConnector/dtos/VerifyPasswordResponse.js +36 -1
- package/bin/platformRbac/application/Application.d.ts +1 -0
- package/bin/platformRbac/dtos/TenantSecurityPolicyResponse.d.ts +1 -0
- package/bin/platformRbac/dtos/UpdateTenantSecurityPolicyRequest.d.ts +1 -0
- package/bin/platformRbac/dtos/UpdateTenantSecurityPolicyRequest.js +7 -2
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +2 -10
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.js +3 -13
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +0 -8
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.js +0 -7
- package/bin/walletFunding/dtos/CancelFundingRequest.d.ts +11 -0
- package/bin/walletFunding/dtos/CancelFundingRequest.js +33 -0
- package/bin/walletFunding/dtos/CancelFundingResponse.d.ts +14 -0
- package/bin/walletFunding/dtos/CancelFundingResponse.js +12 -0
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.d.ts +1 -1
- package/bin/walletFunding/dtos/index.d.ts +0 -2
- package/bin/walletFunding/dtos/index.js +0 -2
- package/package.json +1 -1
- package/src/cognitoBackofficeConnector/dtos/VerifyPasswordResponse.ts +14 -2
- package/src/platformRbac/application/Application.ts +2 -0
- package/src/platformRbac/dtos/TenantSecurityPolicyResponse.ts +3 -0
- package/src/platformRbac/dtos/UpdateTenantSecurityPolicyRequest.ts +8 -3
- package/src/walletFunding/dtos/index.ts +0 -2
- package/src/walletFunding/dtos/CancelFundingReferenceRequest.ts +0 -16
- package/src/walletFunding/dtos/CancelFundingReferenceResponse.ts +0 -16
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { CognitoChallengeType } from '../enums/CognitoChallengeType';
|
|
2
|
+
export declare class VerifyPasswordTokens {
|
|
3
|
+
accessToken: string;
|
|
4
|
+
idToken: string;
|
|
5
|
+
refreshToken: string;
|
|
6
|
+
expiresIn: number;
|
|
7
|
+
tokenType: string;
|
|
8
|
+
}
|
|
2
9
|
/**
|
|
3
10
|
* Respuesta de `POST /auth/verify-password`.
|
|
4
11
|
*
|
|
@@ -15,4 +22,5 @@ export declare class VerifyPasswordResponse {
|
|
|
15
22
|
challengeType?: CognitoChallengeType;
|
|
16
23
|
session?: string;
|
|
17
24
|
challengeParameters?: Record<string, string>;
|
|
25
|
+
tokens?: VerifyPasswordTokens;
|
|
18
26
|
}
|
|
@@ -9,10 +9,38 @@ 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.VerifyPasswordResponse = void 0;
|
|
12
|
+
exports.VerifyPasswordResponse = exports.VerifyPasswordTokens = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const CognitoChallengeType_1 = require("../enums/CognitoChallengeType");
|
|
16
|
+
class VerifyPasswordTokens {
|
|
17
|
+
}
|
|
18
|
+
exports.VerifyPasswordTokens = VerifyPasswordTokens;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], VerifyPasswordTokens.prototype, "accessToken", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], VerifyPasswordTokens.prototype, "idToken", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], VerifyPasswordTokens.prototype, "refreshToken", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
(0, class_validator_1.IsNumber)(),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], VerifyPasswordTokens.prototype, "expiresIn", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], VerifyPasswordTokens.prototype, "tokenType", void 0);
|
|
16
44
|
/**
|
|
17
45
|
* Respuesta de `POST /auth/verify-password`.
|
|
18
46
|
*
|
|
@@ -50,3 +78,10 @@ __decorate([
|
|
|
50
78
|
(0, class_validator_1.IsObject)(),
|
|
51
79
|
__metadata("design:type", Object)
|
|
52
80
|
], VerifyPasswordResponse.prototype, "challengeParameters", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_transformer_1.Expose)(),
|
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
|
+
(0, class_validator_1.ValidateNested)(),
|
|
85
|
+
(0, class_transformer_1.Type)(() => VerifyPasswordTokens),
|
|
86
|
+
__metadata("design:type", VerifyPasswordTokens)
|
|
87
|
+
], VerifyPasswordResponse.prototype, "tokens", void 0);
|
|
@@ -12,8 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.UpdateTenantSecurityPolicyRequest = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
// TD-RBAC-071: methodsAllowed usa el value-set 'EMAIL'|'TOTP' (string), distinto de MfaMethodEnum
|
|
16
|
-
// ('EMAIL_OTP'|'TOTP') a propósito. Ver TECH_DEBT.md del platform-rbac-business.
|
|
15
|
+
// TD-RBAC-071: methodsAllowed usa el value-set 'EMAIL'|'TOTP' (string), distinto de MfaMethodEnum.
|
|
17
16
|
class UpdateTenantSecurityPolicyRequest {
|
|
18
17
|
}
|
|
19
18
|
exports.UpdateTenantSecurityPolicyRequest = UpdateTenantSecurityPolicyRequest;
|
|
@@ -23,3 +22,9 @@ __decorate([
|
|
|
23
22
|
(0, class_validator_1.IsIn)(['EMAIL', 'TOTP'], { each: true }),
|
|
24
23
|
__metadata("design:type", Array)
|
|
25
24
|
], UpdateTenantSecurityPolicyRequest.prototype, "methodsAllowed", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsBoolean)(),
|
|
29
|
+
__metadata("design:type", Boolean)
|
|
30
|
+
], UpdateTenantSecurityPolicyRequest.prototype, "mfaEnabled", void 0);
|
|
@@ -1,14 +1,6 @@
|
|
|
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
1
|
export declare class CancelFundingReferenceRequest {
|
|
2
|
+
/** Referencia Passport (PK de EqualityFundingReference_GT). */
|
|
3
|
+
reference: string;
|
|
11
4
|
directoryId: string;
|
|
12
|
-
reason?: string;
|
|
13
5
|
idempotencyKey: string;
|
|
14
6
|
}
|
|
@@ -11,15 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CancelFundingReferenceRequest = void 0;
|
|
13
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
14
|
class CancelFundingReferenceRequest {
|
|
24
15
|
}
|
|
25
16
|
exports.CancelFundingReferenceRequest = CancelFundingReferenceRequest;
|
|
@@ -27,13 +18,12 @@ __decorate([
|
|
|
27
18
|
(0, class_validator_1.IsString)(),
|
|
28
19
|
(0, class_validator_1.MaxLength)(64),
|
|
29
20
|
__metadata("design:type", String)
|
|
30
|
-
], CancelFundingReferenceRequest.prototype, "
|
|
21
|
+
], CancelFundingReferenceRequest.prototype, "reference", void 0);
|
|
31
22
|
__decorate([
|
|
32
|
-
(0, class_validator_1.IsOptional)(),
|
|
33
23
|
(0, class_validator_1.IsString)(),
|
|
34
|
-
(0, class_validator_1.MaxLength)(
|
|
24
|
+
(0, class_validator_1.MaxLength)(64),
|
|
35
25
|
__metadata("design:type", String)
|
|
36
|
-
], CancelFundingReferenceRequest.prototype, "
|
|
26
|
+
], CancelFundingReferenceRequest.prototype, "directoryId", void 0);
|
|
37
27
|
__decorate([
|
|
38
28
|
(0, class_validator_1.IsString)(),
|
|
39
29
|
(0, class_validator_1.MaxLength)(64),
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
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
3
|
export declare class CancelFundingReferenceResponse {
|
|
11
|
-
/** Referencia cancelada (misma PK que se creó). */
|
|
12
4
|
reference: string;
|
|
13
5
|
status: BenefitPaymentStatusEnum;
|
|
14
6
|
errorCode?: WalletFundingErrorCodeEnum;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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
4
|
class CancelFundingReferenceResponse {
|
|
12
5
|
}
|
|
13
6
|
exports.CancelFundingReferenceResponse = CancelFundingReferenceResponse;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
3
|
+
* `reference` viaja en el path, `directoryId` se resuelve del JWT.
|
|
4
|
+
* `providerModuleName` permite al marketplace rutear al publisher correcto
|
|
5
|
+
* sin tener que persistir el mapping (el wallet-app sabe el moduleName
|
|
6
|
+
* porque vino en la respuesta del authorize).
|
|
7
|
+
*/
|
|
8
|
+
export declare class CancelFundingRequest {
|
|
9
|
+
idempotencyKey: string;
|
|
10
|
+
providerModuleName: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.CancelFundingRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* Request del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
16
|
+
* `reference` viaja en el path, `directoryId` se resuelve del JWT.
|
|
17
|
+
* `providerModuleName` permite al marketplace rutear al publisher correcto
|
|
18
|
+
* sin tener que persistir el mapping (el wallet-app sabe el moduleName
|
|
19
|
+
* porque vino en la respuesta del authorize).
|
|
20
|
+
*/
|
|
21
|
+
class CancelFundingRequest {
|
|
22
|
+
}
|
|
23
|
+
exports.CancelFundingRequest = CancelFundingRequest;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, class_validator_1.MaxLength)(64),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CancelFundingRequest.prototype, "idempotencyKey", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, class_validator_1.MaxLength)(128),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CancelFundingRequest.prototype, "providerModuleName", void 0);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
+
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
+
/**
|
|
4
|
+
* Response del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
5
|
+
* `status` reusa `BenefitPaymentStatusEnum` (APPROVED = cancel aceptado;
|
|
6
|
+
* REJECTED = no se pudo) para consistencia con `CancelFundingReferenceResponse`
|
|
7
|
+
* (marketplace ↔ connector). Idempotente: re-cancelar devuelve APPROVED.
|
|
8
|
+
*/
|
|
9
|
+
export declare class CancelFundingResponse {
|
|
10
|
+
reference: string;
|
|
11
|
+
status: BenefitPaymentStatusEnum;
|
|
12
|
+
errorCode?: WalletFundingErrorCodeEnum;
|
|
13
|
+
message?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CancelFundingResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Response del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
6
|
+
* `status` reusa `BenefitPaymentStatusEnum` (APPROVED = cancel aceptado;
|
|
7
|
+
* REJECTED = no se pudo) para consistencia con `CancelFundingReferenceResponse`
|
|
8
|
+
* (marketplace ↔ connector). Idempotente: re-cancelar devuelve APPROVED.
|
|
9
|
+
*/
|
|
10
|
+
class CancelFundingResponse {
|
|
11
|
+
}
|
|
12
|
+
exports.CancelFundingResponse = CancelFundingResponse;
|
|
@@ -7,8 +7,6 @@ export * from "./ListWalletFundingReferencesRequest";
|
|
|
7
7
|
export * from "./ListWalletFundingReferencesResponse";
|
|
8
8
|
export * from "./CreateFundingReferenceRequest";
|
|
9
9
|
export * from "./CreateFundingReferenceResponse";
|
|
10
|
-
export * from "./CancelFundingReferenceRequest";
|
|
11
|
-
export * from "./CancelFundingReferenceResponse";
|
|
12
10
|
export * from "./ListFundingReferencesRequest";
|
|
13
11
|
export * from "./ListFundingReferencesResponse";
|
|
14
12
|
export * from "./ValidateWalletFundingRequest";
|
|
@@ -23,8 +23,6 @@ __exportStar(require("./ListWalletFundingReferencesRequest"), exports);
|
|
|
23
23
|
__exportStar(require("./ListWalletFundingReferencesResponse"), exports);
|
|
24
24
|
__exportStar(require("./CreateFundingReferenceRequest"), exports);
|
|
25
25
|
__exportStar(require("./CreateFundingReferenceResponse"), exports);
|
|
26
|
-
__exportStar(require("./CancelFundingReferenceRequest"), exports);
|
|
27
|
-
__exportStar(require("./CancelFundingReferenceResponse"), exports);
|
|
28
26
|
__exportStar(require("./ListFundingReferencesRequest"), exports);
|
|
29
27
|
__exportStar(require("./ListFundingReferencesResponse"), exports);
|
|
30
28
|
__exportStar(require("./ValidateWalletFundingRequest"), exports);
|
package/package.json
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import { Expose } from 'class-transformer';
|
|
2
|
-
import { IsBoolean, IsEnum, IsObject, IsOptional, IsString } from 'class-validator';
|
|
1
|
+
import { Expose, Type } from 'class-transformer';
|
|
2
|
+
import { IsBoolean, IsEnum, IsNumber, IsObject, IsOptional, IsString, ValidateNested } from 'class-validator';
|
|
3
3
|
import { CognitoChallengeType } from '../enums/CognitoChallengeType';
|
|
4
4
|
|
|
5
|
+
export class VerifyPasswordTokens {
|
|
6
|
+
@Expose() @IsString() accessToken!: string;
|
|
7
|
+
@Expose() @IsString() idToken!: string;
|
|
8
|
+
@Expose() @IsString() refreshToken!: string;
|
|
9
|
+
@Expose() @IsNumber() expiresIn!: number;
|
|
10
|
+
@Expose() @IsString() tokenType!: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
5
13
|
/**
|
|
6
14
|
* Respuesta de `POST /auth/verify-password`.
|
|
7
15
|
*
|
|
@@ -21,4 +29,8 @@ export class VerifyPasswordResponse {
|
|
|
21
29
|
@Expose() @IsOptional() @IsString() session?: string;
|
|
22
30
|
|
|
23
31
|
@Expose() @IsOptional() @IsObject() challengeParameters?: Record<string, string>;
|
|
32
|
+
|
|
33
|
+
// DEC-RBAC-045: tokens directos de ADMIN_USER_PASSWORD_AUTH cuando no hay challenge. El rbac SOLO
|
|
34
|
+
// los usa si el tenant tiene mfaEnabled=false. Aditivo, backward-compatible.
|
|
35
|
+
@Expose() @IsOptional() @ValidateNested() @Type(() => VerifyPasswordTokens) tokens?: VerifyPasswordTokens;
|
|
24
36
|
}
|
|
@@ -9,6 +9,8 @@ export interface LevelDef {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export interface ApplicationSecurityPolicyDefault {
|
|
12
|
+
// DEC-RBAC-045: 2FA master switch por tenant. Ausente ⇒ habilitado (secure-by-default).
|
|
13
|
+
mfaEnabled?: boolean;
|
|
12
14
|
mfaRequired?: boolean;
|
|
13
15
|
methodsAllowed?: Array<'TOTP' | 'EMAIL'>;
|
|
14
16
|
defaultPreferred?: 'TOTP' | 'EMAIL';
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { Expose } from 'class-transformer';
|
|
2
|
-
import { ArrayNotEmpty, IsIn } from 'class-validator';
|
|
2
|
+
import { ArrayNotEmpty, IsBoolean, IsIn, IsOptional } from 'class-validator';
|
|
3
3
|
|
|
4
|
-
// TD-RBAC-071: methodsAllowed usa el value-set 'EMAIL'|'TOTP' (string), distinto de MfaMethodEnum
|
|
5
|
-
// ('EMAIL_OTP'|'TOTP') a propósito. Ver TECH_DEBT.md del platform-rbac-business.
|
|
4
|
+
// TD-RBAC-071: methodsAllowed usa el value-set 'EMAIL'|'TOTP' (string), distinto de MfaMethodEnum.
|
|
6
5
|
export class UpdateTenantSecurityPolicyRequest {
|
|
7
6
|
@Expose()
|
|
8
7
|
@ArrayNotEmpty()
|
|
9
8
|
@IsIn(['EMAIL', 'TOTP'], { each: true })
|
|
10
9
|
methodsAllowed!: ('EMAIL' | 'TOTP')[];
|
|
10
|
+
|
|
11
|
+
// DEC-RBAC-045: 2FA master switch por tenant. Ausente ⇒ habilitado (secure-by-default).
|
|
12
|
+
@Expose()
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsBoolean()
|
|
15
|
+
mfaEnabled?: boolean;
|
|
11
16
|
}
|
|
@@ -7,8 +7,6 @@ export * from "./ListWalletFundingReferencesRequest";
|
|
|
7
7
|
export * from "./ListWalletFundingReferencesResponse";
|
|
8
8
|
export * from "./CreateFundingReferenceRequest";
|
|
9
9
|
export * from "./CreateFundingReferenceResponse";
|
|
10
|
-
export * from "./CancelFundingReferenceRequest";
|
|
11
|
-
export * from "./CancelFundingReferenceResponse";
|
|
12
10
|
export * from "./ListFundingReferencesRequest";
|
|
13
11
|
export * from "./ListFundingReferencesResponse";
|
|
14
12
|
export * from "./ValidateWalletFundingRequest";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IsString, IsOptional, MaxLength } from "class-validator";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Body para cancelar una referencia de funding ya creada. La referencia/fundingId
|
|
5
|
-
* viaja en la URL (`/funding/{moduleName}/{fundingId}/cancel`); este body aporta
|
|
6
|
-
* el contexto del solicitante + idempotencia.
|
|
7
|
-
*
|
|
8
|
-
* NOTA: shape inferido desde el uso en `@fiado/api-invoker`
|
|
9
|
-
* (benefits-marketplace / equality-connector) — confirmar con el dueño del
|
|
10
|
-
* módulo walletFunding / el lambda equality-connector que implementa el cancel.
|
|
11
|
-
*/
|
|
12
|
-
export class CancelFundingReferenceRequest {
|
|
13
|
-
@IsString() @MaxLength(64) directoryId!: string;
|
|
14
|
-
@IsOptional() @IsString() @MaxLength(256) reason?: string;
|
|
15
|
-
@IsString() @MaxLength(64) idempotencyKey!: string;
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
-
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
-
|
|
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
|
-
export class CancelFundingReferenceResponse {
|
|
12
|
-
/** Referencia cancelada (misma PK que se creó). */
|
|
13
|
-
reference!: string;
|
|
14
|
-
status!: BenefitPaymentStatusEnum;
|
|
15
|
-
errorCode?: WalletFundingErrorCodeEnum;
|
|
16
|
-
}
|