2021-03-29 18:31:41 +02:00
|
|
|
exports.UserStatus = {
|
|
|
|
ACTIVE: "active",
|
|
|
|
INACTIVE: "inactive",
|
|
|
|
}
|
2021-04-19 12:34:07 +02:00
|
|
|
|
|
|
|
exports.Groups = {
|
|
|
|
ALL_USERS: "all_users",
|
|
|
|
}
|
2021-04-20 19:14:36 +02:00
|
|
|
|
|
|
|
exports.Configs = {
|
|
|
|
SETTINGS: "settings",
|
|
|
|
ACCOUNT: "account",
|
|
|
|
SMTP: "smtp",
|
2021-04-21 22:08:04 +02:00
|
|
|
GOOGLE: "google",
|
2021-04-20 19:14:36 +02:00
|
|
|
}
|
2021-04-21 19:43:20 +02:00
|
|
|
|
2021-04-22 16:26:32 +02:00
|
|
|
const TemplateTypes = {
|
2021-04-21 19:15:57 +02:00
|
|
|
EMAIL: "email",
|
|
|
|
}
|
|
|
|
|
2021-04-22 16:26:32 +02:00
|
|
|
const EmailTemplatePurpose = {
|
|
|
|
HEADER: "header",
|
|
|
|
FOOTER: "footer",
|
|
|
|
STYLES: "styles",
|
2021-04-21 19:15:57 +02:00
|
|
|
PASSWORD_RECOVERY: "password_recovery",
|
|
|
|
INVITATION: "invitation",
|
|
|
|
CUSTOM: "custom",
|
|
|
|
}
|
|
|
|
|
2021-04-22 16:26:32 +02:00
|
|
|
const TemplatePurposePretty = {
|
|
|
|
[TemplateTypes.EMAIL]: [
|
|
|
|
{
|
|
|
|
name: "Styling",
|
|
|
|
value: EmailTemplatePurpose.STYLES,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Header",
|
|
|
|
value: EmailTemplatePurpose.HEADER,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Footer",
|
|
|
|
value: EmailTemplatePurpose.FOOTER,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Password Recovery",
|
2021-04-22 17:06:29 +02:00
|
|
|
value: EmailTemplatePurpose.PASSWORD_RECOVERY,
|
2021-04-22 16:26:32 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "New User Invitation",
|
|
|
|
value: EmailTemplatePurpose.INVITATION,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Custom",
|
|
|
|
value: EmailTemplatePurpose.CUSTOM,
|
2021-04-22 17:06:29 +02:00
|
|
|
},
|
|
|
|
],
|
2021-04-22 16:26:32 +02:00
|
|
|
}
|
2021-04-21 19:15:57 +02:00
|
|
|
|
2021-04-22 16:26:32 +02:00
|
|
|
// all purpose combined
|
|
|
|
exports.TemplatePurpose = {
|
|
|
|
...EmailTemplatePurpose,
|
|
|
|
}
|
|
|
|
exports.TemplateTypes = TemplateTypes
|
|
|
|
exports.EmailTemplatePurpose = EmailTemplatePurpose
|
|
|
|
exports.TemplatePurposePretty = TemplatePurposePretty
|