From b49d3fa266fc0571b82cbbbff7271dd4b48e583b Mon Sep 17 00:00:00 2001 From: Thesourtimes Date: Sat, 18 Dec 2021 15:19:07 +0300 Subject: Improvements + dummy API configs --- util/src/entities/Config.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'util') diff --git a/util/src/entities/Config.ts b/util/src/entities/Config.ts index 079aa8bb..99e3537c 100644 --- a/util/src/entities/Config.ts +++ b/util/src/entities/Config.ts @@ -2,6 +2,7 @@ import { Column, Entity } from "typeorm"; import { BaseClassWithoutId, PrimaryIdColumn } from "./BaseClass"; import crypto from "crypto"; import { Snowflake } from "../util/Snowflake"; +import { SessionsReplace } from ".."; @Entity("config") export class ConfigEntity extends BaseClassWithoutId { @@ -48,6 +49,11 @@ export interface ConfigValue { endpointPublic: string | null; endpointPrivate: string | null; }; + api: { + defaultVersion: string; + activeVersions: string[]; + useFosscordEnhancements: boolean; + }; general: { instanceName: string; instanceDescription: string | null; @@ -175,6 +181,9 @@ export interface ConfigValue { }, client: { useTestClient: Boolean; + }, + metrics: { + timeout: number; } } @@ -189,6 +198,11 @@ export const DefaultConfigOptions: ConfigValue = { endpointPrivate: null, endpointPublic: null, }, + api: { + defaultVersion: "9", + activeVersions: ["6", "7", "8", "9"], + useFosscordEnhancements: true, + }, general: { instanceName: "Fosscord Instance", instanceDescription: "This is a Fosscord instance made in pre-relase days", @@ -352,5 +366,8 @@ export const DefaultConfigOptions: ConfigValue = { }, client: { useTestClient: true + }, + metrics: { + timeout: 30000 } }; -- cgit 1.4.1