Finalize Unified Type Migration and scaffold core logistics logic
- Completed the unified type system in ae_types.ts covering all 42 active Aether objects. - Scaffolded missing core logic modules for Organization, EventTrack, and Sponsorship with standardized return types. - Updated project roadmap in TODO.md to reflect mission completion on foundational type parity.
This commit is contained in:
23
src/lib/ae_core/ae_core__organization.ts
Normal file
23
src/lib/ae_core/ae_core__organization.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { api } from '$lib/api/api';
|
||||
import type { ae_Organization } from '$lib/types/ae_types';
|
||||
|
||||
/**
|
||||
* Organization module logic
|
||||
*/
|
||||
|
||||
export async function load_ae_obj_id__organization({
|
||||
api_cfg,
|
||||
organization_id,
|
||||
log_lvl = 0
|
||||
}: {
|
||||
api_cfg: any;
|
||||
organization_id: string;
|
||||
log_lvl?: number;
|
||||
}): Promise<ae_Organization | null> {
|
||||
return await api.get_ae_obj_v3({
|
||||
api_cfg,
|
||||
obj_type: 'organization',
|
||||
obj_id: organization_id,
|
||||
log_lvl
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user