Rebuild order flow: settle after pricing, notifications, and invoice expiry.

Hide prices until admin sends the invoice, enforce status transitions, add customer/admin SMS+in-app notifications, schedule cash invoice reminders, and ship updated dist/prisma-client/deploy-bundle for git-pull deploys.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-09 12:00:13 +03:30
co-authored by Cursor
parent 06e5f48d07
commit d4aaa8e997
102 changed files with 2989 additions and 509 deletions
+36
View File
@@ -0,0 +1,36 @@
import { NotificationsService } from './notifications.service';
import type { AuthPrincipal } from '../common/decorators/current-user.decorator';
export declare class CustomerNotificationsController {
private readonly notifications;
constructor(notifications: NotificationsService);
list(user: AuthPrincipal): Promise<{
id: string;
orderId: string | undefined;
event: string;
title: string;
body: string;
tone: import("@prisma/client").$Enums.NotificationTone;
link: string | undefined;
isRead: boolean;
sentAt: string;
}[]>;
unreadCount(user: AuthPrincipal): Promise<{
count: number;
}>;
markAllRead(user: AuthPrincipal): Promise<{
count: number;
}>;
markRead(user: AuthPrincipal, id: string): Promise<{
count: number;
}>;
}
export declare class AdminNotificationsController {
private readonly notifications;
constructor(notifications: NotificationsService);
markAllRead(): Promise<{
ok: boolean;
}>;
markRead(id: string): Promise<{
ok: boolean;
}>;
}