summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app/onboarding/userNotifications/UserNotificationsConstants.js
blob: b2466f19af5f20dbc4293fdfcfafc98460a72172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import keyMirror from 'nfvo-utils/KeyMirror.js';

export const actionTypes = keyMirror({
    NOTIFICATION: null,
    LOAD_NOTIFICATIONS: null,
    LOAD_PREV_NOTIFICATIONS: null,
    UPDATE_READ_NOTIFICATION: null,
    RESET_NEW_NOTIFICATIONS: null,
    TOGGLE_OVERLAY: null
});

export const notificationType = keyMirror({
    PERMISSION_CHANGED: 'PermissionChanged',
    ITEM_CHANGED: {
        COMMIT: 'commit',
        SUBMIT: 'submit'
    },
    ITEM_DELETED: 'delete',
    ITEM_ARCHIVED: 'archive',
    ITEM_RESTORED: 'restore'
});