diff options
author | Thesourtimes <cckhmck@gmail.com> | 2021-12-18 19:17:04 +0300 |
---|---|---|
committer | Thesourtimes <cckhmck@gmail.com> | 2021-12-18 19:17:04 +0300 |
commit | 0da570dedc3e40da96b39cf06501a1885f042436 (patch) | |
tree | 9481494d83868da45e8f7a776518022c1f991685 /util | |
parent | Improvements + dummy API configs (diff) | |
download | server-0da570dedc3e40da96b39cf06501a1885f042436.tar.xz |
General work on API
Diffstat (limited to 'util')
-rw-r--r-- | util/src/entities/Config.ts | 10 | ||||
-rw-r--r-- | util/src/entities/clientRelase.ts | 26 | ||||
-rw-r--r-- | util/src/entities/index.ts | 1 |
3 files changed, 36 insertions, 1 deletions
diff --git a/util/src/entities/Config.ts b/util/src/entities/Config.ts index 99e3537c..2d003c99 100644 --- a/util/src/entities/Config.ts +++ b/util/src/entities/Config.ts @@ -181,6 +181,10 @@ export interface ConfigValue { }, client: { useTestClient: Boolean; + relases: { + useLocalRelases: Boolean; //TODO + upstreamVersion: string; + } }, metrics: { timeout: number; @@ -365,7 +369,11 @@ export const DefaultConfigOptions: ConfigValue = { allowRaws: false }, client: { - useTestClient: true + useTestClient: true, + relases: { + useLocalRelases: true, + upstreamVersion: "0.0.264" + } }, metrics: { timeout: 30000 diff --git a/util/src/entities/clientRelase.ts b/util/src/entities/clientRelase.ts new file mode 100644 index 00000000..e021b82b --- /dev/null +++ b/util/src/entities/clientRelase.ts @@ -0,0 +1,26 @@ +import { Column, Entity} from "typeorm"; +import { BaseClass } from "./BaseClass"; + +@Entity("client_relase") +export class Relase extends BaseClass { + @Column() + name: string; + + @Column() + pub_date: string; + + @Column() + url: string; + + @Column() + deb_url: string; + + @Column() + osx_url: string; + + @Column() + win_url: string; + + @Column({ nullable: true }) + notes?: string; +} diff --git a/util/src/entities/index.ts b/util/src/entities/index.ts index b52841c9..fdf18f23 100644 --- a/util/src/entities/index.ts +++ b/util/src/entities/index.ts @@ -26,3 +26,4 @@ export * from "./Template"; export * from "./User"; export * from "./VoiceState"; export * from "./Webhook"; +export * from "./clientRelase"; \ No newline at end of file |