@appsemble/utils 0.32.2-test.0 → 0.32.2-test.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/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#  Appsemble Utilities
|
|
2
2
|
|
|
3
3
|
> Internal utility functions used across multiple Appsemble projects.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/utils)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.32.2-test.2)
|
|
7
7
|
[](https://prettier.io)
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
@@ -26,5 +26,5 @@ not guaranteed.
|
|
|
26
26
|
|
|
27
27
|
## License
|
|
28
28
|
|
|
29
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.32.2-test.
|
|
29
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.32.2-test.2/LICENSE.md) ©
|
|
30
30
|
[Appsemble](https://appsemble.com)
|
|
@@ -17,5 +17,13 @@ export const pathItems = {
|
|
|
17
17
|
},
|
|
18
18
|
security: [{ studio: [] }],
|
|
19
19
|
},
|
|
20
|
+
delete: {
|
|
21
|
+
description: 'Delete all completed trainings from user',
|
|
22
|
+
operationId: 'resetTrainingProgress',
|
|
23
|
+
responses: {
|
|
24
|
+
204: { description: 'Trainings successfully reset ' },
|
|
25
|
+
},
|
|
26
|
+
security: [{ studio: [] }],
|
|
27
|
+
},
|
|
20
28
|
};
|
|
21
29
|
//# sourceMappingURL=completedTrainings.js.map
|
package/authorization.js
CHANGED
|
@@ -8,8 +8,8 @@ function checkAppPermissions(acquiredPermissions, requiredPermissions) {
|
|
|
8
8
|
return true;
|
|
9
9
|
}
|
|
10
10
|
if (customAppResourcePermissionPattern.test(p)) {
|
|
11
|
-
const [, , resourceAction] = p.split(':');
|
|
12
|
-
return acquiredPermissions.includes(`$resource:all:${resourceAction}`);
|
|
11
|
+
const [, , resourceAction, resourceExtenstion] = p.split(':');
|
|
12
|
+
return acquiredPermissions.includes(`$resource:all:${resourceAction}${resourceExtenstion ? `:${resourceExtenstion}` : ''}`);
|
|
13
13
|
}
|
|
14
14
|
if (customAppOwnResourcePermissionPattern.test(p)) {
|
|
15
15
|
const [, resourceName, , resourceAction] = p.split(':');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/utils",
|
|
3
|
-
"version": "0.32.2-test.
|
|
3
|
+
"version": "0.32.2-test.2",
|
|
4
4
|
"description": "Utility functions used in Appsemble internally",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"test": "vitest"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@appsemble/types": "0.32.2-test.
|
|
42
|
+
"@appsemble/types": "0.32.2-test.2",
|
|
43
43
|
"@odata/parser": "^0.2.14",
|
|
44
44
|
"axios": "^1.0.0",
|
|
45
45
|
"cron-parser": "^4.0.0",
|