- Import emails from a list to a DB

- Create Template Emails
- Options Email
This commit is contained in:
Paolo Arena
2019-12-04 02:04:54 +01:00
parent 895df43074
commit 8268a09897
20 changed files with 619 additions and 165 deletions

View File

@@ -26,12 +26,22 @@ export interface ICfgData {
userId?: string
}
export interface ITemplEmail {
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
}
export interface ITeachUname {
@@ -116,9 +126,12 @@ export interface IGlobalState {
listatodo: IMenuList[]
arrConfig: IConfig[]
lastaction: IAction
serv_settings: ISettings[],
settings: ISettings[],
disciplines: IDiscipline[],
newstosent: INewsToSent[],
templemail: ITemplEmail[],
opzemail: ISettings[],
mailinglist: IMailinglist[],
autoplaydisc: number
}
@@ -308,6 +321,7 @@ export interface ITableRec {
colkey: string
collabel: string
colicon?: string
onlyAdmin?: boolean
}
export interface IDataPass {
@@ -315,3 +329,21 @@ export interface IDataPass {
table: string
fieldsvalue: object
}
export interface INewsState {
lastnewstosent: INewsToSent
nextnewstosent: INewsToSent
totemail: number
totsubscribed: number
totunsubscribed: number
totsentlastid: number
}
export const DefaultNewsState: INewsState = {
lastnewstosent: null,
nextnewstosent: null,
totemail: 0,
totsubscribed: 0,
totunsubscribed: 0,
totsentlastid: 0,
}