refactor: rename prestataire to constructeur

This commit is contained in:
Matthieu
2025-09-17 08:50:07 +02:00
parent 4d2d552391
commit e8aeaf98e9
36 changed files with 796 additions and 783 deletions

View File

@@ -17,7 +17,7 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -29,7 +29,7 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -50,7 +50,7 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -63,12 +63,12 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -89,12 +89,12 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
} & {
name: string;
@@ -102,12 +102,12 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}>;
findAll(): Promise<({
typeComposant: {
@@ -123,7 +123,7 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -137,21 +137,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -160,7 +160,7 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -183,21 +183,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -206,7 +206,7 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -220,21 +220,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -243,12 +243,12 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -270,21 +270,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
parentComposant: {
@@ -293,12 +293,12 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
} & {
name: string;
@@ -306,12 +306,12 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[]>;
findHierarchy(machineId: string): Promise<({
typeComposant: {
@@ -329,21 +329,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -352,7 +352,7 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -375,21 +375,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -398,7 +398,7 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -421,21 +421,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -444,7 +444,7 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -458,21 +458,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -481,12 +481,12 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
customFieldValues: ({
customField: {
@@ -495,21 +495,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -518,12 +518,12 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
customFieldValues: ({
customField: {
@@ -532,21 +532,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -555,12 +555,12 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[]>;
findByMachine(machineId: string): Promise<({
typeComposant: {
@@ -576,7 +576,7 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -590,21 +590,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -613,7 +613,7 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -634,7 +634,7 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -647,12 +647,12 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -674,21 +674,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
parentComposant: {
@@ -697,12 +697,12 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
} & {
name: string;
@@ -710,12 +710,12 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[]>;
findOne(id: string): Promise<({
typeComposant: {
@@ -731,7 +731,7 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -745,21 +745,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -768,7 +768,7 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -791,21 +791,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -814,7 +814,7 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -828,21 +828,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -851,12 +851,12 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -878,21 +878,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
parentComposant: {
@@ -901,12 +901,12 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
} & {
name: string;
@@ -914,12 +914,12 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}) | null>;
update(id: string, updateComposantDto: UpdateComposantDto): Promise<{
typeComposant: {
@@ -935,7 +935,7 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -949,21 +949,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -972,7 +972,7 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -995,21 +995,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -1018,7 +1018,7 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -1032,21 +1032,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -1055,12 +1055,12 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -1082,21 +1082,21 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
parentComposant: {
@@ -1105,12 +1105,12 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
} & {
name: string;
@@ -1118,12 +1118,12 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}>;
remove(id: string): Promise<{
name: string;
@@ -1131,11 +1131,11 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}>;
}

View File

@@ -17,7 +17,7 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -29,7 +29,7 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -50,7 +50,7 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -63,12 +63,12 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -89,12 +89,12 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
} & {
name: string;
@@ -102,12 +102,12 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}>;
findAll(): Promise<({
typeComposant: {
@@ -123,7 +123,7 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -137,21 +137,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -160,7 +160,7 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -183,21 +183,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -206,7 +206,7 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -220,21 +220,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -243,12 +243,12 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -270,21 +270,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
parentComposant: {
@@ -293,12 +293,12 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
} & {
name: string;
@@ -306,12 +306,12 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[]>;
findOne(id: string): Promise<({
typeComposant: {
@@ -327,7 +327,7 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -341,21 +341,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -364,7 +364,7 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -387,21 +387,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -410,7 +410,7 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -424,21 +424,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -447,12 +447,12 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -474,21 +474,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
parentComposant: {
@@ -497,12 +497,12 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
} & {
name: string;
@@ -510,12 +510,12 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}) | null>;
findByMachine(machineId: string): Promise<({
typeComposant: {
@@ -531,7 +531,7 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -545,21 +545,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -568,7 +568,7 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -589,7 +589,7 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -602,12 +602,12 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -629,21 +629,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
parentComposant: {
@@ -652,12 +652,12 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
} & {
name: string;
@@ -665,12 +665,12 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[]>;
findHierarchy(machineId: string): Promise<({
typeComposant: {
@@ -688,21 +688,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -711,7 +711,7 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -734,21 +734,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -757,7 +757,7 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -780,21 +780,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -803,7 +803,7 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -817,21 +817,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -840,12 +840,12 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
customFieldValues: ({
customField: {
@@ -854,21 +854,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -877,12 +877,12 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
customFieldValues: ({
customField: {
@@ -891,21 +891,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -914,12 +914,12 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[]>;
update(id: string, updateComposantDto: UpdateComposantDto): Promise<{
typeComposant: {
@@ -935,7 +935,7 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -949,21 +949,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -972,7 +972,7 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -995,21 +995,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -1018,7 +1018,7 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -1032,21 +1032,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -1055,12 +1055,12 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -1082,21 +1082,21 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
parentComposant: {
@@ -1105,12 +1105,12 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
} & {
name: string;
@@ -1118,12 +1118,12 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}>;
remove(id: string): Promise<{
name: string;
@@ -1131,11 +1131,11 @@ export declare class ComposantsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}>;
}

View File

@@ -10,21 +10,21 @@ export declare class CustomFieldsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
}>;
findCustomFieldValuesByEntity(entityType: string, entityId: string): Promise<({
@@ -34,21 +34,21 @@ export declare class CustomFieldsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[]>;
findOneCustomFieldValue(id: string): Promise<({
@@ -58,21 +58,21 @@ export declare class CustomFieldsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
}) | null>;
updateCustomFieldValue(id: string, updateCustomFieldValueDto: UpdateCustomFieldValueDto): Promise<{
@@ -82,31 +82,31 @@ export declare class CustomFieldsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
}>;
removeCustomFieldValue(id: string): Promise<{
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
}>;
upsertCustomFieldValue(body: {
@@ -121,21 +121,21 @@ export declare class CustomFieldsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
}>;
}

View File

@@ -10,21 +10,21 @@ export declare class CustomFieldsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
}>;
findCustomFieldValuesByEntity(entityType: string, entityId: string): Promise<({
@@ -34,21 +34,21 @@ export declare class CustomFieldsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[]>;
findOneCustomFieldValue(id: string): Promise<({
@@ -58,21 +58,21 @@ export declare class CustomFieldsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
}) | null>;
updateCustomFieldValue(id: string, updateCustomFieldValueDto: UpdateCustomFieldValueDto): Promise<{
@@ -82,31 +82,31 @@ export declare class CustomFieldsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
}>;
removeCustomFieldValue(id: string): Promise<{
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
}>;
upsertCustomFieldValue(customFieldId: string, entityType: string, entityId: string, value: string): Promise<{
@@ -116,21 +116,21 @@ export declare class CustomFieldsService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
}>;
}

View File

@@ -10,7 +10,7 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -22,12 +22,12 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -35,7 +35,7 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -62,7 +62,7 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -74,12 +74,12 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -87,7 +87,7 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -114,7 +114,7 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -126,12 +126,12 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -139,7 +139,7 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -166,7 +166,7 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -178,12 +178,12 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -191,7 +191,7 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -218,7 +218,7 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -230,12 +230,12 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -243,7 +243,7 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -270,7 +270,7 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -282,12 +282,12 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -295,7 +295,7 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -322,7 +322,7 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -334,12 +334,12 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -347,7 +347,7 @@ export declare class DocumentsController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;

View File

@@ -10,7 +10,7 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -22,12 +22,12 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -35,7 +35,7 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -62,7 +62,7 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -74,12 +74,12 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -87,7 +87,7 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -114,7 +114,7 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -126,12 +126,12 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -139,7 +139,7 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -166,7 +166,7 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -178,12 +178,12 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -191,7 +191,7 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -218,7 +218,7 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -230,12 +230,12 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -243,7 +243,7 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -270,7 +270,7 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -282,12 +282,12 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -295,7 +295,7 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -322,7 +322,7 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -334,12 +334,12 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -347,7 +347,7 @@ export declare class DocumentsService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;

View File

@@ -18,12 +18,12 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -46,21 +46,21 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -69,7 +69,7 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -92,21 +92,21 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -115,7 +115,7 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -128,12 +128,12 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}[];
} & {
name: string;
@@ -141,12 +141,12 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -168,21 +168,21 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -191,7 +191,7 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -212,12 +212,12 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -240,21 +240,21 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -263,7 +263,7 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -286,21 +286,21 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -309,7 +309,7 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -322,12 +322,12 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}[];
customFieldValues: ({
customField: {
@@ -336,21 +336,21 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -359,12 +359,12 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -386,21 +386,21 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -409,7 +409,7 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -430,12 +430,12 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -458,21 +458,21 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -481,7 +481,7 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -504,21 +504,21 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -527,7 +527,7 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -540,12 +540,12 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}[];
customFieldValues: ({
customField: {
@@ -554,21 +554,21 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -577,12 +577,12 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -604,21 +604,21 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -627,7 +627,7 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -648,12 +648,12 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -674,7 +674,7 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -695,7 +695,7 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -708,12 +708,12 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}[];
} & {
name: string;
@@ -721,12 +721,12 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -748,21 +748,21 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -771,7 +771,7 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -783,7 +783,7 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -804,12 +804,12 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -832,21 +832,21 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -855,7 +855,7 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -878,21 +878,21 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -901,7 +901,7 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -914,12 +914,12 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}[];
customFieldValues: ({
customField: {
@@ -928,21 +928,21 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -951,12 +951,12 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -978,21 +978,21 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -1001,7 +1001,7 @@ export declare class MachinesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;

View File

@@ -18,12 +18,12 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -46,21 +46,21 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -69,7 +69,7 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -92,21 +92,21 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -115,7 +115,7 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -128,12 +128,12 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}[];
} & {
name: string;
@@ -141,12 +141,12 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -168,21 +168,21 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -191,7 +191,7 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -215,12 +215,12 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -243,21 +243,21 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -266,7 +266,7 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -289,21 +289,21 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -312,7 +312,7 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -325,12 +325,12 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}[];
customFieldValues: ({
customField: {
@@ -339,21 +339,21 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -362,12 +362,12 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -389,21 +389,21 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -412,7 +412,7 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -433,12 +433,12 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -461,21 +461,21 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -484,7 +484,7 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -507,21 +507,21 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -530,7 +530,7 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -543,12 +543,12 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}[];
customFieldValues: ({
customField: {
@@ -557,21 +557,21 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -580,12 +580,12 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -607,21 +607,21 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -630,7 +630,7 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -651,12 +651,12 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -677,7 +677,7 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -698,7 +698,7 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -711,12 +711,12 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}[];
} & {
name: string;
@@ -724,12 +724,12 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -751,21 +751,21 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -774,7 +774,7 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -786,7 +786,7 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -807,12 +807,12 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -835,21 +835,21 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -858,7 +858,7 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -881,21 +881,21 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -904,7 +904,7 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -917,12 +917,12 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}[];
customFieldValues: ({
customField: {
@@ -931,21 +931,21 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -954,12 +954,12 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
documents: {
name: string;
@@ -981,21 +981,21 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
value: string;
customFieldId: string;
pieceId: string | null;
})[];
} & {
@@ -1004,7 +1004,7 @@ export declare class MachinesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;

View File

@@ -123,7 +123,7 @@ let MachinesService = class MachinesService {
data: {
name: component.name,
reference: component.reference || '',
prestataire: component.prestataire || '',
constructeur: component.constructeur || '',
emplacement: component.emplacement || '',
prix: component.prix || null,
machineId,
@@ -180,7 +180,7 @@ let MachinesService = class MachinesService {
data: {
name: piece.name,
reference: piece.reference || '',
prestataire: piece.prestataire || '',
constructeur: piece.constructeur || '',
emplacement: piece.emplacement || '',
prix: piece.prix || null,
composantId: createdComposant.id,

File diff suppressed because one or more lines are too long

14
dist/main.js vendored
View File

@@ -5,8 +5,18 @@ const common_1 = require("@nestjs/common");
const app_module_1 = require("./app.module");
async function bootstrap() {
const app = await core_1.NestFactory.create(app_module_1.AppModule);
const allowedOrigins = process.env.CORS_ORIGIN
? process.env.CORS_ORIGIN.split(',').map(origin => origin.trim())
: ['http://localhost:3001'];
app.enableCors({
origin: process.env.CORS_ORIGIN || 'http://localhost:3001',
origin: (origin, callback) => {
if (!origin || allowedOrigins.includes(origin)) {
callback(null, true);
}
else {
callback(new Error(`Origin ${origin} not allowed by CORS`));
}
},
credentials: true,
});
app.useGlobalPipes(new common_1.ValidationPipe({
@@ -16,7 +26,7 @@ async function bootstrap() {
}));
const apiPrefix = process.env.API_PREFIX || 'api';
app.setGlobalPrefix(apiPrefix);
const port = process.env.PORT || 3000;
const port = Number(process.env.PORT) || 3000;
await app.listen(port);
console.log(`Application is running on: http://localhost:${port}`);
console.log(`Environment: ${process.env.NODE_ENV || 'development'}`);

2
dist/main.js.map vendored
View File

@@ -1 +1 @@
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAAA,uCAA2C;AAC3C,2CAAgD;AAChD,6CAAyC;AAEzC,KAAK,UAAU,SAAS;IACtB,MAAM,GAAG,GAAG,MAAM,kBAAW,CAAC,MAAM,CAAC,sBAAS,CAAC,CAAC;IAGhD,GAAG,CAAC,UAAU,CAAC;QACb,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,uBAAuB;QAC1D,WAAW,EAAE,IAAI;KAClB,CAAC,CAAC;IAGH,GAAG,CAAC,cAAc,CAAC,IAAI,uBAAc,CAAC;QACpC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,oBAAoB,KAAK,MAAM;QACtD,oBAAoB,EAAE,OAAO,CAAC,GAAG,CAAC,iCAAiC,KAAK,MAAM;QAC9E,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,oBAAoB,KAAK,MAAM;KACvD,CAAC,CAAC,CAAC;IAGJ,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,KAAK,CAAC;IAClD,GAAG,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;IAE/B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC;IACtC,MAAM,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvB,OAAO,CAAC,GAAG,CAAC,+CAA+C,IAAI,EAAE,CAAC,CAAC;IACnE,OAAO,CAAC,GAAG,CAAC,gBAAgB,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,aAAa,EAAE,CAAC,CAAC;AACvE,CAAC;AACD,SAAS,EAAE,CAAC"}
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAAA,uCAA2C;AAC3C,2CAAgD;AAChD,6CAAyC;AAEzC,KAAK,UAAU,SAAS;IACtB,MAAM,GAAG,GAAG,MAAM,kBAAW,CAAC,MAAM,CAAC,sBAAS,CAAC,CAAC;IAGhD,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW;QAC5C,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QACjE,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC;IAE9B,GAAG,CAAC,UAAU,CAAC;QACb,MAAM,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE;YAE3B,IAAI,CAAC,MAAM,IAAI,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC/C,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACvB,CAAC;iBAAM,CAAC;gBACN,QAAQ,CAAC,IAAI,KAAK,CAAC,UAAU,MAAM,sBAAsB,CAAC,CAAC,CAAC;YAC9D,CAAC;QACH,CAAC;QACD,WAAW,EAAE,IAAI;KAClB,CAAC,CAAC;IAEH,GAAG,CAAC,cAAc,CAAC,IAAI,uBAAc,CAAC;QACpC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,oBAAoB,KAAK,MAAM;QACtD,oBAAoB,EAAE,OAAO,CAAC,GAAG,CAAC,iCAAiC,KAAK,MAAM;QAC9E,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,oBAAoB,KAAK,MAAM;KACvD,CAAC,CAAC,CAAC;IAEJ,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,KAAK,CAAC;IAClD,GAAG,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;IAE/B,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC;IAC9C,MAAM,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvB,OAAO,CAAC,GAAG,CAAC,+CAA+C,IAAI,EAAE,CAAC,CAAC;IACnE,OAAO,CAAC,GAAG,CAAC,gBAAgB,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,aAAa,EAAE,CAAC,CAAC;AACvE,CAAC;AAED,SAAS,EAAE,CAAC"}

View File

@@ -17,7 +17,7 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -29,12 +29,12 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
documents: {
name: string;
@@ -55,7 +55,7 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -76,7 +76,7 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -88,12 +88,12 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
documents: {
name: string;
@@ -114,7 +114,7 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -135,7 +135,7 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -147,12 +147,12 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
documents: {
name: string;
@@ -173,7 +173,7 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -194,7 +194,7 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -206,12 +206,12 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
documents: {
name: string;
@@ -232,7 +232,7 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -253,7 +253,7 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -265,12 +265,12 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
documents: {
name: string;
@@ -291,7 +291,7 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -312,7 +312,7 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -324,12 +324,12 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
documents: {
name: string;
@@ -350,7 +350,7 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -363,7 +363,7 @@ export declare class PiecesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;

View File

@@ -17,7 +17,7 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -29,12 +29,12 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
documents: {
name: string;
@@ -55,7 +55,7 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -76,7 +76,7 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -88,12 +88,12 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
documents: {
name: string;
@@ -114,7 +114,7 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -135,7 +135,7 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -147,12 +147,12 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
documents: {
name: string;
@@ -173,7 +173,7 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -194,7 +194,7 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -206,12 +206,12 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
documents: {
name: string;
@@ -232,7 +232,7 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -253,7 +253,7 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -265,12 +265,12 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
documents: {
name: string;
@@ -291,7 +291,7 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -312,7 +312,7 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -324,12 +324,12 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
documents: {
name: string;
@@ -350,7 +350,7 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -363,7 +363,7 @@ export declare class PiecesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;

View File

@@ -3,7 +3,7 @@ export declare class CreateComposantDto {
machineId?: string;
parentComposantId?: string;
reference?: string;
prestataire?: string;
constructeur?: string;
prix?: number | null;
emplacement?: string;
typeComposantId?: string;
@@ -11,7 +11,7 @@ export declare class CreateComposantDto {
export declare class UpdateComposantDto {
name?: string;
reference?: string;
prestataire?: string;
constructeur?: string;
prix?: number | null;
emplacement?: string;
typeComposantId?: string;

View File

@@ -17,7 +17,7 @@ class CreateComposantDto {
machineId;
parentComposantId;
reference;
prestataire;
constructeur;
prix;
emplacement;
typeComposantId;
@@ -46,7 +46,7 @@ __decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
__metadata("design:type", String)
], CreateComposantDto.prototype, "prestataire", void 0);
], CreateComposantDto.prototype, "constructeur", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_transformer_1.Transform)(({ value }) => value === '' ? null : value),
@@ -66,7 +66,7 @@ __decorate([
class UpdateComposantDto {
name;
reference;
prestataire;
constructeur;
prix;
emplacement;
typeComposantId;
@@ -86,7 +86,7 @@ __decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
__metadata("design:type", String)
], UpdateComposantDto.prototype, "prestataire", void 0);
], UpdateComposantDto.prototype, "constructeur", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_transformer_1.Transform)(({ value }) => value === '' ? null : value),

View File

@@ -1 +1 @@
{"version":3,"file":"composant.dto.js","sourceRoot":"","sources":["../../../src/shared/dto/composant.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AACjE,yDAA8C;AAE9C,MAAa,kBAAkB;IAE7B,IAAI,CAAS;IAIb,SAAS,CAAU;IAInB,iBAAiB,CAAU;IAI3B,SAAS,CAAU;IAInB,WAAW,CAAU;IAKrB,IAAI,CAAiB;IAIrB,WAAW,CAAU;IAIrB,eAAe,CAAU;CAC1B;AAhCD,gDAgCC;AA9BC;IADC,IAAA,0BAAQ,GAAE;;gDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACgB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACU;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IACrD,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;;gDACpC;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACc;AAG3B,MAAa,kBAAkB;IAG7B,IAAI,CAAU;IAId,SAAS,CAAU;IAInB,WAAW,CAAU;IAKrB,IAAI,CAAiB;IAIrB,WAAW,CAAU;IAIrB,eAAe,CAAU;CAC1B;AAzBD,gDAyBC;AAtBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACU;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IACrD,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;;gDACpC;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACc"}
{"version":3,"file":"composant.dto.js","sourceRoot":"","sources":["../../../src/shared/dto/composant.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AACjE,yDAA8C;AAE9C,MAAa,kBAAkB;IAE7B,IAAI,CAAS;IAIb,SAAS,CAAU;IAInB,iBAAiB,CAAU;IAI3B,SAAS,CAAU;IAInB,YAAY,CAAU;IAKtB,IAAI,CAAiB;IAIrB,WAAW,CAAU;IAIrB,eAAe,CAAU;CAC1B;AAhCD,gDAgCC;AA9BC;IADC,IAAA,0BAAQ,GAAE;;gDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACgB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACW;AAKtB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IACrD,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;;gDACpC;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACc;AAG3B,MAAa,kBAAkB;IAG7B,IAAI,CAAU;IAId,SAAS,CAAU;IAInB,YAAY,CAAU;IAKtB,IAAI,CAAiB;IAIrB,WAAW,CAAU;IAIrB,eAAe,CAAU;CAC1B;AAzBD,gDAyBC;AAtBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACW;AAKtB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IACrD,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;;gDACpC;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACc"}

View File

@@ -2,7 +2,7 @@ export declare class CreateMachineDto {
name: string;
siteId: string;
reference?: string;
prestataire?: string;
constructeur?: string;
prix?: string;
emplacement?: string;
typeMachineId?: string;
@@ -10,7 +10,7 @@ export declare class CreateMachineDto {
export declare class UpdateMachineDto {
name?: string;
reference?: string;
prestataire?: string;
constructeur?: string;
prix?: string;
emplacement?: string;
typeMachineId?: string;

View File

@@ -15,7 +15,7 @@ class CreateMachineDto {
name;
siteId;
reference;
prestataire;
constructeur;
prix;
emplacement;
typeMachineId;
@@ -38,7 +38,7 @@ __decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
__metadata("design:type", String)
], CreateMachineDto.prototype, "prestataire", void 0);
], CreateMachineDto.prototype, "constructeur", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsDecimal)(),
@@ -57,7 +57,7 @@ __decorate([
class UpdateMachineDto {
name;
reference;
prestataire;
constructeur;
prix;
emplacement;
typeMachineId;
@@ -77,7 +77,7 @@ __decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
__metadata("design:type", String)
], UpdateMachineDto.prototype, "prestataire", void 0);
], UpdateMachineDto.prototype, "constructeur", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsDecimal)(),

View File

@@ -1 +1 @@
{"version":3,"file":"machine.dto.js","sourceRoot":"","sources":["../../../src/shared/dto/machine.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4E;AAE5E,MAAa,gBAAgB;IAE3B,IAAI,CAAS;IAGb,MAAM,CAAS;IAIf,SAAS,CAAU;IAInB,WAAW,CAAU;IAIrB,IAAI,CAAU;IAId,WAAW,CAAU;IAIrB,aAAa,CAAU;CACxB;AA1BD,4CA0BC;AAxBC;IADC,IAAA,0BAAQ,GAAE;;8CACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;gDACI;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;8CACE;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACY;AAGzB,MAAa,gBAAgB;IAG3B,IAAI,CAAU;IAId,SAAS,CAAU;IAInB,WAAW,CAAU;IAIrB,IAAI,CAAU;IAId,WAAW,CAAU;IAIrB,aAAa,CAAU;CACxB;AAxBD,4CAwBC;AArBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;8CACE;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACY"}
{"version":3,"file":"machine.dto.js","sourceRoot":"","sources":["../../../src/shared/dto/machine.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4E;AAE5E,MAAa,gBAAgB;IAE3B,IAAI,CAAS;IAGb,MAAM,CAAS;IAIf,SAAS,CAAU;IAInB,YAAY,CAAU;IAItB,IAAI,CAAU;IAId,WAAW,CAAU;IAIrB,aAAa,CAAU;CACxB;AA1BD,4CA0BC;AAxBC;IADC,IAAA,0BAAQ,GAAE;;8CACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;gDACI;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACW;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;8CACE;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACY;AAGzB,MAAa,gBAAgB;IAG3B,IAAI,CAAU;IAId,SAAS,CAAU;IAInB,YAAY,CAAU;IAItB,IAAI,CAAU;IAId,WAAW,CAAU;IAIrB,aAAa,CAAU;CACxB;AAxBD,4CAwBC;AArBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACW;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;8CACE;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACY"}

View File

@@ -3,7 +3,7 @@ export declare class CreatePieceDto {
machineId?: string;
composantId?: string;
reference?: string;
prestataire?: string;
constructeur?: string;
prix?: number | null;
emplacement?: string;
typePieceId?: string;
@@ -11,7 +11,7 @@ export declare class CreatePieceDto {
export declare class UpdatePieceDto {
name?: string;
reference?: string;
prestataire?: string;
constructeur?: string;
prix?: number | null;
emplacement?: string;
typePieceId?: string;

View File

@@ -17,7 +17,7 @@ class CreatePieceDto {
machineId;
composantId;
reference;
prestataire;
constructeur;
prix;
emplacement;
typePieceId;
@@ -46,7 +46,7 @@ __decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
__metadata("design:type", String)
], CreatePieceDto.prototype, "prestataire", void 0);
], CreatePieceDto.prototype, "constructeur", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_transformer_1.Transform)(({ value }) => value === '' ? null : value),
@@ -66,7 +66,7 @@ __decorate([
class UpdatePieceDto {
name;
reference;
prestataire;
constructeur;
prix;
emplacement;
typePieceId;
@@ -86,7 +86,7 @@ __decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
__metadata("design:type", String)
], UpdatePieceDto.prototype, "prestataire", void 0);
], UpdatePieceDto.prototype, "constructeur", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_transformer_1.Transform)(({ value }) => value === '' ? null : value),

View File

@@ -1 +1 @@
{"version":3,"file":"piece.dto.js","sourceRoot":"","sources":["../../../src/shared/dto/piece.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AACjE,yDAA8C;AAE9C,MAAa,cAAc;IAEzB,IAAI,CAAS;IAIb,SAAS,CAAU;IAInB,WAAW,CAAU;IAIrB,SAAS,CAAU;IAInB,WAAW,CAAU;IAKrB,IAAI,CAAiB;IAIrB,WAAW,CAAU;IAIrB,WAAW,CAAU;CACtB;AAhCD,wCAgCC;AA9BC;IADC,IAAA,0BAAQ,GAAE;;4CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACU;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IACrD,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;;4CACpC;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACU;AAGvB,MAAa,cAAc;IAGzB,IAAI,CAAU;IAId,SAAS,CAAU;IAInB,WAAW,CAAU;IAKrB,IAAI,CAAiB;IAIrB,WAAW,CAAU;IAIrB,WAAW,CAAU;CACtB;AAzBD,wCAyBC;AAtBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACU;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IACrD,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;;4CACpC;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACU"}
{"version":3,"file":"piece.dto.js","sourceRoot":"","sources":["../../../src/shared/dto/piece.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AACjE,yDAA8C;AAE9C,MAAa,cAAc;IAEzB,IAAI,CAAS;IAIb,SAAS,CAAU;IAInB,WAAW,CAAU;IAIrB,SAAS,CAAU;IAInB,YAAY,CAAU;IAKtB,IAAI,CAAiB;IAIrB,WAAW,CAAU;IAIrB,WAAW,CAAU;CACtB;AAhCD,wCAgCC;AA9BC;IADC,IAAA,0BAAQ,GAAE;;4CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACW;AAKtB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IACrD,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;;4CACpC;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACU;AAGvB,MAAa,cAAc;IAGzB,IAAI,CAAU;IAId,SAAS,CAAU;IAInB,YAAY,CAAU;IAKtB,IAAI,CAAiB;IAIrB,WAAW,CAAU;IAIrB,WAAW,CAAU;CACtB;AAzBD,wCAyBC;AAtBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACW;AAKtB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IACrD,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;;4CACpC;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACU"}

View File

@@ -31,7 +31,7 @@ export declare class SitesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -52,7 +52,7 @@ export declare class SitesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -65,12 +65,12 @@ export declare class SitesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}[];
} & {
name: string;
@@ -78,12 +78,12 @@ export declare class SitesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
} & {
name: string;
@@ -91,7 +91,7 @@ export declare class SitesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -125,7 +125,7 @@ export declare class SitesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -146,7 +146,7 @@ export declare class SitesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -159,12 +159,12 @@ export declare class SitesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}[];
} & {
name: string;
@@ -172,12 +172,12 @@ export declare class SitesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
} & {
name: string;
@@ -185,7 +185,7 @@ export declare class SitesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;

View File

@@ -31,7 +31,7 @@ export declare class SitesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -52,7 +52,7 @@ export declare class SitesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -65,12 +65,12 @@ export declare class SitesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}[];
} & {
name: string;
@@ -78,12 +78,12 @@ export declare class SitesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
} & {
name: string;
@@ -91,7 +91,7 @@ export declare class SitesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -125,7 +125,7 @@ export declare class SitesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -146,7 +146,7 @@ export declare class SitesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -159,12 +159,12 @@ export declare class SitesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}[];
} & {
name: string;
@@ -172,12 +172,12 @@ export declare class SitesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
} & {
name: string;
@@ -185,7 +185,7 @@ export declare class SitesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;

File diff suppressed because one or more lines are too long

View File

@@ -10,12 +10,12 @@ export declare class TypesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -37,7 +37,7 @@ export declare class TypesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -49,12 +49,12 @@ export declare class TypesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -76,7 +76,7 @@ export declare class TypesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -88,12 +88,12 @@ export declare class TypesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -115,12 +115,12 @@ export declare class TypesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -155,12 +155,12 @@ export declare class TypesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -176,12 +176,12 @@ export declare class TypesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}[];
customFields: {
name: string;
@@ -189,12 +189,12 @@ export declare class TypesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -210,12 +210,12 @@ export declare class TypesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}[];
customFields: {
name: string;
@@ -223,12 +223,12 @@ export declare class TypesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -244,12 +244,12 @@ export declare class TypesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -272,12 +272,12 @@ export declare class TypesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -293,7 +293,7 @@ export declare class TypesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -306,12 +306,12 @@ export declare class TypesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -327,7 +327,7 @@ export declare class TypesController {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -340,12 +340,12 @@ export declare class TypesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -361,12 +361,12 @@ export declare class TypesController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;

View File

@@ -10,12 +10,12 @@ export declare class TypesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -37,7 +37,7 @@ export declare class TypesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -49,12 +49,12 @@ export declare class TypesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -76,7 +76,7 @@ export declare class TypesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
siteId: string;
@@ -88,12 +88,12 @@ export declare class TypesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -115,12 +115,12 @@ export declare class TypesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -155,12 +155,12 @@ export declare class TypesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -176,12 +176,12 @@ export declare class TypesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}[];
customFields: {
name: string;
@@ -189,12 +189,12 @@ export declare class TypesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -210,12 +210,12 @@ export declare class TypesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}[];
customFields: {
name: string;
@@ -223,12 +223,12 @@ export declare class TypesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -244,12 +244,12 @@ export declare class TypesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -272,12 +272,12 @@ export declare class TypesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -293,7 +293,7 @@ export declare class TypesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -306,12 +306,12 @@ export declare class TypesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -327,7 +327,7 @@ export declare class TypesService {
createdAt: Date;
updatedAt: Date;
reference: string | null;
prestataire: string | null;
constructeur: string | null;
prix: import("@prisma/client/runtime/library").Decimal | null;
emplacement: string | null;
machineId: string | null;
@@ -340,12 +340,12 @@ export declare class TypesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;
@@ -361,12 +361,12 @@ export declare class TypesService {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
}[];
} & {
name: string;

View File

@@ -0,0 +1,3 @@
ALTER TABLE "machines" RENAME COLUMN "prestataire" TO "constructeur";
ALTER TABLE "composants" RENAME COLUMN "prestataire" TO "constructeur";
ALTER TABLE "pieces" RENAME COLUMN "prestataire" TO "constructeur";

View File

@@ -76,7 +76,7 @@ model Machine {
id String @id @default(cuid())
name String
reference String?
prestataire String?
constructeur String?
prix Decimal? @db.Decimal(10, 2)
emplacement String?
createdAt DateTime @default(now())
@@ -101,7 +101,7 @@ model Composant {
id String @id @default(cuid())
name String
reference String?
prestataire String?
constructeur String?
prix Decimal? @db.Decimal(10, 2)
emplacement String?
createdAt DateTime @default(now())
@@ -129,7 +129,7 @@ model Piece {
id String @id @default(cuid())
name String
reference String?
prestataire String?
constructeur String?
prix Decimal? @db.Decimal(10, 2)
emplacement String?
createdAt DateTime @default(now())

View File

@@ -133,7 +133,7 @@ export class MachinesService {
data: {
name: component.name,
reference: component.reference || '',
prestataire: component.prestataire || '',
constructeur: component.constructeur || '',
emplacement: component.emplacement || '',
prix: component.prix || null,
machineId,
@@ -202,7 +202,7 @@ export class MachinesService {
data: {
name: piece.name,
reference: piece.reference || '',
prestataire: piece.prestataire || '',
constructeur: piece.constructeur || '',
emplacement: piece.emplacement || '',
prix: piece.prix || null,
composantId: createdComposant.id,

View File

@@ -19,7 +19,7 @@ export class CreateComposantDto {
@IsOptional()
@IsString()
prestataire?: string;
constructeur?: string;
@IsOptional()
@Transform(({ value }) => value === '' ? null : value)
@@ -46,7 +46,7 @@ export class UpdateComposantDto {
@IsOptional()
@IsString()
prestataire?: string;
constructeur?: string;
@IsOptional()
@Transform(({ value }) => value === '' ? null : value)
@@ -60,4 +60,4 @@ export class UpdateComposantDto {
@IsOptional()
@IsString()
typeComposantId?: string;
}
}

View File

@@ -13,7 +13,7 @@ export class CreateMachineDto {
@IsOptional()
@IsString()
prestataire?: string;
constructeur?: string;
@IsOptional()
@IsDecimal()
@@ -39,7 +39,7 @@ export class UpdateMachineDto {
@IsOptional()
@IsString()
prestataire?: string;
constructeur?: string;
@IsOptional()
@IsDecimal()
@@ -52,4 +52,4 @@ export class UpdateMachineDto {
@IsOptional()
@IsString()
typeMachineId?: string;
}
}

View File

@@ -19,7 +19,7 @@ export class CreatePieceDto {
@IsOptional()
@IsString()
prestataire?: string;
constructeur?: string;
@IsOptional()
@Transform(({ value }) => value === '' ? null : value)
@@ -46,7 +46,7 @@ export class UpdatePieceDto {
@IsOptional()
@IsString()
prestataire?: string;
constructeur?: string;
@IsOptional()
@Transform(({ value }) => value === '' ? null : value)
@@ -60,4 +60,4 @@ export class UpdatePieceDto {
@IsOptional()
@IsString()
typePieceId?: string;
}
}

View File

@@ -47,7 +47,7 @@ if [ -n "$SITE_ID" ]; then
\"name\": \"Presse HP-2000\",
\"siteId\": \"$SITE_ID\",
\"reference\": \"HP-2000-001\",
\"prestataire\": \"IndustriePress\",
\"constructeur\": \"IndustriePress\",
\"prix\": \"150000.00\",
\"emplacement\": \"Zone A - Secteur 3\"
}")
@@ -68,4 +68,4 @@ echo ""
echo "🎯 Pour tester manuellement:"
echo "curl -X GET $BASE_URL/sites"
echo "curl -X GET $BASE_URL/machines"
echo "curl -X GET $BASE_URL/types/machines"
echo "curl -X GET $BASE_URL/types/machines"

View File

@@ -109,7 +109,7 @@ MACHINE_RESPONSE=$(curl -s -X POST $BASE_URL/machines \
\"name\": \"Convoyeur CB-500\",
\"siteId\": \"$SITE_ID\",
\"reference\": \"CB-500-001\",
\"prestataire\": \"TransportTech\",
\"constructeur\": \"TransportTech\",
\"prix\": \"75000.00\",
\"emplacement\": \"Zone B - Secteur 1\",
\"typeMachineId\": \"$TYPE_MACHINE_ID\"
@@ -133,7 +133,7 @@ COMPOSANT_RESPONSE=$(curl -s -X POST $BASE_URL/composants \
\"name\": \"Moteur Principal\",
\"machineId\": \"$MACHINE_ID\",
\"reference\": \"MP-001\",
\"prestataire\": \"MotorTech\",
\"constructeur\": \"MotorTech\",
\"prix\": \"15000.00\",
\"emplacement\": \"Zone moteur\",
\"typeComposantId\": \"$TYPE_COMPOSANT_ID\"
@@ -155,7 +155,7 @@ SOUS_COMPOSANT_RESPONSE=$(curl -s -X POST $BASE_URL/composants \
\"machineId\": \"$MACHINE_ID\",
\"parentComposantId\": \"$COMPOSANT_ID\",
\"reference\": \"RV-001\",
\"prestataire\": \"GearTech\",
\"constructeur\": \"GearTech\",
\"prix\": \"8000.00\",
\"emplacement\": \"Zone réducteur\",
\"typeComposantId\": \"$TYPE_COMPOSANT_ID\"
@@ -187,7 +187,7 @@ PIECE_MACHINE_RESPONSE=$(curl -s -X POST $BASE_URL/pieces \
\"name\": \"Bande Transporteuse\",
\"machineId\": \"$MACHINE_ID\",
\"reference\": \"BT-001\",
\"prestataire\": \"BeltTech\",
\"constructeur\": \"BeltTech\",
\"prix\": \"5000.00\",
\"emplacement\": \"Zone bande\",
\"typePieceId\": \"$TYPE_PIECE_ID\"
@@ -208,7 +208,7 @@ PIECE_COMPOSANT_RESPONSE=$(curl -s -X POST $BASE_URL/pieces \
\"name\": \"Roulement Moteur\",
\"composantId\": \"$COMPOSANT_ID\",
\"reference\": \"RM-001\",
\"prestataire\": \"BearingTech\",
\"constructeur\": \"BearingTech\",
\"prix\": \"500.00\",
\"emplacement\": \"Zone roulement\",
\"typePieceId\": \"$TYPE_PIECE_ID\"