summaryrefslogtreecommitdiff
path: root/src/job.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-08-17 23:50:24 -0700
committerElizabeth Hunt <me@liz.coffee>2025-08-17 23:53:38 -0700
commit1a4fc9535a89b58e8b67c8996ade0b833116af3a (patch)
treed16f3129d7bb69f204bba8422e909354195a0042 /src/job.ts
parent157dc327e8fe63541b517cfbeeaf202a3e8553a5 (diff)
downloaduptime-1a4fc9535a89b58e8b67c8996ade0b833116af3a.tar.gz
uptime-1a4fc9535a89b58e8b67c8996ade0b833116af3a.zip
Move to pengueno.
Diffstat (limited to 'src/job.ts')
-rw-r--r--src/job.ts37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/job.ts b/src/job.ts
deleted file mode 100644
index b1198f8..0000000
--- a/src/job.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-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;
-}
-
-export const redact = <T extends EmailInstruction>(instruction: T): T => ({
- ...instruction,
- password: "REDACTED",
- username: "REDACTED",
-});
-
-export const redactJob = (job: EmailJob): EmailJob => ({
- ...job,
- from: redact(job.from),
- to: redact(job.to),
-});