@intuitionrobotics/permissions 0.46.0 → 0.47.1
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 +36 -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 +23 -6
- 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 +3 -4
- package/app-backend/api/v1/user-custom-fields/user-cf-by-share-groups.js +24 -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 +3 -4
- package/app-backend/api/v1/user-custom-fields/users-cf-by-share-groups.js +25 -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 +36 -0
- package/app-backend/core/module-pack.js.map +1 -1
- package/app-backend/modules/PermissionsModule.d.ts +5 -6
- 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 +44 -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 +67 -61
- 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 +54 -40
- package/app-backend/modules/db-types/managment.js.map +1 -1
- package/app-backend/modules/permissions-assert.d.ts +7 -9
- package/app-backend/modules/permissions-assert.js +43 -40
- 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 +38 -0
- package/app-frontend/core/module-pack.js.map +1 -1
- package/app-frontend/modules/PermissionsComponent.d.ts +2 -2
- package/app-frontend/modules/PermissionsComponent.js +2 -2
- package/app-frontend/modules/PermissionsComponent.js.map +1 -1
- package/app-frontend/modules/PermissionsModuleFE.d.ts +2 -2
- package/app-frontend/modules/PermissionsModuleFE.js +10 -12
- 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 +5 -5
- 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 +22 -5
- 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 +22 -5
- 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 +22 -5
- 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 +22 -5
- 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 +22 -5
- 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 +5 -5
- package/app-frontend/modules/tags/ApiCaller_PermissionsTags.js.map +1 -1
- package/backend.d.ts +1 -0
- package/backend.js +35 -0
- package/backend.js.map +1 -0
- package/frontend.d.ts +3 -0
- package/frontend.js +37 -0
- package/frontend.js.map +1 -0
- package/index.d.ts +3 -0
- package/index.js +35 -0
- package/index.js.map +1 -1
- package/package.json +10 -10
- package/shared/apis.d.ts +25 -25
- package/shared/apis.js +17 -0
- package/shared/apis.js.map +1 -1
- package/shared/assign-types.d.ts +9 -8
- package/shared/assign-types.js +17 -0
- package/shared/assign-types.js.map +1 -1
- package/shared/manager-types.d.ts +10 -10
- 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
package/index.js
CHANGED
|
@@ -1,2 +1,37 @@
|
|
|
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
|
+
*/
|
|
19
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
20
|
+
if (k2 === undefined) k2 = k;
|
|
21
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
22
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
23
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
24
|
+
}
|
|
25
|
+
Object.defineProperty(o, k2, desc);
|
|
26
|
+
}) : (function(o, m, k, k2) {
|
|
27
|
+
if (k2 === undefined) k2 = k;
|
|
28
|
+
o[k2] = m[k];
|
|
29
|
+
}));
|
|
30
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
31
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
__exportStar(require("./shared/apis"), exports);
|
|
35
|
+
__exportStar(require("./shared/assign-types"), exports);
|
|
36
|
+
__exportStar(require("./shared/manager-types"), exports);
|
|
2
37
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/main/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/main/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,wDAAsC;AACtC,yDAAuC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intuitionrobotics/permissions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.1",
|
|
4
4
|
"description": "Permissions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"IR",
|
|
@@ -28,22 +28,22 @@
|
|
|
28
28
|
"main": "index.js",
|
|
29
29
|
"types": "index.d.ts",
|
|
30
30
|
"scripts": {
|
|
31
|
-
"build": "tsc"
|
|
31
|
+
"build": "tsc -v && tsc -p src/main/tsconfig.json --rootDir ./src/main --outDir dist"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@intuitionrobotics/ts-common": "~0.
|
|
35
|
-
"@intuitionrobotics/db-api-generator": "~0.
|
|
36
|
-
"@intuitionrobotics/firebase": "~0.
|
|
37
|
-
"@intuitionrobotics/thunderstorm": "~0.
|
|
38
|
-
"@intuitionrobotics/user-account": "~0.
|
|
34
|
+
"@intuitionrobotics/ts-common": "~0.47.0",
|
|
35
|
+
"@intuitionrobotics/db-api-generator": "~0.47.0",
|
|
36
|
+
"@intuitionrobotics/firebase": "~0.47.0",
|
|
37
|
+
"@intuitionrobotics/thunderstorm": "~0.47.0",
|
|
38
|
+
"@intuitionrobotics/user-account": "~0.47.0",
|
|
39
39
|
"react": "^16.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@intuitionrobotics/testelot": "~0.
|
|
43
|
-
"@types/node": "^
|
|
42
|
+
"@intuitionrobotics/testelot": "~0.47.0",
|
|
43
|
+
"@types/node": "^18.0.0",
|
|
44
44
|
"@types/react": "^16.8.7",
|
|
45
45
|
"ts-node": "^8.6.2",
|
|
46
46
|
"tslint": "^5.16.0",
|
|
47
|
-
"typescript": "
|
|
47
|
+
"typescript": "^5.3.0"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/shared/apis.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
+
import { ApiWithBody, ApiWithQuery } from "@intuitionrobotics/thunderstorm";
|
|
2
|
+
import { StringMap } from "@intuitionrobotics/ts-common";
|
|
1
3
|
import { DB_PermissionProject } from "./manager-types";
|
|
2
4
|
import { User_Group } from "./assign-types";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { ApiWithBody, ApiWithQuery } from "@intuitionrobotics/thunderstorm/shared/types";
|
|
6
|
-
export declare type UserUrlsPermissions = {
|
|
5
|
+
import { UI_Account } from "@intuitionrobotics/user-account";
|
|
6
|
+
export type UserUrlsPermissions = {
|
|
7
7
|
[url: string]: boolean;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type Request_AssertApiForUser = {
|
|
10
10
|
projectId: string;
|
|
11
11
|
path: string;
|
|
12
12
|
requestCustomField: StringMap;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type Request_UserUrlsPermissions = {
|
|
15
15
|
projectId: string;
|
|
16
16
|
urls: UserUrlsPermissions;
|
|
17
17
|
requestCustomField: StringMap;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type Request_UserCFsByShareGroups = {
|
|
20
20
|
groupsIds: string[];
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type Request_UsersCFsByShareGroups = Request_UserCFsByShareGroups & {
|
|
23
23
|
usersEmails: string[];
|
|
24
24
|
};
|
|
25
|
-
export
|
|
25
|
+
export type Response_UsersCFsByShareGroups = {
|
|
26
26
|
[userEmail: string]: StringMap[];
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type Request_AssignAppPermissions<T extends StringMap = StringMap> = {
|
|
29
29
|
projectId: string;
|
|
30
30
|
groupsToRemove: PredefinedGroup[];
|
|
31
31
|
group: PredefinedGroup;
|
|
@@ -35,34 +35,34 @@ export declare type Request_AssignAppPermissions<T extends StringMap = StringMap
|
|
|
35
35
|
sharedUserIds?: string[];
|
|
36
36
|
appAccountId?: string;
|
|
37
37
|
};
|
|
38
|
-
export
|
|
38
|
+
export type AssignAppPermissions = Request_AssignAppPermissions & {
|
|
39
39
|
granterUserId: string;
|
|
40
40
|
};
|
|
41
|
-
export
|
|
41
|
+
export type PredefinedGroup = {
|
|
42
42
|
_id: string;
|
|
43
43
|
key: string;
|
|
44
44
|
label: string;
|
|
45
45
|
customKeys?: string[];
|
|
46
46
|
};
|
|
47
|
-
export
|
|
47
|
+
export type PredefinedUser = {
|
|
48
48
|
accountId: string;
|
|
49
49
|
_id: string;
|
|
50
50
|
groups: PredefinedGroup[];
|
|
51
51
|
};
|
|
52
|
-
export
|
|
52
|
+
export type Request_RegisterProject = {
|
|
53
53
|
project: DB_PermissionProject;
|
|
54
54
|
routes: string[];
|
|
55
55
|
predefinedGroups?: PredefinedGroup[];
|
|
56
56
|
predefinedUser?: PredefinedUser;
|
|
57
57
|
};
|
|
58
|
-
export
|
|
59
|
-
export
|
|
60
|
-
export
|
|
61
|
-
export
|
|
62
|
-
export
|
|
63
|
-
export
|
|
64
|
-
export
|
|
65
|
-
export
|
|
66
|
-
export
|
|
67
|
-
export
|
|
68
|
-
export
|
|
58
|
+
export type Response_User = UI_Account;
|
|
59
|
+
export type PermissionsApi_AssignAppPermissions = ApiWithBody<"/v1/permissions/assign/app-permissions", Request_AssignAppPermissions, void>;
|
|
60
|
+
export type PermissionsApi_ShareWithUser = ApiWithBody<"/v1/permissions/share-with-user", Request_AssignAppPermissions, void>;
|
|
61
|
+
export type PermissionsApi_VerifyPermissionsGrantingAllowed = ApiWithBody<"/v1/permissions/verify-permissions-granting-allowed", User_Group, void>;
|
|
62
|
+
export type PermissionsApi_AssertUserAccess = ApiWithBody<"/v1/permissions/assert-user-access", Request_AssertApiForUser, Response_User>;
|
|
63
|
+
export type PermissionsApi_UserUrlsPermissions = ApiWithBody<"/v1/permissions/user-urls-permissions", Request_UserUrlsPermissions, UserUrlsPermissions>;
|
|
64
|
+
export type PermissionsApi_UserCFsByShareGroups = ApiWithBody<"/v1/user-custom-fields/user-cf-by-share-groups", Request_UserCFsByShareGroups, StringMap[]>;
|
|
65
|
+
export type PermissionsApi_UsersCFsByShareGroups = ApiWithBody<"/v1/user-custom-fields/users-cf-by-share-groups", Request_UsersCFsByShareGroups, Response_UsersCFsByShareGroups>;
|
|
66
|
+
export type PermissionsApi_RegisterExternalProject = ApiWithBody<"/v1/register/register-external-project", Request_RegisterProject, void>;
|
|
67
|
+
export type PermissionsApi_RegisterProject = ApiWithQuery<"/v1/register/register-project", void>;
|
|
68
|
+
export type PermissionsApi_TestPermissions = ApiWithQuery<"/test/test-permissions", void>;
|
package/shared/apis.js
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
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
20
|
//# sourceMappingURL=apis.js.map
|
package/shared/apis.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apis.js","sourceRoot":"","sources":["../../src/main/shared/apis.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"apis.js","sourceRoot":"","sources":["../../src/main/shared/apis.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG"}
|
package/shared/assign-types.d.ts
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { Auditable,
|
|
2
|
-
|
|
1
|
+
import { Auditable, StringMap } from "@intuitionrobotics/ts-common";
|
|
2
|
+
import { DB_Object } from "@intuitionrobotics/firebase";
|
|
3
|
+
export type Base_AccessLevels = {
|
|
3
4
|
domainId: string;
|
|
4
5
|
value: number;
|
|
5
6
|
};
|
|
6
|
-
export
|
|
7
|
+
export type DB_GroupTags = DB_Object & {
|
|
7
8
|
label: string;
|
|
8
9
|
};
|
|
9
|
-
export
|
|
10
|
+
export type Request_CreateGroup = {
|
|
10
11
|
label: string;
|
|
11
12
|
tags?: string[];
|
|
12
13
|
accessLevelIds?: string[];
|
|
13
14
|
__accessLevels?: Base_AccessLevels[];
|
|
14
15
|
customFields?: StringMap[];
|
|
15
16
|
};
|
|
16
|
-
export
|
|
17
|
-
export
|
|
17
|
+
export type DB_PermissionsGroup = DB_Object & Request_CreateGroup & Auditable;
|
|
18
|
+
export type User_Group = {
|
|
18
19
|
groupId: string;
|
|
19
20
|
customField?: StringMap;
|
|
20
21
|
};
|
|
21
|
-
export
|
|
22
|
+
export type Request_CreateUser = {
|
|
22
23
|
accountId: string;
|
|
23
24
|
groups?: User_Group[];
|
|
24
25
|
__groupIds?: string[];
|
|
25
26
|
};
|
|
26
|
-
export
|
|
27
|
+
export type DB_PermissionsUser = DB_Object & Request_CreateUser & Auditable;
|
package/shared/assign-types.js
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
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
20
|
//# sourceMappingURL=assign-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assign-types.js","sourceRoot":"","sources":["../../src/main/shared/assign-types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"assign-types.js","sourceRoot":"","sources":["../../src/main/shared/assign-types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { DB_RequestObject } from "@intuitionrobotics/firebase
|
|
2
|
-
import { Auditable
|
|
3
|
-
export
|
|
1
|
+
import { DB_Object, DB_RequestObject } from "@intuitionrobotics/firebase";
|
|
2
|
+
import { Auditable } from "@intuitionrobotics/ts-common";
|
|
3
|
+
export type Request_CreateDomain = DB_RequestObject & {
|
|
4
4
|
projectId: string;
|
|
5
5
|
namespace: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type DB_PermissionDomain = DB_Object & Request_CreateDomain & Auditable;
|
|
8
|
+
export type Request_CreateProject = DB_RequestObject & {
|
|
9
9
|
name: string;
|
|
10
10
|
customKeys?: string[];
|
|
11
11
|
};
|
|
12
|
-
export
|
|
13
|
-
export
|
|
12
|
+
export type DB_PermissionProject = DB_Object & Request_CreateProject & Auditable;
|
|
13
|
+
export type Request_CreateLevel = DB_RequestObject & {
|
|
14
14
|
domainId: string;
|
|
15
15
|
name: string;
|
|
16
16
|
value: number;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
19
|
-
export
|
|
18
|
+
export type DB_PermissionAccessLevel = DB_Object & Request_CreateLevel & Auditable;
|
|
19
|
+
export type Request_UpdateApiPermissions = DB_RequestObject & {
|
|
20
20
|
projectId: string;
|
|
21
21
|
path: string;
|
|
22
22
|
accessLevelIds?: string[];
|
|
23
23
|
deprecated?: boolean;
|
|
24
24
|
onlyForApplication?: boolean;
|
|
25
25
|
};
|
|
26
|
-
export
|
|
26
|
+
export type DB_PermissionApi = DB_Object & Request_UpdateApiPermissions & Auditable;
|
package/shared/manager-types.js
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
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
20
|
//# sourceMappingURL=manager-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager-types.js","sourceRoot":"","sources":["../../src/main/shared/manager-types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"manager-types.js","sourceRoot":"","sources":["../../src/main/shared/manager-types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CollectionName_Api = exports.CollectionName_Level = exports.CollectionName_Domain = exports.CollectionName_Projects = exports.CollectionName_Groups = exports.CollectionName_Users = void 0;
|
|
4
|
-
exports.CollectionName_Users = "permissions--user";
|
|
5
|
-
exports.CollectionName_Groups = "permissions--group";
|
|
6
|
-
exports.CollectionName_Projects = "permissions--project";
|
|
7
|
-
exports.CollectionName_Domain = "permissions--domain";
|
|
8
|
-
exports.CollectionName_Level = "permissions--level";
|
|
9
|
-
exports.CollectionName_Api = "permissions--api";
|
|
10
|
-
//# sourceMappingURL=consts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../src/main/app-backend/modules/consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,mBAAmB,CAAC;AAC3C,QAAA,qBAAqB,GAAG,oBAAoB,CAAC;AAE7C,QAAA,uBAAuB,GAAG,sBAAsB,CAAC;AACjD,QAAA,qBAAqB,GAAG,qBAAqB,CAAC;AAC9C,QAAA,oBAAoB,GAAG,oBAAoB,CAAC;AAC5C,QAAA,kBAAkB,GAAG,kBAAkB,CAAC"}
|