@openinc/parse-server-opendash 2.4.76 → 2.4.77

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.
@@ -5,6 +5,12 @@
5
5
  */
6
6
  export declare namespace Permissions {
7
7
  enum OpenService {
8
+ ticket = "maintenance:can-create-ticket",
9
+ schedule = "maintenance:can-create-schedule",
10
+ message = "maintenance:can-create-message",
11
+ machinelog_ticket = "maintenance:can-create-machinelog-ticket",
12
+ machinelog_schedule = "maintenance:can-create-machinelog-schedule",
13
+ machinelog_message = "maintenance:can-create-machinelog-message",
8
14
  global = "maintenance:can-access-global",
9
15
  monitor = "maintenance:can-access-monitor",
10
16
  material = "maintenance:can-access-material",
@@ -12,6 +12,13 @@ var Permissions;
12
12
  // needs to be exported for getAllPermissions() to work
13
13
  let OpenService;
14
14
  (function (OpenService) {
15
+ // Create
16
+ OpenService["ticket"] = "maintenance:can-create-ticket";
17
+ OpenService["schedule"] = "maintenance:can-create-schedule";
18
+ OpenService["message"] = "maintenance:can-create-message";
19
+ OpenService["machinelog_ticket"] = "maintenance:can-create-machinelog-ticket";
20
+ OpenService["machinelog_schedule"] = "maintenance:can-create-machinelog-schedule";
21
+ OpenService["machinelog_message"] = "maintenance:can-create-machinelog-message";
15
22
  // Access
16
23
  OpenService["global"] = "maintenance:can-access-global";
17
24
  OpenService["monitor"] = "maintenance:can-access-monitor";
@@ -7,7 +7,7 @@ async function init() {
7
7
  (0, __1.beforeSaveHook)(types_1.Monitoring_ParseTableSensor, async (request) => {
8
8
  const { object, original, user } = request;
9
9
  await (0, __1.defaultHandler)(request);
10
- await (0, __1.defaultAclHandler)(request);
10
+ await (0, __1.defaultAclHandler)(request, { allowCustomACL: true });
11
11
  // TODO
12
12
  });
13
13
  (0, __1.afterSaveHook)(types_1.Monitoring_ParseTableSensor, async (request) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openinc/parse-server-opendash",
3
- "version": "2.4.76",
3
+ "version": "2.4.77",
4
4
  "description": "Parse Server Cloud Code for open.DASH",
5
5
  "keywords": [
6
6
  "parse",
@@ -8,10 +8,6 @@
8
8
  "type": "String",
9
9
  "required": true
10
10
  },
11
- "pipe": {
12
- "type": "Object",
13
- "required": false
14
- },
15
11
  "query": {
16
12
  "type": "Object",
17
13
  "required": true,