@jep182/n8n-nodes-whatsthat 0.5.2 → 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 +14 -15
- package/dist/index.d.ts +1 -3
- package/dist/index.js +1 -3
- package/dist/nodes/WhatsThat/WhatsThat.node.d.ts +1 -1
- package/dist/nodes/WhatsThat/WhatsThat.node.js +213 -175
- package/dist/nodes/WhatsThat/WhatsThat.node.json +13 -0
- package/dist/nodes/WhatsThatTrigger/WhatsThatTrigger.node.js +49 -33
- package/dist/nodes/WhatsThatTrigger/WhatsThatTrigger.node.json +13 -0
- package/dist/shared/fs.d.ts +1 -0
- package/dist/shared/fs.js +4 -0
- package/dist/shared/runtime.d.ts +1 -3
- package/dist/shared/runtime.js +2 -2
- package/package.json +3 -5
- package/dist/nodes/WhatsThatMessage/WhatsThatMessage.node.d.ts +0 -10
- package/dist/nodes/WhatsThatMessage/WhatsThatMessage.node.js +0 -325
- package/dist/nodes/WhatsThatSession/WhatsThatSession.node.d.ts +0 -5
- package/dist/nodes/WhatsThatSession/WhatsThatSession.node.js +0 -171
- package/dist/nodes/WhatsThatTargets/WhatsThatTargets.node.d.ts +0 -5
- package/dist/nodes/WhatsThatTargets/WhatsThatTargets.node.js +0 -105
- /package/dist/nodes/{WhatsThatSession → WhatsThat}/whatsthat.svg +0 -0
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`
|
|
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
|
-
|
|
24
|
+
Inside `WhatsThat` you choose:
|
|
25
25
|
|
|
26
|
-
-
|
|
27
|
-
-
|
|
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.
|
|
34
|
-
3. Set `
|
|
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.
|
|
64
|
-
2. Set `
|
|
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.
|
|
74
|
-
3. Start with `
|
|
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 `
|
|
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.
|
|
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.
|
|
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.
|
|
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/
|
|
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/
|
|
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);
|
|
@@ -2,7 +2,7 @@ import type { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData, INod
|
|
|
2
2
|
export declare class WhatsThat implements INodeType {
|
|
3
3
|
methods: {
|
|
4
4
|
loadOptions: {
|
|
5
|
-
|
|
5
|
+
getLinkedChats(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
8
|
description: INodeTypeDescription;
|