@selfcommunity/react-core
Version:
React Core Components useful for integrating UI Community components (react-ui).
76 lines (75 loc) • 4.33 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NOTIFICATIONS_SETTINGS_SHOW_TOAST = exports.NOTIFICATIONS_SETTINGS_TOAST_EMIT_SOUND = exports.NOTIFICATIONS_SETTINGS_MOBILE = exports.NOTIFICATIONS_SETTINGS_EMAIL_NOT_QA = exports.NOTIFICATIONS_SETTINGS_QA_FREQUENCY = exports.SCSilentToastNotifications = exports.SCSilentSnippetNotifications = exports.SCNotificationMapping = exports.SCNotificationTopics = void 0;
const types_1 = require("@selfcommunity/types");
/**
* List of all possible topics
*/
exports.SCNotificationTopics = [types_1.SCNotificationTopicType.INTERACTION, types_1.SCNotificationTopicType.NEWS];
/**
* Notification mapping
*/
exports.SCNotificationMapping = {
1: types_1.SCNotificationTypologyType.CONTRIBUTION,
2: types_1.SCNotificationTypologyType.COMMENT,
4: types_1.SCNotificationTypologyType.NESTED_COMMENT,
55: types_1.SCNotificationTypologyType.CONNECTION_REQUEST,
56: types_1.SCNotificationTypologyType.CONNECTION_ACCEPT,
57: types_1.SCNotificationTypologyType.CONNECTION_REJECT,
58: types_1.SCNotificationTypologyType.CONNECTION_CANCEL_REJECT,
59: types_1.SCNotificationTypologyType.CONNECTION_REMOVE,
60: types_1.SCNotificationTypologyType.CONNECTION_CANCEL_REQUEST,
19: types_1.SCNotificationTypologyType.MENTION,
9: types_1.SCNotificationTypologyType.VOTE_UP,
16: types_1.SCNotificationTypologyType.FOLLOW,
37: types_1.SCNotificationTypologyType.PRIVATE_MESSAGE,
105: types_1.SCNotificationTypologyType.DELETE_PRIVATE_MESSAGE,
26: types_1.SCNotificationTypologyType.LIVE_STREAM_STARTED,
50: types_1.SCNotificationTypologyType.DELETED_FOR_ADVERTISING,
51: types_1.SCNotificationTypologyType.DELETED_FOR_AGGRESSIVE,
52: types_1.SCNotificationTypologyType.DELETED_FOR_VULGAR,
65: types_1.SCNotificationTypologyType.DELETED_FOR_POOR,
66: types_1.SCNotificationTypologyType.DELETED_FOR_OFFTOPIC,
54: types_1.SCNotificationTypologyType.UNDELETED_FOR,
75: types_1.SCNotificationTypologyType.COLLAPSED_FOR_ADVERTISING,
76: types_1.SCNotificationTypologyType.COLLAPSED_FOR_AGGRESSIVE,
77: types_1.SCNotificationTypologyType.COLLAPSED_FOR_VULGAR,
78: types_1.SCNotificationTypologyType.COLLAPSED_FOR_POOR,
79: types_1.SCNotificationTypologyType.COLLAPSED_FOR_OFFTOPIC,
97: types_1.SCNotificationTypologyType.USER_FOLLOW,
98: types_1.SCNotificationTypologyType.USER_UNFOLLOW,
67: types_1.SCNotificationTypologyType.KINDLY_NOTICE_ADVERTISING,
68: types_1.SCNotificationTypologyType.KINDLY_NOTICE_AGGRESSIVE,
69: types_1.SCNotificationTypologyType.KINDLY_NOTICE_VULGAR,
70: types_1.SCNotificationTypologyType.KINDLY_NOTICE_POOR,
71: types_1.SCNotificationTypologyType.KINDLY_NOTICE_OFFTOPIC,
73: types_1.SCNotificationTypologyType.KINDLY_NOTICE_FLAG,
74: types_1.SCNotificationTypologyType.BLOCKED_USER,
83: types_1.SCNotificationTypologyType.UNBLOCKED_USER,
96: types_1.SCNotificationTypologyType.INCUBATOR_APPROVED,
99: types_1.SCNotificationTypologyType.CUSTOM_NOTIFICATION,
31: types_1.SCNotificationTypologyType.USER_INVITED_TO_JOIN_GROUP,
32: types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP,
33: types_1.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP,
34: types_1.SCNotificationTypologyType.USER_ADDED_TO_GROUP,
7: types_1.SCNotificationTypologyType.USER_INVITED_TO_JOIN_EVENT,
10: types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT,
14: types_1.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_EVENT,
15: types_1.SCNotificationTypologyType.USER_ADDED_TO_EVENT,
};
/**
* Silent Snippet Notifications
*/
exports.SCSilentSnippetNotifications = [57, 58, 59, 60, 98, 99, 105];
/**
* Silent Toast Notifications
*/
exports.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
*/
exports.NOTIFICATIONS_SETTINGS_QA_FREQUENCY = 'qa_frequency';
exports.NOTIFICATIONS_SETTINGS_EMAIL_NOT_QA = 'email_notification_not_qa';
exports.NOTIFICATIONS_SETTINGS_MOBILE = 'mobile_notifications_scmty';
exports.NOTIFICATIONS_SETTINGS_TOAST_EMIT_SOUND = 'toast_notifications_emit_sound';
exports.NOTIFICATIONS_SETTINGS_SHOW_TOAST = 'show_toast_notifications';