export const CLAUSE_MARKER_STYLES = ["NONE", "LETTERS", "NUMBERS"] as const; export type ClauseMarkerStyle = typeof CLAUSE_MARKER_STYLES[number]; export type ActLegalStatus = "DRAFT" | "IN_FORCE" | "AMENDED" | "REPEALED" | "EXPIRED" | "NOT_ADOPTED"; export const LEGAL_STATUS_LABELS: Record = { DRAFT: "Not yet in force", IN_FORCE: "In force", AMENDED: "Amended", REPEALED: "Repealed", EXPIRED: "Expired", NOT_ADOPTED: "Not adopted", }; export type TextClause = { id: string; kind: "TEXT"; text: string }; export type AppointmentClause = { id: string; kind: "APPOINTMENT"; action: "ASSIGN" | "DISMISS"; positionId: string; citizenshipId: string; citizenshipName: string; }; export type Clause = TextClause | AppointmentClause; export type ArticleContent = { id: string; title: string; intro?: string; markerStyle: ClauseMarkerStyle; clauses: Clause[]; }; export type PreambleContent = { text: string }; export type ActBlockContent = ArticleContent | PreambleContent; export type ActBlockType = "PREAMBLE" | "ARTICLE"; export type ActBlockRecord = { id: string; versionId: string; stableKey: string; type: ActBlockType; position: number; content: ActBlockContent; }; export type ActEditorData = { actTypeId: string; issuingInstitutionId: string; regionId: string | null; title?: string; preambleText?: string; articles: ArticleContent[]; }; export type ActType = { id: string; name: string; code: string; allowedIssuerKind: string }; export type Institution = { id: string; name: string; kind: string; appointedByInstitutionId: string | null }; export type Region = { id: string; name: string }; export type PositionOption = { id: string; name: string; institutionId: string }; export type ActSignature = { id: string; citizenshipId: string; name: string; role: string; signedAt: Date; }; export type ApprovalDecision = "APPROVE" | "VETO"; export type ActApprovalRecord = { id: string; phaseKey: string; decision: ApprovalDecision; citizenshipId: string; name: string; role: string; decidedAt: Date; };