@activepieces/piece-smtp 0.0.3 → 0.0.5
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/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-smtp",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@sinclair/typebox": "0.26.8",
|
|
6
|
-
"
|
|
6
|
+
"lodash": "4.17.21",
|
|
7
7
|
"nanoid": "3.3.4",
|
|
8
8
|
"nodemailer": "6.9.1",
|
|
9
|
-
"@activepieces/framework": "0.3.
|
|
10
|
-
"@activepieces/shared": "0.3.
|
|
11
|
-
"tslib": "2.
|
|
9
|
+
"@activepieces/pieces-framework": "0.3.27",
|
|
10
|
+
"@activepieces/shared": "0.3.44",
|
|
11
|
+
"tslib": "2.5.3"
|
|
12
12
|
},
|
|
13
13
|
"main": "./src/index.js",
|
|
14
14
|
"types": "./src/index.d.ts"
|
package/src/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const smtp: import("@activepieces/framework").Piece;
|
|
1
|
+
export declare const smtp: import("@activepieces/pieces-framework").Piece;
|
package/src/index.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.smtp = void 0;
|
|
4
|
-
const
|
|
5
|
-
const framework_1 = require("@activepieces/framework");
|
|
6
|
-
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
4
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
7
5
|
const send_email_1 = require("./lib/actions/send-email");
|
|
8
|
-
exports.smtp = (0,
|
|
9
|
-
name: 'smtp',
|
|
6
|
+
exports.smtp = (0, pieces_framework_1.createPiece)({
|
|
10
7
|
displayName: 'SMTP',
|
|
11
8
|
logoUrl: 'https://cdn.activepieces.com/pieces/smtp.png',
|
|
12
|
-
version: package_json_1.default.version,
|
|
13
9
|
authors: [
|
|
14
10
|
'abaza738'
|
|
15
11
|
],
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/pieces/smtp/src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/pieces/smtp/src/index.ts"],"names":[],"mappings":";;;AACA,qEAA6D;AAC7D,yDAAqD;AAExC,QAAA,IAAI,GAAG,IAAA,8BAAW,EAAC;IAC9B,WAAW,EAAE,MAAM;IACnB,OAAO,EAAE,8CAA8C;IACvD,OAAO,EAAE;QACP,UAAU;KACX;IACD,OAAO,EAAE;QACP,sBAAS;KACV;IACD,QAAQ,EAAE,EACT;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const sendEmail: import("@activepieces/framework").Action;
|
|
1
|
+
export declare const sendEmail: import("@activepieces/pieces-framework").Action;
|
|
@@ -2,66 +2,65 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sendEmail = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const
|
|
6
|
-
const framework_2 = require("@activepieces/framework");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
7
6
|
const nodemailer_1 = tslib_1.__importDefault(require("nodemailer"));
|
|
8
|
-
exports.sendEmail = (0,
|
|
7
|
+
exports.sendEmail = (0, pieces_framework_1.createAction)({
|
|
9
8
|
name: 'send-email',
|
|
10
9
|
displayName: 'Send Email',
|
|
11
10
|
description: 'Send an email using a custom SMTP server.',
|
|
12
11
|
props: {
|
|
13
|
-
authentication:
|
|
12
|
+
authentication: pieces_framework_1.Property.CustomAuth({
|
|
14
13
|
displayName: 'Authentication',
|
|
15
14
|
required: true,
|
|
16
15
|
props: {
|
|
17
|
-
host:
|
|
16
|
+
host: pieces_framework_1.Property.ShortText({
|
|
18
17
|
displayName: 'Host',
|
|
19
18
|
required: true,
|
|
20
19
|
}),
|
|
21
|
-
email:
|
|
20
|
+
email: pieces_framework_1.Property.ShortText({
|
|
22
21
|
displayName: 'Email',
|
|
23
22
|
required: true,
|
|
24
23
|
}),
|
|
25
|
-
password:
|
|
24
|
+
password: pieces_framework_1.Property.SecretText({
|
|
26
25
|
displayName: 'Password',
|
|
27
26
|
required: true,
|
|
28
27
|
}),
|
|
29
|
-
port:
|
|
28
|
+
port: pieces_framework_1.Property.ShortText({
|
|
30
29
|
displayName: 'Port',
|
|
31
30
|
required: true,
|
|
32
31
|
}),
|
|
33
|
-
TLS:
|
|
32
|
+
TLS: pieces_framework_1.Property.Checkbox({
|
|
34
33
|
displayName: 'Use TLS',
|
|
35
34
|
defaultValue: false,
|
|
36
35
|
required: true,
|
|
37
36
|
}),
|
|
38
37
|
},
|
|
39
38
|
}),
|
|
40
|
-
from:
|
|
39
|
+
from: pieces_framework_1.Property.ShortText({
|
|
41
40
|
displayName: 'From',
|
|
42
41
|
required: true,
|
|
43
42
|
}),
|
|
44
|
-
to:
|
|
43
|
+
to: pieces_framework_1.Property.Array({
|
|
45
44
|
displayName: 'To',
|
|
46
45
|
required: true,
|
|
47
46
|
}),
|
|
48
|
-
cc:
|
|
47
|
+
cc: pieces_framework_1.Property.Array({
|
|
49
48
|
displayName: 'CC',
|
|
50
49
|
required: false,
|
|
51
50
|
}),
|
|
52
|
-
replyTo:
|
|
51
|
+
replyTo: pieces_framework_1.Property.ShortText({
|
|
53
52
|
displayName: 'Reply To',
|
|
54
53
|
required: false,
|
|
55
54
|
}),
|
|
56
|
-
bcc:
|
|
55
|
+
bcc: pieces_framework_1.Property.Array({
|
|
57
56
|
displayName: 'BCC',
|
|
58
57
|
required: false,
|
|
59
58
|
}),
|
|
60
|
-
subject:
|
|
59
|
+
subject: pieces_framework_1.Property.ShortText({
|
|
61
60
|
displayName: 'Subject',
|
|
62
61
|
required: true,
|
|
63
62
|
}),
|
|
64
|
-
body:
|
|
63
|
+
body: pieces_framework_1.Property.LongText({
|
|
65
64
|
displayName: 'Body',
|
|
66
65
|
required: true,
|
|
67
66
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-email.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/smtp/src/lib/actions/send-email.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"send-email.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/smtp/src/lib/actions/send-email.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,oEAAoC;AAEvB,QAAA,SAAS,GAAG,IAAA,+BAAY,EAAC;IAClC,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,2CAA2C;IACxD,KAAK,EAAE;QACH,cAAc,EAAE,2BAAQ,CAAC,UAAU,CAAC;YAChC,WAAW,EAAE,gBAAgB;YAC7B,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE;gBACH,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;oBACrB,WAAW,EAAE,MAAM;oBACnB,QAAQ,EAAE,IAAI;iBACjB,CAAC;gBACF,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;oBACtB,WAAW,EAAE,OAAO;oBACpB,QAAQ,EAAE,IAAI;iBACjB,CAAC;gBACF,QAAQ,EAAE,2BAAQ,CAAC,UAAU,CAAC;oBAC1B,WAAW,EAAE,UAAU;oBACvB,QAAQ,EAAE,IAAI;iBACjB,CAAC;gBACF,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;oBACrB,WAAW,EAAE,MAAM;oBACnB,QAAQ,EAAE,IAAI;iBACjB,CAAC;gBACF,GAAG,EAAE,2BAAQ,CAAC,QAAQ,CAAC;oBACnB,WAAW,EAAE,SAAS;oBACtB,YAAY,EAAE,KAAK;oBACnB,Q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