UNPKG

@capgo/cli

Version:
10 lines (9 loc) • 1.07 kB
/** Email notification toggles shown in the org Notifications settings page. */ export declare const ORG_EMAIL_PREFERENCE_KEYS: readonly ["usage_limit", "credit_usage", "bundle_created", "bundle_deployed", "deploy_stats_24h", "weekly_stats", "monthly_stats", "billing_period_stats", "device_error", "channel_self_rejected", "onboarding", "builder_onboarding"]; /** Email notification toggles shown in the account Notifications settings page. */ export declare const USER_EMAIL_PREFERENCE_KEYS: readonly ["usage_limit", "credit_usage", "bundle_created", "bundle_deployed", "deploy_stats_24h", "weekly_stats", "monthly_stats", "billing_period_stats", "device_error", "channel_self_rejected", "onboarding", "builder_onboarding", "bundle_incompatible", "cli_realtime_feed"]; export type EmailPreferences = Record<string, boolean>; /** * Parse repeatable `key=true|false` flags (commas allowed) into an email preference patch. */ export declare function parseEmailPreferenceFlags(values: string[] | undefined, allowedKeys: readonly string[]): EmailPreferences | undefined;