feat(site): add document support
This commit is contained in:
165
dist/documents/documents.controller.d.ts
vendored
165
dist/documents/documents.controller.d.ts
vendored
@@ -4,6 +4,17 @@ export declare class DocumentsController {
|
||||
private readonly documentsService;
|
||||
constructor(documentsService: DocumentsService);
|
||||
create(createDocumentDto: CreateDocumentDto): Promise<{
|
||||
site: {
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
} | null;
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
@@ -47,15 +58,27 @@ export declare class DocumentsController {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
}>;
|
||||
findAll(): Promise<({
|
||||
site: {
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
} | null;
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
@@ -99,15 +122,27 @@ export declare class DocumentsController {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
})[]>;
|
||||
findByMachine(machineId: string): Promise<({
|
||||
site: {
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
} | null;
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
@@ -151,15 +186,27 @@ export declare class DocumentsController {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
})[]>;
|
||||
findByComposant(composantId: string): Promise<({
|
||||
site: {
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
} | null;
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
@@ -203,15 +250,27 @@ export declare class DocumentsController {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
})[]>;
|
||||
findByPiece(pieceId: string): Promise<({
|
||||
site: {
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
} | null;
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
@@ -255,15 +314,91 @@ export declare class DocumentsController {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
})[]>;
|
||||
findBySite(siteId: string): Promise<({
|
||||
site: {
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
} | null;
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
constructeur: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
} | null;
|
||||
composant: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
constructeur: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
} | null;
|
||||
piece: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
constructeur: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
typePieceId: string | null;
|
||||
} | null;
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
})[]>;
|
||||
findOne(id: string): Promise<({
|
||||
site: {
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
} | null;
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
@@ -307,15 +442,27 @@ export declare class DocumentsController {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
}) | null>;
|
||||
update(id: string, updateDocumentDto: UpdateDocumentDto): Promise<{
|
||||
site: {
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
} | null;
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
@@ -359,25 +506,27 @@ export declare class DocumentsController {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
}>;
|
||||
remove(id: string): Promise<{
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
}>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user