- todo: added priority, expired, pos fields.

- todo: delete item.
- sorted by fields.
This commit is contained in:
Paolo Arena
2019-01-14 22:40:30 +01:00
parent 3613560c97
commit 2984f20b58
29 changed files with 1025 additions and 26 deletions

View File

@@ -3,4 +3,5 @@ export interface ICategory {
descr_it?: string
descr_en?: string
descr_es?: string
campo2bool: boolean
}

15
src/model/Todos.ts Normal file
View File

@@ -0,0 +1,15 @@
export interface ITodo {
id?: number,
userId: string
pos: number,
descr?: string,
priority: number,
completed: boolean,
created_at: any,
modify_at: any,
expiring_at: any
}
export interface ITodosState {
visuOnlyUncompleted: boolean
}

View File

@@ -9,7 +9,7 @@ export const DefaultUser = <IUserState>{
}
export interface IUserState {
_id?: string
userId?: string
email?: string
username: string
idapp?: any
@@ -18,7 +18,6 @@ export interface IUserState {
repeatPassword?: string
idToken?: string
userId?: number
tokens?: IToken[]

View File

@@ -6,3 +6,4 @@ export * from './key-value'
export * from './payload'
export * from './Categories'
export * from './Todos'