@intuitionrobotics/permissions 0.47.59 → 1.0.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.
- package/LICENSE +3 -0
- package/dist/app-backend/api/v1/permissions/_imports.d.ts +3 -0
- package/dist/app-backend/api/v1/permissions/_imports.d.ts.map +1 -0
- package/{shared/assign-types.js → dist/app-backend/api/v1/permissions/_imports.js} +3 -3
- package/{app-backend → dist/app-backend}/api/v1/permissions/_imports.js.map +1 -1
- package/dist/app-backend/api/v1/permissions/_permissions.d.ts +4 -0
- package/dist/app-backend/api/v1/permissions/_permissions.d.ts.map +1 -0
- package/{app-backend → dist/app-backend}/api/v1/permissions/_permissions.js +2 -4
- package/dist/app-backend/api/v1/permissions/_permissions.js.map +1 -0
- package/dist/app-backend/api/v1/permissions/assert.d.ts +10 -0
- package/dist/app-backend/api/v1/permissions/assert.d.ts.map +1 -0
- package/dist/app-backend/api/v1/permissions/assert.js +36 -0
- package/dist/app-backend/api/v1/permissions/assert.js.map +1 -0
- package/dist/app-backend/api/v1/permissions/assign/apis.d.ts +4 -0
- package/dist/app-backend/api/v1/permissions/assign/apis.d.ts.map +1 -0
- package/{app-backend → dist/app-backend}/api/v1/permissions/assign/apis.js +6 -7
- package/dist/app-backend/api/v1/permissions/assign/apis.js.map +1 -0
- package/dist/app-backend/api/v1/permissions/assign/app-permissions.d.ts +10 -0
- package/dist/app-backend/api/v1/permissions/assign/app-permissions.d.ts.map +1 -0
- package/dist/app-backend/api/v1/permissions/assign/app-permissions.js +42 -0
- package/dist/app-backend/api/v1/permissions/assign/app-permissions.js.map +1 -0
- package/dist/app-backend/api/v1/permissions/manage/apis.d.ts +4 -0
- package/dist/app-backend/api/v1/permissions/manage/apis.d.ts.map +1 -0
- package/{app-backend → dist/app-backend}/api/v1/permissions/manage/apis.js +8 -9
- package/dist/app-backend/api/v1/permissions/manage/apis.js.map +1 -0
- package/dist/app-backend/api/v1/permissions/tags/apis.d.ts +3 -0
- package/dist/app-backend/api/v1/permissions/tags/apis.d.ts.map +1 -0
- package/dist/app-backend/api/v1/permissions/tags/apis.js +3 -0
- package/{app-backend → dist/app-backend}/api/v1/permissions/tags/apis.js.map +1 -1
- package/dist/app-backend/api/v1/permissions/user-urls-permissions.d.ts +9 -0
- package/dist/app-backend/api/v1/permissions/user-urls-permissions.d.ts.map +1 -0
- package/dist/app-backend/api/v1/permissions/user-urls-permissions.js +34 -0
- package/dist/app-backend/api/v1/permissions/user-urls-permissions.js.map +1 -0
- package/dist/app-backend/api/v1/register/_register-project.d.ts +4 -0
- package/dist/app-backend/api/v1/register/_register-project.d.ts.map +1 -0
- package/dist/app-backend/api/v1/register/_register-project.js +20 -0
- package/dist/app-backend/api/v1/register/_register-project.js.map +1 -0
- package/dist/app-backend/api/v1/register/register-external-project.d.ts +9 -0
- package/dist/app-backend/api/v1/register/register-external-project.d.ts.map +1 -0
- package/dist/app-backend/api/v1/register/register-external-project.js +33 -0
- package/dist/app-backend/api/v1/register/register-external-project.js.map +1 -0
- package/dist/app-backend/api/v1/register/register-project.d.ts +11 -0
- package/dist/app-backend/api/v1/register/register-project.d.ts.map +1 -0
- package/dist/app-backend/api/v1/register/register-project.js +16 -0
- package/dist/app-backend/api/v1/register/register-project.js.map +1 -0
- package/dist/app-backend/api/v1/test/_imports.d.ts +2 -0
- package/dist/app-backend/api/v1/test/_imports.d.ts.map +1 -0
- package/dist/app-backend/api/v1/test/_imports.js +19 -0
- package/{app-backend → dist/app-backend}/api/v1/test/_imports.js.map +1 -1
- package/dist/app-backend/api/v1/test/_test-permissions.d.ts +4 -0
- package/dist/app-backend/api/v1/test/_test-permissions.d.ts.map +1 -0
- package/dist/app-backend/api/v1/test/_test-permissions.js +20 -0
- package/dist/app-backend/api/v1/test/_test-permissions.js.map +1 -0
- package/dist/app-backend/api/v1/test/test-permissions.d.ts +10 -0
- package/dist/app-backend/api/v1/test/test-permissions.d.ts.map +1 -0
- package/dist/app-backend/api/v1/test/test-permissions.js +34 -0
- package/dist/app-backend/api/v1/test/test-permissions.js.map +1 -0
- package/dist/app-backend/api/v1/user-custom-fields/_user-custom-fields.d.ts +4 -0
- package/dist/app-backend/api/v1/user-custom-fields/_user-custom-fields.d.ts.map +1 -0
- package/dist/app-backend/api/v1/user-custom-fields/_user-custom-fields.js +20 -0
- package/dist/app-backend/api/v1/user-custom-fields/_user-custom-fields.js.map +1 -0
- package/dist/app-backend/api/v1/user-custom-fields/user-cf-by-share-groups.d.ts +9 -0
- package/dist/app-backend/api/v1/user-custom-fields/user-cf-by-share-groups.d.ts.map +1 -0
- package/dist/app-backend/api/v1/user-custom-fields/user-cf-by-share-groups.js +17 -0
- package/dist/app-backend/api/v1/user-custom-fields/user-cf-by-share-groups.js.map +1 -0
- package/dist/app-backend/api/v1/user-custom-fields/users-cf-by-share-groups.d.ts +9 -0
- package/dist/app-backend/api/v1/user-custom-fields/users-cf-by-share-groups.d.ts.map +1 -0
- package/dist/app-backend/api/v1/user-custom-fields/users-cf-by-share-groups.js +15 -0
- package/dist/app-backend/api/v1/user-custom-fields/users-cf-by-share-groups.js.map +1 -0
- package/{app-backend → dist/app-backend}/benchmark/permission-user-assert-benchmark.d.ts +1 -0
- package/dist/app-backend/benchmark/permission-user-assert-benchmark.d.ts.map +1 -0
- package/dist/app-backend/benchmark/permission-user-assert-benchmark.js +92 -0
- package/dist/app-backend/benchmark/permission-user-assert-benchmark.js.map +1 -0
- package/dist/app-backend/core/module-pack.d.ts +7 -0
- package/dist/app-backend/core/module-pack.d.ts.map +1 -0
- package/dist/app-backend/core/module-pack.js +39 -0
- package/dist/app-backend/core/module-pack.js.map +1 -0
- package/{app-backend → dist/app-backend}/modules/PermissionsModule.d.ts +3 -2
- package/dist/app-backend/modules/PermissionsModule.d.ts.map +1 -0
- package/dist/app-backend/modules/PermissionsModule.js +119 -0
- package/dist/app-backend/modules/PermissionsModule.js.map +1 -0
- package/{app-backend → dist/app-backend}/modules/TagsModule.d.ts +5 -4
- package/dist/app-backend/modules/TagsModule.d.ts.map +1 -0
- package/dist/app-backend/modules/TagsModule.js +36 -0
- package/dist/app-backend/modules/TagsModule.js.map +1 -0
- package/{app-backend → dist/app-backend}/modules/_imports.d.ts +4 -3
- package/dist/app-backend/modules/_imports.d.ts.map +1 -0
- package/{app-backend/api/v1/test → dist/app-backend/modules}/_imports.js +9 -5
- package/dist/app-backend/modules/_imports.js.map +1 -0
- package/{app-backend → dist/app-backend}/modules/db-types/assign.d.ts +7 -6
- package/dist/app-backend/modules/db-types/assign.d.ts.map +1 -0
- package/dist/app-backend/modules/db-types/assign.js +251 -0
- package/dist/app-backend/modules/db-types/assign.js.map +1 -0
- package/{app-backend → dist/app-backend}/modules/db-types/managment.d.ts +5 -4
- package/dist/app-backend/modules/db-types/managment.d.ts.map +1 -0
- package/dist/app-backend/modules/db-types/managment.js +210 -0
- package/dist/app-backend/modules/db-types/managment.js.map +1 -0
- package/{app-backend → dist/app-backend}/modules/permissions-assert.d.ts +4 -3
- package/dist/app-backend/modules/permissions-assert.d.ts.map +1 -0
- package/dist/app-backend/modules/permissions-assert.js +226 -0
- package/dist/app-backend/modules/permissions-assert.js.map +1 -0
- package/{app-backend → dist/app-backend}/modules/permissions-share.d.ts +2 -1
- package/dist/app-backend/modules/permissions-share.d.ts.map +1 -0
- package/dist/app-backend/modules/permissions-share.js +13 -0
- package/dist/app-backend/modules/permissions-share.js.map +1 -0
- package/dist/app-frontend/core/module-pack.d.ts +9 -0
- package/dist/app-frontend/core/module-pack.d.ts.map +1 -0
- package/dist/app-frontend/core/module-pack.js +41 -0
- package/dist/app-frontend/core/module-pack.js.map +1 -0
- package/{app-frontend → dist/app-frontend}/modules/PermissionsComponent.d.ts +2 -1
- package/dist/app-frontend/modules/PermissionsComponent.d.ts.map +1 -0
- package/dist/app-frontend/modules/PermissionsComponent.js +19 -0
- package/dist/app-frontend/modules/PermissionsComponent.js.map +1 -0
- package/{app-frontend → dist/app-frontend}/modules/PermissionsModuleFE.d.ts +1 -0
- package/dist/app-frontend/modules/PermissionsModuleFE.d.ts.map +1 -0
- package/dist/app-frontend/modules/PermissionsModuleFE.js +80 -0
- package/dist/app-frontend/modules/PermissionsModuleFE.js.map +1 -0
- package/{app-frontend → dist/app-frontend}/modules/assign/ApiCaller_PermissionsGroup.d.ts +6 -5
- package/dist/app-frontend/modules/assign/ApiCaller_PermissionsGroup.d.ts.map +1 -0
- package/dist/app-frontend/modules/assign/ApiCaller_PermissionsGroup.js +50 -0
- package/dist/app-frontend/modules/assign/ApiCaller_PermissionsGroup.js.map +1 -0
- package/{app-frontend → dist/app-frontend}/modules/assign/ApiCaller_PermissionsUser.d.ts +6 -5
- package/dist/app-frontend/modules/assign/ApiCaller_PermissionsUser.d.ts.map +1 -0
- package/dist/app-frontend/modules/assign/ApiCaller_PermissionsUser.js +50 -0
- package/dist/app-frontend/modules/assign/ApiCaller_PermissionsUser.js.map +1 -0
- package/{app-frontend → dist/app-frontend}/modules/manage/ApiCaller_PermissionsApi.d.ts +6 -5
- package/dist/app-frontend/modules/manage/ApiCaller_PermissionsApi.d.ts.map +1 -0
- package/dist/app-frontend/modules/manage/ApiCaller_PermissionsApi.js +55 -0
- package/dist/app-frontend/modules/manage/ApiCaller_PermissionsApi.js.map +1 -0
- package/{app-frontend → dist/app-frontend}/modules/manage/ApiCaller_PermissionsDomain.d.ts +6 -5
- package/dist/app-frontend/modules/manage/ApiCaller_PermissionsDomain.d.ts.map +1 -0
- package/dist/app-frontend/modules/manage/ApiCaller_PermissionsDomain.js +61 -0
- package/dist/app-frontend/modules/manage/ApiCaller_PermissionsDomain.js.map +1 -0
- package/{app-frontend → dist/app-frontend}/modules/manage/ApiCaller_PermissionsLevel.d.ts +6 -5
- package/dist/app-frontend/modules/manage/ApiCaller_PermissionsLevel.d.ts.map +1 -0
- package/dist/app-frontend/modules/manage/ApiCaller_PermissionsLevel.js +61 -0
- package/dist/app-frontend/modules/manage/ApiCaller_PermissionsLevel.js.map +1 -0
- package/{app-frontend → dist/app-frontend}/modules/manage/ApiCaller_PermissionsProject.d.ts +6 -5
- package/dist/app-frontend/modules/manage/ApiCaller_PermissionsProject.d.ts.map +1 -0
- package/dist/app-frontend/modules/manage/ApiCaller_PermissionsProject.js +60 -0
- package/dist/app-frontend/modules/manage/ApiCaller_PermissionsProject.js.map +1 -0
- package/{app-frontend → dist/app-frontend}/modules/tags/ApiCaller_PermissionsTags.d.ts +6 -5
- package/dist/app-frontend/modules/tags/ApiCaller_PermissionsTags.d.ts.map +1 -0
- package/dist/app-frontend/modules/tags/ApiCaller_PermissionsTags.js +33 -0
- package/dist/app-frontend/modules/tags/ApiCaller_PermissionsTags.js.map +1 -0
- package/dist/backend.d.ts +2 -0
- package/dist/backend.d.ts.map +1 -0
- package/{shared/apis.js → dist/backend.js} +2 -3
- package/dist/backend.js.map +1 -0
- package/dist/frontend.d.ts +4 -0
- package/dist/frontend.d.ts.map +1 -0
- package/dist/frontend.js +21 -0
- package/dist/frontend.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/{shared → dist/shared}/apis.d.ts +6 -5
- package/dist/shared/apis.d.ts.map +1 -0
- package/dist/shared/apis.js +23 -0
- package/dist/shared/apis.js.map +1 -0
- package/{shared → dist/shared}/assign-types.d.ts +3 -2
- package/dist/shared/assign-types.d.ts.map +1 -0
- package/{shared/manager-types.js → dist/shared/assign-types.js} +3 -3
- package/{shared → dist/shared}/assign-types.js.map +1 -1
- package/{shared → dist/shared}/manager-types.d.ts +3 -2
- package/dist/shared/manager-types.d.ts.map +1 -0
- package/dist/shared/manager-types.js +20 -0
- package/{shared → dist/shared}/manager-types.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +66 -17
- package/app-backend/api/v1/permissions/_imports.d.ts +0 -2
- package/app-backend/api/v1/permissions/_imports.js +0 -36
- package/app-backend/api/v1/permissions/_permissions.d.ts +0 -1
- package/app-backend/api/v1/permissions/_permissions.js.map +0 -1
- package/app-backend/api/v1/permissions/assert.d.ts +0 -1
- package/app-backend/api/v1/permissions/assert.js +0 -47
- package/app-backend/api/v1/permissions/assert.js.map +0 -1
- package/app-backend/api/v1/permissions/assign/apis.d.ts +0 -1
- package/app-backend/api/v1/permissions/assign/apis.js.map +0 -1
- package/app-backend/api/v1/permissions/assign/app-permissions.d.ts +0 -1
- package/app-backend/api/v1/permissions/assign/app-permissions.js +0 -55
- package/app-backend/api/v1/permissions/assign/app-permissions.js.map +0 -1
- package/app-backend/api/v1/permissions/manage/apis.d.ts +0 -1
- package/app-backend/api/v1/permissions/manage/apis.js.map +0 -1
- package/app-backend/api/v1/permissions/tags/apis.d.ts +0 -1
- package/app-backend/api/v1/permissions/tags/apis.js +0 -5
- package/app-backend/api/v1/permissions/user-urls-permissions.d.ts +0 -1
- package/app-backend/api/v1/permissions/user-urls-permissions.js +0 -46
- package/app-backend/api/v1/permissions/user-urls-permissions.js.map +0 -1
- package/app-backend/api/v1/register/_register-project.d.ts +0 -1
- package/app-backend/api/v1/register/_register-project.js +0 -22
- package/app-backend/api/v1/register/_register-project.js.map +0 -1
- package/app-backend/api/v1/register/register-external-project.d.ts +0 -6
- package/app-backend/api/v1/register/register-external-project.js +0 -46
- package/app-backend/api/v1/register/register-external-project.js.map +0 -1
- package/app-backend/api/v1/register/register-project.d.ts +0 -8
- package/app-backend/api/v1/register/register-project.js +0 -29
- package/app-backend/api/v1/register/register-project.js.map +0 -1
- package/app-backend/api/v1/test/_imports.d.ts +0 -1
- package/app-backend/api/v1/test/_test-permissions.d.ts +0 -1
- package/app-backend/api/v1/test/_test-permissions.js +0 -22
- package/app-backend/api/v1/test/_test-permissions.js.map +0 -1
- package/app-backend/api/v1/test/test-permissions.d.ts +0 -1
- package/app-backend/api/v1/test/test-permissions.js +0 -45
- package/app-backend/api/v1/test/test-permissions.js.map +0 -1
- package/app-backend/api/v1/user-custom-fields/_user-custom-fields.d.ts +0 -1
- package/app-backend/api/v1/user-custom-fields/_user-custom-fields.js +0 -22
- package/app-backend/api/v1/user-custom-fields/_user-custom-fields.js.map +0 -1
- package/app-backend/api/v1/user-custom-fields/user-cf-by-share-groups.d.ts +0 -6
- package/app-backend/api/v1/user-custom-fields/user-cf-by-share-groups.js +0 -31
- package/app-backend/api/v1/user-custom-fields/user-cf-by-share-groups.js.map +0 -1
- package/app-backend/api/v1/user-custom-fields/users-cf-by-share-groups.d.ts +0 -6
- package/app-backend/api/v1/user-custom-fields/users-cf-by-share-groups.js +0 -30
- package/app-backend/api/v1/user-custom-fields/users-cf-by-share-groups.js.map +0 -1
- package/app-backend/benchmark/permission-user-assert-benchmark.js +0 -108
- package/app-backend/benchmark/permission-user-assert-benchmark.js.map +0 -1
- package/app-backend/core/module-pack.d.ts +0 -6
- package/app-backend/core/module-pack.js +0 -56
- package/app-backend/core/module-pack.js.map +0 -1
- package/app-backend/modules/PermissionsModule.js +0 -140
- package/app-backend/modules/PermissionsModule.js.map +0 -1
- package/app-backend/modules/TagsModule.js +0 -51
- package/app-backend/modules/TagsModule.js.map +0 -1
- package/app-backend/modules/_imports.js +0 -44
- package/app-backend/modules/_imports.js.map +0 -1
- package/app-backend/modules/db-types/assign.js +0 -288
- package/app-backend/modules/db-types/assign.js.map +0 -1
- package/app-backend/modules/db-types/managment.js +0 -242
- package/app-backend/modules/db-types/managment.js.map +0 -1
- package/app-backend/modules/permissions-assert.js +0 -250
- package/app-backend/modules/permissions-assert.js.map +0 -1
- package/app-backend/modules/permissions-share.js +0 -27
- package/app-backend/modules/permissions-share.js.map +0 -1
- package/app-frontend/core/module-pack.d.ts +0 -8
- package/app-frontend/core/module-pack.js +0 -58
- package/app-frontend/core/module-pack.js.map +0 -1
- package/app-frontend/modules/PermissionsComponent.js +0 -23
- package/app-frontend/modules/PermissionsComponent.js.map +0 -1
- package/app-frontend/modules/PermissionsModuleFE.js +0 -92
- package/app-frontend/modules/PermissionsModuleFE.js.map +0 -1
- package/app-frontend/modules/assign/ApiCaller_PermissionsGroup.js +0 -55
- package/app-frontend/modules/assign/ApiCaller_PermissionsGroup.js.map +0 -1
- package/app-frontend/modules/assign/ApiCaller_PermissionsUser.js +0 -72
- package/app-frontend/modules/assign/ApiCaller_PermissionsUser.js.map +0 -1
- package/app-frontend/modules/manage/ApiCaller_PermissionsApi.js +0 -76
- package/app-frontend/modules/manage/ApiCaller_PermissionsApi.js.map +0 -1
- package/app-frontend/modules/manage/ApiCaller_PermissionsDomain.js +0 -83
- package/app-frontend/modules/manage/ApiCaller_PermissionsDomain.js.map +0 -1
- package/app-frontend/modules/manage/ApiCaller_PermissionsLevel.js +0 -83
- package/app-frontend/modules/manage/ApiCaller_PermissionsLevel.js.map +0 -1
- package/app-frontend/modules/manage/ApiCaller_PermissionsProject.js +0 -82
- package/app-frontend/modules/manage/ApiCaller_PermissionsProject.js.map +0 -1
- package/app-frontend/modules/tags/ApiCaller_PermissionsTags.js +0 -55
- package/app-frontend/modules/tags/ApiCaller_PermissionsTags.js.map +0 -1
- package/backend.d.ts +0 -1
- package/backend.js +0 -35
- package/backend.js.map +0 -1
- package/frontend.d.ts +0 -3
- package/frontend.js +0 -37
- package/frontend.js.map +0 -1
- package/index.d.ts +0 -3
- package/index.js +0 -37
- package/index.js.map +0 -1
- package/shared/apis.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intuitionrobotics/permissions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Permissions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"IR",
|
|
@@ -25,26 +25,75 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"author": "IR",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
28
|
+
"type": "module",
|
|
29
|
+
"main": "dist/index.js",
|
|
30
|
+
"types": "dist/index.d.ts",
|
|
31
|
+
"files": [
|
|
32
|
+
"dist"
|
|
33
|
+
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"
|
|
36
|
-
"@intuitionrobotics/
|
|
37
|
-
"@intuitionrobotics/
|
|
38
|
-
"@intuitionrobotics/
|
|
39
|
-
"@intuitionrobotics/
|
|
40
|
-
"
|
|
35
|
+
"react": "^18.0.0",
|
|
36
|
+
"@intuitionrobotics/ts-common": "1.0.0",
|
|
37
|
+
"@intuitionrobotics/db-api-generator": "1.0.0",
|
|
38
|
+
"@intuitionrobotics/firebase": "1.0.0",
|
|
39
|
+
"@intuitionrobotics/thunderstorm": "1.0.0",
|
|
40
|
+
"@intuitionrobotics/user-account": "1.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@intuitionrobotics/testelot": "~0.47.0",
|
|
44
43
|
"@types/node": "^20.0.0",
|
|
45
44
|
"@types/react": "^18.0.0",
|
|
46
45
|
"ts-node": "^8.6.2",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
46
|
+
"typescript": "^5.3.0",
|
|
47
|
+
"@intuitionrobotics/testelot": "1.0.0"
|
|
48
|
+
},
|
|
49
|
+
"typesVersions": {
|
|
50
|
+
"*": {
|
|
51
|
+
"backend": [
|
|
52
|
+
"dist/backend"
|
|
53
|
+
],
|
|
54
|
+
"frontend": [
|
|
55
|
+
"dist/frontend"
|
|
56
|
+
],
|
|
57
|
+
"app-backend/*": [
|
|
58
|
+
"dist/app-backend/*"
|
|
59
|
+
],
|
|
60
|
+
"app-frontend/*": [
|
|
61
|
+
"dist/app-frontend/*"
|
|
62
|
+
],
|
|
63
|
+
"shared/*": [
|
|
64
|
+
"dist/shared/*"
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"exports": {
|
|
69
|
+
".": {
|
|
70
|
+
"types": "./dist/index.d.ts",
|
|
71
|
+
"default": "./dist/index.js"
|
|
72
|
+
},
|
|
73
|
+
"./frontend": {
|
|
74
|
+
"types": "./dist/frontend.d.ts",
|
|
75
|
+
"default": "./dist/frontend.js"
|
|
76
|
+
},
|
|
77
|
+
"./backend": {
|
|
78
|
+
"types": "./dist/backend.d.ts",
|
|
79
|
+
"default": "./dist/backend.js"
|
|
80
|
+
},
|
|
81
|
+
"./app-frontend/*": {
|
|
82
|
+
"types": "./dist/app-frontend/*.d.ts",
|
|
83
|
+
"default": "./dist/app-frontend/*.js"
|
|
84
|
+
},
|
|
85
|
+
"./app-backend/*": {
|
|
86
|
+
"types": "./dist/app-backend/*.d.ts",
|
|
87
|
+
"default": "./dist/app-backend/*.js"
|
|
88
|
+
},
|
|
89
|
+
"./shared/*": {
|
|
90
|
+
"types": "./dist/shared/*.d.ts",
|
|
91
|
+
"default": "./dist/shared/*.js"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"sideEffects": false,
|
|
95
|
+
"scripts": {
|
|
96
|
+
"build": "tsc -b src/main/tsconfig.json",
|
|
97
|
+
"lint": "eslint src/main"
|
|
49
98
|
}
|
|
50
|
-
}
|
|
99
|
+
}
|
|
@@ -1,36 +0,0 @@
|
|
|
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("../../../../index"), exports);
|
|
35
|
-
__exportStar(require("../../../core/module-pack"), exports);
|
|
36
|
-
//# sourceMappingURL=_imports.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,47 +0,0 @@
|
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
22
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
23
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
24
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
25
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
30
|
-
const backend_2 = require("@intuitionrobotics/user-account/backend");
|
|
31
|
-
const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
|
|
32
|
-
const permissions_assert_1 = require("../../../modules/permissions-assert");
|
|
33
|
-
class ServerApi_AssertPermissions extends backend_1.ServerApi {
|
|
34
|
-
constructor() {
|
|
35
|
-
super(thunderstorm_1.HttpMethod.POST, "assert-user-access");
|
|
36
|
-
this.dontPrintResponse();
|
|
37
|
-
}
|
|
38
|
-
process(request, response, queryParams, body) {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
const account = yield backend_2.AccountModule.validateSession(request, this.getScopes(), response);
|
|
41
|
-
yield permissions_assert_1.PermissionsAssert.assertUserPermissions(body.projectId, body.path, account._id, body.requestCustomField);
|
|
42
|
-
return account;
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
module.exports = new ServerApi_AssertPermissions();
|
|
47
|
-
//# sourceMappingURL=assert.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
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,IAAA,6BAAiB,EAAC,cAAc,EAAE,6BAAkB,CAAC,IAAI,EAAE,CAAC,CAAC;AAC7D,IAAA,6BAAiB,EAAC,cAAc,EAAE,4BAAiB,CAAC,IAAI,EAAE,CAAC,CAAC;AAE5D,MAAM,CAAC,OAAO,GAAG,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,55 +0,0 @@
|
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
22
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
23
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
24
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
25
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
30
|
-
const _imports_1 = require("../_imports");
|
|
31
|
-
const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
|
|
32
|
-
const AccountModule_1 = require("@intuitionrobotics/user-account/app-backend/modules/AccountModule");
|
|
33
|
-
class ServerApi_UserUrlsPermissions extends backend_1.ServerApi {
|
|
34
|
-
constructor() {
|
|
35
|
-
super(thunderstorm_1.HttpMethod.POST, "app-permissions");
|
|
36
|
-
this.dontPrintResponse();
|
|
37
|
-
}
|
|
38
|
-
process(request, response, queryParams, body) {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
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
|
|
41
|
-
// TODO and save our ass from a potential application security bugs
|
|
42
|
-
const account = yield AccountModule_1.AccountModule.validateSession(request, this.getScopes(), response);
|
|
43
|
-
let assignAppPermissions;
|
|
44
|
-
if (body.appAccountId)
|
|
45
|
-
// when creating project
|
|
46
|
-
assignAppPermissions = Object.assign(Object.assign({}, body), { granterUserId: body.appAccountId, sharedUserIds: [account._id] });
|
|
47
|
-
else
|
|
48
|
-
// when I share with you
|
|
49
|
-
assignAppPermissions = Object.assign(Object.assign({}, body), { granterUserId: account._id, sharedUserIds: body.sharedUserIds });
|
|
50
|
-
yield _imports_1.UserPermissionsDB.assignAppPermissions(assignAppPermissions, request);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
module.exports = new ServerApi_UserUrlsPermissions();
|
|
55
|
-
//# sourceMappingURL=app-permissions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
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,IAAA,6BAAiB,EAAC,cAAc,EAAE,+BAAoB,CAAC,IAAI,EAAE,CAAC,CAAC;AAC/D,IAAA,6BAAiB,EAAC,cAAc,EAAE,8BAAmB,CAAC,IAAI,EAAE,CAAC,CAAC;AAC9D,IAAA,6BAAiB,EAAC,cAAc,EAAE,mCAAwB,CAAC,IAAI,EAAE,CAAC,CAAC;AACnE,IAAA,6BAAiB,EAAC,cAAc,EAAE,2BAAgB,CAAC,IAAI,EAAE,CAAC,CAAC;AAE3D,MAAM,CAAC,OAAO,GAAG,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,46 +0,0 @@
|
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
22
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
23
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
24
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
25
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
30
|
-
const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
|
|
31
|
-
const backend_2 = require("@intuitionrobotics/user-account/backend");
|
|
32
|
-
const PermissionsModule_1 = require("../../../modules/PermissionsModule");
|
|
33
|
-
class ServerApi_UserUrlsPermissions extends backend_1.ServerApi {
|
|
34
|
-
constructor() {
|
|
35
|
-
super(thunderstorm_1.HttpMethod.POST, "user-urls-permissions");
|
|
36
|
-
this.dontPrintResponse();
|
|
37
|
-
}
|
|
38
|
-
process(request, response, queryParams, body) {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
const account = yield backend_2.AccountModule.validateSession(request, this.getScopes(), response);
|
|
41
|
-
return PermissionsModule_1.PermissionsModule.getUserUrlsPermissions(body.projectId, body.urls, account._id, body.requestCustomField);
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
module.exports = new ServerApi_UserUrlsPermissions();
|
|
46
|
-
//# sourceMappingURL=user-urls-permissions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
21
|
-
module.exports = new backend_1.RouteResolver(require, __dirname);
|
|
22
|
-
//# sourceMappingURL=_register-project.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
import { ApiResponse, ExpressRequest, ServerApi } from "@intuitionrobotics/thunderstorm/backend";
|
|
2
|
-
import { PermissionsApi_RegisterExternalProject, Request_RegisterProject } from "../permissions/_imports";
|
|
3
|
-
export declare class ServerApi_RegisterExternalProject extends ServerApi<PermissionsApi_RegisterExternalProject> {
|
|
4
|
-
constructor();
|
|
5
|
-
protected process(request: ExpressRequest, response: ApiResponse, queryParams: {}, body: Request_RegisterProject): Promise<void>;
|
|
6
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
22
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
23
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
24
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
25
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ServerApi_RegisterExternalProject = void 0;
|
|
30
|
-
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
31
|
-
const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
|
|
32
|
-
const PermissionsModule_1 = require("../../../modules/PermissionsModule");
|
|
33
|
-
class ServerApi_RegisterExternalProject extends backend_1.ServerApi {
|
|
34
|
-
constructor() {
|
|
35
|
-
super(thunderstorm_1.HttpMethod.POST, "register-external-project");
|
|
36
|
-
}
|
|
37
|
-
process(request, response, queryParams, body) {
|
|
38
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
backend_1.RemoteProxy.assertSecret(request);
|
|
40
|
-
yield PermissionsModule_1.PermissionsModule._registerProject(body);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.ServerApi_RegisterExternalProject = ServerApi_RegisterExternalProject;
|
|
45
|
-
module.exports = new ServerApi_RegisterExternalProject();
|
|
46
|
-
//# sourceMappingURL=register-external-project.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,8 +0,0 @@
|
|
|
1
|
-
import { ApiResponse, ExpressRequest, ServerApi } from "@intuitionrobotics/thunderstorm/backend";
|
|
2
|
-
import { PermissionsApi_RegisterProject } from "../permissions/_imports";
|
|
3
|
-
export declare class ServerApi_RegisterProject extends ServerApi<PermissionsApi_RegisterProject> {
|
|
4
|
-
constructor();
|
|
5
|
-
protected process(request: ExpressRequest, response: ApiResponse, queryParams: {
|
|
6
|
-
routes: string[];
|
|
7
|
-
}, body: void): Promise<void>;
|
|
8
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ServerApi_RegisterProject = void 0;
|
|
13
|
-
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
14
|
-
const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
|
|
15
|
-
const PermissionsModule_1 = require("../../../modules/PermissionsModule");
|
|
16
|
-
class ServerApi_RegisterProject extends backend_1.ServerApi {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(thunderstorm_1.HttpMethod.GET, "register-project");
|
|
19
|
-
}
|
|
20
|
-
process(request, response, queryParams, body) {
|
|
21
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
// RemoteProxy.assertSecret(request);
|
|
23
|
-
yield PermissionsModule_1.PermissionsModule.registerProject(queryParams.routes);
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.ServerApi_RegisterProject = ServerApi_RegisterProject;
|
|
28
|
-
module.exports = new ServerApi_RegisterProject();
|
|
29
|
-
//# sourceMappingURL=register-project.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register-project.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/register/register-project.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qEAA+F;AAI/F,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,WAEvE,EAAE,IAAU;;YACT,qCAAqC;YACrC,MAAM,qCAAiB,CAAC,eAAe,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAChE,CAAC;KAAA;CACJ;AAbD,8DAaC;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,yBAAyB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { testUserPermissionsTime } from '../../../benchmark/permission-user-assert-benchmark';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
21
|
-
module.exports = new backend_1.RouteResolver(require, __dirname);
|
|
22
|
-
//# sourceMappingURL=_test-permissions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,45 +0,0 @@
|
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
22
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
23
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
24
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
25
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
30
|
-
const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
|
|
31
|
-
const _imports_1 = require("./_imports");
|
|
32
|
-
class ServerApi_TestPermissions extends backend_1.ServerApi {
|
|
33
|
-
constructor() {
|
|
34
|
-
super(thunderstorm_1.HttpMethod.GET, "test-permissions");
|
|
35
|
-
}
|
|
36
|
-
process(request, response, queryParams, body) {
|
|
37
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
console.log('Starting test permissions assert');
|
|
39
|
-
yield (0, _imports_1.testUserPermissionsTime)();
|
|
40
|
-
console.log('---Finish test permissions assert---');
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
module.exports = new ServerApi_TestPermissions();
|
|
45
|
-
//# sourceMappingURL=test-permissions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-permissions.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/test/test-permissions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;AAEH,qEAGiD;AAGjD,kEAA2D;AAG3D,yCAAmD;AAGnD,MAAM,yBACL,SAAQ,mBAAyC;IAEjD;QACC,KAAK,CAAC,yBAAU,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAC;IAC3C,CAAC;IAEe,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAAU;;YAClG,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;YAChD,MAAM,IAAA,kCAAuB,GAAE,CAAC;YAChC,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;QACrD,CAAC;KAAA;CACD;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,yBAAyB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
21
|
-
module.exports = new backend_1.RouteResolver(require, __dirname);
|
|
22
|
-
//# sourceMappingURL=_user-custom-fields.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_user-custom-fields.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/user-custom-fields/_user-custom-fields.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAEH,qEAAsE;AAEtE,MAAM,CAAC,OAAO,GAAG,IAAI,uBAAa,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ApiResponse, ExpressRequest, ServerApi } from "@intuitionrobotics/thunderstorm/backend";
|
|
2
|
-
import { PermissionsApi_UserCFsByShareGroups, Request_UserCFsByShareGroups } from "../permissions/_imports";
|
|
3
|
-
export declare class ServerApi_UserCFsByShareGroups extends ServerApi<PermissionsApi_UserCFsByShareGroups> {
|
|
4
|
-
constructor();
|
|
5
|
-
protected process(request: ExpressRequest, response: ApiResponse, queryParams: {}, body: Request_UserCFsByShareGroups): Promise<import("@intuitionrobotics/ts-common").StringMap[]>;
|
|
6
|
-
}
|