This repository has been archived by the owner on May 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobalTypes.d.ts
91 lines (81 loc) · 1.76 KB
/
globalTypes.d.ts
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import { Dayjs } from "dayjs";
export {Data} from "data/payload";
export interface Jwt {
/// Version number to introduce breaking changes
version: number,
/// Untis username
username: string,
/// Encrypted untis password
password: string,
/// User-defined Data to serve user only needed lessons
data: Data,
/// Unique ID to invalidate old JWTs
secId: number,
}
export interface DesignDataType {
fontSize: number;
iat: number,
version: number,
mode: "dark" | "light",
primary: string,
secondary: string,
backgroundUrl: string,
lesson: {
colorEnum: {
[key: string]: string,
},
edges: number,
},
font: string,
alpha: number,
}
export interface WeekData {
[key: string]: DayData
}
export type DayData = Holiday | LessonData[];
export interface LessonData {
startTime: Dayjs,
endTime: Dayjs,
updatedAt: Dayjs,
code: "regular" | "cancelled" | "irregular",
courseNr: number,
courseName: string,
courseShortName: string,
shortSubject: string,
subject: string,
shortTeacher: string,
teacher: string,
room: string,
lstext: string,
info: string,
subsText: string,
sg: string,
bkRemark: string,
bkText: string
}
export interface Holiday {
startDate: Date,
endDate: Date,
name: string,
shortName: string,
}
export interface CustomExam {
room: string,
subject: string,
startTime: string,
endTime: string,
course: string,
}
export interface CustomHomework {
subject: string,
text: string,
dueDate: string,
attachments: any[],
course: string,
}
export interface Statistic {
date: string,
requests: {
[key: string]: number | string,
}
}