Files
salvato.newfreeplanet/src/model/GlobalStore.ts

1139 lines
21 KiB
TypeScript
Raw Normal View History

2021-08-31 18:09:59 +02:00
import { IAction } from '@src/model/Projects'
2022-08-26 03:32:50 +02:00
import { IFriends, IMyGroup, IPaymentType } from '@src/model/UserStore'
2021-08-31 18:09:59 +02:00
import {
2021-09-04 15:05:34 +02:00
IDepartment, IProducer, IShareWithUs, IStorehouse,
2021-08-31 18:09:59 +02:00
} from '@src/model/Products'
import { IUserFields, IUserProfile } from '@src/model/UserStore'
2021-08-31 18:09:59 +02:00
export interface IPost {
title: string
}
export interface ICheckUser {
verified_email?: boolean
teleg_id?: number
profile?: IUserProfile
}
export interface INotData {
num_reg?: number
2022-12-10 02:01:26 +01:00
num_reg_today?: number
2022-03-10 23:20:09 +01:00
online_today?: number
num_passeggeri?: number
num_imbarcati?: number
email_non_verif?: number
num_teleg_attivo?: number
num_autorizzare?: number
num_autorizzati?: number
num_teleg_pending?: number
num_part_zoom?: number
num_part_accepted?: number
num_modalita_pagamento?: number
arr_nations?: string
lastsreg?: IUserFields[]
2022-12-10 02:01:26 +01:00
lastsonline?: IUserFields[]
lastssharedlink?: IUserFields[]
2022-12-11 02:57:45 +01:00
diffusorilist?: IUserFields[]
checkuser?: ICheckUser | any
numreg_untilday?: number
reg_daily?: string
imbarcati_daily?: string
imbarcati_weekly?: string
reg_weekly?: string
}
2021-08-31 18:09:59 +02:00
export interface IConnData {
downloading_server: number
downloading_indexeddb: number
uploading_server: number
uploading_indexeddb: number
}
export interface ICfgServer {
chiave: string
idapp: string
userId: string
valore: string
}
export interface ICfgData {
_id?: string
lang?: string
token?: string
userId?: string
}
export interface ITemplEmail {
_id?: string
subject?: string
content?: string
options?: ISettings[]
}
export interface ISettings {
_id?: string
idapp?: string
key?: string
type?: number
value_str?: string
value_date?: Date,
value_num?: number
value_bool?: boolean
serv?: boolean
crypted?: boolean
2021-08-31 18:09:59 +02:00
}
export interface ITeachUname {
username?: string
}
export interface IInternalPage {
path?: string
}
export interface IResp {
_id?: string
username?: string
name?: string
surname?: string
}
2021-12-29 18:26:41 +01:00
export interface IMyBot {
_id?: string
page?: number
index?: number
riga?: number
active?: boolean
main?: boolean
label?: string
type?: number
value?: string
visibility?: number
date_updated?: Date
}
2022-10-27 11:18:31 +02:00
export interface IMyElem {
_id?: string
type?: number
2022-11-10 19:32:56 +01:00
path?: string
2022-11-12 11:52:20 +01:00
img?: string
2022-10-27 11:18:31 +02:00
container?: string
container2?: string
container3?: string
container4?: string
2022-11-13 22:39:25 +01:00
span?: boolean
2022-11-18 18:54:30 +01:00
transition?: boolean
2022-11-12 11:52:20 +01:00
align?: number
2022-11-18 18:54:30 +01:00
vertalign?: number
2022-11-12 11:52:20 +01:00
fit?: string
2022-11-11 18:16:28 +01:00
parambool?: boolean
parambool2?: boolean
parambool3?: boolean
number?: number
imgback?: string
ratio?: string
containerHtml?: string
2022-10-27 11:18:31 +02:00
size?: string
2022-11-10 19:32:56 +01:00
order?: number
width?: number
height?: number
2022-11-12 11:52:20 +01:00
heightimg?: string
widthimg?: string
link?: string
onlyif_logged?: boolean
2022-10-27 11:18:31 +02:00
active?: boolean
class?: string
2022-11-13 22:39:25 +01:00
image?: string
class2?: string
2022-11-17 08:10:43 +01:00
class3?: string
2022-11-18 18:54:30 +01:00
class4?: string
2022-11-23 10:27:36 +01:00
anim?: IAnim
anim2?: IAnim
styleadd?: string
list?: IImgGallery[]
2022-11-13 22:39:25 +01:00
listcards?: IMyCard[]
elemsText?: IElemText[]
2022-10-27 11:18:31 +02:00
}
export interface IElemText {
_id: string
text: string
color?: string
size?: string
class?: string
anim?: IAnim
}
2021-08-31 18:09:59 +02:00
export interface IMyPage {
_id?: string
author_username?: string
lang?: string
title?: string
2022-10-27 11:18:31 +02:00
subtitle?: string
2021-08-31 18:09:59 +02:00
icon?: string
2022-10-27 11:18:31 +02:00
iconsize?: string
2021-08-31 18:09:59 +02:00
order?: number
path?: string
keywords?: string
description?: string
img1?: string
content?: string
video1?: string
2021-09-16 21:08:02 +02:00
ratio1?: string
2021-08-31 18:09:59 +02:00
img2?: string
content2?: string
video2?: string
2021-09-16 21:08:02 +02:00
ratio2?: string
2021-08-31 18:09:59 +02:00
img3?: string
content3?: string
video3?: string
2021-09-16 21:08:02 +02:00
ratio3?: string
2021-08-31 18:09:59 +02:00
content4?: string
active?: boolean
inmenu?: boolean
color?: string
elemsText?: IElemText[]
2021-08-31 18:09:59 +02:00
onlyif_logged?: boolean
only_residenti?: boolean
only_consiglio?: boolean
submenu?: boolean
l_par?: number,
l_child?: number,
infooter?: boolean
internalpage?: boolean
2022-10-27 11:18:31 +02:00
extraclass?: string
2022-11-20 10:21:02 +01:00
loadFirst?: boolean
showFooter?: boolean
//Memory
loaded?: boolean
2021-08-31 18:09:59 +02:00
}
export interface IOption {
options: number
}
2022-11-23 10:27:36 +01:00
export interface IConfPages {
font?: string
col_toolbar: string
col_bgfooter: string
show_darkopt: boolean
showButtHome: boolean
showProfile: boolean
showUserMenu: boolean
showRegButton: boolean
enableReg: boolean
showNL: boolean
showMsgs: boolean
showNotif: boolean
showCoins: boolean
showNameSurname: boolean
showCompetenze: boolean
showConnected: boolean
bookingEvents: boolean
enableEcommerce: boolean
enableGroups: boolean
enableCircuits: boolean
enableProj: boolean
enableTodos: boolean
enableRegByBot: boolean
enableRegMultiChoice: boolean
enableDebugOn: boolean
enabledRegNeedTelegram: boolean
showViewGroups: boolean
showViewCircuits: boolean
showViewUsers: boolean
showViewBooking: boolean
showViewProfile: boolean
enablePwa: boolean
lang: number
2022-11-23 10:27:36 +01:00
}
2022-11-18 18:54:30 +01:00
export interface IContacts {
2022-11-23 10:27:36 +01:00
facebook: string
instagram: string
whatsapp: string
whatsapp_home: boolean
telegram: string
youtube: string
email: string
address: string
map: string
info2: string
cell: string
2022-11-18 18:54:30 +01:00
}
2022-11-23 10:27:36 +01:00
export interface IPolicy {
show: boolean
owneremail: string
siteName: string
ownerDataName: string
managerData: string
includeData: string
url: string
lastdataupdate: string
country: string
}
2021-08-31 18:09:59 +02:00
export interface ISites {
_id?: string
attiva?: boolean
idapp?: string
name?: string
adminemail?: string
manageremail?: string
replyTo?: string
host?: string
host_test?: string
2021-08-31 18:09:59 +02:00
portapp?: string
dir?: string
email_from?: string
email_pwd?: string
telegram_key?: string
telegram_bot_name?: string
telegram_key_test?: string
telegram_bot_name_test?: string
telegram_support_chat?: string
2021-08-31 18:09:59 +02:00
pathreg_add?: string
confsite: IOption
2022-11-23 10:27:36 +01:00
policy?: IPolicy
2022-11-17 08:10:43 +01:00
description?: string
keywords?: string
2022-11-18 18:54:30 +01:00
contacts?: IContacts
confpages: IConfPages
2021-08-31 18:09:59 +02:00
}
export interface INewsToSent {
_id: string
idapp?: string
label?: string
templemail_str?: string
numemail_tot?: number
numemail_sent?: number
datetoSent?: Date
datestartJob?: Date
datefinishJob?: Date
lastemailsent_Job?: Date
starting_job?: boolean
finish_job?: boolean
error_job?: string
}
export interface ICalZoom {
lang?: string
title?: string
typeconf?: string
date_start?: string
date_end?: Date
id_conf_zoom?: number
note?: string
}
export interface IGroup {
_id?: any
descr?: string
}
export interface IMailinglist {
name?: string
surname?: string
email: string
lastid_newstosent?: string
}
export interface IDiscipline {
typol_code?: string
order?: number
label?: string
description?: string
linkpage?: string
color?: string
icon?: string
img_small?: string
showinhome?: boolean
showinnewsletter?: boolean
img?: string
teachers?: ITeachUname[]
}
export interface ITestp1 {
contatore: number
mioarray: ICfgServer[]
}
export type StateConnection = 'online' | 'offline'
export interface IConfig {
_id: string,
key?: string,
value: string
}
export interface IMetaTags {
title?: string
keywords?: string
description?: string
}
2022-09-03 13:06:35 +02:00
export interface ICircuitState {
listcircuits: ICircuit[]
}
2022-12-01 16:55:22 +01:00
export interface ISelector {
data: object
table: string
}
2021-08-31 18:09:59 +02:00
export interface IGlobalState {
finishLoading: boolean
conta: number
wasAlreadySubOnDb: boolean
wasAlreadySubscribed: boolean
isLoginPage: boolean
layoutNeeded: boolean
mobileMode: boolean
menuCollapse: boolean
leftDrawerOpen: boolean
rightDrawerOpen: boolean
rightNotifOpen: boolean
rightCoinsOpen: boolean
2021-08-31 18:09:59 +02:00
rightCartOpen: boolean
category: string
stateConnection: string
serverError: boolean
serverMsgError: any
2021-08-31 18:09:59 +02:00
networkDataReceived: boolean
clickcmd?: string
cfgServer: ICfgServer[]
testp1: ITestp1
connData: IConnData
posts: IPost[]
menulinks: {}
listatodo: IMenuList[]
arrConfig: IConfig[]
lastaction: IAction
serv_settings: ISettings[],
settings: ISettings[],
disciplines: IDiscipline[],
paymenttypes: IPaymentType[],
newstosent: INewsToSent[],
gallery: IGallery[],
mypage: IMyPage[],
myelems: IMyElem[],
2021-08-31 18:09:59 +02:00
templemail: ITemplEmail[],
opzemail: ISettings[],
mailinglist: IMailinglist[],
calzoom: ICalZoom[],
producers: IProducer[],
storehouses: IStorehouse[],
departments: IDepartment[],
sharewithus: IShareWithUs[],
groups: IGroup[],
resps: IResp[],
workers: IResp[],
autoplaydisc: number
TIMER: any
TIMEOUT: any
CUT: any
TIMER_STATE: number
URL_RITORNA: string
URL_RESTORE: string
serverHost?: string
levels: ILevel[],
adtypes: IAdType[],
adtypegoods: IAdType[],
skills: ISkill[],
goods: IGood[],
// subSkills: ISubSkill[],
2021-10-08 00:38:22 +02:00
statusSkills: IStatusSkill[],
sectors: ISector[],
sectorgoods: ISectorGood[],
2022-02-04 23:48:53 +01:00
catgrps: ICatGrp[],
provinces: IProvince[],
datastat?: INotData
site: ISites,
mygroups: IMyGroup[],
2022-11-17 08:10:43 +01:00
selElem?: IMyElem,
editOn?: boolean,
2022-12-01 16:55:22 +01:00
myselector: ISelector,
2022-12-01 21:44:33 +01:00
addNewRecord: string,
isAppRunning: boolean
2022-12-20 10:58:55 +01:00
deferredPrompt: any
2021-08-31 18:09:59 +02:00
}
export interface IMenuList {
nametranslate: string
description?: string
idelem?: string
icon?: string
name?: string
level_parent?: number
level_child?: number
urlroute?: string
routes2?: IMenuList[]
}
export interface IPathFile {
path: string
file: string
}
export interface IListRoutes {
active?: boolean
order: number
path: string
name: string
2022-10-27 11:18:31 +02:00
subtitle?: string
2021-08-31 18:09:59 +02:00
lang?: string
materialIcon?: string
2022-10-27 11:18:31 +02:00
iconsize?: string
2021-08-31 18:09:59 +02:00
component?: any
2021-09-16 21:08:02 +02:00
children?: any
2021-08-31 18:09:59 +02:00
reqauth?: boolean
isseparator?: boolean
inmenu?: boolean
solotitle?: boolean
infooter?: boolean
submenu?: boolean
2022-05-08 13:19:35 +02:00
noroute?: boolean
2021-08-31 18:09:59 +02:00
onlyAdmin?: boolean
onlyif_logged?: boolean
onlyManager?: boolean
onlySocioResidente?: boolean
onlyConsiglio?: boolean
onlyNotSoci?: boolean
onlyDepartment?: boolean
onlyFacilitatore?: boolean
2021-08-31 18:09:59 +02:00
color?: string
onlyEditor?: boolean
extraclass?: string
meta?: any
idelem?: string
urlroute?: string
img?: string
// ------------------------
faIcon?: string
text?: string
routes2?: IListRoutes[]
level_parent?: number
level_child?: number
separator?: boolean
}
export interface IOperators {
username: string
name: string
surname: string
email?: string
qualification?: string
disciplines?: string
certifications?: string
img?: string
cell?: string
usertelegram?: string
paginaweb?: string
paginafb?: string
intro?: string
info?: string
vario?: string
tab?: string
}
export interface IPreloadImages {
imgname: string
alt: string
mobile: boolean
}
export interface ILang {
label: string
icon: string
value: string
image: string
short: string
}
export interface IAllLang {
es?: string
enUs?: string
fr?: string
de?: string
it?: string
}
export interface ITimeLineEntry {
date: string
title: string
description: IAllLang
description2?: IAllLang
description3?: IAllLang
icon: string
image: string
image2?: string
image3?: string
image4?: string
video?: string
side: string
link_url?: string
link_url_lang?: IAllLang
link_text?: IAllLang
ingallery?: boolean
}
export interface ITimeLineMain {
2021-09-02 21:29:24 +02:00
titlemain: IAllLang | any
2021-08-31 18:09:59 +02:00
body: ITimeLineEntry[]
}
export interface IImgGallery {
_id?: string
imagefile: string
2021-11-23 15:59:26 +01:00
// order?: number
2021-08-31 18:09:59 +02:00
alt?: string
description?: string
}
2022-11-13 22:39:25 +01:00
export interface IMyCard {
2022-11-17 08:10:43 +01:00
_id?: string
2022-11-13 22:39:25 +01:00
imagefile?: string
alt?: string
description?: string
2022-11-17 08:10:43 +01:00
style?: string
2022-11-13 22:39:25 +01:00
size?: string
color?: string
content?: string
colorsub?: string
}
2021-08-31 18:09:59 +02:00
export interface IGallery {
_id?: string
author_username?: string
title?: string
directory?: string
list?: IImgGallery[]
}
export interface IColl {
2021-09-02 21:29:24 +02:00
title: IAllLang | any
2021-08-31 18:09:59 +02:00
date?: string
2021-09-02 21:29:24 +02:00
subtitle?: IAllLang | any
2021-08-31 18:09:59 +02:00
img: string
img2?: string
linkagg?: string
linkagg_type?: number
width?: number
height?: number
ingallery?: boolean
inexibitions?: boolean
}
export interface ICollaborations {
2021-09-02 21:29:24 +02:00
withwhom_title: IAllLang | any
2021-08-31 18:09:59 +02:00
list: IColl[]
}
export interface IParamDialog {
param1?: any
param2?: any
param3?: any
}
export interface IParLookup {
lk_tab?: string,
af_objId_tab?: string,
lk_LF?: string,
lk_FF?: string,
lk_as?: string,
lk_proj?: string,
}
export interface IParamsPickup {
table: string
search: string
filter: string
}
2021-08-31 18:09:59 +02:00
export interface IParamsQuery {
newvers: boolean
2021-08-31 18:09:59 +02:00
table: string
startRow: number
endRow: number
filter: string
filterand: string
2021-12-11 00:25:35 +01:00
sortBy: string
2021-08-31 18:09:59 +02:00
descending: number
userId: string
codeId?: string
filtersearch: string
2021-12-17 18:30:18 +01:00
filtersearch2: string
filtercustom: string
2022-11-06 13:38:38 +01:00
filterextra?: string
filterextra2?: string
2022-05-08 13:19:35 +02:00
filter_gte: string
lookup1?: IParLookup
lookup2?: IParLookup
2021-12-17 18:30:18 +01:00
lookup3?: IParLookup
2021-12-31 01:44:16 +01:00
lookup4?: IParLookup
2022-01-12 00:38:31 +01:00
options?: number
extrapar?: string
2021-08-31 18:09:59 +02:00
}
export interface ISocial {
description: string
network: string
title: string
url: string
quote: string
}
2022-07-21 00:20:48 +02:00
export interface ISpecialField {
findsubkey?: any
paramtosetsubkey?: any
paramdef?: any
defaultnewrec?: object
}
2021-08-31 18:09:59 +02:00
export interface IColGridTable {
name: string
subfield?: string
required?: boolean
label?: string
label_trans?: string
2022-02-04 23:48:53 +01:00
visibleif?: number
visib_field?: string
visib_value?: any
2021-08-31 18:09:59 +02:00
align?: string
field?: string
sortable?: boolean
visulabel?: boolean
2021-08-31 18:09:59 +02:00
disable?: boolean
titlepopupedit?: string
visible?: boolean
icon?: string
action?: any
askaction?: string
foredit?: boolean
isInModif?: boolean
2021-08-31 18:09:59 +02:00
fieldtype?: number
typeobj?: string
inline?: boolean
fieldtype_real?: number
2022-02-04 23:48:53 +01:00
field_outtype?: number
2022-01-26 01:31:07 +01:00
noshowlabel?: boolean
numpag_carousel?: number
2022-01-03 21:53:41 +01:00
tipovisu?: number
link?: string
2021-08-31 18:09:59 +02:00
jointable?: string
addall?: boolean
addnone?: boolean
filter?: any
2021-08-31 18:09:59 +02:00
resultjoin?: string[]
tablesel?: string
2022-01-23 23:25:19 +01:00
notsave?: boolean
isadvanced_field?: boolean
showWhen?: number
2022-01-23 23:25:19 +01:00
maxlength?: number
2022-07-10 01:24:54 +02:00
minlength?: number
2022-02-04 23:48:53 +01:00
allowchar?: number
2022-01-23 23:25:19 +01:00
filter_table?: string
filter_field?: string
remote_table?: string
remote_key?: string
remote_field?: string
2022-01-23 23:25:19 +01:00
field_extra1?: string
field_toduplicate_nospace?: string
2022-01-23 23:25:19 +01:00
subfield_extra1?: string
allowNewValue?: boolean
showpicprofile_ifnotset?: boolean
2022-09-12 18:36:54 +02:00
extrafield?: string
2021-08-31 18:09:59 +02:00
}
export interface ITableRec {
label: string
value: string
columns: IColGridTable[]
colkey: string
collabel: string
colicon?: string
onlyAdmin?: boolean
noshow: boolean
remote?: boolean
2021-08-31 18:09:59 +02:00
}
2021-12-11 00:25:35 +01:00
export interface ISearchList {
label: string
table: string
key: string
2021-12-11 22:12:44 +01:00
arrvalue: any[]
2021-12-11 00:25:35 +01:00
value: any
type: number
filter: any
2022-01-23 23:25:19 +01:00
param1?: any
useinput: boolean
notinsearch?: boolean
2021-12-31 01:44:16 +01:00
addall?: boolean
showcount?: boolean
tablesel?: string
icon?: string
2022-02-14 11:30:53 +01:00
filteradv?: boolean
filter_extra?: object
2021-12-11 00:25:35 +01:00
}
2021-08-31 18:09:59 +02:00
export interface IFilter {
label: string
value: string
hide?: boolean
default?: boolean
}
export interface IDataPass {
id: string
table: string
2021-09-16 21:08:02 +02:00
fieldsvalue: any
2021-08-31 18:09:59 +02:00
}
export interface IMsgGlobParam {
typemsg: number,
title?: string,
content?: string,
openUrl?: string,
openUrl2?: string,
tag?: string,
actions?: any[],
cmd?: number
usernameOrig?: string
usernameDest?: string
groupnameDest?: string
text?: string
typesend: number
sendreally?: boolean
}
2021-09-02 21:29:24 +02:00
export interface IDataToSet {
id?: string | null
username?: string
table?: string
fieldsvalue?: any
unset?: any,
notifBot?: any | null
tipomsg?: number
invitante_username?: string
ind_order?: any
num_tess?: number
data?: any
myfunc?: any
inviaemail?: any
}
2021-08-31 18:09:59 +02:00
export interface INewsState {
lastnewstosent: INewsToSent | null
nextnewstosent: INewsToSent | null
totemail: number
totsubscribed: number
totunsubscribed: number
totsentlastid: number
}
export const DefaultNewsState: INewsState = {
lastnewstosent: null,
nextnewstosent: null,
totemail: 0,
totsubscribed: 0,
totunsubscribed: 0,
totsentlastid: 0,
}
export interface IPagination {
sortBy: string,
descending: boolean
rowsNumber: number
page: number,
rowsPerPage: number // specifying this determines pagination is server-side
}
export interface ISkill {
2021-10-08 00:38:22 +02:00
_id: number
descr: string
2021-10-08 00:38:22 +02:00
idSector: number[]
icon?: string
img?: string
}
export interface IGood {
_id: number
descr: string
idSectorGood: number[]
icon?: string
img?: string
}
/*
2021-12-31 01:44:16 +01:00
export interface ISubSkill {
_id: number
descr: string
idSkill: number
icon?: string
img?: string
}
*/
2021-10-08 00:38:22 +02:00
export interface IStatusSkill {
_id: number
descr: string
color: string
icon: string
2021-10-08 00:38:22 +02:00
theme: string
}
export interface ISector {
2021-10-08 00:38:22 +02:00
_id: number
descr: string
2021-10-08 00:38:22 +02:00
idSector?: number
icon?: string
img?: string
2021-10-08 00:38:22 +02:00
color: string
theme: string
}
export interface ISectorGood {
_id: number
descr: string
idSectorGood?: number
icon?: string
img?: string
color: string
theme: string
}
2022-02-04 23:48:53 +01:00
export interface ICatGrp {
_id: number
descr: string
idCatGrp?: number
icon?: string
img?: string
color: string
theme: string
}
export interface ILevel {
2021-10-08 00:38:22 +02:00
_id: number
descr: string
2021-10-08 00:38:22 +02:00
color: string
theme: string
years_of_exp: number
}
2021-10-08 00:38:22 +02:00
export interface IAdType {
_id: number
descr: string
}
2021-10-28 00:37:48 +02:00
export interface ICity {
_id: number
istat: string
comune: string
prov: string
}
export interface IProvince {
_id: number
prov: string
reg: string
descr: string
link_grp: string
}
export interface IMySkill extends IMyMain {
2021-10-08 00:38:22 +02:00
_id: number
idSector: number
2021-10-08 00:38:22 +02:00
idSkill: number
// idSubSkill: number[]
idStatusSkill: number[]
idContribType: string[]
idCity: number[]
photos: IGallery[]
NumLevel: number
adType: number
note: string
// **ADDFIELD_MYSKILL
website: string
descr: string
date_created?: Date,
date_updated?: Date,
username?: string
}
export interface IMyMain {
pub_to_share?: number
}
export interface IMyGoods extends IMyMain {
_id: number
idSector: number
idSkill: number
idShipping: number[]
2021-10-08 00:38:22 +02:00
idStatusSkill: number[]
2021-12-17 18:30:18 +01:00
idContribType: string[]
otherfilters: number[]
2021-10-28 00:37:48 +02:00
idCity: number[]
photos: IGallery[]
2021-10-08 00:38:22 +02:00
NumLevel: number
adType: number
2021-10-08 00:38:22 +02:00
note: string
// **ADDFIELD_MYSKILL
website: string
descr: string
2021-10-08 00:38:22 +02:00
date_created?: Date,
date_updated?: Date,
}
export interface IMyBacheca extends IMyMain {
_id: number
idSector: number
idSkill: number
// idSubSkill: number[]
idStatusSkill: number[]
idContribType: string[]
dateTimeStart: Date
dateTimeEnd: Date
idCity: number[]
photos: IGallery[]
NumLevel: number
adType: number
note: string
// **ADDFIELD_MYBACHECAS
website: string
descr: string
date_created?: Date,
date_updated?: Date,
}
2022-05-05 23:56:23 +02:00
export interface IAccomodation {
type: number // Letto matrimoniale / letto singolo / divano-letto / almaca / a terra sul tappeto (per sacco a pelo)
location: number // in camera privata / in camera condivisa / in soggiorno / in camper / in tenda / in giardino / all'aperto
num: number
}
export interface IMyHosp extends IMyMain {
_id: number
2022-05-08 13:19:35 +02:00
visibile: boolean
2022-05-05 23:56:23 +02:00
typeHosp: number
numMaxPeopleHosp: number
accomodation: IAccomodation[]
photos: IGallery[]
2022-05-05 23:56:23 +02:00
preferences: number[]
idContribType: string[]
idCity: number[]
2022-05-05 23:56:23 +02:00
descr: string
note: string
website: string
date_created?: Date,
date_updated?: Date,
}
2022-08-17 00:36:30 +02:00
export interface ICircuitList {
_id: string,
2022-08-17 00:36:30 +02:00
inscription_date?: Date
}
export interface IMyCircuit {
_id: string
circuitname: string
date: Date
}
2022-08-26 03:32:50 +02:00
2022-09-03 13:06:35 +02:00
export interface ISendCoin {
circuitname: string
qty: number
dest: string
causal: string
symbol: string
}
export interface ICircuit {
2022-09-14 11:31:48 +02:00
_id: string
2022-08-17 00:36:30 +02:00
groupnameId: string
name: string
2022-08-30 17:00:32 +02:00
path: string
subname: string
2022-08-17 00:36:30 +02:00
longdescr: string
systemUserDescr: string
systemUserId: string
totCircolante: number
totTransato: number
// nome_valuta: string
symbol: string
2022-09-12 18:36:54 +02:00
color: string
abbrev: string
compara_valuta?: number
compara_euro?: number
valuta_per_euro?: number
fido_scoperto_default?: number
qta_max_default?: number
data_costituz?: Date
deperimento: boolean
transactionsEnabled: boolean
2022-10-21 21:25:54 +02:00
status: number
freq_deper?: string
minuto_deper?: string
ora_deper?: string
giorno_deper?: string
mese_deper?: string
ultimo_deper?: Date
durata_deper?: number
photos?: IImgGallery[]
2022-08-26 03:32:50 +02:00
date_created?: Date
date_updated?: Date
admins?: IFriends[]
createdBy?: string
2022-10-21 21:25:54 +02:00
regulation?: string
numMembers?: number
// --- Mem:
movements: IMovement[]
}
export interface IMovement {
2022-09-14 11:31:48 +02:00
_id: string
transactionDate: Date
accountFromId: string
accountToId: string
amount: number
causal: string
residual: number
expiringDate: Date
}
export interface IMovVisu {
transactionDate: Date
userfrom: IUserFields
userto: IUserFields
2022-09-12 18:36:54 +02:00
circuitfrom: ICircuit
circuitto: ICircuit
amount: number
causal: string
residual: number
expiringDate: Date
}
2022-08-26 03:32:50 +02:00
export interface IAccount {
username: string
2022-09-14 11:31:48 +02:00
circuitId: string
circuit: ICircuit[]
2022-08-26 03:32:50 +02:00
name: string
2022-09-12 18:36:54 +02:00
deperibile: boolean
fidoConcesso: number
qta_maxConcessa: number
2022-08-26 03:32:50 +02:00
importo_iniziale?: number
2022-09-12 18:36:54 +02:00
saldo: number
2022-10-21 21:25:54 +02:00
totTransato: number
regulation_ok: boolean
2022-08-26 03:32:50 +02:00
}
2022-11-23 10:27:36 +01:00
export interface IAnim {
name: string,
clduration: string,
cldelay: string,
timingtype: string,
2022-11-23 10:27:36 +01:00
}