n8n-nodes-syncmate 1.0.18 → 1.0.20

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.
@@ -28,11 +28,32 @@ class AssistroOAuth2Api {
28
28
  default: 'https://app.assistro.co/oauth/token',
29
29
  required: true,
30
30
  },
31
+ {
32
+ displayName: 'Client ID',
33
+ name: 'clientId',
34
+ type: 'hidden',
35
+ default: '7',
36
+ required: true,
37
+ },
38
+ {
39
+ displayName: 'Client Secret',
40
+ name: 'clientSecret',
41
+ type: 'hidden',
42
+ typeOptions: { password: true },
43
+ default: 'Hu7Q7ruHo9tOp2MEmBvBA45bn5atNESD7naEURHw',
44
+ required: true,
45
+ },
31
46
  {
32
47
  displayName: 'Scope',
33
48
  name: 'scope',
34
49
  type: 'hidden',
35
- default: '',
50
+ default: 'all',
51
+ },
52
+ {
53
+ displayName: 'Auth URI Query Parameters',
54
+ name: 'authQueryParameters',
55
+ type: 'hidden',
56
+ default: 'integration_name=n8n',
36
57
  },
37
58
  {
38
59
  displayName: 'Authentication',
@@ -15,8 +15,9 @@ class WhatsAuto {
15
15
  defaults: {
16
16
  name: 'WhatsAuto',
17
17
  },
18
- inputs: ['main'],
19
- outputs: ['main'],
18
+ inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
19
+ outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
20
+ usableAsTool: true,
20
21
  credentials: [
21
22
  {
22
23
  name: 'assistroOAuth2Api',
@@ -24,11 +25,31 @@ class WhatsAuto {
24
25
  },
25
26
  ],
26
27
  properties: [
28
+ {
29
+ displayName: 'Resource',
30
+ name: 'resource',
31
+ type: 'options',
32
+ noDataExpression: true,
33
+ options: [
34
+ {
35
+ name: 'Message',
36
+ value: 'message',
37
+ },
38
+ ],
39
+ default: 'message',
40
+ },
27
41
  {
28
42
  displayName: 'Operation',
29
43
  name: 'operation',
30
44
  type: 'options',
31
45
  noDataExpression: true,
46
+ displayOptions: {
47
+ show: {
48
+ resource: [
49
+ 'message',
50
+ ],
51
+ },
52
+ },
32
53
  options: [
33
54
  {
34
55
  name: 'Send Notification',
@@ -58,6 +79,7 @@ class WhatsAuto {
58
79
  required: true,
59
80
  displayOptions: {
60
81
  show: {
82
+ resource: ['message'],
61
83
  operation: ['normal'],
62
84
  },
63
85
  },
@@ -72,6 +94,7 @@ class WhatsAuto {
72
94
  required: true,
73
95
  displayOptions: {
74
96
  show: {
97
+ resource: ['message'],
75
98
  operation: ['normal', 'group'],
76
99
  },
77
100
  },
@@ -90,6 +113,7 @@ class WhatsAuto {
90
113
  },
91
114
  displayOptions: {
92
115
  show: {
116
+ resource: ['message'],
93
117
  operation: ['normal', 'group'],
94
118
  },
95
119
  },
@@ -129,6 +153,7 @@ class WhatsAuto {
129
153
  required: true,
130
154
  displayOptions: {
131
155
  show: {
156
+ resource: ['message'],
132
157
  operation: ['group'],
133
158
  },
134
159
  },
@@ -143,6 +168,7 @@ class WhatsAuto {
143
168
  required: true,
144
169
  displayOptions: {
145
170
  show: {
171
+ resource: ['message'],
146
172
  operation: ['newsletter'],
147
173
  },
148
174
  },
@@ -157,6 +183,7 @@ class WhatsAuto {
157
183
  required: true,
158
184
  displayOptions: {
159
185
  show: {
186
+ resource: ['message'],
160
187
  operation: ['newsletter'],
161
188
  },
162
189
  },
package/package.json CHANGED
@@ -1,63 +1,63 @@
1
- {
2
- "name": "n8n-nodes-syncmate",
3
- "version": "1.0.18",
4
- "description": "Send WhatsApp messages or media using SyncMate Assistro API.",
5
- "keywords": [
6
- "n8n-community-node-package",
7
- "whatsapp",
8
- "assistro",
9
- "syncmate",
10
- "automation"
11
- ],
12
- "license": "MIT",
13
- "homepage": "https://github.com/heratshah-collab/n8n-nodes-syncmate#readme",
14
- "author": {
15
- "name": "Assistro Technologies",
16
- "email": "support@assistro.co"
17
- },
18
- "repository": {
19
- "type": "git",
20
- "url": "git+https://github.com/heratshah-collab/n8n-nodes-syncmate.git"
21
- },
22
- "bugs": {
23
- "url": "https://github.com/heratshah-collab/n8n-nodes-syncmate/issues"
24
- },
25
- "engines": {
26
- "node": ">=18.10",
27
- "pnpm": ">=8.0"
28
- },
29
- "main": "index.js",
30
- "scripts": {
31
- "build": "tsc && gulp build:icons",
32
- "dev": "tsc --watch",
33
- "format": "prettier nodes credentials --write",
34
- "lint": "eslint nodes/**/*.ts credentials/**/*.ts",
35
- "lintfix": "eslint nodes credentials --fix",
36
- "prepublishOnly": "npm run build"
37
- },
38
- "files": [
39
- "dist"
40
- ],
41
- "n8n": {
42
- "n8nNodesApiVersion": 1,
43
- "nodes": [
44
- "dist/nodes/WhatsAuto/WhatsAuto.node.js"
45
- ],
46
- "credentials": [
47
- "dist/credentials/AssistroOAuth2Api.credentials.js"
48
- ]
49
- },
50
- "devDependencies": {
51
- "@types/node": "^20.14.9",
52
- "@typescript-eslint/parser": "~7.15.0",
53
- "eslint": "^8.56.0",
54
- "eslint-plugin-n8n-nodes-base": "^1.16.1",
55
- "gulp": "^4.0.2",
56
- "n8n-workflow": "^1.53.0",
57
- "prettier": "^3.3.2",
58
- "typescript": "~5.5.3"
59
- },
60
- "peerDependencies": {
61
- "n8n-workflow": "*"
62
- }
63
- }
1
+ {
2
+ "name": "n8n-nodes-syncmate",
3
+ "version": "1.0.20",
4
+ "description": "Send WhatsApp messages or media using SyncMate Assistro API.",
5
+ "keywords": [
6
+ "n8n-community-node-package",
7
+ "whatsapp",
8
+ "assistro",
9
+ "syncmate",
10
+ "automation"
11
+ ],
12
+ "license": "MIT",
13
+ "homepage": "https://github.com/heratshah-collab/n8n-nodes-syncmate#readme",
14
+ "author": {
15
+ "name": "Assistro Technologies",
16
+ "email": "support@assistro.co"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/heratshah-collab/n8n-nodes-syncmate.git"
21
+ },
22
+ "bugs": {
23
+ "url": "https://github.com/heratshah-collab/n8n-nodes-syncmate/issues"
24
+ },
25
+ "engines": {
26
+ "node": ">=18.10",
27
+ "pnpm": ">=8.0"
28
+ },
29
+ "main": "index.js",
30
+ "scripts": {
31
+ "build": "tsc && gulp build:icons",
32
+ "dev": "tsc --watch",
33
+ "format": "prettier nodes credentials --write",
34
+ "lint": "eslint nodes/**/*.ts credentials/**/*.ts",
35
+ "lintfix": "eslint nodes credentials --fix",
36
+ "prepublishOnly": "npm run build"
37
+ },
38
+ "files": [
39
+ "dist"
40
+ ],
41
+ "n8n": {
42
+ "n8nNodesApiVersion": 1,
43
+ "nodes": [
44
+ "dist/nodes/WhatsAuto/WhatsAuto.node.js"
45
+ ],
46
+ "credentials": [
47
+ "dist/credentials/AssistroOAuth2Api.credentials.js"
48
+ ]
49
+ },
50
+ "devDependencies": {
51
+ "@types/node": "^20.14.9",
52
+ "@typescript-eslint/parser": "~7.15.0",
53
+ "eslint": "^8.56.0",
54
+ "eslint-plugin-n8n-nodes-base": "^1.16.1",
55
+ "gulp": "^4.0.2",
56
+ "n8n-workflow": "^1.119.1",
57
+ "prettier": "^3.3.2",
58
+ "typescript": "~5.5.3"
59
+ },
60
+ "peerDependencies": {
61
+ "n8n-workflow": "*"
62
+ }
63
+ }