2019-03-30 02:57:40 +01:00
|
|
|
import objectId from '@src/js/objectId'
|
|
|
|
|
import { UserStore } from '@store'
|
|
|
|
|
import { tools } from '@src/store/Modules/tools'
|
|
|
|
|
|
2019-03-21 20:43:15 +01:00
|
|
|
export interface IProject {
|
|
|
|
|
_id?: any,
|
|
|
|
|
userId?: string
|
|
|
|
|
category?: string
|
2019-03-30 02:57:40 +01:00
|
|
|
id_parent?: string
|
|
|
|
|
descr?: string
|
|
|
|
|
longdescr?: string
|
|
|
|
|
hoursplanned?: number
|
|
|
|
|
hoursworked?: number
|
|
|
|
|
priority?: number
|
|
|
|
|
completed?: boolean
|
|
|
|
|
created_at?: Date
|
|
|
|
|
modify_at?: Date
|
|
|
|
|
completed_at?: Date
|
|
|
|
|
expiring_at?: Date
|
|
|
|
|
enableExpiring?: boolean
|
|
|
|
|
id_prev?: string
|
|
|
|
|
modified?: boolean
|
|
|
|
|
pos?: number
|
|
|
|
|
order?: number
|
2019-03-28 12:58:34 +01:00
|
|
|
progressCalc?: number
|
2019-03-21 20:43:15 +01:00
|
|
|
}
|
|
|
|
|
|
2019-03-30 02:57:40 +01:00
|
|
|
|
2019-03-22 20:51:42 +01:00
|
|
|
export interface IParamIProject {
|
2019-03-21 20:43:15 +01:00
|
|
|
categorySel?: string
|
|
|
|
|
checkPending?: boolean
|
|
|
|
|
id?: string
|
|
|
|
|
objtodo?: IProject
|
|
|
|
|
atfirst?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
export interface IDrag {
|
|
|
|
|
field?: string
|
|
|
|
|
idelemtochange?: string
|
|
|
|
|
prioritychosen?: number
|
|
|
|
|
oldIndex?: number
|
|
|
|
|
newIndex?: number
|
|
|
|
|
category: string
|
|
|
|
|
atfirst?: boolean
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
2019-03-22 20:51:42 +01:00
|
|
|
export interface IProjectsState {
|
2019-03-21 20:43:15 +01:00
|
|
|
showtype: number
|
2019-03-28 12:58:34 +01:00
|
|
|
projects: IProject[]
|
2019-03-21 20:43:15 +01:00
|
|
|
insidePending: boolean
|
|
|
|
|
visuLastCompleted: number
|
|
|
|
|
}
|