Files
myprojplanet_vite/src/model/GlobalStore.ts

1693 lines
31 KiB
TypeScript
Raw Normal View History

2025-03-01 14:14:43 +01:00
import type { IAction } from '@src/model/Projects'
import type { IFriends, IGroupShort, IMyGroup, IPaymentType } from '@src/model/UserStore'
import type {
IDepartment, IQueryAI, IProducer, IShareWithUs, IStorehouse, IProvider, IScontistica, ICategory, IGasordine, ICatProd, ISubCatProd, ICatAI,
2024-10-31 23:23:06 +01:00
IProduct
2025-03-01 14:14:43 +01:00
} from '@src/model/Products';
import {
IProductInfo
2021-08-31 18:09:59 +02:00
} from '@src/model/Products'
2025-03-01 14:14:43 +01:00
import type { 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
activeusers?: 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[]
listlinksreg?: IUserFields[]
receiveRislist?: IUserFields[]
receiveRislistgroup?: IMyGroup[]
2023-01-08 19:20:25 +01:00
strettelist?: IUserFields[]
2023-09-28 17:12:59 +02:00
checkuser?: any // ICheckUser
numreg_untilday?: number
reg_daily?: string
reg_weekly?: string
num_transaz_tot?: number
tot_RIS_transati?: number
num_circuiti?: number
num_circuiti_attivi?: number
num_annunci?: number
last_transactions?: IMovement[]
}
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 IDestNewsletter {
_id?: string
descr?: string
tipodest_id?: number
}
2021-08-31 18:09:59 +02:00
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
}
export interface IListaCron {
active?: boolean
descr?: string
nomeFunzioneDbOp?: string
startTime?: string
everyXMinutes?: number
lastJobEnd?: Date
log?: string
}
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
2024-10-31 23:23:06 +01:00
idPage?: string
idElemParent?: 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
parambool4?: boolean
number?: number
num2?: 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
2024-10-23 01:41:24 +02:00
heightcarousel?: string
2022-11-12 11:52:20 +01:00
widthimg?: string
widthcard?: string
heightcard?: 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
vers_img?: number
2022-11-13 22:39:25 +01:00
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[]
catalogo?: IOptCatalogo
elemsText?: IElemText[]
2025-03-01 14:14:43 +01:00
titleBanner?: string
classBanner?: string
color?: string
rows?: any[]
columns?: any[]
elems?: any[]
features?: IFeatSection[]
}
export interface IFeatSection {
name?: string
icon?: string
description?: string
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
isTemplate?: boolean
2021-08-31 18:09:59 +02:00
color?: string
elemsText?: IElemText[]
2021-08-31 18:09:59 +02:00
onlyif_logged?: boolean
only_residenti?: boolean
only_admin?: boolean
2021-08-31 18:09:59 +02:00
only_consiglio?: boolean
only_collab?: boolean
2021-08-31 18:09:59 +02:00
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
2025-03-01 14:14:43 +01:00
sottoMenu?: string[]
hideHeader?: 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
showiscrittiMenu: boolean
showRegButton: boolean
enableReg: boolean
showNL: boolean
sendNewsletter?: boolean
showMsgs: boolean
showNotif: boolean
showCoins: boolean
showRIS?: boolean
showMenuCoins?: boolean
showNameSurname: boolean
showCompetenze: boolean
showConnected: boolean
bookingEvents: boolean
enableEcommerce: boolean
2024-01-30 14:00:48 +01:00
enableAI: boolean
enableGroups: boolean
enableCircuits: boolean
enableProj?: boolean
enableTodos?: boolean
enableRegByBot: boolean
enableRegMultiChoice?: boolean
enableTokenExpired?: boolean
enableDebugOn: boolean
enabledRegNeedTelegram?: boolean
enableGoods?: boolean
enableServices?: boolean
enableActivities?: boolean
enableHosps: boolean
enableEvents: boolean
showViewGroups: boolean
showViewEventi: boolean
showViewCircuits: boolean
showViewUsers: boolean
showViewBooking: boolean
showViewProfile: boolean
2023-12-30 23:58:41 +01:00
showViewCart: boolean
showViewOrders: boolean
enablePwa: boolean
lang: number
2023-01-06 15:51:58 +01:00
videoPromo: string
PDFPromo: string
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
}
2023-12-15 23:36:48 +01:00
export interface IECommSettings {
enablePreOrders: boolean
NoteExtraOnCart: string
2023-12-15 23:36:48 +01:00
}
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_ip?: string
host_test?: string
host_test_ip?: string
host_api?: string
host_api_ip?: string
host_testapi?: string
host_testapi_ip?: string
cf_token?: string
cf_zoneId?: string
enable_servermail?: boolean
servermail?: string
servermailip?: string
dkim?: 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
2023-12-17 16:20:50 +01:00
load_process_telegram_test?: string
load_process_telegram?: 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
2023-12-15 23:36:48 +01:00
ecomm?: IECommSettings
idMyGroup?: string
2021-08-31 18:09:59 +02:00
}
export interface INewsToSent {
_id: string
idapp?: string
label?: string
2025-03-01 14:14:43 +01:00
activate?: boolean
2021-08-31 18:09:59 +02:00
templemail_str?: string
destnewsletter_str?: string
2021-08-31 18:09:59 +02:00
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'
2024-10-31 23:23:06 +01:00
export interface IFilterCatalogo {
author: string
sort_field: string
sort_dir: number
2024-10-31 23:23:06 +01:00
publisher: string
type: string
ageGroup: string
}
2021-08-31 18:09:59 +02:00
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[]
listaccounts: IAccount[]
2022-09-03 13:06:35 +02:00
}
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
updateMenu: boolean
showHeader?: boolean
inStampa?: boolean
2021-08-31 18:09:59 +02:00
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[]
2025-03-01 14:14:43 +01:00
menulinks: object,
2021-08-31 18:09:59 +02:00
listatodo: IMenuList[]
arrConfig: IConfig[]
lastaction: IAction
serv_settings: ISettings[],
settings: ISettings[],
disciplines: IDiscipline[],
paymenttypes: IPaymentType[],
newstosent: INewsToSent[],
gallery: IGallery[],
mypage: IMyPage[],
myelems: IMyElem[],
lista_cron?: IListaCron[],
myschedas: ISchedaSingola[],
2021-08-31 18:09:59 +02:00
templemail: ITemplEmail[],
destnewsletter?: IDestNewsletter[],
2021-08-31 18:09:59 +02:00
opzemail: ISettings[],
mailinglist: IMailinglist[],
calzoom: ICalZoom[],
producers: IProducer[],
providers: IProvider[],
2023-12-27 02:58:23 +01:00
catprods: ICatProd[],
2024-01-12 13:03:07 +01:00
subcatprods: ISubCatProd[],
2023-12-21 02:23:58 +01:00
gasordines: IGasordine[],
2023-12-16 00:51:10 +01:00
scontisticas: IScontistica[],
2021-08-31 18:09:59 +02:00
storehouses: IStorehouse[],
departments: IDepartment[],
2023-11-28 14:12:45 +01:00
categories: ICategory[],
2021-08-31 18:09:59 +02:00
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[],
2024-01-30 14:00:48 +01:00
catAI: ICatAI[],
queryAIList: IQueryAI[],
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,
deferredPrompt: any,
homescreen: 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
onlyCommerciale?: boolean
onlyCollaboratore?: boolean
onlyGrafico?: boolean
2021-08-31 18:09:59 +02:00
extraclass?: string
meta?: any
idelem?: string
urlroute?: string
img?: string
2025-03-01 14:14:43 +01:00
sottoMenu?: string[]
2021-08-31 18:09:59 +02:00
// ------------------------
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 {
2023-09-28 17:12:59 +02:00
titlemain: any
2021-08-31 18:09:59 +02:00
body: ITimeLineEntry[]
}
export interface IImgGallery {
_id?: string
imagefile: string
vers_img?: number
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
vers_img?: number
2022-11-13 22:39:25 +01:00
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
link?: string
2022-11-13 22:39:25 +01:00
}
export interface ISize {
width?: string
height?: string
gap?: string
2024-11-28 16:04:48 +01:00
fit?: string
}
2024-11-19 19:19:14 +01:00
export interface IFont {
name?: string
size?: string
2024-11-28 16:04:48 +01:00
line_height?: number
posiz_text?: number
perc_text?: string
height?: string
2024-11-19 19:19:14 +01:00
}
export interface IBorder {
top?: string
bottom?: string
left?: string
right?: string
}
2024-11-19 19:19:14 +01:00
export interface IImg {
imagefile?: string
fit?: string
}
2024-11-28 16:04:48 +01:00
export interface INovita {
show?: boolean
months?: number
}
export interface IBestseller {
show?: boolean
quantiFattRaggiunti?: number
2024-11-28 16:04:48 +01:00
}
export interface IEtichette {
novita?: INovita
bestseller?: IBestseller
}
2024-11-19 19:19:14 +01:00
export interface IBarCode {
show?: boolean
format?: string
size?: ISize
font?: IFont
widthlines?: number
show_at_right?: boolean
2024-11-19 19:19:14 +01:00
}
2024-11-28 16:04:48 +01:00
export interface IPagina {
dimensioni?: IDimensioni
testo_title?: IText
2024-11-28 16:04:48 +01:00
testo_up?: IText
testo_down?: IText
}
export interface IDimensioni {
size?: ISize
margini?: IBorder
padding?: IBorder
2024-11-19 19:19:14 +01:00
imgsfondo?: IImg
text_html?: IText
}
export interface IAreaDiStampa {
margini?: IBorder
2025-03-01 14:14:43 +01:00
unit?: string
format?: number[]
format_printable: number[]
2025-03-01 14:14:43 +01:00
orientation?: string
compress?: boolean
scalex?: number
scaley?: number
scale_printablex?: number
scale_printabley?: number
2025-03-01 14:14:43 +01:00
scalecanvas?: number
}
export interface IElementiPagina {
isTemplate?: boolean,
linkIdTemplate?: string,
name?: string,
pagina: IDimensioni
2024-11-19 19:19:14 +01:00
}
export interface IText {
contenuto?: string
maxlength?: number
font?: IFont
size?: ISize
}
export interface IElementiScheda {
2024-11-28 16:04:48 +01:00
pagina: IPagina
riga: IDimensioni
2025-03-01 14:14:43 +01:00
scheda_prodotto: IDimensioni
immagine_prodotto: IDimensioni
}
2024-10-31 23:23:06 +01:00
export interface IMyScheda {
_id?: string,
idapp?: string,
isTemplate?: boolean,
isPagIntro?: boolean,
2024-11-28 16:04:48 +01:00
linkIdTemplate?: string,
name?: string,
2024-10-31 23:23:06 +01:00
numschede_perRiga?: number
numschede_perCol?: number
scalexscheda?: number
scaleyscheda?: number
show_separatore: boolean
testo_right_attaccato?: IText
2024-11-19 19:19:14 +01:00
testo_right?: IText
testo_bottom?: IText
barcode?: IBarCode,
2024-11-28 16:04:48 +01:00
etichette?: IEtichette,
dimensioni: IElementiScheda
2024-10-31 23:23:06 +01:00
productTypes?: number[]
excludeproductTypes?: number[]
2025-04-24 19:31:34 +02:00
idTipologie?: number[]
idTipoFormato?: number[]
2024-10-31 23:23:06 +01:00
editore?: string[]
argomenti?: string[]
idCollane?: string[]
2024-10-31 23:23:06 +01:00
author?: string
sort_field?: string
sort_dir?: number
2024-10-31 23:23:06 +01:00
arrProdottiSpeciali?: string[]
}
export interface IRecFields {
editOn?: boolean
label?: string
title?: string
table?: string
id?: string
rec?: any
mykey?: string
2025-04-11 18:49:42 +02:00
mysubkey?: string
jointable?: string
debounce?: string
type?: number
dense?: boolean
maxlength?: number
2025-04-11 18:49:42 +02:00
showall?: boolean
}
2024-10-31 23:23:06 +01:00
export interface ISchedaSingola {
_id?: string
scheda?: IMyScheda,
order?: number,
2024-11-28 16:04:48 +01:00
numPagineMax?: number,
2025-03-01 14:14:43 +01:00
// In Memoria
idPageOrig?: string
2024-11-19 19:19:14 +01:00
arrProdToShow?: IProduct[][][]
2024-10-31 23:23:06 +01:00
}
2025-04-24 19:31:34 +02:00
export interface IOptRigenera {
visibilitaDisp?: string
rig_mod?: string
2025-04-24 19:31:34 +02:00
stato?: string
}
export interface IOptCatalogo {
//++AddCATALOGO_FIELDS
idCatalogSel?: string
2024-11-28 16:04:48 +01:00
productTypes?: number[]
excludeproductTypes?: number[]
formato?: string[]
2025-04-24 19:31:34 +02:00
idTipologie?: number[]
idTipoFormato?: number[]
2024-11-28 16:04:48 +01:00
Categoria?: string[]
editore?: string[]
argomenti?: string[]
idCollane?: string[]
sort_field?: string
sort_dir?: number
2024-11-28 16:04:48 +01:00
pdf?: boolean
2024-11-19 19:19:14 +01:00
pdf_filename?: string
printable?: boolean
indebug?: boolean
2025-02-11 18:58:06 +01:00
maxnumlibri?: number
showListaArgomenti?: boolean
showListaCollane?: boolean
showOnlyCatalogoPDF?: boolean
2024-12-02 19:38:01 +01:00
generazionePDFInCorso?: boolean
first_page?: IDimensioni
last_page?: IDimensioni
areadistampa?: IAreaDiStampa
2024-10-31 23:23:06 +01:00
print_isTemplate?: boolean
print_linkIdTemplate?: string
2024-11-19 19:19:14 +01:00
dimensioni_def?: IElementiPagina
2024-10-31 23:23:06 +01:00
arrSchede?: ISchedaSingola[]
aggiorna?: number
selectedVersionStampabile?: number
}
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 {
2023-09-28 17:12:59 +02:00
title: any // IAllLang
2021-08-31 18:09:59 +02:00
date?: string
2023-09-28 17:12:59 +02:00
subtitle?: any //IAllLang
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 {
2023-09-28 17:12:59 +02:00
withwhom_title: 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
noaut?: boolean
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
name2?: string
2021-08-31 18:09:59 +02:00
subfield?: string
subfield2?: string
2021-08-31 18:09:59 +02:00
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
field2?: string
2021-08-31 18:09:59 +02:00
sortable?: boolean
visulabel?: boolean
2021-08-31 18:09:59 +02:00
disable?: boolean
titlepopupedit?: string
visible?: boolean
icon?: string
action?: any
askaction?: string
color?: string
2021-08-31 18:09:59 +02:00
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
dont_clone?: 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
showonlyif_dipersona?: boolean
2022-01-23 23:25:19 +01:00
field_extra1?: string
field_toduplicate_nospace?: string
showLinkResult?: 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
tipoconto?: number
path?: string
onlyforAdmin?: boolean
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
addnone?: boolean
keycookie?: string
2021-12-31 01:44:16 +01:00
showcount?: boolean
tablesel?: string
collabel?: string | object
icon?: string
2022-02-14 11:30:53 +01:00
filteradv?: boolean
filter_extra?: object
visible: boolean
dense?: boolean
2021-12-11 00:25:35 +01:00
}
export interface IOptGrid {
rowclass?: boolean
widthcard?: string
heightcard?: string
widthimg?: string
heightimg?: string
}
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
textaddTelegram?: string
textcontent_Telegram?: string
2023-08-27 23:56:18 +02:00
linkaddTelegram?: string
tablerec?: string
idrec?: string
idapp?: string
}
2021-09-02 21:29:24 +02:00
export interface IDataToSet {
id?: string | null
username?: string
table?: string
fieldsvalue?: any
unset?: any,
2023-09-28 17:12:59 +02:00
notifBot?: any
2021-09-02 21:29:24 +02:00
tipomsg?: number
invitante_username?: string
ind_order?: any
num_tess?: number
data?: any
myfunc?: any
inviaemail?: any
aggiornainmem?: boolean
2021-09-02 21:29:24 +02:00
}
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
card: string
link_grp: string
idCircuitToAssign?: string
link_telegram: string
}
export interface IMySkill extends IMyMain {
2023-04-04 15:27:03 +02:00
_id: string
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
groupname: 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 {
2023-04-04 15:27:03 +02:00
_id: string
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
groupname: 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 {
2023-04-04 15:27:03 +02:00
_id: string
idSector: number
idSkill: number
// idSubSkill: number[]
idStatusSkill: number[]
idContribType: string[]
dateTimeStart: Date
dateTimeEnd: Date
idCity: number[]
photos: IGallery[]
NumLevel: number
adType: number
note: string
organisedBy: string,
address: string,
min_partecip: number,
max_partecip: number,
contribstr: string,
groupname: string,
mygrp?: IMyGroup
// **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 {
2023-04-04 15:27:03 +02:00
_id: string
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,
groupname: string,
//**ADDFIELD_MYHOSPS
}
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
2023-01-03 16:51:45 +01:00
groupdest: string
grouporig: string
2023-02-01 16:36:17 +01:00
contoComOrig?: string
contoComDest?: string
2022-09-03 13:06:35 +02:00
causal: string
causalDest: string
2022-09-03 13:06:35 +02:00
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
idCity: string[]
strProv: string
card: string
2023-03-22 18:10:37 +01:00
link_group: 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
2023-01-03 16:51:45 +01:00
fido_scoperto_default_grp?: number
qta_max_default_grp?: number
fido_scoperto_default_contocom?: number
qta_max_default_contocom?: number
data_costituz?: Date
deperimento: boolean
showAlways: boolean
ignoreLimits: boolean
askManagerToEnter?: boolean
sendEmailAfterAskingToEnter?: boolean
circuitoIndipendente?: boolean
creditodiPartenza?: number
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
2025-03-01 14:14:43 +01:00
note?: string
2022-10-21 21:25:54 +02:00
numMembers?: number
2023-01-03 16:51:45 +01:00
req_users?: IFriends[]
refused_users?: IFriends[]
req_groups?: IGroupShort[]
refused_groups?: IGroupShort[]
// --- Mem:
movements: IMovement[]
account?: IAccount | null
}
export interface IMovUserProfile {
img: string
}
export interface IMovUserQuery {
verified_by_aportador: boolean
username: string
profile: IMovUserProfile
}
export interface IMovGroupQuery {
verified_by_aportador: boolean
groupname: string
title: string
photos: string
}
export interface IMovContoComQuery {
path: string
name: string
}
export interface IMovCircuitQuery {
name: string
symbol: string
}
export interface IMovQuery {
tipocontofrom: number
tipocontoto: number
userfrom: IMovUserQuery
userto: IMovUserQuery
groupfrom: IMovGroupQuery
groupto: IMovGroupQuery
contocomfrom: IMovContoComQuery
contocomto: IMovContoComQuery
circuitfrom: IMovCircuitQuery
transactionDate: Date
amount: number
causal: string
notifId: string
}
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
groupfrom: IMyGroup
groupto: IMyGroup
userfrom: IUserFields
userto: IUserFields
2022-09-12 18:36:54 +02:00
circuitfrom: ICircuit
circuitto: ICircuit
amount: number
causal: string
residual: number
expiringDate: Date
}
export interface ITransaction {
_id: string
transacDate: Date
mitt_username: string
mitt_group: string
dest_username: string
dest_group: string
circuito: string
amount: number
causale: string
}
2022-08-26 03:32:50 +02:00
export interface IAccount {
_id: string
2022-08-26 03:32:50 +02:00
username: string
contocom: string
groupname: 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
saldo_pend: number
2022-10-21 21:25:54 +02:00
totTransato: number
totTransato_pend: number
2022-10-21 21:25:54 +02:00
regulation_ok: boolean
date_created?: Date
date_updated?: Date
2024-01-09 08:34:43 +01:00
numtransactions: number
// Memory
notifspending: any[]
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
}
2024-02-06 20:13:06 +01:00
export interface ICoordLatLng {
lat: any
lng: any
}
2024-02-06 20:13:06 +01:00
export interface ICoordinates {
lat: any
long: any
}
export interface ICoordinatesGPS {
coordinates: [number, number]; // [lng, lat]
}
export interface ITipoDiAttivita {
_id: string
label: string
note: string
}
export interface ICoordGPS {
address: string
type: string
coordinates: [number, number]
}
export interface IAttivita {
_id: string
// INFORMAZIONI:
tipodiAttivita: ITipoDiAttivita
descr: string
note: string
idSector: number[]
idCity: number[]
coordinate_gps: ICoordGPS
// FOTO
logo: IGallery
photos: IGallery[]
// Contatto (Opzionale)
email: string
telegram_username: string
cell_phone: string
whatsapp: string
website: string
//++Todo: Aggiungere ORARI
// Altri CAMPI:
date_updated?: Date
createdBy?: string // Username del creatore (proponente)
2025-03-01 14:14:43 +01:00
}
export interface IOptQueryGM {
idapp?: string
2025-03-01 14:14:43 +01:00
nameTable: string
campispeciali?: boolean
query?: string
numrec?: number
where?: string
fieldGM?: string
2025-04-11 18:49:42 +02:00
outhtml?: boolean
2025-03-01 14:14:43 +01:00
showQtaDisponibile?: boolean
cmd?: number
2025-04-11 18:49:42 +02:00
insertMode?: boolean
data?: any
updatelocaldb?: boolean
2025-03-01 14:14:43 +01:00
}
2025-04-11 18:49:42 +02:00