Skip to content

Commit

Permalink
Merge #23: Update settings endpoint
Browse files Browse the repository at this point in the history
8a9a70c feat: release 1.0.0-alpha.7 (Jose Celano)
81c2551 fix: [#22] update settings endpoint (Jose Celano)

Pull request description:

  Update settings endpoint.

ACKs for top commit:
  josecelano:
    ACK 8a9a70c

Tree-SHA512: 2cfa1119d5126b5a470c22221eef9e14b8cb9d672d097c064bfd0376fb92e9961502e531e7d5d73fd4910de9e72eecbd9ea749843a1b90835e684454934d7b03
  • Loading branch information
josecelano committed Aug 5, 2024
2 parents 3400f4b + 8a9a70c commit c01fd51
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "torrust-index-types-lib",
"version": "3.0.0-alpha.6",
"version": "3.0.0-alpha.7",
"description": "Contains common types for the Torrust project.",
"repository": {
"type": "git",
Expand Down
22 changes: 18 additions & 4 deletions src/types/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export type Settings = {
logging: Logging,
website: Website,
tracker: Tracker,
net: Network,
net: Net,
auth: Auth,
database: Database,
mail: Mail,
Expand All @@ -12,6 +12,12 @@ export type Settings = {
tracker_statistics_importer: TrackerStatisticsImporter
}

export type Metadata = {
app: string,
purpose: string,
schema_version: string,
}

export type Logging = {
threshold: Threshold,
}
Expand All @@ -29,15 +35,15 @@ export type Tracker = {
url: string
}

export type Network = {
export type Net = {
base_url: string | null
bind_address: string
tsl: Tsl | null
}

export type Auth = {
email_on_signup: EmailOnSignup
secret_key: string
user_claim_token_pepper: string
password_constraints: PasswordConstraints
}

Expand All @@ -46,7 +52,6 @@ export type Database = {
}

export type Mail = {
email_verification_enabled: boolean
from: string
reply_to: string
smtp: Smtp
Expand All @@ -65,6 +70,10 @@ export type Api = {
max_torrent_page_size: number
}

export type Registration = {
email: Email
}

export type TrackerStatisticsImporter = {
port: number
torrent_info_update_interval: number
Expand Down Expand Up @@ -112,4 +121,9 @@ export enum Threshold {
Info = "info",
Debug = "debug",
Trace = "trace",
}

export type Email = {
required: boolean
verification_required: boolean
}

0 comments on commit c01fd51

Please sign in to comment.