summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app/onboarding/userNotifications/UserNotificationsConstants.js
blob: a8e92e29fd3ea8669a3303c3eab196cdd7a0c10e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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'
});