@openinc/parse-server-opendash 4.9.1 → 4.10.0
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.
package/dist/featuremap.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function init(): Promise<void>;
|
|
@@ -0,0 +1,14 @@
|
|
|
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 only: a rule decides the actual value that
|
|
9
|
+
// is reported to the ERP.
|
|
10
|
+
(0, index_js_1.beforeSaveHook)("OD3_BDE_QAFormula", async (request) => {
|
|
11
|
+
await (0, index_js_1.defaultHandler)(request);
|
|
12
|
+
await (0, index_js_1.defaultAclHandler)(request);
|
|
13
|
+
});
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -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
|
+
}
|