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