diff --git a/package-lock.json b/package-lock.json index f0b7d8d..480caf3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@fosscord/server-util", - "version": "1.3.34", + "version": "1.3.35", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@fosscord/server-util", - "version": "1.3.34", + "version": "1.3.35", "license": "GPLV3", "dependencies": { "@types/jsonwebtoken": "^8.5.0", diff --git a/package.json b/package.json index b54b1e5..5384d4f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fosscord/server-util", - "version": "1.3.34", + "version": "1.3.35", "description": "Utility functions for the all server repositories", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/util/Config.ts b/src/util/Config.ts index dfa942e..6af351b 100644 --- a/src/util/Config.ts +++ b/src/util/Config.ts @@ -24,6 +24,15 @@ timespan: number; } +export interface Region { + id: string, + name: string, + vip: boolean, + custom: boolean, + deprecated: boolean, + optimal: boolean, +} + export interface DefaultOptions { gateway: { endpoint: string | null; @@ -116,6 +125,10 @@ minSymbols: number; }; }; + regions: { + default: string; + available: Region[]; + } } export const DefaultOptions: DefaultOptions = { @@ -207,6 +220,12 @@ minSymbols: 0, }, }, + regions: { + default: "fosscord", + available: [ + { id: "fosscord", name: "Fosscord", vip: false, custom: false, deprecated: false, optimal: false }, + ] + }, }; export const ConfigSchema = new Schema({}, { strict: false });