n8n-nodes-syncmate 1.0.17 → 1.0.19
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.
|
@@ -7,7 +7,7 @@ class WhatsAuto {
|
|
|
7
7
|
this.description = {
|
|
8
8
|
displayName: 'WhatsApp Notifications by SyncMate',
|
|
9
9
|
name: 'whatsAuto',
|
|
10
|
-
icon: 'file:
|
|
10
|
+
icon: 'file:whatsauto.svg',
|
|
11
11
|
group: ['output'],
|
|
12
12
|
version: 1,
|
|
13
13
|
subtitle: '={{$parameter["operation"]}}',
|
|
@@ -15,8 +15,9 @@ class WhatsAuto {
|
|
|
15
15
|
defaults: {
|
|
16
16
|
name: 'WhatsAuto',
|
|
17
17
|
},
|
|
18
|
-
inputs: [
|
|
19
|
-
outputs: [
|
|
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
|
},
|
|
@@ -236,6 +263,7 @@ class WhatsAuto {
|
|
|
236
263
|
url: 'https://app.assistro.co/api/v1/wapushplus/singlePass/message',
|
|
237
264
|
headers: {
|
|
238
265
|
'Content-Type': 'application/json',
|
|
266
|
+
'Integration': 'n8n',
|
|
239
267
|
},
|
|
240
268
|
body,
|
|
241
269
|
json: true,
|
|
@@ -28,6 +28,21 @@ 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',
|
|
@@ -38,7 +53,7 @@ class AssistroOAuth2Api {
|
|
|
38
53
|
displayName: 'Auth URI Query Parameters',
|
|
39
54
|
name: 'authQueryParameters',
|
|
40
55
|
type: 'hidden',
|
|
41
|
-
default: '',
|
|
56
|
+
default: 'integration_name=n8n',
|
|
42
57
|
},
|
|
43
58
|
{
|
|
44
59
|
displayName: 'Authentication',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-syncmate",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "Send WhatsApp messages or media using SyncMate Assistro API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"eslint": "^8.56.0",
|
|
54
54
|
"eslint-plugin-n8n-nodes-base": "^1.16.1",
|
|
55
55
|
"gulp": "^4.0.2",
|
|
56
|
-
"n8n-workflow": "^1.
|
|
56
|
+
"n8n-workflow": "^1.119.1",
|
|
57
57
|
"prettier": "^3.3.2",
|
|
58
58
|
"typescript": "~5.5.3"
|
|
59
59
|
},
|