feat: update UI
This commit is contained in:
+45
-2
@@ -1,3 +1,10 @@
|
||||
export interface PagedResult<T> {
|
||||
items: T[]
|
||||
totalCount: number
|
||||
page: number
|
||||
pageSize: number
|
||||
}
|
||||
|
||||
export interface User {
|
||||
id: string
|
||||
username: string
|
||||
@@ -6,7 +13,7 @@ export interface User {
|
||||
roleName: string
|
||||
}
|
||||
|
||||
export interface Account {
|
||||
export interface UserListItem {
|
||||
id: string
|
||||
username: string
|
||||
displayName: string
|
||||
@@ -51,6 +58,23 @@ export interface SaveRoleRequest {
|
||||
permissions: PermissionEntry[]
|
||||
}
|
||||
|
||||
export interface MasterDataItem {
|
||||
id: string
|
||||
group: string
|
||||
label: string
|
||||
value: string
|
||||
sortOrder: number
|
||||
isActive: boolean
|
||||
}
|
||||
|
||||
export interface SaveMasterDataRequest {
|
||||
group: string
|
||||
label: string
|
||||
value: string
|
||||
sortOrder: number
|
||||
isActive: boolean
|
||||
}
|
||||
|
||||
export type ProjectStatus = 'Active' | 'Archived'
|
||||
export type MemberRole = 'Owner' | 'Member'
|
||||
export type DocumentType = 'Folder' | 'Document'
|
||||
@@ -62,7 +86,11 @@ export interface Project {
|
||||
name: string
|
||||
description: string | null
|
||||
status: ProjectStatus
|
||||
createdBy: string
|
||||
createdByName: string
|
||||
createdAt: string
|
||||
updatedBy: string | null
|
||||
updatedByName: string | null
|
||||
updatedAt: string
|
||||
}
|
||||
|
||||
@@ -71,6 +99,10 @@ export interface ProjectMember {
|
||||
username: string
|
||||
displayName: string
|
||||
role: MemberRole
|
||||
canViewDocuments: boolean
|
||||
canCreateDocuments: boolean
|
||||
canEditDocuments: boolean
|
||||
canDeleteDocuments: boolean
|
||||
}
|
||||
|
||||
export interface ProjectOverview {
|
||||
@@ -100,7 +132,10 @@ export interface DocumentNode {
|
||||
parentId: string | null
|
||||
title: string
|
||||
type: DocumentType
|
||||
createdAt: string
|
||||
createdBy: string
|
||||
updatedAt: string
|
||||
updatedBy: string | null
|
||||
children: DocumentNode[]
|
||||
}
|
||||
|
||||
@@ -131,6 +166,14 @@ export interface Task {
|
||||
updatedAt: string
|
||||
}
|
||||
|
||||
export interface UserRoleDetail {
|
||||
userId: string
|
||||
username: string
|
||||
displayName: string
|
||||
assignedRoles: Role[]
|
||||
unassignedRoles: Role[]
|
||||
}
|
||||
|
||||
export interface TaskCounts {
|
||||
[status: string]: number
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user