feat(supabase): M7 admin read RPCs for official sheets (V1-2.5 B)
list_official_sheets_admin and get_official_sheet_admin: badges, version and round states, named actors; capability holders at aal2, one answer for unknown or forbidden ids, no write path. pgTAP 022 (40); sandbox fresh and upgrade from M6: 1938 pass, types match.
This commit is contained in:
1 parent
78791bfb6b
commit
b0a4cbe588
4 files changed
+380
No files matched your search
@@ -1215,6 +1215,7 @@ export type Database = {
|
||||
Args: { code: string; lease_token: string; review_id: string }
|
||||
Returns: string
|
||||
}
|
||||
get_official_sheet_admin: { Args: { sheet_id: string }; Returns: Json }
|
||||
get_sheet_asset_state: { Args: { asset_id: string }; Returns: Json }
|
||||
get_sheet_verification_input: {
|
||||
Args: { lease_token: string; review_id: string }
|
||||
@@ -1266,6 +1267,10 @@ export type Database = {
|
||||
}[]
|
||||
}
|
||||
list_official_catalog: { Args: Record<PropertyKey, never>; Returns: Json }
|
||||
list_official_sheets_admin: {
|
||||
Args: Record<PropertyKey, never>
|
||||
Returns: Json
|
||||
}
|
||||
lookup_catalog_account: { Args: { email: string }; Returns: Json }
|
||||
mark_quarantine_purged: { Args: { asset_id: string }; Returns: undefined }
|
||||
publish_sheet_version: { Args: { review_id: string }; Returns: string }
|
||||
|
||||
@@ -259,12 +259,14 @@ const expectedFunctionArgs = {
|
||||
create_species: ['id', 'name_en', 'name_fr', 'sort_order'],
|
||||
create_sheet_working_copy: ['slug', 'source_version_id'],
|
||||
decide_sheet_review: ['approve', 'note', 'review_id'],
|
||||
get_official_sheet_admin: ['sheet_id'],
|
||||
get_sheet_asset_state: ['asset_id'],
|
||||
get_sheet_version: ['version_id'],
|
||||
grant_catalog_right: ['expires_at', 'kind', 'reason', 'user_id', 'verification_note'],
|
||||
list_catalog_grants: [],
|
||||
list_catalog_species: [],
|
||||
list_official_catalog: [],
|
||||
list_official_sheets_admin: [],
|
||||
lookup_catalog_account: ['email'],
|
||||
rename_species: ['id', 'name_en', 'name_fr'],
|
||||
revoke_catalog_right: ['grant_id', 'reason'],
|
||||
|
||||
Reference in new issue
Block a user