@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,3642 @@
1
+ {
2
+ "name": "✅[PRD][3/4 SUBFLOW][CRIAÇÃO] TÍTULO",
3
+ "type": "SHARED",
4
+ "summary": "",
5
+ "description": "",
6
+ "tags": [],
7
+ "blogUrl": "",
8
+ "metadata": {
9
+ "externalId": "exampleFlowId06aaaaaa"
10
+ },
11
+ "author": "Integrações Ipaas 000000000",
12
+ "categories": [],
13
+ "pieces": [
14
+ "@activepieces/piece-subflows",
15
+ "@activepieces/piece-pipefy",
16
+ "@activepieces/piece-store",
17
+ "@activepieces/piece-file-helper"
18
+ ],
19
+ "flows": [
20
+ {
21
+ "displayName": "✅[PRD][3/4 SUBFLOW][CRIAÇÃO] TÍTULO",
22
+ "trigger": {
23
+ "name": "trigger",
24
+ "valid": true,
25
+ "displayName": "Callable Flow",
26
+ "nextAction": {
27
+ "name": "step_1",
28
+ "skip": false,
29
+ "type": "LOOP_ON_ITEMS",
30
+ "valid": true,
31
+ "settings": {
32
+ "items": "{{trigger['output']['data']['operacao']['titulos']}}",
33
+ "sampleData": {}
34
+ },
35
+ "nextAction": {
36
+ "name": "step_2",
37
+ "skip": true,
38
+ "type": "ROUTER",
39
+ "valid": true,
40
+ "children": [
41
+ null,
42
+ null
43
+ ],
44
+ "settings": {
45
+ "branches": [
46
+ {
47
+ "branchName": "Sim",
48
+ "branchType": "CONDITION",
49
+ "conditions": [
50
+ [
51
+ {
52
+ "operator": "BOOLEAN_IS_TRUE",
53
+ "firstValue": "{{trigger['output']['data']['novaOperacao']}}"
54
+ }
55
+ ]
56
+ ]
57
+ },
58
+ {
59
+ "branchName": "Otherwise",
60
+ "branchType": "FALLBACK"
61
+ }
62
+ ],
63
+ "sampleData": {},
64
+ "executionType": "EXECUTE_FIRST_MATCH"
65
+ },
66
+ "nextAction": {
67
+ "name": "step_15",
68
+ "skip": false,
69
+ "type": "PIECE",
70
+ "valid": true,
71
+ "settings": {
72
+ "input": {
73
+ "mode": "simple",
74
+ "response": {
75
+ "response": {}
76
+ }
77
+ },
78
+ "pieceName": "@activepieces/piece-subflows",
79
+ "actionName": "returnResponse",
80
+ "sampleData": {},
81
+ "pieceVersion": "0.4.12",
82
+ "propertySettings": {
83
+ "mode": {
84
+ "type": "MANUAL"
85
+ },
86
+ "response": {
87
+ "type": "MANUAL",
88
+ "schema": {
89
+ "response": {
90
+ "type": "OBJECT",
91
+ "required": true,
92
+ "displayName": "Response"
93
+ }
94
+ }
95
+ }
96
+ },
97
+ "errorHandlingOptions": {
98
+ "retryOnFailure": {
99
+ "value": false
100
+ },
101
+ "continueOnFailure": {
102
+ "value": false
103
+ }
104
+ }
105
+ },
106
+ "displayName": "Return Response",
107
+ "lastUpdatedDate": "2026-08-24T14:22:53.487Z"
108
+ },
109
+ "displayName": "Nova Operação",
110
+ "lastUpdatedDate": "2026-08-24T14:22:53.453Z"
111
+ },
112
+ "displayName": "Iteração Títulos",
113
+ "firstLoopAction": {
114
+ "name": "step_3",
115
+ "skip": false,
116
+ "type": "PIECE",
117
+ "valid": true,
118
+ "settings": {
119
+ "input": {
120
+ "auth": "{{connections['exampleConnectionId3']}}",
121
+ "pipeId": "200000001",
122
+ "fieldId": "id_t_tulo_barramento",
123
+ "fieldValue": "{{step_1['output']['item']['numeroTitulo']}}",
124
+ "organizationId": "100000001"
125
+ },
126
+ "pieceName": "@activepieces/piece-pipefy",
127
+ "actionName": "getCardsByFieldValue",
128
+ "sampleData": {},
129
+ "pieceVersion": "0.1.7",
130
+ "propertySettings": {
131
+ "pipeId": {
132
+ "type": "MANUAL"
133
+ },
134
+ "fieldId": {
135
+ "type": "MANUAL"
136
+ },
137
+ "fieldValue": {
138
+ "type": "MANUAL"
139
+ },
140
+ "organizationId": {
141
+ "type": "MANUAL"
142
+ }
143
+ },
144
+ "errorHandlingOptions": {
145
+ "retryOnFailure": {
146
+ "value": false
147
+ },
148
+ "continueOnFailure": {
149
+ "value": false
150
+ }
151
+ }
152
+ },
153
+ "nextAction": {
154
+ "name": "step_4",
155
+ "skip": false,
156
+ "type": "CODE",
157
+ "valid": true,
158
+ "settings": {
159
+ "input": {
160
+ "cardsIDG": "{{step_3['output']['data']['cards']}}",
161
+ "chaveComposta": "{{trigger['output']['data']['operacao']['chaveComposta']}}"
162
+ },
163
+ "sampleData": {},
164
+ "sourceCode": {
165
+ "code": "export const code = async (inputs) => {\n const cardsIDG = inputs.cardsIDG || [];\n const chaveComposta = String(inputs.chaveComposta ?? '').trim();\n\n // Helper: extrai valor de campo do card Pipefy\n const getFieldValue = (card, fieldId) => {\n const field = card?.fields?.[fieldId];\n return String(field?.value ?? '').trim();\n };\n\n // Helper: monta a chave composta a partir dos campos do card\n // Formato: 4 primeiros dígitos do idg | idOperacao | empresaCodigo\n const chaveDoCard = (card) => {\n const idg4 = getFieldValue(card, 'idg').slice(0, 4);\n const idOperacao = getFieldValue(card, 'idoperacao');\n const empresaCodigo = getFieldValue(card, 'empresacodigo');\n return `${idg4}|${idOperacao}|${empresaCodigo}`;\n };\n\n // Procura card existente com a mesma chave composta\n const cardExistente = cardsIDG.find(\n (card) => chaveDoCard(card) === chaveComposta\n );\n\n return {\n existe: Boolean(cardExistente),\n deveCriar: !cardExistente,\n chaveComposta: chaveComposta,\n cardId: cardExistente?.id ?? null,\n cardUuid: cardExistente?.uuid ?? null,\n cardUrl: cardExistente?.url ?? null,\n };\n};",
166
+ "packageJson": "{}"
167
+ },
168
+ "errorHandlingOptions": {
169
+ "retryOnFailure": {
170
+ "value": false
171
+ },
172
+ "continueOnFailure": {
173
+ "value": false
174
+ }
175
+ }
176
+ },
177
+ "nextAction": {
178
+ "name": "step_5",
179
+ "skip": false,
180
+ "type": "ROUTER",
181
+ "valid": true,
182
+ "children": [
183
+ {
184
+ "name": "step_23",
185
+ "skip": false,
186
+ "type": "PIECE",
187
+ "valid": true,
188
+ "settings": {
189
+ "input": {
190
+ "auth": "{{connections['exampleConnectionId3']}}",
191
+ "pipeId": "200000003",
192
+ "fieldId": "stauts",
193
+ "fieldValue": "{{step_1['output']['item']['status']}}",
194
+ "organizationId": "100000001"
195
+ },
196
+ "pieceName": "@activepieces/piece-pipefy",
197
+ "actionName": "getCardsByFieldValue",
198
+ "sampleData": {},
199
+ "pieceVersion": "0.1.7",
200
+ "propertySettings": {
201
+ "pipeId": {
202
+ "type": "MANUAL"
203
+ },
204
+ "fieldId": {
205
+ "type": "MANUAL"
206
+ },
207
+ "fieldValue": {
208
+ "type": "MANUAL"
209
+ },
210
+ "organizationId": {
211
+ "type": "MANUAL"
212
+ }
213
+ },
214
+ "errorHandlingOptions": {
215
+ "retryOnFailure": {
216
+ "value": false
217
+ },
218
+ "continueOnFailure": {
219
+ "value": false
220
+ }
221
+ }
222
+ },
223
+ "nextAction": {
224
+ "name": "step_46",
225
+ "skip": false,
226
+ "type": "CODE",
227
+ "valid": true,
228
+ "settings": {
229
+ "input": {
230
+ "listCards": "{{step_23['output']['data']['cards']}}",
231
+ "classificacao": "{{step_1['output']['item']['classificacao']}}"
232
+ },
233
+ "sampleData": {},
234
+ "sourceCode": {
235
+ "code": "export const code = async (inputs) => {\n const cards = inputs.listCards ?? [];\n const target = String(inputs.classificacao ?? \"\").trim().toUpperCase();\n\n const match = cards.find((card) => {\n const value = card?.fields?.classifica_o_1?.value;\n return String(value ?? \"\").trim().toUpperCase() === target;\n });\n\n return {\n found: Boolean(match),\n cardId: match?.id ?? null,\n card: match ?? null\n };\n};",
236
+ "packageJson": "{}"
237
+ },
238
+ "errorHandlingOptions": {
239
+ "retryOnFailure": {
240
+ "value": false
241
+ },
242
+ "continueOnFailure": {
243
+ "value": false
244
+ }
245
+ }
246
+ },
247
+ "nextAction": {
248
+ "name": "step_17",
249
+ "skip": false,
250
+ "type": "CODE",
251
+ "valid": true,
252
+ "settings": {
253
+ "input": {
254
+ "bodyBarramento": "{{step_1['output']['item']}}"
255
+ },
256
+ "sampleData": {},
257
+ "sourceCode": {
258
+ "code": "export const code = async (inputs) => {\n // Normaliza chaves\n const normalizedInputs = {};\n for (const key in inputs) {\n normalizedInputs[key.trim()] = inputs[key];\n }\n inputs = normalizedInputs;\n\n // Helpers\n const formatDate = (v) => {\n if (!v) return '-';\n const m = String(v).match(/^(\\d{4})-(\\d{2})-(\\d{2})(?:T(\\d{2}):(\\d{2}))?/);\n if (!m) return String(v);\n const data = `${m[3]}/${m[2]}/${m[1]}`;\n if (m[4] && !(m[4] === '00' && m[5] === '00')) return `${data} ${m[4]}:${m[5]}`;\n return data;\n };\n\n const safe = (v) => {\n if (v === null || v === undefined || v === '') return '-';\n return String(v);\n };\n\n // Localiza o array retornosBancarios dentro do bodyBarramento\n const extrairRetornos = (body) => {\n if (!body || typeof body !== 'object') return [];\n if (Array.isArray(body.retornosBancarios)) return body.retornosBancarios;\n if (body.item && Array.isArray(body.item.retornosBancarios)) return body.item.retornosBancarios;\n if (body.data && body.data.item && Array.isArray(body.data.item.retornosBancarios)) return body.data.item.retornosBancarios;\n if (body.data && Array.isArray(body.data.retornosBancarios)) return body.data.retornosBancarios;\n return [];\n };\n\n const retornos = extrairRetornos(inputs.bodyBarramento);\n\n let retornosBancariosMarkdown = '';\n if (retornos.length > 0) {\n let md = '### Retornos Bancários\\n\\n';\n md += '| Data | Descrição | Código | Origem | Identificação | Empresa | Usuário | ID |\\n';\n md += '|------|-----------|--------|--------|---------------|---------|---------|----|\\n';\n retornos.forEach((r) => {\n md += `| ${formatDate(r.movData)} | ${safe(r.movDescricao)} | ${safe(r.movCodigo)} | ${safe(r.movOrigem)} | ${safe(r.movIdentificaOrigem)} | ${safe(r.empCodigo)} | ${safe(r.movUsuario)} | ${safe(r.id)} |\\n`;\n });\n retornosBancariosMarkdown = md.trim();\n }\n\n return {\n retornosBancariosMarkdown,\n quantidadeRetornos: retornos.length,\n };\n};",
259
+ "packageJson": "{}"
260
+ },
261
+ "errorHandlingOptions": {
262
+ "retryOnFailure": {
263
+ "value": false
264
+ },
265
+ "continueOnFailure": {
266
+ "value": false
267
+ }
268
+ }
269
+ },
270
+ "nextAction": {
271
+ "name": "step_6",
272
+ "skip": false,
273
+ "type": "PIECE",
274
+ "valid": true,
275
+ "settings": {
276
+ "input": {
277
+ "auth": "{{connections['exampleConnectionId3']}}",
278
+ "pipeId": "200000001",
279
+ "organizationId": "100000001",
280
+ "startFormFields": {
281
+ "idg": "{{trigger['output']['data']['operacao']['idg']}}",
282
+ "opera_o": "{{trigger['output']['data']['cardIdOperacao']}}",
283
+ "eve_nfe_1": "{{step_1['output']['item']['eveNfe']}}",
284
+ "documentos": [],
285
+ "idoperacao": "{{trigger['output']['data']['operacao']['idOperacao']}}",
286
+ "valor_bruto": "{{step_1['output']['item']['valorBruto']}}",
287
+ "vencimentoo": "{{step_1['output']['item']['vencimento']}}",
288
+ "nf_pdf_e_xml": [],
289
+ "empresacodigo": "{{trigger['output']['data']['operacao']['empresaCodigo']}}",
290
+ "valor_l_quido": "{{step_1['output']['item']['valorLiquido']}}",
291
+ "valor_passagem": "PENDENTE - Aguardando confirmação",
292
+ "data_da_opera_o": "{{trigger['output']['data']['operacao']['dataOperacao']}}",
293
+ "status_banc_rio": "{{step_1['output']['item']['statusBancario']}}",
294
+ "valida_o_da_nf_1": null,
295
+ "analistareponsavel": "{{step_1['output']['item']['analistaResponsavel']}}",
296
+ "valor_com_desconto": "{{step_1['output']['item']['valorComDesconto']}}",
297
+ "data_do_faturamento": "{{step_1['output']['item']['dataFaturamento']}}",
298
+ "status_classifica_o": "{{step_46['output']['cardId']}}",
299
+ "analista_respons_vel": [],
300
+ "id_t_tulo_barramento": "{{step_1['output']['item']['numeroTitulo']}}",
301
+ "c_digo_e_descri_o_do_idg": "{{step_1['output']['item']['idg']}} - {{step_1['output']['item']['idgDesc']}}",
302
+ "documento_numero_da_nota": "{{step_1['output']['item']['documento']}}",
303
+ "prioridade_da_checagem_1": [],
304
+ "exibir_hist_rico_completo_retorno_banc_rio": [],
305
+ "exibir_hist_rico_completo_nfe_monitoramento": []
306
+ }
307
+ },
308
+ "pieceName": "@activepieces/piece-pipefy",
309
+ "actionName": "createCard",
310
+ "sampleData": {},
311
+ "pieceVersion": "0.1.7",
312
+ "propertySettings": {
313
+ "pipeId": {
314
+ "type": "MANUAL"
315
+ },
316
+ "organizationId": {
317
+ "type": "MANUAL"
318
+ },
319
+ "startFormFields": {
320
+ "type": "MANUAL",
321
+ "schema": {
322
+ "idg": {
323
+ "type": "SHORT_TEXT",
324
+ "required": false,
325
+ "description": "\"operação\"\n\"idg\"",
326
+ "displayName": "IDG"
327
+ },
328
+ "base": {
329
+ "type": "SHORT_TEXT",
330
+ "required": false,
331
+ "description": "",
332
+ "displayName": "Base"
333
+ },
334
+ "sacado": {
335
+ "type": "SHORT_TEXT",
336
+ "required": false,
337
+ "description": "\"titulos\"\n\"idUnicoSacado\"",
338
+ "displayName": "Sacado"
339
+ },
340
+ "cedente": {
341
+ "type": "SHORT_TEXT",
342
+ "required": false,
343
+ "description": "\"titulos\"\n\"idUnicoCedente\"",
344
+ "displayName": "Cedente"
345
+ },
346
+ "d_start": {
347
+ "type": "SHORT_TEXT",
348
+ "required": false,
349
+ "description": "⚙️ Do cadastro do Cedente (data de vencimento - D Start)",
350
+ "displayName": "D Start"
351
+ },
352
+ "opera_o": {
353
+ "type": "SHORT_TEXT",
354
+ "required": true,
355
+ "description": "\"titulos\"\n\"idUnicoOperacao\"",
356
+ "displayName": "Operação"
357
+ },
358
+ "despacho": {
359
+ "type": "SHORT_TEXT",
360
+ "required": false,
361
+ "description": "This is a condition-based field.",
362
+ "displayName": "Despacho"
363
+ },
364
+ "eve_nfe_1": {
365
+ "type": "SHORT_TEXT",
366
+ "required": false,
367
+ "description": "\"titulos\"\n\"eveNfe\"",
368
+ "displayName": "Eve Nfe"
369
+ },
370
+ "documentos": {
371
+ "type": "ARRAY",
372
+ "required": false,
373
+ "description": "\"documentos\" listas de URL's",
374
+ "displayName": "Documentos"
375
+ },
376
+ "engatilhar": {
377
+ "type": "SHORT_TEXT",
378
+ "required": false,
379
+ "description": "This is a condition-based field.",
380
+ "displayName": "engatilhar"
381
+ },
382
+ "idoperacao": {
383
+ "type": "SHORT_TEXT",
384
+ "required": false,
385
+ "description": "\"idOperacao\"",
386
+ "displayName": "idOperacao"
387
+ },
388
+ "id_do_grupo": {
389
+ "type": "SHORT_TEXT",
390
+ "required": false,
391
+ "description": "This is a condition-based field.",
392
+ "displayName": "[Esconder] ID do Grupo"
393
+ },
394
+ "valor_bruto": {
395
+ "type": "NUMBER",
396
+ "required": false,
397
+ "description": "\"titulos\"\n\"valorBruto\"",
398
+ "displayName": "Valor bruto"
399
+ },
400
+ "vencimentoo": {
401
+ "type": "SHORT_TEXT",
402
+ "required": false,
403
+ "description": "\"titulos\"\n\"vencimento\"",
404
+ "displayName": "Vencimento"
405
+ },
406
+ "classifica_o": {
407
+ "type": "SHORT_TEXT",
408
+ "required": false,
409
+ "description": "This is a condition-based field. esta puxando a informação do campo \"status/classificação\"",
410
+ "displayName": "[Esconder] Classificação"
411
+ },
412
+ "nf_pdf_e_xml": {
413
+ "type": "ARRAY",
414
+ "required": false,
415
+ "description": "consultar o \"nfXmlBase64\" no barramento e retornar o pdf",
416
+ "displayName": "NF (PDF)"
417
+ },
418
+ "cidade_origem": {
419
+ "type": "SHORT_TEXT",
420
+ "required": false,
421
+ "description": "⚙️ informação extraída do \"nfXmlBase64\"",
422
+ "displayName": "Cidade - Origem"
423
+ },
424
+ "empresacodigo": {
425
+ "type": "SHORT_TEXT",
426
+ "required": false,
427
+ "description": "\"empresaCodigo\"",
428
+ "displayName": "Fundo operado"
429
+ },
430
+ "estado_origem": {
431
+ "type": "SHORT_TEXT",
432
+ "required": false,
433
+ "description": "⚙️ informação extraída do \"nfXmlBase64\"",
434
+ "displayName": "Estado - Origem"
435
+ },
436
+ "valor_l_quido": {
437
+ "type": "NUMBER",
438
+ "required": false,
439
+ "description": "\"titulos\"\n\"valorLiquido\"",
440
+ "displayName": "Valor líquido"
441
+ },
442
+ "cidade_destino": {
443
+ "type": "SHORT_TEXT",
444
+ "required": false,
445
+ "description": "⚙️ informação extraída do \"nfXmlBase64\"",
446
+ "displayName": "Cidade - Destino"
447
+ },
448
+ "estado_destino": {
449
+ "type": "SHORT_TEXT",
450
+ "required": false,
451
+ "description": "informação extraída do \"nfXmlBase64\"",
452
+ "displayName": "Estado - Destino"
453
+ },
454
+ "link_do_boleto": {
455
+ "type": "LONG_TEXT",
456
+ "required": false,
457
+ "description": "\"titulos\"\n\"linkBoleto\"\n(precisa do cnpj do sacado para abrir)",
458
+ "displayName": "Link do boleto"
459
+ },
460
+ "valor_passagem": {
461
+ "type": "SHORT_TEXT",
462
+ "required": false,
463
+ "description": "0 -> Se não for encontrada as palavras CT-e e\n1 -> Se for encontrada as palavras CT-e e",
464
+ "displayName": "Valor passagem"
465
+ },
466
+ "data_da_opera_o": {
467
+ "type": "SHORT_TEXT",
468
+ "required": false,
469
+ "description": "\"dataOperacao\"",
470
+ "displayName": "Data da operação"
471
+ },
472
+ "status_banc_rio": {
473
+ "type": "SHORT_TEXT",
474
+ "required": false,
475
+ "description": "\"titulos\"\n\"statusBancario\"\n⚙️ Quando for atualizado para \"LIQUIDADO\" mover para concluído",
476
+ "displayName": "Status bancário"
477
+ },
478
+ "retorno_banc_rio": {
479
+ "type": "SHORT_TEXT",
480
+ "required": false,
481
+ "description": "This is a condition-based field. \"retornosBancarios\"",
482
+ "displayName": "Retorno Bancário"
483
+ },
484
+ "valida_o_da_nf_1": {
485
+ "type": "STATIC_DROPDOWN",
486
+ "options": {
487
+ "options": [],
488
+ "disabled": false
489
+ },
490
+ "required": false,
491
+ "description": "👤 Preenchido pela operação",
492
+ "displayName": "Validação da NF"
493
+ },
494
+ "nfe_monitoramento": {
495
+ "type": "SHORT_TEXT",
496
+ "required": false,
497
+ "description": "This is a condition-based field. \"nfeMonitoramento\"",
498
+ "displayName": "Nfe Monitoramento"
499
+ },
500
+ "analistareponsavel": {
501
+ "type": "SHORT_TEXT",
502
+ "required": false,
503
+ "description": "\"titulos\"\n\"analistaResponsavel\"",
504
+ "displayName": "analistaReponsavel"
505
+ },
506
+ "aux_id_responsavel": {
507
+ "type": "SHORT_TEXT",
508
+ "required": false,
509
+ "description": "This is a condition-based field.",
510
+ "displayName": "[Esconder] aux_id_responsavel"
511
+ },
512
+ "valor_com_desconto": {
513
+ "type": "NUMBER",
514
+ "required": false,
515
+ "description": "\"titulos\"\n\"valorComDesconto\"",
516
+ "displayName": "Valor com desconto"
517
+ },
518
+ "data_do_faturamento": {
519
+ "type": "SHORT_TEXT",
520
+ "required": false,
521
+ "description": "\"titulos\"\n\"dataFaturamento\"",
522
+ "displayName": "Data do faturamento"
523
+ },
524
+ "status_classifica_o": {
525
+ "type": "SHORT_TEXT",
526
+ "required": false,
527
+ "description": "\"titulos\"\n\"status\"\n\"classificacao\"",
528
+ "displayName": "Status/Classificação"
529
+ },
530
+ "analista_respons_vel": {
531
+ "type": "STATIC_MULTI_SELECT_DROPDOWN",
532
+ "options": {
533
+ "options": [],
534
+ "disabled": false
535
+ },
536
+ "required": false,
537
+ "description": "\"titulos\"\n\"analistaResponsavel\"\npegar a informação do pipe de cedente\n\n(outra integração sendo feita. alteração em massa)",
538
+ "displayName": "Analista responsável"
539
+ },
540
+ "id_t_tulo_barramento": {
541
+ "type": "SHORT_TEXT",
542
+ "required": false,
543
+ "description": "\"titulos\"\n\"numeroTitulo\"",
544
+ "displayName": "ID Título (Barramento)"
545
+ },
546
+ "escondido_data_e_hora": {
547
+ "type": "SHORT_TEXT",
548
+ "required": false,
549
+ "description": "This is a condition-based field.",
550
+ "displayName": "[Escondido] Data e hora "
551
+ },
552
+ "data_de_reagendamentoo": {
553
+ "type": "SHORT_TEXT",
554
+ "required": false,
555
+ "description": "⚙️ Preenchido quando um acompanhamento é criado",
556
+ "displayName": "Data de reagendamento"
557
+ },
558
+ "ltimo_retorno_banc_rio": {
559
+ "type": "SHORT_TEXT",
560
+ "required": false,
561
+ "description": "",
562
+ "displayName": "Último Retorno bancário"
563
+ },
564
+ "ltimo_nfe_monitoramento": {
565
+ "type": "SHORT_TEXT",
566
+ "required": false,
567
+ "description": "",
568
+ "displayName": "Último Nfe monitoramento"
569
+ },
570
+ "c_digo_e_descri_o_do_idg": {
571
+ "type": "LONG_TEXT",
572
+ "required": false,
573
+ "description": "\"titulos\"\n\"idg\" & \"idgDesc\"",
574
+ "displayName": "Código e descrição do IDG"
575
+ },
576
+ "documento_numero_da_nota": {
577
+ "type": "SHORT_TEXT",
578
+ "required": false,
579
+ "description": "\"documento\" = número da nota",
580
+ "displayName": "Número da nota (documento)"
581
+ },
582
+ "prioridade_da_checagem_1": {
583
+ "type": "STATIC_MULTI_SELECT_DROPDOWN",
584
+ "options": {
585
+ "options": [],
586
+ "disabled": false
587
+ },
588
+ "required": false,
589
+ "description": "👤 Preenchido pela operação",
590
+ "displayName": "Prioridade da checagem"
591
+ },
592
+ "acompanhamentos_de_cobran_a": {
593
+ "type": "SHORT_TEXT",
594
+ "required": false,
595
+ "description": "",
596
+ "displayName": "Acompanhamentos de cobrança"
597
+ },
598
+ "exibir_hist_rico_completo_retorno_banc_rio": {
599
+ "type": "STATIC_MULTI_SELECT_DROPDOWN",
600
+ "options": {
601
+ "options": [],
602
+ "disabled": false
603
+ },
604
+ "required": false,
605
+ "description": "",
606
+ "displayName": "Exibir histórico completo - Retorno bancário"
607
+ },
608
+ "exibir_hist_rico_completo_nfe_monitoramento": {
609
+ "type": "STATIC_MULTI_SELECT_DROPDOWN",
610
+ "options": {
611
+ "options": [],
612
+ "disabled": false
613
+ },
614
+ "required": false,
615
+ "description": "",
616
+ "displayName": "Exibir histórico completo - Nfe Monitoramento"
617
+ },
618
+ "confer_ncia_entre_nf_e_informa_es_do_t_tulo_automa_o": {
619
+ "type": "LONG_TEXT",
620
+ "required": false,
621
+ "description": "This is a condition-based field.",
622
+ "displayName": "[Esconder] Conferência entre NF e informações do título"
623
+ }
624
+ }
625
+ }
626
+ },
627
+ "errorHandlingOptions": {
628
+ "retryOnFailure": {
629
+ "value": false
630
+ },
631
+ "continueOnFailure": {
632
+ "value": false
633
+ }
634
+ }
635
+ },
636
+ "nextAction": {
637
+ "name": "step_42",
638
+ "skip": false,
639
+ "type": "PIECE",
640
+ "valid": true,
641
+ "settings": {
642
+ "input": {
643
+ "flow": {
644
+ "externalId": "exampleFlowId13aaaaaa",
645
+ "exampleData": {
646
+ "sampleData": {
647
+ "cardIdTitulo": "example",
648
+ "nfeMonitoramento": [
649
+ {
650
+ "nlmData": "example",
651
+ "nlmHora": "example",
652
+ "ernDescricao": "example",
653
+ "nlmChaveRetorno": "example",
654
+ "nlmCodigoEventoRetorno": 0,
655
+ "nlmDescricaoEventoRetorno": "example"
656
+ },
657
+ {
658
+ "nlmData": "example",
659
+ "nlmHora": "example",
660
+ "ernDescricao": "example",
661
+ "nlmChaveRetorno": "example",
662
+ "nlmCodigoEventoRetorno": 0,
663
+ "nlmDescricaoEventoRetorno": "example"
664
+ },
665
+ {
666
+ "nlmData": "example",
667
+ "nlmHora": "example",
668
+ "ernDescricao": "example",
669
+ "nlmChaveRetorno": "example",
670
+ "nlmCodigoEventoRetorno": 0,
671
+ "nlmDescricaoEventoRetorno": "example"
672
+ },
673
+ {
674
+ "nlmData": "example",
675
+ "nlmHora": "example",
676
+ "ernDescricao": "example",
677
+ "nlmChaveRetorno": "example",
678
+ "nlmCodigoEventoRetorno": 0,
679
+ "nlmDescricaoEventoRetorno": "example"
680
+ },
681
+ {
682
+ "nlmData": "example",
683
+ "nlmHora": "example",
684
+ "ernDescricao": "example",
685
+ "nlmChaveRetorno": "example",
686
+ "nlmCodigoEventoRetorno": 0,
687
+ "nlmDescricaoEventoRetorno": "example"
688
+ }
689
+ ]
690
+ }
691
+ }
692
+ },
693
+ "mode": "simple",
694
+ "flowProps": {
695
+ "payload": {
696
+ "nfeMonitoramento": "{{step_1['output']['item']['nfeMonitoramento']}}"
697
+ }
698
+ },
699
+ "waitForResponse": true
700
+ },
701
+ "pieceName": "@activepieces/piece-subflows",
702
+ "actionName": "callFlow",
703
+ "sampleData": {},
704
+ "pieceVersion": "0.4.15",
705
+ "propertySettings": {
706
+ "flow": {
707
+ "type": "MANUAL"
708
+ },
709
+ "mode": {
710
+ "type": "MANUAL"
711
+ },
712
+ "flowProps": {
713
+ "type": "MANUAL",
714
+ "schema": {
715
+ "payload": {
716
+ "type": "OBJECT",
717
+ "required": true,
718
+ "displayName": "Payload",
719
+ "defaultValue": {
720
+ "cardIdTitulo": "example",
721
+ "nfeMonitoramento": [
722
+ {
723
+ "nlmData": "example",
724
+ "nlmHora": "example",
725
+ "ernDescricao": "example",
726
+ "nlmChaveRetorno": "example",
727
+ "nlmCodigoEventoRetorno": 0,
728
+ "nlmDescricaoEventoRetorno": "example"
729
+ },
730
+ {
731
+ "nlmData": "example",
732
+ "nlmHora": "example",
733
+ "ernDescricao": "example",
734
+ "nlmChaveRetorno": "example",
735
+ "nlmCodigoEventoRetorno": 0,
736
+ "nlmDescricaoEventoRetorno": "example"
737
+ },
738
+ {
739
+ "nlmData": "example",
740
+ "nlmHora": "example",
741
+ "ernDescricao": "example",
742
+ "nlmChaveRetorno": "example",
743
+ "nlmCodigoEventoRetorno": 0,
744
+ "nlmDescricaoEventoRetorno": "example"
745
+ },
746
+ {
747
+ "nlmData": "example",
748
+ "nlmHora": "example",
749
+ "ernDescricao": "example",
750
+ "nlmChaveRetorno": "example",
751
+ "nlmCodigoEventoRetorno": 0,
752
+ "nlmDescricaoEventoRetorno": "example"
753
+ },
754
+ {
755
+ "nlmData": "example",
756
+ "nlmHora": "example",
757
+ "ernDescricao": "example",
758
+ "nlmChaveRetorno": "example",
759
+ "nlmCodigoEventoRetorno": 0,
760
+ "nlmDescricaoEventoRetorno": "example"
761
+ }
762
+ ]
763
+ }
764
+ }
765
+ }
766
+ },
767
+ "waitForResponse": {
768
+ "type": "MANUAL"
769
+ }
770
+ },
771
+ "errorHandlingOptions": {
772
+ "retryOnFailure": {
773
+ "value": false
774
+ },
775
+ "continueOnFailure": {
776
+ "value": false
777
+ }
778
+ }
779
+ },
780
+ "nextAction": {
781
+ "name": "step_43",
782
+ "skip": false,
783
+ "type": "PIECE",
784
+ "valid": true,
785
+ "settings": {
786
+ "input": {
787
+ "flow": {
788
+ "externalId": "exampleFlowId14aaaaaa",
789
+ "exampleData": {
790
+ "sampleData": {
791
+ "cardIdTitulo": "example",
792
+ "retornosBancarios": [
793
+ {
794
+ "id": "example",
795
+ "valor": 0,
796
+ "evento": "example",
797
+ "movData": "example",
798
+ "empCodigo": 0,
799
+ "movCodigo": "example",
800
+ "movOrigem": "example",
801
+ "movUsuario": "example",
802
+ "dataPContato": "example",
803
+ "movDescricao": "example",
804
+ "movIdentificaOrigem": "example"
805
+ },
806
+ {
807
+ "id": "example",
808
+ "valor": 0,
809
+ "evento": "example",
810
+ "movData": "example",
811
+ "empCodigo": 0,
812
+ "movCodigo": "example",
813
+ "movOrigem": "example",
814
+ "movUsuario": "example",
815
+ "dataPContato": "example",
816
+ "movDescricao": "example",
817
+ "movIdentificaOrigem": "example"
818
+ },
819
+ {
820
+ "id": "example",
821
+ "valor": 0,
822
+ "evento": "example",
823
+ "movData": "example",
824
+ "empCodigo": 0,
825
+ "movCodigo": "example",
826
+ "movOrigem": "example",
827
+ "movUsuario": "example",
828
+ "dataPContato": "example",
829
+ "movDescricao": "example",
830
+ "movIdentificaOrigem": "example"
831
+ },
832
+ {
833
+ "id": "example",
834
+ "valor": 0,
835
+ "evento": "example",
836
+ "movData": "example",
837
+ "empCodigo": 0,
838
+ "movCodigo": "example",
839
+ "movOrigem": "example",
840
+ "movUsuario": "example",
841
+ "dataPContato": "example",
842
+ "movDescricao": "example",
843
+ "movIdentificaOrigem": "example"
844
+ },
845
+ {
846
+ "id": "example",
847
+ "valor": 0,
848
+ "evento": "example",
849
+ "movData": "example",
850
+ "empCodigo": 0,
851
+ "movCodigo": "example",
852
+ "movOrigem": "example",
853
+ "movUsuario": "example",
854
+ "dataPContato": "example",
855
+ "movDescricao": "example",
856
+ "movIdentificaOrigem": "example"
857
+ },
858
+ {
859
+ "id": "example",
860
+ "valor": 0,
861
+ "evento": "example",
862
+ "movData": "example",
863
+ "empCodigo": 0,
864
+ "movCodigo": "example",
865
+ "movOrigem": "example",
866
+ "movUsuario": "example",
867
+ "dataPContato": "example",
868
+ "movDescricao": "example",
869
+ "movIdentificaOrigem": "example"
870
+ }
871
+ ]
872
+ }
873
+ }
874
+ },
875
+ "mode": "simple",
876
+ "flowProps": {
877
+ "payload": {
878
+ "cardIdTitulo": "{{step_6['output']['data']['createCard']['card']['id']}}",
879
+ "retornosBancarios": "{{step_1['output']['item']['retornosBancarios']}}"
880
+ }
881
+ },
882
+ "waitForResponse": true
883
+ },
884
+ "pieceName": "@activepieces/piece-subflows",
885
+ "actionName": "callFlow",
886
+ "sampleData": {},
887
+ "pieceVersion": "0.4.15",
888
+ "propertySettings": {
889
+ "flow": {
890
+ "type": "MANUAL"
891
+ },
892
+ "mode": {
893
+ "type": "MANUAL"
894
+ },
895
+ "flowProps": {
896
+ "type": "MANUAL",
897
+ "schema": {
898
+ "payload": {
899
+ "type": "OBJECT",
900
+ "required": true,
901
+ "displayName": "Payload",
902
+ "defaultValue": {
903
+ "cardIdTitulo": "example",
904
+ "retornosBancarios": [
905
+ {
906
+ "id": "example",
907
+ "valor": 0,
908
+ "evento": "example",
909
+ "movData": "example",
910
+ "empCodigo": 0,
911
+ "movCodigo": "example",
912
+ "movOrigem": "example",
913
+ "movUsuario": "example",
914
+ "dataPContato": "example",
915
+ "movDescricao": "example",
916
+ "movIdentificaOrigem": "example"
917
+ },
918
+ {
919
+ "id": "example",
920
+ "valor": 0,
921
+ "evento": "example",
922
+ "movData": "example",
923
+ "empCodigo": 0,
924
+ "movCodigo": "example",
925
+ "movOrigem": "example",
926
+ "movUsuario": "example",
927
+ "dataPContato": "example",
928
+ "movDescricao": "example",
929
+ "movIdentificaOrigem": "example"
930
+ },
931
+ {
932
+ "id": "example",
933
+ "valor": 0,
934
+ "evento": "example",
935
+ "movData": "example",
936
+ "empCodigo": 0,
937
+ "movCodigo": "example",
938
+ "movOrigem": "example",
939
+ "movUsuario": "example",
940
+ "dataPContato": "example",
941
+ "movDescricao": "example",
942
+ "movIdentificaOrigem": "example"
943
+ },
944
+ {
945
+ "id": "example",
946
+ "valor": 0,
947
+ "evento": "example",
948
+ "movData": "example",
949
+ "empCodigo": 0,
950
+ "movCodigo": "example",
951
+ "movOrigem": "example",
952
+ "movUsuario": "example",
953
+ "dataPContato": "example",
954
+ "movDescricao": "example",
955
+ "movIdentificaOrigem": "example"
956
+ },
957
+ {
958
+ "id": "example",
959
+ "valor": 0,
960
+ "evento": "example",
961
+ "movData": "example",
962
+ "empCodigo": 0,
963
+ "movCodigo": "example",
964
+ "movOrigem": "example",
965
+ "movUsuario": "example",
966
+ "dataPContato": "example",
967
+ "movDescricao": "example",
968
+ "movIdentificaOrigem": "example"
969
+ },
970
+ {
971
+ "id": "example",
972
+ "valor": 0,
973
+ "evento": "example",
974
+ "movData": "example",
975
+ "empCodigo": 0,
976
+ "movCodigo": "example",
977
+ "movOrigem": "example",
978
+ "movUsuario": "example",
979
+ "dataPContato": "example",
980
+ "movDescricao": "example",
981
+ "movIdentificaOrigem": "example"
982
+ }
983
+ ]
984
+ }
985
+ }
986
+ }
987
+ },
988
+ "waitForResponse": {
989
+ "type": "MANUAL"
990
+ }
991
+ },
992
+ "errorHandlingOptions": {
993
+ "retryOnFailure": {
994
+ "value": false
995
+ },
996
+ "continueOnFailure": {
997
+ "value": false
998
+ }
999
+ }
1000
+ },
1001
+ "nextAction": {
1002
+ "name": "step_37",
1003
+ "skip": false,
1004
+ "type": "PIECE",
1005
+ "valid": true,
1006
+ "settings": {
1007
+ "input": {
1008
+ "flow": {
1009
+ "externalId": "exampleFlowId10aaaaaa",
1010
+ "exampleData": {
1011
+ "sampleData": {
1012
+ "cardIdTitulo": "example",
1013
+ "acompanhamentoDeCobranca": [
1014
+ {
1015
+ "id": "example",
1016
+ "valor": 0,
1017
+ "evento": "example",
1018
+ "movData": "example",
1019
+ "empCodigo": 0,
1020
+ "movCodigo": "example",
1021
+ "movOrigem": "example",
1022
+ "movUsuario": "example",
1023
+ "dataPContato": "example",
1024
+ "movDescricao": "example",
1025
+ "movIdentificaOrigem": "example"
1026
+ },
1027
+ {
1028
+ "id": "example",
1029
+ "valor": 0,
1030
+ "evento": "example",
1031
+ "movData": "example",
1032
+ "empCodigo": 0,
1033
+ "movCodigo": "example",
1034
+ "movOrigem": "example",
1035
+ "movUsuario": "example",
1036
+ "dataPContato": "example",
1037
+ "movDescricao": "example",
1038
+ "movIdentificaOrigem": "example"
1039
+ }
1040
+ ]
1041
+ }
1042
+ }
1043
+ },
1044
+ "mode": "simple",
1045
+ "flowProps": {
1046
+ "payload": {
1047
+ "cardIdTitulo": "{{step_6['output']['data']['createCard']['card']['id']}}",
1048
+ "acompanhamentoDeCobranca": "{{step_1['output']['item']['acompanhamentoDeCobranca']}}"
1049
+ }
1050
+ },
1051
+ "waitForResponse": false
1052
+ },
1053
+ "pieceName": "@activepieces/piece-subflows",
1054
+ "actionName": "callFlow",
1055
+ "sampleData": {},
1056
+ "pieceVersion": "0.4.15",
1057
+ "propertySettings": {
1058
+ "flow": {
1059
+ "type": "MANUAL"
1060
+ },
1061
+ "mode": {
1062
+ "type": "MANUAL"
1063
+ },
1064
+ "flowProps": {
1065
+ "type": "MANUAL",
1066
+ "schema": {
1067
+ "payload": {
1068
+ "type": "OBJECT",
1069
+ "required": true,
1070
+ "displayName": "Payload",
1071
+ "defaultValue": {
1072
+ "cardIdTitulo": "example",
1073
+ "acompanhamentoDeCobranca": [
1074
+ {
1075
+ "id": "example",
1076
+ "valor": 0,
1077
+ "evento": "example",
1078
+ "movData": "example",
1079
+ "empCodigo": 0,
1080
+ "movCodigo": "example",
1081
+ "movOrigem": "example",
1082
+ "movUsuario": "example",
1083
+ "dataPContato": "example",
1084
+ "movDescricao": "example",
1085
+ "movIdentificaOrigem": "example"
1086
+ },
1087
+ {
1088
+ "id": "example",
1089
+ "valor": 0,
1090
+ "evento": "example",
1091
+ "movData": "example",
1092
+ "empCodigo": 0,
1093
+ "movCodigo": "example",
1094
+ "movOrigem": "example",
1095
+ "movUsuario": "example",
1096
+ "dataPContato": "example",
1097
+ "movDescricao": "example",
1098
+ "movIdentificaOrigem": "example"
1099
+ }
1100
+ ]
1101
+ }
1102
+ }
1103
+ }
1104
+ },
1105
+ "waitForResponse": {
1106
+ "type": "MANUAL"
1107
+ }
1108
+ },
1109
+ "errorHandlingOptions": {
1110
+ "retryOnFailure": {
1111
+ "value": false
1112
+ },
1113
+ "continueOnFailure": {
1114
+ "value": false
1115
+ }
1116
+ }
1117
+ },
1118
+ "nextAction": {
1119
+ "name": "step_44",
1120
+ "skip": false,
1121
+ "type": "LOOP_ON_ITEMS",
1122
+ "valid": true,
1123
+ "settings": {
1124
+ "items": "{{trigger['output']['data']['operacao']['documentos']}}",
1125
+ "sampleData": {}
1126
+ },
1127
+ "nextAction": {
1128
+ "name": "step_29",
1129
+ "skip": false,
1130
+ "type": "PIECE",
1131
+ "valid": true,
1132
+ "settings": {
1133
+ "input": {
1134
+ "key": "statusCardId",
1135
+ "store_scope": "RUN"
1136
+ },
1137
+ "pieceName": "@activepieces/piece-store",
1138
+ "actionName": "remove_value",
1139
+ "sampleData": {},
1140
+ "pieceVersion": "0.6.14",
1141
+ "propertySettings": {
1142
+ "key": {
1143
+ "type": "MANUAL"
1144
+ },
1145
+ "store_scope": {
1146
+ "type": "MANUAL"
1147
+ }
1148
+ },
1149
+ "errorHandlingOptions": {
1150
+ "retryOnFailure": {
1151
+ "value": false
1152
+ },
1153
+ "continueOnFailure": {
1154
+ "value": false
1155
+ }
1156
+ }
1157
+ },
1158
+ "nextAction": {
1159
+ "name": "step_18",
1160
+ "skip": false,
1161
+ "type": "ROUTER",
1162
+ "valid": true,
1163
+ "children": [
1164
+ {
1165
+ "name": "step_36",
1166
+ "skip": false,
1167
+ "type": "PIECE",
1168
+ "valid": true,
1169
+ "settings": {
1170
+ "input": {
1171
+ "file": "data:application/xml;base64,{{step_1['output']['item']['nfXmlBase64']}}",
1172
+ "readOptions": "text"
1173
+ },
1174
+ "pieceName": "@activepieces/piece-file-helper",
1175
+ "actionName": "read_file",
1176
+ "sampleData": {},
1177
+ "pieceVersion": "0.1.23",
1178
+ "propertySettings": {
1179
+ "file": {
1180
+ "type": "MANUAL"
1181
+ },
1182
+ "readOptions": {
1183
+ "type": "MANUAL"
1184
+ }
1185
+ },
1186
+ "errorHandlingOptions": {
1187
+ "retryOnFailure": {
1188
+ "value": false
1189
+ },
1190
+ "continueOnFailure": {
1191
+ "value": false
1192
+ }
1193
+ }
1194
+ },
1195
+ "nextAction": {
1196
+ "name": "step_31",
1197
+ "skip": false,
1198
+ "type": "PIECE",
1199
+ "valid": true,
1200
+ "settings": {
1201
+ "input": {
1202
+ "flow": {
1203
+ "externalId": "exampleFlowId01aaaaaa",
1204
+ "exampleData": {
1205
+ "sampleData": {
1206
+ "cardId": "example",
1207
+ "nfXmlBase64": "example"
1208
+ }
1209
+ }
1210
+ },
1211
+ "mode": "simple",
1212
+ "flowProps": {
1213
+ "payload": {
1214
+ "cardId": "{{step_6['output']['data']['createCard']['card']['id']}}",
1215
+ "nfXmlBase64": "{{step_1['output']['item']['nfXmlBase64']}}"
1216
+ }
1217
+ },
1218
+ "waitForResponse": false
1219
+ },
1220
+ "pieceName": "@activepieces/piece-subflows",
1221
+ "actionName": "callFlow",
1222
+ "sampleData": {},
1223
+ "pieceVersion": "0.4.15",
1224
+ "propertySettings": {
1225
+ "flow": {
1226
+ "type": "MANUAL"
1227
+ },
1228
+ "mode": {
1229
+ "type": "MANUAL"
1230
+ },
1231
+ "flowProps": {
1232
+ "type": "MANUAL",
1233
+ "schema": {
1234
+ "payload": {
1235
+ "type": "OBJECT",
1236
+ "required": true,
1237
+ "displayName": "Payload",
1238
+ "defaultValue": {
1239
+ "cardId": "example",
1240
+ "nfXmlBase64": "example"
1241
+ }
1242
+ }
1243
+ }
1244
+ },
1245
+ "waitForResponse": {
1246
+ "type": "MANUAL"
1247
+ }
1248
+ },
1249
+ "errorHandlingOptions": {
1250
+ "retryOnFailure": {
1251
+ "value": false
1252
+ },
1253
+ "continueOnFailure": {
1254
+ "value": false
1255
+ }
1256
+ }
1257
+ },
1258
+ "nextAction": {
1259
+ "name": "step_40",
1260
+ "skip": false,
1261
+ "type": "CODE",
1262
+ "valid": true,
1263
+ "settings": {
1264
+ "input": {
1265
+ "xml": "{{step_36['output']['text']}}"
1266
+ },
1267
+ "sampleData": {},
1268
+ "sourceCode": {
1269
+ "code": "/**\n * ActivePieces - Code Piece\n * Lê o XML de uma NF-e (modelo 55, layout 4.00) e devolve um JSON normalizado.\n *\n * Dependência (adicione no painel \"Packages\" do step de código):\n * fast-xml-parser ^4\n *\n * Entrada esperada:\n * inputs.xml -> string com o XML completo (nfeProc OU NFe)\n *\n * Saída: objeto JSON com chave, ide, emit, dest, itens[], total,\n * transporte, cobranca, pagamento, infAdic e o protocolo.\n */\n\nimport { XMLParser } from 'fast-xml-parser';\n\nexport const code = async (inputs) => {\n const xml = inputs.xml;\n if (!xml || typeof xml !== 'string') {\n throw new Error('inputs.xml ausente ou não é uma string.');\n }\n\n const parser = new XMLParser({\n ignoreAttributes: false,\n attributeNamePrefix: '@_',\n parseTagValue: false, // mantém tudo como string (preserva CNPJ, chave, etc.)\n trimValues: true,\n });\n\n const root = parser.parse(xml);\n\n // ---- Helpers -------------------------------------------------------------\n const asArray = (v) => (v == null ? [] : Array.isArray(v) ? v : [v]);\n const num = (v) => {\n if (v === undefined || v === null || v === '') return null;\n const n = Number(String(v).replace(',', '.'));\n return Number.isNaN(n) ? null : n;\n };\n const get = (obj, path, def = null) =>\n path.split('.').reduce((acc, k) => (acc && acc[k] != null ? acc[k] : def), obj);\n\n // ---- Localiza os nós principais (suporta nfeProc ou NFe avulsa) ----------\n const nfeProc = root.nfeProc || root;\n const NFe = nfeProc.NFe || root.NFe;\n if (!NFe) throw new Error('Não foi possível localizar o nó <NFe> no XML.');\n\n const infNFe = NFe.infNFe;\n const ide = infNFe.ide || {};\n const emit = infNFe.emit || {};\n const dest = infNFe.dest || {};\n const total = get(infNFe, 'total.ICMSTot', {}) || {};\n const transp = infNFe.transp || {};\n const cobr = infNFe.cobr || {};\n const pag = infNFe.pag || {};\n const infAdic = infNFe.infAdic || {};\n const compra = infNFe.compra || {};\n const infProt = get(nfeProc, 'protNFe.infProt', null);\n\n // chave de acesso (remove o prefixo \"NFe\" do atributo Id)\n const chave = String(infNFe['@_Id'] || '').replace(/^NFe/, '') || null;\n\n // ---- Itens (det) ---------------------------------------------------------\n const itens = asArray(infNFe.det).map((det) => {\n const prod = det.prod || {};\n const imp = det.imposto || {};\n\n // ICMS pode vir em vários grupos (ICMS00, ICMS10, ...). Pegamos o primeiro.\n const icmsGrp = imp.ICMS ? Object.values(imp.ICMS)[0] || {} : {};\n // IPI pode vir como IPITrib ou IPINT\n const ipiTrib = get(imp, 'IPI.IPITrib', null);\n const pis = imp.PIS ? Object.values(imp.PIS)[0] || {} : {};\n const cofins = imp.COFINS ? Object.values(imp.COFINS)[0] || {} : {};\n\n return {\n nItem: det['@_nItem'] || null,\n cProd: prod.cProd || null,\n cEAN: prod.cEAN || null,\n xProd: prod.xProd || null,\n NCM: prod.NCM || null,\n CFOP: prod.CFOP || null,\n uCom: prod.uCom || null,\n qCom: num(prod.qCom),\n vUnCom: num(prod.vUnCom),\n vProd: num(prod.vProd),\n nFCI: prod.nFCI || null,\n infAdProd: det.infAdProd || null,\n imposto: {\n icms: {\n orig: icmsGrp.orig ?? null,\n CST: icmsGrp.CST ?? icmsGrp.CSOSN ?? null,\n vBC: num(icmsGrp.vBC),\n pICMS: num(icmsGrp.pICMS),\n vICMS: num(icmsGrp.vICMS),\n },\n ipi: ipiTrib\n ? { CST: ipiTrib.CST, vBC: num(ipiTrib.vBC), pIPI: num(ipiTrib.pIPI), vIPI: num(ipiTrib.vIPI) }\n : { CST: get(imp, 'IPI.IPINT.CST', null), vIPI: 0 },\n pis: { CST: pis.CST ?? null, vBC: num(pis.vBC), pPIS: num(pis.pPIS), vPIS: num(pis.vPIS) },\n cofins: { CST: cofins.CST ?? null, vBC: num(cofins.vBC), pCOFINS: num(cofins.pCOFINS), vCOFINS: num(cofins.vCOFINS) },\n },\n };\n });\n\n // ---- Cobrança / duplicatas ----------------------------------------------\n const duplicatas = asArray(cobr.dup).map((d) => ({\n nDup: d.nDup || null,\n dVenc: d.dVenc || null,\n vDup: num(d.vDup),\n }));\n\n // ---- Pagamento -----------------------------------------------------------\n const pagamentos = asArray(pag.detPag).map((p) => ({\n indPag: p.indPag || null,\n tPag: p.tPag || null,\n vPag: num(p.vPag),\n }));\n\n // ---- Monta a saída -------------------------------------------------------\n return {\n chave,\n versao: infNFe['@_versao'] || null,\n\n ide: {\n cUF: ide.cUF || null,\n natOp: ide.natOp || null,\n mod: ide.mod || null,\n serie: ide.serie || null,\n nNF: ide.nNF || null,\n dhEmi: ide.dhEmi || null,\n tpNF: ide.tpNF || null,\n finNFe: ide.finNFe || null,\n tpAmb: ide.tpAmb || null,\n },\n\n emit: {\n CNPJ: emit.CNPJ || null,\n xNome: emit.xNome || null,\n xFant: emit.xFant || null,\n IE: emit.IE || null,\n CRT: emit.CRT || null,\n endereco: {\n xLgr: get(emit, 'enderEmit.xLgr'),\n nro: get(emit, 'enderEmit.nro'),\n xBairro: get(emit, 'enderEmit.xBairro'),\n xMun: get(emit, 'enderEmit.xMun'),\n UF: get(emit, 'enderEmit.UF'),\n CEP: get(emit, 'enderEmit.CEP'),\n fone: get(emit, 'enderEmit.fone'),\n },\n },\n\n dest: {\n CNPJ: dest.CNPJ || dest.CPF || null,\n xNome: dest.xNome || null,\n IE: dest.IE || null,\n email: dest.email || null,\n endereco: {\n xLgr: get(dest, 'enderDest.xLgr'),\n nro: get(dest, 'enderDest.nro'),\n xBairro: get(dest, 'enderDest.xBairro'),\n xMun: get(dest, 'enderDest.xMun'),\n UF: get(dest, 'enderDest.UF'),\n CEP: get(dest, 'enderDest.CEP'),\n fone: get(dest, 'enderDest.fone'),\n },\n },\n\n itens,\n\n total: {\n vBC: num(total.vBC),\n vICMS: num(total.vICMS),\n vProd: num(total.vProd),\n vFrete: num(total.vFrete),\n vSeg: num(total.vSeg),\n vDesc: num(total.vDesc),\n vIPI: num(total.vIPI),\n vPIS: num(total.vPIS),\n vCOFINS: num(total.vCOFINS),\n vOutro: num(total.vOutro),\n vNF: num(total.vNF),\n },\n\n transporte: {\n modFrete: transp.modFrete || null,\n transportadora: transp.transporta\n ? {\n CNPJ: transp.transporta.CNPJ || transp.transporta.CPF || null,\n xNome: transp.transporta.xNome || null,\n IE: transp.transporta.IE || null,\n xMun: transp.transporta.xMun || null,\n UF: transp.transporta.UF || null,\n }\n : null,\n volumes: asArray(transp.vol).map((v) => ({\n qVol: v.qVol || null,\n esp: v.esp || null,\n pesoL: num(v.pesoL),\n pesoB: num(v.pesoB),\n })),\n },\n\n cobranca: {\n nFat: get(cobr, 'fat.nFat'),\n vOrig: num(get(cobr, 'fat.vOrig')),\n vLiq: num(get(cobr, 'fat.vLiq')),\n duplicatas,\n },\n\n pagamento: pagamentos,\n\n infAdic: {\n infCpl: infAdic.infCpl || null,\n },\n\n compra: {\n xPed: compra.xPed || null,\n },\n\n protocolo: infProt\n ? {\n chNFe: infProt.chNFe || null,\n nProt: infProt.nProt || null,\n dhRecbto: infProt.dhRecbto || null,\n cStat: infProt.cStat || null,\n xMotivo: infProt.xMotivo || null,\n }\n : null,\n };\n};",
1270
+ "packageJson": "{}"
1271
+ },
1272
+ "errorHandlingOptions": {
1273
+ "retryOnFailure": {
1274
+ "value": false
1275
+ },
1276
+ "continueOnFailure": {
1277
+ "value": false
1278
+ }
1279
+ }
1280
+ },
1281
+ "nextAction": {
1282
+ "name": "step_41",
1283
+ "skip": false,
1284
+ "type": "PIECE",
1285
+ "valid": true,
1286
+ "settings": {
1287
+ "input": {
1288
+ "auth": "{{connections['exampleConnectionId3']}}",
1289
+ "cardId": "{{step_6['output']['data']['createCard']['card']['id']}}",
1290
+ "pipeId": "200000001",
1291
+ "phaseId": "300000001",
1292
+ "phaseFields": {
1293
+ "documentos": [],
1294
+ "nf_pdf_e_xml": [],
1295
+ "cidade_origem": "{{step_40['output']['emit']['endereco']['xMun']}}",
1296
+ "estado_origem": "{{step_40['output']['emit']['endereco']['UF']}}",
1297
+ "cidade_destino": "{{step_40['output']['dest']['endereco']['xMun']}}",
1298
+ "estado_destino": "{{step_40['output']['dest']['endereco']['UF']}}",
1299
+ "valida_o_da_nf_1": null,
1300
+ "analista_respons_vel": [],
1301
+ "prioridade_da_checagem_1": []
1302
+ },
1303
+ "organizationId": "100000001"
1304
+ },
1305
+ "pieceName": "@activepieces/piece-pipefy",
1306
+ "actionName": "updateCard",
1307
+ "sampleData": {},
1308
+ "pieceVersion": "0.1.8",
1309
+ "propertySettings": {
1310
+ "cardId": {
1311
+ "type": "MANUAL"
1312
+ },
1313
+ "pipeId": {
1314
+ "type": "MANUAL"
1315
+ },
1316
+ "phaseId": {
1317
+ "type": "MANUAL"
1318
+ },
1319
+ "phaseFields": {
1320
+ "type": "MANUAL",
1321
+ "schema": {
1322
+ "idg": {
1323
+ "type": "SHORT_TEXT",
1324
+ "required": false,
1325
+ "description": "\"operação\"\n\"idg\"",
1326
+ "displayName": "IDG"
1327
+ },
1328
+ "sacado": {
1329
+ "type": "SHORT_TEXT",
1330
+ "required": false,
1331
+ "description": "\"titulos\"\n\"idUnicoSacado\"",
1332
+ "displayName": "Sacado"
1333
+ },
1334
+ "cedente": {
1335
+ "type": "SHORT_TEXT",
1336
+ "required": false,
1337
+ "description": "\"titulos\"\n\"idUnicoCedente\"",
1338
+ "displayName": "Cedente"
1339
+ },
1340
+ "d_start": {
1341
+ "type": "SHORT_TEXT",
1342
+ "required": false,
1343
+ "description": "⚙️ Do cadastro do Cedente (data de vencimento - D Start)",
1344
+ "displayName": "D Start"
1345
+ },
1346
+ "opera_o": {
1347
+ "type": "SHORT_TEXT",
1348
+ "required": false,
1349
+ "description": "\"titulos\"\n\"idUnicoOperacao\"",
1350
+ "displayName": "Operação"
1351
+ },
1352
+ "eve_nfe_1": {
1353
+ "type": "SHORT_TEXT",
1354
+ "required": false,
1355
+ "description": "\"titulos\"\n\"eveNfe\"",
1356
+ "displayName": "Eve Nfe"
1357
+ },
1358
+ "documentos": {
1359
+ "type": "ARRAY",
1360
+ "required": false,
1361
+ "description": "\"documentos\" listas de URL's",
1362
+ "displayName": "Documentos"
1363
+ },
1364
+ "idoperacao": {
1365
+ "type": "SHORT_TEXT",
1366
+ "required": false,
1367
+ "description": "\"idOperacao\"",
1368
+ "displayName": "idOperacao"
1369
+ },
1370
+ "id_do_grupo": {
1371
+ "type": "SHORT_TEXT",
1372
+ "required": false,
1373
+ "description": "",
1374
+ "displayName": "[Esconder] ID do Grupo"
1375
+ },
1376
+ "valor_bruto": {
1377
+ "type": "NUMBER",
1378
+ "required": false,
1379
+ "description": "\"titulos\"\n\"valorBruto\"",
1380
+ "displayName": "Valor bruto"
1381
+ },
1382
+ "vencimentoo": {
1383
+ "type": "SHORT_TEXT",
1384
+ "required": false,
1385
+ "description": "\"titulos\"\n\"vencimento\"",
1386
+ "displayName": "Vencimento"
1387
+ },
1388
+ "classifica_o": {
1389
+ "type": "SHORT_TEXT",
1390
+ "required": false,
1391
+ "description": "esta puxando a informação do campo \"status/classificação\"",
1392
+ "displayName": "[Esconder] Classificação"
1393
+ },
1394
+ "nf_pdf_e_xml": {
1395
+ "type": "ARRAY",
1396
+ "required": false,
1397
+ "description": "consultar o \"nfXmlBase64\" no barramento e retornar o pdf",
1398
+ "displayName": "NF (PDF)"
1399
+ },
1400
+ "cidade_origem": {
1401
+ "type": "SHORT_TEXT",
1402
+ "required": false,
1403
+ "description": "⚙️ informação extraída do \"nfXmlBase64\"",
1404
+ "displayName": "Cidade - Origem"
1405
+ },
1406
+ "empresacodigo": {
1407
+ "type": "SHORT_TEXT",
1408
+ "required": false,
1409
+ "description": "\"empresaCodigo\"",
1410
+ "displayName": "empresaCodigo"
1411
+ },
1412
+ "estado_origem": {
1413
+ "type": "SHORT_TEXT",
1414
+ "required": false,
1415
+ "description": "⚙️ informação extraída do \"nfXmlBase64\"",
1416
+ "displayName": "Estado - Origem"
1417
+ },
1418
+ "valor_l_quido": {
1419
+ "type": "NUMBER",
1420
+ "required": false,
1421
+ "description": "\"titulos\"\n\"valorLiquido\"",
1422
+ "displayName": "Valor líquido"
1423
+ },
1424
+ "cidade_destino": {
1425
+ "type": "SHORT_TEXT",
1426
+ "required": false,
1427
+ "description": "⚙️ informação extraída do \"nfXmlBase64\"",
1428
+ "displayName": "Cidade - Destino"
1429
+ },
1430
+ "estado_destino": {
1431
+ "type": "SHORT_TEXT",
1432
+ "required": false,
1433
+ "description": "informação extraída do \"nfXmlBase64\"",
1434
+ "displayName": "Estado - Destino"
1435
+ },
1436
+ "link_do_boleto": {
1437
+ "type": "LONG_TEXT",
1438
+ "required": false,
1439
+ "description": "\"titulos\"\n\"linkBoleto\"\n(precisa do cnpj do sacado para abrir)",
1440
+ "displayName": "Link do boleto"
1441
+ },
1442
+ "valor_passagem": {
1443
+ "type": "SHORT_TEXT",
1444
+ "required": false,
1445
+ "description": "0 -> Se não for encontrada as palavras CT-e e\n1 -> Se for encontrada as palavras CT-e e",
1446
+ "displayName": "Valor passagem"
1447
+ },
1448
+ "data_da_opera_o": {
1449
+ "type": "SHORT_TEXT",
1450
+ "required": false,
1451
+ "description": "\"dataOperacao\"",
1452
+ "displayName": "Data da operação"
1453
+ },
1454
+ "status_banc_rio": {
1455
+ "type": "SHORT_TEXT",
1456
+ "required": false,
1457
+ "description": "\"titulos\"\n\"statusBancario\"\n⚙️ Quando for atualizado para \"LIQUIDADO\" mover para concluído",
1458
+ "displayName": "Status bancário"
1459
+ },
1460
+ "retorno_banc_rio": {
1461
+ "type": "SHORT_TEXT",
1462
+ "required": false,
1463
+ "description": "\"retornosBancarios\"",
1464
+ "displayName": "Retorno Bancário"
1465
+ },
1466
+ "valida_o_da_nf_1": {
1467
+ "type": "STATIC_DROPDOWN",
1468
+ "options": {
1469
+ "options": [],
1470
+ "disabled": false
1471
+ },
1472
+ "required": false,
1473
+ "description": "👤 Preenchido pela operação",
1474
+ "displayName": "Validação da NF"
1475
+ },
1476
+ "nfe_monitoramento": {
1477
+ "type": "SHORT_TEXT",
1478
+ "required": false,
1479
+ "description": "\"nfeMonitoramento\"",
1480
+ "displayName": "Nfe Monitoramento"
1481
+ },
1482
+ "analistareponsavel": {
1483
+ "type": "SHORT_TEXT",
1484
+ "required": false,
1485
+ "description": "\"titulos\"\n\"analistaResponsavel\"",
1486
+ "displayName": "analistaReponsavel"
1487
+ },
1488
+ "aux_id_responsavel": {
1489
+ "type": "SHORT_TEXT",
1490
+ "required": false,
1491
+ "description": "",
1492
+ "displayName": "[Esconder] aux_id_responsavel"
1493
+ },
1494
+ "valor_com_desconto": {
1495
+ "type": "NUMBER",
1496
+ "required": false,
1497
+ "description": "\"titulos\"\n\"valorComDesconto\"",
1498
+ "displayName": "Valor com desconto"
1499
+ },
1500
+ "data_do_faturamento": {
1501
+ "type": "SHORT_TEXT",
1502
+ "required": false,
1503
+ "description": "\"titulos\"\n\"dataFaturamento\"",
1504
+ "displayName": "Data do faturamento"
1505
+ },
1506
+ "status_classifica_o": {
1507
+ "type": "SHORT_TEXT",
1508
+ "required": false,
1509
+ "description": "\"titulos\"\n\"status\"\n\"classificacao\"",
1510
+ "displayName": "Status/Classificação"
1511
+ },
1512
+ "analista_respons_vel": {
1513
+ "type": "STATIC_MULTI_SELECT_DROPDOWN",
1514
+ "options": {
1515
+ "options": [],
1516
+ "disabled": false
1517
+ },
1518
+ "required": false,
1519
+ "description": "\"titulos\"\n\"analistaResponsavel\"\npegar a informação do pipe de cedente\n\n(outra integração sendo feita. alteração em massa)",
1520
+ "displayName": "Analista responsável"
1521
+ },
1522
+ "id_t_tulo_barramento": {
1523
+ "type": "SHORT_TEXT",
1524
+ "required": false,
1525
+ "description": "\"titulos\"\n\"numeroTitulo\"",
1526
+ "displayName": "ID Título (Barramento)"
1527
+ },
1528
+ "data_de_reagendamentoo": {
1529
+ "type": "SHORT_TEXT",
1530
+ "required": false,
1531
+ "description": "⚙️ Preenchido quando um acompanhamento é criado",
1532
+ "displayName": "Data de reagendamento"
1533
+ },
1534
+ "c_digo_e_descri_o_do_idg": {
1535
+ "type": "LONG_TEXT",
1536
+ "required": false,
1537
+ "description": "\"titulos\"\n\"idg\" & \"idgDesc\"",
1538
+ "displayName": "Código e descrição do IDG"
1539
+ },
1540
+ "documento_numero_da_nota": {
1541
+ "type": "SHORT_TEXT",
1542
+ "required": false,
1543
+ "description": "\"documento\" = número da nota",
1544
+ "displayName": "Número da nota (documento)"
1545
+ },
1546
+ "prioridade_da_checagem_1": {
1547
+ "type": "STATIC_MULTI_SELECT_DROPDOWN",
1548
+ "options": {
1549
+ "options": [],
1550
+ "disabled": false
1551
+ },
1552
+ "required": false,
1553
+ "description": "👤 Preenchido pela operação",
1554
+ "displayName": "Prioridade da checagem"
1555
+ },
1556
+ "confer_ncia_entre_nf_e_informa_es_do_t_tulo_automa_o": {
1557
+ "type": "LONG_TEXT",
1558
+ "required": false,
1559
+ "description": "",
1560
+ "displayName": "[Esconder] Conferência entre NF e informações do título"
1561
+ }
1562
+ }
1563
+ },
1564
+ "organizationId": {
1565
+ "type": "MANUAL"
1566
+ }
1567
+ },
1568
+ "errorHandlingOptions": {
1569
+ "retryOnFailure": {
1570
+ "value": false
1571
+ },
1572
+ "continueOnFailure": {
1573
+ "value": false
1574
+ }
1575
+ }
1576
+ },
1577
+ "displayName": "Origem e Destino",
1578
+ "lastUpdatedDate": "2026-08-24T14:22:53.460Z"
1579
+ },
1580
+ "displayName": "XML to JSON",
1581
+ "lastUpdatedDate": "2026-08-24T14:22:53.460Z"
1582
+ },
1583
+ "displayName": "[1/1 MAIN][DANFE] Consulta",
1584
+ "lastUpdatedDate": "2026-08-24T14:22:53.459Z"
1585
+ },
1586
+ "displayName": "Read File",
1587
+ "lastUpdatedDate": "2026-08-24T14:22:53.459Z"
1588
+ },
1589
+ null
1590
+ ],
1591
+ "settings": {
1592
+ "branches": [
1593
+ {
1594
+ "branchName": "Existe",
1595
+ "branchType": "CONDITION",
1596
+ "conditions": [
1597
+ [
1598
+ {
1599
+ "operator": "EXISTS",
1600
+ "firstValue": "{{step_1['output']['item']['nfXmlBase64']}}"
1601
+ }
1602
+ ]
1603
+ ]
1604
+ },
1605
+ {
1606
+ "branchName": "Otherwise",
1607
+ "branchType": "FALLBACK"
1608
+ }
1609
+ ],
1610
+ "sampleData": {},
1611
+ "executionType": "EXECUTE_FIRST_MATCH"
1612
+ },
1613
+ "nextAction": {
1614
+ "name": "step_10",
1615
+ "skip": false,
1616
+ "type": "CODE",
1617
+ "valid": true,
1618
+ "settings": {
1619
+ "input": {
1620
+ "sacado": "{{step_1['output']['item']['sacado']}}",
1621
+ "cedente": "{{step_1['output']['item']['cedente']}}"
1622
+ },
1623
+ "sampleData": {},
1624
+ "sourceCode": {
1625
+ "code": "export const code = async (inputs) => {\n const sacado = inputs.sacado || {};\n const cedente = inputs.cedente || {};\n\n // Considera \"preenchido\" qualquer valor que não seja:\n // string vazia, null, undefined, 0, false\n const temValor = (v) => {\n if (v === null || v === undefined) return false;\n if (typeof v === 'string') return v.trim() !== '';\n if (typeof v === 'number') return v !== 0;\n if (typeof v === 'boolean') return v === true;\n return true;\n };\n\n // Objeto é \"completo\" se PELO MENOS UM campo tem valor\n const temAlgumCampoPreenchido = (obj) =>\n Object.values(obj).some(temValor);\n\n return {\n sacadoCompleto: temAlgumCampoPreenchido(sacado),\n cedenteCompleto: temAlgumCampoPreenchido(cedente),\n };\n};",
1626
+ "packageJson": "{}"
1627
+ },
1628
+ "errorHandlingOptions": {
1629
+ "retryOnFailure": {
1630
+ "value": false
1631
+ },
1632
+ "continueOnFailure": {
1633
+ "value": false
1634
+ }
1635
+ }
1636
+ },
1637
+ "nextAction": {
1638
+ "name": "step_9",
1639
+ "skip": false,
1640
+ "type": "ROUTER",
1641
+ "valid": true,
1642
+ "children": [
1643
+ {
1644
+ "name": "step_11",
1645
+ "skip": false,
1646
+ "type": "PIECE",
1647
+ "valid": true,
1648
+ "settings": {
1649
+ "input": {
1650
+ "flow": {
1651
+ "externalId": "exampleFlowId11aaaaaa",
1652
+ "exampleData": {
1653
+ "sampleData": {
1654
+ "origem": "example",
1655
+ "cedente": {
1656
+ "nome": "example",
1657
+ "email": "example",
1658
+ "endereco": "example",
1659
+ "cnpjOuCpf": "example",
1660
+ "idCedente": 0,
1661
+ "dataCadastro": "example",
1662
+ "codigoEmpresa": 0,
1663
+ "telefoneContato": "example",
1664
+ "idGrupoPrincipal": 0,
1665
+ "analistaResponsavel": "example",
1666
+ "vinculoGrupoEconomico": false
1667
+ },
1668
+ "cardIdTitulo": "example",
1669
+ "empresaCodigo": 0
1670
+ }
1671
+ }
1672
+ },
1673
+ "mode": "simple",
1674
+ "flowProps": {
1675
+ "payload": {
1676
+ "origem": "{{trigger['output']['data']['operacao']['origem']}}",
1677
+ "cedente": "{{step_1['output']['item']['cedente']}}",
1678
+ "cardIdTitulo": "{{step_6['output']['data']['createCard']['card']['id']}}",
1679
+ "empresaCodigo": "{{step_1['output']['item']['empresaCodigo']}}"
1680
+ }
1681
+ },
1682
+ "waitForResponse": true
1683
+ },
1684
+ "pieceName": "@activepieces/piece-subflows",
1685
+ "actionName": "callFlow",
1686
+ "sampleData": {},
1687
+ "pieceVersion": "0.4.12",
1688
+ "propertySettings": {
1689
+ "flow": {
1690
+ "type": "MANUAL"
1691
+ },
1692
+ "mode": {
1693
+ "type": "MANUAL"
1694
+ },
1695
+ "flowProps": {
1696
+ "type": "MANUAL",
1697
+ "schema": {
1698
+ "payload": {
1699
+ "type": "OBJECT",
1700
+ "required": true,
1701
+ "displayName": "Payload",
1702
+ "defaultValue": {
1703
+ "origem": "example",
1704
+ "cedente": {
1705
+ "nome": "example",
1706
+ "email": "example",
1707
+ "endereco": "example",
1708
+ "cnpjOuCpf": "example",
1709
+ "idCedente": 0,
1710
+ "dataCadastro": "example",
1711
+ "codigoEmpresa": 0,
1712
+ "telefoneContato": "example",
1713
+ "idGrupoPrincipal": 0,
1714
+ "analistaResponsavel": "example",
1715
+ "vinculoGrupoEconomico": false
1716
+ },
1717
+ "cardIdTitulo": "example",
1718
+ "empresaCodigo": 0
1719
+ }
1720
+ }
1721
+ }
1722
+ },
1723
+ "waitForResponse": {
1724
+ "type": "MANUAL"
1725
+ }
1726
+ },
1727
+ "errorHandlingOptions": {
1728
+ "retryOnFailure": {
1729
+ "value": false
1730
+ },
1731
+ "continueOnFailure": {
1732
+ "value": false
1733
+ }
1734
+ }
1735
+ },
1736
+ "nextAction": {
1737
+ "name": "step_7",
1738
+ "skip": false,
1739
+ "type": "ROUTER",
1740
+ "valid": true,
1741
+ "children": [
1742
+ {
1743
+ "name": "step_8",
1744
+ "skip": false,
1745
+ "type": "PIECE",
1746
+ "valid": true,
1747
+ "settings": {
1748
+ "input": {
1749
+ "auth": "{{connections['exampleConnectionId3']}}",
1750
+ "nodeId": "{{step_6['output']['data']['createCard']['card']['id']}}",
1751
+ "fieldId": "cedente",
1752
+ "operation": "ADD",
1753
+ "fieldValue": "{{step_11['output']['data']['cardId']}}"
1754
+ },
1755
+ "pieceName": "@activepieces/piece-pipefy",
1756
+ "actionName": "updateListField",
1757
+ "sampleData": {},
1758
+ "pieceVersion": "0.1.7",
1759
+ "propertySettings": {
1760
+ "nodeId": {
1761
+ "type": "MANUAL"
1762
+ },
1763
+ "fieldId": {
1764
+ "type": "MANUAL"
1765
+ },
1766
+ "operation": {
1767
+ "type": "MANUAL"
1768
+ },
1769
+ "fieldValue": {
1770
+ "type": "MANUAL"
1771
+ }
1772
+ },
1773
+ "errorHandlingOptions": {
1774
+ "retryOnFailure": {
1775
+ "value": false
1776
+ },
1777
+ "continueOnFailure": {
1778
+ "value": false
1779
+ }
1780
+ }
1781
+ },
1782
+ "displayName": "Update items in list type fields",
1783
+ "lastUpdatedDate": "2026-08-24T14:22:53.464Z"
1784
+ },
1785
+ null
1786
+ ],
1787
+ "settings": {
1788
+ "branches": [
1789
+ {
1790
+ "branchName": "Criado",
1791
+ "branchType": "CONDITION",
1792
+ "conditions": [
1793
+ [
1794
+ {
1795
+ "operator": "EXISTS",
1796
+ "firstValue": "{{step_11['output']['data']['cardId']}}"
1797
+ }
1798
+ ]
1799
+ ]
1800
+ },
1801
+ {
1802
+ "branchName": "Otherwise",
1803
+ "branchType": "FALLBACK"
1804
+ }
1805
+ ],
1806
+ "sampleData": {},
1807
+ "executionType": "EXECUTE_FIRST_MATCH"
1808
+ },
1809
+ "displayName": "Cedente",
1810
+ "lastUpdatedDate": "2026-08-24T14:22:53.463Z"
1811
+ },
1812
+ "displayName": "[4/4 SUBFLOW][CRIAÇÃO] CEDENTE",
1813
+ "lastUpdatedDate": "2026-08-24T14:22:53.462Z"
1814
+ },
1815
+ {
1816
+ "name": "step_12",
1817
+ "skip": false,
1818
+ "type": "PIECE",
1819
+ "valid": true,
1820
+ "settings": {
1821
+ "input": {
1822
+ "flow": {
1823
+ "externalId": "exampleFlowId12aaaaaa",
1824
+ "exampleData": {
1825
+ "sampleData": {
1826
+ "origem": "example",
1827
+ "sacado": {
1828
+ "nome": "example",
1829
+ "email": "example",
1830
+ "endereco": "example",
1831
+ "idSacado": 0,
1832
+ "percHNeg": {
1833
+ "totQtd": 0,
1834
+ "totSac": 0,
1835
+ "totNegativa": 0
1836
+ },
1837
+ "percHPre": {
1838
+ "totQtd": 0,
1839
+ "totSac": 0,
1840
+ "totPresente": 0
1841
+ },
1842
+ "cnpjOuCpf": "example",
1843
+ "idCedente": 0,
1844
+ "razaoSocial": "example",
1845
+ "nomeFantasia": "example",
1846
+ "codigoEmpresa": 0,
1847
+ "telefoneContato": "example",
1848
+ "liquidacaoPorEvento": [
1849
+ {
1850
+ "descricao": "example",
1851
+ "codigoEvento": 0,
1852
+ "totalLiquidado": 0,
1853
+ "quantidadeTitulos": 0
1854
+ }
1855
+ ],
1856
+ "historicoValorAberto": {
1857
+ "totalTitulosAbertos": 0,
1858
+ "totalTitulosAbertosQtd": 0,
1859
+ "totalTitulosAbertosVencer": 0,
1860
+ "totalTitulosAbertosVencidos": 0,
1861
+ "totalTitulosAbertosVencerQtd": 0,
1862
+ "totalTitulosAbertosVencidosQtd": 0
1863
+ },
1864
+ "historicoValorLiquidado": {
1865
+ "totalOpeNaoEfetivadas": 0,
1866
+ "totalTitulosLiquidados": 0,
1867
+ "totalOpeNaoEfetivadasQtd": 0,
1868
+ "totalTitulosLiquidadosQtd": 0,
1869
+ "totalTitulosLiquidadosPagoDia": 0,
1870
+ "totalTitulosLiquidadosPagoAtraso": 0,
1871
+ "totalTitulosLiquidadosPagoDiaQtd": 0,
1872
+ "totalTitulosLiquidadosPagoAtrasoQtd": 0,
1873
+ "totalTitulosLiquidadosChequeDevolvido": 0,
1874
+ "totalTitulosLiquidadosChequeDevolvidoQtd": 0
1875
+ }
1876
+ },
1877
+ "cardIdTitulo": "example",
1878
+ "empresaCodigo": 0
1879
+ }
1880
+ }
1881
+ },
1882
+ "mode": "simple",
1883
+ "flowProps": {
1884
+ "payload": {
1885
+ "origem": "{{trigger['output']['data']['operacao']['origem']}}",
1886
+ "sacado": "{{step_1['output']['item']['sacado']}}",
1887
+ "cardIdTitulo": "{{step_6['output']['data']['createCard']['card']['id']}}",
1888
+ "empresaCodigo": "{{step_1['output']['item']['empresaCodigo']}}"
1889
+ }
1890
+ },
1891
+ "waitForResponse": true
1892
+ },
1893
+ "pieceName": "@activepieces/piece-subflows",
1894
+ "actionName": "callFlow",
1895
+ "sampleData": {},
1896
+ "pieceVersion": "0.4.12",
1897
+ "propertySettings": {
1898
+ "flow": {
1899
+ "type": "MANUAL"
1900
+ },
1901
+ "mode": {
1902
+ "type": "MANUAL"
1903
+ },
1904
+ "flowProps": {
1905
+ "type": "MANUAL",
1906
+ "schema": {
1907
+ "payload": {
1908
+ "type": "OBJECT",
1909
+ "required": true,
1910
+ "displayName": "Payload",
1911
+ "defaultValue": {
1912
+ "origem": "example",
1913
+ "sacado": {
1914
+ "nome": "example",
1915
+ "email": "example",
1916
+ "endereco": "example",
1917
+ "idSacado": 0,
1918
+ "percHNeg": {
1919
+ "totQtd": 0,
1920
+ "totSac": 0,
1921
+ "totNegativa": 0
1922
+ },
1923
+ "percHPre": {
1924
+ "totQtd": 0,
1925
+ "totSac": 0,
1926
+ "totPresente": 0
1927
+ },
1928
+ "cnpjOuCpf": "example",
1929
+ "idCedente": 0,
1930
+ "indicadores": "example",
1931
+ "razaoSocial": "example",
1932
+ "nomeFantasia": "example",
1933
+ "codigoEmpresa": 0,
1934
+ "telefoneContato": "example",
1935
+ "liquidacaoPorEvento": [
1936
+ {
1937
+ "descricao": "example",
1938
+ "codigoEvento": 0,
1939
+ "totalLiquidado": 0,
1940
+ "quantidadeTitulos": 0
1941
+ }
1942
+ ],
1943
+ "historicoValorAberto": {
1944
+ "totalTitulosAbertos": 0,
1945
+ "totalTitulosAbertosQtd": 0,
1946
+ "totalTitulosAbertosVencer": 0,
1947
+ "totalTitulosAbertosVencidos": 0,
1948
+ "totalTitulosAbertosVencerQtd": 0,
1949
+ "totalTitulosAbertosVencidosQtd": 0
1950
+ },
1951
+ "historicoValorLiquidado": {
1952
+ "totalOpeNaoEfetivadas": 0,
1953
+ "totalTitulosLiquidados": 0,
1954
+ "totalOpeNaoEfetivadasQtd": 0,
1955
+ "totalTitulosLiquidadosQtd": 0,
1956
+ "totalTitulosLiquidadosPagoDia": 0,
1957
+ "totalTitulosLiquidadosPagoAtraso": 0,
1958
+ "totalTitulosLiquidadosPagoDiaQtd": 0,
1959
+ "totalTitulosLiquidadosPagoAtrasoQtd": 0,
1960
+ "totalTitulosLiquidadosChequeDevolvido": 0,
1961
+ "totalTitulosLiquidadosChequeDevolvidoQtd": 0
1962
+ }
1963
+ },
1964
+ "cardIdTitulo": "example",
1965
+ "empresaCodigo": 0
1966
+ }
1967
+ }
1968
+ }
1969
+ },
1970
+ "waitForResponse": {
1971
+ "type": "MANUAL"
1972
+ }
1973
+ },
1974
+ "errorHandlingOptions": {
1975
+ "retryOnFailure": {
1976
+ "value": false
1977
+ },
1978
+ "continueOnFailure": {
1979
+ "value": false
1980
+ }
1981
+ }
1982
+ },
1983
+ "nextAction": {
1984
+ "name": "step_13",
1985
+ "skip": false,
1986
+ "type": "ROUTER",
1987
+ "valid": true,
1988
+ "children": [
1989
+ {
1990
+ "name": "step_14",
1991
+ "skip": false,
1992
+ "type": "PIECE",
1993
+ "valid": true,
1994
+ "settings": {
1995
+ "input": {
1996
+ "auth": "{{connections['exampleConnectionId3']}}",
1997
+ "nodeId": "{{step_6['output']['data']['createCard']['card']['id']}}",
1998
+ "fieldId": "sacado",
1999
+ "operation": "ADD",
2000
+ "fieldValue": "{{step_12['output']['data']['cardId']}}"
2001
+ },
2002
+ "pieceName": "@activepieces/piece-pipefy",
2003
+ "actionName": "updateListField",
2004
+ "sampleData": {},
2005
+ "pieceVersion": "0.1.7",
2006
+ "propertySettings": {
2007
+ "nodeId": {
2008
+ "type": "MANUAL"
2009
+ },
2010
+ "fieldId": {
2011
+ "type": "MANUAL"
2012
+ },
2013
+ "operation": {
2014
+ "type": "MANUAL"
2015
+ },
2016
+ "fieldValue": {
2017
+ "type": "MANUAL"
2018
+ }
2019
+ },
2020
+ "errorHandlingOptions": {
2021
+ "retryOnFailure": {
2022
+ "value": false
2023
+ },
2024
+ "continueOnFailure": {
2025
+ "value": false
2026
+ }
2027
+ }
2028
+ },
2029
+ "displayName": "Update items in list type fields Copy",
2030
+ "lastUpdatedDate": "2026-08-24T14:22:53.467Z"
2031
+ },
2032
+ null
2033
+ ],
2034
+ "settings": {
2035
+ "branches": [
2036
+ {
2037
+ "branchName": "Criado",
2038
+ "branchType": "CONDITION",
2039
+ "conditions": [
2040
+ [
2041
+ {
2042
+ "operator": "EXISTS",
2043
+ "firstValue": "{{step_12['output']['data']['cardId']}}"
2044
+ }
2045
+ ]
2046
+ ]
2047
+ },
2048
+ {
2049
+ "branchName": "Otherwise",
2050
+ "branchType": "FALLBACK"
2051
+ }
2052
+ ],
2053
+ "sampleData": {},
2054
+ "executionType": "EXECUTE_FIRST_MATCH"
2055
+ },
2056
+ "displayName": "Sacado",
2057
+ "lastUpdatedDate": "2026-08-24T14:22:53.466Z"
2058
+ },
2059
+ "displayName": "[4/4 SUBFLOW][CRIAÇÃO] SACADO",
2060
+ "lastUpdatedDate": "2026-08-24T14:22:53.465Z"
2061
+ },
2062
+ null
2063
+ ],
2064
+ "settings": {
2065
+ "branches": [
2066
+ {
2067
+ "branchName": "CEDENTE",
2068
+ "branchType": "CONDITION",
2069
+ "conditions": [
2070
+ [
2071
+ {
2072
+ "operator": "BOOLEAN_IS_TRUE",
2073
+ "firstValue": "{{step_10['output']['cedenteCompleto']}}"
2074
+ }
2075
+ ]
2076
+ ]
2077
+ },
2078
+ {
2079
+ "branchName": "SACADO",
2080
+ "branchType": "CONDITION",
2081
+ "conditions": [
2082
+ [
2083
+ {
2084
+ "operator": "BOOLEAN_IS_TRUE",
2085
+ "firstValue": "{{step_10['output']['sacadoCompleto']}}"
2086
+ }
2087
+ ]
2088
+ ]
2089
+ },
2090
+ {
2091
+ "branchName": "Otherwise",
2092
+ "branchType": "FALLBACK"
2093
+ }
2094
+ ],
2095
+ "sampleData": {},
2096
+ "executionType": "EXECUTE_ALL_MATCH"
2097
+ },
2098
+ "displayName": "Router",
2099
+ "lastUpdatedDate": "2026-08-24T14:22:53.461Z"
2100
+ },
2101
+ "displayName": "Conferência Cedente e/ou Sacado",
2102
+ "lastUpdatedDate": "2026-08-24T14:22:53.458Z"
2103
+ },
2104
+ "displayName": "Verificação",
2105
+ "lastUpdatedDate": "2026-08-24T14:22:53.458Z"
2106
+ },
2107
+ "displayName": "REMOVE - statusCardId",
2108
+ "lastUpdatedDate": "2026-08-24T14:22:53.456Z"
2109
+ },
2110
+ "displayName": "Iteração documentos",
2111
+ "firstLoopAction": {
2112
+ "name": "step_45",
2113
+ "type": "PIECE",
2114
+ "valid": true,
2115
+ "settings": {
2116
+ "input": {
2117
+ "auth": "{{connections['exampleConnectionId2']}}",
2118
+ "cardId": "1373420997",
2119
+ "fieldId": "documentos",
2120
+ "fileName": "{{step_44['output']['item']['nomeArquivo']}}",
2121
+ "operation": "ADD",
2122
+ "attachment": "{{step_44['output']['item']['linkArquivo']}}"
2123
+ },
2124
+ "pieceName": "@activepieces/piece-pipefy",
2125
+ "actionName": "uploadAttachment",
2126
+ "sampleData": {},
2127
+ "pieceVersion": "0.1.4",
2128
+ "propertySettings": {
2129
+ "cardId": {
2130
+ "type": "MANUAL"
2131
+ },
2132
+ "fieldId": {
2133
+ "type": "MANUAL"
2134
+ },
2135
+ "fileName": {
2136
+ "type": "MANUAL"
2137
+ },
2138
+ "operation": {
2139
+ "type": "MANUAL"
2140
+ },
2141
+ "attachment": {
2142
+ "type": "MANUAL"
2143
+ }
2144
+ },
2145
+ "errorHandlingOptions": {
2146
+ "retryOnFailure": {
2147
+ "value": false
2148
+ },
2149
+ "continueOnFailure": {
2150
+ "value": false
2151
+ }
2152
+ }
2153
+ },
2154
+ "displayName": "Subir documento Copy Copy Copy Copy",
2155
+ "lastUpdatedDate": "2026-08-24T14:23:54.672Z"
2156
+ },
2157
+ "lastUpdatedDate": "2026-08-24T14:22:53.456Z"
2158
+ },
2159
+ "displayName": "[1/1 SUBFLOW][CRIAÇÃO] TÍTULO - AcompanhamentoDeCobranca",
2160
+ "lastUpdatedDate": "2026-08-24T14:22:53.456Z"
2161
+ },
2162
+ "displayName": "[1/1 SUBFLOW][CRIAÇÃO] TÍTULO - RETORNO BANCÁRIO",
2163
+ "lastUpdatedDate": "2026-08-24T14:22:53.455Z"
2164
+ },
2165
+ "displayName": "[1/1 SUBFLOW][CRIAÇÃO] TÍTULO - NFE MONITORAMENTO",
2166
+ "lastUpdatedDate": "2026-08-24T14:22:53.455Z"
2167
+ },
2168
+ "displayName": "CRIAR TÍTULO",
2169
+ "lastUpdatedDate": "2026-08-24T14:22:53.455Z"
2170
+ },
2171
+ "displayName": "Normalizar campos Objetos",
2172
+ "lastUpdatedDate": "2026-08-24T14:22:53.454Z"
2173
+ },
2174
+ "displayName": "Match Status e Classificação",
2175
+ "lastUpdatedDate": "2026-08-24T14:22:53.454Z"
2176
+ },
2177
+ "displayName": "Buscar Status/Classificação",
2178
+ "lastUpdatedDate": "2026-08-24T14:22:53.454Z"
2179
+ },
2180
+ {
2181
+ "name": "step_30",
2182
+ "skip": false,
2183
+ "type": "PIECE",
2184
+ "valid": true,
2185
+ "settings": {
2186
+ "input": {
2187
+ "auth": "{{connections['exampleConnectionId3']}}",
2188
+ "pipeId": "200000003",
2189
+ "fieldId": "stauts",
2190
+ "fieldValue": "{{step_1['output']['item']['status']}}",
2191
+ "organizationId": "100000001"
2192
+ },
2193
+ "pieceName": "@activepieces/piece-pipefy",
2194
+ "actionName": "getCardsByFieldValue",
2195
+ "sampleData": {},
2196
+ "pieceVersion": "0.1.7",
2197
+ "propertySettings": {
2198
+ "pipeId": {
2199
+ "type": "MANUAL"
2200
+ },
2201
+ "fieldId": {
2202
+ "type": "MANUAL"
2203
+ },
2204
+ "fieldValue": {
2205
+ "type": "MANUAL"
2206
+ },
2207
+ "organizationId": {
2208
+ "type": "MANUAL"
2209
+ }
2210
+ },
2211
+ "errorHandlingOptions": {
2212
+ "retryOnFailure": {
2213
+ "value": false
2214
+ },
2215
+ "continueOnFailure": {
2216
+ "value": false
2217
+ }
2218
+ }
2219
+ },
2220
+ "nextAction": {
2221
+ "name": "step_19",
2222
+ "skip": false,
2223
+ "type": "CODE",
2224
+ "valid": true,
2225
+ "settings": {
2226
+ "input": {
2227
+ "listCards": "{{step_30['output']['data']['cards']}}",
2228
+ "classificacao": "{{step_1['output']['item']['classificacao']}}"
2229
+ },
2230
+ "sampleData": {},
2231
+ "sourceCode": {
2232
+ "code": "export const code = async (inputs) => {\n const cards = inputs.listCards ?? [];\n const target = String(inputs.classificacao ?? \"\").trim().toUpperCase();\n\n const match = cards.find((card) => {\n const value = card?.fields?.classifica_o_1?.value;\n return String(value ?? \"\").trim().toUpperCase() === target;\n });\n\n return {\n found: Boolean(match),\n cardId: match?.id ?? null,\n card: match ?? null\n };\n};",
2233
+ "packageJson": "{}"
2234
+ },
2235
+ "errorHandlingOptions": {
2236
+ "retryOnFailure": {
2237
+ "value": false
2238
+ },
2239
+ "continueOnFailure": {
2240
+ "value": false
2241
+ }
2242
+ }
2243
+ },
2244
+ "nextAction": {
2245
+ "name": "step_16",
2246
+ "skip": false,
2247
+ "type": "PIECE",
2248
+ "valid": true,
2249
+ "settings": {
2250
+ "input": {
2251
+ "auth": "{{connections['exampleConnectionId3']}}",
2252
+ "cardId": "{{step_4['output']['cardId']}}",
2253
+ "pipeId": "200000001",
2254
+ "phaseId": "300000001",
2255
+ "phaseFields": {
2256
+ "documentos": [],
2257
+ "valor_bruto": "{{step_1['output']['item']['valorBruto']}}",
2258
+ "nf_pdf_e_xml": [],
2259
+ "valor_l_quido": "{{step_1['output']['item']['valorLiquido']}}",
2260
+ "valor_passagem": "{{step_1['output']['item']['valorPassagem']}}",
2261
+ "data_da_opera_o": "{{trigger['output']['data']['operacao']['dataOperacao']}}",
2262
+ "status_banc_rio": "{{step_1['output']['item']['statusBancario']}}",
2263
+ "valida_o_da_nf_1": null,
2264
+ "analistareponsavel": "{{step_1['output']['item']['analistaResponsavel']}}",
2265
+ "valor_com_desconto": "{{step_1['output']['item']['valorComDesconto']}}",
2266
+ "data_do_faturamento": "{{step_1['output']['item']['dataFaturamento']}}",
2267
+ "status_classifica_o": "{{step_34['output']}}{{step_30['output']['data']['cards'][0]['id']}}",
2268
+ "analista_respons_vel": [],
2269
+ "prioridade_da_checagem_1": [],
2270
+ "exibir_hist_rico_completo_retorno_banc_rio": [],
2271
+ "exibir_hist_rico_completo_nfe_monitoramento": []
2272
+ },
2273
+ "organizationId": "100000001"
2274
+ },
2275
+ "pieceName": "@activepieces/piece-pipefy",
2276
+ "actionName": "updateCard",
2277
+ "sampleData": {},
2278
+ "pieceVersion": "0.1.7",
2279
+ "propertySettings": {
2280
+ "cardId": {
2281
+ "type": "MANUAL"
2282
+ },
2283
+ "pipeId": {
2284
+ "type": "MANUAL"
2285
+ },
2286
+ "phaseId": {
2287
+ "type": "MANUAL"
2288
+ },
2289
+ "phaseFields": {
2290
+ "type": "MANUAL",
2291
+ "schema": {
2292
+ "idg": {
2293
+ "type": "SHORT_TEXT",
2294
+ "required": false,
2295
+ "description": "\"operação\"\n\"idg\"",
2296
+ "displayName": "IDG"
2297
+ },
2298
+ "base": {
2299
+ "type": "SHORT_TEXT",
2300
+ "required": false,
2301
+ "description": "",
2302
+ "displayName": "Base"
2303
+ },
2304
+ "sacado": {
2305
+ "type": "SHORT_TEXT",
2306
+ "required": false,
2307
+ "description": "\"titulos\"\n\"idUnicoSacado\"",
2308
+ "displayName": "Sacado"
2309
+ },
2310
+ "cedente": {
2311
+ "type": "SHORT_TEXT",
2312
+ "required": false,
2313
+ "description": "\"titulos\"\n\"idUnicoCedente\"",
2314
+ "displayName": "Cedente"
2315
+ },
2316
+ "d_start": {
2317
+ "type": "SHORT_TEXT",
2318
+ "required": false,
2319
+ "description": "⚙️ Do cadastro do Cedente (data de vencimento - D Start)",
2320
+ "displayName": "D Start"
2321
+ },
2322
+ "opera_o": {
2323
+ "type": "SHORT_TEXT",
2324
+ "required": false,
2325
+ "description": "\"titulos\"\n\"idUnicoOperacao\"",
2326
+ "displayName": "Operação"
2327
+ },
2328
+ "despacho": {
2329
+ "type": "SHORT_TEXT",
2330
+ "required": false,
2331
+ "description": "",
2332
+ "displayName": "Despacho"
2333
+ },
2334
+ "eve_nfe_1": {
2335
+ "type": "SHORT_TEXT",
2336
+ "required": false,
2337
+ "description": "\"titulos\"\n\"eveNfe\"",
2338
+ "displayName": "Eve Nfe"
2339
+ },
2340
+ "documentos": {
2341
+ "type": "ARRAY",
2342
+ "required": false,
2343
+ "description": "\"documentos\" listas de URL's",
2344
+ "displayName": "Documentos"
2345
+ },
2346
+ "engatilhar": {
2347
+ "type": "SHORT_TEXT",
2348
+ "required": false,
2349
+ "description": "",
2350
+ "displayName": "engatilhar"
2351
+ },
2352
+ "idoperacao": {
2353
+ "type": "SHORT_TEXT",
2354
+ "required": false,
2355
+ "description": "\"idOperacao\"",
2356
+ "displayName": "idOperacao"
2357
+ },
2358
+ "id_do_grupo": {
2359
+ "type": "SHORT_TEXT",
2360
+ "required": false,
2361
+ "description": "",
2362
+ "displayName": "[Esconder] ID do Grupo"
2363
+ },
2364
+ "valor_bruto": {
2365
+ "type": "NUMBER",
2366
+ "required": false,
2367
+ "description": "\"titulos\"\n\"valorBruto\"",
2368
+ "displayName": "Valor bruto"
2369
+ },
2370
+ "vencimentoo": {
2371
+ "type": "SHORT_TEXT",
2372
+ "required": false,
2373
+ "description": "\"titulos\"\n\"vencimento\"",
2374
+ "displayName": "Vencimento"
2375
+ },
2376
+ "classifica_o": {
2377
+ "type": "SHORT_TEXT",
2378
+ "required": false,
2379
+ "description": "esta puxando a informação do campo \"status/classificação\"",
2380
+ "displayName": "[Esconder] Classificação"
2381
+ },
2382
+ "nf_pdf_e_xml": {
2383
+ "type": "ARRAY",
2384
+ "required": false,
2385
+ "description": "consultar o \"nfXmlBase64\" no barramento e retornar o pdf",
2386
+ "displayName": "NF (PDF)"
2387
+ },
2388
+ "cidade_origem": {
2389
+ "type": "SHORT_TEXT",
2390
+ "required": false,
2391
+ "description": "⚙️ informação extraída do \"nfXmlBase64\"",
2392
+ "displayName": "Cidade - Origem"
2393
+ },
2394
+ "empresacodigo": {
2395
+ "type": "SHORT_TEXT",
2396
+ "required": false,
2397
+ "description": "\"empresaCodigo\"",
2398
+ "displayName": "Fundo operado"
2399
+ },
2400
+ "estado_origem": {
2401
+ "type": "SHORT_TEXT",
2402
+ "required": false,
2403
+ "description": "⚙️ informação extraída do \"nfXmlBase64\"",
2404
+ "displayName": "Estado - Origem"
2405
+ },
2406
+ "valor_l_quido": {
2407
+ "type": "NUMBER",
2408
+ "required": false,
2409
+ "description": "\"titulos\"\n\"valorLiquido\"",
2410
+ "displayName": "Valor líquido"
2411
+ },
2412
+ "cidade_destino": {
2413
+ "type": "SHORT_TEXT",
2414
+ "required": false,
2415
+ "description": "⚙️ informação extraída do \"nfXmlBase64\"",
2416
+ "displayName": "Cidade - Destino"
2417
+ },
2418
+ "estado_destino": {
2419
+ "type": "SHORT_TEXT",
2420
+ "required": false,
2421
+ "description": "informação extraída do \"nfXmlBase64\"",
2422
+ "displayName": "Estado - Destino"
2423
+ },
2424
+ "link_do_boleto": {
2425
+ "type": "LONG_TEXT",
2426
+ "required": false,
2427
+ "description": "\"titulos\"\n\"linkBoleto\"\n(precisa do cnpj do sacado para abrir)",
2428
+ "displayName": "Link do boleto"
2429
+ },
2430
+ "valor_passagem": {
2431
+ "type": "SHORT_TEXT",
2432
+ "required": false,
2433
+ "description": "0 -> Se não for encontrada as palavras CT-e e\n1 -> Se for encontrada as palavras CT-e e",
2434
+ "displayName": "Valor passagem"
2435
+ },
2436
+ "data_da_opera_o": {
2437
+ "type": "SHORT_TEXT",
2438
+ "required": false,
2439
+ "description": "\"dataOperacao\"",
2440
+ "displayName": "Data da operação"
2441
+ },
2442
+ "status_banc_rio": {
2443
+ "type": "SHORT_TEXT",
2444
+ "required": false,
2445
+ "description": "\"titulos\"\n\"statusBancario\"\n⚙️ Quando for atualizado para \"LIQUIDADO\" mover para concluído",
2446
+ "displayName": "Status bancário"
2447
+ },
2448
+ "retorno_banc_rio": {
2449
+ "type": "SHORT_TEXT",
2450
+ "required": false,
2451
+ "description": "\"retornosBancarios\"",
2452
+ "displayName": "Retorno Bancário"
2453
+ },
2454
+ "valida_o_da_nf_1": {
2455
+ "type": "STATIC_DROPDOWN",
2456
+ "options": {
2457
+ "options": [],
2458
+ "disabled": false
2459
+ },
2460
+ "required": false,
2461
+ "description": "👤 Preenchido pela operação",
2462
+ "displayName": "Validação da NF"
2463
+ },
2464
+ "nfe_monitoramento": {
2465
+ "type": "SHORT_TEXT",
2466
+ "required": false,
2467
+ "description": "\"nfeMonitoramento\"",
2468
+ "displayName": "Nfe Monitoramento"
2469
+ },
2470
+ "analistareponsavel": {
2471
+ "type": "SHORT_TEXT",
2472
+ "required": false,
2473
+ "description": "\"titulos\"\n\"analistaResponsavel\"",
2474
+ "displayName": "analistaReponsavel"
2475
+ },
2476
+ "aux_id_responsavel": {
2477
+ "type": "SHORT_TEXT",
2478
+ "required": false,
2479
+ "description": "",
2480
+ "displayName": "[Esconder] aux_id_responsavel"
2481
+ },
2482
+ "valor_com_desconto": {
2483
+ "type": "NUMBER",
2484
+ "required": false,
2485
+ "description": "\"titulos\"\n\"valorComDesconto\"",
2486
+ "displayName": "Valor com desconto"
2487
+ },
2488
+ "data_do_faturamento": {
2489
+ "type": "SHORT_TEXT",
2490
+ "required": false,
2491
+ "description": "\"titulos\"\n\"dataFaturamento\"",
2492
+ "displayName": "Data do faturamento"
2493
+ },
2494
+ "status_classifica_o": {
2495
+ "type": "SHORT_TEXT",
2496
+ "required": false,
2497
+ "description": "\"titulos\"\n\"status\"\n\"classificacao\"",
2498
+ "displayName": "Status/Classificação"
2499
+ },
2500
+ "analista_respons_vel": {
2501
+ "type": "STATIC_MULTI_SELECT_DROPDOWN",
2502
+ "options": {
2503
+ "options": [],
2504
+ "disabled": false
2505
+ },
2506
+ "required": false,
2507
+ "description": "\"titulos\"\n\"analistaResponsavel\"\npegar a informação do pipe de cedente\n\n(outra integração sendo feita. alteração em massa)",
2508
+ "displayName": "Analista responsável"
2509
+ },
2510
+ "id_t_tulo_barramento": {
2511
+ "type": "SHORT_TEXT",
2512
+ "required": false,
2513
+ "description": "\"titulos\"\n\"numeroTitulo\"",
2514
+ "displayName": "ID Título (Barramento)"
2515
+ },
2516
+ "escondido_data_e_hora": {
2517
+ "type": "SHORT_TEXT",
2518
+ "required": false,
2519
+ "description": "",
2520
+ "displayName": "[Escondido] Data e hora "
2521
+ },
2522
+ "data_de_reagendamentoo": {
2523
+ "type": "SHORT_TEXT",
2524
+ "required": false,
2525
+ "description": "⚙️ Preenchido quando um acompanhamento é criado",
2526
+ "displayName": "Data de reagendamento"
2527
+ },
2528
+ "ltimo_retorno_banc_rio": {
2529
+ "type": "SHORT_TEXT",
2530
+ "required": false,
2531
+ "description": "",
2532
+ "displayName": "Último Retorno bancário"
2533
+ },
2534
+ "ltimo_nfe_monitoramento": {
2535
+ "type": "SHORT_TEXT",
2536
+ "required": false,
2537
+ "description": "",
2538
+ "displayName": "Último Nfe monitoramento"
2539
+ },
2540
+ "c_digo_e_descri_o_do_idg": {
2541
+ "type": "LONG_TEXT",
2542
+ "required": false,
2543
+ "description": "\"titulos\"\n\"idg\" & \"idgDesc\"",
2544
+ "displayName": "Código e descrição do IDG"
2545
+ },
2546
+ "documento_numero_da_nota": {
2547
+ "type": "SHORT_TEXT",
2548
+ "required": false,
2549
+ "description": "\"documento\" = número da nota",
2550
+ "displayName": "Número da nota (documento)"
2551
+ },
2552
+ "prioridade_da_checagem_1": {
2553
+ "type": "STATIC_MULTI_SELECT_DROPDOWN",
2554
+ "options": {
2555
+ "options": [],
2556
+ "disabled": false
2557
+ },
2558
+ "required": false,
2559
+ "description": "👤 Preenchido pela operação",
2560
+ "displayName": "Prioridade da checagem"
2561
+ },
2562
+ "acompanhamentos_de_cobran_a": {
2563
+ "type": "SHORT_TEXT",
2564
+ "required": false,
2565
+ "description": "",
2566
+ "displayName": "Acompanhamentos de cobrança"
2567
+ },
2568
+ "exibir_hist_rico_completo_retorno_banc_rio": {
2569
+ "type": "STATIC_MULTI_SELECT_DROPDOWN",
2570
+ "options": {
2571
+ "options": [],
2572
+ "disabled": false
2573
+ },
2574
+ "required": false,
2575
+ "description": "",
2576
+ "displayName": "Exibir histórico completo - Retorno bancário"
2577
+ },
2578
+ "exibir_hist_rico_completo_nfe_monitoramento": {
2579
+ "type": "STATIC_MULTI_SELECT_DROPDOWN",
2580
+ "options": {
2581
+ "options": [],
2582
+ "disabled": false
2583
+ },
2584
+ "required": false,
2585
+ "description": "",
2586
+ "displayName": "Exibir histórico completo - Nfe Monitoramento"
2587
+ },
2588
+ "confer_ncia_entre_nf_e_informa_es_do_t_tulo_automa_o": {
2589
+ "type": "LONG_TEXT",
2590
+ "required": false,
2591
+ "description": "",
2592
+ "displayName": "[Esconder] Conferência entre NF e informações do título"
2593
+ }
2594
+ }
2595
+ },
2596
+ "organizationId": {
2597
+ "type": "MANUAL"
2598
+ }
2599
+ },
2600
+ "errorHandlingOptions": {
2601
+ "retryOnFailure": {
2602
+ "value": false
2603
+ },
2604
+ "continueOnFailure": {
2605
+ "value": false
2606
+ }
2607
+ }
2608
+ },
2609
+ "nextAction": {
2610
+ "name": "step_20",
2611
+ "skip": false,
2612
+ "type": "CODE",
2613
+ "valid": true,
2614
+ "settings": {
2615
+ "input": {
2616
+ "sacado": "{{step_1['output']['item']['sacado']}}",
2617
+ "cedente": "{{step_1['output']['item']['cedente']}}"
2618
+ },
2619
+ "sampleData": {},
2620
+ "sourceCode": {
2621
+ "code": "export const code = async (inputs) => {\n const sacado = inputs.sacado || {};\n const cedente = inputs.cedente || {};\n\n // Considera \"preenchido\" qualquer valor que não seja:\n // string vazia, null, undefined, 0, false\n const temValor = (v) => {\n if (v === null || v === undefined) return false;\n if (typeof v === 'string') return v.trim() !== '';\n if (typeof v === 'number') return v !== 0;\n if (typeof v === 'boolean') return v === true;\n return true;\n };\n\n // Objeto é \"completo\" se PELO MENOS UM campo tem valor\n const temAlgumCampoPreenchido = (obj) =>\n Object.values(obj).some(temValor);\n\n return {\n sacadoCompleto: temAlgumCampoPreenchido(sacado),\n cedenteCompleto: temAlgumCampoPreenchido(cedente),\n };\n};",
2622
+ "packageJson": "{}"
2623
+ },
2624
+ "errorHandlingOptions": {
2625
+ "retryOnFailure": {
2626
+ "value": false
2627
+ },
2628
+ "continueOnFailure": {
2629
+ "value": false
2630
+ }
2631
+ }
2632
+ },
2633
+ "nextAction": {
2634
+ "name": "step_38",
2635
+ "skip": false,
2636
+ "type": "PIECE",
2637
+ "valid": true,
2638
+ "settings": {
2639
+ "input": {
2640
+ "auth": "{{connections['exampleConnectionId3']}}",
2641
+ "cardId": "{{step_4['output']['cardId']}}"
2642
+ },
2643
+ "pieceName": "@activepieces/piece-pipefy",
2644
+ "actionName": "getCardById",
2645
+ "sampleData": {},
2646
+ "pieceVersion": "0.1.9",
2647
+ "propertySettings": {
2648
+ "cardId": {
2649
+ "type": "MANUAL"
2650
+ }
2651
+ },
2652
+ "errorHandlingOptions": {
2653
+ "retryOnFailure": {
2654
+ "value": false
2655
+ },
2656
+ "continueOnFailure": {
2657
+ "value": false
2658
+ }
2659
+ }
2660
+ },
2661
+ "nextAction": {
2662
+ "name": "step_32",
2663
+ "skip": false,
2664
+ "type": "PIECE",
2665
+ "valid": true,
2666
+ "settings": {
2667
+ "input": {
2668
+ "flow": {
2669
+ "externalId": "exampleFlowId13aaaaaa",
2670
+ "exampleData": {
2671
+ "sampleData": {
2672
+ "cardIdTitulo": "example",
2673
+ "nfeMonitoramento": [
2674
+ {
2675
+ "nlmData": "example",
2676
+ "nlmHora": "example",
2677
+ "ernDescricao": "example",
2678
+ "nlmChaveRetorno": "example",
2679
+ "nlmCodigoEventoRetorno": 0,
2680
+ "nlmDescricaoEventoRetorno": "example"
2681
+ },
2682
+ {
2683
+ "nlmData": "example",
2684
+ "nlmHora": "example",
2685
+ "ernDescricao": "example",
2686
+ "nlmChaveRetorno": "example",
2687
+ "nlmCodigoEventoRetorno": 0,
2688
+ "nlmDescricaoEventoRetorno": "example"
2689
+ },
2690
+ {
2691
+ "nlmData": "example",
2692
+ "nlmHora": "example",
2693
+ "ernDescricao": "example",
2694
+ "nlmChaveRetorno": "example",
2695
+ "nlmCodigoEventoRetorno": 0,
2696
+ "nlmDescricaoEventoRetorno": "example"
2697
+ },
2698
+ {
2699
+ "nlmData": "example",
2700
+ "nlmHora": "example",
2701
+ "ernDescricao": "example",
2702
+ "nlmChaveRetorno": "example",
2703
+ "nlmCodigoEventoRetorno": 0,
2704
+ "nlmDescricaoEventoRetorno": "example"
2705
+ },
2706
+ {
2707
+ "nlmData": "example",
2708
+ "nlmHora": "example",
2709
+ "ernDescricao": "example",
2710
+ "nlmChaveRetorno": "example",
2711
+ "nlmCodigoEventoRetorno": 0,
2712
+ "nlmDescricaoEventoRetorno": "example"
2713
+ }
2714
+ ]
2715
+ }
2716
+ }
2717
+ },
2718
+ "mode": "simple",
2719
+ "flowProps": {
2720
+ "payload": {
2721
+ "cardIdTitulo": "{{step_4['output']['cardId']}}",
2722
+ "nfeMonitoramento": "{{step_1['output']['item']['nfeMonitoramento']}}"
2723
+ }
2724
+ },
2725
+ "waitForResponse": true
2726
+ },
2727
+ "pieceName": "@activepieces/piece-subflows",
2728
+ "actionName": "callFlow",
2729
+ "sampleData": {},
2730
+ "pieceVersion": "0.4.15",
2731
+ "propertySettings": {
2732
+ "flow": {
2733
+ "type": "MANUAL"
2734
+ },
2735
+ "mode": {
2736
+ "type": "MANUAL"
2737
+ },
2738
+ "flowProps": {
2739
+ "type": "MANUAL",
2740
+ "schema": {
2741
+ "payload": {
2742
+ "type": "OBJECT",
2743
+ "required": true,
2744
+ "displayName": "Payload",
2745
+ "defaultValue": {
2746
+ "cardIdTitulo": "example",
2747
+ "nfeMonitoramento": [
2748
+ {
2749
+ "nlmData": "example",
2750
+ "nlmHora": "example",
2751
+ "ernDescricao": "example",
2752
+ "nlmChaveRetorno": "example",
2753
+ "nlmCodigoEventoRetorno": 0,
2754
+ "nlmDescricaoEventoRetorno": "example"
2755
+ },
2756
+ {
2757
+ "nlmData": "example",
2758
+ "nlmHora": "example",
2759
+ "ernDescricao": "example",
2760
+ "nlmChaveRetorno": "example",
2761
+ "nlmCodigoEventoRetorno": 0,
2762
+ "nlmDescricaoEventoRetorno": "example"
2763
+ },
2764
+ {
2765
+ "nlmData": "example",
2766
+ "nlmHora": "example",
2767
+ "ernDescricao": "example",
2768
+ "nlmChaveRetorno": "example",
2769
+ "nlmCodigoEventoRetorno": 0,
2770
+ "nlmDescricaoEventoRetorno": "example"
2771
+ },
2772
+ {
2773
+ "nlmData": "example",
2774
+ "nlmHora": "example",
2775
+ "ernDescricao": "example",
2776
+ "nlmChaveRetorno": "example",
2777
+ "nlmCodigoEventoRetorno": 0,
2778
+ "nlmDescricaoEventoRetorno": "example"
2779
+ },
2780
+ {
2781
+ "nlmData": "example",
2782
+ "nlmHora": "example",
2783
+ "ernDescricao": "example",
2784
+ "nlmChaveRetorno": "example",
2785
+ "nlmCodigoEventoRetorno": 0,
2786
+ "nlmDescricaoEventoRetorno": "example"
2787
+ }
2788
+ ]
2789
+ }
2790
+ }
2791
+ }
2792
+ },
2793
+ "waitForResponse": {
2794
+ "type": "MANUAL"
2795
+ }
2796
+ },
2797
+ "errorHandlingOptions": {
2798
+ "retryOnFailure": {
2799
+ "value": false
2800
+ },
2801
+ "continueOnFailure": {
2802
+ "value": false
2803
+ }
2804
+ }
2805
+ },
2806
+ "nextAction": {
2807
+ "name": "step_33",
2808
+ "skip": false,
2809
+ "type": "PIECE",
2810
+ "valid": true,
2811
+ "settings": {
2812
+ "input": {
2813
+ "flow": {
2814
+ "externalId": "exampleFlowId10aaaaaa",
2815
+ "exampleData": {
2816
+ "sampleData": {
2817
+ "cardIdTitulo": "example",
2818
+ "acompanhamentoDeCobranca": [
2819
+ {
2820
+ "id": "example",
2821
+ "valor": 0,
2822
+ "evento": "example",
2823
+ "movData": "example",
2824
+ "empCodigo": 0,
2825
+ "movCodigo": "example",
2826
+ "movOrigem": "example",
2827
+ "movUsuario": "example",
2828
+ "dataPContato": "example",
2829
+ "movDescricao": "example",
2830
+ "movIdentificaOrigem": "example"
2831
+ },
2832
+ {
2833
+ "id": "example",
2834
+ "valor": 0,
2835
+ "evento": "example",
2836
+ "movData": "example",
2837
+ "empCodigo": 0,
2838
+ "movCodigo": "example",
2839
+ "movOrigem": "example",
2840
+ "movUsuario": "example",
2841
+ "dataPContato": "example",
2842
+ "movDescricao": "example",
2843
+ "movIdentificaOrigem": "example"
2844
+ }
2845
+ ]
2846
+ }
2847
+ }
2848
+ },
2849
+ "mode": "simple",
2850
+ "flowProps": {
2851
+ "payload": {
2852
+ "cardIdTitulo": "{{step_4['output']['cardId']}}",
2853
+ "acompanhamentoDeCobranca": "{{step_1['output']['item']['acompanhamentoDeCobranca']}}"
2854
+ }
2855
+ },
2856
+ "waitForResponse": false
2857
+ },
2858
+ "pieceName": "@activepieces/piece-subflows",
2859
+ "actionName": "callFlow",
2860
+ "sampleData": {},
2861
+ "pieceVersion": "0.4.15",
2862
+ "propertySettings": {
2863
+ "flow": {
2864
+ "type": "MANUAL"
2865
+ },
2866
+ "mode": {
2867
+ "type": "MANUAL"
2868
+ },
2869
+ "flowProps": {
2870
+ "type": "MANUAL",
2871
+ "schema": {
2872
+ "payload": {
2873
+ "type": "OBJECT",
2874
+ "required": true,
2875
+ "displayName": "Payload",
2876
+ "defaultValue": {
2877
+ "cardIdTitulo": "example",
2878
+ "acompanhamentoDeCobranca": [
2879
+ {
2880
+ "id": "example",
2881
+ "valor": 0,
2882
+ "evento": "example",
2883
+ "movData": "example",
2884
+ "empCodigo": 0,
2885
+ "movCodigo": "example",
2886
+ "movOrigem": "example",
2887
+ "movUsuario": "example",
2888
+ "dataPContato": "example",
2889
+ "movDescricao": "example",
2890
+ "movIdentificaOrigem": "example"
2891
+ },
2892
+ {
2893
+ "id": "example",
2894
+ "valor": 0,
2895
+ "evento": "example",
2896
+ "movData": "example",
2897
+ "empCodigo": 0,
2898
+ "movCodigo": "example",
2899
+ "movOrigem": "example",
2900
+ "movUsuario": "example",
2901
+ "dataPContato": "example",
2902
+ "movDescricao": "example",
2903
+ "movIdentificaOrigem": "example"
2904
+ }
2905
+ ]
2906
+ }
2907
+ }
2908
+ }
2909
+ },
2910
+ "waitForResponse": {
2911
+ "type": "MANUAL"
2912
+ }
2913
+ },
2914
+ "errorHandlingOptions": {
2915
+ "retryOnFailure": {
2916
+ "value": false
2917
+ },
2918
+ "continueOnFailure": {
2919
+ "value": false
2920
+ }
2921
+ }
2922
+ },
2923
+ "nextAction": {
2924
+ "name": "step_21",
2925
+ "skip": false,
2926
+ "type": "ROUTER",
2927
+ "valid": true,
2928
+ "children": [
2929
+ {
2930
+ "name": "step_22",
2931
+ "skip": false,
2932
+ "type": "PIECE",
2933
+ "valid": true,
2934
+ "settings": {
2935
+ "input": {
2936
+ "flow": {
2937
+ "externalId": "exampleFlowId11aaaaaa",
2938
+ "exampleData": {
2939
+ "sampleData": {
2940
+ "origem": "example",
2941
+ "cedente": {
2942
+ "nome": "example",
2943
+ "email": "example",
2944
+ "endereco": "example",
2945
+ "cnpjOuCpf": "example",
2946
+ "idCedente": 0,
2947
+ "dataCadastro": "example",
2948
+ "codigoEmpresa": 0,
2949
+ "telefoneContato": "example",
2950
+ "idGrupoPrincipal": 0,
2951
+ "analistaResponsavel": "example",
2952
+ "vinculoGrupoEconomico": false
2953
+ },
2954
+ "cardIdTitulo": "example",
2955
+ "empresaCodigo": 0
2956
+ }
2957
+ }
2958
+ },
2959
+ "mode": "simple",
2960
+ "flowProps": {
2961
+ "payload": {
2962
+ "origem": "{{trigger['output']['data']['operacao']['origem']}}",
2963
+ "cedente": "{{step_1['output']['item']['cedente']}}",
2964
+ "cardIdTitulo": "{{step_4['output']['cardId']}}",
2965
+ "empresaCodigo": "{{step_1['output']['item']['empresaCodigo']}}"
2966
+ }
2967
+ },
2968
+ "waitForResponse": true
2969
+ },
2970
+ "pieceName": "@activepieces/piece-subflows",
2971
+ "actionName": "callFlow",
2972
+ "sampleData": {},
2973
+ "pieceVersion": "0.4.12",
2974
+ "propertySettings": {
2975
+ "flow": {
2976
+ "type": "MANUAL"
2977
+ },
2978
+ "mode": {
2979
+ "type": "MANUAL"
2980
+ },
2981
+ "flowProps": {
2982
+ "type": "MANUAL",
2983
+ "schema": {
2984
+ "payload": {
2985
+ "type": "OBJECT",
2986
+ "required": true,
2987
+ "displayName": "Payload",
2988
+ "defaultValue": {
2989
+ "origem": "example",
2990
+ "cedente": {
2991
+ "nome": "example",
2992
+ "email": "example",
2993
+ "endereco": "example",
2994
+ "cnpjOuCpf": "example",
2995
+ "idCedente": 0,
2996
+ "dataCadastro": "example",
2997
+ "codigoEmpresa": 0,
2998
+ "telefoneContato": "example",
2999
+ "idGrupoPrincipal": 0,
3000
+ "analistaResponsavel": "example",
3001
+ "vinculoGrupoEconomico": false
3002
+ },
3003
+ "cardIdTitulo": "example",
3004
+ "empresaCodigo": 0
3005
+ }
3006
+ }
3007
+ }
3008
+ },
3009
+ "waitForResponse": {
3010
+ "type": "MANUAL"
3011
+ }
3012
+ },
3013
+ "errorHandlingOptions": {
3014
+ "retryOnFailure": {
3015
+ "value": false
3016
+ },
3017
+ "continueOnFailure": {
3018
+ "value": false
3019
+ }
3020
+ }
3021
+ },
3022
+ "nextAction": {
3023
+ "name": "step_27",
3024
+ "skip": false,
3025
+ "type": "ROUTER",
3026
+ "valid": true,
3027
+ "children": [
3028
+ {
3029
+ "name": "step_28",
3030
+ "skip": false,
3031
+ "type": "PIECE",
3032
+ "valid": true,
3033
+ "settings": {
3034
+ "input": {
3035
+ "auth": "{{connections['exampleConnectionId3']}}",
3036
+ "nodeId": "{{step_4['output']['cardId']}}",
3037
+ "fieldId": "cedente",
3038
+ "operation": "ADD",
3039
+ "fieldValue": "{{step_22['output']['data']['cardId']}}"
3040
+ },
3041
+ "pieceName": "@activepieces/piece-pipefy",
3042
+ "actionName": "updateListField",
3043
+ "sampleData": {},
3044
+ "pieceVersion": "0.1.7",
3045
+ "propertySettings": {
3046
+ "nodeId": {
3047
+ "type": "MANUAL"
3048
+ },
3049
+ "fieldId": {
3050
+ "type": "MANUAL"
3051
+ },
3052
+ "operation": {
3053
+ "type": "MANUAL"
3054
+ },
3055
+ "fieldValue": {
3056
+ "type": "MANUAL"
3057
+ }
3058
+ },
3059
+ "errorHandlingOptions": {
3060
+ "retryOnFailure": {
3061
+ "value": false
3062
+ },
3063
+ "continueOnFailure": {
3064
+ "value": false
3065
+ }
3066
+ }
3067
+ },
3068
+ "displayName": "Update items in list type fields",
3069
+ "lastUpdatedDate": "2026-08-24T14:22:53.481Z"
3070
+ },
3071
+ null
3072
+ ],
3073
+ "settings": {
3074
+ "branches": [
3075
+ {
3076
+ "branchName": "Criado",
3077
+ "branchType": "CONDITION",
3078
+ "conditions": [
3079
+ [
3080
+ {
3081
+ "operator": "EXISTS",
3082
+ "firstValue": "{{step_22['output']['data']['cardId']}}"
3083
+ },
3084
+ {
3085
+ "operator": "LIST_IS_EMPTY",
3086
+ "firstValue": "{{step_38['output']['data']['card']['fields_by_phase']['start_form']['fields']['cedente']['array_value']}}"
3087
+ }
3088
+ ]
3089
+ ]
3090
+ },
3091
+ {
3092
+ "branchName": "Otherwise",
3093
+ "branchType": "FALLBACK"
3094
+ }
3095
+ ],
3096
+ "sampleData": {},
3097
+ "executionType": "EXECUTE_FIRST_MATCH"
3098
+ },
3099
+ "displayName": "Cedente",
3100
+ "lastUpdatedDate": "2026-08-24T14:22:53.480Z"
3101
+ },
3102
+ "displayName": "[4/4 SUBFLOW][CRIAÇÃO] CEDENTE",
3103
+ "lastUpdatedDate": "2026-08-24T14:22:53.479Z"
3104
+ },
3105
+ {
3106
+ "name": "step_25",
3107
+ "skip": false,
3108
+ "type": "PIECE",
3109
+ "valid": true,
3110
+ "settings": {
3111
+ "input": {
3112
+ "flow": {
3113
+ "externalId": "exampleFlowId12aaaaaa",
3114
+ "exampleData": {
3115
+ "sampleData": {
3116
+ "origem": "example",
3117
+ "sacado": {
3118
+ "nome": "example",
3119
+ "email": "example",
3120
+ "endereco": "example",
3121
+ "idSacado": 0,
3122
+ "percHNeg": {
3123
+ "totQtd": 0,
3124
+ "totSac": 0,
3125
+ "totNegativa": 0
3126
+ },
3127
+ "percHPre": {
3128
+ "totQtd": 0,
3129
+ "totSac": 0,
3130
+ "totPresente": 0
3131
+ },
3132
+ "cnpjOuCpf": "example",
3133
+ "idCedente": 0,
3134
+ "razaoSocial": "example",
3135
+ "nomeFantasia": "example",
3136
+ "codigoEmpresa": 0,
3137
+ "telefoneContato": "example",
3138
+ "liquidacaoPorEvento": [
3139
+ {
3140
+ "descricao": "example",
3141
+ "codigoEvento": 0,
3142
+ "totalLiquidado": 0,
3143
+ "quantidadeTitulos": 0
3144
+ }
3145
+ ],
3146
+ "historicoValorAberto": {
3147
+ "totalTitulosAbertos": 0,
3148
+ "totalTitulosAbertosQtd": 0,
3149
+ "totalTitulosAbertosVencer": 0,
3150
+ "totalTitulosAbertosVencidos": 0,
3151
+ "totalTitulosAbertosVencerQtd": 0,
3152
+ "totalTitulosAbertosVencidosQtd": 0
3153
+ },
3154
+ "historicoValorLiquidado": {
3155
+ "totalOpeNaoEfetivadas": 0,
3156
+ "totalTitulosLiquidados": 0,
3157
+ "totalOpeNaoEfetivadasQtd": 0,
3158
+ "totalTitulosLiquidadosQtd": 0,
3159
+ "totalTitulosLiquidadosPagoDia": 0,
3160
+ "totalTitulosLiquidadosPagoAtraso": 0,
3161
+ "totalTitulosLiquidadosPagoDiaQtd": 0,
3162
+ "totalTitulosLiquidadosPagoAtrasoQtd": 0,
3163
+ "totalTitulosLiquidadosChequeDevolvido": 0,
3164
+ "totalTitulosLiquidadosChequeDevolvidoQtd": 0
3165
+ }
3166
+ },
3167
+ "cardIdTitulo": "example",
3168
+ "empresaCodigo": 0
3169
+ }
3170
+ }
3171
+ },
3172
+ "mode": "simple",
3173
+ "flowProps": {
3174
+ "payload": {
3175
+ "origem": "{{trigger['output']['data']['operacao']['origem']}}",
3176
+ "sacado": "{{step_1['output']['item']['sacado']}}",
3177
+ "cardIdTitulo": "{{step_4['output']['cardId']}}",
3178
+ "empresaCodigo": "{{step_1['output']['item']['empresaCodigo']}}"
3179
+ }
3180
+ },
3181
+ "waitForResponse": true
3182
+ },
3183
+ "pieceName": "@activepieces/piece-subflows",
3184
+ "actionName": "callFlow",
3185
+ "sampleData": {},
3186
+ "pieceVersion": "0.4.12",
3187
+ "propertySettings": {
3188
+ "flow": {
3189
+ "type": "MANUAL"
3190
+ },
3191
+ "mode": {
3192
+ "type": "MANUAL"
3193
+ },
3194
+ "flowProps": {
3195
+ "type": "MANUAL",
3196
+ "schema": {
3197
+ "payload": {
3198
+ "type": "OBJECT",
3199
+ "required": true,
3200
+ "displayName": "Payload",
3201
+ "defaultValue": {
3202
+ "origem": "example",
3203
+ "sacado": {
3204
+ "nome": "example",
3205
+ "email": "example",
3206
+ "endereco": "example",
3207
+ "idSacado": 0,
3208
+ "percHNeg": {
3209
+ "totQtd": 0,
3210
+ "totSac": 0,
3211
+ "totNegativa": 0
3212
+ },
3213
+ "percHPre": {
3214
+ "totQtd": 0,
3215
+ "totSac": 0,
3216
+ "totPresente": 0
3217
+ },
3218
+ "cnpjOuCpf": "example",
3219
+ "idCedente": 0,
3220
+ "indicadores": "example",
3221
+ "razaoSocial": "example",
3222
+ "nomeFantasia": "example",
3223
+ "codigoEmpresa": 0,
3224
+ "telefoneContato": "example",
3225
+ "liquidacaoPorEvento": [
3226
+ {
3227
+ "descricao": "example",
3228
+ "codigoEvento": 0,
3229
+ "totalLiquidado": 0,
3230
+ "quantidadeTitulos": 0
3231
+ }
3232
+ ],
3233
+ "historicoValorAberto": {
3234
+ "totalTitulosAbertos": 0,
3235
+ "totalTitulosAbertosQtd": 0,
3236
+ "totalTitulosAbertosVencer": 0,
3237
+ "totalTitulosAbertosVencidos": 0,
3238
+ "totalTitulosAbertosVencerQtd": 0,
3239
+ "totalTitulosAbertosVencidosQtd": 0
3240
+ },
3241
+ "historicoValorLiquidado": {
3242
+ "totalOpeNaoEfetivadas": 0,
3243
+ "totalTitulosLiquidados": 0,
3244
+ "totalOpeNaoEfetivadasQtd": 0,
3245
+ "totalTitulosLiquidadosQtd": 0,
3246
+ "totalTitulosLiquidadosPagoDia": 0,
3247
+ "totalTitulosLiquidadosPagoAtraso": 0,
3248
+ "totalTitulosLiquidadosPagoDiaQtd": 0,
3249
+ "totalTitulosLiquidadosPagoAtrasoQtd": 0,
3250
+ "totalTitulosLiquidadosChequeDevolvido": 0,
3251
+ "totalTitulosLiquidadosChequeDevolvidoQtd": 0
3252
+ }
3253
+ },
3254
+ "cardIdTitulo": "example",
3255
+ "empresaCodigo": 0
3256
+ }
3257
+ }
3258
+ }
3259
+ },
3260
+ "waitForResponse": {
3261
+ "type": "MANUAL"
3262
+ }
3263
+ },
3264
+ "errorHandlingOptions": {
3265
+ "retryOnFailure": {
3266
+ "value": false
3267
+ },
3268
+ "continueOnFailure": {
3269
+ "value": false
3270
+ }
3271
+ }
3272
+ },
3273
+ "nextAction": {
3274
+ "name": "step_24",
3275
+ "skip": false,
3276
+ "type": "ROUTER",
3277
+ "valid": true,
3278
+ "children": [
3279
+ {
3280
+ "name": "step_26",
3281
+ "skip": false,
3282
+ "type": "PIECE",
3283
+ "valid": true,
3284
+ "settings": {
3285
+ "input": {
3286
+ "auth": "{{connections['exampleConnectionId3']}}",
3287
+ "nodeId": "{{step_4['output']['cardId']}}",
3288
+ "fieldId": "sacado",
3289
+ "operation": "ADD",
3290
+ "fieldValue": "{{step_25['output']['data']['cardId']}}"
3291
+ },
3292
+ "pieceName": "@activepieces/piece-pipefy",
3293
+ "actionName": "updateListField",
3294
+ "sampleData": {},
3295
+ "pieceVersion": "0.1.7",
3296
+ "propertySettings": {
3297
+ "nodeId": {
3298
+ "type": "MANUAL"
3299
+ },
3300
+ "fieldId": {
3301
+ "type": "MANUAL"
3302
+ },
3303
+ "operation": {
3304
+ "type": "MANUAL"
3305
+ },
3306
+ "fieldValue": {
3307
+ "type": "MANUAL"
3308
+ }
3309
+ },
3310
+ "errorHandlingOptions": {
3311
+ "retryOnFailure": {
3312
+ "value": false
3313
+ },
3314
+ "continueOnFailure": {
3315
+ "value": false
3316
+ }
3317
+ }
3318
+ },
3319
+ "displayName": "Update items in list type fields",
3320
+ "lastUpdatedDate": "2026-08-24T14:22:53.486Z"
3321
+ },
3322
+ null
3323
+ ],
3324
+ "settings": {
3325
+ "branches": [
3326
+ {
3327
+ "branchName": "Criado",
3328
+ "branchType": "CONDITION",
3329
+ "conditions": [
3330
+ [
3331
+ {
3332
+ "operator": "EXISTS",
3333
+ "firstValue": "{{step_25['output']['data']['cardId']}}"
3334
+ },
3335
+ {
3336
+ "operator": "LIST_IS_EMPTY",
3337
+ "firstValue": "{{step_38['output']['data']['card']['fields_by_phase']['start_form']['fields']['sacado']['array_value']}}"
3338
+ }
3339
+ ]
3340
+ ]
3341
+ },
3342
+ {
3343
+ "branchName": "Otherwise",
3344
+ "branchType": "FALLBACK"
3345
+ }
3346
+ ],
3347
+ "sampleData": {},
3348
+ "executionType": "EXECUTE_FIRST_MATCH"
3349
+ },
3350
+ "displayName": "Sacado",
3351
+ "lastUpdatedDate": "2026-08-24T14:22:53.484Z"
3352
+ },
3353
+ "displayName": "[4/4 SUBFLOW][CRIAÇÃO] SACADO",
3354
+ "lastUpdatedDate": "2026-08-24T14:22:53.483Z"
3355
+ },
3356
+ null
3357
+ ],
3358
+ "settings": {
3359
+ "branches": [
3360
+ {
3361
+ "branchName": "CEDENTE",
3362
+ "branchType": "CONDITION",
3363
+ "conditions": [
3364
+ [
3365
+ {
3366
+ "operator": "BOOLEAN_IS_TRUE",
3367
+ "firstValue": "{{step_20['output']['cedenteCompleto']}}"
3368
+ }
3369
+ ]
3370
+ ]
3371
+ },
3372
+ {
3373
+ "branchName": "SACADO",
3374
+ "branchType": "CONDITION",
3375
+ "conditions": [
3376
+ [
3377
+ {
3378
+ "operator": "BOOLEAN_IS_TRUE",
3379
+ "firstValue": "{{step_20['output']['sacadoCompleto']}}"
3380
+ }
3381
+ ]
3382
+ ]
3383
+ },
3384
+ {
3385
+ "branchName": "Otherwise",
3386
+ "branchType": "FALLBACK"
3387
+ }
3388
+ ],
3389
+ "sampleData": {},
3390
+ "executionType": "EXECUTE_ALL_MATCH"
3391
+ },
3392
+ "displayName": "Router",
3393
+ "lastUpdatedDate": "2026-08-24T14:22:53.477Z"
3394
+ },
3395
+ "displayName": "[1/1 SUBFLOW][CRIAÇÃO] TÍTULO - AcompanhamentoDeCobranca Copy",
3396
+ "lastUpdatedDate": "2026-08-24T14:22:53.476Z"
3397
+ },
3398
+ "displayName": "[1/1 SUBFLOW][CRIAÇÃO] TÍTULO - NFE MONITORAMENTO Copy",
3399
+ "lastUpdatedDate": "2026-08-24T14:22:53.475Z"
3400
+ },
3401
+ "displayName": "Get card by id",
3402
+ "lastUpdatedDate": "2026-08-24T14:22:53.473Z"
3403
+ },
3404
+ "displayName": "Conferência Cedente e/ou Sacado",
3405
+ "lastUpdatedDate": "2026-08-24T14:22:53.472Z"
3406
+ },
3407
+ "displayName": "ATUALIZAR TÍTULO",
3408
+ "lastUpdatedDate": "2026-08-24T14:22:53.471Z"
3409
+ },
3410
+ "displayName": "Match Status e Classificação Copy",
3411
+ "lastUpdatedDate": "2026-08-24T14:22:53.470Z"
3412
+ },
3413
+ "displayName": "Buscar Status/Classificação",
3414
+ "lastUpdatedDate": "2026-08-24T14:22:53.468Z"
3415
+ }
3416
+ ],
3417
+ "settings": {
3418
+ "branches": [
3419
+ {
3420
+ "branchName": "Sim",
3421
+ "branchType": "CONDITION",
3422
+ "conditions": [
3423
+ [
3424
+ {
3425
+ "operator": "BOOLEAN_IS_TRUE",
3426
+ "firstValue": "{{step_4['output']['deveCriar']}}"
3427
+ }
3428
+ ]
3429
+ ]
3430
+ },
3431
+ {
3432
+ "branchName": "Otherwise",
3433
+ "branchType": "FALLBACK"
3434
+ }
3435
+ ],
3436
+ "sampleData": {},
3437
+ "executionType": "EXECUTE_FIRST_MATCH"
3438
+ },
3439
+ "displayName": "deveCriar",
3440
+ "lastUpdatedDate": "2026-08-24T14:22:53.454Z"
3441
+ },
3442
+ "displayName": "Buscar chaveComposta Copy",
3443
+ "lastUpdatedDate": "2026-08-24T14:23:41.385Z"
3444
+ },
3445
+ "displayName": "CONSULTA TÍTULO",
3446
+ "lastUpdatedDate": "2026-08-24T14:22:53.454Z"
3447
+ },
3448
+ "lastUpdatedDate": "2026-08-24T14:22:53.453Z"
3449
+ },
3450
+ "lastUpdatedDate": "2026-08-24T14:22:53.453Z",
3451
+ "type": "PIECE_TRIGGER",
3452
+ "settings": {
3453
+ "propertySettings": {
3454
+ "mode": {
3455
+ "type": "MANUAL"
3456
+ },
3457
+ "exampleData": {
3458
+ "type": "MANUAL",
3459
+ "schema": {
3460
+ "sampleData": {
3461
+ "type": "example",
3462
+ "required": false,
3463
+ "displayName": "example"
3464
+ }
3465
+ }
3466
+ }
3467
+ },
3468
+ "pieceName": "@activepieces/piece-subflows",
3469
+ "pieceVersion": "0.4.12",
3470
+ "triggerName": "callableFlow",
3471
+ "input": {
3472
+ "mode": "advanced",
3473
+ "exampleData": {
3474
+ "sampleData": {
3475
+ "operacao": {
3476
+ "idg": "example",
3477
+ "origem": "example",
3478
+ "idgDesc": "example",
3479
+ "titulos": [
3480
+ {
3481
+ "idg": "example",
3482
+ "eveNfe": "example",
3483
+ "sacado": {
3484
+ "nome": "example",
3485
+ "email": "example",
3486
+ "endereco": "example",
3487
+ "idSacado": 0,
3488
+ "percHNeg": {
3489
+ "totQtd": 0,
3490
+ "totSac": 0,
3491
+ "totNegativa": 0
3492
+ },
3493
+ "percHPre": {
3494
+ "totQtd": 0,
3495
+ "totSac": 0,
3496
+ "totPresente": 0
3497
+ },
3498
+ "cnpjOuCpf": "example",
3499
+ "idCedente": 0,
3500
+ "indicadores": "example",
3501
+ "razaoSocial": "example",
3502
+ "nomeFantasia": "example",
3503
+ "codigoEmpresa": 0,
3504
+ "telefoneContato": "example",
3505
+ "liquidacaoPorEvento": [
3506
+ {
3507
+ "descricao": "example",
3508
+ "codigoEvento": 0,
3509
+ "totalLiquidado": 0,
3510
+ "quantidadeTitulos": 0
3511
+ }
3512
+ ],
3513
+ "historicoValorAberto": {
3514
+ "totalTitulosAbertos": 0,
3515
+ "totalTitulosAbertosQtd": 0,
3516
+ "totalTitulosAbertosVencer": 0,
3517
+ "totalTitulosAbertosVencidos": 0,
3518
+ "totalTitulosAbertosVencerQtd": 0,
3519
+ "totalTitulosAbertosVencidosQtd": 0
3520
+ },
3521
+ "historicoValorLiquidado": {
3522
+ "totalOpeNaoEfetivadas": 0,
3523
+ "totalTitulosLiquidados": 0,
3524
+ "totalOpeNaoEfetivadasQtd": 0,
3525
+ "totalTitulosLiquidadosQtd": 0,
3526
+ "totalTitulosLiquidadosPagoDia": 0,
3527
+ "totalTitulosLiquidadosPagoAtraso": 0,
3528
+ "totalTitulosLiquidadosPagoDiaQtd": 0,
3529
+ "totalTitulosLiquidadosPagoAtrasoQtd": 0,
3530
+ "totalTitulosLiquidadosChequeDevolvido": 0,
3531
+ "totalTitulosLiquidadosChequeDevolvidoQtd": 0
3532
+ }
3533
+ },
3534
+ "status": "example",
3535
+ "cedente": {
3536
+ "nome": "example",
3537
+ "email": "example",
3538
+ "endereco": "example",
3539
+ "cnpjOuCpf": "example",
3540
+ "idCedente": 0,
3541
+ "dataCadastro": "example",
3542
+ "codigoEmpresa": 0,
3543
+ "telefoneContato": "example",
3544
+ "idGrupoPrincipal": 0,
3545
+ "analistaResponsavel": "example",
3546
+ "vinculoGrupoEconomico": false
3547
+ },
3548
+ "idgDesc": "example",
3549
+ "documento": "example",
3550
+ "linkBoleto": "example",
3551
+ "numeroNota": "example",
3552
+ "valorBruto": 0,
3553
+ "vencimento": "example",
3554
+ "confirmacao": "example",
3555
+ "empresaNome": "example",
3556
+ "nfXmlBase64": "example",
3557
+ "numeroTitulo": 0,
3558
+ "valorLiquido": 0,
3559
+ "classificacao": "example",
3560
+ "empresaCodigo": 0,
3561
+ "idUnicoSacado": 0,
3562
+ "valorPassagem": 0,
3563
+ "formaPagamento": "example",
3564
+ "idUnicoCedente": 0,
3565
+ "statusBancario": "example",
3566
+ "dataFaturamento": "example",
3567
+ "idUnicoOperacao": 0,
3568
+ "nfeMonitoramento": [
3569
+ {
3570
+ "nlmData": "example",
3571
+ "nlmHora": "example",
3572
+ "ernDescricao": "example",
3573
+ "nlmChaveRetorno": "example",
3574
+ "nlmCodigoEventoRetorno": 0,
3575
+ "nlmDescricaoEventoRetorno": "example"
3576
+ }
3577
+ ],
3578
+ "valorComDesconto": 0,
3579
+ "razaoSocialSacado": "example",
3580
+ "retornosBancarios": [
3581
+ {
3582
+ "id": 0,
3583
+ "valor": 0,
3584
+ "evento": "example",
3585
+ "movData": "example",
3586
+ "empCodigo": 0,
3587
+ "movCodigo": "example",
3588
+ "movOrigem": "example",
3589
+ "movUsuario": "example",
3590
+ "dataPContato": "example",
3591
+ "movDescricao": "example",
3592
+ "movIdentificaOrigem": 0
3593
+ }
3594
+ ],
3595
+ "analistaResponsavel": "example",
3596
+ "acompanhamentoDeCobranca": [
3597
+ {
3598
+ "id": 0,
3599
+ "valor": 0,
3600
+ "evento": "example",
3601
+ "movData": "example",
3602
+ "empCodigo": 0,
3603
+ "movCodigo": "example",
3604
+ "movOrigem": "example",
3605
+ "movUsuario": "example",
3606
+ "dataPContato": "example",
3607
+ "movDescricao": "example",
3608
+ "movIdentificaOrigem": 0
3609
+ }
3610
+ ]
3611
+ }
3612
+ ],
3613
+ "documentos": [
3614
+ {
3615
+ "chave": "example",
3616
+ "linkArquivo": "example",
3617
+ "nomeArquivo": "example"
3618
+ }
3619
+ ],
3620
+ "idOperacao": 0,
3621
+ "empresaNome": "example",
3622
+ "dataOperacao": "example",
3623
+ "empresaCodigo": 0,
3624
+ "chaveResponsavel": "example",
3625
+ "nomeGerenteConta": "example",
3626
+ "nomeAssistenteConta": "example",
3627
+ "emailComercialResponsavel": "example"
3628
+ },
3629
+ "novaOperacao": false,
3630
+ "cardIdOperacao": "example"
3631
+ }
3632
+ }
3633
+ }
3634
+ }
3635
+ },
3636
+ "valid": true,
3637
+ "schemaVersion": "22",
3638
+ "notes": []
3639
+ }
3640
+ ],
3641
+ "status": "PUBLISHED"
3642
+ }