phx-node
Version:
PHX NODE
68 lines (67 loc) • 2.33 kB
TypeScript
import { Logger } from '@nestjs/common';
import { PHXGrpcClientSystemService } from "../grpc-client/grpc-client-system.service";
import { PHXStatisticalNotificationByModuleService } from "./statistical-notification.service";
import { ConfigService } from "@nestjs/config";
interface FeatureModuleType {
id: number;
info_target: {
type_text: string;
title_form: string;
time: string;
avatar: string;
form_id: number;
classname: string;
full_name: string;
student_code: string;
};
created_at: string;
payload: string;
action: string;
module_code: string;
}
export declare class PHXNotificationByModuleService {
private readonly grpcClientSystemService;
private readonly statisticalNotificationByModuleService;
private readonly request;
private readonly configService;
logger: Logger;
constructor(grpcClientSystemService: PHXGrpcClientSystemService, statisticalNotificationByModuleService: PHXStatisticalNotificationByModuleService, request: Request, configService: ConfigService);
getListNotificationByAction({ offset, action, filter }: {
offset: number;
action: Array<string>;
filter: string;
}): Promise<{
data: Array<FeatureModuleType>;
last_page: boolean;
}>;
readNotification({ notificationId }: {
notificationId: number;
}): Promise<any>;
updateTotalNotificationAfterRead({ app, deviceId, userId, hostname, moduleCode, notificationType, action, payload }: {
userId: number;
hostname: string;
deviceId: string;
app: string;
moduleCode: string;
notificationType: string;
action: string;
payload: string;
}): Promise<void>;
getCurrentTotalNotificationUnreadByModule({ app, deviceId, userId, hostname, moduleCode, studentCode, action }: {
app: string;
deviceId: string;
userId: number;
hostname: string;
moduleCode: string;
studentCode: string;
action: string;
}): Promise<{
currentTotalNotificationImportant: any;
currentTotalNotification: any;
}>;
readNotificationInDetailForm({ formId, action }: {
formId: number;
action: string;
}): Promise<any>;
}
export {};