31 lines
869 B
TypeScript
31 lines
869 B
TypeScript
import type {IAbstract} from './IAbstract'
|
|
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: ProjectViewKind
|
|
|
|
filter: string
|
|
position: number
|
|
|
|
bucketConfigurationMode: ProjectViewBucketConfigurationMode
|
|
bucketConfiguration: IProjectViewBucketConfiguration[]
|
|
defaultBucketId: number
|
|
doneBucketId: number
|
|
|
|
created: Date
|
|
updated: Date
|
|
} |