37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
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;
|
||
|
|
}>;
|
||
|
|
}
|