export interface Warranty {
  _id: number;
  name: string;
  status: string;
  duration: string;
  logoUrl: string;
  deleted: boolean;
  createdAt: string;
  updatedAt: string;
}

export interface Pager {
  page: number;
  limit: number;
  totalItems: number;
  totalPages: number;
  prevPage: boolean | null;
  nextPage: string | null;
}

export interface WarrantyResults {
  warranties: Warranty[];
  pager: Pager;
}

export interface WarrantyResponse {
  status: number;
  success: boolean;
  results: WarrantyResults;
}

export interface GetWarrantiesParams {
  page?: number;
  limit?: number;
}

export type CreateWarrantyType = {
  name: string;
  duration: string;
  logoUrl: string;
};
