FIx: delete champs par default
This commit is contained in:
@@ -26,10 +26,6 @@ export class CreateComposantDto {
|
||||
@IsNumber({}, { message: 'prix must be a valid number' })
|
||||
prix?: number | null;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
emplacement?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
typeComposantId?: string;
|
||||
@@ -60,10 +56,6 @@ export class UpdateComposantDto {
|
||||
@IsNumber({}, { message: 'prix must be a valid number' })
|
||||
prix?: number | null;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
emplacement?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
typeComposantId?: string;
|
||||
|
||||
@@ -41,10 +41,6 @@ export class CreateMachineDto {
|
||||
@IsDecimal()
|
||||
prix?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
emplacement?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
typeMachineId?: string;
|
||||
@@ -79,10 +75,6 @@ export class UpdateMachineDto {
|
||||
@IsDecimal()
|
||||
prix?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
emplacement?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
typeMachineId?: string;
|
||||
|
||||
@@ -26,10 +26,6 @@ export class CreatePieceDto {
|
||||
@IsNumber({}, { message: 'prix must be a valid number' })
|
||||
prix?: number | null;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
emplacement?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
typePieceId?: string;
|
||||
@@ -60,10 +56,6 @@ export class UpdatePieceDto {
|
||||
@IsNumber({}, { message: 'prix must be a valid number' })
|
||||
prix?: number | null;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
emplacement?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
typePieceId?: string;
|
||||
|
||||
@@ -29,10 +29,6 @@ export class CreateCustomFieldDto {
|
||||
@IsBoolean()
|
||||
required?: boolean;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
defaultValue?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
options?: string[]; // Pour les champs de type SELECT
|
||||
@@ -51,10 +47,6 @@ export class UpdateCustomFieldDto {
|
||||
@IsBoolean()
|
||||
required?: boolean;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
defaultValue?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
options?: string[];
|
||||
|
||||
Reference in New Issue
Block a user