@openinc/parse-server-opendash 2.4.102 → 2.4.104
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.
|
@@ -16,6 +16,7 @@ export declare namespace Permissions {
|
|
|
16
16
|
material = "maintenance:can-access-material",
|
|
17
17
|
scheduletemplate = "maintenance:can-access-scheduletemplate",
|
|
18
18
|
dailySchedule = "maintenance:can-access-dailySchedule",
|
|
19
|
+
monitoring = "maintenance:can-access-monitoring",
|
|
19
20
|
downtime = "maintenance:can-access-downtime",
|
|
20
21
|
restriction = "maintenance:can-access-restriction",
|
|
21
22
|
frequency = "maintenance:can-access-frequency",
|
|
@@ -24,6 +24,7 @@ var Permissions;
|
|
|
24
24
|
OpenService["material"] = "maintenance:can-access-material";
|
|
25
25
|
OpenService["scheduletemplate"] = "maintenance:can-access-scheduletemplate";
|
|
26
26
|
OpenService["dailySchedule"] = "maintenance:can-access-dailySchedule";
|
|
27
|
+
OpenService["monitoring"] = "maintenance:can-access-monitoring";
|
|
27
28
|
OpenService["downtime"] = "maintenance:can-access-downtime";
|
|
28
29
|
OpenService["restriction"] = "maintenance:can-access-restriction";
|
|
29
30
|
OpenService["frequency"] = "maintenance:can-access-frequency";
|
package/dist/featuremap.json
CHANGED
package/dist/hooks/MES_Order.js
CHANGED
|
@@ -291,12 +291,10 @@ function scheduleOrderStartedStatusCheck(cronInterval) {
|
|
|
291
291
|
const job = new cron_1.CronJob(cronInterval, // cronTime
|
|
292
292
|
() => {
|
|
293
293
|
const date = new Date(Date.now() - 24 * 60 * 60 * 1000);
|
|
294
|
-
console.log(`Checking Order Status for Orders started in the last 24 hours (Since ${date.toISOString()})`);
|
|
295
294
|
//Orders of last 24 hours
|
|
296
295
|
const query = new Parse.Query(types_1.MES_Order);
|
|
297
296
|
query.greaterThanOrEqualTo("start", date);
|
|
298
297
|
query.find({ useMasterKey: true }).then((orders) => {
|
|
299
|
-
console.log(`Checking ${orders.length} Orders`);
|
|
300
298
|
orders.forEach((order) => {
|
|
301
299
|
const status = order.get("status");
|
|
302
300
|
if (!status) {
|
|
@@ -325,10 +323,8 @@ function scheduleOrderStartedStatusCheck(cronInterval) {
|
|
|
325
323
|
}
|
|
326
324
|
});
|
|
327
325
|
});
|
|
328
|
-
},
|
|
329
|
-
() => {
|
|
326
|
+
}, () => {
|
|
330
327
|
const dt = cron.sendAt(cronInterval);
|
|
331
|
-
console.log(`Order Status Check completed. Next check at ${dt.toISO()}`);
|
|
332
328
|
}, // onComplete
|
|
333
329
|
true, // start
|
|
334
330
|
"Europe/Berlin" // timeZone
|
package/package.json
CHANGED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fields": {
|
|
3
|
+
"connectionString": {
|
|
4
|
+
"type": "String",
|
|
5
|
+
"required": true
|
|
6
|
+
},
|
|
7
|
+
"enabled": {
|
|
8
|
+
"type": "Boolean",
|
|
9
|
+
"required": true,
|
|
10
|
+
"defaultValue": true
|
|
11
|
+
},
|
|
12
|
+
"extraOptions": {
|
|
13
|
+
"type": "Object",
|
|
14
|
+
"required": false,
|
|
15
|
+
"defaultValue": {}
|
|
16
|
+
},
|
|
17
|
+
"interval": {
|
|
18
|
+
"type": "Number",
|
|
19
|
+
"required": false,
|
|
20
|
+
"defaultValue": 1000
|
|
21
|
+
},
|
|
22
|
+
"name": {
|
|
23
|
+
"type": "String",
|
|
24
|
+
"required": false
|
|
25
|
+
},
|
|
26
|
+
"options": {
|
|
27
|
+
"type": "Object",
|
|
28
|
+
"required": false,
|
|
29
|
+
"defaultValue": {}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"classLevelPermissions": {
|
|
33
|
+
"find": {
|
|
34
|
+
"requiresAuthentication": true
|
|
35
|
+
},
|
|
36
|
+
"count": {
|
|
37
|
+
"requiresAuthentication": true
|
|
38
|
+
},
|
|
39
|
+
"get": {
|
|
40
|
+
"requiresAuthentication": true
|
|
41
|
+
},
|
|
42
|
+
"create": {
|
|
43
|
+
"requiresAuthentication": true
|
|
44
|
+
},
|
|
45
|
+
"update": {
|
|
46
|
+
"requiresAuthentication": true
|
|
47
|
+
},
|
|
48
|
+
"delete": {
|
|
49
|
+
"requiresAuthentication": true
|
|
50
|
+
},
|
|
51
|
+
"addField": {},
|
|
52
|
+
"protectedFields": {
|
|
53
|
+
"*": []
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fields": {
|
|
3
|
+
"address": {
|
|
4
|
+
"type": "String",
|
|
5
|
+
"required": true
|
|
6
|
+
},
|
|
7
|
+
"DeviceID": {
|
|
8
|
+
"type": "Pointer",
|
|
9
|
+
"targetClass": "{{PREFIX}}OWPlcDevice",
|
|
10
|
+
"required": false
|
|
11
|
+
},
|
|
12
|
+
"enabled": {
|
|
13
|
+
"type": "Boolean",
|
|
14
|
+
"required": false,
|
|
15
|
+
"defaultValue": true
|
|
16
|
+
},
|
|
17
|
+
"extraOptions": {
|
|
18
|
+
"type": "Object",
|
|
19
|
+
"required": false
|
|
20
|
+
},
|
|
21
|
+
"label": {
|
|
22
|
+
"type": "String",
|
|
23
|
+
"required": true
|
|
24
|
+
},
|
|
25
|
+
"note": {
|
|
26
|
+
"type": "String",
|
|
27
|
+
"required": false
|
|
28
|
+
},
|
|
29
|
+
"onChange": {
|
|
30
|
+
"type": "Boolean",
|
|
31
|
+
"required": true,
|
|
32
|
+
"defaultValue": false
|
|
33
|
+
},
|
|
34
|
+
"source": {
|
|
35
|
+
"type": "Pointer",
|
|
36
|
+
"targetClass": "OD3_Source"
|
|
37
|
+
},
|
|
38
|
+
"type": {
|
|
39
|
+
"type": "String",
|
|
40
|
+
"required": false,
|
|
41
|
+
"defaultValue": "Number"
|
|
42
|
+
},
|
|
43
|
+
"unit": {
|
|
44
|
+
"type": "String",
|
|
45
|
+
"required": false,
|
|
46
|
+
"defaultValue": "#"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"classLevelPermissions": {
|
|
50
|
+
"find": {
|
|
51
|
+
"*": true
|
|
52
|
+
},
|
|
53
|
+
"count": {
|
|
54
|
+
"*": true
|
|
55
|
+
},
|
|
56
|
+
"get": {
|
|
57
|
+
"*": true
|
|
58
|
+
},
|
|
59
|
+
"create": {
|
|
60
|
+
"*": true
|
|
61
|
+
},
|
|
62
|
+
"update": {
|
|
63
|
+
"*": true
|
|
64
|
+
},
|
|
65
|
+
"delete": {
|
|
66
|
+
"*": true
|
|
67
|
+
},
|
|
68
|
+
"addField": {
|
|
69
|
+
"*": true
|
|
70
|
+
},
|
|
71
|
+
"protectedFields": {
|
|
72
|
+
"*": []
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|