This repository has been archived on 2026-04-01. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Inventory_backend/dist/pieces/pieces.controller.d.ts
2025-09-17 11:40:34 +02:00

380 lines
12 KiB
TypeScript

import { PiecesService } from './pieces.service';
import { CreatePieceDto, UpdatePieceDto } from '../shared/dto/piece.dto';
export declare class PiecesController {
private readonly piecesService;
constructor(piecesService: PiecesService);
create(createPieceDto: CreatePieceDto): Promise<{
typePiece: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
description: string | null;
} | null;
machine: {
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;
composant: {
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;
} | 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;
}[];
} & {
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;
}>;
findAll(): Promise<({
typePiece: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
description: string | null;
} | null;
machine: {
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;
composant: {
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;
} | 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;
}[];
} & {
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;
})[]>;
findByMachine(machineId: string): Promise<({
typePiece: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
description: string | null;
} | null;
machine: {
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;
composant: {
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;
} | 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;
}[];
} & {
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;
})[]>;
findByComposant(composantId: string): Promise<({
typePiece: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
description: string | null;
} | null;
machine: {
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;
composant: {
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;
} | 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;
}[];
} & {
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;
})[]>;
findOne(id: string): Promise<({
typePiece: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
description: string | null;
} | null;
machine: {
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;
composant: {
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;
} | 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;
}[];
} & {
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;
}) | null>;
update(id: string, updatePieceDto: UpdatePieceDto): Promise<{
typePiece: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
description: string | null;
} | null;
machine: {
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;
composant: {
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;
} | 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;
}[];
} & {
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;
}>;
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;
machineId: string | null;
composantId: string | null;
typePieceId: string | null;
}>;
}