@openinc/parse-server-opendash 4.9.1 → 4.10.1

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.
@@ -9,6 +9,7 @@
9
9
  "OD3_BDE_List": "BDE",
10
10
  "OD3_BDE_ListEntry": "BDE",
11
11
  "OD3_BDE_Page": "BDE",
12
+ "OD3_BDE_QAFormula": "BDE",
12
13
  "OD3_BDE_QAOrder": "BDE",
13
14
  "OD3_BDE_QAResult": "BDE",
14
15
  "OD3_BDE_Result": "BDE",
@@ -0,0 +1 @@
1
+ export declare function init(): Promise<void>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.init = init;
4
+ const index_js_1 = require("../features/schema/index.js");
5
+ async function init() {
6
+ // Rules for computed inspection characteristics of the BDE plugin. Read by
7
+ // every user of the tenant (the inspection mask evaluates them), written by
8
+ // the creator and tenant admins: a rule decides the actual value that is
9
+ // reported to the ERP.
10
+ //
11
+ // That is only the minimum. Who else may edit a rule — the quality
12
+ // department, say — is granted in the BDE admin's permission dialog, so a
13
+ // custom ACL is kept on later saves instead of being reset.
14
+ (0, index_js_1.beforeSaveHook)("OD3_BDE_QAFormula", async (request) => {
15
+ await (0, index_js_1.defaultHandler)(request);
16
+ await (0, index_js_1.defaultAclHandler)(request, { allowCustomACL: true });
17
+ });
18
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openinc/parse-server-opendash",
3
- "version": "4.9.1",
3
+ "version": "4.10.1",
4
4
  "description": "Parse Server Cloud Code for open.INC Stack.",
5
5
  "packageManager": "pnpm@12.8.1",
6
6
  "keywords": [
@@ -0,0 +1,63 @@
1
+ {
2
+ "fields": {
3
+ "name": {
4
+ "type": "String",
5
+ "required": false
6
+ },
7
+ "target": {
8
+ "type": "Array",
9
+ "required": false,
10
+ "defaultValue": []
11
+ },
12
+ "inputs": {
13
+ "type": "Array",
14
+ "required": false,
15
+ "defaultValue": []
16
+ },
17
+ "formula": {
18
+ "type": "String",
19
+ "required": false
20
+ },
21
+ "decimals": {
22
+ "type": "Number",
23
+ "required": false
24
+ },
25
+ "active": {
26
+ "type": "Boolean",
27
+ "required": false,
28
+ "defaultValue": true
29
+ },
30
+ "tenant": {
31
+ "type": "Pointer",
32
+ "targetClass": "{{PREFIX}}Tenant",
33
+ "required": false
34
+ },
35
+ "user": {
36
+ "type": "Pointer",
37
+ "targetClass": "_User",
38
+ "required": false
39
+ }
40
+ },
41
+ "classLevelPermissions": {
42
+ "find": {
43
+ "requiresAuthentication": true
44
+ },
45
+ "count": {
46
+ "requiresAuthentication": true
47
+ },
48
+ "get": {
49
+ "requiresAuthentication": true
50
+ },
51
+ "create": {
52
+ "requiresAuthentication": true
53
+ },
54
+ "update": {
55
+ "requiresAuthentication": true
56
+ },
57
+ "delete": {
58
+ "requiresAuthentication": true
59
+ },
60
+ "addField": {},
61
+ "protectedFields": {}
62
+ }
63
+ }