forked from Ynov/ptitspas-ynov-back
nounou dto harmonise
This commit is contained in:
parent
70ae550733
commit
ff3cc7bc5d
@ -14,7 +14,6 @@ import {
|
|||||||
} from "class-validator";
|
} from "class-validator";
|
||||||
|
|
||||||
export class CreateAssistanteDto extends OmitType(CreateUserDto, ['role'] as const) {
|
export class CreateAssistanteDto extends OmitType(CreateUserDto, ['role'] as const) {
|
||||||
|
|
||||||
@IsUUID()
|
@IsUUID()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
user_id?: string;
|
user_id?: string;
|
||||||
@ -22,47 +21,47 @@ export class CreateAssistanteDto extends OmitType(CreateUserDto, ['role'] as con
|
|||||||
@IsString()
|
@IsString()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@Length(1, 50)
|
@Length(1, 50)
|
||||||
numero_agrement?: string;
|
approval_number?: string;
|
||||||
|
|
||||||
@Matches(/^\d{15}$/)
|
@Matches(/^\d{15}$/)
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
nir_chiffre?: string;
|
nir?: string;
|
||||||
|
|
||||||
@IsInt()
|
@IsInt()
|
||||||
@Min(1)
|
@Min(1)
|
||||||
@Max(10)
|
@Max(10)
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
nb_max_enfants?: number;
|
max_children?: number;
|
||||||
|
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsString()
|
@IsString()
|
||||||
biographie?: string;
|
biography?: string;
|
||||||
|
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsBoolean()
|
@IsBoolean()
|
||||||
disponible?: boolean;
|
available?: boolean;
|
||||||
|
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsString()
|
@IsString()
|
||||||
@Length(1, 100)
|
@Length(1, 100)
|
||||||
ville_residence?: string;
|
residence_city?: string;
|
||||||
|
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsDateString()
|
@IsDateString()
|
||||||
date_agrement?: string;
|
agreement_date?: string;
|
||||||
|
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsInt()
|
@IsInt()
|
||||||
@Min(0)
|
@Min(0)
|
||||||
annee_experience?: number;
|
years_experience?: number;
|
||||||
|
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsString()
|
@IsString()
|
||||||
@Length(1, 100)
|
@Length(1, 100)
|
||||||
specialite?: string;
|
specialty?: string;
|
||||||
|
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsInt()
|
@IsInt()
|
||||||
@Min(0)
|
@Min(0)
|
||||||
place_disponible?: number;
|
places_available?: number;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user