import {Pagination} from "@/shared/types/pagination";
import {City, PaymentStatus} from "@/shared/types/userOrders";

export interface GetUserRequestsResponse extends Pagination{
  data: UserRequestItem[]
}

export interface UserRequestItem {
  id: number
  status: Status
  created_at: string
}



//by id
export interface GetUserRequestByIdResponse {
  data: UserRequestByIdItem
}

export interface UserRequestByIdItem {
  id: number
  service: Service
  power: Power
  city: City
  comment: string
  phone: number
  full_name: string
  status: PaymentStatus
  problem: any
}

export interface Power {
  id: number
  name: string
  power: number
}

export interface Service {
  id: number
  name: string
  image: string
  type: string
  status: Status
  is_power: boolean
  with_problem: boolean
  created_at: string
  problems: any[]
}