const teamsKeys = {
  /**
   * Base key for all team queries
   * Use to invalidate ALL team-related caches
   */
  all: ["teams"],
  /**
   * User's teams (normal user scope)
   * Endpoint: GET /api/v1/teams
   */
  user: () => [...teamsKeys.all, "user"],
  /**
   * Single team by ID
   */
  detail: (teamId) => [...teamsKeys.all, "detail", teamId],
  /**
   * Admin teams scope (superadmin/developer)
   * Base key for all admin team queries
   */
  admin: () => [...teamsKeys.all, "admin"],
  /**
   * Admin teams list with parameters
   * Endpoint: GET /api/superadmin/teams
   * Used by superadmin management page
   */
  adminList: (params) => [...teamsKeys.admin(), "list", params],
  /**
   * Admin teams search (optimized for dropdowns)
   * Uses simplified key for search-based caching
   */
  adminSearch: (search) => [...teamsKeys.admin(), "search", search]
};
export {
  teamsKeys
};
