Files
freeplanet/src/model/UserStore.ts

77 lines
1.2 KiB
TypeScript
Raw Normal View History

2018-11-15 19:48:37 +01:00
import { IToken } from 'model/other'
const enum ESexType {
None = 0,
Male = 1,
Female = 2
}
export interface IUserProfile {
img?: string
2019-12-29 23:29:56 +01:00
nationality?: string
intcode_cell?: string
iso2_cell?: string
cell?: string
dateofbirth?: Date
sex?: ESexType
2019-12-31 00:44:43 +01:00
country_pay?: string
email_paypal?: string
username_telegram?: string
teleg_id?: number
teleg_checkcode?: number
paymenttypes?: IPaymentType[]
}
export interface IPaymentType {
key: string
label: string
}
export interface IUserFields {
_id?: string
email?: string
username?: string
2019-10-10 16:53:33 +02:00
name?: string
surname?: string
password?: string
ipaddr?: string
perm?: number
verified_email?: boolean
2019-12-31 00:44:43 +01:00
made_gift?: boolean
tokens?: IToken[]
lasttimeonline?: Date
profile?: IUserProfile
2019-12-31 00:44:43 +01:00
downline?: IUserFields[]
}
/*
password?: string
lang
*/
export interface IPerm {
_id: number
label: string
}
export interface IUserState {
my: IUserFields
lang?: string
repeatPassword?: string
categorySel?: string
tokenforgot?: string
2018-11-15 19:48:37 +01:00
servercode?: number
resStatus?: number
x_auth_token?: string
isLogged?: boolean
isAdmin?: boolean
isManager?: boolean
isTeacher?: boolean
usersList?: IUserFields[]
permissionsList?: IPerm[]
countusers?: number
}