@jep182/n8n-nodes-whatsthat 0.5.4 → 0.5.5

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
@@ -4,7 +4,7 @@ WhatsThat lets you connect one or more WhatsApp numbers inside n8n, link chats o
4
4
 
5
5
  In the n8n node picker, you will find:
6
6
 
7
- - `WhatsThat` actions
7
+ - `WhatsThat`
8
8
  - `WhatsThat Trigger`
9
9
 
10
10
  You also need one credential:
@@ -21,17 +21,16 @@ Create `WhatsThat Runtime` credentials and choose a persistent storage path, for
21
21
 
22
22
  This folder is used to store session files and local metadata.
23
23
 
24
- The action nodes all appear under the same name, `WhatsThat`, but with different purposes:
24
+ Inside `WhatsThat` you choose:
25
25
 
26
- - session actions
27
- - linked chat actions
28
- - message actions
26
+ - `Section`: `Session`, `Linked Chat`, or `Message`
27
+ - `Action`: the specific action you want to run
29
28
 
30
29
  ## How To Connect Your Number
31
30
 
32
31
  1. Add a `WhatsThat` node.
33
- 2. Choose the action for sessions.
34
- 3. Set `Operation` to `Connect Session`.
32
+ 2. Set `Section` to `Session`.
33
+ 3. Set `Action` to `Connect Session`.
35
34
  4. Fill in:
36
35
  - `Session Name`: a stable internal name like `main-phone`
37
36
  - `Display Name`: a friendly label like `Luca phone`
@@ -60,8 +59,8 @@ WhatsApp Number: 393331234567
60
59
 
61
60
  After `Connect Session`, add another `WhatsThat` node:
62
61
 
63
- 1. Choose the action for sessions
64
- 2. Set `Operation` to `Wait Until Connect`
62
+ 1. Set `Section` to `Session`
63
+ 2. Set `Action` to `Wait Until Connect`
65
64
  3. Use the same `Session Name`
66
65
  4. Choose how many seconds to wait in `Timeout Seconds`
67
66
 
@@ -70,10 +69,10 @@ This second node waits for the already-started session to become fully connected
70
69
  ## How To Link A Group Or Chat Manually
71
70
 
72
71
  1. Add a `WhatsThat` node
73
- 2. Choose the action for linked chats
74
- 3. Start with `Operation = List Discovered Chats`
72
+ 2. Set `Section` to `Linked Chat`
73
+ 3. Start with `Action = List Discovered Chats`
75
74
  4. Pick the chat or group you want to use
76
- 5. Change to `Operation = Link Chat`
75
+ 5. Change to `Action = Link Chat`
77
76
  6. Fill in:
78
77
  - `Session Name`
79
78
  - `Chat JID`
@@ -109,7 +108,7 @@ This is useful when you want users to self-register a group without opening n8n.
109
108
  ## How To Send A Message To A Linked Chat
110
109
 
111
110
  1. Add a `WhatsThat` node
112
- 2. Choose the action for sending messages
111
+ 2. Set `Section` to `Message`
113
112
  3. Set `Session Name`
114
113
  4. Set `Send Message To` to `Linked Chat`
115
114
  5. Choose a linked chat from the dropdown
@@ -128,7 +127,7 @@ Message: Hello from n8n
128
127
  ## How To Send A Message To A Number
129
128
 
130
129
  1. Add a `WhatsThat` node
131
- 2. Choose the action for sending messages
130
+ 2. Set `Section` to `Message`
132
131
  3. Set `Send Message To` to `WhatsApp Number`
133
132
  4. Enter the number with country code, digits only, without `00` and without `+`
134
133
 
@@ -141,7 +140,7 @@ WhatsApp Number: 393331234567
141
140
  ## How To Send A Message To Yourself
142
141
 
143
142
  1. Add a `WhatsThat` node
144
- 2. Choose the action for sending messages
143
+ 2. Set `Section` to `Message`
145
144
  3. Set `Send Message To` to `Yourself`
146
145
 
147
146
  WhatsThat uses the number already connected for that session.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,3 @@
1
1
  export * from './credentials/WhatsThatRuntime.credentials';
2
- export * from './nodes/WhatsThatSession/WhatsThatSession.node';
3
- export * from './nodes/WhatsThatTargets/WhatsThatTargets.node';
4
- export * from './nodes/WhatsThatMessage/WhatsThatMessage.node';
2
+ export * from './nodes/WhatsThat/WhatsThat.node';
5
3
  export * from './nodes/WhatsThatTrigger/WhatsThatTrigger.node';
package/dist/index.js CHANGED
@@ -15,7 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./credentials/WhatsThatRuntime.credentials"), exports);
18
- __exportStar(require("./nodes/WhatsThatSession/WhatsThatSession.node"), exports);
19
- __exportStar(require("./nodes/WhatsThatTargets/WhatsThatTargets.node"), exports);
20
- __exportStar(require("./nodes/WhatsThatMessage/WhatsThatMessage.node"), exports);
18
+ __exportStar(require("./nodes/WhatsThat/WhatsThat.node"), exports);
21
19
  __exportStar(require("./nodes/WhatsThatTrigger/WhatsThatTrigger.node"), exports);
@@ -1,5 +1,5 @@
1
1
  import type { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
- export declare class WhatsThatMessage implements INodeType {
2
+ export declare class WhatsThat implements INodeType {
3
3
  methods: {
4
4
  loadOptions: {
5
5
  getLinkedChats(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;