UNPKG

@selfcommunity/react-core

Version:

React Core Components useful for integrating UI Community components (react-ui).

79 lines (78 loc) 3.96 kB
import { SCNotificationTopicType, SCNotificationTypologyType } from '@selfcommunity/types'; /** * List of all possible topics */ export const SCNotificationTopics = [SCNotificationTopicType.INTERACTION, SCNotificationTopicType.NEWS]; /** * Notification mapping */ export const SCNotificationMapping = { 1: SCNotificationTypologyType.CONTRIBUTION, 2: SCNotificationTypologyType.COMMENT, 4: SCNotificationTypologyType.NESTED_COMMENT, 55: SCNotificationTypologyType.CONNECTION_REQUEST, 56: SCNotificationTypologyType.CONNECTION_ACCEPT, 57: SCNotificationTypologyType.CONNECTION_REJECT, 58: SCNotificationTypologyType.CONNECTION_CANCEL_REJECT, 59: SCNotificationTypologyType.CONNECTION_REMOVE, 60: SCNotificationTypologyType.CONNECTION_CANCEL_REQUEST, 19: SCNotificationTypologyType.MENTION, 9: SCNotificationTypologyType.VOTE_UP, 16: SCNotificationTypologyType.FOLLOW, 37: SCNotificationTypologyType.PRIVATE_MESSAGE, 105: SCNotificationTypologyType.DELETE_PRIVATE_MESSAGE, 26: SCNotificationTypologyType.LIVE_STREAM_STARTED, 50: SCNotificationTypologyType.DELETED_FOR_ADVERTISING, 51: SCNotificationTypologyType.DELETED_FOR_AGGRESSIVE, 52: SCNotificationTypologyType.DELETED_FOR_VULGAR, 65: SCNotificationTypologyType.DELETED_FOR_POOR, 66: SCNotificationTypologyType.DELETED_FOR_OFFTOPIC, 54: SCNotificationTypologyType.UNDELETED_FOR, 75: SCNotificationTypologyType.COLLAPSED_FOR_ADVERTISING, 76: SCNotificationTypologyType.COLLAPSED_FOR_AGGRESSIVE, 77: SCNotificationTypologyType.COLLAPSED_FOR_VULGAR, 78: SCNotificationTypologyType.COLLAPSED_FOR_POOR, 79: SCNotificationTypologyType.COLLAPSED_FOR_OFFTOPIC, 97: SCNotificationTypologyType.USER_FOLLOW, 98: SCNotificationTypologyType.USER_UNFOLLOW, 67: SCNotificationTypologyType.KINDLY_NOTICE_ADVERTISING, 68: SCNotificationTypologyType.KINDLY_NOTICE_AGGRESSIVE, 69: SCNotificationTypologyType.KINDLY_NOTICE_VULGAR, 70: SCNotificationTypologyType.KINDLY_NOTICE_POOR, 71: SCNotificationTypologyType.KINDLY_NOTICE_OFFTOPIC, 73: SCNotificationTypologyType.KINDLY_NOTICE_FLAG, 74: SCNotificationTypologyType.BLOCKED_USER, 83: SCNotificationTypologyType.UNBLOCKED_USER, 96: SCNotificationTypologyType.INCUBATOR_APPROVED, 99: SCNotificationTypologyType.CUSTOM_NOTIFICATION, 31: SCNotificationTypologyType.USER_INVITED_TO_JOIN_GROUP, 32: SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP, 33: SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP, 34: SCNotificationTypologyType.USER_ADDED_TO_GROUP, 7: SCNotificationTypologyType.USER_INVITED_TO_JOIN_EVENT, 10: SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT, 14: SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_EVENT, 15: SCNotificationTypologyType.USER_ADDED_TO_EVENT, 27: SCNotificationTypologyType.USER_INVITED_TO_JOIN_COURSE, 29: SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_COURSE, 30: SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_COURSE, 46: SCNotificationTypologyType.USER_ADDED_TO_COURSE, 80: SCNotificationTypologyType.MANAGER_ADDED_TO_COURSE, 82: SCNotificationTypologyType.USER_COMMENTED_A_COURSE_LESSON, }; /** * Silent Snippet Notifications */ export const SCSilentSnippetNotifications = [57, 58, 59, 60, 98, 99, 105]; /** * Silent Toast Notifications */ export const SCSilentToastNotifications = [50, 51, 52, 54, 57, 58, 59, 60, 65, 66, 67, 68, 69, 70, 71, 75, 76, 77, 78, 79, 98, 99, 105]; /** * Notification settings keys */ export const NOTIFICATIONS_SETTINGS_QA_FREQUENCY = 'qa_frequency'; export const NOTIFICATIONS_SETTINGS_EMAIL_NOT_QA = 'email_notification_not_qa'; export const NOTIFICATIONS_SETTINGS_MOBILE = 'mobile_notifications_scmty'; export const NOTIFICATIONS_SETTINGS_TOAST_EMIT_SOUND = 'toast_notifications_emit_sound'; export const NOTIFICATIONS_SETTINGS_SHOW_TOAST = 'show_toast_notifications';