Collapse filing sync notifications into one batch surface
This commit is contained in:
23
lib/types.ts
23
lib/types.ts
@@ -199,6 +199,29 @@ export type TaskNotificationView = {
|
||||
actions: TaskNotificationAction[];
|
||||
};
|
||||
|
||||
export type TaskNotificationEntry = {
|
||||
id: string;
|
||||
kind: 'single' | 'filing_sync_batch';
|
||||
status: TaskStatus;
|
||||
title: string;
|
||||
statusLine: string;
|
||||
detailLine: string | null;
|
||||
progress: TaskNotificationView['progress'];
|
||||
stats: TaskNotificationStat[];
|
||||
updatedAt: string;
|
||||
primaryTaskId: string;
|
||||
taskIds: string[];
|
||||
actions: TaskNotificationAction[];
|
||||
notificationReadAt: string | null;
|
||||
notificationSilencedAt: string | null;
|
||||
meta?: {
|
||||
tickerCount: number;
|
||||
runningCount: number;
|
||||
queuedCount: number;
|
||||
failureCount: number;
|
||||
};
|
||||
};
|
||||
|
||||
export type Task = {
|
||||
id: string;
|
||||
user_id: string;
|
||||
|
||||
Reference in New Issue
Block a user