feat(site): add contact fields
This commit is contained in:
84
dist/sites/sites.service.d.ts
vendored
84
dist/sites/sites.service.d.ts
vendored
@@ -4,20 +4,24 @@ export declare class SitesService {
|
||||
private prisma;
|
||||
constructor(prisma: PrismaService);
|
||||
create(createSiteDto: CreateSiteDto): Promise<{
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
findAll(): Promise<({
|
||||
machines: ({
|
||||
typeMachine: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
name: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
category: string | null;
|
||||
maintenanceFrequency: string | null;
|
||||
components: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
@@ -26,8 +30,8 @@ export declare class SitesService {
|
||||
specifications: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
} | null;
|
||||
pieces: {
|
||||
name: string;
|
||||
id: string;
|
||||
name: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -40,15 +44,15 @@ export declare class SitesService {
|
||||
}[];
|
||||
composants: ({
|
||||
typeComposant: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
name: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
} | null;
|
||||
pieces: {
|
||||
name: string;
|
||||
id: string;
|
||||
name: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -60,8 +64,8 @@ export declare class SitesService {
|
||||
typePieceId: string | null;
|
||||
}[];
|
||||
sousComposants: {
|
||||
name: string;
|
||||
id: string;
|
||||
name: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -69,12 +73,12 @@ export declare class SitesService {
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
}[];
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
name: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -82,12 +86,12 @@ export declare class SitesService {
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
name: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -98,20 +102,24 @@ export declare class SitesService {
|
||||
typeMachineId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
})[]>;
|
||||
findOne(id: string): Promise<({
|
||||
machines: ({
|
||||
typeMachine: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
name: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
category: string | null;
|
||||
maintenanceFrequency: string | null;
|
||||
components: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
@@ -120,8 +128,8 @@ export declare class SitesService {
|
||||
specifications: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
} | null;
|
||||
pieces: {
|
||||
name: string;
|
||||
id: string;
|
||||
name: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -134,15 +142,15 @@ export declare class SitesService {
|
||||
}[];
|
||||
composants: ({
|
||||
typeComposant: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
name: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
} | null;
|
||||
pieces: {
|
||||
name: string;
|
||||
id: string;
|
||||
name: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -154,8 +162,8 @@ export declare class SitesService {
|
||||
typePieceId: string | null;
|
||||
}[];
|
||||
sousComposants: {
|
||||
name: string;
|
||||
id: string;
|
||||
name: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -163,12 +171,12 @@ export declare class SitesService {
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
}[];
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
name: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -176,12 +184,12 @@ export declare class SitesService {
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
name: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -192,23 +200,35 @@ export declare class SitesService {
|
||||
typeMachineId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}) | null>;
|
||||
update(id: string, updateSiteDto: UpdateSiteDto): Promise<{
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
remove(id: string): Promise<{
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
|
||||
Reference in New Issue
Block a user