ballerine icon indicating copy to clipboard operation
ballerine copied to clipboard

Create Roles Enum

Open alonp99 opened this issue 10 months ago • 0 comments

Add a new enum to the @ballerine/common under common/src/consts/index.ts

typescript

export const UserRole = {
  VIEWER: 1,
  AGENT: 5,
  MANAGER: 10,
} as const;

Use meaningful names for the enum members (e.g., VIEWER, AGENT, MANAGER) to enhance code readability. Assign appropriate numeric values to each role, considering the hierarchy and potential future roles.

Before merging the PR ensure to run pnpm update-packages from the monorepo's root.

alonp99 avatar Mar 31 '24 21:03 alonp99