Deploy via committed dist: local Nest build, server runs with .env
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>
This commit is contained in:
+94
@@ -0,0 +1,94 @@
|
||||
import { PrismaService } from '../prisma/prisma.service';
|
||||
import { CreateCustomerDto, UpdateCustomerDto } from './dto/customer.dto';
|
||||
export declare class CustomersService {
|
||||
private readonly prisma;
|
||||
constructor(prisma: PrismaService);
|
||||
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, isActive: boolean): 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;
|
||||
}>;
|
||||
private resolveNames;
|
||||
private ensure;
|
||||
private map;
|
||||
}
|
||||
Reference in New Issue
Block a user