n8n-nodes-wassenger 1.2.0 โ†’ 1.2.2

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/README.md CHANGED
@@ -13,6 +13,24 @@ Send WhatsApp messages, upload media files, validate phone numbers, manage chats
13
13
 
14
14
  [Check out the API documentation and examples here](https://app.wassenger.com/docs)
15
15
 
16
+ > **Product update**: ๐Ÿš€ no more need to host n8n on your own, try [Wassenger Flows today for a fully managed WhatsApp No-Code Automation Workflows](https://wassenger.com/flows) โšกโœจ
17
+
18
+ ## ๐Ÿš€ Ready to Build WhatsApp Automations?
19
+
20
+ Get started with step-by-step tutorials and real-world examples:
21
+
22
+ - **๐Ÿ“š [10+ Complete Tutorials](https://medium.com/search?q=%40wassenger+n8n)** - Build AI agents, chatbots, and advanced automations with detailed guides
23
+ - **๐ŸŽฅ [Video Walkthroughs](https://www.youtube.com/@wassenger/search?query=n8n)** - Watch live demos and follow along with our YouTube tutorials
24
+
25
+ **Popular automation ideas:**
26
+ - AI-powered customer support bots
27
+ - Lead qualification workflows
28
+ - Order status notifications
29
+ - Appointment booking systems
30
+ - Multi-language customer support with business-specific trained data
31
+
32
+ [Start building your first](https://wassenger.com) WhatsApp automation in minutes! ๐Ÿ’ก
33
+
16
34
  ## Contents
17
35
 
18
36
  - [Requirements](#requirements)
@@ -201,7 +201,7 @@ exports.messageProperties = [
201
201
  },
202
202
  typeOptions: {
203
203
  maxLength: 50,
204
- loadOptionsMethod: 'getChannels',
204
+ loadOptionsMethod: 'getDeviceChannels',
205
205
  },
206
206
  },
207
207
  {
@@ -501,6 +501,7 @@ class WassengerTrigger {
501
501
  this.webhookMethods = {
502
502
  default: {
503
503
  async checkExists() {
504
+ var _a;
504
505
  const webhookUrl = this.getNodeWebhookUrl('default');
505
506
  const nodeData = this.getWorkflowStaticData('node');
506
507
  const webhookId = nodeData.webhookId;
@@ -519,17 +520,18 @@ class WassengerTrigger {
519
520
  // Delete all workflow specific webhooks
520
521
  try {
521
522
  await (0, request_1.rawRequest)({
522
- url: `/webhooks/600f1c2a9b3d4e5f6a7b8c00?workflow=${workflowId}`,
523
+ url: `/webhooks/${webhookId}`,
523
524
  method: 'DELETE'
524
525
  }, apiKey);
525
526
  }
526
527
  catch (error) {
527
- console.error(`Error checking Wassenger webhook existence:`, error.message);
528
+ console.error(`Error deleting existing webhook existence:`, webhookId, error.message, (_a = error.response) === null || _a === void 0 ? void 0 : _a.data);
528
529
  }
529
530
  if (axios_1.default.isAxiosError(error) && error.response && error.response.status === 404) {
530
531
  return false;
531
532
  }
532
- throw error;
533
+ return false;
534
+ // throw error;
533
535
  }
534
536
  },
535
537
  async create() {
@@ -581,7 +583,7 @@ class WassengerTrigger {
581
583
  if (error.response.status === 409) {
582
584
  return true;
583
585
  }
584
- throw new Error(`Wassenger webhook registration failed: ${((_a = error.response.data) === null || _a === void 0 ? void 0 : _a.message) || error.message}`);
586
+ throw new Error(`Wassenger webhook registration failed: ${device || "(no device)"} ${((_a = error.response.data) === null || _a === void 0 ? void 0 : _a.message) || error.message}`);
585
587
  }
586
588
  throw error;
587
589
  }
@@ -611,10 +613,10 @@ class WassengerTrigger {
611
613
  return true;
612
614
  }
613
615
  if (axios_1.default.isAxiosError(error) && error.response) {
614
- console.error(`Wassenger webhook deletion failed: ${((_a = error.response.data) === null || _a === void 0 ? void 0 : _a.message) || error.message}`);
616
+ console.error(`Wassenger webhook deletion failed: ${webhookId} ${error.response.status || '<no status>'} ${((_a = error.response.data) === null || _a === void 0 ? void 0 : _a.message) || error.message}`);
615
617
  }
616
618
  else {
617
- console.error('Error deleting Wassenger webhook:', error);
619
+ console.error('Error deleting Wassenger webhook:', webhookId, error);
618
620
  }
619
621
  return true;
620
622
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-wassenger",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "n8n plugin for Wassenger",
5
5
  "main": "index.js",
6
6
  "license": "MIT",