feat(machine): support skeleton reconfiguration

This commit is contained in:
MatthieuTD
2025-09-22 10:19:33 +02:00
parent b6ca9ae54b
commit 55b20a66b4
4 changed files with 563 additions and 326 deletions

View File

@@ -90,4 +90,18 @@ export class UpdateMachineDto {
@IsOptional()
@IsString()
typeMachineId?: string;
}
}
export class ReconfigureMachineDto {
@IsOptional()
@IsArray()
@ValidateNested({ each: true })
@Type(() => MachineComponentSelectionDto)
componentSelections?: MachineComponentSelectionDto[];
@IsOptional()
@IsArray()
@ValidateNested({ each: true })
@Type(() => MachinePieceSelectionDto)
pieceSelections?: MachinePieceSelectionDto[];
}