Cauê Faleiros
39f0de34f2
Key Tiny order cache by status to stop forwarding stale situacao
...
Build and Deploy / build-and-push (push) Successful in 1m23s
Tiny fires one webhook per status change, often under a minute apart
(e.g. "Preparando envio" -> "Pronto para envio"). The 120s order details
cache was keyed only by order ID, so the second webhook reused the first
fetch and forwarded the previous situacao to n8n, which then skipped the
message (notably the pickup "Pronto para envio" notification).
Key the cache and in-flight dedupe by order ID + webhook codigoSituacao,
so a status change always refetches while same-status duplicates still
share one Tiny call.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-08 14:47:50 -03:00
Cauê Faleiros
4659222a41
Fix Swarm deployment template defaults
Build and Deploy / build-and-push (push) Successful in 52s
2026-07-29 14:58:02 -03:00
Cauê Faleiros
06b59d8d37
Sync only V3 product compositions
Build and Deploy / build-and-push (push) Successful in 1m46s
2026-07-29 14:46:25 -03:00
Cauê Faleiros
b1067325b9
Add Olist V3 product structure sync
2026-07-28 14:09:48 -03:00
Cauê Faleiros
4547642411
Add Tiny Olist production order sync
Build and Deploy / build-and-push (push) Successful in 49s
2026-07-23 14:36:45 -03:00
Cauê Faleiros
e7ea6b4276
Let product structure tests override default CSV
Build and Deploy / build-and-push (push) Successful in 53s
2026-07-23 14:15:05 -03:00
Cauê Faleiros
12aa5c7f83
Make product structure sync use product export
Build and Deploy / build-and-push (push) Successful in 1m23s
2026-07-23 14:03:43 -03:00
Cauê Faleiros
bda1e22be3
Add Tiny product structure sync
2026-07-23 13:57:47 -03:00
Cauê Faleiros
831f82ee57
Improve graphs backfill resilience
Build and Deploy / build-and-push (push) Successful in 2m56s
2026-07-03 12:19:43 -03:00
Cauê Faleiros
83f165381d
fix: hardcode safe Tiny throttle defaults
Build and Deploy / build-and-push (push) Successful in 1m9s
2026-06-23 10:34:12 -03:00
Cauê Faleiros
aa581a4d14
fix: queue live Tiny order lookups
2026-06-23 10:28:58 -03:00
Cauê Faleiros
4d7daff496
fix: throttle Graphs backfill by Tiny request
Build and Deploy / build-and-push (push) Successful in 45s
2026-06-23 10:03:22 -03:00
Cauê Faleiros
44cfdbb4c9
fix: slow and control Graphs backfill
Build and Deploy / build-and-push (push) Successful in 2m18s
2026-06-23 09:32:08 -03:00
Cauê Faleiros
1d24831aa7
Revert "fix: throttle Tiny API usage across backfills"
...
This reverts commit 10d7048497 .
2026-06-22 16:31:36 -03:00
Cauê Faleiros
ae41ae4a55
Revert "fix: pause Tiny calls globally after rate blocks"
...
This reverts commit c315265d16 .
2026-06-22 16:31:36 -03:00
Cauê Faleiros
c315265d16
fix: pause Tiny calls globally after rate blocks
2026-06-22 16:27:23 -03:00
Cauê Faleiros
10d7048497
fix: throttle Tiny API usage across backfills
Build and Deploy / build-and-push (push) Successful in 59s
2026-06-22 16:17:40 -03:00
Cauê Faleiros
3234ab6160
feat: sync Tiny orders directly to Graphs
Build and Deploy / build-and-push (push) Successful in 59s
2026-06-22 15:49:22 -03:00
Cauê Faleiros
9a9e9bedf2
feat: track average, max, and min stock additions per product in csv and n8n payload
Build and Deploy / build-and-push (push) Successful in 1m4s
2026-05-11 12:48:30 -03:00
Cauê Faleiros
d89e2c11b1
feat: add endpoint to download stock logs csv directly from browser
Build and Deploy / build-and-push (push) Successful in 42s
2026-05-11 11:56:10 -03:00
Cauê Faleiros
65fcf3f0fc
feat: log stock changes to local csv file for analysis
Build and Deploy / build-and-push (push) Successful in 47s
2026-05-11 11:50:34 -03:00
Cauê Faleiros
774fd4cf69
feat: add local memory tracker to calculate stock deltas
Build and Deploy / build-and-push (push) Successful in 2m41s
2026-05-11 11:36:35 -03:00
Cauê Faleiros
d317a5041c
feat: add http endpoint to trigger backfill script remotely
Build and Deploy / build-and-push (push) Successful in 59s
2026-05-07 17:17:51 -03:00
Cauê Faleiros
7dfb3d4a03
feat: add backfill script to push historical tiny orders to n8n
Build and Deploy / build-and-push (push) Successful in 1m38s
2026-05-07 17:09:54 -03:00
Cauê Faleiros
8af4bc9885
fix: map new n8n webhook environment variables in docker-compose
Build and Deploy / build-and-push (push) Successful in 53s
2026-05-05 14:03:15 -03:00
Cauê Faleiros
7b74140136
fix: dispatch webhooks in parallel to prevent blocking and add config logs
Build and Deploy / build-and-push (push) Successful in 1m24s
2026-05-05 13:33:01 -03:00
Cauê Faleiros
ff2f5aca29
feat: add multi-dashboard routing support for n8n
...
Build and Deploy / build-and-push (push) Successful in 2m36s
- Refactor `sendToN8n` service to accept dynamic webhook URLs.
- Update `order-status` controller to fan-out payload to both STATUS and GRAPHS webhooks.
- Add new endpoints and controllers for stock and graphs updates (`/stock-update`, `/graphs-update`).
- Maintain backward compatibility with existing `N8N_WEBHOOK_URL` environment variable.
2026-05-05 11:26:56 -03:00
Cauê Faleiros
325099ec94
feat: include items array in payload for n8n filtering
Build and Deploy / build-and-push (push) Successful in 1m14s
2026-04-10 16:25:01 -03:00
Cauê Faleiros
52646e82de
fix: revert to contato.obter.php to fetch seller phone
Build and Deploy / build-and-push (push) Successful in 46s
2026-04-09 19:02:10 -03:00
Cauê Faleiros
26be7effa4
fix: use correct vendedor.obter.php API endpoint
Build and Deploy / build-and-push (push) Successful in 43s
2026-04-09 18:44:31 -03:00
Cauê Faleiros
ccdf6b4136
feat: add secondary fetch for seller whatsapp
Build and Deploy / build-and-push (push) Successful in 39s
2026-04-09 18:21:14 -03:00
Cauê Faleiros
9011d200d7
fix: resolve typescript scoping error for api response
Build and Deploy / build-and-push (push) Successful in 35s
2026-04-09 18:03:59 -03:00
Cauê Faleiros
4b68d0b359
fix: correct JSON paths for Tiny API V2
Build and Deploy / build-and-push (push) Failing after 34s
2026-04-09 18:01:47 -03:00
Cauê Faleiros
2f4f7ca91a
fix: prevent server crash on empty payloads
Build and Deploy / build-and-push (push) Successful in 39s
2026-04-09 17:32:47 -03:00
Cauê Faleiros
246bc03124
feat: fetch full order details and format payload
Build and Deploy / build-and-push (push) Successful in 1m19s
2026-04-09 17:27:42 -03:00
Cauê Faleiros
bb072af130
chore: add debug logging for auth token
Build and Deploy / build-and-push (push) Successful in 41s
2026-04-09 11:37:52 -03:00
Cauê Faleiros
9fdd15e292
fix: actually send the N8N_AUTH_TOKEN header to n8n
Build and Deploy / build-and-push (push) Successful in 53s
2026-04-09 11:33:25 -03:00
Cauê Faleiros
a6ba7559d1
fix: map environment variables for Docker Swarm
Build and Deploy / build-and-push (push) Successful in 41s
2026-04-09 11:06:19 -03:00
Cauê Faleiros
3875cb4153
fix: updated compose for docker swarm compatibility
Build and Deploy / build-and-push (push) Successful in 43s
2026-04-09 10:52:46 -03:00
Cauê Faleiros
bb136c3816
fix: removed env_file from compose so portainer UI variables work
Build and Deploy / build-and-push (push) Successful in 41s
2026-04-09 10:45:24 -03:00
Cauê Faleiros
c8b24eeaea
fix: actually upload package.json
Build and Deploy / build-and-push (push) Successful in 41s
2026-04-09 10:36:37 -03:00
Cauê Faleiros
6e7d266a72
fix: explicit package.json copy in Dockerfile
Build and Deploy / build-and-push (push) Failing after 27s
2026-04-09 10:30:20 -03:00
Cauê Faleiros
923705c83b
feat: initial commit of tiny-n8n middleware with CI/CD
Build and Deploy / build-and-push (push) Failing after 27s
2026-04-09 10:28:23 -03:00
Cauê Faleiros
c687fd2bd1
first commit
Build and Deploy / build-and-push (push) Failing after 4m14s
2026-04-09 09:45:02 -03:00