@fiado/type-kit 3.115.0 → 3.117.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/SelfRegisterCompleteRequest.d.ts +4 -7
- package/bin/platformRbac/dtos/SelfRegisterCompleteRequest.js +3 -15
- 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/platformRbac/index.d.ts +0 -1
- package/bin/platformRbac/index.js +0 -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/SelfRegisterCompleteRequest.ts +5 -8
- package/src/platformRbac/dtos/TenantSecurityPolicyResponse.ts +3 -0
- package/src/platformRbac/dtos/UpdateTenantSecurityPolicyRequest.ts +8 -3
- package/src/platformRbac/index.ts +0 -1
- package/src/walletFunding/dtos/index.ts +0 -2
- package/bin/platformRbac/dtos/CompleteMyProfileRequest.d.ts +0 -9
- package/bin/platformRbac/dtos/CompleteMyProfileRequest.js +0 -34
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +0 -14
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.js +0 -41
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +0 -15
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.js +0 -13
- 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/platformRbac/dtos/CompleteMyProfileRequest.ts +0 -12
- 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);
|
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Body del POST /self-register/complete (público, anónimo). DEC-RBAC-033.
|
|
3
3
|
* Consume el `completionToken` del verify-otp (validación condicional atómica server-side, anti
|
|
4
|
-
* doble-complete). La password la elige el usuario y nace permanente (usuario ACTIVE).
|
|
5
|
-
* y `customFields` son opcionales (point 6): si llegan completos, `profileComplete=true` y se saltea
|
|
6
|
-
* el gate post-MFA; si no, el usuario nace `profileComplete=false` con displayName placeholder.
|
|
4
|
+
* doble-complete). La password la elige el usuario y nace permanente (usuario ACTIVE).
|
|
7
5
|
* La password NUNCA se persiste: viaja solo acá, directo a Cognito.
|
|
6
|
+
* DEC-RBAC-046: el autoregistro ya no captura perfil (displayName/customFields). El usuario nace
|
|
7
|
+
* ACTIVE sin paso de perfil; no hay gate post-MFA ni `profileComplete`.
|
|
8
8
|
*/
|
|
9
9
|
export declare class SelfRegisterCompleteRequest {
|
|
10
10
|
tenantId: string;
|
|
11
11
|
email: string;
|
|
12
12
|
completionToken: string;
|
|
13
13
|
password: string;
|
|
14
|
-
displayName?: string;
|
|
15
|
-
customFields?: Record<string, string>;
|
|
16
14
|
}
|
|
17
|
-
/** Respuesta del complete. El usuario nace ACTIVE
|
|
15
|
+
/** Respuesta del complete. El usuario nace ACTIVE. DEC-RBAC-046: sin `profileComplete`. */
|
|
18
16
|
export interface SelfRegisterCompleteResponse {
|
|
19
17
|
cognitoSub: string;
|
|
20
|
-
profileComplete: boolean;
|
|
21
18
|
}
|
|
@@ -15,10 +15,10 @@ const class_validator_1 = require("class-validator");
|
|
|
15
15
|
/**
|
|
16
16
|
* Body del POST /self-register/complete (público, anónimo). DEC-RBAC-033.
|
|
17
17
|
* Consume el `completionToken` del verify-otp (validación condicional atómica server-side, anti
|
|
18
|
-
* doble-complete). La password la elige el usuario y nace permanente (usuario ACTIVE).
|
|
19
|
-
* y `customFields` son opcionales (point 6): si llegan completos, `profileComplete=true` y se saltea
|
|
20
|
-
* el gate post-MFA; si no, el usuario nace `profileComplete=false` con displayName placeholder.
|
|
18
|
+
* doble-complete). La password la elige el usuario y nace permanente (usuario ACTIVE).
|
|
21
19
|
* La password NUNCA se persiste: viaja solo acá, directo a Cognito.
|
|
20
|
+
* DEC-RBAC-046: el autoregistro ya no captura perfil (displayName/customFields). El usuario nace
|
|
21
|
+
* ACTIVE sin paso de perfil; no hay gate post-MFA ni `profileComplete`.
|
|
22
22
|
*/
|
|
23
23
|
class SelfRegisterCompleteRequest {
|
|
24
24
|
}
|
|
@@ -46,15 +46,3 @@ __decorate([
|
|
|
46
46
|
(0, class_validator_1.MinLength)(8),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
48
|
], SelfRegisterCompleteRequest.prototype, "password", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, class_transformer_1.Expose)(),
|
|
51
|
-
(0, class_validator_1.IsOptional)(),
|
|
52
|
-
(0, class_validator_1.IsString)(),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], SelfRegisterCompleteRequest.prototype, "displayName", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, class_transformer_1.Expose)(),
|
|
57
|
-
(0, class_validator_1.IsOptional)(),
|
|
58
|
-
(0, class_validator_1.IsObject)(),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], SelfRegisterCompleteRequest.prototype, "customFields", 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);
|
|
@@ -42,4 +42,3 @@ export type { CreateApplicationRequest, UpdateApplicationRequest, UpsertApplicat
|
|
|
42
42
|
export * from './dtos/SelfRegisterStartRequest';
|
|
43
43
|
export * from './dtos/SelfRegisterVerifyOtpRequest';
|
|
44
44
|
export * from './dtos/SelfRegisterCompleteRequest';
|
|
45
|
-
export * from './dtos/CompleteMyProfileRequest';
|
|
@@ -92,4 +92,3 @@ __exportStar(require("./enums/PermissionKind"), exports);
|
|
|
92
92
|
__exportStar(require("./dtos/SelfRegisterStartRequest"), exports);
|
|
93
93
|
__exportStar(require("./dtos/SelfRegisterVerifyOtpRequest"), exports);
|
|
94
94
|
__exportStar(require("./dtos/SelfRegisterCompleteRequest"), exports);
|
|
95
|
-
__exportStar(require("./dtos/CompleteMyProfileRequest"), exports);
|
|
@@ -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,25 +1,22 @@
|
|
|
1
1
|
import { Expose } from 'class-transformer';
|
|
2
|
-
import { IsEmail, IsNotEmpty,
|
|
2
|
+
import { IsEmail, IsNotEmpty, IsString, MinLength } from 'class-validator';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Body del POST /self-register/complete (público, anónimo). DEC-RBAC-033.
|
|
6
6
|
* Consume el `completionToken` del verify-otp (validación condicional atómica server-side, anti
|
|
7
|
-
* doble-complete). La password la elige el usuario y nace permanente (usuario ACTIVE).
|
|
8
|
-
* y `customFields` son opcionales (point 6): si llegan completos, `profileComplete=true` y se saltea
|
|
9
|
-
* el gate post-MFA; si no, el usuario nace `profileComplete=false` con displayName placeholder.
|
|
7
|
+
* doble-complete). La password la elige el usuario y nace permanente (usuario ACTIVE).
|
|
10
8
|
* La password NUNCA se persiste: viaja solo acá, directo a Cognito.
|
|
9
|
+
* DEC-RBAC-046: el autoregistro ya no captura perfil (displayName/customFields). El usuario nace
|
|
10
|
+
* ACTIVE sin paso de perfil; no hay gate post-MFA ni `profileComplete`.
|
|
11
11
|
*/
|
|
12
12
|
export class SelfRegisterCompleteRequest {
|
|
13
13
|
@Expose() @IsString() @IsNotEmpty() tenantId!: string;
|
|
14
14
|
@Expose() @IsEmail() email!: string;
|
|
15
15
|
@Expose() @IsString() @IsNotEmpty() completionToken!: string;
|
|
16
16
|
@Expose() @IsString() @MinLength(8) password!: string;
|
|
17
|
-
@Expose() @IsOptional() @IsString() displayName?: string;
|
|
18
|
-
@Expose() @IsOptional() @IsObject() customFields?: Record<string, string>;
|
|
19
17
|
}
|
|
20
18
|
|
|
21
|
-
/** Respuesta del complete. El usuario nace ACTIVE
|
|
19
|
+
/** Respuesta del complete. El usuario nace ACTIVE. DEC-RBAC-046: sin `profileComplete`. */
|
|
22
20
|
export interface SelfRegisterCompleteResponse {
|
|
23
21
|
cognitoSub: string;
|
|
24
|
-
profileComplete: boolean;
|
|
25
22
|
}
|
|
@@ -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,9 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,34 +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.CompleteMyProfileRequest = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
/**
|
|
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`.
|
|
19
|
-
*/
|
|
20
|
-
class CompleteMyProfileRequest {
|
|
21
|
-
}
|
|
22
|
-
exports.CompleteMyProfileRequest = CompleteMyProfileRequest;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, class_transformer_1.Expose)(),
|
|
25
|
-
(0, class_validator_1.IsString)(),
|
|
26
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], CompleteMyProfileRequest.prototype, "displayName", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_transformer_1.Expose)(),
|
|
31
|
-
(0, class_validator_1.IsOptional)(),
|
|
32
|
-
(0, class_validator_1.IsObject)(),
|
|
33
|
-
__metadata("design:type", Object)
|
|
34
|
-
], CompleteMyProfileRequest.prototype, "customFields", void 0);
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,41 +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.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);
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
@@ -1,21 +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.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);
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Expose } from 'class-transformer';
|
|
2
|
-
import { IsNotEmpty, IsObject, IsOptional, IsString } from 'class-validator';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Body del PUT /me/profile/complete (autenticado, gate post-MFA del autoregistro). DEC-RBAC-034.
|
|
6
|
-
* Opera sobre el propio usuario (cognitoSub del token). Valida nombre + los `userFieldDefs` requeridos
|
|
7
|
-
* del tenant (422 MISSING_REQUIRED_FIELDS si faltan) y flipea `profileComplete=true`.
|
|
8
|
-
*/
|
|
9
|
-
export class CompleteMyProfileRequest {
|
|
10
|
-
@Expose() @IsString() @IsNotEmpty() displayName!: string;
|
|
11
|
-
@Expose() @IsOptional() @IsObject() customFields?: Record<string, string>;
|
|
12
|
-
}
|
|
@@ -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
|
-
}
|