@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,562 +1,562 @@
1
- {
2
- "name": "✅[PRD][HML][1/1 SUBFLOW][CRIAÇÃO] TÍTULO - RETORNO BANCÁRIO",
3
- "type": "SHARED",
4
- "summary": "",
5
- "description": "",
6
- "tags": [],
7
- "blogUrl": "",
8
- "metadata": {
9
- "externalId": "exampleFlowId14aaaaaa"
10
- },
11
- "author": "Integrações Ipaas 000000000",
12
- "categories": [],
13
- "pieces": [
14
- "@activepieces/piece-subflows",
15
- "@activepieces/piece-pipefy",
16
- "@activepieces/piece-store"
17
- ],
18
- "flows": [
19
- {
20
- "displayName": "✅[PRD][HML][1/1 SUBFLOW][CRIAÇÃO] TÍTULO - RETORNO BANCÁRIO",
21
- "trigger": {
22
- "name": "trigger",
23
- "valid": true,
24
- "displayName": "Objeto retornosBancarios",
25
- "nextAction": {
26
- "name": "step_1",
27
- "skip": false,
28
- "type": "LOOP_ON_ITEMS",
29
- "valid": true,
30
- "settings": {
31
- "items": "{{trigger['output']['data']['retornosBancarios']}}",
32
- "sampleData": {}
33
- },
34
- "nextAction": {
35
- "name": "step_5",
36
- "skip": false,
37
- "type": "PIECE",
38
- "valid": true,
39
- "settings": {
40
- "input": {
41
- "key": "listCardId",
42
- "store_scope": "RUN"
43
- },
44
- "pieceName": "@activepieces/piece-store",
45
- "actionName": "get",
46
- "sampleData": {},
47
- "pieceVersion": "0.6.15",
48
- "propertySettings": {
49
- "key": {
50
- "type": "MANUAL"
51
- },
52
- "store_scope": {
53
- "type": "MANUAL"
54
- },
55
- "defaultValue": {
56
- "type": "example"
57
- }
58
- },
59
- "errorHandlingOptions": {
60
- "retryOnFailure": {
61
- "value": false
62
- },
63
- "continueOnFailure": {
64
- "value": false
65
- }
66
- }
67
- },
68
- "nextAction": {
69
- "name": "step_4",
70
- "skip": false,
71
- "type": "ROUTER",
72
- "valid": true,
73
- "children": [
74
- {
75
- "name": "step_6",
76
- "skip": false,
77
- "type": "CODE",
78
- "valid": true,
79
- "settings": {
80
- "input": {
81
- "listCardId": "{{step_5['output']}}"
82
- },
83
- "sampleData": {},
84
- "sourceCode": {
85
- "code": "export const code = async (inputs) => {\n const ids = inputs.listCardId ?? [];\n const unique = [...new Set(ids.map(String))];\n\n return {\n arrayString: JSON.stringify(unique)\n };\n};",
86
- "packageJson": "{}"
87
- },
88
- "errorHandlingOptions": {
89
- "retryOnFailure": {
90
- "value": false
91
- },
92
- "continueOnFailure": {
93
- "value": false
94
- }
95
- }
96
- },
97
- "nextAction": {
98
- "name": "step_7",
99
- "skip": false,
100
- "type": "PIECE",
101
- "valid": true,
102
- "settings": {
103
- "input": {
104
- "url": {
105
- "url": "https://api.pipefy.com/graphql"
106
- },
107
- "auth": "{{connections['exampleConnectionId3']}}",
108
- "body": {
109
- "data": {
110
- "query": "mutation {\n updateCardField(input: {card_id:\"{{trigger['output']['data']['cardIdTitulo']}}\", field_id:\"retorno_banc_rio\", new_value:{{step_6['output']['arrayString']}}}) {\n clientMutationId\n } \n\t\n}\n",
111
- "variables": null
112
- }
113
- },
114
- "method": "POST",
115
- "headers": {},
116
- "failsafe": false,
117
- "body_type": "json",
118
- "queryParams": {},
119
- "followRedirects": false,
120
- "response_is_binary": false
121
- },
122
- "pieceName": "@activepieces/piece-pipefy",
123
- "actionName": "custom_api_call",
124
- "sampleData": {},
125
- "pieceVersion": "0.1.8",
126
- "propertySettings": {
127
- "url": {
128
- "type": "MANUAL",
129
- "schema": {
130
- "url": {
131
- "type": "SHORT_TEXT",
132
- "required": true,
133
- "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",
134
- "displayName": "URL",
135
- "defaultValue": "https://api.pipefy.com/graphql"
136
- }
137
- }
138
- },
139
- "body": {
140
- "type": "MANUAL",
141
- "schema": {
142
- "data": {
143
- "type": "JSON",
144
- "required": true,
145
- "displayName": "JSON Body"
146
- }
147
- }
148
- },
149
- "method": {
150
- "type": "MANUAL"
151
- },
152
- "headers": {
153
- "type": "MANUAL"
154
- },
155
- "timeout": {
156
- "type": "MANUAL"
157
- },
158
- "failsafe": {
159
- "type": "MANUAL"
160
- },
161
- "body_type": {
162
- "type": "MANUAL"
163
- },
164
- "queryParams": {
165
- "type": "MANUAL"
166
- },
167
- "followRedirects": {
168
- "type": "MANUAL"
169
- },
170
- "response_is_binary": {
171
- "type": "MANUAL"
172
- }
173
- },
174
- "errorHandlingOptions": {
175
- "retryOnFailure": {
176
- "value": false
177
- },
178
- "continueOnFailure": {
179
- "value": false
180
- }
181
- }
182
- },
183
- "nextAction": {
184
- "name": "step_8",
185
- "type": "PIECE",
186
- "valid": true,
187
- "settings": {
188
- "input": {
189
- "mode": "simple",
190
- "response": {
191
- "response": {}
192
- }
193
- },
194
- "pieceName": "@activepieces/piece-subflows",
195
- "actionName": "returnResponse",
196
- "pieceVersion": "0.4.15",
197
- "propertySettings": {
198
- "mode": {
199
- "type": "MANUAL"
200
- },
201
- "response": {
202
- "type": "MANUAL",
203
- "schema": {
204
- "response": {
205
- "type": "OBJECT",
206
- "required": true,
207
- "displayName": "Response"
208
- }
209
- }
210
- }
211
- },
212
- "errorHandlingOptions": {
213
- "retryOnFailure": {
214
- "value": false
215
- },
216
- "continueOnFailure": {
217
- "value": false
218
- }
219
- }
220
- },
221
- "displayName": "Return Response",
222
- "lastUpdatedDate": "2026-08-11T12:59:38.217Z"
223
- },
224
- "displayName": "Atualização Retorno Bancário",
225
- "lastUpdatedDate": "2026-08-11T12:59:38.216Z"
226
- },
227
- "displayName": "arrayString",
228
- "lastUpdatedDate": "2026-08-11T12:59:38.216Z"
229
- },
230
- {
231
- "name": "step_9",
232
- "type": "PIECE",
233
- "valid": true,
234
- "settings": {
235
- "input": {
236
- "mode": "simple",
237
- "response": {
238
- "response": {}
239
- }
240
- },
241
- "pieceName": "@activepieces/piece-subflows",
242
- "actionName": "returnResponse",
243
- "pieceVersion": "0.4.15",
244
- "propertySettings": {
245
- "mode": {
246
- "type": "MANUAL"
247
- },
248
- "response": {
249
- "type": "MANUAL",
250
- "schema": {
251
- "response": {
252
- "type": "OBJECT",
253
- "required": true,
254
- "displayName": "Response"
255
- }
256
- }
257
- }
258
- },
259
- "errorHandlingOptions": {
260
- "retryOnFailure": {
261
- "value": false
262
- },
263
- "continueOnFailure": {
264
- "value": false
265
- }
266
- }
267
- },
268
- "displayName": "Return Response",
269
- "lastUpdatedDate": "2026-08-11T12:59:38.217Z"
270
- }
271
- ],
272
- "settings": {
273
- "branches": [
274
- {
275
- "branchName": "Is not empty",
276
- "branchType": "CONDITION",
277
- "conditions": [
278
- [
279
- {
280
- "operator": "LIST_IS_NOT_EMPTY",
281
- "firstValue": "{{step_5['output']}}"
282
- }
283
- ]
284
- ]
285
- },
286
- {
287
- "branchName": "Otherwise",
288
- "branchType": "FALLBACK"
289
- }
290
- ],
291
- "executionType": "EXECUTE_FIRST_MATCH"
292
- },
293
- "displayName": "Verificar Lista",
294
- "lastUpdatedDate": "2026-08-11T12:59:38.216Z"
295
- },
296
- "displayName": "Get - listCardId",
297
- "lastUpdatedDate": "2026-08-11T12:59:38.216Z"
298
- },
299
- "displayName": "Iteração retornosBancarios",
300
- "firstLoopAction": {
301
- "name": "step_2",
302
- "skip": false,
303
- "type": "PIECE",
304
- "valid": true,
305
- "settings": {
306
- "input": {
307
- "auth": "{{connections['exampleConnectionId3']}}",
308
- "pipeId": "200000008",
309
- "organizationId": "100000001",
310
- "startFormFields": {
311
- "data": "{{step_1['output']['item']['movData']}}",
312
- "c_digo": "{{step_1['output']['item']['movCodigo']}}",
313
- "origem": "{{step_1['output']['item']['movOrigem']}}",
314
- "usu_rio": "{{step_1['output']['item']['movUsuario']}}",
315
- "descri_o": "{{step_1['output']['item']['movDescricao']}}",
316
- "empresa_c_digo": "{{step_1['output']['item']['empCodigo']}}",
317
- "identifica_origem": "{{step_1['output']['item']['movIdentificaOrigem']}}",
318
- "id_retorno_banc_rio_barramento": "{{step_1['output']['item']['id']}}"
319
- }
320
- },
321
- "pieceName": "@activepieces/piece-pipefy",
322
- "actionName": "createCard",
323
- "sampleData": {},
324
- "pieceVersion": "0.1.8",
325
- "propertySettings": {
326
- "pipeId": {
327
- "type": "MANUAL"
328
- },
329
- "organizationId": {
330
- "type": "MANUAL"
331
- },
332
- "startFormFields": {
333
- "type": "MANUAL",
334
- "schema": {
335
- "data": {
336
- "type": "SHORT_TEXT",
337
- "required": false,
338
- "description": "",
339
- "displayName": "Data"
340
- },
341
- "c_digo": {
342
- "type": "SHORT_TEXT",
343
- "required": false,
344
- "description": "",
345
- "displayName": "Código"
346
- },
347
- "origem": {
348
- "type": "SHORT_TEXT",
349
- "required": false,
350
- "description": "",
351
- "displayName": "Origem"
352
- },
353
- "usu_rio": {
354
- "type": "SHORT_TEXT",
355
- "required": false,
356
- "description": "",
357
- "displayName": "Usuário"
358
- },
359
- "descri_o": {
360
- "type": "LONG_TEXT",
361
- "required": false,
362
- "description": "",
363
- "displayName": "Descrição"
364
- },
365
- "empresa_c_digo": {
366
- "type": "NUMBER",
367
- "required": false,
368
- "description": "",
369
- "displayName": "Empresa código"
370
- },
371
- "identifica_origem": {
372
- "type": "SHORT_TEXT",
373
- "required": false,
374
- "description": "",
375
- "displayName": "Identificação Origem"
376
- },
377
- "id_retorno_banc_rio_barramento": {
378
- "type": "SHORT_TEXT",
379
- "required": false,
380
- "description": "",
381
- "displayName": "ID Retorno bancário (Barramento)"
382
- }
383
- }
384
- }
385
- },
386
- "errorHandlingOptions": {
387
- "retryOnFailure": {
388
- "value": false
389
- },
390
- "continueOnFailure": {
391
- "value": true
392
- }
393
- }
394
- },
395
- "nextAction": {
396
- "name": "step_3",
397
- "skip": false,
398
- "type": "PIECE",
399
- "valid": true,
400
- "settings": {
401
- "input": {
402
- "key": "listCardId",
403
- "value": [
404
- "{{step_2['output']['data']['createCard']['card']['id']}}"
405
- ],
406
- "store_scope": "RUN",
407
- "ignore_if_exists": false
408
- },
409
- "pieceName": "@activepieces/piece-store",
410
- "actionName": "add_to_list",
411
- "sampleData": {},
412
- "pieceVersion": "0.6.15",
413
- "propertySettings": {
414
- "key": {
415
- "type": "MANUAL"
416
- },
417
- "value": {
418
- "type": "MANUAL"
419
- },
420
- "store_scope": {
421
- "type": "MANUAL"
422
- },
423
- "ignore_if_exists": {
424
- "type": "MANUAL"
425
- }
426
- },
427
- "errorHandlingOptions": {
428
- "retryOnFailure": {
429
- "value": false
430
- },
431
- "continueOnFailure": {
432
- "value": false
433
- }
434
- }
435
- },
436
- "displayName": "Add To List - listCardId",
437
- "lastUpdatedDate": "2026-08-11T12:59:38.216Z"
438
- },
439
- "displayName": "Criação Retorno Bancário - 200000008",
440
- "lastUpdatedDate": "2026-08-11T12:59:38.216Z"
441
- },
442
- "lastUpdatedDate": "2026-08-11T12:59:38.215Z"
443
- },
444
- "lastUpdatedDate": "2026-08-11T12:59:38.215Z",
445
- "type": "PIECE_TRIGGER",
446
- "settings": {
447
- "sampleData": {},
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.15",
465
- "triggerName": "callableFlow",
466
- "input": {
467
- "mode": "advanced",
468
- "exampleData": {
469
- "sampleData": {
470
- "cardIdTitulo": "example",
471
- "retornosBancarios": [
472
- {
473
- "id": "example",
474
- "valor": 0,
475
- "evento": "example",
476
- "movData": "example",
477
- "empCodigo": 0,
478
- "movCodigo": "example",
479
- "movOrigem": "example",
480
- "movUsuario": "example",
481
- "dataPContato": "example",
482
- "movDescricao": "example",
483
- "movIdentificaOrigem": "example"
484
- },
485
- {
486
- "id": "example",
487
- "valor": 0,
488
- "evento": "example",
489
- "movData": "example",
490
- "empCodigo": 0,
491
- "movCodigo": "example",
492
- "movOrigem": "example",
493
- "movUsuario": "example",
494
- "dataPContato": "example",
495
- "movDescricao": "example",
496
- "movIdentificaOrigem": "example"
497
- },
498
- {
499
- "id": "example",
500
- "valor": 0,
501
- "evento": "example",
502
- "movData": "example",
503
- "empCodigo": 0,
504
- "movCodigo": "example",
505
- "movOrigem": "example",
506
- "movUsuario": "example",
507
- "dataPContato": "example",
508
- "movDescricao": "example",
509
- "movIdentificaOrigem": "example"
510
- },
511
- {
512
- "id": "example",
513
- "valor": 0,
514
- "evento": "example",
515
- "movData": "example",
516
- "empCodigo": 0,
517
- "movCodigo": "example",
518
- "movOrigem": "example",
519
- "movUsuario": "example",
520
- "dataPContato": "example",
521
- "movDescricao": "example",
522
- "movIdentificaOrigem": "example"
523
- },
524
- {
525
- "id": "example",
526
- "valor": 0,
527
- "evento": "example",
528
- "movData": "example",
529
- "empCodigo": 0,
530
- "movCodigo": "example",
531
- "movOrigem": "example",
532
- "movUsuario": "example",
533
- "dataPContato": "example",
534
- "movDescricao": "example",
535
- "movIdentificaOrigem": "example"
536
- },
537
- {
538
- "id": "example",
539
- "valor": 0,
540
- "evento": "example",
541
- "movData": "example",
542
- "empCodigo": 0,
543
- "movCodigo": "example",
544
- "movOrigem": "example",
545
- "movUsuario": "example",
546
- "dataPContato": "example",
547
- "movDescricao": "example",
548
- "movIdentificaOrigem": "example"
549
- }
550
- ]
551
- }
552
- }
553
- }
554
- }
555
- },
556
- "valid": true,
557
- "schemaVersion": "22",
558
- "notes": []
559
- }
560
- ],
561
- "status": "PUBLISHED"
562
- }
1
+ {
2
+ "name": "✅[PRD][HML][1/1 SUBFLOW][CRIAÇÃO] TÍTULO - RETORNO BANCÁRIO",
3
+ "type": "SHARED",
4
+ "summary": "",
5
+ "description": "",
6
+ "tags": [],
7
+ "blogUrl": "",
8
+ "metadata": {
9
+ "externalId": "exampleFlowId14aaaaaa"
10
+ },
11
+ "author": "Integrações Ipaas 000000000",
12
+ "categories": [],
13
+ "pieces": [
14
+ "@activepieces/piece-subflows",
15
+ "@activepieces/piece-pipefy",
16
+ "@activepieces/piece-store"
17
+ ],
18
+ "flows": [
19
+ {
20
+ "displayName": "✅[PRD][HML][1/1 SUBFLOW][CRIAÇÃO] TÍTULO - RETORNO BANCÁRIO",
21
+ "trigger": {
22
+ "name": "trigger",
23
+ "valid": true,
24
+ "displayName": "Objeto retornosBancarios",
25
+ "nextAction": {
26
+ "name": "step_1",
27
+ "skip": false,
28
+ "type": "LOOP_ON_ITEMS",
29
+ "valid": true,
30
+ "settings": {
31
+ "items": "{{trigger['output']['data']['retornosBancarios']}}",
32
+ "sampleData": {}
33
+ },
34
+ "nextAction": {
35
+ "name": "step_5",
36
+ "skip": false,
37
+ "type": "PIECE",
38
+ "valid": true,
39
+ "settings": {
40
+ "input": {
41
+ "key": "listCardId",
42
+ "store_scope": "RUN"
43
+ },
44
+ "pieceName": "@activepieces/piece-store",
45
+ "actionName": "get",
46
+ "sampleData": {},
47
+ "pieceVersion": "0.6.15",
48
+ "propertySettings": {
49
+ "key": {
50
+ "type": "MANUAL"
51
+ },
52
+ "store_scope": {
53
+ "type": "MANUAL"
54
+ },
55
+ "defaultValue": {
56
+ "type": "example"
57
+ }
58
+ },
59
+ "errorHandlingOptions": {
60
+ "retryOnFailure": {
61
+ "value": false
62
+ },
63
+ "continueOnFailure": {
64
+ "value": false
65
+ }
66
+ }
67
+ },
68
+ "nextAction": {
69
+ "name": "step_4",
70
+ "skip": false,
71
+ "type": "ROUTER",
72
+ "valid": true,
73
+ "children": [
74
+ {
75
+ "name": "step_6",
76
+ "skip": false,
77
+ "type": "CODE",
78
+ "valid": true,
79
+ "settings": {
80
+ "input": {
81
+ "listCardId": "{{step_5['output']}}"
82
+ },
83
+ "sampleData": {},
84
+ "sourceCode": {
85
+ "code": "export const code = async (inputs) => {\n const ids = inputs.listCardId ?? [];\n const unique = [...new Set(ids.map(String))];\n\n return {\n arrayString: JSON.stringify(unique)\n };\n};",
86
+ "packageJson": "{}"
87
+ },
88
+ "errorHandlingOptions": {
89
+ "retryOnFailure": {
90
+ "value": false
91
+ },
92
+ "continueOnFailure": {
93
+ "value": false
94
+ }
95
+ }
96
+ },
97
+ "nextAction": {
98
+ "name": "step_7",
99
+ "skip": false,
100
+ "type": "PIECE",
101
+ "valid": true,
102
+ "settings": {
103
+ "input": {
104
+ "url": {
105
+ "url": "https://api.pipefy.com/graphql"
106
+ },
107
+ "auth": "{{connections['exampleConnectionId3']}}",
108
+ "body": {
109
+ "data": {
110
+ "query": "mutation {\n updateCardField(input: {card_id:\"{{trigger['output']['data']['cardIdTitulo']}}\", field_id:\"retorno_banc_rio\", new_value:{{step_6['output']['arrayString']}}}) {\n clientMutationId\n } \n\t\n}\n",
111
+ "variables": null
112
+ }
113
+ },
114
+ "method": "POST",
115
+ "headers": {},
116
+ "failsafe": false,
117
+ "body_type": "json",
118
+ "queryParams": {},
119
+ "followRedirects": false,
120
+ "response_is_binary": false
121
+ },
122
+ "pieceName": "@activepieces/piece-pipefy",
123
+ "actionName": "custom_api_call",
124
+ "sampleData": {},
125
+ "pieceVersion": "0.1.8",
126
+ "propertySettings": {
127
+ "url": {
128
+ "type": "MANUAL",
129
+ "schema": {
130
+ "url": {
131
+ "type": "SHORT_TEXT",
132
+ "required": true,
133
+ "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",
134
+ "displayName": "URL",
135
+ "defaultValue": "https://api.pipefy.com/graphql"
136
+ }
137
+ }
138
+ },
139
+ "body": {
140
+ "type": "MANUAL",
141
+ "schema": {
142
+ "data": {
143
+ "type": "JSON",
144
+ "required": true,
145
+ "displayName": "JSON Body"
146
+ }
147
+ }
148
+ },
149
+ "method": {
150
+ "type": "MANUAL"
151
+ },
152
+ "headers": {
153
+ "type": "MANUAL"
154
+ },
155
+ "timeout": {
156
+ "type": "MANUAL"
157
+ },
158
+ "failsafe": {
159
+ "type": "MANUAL"
160
+ },
161
+ "body_type": {
162
+ "type": "MANUAL"
163
+ },
164
+ "queryParams": {
165
+ "type": "MANUAL"
166
+ },
167
+ "followRedirects": {
168
+ "type": "MANUAL"
169
+ },
170
+ "response_is_binary": {
171
+ "type": "MANUAL"
172
+ }
173
+ },
174
+ "errorHandlingOptions": {
175
+ "retryOnFailure": {
176
+ "value": false
177
+ },
178
+ "continueOnFailure": {
179
+ "value": false
180
+ }
181
+ }
182
+ },
183
+ "nextAction": {
184
+ "name": "step_8",
185
+ "type": "PIECE",
186
+ "valid": true,
187
+ "settings": {
188
+ "input": {
189
+ "mode": "simple",
190
+ "response": {
191
+ "response": {}
192
+ }
193
+ },
194
+ "pieceName": "@activepieces/piece-subflows",
195
+ "actionName": "returnResponse",
196
+ "pieceVersion": "0.4.15",
197
+ "propertySettings": {
198
+ "mode": {
199
+ "type": "MANUAL"
200
+ },
201
+ "response": {
202
+ "type": "MANUAL",
203
+ "schema": {
204
+ "response": {
205
+ "type": "OBJECT",
206
+ "required": true,
207
+ "displayName": "Response"
208
+ }
209
+ }
210
+ }
211
+ },
212
+ "errorHandlingOptions": {
213
+ "retryOnFailure": {
214
+ "value": false
215
+ },
216
+ "continueOnFailure": {
217
+ "value": false
218
+ }
219
+ }
220
+ },
221
+ "displayName": "Return Response",
222
+ "lastUpdatedDate": "2026-08-11T12:59:38.217Z"
223
+ },
224
+ "displayName": "Atualização Retorno Bancário",
225
+ "lastUpdatedDate": "2026-08-11T12:59:38.216Z"
226
+ },
227
+ "displayName": "arrayString",
228
+ "lastUpdatedDate": "2026-08-11T12:59:38.216Z"
229
+ },
230
+ {
231
+ "name": "step_9",
232
+ "type": "PIECE",
233
+ "valid": true,
234
+ "settings": {
235
+ "input": {
236
+ "mode": "simple",
237
+ "response": {
238
+ "response": {}
239
+ }
240
+ },
241
+ "pieceName": "@activepieces/piece-subflows",
242
+ "actionName": "returnResponse",
243
+ "pieceVersion": "0.4.15",
244
+ "propertySettings": {
245
+ "mode": {
246
+ "type": "MANUAL"
247
+ },
248
+ "response": {
249
+ "type": "MANUAL",
250
+ "schema": {
251
+ "response": {
252
+ "type": "OBJECT",
253
+ "required": true,
254
+ "displayName": "Response"
255
+ }
256
+ }
257
+ }
258
+ },
259
+ "errorHandlingOptions": {
260
+ "retryOnFailure": {
261
+ "value": false
262
+ },
263
+ "continueOnFailure": {
264
+ "value": false
265
+ }
266
+ }
267
+ },
268
+ "displayName": "Return Response",
269
+ "lastUpdatedDate": "2026-08-11T12:59:38.217Z"
270
+ }
271
+ ],
272
+ "settings": {
273
+ "branches": [
274
+ {
275
+ "branchName": "Is not empty",
276
+ "branchType": "CONDITION",
277
+ "conditions": [
278
+ [
279
+ {
280
+ "operator": "LIST_IS_NOT_EMPTY",
281
+ "firstValue": "{{step_5['output']}}"
282
+ }
283
+ ]
284
+ ]
285
+ },
286
+ {
287
+ "branchName": "Otherwise",
288
+ "branchType": "FALLBACK"
289
+ }
290
+ ],
291
+ "executionType": "EXECUTE_FIRST_MATCH"
292
+ },
293
+ "displayName": "Verificar Lista",
294
+ "lastUpdatedDate": "2026-08-11T12:59:38.216Z"
295
+ },
296
+ "displayName": "Get - listCardId",
297
+ "lastUpdatedDate": "2026-08-11T12:59:38.216Z"
298
+ },
299
+ "displayName": "Iteração retornosBancarios",
300
+ "firstLoopAction": {
301
+ "name": "step_2",
302
+ "skip": false,
303
+ "type": "PIECE",
304
+ "valid": true,
305
+ "settings": {
306
+ "input": {
307
+ "auth": "{{connections['exampleConnectionId3']}}",
308
+ "pipeId": "200000008",
309
+ "organizationId": "100000001",
310
+ "startFormFields": {
311
+ "data": "{{step_1['output']['item']['movData']}}",
312
+ "c_digo": "{{step_1['output']['item']['movCodigo']}}",
313
+ "origem": "{{step_1['output']['item']['movOrigem']}}",
314
+ "usu_rio": "{{step_1['output']['item']['movUsuario']}}",
315
+ "descri_o": "{{step_1['output']['item']['movDescricao']}}",
316
+ "empresa_c_digo": "{{step_1['output']['item']['empCodigo']}}",
317
+ "identifica_origem": "{{step_1['output']['item']['movIdentificaOrigem']}}",
318
+ "id_retorno_banc_rio_barramento": "{{step_1['output']['item']['id']}}"
319
+ }
320
+ },
321
+ "pieceName": "@activepieces/piece-pipefy",
322
+ "actionName": "createCard",
323
+ "sampleData": {},
324
+ "pieceVersion": "0.1.8",
325
+ "propertySettings": {
326
+ "pipeId": {
327
+ "type": "MANUAL"
328
+ },
329
+ "organizationId": {
330
+ "type": "MANUAL"
331
+ },
332
+ "startFormFields": {
333
+ "type": "MANUAL",
334
+ "schema": {
335
+ "data": {
336
+ "type": "SHORT_TEXT",
337
+ "required": false,
338
+ "description": "",
339
+ "displayName": "Data"
340
+ },
341
+ "c_digo": {
342
+ "type": "SHORT_TEXT",
343
+ "required": false,
344
+ "description": "",
345
+ "displayName": "Código"
346
+ },
347
+ "origem": {
348
+ "type": "SHORT_TEXT",
349
+ "required": false,
350
+ "description": "",
351
+ "displayName": "Origem"
352
+ },
353
+ "usu_rio": {
354
+ "type": "SHORT_TEXT",
355
+ "required": false,
356
+ "description": "",
357
+ "displayName": "Usuário"
358
+ },
359
+ "descri_o": {
360
+ "type": "LONG_TEXT",
361
+ "required": false,
362
+ "description": "",
363
+ "displayName": "Descrição"
364
+ },
365
+ "empresa_c_digo": {
366
+ "type": "NUMBER",
367
+ "required": false,
368
+ "description": "",
369
+ "displayName": "Empresa código"
370
+ },
371
+ "identifica_origem": {
372
+ "type": "SHORT_TEXT",
373
+ "required": false,
374
+ "description": "",
375
+ "displayName": "Identificação Origem"
376
+ },
377
+ "id_retorno_banc_rio_barramento": {
378
+ "type": "SHORT_TEXT",
379
+ "required": false,
380
+ "description": "",
381
+ "displayName": "ID Retorno bancário (Barramento)"
382
+ }
383
+ }
384
+ }
385
+ },
386
+ "errorHandlingOptions": {
387
+ "retryOnFailure": {
388
+ "value": false
389
+ },
390
+ "continueOnFailure": {
391
+ "value": true
392
+ }
393
+ }
394
+ },
395
+ "nextAction": {
396
+ "name": "step_3",
397
+ "skip": false,
398
+ "type": "PIECE",
399
+ "valid": true,
400
+ "settings": {
401
+ "input": {
402
+ "key": "listCardId",
403
+ "value": [
404
+ "{{step_2['output']['data']['createCard']['card']['id']}}"
405
+ ],
406
+ "store_scope": "RUN",
407
+ "ignore_if_exists": false
408
+ },
409
+ "pieceName": "@activepieces/piece-store",
410
+ "actionName": "add_to_list",
411
+ "sampleData": {},
412
+ "pieceVersion": "0.6.15",
413
+ "propertySettings": {
414
+ "key": {
415
+ "type": "MANUAL"
416
+ },
417
+ "value": {
418
+ "type": "MANUAL"
419
+ },
420
+ "store_scope": {
421
+ "type": "MANUAL"
422
+ },
423
+ "ignore_if_exists": {
424
+ "type": "MANUAL"
425
+ }
426
+ },
427
+ "errorHandlingOptions": {
428
+ "retryOnFailure": {
429
+ "value": false
430
+ },
431
+ "continueOnFailure": {
432
+ "value": false
433
+ }
434
+ }
435
+ },
436
+ "displayName": "Add To List - listCardId",
437
+ "lastUpdatedDate": "2026-08-11T12:59:38.216Z"
438
+ },
439
+ "displayName": "Criação Retorno Bancário - 200000008",
440
+ "lastUpdatedDate": "2026-08-11T12:59:38.216Z"
441
+ },
442
+ "lastUpdatedDate": "2026-08-11T12:59:38.215Z"
443
+ },
444
+ "lastUpdatedDate": "2026-08-11T12:59:38.215Z",
445
+ "type": "PIECE_TRIGGER",
446
+ "settings": {
447
+ "sampleData": {},
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.15",
465
+ "triggerName": "callableFlow",
466
+ "input": {
467
+ "mode": "advanced",
468
+ "exampleData": {
469
+ "sampleData": {
470
+ "cardIdTitulo": "example",
471
+ "retornosBancarios": [
472
+ {
473
+ "id": "example",
474
+ "valor": 0,
475
+ "evento": "example",
476
+ "movData": "example",
477
+ "empCodigo": 0,
478
+ "movCodigo": "example",
479
+ "movOrigem": "example",
480
+ "movUsuario": "example",
481
+ "dataPContato": "example",
482
+ "movDescricao": "example",
483
+ "movIdentificaOrigem": "example"
484
+ },
485
+ {
486
+ "id": "example",
487
+ "valor": 0,
488
+ "evento": "example",
489
+ "movData": "example",
490
+ "empCodigo": 0,
491
+ "movCodigo": "example",
492
+ "movOrigem": "example",
493
+ "movUsuario": "example",
494
+ "dataPContato": "example",
495
+ "movDescricao": "example",
496
+ "movIdentificaOrigem": "example"
497
+ },
498
+ {
499
+ "id": "example",
500
+ "valor": 0,
501
+ "evento": "example",
502
+ "movData": "example",
503
+ "empCodigo": 0,
504
+ "movCodigo": "example",
505
+ "movOrigem": "example",
506
+ "movUsuario": "example",
507
+ "dataPContato": "example",
508
+ "movDescricao": "example",
509
+ "movIdentificaOrigem": "example"
510
+ },
511
+ {
512
+ "id": "example",
513
+ "valor": 0,
514
+ "evento": "example",
515
+ "movData": "example",
516
+ "empCodigo": 0,
517
+ "movCodigo": "example",
518
+ "movOrigem": "example",
519
+ "movUsuario": "example",
520
+ "dataPContato": "example",
521
+ "movDescricao": "example",
522
+ "movIdentificaOrigem": "example"
523
+ },
524
+ {
525
+ "id": "example",
526
+ "valor": 0,
527
+ "evento": "example",
528
+ "movData": "example",
529
+ "empCodigo": 0,
530
+ "movCodigo": "example",
531
+ "movOrigem": "example",
532
+ "movUsuario": "example",
533
+ "dataPContato": "example",
534
+ "movDescricao": "example",
535
+ "movIdentificaOrigem": "example"
536
+ },
537
+ {
538
+ "id": "example",
539
+ "valor": 0,
540
+ "evento": "example",
541
+ "movData": "example",
542
+ "empCodigo": 0,
543
+ "movCodigo": "example",
544
+ "movOrigem": "example",
545
+ "movUsuario": "example",
546
+ "dataPContato": "example",
547
+ "movDescricao": "example",
548
+ "movIdentificaOrigem": "example"
549
+ }
550
+ ]
551
+ }
552
+ }
553
+ }
554
+ }
555
+ },
556
+ "valid": true,
557
+ "schemaVersion": "22",
558
+ "notes": []
559
+ }
560
+ ],
561
+ "status": "PUBLISHED"
562
+ }