@openinc/parse-server-opendash 1.5.2 → 1.8.2
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/functions/_init.js +2 -2
- package/dist/functions/getAdminConfig.d.ts +1 -0
- package/dist/functions/getAdminConfig.js +116 -0
- package/dist/hooks/Alarm.d.ts +1 -1
- package/dist/hooks/Alarm.js +3 -3
- package/dist/hooks/AlarmAction.d.ts +1 -1
- package/dist/hooks/AlarmAction.js +3 -3
- package/dist/hooks/AlarmWebhook.d.ts +1 -1
- package/dist/hooks/AlarmWebhook.js +3 -3
- package/dist/hooks/BDE_Form.d.ts +1 -0
- package/dist/hooks/BDE_Form.js +124 -0
- package/dist/hooks/BDE_List.d.ts +1 -0
- package/dist/hooks/BDE_List.js +63 -0
- package/dist/hooks/BDE_ListEntry.d.ts +1 -0
- package/dist/hooks/BDE_ListEntry.js +63 -0
- package/dist/hooks/BDE_Page.d.ts +1 -0
- package/dist/hooks/BDE_Page.js +90 -0
- package/dist/hooks/BDE_Result.d.ts +1 -0
- package/dist/hooks/BDE_Result.js +185 -0
- package/dist/hooks/BDE_Unit.d.ts +1 -0
- package/dist/hooks/BDE_Unit.js +63 -0
- package/dist/hooks/Config.d.ts +1 -1
- package/dist/hooks/Config.js +3 -3
- package/dist/hooks/Dashboard.d.ts +1 -1
- package/dist/hooks/Dashboard.js +4 -4
- package/dist/hooks/NavigationGroup.d.ts +1 -1
- package/dist/hooks/NavigationGroup.js +3 -3
- package/dist/hooks/NavigationItem.d.ts +1 -1
- package/dist/hooks/NavigationItem.js +3 -3
- package/dist/hooks/Notification.d.ts +1 -1
- package/dist/hooks/Notification.js +4 -4
- package/dist/hooks/Permission.d.ts +1 -1
- package/dist/hooks/Permission.js +3 -3
- package/dist/hooks/Report.d.ts +1 -1
- package/dist/hooks/Report.js +3 -3
- package/dist/hooks/Share.d.ts +1 -1
- package/dist/hooks/Share.js +3 -3
- package/dist/hooks/Source.d.ts +1 -1
- package/dist/hooks/Source.js +9 -8
- package/dist/hooks/SourceMeta.d.ts +1 -1
- package/dist/hooks/SourceMeta.js +5 -5
- package/dist/hooks/Tenant.d.ts +1 -1
- package/dist/hooks/Tenant.js +6 -6
- package/dist/hooks/TenantMeta.d.ts +1 -1
- package/dist/hooks/TenantMeta.js +3 -3
- package/dist/hooks/TenantTrustedDomain.d.ts +1 -1
- package/dist/hooks/TenantTrustedDomain.js +3 -3
- package/dist/hooks/UserData.d.ts +1 -1
- package/dist/hooks/UserData.js +3 -3
- package/dist/hooks/WebPush.d.ts +1 -1
- package/dist/hooks/WebPush.js +3 -3
- package/dist/hooks/Widget.d.ts +1 -1
- package/dist/hooks/Widget.js +3 -3
- package/dist/hooks/_User.js +1 -2
- package/dist/hooks/_init.js +24 -27
- package/dist/index.d.ts +8 -0
- package/dist/index.js +65 -1
- package/dist/ow.d.ts +21 -0
- package/dist/ow.js +149 -0
- package/dist/types/BDE_Form.d.ts +12 -0
- package/dist/types/BDE_Form.js +2 -0
- package/dist/types/BDE_List.d.ts +9 -0
- package/dist/types/BDE_List.js +2 -0
- package/dist/types/BDE_ListEntry.d.ts +13 -0
- package/dist/types/BDE_ListEntry.js +2 -0
- package/dist/types/BDE_Page.d.ts +10 -0
- package/dist/types/BDE_Page.js +2 -0
- package/dist/types/BDE_Result.d.ts +11 -0
- package/dist/types/BDE_Result.js +2 -0
- package/dist/types/BDE_Unit.d.ts +13 -0
- package/dist/types/BDE_Unit.js +2 -0
- package/dist/types/index.d.ts +6 -0
- package/package.json +3 -1
- package/schema/BDE_Form.json +39 -0
- package/schema/BDE_List.json +34 -0
- package/schema/BDE_ListEntry.json +43 -0
- package/schema/BDE_Page.json +36 -0
- package/schema/BDE_Result.json +39 -0
- package/schema/BDE_Unit.json +40 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export { Alarm, AlarmAttributes } from "./Alarm";
|
|
2
2
|
export { AlarmAction, AlarmActionAttributes } from "./AlarmAction";
|
|
3
3
|
export { AlarmWebhook, AlarmWebhookAttributes } from "./AlarmWebhook";
|
|
4
|
+
export { BDE_Form, BDE_FormAttributes } from "./BDE_Form";
|
|
5
|
+
export { BDE_List, BDE_ListAttributes } from "./BDE_List";
|
|
6
|
+
export { BDE_ListEntry, BDE_ListEntryAttributes } from "./BDE_ListEntry";
|
|
7
|
+
export { BDE_Page, BDE_PageAttributes } from "./BDE_Page";
|
|
8
|
+
export { BDE_Result, BDE_ResultAttributes } from "./BDE_Result";
|
|
9
|
+
export { BDE_Unit, BDE_UnitAttributes } from "./BDE_Unit";
|
|
4
10
|
export { Config, ConfigAttributes } from "./Config";
|
|
5
11
|
export { Dashboard, DashboardAttributes } from "./Dashboard";
|
|
6
12
|
export { NavigationGroup, NavigationGroupAttributes } from "./NavigationGroup";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openinc/parse-server-opendash",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.2",
|
|
4
4
|
"description": "Parse Server Cloud Code for open.DASH",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"parse",
|
|
@@ -21,10 +21,12 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@openinc/parse-server-schema": "^1.3.1",
|
|
23
23
|
"fast-deep-equal": "^3.1.3",
|
|
24
|
+
"jsonwebtoken": "^8.5.1",
|
|
24
25
|
"node-fetch": "^2.6.1",
|
|
25
26
|
"web-push": "^3.4.4"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
29
|
+
"@types/jsonwebtoken": "^8.5.6",
|
|
28
30
|
"@types/node": "^15.0.2",
|
|
29
31
|
"@types/node-fetch": "^2.5.10",
|
|
30
32
|
"@types/parse": "^2.18.6",
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fields": {
|
|
3
|
+
"name": {
|
|
4
|
+
"type": "String"
|
|
5
|
+
},
|
|
6
|
+
"RID": {
|
|
7
|
+
"type": "String"
|
|
8
|
+
},
|
|
9
|
+
"form": {
|
|
10
|
+
"type": "Object"
|
|
11
|
+
},
|
|
12
|
+
"entries": {
|
|
13
|
+
"type": "Array"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"classLevelPermissions": {
|
|
17
|
+
"find": {
|
|
18
|
+
"role:user": true
|
|
19
|
+
},
|
|
20
|
+
"count": {},
|
|
21
|
+
"get": {
|
|
22
|
+
"role:user": true
|
|
23
|
+
},
|
|
24
|
+
"create": {
|
|
25
|
+
"role:user": true
|
|
26
|
+
},
|
|
27
|
+
"update": {
|
|
28
|
+
"role:user": true
|
|
29
|
+
},
|
|
30
|
+
"delete": {
|
|
31
|
+
"role:user": true
|
|
32
|
+
},
|
|
33
|
+
"addField": {
|
|
34
|
+
"*": true,
|
|
35
|
+
"role:user": true
|
|
36
|
+
},
|
|
37
|
+
"protectedFields": {}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fields": {
|
|
3
|
+
"list": {
|
|
4
|
+
"type": "String",
|
|
5
|
+
"required": true
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
"classLevelPermissions": {
|
|
9
|
+
"find": {
|
|
10
|
+
"*": true
|
|
11
|
+
},
|
|
12
|
+
"count": {
|
|
13
|
+
"*": true
|
|
14
|
+
},
|
|
15
|
+
"get": {
|
|
16
|
+
"*": true
|
|
17
|
+
},
|
|
18
|
+
"create": {
|
|
19
|
+
"*": true
|
|
20
|
+
},
|
|
21
|
+
"update": {
|
|
22
|
+
"*": true
|
|
23
|
+
},
|
|
24
|
+
"delete": {
|
|
25
|
+
"*": true
|
|
26
|
+
},
|
|
27
|
+
"addField": {
|
|
28
|
+
"*": true
|
|
29
|
+
},
|
|
30
|
+
"protectedFields": {
|
|
31
|
+
"*": []
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fields": {
|
|
3
|
+
"key": {
|
|
4
|
+
"type": "String",
|
|
5
|
+
"required": true
|
|
6
|
+
},
|
|
7
|
+
"value": {
|
|
8
|
+
"type": "String",
|
|
9
|
+
"required": true
|
|
10
|
+
},
|
|
11
|
+
"list": {
|
|
12
|
+
"type": "Pointer",
|
|
13
|
+
"targetClass": "{{PREFIX}}BDE_List",
|
|
14
|
+
"required": true
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"classLevelPermissions": {
|
|
18
|
+
"find": {
|
|
19
|
+
"*": true
|
|
20
|
+
},
|
|
21
|
+
"count": {
|
|
22
|
+
"*": true
|
|
23
|
+
},
|
|
24
|
+
"get": {
|
|
25
|
+
"*": true
|
|
26
|
+
},
|
|
27
|
+
"create": {
|
|
28
|
+
"*": true
|
|
29
|
+
},
|
|
30
|
+
"update": {
|
|
31
|
+
"*": true
|
|
32
|
+
},
|
|
33
|
+
"delete": {
|
|
34
|
+
"*": true
|
|
35
|
+
},
|
|
36
|
+
"addField": {
|
|
37
|
+
"*": true
|
|
38
|
+
},
|
|
39
|
+
"protectedFields": {
|
|
40
|
+
"*": []
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fields": {
|
|
3
|
+
"pageID": {
|
|
4
|
+
"type": "String"
|
|
5
|
+
},
|
|
6
|
+
"data": {
|
|
7
|
+
"type": "Object"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"classLevelPermissions": {
|
|
11
|
+
"find": {
|
|
12
|
+
"*": true
|
|
13
|
+
},
|
|
14
|
+
"count": {
|
|
15
|
+
"*": true
|
|
16
|
+
},
|
|
17
|
+
"get": {
|
|
18
|
+
"*": true
|
|
19
|
+
},
|
|
20
|
+
"create": {
|
|
21
|
+
"*": true
|
|
22
|
+
},
|
|
23
|
+
"update": {
|
|
24
|
+
"*": true
|
|
25
|
+
},
|
|
26
|
+
"delete": {
|
|
27
|
+
"*": true
|
|
28
|
+
},
|
|
29
|
+
"addField": {
|
|
30
|
+
"*": true
|
|
31
|
+
},
|
|
32
|
+
"protectedFields": {
|
|
33
|
+
"*": []
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fields": {
|
|
3
|
+
"result": {
|
|
4
|
+
"type": "Object"
|
|
5
|
+
},
|
|
6
|
+
"rueckmeldeUnit": {
|
|
7
|
+
"type": "String"
|
|
8
|
+
},
|
|
9
|
+
"RID": {
|
|
10
|
+
"type": "String"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"classLevelPermissions": {
|
|
14
|
+
"find": {
|
|
15
|
+
"*": true
|
|
16
|
+
},
|
|
17
|
+
"count": {
|
|
18
|
+
"*": true
|
|
19
|
+
},
|
|
20
|
+
"get": {
|
|
21
|
+
"*": true
|
|
22
|
+
},
|
|
23
|
+
"create": {
|
|
24
|
+
"*": true
|
|
25
|
+
},
|
|
26
|
+
"update": {
|
|
27
|
+
"*": true
|
|
28
|
+
},
|
|
29
|
+
"delete": {
|
|
30
|
+
"*": true
|
|
31
|
+
},
|
|
32
|
+
"addField": {
|
|
33
|
+
"*": true
|
|
34
|
+
},
|
|
35
|
+
"protectedFields": {
|
|
36
|
+
"*": []
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fields": {
|
|
3
|
+
"name": {
|
|
4
|
+
"type": "String"
|
|
5
|
+
},
|
|
6
|
+
"forms": {
|
|
7
|
+
"type": "Relation",
|
|
8
|
+
"targetClass": "{{PREFIX}}BDE_Form"
|
|
9
|
+
},
|
|
10
|
+
"image": {
|
|
11
|
+
"type": "File"
|
|
12
|
+
},
|
|
13
|
+
"source": {
|
|
14
|
+
"type": "String"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"classLevelPermissions": {
|
|
18
|
+
"find": {
|
|
19
|
+
"role:user": true
|
|
20
|
+
},
|
|
21
|
+
"count": {},
|
|
22
|
+
"get": {
|
|
23
|
+
"role:user": true
|
|
24
|
+
},
|
|
25
|
+
"create": {
|
|
26
|
+
"role:user": true
|
|
27
|
+
},
|
|
28
|
+
"update": {
|
|
29
|
+
"role:user": true
|
|
30
|
+
},
|
|
31
|
+
"delete": {
|
|
32
|
+
"role:user": true
|
|
33
|
+
},
|
|
34
|
+
"addField": {
|
|
35
|
+
"*": true,
|
|
36
|
+
"role:user": true
|
|
37
|
+
},
|
|
38
|
+
"protectedFields": {}
|
|
39
|
+
}
|
|
40
|
+
}
|