forked from primeroIMS/primero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.js
51 lines (47 loc) · 1.17 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright (c) 2014 - 2023 UNICEF. All rights reserved.
export const NAME = "RolesForm";
export const FORM_CHECK_ERRORS = ["permissions"];
export const FIELD_NAMES = {
name: "name",
description: "description",
transfer: "transfer",
referral: "referral",
moduleIds: "module_unique_ids",
groupPermission: "group_permission",
isManager: "is_manager",
reportingLocationLevel: "reporting_location_level",
disabled: "disabled",
referralAuthorization: "referral_authorization"
};
export const ACTION_BUTTONS_NAME = "ActionButtons";
export const RESOURCES = [
"case",
"incident",
"tracing_request",
"registry_record",
"family",
"potential_match",
"role",
"user",
"user_group",
"agency",
"webhook",
"metadata",
"system",
"primero_configuration",
"report",
"managed_report",
"dashboard",
"audit_log",
"activity_log",
"matching_configuration",
"duplicate",
"kpi",
"usage_report"
];
export const ROLES_PERMISSIONS = Object.freeze({
hide: Object.freeze({ id: "h", text: "hide" }),
read: Object.freeze({ id: "r", text: "read" }),
read_write: Object.freeze({ id: "rw", text: "read_write" })
});
export const FORM_ID = "role-form";