General work on API
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -26,3 +26,4 @@ export * from "./Template";
|
||||
export * from "./User";
|
||||
export * from "./VoiceState";
|
||||
export * from "./Webhook";
|
||||
export * from "./clientRelase";
|
||||
Reference in New Issue
Block a user