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:
Vendored
+73
@@ -0,0 +1,73 @@
|
||||
import { PrismaService } from '../prisma/prisma.service';
|
||||
import { CreateCatalogDto, UpdateCatalogDto } from './dto/catalog.dto';
|
||||
export declare class CatalogsService {
|
||||
private readonly prisma;
|
||||
constructor(prisma: PrismaService);
|
||||
findAll(companyId?: string, activeOnly?: boolean): Promise<{
|
||||
id: string;
|
||||
companyId: string;
|
||||
companyName: string;
|
||||
name: string;
|
||||
code: string;
|
||||
description: string | undefined;
|
||||
displayOrder: number;
|
||||
isActive: boolean;
|
||||
productCount: number;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}[]>;
|
||||
findOne(id: string): Promise<{
|
||||
id: string;
|
||||
companyId: string;
|
||||
companyName: string;
|
||||
name: string;
|
||||
code: string;
|
||||
description: string | undefined;
|
||||
displayOrder: number;
|
||||
isActive: boolean;
|
||||
productCount: number;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}>;
|
||||
create(dto: CreateCatalogDto): Promise<{
|
||||
id: string;
|
||||
companyId: string;
|
||||
companyName: string;
|
||||
name: string;
|
||||
code: string;
|
||||
description: string | undefined;
|
||||
displayOrder: number;
|
||||
isActive: boolean;
|
||||
productCount: number;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}>;
|
||||
update(id: string, dto: UpdateCatalogDto): Promise<{
|
||||
id: string;
|
||||
companyId: string;
|
||||
companyName: string;
|
||||
name: string;
|
||||
code: string;
|
||||
description: string | undefined;
|
||||
displayOrder: number;
|
||||
isActive: boolean;
|
||||
productCount: number;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}>;
|
||||
setActive(id: string, isActive: boolean): Promise<{
|
||||
id: string;
|
||||
companyId: string;
|
||||
companyName: string;
|
||||
name: string;
|
||||
code: string;
|
||||
description: string | undefined;
|
||||
displayOrder: number;
|
||||
isActive: boolean;
|
||||
productCount: number;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}>;
|
||||
private ensure;
|
||||
private map;
|
||||
}
|
||||
Reference in New Issue
Block a user