mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-07 13:42:34 +00:00
chore: update frontend modules
This commit is contained in:
28
web/src/types/modules/WorkspaceUser.d.ts
vendored
28
web/src/types/modules/WorkspaceUser.d.ts
vendored
@ -1,28 +0,0 @@
|
||||
type Role = "ADMIN" | "USER";
|
||||
|
||||
interface WorkspaceUser {
|
||||
workspaceId: WorkspaceId;
|
||||
userId: UserId;
|
||||
role: Role;
|
||||
createdTs: TimeStamp;
|
||||
updatedTs: TimeStamp;
|
||||
email: string;
|
||||
displayName: string;
|
||||
}
|
||||
|
||||
interface WorkspaceUserUpsert {
|
||||
workspaceId: WorkspaceId;
|
||||
userId: UserId;
|
||||
role: Role;
|
||||
updatedTs?: TimeStamp;
|
||||
}
|
||||
|
||||
interface WorkspaceUserFind {
|
||||
workspaceId: WorkspaceId;
|
||||
userId?: UserId;
|
||||
}
|
||||
|
||||
interface WorkspaceUserDelete {
|
||||
workspaceId: WorkspaceId;
|
||||
userId: UserId;
|
||||
}
|
4
web/src/types/modules/shortcut.d.ts
vendored
4
web/src/types/modules/shortcut.d.ts
vendored
@ -9,7 +9,6 @@ interface Shortcut {
|
||||
creator: User;
|
||||
createdTs: TimeStamp;
|
||||
updatedTs: TimeStamp;
|
||||
workspaceId: WorkspaceId;
|
||||
rowStatus: RowStatus;
|
||||
|
||||
name: string;
|
||||
@ -19,8 +18,6 @@ interface Shortcut {
|
||||
}
|
||||
|
||||
interface ShortcutCreate {
|
||||
workspaceId: WorkspaceId;
|
||||
|
||||
name: string;
|
||||
link: string;
|
||||
description: string;
|
||||
@ -38,5 +35,4 @@ interface ShortcutPatch {
|
||||
|
||||
interface ShortcutFind {
|
||||
creatorId?: UserId;
|
||||
workspaceId?: WorkspaceId;
|
||||
}
|
||||
|
4
web/src/types/modules/user.d.ts
vendored
4
web/src/types/modules/user.d.ts
vendored
@ -1,5 +1,7 @@
|
||||
type UserId = number;
|
||||
|
||||
type Role = "ADMIN" | "USER";
|
||||
|
||||
interface User {
|
||||
id: UserId;
|
||||
|
||||
@ -10,6 +12,7 @@ interface User {
|
||||
email: string;
|
||||
displayName: string;
|
||||
openId: string;
|
||||
role: Role;
|
||||
}
|
||||
|
||||
interface UserCreate {
|
||||
@ -22,7 +25,6 @@ interface UserPatch {
|
||||
id: UserId;
|
||||
|
||||
rowStatus?: RowStatus;
|
||||
|
||||
displayName?: string;
|
||||
password?: string;
|
||||
resetOpenId?: boolean;
|
||||
|
35
web/src/types/modules/workspace.d.ts
vendored
35
web/src/types/modules/workspace.d.ts
vendored
@ -1,35 +0,0 @@
|
||||
type WorkspaceId = number;
|
||||
|
||||
interface Workspace {
|
||||
id: WorkspaceId;
|
||||
|
||||
creatorId: UserId;
|
||||
createdTs: TimeStamp;
|
||||
updatedTs: TimeStamp;
|
||||
rowStatus: RowStatus;
|
||||
|
||||
name: string;
|
||||
title: string;
|
||||
description: string;
|
||||
|
||||
workspaceUserList: WorkspaceUser[];
|
||||
}
|
||||
|
||||
interface WorkspaceCreate {
|
||||
name: string;
|
||||
title: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
interface WorkspacePatch {
|
||||
id: WorkspaceId;
|
||||
rowStatus?: RowStatus;
|
||||
name?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
interface WorkspaceFind {
|
||||
creatorId?: UserId;
|
||||
memberId?: UserId;
|
||||
}
|
Reference in New Issue
Block a user