mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-07 13:42:34 +00:00
chore: update workspace user pages
This commit is contained in:
27
web/src/types/modules/WorkspaceUser.d.ts
vendored
Normal file
27
web/src/types/modules/WorkspaceUser.d.ts
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
type Role = "ADMIN" | "USER";
|
||||
|
||||
interface WorkspaceUser {
|
||||
workspaceId: WorkspaceId;
|
||||
userId: UserId;
|
||||
user: User;
|
||||
role: Role;
|
||||
createdTs: TimeStamp;
|
||||
updatedTs: TimeStamp;
|
||||
}
|
||||
|
||||
interface WorkspaceUserUpsert {
|
||||
workspaceId: WorkspaceId;
|
||||
userId: UserId;
|
||||
role: Role;
|
||||
updatedTs?: TimeStamp;
|
||||
}
|
||||
|
||||
interface WorkspaceUserFind {
|
||||
workspaceId: WorkspaceId;
|
||||
userId?: UserId;
|
||||
}
|
||||
|
||||
interface WorkspaceUserDelete {
|
||||
workspaceId: WorkspaceId;
|
||||
userId: UserId;
|
||||
}
|
Reference in New Issue
Block a user