@openinc/parse-server-opendash 2.4.96 → 2.4.99
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/config.js
CHANGED
|
@@ -233,6 +233,15 @@ const options = {
|
|
|
233
233
|
default: "false",
|
|
234
234
|
description: "Enable Parse Classes and Cloud Code for the MIAAS plugin.",
|
|
235
235
|
},
|
|
236
|
+
FEATURE_DOCUMENTATION: {
|
|
237
|
+
env: "OPENINC_PARSE_FEATURE_DOCUMENTATION",
|
|
238
|
+
type: "boolean",
|
|
239
|
+
required: false,
|
|
240
|
+
secret: false,
|
|
241
|
+
public: true,
|
|
242
|
+
default: "false",
|
|
243
|
+
description: "Enable Parse Classes and Cloud Code for the Documentation plugin.",
|
|
244
|
+
},
|
|
236
245
|
FORCE_SCHEMA: {
|
|
237
246
|
env: "OPENINC_PARSE_FORCE_SCHEMA",
|
|
238
247
|
type: "boolean",
|
package/dist/featuremap.json
CHANGED
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"OD3_MES_Order": "MONITORING",
|
|
72
72
|
"OD3_MES_OrderPlan": "MONITORING",
|
|
73
73
|
"OD3_MIAAS_MDSEndpoint": "MIAAS",
|
|
74
|
+
"OD3_ML_DataSelection": "unknown",
|
|
74
75
|
"OD3_Monitoring_DataHierachies": "MONITORING",
|
|
75
76
|
"OD3_Monitoring_Jobs": "MONITORING",
|
|
76
77
|
"OD3_Monitoring_ParseTableSensor": "MONITORING",
|
|
@@ -7,7 +7,7 @@ async function init() {
|
|
|
7
7
|
(0, __1.beforeSaveHook)(types_1.Monitoring_Jobs, 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_Jobs, async (request) => {
|
package/dist/index.js
CHANGED
|
@@ -29,10 +29,10 @@ const config_1 = require("./config");
|
|
|
29
29
|
const featuremap_json_1 = __importDefault(require("./featuremap.json"));
|
|
30
30
|
const _init_1 = require("./functions/_init");
|
|
31
31
|
const BreeInstance_1 = __importDefault(require("./helper/BreeInstance"));
|
|
32
|
+
const registerPermissions_1 = require("./helper/registerPermissions");
|
|
32
33
|
const Core_Email_1 = require("./hooks/Core_Email");
|
|
33
34
|
const _init_2 = require("./hooks/_init");
|
|
34
35
|
const types_1 = require("./types");
|
|
35
|
-
const registerPermissions_1 = require("./helper/registerPermissions");
|
|
36
36
|
// export { Config } from "./helper/Config";
|
|
37
37
|
var Core_Email_2 = require("./hooks/Core_Email");
|
|
38
38
|
Object.defineProperty(exports, "sendSimpleEmail", { enumerable: true, get: function () { return Core_Email_2.sendSimpleEmail; } });
|
|
@@ -607,6 +607,8 @@ function isFeatureEnabled(feature) {
|
|
|
607
607
|
return config_1.config.getBoolean("FEATURE_KNOWLEDGE");
|
|
608
608
|
case "MAINTENANCE":
|
|
609
609
|
return config_1.config.getBoolean("FEATURE_MAINTENANCE");
|
|
610
|
+
case "DOCUMENTATION":
|
|
611
|
+
return config_1.config.getBoolean("FEATURE_DOCUMENTATION");
|
|
610
612
|
case "MIAAS":
|
|
611
613
|
return config_1.config.getBoolean("FEATURE_MIAAS");
|
|
612
614
|
default:
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { Tenant } from "./Tenant";
|
|
2
|
+
import type { _User } from "./_User";
|
|
1
3
|
export interface Monitoring_JobsAttributes {
|
|
2
4
|
id: string;
|
|
3
5
|
objectId: string;
|
|
@@ -9,8 +11,9 @@ export interface Monitoring_JobsAttributes {
|
|
|
9
11
|
name?: string;
|
|
10
12
|
next_execution_ow_job?: number;
|
|
11
13
|
options?: any;
|
|
14
|
+
tenant?: Tenant;
|
|
12
15
|
type?: string;
|
|
13
|
-
user?:
|
|
16
|
+
user?: _User;
|
|
14
17
|
}
|
|
15
18
|
export declare class Monitoring_Jobs extends Parse.Object<Monitoring_JobsAttributes> {
|
|
16
19
|
static className: string;
|
|
@@ -27,8 +30,10 @@ export declare class Monitoring_Jobs extends Parse.Object<Monitoring_JobsAttribu
|
|
|
27
30
|
set next_execution_ow_job(value: number | undefined);
|
|
28
31
|
get options(): any | undefined;
|
|
29
32
|
set options(value: any | undefined);
|
|
33
|
+
get tenant(): Tenant | undefined;
|
|
34
|
+
set tenant(value: Tenant | undefined);
|
|
30
35
|
get type(): string | undefined;
|
|
31
36
|
set type(value: string | undefined);
|
|
32
|
-
get user():
|
|
33
|
-
set user(value:
|
|
37
|
+
get user(): _User | undefined;
|
|
38
|
+
set user(value: _User | undefined);
|
|
34
39
|
}
|
|
@@ -41,6 +41,12 @@ class Monitoring_Jobs extends Parse.Object {
|
|
|
41
41
|
set options(value) {
|
|
42
42
|
super.set("options", value);
|
|
43
43
|
}
|
|
44
|
+
get tenant() {
|
|
45
|
+
return super.get("tenant");
|
|
46
|
+
}
|
|
47
|
+
set tenant(value) {
|
|
48
|
+
super.set("tenant", value);
|
|
49
|
+
}
|
|
44
50
|
get type() {
|
|
45
51
|
return super.get("type");
|
|
46
52
|
}
|
package/package.json
CHANGED
|
@@ -18,11 +18,18 @@
|
|
|
18
18
|
"options": {
|
|
19
19
|
"type": "Object"
|
|
20
20
|
},
|
|
21
|
+
"tenant": {
|
|
22
|
+
"type": "Pointer",
|
|
23
|
+
"targetClass": "{{PREFIX}}Tenant",
|
|
24
|
+
"required": false
|
|
25
|
+
},
|
|
21
26
|
"type": {
|
|
22
27
|
"type": "String"
|
|
23
28
|
},
|
|
24
29
|
"user": {
|
|
25
|
-
"type": "
|
|
30
|
+
"type": "Pointer",
|
|
31
|
+
"targetClass": "_User",
|
|
32
|
+
"required": false
|
|
26
33
|
}
|
|
27
34
|
},
|
|
28
35
|
"classLevelPermissions": {
|