Skip to content

Commit 369e003

Browse files
committed
fix: [#20] udpate index settings
1 parent 62d1a7f commit 369e003

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

src/types/settings.ts

+7-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export type Settings = {
2+
version: string,
23
logging: Logging,
34
website: Website,
45
tracker: Tracker,
@@ -12,7 +13,7 @@ export type Settings = {
1213
}
1314

1415
export type Logging = {
15-
log_level: LogLevel,
16+
threshold: Threshold,
1617
}
1718

1819
export type Website = {
@@ -21,7 +22,8 @@ export type Website = {
2122

2223
export type Tracker = {
2324
api_url: string
24-
mode: TrackerMode
25+
listed: boolean
26+
private: boolean
2527
token: string
2628
token_valid_seconds: number
2729
url: string
@@ -71,7 +73,8 @@ export type TrackerStatisticsImporter = {
7173
export type PublicSettings = {
7274
website_name: string
7375
tracker_url: string
74-
tracker_mode: TrackerMode
76+
tracker_listed: boolean
77+
tracker_private: boolean
7578
email_on_signup: EmailOnSignup
7679
}
7780

@@ -96,20 +99,13 @@ export type Credentials = {
9699
username: string
97100
}
98101

99-
export enum TrackerMode {
100-
Public = "public",
101-
Listed = "listed",
102-
Private = "private",
103-
PrivateListed = "private_listed"
104-
}
105-
106102
export enum EmailOnSignup {
107103
Required = "required",
108104
Optional = "optional",
109105
Ignored = "ignored"
110106
}
111107

112-
export enum LogLevel {
108+
export enum Threshold {
113109
Off = "off",
114110
Error = "error",
115111
Warn = "warn",

0 commit comments

Comments
 (0)