@pipefy/pipefy-process-coder 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) 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 +465 -456
  20. package/README.md +825 -807
  21. package/bin/pipe.js +25 -4
  22. package/dist/apply/adopt.js +128 -0
  23. package/dist/apply/agentops.js +42 -0
  24. package/dist/apply/compile.js +722 -0
  25. package/dist/apply/execute.js +277 -0
  26. package/dist/apply/flowops.js +293 -0
  27. package/dist/apply/idmap.js +233 -0
  28. package/dist/apply/mutations.js +704 -0
  29. package/dist/apply/registry.js +348 -0
  30. package/dist/apply/types.js +18 -0
  31. package/dist/cli/args.js +79 -0
  32. package/dist/cli.js +187 -0
  33. package/dist/codec/flow.js +164 -0
  34. package/dist/codec/pack.js +88 -0
  35. package/dist/codec/roundtrip.js +86 -0
  36. package/dist/codec/unpack.js +181 -0
  37. package/dist/commands/agents.js +145 -0
  38. package/dist/commands/apply.js +982 -0
  39. package/dist/commands/context.js +79 -0
  40. package/dist/commands/create.js +63 -0
  41. package/dist/commands/diff.js +294 -0
  42. package/dist/commands/flows.js +348 -0
  43. package/dist/commands/misc.js +528 -0
  44. package/dist/commands/plan.js +301 -0
  45. package/dist/commands/pull.js +511 -0
  46. package/dist/commands/runs.js +74 -0
  47. package/dist/commands/skills.js +131 -0
  48. package/dist/commands/verify.js +205 -0
  49. package/dist/config.js +125 -0
  50. package/dist/diff/agents.js +80 -0
  51. package/dist/diff/diff.js +983 -0
  52. package/dist/diff/flow.js +258 -0
  53. package/{src/diff/html.ts → dist/diff/html.js} +274 -322
  54. package/dist/diff/render.js +90 -0
  55. package/dist/model/payload.js +84 -0
  56. package/dist/model/tree.js +7 -0
  57. package/dist/model/volatile.js +54 -0
  58. package/dist/pipefy/agents.js +122 -0
  59. package/dist/pipefy/automations.js +155 -0
  60. package/dist/pipefy/capability.js +84 -0
  61. package/dist/pipefy/client.js +204 -0
  62. package/dist/pipefy/discovery.js +148 -0
  63. package/dist/pipefy/internal.js +315 -0
  64. package/dist/pipefy/ipaas.js +269 -0
  65. package/dist/pipefy/reconstruct.js +674 -0
  66. package/dist/pipefy/reference.js +172 -0
  67. package/dist/pipefy/snapshot.js +185 -0
  68. package/dist/pipefy/toolkit.js +158 -0
  69. package/dist/report/integrations.js +165 -0
  70. package/dist/report/run.js +355 -0
  71. package/dist/util/fsx.js +50 -0
  72. package/dist/util/git.js +25 -0
  73. package/dist/util/json.js +56 -0
  74. package/dist/util/log.js +69 -0
  75. package/dist/util/pool.js +42 -0
  76. package/dist/util/slug.js +23 -0
  77. package/dist/util/tui.js +287 -0
  78. package/dist/validate/index.js +86 -0
  79. package/dist/validate/integrity.js +370 -0
  80. package/dist/validate/reference.js +120 -0
  81. package/dist/validate/schema.js +278 -0
  82. package/dist/workspace/agents.js +245 -0
  83. package/{src/workspace/docs.ts → dist/workspace/docs.js} +367 -407
  84. package/dist/workspace/flows.js +149 -0
  85. package/dist/workspace/layout.js +146 -0
  86. package/dist/workspace/lock.js +83 -0
  87. package/dist/workspace/read.js +168 -0
  88. package/dist/workspace/reference.js +24 -0
  89. package/dist/workspace/stamp.js +234 -0
  90. package/dist/workspace/write.js +194 -0
  91. package/package.json +37 -35
  92. package/src/apply/adopt.ts +0 -150
  93. package/src/apply/agentops.ts +0 -71
  94. package/src/apply/compile.ts +0 -875
  95. package/src/apply/execute.ts +0 -336
  96. package/src/apply/flowops.ts +0 -399
  97. package/src/apply/idmap.ts +0 -241
  98. package/src/apply/mutations.ts +0 -955
  99. package/src/apply/registry.ts +0 -430
  100. package/src/apply/types.ts +0 -134
  101. package/src/cli/args.ts +0 -88
  102. package/src/cli.ts +0 -211
  103. package/src/codec/flow.ts +0 -199
  104. package/src/codec/pack.ts +0 -103
  105. package/src/codec/roundtrip.ts +0 -94
  106. package/src/codec/unpack.ts +0 -198
  107. package/src/commands/agents.ts +0 -184
  108. package/src/commands/apply.ts +0 -1144
  109. package/src/commands/context.ts +0 -119
  110. package/src/commands/create.ts +0 -79
  111. package/src/commands/diff.ts +0 -314
  112. package/src/commands/flows.ts +0 -414
  113. package/src/commands/misc.ts +0 -644
  114. package/src/commands/plan.ts +0 -331
  115. package/src/commands/pull.ts +0 -567
  116. package/src/commands/runs.ts +0 -83
  117. package/src/commands/skills.ts +0 -137
  118. package/src/commands/verify.ts +0 -253
  119. package/src/config.ts +0 -168
  120. package/src/diff/agents.ts +0 -122
  121. package/src/diff/diff.ts +0 -1130
  122. package/src/diff/flow.ts +0 -318
  123. package/src/diff/render.ts +0 -101
  124. package/src/model/payload.ts +0 -154
  125. package/src/model/tree.ts +0 -99
  126. package/src/model/volatile.ts +0 -55
  127. package/src/pipefy/agents.ts +0 -165
  128. package/src/pipefy/automations.ts +0 -219
  129. package/src/pipefy/capability.ts +0 -119
  130. package/src/pipefy/client.ts +0 -267
  131. package/src/pipefy/discovery.ts +0 -209
  132. package/src/pipefy/internal.ts +0 -380
  133. package/src/pipefy/ipaas.ts +0 -365
  134. package/src/pipefy/reconstruct.ts +0 -775
  135. package/src/pipefy/reference.ts +0 -251
  136. package/src/pipefy/snapshot.ts +0 -245
  137. package/src/pipefy/toolkit.ts +0 -200
  138. package/src/report/integrations.ts +0 -231
  139. package/src/report/run.ts +0 -475
  140. package/src/util/fsx.ts +0 -45
  141. package/src/util/git.ts +0 -32
  142. package/src/util/json.ts +0 -55
  143. package/src/util/log.ts +0 -76
  144. package/src/util/pool.ts +0 -48
  145. package/src/util/slug.ts +0 -26
  146. package/src/util/tui.ts +0 -335
  147. package/src/validate/index.ts +0 -123
  148. package/src/validate/integrity.ts +0 -387
  149. package/src/validate/reference.ts +0 -136
  150. package/src/validate/schema.ts +0 -328
  151. package/src/workspace/agents.ts +0 -290
  152. package/src/workspace/flows.ts +0 -191
  153. package/src/workspace/layout.ts +0 -165
  154. package/src/workspace/lock.ts +0 -148
  155. package/src/workspace/read.ts +0 -165
  156. package/src/workspace/reference.ts +0 -24
  157. package/src/workspace/stamp.ts +0 -301
  158. package/src/workspace/write.ts +0 -225
  159. /package/{src → dist}/pipefy/toolkit_bearer.py +0 -0
@@ -1,636 +1,636 @@
1
- {
2
- "name": "✅[PRD][2/4 SUBFLOW][CRIAÇÃO] OPERAÇÃO",
3
- "type": "SHARED",
4
- "summary": "",
5
- "description": "",
6
- "tags": [],
7
- "blogUrl": "",
8
- "metadata": {
9
- "externalId": "exampleFlowId05aaaaaa"
10
- },
11
- "author": "Integrações Ipaas 000000000",
12
- "categories": [],
13
- "pieces": [
14
- "@activepieces/piece-subflows",
15
- "@activepieces/piece-pipefy"
16
- ],
17
- "flows": [
18
- {
19
- "displayName": "✅[PRD][2/4 SUBFLOW][CRIAÇÃO] OPERAÇÃO",
20
- "trigger": {
21
- "name": "trigger",
22
- "valid": true,
23
- "displayName": "Callable Flow",
24
- "nextAction": {
25
- "name": "step_1",
26
- "skip": false,
27
- "type": "PIECE",
28
- "valid": true,
29
- "settings": {
30
- "input": {
31
- "auth": "{{connections['exampleConnectionId3']}}",
32
- "pipeId": "200000002",
33
- "fieldId": "idg",
34
- "fieldValue": "{{trigger['output']['data']['operacao']['idg']}}",
35
- "organizationId": "100000001"
36
- },
37
- "pieceName": "@activepieces/piece-pipefy",
38
- "actionName": "getCardsByFieldValue",
39
- "sampleData": {},
40
- "pieceVersion": "0.1.7",
41
- "propertySettings": {
42
- "pipeId": {
43
- "type": "MANUAL"
44
- },
45
- "fieldId": {
46
- "type": "MANUAL"
47
- },
48
- "fieldValue": {
49
- "type": "MANUAL"
50
- },
51
- "organizationId": {
52
- "type": "MANUAL"
53
- }
54
- },
55
- "errorHandlingOptions": {
56
- "retryOnFailure": {
57
- "value": false
58
- },
59
- "continueOnFailure": {
60
- "value": false
61
- }
62
- }
63
- },
64
- "nextAction": {
65
- "name": "step_2",
66
- "skip": false,
67
- "type": "CODE",
68
- "valid": true,
69
- "settings": {
70
- "input": {
71
- "cardsIDG": "{{step_1['output']['data']['cards']}}",
72
- "chaveComposta": "{{trigger['output']['data']['operacao']['chaveComposta']}}"
73
- },
74
- "sampleData": {},
75
- "sourceCode": {
76
- "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, 'fundo_operado_1');\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};",
77
- "packageJson": "{}"
78
- },
79
- "errorHandlingOptions": {
80
- "retryOnFailure": {
81
- "value": false
82
- },
83
- "continueOnFailure": {
84
- "value": true
85
- }
86
- }
87
- },
88
- "nextAction": {
89
- "name": "step_3",
90
- "skip": false,
91
- "type": "ROUTER",
92
- "valid": true,
93
- "children": [
94
- {
95
- "name": "step_4",
96
- "skip": false,
97
- "type": "PIECE",
98
- "valid": true,
99
- "settings": {
100
- "input": {
101
- "auth": "{{connections['exampleConnectionId3']}}",
102
- "pipeId": "200000002",
103
- "organizationId": "100000001",
104
- "startFormFields": {
105
- "idg": "{{trigger['output']['data']['operacao']['idg']}}",
106
- "idoperacao": "{{trigger['output']['data']['operacao']['idOperacao']}}",
107
- "fundo_operado": "{{trigger['output']['data']['operacao']['origem']}}",
108
- "nome_do_fundo": "{{trigger['output']['data']['operacao']['empresaNome']}}",
109
- "data_da_opera_o": "{{trigger['output']['data']['operacao']['dataOperacao']}}",
110
- "descri_o_do_idg": "{{trigger['output']['data']['operacao']['idgDesc']}}",
111
- "fundo_operado_1": "{{trigger['output']['data']['operacao']['empresaCodigo']}}",
112
- "e_mail_do_comercial_respons_vel": "{{trigger['output']['data']['operacao']['emailComercialResponsavel']}}",
113
- "nome_do_comercial_respons_vel_gerente_da_conta": "{{trigger['output']['data']['operacao']['nomeGerenteConta']}}",
114
- "nome_do_comercial_respons_vel_assistente_da_conta": "{{trigger['output']['data']['operacao']['nomeAssistenteConta']}}"
115
- }
116
- },
117
- "pieceName": "@activepieces/piece-pipefy",
118
- "actionName": "createCard",
119
- "sampleData": {},
120
- "pieceVersion": "0.1.7",
121
- "propertySettings": {
122
- "pipeId": {
123
- "type": "MANUAL"
124
- },
125
- "organizationId": {
126
- "type": "MANUAL"
127
- },
128
- "startFormFields": {
129
- "type": "MANUAL",
130
- "schema": {
131
- "idg": {
132
- "type": "SHORT_TEXT",
133
- "required": false,
134
- "description": "\"idg\"",
135
- "displayName": "IDG"
136
- },
137
- "idoperacao": {
138
- "type": "SHORT_TEXT",
139
- "required": false,
140
- "description": "\"idOperacao\"",
141
- "displayName": "ID Operação (Barramento)"
142
- },
143
- "fundo_operado": {
144
- "type": "SHORT_TEXT",
145
- "required": false,
146
- "description": "\"origem\"",
147
- "displayName": "Base"
148
- },
149
- "nome_do_fundo": {
150
- "type": "SHORT_TEXT",
151
- "required": false,
152
- "description": "\"empresaNome\"",
153
- "displayName": "Nome do Fundo"
154
- },
155
- "data_da_opera_o": {
156
- "type": "SHORT_TEXT",
157
- "required": false,
158
- "description": "\"dataOperacao\"",
159
- "displayName": "Data da operação"
160
- },
161
- "descri_o_do_idg": {
162
- "type": "SHORT_TEXT",
163
- "required": false,
164
- "description": "\"idgDesc\"",
165
- "displayName": "Descrição do IDG"
166
- },
167
- "fundo_operado_1": {
168
- "type": "SHORT_TEXT",
169
- "required": false,
170
- "description": "\"empresaCodigo\"",
171
- "displayName": "Fundo Operado"
172
- },
173
- "e_mail_do_comercial_respons_vel": {
174
- "type": "SHORT_TEXT",
175
- "required": false,
176
- "description": "\"emailComercialResponsavel\"",
177
- "displayName": "E-mail do comercial (Gerente)"
178
- },
179
- "nome_do_comercial_respons_vel_gerente_da_conta": {
180
- "type": "SHORT_TEXT",
181
- "required": false,
182
- "description": "\"nomeGerenteConta\"",
183
- "displayName": "Nome do comercial (Gerente da conta)"
184
- },
185
- "nome_do_comercial_respons_vel_assistente_da_conta": {
186
- "type": "SHORT_TEXT",
187
- "required": false,
188
- "description": "\"nomeAssistenteConta\"",
189
- "displayName": "Nome do comercial (Assistente da conta)"
190
- }
191
- }
192
- }
193
- },
194
- "errorHandlingOptions": {
195
- "retryOnFailure": {
196
- "value": true
197
- },
198
- "continueOnFailure": {
199
- "value": false
200
- }
201
- }
202
- },
203
- "nextAction": {
204
- "name": "step_5",
205
- "type": "PIECE",
206
- "valid": true,
207
- "settings": {
208
- "input": {
209
- "mode": "simple",
210
- "response": {
211
- "response": {
212
- "novaOperacao": "{{step_2['output']['deveCriar']}}",
213
- "cardIdOperacao": "{{step_4['output']['data']['createCard']['card']['id']}}"
214
- }
215
- }
216
- },
217
- "pieceName": "@activepieces/piece-subflows",
218
- "actionName": "returnResponse",
219
- "sampleData": {},
220
- "pieceVersion": "0.4.12",
221
- "propertySettings": {
222
- "mode": {
223
- "type": "MANUAL"
224
- },
225
- "response": {
226
- "type": "MANUAL",
227
- "schema": {
228
- "response": {
229
- "type": "OBJECT",
230
- "required": true,
231
- "displayName": "Response"
232
- }
233
- }
234
- }
235
- },
236
- "errorHandlingOptions": {
237
- "retryOnFailure": {
238
- "value": false
239
- },
240
- "continueOnFailure": {
241
- "value": false
242
- }
243
- }
244
- },
245
- "displayName": "Return Response",
246
- "lastUpdatedDate": "2026-08-11T14:56:24.490Z"
247
- },
248
- "displayName": "Criar Operação",
249
- "lastUpdatedDate": "2026-08-11T14:56:24.490Z"
250
- },
251
- {
252
- "name": "step_6",
253
- "type": "PIECE",
254
- "valid": true,
255
- "settings": {
256
- "input": {
257
- "auth": "{{connections['exampleConnectionId3']}}",
258
- "cardId": "{{step_2['output']['cardId']}}",
259
- "pipeId": "200000002",
260
- "phaseId": "300000002",
261
- "phaseFields": {
262
- "fundo_operado": "{{trigger['output']['data']['operacao']['origem']}}",
263
- "nome_do_fundo": "{{trigger['output']['data']['operacao']['empresaNome']}}",
264
- "data_da_opera_o": "{{trigger['output']['data']['operacao']['dataOperacao']}}",
265
- "descri_o_do_idg": "{{trigger['output']['data']['operacao']['idgDesc']}}",
266
- "fundo_operado_1": "{{trigger['output']['data']['operacao']['empresaCodigo']}}",
267
- "e_mail_do_comercial_respons_vel": "{{trigger['output']['data']['operacao']['emailComercialResponsavel']}}",
268
- "nome_do_comercial_respons_vel_gerente_da_conta": "{{trigger['output']['data']['operacao']['nomeGerenteConta']}}",
269
- "nome_do_comercial_respons_vel_assistente_da_conta": "{{trigger['output']['data']['operacao']['nomeAssistenteConta']}}"
270
- },
271
- "organizationId": "100000001"
272
- },
273
- "pieceName": "@activepieces/piece-pipefy",
274
- "actionName": "updateCard",
275
- "sampleData": {},
276
- "pieceVersion": "0.1.7",
277
- "propertySettings": {
278
- "cardId": {
279
- "type": "MANUAL"
280
- },
281
- "pipeId": {
282
- "type": "MANUAL"
283
- },
284
- "phaseId": {
285
- "type": "MANUAL"
286
- },
287
- "phaseFields": {
288
- "type": "MANUAL",
289
- "schema": {
290
- "idg": {
291
- "type": "SHORT_TEXT",
292
- "required": false,
293
- "description": "\"idg\"",
294
- "displayName": "IDG"
295
- },
296
- "idoperacao": {
297
- "type": "SHORT_TEXT",
298
- "required": false,
299
- "description": "\"idOperacao\"",
300
- "displayName": "ID Operação (Barramento)"
301
- },
302
- "fundo_operado": {
303
- "type": "SHORT_TEXT",
304
- "required": false,
305
- "description": "\"origem\"",
306
- "displayName": "Base"
307
- },
308
- "nome_do_fundo": {
309
- "type": "SHORT_TEXT",
310
- "required": false,
311
- "description": "\"empresaNome\"",
312
- "displayName": "Nome do Fundo"
313
- },
314
- "data_da_opera_o": {
315
- "type": "SHORT_TEXT",
316
- "required": false,
317
- "description": "\"dataOperacao\"",
318
- "displayName": "Data da operação"
319
- },
320
- "descri_o_do_idg": {
321
- "type": "SHORT_TEXT",
322
- "required": false,
323
- "description": "\"idgDesc\"",
324
- "displayName": "Descrição do IDG"
325
- },
326
- "fundo_operado_1": {
327
- "type": "SHORT_TEXT",
328
- "required": false,
329
- "description": "\"empresaCodigo\"",
330
- "displayName": "Fundo Operado"
331
- },
332
- "e_mail_do_comercial_respons_vel": {
333
- "type": "SHORT_TEXT",
334
- "required": false,
335
- "description": "\"emailComercialResponsavel\"",
336
- "displayName": "E-mail do comercial (Gerente)"
337
- },
338
- "nome_do_comercial_respons_vel_gerente_da_conta": {
339
- "type": "SHORT_TEXT",
340
- "required": false,
341
- "description": "\"nomeGerenteConta\"",
342
- "displayName": "Nome do comercial (Gerente da conta)"
343
- },
344
- "nome_do_comercial_respons_vel_assistente_da_conta": {
345
- "type": "SHORT_TEXT",
346
- "required": false,
347
- "description": "\"nomeAssistenteConta\"",
348
- "displayName": "Nome do comercial (Assistente da conta)"
349
- }
350
- }
351
- },
352
- "organizationId": {
353
- "type": "MANUAL"
354
- }
355
- },
356
- "errorHandlingOptions": {
357
- "retryOnFailure": {
358
- "value": true
359
- },
360
- "continueOnFailure": {
361
- "value": false
362
- }
363
- }
364
- },
365
- "nextAction": {
366
- "name": "step_7",
367
- "type": "PIECE",
368
- "valid": true,
369
- "settings": {
370
- "input": {
371
- "mode": "simple",
372
- "response": {
373
- "response": {
374
- "novaOperacao": "{{step_2['output']['deveCriar']}}",
375
- "cardIdOperacao": "{{step_2['output']['cardId']}}"
376
- }
377
- }
378
- },
379
- "pieceName": "@activepieces/piece-subflows",
380
- "actionName": "returnResponse",
381
- "sampleData": {},
382
- "pieceVersion": "0.4.12",
383
- "propertySettings": {
384
- "mode": {
385
- "type": "MANUAL"
386
- },
387
- "response": {
388
- "type": "MANUAL",
389
- "schema": {
390
- "response": {
391
- "type": "OBJECT",
392
- "required": true,
393
- "displayName": "Response"
394
- }
395
- }
396
- }
397
- },
398
- "errorHandlingOptions": {
399
- "retryOnFailure": {
400
- "value": false
401
- },
402
- "continueOnFailure": {
403
- "value": false
404
- }
405
- }
406
- },
407
- "displayName": "Return Response",
408
- "lastUpdatedDate": "2026-08-11T14:56:24.491Z"
409
- },
410
- "displayName": "Atualiza Operação",
411
- "lastUpdatedDate": "2026-08-11T14:56:24.490Z"
412
- }
413
- ],
414
- "settings": {
415
- "branches": [
416
- {
417
- "branchName": "Sim",
418
- "branchType": "CONDITION",
419
- "conditions": [
420
- [
421
- {
422
- "operator": "BOOLEAN_IS_TRUE",
423
- "firstValue": "{{step_2['output']['deveCriar']}}"
424
- }
425
- ]
426
- ]
427
- },
428
- {
429
- "branchName": "Otherwise",
430
- "branchType": "FALLBACK"
431
- }
432
- ],
433
- "sampleData": {},
434
- "executionType": "EXECUTE_FIRST_MATCH"
435
- },
436
- "displayName": "deveCriar",
437
- "lastUpdatedDate": "2026-08-11T14:56:24.490Z"
438
- },
439
- "displayName": "Buscar chaveComposta",
440
- "lastUpdatedDate": "2026-08-11T14:56:24.490Z"
441
- },
442
- "displayName": "Get cards by field value",
443
- "lastUpdatedDate": "2026-08-11T14:56:24.489Z"
444
- },
445
- "lastUpdatedDate": "2026-08-11T14:56:24.489Z",
446
- "type": "PIECE_TRIGGER",
447
- "settings": {
448
- "propertySettings": {
449
- "mode": {
450
- "type": "MANUAL"
451
- },
452
- "exampleData": {
453
- "type": "MANUAL",
454
- "schema": {
455
- "sampleData": {
456
- "type": "example",
457
- "required": false,
458
- "displayName": "example"
459
- }
460
- }
461
- }
462
- },
463
- "pieceName": "@activepieces/piece-subflows",
464
- "pieceVersion": "0.4.12",
465
- "triggerName": "callableFlow",
466
- "input": {
467
- "mode": "advanced",
468
- "exampleData": {
469
- "sampleData": {
470
- "operacao": {
471
- "idg": "example",
472
- "origem": "example",
473
- "idgDesc": "example",
474
- "titulos": [
475
- {
476
- "idg": "example",
477
- "eveNfe": "example",
478
- "sacado": {
479
- "nome": "example",
480
- "email": "example",
481
- "endereco": "example",
482
- "idSacado": 0,
483
- "percHNeg": {
484
- "totQtd": 0,
485
- "totSac": 0,
486
- "totNegativa": 0
487
- },
488
- "percHPre": {
489
- "totQtd": 0,
490
- "totSac": 0,
491
- "totPresente": 0
492
- },
493
- "cnpjOuCpf": "example",
494
- "idCedente": 0,
495
- "indicadores": "example",
496
- "razaoSocial": "example",
497
- "nomeFantasia": "example",
498
- "codigoEmpresa": 0,
499
- "telefoneContato": "example",
500
- "liquidacaoPorEvento": [
501
- {
502
- "descricao": "example",
503
- "codigoEvento": 0,
504
- "totalLiquidado": 0,
505
- "quantidadeTitulos": 0
506
- }
507
- ],
508
- "historicoValorAberto": {
509
- "totalTitulosAbertos": 0,
510
- "totalTitulosAbertosQtd": 0,
511
- "totalTitulosAbertosVencer": 0,
512
- "totalTitulosAbertosVencidos": 0,
513
- "totalTitulosAbertosVencerQtd": 0,
514
- "totalTitulosAbertosVencidosQtd": 0
515
- },
516
- "historicoValorLiquidado": {
517
- "totalOpeNaoEfetivadas": 0,
518
- "totalTitulosLiquidados": 0,
519
- "totalOpeNaoEfetivadasQtd": 0,
520
- "totalTitulosLiquidadosQtd": 0,
521
- "totalTitulosLiquidadosPagoDia": 0,
522
- "totalTitulosLiquidadosPagoAtraso": 0,
523
- "totalTitulosLiquidadosPagoDiaQtd": 0,
524
- "totalTitulosLiquidadosPagoAtrasoQtd": 0,
525
- "totalTitulosLiquidadosChequeDevolvido": 0,
526
- "totalTitulosLiquidadosChequeDevolvidoQtd": 0
527
- }
528
- },
529
- "status": "example",
530
- "cedente": {
531
- "nome": "example",
532
- "email": "example",
533
- "endereco": "example",
534
- "cnpjOuCpf": "example",
535
- "idCedente": 0,
536
- "dataCadastro": "example",
537
- "codigoEmpresa": 0,
538
- "telefoneContato": "example",
539
- "idGrupoPrincipal": 0,
540
- "analistaResponsavel": "example",
541
- "vinculoGrupoEconomico": false
542
- },
543
- "idgDesc": "example",
544
- "documento": "example",
545
- "linkBoleto": "example",
546
- "numeroNota": "example",
547
- "valorBruto": 0,
548
- "vencimento": "example",
549
- "confirmacao": "example",
550
- "empresaNome": "example",
551
- "nfXmlBase64": "example",
552
- "numeroTitulo": 0,
553
- "valorLiquido": 0,
554
- "classificacao": "example",
555
- "empresaCodigo": 0,
556
- "idUnicoSacado": 0,
557
- "valorPassagem": 0,
558
- "formaPagamento": "example",
559
- "idUnicoCedente": 0,
560
- "statusBancario": "example",
561
- "dataFaturamento": "example",
562
- "idUnicoOperacao": 0,
563
- "nfeMonitoramento": [
564
- {
565
- "nlmData": "example",
566
- "nlmHora": "example",
567
- "ernDescricao": "example",
568
- "nlmChaveRetorno": "example",
569
- "nlmCodigoEventoRetorno": 0,
570
- "nlmDescricaoEventoRetorno": "example"
571
- }
572
- ],
573
- "valorComDesconto": 0,
574
- "razaoSocialSacado": "example",
575
- "retornosBancarios": [
576
- {
577
- "id": 0,
578
- "valor": 0,
579
- "evento": "example",
580
- "movData": "example",
581
- "empCodigo": 0,
582
- "movCodigo": "example",
583
- "movOrigem": "example",
584
- "movUsuario": "example",
585
- "dataPContato": "example",
586
- "movDescricao": "example",
587
- "movIdentificaOrigem": 0
588
- }
589
- ],
590
- "analistaResponsavel": "example",
591
- "acompanhamentoDeCobranca": [
592
- {
593
- "id": 0,
594
- "valor": 0,
595
- "evento": "example",
596
- "movData": "example",
597
- "empCodigo": 0,
598
- "movCodigo": "example",
599
- "movOrigem": "example",
600
- "movUsuario": "example",
601
- "dataPContato": "example",
602
- "movDescricao": "example",
603
- "movIdentificaOrigem": 0
604
- }
605
- ]
606
- }
607
- ],
608
- "documentos": [
609
- {
610
- "chave": "example",
611
- "linkArquivo": "example",
612
- "nomeArquivo": "example"
613
- }
614
- ],
615
- "idOperacao": 0,
616
- "empresaNome": "example",
617
- "dataOperacao": "example",
618
- "chaveComposta": "example",
619
- "empresaCodigo": 0,
620
- "chaveResponsavel": "example",
621
- "nomeGerenteConta": "example",
622
- "nomeAssistenteConta": "example",
623
- "emailComercialResponsavel": "example"
624
- }
625
- }
626
- }
627
- }
628
- }
629
- },
630
- "valid": true,
631
- "schemaVersion": "22",
632
- "notes": []
633
- }
634
- ],
635
- "status": "PUBLISHED"
636
- }
1
+ {
2
+ "name": "✅[PRD][2/4 SUBFLOW][CRIAÇÃO] OPERAÇÃO",
3
+ "type": "SHARED",
4
+ "summary": "",
5
+ "description": "",
6
+ "tags": [],
7
+ "blogUrl": "",
8
+ "metadata": {
9
+ "externalId": "exampleFlowId05aaaaaa"
10
+ },
11
+ "author": "Integrações Ipaas 000000000",
12
+ "categories": [],
13
+ "pieces": [
14
+ "@activepieces/piece-subflows",
15
+ "@activepieces/piece-pipefy"
16
+ ],
17
+ "flows": [
18
+ {
19
+ "displayName": "✅[PRD][2/4 SUBFLOW][CRIAÇÃO] OPERAÇÃO",
20
+ "trigger": {
21
+ "name": "trigger",
22
+ "valid": true,
23
+ "displayName": "Callable Flow",
24
+ "nextAction": {
25
+ "name": "step_1",
26
+ "skip": false,
27
+ "type": "PIECE",
28
+ "valid": true,
29
+ "settings": {
30
+ "input": {
31
+ "auth": "{{connections['exampleConnectionId3']}}",
32
+ "pipeId": "200000002",
33
+ "fieldId": "idg",
34
+ "fieldValue": "{{trigger['output']['data']['operacao']['idg']}}",
35
+ "organizationId": "100000001"
36
+ },
37
+ "pieceName": "@activepieces/piece-pipefy",
38
+ "actionName": "getCardsByFieldValue",
39
+ "sampleData": {},
40
+ "pieceVersion": "0.1.7",
41
+ "propertySettings": {
42
+ "pipeId": {
43
+ "type": "MANUAL"
44
+ },
45
+ "fieldId": {
46
+ "type": "MANUAL"
47
+ },
48
+ "fieldValue": {
49
+ "type": "MANUAL"
50
+ },
51
+ "organizationId": {
52
+ "type": "MANUAL"
53
+ }
54
+ },
55
+ "errorHandlingOptions": {
56
+ "retryOnFailure": {
57
+ "value": false
58
+ },
59
+ "continueOnFailure": {
60
+ "value": false
61
+ }
62
+ }
63
+ },
64
+ "nextAction": {
65
+ "name": "step_2",
66
+ "skip": false,
67
+ "type": "CODE",
68
+ "valid": true,
69
+ "settings": {
70
+ "input": {
71
+ "cardsIDG": "{{step_1['output']['data']['cards']}}",
72
+ "chaveComposta": "{{trigger['output']['data']['operacao']['chaveComposta']}}"
73
+ },
74
+ "sampleData": {},
75
+ "sourceCode": {
76
+ "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, 'fundo_operado_1');\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};",
77
+ "packageJson": "{}"
78
+ },
79
+ "errorHandlingOptions": {
80
+ "retryOnFailure": {
81
+ "value": false
82
+ },
83
+ "continueOnFailure": {
84
+ "value": true
85
+ }
86
+ }
87
+ },
88
+ "nextAction": {
89
+ "name": "step_3",
90
+ "skip": false,
91
+ "type": "ROUTER",
92
+ "valid": true,
93
+ "children": [
94
+ {
95
+ "name": "step_4",
96
+ "skip": false,
97
+ "type": "PIECE",
98
+ "valid": true,
99
+ "settings": {
100
+ "input": {
101
+ "auth": "{{connections['exampleConnectionId3']}}",
102
+ "pipeId": "200000002",
103
+ "organizationId": "100000001",
104
+ "startFormFields": {
105
+ "idg": "{{trigger['output']['data']['operacao']['idg']}}",
106
+ "idoperacao": "{{trigger['output']['data']['operacao']['idOperacao']}}",
107
+ "fundo_operado": "{{trigger['output']['data']['operacao']['origem']}}",
108
+ "nome_do_fundo": "{{trigger['output']['data']['operacao']['empresaNome']}}",
109
+ "data_da_opera_o": "{{trigger['output']['data']['operacao']['dataOperacao']}}",
110
+ "descri_o_do_idg": "{{trigger['output']['data']['operacao']['idgDesc']}}",
111
+ "fundo_operado_1": "{{trigger['output']['data']['operacao']['empresaCodigo']}}",
112
+ "e_mail_do_comercial_respons_vel": "{{trigger['output']['data']['operacao']['emailComercialResponsavel']}}",
113
+ "nome_do_comercial_respons_vel_gerente_da_conta": "{{trigger['output']['data']['operacao']['nomeGerenteConta']}}",
114
+ "nome_do_comercial_respons_vel_assistente_da_conta": "{{trigger['output']['data']['operacao']['nomeAssistenteConta']}}"
115
+ }
116
+ },
117
+ "pieceName": "@activepieces/piece-pipefy",
118
+ "actionName": "createCard",
119
+ "sampleData": {},
120
+ "pieceVersion": "0.1.7",
121
+ "propertySettings": {
122
+ "pipeId": {
123
+ "type": "MANUAL"
124
+ },
125
+ "organizationId": {
126
+ "type": "MANUAL"
127
+ },
128
+ "startFormFields": {
129
+ "type": "MANUAL",
130
+ "schema": {
131
+ "idg": {
132
+ "type": "SHORT_TEXT",
133
+ "required": false,
134
+ "description": "\"idg\"",
135
+ "displayName": "IDG"
136
+ },
137
+ "idoperacao": {
138
+ "type": "SHORT_TEXT",
139
+ "required": false,
140
+ "description": "\"idOperacao\"",
141
+ "displayName": "ID Operação (Barramento)"
142
+ },
143
+ "fundo_operado": {
144
+ "type": "SHORT_TEXT",
145
+ "required": false,
146
+ "description": "\"origem\"",
147
+ "displayName": "Base"
148
+ },
149
+ "nome_do_fundo": {
150
+ "type": "SHORT_TEXT",
151
+ "required": false,
152
+ "description": "\"empresaNome\"",
153
+ "displayName": "Nome do Fundo"
154
+ },
155
+ "data_da_opera_o": {
156
+ "type": "SHORT_TEXT",
157
+ "required": false,
158
+ "description": "\"dataOperacao\"",
159
+ "displayName": "Data da operação"
160
+ },
161
+ "descri_o_do_idg": {
162
+ "type": "SHORT_TEXT",
163
+ "required": false,
164
+ "description": "\"idgDesc\"",
165
+ "displayName": "Descrição do IDG"
166
+ },
167
+ "fundo_operado_1": {
168
+ "type": "SHORT_TEXT",
169
+ "required": false,
170
+ "description": "\"empresaCodigo\"",
171
+ "displayName": "Fundo Operado"
172
+ },
173
+ "e_mail_do_comercial_respons_vel": {
174
+ "type": "SHORT_TEXT",
175
+ "required": false,
176
+ "description": "\"emailComercialResponsavel\"",
177
+ "displayName": "E-mail do comercial (Gerente)"
178
+ },
179
+ "nome_do_comercial_respons_vel_gerente_da_conta": {
180
+ "type": "SHORT_TEXT",
181
+ "required": false,
182
+ "description": "\"nomeGerenteConta\"",
183
+ "displayName": "Nome do comercial (Gerente da conta)"
184
+ },
185
+ "nome_do_comercial_respons_vel_assistente_da_conta": {
186
+ "type": "SHORT_TEXT",
187
+ "required": false,
188
+ "description": "\"nomeAssistenteConta\"",
189
+ "displayName": "Nome do comercial (Assistente da conta)"
190
+ }
191
+ }
192
+ }
193
+ },
194
+ "errorHandlingOptions": {
195
+ "retryOnFailure": {
196
+ "value": true
197
+ },
198
+ "continueOnFailure": {
199
+ "value": false
200
+ }
201
+ }
202
+ },
203
+ "nextAction": {
204
+ "name": "step_5",
205
+ "type": "PIECE",
206
+ "valid": true,
207
+ "settings": {
208
+ "input": {
209
+ "mode": "simple",
210
+ "response": {
211
+ "response": {
212
+ "novaOperacao": "{{step_2['output']['deveCriar']}}",
213
+ "cardIdOperacao": "{{step_4['output']['data']['createCard']['card']['id']}}"
214
+ }
215
+ }
216
+ },
217
+ "pieceName": "@activepieces/piece-subflows",
218
+ "actionName": "returnResponse",
219
+ "sampleData": {},
220
+ "pieceVersion": "0.4.12",
221
+ "propertySettings": {
222
+ "mode": {
223
+ "type": "MANUAL"
224
+ },
225
+ "response": {
226
+ "type": "MANUAL",
227
+ "schema": {
228
+ "response": {
229
+ "type": "OBJECT",
230
+ "required": true,
231
+ "displayName": "Response"
232
+ }
233
+ }
234
+ }
235
+ },
236
+ "errorHandlingOptions": {
237
+ "retryOnFailure": {
238
+ "value": false
239
+ },
240
+ "continueOnFailure": {
241
+ "value": false
242
+ }
243
+ }
244
+ },
245
+ "displayName": "Return Response",
246
+ "lastUpdatedDate": "2026-08-11T14:56:24.490Z"
247
+ },
248
+ "displayName": "Criar Operação",
249
+ "lastUpdatedDate": "2026-08-11T14:56:24.490Z"
250
+ },
251
+ {
252
+ "name": "step_6",
253
+ "type": "PIECE",
254
+ "valid": true,
255
+ "settings": {
256
+ "input": {
257
+ "auth": "{{connections['exampleConnectionId3']}}",
258
+ "cardId": "{{step_2['output']['cardId']}}",
259
+ "pipeId": "200000002",
260
+ "phaseId": "300000002",
261
+ "phaseFields": {
262
+ "fundo_operado": "{{trigger['output']['data']['operacao']['origem']}}",
263
+ "nome_do_fundo": "{{trigger['output']['data']['operacao']['empresaNome']}}",
264
+ "data_da_opera_o": "{{trigger['output']['data']['operacao']['dataOperacao']}}",
265
+ "descri_o_do_idg": "{{trigger['output']['data']['operacao']['idgDesc']}}",
266
+ "fundo_operado_1": "{{trigger['output']['data']['operacao']['empresaCodigo']}}",
267
+ "e_mail_do_comercial_respons_vel": "{{trigger['output']['data']['operacao']['emailComercialResponsavel']}}",
268
+ "nome_do_comercial_respons_vel_gerente_da_conta": "{{trigger['output']['data']['operacao']['nomeGerenteConta']}}",
269
+ "nome_do_comercial_respons_vel_assistente_da_conta": "{{trigger['output']['data']['operacao']['nomeAssistenteConta']}}"
270
+ },
271
+ "organizationId": "100000001"
272
+ },
273
+ "pieceName": "@activepieces/piece-pipefy",
274
+ "actionName": "updateCard",
275
+ "sampleData": {},
276
+ "pieceVersion": "0.1.7",
277
+ "propertySettings": {
278
+ "cardId": {
279
+ "type": "MANUAL"
280
+ },
281
+ "pipeId": {
282
+ "type": "MANUAL"
283
+ },
284
+ "phaseId": {
285
+ "type": "MANUAL"
286
+ },
287
+ "phaseFields": {
288
+ "type": "MANUAL",
289
+ "schema": {
290
+ "idg": {
291
+ "type": "SHORT_TEXT",
292
+ "required": false,
293
+ "description": "\"idg\"",
294
+ "displayName": "IDG"
295
+ },
296
+ "idoperacao": {
297
+ "type": "SHORT_TEXT",
298
+ "required": false,
299
+ "description": "\"idOperacao\"",
300
+ "displayName": "ID Operação (Barramento)"
301
+ },
302
+ "fundo_operado": {
303
+ "type": "SHORT_TEXT",
304
+ "required": false,
305
+ "description": "\"origem\"",
306
+ "displayName": "Base"
307
+ },
308
+ "nome_do_fundo": {
309
+ "type": "SHORT_TEXT",
310
+ "required": false,
311
+ "description": "\"empresaNome\"",
312
+ "displayName": "Nome do Fundo"
313
+ },
314
+ "data_da_opera_o": {
315
+ "type": "SHORT_TEXT",
316
+ "required": false,
317
+ "description": "\"dataOperacao\"",
318
+ "displayName": "Data da operação"
319
+ },
320
+ "descri_o_do_idg": {
321
+ "type": "SHORT_TEXT",
322
+ "required": false,
323
+ "description": "\"idgDesc\"",
324
+ "displayName": "Descrição do IDG"
325
+ },
326
+ "fundo_operado_1": {
327
+ "type": "SHORT_TEXT",
328
+ "required": false,
329
+ "description": "\"empresaCodigo\"",
330
+ "displayName": "Fundo Operado"
331
+ },
332
+ "e_mail_do_comercial_respons_vel": {
333
+ "type": "SHORT_TEXT",
334
+ "required": false,
335
+ "description": "\"emailComercialResponsavel\"",
336
+ "displayName": "E-mail do comercial (Gerente)"
337
+ },
338
+ "nome_do_comercial_respons_vel_gerente_da_conta": {
339
+ "type": "SHORT_TEXT",
340
+ "required": false,
341
+ "description": "\"nomeGerenteConta\"",
342
+ "displayName": "Nome do comercial (Gerente da conta)"
343
+ },
344
+ "nome_do_comercial_respons_vel_assistente_da_conta": {
345
+ "type": "SHORT_TEXT",
346
+ "required": false,
347
+ "description": "\"nomeAssistenteConta\"",
348
+ "displayName": "Nome do comercial (Assistente da conta)"
349
+ }
350
+ }
351
+ },
352
+ "organizationId": {
353
+ "type": "MANUAL"
354
+ }
355
+ },
356
+ "errorHandlingOptions": {
357
+ "retryOnFailure": {
358
+ "value": true
359
+ },
360
+ "continueOnFailure": {
361
+ "value": false
362
+ }
363
+ }
364
+ },
365
+ "nextAction": {
366
+ "name": "step_7",
367
+ "type": "PIECE",
368
+ "valid": true,
369
+ "settings": {
370
+ "input": {
371
+ "mode": "simple",
372
+ "response": {
373
+ "response": {
374
+ "novaOperacao": "{{step_2['output']['deveCriar']}}",
375
+ "cardIdOperacao": "{{step_2['output']['cardId']}}"
376
+ }
377
+ }
378
+ },
379
+ "pieceName": "@activepieces/piece-subflows",
380
+ "actionName": "returnResponse",
381
+ "sampleData": {},
382
+ "pieceVersion": "0.4.12",
383
+ "propertySettings": {
384
+ "mode": {
385
+ "type": "MANUAL"
386
+ },
387
+ "response": {
388
+ "type": "MANUAL",
389
+ "schema": {
390
+ "response": {
391
+ "type": "OBJECT",
392
+ "required": true,
393
+ "displayName": "Response"
394
+ }
395
+ }
396
+ }
397
+ },
398
+ "errorHandlingOptions": {
399
+ "retryOnFailure": {
400
+ "value": false
401
+ },
402
+ "continueOnFailure": {
403
+ "value": false
404
+ }
405
+ }
406
+ },
407
+ "displayName": "Return Response",
408
+ "lastUpdatedDate": "2026-08-11T14:56:24.491Z"
409
+ },
410
+ "displayName": "Atualiza Operação",
411
+ "lastUpdatedDate": "2026-08-11T14:56:24.490Z"
412
+ }
413
+ ],
414
+ "settings": {
415
+ "branches": [
416
+ {
417
+ "branchName": "Sim",
418
+ "branchType": "CONDITION",
419
+ "conditions": [
420
+ [
421
+ {
422
+ "operator": "BOOLEAN_IS_TRUE",
423
+ "firstValue": "{{step_2['output']['deveCriar']}}"
424
+ }
425
+ ]
426
+ ]
427
+ },
428
+ {
429
+ "branchName": "Otherwise",
430
+ "branchType": "FALLBACK"
431
+ }
432
+ ],
433
+ "sampleData": {},
434
+ "executionType": "EXECUTE_FIRST_MATCH"
435
+ },
436
+ "displayName": "deveCriar",
437
+ "lastUpdatedDate": "2026-08-11T14:56:24.490Z"
438
+ },
439
+ "displayName": "Buscar chaveComposta",
440
+ "lastUpdatedDate": "2026-08-11T14:56:24.490Z"
441
+ },
442
+ "displayName": "Get cards by field value",
443
+ "lastUpdatedDate": "2026-08-11T14:56:24.489Z"
444
+ },
445
+ "lastUpdatedDate": "2026-08-11T14:56:24.489Z",
446
+ "type": "PIECE_TRIGGER",
447
+ "settings": {
448
+ "propertySettings": {
449
+ "mode": {
450
+ "type": "MANUAL"
451
+ },
452
+ "exampleData": {
453
+ "type": "MANUAL",
454
+ "schema": {
455
+ "sampleData": {
456
+ "type": "example",
457
+ "required": false,
458
+ "displayName": "example"
459
+ }
460
+ }
461
+ }
462
+ },
463
+ "pieceName": "@activepieces/piece-subflows",
464
+ "pieceVersion": "0.4.12",
465
+ "triggerName": "callableFlow",
466
+ "input": {
467
+ "mode": "advanced",
468
+ "exampleData": {
469
+ "sampleData": {
470
+ "operacao": {
471
+ "idg": "example",
472
+ "origem": "example",
473
+ "idgDesc": "example",
474
+ "titulos": [
475
+ {
476
+ "idg": "example",
477
+ "eveNfe": "example",
478
+ "sacado": {
479
+ "nome": "example",
480
+ "email": "example",
481
+ "endereco": "example",
482
+ "idSacado": 0,
483
+ "percHNeg": {
484
+ "totQtd": 0,
485
+ "totSac": 0,
486
+ "totNegativa": 0
487
+ },
488
+ "percHPre": {
489
+ "totQtd": 0,
490
+ "totSac": 0,
491
+ "totPresente": 0
492
+ },
493
+ "cnpjOuCpf": "example",
494
+ "idCedente": 0,
495
+ "indicadores": "example",
496
+ "razaoSocial": "example",
497
+ "nomeFantasia": "example",
498
+ "codigoEmpresa": 0,
499
+ "telefoneContato": "example",
500
+ "liquidacaoPorEvento": [
501
+ {
502
+ "descricao": "example",
503
+ "codigoEvento": 0,
504
+ "totalLiquidado": 0,
505
+ "quantidadeTitulos": 0
506
+ }
507
+ ],
508
+ "historicoValorAberto": {
509
+ "totalTitulosAbertos": 0,
510
+ "totalTitulosAbertosQtd": 0,
511
+ "totalTitulosAbertosVencer": 0,
512
+ "totalTitulosAbertosVencidos": 0,
513
+ "totalTitulosAbertosVencerQtd": 0,
514
+ "totalTitulosAbertosVencidosQtd": 0
515
+ },
516
+ "historicoValorLiquidado": {
517
+ "totalOpeNaoEfetivadas": 0,
518
+ "totalTitulosLiquidados": 0,
519
+ "totalOpeNaoEfetivadasQtd": 0,
520
+ "totalTitulosLiquidadosQtd": 0,
521
+ "totalTitulosLiquidadosPagoDia": 0,
522
+ "totalTitulosLiquidadosPagoAtraso": 0,
523
+ "totalTitulosLiquidadosPagoDiaQtd": 0,
524
+ "totalTitulosLiquidadosPagoAtrasoQtd": 0,
525
+ "totalTitulosLiquidadosChequeDevolvido": 0,
526
+ "totalTitulosLiquidadosChequeDevolvidoQtd": 0
527
+ }
528
+ },
529
+ "status": "example",
530
+ "cedente": {
531
+ "nome": "example",
532
+ "email": "example",
533
+ "endereco": "example",
534
+ "cnpjOuCpf": "example",
535
+ "idCedente": 0,
536
+ "dataCadastro": "example",
537
+ "codigoEmpresa": 0,
538
+ "telefoneContato": "example",
539
+ "idGrupoPrincipal": 0,
540
+ "analistaResponsavel": "example",
541
+ "vinculoGrupoEconomico": false
542
+ },
543
+ "idgDesc": "example",
544
+ "documento": "example",
545
+ "linkBoleto": "example",
546
+ "numeroNota": "example",
547
+ "valorBruto": 0,
548
+ "vencimento": "example",
549
+ "confirmacao": "example",
550
+ "empresaNome": "example",
551
+ "nfXmlBase64": "example",
552
+ "numeroTitulo": 0,
553
+ "valorLiquido": 0,
554
+ "classificacao": "example",
555
+ "empresaCodigo": 0,
556
+ "idUnicoSacado": 0,
557
+ "valorPassagem": 0,
558
+ "formaPagamento": "example",
559
+ "idUnicoCedente": 0,
560
+ "statusBancario": "example",
561
+ "dataFaturamento": "example",
562
+ "idUnicoOperacao": 0,
563
+ "nfeMonitoramento": [
564
+ {
565
+ "nlmData": "example",
566
+ "nlmHora": "example",
567
+ "ernDescricao": "example",
568
+ "nlmChaveRetorno": "example",
569
+ "nlmCodigoEventoRetorno": 0,
570
+ "nlmDescricaoEventoRetorno": "example"
571
+ }
572
+ ],
573
+ "valorComDesconto": 0,
574
+ "razaoSocialSacado": "example",
575
+ "retornosBancarios": [
576
+ {
577
+ "id": 0,
578
+ "valor": 0,
579
+ "evento": "example",
580
+ "movData": "example",
581
+ "empCodigo": 0,
582
+ "movCodigo": "example",
583
+ "movOrigem": "example",
584
+ "movUsuario": "example",
585
+ "dataPContato": "example",
586
+ "movDescricao": "example",
587
+ "movIdentificaOrigem": 0
588
+ }
589
+ ],
590
+ "analistaResponsavel": "example",
591
+ "acompanhamentoDeCobranca": [
592
+ {
593
+ "id": 0,
594
+ "valor": 0,
595
+ "evento": "example",
596
+ "movData": "example",
597
+ "empCodigo": 0,
598
+ "movCodigo": "example",
599
+ "movOrigem": "example",
600
+ "movUsuario": "example",
601
+ "dataPContato": "example",
602
+ "movDescricao": "example",
603
+ "movIdentificaOrigem": 0
604
+ }
605
+ ]
606
+ }
607
+ ],
608
+ "documentos": [
609
+ {
610
+ "chave": "example",
611
+ "linkArquivo": "example",
612
+ "nomeArquivo": "example"
613
+ }
614
+ ],
615
+ "idOperacao": 0,
616
+ "empresaNome": "example",
617
+ "dataOperacao": "example",
618
+ "chaveComposta": "example",
619
+ "empresaCodigo": 0,
620
+ "chaveResponsavel": "example",
621
+ "nomeGerenteConta": "example",
622
+ "nomeAssistenteConta": "example",
623
+ "emailComercialResponsavel": "example"
624
+ }
625
+ }
626
+ }
627
+ }
628
+ }
629
+ },
630
+ "valid": true,
631
+ "schemaVersion": "22",
632
+ "notes": []
633
+ }
634
+ ],
635
+ "status": "PUBLISHED"
636
+ }