feat(v2): add build script that inlines tested logic/*.js into n8n Code nodes
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
00bb89f4f4
commit
ec596a29a8
@@ -0,0 +1,94 @@
|
||||
{
|
||||
"name": "[DEV] Coordenador GLPI - Chamados Abertos v2 (Shadow)",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "manual-trigger-v2",
|
||||
"name": "Manual Trigger",
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [180, 300],
|
||||
"parameters": {}
|
||||
},
|
||||
{
|
||||
"id": "schedule-trigger-v2-desligado",
|
||||
"name": "Schedule Trigger - Dias uteis 08h (desligado em DEV)",
|
||||
"type": "n8n-nodes-base.scheduleTrigger",
|
||||
"typeVersion": 1.2,
|
||||
"position": [180, 640],
|
||||
"parameters": {
|
||||
"rule": {
|
||||
"interval": [
|
||||
{ "field": "cronExpression", "expression": "0 8 * * 1-5" }
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "config-v2",
|
||||
"name": "Config - Coordenador GLPI v2",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3.4,
|
||||
"position": [440, 300],
|
||||
"parameters": {
|
||||
"assignments": {
|
||||
"assignments": [
|
||||
{
|
||||
"id": "glpi-base-url-v2",
|
||||
"name": "glpi_base_url",
|
||||
"type": "string",
|
||||
"value": "https://glpi.suaempresa.com.br"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "code-montar-sql-candidatos",
|
||||
"name": "Code - Montar SQL Candidatos",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [700, 220],
|
||||
"parameters": {
|
||||
"jsCode": "__BUILD__:build-sql-candidatos.node.js"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "code-montar-sql-legado",
|
||||
"name": "Code - Montar SQL Legado",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [700, 460],
|
||||
"parameters": {
|
||||
"jsCode": "__BUILD__:build-sql-legado.node.js"
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Manual Trigger": {
|
||||
"main": [
|
||||
[
|
||||
{ "node": "Config - Coordenador GLPI v2", "type": "main", "index": 0 }
|
||||
]
|
||||
]
|
||||
},
|
||||
"Config - Coordenador GLPI v2": {
|
||||
"main": [
|
||||
[
|
||||
{ "node": "Code - Montar SQL Candidatos", "type": "main", "index": 0 },
|
||||
{ "node": "Code - Montar SQL Legado", "type": "main", "index": 0 }
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"pinData": {},
|
||||
"active": false,
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "",
|
||||
"meta": {
|
||||
"templateCredsSetupCompleted": false
|
||||
},
|
||||
"tags": []
|
||||
}
|
||||
Reference in New Issue
Block a user