1
0

feat(views): crud in frontend

This commit is contained in:
kolaente
2024-03-18 13:56:44 +01:00
parent 433584813a
commit 434b1ea0e8
10 changed files with 476 additions and 12 deletions

View File

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