zulip/web/src/realm_user_settings_default...

57 lines
2.3 KiB
TypeScript

export type RealmDefaultSettings = {
color_scheme: number;
default_language: string;
web_home_view: string;
desktop_icon_count_display: number;
demote_inactive_streams: number;
dense_mode: boolean;
display_emoji_reaction_users: boolean;
email_notifications_batching_period_seconds: number;
emojiset: string;
enable_desktop_notifications: boolean;
enable_digest_emails: boolean;
enable_drafts_synchronization: boolean;
enable_login_emails: boolean;
enable_marketing_emails: boolean;
enable_offline_push_notifications: boolean;
enable_offline_email_notifications: boolean;
enable_online_push_notifications: boolean;
enable_sounds: boolean;
enable_stream_audible_notifications: boolean;
enable_stream_desktop_notifications: boolean;
enable_stream_email_notifications: boolean;
enable_stream_push_notifications: boolean;
enable_followed_topic_desktop_notifications: boolean;
enable_followed_topic_audible_notifications: boolean;
enable_followed_topic_push_notifications: boolean;
enable_followed_topic_email_notifications: boolean;
enable_followed_topic_wildcard_mentions_notify: boolean;
enter_sends: boolean;
web_escape_navigates_to_home_view: boolean;
fluid_layout_width: boolean;
high_contrast_mode: boolean;
message_content_in_email_notifications: boolean;
notification_sound: string;
pm_content_in_desktop_notifications: boolean;
presence_enabled: boolean;
send_private_typing_notifications: boolean;
send_stream_typing_notifications: boolean;
realm_name_in_email_notifications_policy: number;
starred_message_counts: boolean;
translate_emoticons: boolean;
twenty_four_hour_time: boolean;
user_list_style: boolean;
web_stream_unreads_count_display_policy: number;
web_mark_read_on_scroll_policy: number;
wildcard_mentions_notify: boolean;
automatically_follow_topics_policy: number;
automatically_unmute_topics_in_muted_streams_policy: number;
automatically_follow_topics_where_mentioned: boolean;
};
export let realm_user_settings_defaults: RealmDefaultSettings;
export function initialize(params: Record<string, RealmDefaultSettings>): void {
realm_user_settings_defaults = params.realm_user_settings_defaults;
}