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-04-27 20:12:41 +02:00
|
|
|
export interface IAction {
|
2019-04-29 01:01:31 +02:00
|
|
|
table: string
|
2019-04-27 20:12:41 +02:00
|
|
|
type: number
|
|
|
|
|
_id: any
|
2019-04-29 01:01:31 +02:00
|
|
|
cat?: string
|
2019-04-27 20:12:41 +02:00
|
|
|
}
|
|
|
|
|
|
2019-03-21 20:43:15 +01:00
|
|
|
export interface IProject {
|
|
|
|
|
_id?: any,
|
|
|
|
|
userId?: string
|
|
|
|
|
category?: string
|
2019-04-09 21:07:16 +02:00
|
|
|
typeproj?: number
|
|
|
|
|
id_main_project?: string
|
2019-03-30 02:57:40 +01:00
|
|
|
id_parent?: string
|
|
|
|
|
descr?: string
|
|
|
|
|
longdescr?: string
|
|
|
|
|
priority?: number
|
2019-04-06 21:52:27 +02:00
|
|
|
statusproj?: number
|
2019-03-30 02:57:40 +01:00
|
|
|
created_at?: Date
|
|
|
|
|
modify_at?: Date
|
|
|
|
|
completed_at?: Date
|
|
|
|
|
expiring_at?: Date
|
|
|
|
|
enableExpiring?: boolean
|
|
|
|
|
id_prev?: string
|
|
|
|
|
modified?: boolean
|
2019-04-25 00:30:13 +02:00
|
|
|
favourite?: number
|
2019-03-30 02:57:40 +01:00
|
|
|
pos?: number
|
|
|
|
|
order?: number
|
2019-04-02 00:18:01 +02:00
|
|
|
live_url?: string
|
|
|
|
|
test_url?: string
|
2019-04-07 21:24:10 +02:00
|
|
|
hoursplanned?: number
|
2019-04-29 01:01:31 +02:00
|
|
|
hoursleft?: number
|
2019-04-07 21:24:10 +02:00
|
|
|
hoursworked?: number
|
|
|
|
|
progressCalc?: number
|
2019-04-02 00:18:01 +02:00
|
|
|
begin_development?: Date
|
2019-04-07 21:24:10 +02:00
|
|
|
hoursweeky_plannedtowork?: number
|
|
|
|
|
endwork_estimate?: Date
|
2019-04-02 00:18:01 +02:00
|
|
|
begin_test?: Date
|
2019-04-07 21:24:10 +02:00
|
|
|
totalphases?: number
|
|
|
|
|
actualphase?: number
|
2019-04-09 21:07:16 +02:00
|
|
|
privacyread?: string
|
|
|
|
|
privacywrite?: string
|
2019-03-21 20:43:15 +01:00
|
|
|
}
|
|
|
|
|
|
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
|
|
|
|
|
}
|
2019-04-09 21:07:16 +02:00
|
|
|
|
|
|
|
|
export const Privacy = {
|
|
|
|
|
all: 'all',
|
|
|
|
|
friends: 'friends',
|
|
|
|
|
mygroup: 'mygroup',
|
|
|
|
|
onlyme: 'onlyme'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const TypeProj = {
|
|
|
|
|
TYPE_PROJECT: 1,
|
|
|
|
|
TYPE_SUBDIR: 2
|
|
|
|
|
}
|