ffffng/server/types/index.ts
2022-05-30 12:36:28 +02:00

30 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,
}