forked from Stigmatoz/web-activity-time-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtabListSummary.ts
More file actions
44 lines (38 loc) · 910 Bytes
/
tabListSummary.ts
File metadata and controls
44 lines (38 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { Tab } from '../entity/tab';
import { CurrentTabItem } from './currentTabItem';
export interface OverallStats extends TabListSummary {
firstDay: Date;
activeDaysTotal: number;
daysTotal: number;
todaySummaryTime: number;
averageTimeByActiveDays: number;
mostActiveDay: ActiveDay;
mostInactiveDay: ActiveDay;
mostActiveDayExceptToday: ActiveDay | null;
mostInactiveDayExceptToday: ActiveDay | null;
}
export interface ActiveDay {
date: Date;
summaryTime: number;
}
export interface TabListSummary {
tabs: Tab[];
summaryTime: number;
chart: DataForChart;
}
export interface DataForChart {
timeForChart: number[];
sitesForChart: string[];
}
export interface TabListByDays {
days: DayTabs[];
averageTime: number;
summaryTime: number;
sessions: number;
}
export interface DayTabs {
day: string;
tabs: CurrentTabItem[];
time: number;
sessions: number;
}