ffffng/server/types/index.ts
2022-07-07 11:12:40 +02:00

31 lines
600 B
TypeScript

import {Domain, MonitoringToken, OnlineState, Site} from "./shared";
export * from "./config";
export * from "./logger";
export * from "./shared";
export type NodeStateData = {
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,
}