1
0

feat(views): fetch tasks via view context when accessing them through views

This commit is contained in:
kolaente
2024-03-15 22:18:44 +01:00
parent ee6ea03506
commit cf15cc6f12
16 changed files with 210 additions and 108 deletions

View File

@ -2,6 +2,7 @@ import type {IAbstract} from './IAbstract'
import type {ITask} from './ITask'
import type {IUser} from './IUser'
import type {ISubscription} from './ISubscription'
import type {IProjectView} from '@/modelTypes/IProjectView'
export interface IProject extends IAbstract {
@ -21,6 +22,7 @@ export interface IProject extends IAbstract {
parentProjectId: number
doneBucketId: number
defaultBucketId: number
views: IProjectView[]
created: Date
updated: Date

View File

@ -0,0 +1,24 @@
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 interface IProjectView extends IAbstract {
id: number
title: string
projectId: IProject['id']
viewKind: 'list' | 'gantt' | 'table' | 'kanban'
fitler: string
position: number
bucketConfigurationMode: 'none' | 'manual' | 'filter'
bucketConfiguration: object
defaultBucketId: number
doneBucketId: number
created: Date
updated: Date
}