feat: support updating roles (closes #83)

This commit is contained in:
41666 2020-12-18 19:55:58 -05:00
parent c7381c3d66
commit 1a59972398
10 changed files with 272 additions and 23 deletions

View file

@ -19,3 +19,19 @@ export type Role = {
export type OwnRoleInfo = {
highestRolePosition: number;
};
export enum TransactionType {
None = 0,
Remove = 1 << 1,
Add = 1 << 2,
}
export type RoleTransaction = {
id: string;
action: TransactionType;
};
export type RoleUpdate = {
knownState: Role['id'][];
transactions: RoleTransaction[];
};