@sanoma-ai/connector-resend 0.4.1 → 0.4.3
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/dist/connector.js +2 -12
- package/dist/connector.js.map +1 -1
- package/logo-dark.svg +1 -0
- package/logo.svg +1 -0
- package/package.json +12 -4
package/dist/connector.js
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { defineConnector } from "@sanoma-ai/workflows";
|
|
1
|
+
import { defineConnector, vendorInfo } from "@sanoma-ai/workflows";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
/**
|
|
4
|
-
* Resend's lettermark, from https://resend.com/brand (resend-icon-black.svg, resend-icon-white.svg),
|
|
5
|
-
* in its official colours, its view box cropped to the mark.
|
|
6
|
-
*/
|
|
7
|
-
const lettermark = (fill) => `<svg xmlns="http://www.w3.org/2000/svg" viewBox="450 450 900 900"><path fill="${fill}" d="M1000.46 450C1174.77 450 1278.43 553.669 1278.43 691.282C1278.43 828.896 1174.77 932.563 1000.46 932.563H912.382L1350 1350H1040.82L707.794 1033.48C683.944 1011.47 672.936 985.781 672.935 963.765C672.935 932.572 694.959 905.049 737.161 893.122L908.712 847.244C973.85 829.812 1018.81 779.353 1018.81 713.298C1018.8 632.567 952.745 585.78 871.095 585.78H450V450H1000.46Z"/></svg>`;
|
|
8
3
|
/**
|
|
9
4
|
* Resend's Broadcasts API (https://resend.com/docs/api-reference/broadcasts) and its one-email send
|
|
10
5
|
* (https://resend.com/docs/api-reference/emails/send-email).
|
|
@@ -48,10 +43,5 @@ export const resendOps = defineConnector("resend", {
|
|
|
48
43
|
output: z.object({ id: z.string() }),
|
|
49
44
|
},
|
|
50
45
|
},
|
|
51
|
-
},
|
|
52
|
-
title: "Resend",
|
|
53
|
-
logo: { svg: lettermark("black"), dark: lettermark("#FDFDFD") },
|
|
54
|
-
package: "@sanoma-ai/connector-resend",
|
|
55
|
-
homepage: "https://github.com/Sanoma-AI/sanoma/tree/main/connectors/resend#readme",
|
|
56
|
-
});
|
|
46
|
+
}, vendorInfo(import.meta.url));
|
|
57
47
|
//# sourceMappingURL=connector.js.map
|
package/dist/connector.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector.js","sourceRoot":"","sources":["../src/connector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"connector.js","sourceRoot":"","sources":["../src/connector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CACtC,QAAQ,EACR;IACE,SAAS,EAAE;QACT,MAAM,EAAE;YACN,MAAM,EAAE,OAAO;YACf,WAAW,EAAE,qDAAqD;YAClE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;gBACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;gBAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;gBAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;gBAC1B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;aACjB,CAAC;YACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;SACrC;QACD,IAAI,EAAE;YACJ,MAAM,EAAE,MAAM;YACd,WAAW,EAAE,sEAAsE;YACnF,OAAO,EAAE,EAAE,MAAM,EAAE,wBAAwB,EAAE;YAC7C,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;YACnC,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+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="450 450 900 900"><path fill="#FDFDFD" d="M1000.46 450C1174.77 450 1278.43 553.669 1278.43 691.282C1278.43 828.896 1174.77 932.563 1000.46 932.563H912.382L1350 1350H1040.82L707.794 1033.48C683.944 1011.47 672.936 985.781 672.935 963.765C672.935 932.572 694.959 905.049 737.161 893.122L908.712 847.244C973.85 829.812 1018.81 779.353 1018.81 713.298C1018.8 632.567 952.745 585.78 871.095 585.78H450V450H1000.46Z"/></svg>
|
package/logo.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="450 450 900 900"><path fill="black" d="M1000.46 450C1174.77 450 1278.43 553.669 1278.43 691.282C1278.43 828.896 1174.77 932.563 1000.46 932.563H912.382L1350 1350H1040.82L707.794 1033.48C683.944 1011.47 672.936 985.781 672.935 963.765C672.935 932.572 694.959 905.049 737.161 893.122L908.712 847.244C973.85 829.812 1018.81 779.353 1018.81 713.298C1018.8 632.567 952.745 585.78 871.095 585.78H450V450H1000.46Z"/></svg>
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanoma-ai/connector-resend",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Resend Broadcasts and email operations for Sanoma workflows",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"connector",
|
|
7
7
|
"email",
|
|
8
8
|
"newsletter",
|
|
9
9
|
"resend",
|
|
10
|
-
"sanoma"
|
|
10
|
+
"sanoma",
|
|
11
|
+
"sanoma-connector"
|
|
11
12
|
],
|
|
12
13
|
"homepage": "https://github.com/Sanoma-AI/sanoma/tree/main/connectors/resend#readme",
|
|
13
14
|
"bugs": "https://github.com/Sanoma-AI/sanoma/issues",
|
|
@@ -20,6 +21,8 @@
|
|
|
20
21
|
"files": [
|
|
21
22
|
"dist",
|
|
22
23
|
"features",
|
|
24
|
+
"logo.svg",
|
|
25
|
+
"logo-dark.svg",
|
|
23
26
|
"README.md",
|
|
24
27
|
"LICENSE"
|
|
25
28
|
],
|
|
@@ -45,17 +48,22 @@
|
|
|
45
48
|
"access": "public"
|
|
46
49
|
},
|
|
47
50
|
"devDependencies": {
|
|
48
|
-
"@sanoma-ai/workflows": "0.
|
|
51
|
+
"@sanoma-ai/workflows": "0.5.0",
|
|
49
52
|
"msw": "^3.0.2",
|
|
50
53
|
"zod": "^4.6.5"
|
|
51
54
|
},
|
|
52
55
|
"peerDependencies": {
|
|
53
|
-
"@sanoma-ai/workflows": "^0.
|
|
56
|
+
"@sanoma-ai/workflows": "^0.5.0",
|
|
54
57
|
"zod": "^4"
|
|
55
58
|
},
|
|
56
59
|
"engines": {
|
|
57
60
|
"node": ">=24"
|
|
58
61
|
},
|
|
62
|
+
"sanoma": {
|
|
63
|
+
"title": "Resend",
|
|
64
|
+
"logo": "logo.svg",
|
|
65
|
+
"logoDark": "logo-dark.svg"
|
|
66
|
+
},
|
|
59
67
|
"scripts": {
|
|
60
68
|
"build": "tsc -p tsconfig.build.json",
|
|
61
69
|
"clean": "rm -rf dist",
|