@fiado/type-kit 3.470.0 → 3.472.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/_test_/unit/common/IsStringValueRecord.test.ts +25 -0
- package/_test_/unit/moneyTransfer/accountDtos.test.ts +206 -0
- package/_test_/unit/moneyTransfer/dtos.test.ts +18 -8
- package/_test_/unit/platformRbac/dtos/tenantUserCustomFields.test.ts +55 -0
- package/bin/common/index.d.ts +1 -0
- package/bin/common/index.js +2 -0
- package/bin/common/validators/IsStringValueRecord.d.ts +5 -0
- package/bin/common/validators/IsStringValueRecord.js +25 -0
- package/bin/messagesConnector/validators/IsStringValueRecord.d.ts +1 -5
- package/bin/messagesConnector/validators/IsStringValueRecord.js +3 -21
- package/bin/moneyTransfer/dtos/AccountImpactResponse.d.ts +18 -0
- package/bin/moneyTransfer/dtos/AccountImpactResponse.js +14 -0
- package/bin/moneyTransfer/dtos/AccountListResponse.d.ts +6 -0
- package/bin/moneyTransfer/dtos/AccountListResponse.js +7 -0
- package/bin/moneyTransfer/dtos/AccountResponse.d.ts +23 -0
- package/bin/moneyTransfer/dtos/AccountResponse.js +13 -0
- package/bin/moneyTransfer/dtos/AccountWithImpactResponse.d.ts +11 -0
- package/bin/moneyTransfer/dtos/AccountWithImpactResponse.js +11 -0
- package/bin/moneyTransfer/dtos/CreateAccountRequest.d.ts +27 -0
- package/bin/moneyTransfer/dtos/CreateAccountRequest.js +75 -0
- package/bin/moneyTransfer/dtos/MoneyTransferProductRequest.d.ts +6 -5
- package/bin/moneyTransfer/dtos/MoneyTransferProductRequest.js +3 -14
- package/bin/moneyTransfer/dtos/SettlementResponse.d.ts +6 -0
- package/bin/moneyTransfer/dtos/TransactionDetailResponse.d.ts +7 -0
- package/bin/moneyTransfer/dtos/UpdateAccountRequest.d.ts +19 -0
- package/bin/moneyTransfer/dtos/UpdateAccountRequest.js +67 -0
- package/bin/moneyTransfer/index.d.ts +6 -0
- package/bin/moneyTransfer/index.js +6 -0
- package/bin/platformRbac/dtos/CreateTenantUserRequest.d.ts +4 -0
- package/bin/platformRbac/dtos/CreateTenantUserRequest.js +9 -0
- package/bin/platformRbac/dtos/UpdateTenantUserRequest.d.ts +5 -2
- package/bin/platformRbac/dtos/UpdateTenantUserRequest.js +10 -2
- package/package.json +1 -1
- package/src/common/index.ts +3 -0
- package/src/common/validators/IsStringValueRecord.ts +13 -0
- package/src/messagesConnector/validators/IsStringValueRecord.ts +2 -12
- package/src/moneyTransfer/dtos/AccountImpactResponse.ts +18 -0
- package/src/moneyTransfer/dtos/AccountListResponse.ts +7 -0
- package/src/moneyTransfer/dtos/AccountResponse.ts +24 -0
- package/src/moneyTransfer/dtos/AccountWithImpactResponse.ts +12 -0
- package/src/moneyTransfer/dtos/CreateAccountRequest.ts +60 -0
- package/src/moneyTransfer/dtos/MoneyTransferProductRequest.ts +10 -14
- package/src/moneyTransfer/dtos/SettlementResponse.ts +6 -0
- package/src/moneyTransfer/dtos/TransactionDetailResponse.ts +7 -0
- package/src/moneyTransfer/dtos/UpdateAccountRequest.ts +49 -0
- package/src/moneyTransfer/index.ts +6 -0
- package/src/platformRbac/dtos/CreateTenantUserRequest.ts +8 -1
- package/src/platformRbac/dtos/UpdateTenantUserRequest.ts +9 -3
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { Expose } from 'class-transformer';
|
|
2
|
-
import { IsNotEmpty, IsOptional, IsString, MaxLength } from 'class-validator';
|
|
2
|
+
import { IsNotEmpty, IsObject, IsOptional, IsString, MaxLength, Validate } from 'class-validator';
|
|
3
|
+
import { IsStringValueRecord } from '../../common/validators/IsStringValueRecord';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
|
-
* Body del PUT que
|
|
6
|
-
*
|
|
6
|
+
* Body del PUT que edita a un usuario: nombre y campos personalizados. `customFields` se fusiona con los
|
|
7
|
+
* actuales (solo cambian las claves enviadas; "" borra una). Correo y grupo no viajan aquí.
|
|
7
8
|
*/
|
|
8
9
|
export class UpdateTenantUserRequest {
|
|
9
10
|
@Expose() @IsOptional() @IsString() @IsNotEmpty() @MaxLength(120) displayName?: string;
|
|
11
|
+
@Expose()
|
|
12
|
+
@IsOptional()
|
|
13
|
+
@IsObject()
|
|
14
|
+
@Validate(IsStringValueRecord, { message: 'customFields: todos los valores deben ser string' })
|
|
15
|
+
customFields?: { [key: string]: string };
|
|
10
16
|
@Expose() @IsString() @IsNotEmpty() actedBy!: string;
|
|
11
17
|
}
|