@bitblit/ratchet-aws-node-only 4.0.1-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +10 -0
- package/lib/athena/alb-athena-log-ratchet.d.ts +57 -0
- package/lib/athena/alb-athena-log-ratchet.spec.d.ts +1 -0
- package/lib/athena/athena-ratchet.d.ts +16 -0
- package/lib/athena/athena-ratchet.spec.d.ts +1 -0
- package/lib/build/ratchet-aws-node-only-info.d.ts +5 -0
- package/lib/cli/dynamo-exporter.d.ts +13 -0
- package/lib/cli/ratchet-cli-handler.d.ts +6 -0
- package/lib/cli/site-uploader/site-uploader.d.ts +12 -0
- package/lib/cli/start-instance-and-ssh.d.ts +12 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.mjs +29 -0
- package/lib/index.mjs.map +1 -0
- package/lib/mail/inbound/email-to-db-insert-processor.d.ts +10 -0
- package/lib/mail/inbound/inbound-email-ratchet.d.ts +10 -0
- package/lib/mail/inbound/inbound-email-ratchet.spec.d.ts +1 -0
- package/lib/mail/inbound/parsed-email-processor.d.ts +5 -0
- package/lib/mail/inbound/sample-email-processor.d.ts +6 -0
- package/package.json +80 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ParsedEmailProcessor } from './parsed-email-processor.js';
|
|
2
|
+
import { ParsedMail } from 'mailparser';
|
|
3
|
+
export declare class EmailToDbInsertProcessor implements ParsedEmailProcessor<EmailToDbStatement[]> {
|
|
4
|
+
canProcess(mail: ParsedMail): boolean;
|
|
5
|
+
processEmail(msg: ParsedMail): Promise<EmailToDbStatement[]>;
|
|
6
|
+
}
|
|
7
|
+
export interface EmailToDbStatement {
|
|
8
|
+
statement: string;
|
|
9
|
+
params?: any[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { S3CacheRatchet } from '@bitblit/ratchet-aws';
|
|
3
|
+
import { ParsedEmailProcessor } from './parsed-email-processor.js';
|
|
4
|
+
export declare class InboundEmailRatchet {
|
|
5
|
+
private cache;
|
|
6
|
+
private processors;
|
|
7
|
+
constructor(cache: S3CacheRatchet, processors: ParsedEmailProcessor<any>[]);
|
|
8
|
+
processEmailFromS3(key: string): Promise<boolean>;
|
|
9
|
+
processEmailFromBuffer(buf: Buffer): Promise<boolean>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ParsedEmailProcessor } from './parsed-email-processor.js';
|
|
2
|
+
import { ParsedMail } from 'mailparser';
|
|
3
|
+
export declare class SampleEmailProcessor implements ParsedEmailProcessor<string> {
|
|
4
|
+
canProcess(mail: ParsedMail): boolean;
|
|
5
|
+
processEmail(msg: ParsedMail): Promise<string>;
|
|
6
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bitblit/ratchet-aws-node-only",
|
|
3
|
+
"version": "4.0.1-alpha",
|
|
4
|
+
"description": "Common tools for use with AWS (Node only)",
|
|
5
|
+
"note-on-side-effects": "Technically the entries in 'bin' below might be side effects, but they are called explicitly",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"bin": {
|
|
8
|
+
"ratchet-aws-cli": "./bin/cli.js"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"files": [
|
|
12
|
+
"lib/*",
|
|
13
|
+
"bin/*"
|
|
14
|
+
],
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./lib/index.d.ts",
|
|
18
|
+
"import": "./lib/index.mjs"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"contributors": [
|
|
22
|
+
"Christopher Weiss <bitblit@gmail.com>",
|
|
23
|
+
"William Weiss <npm@codification.org>",
|
|
24
|
+
"Austin Grantham <agrantham@algidious.com>",
|
|
25
|
+
"Lucas Myers <veganbeef@protonmail.com>",
|
|
26
|
+
"Joel Flint <joel@stimulimedia.net>",
|
|
27
|
+
"Bilal Shahid <bshahid@adomni.com>"
|
|
28
|
+
],
|
|
29
|
+
"husky": {
|
|
30
|
+
"hooks": {
|
|
31
|
+
"pre-commit": "pretty-quick --staged"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"prettier": {
|
|
35
|
+
"printWidth": 140,
|
|
36
|
+
"singleQuote": true,
|
|
37
|
+
"arrowParens": "always"
|
|
38
|
+
},
|
|
39
|
+
"config": {},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"watch": "tsc-watch",
|
|
42
|
+
"clean": "shx rm -Rf lib",
|
|
43
|
+
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
|
|
44
|
+
"docs": "typedoc",
|
|
45
|
+
"lint": "eslint src/**/*.ts",
|
|
46
|
+
"lint-fix": "eslint --fix src/**/*.ts",
|
|
47
|
+
"generate-barrels": "barrelsby -q --delete -d src -e .*\\.spec\\.ts && sed -i 's/\\x27;/.js\\x27;/' src/index.ts",
|
|
48
|
+
"build": "yarn clean && yarn generate-barrels && rollup -c rollup.config.js",
|
|
49
|
+
"force-build": "tsc --build --force"
|
|
50
|
+
},
|
|
51
|
+
"repository": {
|
|
52
|
+
"type": "git",
|
|
53
|
+
"url": "https://github.com/bitblit/Ratchet"
|
|
54
|
+
},
|
|
55
|
+
"keywords": [
|
|
56
|
+
"wrench",
|
|
57
|
+
"utility"
|
|
58
|
+
],
|
|
59
|
+
"bugs": {
|
|
60
|
+
"url": "https://github.com/bitblit/Ratchet/issues"
|
|
61
|
+
},
|
|
62
|
+
"homepage": "https://github.com/bitblit/Ratchet#readme",
|
|
63
|
+
"engines": {
|
|
64
|
+
"node": ">=14.18"
|
|
65
|
+
},
|
|
66
|
+
"license": "Apache-2.0",
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@aws-sdk/client-athena": "3.332.0",
|
|
69
|
+
"@bitblit/ratchet-aws": "4.0.1-alpha",
|
|
70
|
+
"@bitblit/ratchet-common": "4.0.1-alpha",
|
|
71
|
+
"mailparser": "3.6.4",
|
|
72
|
+
"mime-types": "2.1.35",
|
|
73
|
+
"tmp": "0.2.1",
|
|
74
|
+
"unzipper": "0.10.14",
|
|
75
|
+
"walk": "2.3.15"
|
|
76
|
+
},
|
|
77
|
+
"peerDependencies": {
|
|
78
|
+
},
|
|
79
|
+
"devDependencies": {}
|
|
80
|
+
}
|