import { MachinesService } from './machines.service'; import { CreateMachineDto, UpdateMachineDto } from '../shared/dto/machine.dto'; export declare class MachinesController { private readonly machinesService; constructor(machinesService: MachinesService); create(createMachineDto: CreateMachineDto): Promise<({ site: { name: string; contactName: string; contactPhone: string; contactAddress: string; contactPostalCode: string; contactCity: string; id: string; createdAt: Date; updatedAt: Date; }; typeMachine: ({ customFields: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; description: string | null; category: string | null; maintenanceFrequency: string | null; components: import("@prisma/client/runtime/library").JsonValue | null; criticalParts: import("@prisma/client/runtime/library").JsonValue | null; machinePieces: import("@prisma/client/runtime/library").JsonValue | null; specifications: import("@prisma/client/runtime/library").JsonValue | null; }) | null; documents: { name: string; id: string; createdAt: Date; updatedAt: Date; siteId: string | null; machineId: string | null; composantId: string | null; filename: string; path: string; mimeType: string; size: number; pieceId: string | null; }[]; pieces: ({ customFieldValues: ({ customField: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }; } & { id: string; createdAt: Date; updatedAt: Date; machineId: string | null; composantId: string | null; pieceId: string | null; value: string; customFieldId: string; })[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; composantId: string | null; typePieceId: string | null; })[]; composants: ({ typeComposant: { name: string; id: string; createdAt: Date; updatedAt: Date; description: string | null; } | null; pieces: ({ customFieldValues: ({ customField: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }; } & { id: string; createdAt: Date; updatedAt: Date; machineId: string | null; composantId: string | null; pieceId: string | null; value: string; customFieldId: string; })[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; composantId: string | null; typePieceId: string | null; })[]; sousComposants: { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; parentComposantId: string | null; typeComposantId: string | null; }[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; parentComposantId: string | null; typeComposantId: string | null; })[]; customFieldValues: ({ customField: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }; } & { id: string; createdAt: Date; updatedAt: Date; machineId: string | null; composantId: string | null; pieceId: string | null; value: string; customFieldId: string; })[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; siteId: string; typeMachineId: string | null; }) | null>; findAll(): Promise<({ site: { name: string; contactName: string; contactPhone: string; contactAddress: string; contactPostalCode: string; contactCity: string; id: string; createdAt: Date; updatedAt: Date; }; typeMachine: ({ customFields: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; description: string | null; category: string | null; maintenanceFrequency: string | null; components: import("@prisma/client/runtime/library").JsonValue | null; criticalParts: import("@prisma/client/runtime/library").JsonValue | null; machinePieces: import("@prisma/client/runtime/library").JsonValue | null; specifications: import("@prisma/client/runtime/library").JsonValue | null; }) | null; documents: { name: string; id: string; createdAt: Date; updatedAt: Date; siteId: string | null; machineId: string | null; composantId: string | null; filename: string; path: string; mimeType: string; size: number; pieceId: string | null; }[]; pieces: ({ customFieldValues: ({ customField: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }; } & { id: string; createdAt: Date; updatedAt: Date; machineId: string | null; composantId: string | null; pieceId: string | null; value: string; customFieldId: string; })[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; composantId: string | null; typePieceId: string | null; })[]; composants: ({ typeComposant: { name: string; id: string; createdAt: Date; updatedAt: Date; description: string | null; } | null; pieces: ({ customFieldValues: ({ customField: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }; } & { id: string; createdAt: Date; updatedAt: Date; machineId: string | null; composantId: string | null; pieceId: string | null; value: string; customFieldId: string; })[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; composantId: string | null; typePieceId: string | null; })[]; sousComposants: { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; parentComposantId: string | null; typeComposantId: string | null; }[]; customFieldValues: ({ customField: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }; } & { id: string; createdAt: Date; updatedAt: Date; machineId: string | null; composantId: string | null; pieceId: string | null; value: string; customFieldId: string; })[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; parentComposantId: string | null; typeComposantId: string | null; })[]; customFieldValues: ({ customField: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }; } & { id: string; createdAt: Date; updatedAt: Date; machineId: string | null; composantId: string | null; pieceId: string | null; value: string; customFieldId: string; })[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; siteId: string; typeMachineId: string | null; })[]>; findOne(id: string): Promise<({ site: { name: string; contactName: string; contactPhone: string; contactAddress: string; contactPostalCode: string; contactCity: string; id: string; createdAt: Date; updatedAt: Date; }; typeMachine: ({ customFields: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; description: string | null; category: string | null; maintenanceFrequency: string | null; components: import("@prisma/client/runtime/library").JsonValue | null; criticalParts: import("@prisma/client/runtime/library").JsonValue | null; machinePieces: import("@prisma/client/runtime/library").JsonValue | null; specifications: import("@prisma/client/runtime/library").JsonValue | null; }) | null; documents: { name: string; id: string; createdAt: Date; updatedAt: Date; siteId: string | null; machineId: string | null; composantId: string | null; filename: string; path: string; mimeType: string; size: number; pieceId: string | null; }[]; pieces: ({ customFieldValues: ({ customField: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }; } & { id: string; createdAt: Date; updatedAt: Date; machineId: string | null; composantId: string | null; pieceId: string | null; value: string; customFieldId: string; })[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; composantId: string | null; typePieceId: string | null; })[]; composants: ({ typeComposant: { name: string; id: string; createdAt: Date; updatedAt: Date; description: string | null; } | null; pieces: ({ customFieldValues: ({ customField: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }; } & { id: string; createdAt: Date; updatedAt: Date; machineId: string | null; composantId: string | null; pieceId: string | null; value: string; customFieldId: string; })[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; composantId: string | null; typePieceId: string | null; })[]; sousComposants: { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; parentComposantId: string | null; typeComposantId: string | null; }[]; customFieldValues: ({ customField: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }; } & { id: string; createdAt: Date; updatedAt: Date; machineId: string | null; composantId: string | null; pieceId: string | null; value: string; customFieldId: string; })[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; parentComposantId: string | null; typeComposantId: string | null; })[]; customFieldValues: ({ customField: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }; } & { id: string; createdAt: Date; updatedAt: Date; machineId: string | null; composantId: string | null; pieceId: string | null; value: string; customFieldId: string; })[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; siteId: string; typeMachineId: string | null; }) | null>; update(id: string, updateMachineDto: UpdateMachineDto): Promise<{ site: { name: string; contactName: string; contactPhone: string; contactAddress: string; contactPostalCode: string; contactCity: string; id: string; createdAt: Date; updatedAt: Date; }; typeMachine: ({ customFields: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; description: string | null; category: string | null; maintenanceFrequency: string | null; components: import("@prisma/client/runtime/library").JsonValue | null; criticalParts: import("@prisma/client/runtime/library").JsonValue | null; machinePieces: import("@prisma/client/runtime/library").JsonValue | null; specifications: import("@prisma/client/runtime/library").JsonValue | null; }) | null; documents: { name: string; id: string; createdAt: Date; updatedAt: Date; siteId: string | null; machineId: string | null; composantId: string | null; filename: string; path: string; mimeType: string; size: number; pieceId: string | null; }[]; pieces: { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; composantId: string | null; typePieceId: string | null; }[]; composants: ({ typeComposant: { name: string; id: string; createdAt: Date; updatedAt: Date; description: string | null; } | null; pieces: { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; composantId: string | null; typePieceId: string | null; }[]; sousComposants: { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; parentComposantId: string | null; typeComposantId: string | null; }[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; parentComposantId: string | null; typeComposantId: string | null; })[]; customFieldValues: ({ customField: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }; } & { id: string; createdAt: Date; updatedAt: Date; machineId: string | null; composantId: string | null; pieceId: string | null; value: string; customFieldId: string; })[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; siteId: string; typeMachineId: string | null; }>; remove(id: string): Promise<{ name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; siteId: string; typeMachineId: string | null; }>; addMissingCustomFields(id: string): Promise<({ site: { name: string; contactName: string; contactPhone: string; contactAddress: string; contactPostalCode: string; contactCity: string; id: string; createdAt: Date; updatedAt: Date; }; typeMachine: ({ customFields: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; description: string | null; category: string | null; maintenanceFrequency: string | null; components: import("@prisma/client/runtime/library").JsonValue | null; criticalParts: import("@prisma/client/runtime/library").JsonValue | null; machinePieces: import("@prisma/client/runtime/library").JsonValue | null; specifications: import("@prisma/client/runtime/library").JsonValue | null; }) | null; documents: { name: string; id: string; createdAt: Date; updatedAt: Date; siteId: string | null; machineId: string | null; composantId: string | null; filename: string; path: string; mimeType: string; size: number; pieceId: string | null; }[]; pieces: ({ customFieldValues: ({ customField: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }; } & { id: string; createdAt: Date; updatedAt: Date; machineId: string | null; composantId: string | null; pieceId: string | null; value: string; customFieldId: string; })[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; composantId: string | null; typePieceId: string | null; })[]; composants: ({ typeComposant: { name: string; id: string; createdAt: Date; updatedAt: Date; description: string | null; } | null; pieces: ({ customFieldValues: ({ customField: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }; } & { id: string; createdAt: Date; updatedAt: Date; machineId: string | null; composantId: string | null; pieceId: string | null; value: string; customFieldId: string; })[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; composantId: string | null; typePieceId: string | null; })[]; sousComposants: { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; parentComposantId: string | null; typeComposantId: string | null; }[]; customFieldValues: ({ customField: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }; } & { id: string; createdAt: Date; updatedAt: Date; machineId: string | null; composantId: string | null; pieceId: string | null; value: string; customFieldId: string; })[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; machineId: string | null; parentComposantId: string | null; typeComposantId: string | null; })[]; customFieldValues: ({ customField: { name: string; id: string; createdAt: Date; updatedAt: Date; typeMachineId: string | null; typePieceId: string | null; typeComposantId: string | null; type: string; required: boolean; defaultValue: string | null; options: string[]; }; } & { id: string; createdAt: Date; updatedAt: Date; machineId: string | null; composantId: string | null; pieceId: string | null; value: string; customFieldId: string; })[]; } & { name: string; id: string; createdAt: Date; updatedAt: Date; reference: string | null; constructeur: string | null; prix: import("@prisma/client/runtime/library").Decimal | null; emplacement: string | null; siteId: string; typeMachineId: string | null; }) | null>; }