feat(site): add document support
This commit is contained in:
74
dist/sites/sites.service.d.ts
vendored
74
dist/sites/sites.service.d.ts
vendored
@@ -4,21 +4,21 @@ export declare class SitesService {
|
||||
private prisma;
|
||||
constructor(prisma: PrismaService);
|
||||
create(createSiteDto: CreateSiteDto): Promise<{
|
||||
id: string;
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
findAll(): Promise<({
|
||||
machines: ({
|
||||
typeMachine: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
@@ -30,8 +30,8 @@ export declare class SitesService {
|
||||
specifications: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
} | null;
|
||||
pieces: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -44,15 +44,15 @@ export declare class SitesService {
|
||||
}[];
|
||||
composants: ({
|
||||
typeComposant: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
} | null;
|
||||
pieces: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -64,8 +64,8 @@ export declare class SitesService {
|
||||
typePieceId: string | null;
|
||||
}[];
|
||||
sousComposants: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -73,12 +73,12 @@ export declare class SitesService {
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
}[];
|
||||
} & {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -86,12 +86,12 @@ export declare class SitesService {
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -101,22 +101,36 @@ export declare class SitesService {
|
||||
siteId: string;
|
||||
typeMachineId: string | 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;
|
||||
}[];
|
||||
} & {
|
||||
id: string;
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
})[]>;
|
||||
findOne(id: string): Promise<({
|
||||
machines: ({
|
||||
typeMachine: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
@@ -128,8 +142,8 @@ export declare class SitesService {
|
||||
specifications: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
} | null;
|
||||
pieces: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -142,15 +156,15 @@ export declare class SitesService {
|
||||
}[];
|
||||
composants: ({
|
||||
typeComposant: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
} | null;
|
||||
pieces: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -162,8 +176,8 @@ export declare class SitesService {
|
||||
typePieceId: string | null;
|
||||
}[];
|
||||
sousComposants: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -171,12 +185,12 @@ export declare class SitesService {
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
}[];
|
||||
} & {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -184,12 +198,12 @@ export declare class SitesService {
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -199,36 +213,50 @@ export declare class SitesService {
|
||||
siteId: string;
|
||||
typeMachineId: string | 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;
|
||||
}[];
|
||||
} & {
|
||||
id: string;
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}) | null>;
|
||||
update(id: string, updateSiteDto: UpdateSiteDto): Promise<{
|
||||
id: string;
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
remove(id: string): Promise<{
|
||||
id: string;
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
|
||||
Reference in New Issue
Block a user