1.7 KiB
1.7 KiB
Task 3 Report: Wire API call-sites + auth cutoff + stop auto-stamp
Status
DONE_WITH_CONCERNS
Summary
- Updated all API call sites in scope to use
dealPriorWhere(lens, cutoff)andactivityPriorWhere(lens, cutoff). - Removed person/company prior-lens filtering from contacts, reports, and AI count paths.
- Exposed
priorArchive.cutoffAtfrom auth DTO generation and kept JWTpriorCutoffnull unless both grant and organization cutoff exist. - Added
promotedFromPriorAtmapping to Deal and Activity DTOs. - Stopped billing module enable from auto-writing
priorArchiveEnabledAt; existing cutoff values are preserved.
Files Changed
apps/api/src/auth/jwt.strategy.tsapps/api/src/auth/auth.service.tsapps/api/src/billing/billing.service.tsapps/api/src/pipelines/pipelines.service.tsapps/api/src/pipelines/deals-excel.service.tsapps/api/src/activities/activities.service.tsapps/api/src/reports/reports.service.tsapps/api/src/ai/ai-ask.service.tsapps/api/src/contacts/people.service.tsapps/api/src/contacts/companies.service.ts
Verification
npx prisma generatefromapps/api: passed.npm run typecheck -w @mento/api: passed.- IDE lint diagnostics for edited files: no errors found.
graphify update .: attempted after edits, crashed with exit code3221225477and no output; treated as non-blocking per task instructions.
Concerns
- No focused tests were added; verification is the requested API typecheck plus lint diagnostics.
billing.service.tsstill runs the existing prior-activity backfill only when an organization already has a cutoff. It no longer creates a cutoff when enabling the module.