n8n-nodes-notiflo 0.1.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/LICENSE.md +19 -0
- package/README.md +247 -0
- package/dist/credentials/NotifloApi.credentials.d.ts +10 -0
- package/dist/credentials/NotifloApi.credentials.js +50 -0
- package/dist/credentials/NotifloApi.credentials.js.map +1 -0
- package/dist/credentials/notiflo.svg +18 -0
- package/dist/icons/notiflo.svg +18 -0
- package/dist/nodes/Notiflo/Notiflo.node.d.ts +5 -0
- package/dist/nodes/Notiflo/Notiflo.node.js +347 -0
- package/dist/nodes/Notiflo/Notiflo.node.js.map +1 -0
- package/dist/nodes/Notiflo/notiflo.svg +18 -0
- package/dist/package.json +56 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +56 -0
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Notiflo = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
class Notiflo {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.description = {
|
|
8
|
+
displayName: 'Notiflo',
|
|
9
|
+
name: 'notiflo',
|
|
10
|
+
icon: 'file:notiflo.svg',
|
|
11
|
+
group: ['transform'],
|
|
12
|
+
version: 1,
|
|
13
|
+
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
14
|
+
description: 'Send WhatsApp messages using Notiflo',
|
|
15
|
+
defaults: {
|
|
16
|
+
name: 'Notiflo',
|
|
17
|
+
},
|
|
18
|
+
inputs: ['main'],
|
|
19
|
+
outputs: ['main'],
|
|
20
|
+
usableAsTool: true,
|
|
21
|
+
credentials: [
|
|
22
|
+
{
|
|
23
|
+
name: 'notifloApi',
|
|
24
|
+
required: true,
|
|
25
|
+
},
|
|
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
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'Operation',
|
|
43
|
+
name: 'operation',
|
|
44
|
+
type: 'options',
|
|
45
|
+
noDataExpression: true,
|
|
46
|
+
displayOptions: {
|
|
47
|
+
show: {
|
|
48
|
+
resource: ['message'],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
options: [
|
|
52
|
+
{
|
|
53
|
+
name: 'Send Text',
|
|
54
|
+
value: 'sendText',
|
|
55
|
+
description: 'Send a text message',
|
|
56
|
+
action: 'Send a text message',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'Send Media',
|
|
60
|
+
value: 'sendMedia',
|
|
61
|
+
description: 'Send a media message (image, video, document)',
|
|
62
|
+
action: 'Send a media message',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'Send Template',
|
|
66
|
+
value: 'sendTemplate',
|
|
67
|
+
description: 'Send a template message',
|
|
68
|
+
action: 'Send a template message',
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
default: 'sendText',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
displayName: 'Phone Number',
|
|
75
|
+
name: 'phoneNumber',
|
|
76
|
+
type: 'string',
|
|
77
|
+
required: true,
|
|
78
|
+
displayOptions: {
|
|
79
|
+
show: {
|
|
80
|
+
resource: ['message'],
|
|
81
|
+
operation: ['sendText', 'sendMedia'],
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
default: '',
|
|
85
|
+
placeholder: '+628123456789',
|
|
86
|
+
description: 'The recipient phone number in international format (e.g., +628123456789)',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
displayName: 'Message',
|
|
90
|
+
name: 'message',
|
|
91
|
+
type: 'string',
|
|
92
|
+
required: true,
|
|
93
|
+
displayOptions: {
|
|
94
|
+
show: {
|
|
95
|
+
resource: ['message'],
|
|
96
|
+
operation: ['sendText'],
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
default: '',
|
|
100
|
+
typeOptions: {
|
|
101
|
+
rows: 4,
|
|
102
|
+
},
|
|
103
|
+
description: 'The text message to send',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
displayName: 'Media Type',
|
|
107
|
+
name: 'mediaType',
|
|
108
|
+
type: 'options',
|
|
109
|
+
displayOptions: {
|
|
110
|
+
show: {
|
|
111
|
+
resource: ['message'],
|
|
112
|
+
operation: ['sendMedia'],
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
options: [
|
|
116
|
+
{
|
|
117
|
+
name: 'Image',
|
|
118
|
+
value: 'image',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: 'Video',
|
|
122
|
+
value: 'video',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'Document',
|
|
126
|
+
value: 'document',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'Audio',
|
|
130
|
+
value: 'audio',
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
default: 'image',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
displayName: 'Media URL',
|
|
137
|
+
name: 'mediaUrl',
|
|
138
|
+
type: 'string',
|
|
139
|
+
required: true,
|
|
140
|
+
displayOptions: {
|
|
141
|
+
show: {
|
|
142
|
+
resource: ['message'],
|
|
143
|
+
operation: ['sendMedia'],
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
default: '',
|
|
147
|
+
placeholder: 'https://example.com/image.jpg',
|
|
148
|
+
description: 'URL of the media file to send',
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
displayName: 'Caption',
|
|
152
|
+
name: 'caption',
|
|
153
|
+
type: 'string',
|
|
154
|
+
displayOptions: {
|
|
155
|
+
show: {
|
|
156
|
+
resource: ['message'],
|
|
157
|
+
operation: ['sendMedia'],
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
default: '',
|
|
161
|
+
description: 'Caption for the media file',
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
displayName: 'Filename',
|
|
165
|
+
name: 'filename',
|
|
166
|
+
type: 'string',
|
|
167
|
+
displayOptions: {
|
|
168
|
+
show: {
|
|
169
|
+
resource: ['message'],
|
|
170
|
+
operation: ['sendMedia'],
|
|
171
|
+
mediaType: ['document'],
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
default: '',
|
|
175
|
+
description: 'Filename for the document',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
displayName: 'Phone Number',
|
|
179
|
+
name: 'phoneNumber',
|
|
180
|
+
type: 'string',
|
|
181
|
+
required: true,
|
|
182
|
+
displayOptions: {
|
|
183
|
+
show: {
|
|
184
|
+
resource: ['message'],
|
|
185
|
+
operation: ['sendTemplate'],
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
default: '',
|
|
189
|
+
placeholder: '+628123456789',
|
|
190
|
+
description: 'The recipient phone number in international format',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
displayName: 'Template Name',
|
|
194
|
+
name: 'templateName',
|
|
195
|
+
type: 'string',
|
|
196
|
+
required: true,
|
|
197
|
+
displayOptions: {
|
|
198
|
+
show: {
|
|
199
|
+
resource: ['message'],
|
|
200
|
+
operation: ['sendTemplate'],
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
default: '',
|
|
204
|
+
description: 'Name of the approved WhatsApp template',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
displayName: 'Language Code',
|
|
208
|
+
name: 'languageCode',
|
|
209
|
+
type: 'string',
|
|
210
|
+
displayOptions: {
|
|
211
|
+
show: {
|
|
212
|
+
resource: ['message'],
|
|
213
|
+
operation: ['sendTemplate'],
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
default: 'en',
|
|
217
|
+
description: 'Language code for the template (e.g., en, ID)',
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
displayName: 'Template Parameters',
|
|
221
|
+
name: 'templateParameters',
|
|
222
|
+
type: 'json',
|
|
223
|
+
displayOptions: {
|
|
224
|
+
show: {
|
|
225
|
+
resource: ['message'],
|
|
226
|
+
operation: ['sendTemplate'],
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
default: '[]',
|
|
230
|
+
description: 'Array of parameter values for template variables',
|
|
231
|
+
},
|
|
232
|
+
],
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
async execute() {
|
|
236
|
+
const items = this.getInputData();
|
|
237
|
+
const returnData = [];
|
|
238
|
+
const resource = this.getNodeParameter('resource', 0);
|
|
239
|
+
const operation = this.getNodeParameter('operation', 0);
|
|
240
|
+
for (let i = 0; i < items.length; i++) {
|
|
241
|
+
try {
|
|
242
|
+
if (resource === 'message') {
|
|
243
|
+
const credentials = await this.getCredentials('notifloApi');
|
|
244
|
+
const baseUrl = credentials.baseUrl;
|
|
245
|
+
if (operation === 'sendText') {
|
|
246
|
+
const phoneNumber = this.getNodeParameter('phoneNumber', i);
|
|
247
|
+
const message = this.getNodeParameter('message', i);
|
|
248
|
+
const body = {
|
|
249
|
+
channel: 'whatsapp',
|
|
250
|
+
message_type: 'text',
|
|
251
|
+
phone_number: phoneNumber,
|
|
252
|
+
content: message,
|
|
253
|
+
};
|
|
254
|
+
const responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'notifloApi', {
|
|
255
|
+
method: 'POST',
|
|
256
|
+
url: `${baseUrl}/messages/send`,
|
|
257
|
+
body,
|
|
258
|
+
json: true,
|
|
259
|
+
});
|
|
260
|
+
returnData.push({ json: responseData });
|
|
261
|
+
}
|
|
262
|
+
else if (operation === 'sendMedia') {
|
|
263
|
+
const phoneNumber = this.getNodeParameter('phoneNumber', i);
|
|
264
|
+
const mediaType = this.getNodeParameter('mediaType', i);
|
|
265
|
+
const mediaUrl = this.getNodeParameter('mediaUrl', i);
|
|
266
|
+
const caption = this.getNodeParameter('caption', i, '');
|
|
267
|
+
const mediaObject = {
|
|
268
|
+
link: mediaUrl,
|
|
269
|
+
};
|
|
270
|
+
if (caption) {
|
|
271
|
+
mediaObject.caption = caption;
|
|
272
|
+
}
|
|
273
|
+
if (mediaType === 'document') {
|
|
274
|
+
const filename = this.getNodeParameter('filename', i, '');
|
|
275
|
+
if (filename) {
|
|
276
|
+
mediaObject.filename = filename;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
const body = {
|
|
280
|
+
channel: 'whatsapp',
|
|
281
|
+
message_type: mediaType,
|
|
282
|
+
phone_number: phoneNumber,
|
|
283
|
+
[mediaType]: mediaObject,
|
|
284
|
+
};
|
|
285
|
+
const responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'notifloApi', {
|
|
286
|
+
method: 'POST',
|
|
287
|
+
url: `${baseUrl}/messages/send`,
|
|
288
|
+
body,
|
|
289
|
+
json: true,
|
|
290
|
+
});
|
|
291
|
+
returnData.push({ json: responseData });
|
|
292
|
+
}
|
|
293
|
+
else if (operation === 'sendTemplate') {
|
|
294
|
+
const phoneNumber = this.getNodeParameter('phoneNumber', i);
|
|
295
|
+
const templateName = this.getNodeParameter('templateName', i);
|
|
296
|
+
const languageCode = this.getNodeParameter('languageCode', i);
|
|
297
|
+
const templateParametersJson = this.getNodeParameter('templateParameters', i, '[]');
|
|
298
|
+
let parameters = [];
|
|
299
|
+
try {
|
|
300
|
+
parameters = JSON.parse(templateParametersJson);
|
|
301
|
+
}
|
|
302
|
+
catch {
|
|
303
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Template Parameters must be valid JSON array', { itemIndex: i });
|
|
304
|
+
}
|
|
305
|
+
const body = {
|
|
306
|
+
channel: 'whatsapp',
|
|
307
|
+
message_type: 'template',
|
|
308
|
+
phone_number: phoneNumber,
|
|
309
|
+
template: {
|
|
310
|
+
name: templateName,
|
|
311
|
+
language: {
|
|
312
|
+
code: languageCode,
|
|
313
|
+
},
|
|
314
|
+
components: [
|
|
315
|
+
{
|
|
316
|
+
type: 'body',
|
|
317
|
+
parameters: parameters.map((param) => ({
|
|
318
|
+
type: 'text',
|
|
319
|
+
text: param,
|
|
320
|
+
})),
|
|
321
|
+
},
|
|
322
|
+
],
|
|
323
|
+
},
|
|
324
|
+
};
|
|
325
|
+
const responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'notifloApi', {
|
|
326
|
+
method: 'POST',
|
|
327
|
+
url: `${baseUrl}/messages/send`,
|
|
328
|
+
body,
|
|
329
|
+
json: true,
|
|
330
|
+
});
|
|
331
|
+
returnData.push({ json: responseData });
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
catch (error) {
|
|
336
|
+
if (this.continueOnFail()) {
|
|
337
|
+
returnData.push({ json: { error: error.message } });
|
|
338
|
+
continue;
|
|
339
|
+
}
|
|
340
|
+
throw error;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
return [returnData];
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
exports.Notiflo = Notiflo;
|
|
347
|
+
//# sourceMappingURL=Notiflo.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notiflo.node.js","sourceRoot":"","sources":["../../../nodes/Notiflo/Notiflo.node.ts"],"names":[],"mappings":";;;AAAA,+CAOsB;AAEtB,MAAa,OAAO;IAApB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,sCAAsC;YACnD,QAAQ,EAAE;g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svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
+
<svg width="100%" height="100%" viewBox="0 0 235 235" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
|
4
|
+
<g transform="matrix(0.32,0,0,0.32,-212.898,-404.283)">
|
|
5
|
+
<g>
|
|
6
|
+
<g transform="matrix(1.06447,0,0,3.39538,70.1728,-485.344)">
|
|
7
|
+
<path d="M1208.61,565.252C1208.61,544.308 1154.37,527.304 1087.56,527.304L719.278,527.304C652.471,527.304 598.232,544.308 598.232,565.252L598.232,680.744C598.232,701.689 652.471,718.693 719.278,718.693L1087.56,718.693C1154.37,718.693 1208.61,701.689 1208.61,680.744L1208.61,565.252Z" style="fill:rgb(177,254,254);"/>
|
|
8
|
+
<path d="M1247.75,565.252C1247.75,537.535 1175.97,515.032 1087.56,515.032C1087.56,515.032 719.278,515.032 719.278,515.032C630.867,515.032 559.089,537.535 559.089,565.252C559.089,565.252 559.089,680.744 559.089,680.744C559.089,708.461 630.867,730.964 719.278,730.964L1087.56,730.964C1175.97,730.964 1247.75,708.461 1247.75,680.744L1247.75,565.252ZM1208.61,565.252C1208.61,544.308 1154.37,527.304 1087.56,527.304L719.278,527.304C652.471,527.304 598.232,544.308 598.232,565.252L598.232,680.744C598.232,701.689 652.471,718.693 719.278,718.693L1087.56,718.693C1154.37,718.693 1208.61,701.689 1208.61,680.744L1208.61,565.252Z" style="fill:rgb(0,112,176);"/>
|
|
9
|
+
</g>
|
|
10
|
+
<g transform="matrix(1.42132,0,0,1.31367,619.085,594.575)">
|
|
11
|
+
<path d="M461.688,598.642L437.888,598.642L443.088,625.042L422.288,607.642L410.888,628.242L435.288,636.242L410.688,644.842L423.088,666.442L442.888,648.642L438.088,674.642L461.488,674.642L456.488,648.642L476.488,666.242L488.488,645.042L463.888,636.642L488.488,628.042L477.288,607.642L456.488,625.042L461.688,598.642Z" style="fill:rgb(242,151,91);fill-rule:nonzero;stroke:rgb(242,151,91);stroke-width:0.73px;"/>
|
|
12
|
+
</g>
|
|
13
|
+
<g transform="matrix(3.55882,0,0,3.5294,-956.081,-806.174)">
|
|
14
|
+
<path d="M580.088,746.642L614.088,746.642L614.088,681.442C614.088,651.442 596.888,633.842 571.088,633.842C556.088,633.842 544.088,640.442 537.288,649.842L537.288,635.042L503.088,635.042L503.088,746.642L537.288,746.642L537.288,686.042C537.288,670.842 545.688,662.442 558.688,662.442C571.688,662.442 580.088,670.842 580.088,686.042L580.088,746.642Z" style="fill:rgb(14,152,232);fill-rule:nonzero;stroke:rgb(13,152,232);stroke-width:0.28px;"/>
|
|
15
|
+
</g>
|
|
16
|
+
</g>
|
|
17
|
+
</g>
|
|
18
|
+
</svg>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-notiflo",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Notiflo WhatsApp Business API Community Node for n8n",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://github.com/gn-jr/n8n-nodes-notiflo#readme",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"n8n-community-node-package",
|
|
9
|
+
"n8n",
|
|
10
|
+
"whatsapp",
|
|
11
|
+
"notiflo",
|
|
12
|
+
"whatsapp-business-api"
|
|
13
|
+
],
|
|
14
|
+
"author": {
|
|
15
|
+
"name": "Ganjar Nugraha",
|
|
16
|
+
"email": "gnjr@notiflo.id"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/gn-jr/n8n-nodes-notiflo.git"
|
|
21
|
+
},
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/gn-jr/n8n-nodes-notiflo/issues"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "n8n-node build",
|
|
30
|
+
"build:watch": "tsc --watch",
|
|
31
|
+
"dev": "n8n-node dev",
|
|
32
|
+
"lint": "n8n-node lint",
|
|
33
|
+
"lint:fix": "n8n-node lint --fix",
|
|
34
|
+
"release": "n8n-node release"
|
|
35
|
+
},
|
|
36
|
+
"n8n": {
|
|
37
|
+
"n8nNodesApiVersion": 1,
|
|
38
|
+
"strict": true,
|
|
39
|
+
"credentials": [
|
|
40
|
+
"dist/credentials/NotifloApi.credentials.js"
|
|
41
|
+
],
|
|
42
|
+
"nodes": [
|
|
43
|
+
"dist/nodes/Notiflo/Notiflo.node.js"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@n8n/node-cli": "*",
|
|
48
|
+
"eslint": "9.32.0",
|
|
49
|
+
"prettier": "3.6.2",
|
|
50
|
+
"release-it": "^19.0.4",
|
|
51
|
+
"typescript": "5.9.2"
|
|
52
|
+
},
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"n8n-workflow": "*"
|
|
55
|
+
}
|
|
56
|
+
}
|