feat(site): add document support
This commit is contained in:
217
dist/machines/machines.controller.d.ts
vendored
217
dist/machines/machines.controller.d.ts
vendored
@@ -6,7 +6,11 @@ export declare class MachinesController {
|
||||
create(createMachineDto: CreateMachineDto): Promise<({
|
||||
site: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
@@ -27,10 +31,10 @@ export declare class MachinesController {
|
||||
}[];
|
||||
} & {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
category: string | null;
|
||||
maintenanceFrequency: string | null;
|
||||
components: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
@@ -38,6 +42,20 @@ export declare class MachinesController {
|
||||
machinePieces: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
specifications: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
}) | null;
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
}[];
|
||||
pieces: ({
|
||||
customFieldValues: ({
|
||||
customField: {
|
||||
@@ -59,9 +77,9 @@ export declare class MachinesController {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -79,10 +97,10 @@ export declare class MachinesController {
|
||||
composants: ({
|
||||
typeComposant: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
} | null;
|
||||
pieces: ({
|
||||
customFieldValues: ({
|
||||
@@ -105,9 +123,9 @@ export declare class MachinesController {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -148,19 +166,6 @@ export declare class MachinesController {
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
})[];
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
}[];
|
||||
customFieldValues: ({
|
||||
customField: {
|
||||
name: string;
|
||||
@@ -181,9 +186,9 @@ export declare class MachinesController {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -200,7 +205,11 @@ export declare class MachinesController {
|
||||
findAll(): Promise<({
|
||||
site: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
@@ -221,10 +230,10 @@ export declare class MachinesController {
|
||||
}[];
|
||||
} & {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
category: string | null;
|
||||
maintenanceFrequency: string | null;
|
||||
components: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
@@ -232,6 +241,20 @@ export declare class MachinesController {
|
||||
machinePieces: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
specifications: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
}) | null;
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
}[];
|
||||
pieces: ({
|
||||
customFieldValues: ({
|
||||
customField: {
|
||||
@@ -253,9 +276,9 @@ export declare class MachinesController {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -273,10 +296,10 @@ export declare class MachinesController {
|
||||
composants: ({
|
||||
typeComposant: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
} | null;
|
||||
pieces: ({
|
||||
customFieldValues: ({
|
||||
@@ -299,9 +322,9 @@ export declare class MachinesController {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -349,9 +372,9 @@ export declare class MachinesController {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -366,19 +389,6 @@ export declare class MachinesController {
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
})[];
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
}[];
|
||||
customFieldValues: ({
|
||||
customField: {
|
||||
name: string;
|
||||
@@ -399,9 +409,9 @@ export declare class MachinesController {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -418,7 +428,11 @@ export declare class MachinesController {
|
||||
findOne(id: string): Promise<({
|
||||
site: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
@@ -439,10 +453,10 @@ export declare class MachinesController {
|
||||
}[];
|
||||
} & {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
category: string | null;
|
||||
maintenanceFrequency: string | null;
|
||||
components: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
@@ -450,6 +464,20 @@ export declare class MachinesController {
|
||||
machinePieces: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
specifications: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
}) | null;
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
}[];
|
||||
pieces: ({
|
||||
customFieldValues: ({
|
||||
customField: {
|
||||
@@ -471,9 +499,9 @@ export declare class MachinesController {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -491,10 +519,10 @@ export declare class MachinesController {
|
||||
composants: ({
|
||||
typeComposant: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
} | null;
|
||||
pieces: ({
|
||||
customFieldValues: ({
|
||||
@@ -517,9 +545,9 @@ export declare class MachinesController {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -567,9 +595,9 @@ export declare class MachinesController {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -584,19 +612,6 @@ export declare class MachinesController {
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
})[];
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
}[];
|
||||
customFieldValues: ({
|
||||
customField: {
|
||||
name: string;
|
||||
@@ -617,9 +632,9 @@ export declare class MachinesController {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -636,7 +651,11 @@ export declare class MachinesController {
|
||||
update(id: string, updateMachineDto: UpdateMachineDto): Promise<{
|
||||
site: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
@@ -657,10 +676,10 @@ export declare class MachinesController {
|
||||
}[];
|
||||
} & {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
category: string | null;
|
||||
maintenanceFrequency: string | null;
|
||||
components: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
@@ -668,6 +687,20 @@ export declare class MachinesController {
|
||||
machinePieces: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
specifications: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
}) | null;
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
}[];
|
||||
pieces: {
|
||||
name: string;
|
||||
id: string;
|
||||
@@ -684,10 +717,10 @@ export declare class MachinesController {
|
||||
composants: ({
|
||||
typeComposant: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
} | null;
|
||||
pieces: {
|
||||
name: string;
|
||||
@@ -728,19 +761,6 @@ export declare class MachinesController {
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
})[];
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
}[];
|
||||
customFieldValues: ({
|
||||
customField: {
|
||||
name: string;
|
||||
@@ -761,9 +781,9 @@ export declare class MachinesController {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -792,7 +812,11 @@ export declare class MachinesController {
|
||||
addMissingCustomFields(id: string): Promise<({
|
||||
site: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
@@ -813,10 +837,10 @@ export declare class MachinesController {
|
||||
}[];
|
||||
} & {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
category: string | null;
|
||||
maintenanceFrequency: string | null;
|
||||
components: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
@@ -824,6 +848,20 @@ export declare class MachinesController {
|
||||
machinePieces: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
specifications: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
}) | null;
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
}[];
|
||||
pieces: ({
|
||||
customFieldValues: ({
|
||||
customField: {
|
||||
@@ -845,9 +883,9 @@ export declare class MachinesController {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -865,10 +903,10 @@ export declare class MachinesController {
|
||||
composants: ({
|
||||
typeComposant: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
} | null;
|
||||
pieces: ({
|
||||
customFieldValues: ({
|
||||
@@ -891,9 +929,9 @@ export declare class MachinesController {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -941,9 +979,9 @@ export declare class MachinesController {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -958,19 +996,6 @@ export declare class MachinesController {
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
})[];
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
}[];
|
||||
customFieldValues: ({
|
||||
customField: {
|
||||
name: string;
|
||||
@@ -991,9 +1016,9 @@ export declare class MachinesController {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
|
||||
217
dist/machines/machines.service.d.ts
vendored
217
dist/machines/machines.service.d.ts
vendored
@@ -6,7 +6,11 @@ export declare class MachinesService {
|
||||
create(createMachineDto: CreateMachineDto): Promise<({
|
||||
site: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
@@ -27,10 +31,10 @@ export declare class MachinesService {
|
||||
}[];
|
||||
} & {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
category: string | null;
|
||||
maintenanceFrequency: string | null;
|
||||
components: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
@@ -38,6 +42,20 @@ export declare class MachinesService {
|
||||
machinePieces: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
specifications: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
}) | null;
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
}[];
|
||||
pieces: ({
|
||||
customFieldValues: ({
|
||||
customField: {
|
||||
@@ -59,9 +77,9 @@ export declare class MachinesService {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -79,10 +97,10 @@ export declare class MachinesService {
|
||||
composants: ({
|
||||
typeComposant: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
} | null;
|
||||
pieces: ({
|
||||
customFieldValues: ({
|
||||
@@ -105,9 +123,9 @@ export declare class MachinesService {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -148,19 +166,6 @@ export declare class MachinesService {
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
})[];
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
}[];
|
||||
customFieldValues: ({
|
||||
customField: {
|
||||
name: string;
|
||||
@@ -181,9 +186,9 @@ export declare class MachinesService {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -203,7 +208,11 @@ export declare class MachinesService {
|
||||
findAll(): Promise<({
|
||||
site: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
@@ -224,10 +233,10 @@ export declare class MachinesService {
|
||||
}[];
|
||||
} & {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
category: string | null;
|
||||
maintenanceFrequency: string | null;
|
||||
components: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
@@ -235,6 +244,20 @@ export declare class MachinesService {
|
||||
machinePieces: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
specifications: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
}) | null;
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
}[];
|
||||
pieces: ({
|
||||
customFieldValues: ({
|
||||
customField: {
|
||||
@@ -256,9 +279,9 @@ export declare class MachinesService {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -276,10 +299,10 @@ export declare class MachinesService {
|
||||
composants: ({
|
||||
typeComposant: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
} | null;
|
||||
pieces: ({
|
||||
customFieldValues: ({
|
||||
@@ -302,9 +325,9 @@ export declare class MachinesService {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -352,9 +375,9 @@ export declare class MachinesService {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -369,19 +392,6 @@ export declare class MachinesService {
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
})[];
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
}[];
|
||||
customFieldValues: ({
|
||||
customField: {
|
||||
name: string;
|
||||
@@ -402,9 +412,9 @@ export declare class MachinesService {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -421,7 +431,11 @@ export declare class MachinesService {
|
||||
findOne(id: string): Promise<({
|
||||
site: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
@@ -442,10 +456,10 @@ export declare class MachinesService {
|
||||
}[];
|
||||
} & {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
category: string | null;
|
||||
maintenanceFrequency: string | null;
|
||||
components: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
@@ -453,6 +467,20 @@ export declare class MachinesService {
|
||||
machinePieces: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
specifications: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
}) | null;
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
}[];
|
||||
pieces: ({
|
||||
customFieldValues: ({
|
||||
customField: {
|
||||
@@ -474,9 +502,9 @@ export declare class MachinesService {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -494,10 +522,10 @@ export declare class MachinesService {
|
||||
composants: ({
|
||||
typeComposant: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
} | null;
|
||||
pieces: ({
|
||||
customFieldValues: ({
|
||||
@@ -520,9 +548,9 @@ export declare class MachinesService {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -570,9 +598,9 @@ export declare class MachinesService {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -587,19 +615,6 @@ export declare class MachinesService {
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
})[];
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
}[];
|
||||
customFieldValues: ({
|
||||
customField: {
|
||||
name: string;
|
||||
@@ -620,9 +635,9 @@ export declare class MachinesService {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -639,7 +654,11 @@ export declare class MachinesService {
|
||||
update(id: string, updateMachineDto: UpdateMachineDto): Promise<{
|
||||
site: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
@@ -660,10 +679,10 @@ export declare class MachinesService {
|
||||
}[];
|
||||
} & {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
category: string | null;
|
||||
maintenanceFrequency: string | null;
|
||||
components: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
@@ -671,6 +690,20 @@ export declare class MachinesService {
|
||||
machinePieces: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
specifications: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
}) | null;
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
}[];
|
||||
pieces: {
|
||||
name: string;
|
||||
id: string;
|
||||
@@ -687,10 +720,10 @@ export declare class MachinesService {
|
||||
composants: ({
|
||||
typeComposant: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
} | null;
|
||||
pieces: {
|
||||
name: string;
|
||||
@@ -731,19 +764,6 @@ export declare class MachinesService {
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
})[];
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
}[];
|
||||
customFieldValues: ({
|
||||
customField: {
|
||||
name: string;
|
||||
@@ -764,9 +784,9 @@ export declare class MachinesService {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -795,7 +815,11 @@ export declare class MachinesService {
|
||||
addMissingCustomFields(machineId: string): Promise<({
|
||||
site: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
@@ -816,10 +840,10 @@ export declare class MachinesService {
|
||||
}[];
|
||||
} & {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
category: string | null;
|
||||
maintenanceFrequency: string | null;
|
||||
components: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
@@ -827,6 +851,20 @@ export declare class MachinesService {
|
||||
machinePieces: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
specifications: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
}) | null;
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
}[];
|
||||
pieces: ({
|
||||
customFieldValues: ({
|
||||
customField: {
|
||||
@@ -848,9 +886,9 @@ export declare class MachinesService {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -868,10 +906,10 @@ export declare class MachinesService {
|
||||
composants: ({
|
||||
typeComposant: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
} | null;
|
||||
pieces: ({
|
||||
customFieldValues: ({
|
||||
@@ -894,9 +932,9 @@ export declare class MachinesService {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -944,9 +982,9 @@ export declare class MachinesService {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
@@ -961,19 +999,6 @@ export declare class MachinesService {
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
})[];
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
}[];
|
||||
customFieldValues: ({
|
||||
customField: {
|
||||
name: string;
|
||||
@@ -994,9 +1019,9 @@ export declare class MachinesService {
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
value: string;
|
||||
customFieldId: string;
|
||||
pieceId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
|
||||
Reference in New Issue
Block a user