2023-04-17 13:10:45 +02:00
|
|
|
import { LoggerClientOptions } from '@navy.gif/logger';
|
2023-05-15 17:05:30 +02:00
|
|
|
import { BrokerOptions } from '@navy.gif/wrappers';
|
2023-04-17 13:10:45 +02:00
|
|
|
|
2023-04-19 23:33:47 +02:00
|
|
|
export type FileExtensions = 'mp4' | 'png' | 'mkv' | 'mov' | 'wmv' | 'm4v' | 'webm' | 'gif' | 'jpg' | 'exe' | 'avi' | 'webp' | 'jpeg' | 'htm' | 'zip' | 'txt';
|
|
|
|
export type FileType = 'video' | 'image' | 'audio' | 'text' | 'application' | 'message' | 'multipart';
|
|
|
|
|
2023-04-17 13:10:45 +02:00
|
|
|
export type DiscordOptions = {
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
type MariaDBOptions = {
|
|
|
|
load: boolean,
|
|
|
|
client: {
|
|
|
|
waitForConnections: boolean,
|
|
|
|
connectionLimit: number,
|
|
|
|
supportBigNumbers: boolean,
|
|
|
|
bigNumberStrings: boolean,
|
|
|
|
multipleStatements: boolean,
|
|
|
|
collation: string
|
|
|
|
},
|
|
|
|
cluster: {
|
|
|
|
canRetry: boolean,
|
|
|
|
removeNodeErrorCount: number,
|
|
|
|
restoreNodeTimeout: number,
|
|
|
|
defaultSelector: string
|
|
|
|
},
|
|
|
|
loggerOptions: LoggerClientOptions
|
|
|
|
}
|
|
|
|
|
|
|
|
type MongoDBOptions = {
|
|
|
|
load: boolean,
|
|
|
|
client: object,
|
|
|
|
loggerOptions: LoggerClientOptions
|
|
|
|
}
|
|
|
|
|
|
|
|
export type DatabaseOptions = {
|
|
|
|
mariadb: MariaDBOptions,
|
2023-05-15 17:05:30 +02:00
|
|
|
mongodb: MongoDBOptions,
|
|
|
|
broker: BrokerOptions
|
2023-04-17 13:10:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export type SignupCode = {
|
|
|
|
[key:string]: unknown,
|
|
|
|
code: string,
|
|
|
|
created: number,
|
|
|
|
validFor: number,
|
|
|
|
}
|
|
|
|
|
|
|
|
export type IPCMessage = {
|
|
|
|
_id?: string,
|
2023-07-16 12:58:00 +02:00
|
|
|
[key: string]: string | number | object | boolean | undefined
|
2023-04-17 13:10:45 +02:00
|
|
|
}
|