@constructive-io/send-email-link-fn 2.4.2 → 2.5.1
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/README.md +12 -0
- package/esm/index.js +3 -3
- package/index.js +3 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @constructive-io/send-email-link-fn
|
|
2
2
|
|
|
3
|
+
<p align="center" width="100%">
|
|
4
|
+
<img height="250" src="https://raw.githubusercontent.com/constructive-io/constructive/refs/heads/main/assets/outline-logo.svg" />
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<p align="center" width="100%">
|
|
8
|
+
<a href="https://github.com/constructive-io/constructive/actions/workflows/run-tests.yaml">
|
|
9
|
+
<img height="20" src="https://github.com/constructive-io/constructive/actions/workflows/run-tests.yaml/badge.svg" />
|
|
10
|
+
</a>
|
|
11
|
+
<a href="https://github.com/constructive-io/constructive/blob/main/LICENSE"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
|
|
12
|
+
<a href="https://www.npmjs.com/package/@constructive-io/send-email-link-fn"><img height="20" src="https://img.shields.io/github/package-json/v/constructive-io/constructive?filename=functions%2Fsend-email-link%2Fpackage.json"/></a>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
3
15
|
Knative-compatible email link function used with the Constructive jobs system. It is designed to be invoked by `@constructive-io/knative-job-worker` as an HTTP function named `send-email-link`.
|
|
4
16
|
|
|
5
17
|
The function:
|
package/esm/index.js
CHANGED
|
@@ -12,7 +12,7 @@ const logger = createLogger('send-email-link');
|
|
|
12
12
|
const app = createJobApp();
|
|
13
13
|
const GetUser = gql `
|
|
14
14
|
query GetUser($userId: UUID!) {
|
|
15
|
-
users(
|
|
15
|
+
users(where: { id: { equalTo: $userId } }, first: 1) {
|
|
16
16
|
nodes {
|
|
17
17
|
username
|
|
18
18
|
displayName
|
|
@@ -23,7 +23,7 @@ const GetUser = gql `
|
|
|
23
23
|
`;
|
|
24
24
|
const GetDatabaseInfo = gql `
|
|
25
25
|
query GetDatabaseInfo($databaseId: UUID!) {
|
|
26
|
-
databases(
|
|
26
|
+
databases(where: { id: { equalTo: $databaseId } }, first: 1) {
|
|
27
27
|
nodes {
|
|
28
28
|
sites {
|
|
29
29
|
nodes {
|
|
@@ -40,7 +40,7 @@ const GetDatabaseInfo = gql `
|
|
|
40
40
|
theme
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
siteModules(
|
|
43
|
+
siteModules(where: { name: { equalTo: "legal_terms_module" } }) {
|
|
44
44
|
nodes {
|
|
45
45
|
data
|
|
46
46
|
}
|
package/index.js
CHANGED
|
@@ -18,7 +18,7 @@ const logger = (0, logger_1.createLogger)('send-email-link');
|
|
|
18
18
|
const app = (0, knative_job_fn_1.createJobApp)();
|
|
19
19
|
const GetUser = (0, graphql_tag_1.default) `
|
|
20
20
|
query GetUser($userId: UUID!) {
|
|
21
|
-
users(
|
|
21
|
+
users(where: { id: { equalTo: $userId } }, first: 1) {
|
|
22
22
|
nodes {
|
|
23
23
|
username
|
|
24
24
|
displayName
|
|
@@ -29,7 +29,7 @@ const GetUser = (0, graphql_tag_1.default) `
|
|
|
29
29
|
`;
|
|
30
30
|
const GetDatabaseInfo = (0, graphql_tag_1.default) `
|
|
31
31
|
query GetDatabaseInfo($databaseId: UUID!) {
|
|
32
|
-
databases(
|
|
32
|
+
databases(where: { id: { equalTo: $databaseId } }, first: 1) {
|
|
33
33
|
nodes {
|
|
34
34
|
sites {
|
|
35
35
|
nodes {
|
|
@@ -46,7 +46,7 @@ const GetDatabaseInfo = (0, graphql_tag_1.default) `
|
|
|
46
46
|
theme
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
siteModules(
|
|
49
|
+
siteModules(where: { name: { equalTo: "legal_terms_module" } }) {
|
|
50
50
|
nodes {
|
|
51
51
|
data
|
|
52
52
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/send-email-link-fn",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "Knative function to send email links (invite, password reset, email verification) using Constructive jobs",
|
|
5
5
|
"author": "Constructive <developers@constructive.io>",
|
|
6
6
|
"homepage": "https://github.com/constructive-io/constructive",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"makage": "^0.1.12"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@constructive-io/knative-job-fn": "^1.4.
|
|
36
|
+
"@constructive-io/knative-job-fn": "^1.4.3",
|
|
37
37
|
"@constructive-io/postmaster": "^1.5.2",
|
|
38
38
|
"@launchql/mjml": "0.1.1",
|
|
39
39
|
"@launchql/styled-email": "0.1.0",
|
|
40
|
-
"@pgpmjs/env": "^2.15.
|
|
41
|
-
"@pgpmjs/logger": "^2.4.
|
|
40
|
+
"@pgpmjs/env": "^2.15.3",
|
|
41
|
+
"@pgpmjs/logger": "^2.4.3",
|
|
42
42
|
"graphql-request": "^7.1.2",
|
|
43
43
|
"graphql-tag": "^2.12.6",
|
|
44
|
-
"simple-smtp-server": "^0.7.
|
|
44
|
+
"simple-smtp-server": "^0.7.3"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "8afe6b19da82facbe5f3365762ba52888af5b3c9"
|
|
47
47
|
}
|