@pipefy/pipefy-process-coder 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/ppc-pipefy-flow-authoring/SKILL.md +262 -0
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/01-main-2-danfe-consulta.json +247 -0
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/01-main-2-webhook-retorno-consulta.json +589 -0
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/01-main-4-recebimento-barramento.json +1391 -0
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/02-subflow-2-danfe-retorno.json +623 -0
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/02-subflow-4-criacao-operacao.json +636 -0
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/03-subflow-4-criacao-titulo.json +3642 -0
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/04-subflow-4-criacao-cedente.json +863 -0
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/04-subflow-4-criacao-sacado.json +799 -0
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/README.md +42 -0
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-01-subflow-1-titulo-acompanhamento-cobranca.json +581 -0
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-01-subflow-1-titulo-nfe-monitoramento.json +503 -0
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-01-subflow-1-titulo-retorno-bancario.json +562 -0
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-02-subflow-2-retorno-consulta-cedente.json +557 -0
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-02-subflow-2-retorno-consulta-sacado.json +609 -0
- package/.agents/skills/ppc-pipefy-pipe-authoring/SKILL.md +146 -0
- package/.agents/skills/ppc-pipefy-process-design/SKILL.md +127 -0
- package/.agents/skills/ppc-pipefy-workspace/SKILL.md +91 -0
- package/AGENTS.md +456 -0
- package/README.md +808 -0
- package/bin/pipe.js +13 -0
- package/package.json +35 -0
- package/src/apply/adopt.ts +150 -0
- package/src/apply/agentops.ts +71 -0
- package/src/apply/compile.ts +875 -0
- package/src/apply/execute.ts +336 -0
- package/src/apply/flowops.ts +399 -0
- package/src/apply/idmap.ts +241 -0
- package/src/apply/mutations.ts +955 -0
- package/src/apply/registry.ts +430 -0
- package/src/apply/types.ts +134 -0
- package/src/cli/args.ts +88 -0
- package/src/cli.ts +211 -0
- package/src/codec/flow.ts +199 -0
- package/src/codec/pack.ts +103 -0
- package/src/codec/roundtrip.ts +94 -0
- package/src/codec/unpack.ts +198 -0
- package/src/commands/agents.ts +184 -0
- package/src/commands/apply.ts +1144 -0
- package/src/commands/context.ts +119 -0
- package/src/commands/create.ts +79 -0
- package/src/commands/diff.ts +314 -0
- package/src/commands/flows.ts +414 -0
- package/src/commands/misc.ts +644 -0
- package/src/commands/plan.ts +331 -0
- package/src/commands/pull.ts +567 -0
- package/src/commands/runs.ts +83 -0
- package/src/commands/skills.ts +137 -0
- package/src/commands/verify.ts +253 -0
- package/src/config.ts +168 -0
- package/src/diff/agents.ts +122 -0
- package/src/diff/diff.ts +1130 -0
- package/src/diff/flow.ts +318 -0
- package/src/diff/html.ts +322 -0
- package/src/diff/render.ts +101 -0
- package/src/model/payload.ts +154 -0
- package/src/model/tree.ts +99 -0
- package/src/model/volatile.ts +55 -0
- package/src/pipefy/agents.ts +165 -0
- package/src/pipefy/automations.ts +219 -0
- package/src/pipefy/capability.ts +119 -0
- package/src/pipefy/client.ts +267 -0
- package/src/pipefy/discovery.ts +209 -0
- package/src/pipefy/internal.ts +380 -0
- package/src/pipefy/ipaas.ts +365 -0
- package/src/pipefy/reconstruct.ts +775 -0
- package/src/pipefy/reference.ts +251 -0
- package/src/pipefy/snapshot.ts +245 -0
- package/src/pipefy/toolkit.ts +200 -0
- package/src/pipefy/toolkit_bearer.py +137 -0
- package/src/report/integrations.ts +231 -0
- package/src/report/run.ts +475 -0
- package/src/util/fsx.ts +45 -0
- package/src/util/git.ts +32 -0
- package/src/util/json.ts +55 -0
- package/src/util/log.ts +76 -0
- package/src/util/pool.ts +48 -0
- package/src/util/slug.ts +26 -0
- package/src/util/tui.ts +335 -0
- package/src/validate/index.ts +123 -0
- package/src/validate/integrity.ts +387 -0
- package/src/validate/reference.ts +136 -0
- package/src/validate/schema.ts +328 -0
- package/src/workspace/agents.ts +290 -0
- package/src/workspace/docs.ts +407 -0
- package/src/workspace/flows.ts +191 -0
- package/src/workspace/layout.ts +165 -0
- package/src/workspace/lock.ts +148 -0
- package/src/workspace/read.ts +165 -0
- package/src/workspace/reference.ts +24 -0
- package/src/workspace/stamp.ts +301 -0
- package/src/workspace/write.ts +225 -0
|
@@ -0,0 +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
|
+
}
|