types.ts 773 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. export interface Zone {
  2. id: number
  3. zone_id: string
  4. name: string
  5. api_key: string
  6. created_at: string
  7. updated_at: string
  8. }
  9. export interface DnsRecord {
  10. id: number
  11. zone_id: number
  12. cf_record_id: string
  13. name: string
  14. type: string
  15. content: string
  16. proxied: number
  17. is_static: number
  18. created_at: string
  19. updated_at: string
  20. cf_zone_id?: string
  21. zone_name?: string
  22. }
  23. export interface SetupStatus {
  24. needs_setup: boolean
  25. }
  26. export interface IpResponse {
  27. ip: string
  28. ip_updated_at?: string
  29. }
  30. export interface Settings {
  31. cron_schedule: string
  32. }
  33. export interface IpProvider {
  34. id: number
  35. url: string
  36. name: string
  37. enabled: number
  38. priority: number
  39. created_at: string
  40. updated_at: string
  41. }
  42. export interface ApiError {
  43. error: string
  44. }