🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { lambdaClient } from '@/libs/trpc/client';
class NotificationService {
list = (
params: {
category?: string;
cursor?: string;
isRead?: boolean;
limit?: number;
unreadOnly?: boolean;
} = {},
) => {
return lambdaClient.notification.list.query(params);
};
getNavigationCounts = () => {
return lambdaClient.notification.navigationCounts.query();
};
getUnreadCount = (): Promise<number> => {
return lambdaClient.notification.unreadCount.query();
};
markAsRead = (ids: string[]) => {
return lambdaClient.notification.markAsRead.mutate({ ids });
};
markAllAsRead = () => {
return lambdaClient.notification.markAllAsRead.mutate();
};
archive = (id: string) => {
return lambdaClient.notification.archive.mutate({ id });
};
archiveAll = () => {
return lambdaClient.notification.archiveAll.mutate();
};
}
export const notificationService = new NotificationService();