mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 09:59:10 +00:00
feat: support updating roles (closes #83)
This commit is contained in:
parent
c7381c3d66
commit
1a59972398
10 changed files with 272 additions and 23 deletions
|
@ -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[];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue