48 lines
1.3 KiB
TypeScript
48 lines
1.3 KiB
TypeScript
import { PrismaService } from '../prisma/prisma.service';
|
|
import { CreateConstructeurDto, UpdateConstructeurDto } from '../shared/dto/constructeur.dto';
|
|
export declare class ConstructeursService {
|
|
private prisma;
|
|
constructor(prisma: PrismaService);
|
|
private buildSearchWhere;
|
|
create(data: CreateConstructeurDto): Promise<{
|
|
name: string;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
email: string | null;
|
|
phone: string | null;
|
|
}>;
|
|
findAll(search?: string): Promise<{
|
|
name: string;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
email: string | null;
|
|
phone: string | null;
|
|
}[]>;
|
|
findOne(id: string): Promise<{
|
|
name: string;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
email: string | null;
|
|
phone: string | null;
|
|
} | null>;
|
|
update(id: string, data: UpdateConstructeurDto): Promise<{
|
|
name: string;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
email: string | null;
|
|
phone: string | null;
|
|
}>;
|
|
remove(id: string): Promise<{
|
|
name: string;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
email: string | null;
|
|
phone: string | null;
|
|
}>;
|
|
}
|