explore.ts 609 B

123456789101112131415161718192021222324252627282930313233
  1. import type { AppMode } from './app'
  2. export type AppBasicInfo = {
  3. id: string
  4. name: string
  5. mode: AppMode
  6. icon: string
  7. icon_background: string
  8. }
  9. export type AppCategory = 'Writing' | 'Translate' | 'HR' | 'Programming' | 'Assistant'
  10. export type App = {
  11. app: AppBasicInfo
  12. app_id: string
  13. description: string
  14. copyright: string
  15. privacy_policy: string
  16. category: AppCategory
  17. position: number
  18. is_listed: boolean
  19. install_count: number
  20. installed: boolean
  21. editable: boolean
  22. }
  23. export type InstalledApp = {
  24. app: AppBasicInfo
  25. id: string
  26. uninstallable: boolean
  27. is_pinned: boolean
  28. }