/
PostmenBlake
/
NotificationPreferencesService
Обзор
Документация
Войти
/
PostmenBlake
/
NotificationPreferencesService
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/domain/value-objects/Channel.ts
12 строк
361 B
kurava
feat: initial commit - Notification Preferences Service
17 июн 2026, 09:11
17 июн 2026, 09:11
48825c3
Код
Авторство
О чём код?
export enum Channel { EMAIL = 'email', PUSH = 'push', SMS = 'sms' } export const getChannelFromType = (notificationType: string): Channel | null => { if (notificationType.includes('email')) return Channel.EMAIL; if (notificationType.includes('push')) return Channel.PUSH; if (notificationType.includes('sms')) return Channel.SMS; return null; };