Files
B2BCall-dialer/apps/api/package.json
Matheus b27cfaab02 feat(billing): rating engine, fechamento de periodo, dashboard platform (fase 22)
Fecha a orquestracao de Billing (agente.md secao 120-139) sobre o schema/
RatingEngine puro ja existentes: escritores do ledger UsageEvent
(CALL_SECONDS no CDR, ACTIVE_DAY via sweep diario), closeBillingPeriod/
reopenBillingPeriod (fechamento imutavel com audit trail), e os
controllers de price books/rate decks/plan versions/subscriptions/
periods/statements. Corrige 2 bugs reais de RLS achados no teste ponta a
ponta (reopen sem tenant context, subscriptions sem withTenantContext) e
adiciona teste unitario do RatingEngine (17 casos).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EWHKmcVJtstQFErbZ1AanY
2026-08-29 00:28:35 -03:00

43 lines
1.2 KiB
JSON

{
"name": "@b2bcall/api",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "tsc -p tsconfig.json && tsx dist/main.js",
"build": "tsc -p tsconfig.json",
"start": "tsx dist/main.js",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@b2bcall/ai": "workspace:*",
"@b2bcall/auth": "workspace:*",
"@b2bcall/billing": "workspace:*",
"@b2bcall/database": "workspace:*",
"@b2bcall/entitlements": "workspace:*",
"@b2bcall/shared": "workspace:*",
"@b2bcall/storage": "workspace:*",
"@b2bcall/telephony": "workspace:*",
"@fastify/cors": "11.3.0",
"@fastify/helmet": "13.1.1",
"@fastify/rate-limit": "11.2.0",
"@nestjs/common": "^12.0.1",
"@nestjs/core": "^12.0.1",
"@nestjs/platform-fastify": "^12.0.1",
"@nestjs/platform-socket.io": "12.0.1",
"@nestjs/websockets": "12.0.1",
"class-transformer": "^0.5.1",
"class-validator": "^0.15.1",
"fast-xml-parser": "5.11.1",
"fastify": "5.12.1",
"ioredis": "^6.0.0",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.2",
"socket.io": "4.8.3"
},
"devDependencies": {
"@types/node": "^22.0.0",
"tsx": "^4.23.12",
"typescript": "^5.7.0"
}
}