/**
 * PWA Caches Redux Slice
 */

import { createEntitySlice } from '../createEntitySlice';
import type { PwaCache } from '../../types/entities';

const { slice, actions, reducer } = createEntitySlice<PwaCache>({
  name: 'pwa_caches',
  endpoint: 'pwa_caches',
  singularName: 'PWA Cache',
});

export const {
  fetch,
  create,
  update,
  deleteItem,
  deleteItemsByIds,
  uploadCsv,
  setRefetch,
} = actions;
export const pwa_cachesSlice = slice;

export default reducer;
