feat(supabase): MFA, species, rights, admin and catalogue access layer (V1-2.5 D)

mfa.ts (closed kinds, TOTP list incl. unverified, enrol, verify, unenrol, assurance); sheets.ts wrappers for species, working copy, account lookup, M7 reads, versions list, drawing download, own grants, with shape parsers. Unit 148, sandbox sheets-admin 5/5 x2.
This commit is contained in:
bchanot committed 2026-11-02 16:31:50 +01:00
1 parent a79e1f0af7
commit c9ace9aff2
7 files changed
+1126 -6

No files matched your search

+2 -1
View File
@@ -5,13 +5,14 @@ import { migrationsDir } from './db/harness'
/**
* The closed failure kinds of the sheet workflow (V1-2.1). The census reads
* every closed code M4 and M5 raise (`raise exception '<code>'`, a lowercase
* every closed code M4, M5 and M7 raise (`raise exception '<code>'`, a lowercase
* dotted word; free-text messages are not codes) so a code added on the server
* can never reach a page as `unavailable` for want of a kind.
*/
const SHEET_MIGRATIONS = [
'20261028100000_sheet_access_hardening.sql',
'20261028110000_sheet_review_workflow.sql',
'20261102100000_sheet_admin_reads.sql',
]
async function raisedCodes(): Promise<string[]> {