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
    });
}
