openchs-models 1.30.36 → 1.30.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/Privilege.js +44 -0
  2. package/package.json +1 -1
package/dist/Privilege.js CHANGED
@@ -14,8 +14,11 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
14
14
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
15
 
16
16
  class Privilege extends _BaseEntity.default {
17
+ //can be removed once we add it to the schema
17
18
  constructor(that = null) {
18
19
  super(that);
20
+
21
+ _defineProperty(this, "privilegeType", void 0);
19
22
  }
20
23
 
21
24
  get name() {
@@ -89,6 +92,47 @@ _defineProperty(Privilege, "privilegeName", {
89
92
  approveChecklistItem: "Approve ChecklistItem"
90
93
  });
91
94
 
95
+ _defineProperty(Privilege, "PrivilegeType", {
96
+ AddMember: "AddMember",
97
+ ApproveChecklistitem: "ApproveChecklistitem",
98
+ ApproveEncounter: "ApproveEncounter",
99
+ ApproveEnrolment: "ApproveEnrolment",
100
+ ApproveSubject: "ApproveSubject",
101
+ CancelVisit: "CancelVisit",
102
+ EditCatchment: "EditCatchment",
103
+ EditChecklist: "EditChecklist",
104
+ EditEnrolmentDetails: "EditEnrolmentDetails",
105
+ EditIdentifierSource: "EditIdentifierSource",
106
+ EditIdentifierUserAssignment: "EditIdentifierUserAssignment",
107
+ EditLanguage: "EditLanguage",
108
+ EditLocation: "EditLocation",
109
+ EditLocationType: "EditLocationType",
110
+ EditMember: "EditMember",
111
+ EditOrganisationConfiguration: "EditOrganisationConfiguration",
112
+ EditSubject: "EditSubject",
113
+ EditUserConfiguration: "EditUserConfiguration",
114
+ EditUserGroup: "EditUserGroup",
115
+ EditVisit: "EditVisit",
116
+ EnrolSubject: "EnrolSubject",
117
+ ExitEnrolment: "ExitEnrolment",
118
+ PerformVisit: "PerformVisit",
119
+ PhoneVerification: "PhoneVerification",
120
+ RegisterSubject: "RegisterSubject",
121
+ RejectChecklistitem: "RejectChecklistitem",
122
+ RejectEncounter: "RejectEncounter",
123
+ RejectEnrolment: "RejectEnrolment",
124
+ RejectSubject: "RejectSubject",
125
+ RemoveMember: "RemoveMember",
126
+ ScheduleVisit: "ScheduleVisit",
127
+ UploadMetadataAndData: "UploadMetadataAndData",
128
+ ViewChecklist: "ViewChecklist",
129
+ ViewEnrolmentDetails: "ViewEnrolmentDetails",
130
+ ViewSubject: "ViewSubject",
131
+ ViewVisit: "ViewVisit",
132
+ VoidSubject: "VoidSubject",
133
+ VoidVisit: "VoidVisit"
134
+ });
135
+
92
136
  _defineProperty(Privilege, "privilegeEntityType", {
93
137
  subject: "Subject",
94
138
  enrolment: "Enrolment",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "openchs-models",
3
3
  "description": "OpenCHS data model to be used by front end clients",
4
- "version": "1.30.36",
4
+ "version": "1.30.38",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",