FEAT: add CustomPropertyDto and update IUpdateDataRequest to use custom properties array

This commit is contained in:
viniciusgadea
2026-07-22 10:51:53 -03:00
parent a93fbfbbd9
commit cffda86eab
2 changed files with 47 additions and 3 deletions
+18 -2
View File
@@ -204,6 +204,22 @@ export class IData {
}
export enum CustomPropertyType {
TEXT = 'text',
NUMBER = 'number',
DATE = 'date',
BOOLEAN = 'boolean',
}
export class CustomPropertyDto {
@ApiProperty()
key: string;
@ApiProperty()
value: string;
@ApiProperty({ enum: CustomPropertyType })
type: CustomPropertyType;
}
export class IUpdateDataRequest {
@ApiProperty()
name: string;
@@ -217,8 +233,8 @@ export class IUpdateDataRequest {
share_type?: DataAssetShareType;
@ApiPropertyOptional()
docs?: string;
@ApiPropertyOptional()
custom_properties?: Record<string, (string | number | boolean)[]>;
@ApiPropertyOptional({ type: [CustomPropertyDto] })
custom_properties?: CustomPropertyDto[];
}
export class IUpdateCertificationStatusRequest {