summaryrefslogtreecommitdiff
path: root/src/job.ts
blob: 2beabca1c26d0756ef51c54914d8c34cb01af48d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
export interface EmailInstruction {
  email: string;
  username: string;
  password: string;
  server: string;
}

export interface EmailFromInstruction extends EmailInstruction {
  send_port: number;
}

export interface EmailToInstruction extends EmailInstruction {
  read_port: number;
}

export interface EmailJob {
  from: EmailFromInstruction;
  to: EmailToInstruction;
  readRetry: Retry;
}

export interface Retry {
  retries: number;
  interval: number;
}