Migrate Journal module to unified type system
- Added detailed fields for ae_EventPerson, ae_EventRegistration, ae_AccountCfg, and others to ae_types.ts. - Replaced local interfaces in ae_journals__journal.ts with unified imports. - Standardized Promise return types for all core data loading, creation, search, and update functions in Journal module. - Finalized migration for primary Identity and Journal objects.
This commit is contained in:
@@ -5,6 +5,7 @@ import { api } from '$lib/api/api';
|
||||
|
||||
import { db_save_ae_obj_li__ae_obj } from '$lib/ae_core/core__idb_dexie';
|
||||
import { db_journals } from '$lib/ae_journals/db_journals';
|
||||
import type { ae_Journal } from '$lib/types/ae_types';
|
||||
|
||||
import { load_ae_obj_li__journal_entry } from '$lib/ae_journals/ae_journals__journal_entry';
|
||||
|
||||
@@ -43,7 +44,7 @@ export async function load_ae_obj_id__journal({
|
||||
params?: key_val;
|
||||
try_cache?: boolean;
|
||||
log_lvl?: number;
|
||||
}) {
|
||||
}): Promise<ae_Journal | null> {
|
||||
if (log_lvl) {
|
||||
console.log(`*** load_ae_obj_id__journal() *** journal_id=${journal_id}`);
|
||||
}
|
||||
@@ -148,7 +149,7 @@ export async function load_ae_obj_li__journal({
|
||||
params?: key_val;
|
||||
try_cache?: boolean;
|
||||
log_lvl?: number;
|
||||
}) {
|
||||
}): Promise<ae_Journal[]> {
|
||||
if (log_lvl) {
|
||||
console.log(
|
||||
`*** load_ae_obj_li__journal() *** for_obj_type=${for_obj_type} for_obj_id=${for_obj_id}`
|
||||
@@ -300,7 +301,7 @@ export async function create_ae_obj__journal({
|
||||
params?: key_val;
|
||||
try_cache?: boolean;
|
||||
log_lvl?: number;
|
||||
}) {
|
||||
}): Promise<ae_Journal | null> {
|
||||
if (log_lvl) {
|
||||
console.log(`*** create_ae_obj__journal() *** account_id=${account_id}`);
|
||||
}
|
||||
@@ -412,7 +413,7 @@ export async function update_ae_obj__journal({
|
||||
params?: key_val;
|
||||
try_cache?: boolean;
|
||||
log_lvl?: number;
|
||||
}) {
|
||||
}): Promise<ae_Journal | null> {
|
||||
if (log_lvl) {
|
||||
console.log(`*** update_ae_obj__journal() *** journal_id=${journal_id}`, data_kv);
|
||||
}
|
||||
@@ -482,7 +483,7 @@ export async function qry__journal({
|
||||
params?: any;
|
||||
try_cache?: boolean;
|
||||
log_lvl?: number;
|
||||
}) {
|
||||
}): Promise<ae_Journal[]> {
|
||||
if (log_lvl) {
|
||||
console.log(
|
||||
`*** qry__journal() *** journal_id=${journal_id} enabled=${enabled} hidden=${hidden} limit=${limit} offset=${offset}`
|
||||
|
||||
@@ -796,4 +796,4 @@ export interface ae_EventPersonTracking extends ae_BaseObj {
|
||||
check_in_out?: boolean;
|
||||
in_datetime?: string | Date;
|
||||
out_datetime?: string | Date;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user