n8n-nodes-flowboard 1.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.
- package/dist/credentials/FlowBoardApi.credentials.d.ts +8 -0
- package/dist/credentials/FlowBoardApi.credentials.js +69 -0
- package/dist/credentials/FlowBoardApi.credentials.js.map +1 -0
- package/dist/nodes/FlowBoard/FlowBoard.node.d.ts +5 -0
- package/dist/nodes/FlowBoard/FlowBoard.node.js +437 -0
- package/dist/nodes/FlowBoard/FlowBoard.node.js.map +1 -0
- package/dist/nodes/FlowBoard/flowboard.svg +15 -0
- package/package.json +49 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class FlowBoardApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
documentationUrl: string;
|
|
6
|
+
properties: INodeProperties[];
|
|
7
|
+
authenticate: IAuthenticateGeneric;
|
|
8
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FlowBoardApi = void 0;
|
|
4
|
+
class FlowBoardApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'flowBoardApi';
|
|
7
|
+
this.displayName = 'FlowBoard API';
|
|
8
|
+
this.documentationUrl = '';
|
|
9
|
+
this.properties = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'URL do Kanban',
|
|
12
|
+
name: 'baseUrl',
|
|
13
|
+
type: 'string',
|
|
14
|
+
default: '',
|
|
15
|
+
placeholder: 'https://kanban.seudominio.com.br',
|
|
16
|
+
description: 'URL base do backend do Kanban (sem barra final)',
|
|
17
|
+
required: true,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Access Token',
|
|
21
|
+
name: 'accessToken',
|
|
22
|
+
type: 'string',
|
|
23
|
+
typeOptions: { password: true },
|
|
24
|
+
default: '',
|
|
25
|
+
description: 'Token de acesso (access-token do Chatwoot)',
|
|
26
|
+
required: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
displayName: 'Client',
|
|
30
|
+
name: 'client',
|
|
31
|
+
type: 'string',
|
|
32
|
+
typeOptions: { password: true },
|
|
33
|
+
default: '',
|
|
34
|
+
description: 'Identificador do client (cookie "client" do Chatwoot)',
|
|
35
|
+
required: true,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
displayName: 'UID',
|
|
39
|
+
name: 'uid',
|
|
40
|
+
type: 'string',
|
|
41
|
+
default: '',
|
|
42
|
+
placeholder: 'email@exemplo.com',
|
|
43
|
+
description: 'UID do usuario (cookie "uid" do Chatwoot, geralmente o e-mail)',
|
|
44
|
+
required: true,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
displayName: 'Token Type',
|
|
48
|
+
name: 'tokenType',
|
|
49
|
+
type: 'string',
|
|
50
|
+
default: 'Bearer',
|
|
51
|
+
description: 'Tipo do token (geralmente "Bearer")',
|
|
52
|
+
},
|
|
53
|
+
];
|
|
54
|
+
this.authenticate = {
|
|
55
|
+
type: 'generic',
|
|
56
|
+
properties: {
|
|
57
|
+
headers: {
|
|
58
|
+
'access-token': '={{$credentials.accessToken}}',
|
|
59
|
+
'token-type': '={{$credentials.tokenType}}',
|
|
60
|
+
'client': '={{$credentials.client}}',
|
|
61
|
+
'uid': '={{$credentials.uid}}',
|
|
62
|
+
'Content-Type': 'application/json',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.FlowBoardApi = FlowBoardApi;
|
|
69
|
+
//# sourceMappingURL=FlowBoardApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowBoardApi.credentials.js","sourceRoot":"","sources":["../../credentials/FlowBoardApi.credentials.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oBAC/C,YAAY,EAAE,6BAA6B;oBAC3C,QAAQ,EAAE,0BAA0B;oBACpC,KAAK,EAAE,uBAAuB;oBAC9B,cAAc,EAAE,kBAAkB;iBAClC;aACD;SACD,CAAC;IACH,CAAC;CAAA;AA/DD,oCA+DC"}
|
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FlowBoard = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
class FlowBoard {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.description = {
|
|
8
|
+
displayName: 'FlowBoard Kanban',
|
|
9
|
+
name: 'flowBoard',
|
|
10
|
+
icon: 'file:flowboard.svg',
|
|
11
|
+
group: ['transform'],
|
|
12
|
+
version: 1,
|
|
13
|
+
subtitle: '={{ $parameter["resource"] + ": " + $parameter["operation"] }}',
|
|
14
|
+
description: 'Gerencie funis, etapas e mensagens agendadas do seu Kanban integrado ao Chatwoot',
|
|
15
|
+
defaults: {
|
|
16
|
+
name: 'FlowBoard Kanban',
|
|
17
|
+
},
|
|
18
|
+
inputs: ['main'],
|
|
19
|
+
outputs: ['main'],
|
|
20
|
+
usableAsTool: true,
|
|
21
|
+
credentials: [
|
|
22
|
+
{
|
|
23
|
+
name: 'flowBoardApi',
|
|
24
|
+
required: true,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
properties: [
|
|
28
|
+
// ─── RESOURCE ────────────────────────────────────────────
|
|
29
|
+
{
|
|
30
|
+
displayName: 'Recurso',
|
|
31
|
+
name: 'resource',
|
|
32
|
+
type: 'options',
|
|
33
|
+
noDataExpression: true,
|
|
34
|
+
options: [
|
|
35
|
+
{
|
|
36
|
+
name: 'Funil',
|
|
37
|
+
value: 'funnel',
|
|
38
|
+
description: 'Gerenciar funis (boards) do Kanban',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Conversa no Kanban',
|
|
42
|
+
value: 'conversationStage',
|
|
43
|
+
description: 'Gerenciar a posicao de conversas nas etapas do Kanban',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'Mensagem Agendada',
|
|
47
|
+
value: 'scheduledMessage',
|
|
48
|
+
description: 'Gerenciar mensagens agendadas de conversas',
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
default: 'funnel',
|
|
52
|
+
},
|
|
53
|
+
// ═══════════════════════════════════════════════════════════
|
|
54
|
+
// FUNIL
|
|
55
|
+
// ═══════════════════════════════════════════════════════════
|
|
56
|
+
// ─── OPERATIONS ──────────────────────────────────────────
|
|
57
|
+
{
|
|
58
|
+
displayName: 'Operacao',
|
|
59
|
+
name: 'operation',
|
|
60
|
+
type: 'options',
|
|
61
|
+
noDataExpression: true,
|
|
62
|
+
displayOptions: {
|
|
63
|
+
show: {
|
|
64
|
+
resource: ['funnel'],
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
options: [
|
|
68
|
+
{
|
|
69
|
+
name: 'Listar Todos',
|
|
70
|
+
value: 'list',
|
|
71
|
+
description: 'Listar todos os funis disponiveis',
|
|
72
|
+
action: 'Listar todos os funis',
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
default: 'list',
|
|
76
|
+
},
|
|
77
|
+
// ═══════════════════════════════════════════════════════════
|
|
78
|
+
// CONVERSA NO KANBAN
|
|
79
|
+
// ═══════════════════════════════════════════════════════════
|
|
80
|
+
// ─── OPERATIONS ──────────────────────────────────────────
|
|
81
|
+
{
|
|
82
|
+
displayName: 'Operacao',
|
|
83
|
+
name: 'operation',
|
|
84
|
+
type: 'options',
|
|
85
|
+
noDataExpression: true,
|
|
86
|
+
displayOptions: {
|
|
87
|
+
show: {
|
|
88
|
+
resource: ['conversationStage'],
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
options: [
|
|
92
|
+
{
|
|
93
|
+
name: 'Obter Etapa Atual',
|
|
94
|
+
value: 'getStage',
|
|
95
|
+
description: 'Obter a etapa atual de uma conversa no Kanban',
|
|
96
|
+
action: 'Obter etapa atual da conversa',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'Mover Para Etapa',
|
|
100
|
+
value: 'moveToStage',
|
|
101
|
+
description: 'Mover uma conversa para outra etapa do funil',
|
|
102
|
+
action: 'Mover conversa para etapa',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: 'Remover do Kanban',
|
|
106
|
+
value: 'remove',
|
|
107
|
+
description: 'Remover uma conversa do Kanban',
|
|
108
|
+
action: 'Remover conversa do kanban',
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
default: 'getStage',
|
|
112
|
+
},
|
|
113
|
+
// ─── FIELDS: Conversa no Kanban ──────────────────────────
|
|
114
|
+
{
|
|
115
|
+
displayName: 'ID da Conversa',
|
|
116
|
+
name: 'conversationId',
|
|
117
|
+
type: 'string',
|
|
118
|
+
required: true,
|
|
119
|
+
default: '',
|
|
120
|
+
placeholder: '12345',
|
|
121
|
+
description: 'ID da conversa no Chatwoot',
|
|
122
|
+
displayOptions: {
|
|
123
|
+
show: {
|
|
124
|
+
resource: ['conversationStage'],
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
displayName: 'ID da Etapa (Stage)',
|
|
130
|
+
name: 'stageId',
|
|
131
|
+
type: 'string',
|
|
132
|
+
required: true,
|
|
133
|
+
default: '',
|
|
134
|
+
placeholder: '1',
|
|
135
|
+
description: 'ID da etapa de destino no funil',
|
|
136
|
+
displayOptions: {
|
|
137
|
+
show: {
|
|
138
|
+
resource: ['conversationStage'],
|
|
139
|
+
operation: ['moveToStage'],
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
// ═══════════════════════════════════════════════════════════
|
|
144
|
+
// MENSAGEM AGENDADA
|
|
145
|
+
// ═══════════════════════════════════════════════════════════
|
|
146
|
+
// ─── OPERATIONS ──────────────────────────────────────────
|
|
147
|
+
{
|
|
148
|
+
displayName: 'Operacao',
|
|
149
|
+
name: 'operation',
|
|
150
|
+
type: 'options',
|
|
151
|
+
noDataExpression: true,
|
|
152
|
+
displayOptions: {
|
|
153
|
+
show: {
|
|
154
|
+
resource: ['scheduledMessage'],
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
options: [
|
|
158
|
+
{
|
|
159
|
+
name: 'Criar',
|
|
160
|
+
value: 'create',
|
|
161
|
+
description: 'Agendar uma nova mensagem para uma conversa',
|
|
162
|
+
action: 'Criar mensagem agendada',
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: 'Listar',
|
|
166
|
+
value: 'list',
|
|
167
|
+
description: 'Listar todas as mensagens agendadas de uma conversa',
|
|
168
|
+
action: 'Listar mensagens agendadas',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: 'Editar',
|
|
172
|
+
value: 'update',
|
|
173
|
+
description: 'Editar uma mensagem agendada existente',
|
|
174
|
+
action: 'Editar mensagem agendada',
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: 'Cancelar',
|
|
178
|
+
value: 'delete',
|
|
179
|
+
description: 'Cancelar (excluir) uma mensagem agendada',
|
|
180
|
+
action: 'Cancelar mensagem agendada',
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
default: 'create',
|
|
184
|
+
},
|
|
185
|
+
// ─── FIELDS: Mensagem Agendada ───────────────────────────
|
|
186
|
+
// ID da conversa (para todas as operacoes de mensagem agendada)
|
|
187
|
+
{
|
|
188
|
+
displayName: 'ID da Conversa',
|
|
189
|
+
name: 'conversationId',
|
|
190
|
+
type: 'string',
|
|
191
|
+
required: true,
|
|
192
|
+
default: '',
|
|
193
|
+
placeholder: '12345',
|
|
194
|
+
description: 'ID da conversa no Chatwoot',
|
|
195
|
+
displayOptions: {
|
|
196
|
+
show: {
|
|
197
|
+
resource: ['scheduledMessage'],
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
// ID da mensagem (para update e delete)
|
|
202
|
+
{
|
|
203
|
+
displayName: 'ID da Mensagem Agendada',
|
|
204
|
+
name: 'messageId',
|
|
205
|
+
type: 'string',
|
|
206
|
+
required: true,
|
|
207
|
+
default: '',
|
|
208
|
+
placeholder: '99',
|
|
209
|
+
description: 'ID da mensagem agendada',
|
|
210
|
+
displayOptions: {
|
|
211
|
+
show: {
|
|
212
|
+
resource: ['scheduledMessage'],
|
|
213
|
+
operation: ['update', 'delete'],
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
// Conteudo da mensagem (para create e update)
|
|
218
|
+
{
|
|
219
|
+
displayName: 'Mensagem',
|
|
220
|
+
name: 'message',
|
|
221
|
+
type: 'string',
|
|
222
|
+
typeOptions: {
|
|
223
|
+
rows: 4,
|
|
224
|
+
},
|
|
225
|
+
required: true,
|
|
226
|
+
default: '',
|
|
227
|
+
placeholder: 'Ola! Gostaria de confirmar seu agendamento...',
|
|
228
|
+
description: 'Conteudo da mensagem a ser enviada',
|
|
229
|
+
displayOptions: {
|
|
230
|
+
show: {
|
|
231
|
+
resource: ['scheduledMessage'],
|
|
232
|
+
operation: ['create'],
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
// Data/hora do agendamento (para create)
|
|
237
|
+
{
|
|
238
|
+
displayName: 'Data e Hora do Envio',
|
|
239
|
+
name: 'scheduledAt',
|
|
240
|
+
type: 'dateTime',
|
|
241
|
+
required: true,
|
|
242
|
+
default: '',
|
|
243
|
+
description: 'Data e hora em que a mensagem sera enviada (formato ISO 8601)',
|
|
244
|
+
displayOptions: {
|
|
245
|
+
show: {
|
|
246
|
+
resource: ['scheduledMessage'],
|
|
247
|
+
operation: ['create'],
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
// Campos opcionais do update
|
|
252
|
+
{
|
|
253
|
+
displayName: 'Campos Para Atualizar',
|
|
254
|
+
name: 'updateFields',
|
|
255
|
+
type: 'collection',
|
|
256
|
+
placeholder: 'Adicionar Campo',
|
|
257
|
+
default: {},
|
|
258
|
+
displayOptions: {
|
|
259
|
+
show: {
|
|
260
|
+
resource: ['scheduledMessage'],
|
|
261
|
+
operation: ['update'],
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
options: [
|
|
265
|
+
{
|
|
266
|
+
displayName: 'Mensagem',
|
|
267
|
+
name: 'message',
|
|
268
|
+
type: 'string',
|
|
269
|
+
typeOptions: {
|
|
270
|
+
rows: 4,
|
|
271
|
+
},
|
|
272
|
+
default: '',
|
|
273
|
+
description: 'Novo conteudo da mensagem',
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
displayName: 'Data e Hora do Envio',
|
|
277
|
+
name: 'scheduledAt',
|
|
278
|
+
type: 'dateTime',
|
|
279
|
+
default: '',
|
|
280
|
+
description: 'Nova data e hora do envio',
|
|
281
|
+
},
|
|
282
|
+
],
|
|
283
|
+
},
|
|
284
|
+
// Campos opcionais do create
|
|
285
|
+
{
|
|
286
|
+
displayName: 'Opcoes Adicionais',
|
|
287
|
+
name: 'additionalOptions',
|
|
288
|
+
type: 'collection',
|
|
289
|
+
placeholder: 'Adicionar Opcao',
|
|
290
|
+
default: {},
|
|
291
|
+
displayOptions: {
|
|
292
|
+
show: {
|
|
293
|
+
resource: ['scheduledMessage'],
|
|
294
|
+
operation: ['create'],
|
|
295
|
+
},
|
|
296
|
+
},
|
|
297
|
+
options: [
|
|
298
|
+
{
|
|
299
|
+
displayName: 'Anexos (JSON)',
|
|
300
|
+
name: 'attachments',
|
|
301
|
+
type: 'string',
|
|
302
|
+
default: '',
|
|
303
|
+
placeholder: '["url1", "url2"]',
|
|
304
|
+
description: 'Lista de URLs de anexos em formato JSON',
|
|
305
|
+
},
|
|
306
|
+
],
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
async execute() {
|
|
312
|
+
var _a;
|
|
313
|
+
const items = this.getInputData();
|
|
314
|
+
const returnData = [];
|
|
315
|
+
const credentials = await this.getCredentials('flowBoardApi');
|
|
316
|
+
const baseUrl = credentials.baseUrl.replace(/\/+$/, '');
|
|
317
|
+
for (let i = 0; i < items.length; i++) {
|
|
318
|
+
try {
|
|
319
|
+
const resource = this.getNodeParameter('resource', i);
|
|
320
|
+
const operation = this.getNodeParameter('operation', i);
|
|
321
|
+
let endpoint = '';
|
|
322
|
+
let method = 'GET';
|
|
323
|
+
let body = {};
|
|
324
|
+
// ─── FUNIL ───────────────────────────────────────
|
|
325
|
+
if (resource === 'funnel') {
|
|
326
|
+
if (operation === 'list') {
|
|
327
|
+
endpoint = '/api/funnels';
|
|
328
|
+
method = 'GET';
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
// ─── CONVERSA NO KANBAN ──────────────────────────
|
|
332
|
+
if (resource === 'conversationStage') {
|
|
333
|
+
const conversationId = this.getNodeParameter('conversationId', i);
|
|
334
|
+
if (operation === 'getStage') {
|
|
335
|
+
endpoint = `/api/kanban/conversation/${conversationId}/stage`;
|
|
336
|
+
method = 'GET';
|
|
337
|
+
}
|
|
338
|
+
if (operation === 'moveToStage') {
|
|
339
|
+
const stageId = this.getNodeParameter('stageId', i);
|
|
340
|
+
endpoint = `/api/kanban/${conversationId}/move-to-stage`;
|
|
341
|
+
method = 'PATCH';
|
|
342
|
+
body = { stageId: Number(stageId) };
|
|
343
|
+
}
|
|
344
|
+
if (operation === 'remove') {
|
|
345
|
+
endpoint = `/api/kanban/${conversationId}/remove`;
|
|
346
|
+
method = 'DELETE';
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
// ─── MENSAGEM AGENDADA ───────────────────────────
|
|
350
|
+
if (resource === 'scheduledMessage') {
|
|
351
|
+
const conversationId = this.getNodeParameter('conversationId', i);
|
|
352
|
+
if (operation === 'create') {
|
|
353
|
+
const message = this.getNodeParameter('message', i);
|
|
354
|
+
const scheduledAt = this.getNodeParameter('scheduledAt', i);
|
|
355
|
+
const additionalOptions = this.getNodeParameter('additionalOptions', i, {});
|
|
356
|
+
endpoint = `/api/conversations/${conversationId}/scheduled-messages`;
|
|
357
|
+
method = 'POST';
|
|
358
|
+
body = {
|
|
359
|
+
message,
|
|
360
|
+
scheduledAt,
|
|
361
|
+
};
|
|
362
|
+
if (additionalOptions.attachments) {
|
|
363
|
+
try {
|
|
364
|
+
body.attachments = JSON.parse(additionalOptions.attachments);
|
|
365
|
+
}
|
|
366
|
+
catch {
|
|
367
|
+
body.attachments = additionalOptions.attachments;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
if (operation === 'list') {
|
|
372
|
+
endpoint = `/api/conversations/${conversationId}/scheduled-messages`;
|
|
373
|
+
method = 'GET';
|
|
374
|
+
}
|
|
375
|
+
if (operation === 'update') {
|
|
376
|
+
const messageId = this.getNodeParameter('messageId', i);
|
|
377
|
+
const updateFields = this.getNodeParameter('updateFields', i, {});
|
|
378
|
+
if (Object.keys(updateFields).length === 0) {
|
|
379
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Selecione pelo menos um campo para atualizar', { itemIndex: i });
|
|
380
|
+
}
|
|
381
|
+
endpoint = `/api/conversations/${conversationId}/scheduled-messages/${messageId}`;
|
|
382
|
+
method = 'PATCH';
|
|
383
|
+
body = {};
|
|
384
|
+
if (updateFields.message !== undefined) {
|
|
385
|
+
body.message = updateFields.message;
|
|
386
|
+
}
|
|
387
|
+
if (updateFields.scheduledAt !== undefined) {
|
|
388
|
+
body.scheduledAt = updateFields.scheduledAt;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
if (operation === 'delete') {
|
|
392
|
+
const messageId = this.getNodeParameter('messageId', i);
|
|
393
|
+
endpoint = `/api/conversations/${conversationId}/scheduled-messages/${messageId}`;
|
|
394
|
+
method = 'DELETE';
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
// ─── EXECUTA A REQUISICAO ────────────────────────
|
|
398
|
+
const requestOptions = {
|
|
399
|
+
method,
|
|
400
|
+
url: `${baseUrl}${endpoint}`,
|
|
401
|
+
json: true,
|
|
402
|
+
};
|
|
403
|
+
if (method !== 'GET' && method !== 'DELETE' && Object.keys(body).length > 0) {
|
|
404
|
+
requestOptions.body = body;
|
|
405
|
+
}
|
|
406
|
+
const response = await this.helpers.httpRequestWithAuthentication.call(this, 'flowBoardApi', requestOptions);
|
|
407
|
+
// Normaliza a resposta para array
|
|
408
|
+
if (Array.isArray(response)) {
|
|
409
|
+
for (const item of response) {
|
|
410
|
+
returnData.push({ json: item });
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
else {
|
|
414
|
+
returnData.push({ json: response !== null && response !== void 0 ? response : { success: true } });
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
catch (error) {
|
|
418
|
+
if (this.continueOnFail()) {
|
|
419
|
+
returnData.push({
|
|
420
|
+
json: {
|
|
421
|
+
error: error.message,
|
|
422
|
+
},
|
|
423
|
+
pairedItem: { item: i },
|
|
424
|
+
});
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
427
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, {
|
|
428
|
+
itemIndex: i,
|
|
429
|
+
description: (_a = error.description) !== null && _a !== void 0 ? _a : `Erro ao chamar a API do FlowBoard: ${error.message}`,
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
return [returnData];
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
exports.FlowBoard = FlowBoard;
|
|
437
|
+
//# sourceMappingURL=FlowBoard.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowBoard.node.js","sourceRoot":"","sources":["../../../nodes/FlowBoard/FlowBoard.node.ts"],"names":[],"mappings":";;;AAAA,+CAOsB;AAEtB,MAAa,SAAS;IAAtB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,k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
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
|
|
2
|
+
<rect width="64" height="64" rx="12" fill="#6C5CE7"/>
|
|
3
|
+
<rect x="10" y="14" width="12" height="36" rx="3" fill="white" opacity="0.9"/>
|
|
4
|
+
<rect x="26" y="14" width="12" height="26" rx="3" fill="white" opacity="0.7"/>
|
|
5
|
+
<rect x="42" y="14" width="12" height="18" rx="3" fill="white" opacity="0.5"/>
|
|
6
|
+
<rect x="12" y="17" width="8" height="2" rx="1" fill="#6C5CE7"/>
|
|
7
|
+
<rect x="12" y="22" width="8" height="6" rx="1" fill="#A29BFE" opacity="0.5"/>
|
|
8
|
+
<rect x="12" y="30" width="8" height="6" rx="1" fill="#A29BFE" opacity="0.5"/>
|
|
9
|
+
<rect x="12" y="38" width="8" height="6" rx="1" fill="#A29BFE" opacity="0.5"/>
|
|
10
|
+
<rect x="28" y="17" width="8" height="2" rx="1" fill="#6C5CE7"/>
|
|
11
|
+
<rect x="28" y="22" width="8" height="6" rx="1" fill="#A29BFE" opacity="0.5"/>
|
|
12
|
+
<rect x="28" y="30" width="8" height="6" rx="1" fill="#A29BFE" opacity="0.5"/>
|
|
13
|
+
<rect x="44" y="17" width="8" height="2" rx="1" fill="#6C5CE7"/>
|
|
14
|
+
<rect x="44" y="22" width="8" height="6" rx="1" fill="#A29BFE" opacity="0.5"/>
|
|
15
|
+
</svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-flowboard",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "n8n community node for Kanban board management integrated with Chatwoot",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"n8n-community-node-package",
|
|
7
|
+
"kanban",
|
|
8
|
+
"chatwoot",
|
|
9
|
+
"crm",
|
|
10
|
+
"flowboard"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"author": {
|
|
14
|
+
"name": "FlowBoard"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": ""
|
|
19
|
+
},
|
|
20
|
+
"main": "index.js",
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc && gulp build:icons",
|
|
23
|
+
"dev": "tsc --watch",
|
|
24
|
+
"prepublishOnly": "npm run build",
|
|
25
|
+
"lint": "tslint -p tsconfig.json -c tslint.json",
|
|
26
|
+
"lintfix": "tslint --fix -p tsconfig.json -c tslint.json"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist"
|
|
30
|
+
],
|
|
31
|
+
"n8n": {
|
|
32
|
+
"n8nNodesApiVersion": 1,
|
|
33
|
+
"credentials": [
|
|
34
|
+
"dist/credentials/FlowBoardApi.credentials.js"
|
|
35
|
+
],
|
|
36
|
+
"nodes": [
|
|
37
|
+
"dist/nodes/FlowBoard/FlowBoard.node.js"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/node": "^20.0.0",
|
|
42
|
+
"gulp": "^4.0.2",
|
|
43
|
+
"n8n-workflow": "*",
|
|
44
|
+
"typescript": "~5.3.0"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"n8n-workflow": "*"
|
|
48
|
+
}
|
|
49
|
+
}
|