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/documents/documents.controller.d.ts
2025-09-18 08:26:26 +02:00

533 lines
17 KiB
TypeScript

import { DocumentsService } from './documents.service';
import { CreateDocumentDto, UpdateDocumentDto } from '../shared/dto/document.dto';
export declare class DocumentsController {
private readonly documentsService;
constructor(documentsService: DocumentsService);
create(createDocumentDto: CreateDocumentDto): Promise<{
site: {
name: string;
contactName: string;
contactPhone: string;
contactAddress: string;
contactPostalCode: string;
contactCity: string;
id: string;
createdAt: Date;
updatedAt: Date;
} | null;
machine: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
typeMachineId: string | null;
constructeurId: string | null;
} | null;
composant: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
composantId: string | null;
typePieceId: string | null;
} | null;
} & {
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;
}>;
findAll(): Promise<({
site: {
name: string;
contactName: string;
contactPhone: string;
contactAddress: string;
contactPostalCode: string;
contactCity: string;
id: string;
createdAt: Date;
updatedAt: Date;
} | null;
machine: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
typeMachineId: string | null;
constructeurId: string | null;
} | null;
composant: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
composantId: string | null;
typePieceId: string | null;
} | null;
} & {
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;
})[]>;
findByMachine(machineId: string): Promise<({
site: {
name: string;
contactName: string;
contactPhone: string;
contactAddress: string;
contactPostalCode: string;
contactCity: string;
id: string;
createdAt: Date;
updatedAt: Date;
} | null;
machine: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
typeMachineId: string | null;
constructeurId: string | null;
} | null;
composant: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
composantId: string | null;
typePieceId: string | null;
} | null;
} & {
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;
})[]>;
findByComposant(composantId: string): Promise<({
site: {
name: string;
contactName: string;
contactPhone: string;
contactAddress: string;
contactPostalCode: string;
contactCity: string;
id: string;
createdAt: Date;
updatedAt: Date;
} | null;
machine: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
typeMachineId: string | null;
constructeurId: string | null;
} | null;
composant: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
composantId: string | null;
typePieceId: string | null;
} | null;
} & {
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;
})[]>;
findByPiece(pieceId: string): Promise<({
site: {
name: string;
contactName: string;
contactPhone: string;
contactAddress: string;
contactPostalCode: string;
contactCity: string;
id: string;
createdAt: Date;
updatedAt: Date;
} | null;
machine: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
typeMachineId: string | null;
constructeurId: string | null;
} | null;
composant: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
composantId: string | null;
typePieceId: string | null;
} | null;
} & {
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;
})[]>;
findBySite(siteId: string): Promise<({
site: {
name: string;
contactName: string;
contactPhone: string;
contactAddress: string;
contactPostalCode: string;
contactCity: string;
id: string;
createdAt: Date;
updatedAt: Date;
} | null;
machine: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
typeMachineId: string | null;
constructeurId: string | null;
} | null;
composant: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
composantId: string | null;
typePieceId: string | null;
} | null;
} & {
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;
})[]>;
findOne(id: string): Promise<({
site: {
name: string;
contactName: string;
contactPhone: string;
contactAddress: string;
contactPostalCode: string;
contactCity: string;
id: string;
createdAt: Date;
updatedAt: Date;
} | null;
machine: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
typeMachineId: string | null;
constructeurId: string | null;
} | null;
composant: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
composantId: string | null;
typePieceId: string | null;
} | null;
} & {
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;
}) | null>;
update(id: string, updateDocumentDto: UpdateDocumentDto): Promise<{
site: {
name: string;
contactName: string;
contactPhone: string;
contactAddress: string;
contactPostalCode: string;
contactCity: string;
id: string;
createdAt: Date;
updatedAt: Date;
} | null;
machine: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
typeMachineId: string | null;
constructeurId: string | null;
} | null;
composant: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
id: string;
createdAt: Date;
updatedAt: Date;
reference: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
composantId: string | null;
typePieceId: string | null;
} | null;
} & {
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;
}>;
remove(id: string): Promise<{
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;
}>;
}