import type { Permission } from "~/models/role";

// Should we define the keys first?
// export type Keys = 'key1' | 'key2' | 'key3' | etc

export const permissions: Record<string, Record<string, Permission[]>> = {
  '/chemo/verification': {
    'emp|reg': ['R'],
    'emp|doc': ['R'],
    'emp|nur': ['R'],
  },
  '/chemo/verification/[id]': {
    'emp|reg': ['R'],
    'emp|doc': ['R'],
    'emp|nur': ['R'],
  },
  '/chemo/verification/[id]/process': {
    'emp|doc': ['R', 'U'],
    'emp|nur': ['R', 'U'],
  },
  '/chemo/action': {
    'emp|reg': ['R', 'U', 'D'],
  },
  '/chemo/action/[id]': {
    'emp|reg': ['R', 'U', 'D'],
  },
  '/chemo/action/[id]/process': {
    'emp|doc': ['R', 'U'],
    'emp|nur': ['R', 'U'],
    'emp|thr': ['R', 'U'],
  },
}
