add n8n flows for upload + register company
This commit is contained in:
parent
df7316265d
commit
c5326ad634
1225
Ingresar_Empresa_2_v2_1_PROD.json
Normal file
1225
Ingresar_Empresa_2_v2_1_PROD.json
Normal file
File diff suppressed because it is too large
Load Diff
320
UploadTemplates.json
Normal file
320
UploadTemplates.json
Normal file
|
@ -0,0 +1,320 @@
|
|||
{
|
||||
"name": "UploadTemplates",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {
|
||||
"authentication": "basicAuth",
|
||||
"formTitle": "Upload Files",
|
||||
"formFields": {
|
||||
"values": [
|
||||
{
|
||||
"fieldLabel": "Certificado",
|
||||
"fieldType": "file",
|
||||
"multipleFiles": false,
|
||||
"acceptFileTypes": ".crt",
|
||||
"requiredField": true
|
||||
},
|
||||
{
|
||||
"fieldLabel": "PDF",
|
||||
"fieldType": "file",
|
||||
"acceptFileTypes": ".zip",
|
||||
"requiredField": true
|
||||
},
|
||||
{
|
||||
"fieldLabel": "Email",
|
||||
"fieldType": "file",
|
||||
"acceptFileTypes": ".hbs",
|
||||
"requiredField": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.formTrigger",
|
||||
"typeVersion": 2.2,
|
||||
"position": [
|
||||
40,
|
||||
60
|
||||
],
|
||||
"id": "734d1d55-0ed3-48f3-abdd-3dbccff1fce4",
|
||||
"name": "Upload Forms",
|
||||
"webhookId": "b3c8c05e-a3e2-4f2b-a287-640ac09abf84",
|
||||
"credentials": {
|
||||
"httpBasicAuth": {
|
||||
"id": "RGZpTg5V9GRShcjv",
|
||||
"name": "Credential Form"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"authentication": "privateKey",
|
||||
"resource": "file",
|
||||
"binaryPropertyName": "Certificado",
|
||||
"path": "/root/tst-services/felsv/certificates",
|
||||
"options": {
|
||||
"fileName": "="
|
||||
}
|
||||
},
|
||||
"type": "n8n-nodes-base.ssh",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-1060,
|
||||
40
|
||||
],
|
||||
"id": "b5d3b989-9fff-4106-9dc1-dfe77a875a71",
|
||||
"name": "Upload Certificado",
|
||||
"credentials": {
|
||||
"sshPrivateKey": {
|
||||
"id": "yfQgIOpHFSYSqrHI",
|
||||
"name": "SSH Server TST"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"authentication": "privateKey",
|
||||
"resource": "file",
|
||||
"binaryPropertyName": "=PDF",
|
||||
"path": "/tmp/",
|
||||
"options": {
|
||||
"fileName": "pdf.zip"
|
||||
}
|
||||
},
|
||||
"type": "n8n-nodes-base.ssh",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-1060,
|
||||
-140
|
||||
],
|
||||
"id": "9fee6de7-4bdf-406f-88a8-ee07a2209a7d",
|
||||
"name": "Upload PDF",
|
||||
"executeOnce": true,
|
||||
"credentials": {
|
||||
"sshPrivateKey": {
|
||||
"id": "yfQgIOpHFSYSqrHI",
|
||||
"name": "SSH Server TST"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"authentication": "privateKey",
|
||||
"resource": "file",
|
||||
"binaryPropertyName": "Email",
|
||||
"path": "=/root/tst-services/felsv/templates/email/{{ $json.Certificado.filename.split(\".\")[0] }}",
|
||||
"options": {
|
||||
"fileName": ""
|
||||
}
|
||||
},
|
||||
"type": "n8n-nodes-base.ssh",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-1060,
|
||||
-380
|
||||
],
|
||||
"id": "0ec2d026-5d29-45ef-80d5-bbb68244de27",
|
||||
"name": "Upload Email",
|
||||
"credentials": {
|
||||
"sshPrivateKey": {
|
||||
"id": "yfQgIOpHFSYSqrHI",
|
||||
"name": "SSH Server TST"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"authentication": "privateKey",
|
||||
"command": "=unzip -o /tmp/pdf.zip -d /root/tst-services/felsv/templates/pdf/",
|
||||
"cwd": "/tmp/"
|
||||
},
|
||||
"type": "n8n-nodes-base.ssh",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-900,
|
||||
-140
|
||||
],
|
||||
"id": "65b93163-2540-4470-98e5-2c6733c2232c",
|
||||
"name": "Descomprimir",
|
||||
"credentials": {
|
||||
"sshPrivateKey": {
|
||||
"id": "yfQgIOpHFSYSqrHI",
|
||||
"name": "SSH Server TST"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "object",
|
||||
"operation": "create",
|
||||
"bucketName": "cbii_templates_certificates",
|
||||
"objectName": "={{ $json.Certificado.filename.split(\".\")[0] }}/{{ $json.Certificado.filename }}",
|
||||
"createBinaryPropertyName": "Certificado",
|
||||
"createData": {},
|
||||
"createQuery": {},
|
||||
"encryptionHeaders": {},
|
||||
"requestOptions": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.googleCloudStorage",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-400,
|
||||
-380
|
||||
],
|
||||
"id": "7df95548-d225-4466-a782-2449e8f77d62",
|
||||
"name": "Upload Certificado to Bucket",
|
||||
"credentials": {
|
||||
"googleCloudStorageOAuth2Api": {
|
||||
"id": "yRGr81Qzz10qzc4z",
|
||||
"name": "Client OAuth - Consiti CBII "
|
||||
}
|
||||
},
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "object",
|
||||
"operation": "create",
|
||||
"bucketName": "cbii_templates_certificates",
|
||||
"objectName": "={{ $json.Certificado.filename.split(\".\")[0] }}/{{ $json.PDF[0].filename }}",
|
||||
"createBinaryPropertyName": "PDF",
|
||||
"createData": {},
|
||||
"createQuery": {},
|
||||
"encryptionHeaders": {},
|
||||
"requestOptions": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.googleCloudStorage",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-400,
|
||||
-160
|
||||
],
|
||||
"id": "4f63879e-189b-4c4a-a70f-a5f73c565f9b",
|
||||
"name": "Upload Templates to Bucket",
|
||||
"credentials": {
|
||||
"googleCloudStorageOAuth2Api": {
|
||||
"id": "yRGr81Qzz10qzc4z",
|
||||
"name": "Client OAuth - Consiti CBII "
|
||||
}
|
||||
},
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "object",
|
||||
"operation": "create",
|
||||
"bucketName": "cbii_templates_certificates",
|
||||
"objectName": "={{ $json.Certificado.filename.split(\".\")[0] }}/{{ $json.Email[0].filename }}",
|
||||
"createBinaryPropertyName": "Email",
|
||||
"createData": {},
|
||||
"createQuery": {},
|
||||
"encryptionHeaders": {},
|
||||
"requestOptions": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.googleCloudStorage",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-400,
|
||||
80
|
||||
],
|
||||
"id": "9adae919-4ac7-4a53-8ccb-fb2d4079eb55",
|
||||
"name": "Upload Email to Bucket",
|
||||
"credentials": {
|
||||
"googleCloudStorageOAuth2Api": {
|
||||
"id": "yRGr81Qzz10qzc4z",
|
||||
"name": "Client OAuth - Consiti CBII "
|
||||
}
|
||||
},
|
||||
"disabled": true
|
||||
}
|
||||
],
|
||||
"pinData": {},
|
||||
"connections": {
|
||||
"Upload Forms": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Upload Certificado",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Upload Email",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Upload PDF",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Upload Certificado to Bucket",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Upload Templates to Bucket",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Upload Email to Bucket",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Upload PDF": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Descomprimir",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Upload Email": {
|
||||
"main": [
|
||||
[]
|
||||
]
|
||||
},
|
||||
"Upload Certificado": {
|
||||
"main": [
|
||||
[]
|
||||
]
|
||||
},
|
||||
"Descomprimir": {
|
||||
"main": [
|
||||
[]
|
||||
]
|
||||
}
|
||||
},
|
||||
"active": true,
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "99d219be-9778-4dd6-9d97-831baf099b52",
|
||||
"meta": {
|
||||
"templateCredsSetupCompleted": true,
|
||||
"instanceId": "3f00f827e6d66efc9f97c59f1ab5be760cb897b12d5d15eaf36385f8951cde88"
|
||||
},
|
||||
"id": "ZQEGXSpgxkbplRpX",
|
||||
"tags": [
|
||||
{
|
||||
"createdAt": "2025-06-06T20:26:36.314Z",
|
||||
"updatedAt": "2025-06-06T20:26:36.314Z",
|
||||
"id": "pvSaQz86UM7L4TXW",
|
||||
"name": "test"
|
||||
},
|
||||
{
|
||||
"createdAt": "2025-06-06T20:26:44.764Z",
|
||||
"updatedAt": "2025-06-06T20:26:44.764Z",
|
||||
"id": "wiMFPYvsdx1YRorp",
|
||||
"name": "felsv"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user