@intuitionrobotics/permissions 0.41.76 → 0.42.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.
|
@@ -39,7 +39,7 @@ class ServerApi_AssertPermissions extends backend_1.ServerApi {
|
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
const account = yield backend_2.AccountModule.validateSession(request);
|
|
41
41
|
yield permissions_assert_1.PermissionsAssert.assertUserPermissions(body.projectId, body.path, account._id, body.requestCustomField);
|
|
42
|
-
return
|
|
42
|
+
return account;
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/permissions/assert.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;AAEH,qEAGiD;AAGjD,qEAAsE;AAKtE,kEAA2D;AAC3D,4EAAsE;AAGtE,MAAM,2BACL,SAAQ,mBAA0C;IAElD;QACC,KAAK,CAAC,yBAAU,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC;QAC7C,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC1B,CAAC;IAEe,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAA8B;;YACtH,MAAM,OAAO,GAAG,MAAM,uBAAa,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;YAC7D,MAAM,sCAAiB,CAAC,qBAAqB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;YAC/G,OAAO,
|
|
1
|
+
{"version":3,"file":"assert.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/permissions/assert.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;AAEH,qEAGiD;AAGjD,qEAAsE;AAKtE,kEAA2D;AAC3D,4EAAsE;AAGtE,MAAM,2BACL,SAAQ,mBAA0C;IAElD;QACC,KAAK,CAAC,yBAAU,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC;QAC7C,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC1B,CAAC;IAEe,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAA8B;;YACtH,MAAM,OAAO,GAAG,MAAM,uBAAa,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;YAC7D,MAAM,sCAAiB,CAAC,qBAAqB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;YAC/G,OAAO,OAAO,CAAC;QAChB,CAAC;KAAA;CACD;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,2BAA2B,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intuitionrobotics/permissions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.0",
|
|
4
4
|
"description": "Permissions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"IR",
|
|
@@ -31,28 +31,26 @@
|
|
|
31
31
|
"build": "tsc"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@intuitionrobotics/ts-common": "~0.
|
|
34
|
+
"@intuitionrobotics/ts-common": "~0.42.0",
|
|
35
35
|
"moment": "^2.24.0",
|
|
36
36
|
"saml2-js": "^2.0.5"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@intuitionrobotics/db-api-generator": "~0.
|
|
40
|
-
"@intuitionrobotics/firebase": "~0.
|
|
41
|
-
"@intuitionrobotics/storm": "~0.
|
|
42
|
-
"@intuitionrobotics/testelot": "~0.
|
|
43
|
-
"@intuitionrobotics/thunderstorm": "~0.
|
|
44
|
-
"@intuitionrobotics/user-account": "~0.
|
|
39
|
+
"@intuitionrobotics/db-api-generator": "~0.42.0",
|
|
40
|
+
"@intuitionrobotics/firebase": "~0.42.0",
|
|
41
|
+
"@intuitionrobotics/storm": "~0.42.0",
|
|
42
|
+
"@intuitionrobotics/testelot": "~0.42.0",
|
|
43
|
+
"@intuitionrobotics/thunderstorm": "~0.42.0",
|
|
44
|
+
"@intuitionrobotics/user-account": "~0.42.0",
|
|
45
45
|
"@types/express": "^4.16.1",
|
|
46
46
|
"@types/history": "^4.7.2",
|
|
47
47
|
"@types/react": "^16.8.7",
|
|
48
|
-
"@types/request": "^2.48.1",
|
|
49
48
|
"@types/saml2-js": "^1.6.8",
|
|
50
49
|
"express": "^4.16.4",
|
|
51
50
|
"firebase": "^9.9.1",
|
|
52
51
|
"firebase-admin": "^11.0.0",
|
|
53
52
|
"firebase-functions": "^3.22.0",
|
|
54
53
|
"react": "^16.0.0",
|
|
55
|
-
"request": "^2.88.0",
|
|
56
54
|
"ts-node": "^8.6.2",
|
|
57
55
|
"tslint": "^5.16.0",
|
|
58
56
|
"typescript": "~4.1.0",
|
package/shared/apis.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ApiWithBody, ApiWithQuery } from "@intuitionrobotics/thunderstorm";
|
|
|
2
2
|
import { StringMap } from "@intuitionrobotics/ts-common";
|
|
3
3
|
import { DB_PermissionProject } from "./manager-types";
|
|
4
4
|
import { User_Group } from "./assign-types";
|
|
5
|
+
import { UI_Account } from "@intuitionrobotics/user-account";
|
|
5
6
|
export declare type UserUrlsPermissions = {
|
|
6
7
|
[url: string]: boolean;
|
|
7
8
|
};
|
|
@@ -54,9 +55,7 @@ export declare type Request_RegisterProject = {
|
|
|
54
55
|
predefinedGroups?: PredefinedGroup[];
|
|
55
56
|
predefinedUser?: PredefinedUser;
|
|
56
57
|
};
|
|
57
|
-
export declare type Response_User =
|
|
58
|
-
userId: string;
|
|
59
|
-
};
|
|
58
|
+
export declare type Response_User = UI_Account;
|
|
60
59
|
export declare type PermissionsApi_AssignAppPermissions = ApiWithBody<"/v1/permissions/assign/app-permissions", Request_AssignAppPermissions, void>;
|
|
61
60
|
export declare type PermissionsApi_ShareWithUser = ApiWithBody<"/v1/permissions/share-with-user", Request_AssignAppPermissions, void>;
|
|
62
61
|
export declare type PermissionsApi_VerifyPermissionsGrantingAllowed = ApiWithBody<"/v1/permissions/verify-permissions-granting-allowed", User_Group, void>;
|