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:
@@ -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[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user