@constructive-io/send-email-link-fn 2.4.2 → 2.5.0

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/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(condition: { id: $userId }, first: 1) {
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(condition: { id: $databaseId }, first: 1) {
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(condition: { name: "legal_terms_module" }) {
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(condition: { id: $userId }, first: 1) {
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(condition: { id: $databaseId }, first: 1) {
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(condition: { name: "legal_terms_module" }) {
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.4.2",
3
+ "version": "2.5.0",
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",
@@ -43,5 +43,5 @@
43
43
  "graphql-tag": "^2.12.6",
44
44
  "simple-smtp-server": "^0.7.2"
45
45
  },
46
- "gitHead": "4fd2c9be786ad9ae2213453276a69723435d5315"
46
+ "gitHead": "1ade5f10df8e38a5f87bbd2e2f7ec2ba97267079"
47
47
  }