2021-08-31 18:09:59 +02:00
|
|
|
import { IToken } from '@model/other'
|
|
|
|
|
import { ICart, IOrderCart, IShareWithUs } from '@src/model/Products'
|
2023-01-03 16:51:45 +01:00
|
|
|
import { IAccount, ICircuit, IGallery, IImgGallery, IMyCircuit } from '@model/GlobalStore'
|
2021-08-31 18:09:59 +02:00
|
|
|
|
|
|
|
|
const enum ESexType {
|
|
|
|
|
None = 0,
|
|
|
|
|
Male = 1,
|
|
|
|
|
Female = 2,
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-15 12:25:36 +01:00
|
|
|
export interface IFriends {
|
2022-02-03 00:33:05 +01:00
|
|
|
username: string
|
2022-01-15 12:25:36 +01:00
|
|
|
date?: Date
|
|
|
|
|
}
|
2023-01-03 16:51:45 +01:00
|
|
|
export interface IGroupShort {
|
|
|
|
|
groupname: string
|
|
|
|
|
date?: Date
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IUserAdmins {
|
|
|
|
|
username: string
|
|
|
|
|
perm?: number
|
|
|
|
|
date?: Date
|
|
|
|
|
}
|
2022-01-15 12:25:36 +01:00
|
|
|
|
2022-02-03 00:33:05 +01:00
|
|
|
export interface IMyGroup {
|
2022-02-08 23:06:22 +01:00
|
|
|
_id: string
|
2022-02-03 00:33:05 +01:00
|
|
|
groupname: string
|
|
|
|
|
title?: string
|
|
|
|
|
descr?: string
|
2022-02-04 23:48:53 +01:00
|
|
|
photos: IImgGallery[]
|
2022-08-10 17:06:46 +02:00
|
|
|
visibility?: number[]
|
2022-02-03 00:33:05 +01:00
|
|
|
date_created?: Date
|
2022-08-15 15:10:00 +02:00
|
|
|
date_updated?: Date
|
2022-02-03 00:33:05 +01:00
|
|
|
admins?: IFriends[]
|
|
|
|
|
req_users?: IFriends[]
|
|
|
|
|
blocked?: boolean
|
|
|
|
|
website?: string
|
|
|
|
|
link_telegram?: string
|
|
|
|
|
username_who_block?: string
|
|
|
|
|
date_blocked?: Date
|
2022-08-09 17:31:49 +02:00
|
|
|
createdBy?: string
|
2023-01-03 16:51:45 +01:00
|
|
|
mycircuits?: IMyCircuit[]
|
2023-01-12 01:03:19 +01:00
|
|
|
|
2023-03-11 01:01:23 +01:00
|
|
|
lastdate_reqRisGroup?: Date
|
2023-01-12 01:03:19 +01:00
|
|
|
account?: IAccount
|
2022-02-03 00:33:05 +01:00
|
|
|
}
|
|
|
|
|
|
2022-02-11 01:07:46 +01:00
|
|
|
export interface ICalcStat {
|
|
|
|
|
numUsersReg: number
|
2022-03-03 20:31:47 +01:00
|
|
|
numByTab: {}
|
2022-02-11 01:07:46 +01:00
|
|
|
}
|
|
|
|
|
|
2022-07-21 00:20:48 +02:00
|
|
|
export interface IUserNotifType {
|
|
|
|
|
_id: number
|
|
|
|
|
dir: number
|
|
|
|
|
value: number
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-04 15:27:03 +02:00
|
|
|
export interface IBookmark {
|
|
|
|
|
id: string
|
|
|
|
|
tab: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IFavorite {
|
|
|
|
|
id: string
|
|
|
|
|
tab: number
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-07 21:48:33 +02:00
|
|
|
export interface IFavBook {
|
|
|
|
|
username: string
|
|
|
|
|
}
|
2022-07-21 00:20:48 +02:00
|
|
|
|
2021-08-31 18:09:59 +02:00
|
|
|
export interface IUserProfile {
|
|
|
|
|
img?: string
|
|
|
|
|
nationality?: string
|
|
|
|
|
intcode_cell?: string
|
|
|
|
|
iso2_cell?: string
|
|
|
|
|
cell?: string
|
|
|
|
|
country_pay?: string
|
|
|
|
|
email_paypal?: string
|
|
|
|
|
payeer_id?: string
|
|
|
|
|
advcash_id?: string
|
|
|
|
|
revolut?: string
|
|
|
|
|
link_payment?: string
|
|
|
|
|
note_payment?: string
|
|
|
|
|
username_telegram?: string
|
2022-01-23 23:25:19 +01:00
|
|
|
website?: string
|
2021-08-31 18:09:59 +02:00
|
|
|
teleg_id?: number
|
|
|
|
|
teleg_checkcode?: number
|
|
|
|
|
paymenttypes?: IPaymentType[]
|
|
|
|
|
manage_telegram?: boolean
|
2021-12-21 01:26:29 +01:00
|
|
|
resplist?: any
|
|
|
|
|
workerslist?: any
|
2021-12-29 18:26:41 +01:00
|
|
|
dateofbirth?: Date|null
|
2022-02-19 22:02:54 +01:00
|
|
|
born_city_id?: number
|
|
|
|
|
born_city_str?: string
|
2021-12-21 01:26:29 +01:00
|
|
|
born_province?: string
|
2023-03-04 10:20:49 +01:00
|
|
|
resid_prov_id?: number
|
2023-03-18 01:27:04 +01:00
|
|
|
resid_province: string
|
2021-12-21 01:26:29 +01:00
|
|
|
born_country?: string
|
|
|
|
|
my_dream?: string
|
|
|
|
|
saw_and_accepted?: boolean
|
2021-08-31 18:09:59 +02:00
|
|
|
saw_zoom_presentation?: boolean
|
|
|
|
|
ask_zoom_partecipato?: boolean
|
|
|
|
|
qualified?: boolean
|
|
|
|
|
qualified_2invitati?: boolean
|
2021-12-21 01:26:29 +01:00
|
|
|
special_req?: boolean
|
|
|
|
|
sex?: ESexType
|
|
|
|
|
biografia?: string
|
2021-08-31 18:09:59 +02:00
|
|
|
socio?: boolean
|
|
|
|
|
socioresidente?: boolean
|
|
|
|
|
consiglio?: boolean
|
2021-12-21 01:26:29 +01:00
|
|
|
myshares: IShareWithUs[]
|
2022-01-15 12:25:36 +01:00
|
|
|
friends: IFriends[]
|
|
|
|
|
req_friends: IFriends[]
|
2023-01-06 15:51:58 +01:00
|
|
|
handshake: IFriends[]
|
2022-02-04 23:48:53 +01:00
|
|
|
mygroups: IMyGroup[]
|
2022-09-02 02:25:17 +02:00
|
|
|
mycircuits: IMyCircuit[]
|
2023-03-17 19:07:43 +01:00
|
|
|
last_circuitpath: string
|
2023-03-11 01:01:23 +01:00
|
|
|
lastdate_reqRis?: Date
|
2022-02-05 23:28:01 +01:00
|
|
|
manage_mygroups: IMyGroup[]
|
2022-07-21 00:20:48 +02:00
|
|
|
notifs: IUserNotifType[]
|
2022-07-23 17:44:44 +02:00
|
|
|
notif_idCities: number[]
|
|
|
|
|
notif_provinces: string[]
|
|
|
|
|
notif_regions: string[]
|
|
|
|
|
notif_sectors: number[]
|
|
|
|
|
notif_sector_goods: number[]
|
2023-03-11 01:01:23 +01:00
|
|
|
stepTutorial: number
|
|
|
|
|
noNameSurname: boolean
|
2023-03-22 15:54:56 +01:00
|
|
|
noCircuit: boolean
|
2023-03-17 19:07:43 +01:00
|
|
|
noFoto: boolean
|
2023-04-04 15:27:03 +02:00
|
|
|
bookmark: IBookmark[]
|
|
|
|
|
favorite: IFavorite[]
|
2023-04-07 21:48:33 +02:00
|
|
|
myfav: IFavBook[]
|
|
|
|
|
mybook: IFavBook[]
|
2022-01-14 23:54:12 +01:00
|
|
|
|
|
|
|
|
// in memory
|
|
|
|
|
asked_friends: any[]
|
2023-01-03 16:51:45 +01:00
|
|
|
asked_groups: IGroupShort[]
|
|
|
|
|
refused_groups: IGroupShort[]
|
2022-02-08 23:06:22 +01:00
|
|
|
list_usersgroup?: IFriends[]
|
2022-08-26 03:32:50 +02:00
|
|
|
|
|
|
|
|
asked_circuits: any[]
|
|
|
|
|
refused_circuits: any[]
|
2022-09-02 02:25:17 +02:00
|
|
|
manage_mycircuits: ICircuit[]
|
2022-09-03 13:06:35 +02:00
|
|
|
useraccounts: IAccount[]
|
2022-12-07 18:16:23 +01:00
|
|
|
calc: ICalc
|
2022-12-03 03:14:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ICalc{
|
|
|
|
|
numGoodsAndServices?: number
|
2021-08-31 18:09:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IPaymentType {
|
|
|
|
|
key: string
|
|
|
|
|
label: string
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-18 05:26:21 +02:00
|
|
|
export interface IUserAport {
|
|
|
|
|
username: string
|
|
|
|
|
profile?: IUserProfile
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-31 18:09:59 +02:00
|
|
|
export interface IUserFields {
|
|
|
|
|
_id: string
|
2022-11-29 00:16:25 +01:00
|
|
|
idapp?: string
|
2021-08-31 18:09:59 +02:00
|
|
|
ind_order?: number
|
|
|
|
|
email?: string
|
|
|
|
|
username: string
|
|
|
|
|
name: string
|
|
|
|
|
surname: string
|
|
|
|
|
password?: string
|
|
|
|
|
ipaddr?: string
|
|
|
|
|
perm?: number
|
|
|
|
|
verified_email?: boolean
|
2021-12-29 18:26:41 +01:00
|
|
|
verified_by_aportador?: boolean
|
2022-08-04 17:30:01 +02:00
|
|
|
reported?: boolean
|
|
|
|
|
username_who_report?: string
|
|
|
|
|
date_report?: Date
|
2022-02-26 17:35:36 +01:00
|
|
|
notask_verif?: boolean
|
2022-01-15 12:25:36 +01:00
|
|
|
trust_modified?: Date
|
2021-08-31 18:09:59 +02:00
|
|
|
aportador_solidario?: string
|
2022-08-18 05:26:21 +02:00
|
|
|
useraport?: IUserAport
|
2021-08-31 18:09:59 +02:00
|
|
|
|
|
|
|
|
made_gift?: boolean
|
|
|
|
|
tokens?: IToken[]
|
|
|
|
|
lasttimeonline?: Date
|
|
|
|
|
profile: IUserProfile
|
|
|
|
|
qualified?: boolean
|
|
|
|
|
numNaviEntrato?: number
|
|
|
|
|
numinvitati?: number
|
|
|
|
|
numinvitatiattivi?: number
|
|
|
|
|
cart?: ICart
|
|
|
|
|
ordercart?: IOrderCart
|
2022-02-11 01:07:46 +01:00
|
|
|
calcstat?: ICalcStat|null
|
2023-02-23 17:20:54 +01:00
|
|
|
|
|
|
|
|
account?: IAccount
|
2021-08-31 18:09:59 +02:00
|
|
|
}
|
|
|
|
|
|
2022-07-10 01:24:54 +02:00
|
|
|
export interface IUserExport {
|
|
|
|
|
_id: string
|
|
|
|
|
email?: string
|
|
|
|
|
username: string
|
|
|
|
|
username_telegram: string
|
|
|
|
|
firstname_telegram: string
|
|
|
|
|
lastname_telegram: string
|
|
|
|
|
}
|
2021-08-31 18:09:59 +02:00
|
|
|
/*
|
|
|
|
|
password?: string
|
|
|
|
|
lang
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
export interface IPerm {
|
|
|
|
|
_id: number
|
|
|
|
|
label: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IUserState {
|
|
|
|
|
my: IUserFields
|
|
|
|
|
lang: string
|
|
|
|
|
repeatPassword?: string
|
|
|
|
|
|
|
|
|
|
categorySel?: string
|
|
|
|
|
|
|
|
|
|
tokenforgot?: string
|
|
|
|
|
|
|
|
|
|
servercode?: number
|
|
|
|
|
msg?: string
|
|
|
|
|
resStatus?: number
|
|
|
|
|
x_auth_token: string
|
|
|
|
|
isLogged?: boolean
|
|
|
|
|
isAdmin?: boolean
|
|
|
|
|
isManager?: boolean
|
|
|
|
|
isDepartment?: boolean
|
2022-07-28 21:46:58 +02:00
|
|
|
isFacilitatore?: boolean
|
2021-08-31 18:09:59 +02:00
|
|
|
isZoomeri?: boolean
|
|
|
|
|
isTratuttrici?: boolean
|
|
|
|
|
isEditor?: boolean
|
|
|
|
|
isTeacher?: boolean
|
|
|
|
|
usersList?: IUserFields[]
|
|
|
|
|
countusers?: number
|
|
|
|
|
lastparamquery?: any
|
2022-08-08 16:34:30 +02:00
|
|
|
updateTables?: boolean
|
2021-08-31 18:09:59 +02:00
|
|
|
}
|