Files
fabric_trade_server/dist/checks/checks.service.d.ts
T
mohmdsdgandCursor fd187ea2ee Add global admin checks list and deepen check notification links.
Expose GET /admin/checks with order context, and point admin check alerts to the per-order checks page.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-09 16:17:51 +03:30

77 lines
2.6 KiB
TypeScript

import { PrismaService } from '../prisma/prisma.service';
import { UpdateCheckStatusDto } from './dto/check.dto';
import { NotificationsService } from '../notifications/notifications.service';
export declare class ChecksService {
private readonly prisma;
private readonly notifications;
constructor(prisma: PrismaService, notifications: NotificationsService);
findByOrder(orderId: string): Promise<{
id: string;
orderId: string;
row: number;
amount: number;
dueDate: string;
sayadId: string;
checkNumber: string | undefined;
ownerNationalId: string | undefined;
ownerFirstName: string | undefined;
ownerLastName: string | undefined;
bankName: string;
branchName: string | undefined;
frontImage: string | undefined;
backImage: string | undefined;
notes: string | undefined;
mode: string;
status: import("@prisma/client").$Enums.CheckStatus;
createdAt: string;
updatedAt: string;
}[]>;
findAll(status?: string): Promise<{
orderNumber: string;
customerName: string;
orderStatus: import("@prisma/client").$Enums.OrderStatus;
settlementType: import("@prisma/client").$Enums.SettlementType | null;
id: string;
orderId: string;
row: number;
amount: number;
dueDate: string;
sayadId: string;
checkNumber: string | undefined;
ownerNationalId: string | undefined;
ownerFirstName: string | undefined;
ownerLastName: string | undefined;
bankName: string;
branchName: string | undefined;
frontImage: string | undefined;
backImage: string | undefined;
notes: string | undefined;
mode: string;
status: import("@prisma/client").$Enums.CheckStatus;
createdAt: string;
updatedAt: string;
}[]>;
updateStatus(id: string, adminId: string, dto: UpdateCheckStatusDto): Promise<{
id: string;
orderId: string;
row: number;
amount: number;
dueDate: string;
sayadId: string;
checkNumber: string | undefined;
ownerNationalId: string | undefined;
ownerFirstName: string | undefined;
ownerLastName: string | undefined;
bankName: string;
branchName: string | undefined;
frontImage: string | undefined;
backImage: string | undefined;
notes: string | undefined;
mode: string;
status: import("@prisma/client").$Enums.CheckStatus;
createdAt: string;
updatedAt: string;
}>;
private map;
}