import type { Collection } from 'pinia-orm'
import BaseRepository from '~/stores/repositories/BaseRepository'
import JobPosting from '~/models/Maestro/JobPosting'

class JobPostingRepository extends BaseRepository {
  use = JobPosting

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

export default JobPostingRepository
