Migrate Event child modules to unified type system
- Added ae_EventFile, ae_EventDevice, ae_EventAbstract, and ae_Organization to ae_types.ts. - Replaced local interfaces in EventFile and EventDevice logic files with unified imports. - Standardized Promise return types for all core data loading, creation, search, and update functions. - Integrated triple-ID patterns for Dexie and V3 API parity across files and devices.
This commit is contained in:
@@ -609,4 +609,72 @@ export interface ae_ArchiveContent extends ae_BaseObj {
|
||||
|
||||
hosted_file_id_random?: string;
|
||||
filename?: string;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventFile - A file associated with an event or event component
|
||||
*/
|
||||
export interface ae_EventFile extends ae_BaseObj {
|
||||
event_file_id: string;
|
||||
event_file_id_random: string;
|
||||
event_id: string;
|
||||
event_id_random: string;
|
||||
|
||||
hosted_file_id_random?: string;
|
||||
for_type?: string;
|
||||
for_id_random?: string;
|
||||
|
||||
filename?: string;
|
||||
filename_no_ext?: string;
|
||||
extension?: string;
|
||||
|
||||
file_purpose?: string;
|
||||
approve?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* EventDevice - A local hardware device at an event
|
||||
*/
|
||||
export interface ae_EventDevice extends ae_BaseObj {
|
||||
event_device_id: string;
|
||||
event_device_id_random: string;
|
||||
event_id: string;
|
||||
event_id_random: string;
|
||||
event_location_id_random?: string;
|
||||
|
||||
app_mode?: string;
|
||||
status?: string;
|
||||
heartbeat?: string | Date;
|
||||
|
||||
info_hostname?: string;
|
||||
info_ip?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* EventAbstract - A proposal for a session or presentation
|
||||
*/
|
||||
export interface ae_EventAbstract extends ae_BaseObj {
|
||||
event_abstract_id: string;
|
||||
event_abstract_id_random: string;
|
||||
event_id: string;
|
||||
event_id_random: string;
|
||||
|
||||
external_id?: string;
|
||||
abstract?: string;
|
||||
status?: number;
|
||||
approve?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Organization - A business or group entity
|
||||
*/
|
||||
export interface ae_Organization extends ae_BaseObj {
|
||||
organization_id: string;
|
||||
organization_id_random: string;
|
||||
account_id: string;
|
||||
account_id_random: string;
|
||||
|
||||
tagline?: string;
|
||||
logo_path?: string;
|
||||
industry?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user