@magda/typescript-common 2.3.0-alpha.0 → 2.3.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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AccessControlAspect } from "../registry/model";
|
|
1
2
|
declare global {
|
|
2
3
|
namespace Express {
|
|
3
4
|
/**
|
|
@@ -132,11 +133,7 @@ export interface UserToken {
|
|
|
132
133
|
* i.e. set `input.user` to unknown then calculate residual rules via partial evaluation.
|
|
133
134
|
*/
|
|
134
135
|
export interface AccessControlMetaData {
|
|
135
|
-
accessControl?:
|
|
136
|
-
ownerId?: string;
|
|
137
|
-
orgUnitId?: string;
|
|
138
|
-
preAuthorisedPermissionIds?: string[];
|
|
139
|
-
};
|
|
136
|
+
accessControl?: AccessControlAspect;
|
|
140
137
|
}
|
|
141
138
|
export interface CreateAccessGroupRequestBodyType {
|
|
142
139
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magda/typescript-common",
|
|
3
3
|
"description": "Common TypeScript code shared between components.",
|
|
4
|
-
"version": "2.3.0
|
|
4
|
+
"version": "2.3.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"prebuild": "rimraf dist tsconfig.tsbuildinfo",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"release": "npm publish || echo \"Skip releasing npm package @magda/typescript-common.\""
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@magda/registry-aspects": "^2.3.0
|
|
18
|
-
"@magda/scripts": "^2.3.0
|
|
17
|
+
"@magda/registry-aspects": "^2.3.0",
|
|
18
|
+
"@magda/scripts": "^2.3.0",
|
|
19
19
|
"@types/chai": "^4.0.0",
|
|
20
20
|
"@types/chai-as-promised": "^7.1.0",
|
|
21
21
|
"@types/cross-spawn": "^6.0.1",
|