/**
 * Presigned URL Requests Redux Slice
 */

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

const { slice, actions, reducer } = createEntitySlice<PresignedUrlRequest>({
  name: 'presigned_url_requests',
  endpoint: 'presigned_url_requests',
  singularName: 'Presigned URL Request',
});

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

export default reducer;
