@pipefy/pipefy-process-coder 0.1.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.
Files changed (92) hide show
  1. package/.agents/skills/ppc-pipefy-flow-authoring/SKILL.md +262 -0
  2. package/.agents/skills/ppc-pipefy-flow-authoring/examples/01-main-2-danfe-consulta.json +247 -0
  3. package/.agents/skills/ppc-pipefy-flow-authoring/examples/01-main-2-webhook-retorno-consulta.json +589 -0
  4. package/.agents/skills/ppc-pipefy-flow-authoring/examples/01-main-4-recebimento-barramento.json +1391 -0
  5. package/.agents/skills/ppc-pipefy-flow-authoring/examples/02-subflow-2-danfe-retorno.json +623 -0
  6. package/.agents/skills/ppc-pipefy-flow-authoring/examples/02-subflow-4-criacao-operacao.json +636 -0
  7. package/.agents/skills/ppc-pipefy-flow-authoring/examples/03-subflow-4-criacao-titulo.json +3642 -0
  8. package/.agents/skills/ppc-pipefy-flow-authoring/examples/04-subflow-4-criacao-cedente.json +863 -0
  9. package/.agents/skills/ppc-pipefy-flow-authoring/examples/04-subflow-4-criacao-sacado.json +799 -0
  10. package/.agents/skills/ppc-pipefy-flow-authoring/examples/README.md +42 -0
  11. package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-01-subflow-1-titulo-acompanhamento-cobranca.json +581 -0
  12. package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-01-subflow-1-titulo-nfe-monitoramento.json +503 -0
  13. package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-01-subflow-1-titulo-retorno-bancario.json +562 -0
  14. package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-02-subflow-2-retorno-consulta-cedente.json +557 -0
  15. package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-02-subflow-2-retorno-consulta-sacado.json +609 -0
  16. package/.agents/skills/ppc-pipefy-pipe-authoring/SKILL.md +146 -0
  17. package/.agents/skills/ppc-pipefy-process-design/SKILL.md +127 -0
  18. package/.agents/skills/ppc-pipefy-workspace/SKILL.md +91 -0
  19. package/AGENTS.md +456 -0
  20. package/README.md +808 -0
  21. package/bin/pipe.js +13 -0
  22. package/package.json +35 -0
  23. package/src/apply/adopt.ts +150 -0
  24. package/src/apply/agentops.ts +71 -0
  25. package/src/apply/compile.ts +875 -0
  26. package/src/apply/execute.ts +336 -0
  27. package/src/apply/flowops.ts +399 -0
  28. package/src/apply/idmap.ts +241 -0
  29. package/src/apply/mutations.ts +955 -0
  30. package/src/apply/registry.ts +430 -0
  31. package/src/apply/types.ts +134 -0
  32. package/src/cli/args.ts +88 -0
  33. package/src/cli.ts +211 -0
  34. package/src/codec/flow.ts +199 -0
  35. package/src/codec/pack.ts +103 -0
  36. package/src/codec/roundtrip.ts +94 -0
  37. package/src/codec/unpack.ts +198 -0
  38. package/src/commands/agents.ts +184 -0
  39. package/src/commands/apply.ts +1144 -0
  40. package/src/commands/context.ts +119 -0
  41. package/src/commands/create.ts +79 -0
  42. package/src/commands/diff.ts +314 -0
  43. package/src/commands/flows.ts +414 -0
  44. package/src/commands/misc.ts +644 -0
  45. package/src/commands/plan.ts +331 -0
  46. package/src/commands/pull.ts +567 -0
  47. package/src/commands/runs.ts +83 -0
  48. package/src/commands/skills.ts +137 -0
  49. package/src/commands/verify.ts +253 -0
  50. package/src/config.ts +168 -0
  51. package/src/diff/agents.ts +122 -0
  52. package/src/diff/diff.ts +1130 -0
  53. package/src/diff/flow.ts +318 -0
  54. package/src/diff/html.ts +322 -0
  55. package/src/diff/render.ts +101 -0
  56. package/src/model/payload.ts +154 -0
  57. package/src/model/tree.ts +99 -0
  58. package/src/model/volatile.ts +55 -0
  59. package/src/pipefy/agents.ts +165 -0
  60. package/src/pipefy/automations.ts +219 -0
  61. package/src/pipefy/capability.ts +119 -0
  62. package/src/pipefy/client.ts +267 -0
  63. package/src/pipefy/discovery.ts +209 -0
  64. package/src/pipefy/internal.ts +380 -0
  65. package/src/pipefy/ipaas.ts +365 -0
  66. package/src/pipefy/reconstruct.ts +775 -0
  67. package/src/pipefy/reference.ts +251 -0
  68. package/src/pipefy/snapshot.ts +245 -0
  69. package/src/pipefy/toolkit.ts +200 -0
  70. package/src/pipefy/toolkit_bearer.py +137 -0
  71. package/src/report/integrations.ts +231 -0
  72. package/src/report/run.ts +475 -0
  73. package/src/util/fsx.ts +45 -0
  74. package/src/util/git.ts +32 -0
  75. package/src/util/json.ts +55 -0
  76. package/src/util/log.ts +76 -0
  77. package/src/util/pool.ts +48 -0
  78. package/src/util/slug.ts +26 -0
  79. package/src/util/tui.ts +335 -0
  80. package/src/validate/index.ts +123 -0
  81. package/src/validate/integrity.ts +387 -0
  82. package/src/validate/reference.ts +136 -0
  83. package/src/validate/schema.ts +328 -0
  84. package/src/workspace/agents.ts +290 -0
  85. package/src/workspace/docs.ts +407 -0
  86. package/src/workspace/flows.ts +191 -0
  87. package/src/workspace/layout.ts +165 -0
  88. package/src/workspace/lock.ts +148 -0
  89. package/src/workspace/read.ts +165 -0
  90. package/src/workspace/reference.ts +24 -0
  91. package/src/workspace/stamp.ts +301 -0
  92. package/src/workspace/write.ts +225 -0
@@ -0,0 +1,1391 @@
1
+ {
2
+ "name": "✅[PRD][1/4 MAIN][CRIAÇÃO] RECEBIMENTO BARRAMENTO",
3
+ "type": "SHARED",
4
+ "summary": "",
5
+ "description": "",
6
+ "tags": [],
7
+ "blogUrl": "",
8
+ "metadata": {
9
+ "externalId": "exampleFlowId08aaaaaa"
10
+ },
11
+ "author": "Integrações Ipaas 000000000",
12
+ "categories": [],
13
+ "pieces": [
14
+ "@activepieces/piece-webhook",
15
+ "@activepieces/piece-subflows"
16
+ ],
17
+ "flows": [
18
+ {
19
+ "displayName": "✅[PRD][1/4 MAIN][CRIAÇÃO] RECEBIMENTO BARRAMENTO",
20
+ "trigger": {
21
+ "name": "trigger",
22
+ "valid": true,
23
+ "displayName": "Capturar Webhook",
24
+ "nextAction": {
25
+ "name": "step_1",
26
+ "skip": false,
27
+ "type": "ROUTER",
28
+ "valid": true,
29
+ "children": [
30
+ {
31
+ "name": "step_2",
32
+ "skip": false,
33
+ "type": "PIECE",
34
+ "valid": true,
35
+ "settings": {
36
+ "input": {
37
+ "fields": {
38
+ "body": {
39
+ "message": "Autenticado"
40
+ },
41
+ "status": 200,
42
+ "headers": {}
43
+ },
44
+ "respond": "respond",
45
+ "responseType": "json"
46
+ },
47
+ "pieceName": "@activepieces/piece-webhook",
48
+ "actionName": "return_response",
49
+ "sampleData": {},
50
+ "pieceVersion": "0.1.33",
51
+ "propertySettings": {
52
+ "fields": {
53
+ "type": "MANUAL",
54
+ "schema": {
55
+ "body": {
56
+ "type": "JSON",
57
+ "required": true,
58
+ "displayName": "JSON Body"
59
+ },
60
+ "status": {
61
+ "type": "NUMBER",
62
+ "required": false,
63
+ "displayName": "Status",
64
+ "defaultValue": 200
65
+ },
66
+ "headers": {
67
+ "type": "OBJECT",
68
+ "required": false,
69
+ "displayName": "Headers"
70
+ }
71
+ }
72
+ },
73
+ "respond": {
74
+ "type": "MANUAL"
75
+ },
76
+ "responseType": {
77
+ "type": "MANUAL"
78
+ }
79
+ },
80
+ "errorHandlingOptions": {
81
+ "retryOnFailure": {
82
+ "value": false
83
+ },
84
+ "continueOnFailure": {
85
+ "value": false
86
+ }
87
+ }
88
+ },
89
+ "nextAction": {
90
+ "name": "step_4",
91
+ "skip": false,
92
+ "type": "CODE",
93
+ "valid": true,
94
+ "settings": {
95
+ "input": {
96
+ "operacoes": "{{trigger['output']['body']['operacoes']}}"
97
+ },
98
+ "sampleData": {},
99
+ "sourceCode": {
100
+ "code": "export const code = async (inputs) => {\n const operacoes = inputs.operacoes || [];\n\n // Monta chave canônica: 4 primeiros dígitos do idg + idOperacao + empresaCodigo\n const chaveOperacao = (op) => {\n const idg4 = String(op.idg ?? '').trim().slice(0, 4);\n return `${idg4}|${op.idOperacao}|${op.empresaCodigo}`;\n };\n\n // Consolida duplicatas dentro do payload (mesma chave = mesmo card)\n // Dedupe de títulos por numeroTitulo dentro de cada operação consolidada\n const mapa = new Map();\n\n for (const op of operacoes) {\n const chave = chaveOperacao(op);\n const opTrimmed = { ...op, idg: String(op.idg ?? '').trim() };\n const titulosEntrada = Array.isArray(op.titulos)\n ? op.titulos.map((t) => ({ ...t, idg: String(t.idg ?? '').trim() }))\n : [];\n\n if (!mapa.has(chave)) {\n const titulosUnicos = [];\n const vistos = new Set();\n for (const t of titulosEntrada) {\n if (!vistos.has(t.numeroTitulo)) {\n vistos.add(t.numeroTitulo);\n titulosUnicos.push(t);\n }\n }\n mapa.set(chave, {\n chaveComposta: chave,\n ...opTrimmed,\n titulos: titulosUnicos,\n _numerosTitulo: new Set(titulosUnicos.map((t) => t.numeroTitulo)),\n });\n } else {\n const existente = mapa.get(chave);\n for (const t of titulosEntrada) {\n if (!existente._numerosTitulo.has(t.numeroTitulo)) {\n existente._numerosTitulo.add(t.numeroTitulo);\n existente.titulos.push(t);\n }\n }\n }\n }\n\n // Limpa o Set auxiliar e adiciona totais\n const cardsParaCriar = Array.from(mapa.values()).map((card) => {\n const { _numerosTitulo, ...resto } = card;\n return {\n ...resto,\n quantidadeTitulos: resto.titulos.length,\n valorBrutoTotal: resto.titulos.reduce(\n (acc, t) => acc + (Number(t.valorBruto) || 0),\n 0\n ),\n valorLiquidoTotal: resto.titulos.reduce(\n (acc, t) => acc + (Number(t.valorLiquido) || 0),\n 0\n ),\n };\n });\n\n return {\n cards: cardsParaCriar,\n totalCards: cardsParaCriar.length,\n totalOperacoesEntrada: operacoes.length,\n totalTitulos: cardsParaCriar.reduce((acc, c) => acc + c.titulos.length, 0),\n };\n};",
101
+ "packageJson": "{}"
102
+ },
103
+ "errorHandlingOptions": {
104
+ "retryOnFailure": {
105
+ "value": false
106
+ },
107
+ "continueOnFailure": {
108
+ "value": false
109
+ }
110
+ }
111
+ },
112
+ "nextAction": {
113
+ "name": "step_5",
114
+ "skip": false,
115
+ "type": "LOOP_ON_ITEMS",
116
+ "valid": true,
117
+ "settings": {
118
+ "items": "{{step_4['output']['cards']}}",
119
+ "sampleData": {}
120
+ },
121
+ "displayName": "Loop on Items",
122
+ "firstLoopAction": {
123
+ "name": "step_6",
124
+ "skip": false,
125
+ "type": "PIECE",
126
+ "valid": true,
127
+ "settings": {
128
+ "input": {
129
+ "flow": {
130
+ "externalId": "exampleFlowId05aaaaaa",
131
+ "exampleData": {
132
+ "sampleData": {
133
+ "operacao": {
134
+ "idg": "example",
135
+ "origem": "example",
136
+ "idgDesc": "example",
137
+ "titulos": [
138
+ {
139
+ "idg": "example",
140
+ "eveNfe": "example",
141
+ "sacado": {
142
+ "nome": "example",
143
+ "email": "example",
144
+ "endereco": "example",
145
+ "idSacado": 0,
146
+ "percHNeg": {
147
+ "totQtd": 0,
148
+ "totSac": 0,
149
+ "totNegativa": 0
150
+ },
151
+ "percHPre": {
152
+ "totQtd": 0,
153
+ "totSac": 0,
154
+ "totPresente": 0
155
+ },
156
+ "cnpjOuCpf": "example",
157
+ "idCedente": 0,
158
+ "indicadores": "example",
159
+ "razaoSocial": "example",
160
+ "nomeFantasia": "example",
161
+ "codigoEmpresa": 0,
162
+ "telefoneContato": "example",
163
+ "liquidacaoPorEvento": [
164
+ {
165
+ "descricao": "example",
166
+ "codigoEvento": 0,
167
+ "totalLiquidado": 0,
168
+ "quantidadeTitulos": 0
169
+ }
170
+ ],
171
+ "historicoValorAberto": {
172
+ "totalTitulosAbertos": 0,
173
+ "totalTitulosAbertosQtd": 0,
174
+ "totalTitulosAbertosVencer": 0,
175
+ "totalTitulosAbertosVencidos": 0,
176
+ "totalTitulosAbertosVencerQtd": 0,
177
+ "totalTitulosAbertosVencidosQtd": 0
178
+ },
179
+ "historicoValorLiquidado": {
180
+ "totalOpeNaoEfetivadas": 0,
181
+ "totalTitulosLiquidados": 0,
182
+ "totalOpeNaoEfetivadasQtd": 0,
183
+ "totalTitulosLiquidadosQtd": 0,
184
+ "totalTitulosLiquidadosPagoDia": 0,
185
+ "totalTitulosLiquidadosPagoAtraso": 0,
186
+ "totalTitulosLiquidadosPagoDiaQtd": 0,
187
+ "totalTitulosLiquidadosPagoAtrasoQtd": 0,
188
+ "totalTitulosLiquidadosChequeDevolvido": 0,
189
+ "totalTitulosLiquidadosChequeDevolvidoQtd": 0
190
+ }
191
+ },
192
+ "status": "example",
193
+ "cedente": {
194
+ "nome": "example",
195
+ "email": "example",
196
+ "endereco": "example",
197
+ "cnpjOuCpf": "example",
198
+ "idCedente": 0,
199
+ "dataCadastro": "example",
200
+ "codigoEmpresa": 0,
201
+ "telefoneContato": "example",
202
+ "idGrupoPrincipal": 0,
203
+ "analistaResponsavel": "example",
204
+ "vinculoGrupoEconomico": false
205
+ },
206
+ "idgDesc": "example",
207
+ "documento": "example",
208
+ "linkBoleto": "example",
209
+ "numeroNota": "example",
210
+ "valorBruto": 0,
211
+ "vencimento": "example",
212
+ "confirmacao": "example",
213
+ "empresaNome": "example",
214
+ "nfXmlBase64": "example",
215
+ "numeroTitulo": 0,
216
+ "valorLiquido": 0,
217
+ "classificacao": "example",
218
+ "empresaCodigo": 0,
219
+ "idUnicoSacado": 0,
220
+ "valorPassagem": 0,
221
+ "formaPagamento": "example",
222
+ "idUnicoCedente": 0,
223
+ "statusBancario": "example",
224
+ "dataFaturamento": "example",
225
+ "idUnicoOperacao": 0,
226
+ "nfeMonitoramento": [
227
+ {
228
+ "nlmData": "example",
229
+ "nlmHora": "example",
230
+ "ernDescricao": "example",
231
+ "nlmChaveRetorno": "example",
232
+ "nlmCodigoEventoRetorno": 0,
233
+ "nlmDescricaoEventoRetorno": "example"
234
+ }
235
+ ],
236
+ "valorComDesconto": 0,
237
+ "razaoSocialSacado": "example",
238
+ "retornosBancarios": [
239
+ {
240
+ "id": 0,
241
+ "valor": 0,
242
+ "evento": "example",
243
+ "movData": "example",
244
+ "empCodigo": 0,
245
+ "movCodigo": "example",
246
+ "movOrigem": "example",
247
+ "movUsuario": "example",
248
+ "dataPContato": "example",
249
+ "movDescricao": "example",
250
+ "movIdentificaOrigem": 0
251
+ }
252
+ ],
253
+ "analistaResponsavel": "example",
254
+ "acompanhamentoDeCobranca": [
255
+ {
256
+ "id": 0,
257
+ "valor": 0,
258
+ "evento": "example",
259
+ "movData": "example",
260
+ "empCodigo": 0,
261
+ "movCodigo": "example",
262
+ "movOrigem": "example",
263
+ "movUsuario": "example",
264
+ "dataPContato": "example",
265
+ "movDescricao": "example",
266
+ "movIdentificaOrigem": 0
267
+ }
268
+ ]
269
+ }
270
+ ],
271
+ "documentos": [
272
+ {
273
+ "chave": "example",
274
+ "linkArquivo": "example",
275
+ "nomeArquivo": "example"
276
+ }
277
+ ],
278
+ "idOperacao": 0,
279
+ "empresaNome": "example",
280
+ "dataOperacao": "example",
281
+ "chaveComposta": "example",
282
+ "empresaCodigo": 0,
283
+ "chaveResponsavel": "example",
284
+ "nomeGerenteConta": "example",
285
+ "nomeAssistenteConta": "example",
286
+ "emailComercialResponsavel": "example"
287
+ }
288
+ }
289
+ }
290
+ },
291
+ "mode": "simple",
292
+ "flowProps": {
293
+ "payload": {
294
+ "operacao": "{{step_5['output']['item']}}"
295
+ }
296
+ },
297
+ "waitForResponse": true
298
+ },
299
+ "pieceName": "@activepieces/piece-subflows",
300
+ "actionName": "callFlow",
301
+ "sampleData": {},
302
+ "pieceVersion": "0.4.11",
303
+ "propertySettings": {
304
+ "flow": {
305
+ "type": "MANUAL"
306
+ },
307
+ "mode": {
308
+ "type": "MANUAL"
309
+ },
310
+ "flowProps": {
311
+ "type": "MANUAL",
312
+ "schema": {
313
+ "payload": {
314
+ "type": "OBJECT",
315
+ "required": true,
316
+ "displayName": "Payload",
317
+ "defaultValue": {
318
+ "operacao": {
319
+ "idg": "example",
320
+ "origem": "example",
321
+ "idgDesc": "example",
322
+ "titulos": [
323
+ {
324
+ "idg": "example",
325
+ "eveNfe": "example",
326
+ "sacado": {
327
+ "nome": "example",
328
+ "email": "example",
329
+ "endereco": "example",
330
+ "idSacado": 0,
331
+ "percHNeg": {
332
+ "totQtd": 0,
333
+ "totSac": 0,
334
+ "totNegativa": 0
335
+ },
336
+ "percHPre": {
337
+ "totQtd": 0,
338
+ "totSac": 0,
339
+ "totPresente": 0
340
+ },
341
+ "cnpjOuCpf": "example",
342
+ "idCedente": 0,
343
+ "indicadores": "example",
344
+ "razaoSocial": "example",
345
+ "nomeFantasia": "example",
346
+ "codigoEmpresa": 0,
347
+ "telefoneContato": "example",
348
+ "liquidacaoPorEvento": [
349
+ {
350
+ "descricao": "example",
351
+ "codigoEvento": 0,
352
+ "totalLiquidado": 0,
353
+ "quantidadeTitulos": 0
354
+ }
355
+ ],
356
+ "historicoValorAberto": {
357
+ "totalTitulosAbertos": 0,
358
+ "totalTitulosAbertosQtd": 0,
359
+ "totalTitulosAbertosVencer": 0,
360
+ "totalTitulosAbertosVencidos": 0,
361
+ "totalTitulosAbertosVencerQtd": 0,
362
+ "totalTitulosAbertosVencidosQtd": 0
363
+ },
364
+ "historicoValorLiquidado": {
365
+ "totalOpeNaoEfetivadas": 0,
366
+ "totalTitulosLiquidados": 0,
367
+ "totalOpeNaoEfetivadasQtd": 0,
368
+ "totalTitulosLiquidadosQtd": 0,
369
+ "totalTitulosLiquidadosPagoDia": 0,
370
+ "totalTitulosLiquidadosPagoAtraso": 0,
371
+ "totalTitulosLiquidadosPagoDiaQtd": 0,
372
+ "totalTitulosLiquidadosPagoAtrasoQtd": 0,
373
+ "totalTitulosLiquidadosChequeDevolvido": 0,
374
+ "totalTitulosLiquidadosChequeDevolvidoQtd": 0
375
+ }
376
+ },
377
+ "status": "example",
378
+ "cedente": {
379
+ "nome": "example",
380
+ "email": "example",
381
+ "endereco": "example",
382
+ "cnpjOuCpf": "example",
383
+ "idCedente": 0,
384
+ "dataCadastro": "example",
385
+ "codigoEmpresa": 0,
386
+ "telefoneContato": "example",
387
+ "idGrupoPrincipal": 0,
388
+ "analistaResponsavel": "example",
389
+ "vinculoGrupoEconomico": false
390
+ },
391
+ "idgDesc": "example",
392
+ "documento": "example",
393
+ "linkBoleto": "example",
394
+ "numeroNota": "example",
395
+ "valorBruto": 0,
396
+ "vencimento": "example",
397
+ "confirmacao": "example",
398
+ "empresaNome": "example",
399
+ "nfXmlBase64": "example",
400
+ "numeroTitulo": 0,
401
+ "valorLiquido": 0,
402
+ "classificacao": "example",
403
+ "empresaCodigo": 0,
404
+ "idUnicoSacado": 0,
405
+ "valorPassagem": 0,
406
+ "formaPagamento": "example",
407
+ "idUnicoCedente": 0,
408
+ "statusBancario": "example",
409
+ "dataFaturamento": "example",
410
+ "idUnicoOperacao": 0,
411
+ "nfeMonitoramento": [
412
+ {
413
+ "nlmData": "example",
414
+ "nlmHora": "example",
415
+ "ernDescricao": "example",
416
+ "nlmChaveRetorno": "example",
417
+ "nlmCodigoEventoRetorno": 0,
418
+ "nlmDescricaoEventoRetorno": "example"
419
+ }
420
+ ],
421
+ "valorComDesconto": 0,
422
+ "razaoSocialSacado": "example",
423
+ "retornosBancarios": [
424
+ {
425
+ "id": 0,
426
+ "valor": 0,
427
+ "evento": "example",
428
+ "movData": "example",
429
+ "empCodigo": 0,
430
+ "movCodigo": "example",
431
+ "movOrigem": "example",
432
+ "movUsuario": "example",
433
+ "dataPContato": "example",
434
+ "movDescricao": "example",
435
+ "movIdentificaOrigem": 0
436
+ }
437
+ ],
438
+ "analistaResponsavel": "example",
439
+ "acompanhamentoDeCobranca": [
440
+ {
441
+ "id": 0,
442
+ "valor": 0,
443
+ "evento": "example",
444
+ "movData": "example",
445
+ "empCodigo": 0,
446
+ "movCodigo": "example",
447
+ "movOrigem": "example",
448
+ "movUsuario": "example",
449
+ "dataPContato": "example",
450
+ "movDescricao": "example",
451
+ "movIdentificaOrigem": 0
452
+ }
453
+ ]
454
+ }
455
+ ],
456
+ "documentos": [
457
+ {
458
+ "chave": "example",
459
+ "linkArquivo": "example",
460
+ "nomeArquivo": "example"
461
+ }
462
+ ],
463
+ "idOperacao": 0,
464
+ "empresaNome": "example",
465
+ "dataOperacao": "example",
466
+ "chaveComposta": "example",
467
+ "empresaCodigo": 0,
468
+ "chaveResponsavel": "example",
469
+ "nomeGerenteConta": "example",
470
+ "nomeAssistenteConta": "example",
471
+ "emailComercialResponsavel": "example"
472
+ }
473
+ }
474
+ }
475
+ }
476
+ },
477
+ "waitForResponse": {
478
+ "type": "MANUAL"
479
+ }
480
+ },
481
+ "errorHandlingOptions": {
482
+ "retryOnFailure": {
483
+ "value": false
484
+ },
485
+ "continueOnFailure": {
486
+ "value": false
487
+ }
488
+ }
489
+ },
490
+ "nextAction": {
491
+ "name": "step_7",
492
+ "skip": false,
493
+ "type": "PIECE",
494
+ "valid": true,
495
+ "settings": {
496
+ "input": {
497
+ "flow": {
498
+ "externalId": "exampleFlowId06aaaaaa",
499
+ "exampleData": {
500
+ "sampleData": {
501
+ "operacao": {
502
+ "idg": "example",
503
+ "origem": "example",
504
+ "idgDesc": "example",
505
+ "titulos": [
506
+ {
507
+ "idg": "example",
508
+ "eveNfe": "example",
509
+ "sacado": {
510
+ "nome": "example",
511
+ "email": "example",
512
+ "endereco": "example",
513
+ "idSacado": 0,
514
+ "percHNeg": {
515
+ "totQtd": 0,
516
+ "totSac": 0,
517
+ "totNegativa": 0
518
+ },
519
+ "percHPre": {
520
+ "totQtd": 0,
521
+ "totSac": 0,
522
+ "totPresente": 0
523
+ },
524
+ "cnpjOuCpf": "example",
525
+ "idCedente": 0,
526
+ "indicadores": "example",
527
+ "razaoSocial": "example",
528
+ "nomeFantasia": "example",
529
+ "codigoEmpresa": 0,
530
+ "telefoneContato": "example",
531
+ "liquidacaoPorEvento": [
532
+ {
533
+ "descricao": "example",
534
+ "codigoEvento": 0,
535
+ "totalLiquidado": 0,
536
+ "quantidadeTitulos": 0
537
+ }
538
+ ],
539
+ "historicoValorAberto": {
540
+ "totalTitulosAbertos": 0,
541
+ "totalTitulosAbertosQtd": 0,
542
+ "totalTitulosAbertosVencer": 0,
543
+ "totalTitulosAbertosVencidos": 0,
544
+ "totalTitulosAbertosVencerQtd": 0,
545
+ "totalTitulosAbertosVencidosQtd": 0
546
+ },
547
+ "historicoValorLiquidado": {
548
+ "totalOpeNaoEfetivadas": 0,
549
+ "totalTitulosLiquidados": 0,
550
+ "totalOpeNaoEfetivadasQtd": 0,
551
+ "totalTitulosLiquidadosQtd": 0,
552
+ "totalTitulosLiquidadosPagoDia": 0,
553
+ "totalTitulosLiquidadosPagoAtraso": 0,
554
+ "totalTitulosLiquidadosPagoDiaQtd": 0,
555
+ "totalTitulosLiquidadosPagoAtrasoQtd": 0,
556
+ "totalTitulosLiquidadosChequeDevolvido": 0,
557
+ "totalTitulosLiquidadosChequeDevolvidoQtd": 0
558
+ }
559
+ },
560
+ "status": "example",
561
+ "cedente": {
562
+ "nome": "example",
563
+ "email": "example",
564
+ "endereco": "example",
565
+ "cnpjOuCpf": "example",
566
+ "idCedente": 0,
567
+ "dataCadastro": "example",
568
+ "codigoEmpresa": 0,
569
+ "telefoneContato": "example",
570
+ "idGrupoPrincipal": 0,
571
+ "analistaResponsavel": "example",
572
+ "vinculoGrupoEconomico": false
573
+ },
574
+ "idgDesc": "example",
575
+ "documento": "example",
576
+ "linkBoleto": "example",
577
+ "numeroNota": "example",
578
+ "valorBruto": 0,
579
+ "vencimento": "example",
580
+ "confirmacao": "example",
581
+ "empresaNome": "example",
582
+ "nfXmlBase64": "example",
583
+ "numeroTitulo": 0,
584
+ "valorLiquido": 0,
585
+ "classificacao": "example",
586
+ "empresaCodigo": 0,
587
+ "idUnicoSacado": 0,
588
+ "valorPassagem": 0,
589
+ "formaPagamento": "example",
590
+ "idUnicoCedente": 0,
591
+ "statusBancario": "example",
592
+ "dataFaturamento": "example",
593
+ "idUnicoOperacao": 0,
594
+ "nfeMonitoramento": [
595
+ {
596
+ "nlmData": "example",
597
+ "nlmHora": "example",
598
+ "ernDescricao": "example",
599
+ "nlmChaveRetorno": "example",
600
+ "nlmCodigoEventoRetorno": 0,
601
+ "nlmDescricaoEventoRetorno": "example"
602
+ }
603
+ ],
604
+ "valorComDesconto": 0,
605
+ "razaoSocialSacado": "example",
606
+ "retornosBancarios": [
607
+ {
608
+ "id": 0,
609
+ "valor": 0,
610
+ "evento": "example",
611
+ "movData": "example",
612
+ "empCodigo": 0,
613
+ "movCodigo": "example",
614
+ "movOrigem": "example",
615
+ "movUsuario": "example",
616
+ "dataPContato": "example",
617
+ "movDescricao": "example",
618
+ "movIdentificaOrigem": 0
619
+ }
620
+ ],
621
+ "analistaResponsavel": "example",
622
+ "acompanhamentoDeCobranca": [
623
+ {
624
+ "id": 0,
625
+ "valor": 0,
626
+ "evento": "example",
627
+ "movData": "example",
628
+ "empCodigo": 0,
629
+ "movCodigo": "example",
630
+ "movOrigem": "example",
631
+ "movUsuario": "example",
632
+ "dataPContato": "example",
633
+ "movDescricao": "example",
634
+ "movIdentificaOrigem": 0
635
+ }
636
+ ]
637
+ }
638
+ ],
639
+ "documentos": [
640
+ {
641
+ "chave": "example",
642
+ "linkArquivo": "example",
643
+ "nomeArquivo": "example"
644
+ }
645
+ ],
646
+ "idOperacao": 0,
647
+ "empresaNome": "example",
648
+ "dataOperacao": "example",
649
+ "empresaCodigo": 0,
650
+ "chaveResponsavel": "example",
651
+ "nomeGerenteConta": "example",
652
+ "nomeAssistenteConta": "example",
653
+ "emailComercialResponsavel": "example"
654
+ },
655
+ "novaOperacao": false,
656
+ "cardIdOperacao": "example"
657
+ }
658
+ }
659
+ },
660
+ "mode": "simple",
661
+ "flowProps": {
662
+ "payload": {
663
+ "operacao": "{{step_5['output']['item']}}",
664
+ "novaOperacao": "{{step_6['output']['data']['novaOperacao']}}",
665
+ "cardIdOperacao": "{{step_6['output']['data']['cardIdOperacao']}}"
666
+ }
667
+ },
668
+ "waitForResponse": true
669
+ },
670
+ "pieceName": "@activepieces/piece-subflows",
671
+ "actionName": "callFlow",
672
+ "sampleData": {},
673
+ "pieceVersion": "0.4.12",
674
+ "propertySettings": {
675
+ "flow": {
676
+ "type": "MANUAL"
677
+ },
678
+ "mode": {
679
+ "type": "MANUAL"
680
+ },
681
+ "flowProps": {
682
+ "type": "MANUAL",
683
+ "schema": {
684
+ "payload": {
685
+ "type": "OBJECT",
686
+ "required": true,
687
+ "displayName": "Payload",
688
+ "defaultValue": {
689
+ "operacao": {
690
+ "idg": "example",
691
+ "origem": "example",
692
+ "idgDesc": "example",
693
+ "titulos": [
694
+ {
695
+ "idg": "example",
696
+ "eveNfe": "example",
697
+ "sacado": {
698
+ "nome": "example",
699
+ "email": "example",
700
+ "endereco": "example",
701
+ "idSacado": 0,
702
+ "percHNeg": {
703
+ "totQtd": 0,
704
+ "totSac": 0,
705
+ "totNegativa": 0
706
+ },
707
+ "percHPre": {
708
+ "totQtd": 0,
709
+ "totSac": 0,
710
+ "totPresente": 0
711
+ },
712
+ "cnpjOuCpf": "example",
713
+ "idCedente": 0,
714
+ "indicadores": "example",
715
+ "razaoSocial": "example",
716
+ "nomeFantasia": "example",
717
+ "codigoEmpresa": 0,
718
+ "telefoneContato": "example",
719
+ "liquidacaoPorEvento": [
720
+ {
721
+ "descricao": "example",
722
+ "codigoEvento": 0,
723
+ "totalLiquidado": 0,
724
+ "quantidadeTitulos": 0
725
+ }
726
+ ],
727
+ "historicoValorAberto": {
728
+ "totalTitulosAbertos": 0,
729
+ "totalTitulosAbertosQtd": 0,
730
+ "totalTitulosAbertosVencer": 0,
731
+ "totalTitulosAbertosVencidos": 0,
732
+ "totalTitulosAbertosVencerQtd": 0,
733
+ "totalTitulosAbertosVencidosQtd": 0
734
+ },
735
+ "historicoValorLiquidado": {
736
+ "totalOpeNaoEfetivadas": 0,
737
+ "totalTitulosLiquidados": 0,
738
+ "totalOpeNaoEfetivadasQtd": 0,
739
+ "totalTitulosLiquidadosQtd": 0,
740
+ "totalTitulosLiquidadosPagoDia": 0,
741
+ "totalTitulosLiquidadosPagoAtraso": 0,
742
+ "totalTitulosLiquidadosPagoDiaQtd": 0,
743
+ "totalTitulosLiquidadosPagoAtrasoQtd": 0,
744
+ "totalTitulosLiquidadosChequeDevolvido": 0,
745
+ "totalTitulosLiquidadosChequeDevolvidoQtd": 0
746
+ }
747
+ },
748
+ "status": "example",
749
+ "cedente": {
750
+ "nome": "example",
751
+ "email": "example",
752
+ "endereco": "example",
753
+ "cnpjOuCpf": "example",
754
+ "idCedente": 0,
755
+ "dataCadastro": "example",
756
+ "codigoEmpresa": 0,
757
+ "telefoneContato": "example",
758
+ "idGrupoPrincipal": 0,
759
+ "analistaResponsavel": "example",
760
+ "vinculoGrupoEconomico": false
761
+ },
762
+ "idgDesc": "example",
763
+ "documento": "example",
764
+ "linkBoleto": "example",
765
+ "numeroNota": "example",
766
+ "valorBruto": 0,
767
+ "vencimento": "example",
768
+ "confirmacao": "example",
769
+ "empresaNome": "example",
770
+ "nfXmlBase64": "example",
771
+ "numeroTitulo": 0,
772
+ "valorLiquido": 0,
773
+ "classificacao": "example",
774
+ "empresaCodigo": 0,
775
+ "idUnicoSacado": 0,
776
+ "valorPassagem": 0,
777
+ "formaPagamento": "example",
778
+ "idUnicoCedente": 0,
779
+ "statusBancario": "example",
780
+ "dataFaturamento": "example",
781
+ "idUnicoOperacao": 0,
782
+ "nfeMonitoramento": [
783
+ {
784
+ "nlmData": "example",
785
+ "nlmHora": "example",
786
+ "ernDescricao": "example",
787
+ "nlmChaveRetorno": "example",
788
+ "nlmCodigoEventoRetorno": 0,
789
+ "nlmDescricaoEventoRetorno": "example"
790
+ }
791
+ ],
792
+ "valorComDesconto": 0,
793
+ "razaoSocialSacado": "example",
794
+ "retornosBancarios": [
795
+ {
796
+ "id": 0,
797
+ "valor": 0,
798
+ "evento": "example",
799
+ "movData": "example",
800
+ "empCodigo": 0,
801
+ "movCodigo": "example",
802
+ "movOrigem": "example",
803
+ "movUsuario": "example",
804
+ "dataPContato": "example",
805
+ "movDescricao": "example",
806
+ "movIdentificaOrigem": 0
807
+ }
808
+ ],
809
+ "analistaResponsavel": "example",
810
+ "acompanhamentoDeCobranca": [
811
+ {
812
+ "id": 0,
813
+ "valor": 0,
814
+ "evento": "example",
815
+ "movData": "example",
816
+ "empCodigo": 0,
817
+ "movCodigo": "example",
818
+ "movOrigem": "example",
819
+ "movUsuario": "example",
820
+ "dataPContato": "example",
821
+ "movDescricao": "example",
822
+ "movIdentificaOrigem": 0
823
+ }
824
+ ]
825
+ }
826
+ ],
827
+ "documentos": [
828
+ {
829
+ "chave": "example",
830
+ "linkArquivo": "example",
831
+ "nomeArquivo": "example"
832
+ }
833
+ ],
834
+ "idOperacao": 0,
835
+ "empresaNome": "example",
836
+ "dataOperacao": "example",
837
+ "empresaCodigo": 0,
838
+ "chaveResponsavel": "example",
839
+ "nomeGerenteConta": "example",
840
+ "nomeAssistenteConta": "example",
841
+ "emailComercialResponsavel": "example"
842
+ },
843
+ "novaOperacao": false,
844
+ "cardIdOperacao": "example"
845
+ }
846
+ }
847
+ }
848
+ },
849
+ "waitForResponse": {
850
+ "type": "MANUAL"
851
+ }
852
+ },
853
+ "errorHandlingOptions": {
854
+ "retryOnFailure": {
855
+ "value": false
856
+ },
857
+ "continueOnFailure": {
858
+ "value": false
859
+ }
860
+ }
861
+ },
862
+ "nextAction": {
863
+ "name": "step_8",
864
+ "skip": true,
865
+ "type": "PIECE",
866
+ "valid": true,
867
+ "settings": {
868
+ "input": {
869
+ "flow": {
870
+ "externalId": "exampleFlowId07aaaaaa",
871
+ "exampleData": {
872
+ "sampleData": {
873
+ "operacao": {
874
+ "idg": "example",
875
+ "origem": "example",
876
+ "idgDesc": "example",
877
+ "titulos": [
878
+ {
879
+ "idg": "example",
880
+ "eveNfe": "example",
881
+ "sacado": {
882
+ "nome": "example",
883
+ "email": "example",
884
+ "endereco": "example",
885
+ "idSacado": 0,
886
+ "percHNeg": {
887
+ "totQtd": 0,
888
+ "totSac": 0,
889
+ "totNegativa": 0
890
+ },
891
+ "percHPre": {
892
+ "totQtd": 0,
893
+ "totSac": 0,
894
+ "totPresente": 0
895
+ },
896
+ "cnpjOuCpf": "example",
897
+ "idCedente": 0,
898
+ "indicadores": "example",
899
+ "razaoSocial": "example",
900
+ "nomeFantasia": "example",
901
+ "codigoEmpresa": 0,
902
+ "telefoneContato": "example",
903
+ "liquidacaoPorEvento": [
904
+ {
905
+ "descricao": "example",
906
+ "codigoEvento": 0,
907
+ "totalLiquidado": 0,
908
+ "quantidadeTitulos": 0
909
+ }
910
+ ],
911
+ "historicoValorAberto": {
912
+ "totalTitulosAbertos": 0,
913
+ "totalTitulosAbertosQtd": 0,
914
+ "totalTitulosAbertosVencer": 0,
915
+ "totalTitulosAbertosVencidos": 0,
916
+ "totalTitulosAbertosVencerQtd": 0,
917
+ "totalTitulosAbertosVencidosQtd": 0
918
+ },
919
+ "historicoValorLiquidado": {
920
+ "totalOpeNaoEfetivadas": 0,
921
+ "totalTitulosLiquidados": 0,
922
+ "totalOpeNaoEfetivadasQtd": 0,
923
+ "totalTitulosLiquidadosQtd": 0,
924
+ "totalTitulosLiquidadosPagoDia": 0,
925
+ "totalTitulosLiquidadosPagoAtraso": 0,
926
+ "totalTitulosLiquidadosPagoDiaQtd": 0,
927
+ "totalTitulosLiquidadosPagoAtrasoQtd": 0,
928
+ "totalTitulosLiquidadosChequeDevolvido": 0,
929
+ "totalTitulosLiquidadosChequeDevolvidoQtd": 0
930
+ }
931
+ },
932
+ "status": "example",
933
+ "cedente": {
934
+ "nome": "example",
935
+ "email": "example",
936
+ "endereco": "example",
937
+ "cnpjOuCpf": "example",
938
+ "idCedente": 0,
939
+ "dataCadastro": "example",
940
+ "codigoEmpresa": 0,
941
+ "telefoneContato": "example",
942
+ "idGrupoPrincipal": 0,
943
+ "analistaResponsavel": "example",
944
+ "vinculoGrupoEconomico": false
945
+ },
946
+ "idgDesc": "example",
947
+ "documento": "example",
948
+ "linkBoleto": "example",
949
+ "numeroNota": "example",
950
+ "valorBruto": 0,
951
+ "vencimento": "example",
952
+ "confirmacao": "example",
953
+ "empresaNome": "example",
954
+ "nfXmlBase64": "example",
955
+ "numeroTitulo": 0,
956
+ "valorLiquido": 0,
957
+ "classificacao": "example",
958
+ "empresaCodigo": 0,
959
+ "idUnicoSacado": 0,
960
+ "valorPassagem": 0,
961
+ "formaPagamento": "example",
962
+ "idUnicoCedente": 0,
963
+ "statusBancario": "example",
964
+ "dataFaturamento": "example",
965
+ "idUnicoOperacao": 0,
966
+ "nfeMonitoramento": [
967
+ {
968
+ "nlmData": "example",
969
+ "nlmHora": "example",
970
+ "ernDescricao": "example",
971
+ "nlmChaveRetorno": "example",
972
+ "nlmCodigoEventoRetorno": 0,
973
+ "nlmDescricaoEventoRetorno": "example"
974
+ }
975
+ ],
976
+ "valorComDesconto": 0,
977
+ "razaoSocialSacado": "example",
978
+ "retornosBancarios": [
979
+ {
980
+ "id": 0,
981
+ "valor": 0,
982
+ "evento": "example",
983
+ "movData": "example",
984
+ "empCodigo": 0,
985
+ "movCodigo": "example",
986
+ "movOrigem": "example",
987
+ "movUsuario": "example",
988
+ "dataPContato": "example",
989
+ "movDescricao": "example",
990
+ "movIdentificaOrigem": 0
991
+ }
992
+ ],
993
+ "analistaResponsavel": "example",
994
+ "acompanhamentoDeCobranca": [
995
+ {
996
+ "id": 0,
997
+ "valor": 0,
998
+ "evento": "example",
999
+ "movData": "example",
1000
+ "empCodigo": 0,
1001
+ "movCodigo": "example",
1002
+ "movOrigem": "example",
1003
+ "movUsuario": "example",
1004
+ "dataPContato": "example",
1005
+ "movDescricao": "example",
1006
+ "movIdentificaOrigem": 0
1007
+ }
1008
+ ]
1009
+ }
1010
+ ],
1011
+ "documentos": [
1012
+ {
1013
+ "chave": "example",
1014
+ "linkArquivo": "example",
1015
+ "nomeArquivo": "example"
1016
+ }
1017
+ ],
1018
+ "idOperacao": 0,
1019
+ "empresaNome": "example",
1020
+ "dataOperacao": "example",
1021
+ "empresaCodigo": 0,
1022
+ "chaveResponsavel": "example",
1023
+ "nomeGerenteConta": "example",
1024
+ "nomeAssistenteConta": "example",
1025
+ "emailComercialResponsavel": "example"
1026
+ },
1027
+ "novaOperacao": false,
1028
+ "cardIdOperacao": "example"
1029
+ }
1030
+ }
1031
+ },
1032
+ "mode": "simple",
1033
+ "flowProps": {
1034
+ "payload": {
1035
+ "operacao": "{{step_5['output']['item']}}",
1036
+ "novaOperacao": "{{step_6['output']['data']['novaOperacao']}}",
1037
+ "cardIdOperacao": "{{step_6['output']['data']['cardIdOperacao']}}"
1038
+ }
1039
+ },
1040
+ "waitForResponse": true
1041
+ },
1042
+ "pieceName": "@activepieces/piece-subflows",
1043
+ "actionName": "callFlow",
1044
+ "sampleData": {},
1045
+ "pieceVersion": "0.4.12",
1046
+ "propertySettings": {
1047
+ "flow": {
1048
+ "type": "MANUAL"
1049
+ },
1050
+ "mode": {
1051
+ "type": "MANUAL"
1052
+ },
1053
+ "flowProps": {
1054
+ "type": "MANUAL",
1055
+ "schema": {
1056
+ "payload": {
1057
+ "type": "OBJECT",
1058
+ "required": true,
1059
+ "displayName": "Payload",
1060
+ "defaultValue": {
1061
+ "operacao": {
1062
+ "idg": "example",
1063
+ "origem": "example",
1064
+ "idgDesc": "example",
1065
+ "titulos": [
1066
+ {
1067
+ "idg": "example",
1068
+ "eveNfe": "example",
1069
+ "sacado": {
1070
+ "nome": "example",
1071
+ "email": "example",
1072
+ "endereco": "example",
1073
+ "idSacado": 0,
1074
+ "percHNeg": {
1075
+ "totQtd": 0,
1076
+ "totSac": 0,
1077
+ "totNegativa": 0
1078
+ },
1079
+ "percHPre": {
1080
+ "totQtd": 0,
1081
+ "totSac": 0,
1082
+ "totPresente": 0
1083
+ },
1084
+ "cnpjOuCpf": "example",
1085
+ "idCedente": 0,
1086
+ "indicadores": "example",
1087
+ "razaoSocial": "example",
1088
+ "nomeFantasia": "example",
1089
+ "codigoEmpresa": 0,
1090
+ "telefoneContato": "example",
1091
+ "liquidacaoPorEvento": [
1092
+ {
1093
+ "descricao": "example",
1094
+ "codigoEvento": 0,
1095
+ "totalLiquidado": 0,
1096
+ "quantidadeTitulos": 0
1097
+ }
1098
+ ],
1099
+ "historicoValorAberto": {
1100
+ "totalTitulosAbertos": 0,
1101
+ "totalTitulosAbertosQtd": 0,
1102
+ "totalTitulosAbertosVencer": 0,
1103
+ "totalTitulosAbertosVencidos": 0,
1104
+ "totalTitulosAbertosVencerQtd": 0,
1105
+ "totalTitulosAbertosVencidosQtd": 0
1106
+ },
1107
+ "historicoValorLiquidado": {
1108
+ "totalOpeNaoEfetivadas": 0,
1109
+ "totalTitulosLiquidados": 0,
1110
+ "totalOpeNaoEfetivadasQtd": 0,
1111
+ "totalTitulosLiquidadosQtd": 0,
1112
+ "totalTitulosLiquidadosPagoDia": 0,
1113
+ "totalTitulosLiquidadosPagoAtraso": 0,
1114
+ "totalTitulosLiquidadosPagoDiaQtd": 0,
1115
+ "totalTitulosLiquidadosPagoAtrasoQtd": 0,
1116
+ "totalTitulosLiquidadosChequeDevolvido": 0,
1117
+ "totalTitulosLiquidadosChequeDevolvidoQtd": 0
1118
+ }
1119
+ },
1120
+ "status": "example",
1121
+ "cedente": {
1122
+ "nome": "example",
1123
+ "email": "example",
1124
+ "endereco": "example",
1125
+ "cnpjOuCpf": "example",
1126
+ "idCedente": 0,
1127
+ "dataCadastro": "example",
1128
+ "codigoEmpresa": 0,
1129
+ "telefoneContato": "example",
1130
+ "idGrupoPrincipal": 0,
1131
+ "analistaResponsavel": "example",
1132
+ "vinculoGrupoEconomico": false
1133
+ },
1134
+ "idgDesc": "example",
1135
+ "documento": "example",
1136
+ "linkBoleto": "example",
1137
+ "numeroNota": "example",
1138
+ "valorBruto": 0,
1139
+ "vencimento": "example",
1140
+ "confirmacao": "example",
1141
+ "empresaNome": "example",
1142
+ "nfXmlBase64": "example",
1143
+ "numeroTitulo": 0,
1144
+ "valorLiquido": 0,
1145
+ "classificacao": "example",
1146
+ "empresaCodigo": 0,
1147
+ "idUnicoSacado": 0,
1148
+ "valorPassagem": 0,
1149
+ "formaPagamento": "example",
1150
+ "idUnicoCedente": 0,
1151
+ "statusBancario": "example",
1152
+ "dataFaturamento": "example",
1153
+ "idUnicoOperacao": 0,
1154
+ "nfeMonitoramento": [
1155
+ {
1156
+ "nlmData": "example",
1157
+ "nlmHora": "example",
1158
+ "ernDescricao": "example",
1159
+ "nlmChaveRetorno": "example",
1160
+ "nlmCodigoEventoRetorno": 0,
1161
+ "nlmDescricaoEventoRetorno": "example"
1162
+ }
1163
+ ],
1164
+ "valorComDesconto": 0,
1165
+ "razaoSocialSacado": "example",
1166
+ "retornosBancarios": [
1167
+ {
1168
+ "id": 0,
1169
+ "valor": 0,
1170
+ "evento": "example",
1171
+ "movData": "example",
1172
+ "empCodigo": 0,
1173
+ "movCodigo": "example",
1174
+ "movOrigem": "example",
1175
+ "movUsuario": "example",
1176
+ "dataPContato": "example",
1177
+ "movDescricao": "example",
1178
+ "movIdentificaOrigem": 0
1179
+ }
1180
+ ],
1181
+ "analistaResponsavel": "example",
1182
+ "acompanhamentoDeCobranca": [
1183
+ {
1184
+ "id": 0,
1185
+ "valor": 0,
1186
+ "evento": "example",
1187
+ "movData": "example",
1188
+ "empCodigo": 0,
1189
+ "movCodigo": "example",
1190
+ "movOrigem": "example",
1191
+ "movUsuario": "example",
1192
+ "dataPContato": "example",
1193
+ "movDescricao": "example",
1194
+ "movIdentificaOrigem": 0
1195
+ }
1196
+ ]
1197
+ }
1198
+ ],
1199
+ "documentos": [
1200
+ {
1201
+ "chave": "example",
1202
+ "linkArquivo": "example",
1203
+ "nomeArquivo": "example"
1204
+ }
1205
+ ],
1206
+ "idOperacao": 0,
1207
+ "empresaNome": "example",
1208
+ "dataOperacao": "example",
1209
+ "empresaCodigo": 0,
1210
+ "chaveResponsavel": "example",
1211
+ "nomeGerenteConta": "example",
1212
+ "nomeAssistenteConta": "example",
1213
+ "emailComercialResponsavel": "example"
1214
+ },
1215
+ "novaOperacao": false,
1216
+ "cardIdOperacao": "example"
1217
+ }
1218
+ }
1219
+ }
1220
+ },
1221
+ "waitForResponse": {
1222
+ "type": "MANUAL"
1223
+ }
1224
+ },
1225
+ "errorHandlingOptions": {
1226
+ "retryOnFailure": {
1227
+ "value": false
1228
+ },
1229
+ "continueOnFailure": {
1230
+ "value": false
1231
+ }
1232
+ }
1233
+ },
1234
+ "displayName": "[3/4 SUBFLOW][CRIAÇÃO] TÍTULO Copy",
1235
+ "lastUpdatedDate": "2026-08-17T01:39:10.623Z"
1236
+ },
1237
+ "displayName": "[3/4 SUBFLOW][CRIAÇÃO] TÍTULO",
1238
+ "lastUpdatedDate": "2026-08-17T01:39:10.623Z"
1239
+ },
1240
+ "displayName": "[2/4 SUBFLOW][CRIAÇÃO] OPERAÇÃO",
1241
+ "lastUpdatedDate": "2026-08-17T01:39:10.623Z"
1242
+ },
1243
+ "lastUpdatedDate": "2026-08-17T01:39:10.623Z"
1244
+ },
1245
+ "displayName": "Normalização e criação chaveComposta",
1246
+ "lastUpdatedDate": "2026-08-17T01:39:10.622Z"
1247
+ },
1248
+ "displayName": "Return Response Copy",
1249
+ "lastUpdatedDate": "2026-08-17T01:39:10.622Z"
1250
+ },
1251
+ {
1252
+ "name": "step_3",
1253
+ "skip": false,
1254
+ "type": "PIECE",
1255
+ "valid": true,
1256
+ "settings": {
1257
+ "input": {
1258
+ "fields": {
1259
+ "body": {
1260
+ "message": "Sem autenticação"
1261
+ },
1262
+ "status": 200,
1263
+ "headers": {}
1264
+ },
1265
+ "respond": "stop",
1266
+ "responseType": "json"
1267
+ },
1268
+ "pieceName": "@activepieces/piece-webhook",
1269
+ "actionName": "return_response",
1270
+ "sampleData": {},
1271
+ "pieceVersion": "0.1.33",
1272
+ "propertySettings": {
1273
+ "fields": {
1274
+ "type": "MANUAL",
1275
+ "schema": {
1276
+ "body": {
1277
+ "type": "JSON",
1278
+ "required": true,
1279
+ "displayName": "JSON Body"
1280
+ },
1281
+ "status": {
1282
+ "type": "NUMBER",
1283
+ "required": false,
1284
+ "displayName": "Status",
1285
+ "defaultValue": 200
1286
+ },
1287
+ "headers": {
1288
+ "type": "OBJECT",
1289
+ "required": false,
1290
+ "displayName": "Headers"
1291
+ }
1292
+ }
1293
+ },
1294
+ "respond": {
1295
+ "type": "MANUAL"
1296
+ },
1297
+ "responseType": {
1298
+ "type": "MANUAL"
1299
+ }
1300
+ },
1301
+ "errorHandlingOptions": {
1302
+ "retryOnFailure": {
1303
+ "value": false
1304
+ },
1305
+ "continueOnFailure": {
1306
+ "value": false
1307
+ }
1308
+ }
1309
+ },
1310
+ "displayName": "Return Response Copy Copy",
1311
+ "lastUpdatedDate": "2026-08-17T01:39:10.624Z"
1312
+ }
1313
+ ],
1314
+ "settings": {
1315
+ "branches": [
1316
+ {
1317
+ "branchName": "Branch 1",
1318
+ "branchType": "CONDITION",
1319
+ "conditions": [
1320
+ [
1321
+ {
1322
+ "operator": "EXISTS",
1323
+ "firstValue": "{{trigger['output']['body']}}"
1324
+ }
1325
+ ]
1326
+ ]
1327
+ },
1328
+ {
1329
+ "branchName": "Otherwise",
1330
+ "branchType": "FALLBACK"
1331
+ }
1332
+ ],
1333
+ "sampleData": {},
1334
+ "executionType": "EXECUTE_FIRST_MATCH"
1335
+ },
1336
+ "displayName": "Router Copy",
1337
+ "lastUpdatedDate": "2026-08-17T01:39:10.622Z"
1338
+ },
1339
+ "lastUpdatedDate": "2026-08-17T01:39:10.622Z",
1340
+ "type": "PIECE_TRIGGER",
1341
+ "settings": {
1342
+ "propertySettings": {
1343
+ "authType": {
1344
+ "type": "MANUAL"
1345
+ },
1346
+ "authFields": {
1347
+ "type": "MANUAL",
1348
+ "schema": {
1349
+ "password": {
1350
+ "type": "SHORT_TEXT",
1351
+ "required": true,
1352
+ "description": "The password to use for authentication.",
1353
+ "displayName": "Password"
1354
+ },
1355
+ "username": {
1356
+ "type": "SHORT_TEXT",
1357
+ "required": true,
1358
+ "description": "The username to use for authentication.",
1359
+ "displayName": "Username"
1360
+ }
1361
+ }
1362
+ },
1363
+ "liveMarkdown": {
1364
+ "type": "MANUAL"
1365
+ },
1366
+ "syncMarkdown": {
1367
+ "type": "MANUAL"
1368
+ },
1369
+ "testMarkdown": {
1370
+ "type": "MANUAL"
1371
+ }
1372
+ },
1373
+ "pieceName": "@activepieces/piece-webhook",
1374
+ "pieceVersion": "0.1.33",
1375
+ "triggerName": "catch_webhook",
1376
+ "input": {
1377
+ "authType": "basic",
1378
+ "authFields": {
1379
+ "password": "ExamplePlaceholderPass1!",
1380
+ "username": "exampleServiceUser"
1381
+ }
1382
+ }
1383
+ }
1384
+ },
1385
+ "valid": true,
1386
+ "schemaVersion": "22",
1387
+ "notes": []
1388
+ }
1389
+ ],
1390
+ "status": "PUBLISHED"
1391
+ }