budibase/packages/worker/src/constants/index.js

66 lines
1.2 KiB
JavaScript
Raw Normal View History

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
const TemplateTypes = {
2021-04-21 19:15:57 +02:00
EMAIL: "email",
}
const EmailTemplatePurpose = {
HEADER: "header",
FOOTER: "footer",
STYLES: "styles",
2021-04-21 19:15:57 +02:00
PASSWORD_RECOVERY: "password_recovery",
INVITATION: "invitation",
CUSTOM: "custom",
}
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,
},
{
name: "New User Invitation",
value: EmailTemplatePurpose.INVITATION,
},
{
name: "Custom",
value: EmailTemplatePurpose.CUSTOM,
2021-04-22 17:06:29 +02:00
},
],
}
2021-04-21 19:15:57 +02:00
// all purpose combined
exports.TemplatePurpose = {
...EmailTemplatePurpose,
}
exports.TemplateTypes = TemplateTypes
exports.EmailTemplatePurpose = EmailTemplatePurpose
exports.TemplatePurposePretty = TemplatePurposePretty