import type { GroupType } from '../types';

// REST bases exposed by the groups_app module (see PersonalGroups.php /
// SharedGroups.php controllers).
export const PERSONAL_GROUPS_URL = '/groups_app/personalGroups';
export const SHARED_GROUPS_URL = '/groups_app/sharedGroups';

export const groupBaseUrl = (type: GroupType) => (type === 'shared' ? SHARED_GROUPS_URL : PERSONAL_GROUPS_URL);

// Inventory data endpoint backing the hosts result table.
export const INVENTORY_DATA_URL = '/advancedreports/inventory/data';
// Inventory statistics endpoint backing the overview pie chart.
export const INVENTORY_STATISTIC_URL = '/dashboard/inventoryWidget/statistic';
