Wire zappier-edge into the live stack and add billing department APIs
Some checks are pending
offline / test (push) Waiting to run
Some checks are pending
offline / test (push) Waiting to run
Fleet now spawns the real zappier and middleware processes. Metered timestamp/receipt/hash calls proxy to middleware when ZAPPIER_UPSTREAM is set. CS credits, sales per-customer pricing, and QuickBooks export are separate repos plugged into zappier-edge admin.
This commit is contained in:
parent
65bfa544b2
commit
a1a5b957fd
44 changed files with 822 additions and 18 deletions
21
packages/verae-fleet/services/accounting-export.json
Normal file
21
packages/verae-fleet/services/accounting-export.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"id": "accounting-export",
|
||||
"title": "Accounting export (QuickBooks)",
|
||||
"kind": "http",
|
||||
"package": "zappier-accounting-export",
|
||||
"role": "accounting-export",
|
||||
"managed": true,
|
||||
"runtime": "HTTP :3013 IIF/CSV → zappier-edge invoices",
|
||||
"health": { "type": "http", "path": "/health", "timeoutMs": 2000 },
|
||||
"ports": { "healthBase": 3013 },
|
||||
"spawn": {
|
||||
"cwd": "../zappier-accounting-export",
|
||||
"command": "node",
|
||||
"args": ["src/server.js"]
|
||||
},
|
||||
"env": {
|
||||
"PORT": "3013",
|
||||
"ZAPPIER_ADMIN_URL": "http://127.0.0.1:3000"
|
||||
},
|
||||
"nats": { "in": [], "out": [] }
|
||||
}
|
||||
22
packages/verae-fleet/services/customer-service.json
Normal file
22
packages/verae-fleet/services/customer-service.json
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"id": "customer-service",
|
||||
"title": "Customer-service credits",
|
||||
"kind": "http",
|
||||
"package": "zappier-customer-service",
|
||||
"role": "customer-service",
|
||||
"managed": true,
|
||||
"runtime": "HTTP :3011 CS credits → zappier-edge",
|
||||
"health": { "type": "http", "path": "/health", "timeoutMs": 2000 },
|
||||
"ports": { "healthBase": 3011 },
|
||||
"spawn": {
|
||||
"cwd": "../zappier-customer-service",
|
||||
"command": "node",
|
||||
"args": ["src/server.js"]
|
||||
},
|
||||
"env": {
|
||||
"PORT": "3011",
|
||||
"ZAPPIER_ADMIN_URL": "http://127.0.0.1:3000"
|
||||
},
|
||||
"nats": { "in": [], "out": [] },
|
||||
"notes": "Department API. Prepaid balances live on zappier-edge."
|
||||
}
|
||||
|
|
@ -6,9 +6,19 @@
|
|||
"role": "middleware-http",
|
||||
"managed": true,
|
||||
"runtime": "HTTPS :3100 /zapier/v1",
|
||||
"health": { "type": "http", "path": "/health", "timeoutMs": 800 },
|
||||
"ports": { "healthBase": 13100 },
|
||||
"env": { "PORT": "3100", "NATS_URL": "nats://127.0.0.1:4222" },
|
||||
"health": { "type": "http", "path": "/health", "timeoutMs": 4000 },
|
||||
"ports": { "healthBase": 3100 },
|
||||
"spawn": {
|
||||
"cwd": "../verae-zapier-middleware",
|
||||
"command": "node",
|
||||
"args": ["src/index.js"]
|
||||
},
|
||||
"env": {
|
||||
"PORT": "3100",
|
||||
"NATS_URL": "nats://127.0.0.1:4222",
|
||||
"NATS_ENABLED": "true",
|
||||
"MOCK_VERAE": "true"
|
||||
},
|
||||
"nats": {
|
||||
"in": ["verae.zapier.jobs.events"],
|
||||
"out": ["verae.zapier.jobs.watch", "verae.zapier.webhooks.deliver"]
|
||||
|
|
|
|||
21
packages/verae-fleet/services/sales-pricing.json
Normal file
21
packages/verae-fleet/services/sales-pricing.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"id": "sales-pricing",
|
||||
"title": "Sales per-customer pricing",
|
||||
"kind": "http",
|
||||
"package": "zappier-sales-pricing",
|
||||
"role": "sales-pricing",
|
||||
"managed": true,
|
||||
"runtime": "HTTP :3012 quotes → zappier-edge",
|
||||
"health": { "type": "http", "path": "/health", "timeoutMs": 2000 },
|
||||
"ports": { "healthBase": 3012 },
|
||||
"spawn": {
|
||||
"cwd": "../zappier-sales-pricing",
|
||||
"command": "node",
|
||||
"args": ["src/server.js"]
|
||||
},
|
||||
"env": {
|
||||
"PORT": "3012",
|
||||
"ZAPPIER_ADMIN_URL": "http://127.0.0.1:3000"
|
||||
},
|
||||
"nats": { "in": [], "out": [] }
|
||||
}
|
||||
|
|
@ -5,10 +5,21 @@
|
|||
"package": "zappier",
|
||||
"role": "zappier-edge",
|
||||
"managed": true,
|
||||
"runtime": "HTTPS :3000 (portal, admin, meter)",
|
||||
"health": { "type": "http", "path": "/health", "timeoutMs": 800 },
|
||||
"ports": { "healthBase": 13000 },
|
||||
"env": { "PORT": "3000" },
|
||||
"runtime": "HTTPS :3000 (portal, admin, meter, proxy to middleware)",
|
||||
"health": { "type": "http", "path": "/health", "timeoutMs": 4000 },
|
||||
"ports": { "healthBase": 3000 },
|
||||
"spawn": {
|
||||
"cwd": "../zappier",
|
||||
"command": "npx",
|
||||
"args": ["ts-node", "--transpile-only", "src/index.ts"]
|
||||
},
|
||||
"env": {
|
||||
"PORT": "3000",
|
||||
"ZAPPIER_UPSTREAM": "http://127.0.0.1:3100",
|
||||
"CS_SERVICE_URL": "http://127.0.0.1:3011",
|
||||
"SALES_PRICING_URL": "http://127.0.0.1:3012",
|
||||
"ACCOUNTING_EXPORT_URL": "http://127.0.0.1:3013"
|
||||
},
|
||||
"nats": { "in": [], "out": [] },
|
||||
"notes": "Zapier x-api-key lands here. HTTPS to middleware only."
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue