api.ts 952 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. export type ApiPaths =
  2. | "jobs"
  3. | "categories"
  4. | "languages"
  5. | "servers"
  6. | "statistics"
  7. export type Category = {
  8. category: string
  9. servers_count: number
  10. }
  11. export type Language = {
  12. locale: string
  13. language?: string
  14. servers_count: number
  15. }
  16. export type Server = {
  17. domain: string
  18. version: string
  19. description: string
  20. languages: string[]
  21. region: string
  22. categories: string[]
  23. proxied_thumbnail: string
  24. blurhash?: string
  25. last_week_users: number
  26. total_users: number
  27. approval_required: boolean
  28. language: string
  29. category: string
  30. }
  31. export type Day = {
  32. period: string
  33. server_count: string
  34. user_count: string
  35. active_user_count: string
  36. }
  37. export type Region = {
  38. value: string
  39. label: string
  40. }
  41. export type Job = {
  42. id: string
  43. title: string
  44. departmentName: string
  45. externalLink: string
  46. locationName: string
  47. employmentType: string
  48. }
  49. export type JobsResponse = {
  50. success: boolean
  51. results: Job[]
  52. }