export const APP_DATA_KEYS = [
  'products-overview',
  'requirements',
  'version-plans',
  'dev-tasks',
  'test-cases',
  'bugs',
  'members',
  'task-categories',
  'task-worklogs',
  'work-activities',
  'xiaobao-risk-insights',
  'xiaobao-risk-snapshots',
  'xiaobao-warning-views',
  'overtime',
] as const;

export type AppDataKey = (typeof APP_DATA_KEYS)[number];

export function isAppDataKey(key: string): key is AppDataKey {
  return (APP_DATA_KEYS as readonly string[]).includes(key);
}
