n8n-nodes-warecover-v1 2.0.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.

Potentially problematic release.


This version of n8n-nodes-warecover-v1 might be problematic. Click here for more details.

package/README.md ADDED
@@ -0,0 +1,65 @@
1
+ # Warecover — WhatsApp Node for n8n
2
+
3
+ Send WhatsApp messages from your n8n workflows using your Warecover account.
4
+
5
+ ---
6
+
7
+ ## Install
8
+
9
+ 1. Open n8n → **Settings → Community Nodes**
10
+ 2. Click **Install**
11
+ 3. Enter: `n8n-nodes-warecover-v2`
12
+ 4. Restart n8n
13
+
14
+ ---
15
+
16
+ ## Connect Your Account
17
+
18
+ 1. Go to **Credentials → New → Warecover API**
19
+ 2. Enter your:
20
+ - **Access Token** — from Warecover → Channel → API Details
21
+ - **Phone Number ID** — from same page
22
+ 3. Save
23
+
24
+ > Your Access Token is shown **only once** in Warecover. Save it immediately!
25
+
26
+ ---
27
+
28
+ ## Available Actions
29
+
30
+ | Action | Notes |
31
+ |---|---|
32
+ | Send Text Message | ⚠️ 24-hour session required |
33
+ | Send Template Message | ✅ Works anytime |
34
+ | Send Image | ⚠️ 24-hour session required |
35
+ | Send Document | ⚠️ 24-hour session required |
36
+ | Send Audio | ⚠️ 24-hour session required |
37
+ | Send Video | ⚠️ 24-hour session required |
38
+ | Send Location | ⚠️ 24-hour session required |
39
+ | Send Buttons | ⚠️ 24-hour session required |
40
+ | Send List Menu | ⚠️ 24-hour session required |
41
+ | Mark as Read | — |
42
+
43
+ ---
44
+
45
+ ## 24-Hour Session Rule
46
+
47
+ WhatsApp only allows sending messages **if the recipient messaged you in the last 24 hours** — except for Template Messages which work anytime.
48
+
49
+ **Tip:** Start with a Template Message. Once they reply, you can send any message type.
50
+
51
+ ---
52
+
53
+ ## Phone Number Format
54
+
55
+ Use international format without `+`:
56
+
57
+ | Country | Example |
58
+ |---|---|
59
+ | India | `919209576337` |
60
+ | USA | `14155552671` |
61
+ | UAE | `971501234567` |
62
+
63
+ ---
64
+
65
+ Visit **warecover.com** for more info.
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WarecoverApi = void 0;
4
+ class WarecoverApi {
5
+ constructor() {
6
+ this.name = 'warecoverApi';
7
+ this.displayName = 'Warecover API';
8
+ this.documentationUrl = 'https://documenter.getpostman.com/view/14215086/2sA3e2hAeY';
9
+ this.properties = [
10
+ {
11
+ displayName: 'Access Token',
12
+ name: 'accessToken',
13
+ type: 'string',
14
+ typeOptions: { password: true },
15
+ default: '',
16
+ required: true,
17
+ placeholder: 'mDc93sSu8EJ...',
18
+ description: 'Warecover → Channel → API Details → Access Token',
19
+ },
20
+ {
21
+ displayName: 'Phone Number ID',
22
+ name: 'phoneNumberId',
23
+ type: 'string',
24
+ default: '',
25
+ required: true,
26
+ placeholder: '935752596280211',
27
+ description: 'Warecover → Channel → API Details → Phone Number ID',
28
+ },
29
+ ];
30
+ this.authenticate = {
31
+ type: 'generic',
32
+ properties: {
33
+ headers: {
34
+ Authorization: '=Bearer {{$credentials.accessToken}}',
35
+ },
36
+ },
37
+ };
38
+ this.test = {
39
+ request: {
40
+ baseURL: 'https://crm.warecover.com/api/meta/v19.0',
41
+ url: '/{{$credentials.phoneNumberId}}',
42
+ method: 'GET',
43
+ },
44
+ };
45
+ }
46
+ }
47
+ exports.WarecoverApi = WarecoverApi;
48
+ //# sourceMappingURL=WarecoverApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WarecoverApi.credentials.js","sourceRoot":"","sources":["../../credentials/WarecoverApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,YAAY;IAAzB;QACC,SAAI,GAAG,cAAc,CAAC;QACtB,gBAAW,GAAG,eAAe,CAAC;QAC9B,qBAAgB,GAAG,4DAA4D,CAAC;QAEhF,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,gBAAgB;gBAC7B,WAAW,EAAE,kDAAkD;aAC/D;YACD;gBACC,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,iBAAiB;gBAC9B,WAAW,EAAE,qDAAqD;aAClE;SACD,CAAC;QAGF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,sCAAsC;iBACrD;aACD;SACD,CAAC;QAGF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,0CAA0C;gBACnD,GAAG,EAAE,iCAAiC;gBACtC,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AA7CD,oCA6CC"}
@@ -0,0 +1,505 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Warecover = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ class Warecover {
6
+ constructor() {
7
+ this.description = {
8
+ displayName: 'Warecover',
9
+ name: 'warecover',
10
+ icon: 'file:warecover.svg',
11
+ group: ['output'],
12
+ version: 1,
13
+ subtitle: '={{$parameter["operation"]}}',
14
+ description: 'Send WhatsApp messages via Warecover',
15
+ defaults: {
16
+ name: 'Warecover',
17
+ },
18
+ inputs: ['main'],
19
+ outputs: ['main'],
20
+ credentials: [
21
+ {
22
+ name: 'warecoverApi',
23
+ required: true,
24
+ },
25
+ ],
26
+ properties: [
27
+ {
28
+ displayName: 'Operation',
29
+ name: 'operation',
30
+ type: 'options',
31
+ noDataExpression: true,
32
+ options: [
33
+ {
34
+ name: 'Send Text Message',
35
+ value: 'sendText',
36
+ action: 'Send a text message',
37
+ description: '⚠️ Requires active 24-hour session window with recipient',
38
+ },
39
+ {
40
+ name: 'Send Template Message',
41
+ value: 'sendTemplate',
42
+ action: 'Send a template message',
43
+ description: 'Send approved template — no session window required',
44
+ },
45
+ {
46
+ name: 'Send Image',
47
+ value: 'sendImage',
48
+ action: 'Send an image',
49
+ description: '⚠️ Requires active 24-hour session window with recipient',
50
+ },
51
+ {
52
+ name: 'Send Document',
53
+ value: 'sendDocument',
54
+ action: 'Send a document',
55
+ description: '⚠️ Requires active 24-hour session window with recipient',
56
+ },
57
+ {
58
+ name: 'Send Audio',
59
+ value: 'sendAudio',
60
+ action: 'Send an audio message',
61
+ description: '⚠️ Requires active 24-hour session window with recipient',
62
+ },
63
+ {
64
+ name: 'Send Video',
65
+ value: 'sendVideo',
66
+ action: 'Send a video',
67
+ description: '⚠️ Requires active 24-hour session window with recipient',
68
+ },
69
+ {
70
+ name: 'Send Location',
71
+ value: 'sendLocation',
72
+ action: 'Send a location',
73
+ description: '⚠️ Requires active 24-hour session window with recipient',
74
+ },
75
+ {
76
+ name: 'Send Buttons (Interactive)',
77
+ value: 'sendInteractiveButtons',
78
+ action: 'Send message with reply buttons',
79
+ description: '⚠️ Requires active 24-hour session window with recipient',
80
+ },
81
+ {
82
+ name: 'Send List (Interactive)',
83
+ value: 'sendInteractiveList',
84
+ action: 'Send message with list menu',
85
+ description: '⚠️ Requires active 24-hour session window with recipient',
86
+ },
87
+ {
88
+ name: 'Mark Message as Read',
89
+ value: 'markRead',
90
+ action: 'Mark a message as read',
91
+ },
92
+ ],
93
+ default: 'sendText',
94
+ },
95
+ {
96
+ displayName: '⚠️ 24-Hour Session Window Required',
97
+ name: 'sessionWindowNotice',
98
+ type: 'notice',
99
+ default: 'This message type can only be sent within a 24-hour window after the recipient last messaged you. To reach users outside this window, use "Send Template Message" instead.',
100
+ displayOptions: {
101
+ show: {
102
+ operation: [
103
+ 'sendText',
104
+ 'sendImage',
105
+ 'sendDocument',
106
+ 'sendAudio',
107
+ 'sendVideo',
108
+ 'sendLocation',
109
+ 'sendInteractiveButtons',
110
+ 'sendInteractiveList',
111
+ ],
112
+ },
113
+ },
114
+ },
115
+ {
116
+ displayName: 'To (Phone Number)',
117
+ name: 'to',
118
+ type: 'string',
119
+ required: true,
120
+ default: '',
121
+ placeholder: '919209576337',
122
+ description: 'Recipient phone number in international format without + (e.g. 919209576337)',
123
+ displayOptions: { hide: { operation: ['markRead'] } },
124
+ },
125
+ {
126
+ displayName: 'Message',
127
+ name: 'text',
128
+ type: 'string',
129
+ typeOptions: { rows: 4 },
130
+ required: true,
131
+ default: '',
132
+ description: 'Text message. Supports WhatsApp formatting: *bold*, _italic_, ~strikethrough~',
133
+ displayOptions: { show: { operation: ['sendText'] } },
134
+ },
135
+ {
136
+ displayName: 'Show URL Preview',
137
+ name: 'previewUrl',
138
+ type: 'boolean',
139
+ default: false,
140
+ displayOptions: { show: { operation: ['sendText'] } },
141
+ },
142
+ {
143
+ displayName: 'Template Name',
144
+ name: 'templateName',
145
+ type: 'string',
146
+ required: true,
147
+ default: '',
148
+ placeholder: 'hello_world',
149
+ displayOptions: { show: { operation: ['sendTemplate'] } },
150
+ },
151
+ {
152
+ displayName: 'Language Code',
153
+ name: 'languageCode',
154
+ type: 'string',
155
+ required: true,
156
+ default: 'en',
157
+ placeholder: 'en / en_US / hi',
158
+ displayOptions: { show: { operation: ['sendTemplate'] } },
159
+ },
160
+ {
161
+ displayName: 'Template Variables (JSON)',
162
+ name: 'templateComponents',
163
+ type: 'json',
164
+ default: '[]',
165
+ description: 'Leave [] if no variables. Example: [{"type":"body","parameters":[{"type":"text","text":"John"}]}]',
166
+ displayOptions: { show: { operation: ['sendTemplate'] } },
167
+ },
168
+ {
169
+ displayName: 'Image URL',
170
+ name: 'imageUrl',
171
+ type: 'string',
172
+ required: true,
173
+ default: '',
174
+ placeholder: 'https://example.com/photo.jpg',
175
+ displayOptions: { show: { operation: ['sendImage'] } },
176
+ },
177
+ {
178
+ displayName: 'Caption',
179
+ name: 'imageCaption',
180
+ type: 'string',
181
+ default: '',
182
+ displayOptions: { show: { operation: ['sendImage'] } },
183
+ },
184
+ {
185
+ displayName: 'Document URL',
186
+ name: 'documentUrl',
187
+ type: 'string',
188
+ required: true,
189
+ default: '',
190
+ placeholder: 'https://example.com/file.pdf',
191
+ displayOptions: { show: { operation: ['sendDocument'] } },
192
+ },
193
+ {
194
+ displayName: 'File Name',
195
+ name: 'documentFilename',
196
+ type: 'string',
197
+ default: 'document.pdf',
198
+ displayOptions: { show: { operation: ['sendDocument'] } },
199
+ },
200
+ {
201
+ displayName: 'Caption',
202
+ name: 'documentCaption',
203
+ type: 'string',
204
+ default: '',
205
+ displayOptions: { show: { operation: ['sendDocument'] } },
206
+ },
207
+ {
208
+ displayName: 'Audio URL',
209
+ name: 'audioUrl',
210
+ type: 'string',
211
+ required: true,
212
+ default: '',
213
+ placeholder: 'https://example.com/audio.mp3',
214
+ displayOptions: { show: { operation: ['sendAudio'] } },
215
+ },
216
+ {
217
+ displayName: 'Video URL',
218
+ name: 'videoUrl',
219
+ type: 'string',
220
+ required: true,
221
+ default: '',
222
+ placeholder: 'https://example.com/video.mp4',
223
+ displayOptions: { show: { operation: ['sendVideo'] } },
224
+ },
225
+ {
226
+ displayName: 'Caption',
227
+ name: 'videoCaption',
228
+ type: 'string',
229
+ default: '',
230
+ displayOptions: { show: { operation: ['sendVideo'] } },
231
+ },
232
+ {
233
+ displayName: 'Latitude',
234
+ name: 'latitude',
235
+ type: 'number',
236
+ required: true,
237
+ default: 0,
238
+ displayOptions: { show: { operation: ['sendLocation'] } },
239
+ },
240
+ {
241
+ displayName: 'Longitude',
242
+ name: 'longitude',
243
+ type: 'number',
244
+ required: true,
245
+ default: 0,
246
+ displayOptions: { show: { operation: ['sendLocation'] } },
247
+ },
248
+ {
249
+ displayName: 'Location Name',
250
+ name: 'locationName',
251
+ type: 'string',
252
+ default: '',
253
+ displayOptions: { show: { operation: ['sendLocation'] } },
254
+ },
255
+ {
256
+ displayName: 'Address',
257
+ name: 'locationAddress',
258
+ type: 'string',
259
+ default: '',
260
+ displayOptions: { show: { operation: ['sendLocation'] } },
261
+ },
262
+ {
263
+ displayName: 'Message Body',
264
+ name: 'interactiveBodyText',
265
+ type: 'string',
266
+ typeOptions: { rows: 3 },
267
+ required: true,
268
+ default: '',
269
+ displayOptions: { show: { operation: ['sendInteractiveButtons'] } },
270
+ },
271
+ {
272
+ displayName: 'Header Text',
273
+ name: 'interactiveHeaderText',
274
+ type: 'string',
275
+ default: '',
276
+ displayOptions: { show: { operation: ['sendInteractiveButtons'] } },
277
+ },
278
+ {
279
+ displayName: 'Footer Text',
280
+ name: 'interactiveFooterText',
281
+ type: 'string',
282
+ default: '',
283
+ displayOptions: { show: { operation: ['sendInteractiveButtons'] } },
284
+ },
285
+ {
286
+ displayName: 'Buttons',
287
+ name: 'buttons',
288
+ type: 'fixedCollection',
289
+ typeOptions: { multipleValues: true, maxValue: 3 },
290
+ default: {},
291
+ description: 'Maximum 3 buttons',
292
+ options: [
293
+ {
294
+ name: 'button',
295
+ displayName: 'Button',
296
+ values: [
297
+ { displayName: 'Button ID', name: 'id', type: 'string', default: '', placeholder: 'btn_yes' },
298
+ { displayName: 'Button Label', name: 'title', type: 'string', default: '', placeholder: 'Yes ✅' },
299
+ ],
300
+ },
301
+ ],
302
+ displayOptions: { show: { operation: ['sendInteractiveButtons'] } },
303
+ },
304
+ {
305
+ displayName: 'Message Body',
306
+ name: 'listBodyText',
307
+ type: 'string',
308
+ typeOptions: { rows: 3 },
309
+ required: true,
310
+ default: '',
311
+ displayOptions: { show: { operation: ['sendInteractiveList'] } },
312
+ },
313
+ {
314
+ displayName: 'Button Label',
315
+ name: 'listButtonLabel',
316
+ type: 'string',
317
+ required: true,
318
+ default: 'Select Option',
319
+ displayOptions: { show: { operation: ['sendInteractiveList'] } },
320
+ },
321
+ {
322
+ displayName: 'Header Text',
323
+ name: 'listHeaderText',
324
+ type: 'string',
325
+ default: '',
326
+ displayOptions: { show: { operation: ['sendInteractiveList'] } },
327
+ },
328
+ {
329
+ displayName: 'Footer Text',
330
+ name: 'listFooterText',
331
+ type: 'string',
332
+ default: '',
333
+ displayOptions: { show: { operation: ['sendInteractiveList'] } },
334
+ },
335
+ {
336
+ displayName: 'List Sections (JSON)',
337
+ name: 'listSections',
338
+ type: 'json',
339
+ required: true,
340
+ default: '[{"title":"Options","rows":[{"id":"row_1","title":"Option 1","description":"Description"},{"id":"row_2","title":"Option 2","description":"Description"}]}]',
341
+ displayOptions: { show: { operation: ['sendInteractiveList'] } },
342
+ },
343
+ {
344
+ displayName: 'Message ID',
345
+ name: 'messageId',
346
+ type: 'string',
347
+ required: true,
348
+ default: '',
349
+ placeholder: 'wamid.HBgM...',
350
+ displayOptions: { show: { operation: ['markRead'] } },
351
+ },
352
+ ],
353
+ };
354
+ }
355
+ async execute() {
356
+ const items = this.getInputData();
357
+ const returnData = [];
358
+ const credentials = await this.getCredentials('warecoverApi');
359
+ const accessToken = credentials.accessToken;
360
+ const phoneNumberId = credentials.phoneNumberId;
361
+ const baseURL = `https://crm.warecover.com/api/meta/v19.0`;
362
+ for (let i = 0; i < items.length; i++) {
363
+ try {
364
+ const operation = this.getNodeParameter('operation', i);
365
+ let body = {};
366
+ const endpoint = `/${phoneNumberId}/messages`;
367
+ if (operation === 'sendText') {
368
+ const to = this.getNodeParameter('to', i);
369
+ const text = this.getNodeParameter('text', i);
370
+ const previewUrl = this.getNodeParameter('previewUrl', i);
371
+ body = {
372
+ messaging_product: 'whatsapp',
373
+ recipient_type: 'individual',
374
+ to,
375
+ type: 'text',
376
+ text: { body: text, preview_url: previewUrl },
377
+ };
378
+ }
379
+ else if (operation === 'sendTemplate') {
380
+ const to = this.getNodeParameter('to', i);
381
+ const templateName = this.getNodeParameter('templateName', i);
382
+ const languageCode = this.getNodeParameter('languageCode', i);
383
+ const componentsRaw = this.getNodeParameter('templateComponents', i);
384
+ let components = [];
385
+ try {
386
+ components = typeof componentsRaw === 'string' ? JSON.parse(componentsRaw) : componentsRaw;
387
+ }
388
+ catch (_) {
389
+ components = [];
390
+ }
391
+ body = {
392
+ messaging_product: 'whatsapp',
393
+ to,
394
+ type: 'template',
395
+ template: {
396
+ name: templateName,
397
+ language: { code: languageCode },
398
+ ...(components.length > 0 ? { components } : {}),
399
+ },
400
+ };
401
+ }
402
+ else if (operation === 'sendImage') {
403
+ const to = this.getNodeParameter('to', i);
404
+ const imageUrl = this.getNodeParameter('imageUrl', i);
405
+ const caption = this.getNodeParameter('imageCaption', i);
406
+ body = { messaging_product: 'whatsapp', recipient_type: 'individual', to, type: 'image', image: { link: imageUrl, ...(caption ? { caption } : {}) } };
407
+ }
408
+ else if (operation === 'sendDocument') {
409
+ const to = this.getNodeParameter('to', i);
410
+ const documentUrl = this.getNodeParameter('documentUrl', i);
411
+ const filename = this.getNodeParameter('documentFilename', i);
412
+ const caption = this.getNodeParameter('documentCaption', i);
413
+ body = { messaging_product: 'whatsapp', recipient_type: 'individual', to, type: 'document', document: { link: documentUrl, filename, ...(caption ? { caption } : {}) } };
414
+ }
415
+ else if (operation === 'sendAudio') {
416
+ const to = this.getNodeParameter('to', i);
417
+ const audioUrl = this.getNodeParameter('audioUrl', i);
418
+ body = { messaging_product: 'whatsapp', recipient_type: 'individual', to, type: 'audio', audio: { link: audioUrl } };
419
+ }
420
+ else if (operation === 'sendVideo') {
421
+ const to = this.getNodeParameter('to', i);
422
+ const videoUrl = this.getNodeParameter('videoUrl', i);
423
+ const caption = this.getNodeParameter('videoCaption', i);
424
+ body = { messaging_product: 'whatsapp', recipient_type: 'individual', to, type: 'video', video: { link: videoUrl, ...(caption ? { caption } : {}) } };
425
+ }
426
+ else if (operation === 'sendLocation') {
427
+ const to = this.getNodeParameter('to', i);
428
+ const latitude = this.getNodeParameter('latitude', i);
429
+ const longitude = this.getNodeParameter('longitude', i);
430
+ const name = this.getNodeParameter('locationName', i);
431
+ const address = this.getNodeParameter('locationAddress', i);
432
+ body = { messaging_product: 'whatsapp', recipient_type: 'individual', to, type: 'location', location: { latitude, longitude, name, address } };
433
+ }
434
+ else if (operation === 'sendInteractiveButtons') {
435
+ const to = this.getNodeParameter('to', i);
436
+ const bodyText = this.getNodeParameter('interactiveBodyText', i);
437
+ const headerText = this.getNodeParameter('interactiveHeaderText', i);
438
+ const footerText = this.getNodeParameter('interactiveFooterText', i);
439
+ const buttonsData = this.getNodeParameter('buttons', i);
440
+ const buttons = (buttonsData.button || []).map((btn) => ({ type: 'reply', reply: { id: btn.id, title: btn.title } }));
441
+ body = {
442
+ messaging_product: 'whatsapp', recipient_type: 'individual', to, type: 'interactive',
443
+ interactive: {
444
+ type: 'button',
445
+ ...(headerText ? { header: { type: 'text', text: headerText } } : {}),
446
+ body: { text: bodyText },
447
+ ...(footerText ? { footer: { text: footerText } } : {}),
448
+ action: { buttons },
449
+ },
450
+ };
451
+ }
452
+ else if (operation === 'sendInteractiveList') {
453
+ const to = this.getNodeParameter('to', i);
454
+ const bodyText = this.getNodeParameter('listBodyText', i);
455
+ const buttonLabel = this.getNodeParameter('listButtonLabel', i);
456
+ const headerText = this.getNodeParameter('listHeaderText', i);
457
+ const footerText = this.getNodeParameter('listFooterText', i);
458
+ const sectionsRaw = this.getNodeParameter('listSections', i);
459
+ let sections = [];
460
+ try {
461
+ sections = typeof sectionsRaw === 'string' ? JSON.parse(sectionsRaw) : sectionsRaw;
462
+ }
463
+ catch (_) {
464
+ sections = [];
465
+ }
466
+ body = {
467
+ messaging_product: 'whatsapp', recipient_type: 'individual', to, type: 'interactive',
468
+ interactive: {
469
+ type: 'list',
470
+ ...(headerText ? { header: { type: 'text', text: headerText } } : {}),
471
+ body: { text: bodyText },
472
+ ...(footerText ? { footer: { text: footerText } } : {}),
473
+ action: { button: buttonLabel, sections },
474
+ },
475
+ };
476
+ }
477
+ else if (operation === 'markRead') {
478
+ const messageId = this.getNodeParameter('messageId', i);
479
+ body = { messaging_product: 'whatsapp', status: 'read', message_id: messageId };
480
+ }
481
+ const response = await this.helpers.httpRequest({
482
+ method: 'POST',
483
+ url: `${baseURL}${endpoint}`,
484
+ headers: {
485
+ Authorization: `Bearer ${accessToken}`,
486
+ 'Content-Type': 'application/json',
487
+ },
488
+ body,
489
+ json: true,
490
+ });
491
+ returnData.push({ json: response, pairedItem: { item: i } });
492
+ }
493
+ catch (error) {
494
+ if (this.continueOnFail()) {
495
+ returnData.push({ json: { error: error.message }, pairedItem: { item: i } });
496
+ continue;
497
+ }
498
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, { itemIndex: i });
499
+ }
500
+ }
501
+ return [returnData];
502
+ }
503
+ }
504
+ exports.Warecover = Warecover;
505
+ //# sourceMappingURL=Warecover.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Warecover.node.js","sourceRoot":"","sources":["../../../nodes/Warecover/Warecover.node.ts"],"names":[],"mappings":";;;AAAA,+CAMsB;AAEtB,MAAa,SAAS;IAAtB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,oBAAoB;YAC1B,KAAK,EAAE,CAAC,QAAQ,CAAC;YACjB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8BAA8B;YACxC,WAAW,EAAE,sCAAsC;YACnD,QAAQ,EAAE;gBACT,IAAI,EAAE,WAAW;aACjB;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,cAAc;oBACpB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,mBAAmB;4BACzB,KAAK,EAAE,UAAU;4BACjB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 60">
2
+ <rect width="60" height="60" rx="12" fill="#25D366"/>
3
+ <circle cx="30" cy="28" r="14" fill="#ffffff"/>
4
+ <circle cx="30" cy="28" r="11" fill="#25D366"/>
5
+ <rect x="18" y="38" width="8" height="8" rx="4" fill="#25D366"/>
6
+ <rect x="22" y="22" width="3" height="12" rx="1.5" fill="#ffffff"/>
7
+ <rect x="28" y="22" width="3" height="12" rx="1.5" fill="#ffffff"/>
8
+ <rect x="34" y="22" width="3" height="12" rx="1.5" fill="#ffffff"/>
9
+ </svg>
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "n8n-nodes-warecover-v1",
3
+ "version": "2.0.0",
4
+ "description": "WhatsApp automation for n8n — messages, orders, buttons, location, address collection via Warecover",
5
+ "keywords": [
6
+ "n8n-community-node-package",
7
+ "warecover",
8
+ "whatsapp",
9
+ "meta",
10
+ "whatsapp-api",
11
+ "whatsapp-business",
12
+ "whatsapp-automation",
13
+ "whatsapp-bot",
14
+ "whatsapp-messaging",
15
+ "whatsapp-crm",
16
+ "messaging",
17
+ "sms",
18
+ "notification",
19
+ "automation",
20
+ "ai-agent",
21
+ "chatbot",
22
+ "crm",
23
+ "customer-support",
24
+ "business-messaging",
25
+ "meta-api",
26
+ "cloud-api",
27
+ "send-message",
28
+ "template-message",
29
+ "webhook",
30
+ "workflow",
31
+ "n8n-node",
32
+ "n8n-integration",
33
+ "india",
34
+ "saas"
35
+ ],
36
+ "license": "MIT",
37
+ "author": {
38
+ "name": "Warecover"
39
+ },
40
+ "main": "index.js",
41
+ "scripts": {
42
+ "build": "tsc",
43
+ "dev": "tsc --watch"
44
+ },
45
+ "files": [
46
+ "dist"
47
+ ],
48
+ "n8n": {
49
+ "n8nNodesApiVersion": 1,
50
+ "credentials": [
51
+ "dist/credentials/WarecoverApi.credentials.js"
52
+ ],
53
+ "nodes": [
54
+ "dist/nodes/Warecover/Warecover.node.js"
55
+ ]
56
+ },
57
+ "devDependencies": {
58
+ "typescript": "~5.1.0",
59
+ "n8n-workflow": "*"
60
+ },
61
+ "peerDependencies": {
62
+ "n8n-workflow": "*"
63
+ }
64
+ }