mirror of https://github.com/thaldrin/thaldrin.git
update types and sample config
This commit is contained in:
parent
780086b8a2
commit
600a561ce0
|
@ -14,5 +14,18 @@ export default <Config>{
|
||||||
supabase: {
|
supabase: {
|
||||||
url: "",
|
url: "",
|
||||||
key: ""
|
key: ""
|
||||||
|
},
|
||||||
|
|
||||||
|
trello: {
|
||||||
|
key: "",
|
||||||
|
token: "",
|
||||||
|
board: "",
|
||||||
|
options: {
|
||||||
|
list: {
|
||||||
|
bugs: "",
|
||||||
|
suggestions: ""
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -73,30 +73,79 @@ export interface Config {
|
||||||
* Thaldrin's Database
|
* Thaldrin's Database
|
||||||
*/
|
*/
|
||||||
supabase: Supabase;
|
supabase: Supabase;
|
||||||
|
/**
|
||||||
|
* Webhooks
|
||||||
|
*/
|
||||||
|
webhook?: Webhooks
|
||||||
|
/**
|
||||||
|
* Config Vars for [trello-helper](https://npm.im/trello-helper)
|
||||||
|
*/
|
||||||
|
trello: Trello
|
||||||
|
}
|
||||||
|
export interface Webhooks {
|
||||||
|
/**
|
||||||
|
* Name of the Webhook
|
||||||
|
*/
|
||||||
|
[v: string]: Webhook,
|
||||||
|
}
|
||||||
|
export interface Webhook {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Webhook ID
|
||||||
|
*/
|
||||||
|
id: string,
|
||||||
|
/**
|
||||||
|
* Webhook Username
|
||||||
|
*/
|
||||||
|
username: string
|
||||||
|
/**
|
||||||
|
* Webhook Type
|
||||||
|
*/
|
||||||
|
type: string
|
||||||
|
/**
|
||||||
|
* Webhook Token
|
||||||
|
*/
|
||||||
|
token: string
|
||||||
|
|
||||||
|
}
|
||||||
|
export interface Trello {
|
||||||
|
key: string
|
||||||
|
token: string
|
||||||
|
board: string,
|
||||||
|
options: {
|
||||||
|
list: {
|
||||||
|
bugs: string
|
||||||
|
suggestions: string
|
||||||
|
}
|
||||||
|
// label: {
|
||||||
|
// bugs: string
|
||||||
|
// suggestions: string
|
||||||
|
// }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Developer {
|
export interface Developer {
|
||||||
id: string;
|
id: string;
|
||||||
link: string
|
link: string
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Supabase {
|
export interface Supabase {
|
||||||
url: string;
|
url: string;
|
||||||
key: string;
|
key: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Apis {
|
export interface Apis {
|
||||||
sheri: string;
|
sheri: string;
|
||||||
yiffrest: string;
|
yiffrest: string;
|
||||||
thaldrin: string;
|
thaldrin: string;
|
||||||
}
|
}
|
||||||
interface Contributor {
|
export interface Contributor {
|
||||||
id: string;
|
id: string;
|
||||||
link: string
|
link: string
|
||||||
nick: string
|
nick: string
|
||||||
reason: string
|
reason: string
|
||||||
}
|
}
|
||||||
interface Variables {
|
export interface Variables {
|
||||||
prefix: string[];
|
prefix: string[];
|
||||||
developers: Developer[];
|
developers: Developer[];
|
||||||
contributors: Contributor[]
|
contributors: Contributor[]
|
||||||
|
@ -114,7 +163,7 @@ interface Variables {
|
||||||
website: string
|
website: string
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Pkg {
|
export interface Pkg {
|
||||||
name: string;
|
name: string;
|
||||||
version: string;
|
version: string;
|
||||||
description: string;
|
description: string;
|
||||||
|
@ -158,5 +207,7 @@ interface Scripts {
|
||||||
build: string;
|
build: string;
|
||||||
start: string;
|
start: string;
|
||||||
dev: string;
|
dev: string;
|
||||||
'update:subs': string;
|
init: string;
|
||||||
|
"subs:init": string;
|
||||||
|
"subs:update": string;
|
||||||
}
|
}
|
Loading…
Reference in New Issue