feat: standardize OrderBy types and fix data model mismatches

- Update ae_types.ts with joined fields for deep layout loading
- Fix OrderBy vs OrderBy[] type mismatch in API v2/v3 and generic CRUD
- Apply 'as const' to order_by_li defaults in core/event libraries
- Resolve type errors in reports_presenters and reports_files Svelte components
This commit is contained in:
Scott Idem
2026-01-15 19:03:26 -05:00
parent 31f18b8723
commit ab1c207c86
20 changed files with 83 additions and 39 deletions

View File

@@ -101,6 +101,16 @@ export interface ae_SiteDomain extends ae_BaseObj {
redirect_to_primary?: boolean;
access_key?: string;
// Joined fields for bootstrap lookup
account_code?: string;
account_name?: string;
header_image_path?: string;
style_href?: string;
google_tracking_id?: string;
access_code_kv_json?: any;
cfg_json?: any;
site_domain_access_key?: string;
}
/**
@@ -407,6 +417,10 @@ export interface ae_Event extends ae_BaseObj {
cfg_json?: any;
data_json?: any;
// Joined view fields
event_location_obj_li?: ae_EventLocation[];
event_session_obj_li?: ae_EventSession[];
}
/**
@@ -537,6 +551,9 @@ export interface ae_EventSession extends ae_BaseObj {
ready?: boolean;
data_json?: any;
// Joined fields
event_presentation_li?: ae_EventPresentation[];
}
/**
@@ -557,6 +574,9 @@ export interface ae_EventPresentation extends ae_BaseObj {
passcode?: string;
file_count?: number;
// Joined fields
event_presenter_li?: ae_EventPresenter[];
}
/**