@intuitionrobotics/permissions 0.44.16 → 0.45.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.
Files changed (117) hide show
  1. package/app-backend/api/v1/permissions/_imports.d.ts +2 -0
  2. package/app-backend/api/v1/permissions/_imports.js +32 -0
  3. package/app-backend/api/v1/permissions/_imports.js.map +1 -0
  4. package/app-backend/api/v1/permissions/_permissions.js +19 -2
  5. package/app-backend/api/v1/permissions/_permissions.js.map +1 -1
  6. package/app-backend/api/v1/permissions/assert.js +23 -6
  7. package/app-backend/api/v1/permissions/assert.js.map +1 -1
  8. package/app-backend/api/v1/permissions/assign/apis.js +22 -2
  9. package/app-backend/api/v1/permissions/assign/apis.js.map +1 -1
  10. package/app-backend/api/v1/permissions/assign/app-permissions.js +23 -6
  11. package/app-backend/api/v1/permissions/assign/app-permissions.js.map +1 -1
  12. package/app-backend/api/v1/permissions/manage/apis.js +25 -7
  13. package/app-backend/api/v1/permissions/manage/apis.js.map +1 -1
  14. package/app-backend/api/v1/permissions/tags/apis.js +20 -2
  15. package/app-backend/api/v1/permissions/tags/apis.js.map +1 -1
  16. package/app-backend/api/v1/permissions/user-urls-permissions.js +23 -6
  17. package/app-backend/api/v1/permissions/user-urls-permissions.js.map +1 -1
  18. package/app-backend/api/v1/register/_register-project.js +19 -2
  19. package/app-backend/api/v1/register/_register-project.js.map +1 -1
  20. package/app-backend/api/v1/register/register-external-project.d.ts +2 -3
  21. package/app-backend/api/v1/register/register-external-project.js +22 -6
  22. package/app-backend/api/v1/register/register-external-project.js.map +1 -1
  23. package/app-backend/api/v1/register/register-project.d.ts +2 -3
  24. package/app-backend/api/v1/register/register-project.js +23 -6
  25. package/app-backend/api/v1/register/register-project.js.map +1 -1
  26. package/app-backend/api/v1/test/_imports.d.ts +1 -0
  27. package/app-backend/api/v1/test/_imports.js +23 -0
  28. package/app-backend/api/v1/test/_imports.js.map +1 -0
  29. package/app-backend/api/v1/test/_test-permissions.js +19 -2
  30. package/app-backend/api/v1/test/_test-permissions.js.map +1 -1
  31. package/app-backend/api/v1/test/test-permissions.js +23 -6
  32. package/app-backend/api/v1/test/test-permissions.js.map +1 -1
  33. package/app-backend/api/v1/user-custom-fields/_user-custom-fields.js +19 -2
  34. package/app-backend/api/v1/user-custom-fields/_user-custom-fields.js.map +1 -1
  35. package/app-backend/api/v1/user-custom-fields/user-cf-by-share-groups.d.ts +3 -4
  36. package/app-backend/api/v1/user-custom-fields/user-cf-by-share-groups.js +24 -6
  37. package/app-backend/api/v1/user-custom-fields/user-cf-by-share-groups.js.map +1 -1
  38. package/app-backend/api/v1/user-custom-fields/users-cf-by-share-groups.d.ts +3 -4
  39. package/app-backend/api/v1/user-custom-fields/users-cf-by-share-groups.js +25 -8
  40. package/app-backend/api/v1/user-custom-fields/users-cf-by-share-groups.js.map +1 -1
  41. package/app-backend/benchmark/permission-user-assert-benchmark.js +26 -15
  42. package/app-backend/benchmark/permission-user-assert-benchmark.js.map +1 -1
  43. package/app-backend/core/module-pack.d.ts +6 -1
  44. package/app-backend/core/module-pack.js +32 -0
  45. package/app-backend/core/module-pack.js.map +1 -1
  46. package/app-backend/modules/PermissionsModule.d.ts +4 -5
  47. package/app-backend/modules/PermissionsModule.js +56 -23
  48. package/app-backend/modules/PermissionsModule.js.map +1 -1
  49. package/app-backend/modules/TagsModule.d.ts +5 -6
  50. package/app-backend/modules/TagsModule.js +9 -10
  51. package/app-backend/modules/TagsModule.js.map +1 -1
  52. package/app-backend/modules/{consts.d.ts → _imports.d.ts} +3 -0
  53. package/app-backend/modules/_imports.js +40 -0
  54. package/app-backend/modules/_imports.js.map +1 -0
  55. package/app-backend/modules/db-types/assign.d.ts +9 -10
  56. package/app-backend/modules/db-types/assign.js +67 -61
  57. package/app-backend/modules/db-types/assign.js.map +1 -1
  58. package/app-backend/modules/db-types/managment.d.ts +8 -10
  59. package/app-backend/modules/db-types/managment.js +54 -40
  60. package/app-backend/modules/db-types/managment.js.map +1 -1
  61. package/app-backend/modules/permissions-assert.d.ts +3 -5
  62. package/app-backend/modules/permissions-assert.js +43 -40
  63. package/app-backend/modules/permissions-assert.js.map +1 -1
  64. package/app-backend/modules/permissions-share.d.ts +2 -2
  65. package/app-backend/modules/permissions-share.js +2 -2
  66. package/app-backend/modules/permissions-share.js.map +1 -1
  67. package/app-frontend/core/module-pack.d.ts +7 -0
  68. package/app-frontend/core/module-pack.js +34 -0
  69. package/app-frontend/core/module-pack.js.map +1 -1
  70. package/app-frontend/modules/PermissionsComponent.d.ts +1 -1
  71. package/app-frontend/modules/PermissionsComponent.js +2 -2
  72. package/app-frontend/modules/PermissionsComponent.js.map +1 -1
  73. package/app-frontend/modules/PermissionsModuleFE.d.ts +1 -1
  74. package/app-frontend/modules/PermissionsModuleFE.js +8 -10
  75. package/app-frontend/modules/PermissionsModuleFE.js.map +1 -1
  76. package/app-frontend/modules/assign/ApiCaller_PermissionsGroup.d.ts +2 -2
  77. package/app-frontend/modules/assign/ApiCaller_PermissionsGroup.js +4 -4
  78. package/app-frontend/modules/assign/ApiCaller_PermissionsGroup.js.map +1 -1
  79. package/app-frontend/modules/assign/ApiCaller_PermissionsUser.d.ts +2 -2
  80. package/app-frontend/modules/assign/ApiCaller_PermissionsUser.js +21 -4
  81. package/app-frontend/modules/assign/ApiCaller_PermissionsUser.js.map +1 -1
  82. package/app-frontend/modules/manage/ApiCaller_PermissionsApi.d.ts +2 -2
  83. package/app-frontend/modules/manage/ApiCaller_PermissionsApi.js +21 -4
  84. package/app-frontend/modules/manage/ApiCaller_PermissionsApi.js.map +1 -1
  85. package/app-frontend/modules/manage/ApiCaller_PermissionsDomain.d.ts +2 -2
  86. package/app-frontend/modules/manage/ApiCaller_PermissionsDomain.js +21 -4
  87. package/app-frontend/modules/manage/ApiCaller_PermissionsDomain.js.map +1 -1
  88. package/app-frontend/modules/manage/ApiCaller_PermissionsLevel.d.ts +2 -2
  89. package/app-frontend/modules/manage/ApiCaller_PermissionsLevel.js +21 -4
  90. package/app-frontend/modules/manage/ApiCaller_PermissionsLevel.js.map +1 -1
  91. package/app-frontend/modules/manage/ApiCaller_PermissionsProject.d.ts +2 -2
  92. package/app-frontend/modules/manage/ApiCaller_PermissionsProject.js +21 -4
  93. package/app-frontend/modules/manage/ApiCaller_PermissionsProject.js.map +1 -1
  94. package/app-frontend/modules/tags/ApiCaller_PermissionsTags.d.ts +2 -2
  95. package/app-frontend/modules/tags/ApiCaller_PermissionsTags.js +4 -4
  96. package/app-frontend/modules/tags/ApiCaller_PermissionsTags.js.map +1 -1
  97. package/backend.d.ts +1 -0
  98. package/backend.js +31 -0
  99. package/backend.js.map +1 -0
  100. package/frontend.d.ts +3 -0
  101. package/frontend.js +33 -0
  102. package/frontend.js.map +1 -0
  103. package/index.d.ts +3 -0
  104. package/index.js +31 -0
  105. package/index.js.map +1 -1
  106. package/package.json +7 -7
  107. package/shared/apis.d.ts +3 -3
  108. package/shared/apis.js +17 -0
  109. package/shared/apis.js.map +1 -1
  110. package/shared/assign-types.d.ts +2 -1
  111. package/shared/assign-types.js +17 -0
  112. package/shared/assign-types.js.map +1 -1
  113. package/shared/manager-types.d.ts +2 -2
  114. package/shared/manager-types.js +17 -0
  115. package/shared/manager-types.js.map +1 -1
  116. package/app-backend/modules/consts.js +0 -10
  117. package/app-backend/modules/consts.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ export * from "../../../../index";
2
+ export * from "../../../core/module-pack";
@@ -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 HttpServer_1 = require("@intuitionrobotics/thunderstorm/app-backend/modules/server/HttpServer");
4
- module.exports = new HttpServer_1.RouteResolver(require, __dirname);
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":";;AAAA,sGAAoG;AAEpG,MAAM,CAAC,OAAO,GAAG,IAAI,0BAAa,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC"}
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 server_api_1 = require("@intuitionrobotics/thunderstorm/app-backend/modules/server/server-api");
13
- const types_1 = require("@intuitionrobotics/thunderstorm/shared/types");
14
- const AccountModule_1 = require("@intuitionrobotics/user-account/app-backend/modules/AccountModule");
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 server_api_1.ServerApi {
33
+ class ServerApi_AssertPermissions extends backend_1.ServerApi {
17
34
  constructor() {
18
- super(types_1.HttpMethod.POST, "assert-user-access");
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 AccountModule_1.AccountModule.validateSession(request, this.getScopes(), response);
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":";;;;;;;;;;;AAAA,sGAA6G;AAE7G,wEAAwE;AACxE,qGAAgG;AAEhG,4EAAsE;AAEtE,MAAM,2BACF,SAAQ,sBAA0C;IAElD;QACI,KAAK,CAAC,kBAAU,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC;QAC7C,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC7B,CAAC;IAEY,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAA8B;;YACtH,MAAM,OAAO,GAAG,MAAM,6BAAa,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
+ {"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 assign_1 = require("../../../../modules/db-types/assign");
4
- const assignmentApis = [...assign_1.GroupPermissionsDB.apis(), ...assign_1.UserPermissionsDB.apis()];
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":";;AACA,gEAA0F;AAG1F,MAAM,cAAc,GAAqB,CAAC,GAAG,2BAAkB,CAAC,IAAI,EAAE,EAAE,GAAG,0BAAiB,CAAC,IAAI,EAAE,CAAC,CAAC;AAErG,MAAM,CAAC,OAAO,GAAG,cAAc,CAAC"}
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,13 +26,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
26
  });
10
27
  };
11
28
  Object.defineProperty(exports, "__esModule", { value: true });
12
- const server_api_1 = require("@intuitionrobotics/thunderstorm/app-backend/modules/server/server-api");
13
- const types_1 = require("@intuitionrobotics/thunderstorm/shared/types");
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
- const assign_1 = require("../../../../modules/db-types/assign");
16
- class ServerApi_UserUrlsPermissions extends server_api_1.ServerApi {
33
+ class ServerApi_UserUrlsPermissions extends backend_1.ServerApi {
17
34
  constructor() {
18
- super(types_1.HttpMethod.POST, "app-permissions");
35
+ super(thunderstorm_1.HttpMethod.POST, "app-permissions");
19
36
  this.dontPrintResponse();
20
37
  }
21
38
  process(request, response, queryParams, body) {
@@ -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 assign_1.UserPermissionsDB.assignAppPermissions(assignAppPermissions, request);
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":";;;;;;;;;;;AAAA,sGAA6G;AAG7G,wEAAqF;AACrF,qGAAgG;AAEhG,gEAAsE;AAGtE,MAAM,6BACF,SAAQ,sBAA8C;IAEtD;QACI,KAAK,CAAC,kBAAU,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QAC1C,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC7B,CAAC;IAEY,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;YAEnF,IAAI,oBAAoB,CAAC;YACzB,IAAI,IAAI,CAAC,YAAY;gBACjB,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;YAEpG,MAAM,0BAAiB,CAAC,oBAAoB,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;QAChF,CAAC;KAAA;CACJ;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,6BAA6B,EAAE,CAAC"}
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 managment_1 = require("../../../../modules/db-types/managment");
4
- module.exports = [
5
- ...managment_1.ProjectPermissionsDB.apis(),
6
- ...managment_1.DomainPermissionsDB.apis(),
7
- ...managment_1.AccessLevelPermissionsDB.apis(),
8
- ...managment_1.ApiPermissionsDB.apis()
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":";;AAAA,sEAKgD;AAEhD,MAAM,CAAC,OAAO,GAAG;IACb,GAAG,gCAAoB,CAAC,IAAI,EAAE;IAC9B,GAAG,+BAAmB,CAAC,IAAI,EAAE;IAC7B,GAAG,oCAAwB,CAAC,IAAI,EAAE;IAClC,GAAG,4BAAgB,CAAC,IAAI,EAAE;CAC7B,CAAC"}
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 TagsModule_1 = require("../../../../modules/TagsModule");
4
- module.exports = TagsModule_1.TagsDB.apis();
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":";;AAAA,+DAAsD;AAEtD,MAAM,CAAC,OAAO,GAAG,mBAAM,CAAC,IAAI,EAAE,CAAC"}
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 server_api_1 = require("@intuitionrobotics/thunderstorm/app-backend/modules/server/server-api");
13
- const types_1 = require("@intuitionrobotics/thunderstorm/shared/types");
14
- const AccountModule_1 = require("@intuitionrobotics/user-account/app-backend/modules/AccountModule");
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 server_api_1.ServerApi {
33
+ class ServerApi_UserUrlsPermissions extends backend_1.ServerApi {
17
34
  constructor() {
18
- super(types_1.HttpMethod.POST, "user-urls-permissions");
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 AccountModule_1.AccountModule.validateSession(request, this.getScopes(), response);
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":";;;;;;;;;;;AAAA,sGAA6G;AAE7G,wEAAwE;AACxE,qGAAgG;AAEhG,0EAAqE;AAErE,MAAM,6BACF,SAAQ,sBAA6C;IAErD;QACI,KAAK,CAAC,kBAAU,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAC;QAChD,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC7B,CAAC;IAEY,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAAiC;;YACzH,MAAM,OAAO,GAAG,MAAM,6BAAa,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
+ {"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 HttpServer_1 = require("@intuitionrobotics/thunderstorm/app-backend/modules/server/HttpServer");
4
- module.exports = new HttpServer_1.RouteResolver(require, __dirname);
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":";;AAAA,sGAAoG;AAEpG,MAAM,CAAC,OAAO,GAAG,IAAI,0BAAa,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC"}
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/app-backend/modules/server/server-api";
2
- import { ExpressRequest } from "@intuitionrobotics/thunderstorm/app-backend/utils/types";
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 server_api_1 = require("@intuitionrobotics/thunderstorm/app-backend/modules/server/server-api");
14
- const RemoteProxy_1 = require("@intuitionrobotics/thunderstorm/app-backend/modules/proxy/RemoteProxy");
30
+ const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
31
+ const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
15
32
  const PermissionsModule_1 = require("../../../modules/PermissionsModule");
16
- const types_1 = require("@intuitionrobotics/thunderstorm/shared/types");
17
- class ServerApi_RegisterExternalProject extends server_api_1.ServerApi {
33
+ class ServerApi_RegisterExternalProject extends backend_1.ServerApi {
18
34
  constructor() {
19
- super(types_1.HttpMethod.POST, "register-external-project");
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":";;;;;;;;;;;;AAAA,sGAA6G;AAE7G,uGAAkG;AAClG,0EAAqE;AAErE,wEAAwE;AAGxE,MAAa,iCACT,SAAQ,sBAAiD;IAEzD;QACI,KAAK,CAAC,kBAAU,CAAC,IAAI,EAAE,2BAA2B,CAAC,CAAC;QACpD,IAAI,CAAC,cAAc,CAAC,yBAAW,CAAC,UAAU,CAAC,CAAA;IAC/C,CAAC;IAEe,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAA6B;;YAClH,MAAM,qCAAiB,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QACnD,CAAC;KAAA;CACJ;AAXD,8EAWC;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,iCAAiC,EAAE,CAAC"}
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/app-backend/modules/server/server-api";
2
- import { ExpressRequest } from "@intuitionrobotics/thunderstorm/app-backend/utils/types";
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 server_api_1 = require("@intuitionrobotics/thunderstorm/app-backend/modules/server/server-api");
14
- const types_1 = require("@intuitionrobotics/thunderstorm/shared/types");
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 server_api_1.ServerApi {
33
+ class ServerApi_RegisterProject extends backend_1.ServerApi {
18
34
  constructor() {
19
- super(types_1.HttpMethod.GET, "register-project");
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
- yield PermissionsModule_1.PermissionsModule.registerProject(Storm_1.Storm.getInstance().getHttpServer());
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":";;;;;;;;;;;;AAAA,sGAA6G;AAE7G,wEAAwE;AACxE,kFAA6E;AAE7E,0EAAqE;AAErE,MAAa,yBACT,SAAQ,sBAAyC;IAEjD;QACI,KAAK,CAAC,kBAAU,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAC;IAC9C,CAAC;IAEe,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAAU;;YAC/F,MAAM,qCAAiB,CAAC,eAAe,CAAC,aAAK,CAAC,WAAW,EAAE,CAAC,aAAa,EAAE,CAAC,CAAC;QACjF,CAAC;KAAA;CACJ;AAVD,8DAUC;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,yBAAyB,EAAE,CAAC"}
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 HttpServer_1 = require("@intuitionrobotics/thunderstorm/app-backend/modules/server/HttpServer");
4
- module.exports = new HttpServer_1.RouteResolver(require, __dirname);
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":";;AAAA,sGAAoG;AAEpG,MAAM,CAAC,OAAO,GAAG,IAAI,0BAAa,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC"}
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,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,17 +26,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
26
  });
10
27
  };
11
28
  Object.defineProperty(exports, "__esModule", { value: true });
12
- const server_api_1 = require("@intuitionrobotics/thunderstorm/app-backend/modules/server/server-api");
13
- const types_1 = require("@intuitionrobotics/thunderstorm/shared/types");
14
- const permission_user_assert_benchmark_1 = require("../../../benchmark/permission-user-assert-benchmark");
15
- class ServerApi_TestPermissions extends server_api_1.ServerApi {
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 {
16
33
  constructor() {
17
- super(types_1.HttpMethod.GET, "test-permissions");
34
+ super(thunderstorm_1.HttpMethod.GET, "test-permissions");
18
35
  }
19
36
  process(request, response, queryParams, body) {
20
37
  return __awaiter(this, void 0, void 0, function* () {
21
38
  console.log('Starting test permissions assert');
22
- yield permission_user_assert_benchmark_1.testUserPermissionsTime();
39
+ yield _imports_1.testUserPermissionsTime();
23
40
  console.log('---Finish test permissions assert---');
24
41
  });
25
42
  }