@ivanlaomarketing/n8n-nodes-risveglia 0.1.2 → 0.2.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/README.md
CHANGED
|
@@ -14,6 +14,8 @@ Nodi n8n per [RisveglIA](https://risveglia.it), l'archivio e l'assistente delle
|
|
|
14
14
|
- **RisveglIA**: invia messaggi WhatsApp, gestisce contatti e trattative, gruppi e canali, agente AI e media, e legge l'archivio delle chat. Si può usare anche come strumento di un AI Agent.
|
|
15
15
|
- **RisveglIA Trigger**: avvia il workflow quando succede qualcosa in RisveglIA, per esempio un messaggio ricevuto o inviato. L'iscrizione si crea e si cancella da sola quando attivi o spegni il workflow, e ogni evento arriva firmato.
|
|
16
16
|
|
|
17
|
+
Guida completa: [risveglia.it/integrazioni/n8n](https://risveglia.it/integrazioni/n8n).
|
|
18
|
+
|
|
17
19
|
## Installazione
|
|
18
20
|
|
|
19
21
|
In n8n apri **Settings > Community nodes > Install** e scrivi:
|
|
@@ -26,15 +28,16 @@ Il trigger ha bisogno che n8n sia raggiungibile da internet con un indirizzo htt
|
|
|
26
28
|
|
|
27
29
|
## Credenziale
|
|
28
30
|
|
|
29
|
-
1. In RisveglIA apri **
|
|
31
|
+
1. In RisveglIA apri **Impostazioni, Integrazioni** e crea un **token personale**. Scegli i permessi che servono al workflow: per esempio, per inviare messaggi serve il permesso di invio.
|
|
30
32
|
2. In n8n crea una credenziale **RisveglIA API** e incolla il token. L'indirizzo resta quello predefinito, `https://app.risveglia.it/api`.
|
|
31
33
|
|
|
32
|
-
Il token dà accesso ai tuoi dati: tienilo riservato e, se non ti serve più, revocalo da
|
|
34
|
+
Il token dà accesso ai tuoi dati: tienilo riservato e, se non ti serve più, revocalo da Impostazioni, Integrazioni. Il token lavora con l'accesso di chi l'ha creato: se quella persona perde un permesso, lo perde anche il token.
|
|
33
35
|
|
|
34
36
|
## Note
|
|
35
37
|
|
|
36
38
|
- **Chiave di idempotenza.** «Invia un messaggio» e «Crea promemoria» accettano una chiave di idempotenza. Se il workflow ripete la stessa chiamata con la stessa chiave, il messaggio parte una volta sola.
|
|
37
39
|
- **Elenchi.** Le risposte che contengono un elenco arrivano come un solo elemento. Per lavorare un elemento alla volta usa **Split Out**.
|
|
40
|
+
- **Allegati e vocali.** «Allegati» elenca immagini, vocali, video e documenti di un messaggio o di una chat; «Scarica il file di un allegato» li passa ai nodi successivi come dato binario; «Trascrivi un vocale» usa la chiave AI salvata nell'account. Gli id si possono incollare anche nella forma `media:<id>`.
|
|
38
41
|
- **Limiti.** Valgono le stesse regole e gli stessi limiti di invio del portale RisveglIA.
|
|
39
42
|
|
|
40
43
|
## Sviluppo
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RisveglIaApi = void 0;
|
|
4
4
|
/**
|
|
5
|
-
* Token personale di RisveglIA (rsv_pat_...): si crea nel portale, Impostazioni,
|
|
5
|
+
* Token personale di RisveglIA (rsv_pat_...): si crea nel portale, Impostazioni, Integrazioni, con gli ambiti che servono
|
|
6
6
|
* al flusso. Il token agisce come la persona che l'ha creato, con il suo ruolo e i suoi permessi di adesso.
|
|
7
7
|
*/
|
|
8
8
|
class RisveglIaApi {
|
|
@@ -19,7 +19,7 @@ class RisveglIaApi {
|
|
|
19
19
|
default: "",
|
|
20
20
|
required: true,
|
|
21
21
|
placeholder: "rsv_pat_...",
|
|
22
|
-
description: "Crealo in RisveglIA: Impostazioni,
|
|
22
|
+
description: "Crealo in RisveglIA: Impostazioni, Integrazioni, Crea un token personale. Si vede una sola volta.",
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
displayName: "Indirizzo di RisveglIA",
|
|
@@ -31,6 +31,7 @@ const esempiCorpo = {
|
|
|
31
31
|
};
|
|
32
32
|
const esempiQuery = {
|
|
33
33
|
"invii.elenca": { conversationId: "" },
|
|
34
|
+
"allegati.elenca": { messageId: "" },
|
|
34
35
|
};
|
|
35
36
|
const nomiParametri = {
|
|
36
37
|
id: { displayName: "ID", description: "Identificativo dell'elemento, come lo restituisce un'altra operazione di RisveglIA" },
|
|
@@ -130,8 +131,8 @@ function proprieta() {
|
|
|
130
131
|
name: "campoFile",
|
|
131
132
|
type: "string",
|
|
132
133
|
default: "data",
|
|
133
|
-
displayOptions: { show: { operation:
|
|
134
|
-
description: "Nome del campo binario in cui mettere il file scaricato",
|
|
134
|
+
displayOptions: { show: { operation: catalogo_1.operazioni.filter((o) => o.binary).map((o) => o.id) } },
|
|
135
|
+
description: "Nome del campo binario in cui mettere il file scaricato (immagine, vocale, video o documento)",
|
|
135
136
|
});
|
|
136
137
|
return props;
|
|
137
138
|
}
|
|
@@ -194,12 +195,13 @@ class RisveglIa {
|
|
|
194
195
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Operazione sconosciuta: ${operation}`, { itemIndex: i });
|
|
195
196
|
let path = op.path;
|
|
196
197
|
for (const nome of (0, exports.parametriDi)(op)) {
|
|
197
|
-
|
|
198
|
+
// Gli allegati compaiono nei messaggi come media:<id>: il prefisso si accetta e si toglie.
|
|
199
|
+
const valore = String(this.getNodeParameter(`percorso_${nome}`, i)).trim().replace(/^media:/i, "");
|
|
198
200
|
if (!/^[A-Za-z0-9-]{1,64}$/.test(valore))
|
|
199
201
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Valore non valido per ${nomiParametri[nome]?.displayName ?? nome}.`, { itemIndex: i });
|
|
200
202
|
path = path.replace(`{${nome}}`, valore);
|
|
201
203
|
}
|
|
202
|
-
const binario = op.
|
|
204
|
+
const binario = op.binary;
|
|
203
205
|
const chiave = op.idempotent ? String(this.getNodeParameter("chiaveIdempotenza", i, "")).trim() : "";
|
|
204
206
|
const res = await (0, richiesta_1.chiama)(this, {
|
|
205
207
|
method: op.method,
|
|
@@ -214,7 +216,7 @@ class RisveglIa {
|
|
|
214
216
|
const tipo = String(res.headers["content-type"] ?? "application/octet-stream");
|
|
215
217
|
const nomeFile = /filename="?([^";]+)"?/.exec(String(res.headers["content-disposition"] ?? ""))?.[1];
|
|
216
218
|
const dati = await this.helpers.prepareBinaryData(Buffer.from(res.body), nomeFile, tipo);
|
|
217
|
-
out.push({ json: { id: path.split("/")[3] }, binary: { [campo]: dati }, pairedItem: { item: i } });
|
|
219
|
+
out.push({ json: { id: path.split("/")[3], fileName: dati.fileName ?? null, mimeType: dati.mimeType, sizeBytes: res.body.byteLength }, binary: { [campo]: dati }, pairedItem: { item: i } });
|
|
218
220
|
continue;
|
|
219
221
|
}
|
|
220
222
|
const body = res.body;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// File generato da scripts/genera-catalogo.ts (pnpm --filter @ivanlaomarketing/n8n-nodes-risveglia genera): non modificarlo a mano.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.eventi = exports.operazioni = exports.gruppi = void 0;
|
|
5
|
-
exports.gruppi = ["Messaggi", "Contatti e trattative", "Gruppi e canali", "Agente AI", "Media", "Campagne e automazioni", "Attivatori", "Account"];
|
|
5
|
+
exports.gruppi = ["Messaggi", "Contatti e trattative", "Telefonate", "Gruppi e canali", "Agente AI", "Media", "Campagne e automazioni", "Attivatori", "Account"];
|
|
6
6
|
exports.operazioni = [
|
|
7
7
|
{
|
|
8
8
|
"id": "numeri.elenca",
|
|
@@ -11,7 +11,8 @@ exports.operazioni = [
|
|
|
11
11
|
"scope": "sources:read",
|
|
12
12
|
"group": "Account",
|
|
13
13
|
"title": "Numeri collegati e stato del collegamento",
|
|
14
|
-
"idempotent": false
|
|
14
|
+
"idempotent": false,
|
|
15
|
+
"binary": false
|
|
15
16
|
},
|
|
16
17
|
{
|
|
17
18
|
"id": "invii.crea",
|
|
@@ -20,7 +21,8 @@ exports.operazioni = [
|
|
|
20
21
|
"scope": "messages:send",
|
|
21
22
|
"group": "Messaggi",
|
|
22
23
|
"title": "Invia una risposta, una reazione, una modifica o un'eliminazione",
|
|
23
|
-
"idempotent": true
|
|
24
|
+
"idempotent": true,
|
|
25
|
+
"binary": false
|
|
24
26
|
},
|
|
25
27
|
{
|
|
26
28
|
"id": "invii.elenca",
|
|
@@ -29,7 +31,8 @@ exports.operazioni = [
|
|
|
29
31
|
"scope": "messages:send",
|
|
30
32
|
"group": "Messaggi",
|
|
31
33
|
"title": "Invii recenti di una chat e il loro stato",
|
|
32
|
-
"idempotent": false
|
|
34
|
+
"idempotent": false,
|
|
35
|
+
"binary": false
|
|
33
36
|
},
|
|
34
37
|
{
|
|
35
38
|
"id": "invii.annulla",
|
|
@@ -38,7 +41,8 @@ exports.operazioni = [
|
|
|
38
41
|
"scope": "messages:send",
|
|
39
42
|
"group": "Messaggi",
|
|
40
43
|
"title": "Annulla un invio ancora in attesa",
|
|
41
|
-
"idempotent": false
|
|
44
|
+
"idempotent": false,
|
|
45
|
+
"binary": false
|
|
42
46
|
},
|
|
43
47
|
{
|
|
44
48
|
"id": "invii.impostazioni",
|
|
@@ -47,7 +51,48 @@ exports.operazioni = [
|
|
|
47
51
|
"scope": "messages:send",
|
|
48
52
|
"group": "Messaggi",
|
|
49
53
|
"title": "Tetti e fasce orarie degli invii",
|
|
50
|
-
"idempotent": false
|
|
54
|
+
"idempotent": false,
|
|
55
|
+
"binary": false
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "allegati.elenca",
|
|
59
|
+
"method": "GET",
|
|
60
|
+
"path": "/v2/allegati",
|
|
61
|
+
"scope": "sources:read",
|
|
62
|
+
"group": "Messaggi",
|
|
63
|
+
"title": "Allegati di un messaggio o di una chat (immagini, vocali, video, documenti)",
|
|
64
|
+
"idempotent": false,
|
|
65
|
+
"binary": false
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "allegati.dettaglio",
|
|
69
|
+
"method": "GET",
|
|
70
|
+
"path": "/v2/allegati/{id}",
|
|
71
|
+
"scope": "sources:read",
|
|
72
|
+
"group": "Messaggi",
|
|
73
|
+
"title": "Dati di un allegato, con il file in base64 (contenuto=base64)",
|
|
74
|
+
"idempotent": false,
|
|
75
|
+
"binary": false
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "allegati.file",
|
|
79
|
+
"method": "GET",
|
|
80
|
+
"path": "/v2/allegati/{id}/file",
|
|
81
|
+
"scope": "sources:read",
|
|
82
|
+
"group": "Messaggi",
|
|
83
|
+
"title": "Scarica il file di un allegato",
|
|
84
|
+
"idempotent": false,
|
|
85
|
+
"binary": true
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "vocali.trascrivi",
|
|
89
|
+
"method": "POST",
|
|
90
|
+
"path": "/v2/trascrizioni/{id}",
|
|
91
|
+
"scope": "sources:read",
|
|
92
|
+
"group": "Messaggi",
|
|
93
|
+
"title": "Trascrive un vocale con la chiave AI dell'account",
|
|
94
|
+
"idempotent": false,
|
|
95
|
+
"binary": false
|
|
51
96
|
},
|
|
52
97
|
{
|
|
53
98
|
"id": "etichette.elenca",
|
|
@@ -56,7 +101,8 @@ exports.operazioni = [
|
|
|
56
101
|
"scope": "contacts:read",
|
|
57
102
|
"group": "Contatti e trattative",
|
|
58
103
|
"title": "Elenca le etichette",
|
|
59
|
-
"idempotent": false
|
|
104
|
+
"idempotent": false,
|
|
105
|
+
"binary": false
|
|
60
106
|
},
|
|
61
107
|
{
|
|
62
108
|
"id": "etichette.crea",
|
|
@@ -65,7 +111,8 @@ exports.operazioni = [
|
|
|
65
111
|
"scope": "crm:write",
|
|
66
112
|
"group": "Contatti e trattative",
|
|
67
113
|
"title": "Crea un'etichetta",
|
|
68
|
-
"idempotent": false
|
|
114
|
+
"idempotent": false,
|
|
115
|
+
"binary": false
|
|
69
116
|
},
|
|
70
117
|
{
|
|
71
118
|
"id": "chat.etichette",
|
|
@@ -74,7 +121,8 @@ exports.operazioni = [
|
|
|
74
121
|
"scope": "crm:write",
|
|
75
122
|
"group": "Contatti e trattative",
|
|
76
123
|
"title": "Imposta le etichette di una chat",
|
|
77
|
-
"idempotent": false
|
|
124
|
+
"idempotent": false,
|
|
125
|
+
"binary": false
|
|
78
126
|
},
|
|
79
127
|
{
|
|
80
128
|
"id": "promemoria.crea",
|
|
@@ -83,7 +131,8 @@ exports.operazioni = [
|
|
|
83
131
|
"scope": "crm:write",
|
|
84
132
|
"group": "Contatti e trattative",
|
|
85
133
|
"title": "Crea un promemoria",
|
|
86
|
-
"idempotent": true
|
|
134
|
+
"idempotent": true,
|
|
135
|
+
"binary": false
|
|
87
136
|
},
|
|
88
137
|
{
|
|
89
138
|
"id": "promemoria.aggiorna",
|
|
@@ -92,7 +141,8 @@ exports.operazioni = [
|
|
|
92
141
|
"scope": "crm:write",
|
|
93
142
|
"group": "Contatti e trattative",
|
|
94
143
|
"title": "Aggiorna o chiude un promemoria",
|
|
95
|
-
"idempotent": false
|
|
144
|
+
"idempotent": false,
|
|
145
|
+
"binary": false
|
|
96
146
|
},
|
|
97
147
|
{
|
|
98
148
|
"id": "promemoria.elimina",
|
|
@@ -101,7 +151,8 @@ exports.operazioni = [
|
|
|
101
151
|
"scope": "crm:write",
|
|
102
152
|
"group": "Contatti e trattative",
|
|
103
153
|
"title": "Elimina un promemoria",
|
|
104
|
-
"idempotent": false
|
|
154
|
+
"idempotent": false,
|
|
155
|
+
"binary": false
|
|
105
156
|
},
|
|
106
157
|
{
|
|
107
158
|
"id": "trattative.board",
|
|
@@ -110,7 +161,8 @@ exports.operazioni = [
|
|
|
110
161
|
"scope": "opportunities:read",
|
|
111
162
|
"group": "Contatti e trattative",
|
|
112
163
|
"title": "Pipeline, fasi e card delle trattative",
|
|
113
|
-
"idempotent": false
|
|
164
|
+
"idempotent": false,
|
|
165
|
+
"binary": false
|
|
114
166
|
},
|
|
115
167
|
{
|
|
116
168
|
"id": "trattative.card.crea",
|
|
@@ -119,7 +171,8 @@ exports.operazioni = [
|
|
|
119
171
|
"scope": "crm:write",
|
|
120
172
|
"group": "Contatti e trattative",
|
|
121
173
|
"title": "Mette una chat in una pipeline",
|
|
122
|
-
"idempotent": false
|
|
174
|
+
"idempotent": false,
|
|
175
|
+
"binary": false
|
|
123
176
|
},
|
|
124
177
|
{
|
|
125
178
|
"id": "trattative.card.sposta",
|
|
@@ -128,7 +181,8 @@ exports.operazioni = [
|
|
|
128
181
|
"scope": "crm:write",
|
|
129
182
|
"group": "Contatti e trattative",
|
|
130
183
|
"title": "Sposta o aggiorna una card",
|
|
131
|
-
"idempotent": false
|
|
184
|
+
"idempotent": false,
|
|
185
|
+
"binary": false
|
|
132
186
|
},
|
|
133
187
|
{
|
|
134
188
|
"id": "trattative.card.elimina",
|
|
@@ -137,7 +191,8 @@ exports.operazioni = [
|
|
|
137
191
|
"scope": "crm:write",
|
|
138
192
|
"group": "Contatti e trattative",
|
|
139
193
|
"title": "Toglie una card dalla pipeline",
|
|
140
|
-
"idempotent": false
|
|
194
|
+
"idempotent": false,
|
|
195
|
+
"binary": false
|
|
141
196
|
},
|
|
142
197
|
{
|
|
143
198
|
"id": "consensi.registra",
|
|
@@ -146,7 +201,8 @@ exports.operazioni = [
|
|
|
146
201
|
"scope": "crm:write",
|
|
147
202
|
"group": "Contatti e trattative",
|
|
148
203
|
"title": "Registra un consenso o una disiscrizione",
|
|
149
|
-
"idempotent": false
|
|
204
|
+
"idempotent": false,
|
|
205
|
+
"binary": false
|
|
150
206
|
},
|
|
151
207
|
{
|
|
152
208
|
"id": "esclusioni.elenca",
|
|
@@ -155,7 +211,8 @@ exports.operazioni = [
|
|
|
155
211
|
"scope": "contacts:read",
|
|
156
212
|
"group": "Contatti e trattative",
|
|
157
213
|
"title": "Elenca i numeri esclusi dalle automazioni",
|
|
158
|
-
"idempotent": false
|
|
214
|
+
"idempotent": false,
|
|
215
|
+
"binary": false
|
|
159
216
|
},
|
|
160
217
|
{
|
|
161
218
|
"id": "esclusioni.crea",
|
|
@@ -164,7 +221,8 @@ exports.operazioni = [
|
|
|
164
221
|
"scope": "crm:write",
|
|
165
222
|
"group": "Contatti e trattative",
|
|
166
223
|
"title": "Esclude un numero dalle automazioni",
|
|
167
|
-
"idempotent": false
|
|
224
|
+
"idempotent": false,
|
|
225
|
+
"binary": false
|
|
168
226
|
},
|
|
169
227
|
{
|
|
170
228
|
"id": "esclusioni.elimina",
|
|
@@ -173,7 +231,18 @@ exports.operazioni = [
|
|
|
173
231
|
"scope": "crm:write",
|
|
174
232
|
"group": "Contatti e trattative",
|
|
175
233
|
"title": "Toglie un'esclusione",
|
|
176
|
-
"idempotent": false
|
|
234
|
+
"idempotent": false,
|
|
235
|
+
"binary": false
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"id": "chiamate.rifiuta",
|
|
239
|
+
"method": "POST",
|
|
240
|
+
"path": "/v2/chiamate/{id}/rifiuta",
|
|
241
|
+
"scope": "messages:send",
|
|
242
|
+
"group": "Telefonate",
|
|
243
|
+
"title": "Rifiuta una chiamata che sta squillando (solo entro pochi secondi)",
|
|
244
|
+
"idempotent": false,
|
|
245
|
+
"binary": false
|
|
177
246
|
},
|
|
178
247
|
{
|
|
179
248
|
"id": "spazi.elenca",
|
|
@@ -182,7 +251,8 @@ exports.operazioni = [
|
|
|
182
251
|
"scope": "groups:write",
|
|
183
252
|
"group": "Gruppi e canali",
|
|
184
253
|
"title": "Elenca gruppi, community e canali",
|
|
185
|
-
"idempotent": false
|
|
254
|
+
"idempotent": false,
|
|
255
|
+
"binary": false
|
|
186
256
|
},
|
|
187
257
|
{
|
|
188
258
|
"id": "spazi.dettaglio",
|
|
@@ -191,7 +261,8 @@ exports.operazioni = [
|
|
|
191
261
|
"scope": "groups:write",
|
|
192
262
|
"group": "Gruppi e canali",
|
|
193
263
|
"title": "Dettaglio di un gruppo o canale",
|
|
194
|
-
"idempotent": false
|
|
264
|
+
"idempotent": false,
|
|
265
|
+
"binary": false
|
|
195
266
|
},
|
|
196
267
|
{
|
|
197
268
|
"id": "spazi.gruppo.crea",
|
|
@@ -200,7 +271,8 @@ exports.operazioni = [
|
|
|
200
271
|
"scope": "groups:write",
|
|
201
272
|
"group": "Gruppi e canali",
|
|
202
273
|
"title": "Crea un gruppo",
|
|
203
|
-
"idempotent": false
|
|
274
|
+
"idempotent": false,
|
|
275
|
+
"binary": false
|
|
204
276
|
},
|
|
205
277
|
{
|
|
206
278
|
"id": "spazi.canale.crea",
|
|
@@ -209,7 +281,8 @@ exports.operazioni = [
|
|
|
209
281
|
"scope": "groups:write",
|
|
210
282
|
"group": "Gruppi e canali",
|
|
211
283
|
"title": "Crea un canale",
|
|
212
|
-
"idempotent": false
|
|
284
|
+
"idempotent": false,
|
|
285
|
+
"binary": false
|
|
213
286
|
},
|
|
214
287
|
{
|
|
215
288
|
"id": "spazi.azione",
|
|
@@ -218,7 +291,8 @@ exports.operazioni = [
|
|
|
218
291
|
"scope": "groups:write",
|
|
219
292
|
"group": "Gruppi e canali",
|
|
220
293
|
"title": "Impostazioni, amministratori, rimozioni, richieste e link di invito",
|
|
221
|
-
"idempotent": false
|
|
294
|
+
"idempotent": false,
|
|
295
|
+
"binary": false
|
|
222
296
|
},
|
|
223
297
|
{
|
|
224
298
|
"id": "spazi.invitabili",
|
|
@@ -227,7 +301,8 @@ exports.operazioni = [
|
|
|
227
301
|
"scope": "groups:write",
|
|
228
302
|
"group": "Gruppi e canali",
|
|
229
303
|
"title": "Contatti invitabili in un gruppo",
|
|
230
|
-
"idempotent": false
|
|
304
|
+
"idempotent": false,
|
|
305
|
+
"binary": false
|
|
231
306
|
},
|
|
232
307
|
{
|
|
233
308
|
"id": "spazi.inviti.crea",
|
|
@@ -236,7 +311,8 @@ exports.operazioni = [
|
|
|
236
311
|
"scope": "groups:write",
|
|
237
312
|
"group": "Gruppi e canali",
|
|
238
313
|
"title": "Mette in coda gli inviti, con i tetti giornalieri",
|
|
239
|
-
"idempotent": false
|
|
314
|
+
"idempotent": false,
|
|
315
|
+
"binary": false
|
|
240
316
|
},
|
|
241
317
|
{
|
|
242
318
|
"id": "spazi.inviti.elenca",
|
|
@@ -245,7 +321,8 @@ exports.operazioni = [
|
|
|
245
321
|
"scope": "groups:write",
|
|
246
322
|
"group": "Gruppi e canali",
|
|
247
323
|
"title": "Code degli inviti",
|
|
248
|
-
"idempotent": false
|
|
324
|
+
"idempotent": false,
|
|
325
|
+
"binary": false
|
|
249
326
|
},
|
|
250
327
|
{
|
|
251
328
|
"id": "spazi.inviti.dettaglio",
|
|
@@ -254,7 +331,8 @@ exports.operazioni = [
|
|
|
254
331
|
"scope": "groups:write",
|
|
255
332
|
"group": "Gruppi e canali",
|
|
256
333
|
"title": "Stato di una coda degli inviti",
|
|
257
|
-
"idempotent": false
|
|
334
|
+
"idempotent": false,
|
|
335
|
+
"binary": false
|
|
258
336
|
},
|
|
259
337
|
{
|
|
260
338
|
"id": "spazi.inviti.azione",
|
|
@@ -263,7 +341,8 @@ exports.operazioni = [
|
|
|
263
341
|
"scope": "groups:write",
|
|
264
342
|
"group": "Gruppi e canali",
|
|
265
343
|
"title": "Mette in pausa, riprende o annulla una coda degli inviti",
|
|
266
|
-
"idempotent": false
|
|
344
|
+
"idempotent": false,
|
|
345
|
+
"binary": false
|
|
267
346
|
},
|
|
268
347
|
{
|
|
269
348
|
"id": "pubblicazioni.elenca",
|
|
@@ -272,7 +351,8 @@ exports.operazioni = [
|
|
|
272
351
|
"scope": "groups:write",
|
|
273
352
|
"group": "Gruppi e canali",
|
|
274
353
|
"title": "Elenca le pubblicazioni",
|
|
275
|
-
"idempotent": false
|
|
354
|
+
"idempotent": false,
|
|
355
|
+
"binary": false
|
|
276
356
|
},
|
|
277
357
|
{
|
|
278
358
|
"id": "pubblicazioni.destinazioni",
|
|
@@ -281,7 +361,8 @@ exports.operazioni = [
|
|
|
281
361
|
"scope": "groups:write",
|
|
282
362
|
"group": "Gruppi e canali",
|
|
283
363
|
"title": "Gruppi, canali e stato dove si può pubblicare",
|
|
284
|
-
"idempotent": false
|
|
364
|
+
"idempotent": false,
|
|
365
|
+
"binary": false
|
|
285
366
|
},
|
|
286
367
|
{
|
|
287
368
|
"id": "pubblicazioni.crea",
|
|
@@ -290,7 +371,8 @@ exports.operazioni = [
|
|
|
290
371
|
"scope": "groups:write",
|
|
291
372
|
"group": "Gruppi e canali",
|
|
292
373
|
"title": "Crea una pubblicazione in gruppi, canali o stato",
|
|
293
|
-
"idempotent": false
|
|
374
|
+
"idempotent": false,
|
|
375
|
+
"binary": false
|
|
294
376
|
},
|
|
295
377
|
{
|
|
296
378
|
"id": "pubblicazioni.dettaglio",
|
|
@@ -299,7 +381,8 @@ exports.operazioni = [
|
|
|
299
381
|
"scope": "groups:write",
|
|
300
382
|
"group": "Gruppi e canali",
|
|
301
383
|
"title": "Dettaglio di una pubblicazione",
|
|
302
|
-
"idempotent": false
|
|
384
|
+
"idempotent": false,
|
|
385
|
+
"binary": false
|
|
303
386
|
},
|
|
304
387
|
{
|
|
305
388
|
"id": "pubblicazioni.azione",
|
|
@@ -308,7 +391,8 @@ exports.operazioni = [
|
|
|
308
391
|
"scope": "groups:write",
|
|
309
392
|
"group": "Gruppi e canali",
|
|
310
393
|
"title": "Programma, mette in pausa o annulla una pubblicazione",
|
|
311
|
-
"idempotent": false
|
|
394
|
+
"idempotent": false,
|
|
395
|
+
"binary": false
|
|
312
396
|
},
|
|
313
397
|
{
|
|
314
398
|
"id": "agente.stato",
|
|
@@ -317,7 +401,8 @@ exports.operazioni = [
|
|
|
317
401
|
"scope": "agent:write",
|
|
318
402
|
"group": "Agente AI",
|
|
319
403
|
"title": "Impostazioni dell'agente e chat in pausa",
|
|
320
|
-
"idempotent": false
|
|
404
|
+
"idempotent": false,
|
|
405
|
+
"binary": false
|
|
321
406
|
},
|
|
322
407
|
{
|
|
323
408
|
"id": "agente.riprendi",
|
|
@@ -326,7 +411,8 @@ exports.operazioni = [
|
|
|
326
411
|
"scope": "agent:write",
|
|
327
412
|
"group": "Agente AI",
|
|
328
413
|
"title": "Fa riprendere l'agente in una chat in pausa",
|
|
329
|
-
"idempotent": false
|
|
414
|
+
"idempotent": false,
|
|
415
|
+
"binary": false
|
|
330
416
|
},
|
|
331
417
|
{
|
|
332
418
|
"id": "media.elenca",
|
|
@@ -335,7 +421,8 @@ exports.operazioni = [
|
|
|
335
421
|
"scope": "media:write",
|
|
336
422
|
"group": "Media",
|
|
337
423
|
"title": "Elenca la libreria media",
|
|
338
|
-
"idempotent": false
|
|
424
|
+
"idempotent": false,
|
|
425
|
+
"binary": false
|
|
339
426
|
},
|
|
340
427
|
{
|
|
341
428
|
"id": "media.dettaglio",
|
|
@@ -344,7 +431,8 @@ exports.operazioni = [
|
|
|
344
431
|
"scope": "media:write",
|
|
345
432
|
"group": "Media",
|
|
346
433
|
"title": "Dettaglio e stato di una generazione",
|
|
347
|
-
"idempotent": false
|
|
434
|
+
"idempotent": false,
|
|
435
|
+
"binary": false
|
|
348
436
|
},
|
|
349
437
|
{
|
|
350
438
|
"id": "media.file",
|
|
@@ -353,7 +441,8 @@ exports.operazioni = [
|
|
|
353
441
|
"scope": "media:write",
|
|
354
442
|
"group": "Media",
|
|
355
443
|
"title": "Scarica il file di un media",
|
|
356
|
-
"idempotent": false
|
|
444
|
+
"idempotent": false,
|
|
445
|
+
"binary": true
|
|
357
446
|
},
|
|
358
447
|
{
|
|
359
448
|
"id": "media.fal",
|
|
@@ -362,7 +451,8 @@ exports.operazioni = [
|
|
|
362
451
|
"scope": "media:write",
|
|
363
452
|
"group": "Media",
|
|
364
453
|
"title": "Stato della chiave fal.ai e budget",
|
|
365
|
-
"idempotent": false
|
|
454
|
+
"idempotent": false,
|
|
455
|
+
"binary": false
|
|
366
456
|
},
|
|
367
457
|
{
|
|
368
458
|
"id": "media.stima",
|
|
@@ -371,7 +461,8 @@ exports.operazioni = [
|
|
|
371
461
|
"scope": "media:write",
|
|
372
462
|
"group": "Media",
|
|
373
463
|
"title": "Stima il costo di una generazione",
|
|
374
|
-
"idempotent": false
|
|
464
|
+
"idempotent": false,
|
|
465
|
+
"binary": false
|
|
375
466
|
},
|
|
376
467
|
{
|
|
377
468
|
"id": "media.genera",
|
|
@@ -380,7 +471,8 @@ exports.operazioni = [
|
|
|
380
471
|
"scope": "media:write",
|
|
381
472
|
"group": "Media",
|
|
382
473
|
"title": "Genera un'immagine o un video con fal.ai",
|
|
383
|
-
"idempotent": false
|
|
474
|
+
"idempotent": false,
|
|
475
|
+
"binary": false
|
|
384
476
|
},
|
|
385
477
|
{
|
|
386
478
|
"id": "template.elenca",
|
|
@@ -389,7 +481,8 @@ exports.operazioni = [
|
|
|
389
481
|
"scope": "campaigns:write",
|
|
390
482
|
"group": "Campagne e automazioni",
|
|
391
483
|
"title": "Elenca i modelli di messaggio approvati",
|
|
392
|
-
"idempotent": false
|
|
484
|
+
"idempotent": false,
|
|
485
|
+
"binary": false
|
|
393
486
|
},
|
|
394
487
|
{
|
|
395
488
|
"id": "liste.elenca",
|
|
@@ -398,7 +491,8 @@ exports.operazioni = [
|
|
|
398
491
|
"scope": "campaigns:write",
|
|
399
492
|
"group": "Campagne e automazioni",
|
|
400
493
|
"title": "Elenca le liste dei destinatari",
|
|
401
|
-
"idempotent": false
|
|
494
|
+
"idempotent": false,
|
|
495
|
+
"binary": false
|
|
402
496
|
},
|
|
403
497
|
{
|
|
404
498
|
"id": "automazioni.simula",
|
|
@@ -407,7 +501,8 @@ exports.operazioni = [
|
|
|
407
501
|
"scope": "automations:write",
|
|
408
502
|
"group": "Campagne e automazioni",
|
|
409
503
|
"title": "Simula un'automazione sugli ultimi 30 giorni",
|
|
410
|
-
"idempotent": false
|
|
504
|
+
"idempotent": false,
|
|
505
|
+
"binary": false
|
|
411
506
|
},
|
|
412
507
|
{
|
|
413
508
|
"id": "automazioni.esecuzioni",
|
|
@@ -416,7 +511,8 @@ exports.operazioni = [
|
|
|
416
511
|
"scope": "automations:write",
|
|
417
512
|
"group": "Campagne e automazioni",
|
|
418
513
|
"title": "Elenca le esecuzioni delle automazioni",
|
|
419
|
-
"idempotent": false
|
|
514
|
+
"idempotent": false,
|
|
515
|
+
"binary": false
|
|
420
516
|
},
|
|
421
517
|
{
|
|
422
518
|
"id": "webhook.elenca",
|
|
@@ -425,7 +521,8 @@ exports.operazioni = [
|
|
|
425
521
|
"scope": "webhooks:write",
|
|
426
522
|
"group": "Attivatori",
|
|
427
523
|
"title": "Elenca gli indirizzi iscritti",
|
|
428
|
-
"idempotent": false
|
|
524
|
+
"idempotent": false,
|
|
525
|
+
"binary": false
|
|
429
526
|
},
|
|
430
527
|
{
|
|
431
528
|
"id": "webhook.iscrivi",
|
|
@@ -434,7 +531,8 @@ exports.operazioni = [
|
|
|
434
531
|
"scope": "webhooks:write",
|
|
435
532
|
"group": "Attivatori",
|
|
436
533
|
"title": "Iscrive un indirizzo alle attività",
|
|
437
|
-
"idempotent": false
|
|
534
|
+
"idempotent": false,
|
|
535
|
+
"binary": false
|
|
438
536
|
},
|
|
439
537
|
{
|
|
440
538
|
"id": "webhook.elimina",
|
|
@@ -443,7 +541,8 @@ exports.operazioni = [
|
|
|
443
541
|
"scope": "webhooks:write",
|
|
444
542
|
"group": "Attivatori",
|
|
445
543
|
"title": "Toglie un indirizzo iscritto",
|
|
446
|
-
"idempotent": false
|
|
544
|
+
"idempotent": false,
|
|
545
|
+
"binary": false
|
|
447
546
|
},
|
|
448
547
|
{
|
|
449
548
|
"id": "webhook.prova",
|
|
@@ -452,7 +551,8 @@ exports.operazioni = [
|
|
|
452
551
|
"scope": "webhooks:write",
|
|
453
552
|
"group": "Attivatori",
|
|
454
553
|
"title": "Manda un evento di prova",
|
|
455
|
-
"idempotent": false
|
|
554
|
+
"idempotent": false,
|
|
555
|
+
"binary": false
|
|
456
556
|
},
|
|
457
557
|
{
|
|
458
558
|
"id": "webhook.consegne",
|
|
@@ -461,7 +561,8 @@ exports.operazioni = [
|
|
|
461
561
|
"scope": "webhooks:write",
|
|
462
562
|
"group": "Attivatori",
|
|
463
563
|
"title": "Registro delle consegne",
|
|
464
|
-
"idempotent": false
|
|
564
|
+
"idempotent": false,
|
|
565
|
+
"binary": false
|
|
465
566
|
}
|
|
466
567
|
];
|
|
467
568
|
exports.eventi = [
|
|
@@ -512,5 +613,17 @@ exports.eventi = [
|
|
|
512
613
|
{
|
|
513
614
|
"value": "number.disconnected",
|
|
514
615
|
"name": "Numero scollegato"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"value": "group.joined",
|
|
619
|
+
"name": "Ingresso in un gruppo sincronizzato"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"value": "group.left",
|
|
623
|
+
"name": "Uscita da un gruppo sincronizzato"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"value": "group.join_request",
|
|
627
|
+
"name": "Richiesta di ingresso in un gruppo da approvare"
|
|
515
628
|
}
|
|
516
629
|
];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 455 455" width="64" height="64"
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 455 455" width="64" height="64">
|
|
2
2
|
<g transform="translate(0 455) scale(0.025 -0.025)">
|
|
3
3
|
<path fill="#25D366" d="M5685 17209 c-1908 -6 -1881 -5 -2150 -50 -1400 -233 -2435 -1366 -2556 -2796 -21 -250 -17 -13092 4 -13164 44 -146 176 -233 357 -232 149 1 195 30 560 363 104 95 354 313 480 420 36 30 115 102 175 160 61 58 164 151 230 207 66 55 195 172 286 260 231 222 194 210 619 185 210 -12 710 -22 2080 -42 371 -5 815 -14 985 -19 171 -5 470 -9 665 -10 409 -1 1397 -16 2030 -31 795 -18 2435 -32 3205 -28 l760 4 220 37 c917 154 1635 617 2135 1377 292 445 433 951 460 1655 16 402 8 8840 -8 8955 -134 953 -519 1618 -1253 2166 -434 322 -943 504 -1614 575 -125 13 -4520 18 -7670 8z"/>
|
|
4
4
|
<path fill="#FFFFFF" d="M4355 15030 c-328 -7 -423 -56 -474 -245 -16 -60 -17 -9936 -1 -9996 28 -101 114 -200 207 -235 59 -23 2070 -35 2192 -14 121 21 219 99 262 207 l23 58 1 1330 c0 1437 -3 1359 52 1432 58 76 69 78 523 78 l405 0 46 -27 c30 -18 65 -54 105 -109 32 -45 135 -181 228 -303 92 -122 213 -284 269 -361 55 -77 126 -171 157 -210 31 -38 127 -162 211 -275 244 -324 654 -855 748 -970 48 -58 127 -157 176 -220 295 -382 448 -551 536 -592 103 -49 92 -49 1649 -46 l1465 3 52 21 c229 94 252 313 57 534 -93 105 -351 411 -464 550 -95 117 -563 668 -760 895 -58 67 -175 204 -260 305 -85 101 -236 277 -335 393 -99 115 -216 252 -259 305 -44 54 -140 167 -214 252 -226 260 -226 267 -7 361 894 385 1516 1021 1875 1919 292 730 308 1818 38 2615 -454 1344 -1545 2132 -3228 2332 -135 16 -4601 27 -5275 13z m4883 -2448 c647 -125 1032 -581 1032 -1222 0 -611 -363 -1090 -936 -1236 -201 -50 -332 -55 -1524 -52 l-1095 3 -42 23 c-88 46 -97 74 -105 326 -11 321 0 1980 14 2034 15 57 74 117 135 136 89 28 2372 17 2521 -12z"/>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ivanlaomarketing/n8n-nodes-risveglia",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "n8n community node for RisveglIA: WhatsApp messages, contacts and deals, groups and channels, AI agent, media and triggers. Built by Ivan Lao (@ivanlaomarketing).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"ivanlaomarketing"
|
|
14
14
|
],
|
|
15
15
|
"license": "MIT",
|
|
16
|
-
"homepage": "https://
|
|
16
|
+
"homepage": "https://risveglia.it/integrazioni/n8n",
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "Ivan Lao",
|
|
19
19
|
"email": "info@laoivan.com",
|