n8n-nodes-aib 0.3.0 → 0.3.1

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.
@@ -205,6 +205,22 @@ class AibDigital {
205
205
  default: "",
206
206
  displayOptions: { show: { operation: ["criarEtapa"] } },
207
207
  },
208
+ {
209
+ displayName: "Etapa de ganho",
210
+ name: "etapaGanha",
211
+ type: "boolean",
212
+ default: false,
213
+ displayOptions: { show: { operation: ["criarEtapa"] } },
214
+ description: "Card que chega aqui conta como negócio ganho",
215
+ },
216
+ {
217
+ displayName: "Etapa de perda",
218
+ name: "etapaPerdida",
219
+ type: "boolean",
220
+ default: false,
221
+ displayOptions: { show: { operation: ["criarEtapa"] } },
222
+ description: "Card que chega aqui conta como negócio perdido",
223
+ },
208
224
  {
209
225
  displayName: "Contato (ID)",
210
226
  name: "contatoId",
@@ -333,6 +349,8 @@ class AibDigital {
333
349
  res = await api(this, "POST", `/api/v1/funis/${funilId}/etapas`, {
334
350
  nome: this.getNodeParameter("etapaNome", i),
335
351
  ...(this.getNodeParameter("etapaCor", i, "") ? { cor: this.getNodeParameter("etapaCor", i, "") } : {}),
352
+ ...(this.getNodeParameter("etapaGanha", i, false) ? { ganha: true } : {}),
353
+ ...(this.getNodeParameter("etapaPerdida", i, false) ? { perdida: true } : {}),
336
354
  }, qs);
337
355
  }
338
356
  else if (operation === "atualizarContato") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-aib",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Nós do Sistema AIB Digital para n8n: gatilho de mensagens do WhatsApp (via AIB Inbox) e ações — enviar mensagem, mover card no funil, pausar IA — escolhendo conta e caixa por dropdown.",
5
5
  "license": "MIT",
6
6
  "author": "AIB Digital",