chore: update frontend modules

This commit is contained in:
Steven
2023-06-22 18:07:28 +08:00
parent bd627fb250
commit 98fb1264c3
27 changed files with 22 additions and 3884 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;

View File

@ -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;
}