Update backup: Tablero CDC - Sync Tarifario Sheet a Supabase
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"updatedAt": "2026-06-21T01:53:57.071Z",
|
"updatedAt": "2026-06-25T03:30:17.313Z",
|
||||||
"createdAt": "2026-06-20T14:15:17.560Z",
|
"createdAt": "2026-06-20T14:15:17.560Z",
|
||||||
"id": "7eyfZEkGuDSUodDX",
|
"id": "7eyfZEkGuDSUodDX",
|
||||||
"name": "Tablero CDC - Sync Tarifario Sheet a Supabase",
|
"name": "Tablero CDC - Sync Tarifario Sheet a Supabase",
|
||||||
@@ -359,6 +359,22 @@
|
|||||||
],
|
],
|
||||||
"id": "1a45e645-65af-4727-bf4f-15c7000ba2a2",
|
"id": "1a45e645-65af-4727-bf4f-15c7000ba2a2",
|
||||||
"name": "Schedule Trigger"
|
"name": "Schedule Trigger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"content": "## 💵 SYNC TARIFARIO CDC → SUPABASE\n\nEste flujo sincroniza automáticamente el tarifario editable desde Google Sheets hacia Supabase para que la app Tablero CDC use el catálogo actualizado.\n\nFrecuencia:\n- Cada 8 horas.\n\nProceso:\n1. Lee el Sheet “Catálogo Tarifario App”.\n2. Normaliza sección, categoría, servicio, tipo de trabajo y niveles.\n3. Convierte “monto/rango” en reference, reference_min y reference_max.\n4. Genera códigos únicos cuando faltan.\n5. Hace upsert en Supabase: tablero_cdc_tariff_catalog.\n6. Escribe de vuelta en el Sheet los códigos base generados.\n\nReglas importantes:\n- No sincroniza filas vacías.\n- Cada fila debe tener categoría, servicio y al menos un nivel con monto/rango.\n- Si hay códigos duplicados o secciones inválidas, el flujo se detiene para proteger el catálogo.\n- El Sheet es la fuente humana editable; Supabase es la fuente usada por la app.",
|
||||||
|
"height": 640,
|
||||||
|
"width": 1408,
|
||||||
|
"color": 5
|
||||||
|
},
|
||||||
|
"type": "n8n-nodes-base.stickyNote",
|
||||||
|
"typeVersion": 1,
|
||||||
|
"position": [
|
||||||
|
-64,
|
||||||
|
-432
|
||||||
|
],
|
||||||
|
"id": "23c63e0a-2e95-4ec5-b075-d08ae68754fc",
|
||||||
|
"name": "Sticky Note"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"connections": {
|
"connections": {
|
||||||
@@ -424,15 +440,17 @@
|
|||||||
},
|
},
|
||||||
"staticData": {
|
"staticData": {
|
||||||
"node:Schedule Trigger": {
|
"node:Schedule Trigger": {
|
||||||
"recurrenceRules": []
|
"recurrenceRules": [
|
||||||
|
16
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"templateCredsSetupCompleted": true
|
"templateCredsSetupCompleted": true
|
||||||
},
|
},
|
||||||
"versionId": "806aa39c-41e1-4c6a-8d58-60fb431346a1",
|
"versionId": "4ea3c2ee-0518-4a55-8c9a-ccffb26f471a",
|
||||||
"activeVersionId": "806aa39c-41e1-4c6a-8d58-60fb431346a1",
|
"activeVersionId": "4ea3c2ee-0518-4a55-8c9a-ccffb26f471a",
|
||||||
"versionCounter": 94,
|
"versionCounter": 116,
|
||||||
"triggerCount": 1,
|
"triggerCount": 1,
|
||||||
"shared": [
|
"shared": [
|
||||||
{
|
{
|
||||||
@@ -455,9 +473,9 @@
|
|||||||
],
|
],
|
||||||
"tags": [],
|
"tags": [],
|
||||||
"activeVersion": {
|
"activeVersion": {
|
||||||
"updatedAt": "2026-06-21T01:54:00.000Z",
|
"updatedAt": "2026-06-25T03:30:22.000Z",
|
||||||
"createdAt": "2026-06-21T01:53:57.073Z",
|
"createdAt": "2026-06-25T03:30:17.315Z",
|
||||||
"versionId": "806aa39c-41e1-4c6a-8d58-60fb431346a1",
|
"versionId": "4ea3c2ee-0518-4a55-8c9a-ccffb26f471a",
|
||||||
"workflowId": "7eyfZEkGuDSUodDX",
|
"workflowId": "7eyfZEkGuDSUodDX",
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
@@ -812,6 +830,22 @@
|
|||||||
],
|
],
|
||||||
"id": "1a45e645-65af-4727-bf4f-15c7000ba2a2",
|
"id": "1a45e645-65af-4727-bf4f-15c7000ba2a2",
|
||||||
"name": "Schedule Trigger"
|
"name": "Schedule Trigger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"content": "## 💵 SYNC TARIFARIO CDC → SUPABASE\n\nEste flujo sincroniza automáticamente el tarifario editable desde Google Sheets hacia Supabase para que la app Tablero CDC use el catálogo actualizado.\n\nFrecuencia:\n- Cada 8 horas.\n\nProceso:\n1. Lee el Sheet “Catálogo Tarifario App”.\n2. Normaliza sección, categoría, servicio, tipo de trabajo y niveles.\n3. Convierte “monto/rango” en reference, reference_min y reference_max.\n4. Genera códigos únicos cuando faltan.\n5. Hace upsert en Supabase: tablero_cdc_tariff_catalog.\n6. Escribe de vuelta en el Sheet los códigos base generados.\n\nReglas importantes:\n- No sincroniza filas vacías.\n- Cada fila debe tener categoría, servicio y al menos un nivel con monto/rango.\n- Si hay códigos duplicados o secciones inválidas, el flujo se detiene para proteger el catálogo.\n- El Sheet es la fuente humana editable; Supabase es la fuente usada por la app.",
|
||||||
|
"height": 640,
|
||||||
|
"width": 1408,
|
||||||
|
"color": 5
|
||||||
|
},
|
||||||
|
"type": "n8n-nodes-base.stickyNote",
|
||||||
|
"typeVersion": 1,
|
||||||
|
"position": [
|
||||||
|
-64,
|
||||||
|
-432
|
||||||
|
],
|
||||||
|
"id": "23c63e0a-2e95-4ec5-b075-d08ae68754fc",
|
||||||
|
"name": "Sticky Note"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"connections": {
|
"connections": {
|
||||||
@@ -872,15 +906,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"authors": "Isaac Aracena",
|
"authors": "Isaac Aracena",
|
||||||
"name": "Version 806aa39c",
|
"name": "Version 4ea3c2ee",
|
||||||
"description": "",
|
"description": "",
|
||||||
"autosaved": true,
|
"autosaved": true,
|
||||||
"workflowPublishHistory": [
|
"workflowPublishHistory": [
|
||||||
{
|
{
|
||||||
"createdAt": "2026-06-21T01:54:00.165Z",
|
"createdAt": "2026-06-25T03:30:22.254Z",
|
||||||
"id": 1683,
|
"id": 1861,
|
||||||
"workflowId": "7eyfZEkGuDSUodDX",
|
"workflowId": "7eyfZEkGuDSUodDX",
|
||||||
"versionId": "806aa39c-41e1-4c6a-8d58-60fb431346a1",
|
"versionId": "4ea3c2ee-0518-4a55-8c9a-ccffb26f471a",
|
||||||
"event": "activated",
|
"event": "activated",
|
||||||
"userId": "0a88c0b1-928e-4412-896e-c5d1c99b2029"
|
"userId": "0a88c0b1-928e-4412-896e-c5d1c99b2029"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user