type Id = number | string | undefined;

export const orgChartKeys = {
  all: () => ['orgChart'],
  list: () => [...orgChartKeys.all(), 'list'],
  userProfile: (id: Id) => ['userProfile', id],
  allBosses: () => [...orgChartKeys.all(), 'bosses'],
  Boss: () => [...orgChartKeys.all(), 'boss'],
  allSubordinates: () => [...orgChartKeys.all(), 'subordinates'],
  detailBoss: (id: Id) => [...orgChartKeys.Boss(), id],
  detailBosses: (id: Id) => [...orgChartKeys.allBosses(), id],
  detailSubordinates: (id: Id) => [...orgChartKeys.allSubordinates(), id],
};
