Skip to content

Commit

Permalink
fix: [#20] udpate index settings
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Jul 3, 2024
1 parent 62d1a7f commit 369e003
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/types/settings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export type Settings = {
version: string,
logging: Logging,
website: Website,
tracker: Tracker,
Expand All @@ -12,7 +13,7 @@ export type Settings = {
}

export type Logging = {
log_level: LogLevel,
threshold: Threshold,
}

export type Website = {
Expand All @@ -21,7 +22,8 @@ export type Website = {

export type Tracker = {
api_url: string
mode: TrackerMode
listed: boolean
private: boolean
token: string
token_valid_seconds: number
url: string
Expand Down Expand Up @@ -71,7 +73,8 @@ export type TrackerStatisticsImporter = {
export type PublicSettings = {
website_name: string
tracker_url: string
tracker_mode: TrackerMode
tracker_listed: boolean
tracker_private: boolean
email_on_signup: EmailOnSignup
}

Expand All @@ -96,20 +99,13 @@ export type Credentials = {
username: string
}

export enum TrackerMode {
Public = "public",
Listed = "listed",
Private = "private",
PrivateListed = "private_listed"
}

export enum EmailOnSignup {
Required = "required",
Optional = "optional",
Ignored = "ignored"
}

export enum LogLevel {
export enum Threshold {
Off = "off",
Error = "error",
Warn = "warn",
Expand Down

0 comments on commit 369e003

Please sign in to comment.