import type { AuthorityTier } from '../../services/relatedPersonAuthority'; // The patient's own words for each tier, from the approved family-and-caregivers deck. export const TIER_ORDER: AuthorityTier[] = ['assist-only', 'scheduling-forms', 'full-proxy']; // Invite someone: the long form, read before anything is granted. export const INVITE_TIER_DESCRIPTIONS: Record = { 'assist-only': 'View-only — can see information but cannot act on your behalf.', 'scheduling-forms': 'Book and cancel appointments, complete questionnaires, upload intake documents and enter coverage. No clinical or profile changes.', 'full-proxy': 'Can act on your behalf.', }; // Change what someone can do: the short form, beside a grant that already exists. export const CHANGE_TIER_DESCRIPTIONS: Record = { 'assist-only': 'View-only — can see but cannot act.', 'scheduling-forms': 'Appointments, questionnaires, intake documents, coverage.', 'full-proxy': 'Can act on your behalf.', }; export const BILLING_DEPENDENCY_NOTE = 'Turning off See invoices turns off paying them too — you cannot pay an invoice you may not see.'; // "Currently full proxy, with billing." under Update permissions. export const describeCurrentAccess = (tierLabel: string, allowBillingView: boolean): string => `Currently ${tierLabel.toLowerCase()}${allowBillingView ? ', with billing' : ''}.`;