@intuitionrobotics/permissions 0.45.0 → 0.45.3
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/app-backend/api/v1/permissions/_imports.d.ts +2 -0
- package/app-backend/api/v1/permissions/_imports.js +32 -0
- package/app-backend/api/v1/permissions/_imports.js.map +1 -0
- package/app-backend/api/v1/permissions/_permissions.js +19 -2
- package/app-backend/api/v1/permissions/_permissions.js.map +1 -1
- package/app-backend/api/v1/permissions/assert.js +23 -6
- package/app-backend/api/v1/permissions/assert.js.map +1 -1
- package/app-backend/api/v1/permissions/assign/apis.js +22 -2
- package/app-backend/api/v1/permissions/assign/apis.js.map +1 -1
- package/app-backend/api/v1/permissions/assign/app-permissions.js +24 -7
- package/app-backend/api/v1/permissions/assign/app-permissions.js.map +1 -1
- package/app-backend/api/v1/permissions/manage/apis.js +25 -7
- package/app-backend/api/v1/permissions/manage/apis.js.map +1 -1
- package/app-backend/api/v1/permissions/tags/apis.js +20 -2
- package/app-backend/api/v1/permissions/tags/apis.js.map +1 -1
- package/app-backend/api/v1/permissions/user-urls-permissions.js +23 -6
- package/app-backend/api/v1/permissions/user-urls-permissions.js.map +1 -1
- package/app-backend/api/v1/register/_register-project.js +19 -2
- package/app-backend/api/v1/register/_register-project.js.map +1 -1
- package/app-backend/api/v1/register/register-external-project.d.ts +2 -3
- package/app-backend/api/v1/register/register-external-project.js +22 -6
- package/app-backend/api/v1/register/register-external-project.js.map +1 -1
- package/app-backend/api/v1/register/register-project.d.ts +2 -3
- package/app-backend/api/v1/register/register-project.js +23 -6
- package/app-backend/api/v1/register/register-project.js.map +1 -1
- package/app-backend/api/v1/test/_imports.d.ts +1 -0
- package/app-backend/api/v1/test/_imports.js +23 -0
- package/app-backend/api/v1/test/_imports.js.map +1 -0
- package/app-backend/api/v1/test/_test-permissions.js +19 -2
- package/app-backend/api/v1/test/_test-permissions.js.map +1 -1
- package/app-backend/api/v1/test/test-permissions.js +23 -6
- package/app-backend/api/v1/test/test-permissions.js.map +1 -1
- package/app-backend/api/v1/user-custom-fields/_user-custom-fields.js +19 -2
- package/app-backend/api/v1/user-custom-fields/_user-custom-fields.js.map +1 -1
- package/app-backend/api/v1/user-custom-fields/user-cf-by-share-groups.d.ts +6 -1
- package/app-backend/api/v1/user-custom-fields/user-cf-by-share-groups.js +26 -6
- package/app-backend/api/v1/user-custom-fields/user-cf-by-share-groups.js.map +1 -1
- package/app-backend/api/v1/user-custom-fields/users-cf-by-share-groups.d.ts +6 -1
- package/app-backend/api/v1/user-custom-fields/users-cf-by-share-groups.js +27 -8
- package/app-backend/api/v1/user-custom-fields/users-cf-by-share-groups.js.map +1 -1
- package/app-backend/benchmark/permission-user-assert-benchmark.js +26 -15
- package/app-backend/benchmark/permission-user-assert-benchmark.js.map +1 -1
- package/app-backend/core/module-pack.d.ts +6 -1
- package/app-backend/core/module-pack.js +32 -0
- package/app-backend/core/module-pack.js.map +1 -1
- package/app-backend/modules/PermissionsModule.d.ts +4 -5
- package/app-backend/modules/PermissionsModule.js +56 -23
- package/app-backend/modules/PermissionsModule.js.map +1 -1
- package/app-backend/modules/TagsModule.d.ts +5 -6
- package/app-backend/modules/TagsModule.js +9 -10
- package/app-backend/modules/TagsModule.js.map +1 -1
- package/app-backend/modules/{consts.d.ts → _imports.d.ts} +3 -0
- package/app-backend/modules/_imports.js +40 -0
- package/app-backend/modules/_imports.js.map +1 -0
- package/app-backend/modules/db-types/assign.d.ts +9 -10
- package/app-backend/modules/db-types/assign.js +68 -62
- package/app-backend/modules/db-types/assign.js.map +1 -1
- package/app-backend/modules/db-types/managment.d.ts +8 -10
- package/app-backend/modules/db-types/managment.js +58 -44
- package/app-backend/modules/db-types/managment.js.map +1 -1
- package/app-backend/modules/permissions-assert.d.ts +3 -5
- package/app-backend/modules/permissions-assert.js +45 -42
- package/app-backend/modules/permissions-assert.js.map +1 -1
- package/app-backend/modules/permissions-share.d.ts +2 -2
- package/app-backend/modules/permissions-share.js +2 -2
- package/app-backend/modules/permissions-share.js.map +1 -1
- package/app-frontend/core/module-pack.d.ts +7 -0
- package/app-frontend/core/module-pack.js +34 -0
- package/app-frontend/core/module-pack.js.map +1 -1
- package/app-frontend/modules/PermissionsComponent.d.ts +1 -1
- package/app-frontend/modules/PermissionsComponent.js +2 -2
- package/app-frontend/modules/PermissionsComponent.js.map +1 -1
- package/app-frontend/modules/PermissionsModuleFE.d.ts +1 -1
- package/app-frontend/modules/PermissionsModuleFE.js +8 -10
- package/app-frontend/modules/PermissionsModuleFE.js.map +1 -1
- package/app-frontend/modules/assign/ApiCaller_PermissionsGroup.d.ts +2 -2
- package/app-frontend/modules/assign/ApiCaller_PermissionsGroup.js +4 -4
- package/app-frontend/modules/assign/ApiCaller_PermissionsGroup.js.map +1 -1
- package/app-frontend/modules/assign/ApiCaller_PermissionsUser.d.ts +2 -2
- package/app-frontend/modules/assign/ApiCaller_PermissionsUser.js +21 -4
- package/app-frontend/modules/assign/ApiCaller_PermissionsUser.js.map +1 -1
- package/app-frontend/modules/manage/ApiCaller_PermissionsApi.d.ts +2 -2
- package/app-frontend/modules/manage/ApiCaller_PermissionsApi.js +21 -4
- package/app-frontend/modules/manage/ApiCaller_PermissionsApi.js.map +1 -1
- package/app-frontend/modules/manage/ApiCaller_PermissionsDomain.d.ts +2 -2
- package/app-frontend/modules/manage/ApiCaller_PermissionsDomain.js +21 -4
- package/app-frontend/modules/manage/ApiCaller_PermissionsDomain.js.map +1 -1
- package/app-frontend/modules/manage/ApiCaller_PermissionsLevel.d.ts +2 -2
- package/app-frontend/modules/manage/ApiCaller_PermissionsLevel.js +21 -4
- package/app-frontend/modules/manage/ApiCaller_PermissionsLevel.js.map +1 -1
- package/app-frontend/modules/manage/ApiCaller_PermissionsProject.d.ts +2 -2
- package/app-frontend/modules/manage/ApiCaller_PermissionsProject.js +21 -4
- package/app-frontend/modules/manage/ApiCaller_PermissionsProject.js.map +1 -1
- package/app-frontend/modules/tags/ApiCaller_PermissionsTags.d.ts +2 -2
- package/app-frontend/modules/tags/ApiCaller_PermissionsTags.js +4 -4
- package/app-frontend/modules/tags/ApiCaller_PermissionsTags.js.map +1 -1
- package/backend.d.ts +1 -0
- package/backend.js +31 -0
- package/backend.js.map +1 -0
- package/frontend.d.ts +3 -0
- package/frontend.js +33 -0
- package/frontend.js.map +1 -0
- package/index.d.ts +3 -0
- package/index.js +31 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/shared/apis.d.ts +3 -3
- package/shared/apis.js +17 -0
- package/shared/apis.js.map +1 -1
- package/shared/assign-types.d.ts +2 -1
- package/shared/assign-types.js +17 -0
- package/shared/assign-types.js.map +1 -1
- package/shared/manager-types.d.ts +2 -2
- package/shared/manager-types.js +17 -0
- package/shared/manager-types.js.map +1 -1
- package/app-backend/modules/consts.js +0 -10
- package/app-backend/modules/consts.js.map +0 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* ts-common is the basic building blocks of our typescript projects
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
19
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
20
|
+
if (k2 === undefined) k2 = k;
|
|
21
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
27
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
__exportStar(require("../../../../index"), exports);
|
|
31
|
+
__exportStar(require("../../../core/module-pack"), exports);
|
|
32
|
+
//# sourceMappingURL=_imports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_imports.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/permissions/_imports.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH,oDAAkC;AAClC,4DAA0C"}
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* ts-common is the basic building blocks of our typescript projects
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
module.exports = new
|
|
20
|
+
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
21
|
+
module.exports = new backend_1.RouteResolver(require, __dirname);
|
|
5
22
|
//# sourceMappingURL=_permissions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_permissions.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/permissions/_permissions.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"_permissions.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/permissions/_permissions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAEH,qEAAsE;AAEtE,MAAM,CAAC,OAAO,GAAG,IAAI,uBAAa,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* ts-common is the basic building blocks of our typescript projects
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
20
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
21
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -9,18 +26,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
26
|
});
|
|
10
27
|
};
|
|
11
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
29
|
+
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
30
|
+
const backend_2 = require("@intuitionrobotics/user-account/backend");
|
|
31
|
+
const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
|
|
15
32
|
const permissions_assert_1 = require("../../../modules/permissions-assert");
|
|
16
|
-
class ServerApi_AssertPermissions extends
|
|
33
|
+
class ServerApi_AssertPermissions extends backend_1.ServerApi {
|
|
17
34
|
constructor() {
|
|
18
|
-
super(
|
|
35
|
+
super(thunderstorm_1.HttpMethod.POST, "assert-user-access");
|
|
19
36
|
this.dontPrintResponse();
|
|
20
37
|
}
|
|
21
38
|
process(request, response, queryParams, body) {
|
|
22
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const account = yield
|
|
40
|
+
const account = yield backend_2.AccountModule.validateSession(request, this.getScopes(), response);
|
|
24
41
|
yield permissions_assert_1.PermissionsAssert.assertUserPermissions(body.projectId, body.path, account._id, body.requestCustomField);
|
|
25
42
|
return account;
|
|
26
43
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/permissions/assert.ts"],"names":[],"mappings":";;;;;;;;;;;
|
|
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,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,QAAQ,CAAC,CAAC;YACzF,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"}
|
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* ts-common is the basic building blocks of our typescript projects
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
20
|
+
const _imports_1 = require("../_imports");
|
|
21
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
22
|
+
const assignmentApis = [];
|
|
23
|
+
ts_common_1.addAllItemToArray(assignmentApis, _imports_1.GroupPermissionsDB.apis());
|
|
24
|
+
ts_common_1.addAllItemToArray(assignmentApis, _imports_1.UserPermissionsDB.apis());
|
|
5
25
|
module.exports = assignmentApis;
|
|
6
26
|
//# sourceMappingURL=apis.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apis.js","sourceRoot":"","sources":["../../../../../../src/main/app-backend/api/v1/permissions/assign/apis.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"apis.js","sourceRoot":"","sources":["../../../../../../src/main/app-backend/api/v1/permissions/assign/apis.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAEH,0CAGqB;AACrB,4DAA+D;AAI/D,MAAM,cAAc,GAAqB,EAAE,CAAC;AAE5C,6BAAiB,CAAC,cAAc,EAAE,6BAAkB,CAAC,IAAI,EAAE,CAAC,CAAC;AAC7D,6BAAiB,CAAC,cAAc,EAAE,4BAAiB,CAAC,IAAI,EAAE,CAAC,CAAC;AAE5D,MAAM,CAAC,OAAO,GAAG,cAAc,CAAC"}
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* ts-common is the basic building blocks of our typescript projects
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
20
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
21
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -9,20 +26,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
26
|
});
|
|
10
27
|
};
|
|
11
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const
|
|
13
|
-
const
|
|
29
|
+
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
30
|
+
const _imports_1 = require("../_imports");
|
|
31
|
+
const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
|
|
14
32
|
const AccountModule_1 = require("@intuitionrobotics/user-account/app-backend/modules/AccountModule");
|
|
15
|
-
|
|
16
|
-
class ServerApi_UserUrlsPermissions extends server_api_1.ServerApi {
|
|
33
|
+
class ServerApi_UserUrlsPermissions extends backend_1.ServerApi {
|
|
17
34
|
constructor() {
|
|
18
|
-
super(
|
|
35
|
+
super(thunderstorm_1.HttpMethod.POST, "app-permissions");
|
|
19
36
|
this.dontPrintResponse();
|
|
20
37
|
}
|
|
21
38
|
process(request, response, queryParams, body) {
|
|
22
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
40
|
// TODO add to the request body the api that wants to use this feature.. in order to assert user permissions to perform an action
|
|
24
41
|
// TODO and save our ass from a potential application security bugs
|
|
25
|
-
const account = yield AccountModule_1.AccountModule.validateSession(request, response);
|
|
42
|
+
const account = yield AccountModule_1.AccountModule.validateSession(request, this.getScopes(), response);
|
|
26
43
|
let assignAppPermissions;
|
|
27
44
|
if (body.appAccountId)
|
|
28
45
|
// when creating project
|
|
@@ -30,7 +47,7 @@ class ServerApi_UserUrlsPermissions extends server_api_1.ServerApi {
|
|
|
30
47
|
else
|
|
31
48
|
// when I share with you
|
|
32
49
|
assignAppPermissions = Object.assign(Object.assign({}, body), { granterUserId: account._id, sharedUserIds: body.sharedUserIds });
|
|
33
|
-
yield
|
|
50
|
+
yield _imports_1.UserPermissionsDB.assignAppPermissions(assignAppPermissions, request);
|
|
34
51
|
});
|
|
35
52
|
}
|
|
36
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-permissions.js","sourceRoot":"","sources":["../../../../../../src/main/app-backend/api/v1/permissions/assign/app-permissions.ts"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"app-permissions.js","sourceRoot":"","sources":["../../../../../../src/main/app-backend/api/v1/permissions/assign/app-permissions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;AAEH,qEAIiD;AACjD,0CAIqB;AACrB,kEAGyC;AACzC,qGAAgG;AAGhG,MAAM,6BACL,SAAQ,mBAA8C;IAEtD;QACC,KAAK,CAAC,yBAAU,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QAC1C,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC1B,CAAC;IAEe,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAwB,EAAE,IAAkC;;YACnI,iIAAiI;YACjI,mEAAmE;YACnE,MAAM,OAAO,GAAG,MAAM,6BAAa,CAAC,eAAe,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,QAAQ,CAAC,CAAC;YAEzF,IAAI,oBAAoB,CAAC;YACzB,IAAI,IAAI,CAAC,YAAY;gBACpB,wBAAwB;gBACxB,oBAAoB,mCAAO,IAAI,KAAE,aAAa,EAAE,IAAI,CAAC,YAAY,EAAE,aAAa,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,GAAC,CAAC;;gBAEjG,wBAAwB;gBACxB,oBAAoB,mCAAO,IAAI,KAAE,aAAa,EAAE,OAAO,CAAC,GAAG,EAAE,aAAa,EAAE,IAAI,CAAC,aAAa,GAAC,CAAC;YAEjG,MAAM,4BAAiB,CAAC,oBAAoB,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;QAC7E,CAAC;KAAA;CACD;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,6BAA6B,EAAE,CAAC"}
|
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* ts-common is the basic building blocks of our typescript projects
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
20
|
+
const _imports_1 = require("../_imports");
|
|
21
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
22
|
+
const managementApis = [];
|
|
23
|
+
ts_common_1.addAllItemToArray(managementApis, _imports_1.ProjectPermissionsDB.apis());
|
|
24
|
+
ts_common_1.addAllItemToArray(managementApis, _imports_1.DomainPermissionsDB.apis());
|
|
25
|
+
ts_common_1.addAllItemToArray(managementApis, _imports_1.AccessLevelPermissionsDB.apis());
|
|
26
|
+
ts_common_1.addAllItemToArray(managementApis, _imports_1.ApiPermissionsDB.apis());
|
|
27
|
+
module.exports = managementApis;
|
|
10
28
|
//# sourceMappingURL=apis.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apis.js","sourceRoot":"","sources":["../../../../../../src/main/app-backend/api/v1/permissions/manage/apis.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"apis.js","sourceRoot":"","sources":["../../../../../../src/main/app-backend/api/v1/permissions/manage/apis.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAEH,0CAKqB;AACrB,4DAA+D;AAI/D,MAAM,cAAc,GAAqB,EAAE,CAAC;AAE5C,6BAAiB,CAAC,cAAc,EAAE,+BAAoB,CAAC,IAAI,EAAE,CAAC,CAAC;AAC/D,6BAAiB,CAAC,cAAc,EAAE,8BAAmB,CAAC,IAAI,EAAE,CAAC,CAAC;AAC9D,6BAAiB,CAAC,cAAc,EAAE,mCAAwB,CAAC,IAAI,EAAE,CAAC,CAAC;AACnE,6BAAiB,CAAC,cAAc,EAAE,2BAAgB,CAAC,IAAI,EAAE,CAAC,CAAC;AAE3D,MAAM,CAAC,OAAO,GAAG,cAAc,CAAC"}
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Permissions management system, define access level for each of
|
|
4
|
+
* your server apis, and restrict users by giving them access levels
|
|
5
|
+
*
|
|
6
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/
|
|
2
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
module.exports =
|
|
21
|
+
const _imports_1 = require("../_imports");
|
|
22
|
+
module.exports = _imports_1.TagsDB.apis();
|
|
5
23
|
//# sourceMappingURL=apis.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apis.js","sourceRoot":"","sources":["../../../../../../src/main/app-backend/api/v1/permissions/tags/apis.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"apis.js","sourceRoot":"","sources":["../../../../../../src/main/app-backend/api/v1/permissions/tags/apis.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAEH,0CAAmC;AAEnC,MAAM,CAAC,OAAO,GAAG,iBAAM,CAAC,IAAI,EAAE,CAAC"}
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* ts-common is the basic building blocks of our typescript projects
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
20
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
21
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -9,18 +26,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
26
|
});
|
|
10
27
|
};
|
|
11
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
29
|
+
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
30
|
+
const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
|
|
31
|
+
const backend_2 = require("@intuitionrobotics/user-account/backend");
|
|
15
32
|
const PermissionsModule_1 = require("../../../modules/PermissionsModule");
|
|
16
|
-
class ServerApi_UserUrlsPermissions extends
|
|
33
|
+
class ServerApi_UserUrlsPermissions extends backend_1.ServerApi {
|
|
17
34
|
constructor() {
|
|
18
|
-
super(
|
|
35
|
+
super(thunderstorm_1.HttpMethod.POST, "user-urls-permissions");
|
|
19
36
|
this.dontPrintResponse();
|
|
20
37
|
}
|
|
21
38
|
process(request, response, queryParams, body) {
|
|
22
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const account = yield
|
|
40
|
+
const account = yield backend_2.AccountModule.validateSession(request, this.getScopes(), response);
|
|
24
41
|
return PermissionsModule_1.PermissionsModule.getUserUrlsPermissions(body.projectId, body.urls, account._id, body.requestCustomField);
|
|
25
42
|
});
|
|
26
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-urls-permissions.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/permissions/user-urls-permissions.ts"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"user-urls-permissions.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/permissions/user-urls-permissions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;AAEH,qEAIiD;AAKjD,kEAA2D;AAC3D,qEAAsE;AACtE,0EAAqE;AAErE,MAAM,6BACL,SAAQ,mBAA6C;IAErD;QACC,KAAK,CAAC,yBAAU,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAC;QAChD,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC1B,CAAC;IAEe,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAAiC;;YACzH,MAAM,OAAO,GAAG,MAAM,uBAAa,CAAC,eAAe,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,QAAQ,CAAC,CAAC;YACzF,OAAO,qCAAiB,CAAC,sBAAsB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAClH,CAAC;KAAA;CACD;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,6BAA6B,EAAE,CAAC"}
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* ts-common is the basic building blocks of our typescript projects
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
module.exports = new
|
|
20
|
+
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
21
|
+
module.exports = new backend_1.RouteResolver(require, __dirname);
|
|
5
22
|
//# sourceMappingURL=_register-project.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_register-project.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/register/_register-project.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"_register-project.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/register/_register-project.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAEH,qEAAsE;AAEtE,MAAM,CAAC,OAAO,GAAG,IAAI,uBAAa,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ApiResponse, ServerApi } from "@intuitionrobotics/thunderstorm/
|
|
2
|
-
import {
|
|
3
|
-
import { PermissionsApi_RegisterExternalProject, Request_RegisterProject } from "../../../../shared/apis";
|
|
1
|
+
import { ApiResponse, ExpressRequest, ServerApi } from "@intuitionrobotics/thunderstorm/backend";
|
|
2
|
+
import { PermissionsApi_RegisterExternalProject, Request_RegisterProject } from "../permissions/_imports";
|
|
4
3
|
export declare class ServerApi_RegisterExternalProject extends ServerApi<PermissionsApi_RegisterExternalProject> {
|
|
5
4
|
constructor();
|
|
6
5
|
protected process(request: ExpressRequest, response: ApiResponse, queryParams: {}, body: Request_RegisterProject): Promise<void>;
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* ts-common is the basic building blocks of our typescript projects
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
20
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
21
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,17 +27,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
27
|
};
|
|
11
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
29
|
exports.ServerApi_RegisterExternalProject = void 0;
|
|
13
|
-
const
|
|
14
|
-
const
|
|
30
|
+
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
31
|
+
const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
|
|
15
32
|
const PermissionsModule_1 = require("../../../modules/PermissionsModule");
|
|
16
|
-
|
|
17
|
-
class ServerApi_RegisterExternalProject extends server_api_1.ServerApi {
|
|
33
|
+
class ServerApi_RegisterExternalProject extends backend_1.ServerApi {
|
|
18
34
|
constructor() {
|
|
19
|
-
super(
|
|
20
|
-
this.setMiddlewares(RemoteProxy_1.RemoteProxy.Middleware);
|
|
35
|
+
super(thunderstorm_1.HttpMethod.POST, "register-external-project");
|
|
21
36
|
}
|
|
22
37
|
process(request, response, queryParams, body) {
|
|
23
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
backend_1.RemoteProxy.assertSecret(request);
|
|
24
40
|
yield PermissionsModule_1.PermissionsModule._registerProject(body);
|
|
25
41
|
});
|
|
26
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-external-project.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/register/register-external-project.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"register-external-project.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/register/register-external-project.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH,qEAA4G;AAI5G,kEAA2D;AAC3D,0EAAqE;AAGrE,MAAa,iCACT,SAAQ,mBAAiD;IAEzD;QACI,KAAK,CAAC,yBAAU,CAAC,IAAI,EAAE,2BAA2B,CAAC,CAAC;IACxD,CAAC;IAEe,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAA6B;;YAClH,qBAAW,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;YAClC,MAAM,qCAAiB,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QACnD,CAAC;KAAA;CACJ;AAXD,8EAWC;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,iCAAiC,EAAE,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ApiResponse, ServerApi } from "@intuitionrobotics/thunderstorm/
|
|
2
|
-
import {
|
|
3
|
-
import { PermissionsApi_RegisterProject } from "../../../../shared/apis";
|
|
1
|
+
import { ApiResponse, ExpressRequest, ServerApi } from "@intuitionrobotics/thunderstorm/backend";
|
|
2
|
+
import { PermissionsApi_RegisterProject } from "../permissions/_imports";
|
|
4
3
|
export declare class ServerApi_RegisterProject extends ServerApi<PermissionsApi_RegisterProject> {
|
|
5
4
|
constructor();
|
|
6
5
|
protected process(request: ExpressRequest, response: ApiResponse, queryParams: {}, body: void): Promise<void>;
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* ts-common is the basic building blocks of our typescript projects
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
20
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
21
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,17 +27,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
27
|
};
|
|
11
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
29
|
exports.ServerApi_RegisterProject = void 0;
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const Storm_1 = require("@intuitionrobotics/thunderstorm/app-backend/core/Storm");
|
|
30
|
+
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
31
|
+
const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
|
|
16
32
|
const PermissionsModule_1 = require("../../../modules/PermissionsModule");
|
|
17
|
-
class ServerApi_RegisterProject extends
|
|
33
|
+
class ServerApi_RegisterProject extends backend_1.ServerApi {
|
|
18
34
|
constructor() {
|
|
19
|
-
super(
|
|
35
|
+
super(thunderstorm_1.HttpMethod.GET, "register-project");
|
|
20
36
|
}
|
|
21
37
|
process(request, response, queryParams, body) {
|
|
22
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
|
|
39
|
+
// RemoteProxy.assertSecret(request);
|
|
40
|
+
yield PermissionsModule_1.PermissionsModule.registerProject(backend_1.Storm.getInstance().getHttpServer());
|
|
24
41
|
});
|
|
25
42
|
}
|
|
26
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-project.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/register/register-project.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"register-project.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/register/register-project.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH,qEAAsG;AAItG,kEAA2D;AAC3D,0EAAqE;AAErE,MAAa,yBACT,SAAQ,mBAAyC;IAEjD;QACI,KAAK,CAAC,yBAAU,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAC;IAC9C,CAAC;IAEe,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAAU;;YAC/F,qCAAqC;YACrC,MAAM,qCAAiB,CAAC,eAAe,CAAC,eAAK,CAAC,WAAW,EAAE,CAAC,aAAa,EAAE,CAAC,CAAC;QACjF,CAAC;KAAA;CACJ;AAXD,8DAWC;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,yBAAyB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { testUserPermissionsTime } from '../../../benchmark/permission-user-assert-benchmark';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* ts-common is the basic building blocks of our typescript projects
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.testUserPermissionsTime = void 0;
|
|
21
|
+
var permission_user_assert_benchmark_1 = require("../../../benchmark/permission-user-assert-benchmark");
|
|
22
|
+
Object.defineProperty(exports, "testUserPermissionsTime", { enumerable: true, get: function () { return permission_user_assert_benchmark_1.testUserPermissionsTime; } });
|
|
23
|
+
//# sourceMappingURL=_imports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_imports.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/test/_imports.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH,wGAA4F;AAApF,2IAAA,uBAAuB,OAAA"}
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* ts-common is the basic building blocks of our typescript projects
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
module.exports = new
|
|
20
|
+
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
21
|
+
module.exports = new backend_1.RouteResolver(require, __dirname);
|
|
5
22
|
//# sourceMappingURL=_test-permissions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_test-permissions.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/test/_test-permissions.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"_test-permissions.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/test/_test-permissions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAEH,qEAAsE;AAEtE,MAAM,CAAC,OAAO,GAAG,IAAI,uBAAa,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC"}
|