export const appRootKey = 'bupot-21-26';
export const bulanan = 'bulanan';
export const tahunanA1 = 'tahunan-a1';
export const bupotfinal = 'bupot-final-tidak-final';
export const bupot26 = 'bupot-26';

const queryKey = {
  getKodeObjekPajak: (params: any) => [appRootKey, 'kode-objek-pajak', params],
  bulanan: {
    all: (params: any) => [appRootKey, bulanan, params],
    detail: (params: any) => [appRootKey, bulanan, 'detail', params],
    draft: [appRootKey, bulanan, 'draft'],
    delete: [appRootKey, bulanan, 'delete'],
    upload: [appRootKey, bulanan, 'upload'],
    cancel: [appRootKey, bulanan, 'cancel'],
    cetakPdf: (params: any) => [appRootKey, bulanan, 'cetak-pdf', params],
  },
  bupotfinal: {
    all: (params: any) => [appRootKey, bupotfinal, params],
    detail: (params: any) => [appRootKey, bupotfinal, 'detail', params],
    draft: [appRootKey, bupotfinal, 'draft'],
    delete: [appRootKey, bupotfinal, 'delete'],
    upload: [appRootKey, bupotfinal, 'upload'],
    cancel: [appRootKey, bupotfinal, 'cancel'],
    cetakPdf: (params: any) => [appRootKey, bupotfinal, 'cetak-pdf', params],
  },
  tahunanA1: {
    all: (params: any) => [appRootKey, tahunanA1, params],
    detail: (params: any) => [appRootKey, tahunanA1, 'detail', params],
    draft: [appRootKey, tahunanA1, 'draft'],
    delete: [appRootKey, tahunanA1, 'delete'],
    upload: [appRootKey, tahunanA1, 'upload'],
    cancel: [appRootKey, tahunanA1, 'cancel'],
    cetakPdf: (params: any) => [appRootKey, tahunanA1, 'cetak-pdf', params],
  },
  bupot26: {
    all: (params: any) => [appRootKey, bupot26, params],
    detail: (params: any) => [appRootKey, bupot26, 'detail', params],
    draft: [appRootKey, bupot26, 'draft'],
    delete: [appRootKey, bupot26, 'delete'],
    upload: [appRootKey, bupot26, 'upload'],
    cancel: [appRootKey, bupot26, 'cancel'],
    cetakPdf: (params: any) => [appRootKey, bupot26, 'cetak-pdf', params],
  },
};

export default queryKey;
