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:
2026-08-05 21:35:22 +03:30
co-authored by Cursor
parent 67cfc17079
commit cbcea58e94
199 changed files with 10895 additions and 4 deletions
+151
View File
@@ -0,0 +1,151 @@
import { CartsService } from './carts.service';
import type { AuthPrincipal } from '../common/decorators/current-user.decorator';
import { AddCartItemDto, UpdateCartItemMeterageDto, UpdateCartNotesDto } from './dto/cart.dto';
export declare class CartsController {
private readonly cartsService;
constructor(cartsService: CartsService);
getCart(user: AuthPrincipal): Promise<{
id: string;
userId: string;
companyId: string;
companyName: string;
notes: string | undefined;
items: {
id: string;
productId: string;
catalogCode: string;
productName: string;
productCode: string;
color: string;
meterage: number;
unitPrice: number | undefined;
notes: string | undefined;
companyId: string;
companyName: string;
}[];
totalMeterage: number;
itemCount: number;
createdAt: string;
updatedAt: string;
}>;
addItem(user: AuthPrincipal, dto: AddCartItemDto): Promise<{
id: string;
userId: string;
companyId: string;
companyName: string;
notes: string | undefined;
items: {
id: string;
productId: string;
catalogCode: string;
productName: string;
productCode: string;
color: string;
meterage: number;
unitPrice: number | undefined;
notes: string | undefined;
companyId: string;
companyName: string;
}[];
totalMeterage: number;
itemCount: number;
createdAt: string;
updatedAt: string;
}>;
updateItem(user: AuthPrincipal, itemId: string, dto: UpdateCartItemMeterageDto): Promise<{
id: string;
userId: string;
companyId: string;
companyName: string;
notes: string | undefined;
items: {
id: string;
productId: string;
catalogCode: string;
productName: string;
productCode: string;
color: string;
meterage: number;
unitPrice: number | undefined;
notes: string | undefined;
companyId: string;
companyName: string;
}[];
totalMeterage: number;
itemCount: number;
createdAt: string;
updatedAt: string;
}>;
removeItem(user: AuthPrincipal, itemId: string): Promise<{
id: string;
userId: string;
companyId: string;
companyName: string;
notes: string | undefined;
items: {
id: string;
productId: string;
catalogCode: string;
productName: string;
productCode: string;
color: string;
meterage: number;
unitPrice: number | undefined;
notes: string | undefined;
companyId: string;
companyName: string;
}[];
totalMeterage: number;
itemCount: number;
createdAt: string;
updatedAt: string;
}>;
updateNotes(user: AuthPrincipal, dto: UpdateCartNotesDto): Promise<{
id: string;
userId: string;
companyId: string;
companyName: string;
notes: string | undefined;
items: {
id: string;
productId: string;
catalogCode: string;
productName: string;
productCode: string;
color: string;
meterage: number;
unitPrice: number | undefined;
notes: string | undefined;
companyId: string;
companyName: string;
}[];
totalMeterage: number;
itemCount: number;
createdAt: string;
updatedAt: string;
}>;
clear(user: AuthPrincipal): Promise<{
id: string;
userId: string;
companyId: string;
companyName: string;
notes: string | undefined;
items: {
id: string;
productId: string;
catalogCode: string;
productName: string;
productCode: string;
color: string;
meterage: number;
unitPrice: number | undefined;
notes: string | undefined;
companyId: string;
companyName: string;
}[];
totalMeterage: number;
itemCount: number;
createdAt: string;
updatedAt: string;
}>;
}