ffffng/server/types/index.ts

31 lines
600 B
TypeScript
Raw Normal View History

2022-05-26 13:58:01 +02:00
import {Domain, MonitoringToken, OnlineState, Site} from "./shared";
export * from "./config";
export * from "./logger";
2022-02-22 15:39:39 +01:00
export * from "./shared";
export type NodeStateData = {
2022-05-26 13:58:01 +02:00
site: Site,
domain: Domain,
state: OnlineState,
}
// TODO: Complete interface / class declaration.
export type NodeSecrets = {
monitoringToken?: MonitoringToken,
};
export type MailId = string;
export type MailData = any;
export type MailType = string;
export interface Mail {
id: MailId,
email: MailType,
sender: string,
recipient: string,
data: MailData,
failures: number,
}