Add email as a recognized, feature-flagged notification service type. The flag defaults to false and acts as a dispatch gate alongside the existing discord, gotify, and webhook notification service flags. - Add FlagEmailServiceEnabled constant to the notifications feature flag registry with the canonical key convention - Register the flag in the handler defaults so it appears in the feature flags API response with a false default - Recognise 'email' as a supported notification provider type so that providers of this type pass the type validation gate - Gate email dispatch on the new flag in isDispatchEnabled() following the same pattern as gotify and webhook service flags - Expand the E2E test fixtures FeatureFlags interface to include the new flag key so typed fixture objects remain accurate No email message dispatch is wired in this commit; the flag registration alone makes the email provider type valid and toggleable.
11 lines
550 B
Go
11 lines
550 B
Go
package notifications
|
|
|
|
const (
|
|
FlagNotifyEngineEnabled = "feature.notifications.engine.notify_v1.enabled"
|
|
FlagDiscordServiceEnabled = "feature.notifications.service.discord.enabled"
|
|
FlagEmailServiceEnabled = "feature.notifications.service.email.enabled"
|
|
FlagGotifyServiceEnabled = "feature.notifications.service.gotify.enabled"
|
|
FlagWebhookServiceEnabled = "feature.notifications.service.webhook.enabled"
|
|
FlagSecurityProviderEventsEnabled = "feature.notifications.security_provider_events.enabled"
|
|
)
|