import type { IResponse } from "@/types/response.types";

export type CreateRoleType = {
  name: string;
  permissionIds: string[];
};

export type PermissionType = {
  id: string;
  createdAt: string;
  updatedAt: string;
  deletedAt: string | null;
  name: string;
  [key: string]: unknown;
};

export type RestaurantType = {
  id: string;
  createdAt: string;
  updatedAt: string;
  deletedAt: string | null;
  [key: string]: unknown;
};

export type RoleType = {
  id: string;
  createdAt: string;
  updatedAt: string;
  deletedAt: string | null;
  name: string;
  restaurant: RestaurantType | null;
  permissions: PermissionType[];
};

export type GetRolesResponseType = IResponse<RoleType[]>;
export type GetRoleDetailsResponseType = IResponse<RoleType>;
