summary refs log tree commit diff
path: root/util/src/entities
diff options
context:
space:
mode:
Diffstat (limited to 'util/src/entities')
-rw-r--r--util/src/entities/Config.ts10
-rw-r--r--util/src/entities/clientRelase.ts26
-rw-r--r--util/src/entities/index.ts1
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