- todo: added priority, expired, pos fields.
- todo: delete item. - sorted by fields.
This commit is contained in:
@@ -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
15
src/model/Todos.ts
Normal 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
|
||||
}
|
||||
@@ -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[]
|
||||
|
||||
|
||||
@@ -6,3 +6,4 @@ export * from './key-value'
|
||||
export * from './payload'
|
||||
|
||||
export * from './Categories'
|
||||
export * from './Todos'
|
||||
|
||||
Reference in New Issue
Block a user