General work on API

This commit is contained in:
Thesourtimes
2021-12-18 19:17:04 +03:00
parent 13eb680272
commit 442879e80a
11 changed files with 1916 additions and 391 deletions
+9 -1
View File
@@ -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
+26
View File
@@ -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;
}
+1
View File
@@ -26,3 +26,4 @@ export * from "./Template";
export * from "./User";
export * from "./VoiceState";
export * from "./Webhook";
export * from "./clientRelase";