summaryrefslogtreecommitdiff
path: root/src/job.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/job.ts')
-rw-r--r--src/job.ts25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/job.ts b/src/job.ts
new file mode 100644
index 0000000..2beabca
--- /dev/null
+++ b/src/job.ts
@@ -0,0 +1,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;
+}