@fiado/type-kit 3.134.0 → 3.135.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.
|
@@ -4,4 +4,10 @@ export declare class UpdateUserAttributesRequest {
|
|
|
4
4
|
displayName?: string;
|
|
5
5
|
phoneNumber?: string;
|
|
6
6
|
customAttributes?: Record<string, string>;
|
|
7
|
+
/** DEC-RBAC-082: valor del email a setear (secundario-email). El DTO hoy solo tiene phoneNumber. */
|
|
8
|
+
email?: string;
|
|
9
|
+
/** DEC-RBAC-082: marcar phone_number_verified en Cognito (tras OTP del secundario). */
|
|
10
|
+
phoneNumberVerified?: boolean;
|
|
11
|
+
/** DEC-RBAC-082: marcar email_verified en Cognito (tras OTP del secundario). */
|
|
12
|
+
emailVerified?: boolean;
|
|
7
13
|
}
|
|
@@ -47,3 +47,21 @@ __decorate([
|
|
|
47
47
|
(0, class_validator_1.Validate)(NoTenantIdInCustomAttrs_1.NoTenantIdInCustomAttrs),
|
|
48
48
|
__metadata("design:type", Object)
|
|
49
49
|
], UpdateUserAttributesRequest.prototype, "customAttributes", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_transformer_1.Expose)(),
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
(0, class_validator_1.IsEmail)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], UpdateUserAttributesRequest.prototype, "email", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, class_validator_1.IsBoolean)(),
|
|
60
|
+
__metadata("design:type", Boolean)
|
|
61
|
+
], UpdateUserAttributesRequest.prototype, "phoneNumberVerified", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_transformer_1.Expose)(),
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
(0, class_validator_1.IsBoolean)(),
|
|
66
|
+
__metadata("design:type", Boolean)
|
|
67
|
+
], UpdateUserAttributesRequest.prototype, "emailVerified", void 0);
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Expose } from 'class-transformer';
|
|
2
|
-
import { IsNotEmpty, IsObject, IsOptional, IsString, Validate } from 'class-validator';
|
|
2
|
+
import { IsBoolean, IsEmail, IsNotEmpty, IsObject, IsOptional, IsString, Validate } from 'class-validator';
|
|
3
3
|
import { NoTenantIdInCustomAttrs } from '../validators/NoTenantIdInCustomAttrs';
|
|
4
4
|
|
|
5
5
|
export class UpdateUserAttributesRequest {
|
|
@@ -9,4 +9,22 @@ export class UpdateUserAttributesRequest {
|
|
|
9
9
|
@Expose() @IsOptional() @IsString() phoneNumber?: string;
|
|
10
10
|
@Expose() @IsOptional() @IsObject() @Validate(NoTenantIdInCustomAttrs)
|
|
11
11
|
customAttributes?: Record<string, string>;
|
|
12
|
+
|
|
13
|
+
/** DEC-RBAC-082: valor del email a setear (secundario-email). El DTO hoy solo tiene phoneNumber. */
|
|
14
|
+
@Expose()
|
|
15
|
+
@IsOptional()
|
|
16
|
+
@IsEmail()
|
|
17
|
+
email?: string;
|
|
18
|
+
|
|
19
|
+
/** DEC-RBAC-082: marcar phone_number_verified en Cognito (tras OTP del secundario). */
|
|
20
|
+
@Expose()
|
|
21
|
+
@IsOptional()
|
|
22
|
+
@IsBoolean()
|
|
23
|
+
phoneNumberVerified?: boolean;
|
|
24
|
+
|
|
25
|
+
/** DEC-RBAC-082: marcar email_verified en Cognito (tras OTP del secundario). */
|
|
26
|
+
@Expose()
|
|
27
|
+
@IsOptional()
|
|
28
|
+
@IsBoolean()
|
|
29
|
+
emailVerified?: boolean;
|
|
12
30
|
}
|