1142 lines
39 KiB
TypeScript
1142 lines
39 KiB
TypeScript
import { ComposantsService } from './composants.service';
|
|
import { CreateComposantDto, UpdateComposantDto } from '../shared/dto/composant.dto';
|
|
export declare class ComposantsController {
|
|
private readonly composantsService;
|
|
constructor(composantsService: ComposantsService);
|
|
create(createComposantDto: CreateComposantDto): Promise<{
|
|
typeComposant: {
|
|
name: string;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
} | 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;
|
|
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: ({
|
|
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;
|
|
}[];
|
|
} & {
|
|
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;
|
|
})[];
|
|
documents: {
|
|
name: string;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
machineId: string | null;
|
|
composantId: string | null;
|
|
pieceId: string | null;
|
|
filename: string;
|
|
path: string;
|
|
mimeType: string;
|
|
size: number;
|
|
}[];
|
|
parentComposant: {
|
|
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;
|
|
} & {
|
|
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;
|
|
}>;
|
|
findAll(): Promise<({
|
|
typeComposant: {
|
|
name: string;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
} | 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;
|
|
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;
|
|
value: string;
|
|
customFieldId: string;
|
|
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;
|
|
})[];
|
|
sousComposants: ({
|
|
typeComposant: {
|
|
name: string;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
} | 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;
|
|
value: string;
|
|
customFieldId: string;
|
|
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;
|
|
})[];
|
|
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;
|
|
value: string;
|
|
customFieldId: string;
|
|
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;
|
|
parentComposantId: string | null;
|
|
typeComposantId: string | null;
|
|
})[];
|
|
documents: {
|
|
name: string;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
machineId: string | null;
|
|
composantId: string | null;
|
|
pieceId: string | null;
|
|
filename: string;
|
|
path: string;
|
|
mimeType: string;
|
|
size: number;
|
|
}[];
|
|
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;
|
|
value: string;
|
|
customFieldId: string;
|
|
pieceId: string | null;
|
|
})[];
|
|
parentComposant: {
|
|
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;
|
|
} & {
|
|
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;
|
|
})[]>;
|
|
findHierarchy(machineId: string): Promise<({
|
|
typeComposant: {
|
|
name: string;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
} | 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;
|
|
value: string;
|
|
customFieldId: string;
|
|
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;
|
|
})[];
|
|
sousComposants: ({
|
|
typeComposant: {
|
|
name: string;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
} | 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;
|
|
value: string;
|
|
customFieldId: string;
|
|
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;
|
|
})[];
|
|
sousComposants: ({
|
|
typeComposant: {
|
|
name: string;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
} | 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;
|
|
value: string;
|
|
customFieldId: string;
|
|
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;
|
|
})[];
|
|
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;
|
|
value: string;
|
|
customFieldId: string;
|
|
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;
|
|
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;
|
|
value: string;
|
|
customFieldId: string;
|
|
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;
|
|
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;
|
|
value: string;
|
|
customFieldId: string;
|
|
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;
|
|
parentComposantId: string | null;
|
|
typeComposantId: string | null;
|
|
})[]>;
|
|
findByMachine(machineId: string): Promise<({
|
|
typeComposant: {
|
|
name: string;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
} | 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;
|
|
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;
|
|
value: string;
|
|
customFieldId: string;
|
|
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;
|
|
})[];
|
|
sousComposants: ({
|
|
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;
|
|
}[];
|
|
} & {
|
|
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;
|
|
})[];
|
|
documents: {
|
|
name: string;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
machineId: string | null;
|
|
composantId: string | null;
|
|
pieceId: string | null;
|
|
filename: string;
|
|
path: string;
|
|
mimeType: string;
|
|
size: number;
|
|
}[];
|
|
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;
|
|
value: string;
|
|
customFieldId: string;
|
|
pieceId: string | null;
|
|
})[];
|
|
parentComposant: {
|
|
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;
|
|
} & {
|
|
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;
|
|
})[]>;
|
|
findOne(id: string): Promise<({
|
|
typeComposant: {
|
|
name: string;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
} | 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;
|
|
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;
|
|
value: string;
|
|
customFieldId: string;
|
|
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;
|
|
})[];
|
|
sousComposants: ({
|
|
typeComposant: {
|
|
name: string;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
} | 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;
|
|
value: string;
|
|
customFieldId: string;
|
|
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;
|
|
})[];
|
|
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;
|
|
value: string;
|
|
customFieldId: string;
|
|
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;
|
|
parentComposantId: string | null;
|
|
typeComposantId: string | null;
|
|
})[];
|
|
documents: {
|
|
name: string;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
machineId: string | null;
|
|
composantId: string | null;
|
|
pieceId: string | null;
|
|
filename: string;
|
|
path: string;
|
|
mimeType: string;
|
|
size: number;
|
|
}[];
|
|
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;
|
|
value: string;
|
|
customFieldId: string;
|
|
pieceId: string | null;
|
|
})[];
|
|
parentComposant: {
|
|
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;
|
|
} & {
|
|
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>;
|
|
update(id: string, updateComposantDto: UpdateComposantDto): Promise<{
|
|
typeComposant: {
|
|
name: string;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
} | 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;
|
|
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;
|
|
value: string;
|
|
customFieldId: string;
|
|
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;
|
|
})[];
|
|
sousComposants: ({
|
|
typeComposant: {
|
|
name: string;
|
|
description: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
} | 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;
|
|
value: string;
|
|
customFieldId: string;
|
|
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;
|
|
})[];
|
|
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;
|
|
value: string;
|
|
customFieldId: string;
|
|
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;
|
|
parentComposantId: string | null;
|
|
typeComposantId: string | null;
|
|
})[];
|
|
documents: {
|
|
name: string;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
machineId: string | null;
|
|
composantId: string | null;
|
|
pieceId: string | null;
|
|
filename: string;
|
|
path: string;
|
|
mimeType: string;
|
|
size: number;
|
|
}[];
|
|
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;
|
|
value: string;
|
|
customFieldId: string;
|
|
pieceId: string | null;
|
|
})[];
|
|
parentComposant: {
|
|
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;
|
|
} & {
|
|
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;
|
|
}>;
|
|
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;
|
|
parentComposantId: string | null;
|
|
typeComposantId: string | null;
|
|
}>;
|
|
}
|