@openinc/parse-server-opendash 4.9.0 → 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.
@@ -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,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
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@openinc/parse-server-opendash",
3
- "version": "4.9.0",
3
+ "version": "4.10.0",
4
4
  "description": "Parse Server Cloud Code for open.INC Stack.",
5
- "packageManager": "pnpm@11.25.0",
5
+ "packageManager": "pnpm@12.8.1",
6
6
  "keywords": [
7
7
  "parse",
8
8
  "opendash"
@@ -74,13 +74,13 @@
74
74
  "amqplib": "^0.10.9",
75
75
  "cron": "^4.4.0",
76
76
  "dayjs": "^1.11.23",
77
- "dotenv": "^17.4.2",
77
+ "dotenv": "^18.0.5",
78
78
  "fast-equals": "^6.0.4",
79
79
  "i18next": "^26.4.2",
80
80
  "i18next-fs-backend": "^2.6.8",
81
81
  "jsonwebtoken": "^9.0.3",
82
82
  "jwks-rsa": "^4.1.0",
83
- "nodemailer": "^9.1.1",
83
+ "nodemailer": "^10.0.13",
84
84
  "nunjucks": "^3.2.4",
85
85
  "parse": "^8.6.2",
86
86
  "parse-server": "9.10.1",
@@ -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
+ }