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:
@@ -86,7 +86,12 @@ export async function load_ae_obj_li__event_file({
|
||||
hidden = 'not_hidden',
|
||||
limit = 99,
|
||||
offset = 0,
|
||||
order_by_li = { priority: 'DESC', sort: 'DESC', updated_on: 'DESC', created_on: 'DESC' },
|
||||
order_by_li = {
|
||||
priority: 'DESC',
|
||||
sort: 'DESC',
|
||||
updated_on: 'DESC',
|
||||
created_on: 'DESC'
|
||||
} as const,
|
||||
params = {},
|
||||
try_cache = true,
|
||||
log_lvl = 0
|
||||
@@ -397,7 +402,7 @@ export async function qry__event_file({
|
||||
filename: 'ASC',
|
||||
extension: 'ASC',
|
||||
hosted_file_size: 'ASC'
|
||||
},
|
||||
} as const,
|
||||
params = {},
|
||||
try_cache = true,
|
||||
log_lvl = 0
|
||||
@@ -541,7 +546,7 @@ export async function search__event_file({
|
||||
filename: 'ASC',
|
||||
extension: 'ASC',
|
||||
hosted_file_size: 'ASC'
|
||||
},
|
||||
} as const,
|
||||
params = {},
|
||||
try_cache = true,
|
||||
log_lvl = 0
|
||||
|
||||
Reference in New Issue
Block a user