import { api } from '$lib/ae_api/api';
import type { ae_EventTrack } from '$lib/types/ae_types';

/**
 * EventTrack module logic
 */

export async function load_ae_obj_li__event_track({
    api_cfg,
    event_id,
    view = 'default',
    log_lvl = 0
}: {
    api_cfg: any;
    event_id: string;
    view?: string;
    log_lvl?: number;
}): Promise<ae_EventTrack[]> {
    return await api.get_ae_obj_li({
        api_cfg,
        obj_type: 'event_track',
        for_obj_type: 'event',
        for_obj_id: event_id,
        view,
        log_lvl
    });
}
