Migrate Event and EventBadge modules to unified type system
- Updated ae_types.ts with ae_Event, ae_EventBadge, and ae_EventBadgeTemplate interfaces. - Standardized return types (Promise<ae_Event[]>, etc.) for all core loading and CRUD functions in Events module. - Integrated triple-ID patterns for Dexie and V3 API parity in event-related objects. - Cleaned up local interface redundancies in favor of unified imports.
This commit is contained in:
@@ -179,4 +179,102 @@ export interface ae_Person extends ae_BaseObj {
|
||||
tagline?: string;
|
||||
|
||||
data_json?: any;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Event - A discrete conference or show
|
||||
*/
|
||||
export interface ae_Event extends ae_BaseObj {
|
||||
event_id: string;
|
||||
event_id_random: string;
|
||||
account_id: string;
|
||||
account_id_random: string;
|
||||
|
||||
conference: boolean;
|
||||
type?: string;
|
||||
summary?: string;
|
||||
format?: string;
|
||||
|
||||
timezone?: string;
|
||||
start_datetime?: string | Date;
|
||||
end_datetime?: string | Date;
|
||||
|
||||
location_text?: string;
|
||||
location_address_json?: any;
|
||||
|
||||
status?: string;
|
||||
approve?: boolean;
|
||||
ready?: boolean;
|
||||
ready_on?: string | Date;
|
||||
|
||||
cfg_json?: any;
|
||||
data_json?: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* EventBadge - An attendee's printed credentials
|
||||
*/
|
||||
export interface ae_EventBadge extends ae_BaseObj {
|
||||
event_badge_id: string;
|
||||
event_badge_id_random: string;
|
||||
event_id: string;
|
||||
event_id_random: string;
|
||||
person_id: string;
|
||||
person_id_random: string;
|
||||
event_person_id?: string;
|
||||
event_person_id_random?: string;
|
||||
|
||||
event_badge_template_id?: string;
|
||||
event_badge_template_id_random?: string;
|
||||
|
||||
badge_type_code?: string;
|
||||
badge_type?: string;
|
||||
|
||||
member_type_code?: string;
|
||||
member_status?: string;
|
||||
|
||||
pronouns?: string;
|
||||
given_name?: string;
|
||||
middle_name?: string;
|
||||
family_name?: string;
|
||||
full_name?: string;
|
||||
affiliations?: string;
|
||||
|
||||
professional_title?: string;
|
||||
email?: string;
|
||||
city?: string;
|
||||
state_province?: string;
|
||||
country?: string;
|
||||
|
||||
print_count?: number;
|
||||
print_first_datetime?: string | Date;
|
||||
print_last_datetime?: string | Date;
|
||||
|
||||
ticket_list?: any[];
|
||||
data_json?: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* EventBadgeTemplate - Layout and style for badges
|
||||
*/
|
||||
export interface ae_EventBadgeTemplate extends ae_BaseObj {
|
||||
event_badge_template_id: string;
|
||||
event_badge_template_id_random: string;
|
||||
event_id: string;
|
||||
event_id_random: string;
|
||||
|
||||
logo_path?: string;
|
||||
header_path?: string;
|
||||
header_row_1?: string;
|
||||
header_row_2?: string;
|
||||
|
||||
footer_path?: string;
|
||||
footer_title?: string;
|
||||
|
||||
badge_type_list?: any;
|
||||
ticket_list?: any;
|
||||
|
||||
layout?: string;
|
||||
style_href?: string;
|
||||
passcode?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user