Build on the developer machine without Docker, commit dist/, and run on the server with Dockerfile.dist plus compose env_file. Co-authored-by: Cursor <cursoragent@cursor.com>
92 lines
2.7 KiB
TypeScript
92 lines
2.7 KiB
TypeScript
import { CustomersService } from './customers.service';
|
|
import { CreateCustomerDto, SetCustomerActiveDto, UpdateCustomerDto } from './dto/customer.dto';
|
|
export declare class CustomersController {
|
|
private readonly customersService;
|
|
constructor(customersService: CustomersService);
|
|
findAll(q?: string): Promise<{
|
|
id: string;
|
|
firstName: string;
|
|
lastName: string;
|
|
name: string;
|
|
phone: string;
|
|
nationalId: string;
|
|
customerType: import("@prisma/client").$Enums.CustomerType;
|
|
companyId: string | null;
|
|
companyName: string;
|
|
orderCount: number;
|
|
totalMeterage: number;
|
|
isActive: boolean;
|
|
registeredAt: string;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}[]>;
|
|
findOne(id: string): Promise<{
|
|
id: string;
|
|
firstName: string;
|
|
lastName: string;
|
|
name: string;
|
|
phone: string;
|
|
nationalId: string;
|
|
customerType: import("@prisma/client").$Enums.CustomerType;
|
|
companyId: string | null;
|
|
companyName: string;
|
|
orderCount: number;
|
|
totalMeterage: number;
|
|
isActive: boolean;
|
|
registeredAt: string;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}>;
|
|
create(dto: CreateCustomerDto): Promise<{
|
|
id: string;
|
|
firstName: string;
|
|
lastName: string;
|
|
name: string;
|
|
phone: string;
|
|
nationalId: string;
|
|
customerType: import("@prisma/client").$Enums.CustomerType;
|
|
companyId: string | null;
|
|
companyName: string;
|
|
orderCount: number;
|
|
totalMeterage: number;
|
|
isActive: boolean;
|
|
registeredAt: string;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}>;
|
|
update(id: string, dto: UpdateCustomerDto): Promise<{
|
|
id: string;
|
|
firstName: string;
|
|
lastName: string;
|
|
name: string;
|
|
phone: string;
|
|
nationalId: string;
|
|
customerType: import("@prisma/client").$Enums.CustomerType;
|
|
companyId: string | null;
|
|
companyName: string;
|
|
orderCount: number;
|
|
totalMeterage: number;
|
|
isActive: boolean;
|
|
registeredAt: string;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}>;
|
|
setActive(id: string, dto: SetCustomerActiveDto): Promise<{
|
|
id: string;
|
|
firstName: string;
|
|
lastName: string;
|
|
name: string;
|
|
phone: string;
|
|
nationalId: string;
|
|
customerType: import("@prisma/client").$Enums.CustomerType;
|
|
companyId: string | null;
|
|
companyName: string;
|
|
orderCount: number;
|
|
totalMeterage: number;
|
|
isActive: boolean;
|
|
registeredAt: string;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}>;
|
|
}
|