feat(views): crud in frontend
This commit is contained in:
@ -1,24 +1,31 @@
|
||||
import type {IAbstract} from './IAbstract'
|
||||
import type {ITask} from './ITask'
|
||||
import type {IUser} from './IUser'
|
||||
import type {ISubscription} from './ISubscription'
|
||||
import type {IProject} from '@/modelTypes/IProject'
|
||||
|
||||
export const PROJECT_VIEW_KINDS = ['list', 'gantt', 'table', 'kanban']
|
||||
export type ProjectViewKind = typeof PROJECT_VIEW_KINDS[number]
|
||||
|
||||
export const PROJECT_VIEW_BUCKET_CONFIGURATION_MODES = ['none', 'manual', 'filter']
|
||||
export type ProjectViewBucketConfigurationMode = typeof PROJECT_VIEW_BUCKET_CONFIGURATION_MODES[number]
|
||||
|
||||
export interface IProjectViewBucketConfiguration {
|
||||
title: string
|
||||
filter: string
|
||||
}
|
||||
|
||||
export interface IProjectView extends IAbstract {
|
||||
id: number
|
||||
title: string
|
||||
projectId: IProject['id']
|
||||
viewKind: 'list' | 'gantt' | 'table' | 'kanban'
|
||||
|
||||
fitler: string
|
||||
viewKind: ProjectViewKind
|
||||
|
||||
filter: string
|
||||
position: number
|
||||
|
||||
bucketConfigurationMode: 'none' | 'manual' | 'filter'
|
||||
bucketConfiguration: object
|
||||
|
||||
bucketConfigurationMode: ProjectViewBucketConfigurationMode
|
||||
bucketConfiguration: IProjectViewBucketConfiguration[]
|
||||
defaultBucketId: number
|
||||
doneBucketId: number
|
||||
|
||||
|
||||
created: Date
|
||||
updated: Date
|
||||
}
|
Reference in New Issue
Block a user