Pular para o conteúdo principal

ReportSupportStatus

@raizfc/contracts


@raizfc/contracts / ReportSupportStatus

Type Alias: ReportSupportStatus

ReportSupportStatus = "received" | "under_review" | "resolved" | "rejected" | "cancelled"

Defined in: report-support/status.ts:16

Shared state machine for Report and SupportRequest (SPEC-DOMAIN-REPORT-001 "Estados"/ "Transições permitidas" — one canonical table covering both concepts). Pure function, same pattern as packages/contracts/src/match/match-status.ts's MATCH_TRANSITIONS — shared by mocks and the real API so the rule cannot drift between them.

triage/resolve/reject require an "Operação" (platform staff) actor this codebase's auth model does not implement anywhere yet — same registered gap as team.manageStatus's suspend/ approve_claim (EP-MVP-04.6), match resolve/retifications authority (EP-MVP-06.4), and sponsor.moderate (EP-MVP-10.1). This pack keeps the transition function complete and correct (so a future "Operação" pack can drive it without redesigning the domain) but only exposes submit/cancel through a real API/mocks route — the other three states are reachable only through seeded fixtures for demonstration, never through a live endpoint, exactly like several match_mgmt_* fixtures already seeded in specific states without a live producer.