216 lines
8.0 KiB
TypeScript
216 lines
8.0 KiB
TypeScript
import { SitesService } from './sites.service';
|
|
import { CreateSiteDto, UpdateSiteDto } from '../shared/dto/site.dto';
|
|
export declare class SitesController {
|
|
private readonly sitesService;
|
|
constructor(sitesService: SitesService);
|
|
create(createSiteDto: CreateSiteDto): Promise<{
|
|
name: string;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
}>;
|
|
findAll(): Promise<({
|
|
machines: ({
|
|
typeMachine: {
|
|
name: string;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
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;
|
|
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;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
} | 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;
|
|
})[];
|
|
} & {
|
|
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;
|
|
})[];
|
|
} & {
|
|
name: string;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
})[]>;
|
|
findOne(id: string): Promise<({
|
|
machines: ({
|
|
typeMachine: {
|
|
name: string;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
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;
|
|
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;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
} | 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;
|
|
})[];
|
|
} & {
|
|
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;
|
|
})[];
|
|
} & {
|
|
name: string;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
}) | null>;
|
|
update(id: string, updateSiteDto: UpdateSiteDto): Promise<{
|
|
name: string;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
}>;
|
|
remove(id: string): Promise<{
|
|
name: string;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
}>;
|
|
}
|