-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.ts
More file actions
39 lines (34 loc) · 835 Bytes
/
Copy pathtypes.ts
File metadata and controls
39 lines (34 loc) · 835 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
export const PREVIEW_TAB = 0
export const HOME_TAB = 1
export const SETTINGS_TAB = 2
export interface PickedItem {
code: string
timestamp: number
}
export interface PickupInfo {
courier: string | null
code: string
snippet: string
date: string | null
importedAt?: string | null
picked?: boolean
}
export interface ImportedRecord {
text: string
importedAt: string | null
}
export interface Config {
autoDetectSMS: boolean
keywords: string[]
widgetShowCount: number
showDate: boolean
autoCleanupPicked: boolean
autoCleanupPreview: boolean
cleanupDays: number
importedMessages: string[]
importedRecords: ImportedRecord[]
pickedItems: PickedItem[]
homeDeletedCodes: string[]
previewDeletedCodes: string[]
}
export type ContentTab = typeof PREVIEW_TAB | typeof HOME_TAB | typeof SETTINGS_TAB