import { Collection } from 'pinia-orm'
import ResidenceArea from '~/models/Billing/ResidenceArea'
import BaseRepository from '~/stores/repositories/BaseRepository'

class ResidenceAreasRepository extends BaseRepository {
  use = ResidenceArea

  /**
   * On récupère les RésidenceArea via le store
   */
  public getResidenceAreas(): Collection<ResidenceArea> {
    return this.getQuery().get() as Collection<ResidenceArea>
  }
}

export default ResidenceAreasRepository
