@pipefy/pipefy-process-coder 0.1.0 → 0.1.2

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 (162) hide show
  1. package/.agents/skills/ppc-pipefy-flow-authoring/SKILL.md +262 -262
  2. package/.agents/skills/ppc-pipefy-flow-authoring/examples/01-main-2-danfe-consulta.json +247 -247
  3. package/.agents/skills/ppc-pipefy-flow-authoring/examples/01-main-2-webhook-retorno-consulta.json +589 -589
  4. package/.agents/skills/ppc-pipefy-flow-authoring/examples/01-main-4-recebimento-barramento.json +1391 -1391
  5. package/.agents/skills/ppc-pipefy-flow-authoring/examples/02-subflow-2-danfe-retorno.json +623 -623
  6. package/.agents/skills/ppc-pipefy-flow-authoring/examples/02-subflow-4-criacao-operacao.json +636 -636
  7. package/.agents/skills/ppc-pipefy-flow-authoring/examples/03-subflow-4-criacao-titulo.json +3642 -3642
  8. package/.agents/skills/ppc-pipefy-flow-authoring/examples/04-subflow-4-criacao-cedente.json +863 -863
  9. package/.agents/skills/ppc-pipefy-flow-authoring/examples/04-subflow-4-criacao-sacado.json +799 -799
  10. package/.agents/skills/ppc-pipefy-flow-authoring/examples/README.md +42 -42
  11. package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-01-subflow-1-titulo-acompanhamento-cobranca.json +581 -581
  12. package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-01-subflow-1-titulo-nfe-monitoramento.json +503 -503
  13. package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-01-subflow-1-titulo-retorno-bancario.json +562 -562
  14. package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-02-subflow-2-retorno-consulta-cedente.json +557 -557
  15. package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-02-subflow-2-retorno-consulta-sacado.json +609 -609
  16. package/.agents/skills/ppc-pipefy-pipe-authoring/SKILL.md +146 -146
  17. package/.agents/skills/ppc-pipefy-process-design/SKILL.md +127 -127
  18. package/.agents/skills/ppc-pipefy-workspace/SKILL.md +91 -91
  19. package/AGENTS.md +476 -456
  20. package/LICENSE +202 -0
  21. package/NOTICE +11 -0
  22. package/README.md +830 -808
  23. package/bin/pipe.js +25 -4
  24. package/dist/apply/adopt.js +128 -0
  25. package/dist/apply/agentops.js +42 -0
  26. package/dist/apply/compile.js +722 -0
  27. package/dist/apply/execute.js +277 -0
  28. package/dist/apply/flowops.js +293 -0
  29. package/dist/apply/idmap.js +233 -0
  30. package/dist/apply/mutations.js +704 -0
  31. package/dist/apply/registry.js +348 -0
  32. package/dist/apply/types.js +18 -0
  33. package/dist/cli/args.js +79 -0
  34. package/dist/cli.js +196 -0
  35. package/dist/codec/flow.js +164 -0
  36. package/dist/codec/pack.js +88 -0
  37. package/dist/codec/roundtrip.js +86 -0
  38. package/dist/codec/unpack.js +181 -0
  39. package/dist/commands/agents.js +145 -0
  40. package/dist/commands/apply.js +982 -0
  41. package/dist/commands/context.js +79 -0
  42. package/dist/commands/create.js +63 -0
  43. package/dist/commands/diff.js +294 -0
  44. package/dist/commands/flows.js +348 -0
  45. package/dist/commands/misc.js +562 -0
  46. package/dist/commands/plan.js +301 -0
  47. package/dist/commands/pull.js +549 -0
  48. package/dist/commands/runs.js +74 -0
  49. package/dist/commands/skills.js +131 -0
  50. package/dist/commands/verify.js +205 -0
  51. package/dist/config.js +125 -0
  52. package/dist/diff/agents.js +80 -0
  53. package/dist/diff/diff.js +983 -0
  54. package/dist/diff/flow.js +258 -0
  55. package/{src/diff/html.ts → dist/diff/html.js} +274 -322
  56. package/dist/diff/render.js +90 -0
  57. package/dist/model/payload.js +84 -0
  58. package/dist/model/tree.js +7 -0
  59. package/dist/model/volatile.js +54 -0
  60. package/dist/pipefy/agents.js +131 -0
  61. package/dist/pipefy/automations.js +155 -0
  62. package/dist/pipefy/capability.js +84 -0
  63. package/dist/pipefy/client.js +204 -0
  64. package/dist/pipefy/discovery.js +148 -0
  65. package/dist/pipefy/internal.js +406 -0
  66. package/dist/pipefy/ipaas.js +269 -0
  67. package/dist/pipefy/reconstruct.js +676 -0
  68. package/dist/pipefy/reference.js +172 -0
  69. package/dist/pipefy/snapshot.js +185 -0
  70. package/dist/pipefy/toolkit.js +174 -0
  71. package/{src → dist}/pipefy/toolkit_bearer.py +60 -14
  72. package/dist/report/integrations.js +165 -0
  73. package/dist/report/run.js +356 -0
  74. package/dist/util/fsx.js +50 -0
  75. package/dist/util/git.js +25 -0
  76. package/dist/util/json.js +56 -0
  77. package/dist/util/log.js +69 -0
  78. package/dist/util/pool.js +42 -0
  79. package/dist/util/slug.js +23 -0
  80. package/dist/util/tui.js +287 -0
  81. package/dist/validate/index.js +86 -0
  82. package/dist/validate/integrity.js +370 -0
  83. package/dist/validate/reference.js +120 -0
  84. package/dist/validate/schema.js +278 -0
  85. package/dist/version.js +18 -0
  86. package/dist/workspace/agents.js +245 -0
  87. package/{src/workspace/docs.ts → dist/workspace/docs.js} +367 -407
  88. package/dist/workspace/flows.js +149 -0
  89. package/dist/workspace/layout.js +146 -0
  90. package/dist/workspace/lock.js +83 -0
  91. package/dist/workspace/read.js +168 -0
  92. package/dist/workspace/reference.js +24 -0
  93. package/dist/workspace/stamp.js +234 -0
  94. package/dist/workspace/write.js +194 -0
  95. package/package.json +38 -35
  96. package/src/apply/adopt.ts +0 -150
  97. package/src/apply/agentops.ts +0 -71
  98. package/src/apply/compile.ts +0 -875
  99. package/src/apply/execute.ts +0 -336
  100. package/src/apply/flowops.ts +0 -399
  101. package/src/apply/idmap.ts +0 -241
  102. package/src/apply/mutations.ts +0 -955
  103. package/src/apply/registry.ts +0 -430
  104. package/src/apply/types.ts +0 -134
  105. package/src/cli/args.ts +0 -88
  106. package/src/cli.ts +0 -211
  107. package/src/codec/flow.ts +0 -199
  108. package/src/codec/pack.ts +0 -103
  109. package/src/codec/roundtrip.ts +0 -94
  110. package/src/codec/unpack.ts +0 -198
  111. package/src/commands/agents.ts +0 -184
  112. package/src/commands/apply.ts +0 -1144
  113. package/src/commands/context.ts +0 -119
  114. package/src/commands/create.ts +0 -79
  115. package/src/commands/diff.ts +0 -314
  116. package/src/commands/flows.ts +0 -414
  117. package/src/commands/misc.ts +0 -644
  118. package/src/commands/plan.ts +0 -331
  119. package/src/commands/pull.ts +0 -567
  120. package/src/commands/runs.ts +0 -83
  121. package/src/commands/skills.ts +0 -137
  122. package/src/commands/verify.ts +0 -253
  123. package/src/config.ts +0 -168
  124. package/src/diff/agents.ts +0 -122
  125. package/src/diff/diff.ts +0 -1130
  126. package/src/diff/flow.ts +0 -318
  127. package/src/diff/render.ts +0 -101
  128. package/src/model/payload.ts +0 -154
  129. package/src/model/tree.ts +0 -99
  130. package/src/model/volatile.ts +0 -55
  131. package/src/pipefy/agents.ts +0 -165
  132. package/src/pipefy/automations.ts +0 -219
  133. package/src/pipefy/capability.ts +0 -119
  134. package/src/pipefy/client.ts +0 -267
  135. package/src/pipefy/discovery.ts +0 -209
  136. package/src/pipefy/internal.ts +0 -380
  137. package/src/pipefy/ipaas.ts +0 -365
  138. package/src/pipefy/reconstruct.ts +0 -775
  139. package/src/pipefy/reference.ts +0 -251
  140. package/src/pipefy/snapshot.ts +0 -245
  141. package/src/pipefy/toolkit.ts +0 -200
  142. package/src/report/integrations.ts +0 -231
  143. package/src/report/run.ts +0 -475
  144. package/src/util/fsx.ts +0 -45
  145. package/src/util/git.ts +0 -32
  146. package/src/util/json.ts +0 -55
  147. package/src/util/log.ts +0 -76
  148. package/src/util/pool.ts +0 -48
  149. package/src/util/slug.ts +0 -26
  150. package/src/util/tui.ts +0 -335
  151. package/src/validate/index.ts +0 -123
  152. package/src/validate/integrity.ts +0 -387
  153. package/src/validate/reference.ts +0 -136
  154. package/src/validate/schema.ts +0 -328
  155. package/src/workspace/agents.ts +0 -290
  156. package/src/workspace/flows.ts +0 -191
  157. package/src/workspace/layout.ts +0 -165
  158. package/src/workspace/lock.ts +0 -148
  159. package/src/workspace/read.ts +0 -165
  160. package/src/workspace/reference.ts +0 -24
  161. package/src/workspace/stamp.ts +0 -301
  162. package/src/workspace/write.ts +0 -225
@@ -1,863 +1,863 @@
1
- {
2
- "name": "✅[PRD][4/4 SUBFLOW][CRIAÇÃO] CEDENTE",
3
- "type": "SHARED",
4
- "summary": "",
5
- "description": "",
6
- "tags": [],
7
- "blogUrl": "",
8
- "metadata": {
9
- "externalId": "exampleFlowId11aaaaaa"
10
- },
11
- "author": "Integrações Ipaas 000000000",
12
- "categories": [],
13
- "pieces": [
14
- "@activepieces/piece-subflows",
15
- "@activepieces/piece-pipefy",
16
- "@activepieces/piece-date-helper",
17
- "@activepieces/piece-http-oauth2"
18
- ],
19
- "flows": [
20
- {
21
- "displayName": "✅[PRD][4/4 SUBFLOW][CRIAÇÃO] CEDENTE",
22
- "trigger": {
23
- "name": "trigger",
24
- "valid": true,
25
- "displayName": "Callable Flow",
26
- "nextAction": {
27
- "name": "step_2",
28
- "type": "PIECE",
29
- "valid": true,
30
- "settings": {
31
- "input": {
32
- "auth": "{{connections['exampleConnectionId3']}}",
33
- "pipeId": "200000004",
34
- "fieldId": "idcedente",
35
- "comments": [],
36
- "assignees": [],
37
- "card_info": [
38
- "uuid",
39
- "suid",
40
- "age",
41
- "title",
42
- "comments_count",
43
- "createdAt",
44
- "current_phase_age",
45
- "done",
46
- "due_date",
47
- "emailMessagingAddress",
48
- "expired",
49
- "late",
50
- "started_current_phase_at",
51
- "updated_at",
52
- "url",
53
- "creatorEmail",
54
- "current_phase"
55
- ],
56
- "created_by": [],
57
- "fieldValue": "{{trigger['output']['data']['cedente']['idCedente']}}",
58
- "attachments": [],
59
- "inbox_emails": [],
60
- "organizationId": "100000001",
61
- "phases_history": [],
62
- "child_relations": [],
63
- "parent_relations": []
64
- },
65
- "pieceName": "@activepieces/piece-pipefy",
66
- "actionName": "getCardsByFieldValue",
67
- "sampleData": {},
68
- "pieceVersion": "0.2.0",
69
- "propertySettings": {
70
- "pipeId": {
71
- "type": "MANUAL"
72
- },
73
- "fieldId": {
74
- "type": "MANUAL"
75
- },
76
- "fieldValue": {
77
- "type": "MANUAL"
78
- },
79
- "organizationId": {
80
- "type": "MANUAL"
81
- }
82
- },
83
- "errorHandlingOptions": {
84
- "retryOnFailure": {
85
- "value": false
86
- },
87
- "continueOnFailure": {
88
- "value": false
89
- }
90
- }
91
- },
92
- "nextAction": {
93
- "name": "step_13",
94
- "skip": false,
95
- "type": "CODE",
96
- "valid": true,
97
- "settings": {
98
- "input": {
99
- "cards": "{{step_2['output']['data']['cards']}}",
100
- "empresaCodigo": "{{trigger['output']['data']['empresaCodigo']}}"
101
- },
102
- "sampleData": {},
103
- "sourceCode": {
104
- "code": "export const code = async (inputs) => {\n const alvo = String(inputs.empresaCodigo ?? '').trim();\n\n const card = inputs.cards.find(\n c => String(c.fields?.empresacodigo?.value ?? '').trim() === alvo\n );\n\n // Compara datas no fuso de São Paulo (dia útil BR)\n const emSaoPaulo = (data) =>\n new Intl.DateTimeFormat('en-CA', {\n timeZone: 'America/Sao_Paulo',\n year: 'numeric',\n month: '2-digit',\n day: '2-digit',\n }).format(data); // => \"YYYY-MM-DD\"\n\n let atualizadoHoje = false;\n if (card?.updated_at) {\n const dataAtualizacao = new Date(card.updated_at);\n if (!isNaN(dataAtualizacao)) {\n atualizadoHoje = emSaoPaulo(dataAtualizacao) === emSaoPaulo(new Date());\n }\n }\n\n return {\n cardId: card?.id ?? null,\n encontrado: !!card,\n // Se foi atualizado hoje, não precisa consultar o cedente novamente\n consultarCedente: card ? !atualizadoHoje : true,\n };\n};",
105
- "packageJson": "{}"
106
- },
107
- "errorHandlingOptions": {
108
- "retryOnFailure": {
109
- "value": false
110
- },
111
- "continueOnFailure": {
112
- "value": false
113
- }
114
- }
115
- },
116
- "nextAction": {
117
- "name": "step_16",
118
- "skip": false,
119
- "type": "PIECE",
120
- "valid": true,
121
- "settings": {
122
- "input": {
123
- "timeZone": "America/Sao_Paulo",
124
- "timeFormat": "YYYY-MM-DDTHH:mm:ss"
125
- },
126
- "pieceName": "@activepieces/piece-date-helper",
127
- "actionName": "get_current_date",
128
- "sampleData": {},
129
- "pieceVersion": "0.1.28",
130
- "propertySettings": {
131
- "timeZone": {
132
- "type": "MANUAL"
133
- },
134
- "timeFormat": {
135
- "type": "MANUAL"
136
- }
137
- },
138
- "errorHandlingOptions": {
139
- "retryOnFailure": {
140
- "value": false
141
- },
142
- "continueOnFailure": {
143
- "value": false
144
- }
145
- }
146
- },
147
- "nextAction": {
148
- "name": "step_3",
149
- "skip": false,
150
- "type": "ROUTER",
151
- "valid": true,
152
- "children": [
153
- {
154
- "name": "step_17",
155
- "skip": false,
156
- "type": "PIECE",
157
- "valid": true,
158
- "settings": {
159
- "input": {
160
- "url": "{{variables['PRD_BASE_URL']}}/v1/orderby/consultations/cedentes/{{trigger['output']['data']['cedente']['idCedente']}}?codigoEmpresa={{trigger['output']['data']['empresaCodigo']}}&origem={{trigger['output']['data']['origem']}}",
161
- "auth": "{{connections['exampleConnectionId1']}}",
162
- "body": {},
163
- "method": "GET",
164
- "headers": {
165
- "timestamp": "{{step_16['output']['result']}}",
166
- "Content-Type": "application/json",
167
- "correlation-id": "123e4567-e89b-12d3-a456-426614174000"
168
- },
169
- "failsafe": false,
170
- "body_type": "none",
171
- "use_proxy": false,
172
- "queryParams": {},
173
- "proxy_settings": {}
174
- },
175
- "pieceName": "@activepieces/piece-http-oauth2",
176
- "actionName": "send-oauth2-request",
177
- "sampleData": {},
178
- "pieceVersion": "0.2.5",
179
- "propertySettings": {
180
- "url": {
181
- "type": "MANUAL"
182
- },
183
- "body": {
184
- "type": "MANUAL",
185
- "schema": {}
186
- },
187
- "method": {
188
- "type": "MANUAL"
189
- },
190
- "headers": {
191
- "type": "MANUAL"
192
- },
193
- "timeout": {
194
- "type": "MANUAL"
195
- },
196
- "failsafe": {
197
- "type": "MANUAL"
198
- },
199
- "body_type": {
200
- "type": "MANUAL"
201
- },
202
- "use_proxy": {
203
- "type": "MANUAL"
204
- },
205
- "queryParams": {
206
- "type": "MANUAL"
207
- },
208
- "proxy_settings": {
209
- "type": "MANUAL",
210
- "schema": {}
211
- }
212
- },
213
- "errorHandlingOptions": {
214
- "retryOnFailure": {
215
- "value": false
216
- },
217
- "continueOnFailure": {
218
- "value": false
219
- }
220
- }
221
- },
222
- "nextAction": {
223
- "name": "step_10",
224
- "skip": false,
225
- "type": "PIECE",
226
- "valid": true,
227
- "settings": {
228
- "input": {
229
- "mode": "simple",
230
- "response": {
231
- "response": {
232
- "cardId": "{{step_13['output']['cardId']}}"
233
- }
234
- }
235
- },
236
- "pieceName": "@activepieces/piece-subflows",
237
- "actionName": "returnResponse",
238
- "sampleData": {},
239
- "pieceVersion": "0.4.12",
240
- "propertySettings": {
241
- "mode": {
242
- "type": "MANUAL"
243
- },
244
- "response": {
245
- "type": "MANUAL",
246
- "schema": {
247
- "response": {
248
- "type": "OBJECT",
249
- "required": true,
250
- "displayName": "Response"
251
- }
252
- }
253
- }
254
- },
255
- "errorHandlingOptions": {
256
- "retryOnFailure": {
257
- "value": false
258
- },
259
- "continueOnFailure": {
260
- "value": false
261
- }
262
- }
263
- },
264
- "displayName": "Retornar cardId",
265
- "lastUpdatedDate": "2026-08-24T14:59:54.263Z"
266
- },
267
- "displayName": "Consulta Cedente",
268
- "lastUpdatedDate": "2026-08-24T14:59:54.263Z"
269
- },
270
- {
271
- "name": "step_6",
272
- "skip": false,
273
- "type": "PIECE",
274
- "valid": true,
275
- "settings": {
276
- "input": {
277
- "mode": "simple",
278
- "response": {
279
- "response": {
280
- "cardId": "{{step_13['output']['cardId']}}"
281
- }
282
- }
283
- },
284
- "pieceName": "@activepieces/piece-subflows",
285
- "actionName": "returnResponse",
286
- "sampleData": {},
287
- "pieceVersion": "0.4.12",
288
- "propertySettings": {
289
- "mode": {
290
- "type": "MANUAL"
291
- },
292
- "response": {
293
- "type": "MANUAL",
294
- "schema": {
295
- "response": {
296
- "type": "OBJECT",
297
- "required": true,
298
- "displayName": "Response"
299
- }
300
- }
301
- }
302
- },
303
- "errorHandlingOptions": {
304
- "retryOnFailure": {
305
- "value": false
306
- },
307
- "continueOnFailure": {
308
- "value": false
309
- }
310
- }
311
- },
312
- "displayName": "Retornar cardId Copy",
313
- "lastUpdatedDate": "2026-08-24T14:59:54.264Z"
314
- },
315
- {
316
- "name": "step_15",
317
- "skip": false,
318
- "type": "CODE",
319
- "valid": true,
320
- "settings": {
321
- "input": {
322
- "email": "{{trigger['output']['data']['cedente']['email']}}",
323
- "cnpjOuCpf": "{{trigger['output']['data']['cedente']['cnpjOuCpf']}}",
324
- "telefoneContato ": "{{trigger['output']['data']['cedente']['telefoneContato']}}",
325
- "vinculoGrupoEconomico": "{{trigger['output']['data']['cedente']['vinculoGrupoEconomico']}}"
326
- },
327
- "sampleData": {},
328
- "sourceCode": {
329
- "code": "export const code = async (inputs) => {\n // Normaliza chaves removendo espaços extras\n const normalizedInputs = {};\n for (const key in inputs) {\n normalizedInputs[key.trim()] = inputs[key];\n }\n inputs = normalizedInputs;\n // ===== Normaliza telefone =====\n let telefoneContato = '';\n let telefoneContatoFormatado = '';\n if (inputs.telefoneContato) {\n let numeros = String(inputs.telefoneContato).replace(/\\D/g, '');\n // Remove o 55 inicial se já vier com código do país\n if ((numeros.length === 12 || numeros.length === 13) && numeros.startsWith('55')) {\n numeros = numeros.substring(2);\n }\n if (numeros.length === 11) {\n // Celular com DDD\n const ddd = numeros.substring(0, 2);\n const parte1 = numeros.substring(2, 7);\n const parte2 = numeros.substring(7);\n telefoneContato = `55${numeros}`;\n telefoneContatoFormatado = `+55 (${ddd}) ${parte1}-${parte2}`;\n } else if (numeros.length === 10) {\n // Fixo com DDD\n const ddd = numeros.substring(0, 2);\n const parte1 = numeros.substring(2, 6);\n const parte2 = numeros.substring(6);\n telefoneContato = `55${numeros}`;\n telefoneContatoFormatado = `+55 (${ddd}) ${parte1}-${parte2}`;\n } else {\n telefoneContato = numeros;\n telefoneContatoFormatado = numeros;\n }\n }\n // ===== Normaliza e-mails =====\n let email = '';\n let emailCheck = true;\n if (inputs.email) {\n const emailStr = String(inputs.email);\n if (!emailStr.includes('@')) {\n email = emailStr;\n emailCheck = false;\n } else {\n const emailRegex = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}$/;\n const validos = emailStr\n .split(/[;,\\s]+/)\n .map((e) => e.trim())\n .filter((e) => e && emailRegex.test(e));\n email = Array.from(new Set(validos)).join(', ');\n }\n }\n // ===== Identifica e formata CPF/CNPJ =====\n let cpf = '';\n let cnpj = '';\n let tipo = '';\n if (inputs.cnpjOuCpf) {\n const doc = String(inputs.cnpjOuCpf).replace(/\\D/g, '');\n if (doc.length === 11) {\n cpf = `${doc.substring(0, 3)}.${doc.substring(3, 6)}.${doc.substring(6, 9)}-${doc.substring(9)}`;\n tipo = 'cpf';\n } else if (doc.length === 14) {\n cnpj = `${doc.substring(0, 2)}.${doc.substring(2, 5)}.${doc.substring(5, 8)}/${doc.substring(8, 12)}-${doc.substring(12)}`;\n tipo = 'cnpj';\n }\n }\n // ===== Normaliza vínculo a grupo econômico =====\n let vinculoGrupoEconomico = '';\n if (inputs.vinculoGrupoEconomico !== undefined && inputs.vinculoGrupoEconomico !== null) {\n const valor = String(inputs.vinculoGrupoEconomico).trim().toLowerCase();\n if (valor === 'true' || valor === 'sim' || valor === '1') {\n vinculoGrupoEconomico = 'Sim';\n } else if (valor === 'false' || valor === 'não' || valor === 'nao' || valor === '0') {\n vinculoGrupoEconomico = 'Não';\n }\n }\n return {\n telefoneContato,\n telefoneContatoFormatado,\n email,\n emailCheck,\n tipo,\n cpf,\n cnpj,\n vinculoGrupoEconomico,\n };\n};",
330
- "packageJson": "{}"
331
- },
332
- "errorHandlingOptions": {
333
- "retryOnFailure": {
334
- "value": false
335
- },
336
- "continueOnFailure": {
337
- "value": false
338
- }
339
- }
340
- },
341
- "nextAction": {
342
- "name": "step_4",
343
- "skip": false,
344
- "type": "PIECE",
345
- "valid": true,
346
- "settings": {
347
- "input": {
348
- "auth": "{{connections['exampleConnectionId3']}}",
349
- "pipeId": "200000004",
350
- "organizationId": "100000001",
351
- "startFormFields": {
352
- "cpf": "{{step_15['output']['cpf']}}",
353
- "base": "{{trigger['output']['data']['origem']}}",
354
- "cnpj": "{{step_15['output']['cnpj']}}",
355
- "nome": "{{trigger['output']['data']['cedente']['nome']}}",
356
- "email": "{{step_15['output']['email']}}",
357
- "endere_o": "{{trigger['output']['data']['cedente']['endereco']}}",
358
- "idcedente": "{{trigger['output']['data']['cedente']['idCedente']}}",
359
- "empresacodigo": "{{trigger['output']['data']['empresaCodigo']}}",
360
- "card_id_titulo": "{{trigger['output']['data']['cardIdTitulo']}}",
361
- "data_de_cadastro": "{{trigger['output']['data']['cedente']['dataCadastro']}}",
362
- "analista_respons_vel": [],
363
- "id_do_grupo_principal": "{{trigger['output']['data']['cedente']['idGrupoPrincipal']}}",
364
- "v_nculo_com_grupo_econ_mico": "{{step_15['output']['vinculoGrupoEconomico']}}",
365
- "nome_do_analista_respons_vel": "{{trigger['output']['data']['cedente']['analistaResponsavel']}}"
366
- }
367
- },
368
- "pieceName": "@activepieces/piece-pipefy",
369
- "actionName": "createCard",
370
- "sampleData": {},
371
- "pieceVersion": "0.1.7",
372
- "propertySettings": {
373
- "pipeId": {
374
- "type": "MANUAL"
375
- },
376
- "organizationId": {
377
- "type": "MANUAL"
378
- },
379
- "startFormFields": {
380
- "type": "MANUAL",
381
- "schema": {
382
- "cep": {
383
- "type": "SHORT_TEXT",
384
- "required": false,
385
- "description": "\"cedente\"\n\"cep\"",
386
- "displayName": "CEP"
387
- },
388
- "cpf": {
389
- "type": "SHORT_TEXT",
390
- "required": false,
391
- "description": "\"cedente\"\n\"cnpjOuCpf\"",
392
- "displayName": "CPF"
393
- },
394
- "base": {
395
- "type": "SHORT_TEXT",
396
- "required": false,
397
- "description": "",
398
- "displayName": "Base"
399
- },
400
- "cnpj": {
401
- "type": "SHORT_TEXT",
402
- "required": false,
403
- "description": "\"cedente\"\n\"cnpjOuCpf\"",
404
- "displayName": "CNPJ"
405
- },
406
- "nome": {
407
- "type": "SHORT_TEXT",
408
- "required": false,
409
- "description": "\"cedente\"\n\"nome\"",
410
- "displayName": "Nome"
411
- },
412
- "email": {
413
- "type": "LONG_TEXT",
414
- "required": false,
415
- "description": "\"cedente\"\n\"email\"",
416
- "displayName": "E-mail"
417
- },
418
- "cidade": {
419
- "type": "SHORT_TEXT",
420
- "required": false,
421
- "description": "\"cedente\"\n\"cidade\"",
422
- "displayName": "Cidade"
423
- },
424
- "estado": {
425
- "type": "SHORT_TEXT",
426
- "required": false,
427
- "description": "\"cedente\"\n\"estado\"",
428
- "displayName": "Estado"
429
- },
430
- "d_start": {
431
- "type": "SHORT_TEXT",
432
- "required": false,
433
- "description": "⚙️ Quando o card for criado colocar D Start padrão (Automação)",
434
- "displayName": "D Start"
435
- },
436
- "endere_o": {
437
- "type": "LONG_TEXT",
438
- "required": false,
439
- "description": "\"cedente\"\n\"endereco\"",
440
- "displayName": "Endereço"
441
- },
442
- "idcedente": {
443
- "type": "SHORT_TEXT",
444
- "required": false,
445
- "description": "\"cedente\"\n\"idCedente\"",
446
- "displayName": "ID Cedente (Barramento)"
447
- },
448
- "empresacodigo": {
449
- "type": "SHORT_TEXT",
450
- "required": false,
451
- "description": "\"cedente\"\n\"codigoEmpresa\"",
452
- "displayName": "empresaCodigo"
453
- },
454
- "card_id_titulo": {
455
- "type": "SHORT_TEXT",
456
- "required": false,
457
- "description": "",
458
- "displayName": "[AUX] card_id_titulo"
459
- },
460
- "data_de_cadastro": {
461
- "type": "SHORT_TEXT",
462
- "required": false,
463
- "description": "\"cedente\"\n\"dataCadastro\"",
464
- "displayName": "Data de cadastro"
465
- },
466
- "telefone_de_contato": {
467
- "type": "NUMBER",
468
- "required": false,
469
- "description": "\"cedente\"\n\"telefoneContato\"",
470
- "displayName": "Telefone de contato"
471
- },
472
- "analista_respons_vel": {
473
- "type": "STATIC_MULTI_SELECT_DROPDOWN",
474
- "options": {
475
- "options": [],
476
- "disabled": false
477
- },
478
- "required": false,
479
- "description": "⚙️ Quando o campo \"Nome do analista responsável\" for preenchido. Buscar nome na base \"DB - Analista responsável\" e popular o campo com o responsável",
480
- "displayName": "Analista responsável"
481
- },
482
- "aux_nome_respons_vel": {
483
- "type": "SHORT_TEXT",
484
- "required": false,
485
- "description": "",
486
- "displayName": "aux - nome_responsável"
487
- },
488
- "id_do_grupo_principal": {
489
- "type": "NUMBER",
490
- "required": false,
491
- "description": "\"cedente\"\n\"idGrupoPrincipal\"\n⚙️ vai ser utilizado para quando alterar o responsável de um cedente do grupo muda de todos os outros cedentes deste mesmo grupo",
492
- "displayName": "ID do grupo principal"
493
- },
494
- "observa_es_da_carteira": {
495
- "type": "LONG_TEXT",
496
- "required": false,
497
- "description": "👤 Preenchido pela operação",
498
- "displayName": "Observações da carteira"
499
- },
500
- "db_analista_respons_vel": {
501
- "type": "SHORT_TEXT",
502
- "required": false,
503
- "description": "⚙️ Quando o campo \"Nome do analista responsável\" for preenchido. Buscar nome na base \"DB - Analista responsável\" e popular o campo com o responsável",
504
- "displayName": "DB - Analista responsável"
505
- },
506
- "v_nculo_com_grupo_econ_mico": {
507
- "type": "STATIC_DROPDOWN",
508
- "options": {
509
- "options": [],
510
- "disabled": false
511
- },
512
- "required": false,
513
- "description": "\"cedente\"\n\"vinculoGrupoEconomico\"",
514
- "displayName": "Vínculo com grupo econômico"
515
- },
516
- "nome_do_analista_respons_vel": {
517
- "type": "SHORT_TEXT",
518
- "required": false,
519
- "description": "\"cedente\"\n\"analistaResponsavel\"",
520
- "displayName": "Nome do analista responsável"
521
- },
522
- "aux_buscar_dados_no_barramento": {
523
- "type": "SHORT_TEXT",
524
- "required": false,
525
- "description": "",
526
- "displayName": "[AUX] BUSCAR DADOS NO BARRAMENTO"
527
- }
528
- }
529
- },
530
- "v_nculo_com_grupo_econ_mico": {
531
- "type": "DYNAMIC"
532
- }
533
- },
534
- "errorHandlingOptions": {
535
- "retryOnFailure": {
536
- "value": false
537
- },
538
- "continueOnFailure": {
539
- "value": false
540
- }
541
- }
542
- },
543
- "nextAction": {
544
- "name": "step_1",
545
- "skip": false,
546
- "type": "PIECE",
547
- "valid": true,
548
- "settings": {
549
- "input": {
550
- "url": {
551
- "url": "https://api.pipefy.com/graphql"
552
- },
553
- "auth": "{{connections['exampleConnectionId3']}}",
554
- "body": {
555
- "data": {
556
- "query": "mutation {\n updateCardField(\n input: {card_id: \"{{step_4['output']['data']['createCard']['card']['id']}}\", field_id:\"telefone_de_contato\",new_value:\"{{step_15['output']['telefoneContatoFormatado']}}\"}\n ) {\n clientMutationId\n }\n}\n",
557
- "variables": null
558
- }
559
- },
560
- "method": "POST",
561
- "headers": {},
562
- "failsafe": false,
563
- "body_type": "json",
564
- "queryParams": {},
565
- "followRedirects": false,
566
- "response_is_binary": false
567
- },
568
- "pieceName": "@activepieces/piece-pipefy",
569
- "actionName": "custom_api_call",
570
- "sampleData": {},
571
- "pieceVersion": "0.1.7",
572
- "propertySettings": {
573
- "url": {
574
- "type": "MANUAL",
575
- "schema": {
576
- "url": {
577
- "type": "SHORT_TEXT",
578
- "required": true,
579
- "description": "You can either use the full URL or the relative path to the base URL\ni.e https://api.pipefy.com/graphql/resource or /resource",
580
- "displayName": "URL",
581
- "defaultValue": "https://api.pipefy.com/graphql"
582
- }
583
- }
584
- },
585
- "body": {
586
- "type": "MANUAL",
587
- "schema": {
588
- "data": {
589
- "type": "JSON",
590
- "required": true,
591
- "displayName": "JSON Body"
592
- }
593
- }
594
- },
595
- "method": {
596
- "type": "MANUAL"
597
- },
598
- "headers": {
599
- "type": "MANUAL"
600
- },
601
- "timeout": {
602
- "type": "MANUAL"
603
- },
604
- "failsafe": {
605
- "type": "MANUAL"
606
- },
607
- "body_type": {
608
- "type": "MANUAL"
609
- },
610
- "queryParams": {
611
- "type": "MANUAL"
612
- },
613
- "followRedirects": {
614
- "type": "MANUAL"
615
- },
616
- "response_is_binary": {
617
- "type": "MANUAL"
618
- }
619
- },
620
- "errorHandlingOptions": {
621
- "retryOnFailure": {
622
- "value": false
623
- },
624
- "continueOnFailure": {
625
- "value": false
626
- }
627
- }
628
- },
629
- "nextAction": {
630
- "name": "step_9",
631
- "skip": false,
632
- "type": "PIECE",
633
- "valid": true,
634
- "settings": {
635
- "input": {
636
- "mode": "simple",
637
- "response": {
638
- "response": {
639
- "cardId": "{{step_4['output']['data']['createCard']['card']['id']}}"
640
- }
641
- }
642
- },
643
- "pieceName": "@activepieces/piece-subflows",
644
- "actionName": "returnResponse",
645
- "sampleData": {},
646
- "pieceVersion": "0.4.12",
647
- "propertySettings": {
648
- "mode": {
649
- "type": "MANUAL"
650
- },
651
- "response": {
652
- "type": "MANUAL",
653
- "schema": {
654
- "response": {
655
- "type": "OBJECT",
656
- "required": true,
657
- "displayName": "Response"
658
- }
659
- }
660
- }
661
- },
662
- "errorHandlingOptions": {
663
- "retryOnFailure": {
664
- "value": false
665
- },
666
- "continueOnFailure": {
667
- "value": false
668
- }
669
- }
670
- },
671
- "nextAction": {
672
- "name": "step_12",
673
- "skip": false,
674
- "type": "PIECE",
675
- "valid": true,
676
- "settings": {
677
- "input": {
678
- "url": "{{variables['PRD_BASE_URL']}}/v1/orderby/consultations/cedentes/{{trigger['output']['data']['cedente']['idCedente']}}?codigoEmpresa={{trigger['output']['data']['empresaCodigo']}}&origem={{trigger['output']['data']['origem']}}",
679
- "auth": "{{connections['exampleConnectionId1']}}",
680
- "body": {},
681
- "method": "GET",
682
- "headers": {
683
- "timestamp": "{{step_16['output']['result']}}",
684
- "Content-Type": "application/json",
685
- "correlation-id": "123e4567-e89b-12d3-a456-426614174000"
686
- },
687
- "failsafe": false,
688
- "body_type": "none",
689
- "use_proxy": false,
690
- "queryParams": {},
691
- "proxy_settings": {}
692
- },
693
- "pieceName": "@activepieces/piece-http-oauth2",
694
- "actionName": "send-oauth2-request",
695
- "sampleData": {},
696
- "pieceVersion": "0.2.5",
697
- "propertySettings": {
698
- "url": {
699
- "type": "MANUAL"
700
- },
701
- "body": {
702
- "type": "MANUAL",
703
- "schema": {}
704
- },
705
- "method": {
706
- "type": "MANUAL"
707
- },
708
- "headers": {
709
- "type": "MANUAL"
710
- },
711
- "timeout": {
712
- "type": "MANUAL"
713
- },
714
- "failsafe": {
715
- "type": "MANUAL"
716
- },
717
- "body_type": {
718
- "type": "MANUAL"
719
- },
720
- "use_proxy": {
721
- "type": "MANUAL"
722
- },
723
- "queryParams": {
724
- "type": "MANUAL"
725
- },
726
- "proxy_settings": {
727
- "type": "MANUAL",
728
- "schema": {}
729
- }
730
- },
731
- "errorHandlingOptions": {
732
- "retryOnFailure": {
733
- "value": false
734
- },
735
- "continueOnFailure": {
736
- "value": false
737
- }
738
- }
739
- },
740
- "displayName": "Consulta Cedente",
741
- "lastUpdatedDate": "2026-08-24T14:59:54.265Z"
742
- },
743
- "displayName": "Retornar cardId Copy",
744
- "lastUpdatedDate": "2026-08-24T14:59:54.265Z"
745
- },
746
- "displayName": "atualização Telefone {\"query\":\"mutation {\\n updateCardField(\\n input: {card_id: \\\"0\\\", field_id:\\\"telefone_de_contato\\\",new_value:\\\"+55 (11) 2222-3333\\\"}\\n ) {\\n clientMutationId\\n }\\n}\\n\",\"variables\":null} Copy",
747
- "lastUpdatedDate": "2026-08-24T14:59:54.264Z"
748
- },
749
- "displayName": "Create card",
750
- "lastUpdatedDate": "2026-08-24T14:59:54.264Z"
751
- },
752
- "displayName": "Normalização",
753
- "lastUpdatedDate": "2026-08-24T14:59:54.264Z"
754
- }
755
- ],
756
- "settings": {
757
- "branches": [
758
- {
759
- "branchName": "Existe e atualizar",
760
- "branchType": "CONDITION",
761
- "conditions": [
762
- [
763
- {
764
- "operator": "BOOLEAN_IS_TRUE",
765
- "firstValue": "{{step_13['output']['encontrado']}}"
766
- },
767
- {
768
- "operator": "BOOLEAN_IS_TRUE",
769
- "firstValue": "{{step_13['output']['consultarCedente']}}"
770
- }
771
- ]
772
- ]
773
- },
774
- {
775
- "branchName": "Existe e atualizado",
776
- "branchType": "CONDITION",
777
- "conditions": [
778
- [
779
- {
780
- "operator": "BOOLEAN_IS_TRUE",
781
- "firstValue": "{{step_13['output']['encontrado']}}"
782
- },
783
- {
784
- "operator": "BOOLEAN_IS_FALSE",
785
- "firstValue": "{{step_13['output']['consultarCedente']}}"
786
- }
787
- ]
788
- ]
789
- },
790
- {
791
- "branchName": "Otherwise",
792
- "branchType": "FALLBACK"
793
- }
794
- ],
795
- "sampleData": {},
796
- "executionType": "EXECUTE_FIRST_MATCH"
797
- },
798
- "displayName": "Lista Cedente",
799
- "lastUpdatedDate": "2026-08-24T14:59:54.263Z"
800
- },
801
- "displayName": "Get Current Date",
802
- "lastUpdatedDate": "2026-08-24T14:59:54.263Z"
803
- },
804
- "displayName": "Conferência id e codigoEmpresa",
805
- "lastUpdatedDate": "2026-08-24T14:59:54.263Z"
806
- },
807
- "displayName": "Buscar Sacado",
808
- "lastUpdatedDate": "2026-08-24T14:59:54.333Z"
809
- },
810
- "lastUpdatedDate": "2026-08-24T14:59:54.262Z",
811
- "type": "PIECE_TRIGGER",
812
- "settings": {
813
- "sampleData": {},
814
- "propertySettings": {
815
- "mode": {
816
- "type": "MANUAL"
817
- },
818
- "exampleData": {
819
- "type": "MANUAL",
820
- "schema": {
821
- "sampleData": {
822
- "type": "example",
823
- "required": false,
824
- "displayName": "example"
825
- }
826
- }
827
- }
828
- },
829
- "pieceName": "@activepieces/piece-subflows",
830
- "pieceVersion": "0.4.12",
831
- "triggerName": "callableFlow",
832
- "input": {
833
- "mode": "advanced",
834
- "exampleData": {
835
- "sampleData": {
836
- "origem": "example",
837
- "cedente": {
838
- "nome": "example",
839
- "email": "example",
840
- "endereco": "example",
841
- "cnpjOuCpf": "example",
842
- "idCedente": 0,
843
- "dataCadastro": "example",
844
- "codigoEmpresa": 0,
845
- "telefoneContato": "example",
846
- "idGrupoPrincipal": 0,
847
- "analistaResponsavel": "example",
848
- "vinculoGrupoEconomico": false
849
- },
850
- "cardIdTitulo": "example",
851
- "empresaCodigo": 0
852
- }
853
- }
854
- }
855
- }
856
- },
857
- "valid": true,
858
- "schemaVersion": "22",
859
- "notes": []
860
- }
861
- ],
862
- "status": "PUBLISHED"
863
- }
1
+ {
2
+ "name": "✅[PRD][4/4 SUBFLOW][CRIAÇÃO] CEDENTE",
3
+ "type": "SHARED",
4
+ "summary": "",
5
+ "description": "",
6
+ "tags": [],
7
+ "blogUrl": "",
8
+ "metadata": {
9
+ "externalId": "exampleFlowId11aaaaaa"
10
+ },
11
+ "author": "Integrações Ipaas 000000000",
12
+ "categories": [],
13
+ "pieces": [
14
+ "@activepieces/piece-subflows",
15
+ "@activepieces/piece-pipefy",
16
+ "@activepieces/piece-date-helper",
17
+ "@activepieces/piece-http-oauth2"
18
+ ],
19
+ "flows": [
20
+ {
21
+ "displayName": "✅[PRD][4/4 SUBFLOW][CRIAÇÃO] CEDENTE",
22
+ "trigger": {
23
+ "name": "trigger",
24
+ "valid": true,
25
+ "displayName": "Callable Flow",
26
+ "nextAction": {
27
+ "name": "step_2",
28
+ "type": "PIECE",
29
+ "valid": true,
30
+ "settings": {
31
+ "input": {
32
+ "auth": "{{connections['exampleConnectionId3']}}",
33
+ "pipeId": "200000004",
34
+ "fieldId": "idcedente",
35
+ "comments": [],
36
+ "assignees": [],
37
+ "card_info": [
38
+ "uuid",
39
+ "suid",
40
+ "age",
41
+ "title",
42
+ "comments_count",
43
+ "createdAt",
44
+ "current_phase_age",
45
+ "done",
46
+ "due_date",
47
+ "emailMessagingAddress",
48
+ "expired",
49
+ "late",
50
+ "started_current_phase_at",
51
+ "updated_at",
52
+ "url",
53
+ "creatorEmail",
54
+ "current_phase"
55
+ ],
56
+ "created_by": [],
57
+ "fieldValue": "{{trigger['output']['data']['cedente']['idCedente']}}",
58
+ "attachments": [],
59
+ "inbox_emails": [],
60
+ "organizationId": "100000001",
61
+ "phases_history": [],
62
+ "child_relations": [],
63
+ "parent_relations": []
64
+ },
65
+ "pieceName": "@activepieces/piece-pipefy",
66
+ "actionName": "getCardsByFieldValue",
67
+ "sampleData": {},
68
+ "pieceVersion": "0.2.0",
69
+ "propertySettings": {
70
+ "pipeId": {
71
+ "type": "MANUAL"
72
+ },
73
+ "fieldId": {
74
+ "type": "MANUAL"
75
+ },
76
+ "fieldValue": {
77
+ "type": "MANUAL"
78
+ },
79
+ "organizationId": {
80
+ "type": "MANUAL"
81
+ }
82
+ },
83
+ "errorHandlingOptions": {
84
+ "retryOnFailure": {
85
+ "value": false
86
+ },
87
+ "continueOnFailure": {
88
+ "value": false
89
+ }
90
+ }
91
+ },
92
+ "nextAction": {
93
+ "name": "step_13",
94
+ "skip": false,
95
+ "type": "CODE",
96
+ "valid": true,
97
+ "settings": {
98
+ "input": {
99
+ "cards": "{{step_2['output']['data']['cards']}}",
100
+ "empresaCodigo": "{{trigger['output']['data']['empresaCodigo']}}"
101
+ },
102
+ "sampleData": {},
103
+ "sourceCode": {
104
+ "code": "export const code = async (inputs) => {\n const alvo = String(inputs.empresaCodigo ?? '').trim();\n\n const card = inputs.cards.find(\n c => String(c.fields?.empresacodigo?.value ?? '').trim() === alvo\n );\n\n // Compara datas no fuso de São Paulo (dia útil BR)\n const emSaoPaulo = (data) =>\n new Intl.DateTimeFormat('en-CA', {\n timeZone: 'America/Sao_Paulo',\n year: 'numeric',\n month: '2-digit',\n day: '2-digit',\n }).format(data); // => \"YYYY-MM-DD\"\n\n let atualizadoHoje = false;\n if (card?.updated_at) {\n const dataAtualizacao = new Date(card.updated_at);\n if (!isNaN(dataAtualizacao)) {\n atualizadoHoje = emSaoPaulo(dataAtualizacao) === emSaoPaulo(new Date());\n }\n }\n\n return {\n cardId: card?.id ?? null,\n encontrado: !!card,\n // Se foi atualizado hoje, não precisa consultar o cedente novamente\n consultarCedente: card ? !atualizadoHoje : true,\n };\n};",
105
+ "packageJson": "{}"
106
+ },
107
+ "errorHandlingOptions": {
108
+ "retryOnFailure": {
109
+ "value": false
110
+ },
111
+ "continueOnFailure": {
112
+ "value": false
113
+ }
114
+ }
115
+ },
116
+ "nextAction": {
117
+ "name": "step_16",
118
+ "skip": false,
119
+ "type": "PIECE",
120
+ "valid": true,
121
+ "settings": {
122
+ "input": {
123
+ "timeZone": "America/Sao_Paulo",
124
+ "timeFormat": "YYYY-MM-DDTHH:mm:ss"
125
+ },
126
+ "pieceName": "@activepieces/piece-date-helper",
127
+ "actionName": "get_current_date",
128
+ "sampleData": {},
129
+ "pieceVersion": "0.1.28",
130
+ "propertySettings": {
131
+ "timeZone": {
132
+ "type": "MANUAL"
133
+ },
134
+ "timeFormat": {
135
+ "type": "MANUAL"
136
+ }
137
+ },
138
+ "errorHandlingOptions": {
139
+ "retryOnFailure": {
140
+ "value": false
141
+ },
142
+ "continueOnFailure": {
143
+ "value": false
144
+ }
145
+ }
146
+ },
147
+ "nextAction": {
148
+ "name": "step_3",
149
+ "skip": false,
150
+ "type": "ROUTER",
151
+ "valid": true,
152
+ "children": [
153
+ {
154
+ "name": "step_17",
155
+ "skip": false,
156
+ "type": "PIECE",
157
+ "valid": true,
158
+ "settings": {
159
+ "input": {
160
+ "url": "{{variables['PRD_BASE_URL']}}/v1/orderby/consultations/cedentes/{{trigger['output']['data']['cedente']['idCedente']}}?codigoEmpresa={{trigger['output']['data']['empresaCodigo']}}&origem={{trigger['output']['data']['origem']}}",
161
+ "auth": "{{connections['exampleConnectionId1']}}",
162
+ "body": {},
163
+ "method": "GET",
164
+ "headers": {
165
+ "timestamp": "{{step_16['output']['result']}}",
166
+ "Content-Type": "application/json",
167
+ "correlation-id": "123e4567-e89b-12d3-a456-426614174000"
168
+ },
169
+ "failsafe": false,
170
+ "body_type": "none",
171
+ "use_proxy": false,
172
+ "queryParams": {},
173
+ "proxy_settings": {}
174
+ },
175
+ "pieceName": "@activepieces/piece-http-oauth2",
176
+ "actionName": "send-oauth2-request",
177
+ "sampleData": {},
178
+ "pieceVersion": "0.2.5",
179
+ "propertySettings": {
180
+ "url": {
181
+ "type": "MANUAL"
182
+ },
183
+ "body": {
184
+ "type": "MANUAL",
185
+ "schema": {}
186
+ },
187
+ "method": {
188
+ "type": "MANUAL"
189
+ },
190
+ "headers": {
191
+ "type": "MANUAL"
192
+ },
193
+ "timeout": {
194
+ "type": "MANUAL"
195
+ },
196
+ "failsafe": {
197
+ "type": "MANUAL"
198
+ },
199
+ "body_type": {
200
+ "type": "MANUAL"
201
+ },
202
+ "use_proxy": {
203
+ "type": "MANUAL"
204
+ },
205
+ "queryParams": {
206
+ "type": "MANUAL"
207
+ },
208
+ "proxy_settings": {
209
+ "type": "MANUAL",
210
+ "schema": {}
211
+ }
212
+ },
213
+ "errorHandlingOptions": {
214
+ "retryOnFailure": {
215
+ "value": false
216
+ },
217
+ "continueOnFailure": {
218
+ "value": false
219
+ }
220
+ }
221
+ },
222
+ "nextAction": {
223
+ "name": "step_10",
224
+ "skip": false,
225
+ "type": "PIECE",
226
+ "valid": true,
227
+ "settings": {
228
+ "input": {
229
+ "mode": "simple",
230
+ "response": {
231
+ "response": {
232
+ "cardId": "{{step_13['output']['cardId']}}"
233
+ }
234
+ }
235
+ },
236
+ "pieceName": "@activepieces/piece-subflows",
237
+ "actionName": "returnResponse",
238
+ "sampleData": {},
239
+ "pieceVersion": "0.4.12",
240
+ "propertySettings": {
241
+ "mode": {
242
+ "type": "MANUAL"
243
+ },
244
+ "response": {
245
+ "type": "MANUAL",
246
+ "schema": {
247
+ "response": {
248
+ "type": "OBJECT",
249
+ "required": true,
250
+ "displayName": "Response"
251
+ }
252
+ }
253
+ }
254
+ },
255
+ "errorHandlingOptions": {
256
+ "retryOnFailure": {
257
+ "value": false
258
+ },
259
+ "continueOnFailure": {
260
+ "value": false
261
+ }
262
+ }
263
+ },
264
+ "displayName": "Retornar cardId",
265
+ "lastUpdatedDate": "2026-08-24T14:59:54.263Z"
266
+ },
267
+ "displayName": "Consulta Cedente",
268
+ "lastUpdatedDate": "2026-08-24T14:59:54.263Z"
269
+ },
270
+ {
271
+ "name": "step_6",
272
+ "skip": false,
273
+ "type": "PIECE",
274
+ "valid": true,
275
+ "settings": {
276
+ "input": {
277
+ "mode": "simple",
278
+ "response": {
279
+ "response": {
280
+ "cardId": "{{step_13['output']['cardId']}}"
281
+ }
282
+ }
283
+ },
284
+ "pieceName": "@activepieces/piece-subflows",
285
+ "actionName": "returnResponse",
286
+ "sampleData": {},
287
+ "pieceVersion": "0.4.12",
288
+ "propertySettings": {
289
+ "mode": {
290
+ "type": "MANUAL"
291
+ },
292
+ "response": {
293
+ "type": "MANUAL",
294
+ "schema": {
295
+ "response": {
296
+ "type": "OBJECT",
297
+ "required": true,
298
+ "displayName": "Response"
299
+ }
300
+ }
301
+ }
302
+ },
303
+ "errorHandlingOptions": {
304
+ "retryOnFailure": {
305
+ "value": false
306
+ },
307
+ "continueOnFailure": {
308
+ "value": false
309
+ }
310
+ }
311
+ },
312
+ "displayName": "Retornar cardId Copy",
313
+ "lastUpdatedDate": "2026-08-24T14:59:54.264Z"
314
+ },
315
+ {
316
+ "name": "step_15",
317
+ "skip": false,
318
+ "type": "CODE",
319
+ "valid": true,
320
+ "settings": {
321
+ "input": {
322
+ "email": "{{trigger['output']['data']['cedente']['email']}}",
323
+ "cnpjOuCpf": "{{trigger['output']['data']['cedente']['cnpjOuCpf']}}",
324
+ "telefoneContato ": "{{trigger['output']['data']['cedente']['telefoneContato']}}",
325
+ "vinculoGrupoEconomico": "{{trigger['output']['data']['cedente']['vinculoGrupoEconomico']}}"
326
+ },
327
+ "sampleData": {},
328
+ "sourceCode": {
329
+ "code": "export const code = async (inputs) => {\n // Normaliza chaves removendo espaços extras\n const normalizedInputs = {};\n for (const key in inputs) {\n normalizedInputs[key.trim()] = inputs[key];\n }\n inputs = normalizedInputs;\n // ===== Normaliza telefone =====\n let telefoneContato = '';\n let telefoneContatoFormatado = '';\n if (inputs.telefoneContato) {\n let numeros = String(inputs.telefoneContato).replace(/\\D/g, '');\n // Remove o 55 inicial se já vier com código do país\n if ((numeros.length === 12 || numeros.length === 13) && numeros.startsWith('55')) {\n numeros = numeros.substring(2);\n }\n if (numeros.length === 11) {\n // Celular com DDD\n const ddd = numeros.substring(0, 2);\n const parte1 = numeros.substring(2, 7);\n const parte2 = numeros.substring(7);\n telefoneContato = `55${numeros}`;\n telefoneContatoFormatado = `+55 (${ddd}) ${parte1}-${parte2}`;\n } else if (numeros.length === 10) {\n // Fixo com DDD\n const ddd = numeros.substring(0, 2);\n const parte1 = numeros.substring(2, 6);\n const parte2 = numeros.substring(6);\n telefoneContato = `55${numeros}`;\n telefoneContatoFormatado = `+55 (${ddd}) ${parte1}-${parte2}`;\n } else {\n telefoneContato = numeros;\n telefoneContatoFormatado = numeros;\n }\n }\n // ===== Normaliza e-mails =====\n let email = '';\n let emailCheck = true;\n if (inputs.email) {\n const emailStr = String(inputs.email);\n if (!emailStr.includes('@')) {\n email = emailStr;\n emailCheck = false;\n } else {\n const emailRegex = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}$/;\n const validos = emailStr\n .split(/[;,\\s]+/)\n .map((e) => e.trim())\n .filter((e) => e && emailRegex.test(e));\n email = Array.from(new Set(validos)).join(', ');\n }\n }\n // ===== Identifica e formata CPF/CNPJ =====\n let cpf = '';\n let cnpj = '';\n let tipo = '';\n if (inputs.cnpjOuCpf) {\n const doc = String(inputs.cnpjOuCpf).replace(/\\D/g, '');\n if (doc.length === 11) {\n cpf = `${doc.substring(0, 3)}.${doc.substring(3, 6)}.${doc.substring(6, 9)}-${doc.substring(9)}`;\n tipo = 'cpf';\n } else if (doc.length === 14) {\n cnpj = `${doc.substring(0, 2)}.${doc.substring(2, 5)}.${doc.substring(5, 8)}/${doc.substring(8, 12)}-${doc.substring(12)}`;\n tipo = 'cnpj';\n }\n }\n // ===== Normaliza vínculo a grupo econômico =====\n let vinculoGrupoEconomico = '';\n if (inputs.vinculoGrupoEconomico !== undefined && inputs.vinculoGrupoEconomico !== null) {\n const valor = String(inputs.vinculoGrupoEconomico).trim().toLowerCase();\n if (valor === 'true' || valor === 'sim' || valor === '1') {\n vinculoGrupoEconomico = 'Sim';\n } else if (valor === 'false' || valor === 'não' || valor === 'nao' || valor === '0') {\n vinculoGrupoEconomico = 'Não';\n }\n }\n return {\n telefoneContato,\n telefoneContatoFormatado,\n email,\n emailCheck,\n tipo,\n cpf,\n cnpj,\n vinculoGrupoEconomico,\n };\n};",
330
+ "packageJson": "{}"
331
+ },
332
+ "errorHandlingOptions": {
333
+ "retryOnFailure": {
334
+ "value": false
335
+ },
336
+ "continueOnFailure": {
337
+ "value": false
338
+ }
339
+ }
340
+ },
341
+ "nextAction": {
342
+ "name": "step_4",
343
+ "skip": false,
344
+ "type": "PIECE",
345
+ "valid": true,
346
+ "settings": {
347
+ "input": {
348
+ "auth": "{{connections['exampleConnectionId3']}}",
349
+ "pipeId": "200000004",
350
+ "organizationId": "100000001",
351
+ "startFormFields": {
352
+ "cpf": "{{step_15['output']['cpf']}}",
353
+ "base": "{{trigger['output']['data']['origem']}}",
354
+ "cnpj": "{{step_15['output']['cnpj']}}",
355
+ "nome": "{{trigger['output']['data']['cedente']['nome']}}",
356
+ "email": "{{step_15['output']['email']}}",
357
+ "endere_o": "{{trigger['output']['data']['cedente']['endereco']}}",
358
+ "idcedente": "{{trigger['output']['data']['cedente']['idCedente']}}",
359
+ "empresacodigo": "{{trigger['output']['data']['empresaCodigo']}}",
360
+ "card_id_titulo": "{{trigger['output']['data']['cardIdTitulo']}}",
361
+ "data_de_cadastro": "{{trigger['output']['data']['cedente']['dataCadastro']}}",
362
+ "analista_respons_vel": [],
363
+ "id_do_grupo_principal": "{{trigger['output']['data']['cedente']['idGrupoPrincipal']}}",
364
+ "v_nculo_com_grupo_econ_mico": "{{step_15['output']['vinculoGrupoEconomico']}}",
365
+ "nome_do_analista_respons_vel": "{{trigger['output']['data']['cedente']['analistaResponsavel']}}"
366
+ }
367
+ },
368
+ "pieceName": "@activepieces/piece-pipefy",
369
+ "actionName": "createCard",
370
+ "sampleData": {},
371
+ "pieceVersion": "0.1.7",
372
+ "propertySettings": {
373
+ "pipeId": {
374
+ "type": "MANUAL"
375
+ },
376
+ "organizationId": {
377
+ "type": "MANUAL"
378
+ },
379
+ "startFormFields": {
380
+ "type": "MANUAL",
381
+ "schema": {
382
+ "cep": {
383
+ "type": "SHORT_TEXT",
384
+ "required": false,
385
+ "description": "\"cedente\"\n\"cep\"",
386
+ "displayName": "CEP"
387
+ },
388
+ "cpf": {
389
+ "type": "SHORT_TEXT",
390
+ "required": false,
391
+ "description": "\"cedente\"\n\"cnpjOuCpf\"",
392
+ "displayName": "CPF"
393
+ },
394
+ "base": {
395
+ "type": "SHORT_TEXT",
396
+ "required": false,
397
+ "description": "",
398
+ "displayName": "Base"
399
+ },
400
+ "cnpj": {
401
+ "type": "SHORT_TEXT",
402
+ "required": false,
403
+ "description": "\"cedente\"\n\"cnpjOuCpf\"",
404
+ "displayName": "CNPJ"
405
+ },
406
+ "nome": {
407
+ "type": "SHORT_TEXT",
408
+ "required": false,
409
+ "description": "\"cedente\"\n\"nome\"",
410
+ "displayName": "Nome"
411
+ },
412
+ "email": {
413
+ "type": "LONG_TEXT",
414
+ "required": false,
415
+ "description": "\"cedente\"\n\"email\"",
416
+ "displayName": "E-mail"
417
+ },
418
+ "cidade": {
419
+ "type": "SHORT_TEXT",
420
+ "required": false,
421
+ "description": "\"cedente\"\n\"cidade\"",
422
+ "displayName": "Cidade"
423
+ },
424
+ "estado": {
425
+ "type": "SHORT_TEXT",
426
+ "required": false,
427
+ "description": "\"cedente\"\n\"estado\"",
428
+ "displayName": "Estado"
429
+ },
430
+ "d_start": {
431
+ "type": "SHORT_TEXT",
432
+ "required": false,
433
+ "description": "⚙️ Quando o card for criado colocar D Start padrão (Automação)",
434
+ "displayName": "D Start"
435
+ },
436
+ "endere_o": {
437
+ "type": "LONG_TEXT",
438
+ "required": false,
439
+ "description": "\"cedente\"\n\"endereco\"",
440
+ "displayName": "Endereço"
441
+ },
442
+ "idcedente": {
443
+ "type": "SHORT_TEXT",
444
+ "required": false,
445
+ "description": "\"cedente\"\n\"idCedente\"",
446
+ "displayName": "ID Cedente (Barramento)"
447
+ },
448
+ "empresacodigo": {
449
+ "type": "SHORT_TEXT",
450
+ "required": false,
451
+ "description": "\"cedente\"\n\"codigoEmpresa\"",
452
+ "displayName": "empresaCodigo"
453
+ },
454
+ "card_id_titulo": {
455
+ "type": "SHORT_TEXT",
456
+ "required": false,
457
+ "description": "",
458
+ "displayName": "[AUX] card_id_titulo"
459
+ },
460
+ "data_de_cadastro": {
461
+ "type": "SHORT_TEXT",
462
+ "required": false,
463
+ "description": "\"cedente\"\n\"dataCadastro\"",
464
+ "displayName": "Data de cadastro"
465
+ },
466
+ "telefone_de_contato": {
467
+ "type": "NUMBER",
468
+ "required": false,
469
+ "description": "\"cedente\"\n\"telefoneContato\"",
470
+ "displayName": "Telefone de contato"
471
+ },
472
+ "analista_respons_vel": {
473
+ "type": "STATIC_MULTI_SELECT_DROPDOWN",
474
+ "options": {
475
+ "options": [],
476
+ "disabled": false
477
+ },
478
+ "required": false,
479
+ "description": "⚙️ Quando o campo \"Nome do analista responsável\" for preenchido. Buscar nome na base \"DB - Analista responsável\" e popular o campo com o responsável",
480
+ "displayName": "Analista responsável"
481
+ },
482
+ "aux_nome_respons_vel": {
483
+ "type": "SHORT_TEXT",
484
+ "required": false,
485
+ "description": "",
486
+ "displayName": "aux - nome_responsável"
487
+ },
488
+ "id_do_grupo_principal": {
489
+ "type": "NUMBER",
490
+ "required": false,
491
+ "description": "\"cedente\"\n\"idGrupoPrincipal\"\n⚙️ vai ser utilizado para quando alterar o responsável de um cedente do grupo muda de todos os outros cedentes deste mesmo grupo",
492
+ "displayName": "ID do grupo principal"
493
+ },
494
+ "observa_es_da_carteira": {
495
+ "type": "LONG_TEXT",
496
+ "required": false,
497
+ "description": "👤 Preenchido pela operação",
498
+ "displayName": "Observações da carteira"
499
+ },
500
+ "db_analista_respons_vel": {
501
+ "type": "SHORT_TEXT",
502
+ "required": false,
503
+ "description": "⚙️ Quando o campo \"Nome do analista responsável\" for preenchido. Buscar nome na base \"DB - Analista responsável\" e popular o campo com o responsável",
504
+ "displayName": "DB - Analista responsável"
505
+ },
506
+ "v_nculo_com_grupo_econ_mico": {
507
+ "type": "STATIC_DROPDOWN",
508
+ "options": {
509
+ "options": [],
510
+ "disabled": false
511
+ },
512
+ "required": false,
513
+ "description": "\"cedente\"\n\"vinculoGrupoEconomico\"",
514
+ "displayName": "Vínculo com grupo econômico"
515
+ },
516
+ "nome_do_analista_respons_vel": {
517
+ "type": "SHORT_TEXT",
518
+ "required": false,
519
+ "description": "\"cedente\"\n\"analistaResponsavel\"",
520
+ "displayName": "Nome do analista responsável"
521
+ },
522
+ "aux_buscar_dados_no_barramento": {
523
+ "type": "SHORT_TEXT",
524
+ "required": false,
525
+ "description": "",
526
+ "displayName": "[AUX] BUSCAR DADOS NO BARRAMENTO"
527
+ }
528
+ }
529
+ },
530
+ "v_nculo_com_grupo_econ_mico": {
531
+ "type": "DYNAMIC"
532
+ }
533
+ },
534
+ "errorHandlingOptions": {
535
+ "retryOnFailure": {
536
+ "value": false
537
+ },
538
+ "continueOnFailure": {
539
+ "value": false
540
+ }
541
+ }
542
+ },
543
+ "nextAction": {
544
+ "name": "step_1",
545
+ "skip": false,
546
+ "type": "PIECE",
547
+ "valid": true,
548
+ "settings": {
549
+ "input": {
550
+ "url": {
551
+ "url": "https://api.pipefy.com/graphql"
552
+ },
553
+ "auth": "{{connections['exampleConnectionId3']}}",
554
+ "body": {
555
+ "data": {
556
+ "query": "mutation {\n updateCardField(\n input: {card_id: \"{{step_4['output']['data']['createCard']['card']['id']}}\", field_id:\"telefone_de_contato\",new_value:\"{{step_15['output']['telefoneContatoFormatado']}}\"}\n ) {\n clientMutationId\n }\n}\n",
557
+ "variables": null
558
+ }
559
+ },
560
+ "method": "POST",
561
+ "headers": {},
562
+ "failsafe": false,
563
+ "body_type": "json",
564
+ "queryParams": {},
565
+ "followRedirects": false,
566
+ "response_is_binary": false
567
+ },
568
+ "pieceName": "@activepieces/piece-pipefy",
569
+ "actionName": "custom_api_call",
570
+ "sampleData": {},
571
+ "pieceVersion": "0.1.7",
572
+ "propertySettings": {
573
+ "url": {
574
+ "type": "MANUAL",
575
+ "schema": {
576
+ "url": {
577
+ "type": "SHORT_TEXT",
578
+ "required": true,
579
+ "description": "You can either use the full URL or the relative path to the base URL\ni.e https://api.pipefy.com/graphql/resource or /resource",
580
+ "displayName": "URL",
581
+ "defaultValue": "https://api.pipefy.com/graphql"
582
+ }
583
+ }
584
+ },
585
+ "body": {
586
+ "type": "MANUAL",
587
+ "schema": {
588
+ "data": {
589
+ "type": "JSON",
590
+ "required": true,
591
+ "displayName": "JSON Body"
592
+ }
593
+ }
594
+ },
595
+ "method": {
596
+ "type": "MANUAL"
597
+ },
598
+ "headers": {
599
+ "type": "MANUAL"
600
+ },
601
+ "timeout": {
602
+ "type": "MANUAL"
603
+ },
604
+ "failsafe": {
605
+ "type": "MANUAL"
606
+ },
607
+ "body_type": {
608
+ "type": "MANUAL"
609
+ },
610
+ "queryParams": {
611
+ "type": "MANUAL"
612
+ },
613
+ "followRedirects": {
614
+ "type": "MANUAL"
615
+ },
616
+ "response_is_binary": {
617
+ "type": "MANUAL"
618
+ }
619
+ },
620
+ "errorHandlingOptions": {
621
+ "retryOnFailure": {
622
+ "value": false
623
+ },
624
+ "continueOnFailure": {
625
+ "value": false
626
+ }
627
+ }
628
+ },
629
+ "nextAction": {
630
+ "name": "step_9",
631
+ "skip": false,
632
+ "type": "PIECE",
633
+ "valid": true,
634
+ "settings": {
635
+ "input": {
636
+ "mode": "simple",
637
+ "response": {
638
+ "response": {
639
+ "cardId": "{{step_4['output']['data']['createCard']['card']['id']}}"
640
+ }
641
+ }
642
+ },
643
+ "pieceName": "@activepieces/piece-subflows",
644
+ "actionName": "returnResponse",
645
+ "sampleData": {},
646
+ "pieceVersion": "0.4.12",
647
+ "propertySettings": {
648
+ "mode": {
649
+ "type": "MANUAL"
650
+ },
651
+ "response": {
652
+ "type": "MANUAL",
653
+ "schema": {
654
+ "response": {
655
+ "type": "OBJECT",
656
+ "required": true,
657
+ "displayName": "Response"
658
+ }
659
+ }
660
+ }
661
+ },
662
+ "errorHandlingOptions": {
663
+ "retryOnFailure": {
664
+ "value": false
665
+ },
666
+ "continueOnFailure": {
667
+ "value": false
668
+ }
669
+ }
670
+ },
671
+ "nextAction": {
672
+ "name": "step_12",
673
+ "skip": false,
674
+ "type": "PIECE",
675
+ "valid": true,
676
+ "settings": {
677
+ "input": {
678
+ "url": "{{variables['PRD_BASE_URL']}}/v1/orderby/consultations/cedentes/{{trigger['output']['data']['cedente']['idCedente']}}?codigoEmpresa={{trigger['output']['data']['empresaCodigo']}}&origem={{trigger['output']['data']['origem']}}",
679
+ "auth": "{{connections['exampleConnectionId1']}}",
680
+ "body": {},
681
+ "method": "GET",
682
+ "headers": {
683
+ "timestamp": "{{step_16['output']['result']}}",
684
+ "Content-Type": "application/json",
685
+ "correlation-id": "123e4567-e89b-12d3-a456-426614174000"
686
+ },
687
+ "failsafe": false,
688
+ "body_type": "none",
689
+ "use_proxy": false,
690
+ "queryParams": {},
691
+ "proxy_settings": {}
692
+ },
693
+ "pieceName": "@activepieces/piece-http-oauth2",
694
+ "actionName": "send-oauth2-request",
695
+ "sampleData": {},
696
+ "pieceVersion": "0.2.5",
697
+ "propertySettings": {
698
+ "url": {
699
+ "type": "MANUAL"
700
+ },
701
+ "body": {
702
+ "type": "MANUAL",
703
+ "schema": {}
704
+ },
705
+ "method": {
706
+ "type": "MANUAL"
707
+ },
708
+ "headers": {
709
+ "type": "MANUAL"
710
+ },
711
+ "timeout": {
712
+ "type": "MANUAL"
713
+ },
714
+ "failsafe": {
715
+ "type": "MANUAL"
716
+ },
717
+ "body_type": {
718
+ "type": "MANUAL"
719
+ },
720
+ "use_proxy": {
721
+ "type": "MANUAL"
722
+ },
723
+ "queryParams": {
724
+ "type": "MANUAL"
725
+ },
726
+ "proxy_settings": {
727
+ "type": "MANUAL",
728
+ "schema": {}
729
+ }
730
+ },
731
+ "errorHandlingOptions": {
732
+ "retryOnFailure": {
733
+ "value": false
734
+ },
735
+ "continueOnFailure": {
736
+ "value": false
737
+ }
738
+ }
739
+ },
740
+ "displayName": "Consulta Cedente",
741
+ "lastUpdatedDate": "2026-08-24T14:59:54.265Z"
742
+ },
743
+ "displayName": "Retornar cardId Copy",
744
+ "lastUpdatedDate": "2026-08-24T14:59:54.265Z"
745
+ },
746
+ "displayName": "atualização Telefone {\"query\":\"mutation {\\n updateCardField(\\n input: {card_id: \\\"0\\\", field_id:\\\"telefone_de_contato\\\",new_value:\\\"+55 (11) 2222-3333\\\"}\\n ) {\\n clientMutationId\\n }\\n}\\n\",\"variables\":null} Copy",
747
+ "lastUpdatedDate": "2026-08-24T14:59:54.264Z"
748
+ },
749
+ "displayName": "Create card",
750
+ "lastUpdatedDate": "2026-08-24T14:59:54.264Z"
751
+ },
752
+ "displayName": "Normalização",
753
+ "lastUpdatedDate": "2026-08-24T14:59:54.264Z"
754
+ }
755
+ ],
756
+ "settings": {
757
+ "branches": [
758
+ {
759
+ "branchName": "Existe e atualizar",
760
+ "branchType": "CONDITION",
761
+ "conditions": [
762
+ [
763
+ {
764
+ "operator": "BOOLEAN_IS_TRUE",
765
+ "firstValue": "{{step_13['output']['encontrado']}}"
766
+ },
767
+ {
768
+ "operator": "BOOLEAN_IS_TRUE",
769
+ "firstValue": "{{step_13['output']['consultarCedente']}}"
770
+ }
771
+ ]
772
+ ]
773
+ },
774
+ {
775
+ "branchName": "Existe e atualizado",
776
+ "branchType": "CONDITION",
777
+ "conditions": [
778
+ [
779
+ {
780
+ "operator": "BOOLEAN_IS_TRUE",
781
+ "firstValue": "{{step_13['output']['encontrado']}}"
782
+ },
783
+ {
784
+ "operator": "BOOLEAN_IS_FALSE",
785
+ "firstValue": "{{step_13['output']['consultarCedente']}}"
786
+ }
787
+ ]
788
+ ]
789
+ },
790
+ {
791
+ "branchName": "Otherwise",
792
+ "branchType": "FALLBACK"
793
+ }
794
+ ],
795
+ "sampleData": {},
796
+ "executionType": "EXECUTE_FIRST_MATCH"
797
+ },
798
+ "displayName": "Lista Cedente",
799
+ "lastUpdatedDate": "2026-08-24T14:59:54.263Z"
800
+ },
801
+ "displayName": "Get Current Date",
802
+ "lastUpdatedDate": "2026-08-24T14:59:54.263Z"
803
+ },
804
+ "displayName": "Conferência id e codigoEmpresa",
805
+ "lastUpdatedDate": "2026-08-24T14:59:54.263Z"
806
+ },
807
+ "displayName": "Buscar Sacado",
808
+ "lastUpdatedDate": "2026-08-24T14:59:54.333Z"
809
+ },
810
+ "lastUpdatedDate": "2026-08-24T14:59:54.262Z",
811
+ "type": "PIECE_TRIGGER",
812
+ "settings": {
813
+ "sampleData": {},
814
+ "propertySettings": {
815
+ "mode": {
816
+ "type": "MANUAL"
817
+ },
818
+ "exampleData": {
819
+ "type": "MANUAL",
820
+ "schema": {
821
+ "sampleData": {
822
+ "type": "example",
823
+ "required": false,
824
+ "displayName": "example"
825
+ }
826
+ }
827
+ }
828
+ },
829
+ "pieceName": "@activepieces/piece-subflows",
830
+ "pieceVersion": "0.4.12",
831
+ "triggerName": "callableFlow",
832
+ "input": {
833
+ "mode": "advanced",
834
+ "exampleData": {
835
+ "sampleData": {
836
+ "origem": "example",
837
+ "cedente": {
838
+ "nome": "example",
839
+ "email": "example",
840
+ "endereco": "example",
841
+ "cnpjOuCpf": "example",
842
+ "idCedente": 0,
843
+ "dataCadastro": "example",
844
+ "codigoEmpresa": 0,
845
+ "telefoneContato": "example",
846
+ "idGrupoPrincipal": 0,
847
+ "analistaResponsavel": "example",
848
+ "vinculoGrupoEconomico": false
849
+ },
850
+ "cardIdTitulo": "example",
851
+ "empresaCodigo": 0
852
+ }
853
+ }
854
+ }
855
+ }
856
+ },
857
+ "valid": true,
858
+ "schemaVersion": "22",
859
+ "notes": []
860
+ }
861
+ ],
862
+ "status": "PUBLISHED"
863
+ }