import {
  createListing, getListing, getListings, updateListing, softDeleteListing,
  restoreListing, getDeletedListings, permanentlyDeleteListing, getTrashCount,
  duplicateListing,
} from '../../../lib/db.mjs';

export const listingsRepository = Object.freeze({
  create: createListing,
  get: getListing,
  list: getListings,
  update: updateListing,
  softDelete: softDeleteListing,
  restore: restoreListing,
  listDeleted: getDeletedListings,
  permanentDelete: permanentlyDeleteListing,
  trashCount: getTrashCount,
  duplicate: duplicateListing,
});
