@intuitionrobotics/permissions 0.43.4 → 0.44.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 (115) hide show
  1. package/app-backend/api/v1/permissions/_permissions.js +2 -19
  2. package/app-backend/api/v1/permissions/_permissions.js.map +1 -1
  3. package/app-backend/api/v1/permissions/assert.js +6 -23
  4. package/app-backend/api/v1/permissions/assert.js.map +1 -1
  5. package/app-backend/api/v1/permissions/assign/apis.js +2 -22
  6. package/app-backend/api/v1/permissions/assign/apis.js.map +1 -1
  7. package/app-backend/api/v1/permissions/assign/app-permissions.js +6 -23
  8. package/app-backend/api/v1/permissions/assign/app-permissions.js.map +1 -1
  9. package/app-backend/api/v1/permissions/manage/apis.js +7 -25
  10. package/app-backend/api/v1/permissions/manage/apis.js.map +1 -1
  11. package/app-backend/api/v1/permissions/tags/apis.js +2 -20
  12. package/app-backend/api/v1/permissions/tags/apis.js.map +1 -1
  13. package/app-backend/api/v1/permissions/user-urls-permissions.js +6 -23
  14. package/app-backend/api/v1/permissions/user-urls-permissions.js.map +1 -1
  15. package/app-backend/api/v1/register/_register-project.js +2 -19
  16. package/app-backend/api/v1/register/_register-project.js.map +1 -1
  17. package/app-backend/api/v1/register/register-external-project.d.ts +3 -2
  18. package/app-backend/api/v1/register/register-external-project.js +6 -22
  19. package/app-backend/api/v1/register/register-external-project.js.map +1 -1
  20. package/app-backend/api/v1/register/register-project.d.ts +3 -2
  21. package/app-backend/api/v1/register/register-project.js +6 -23
  22. package/app-backend/api/v1/register/register-project.js.map +1 -1
  23. package/app-backend/api/v1/test/_test-permissions.js +2 -19
  24. package/app-backend/api/v1/test/_test-permissions.js.map +1 -1
  25. package/app-backend/api/v1/test/test-permissions.js +6 -23
  26. package/app-backend/api/v1/test/test-permissions.js.map +1 -1
  27. package/app-backend/api/v1/user-custom-fields/_user-custom-fields.js +2 -19
  28. package/app-backend/api/v1/user-custom-fields/_user-custom-fields.js.map +1 -1
  29. package/app-backend/api/v1/user-custom-fields/user-cf-by-share-groups.js +6 -24
  30. package/app-backend/api/v1/user-custom-fields/user-cf-by-share-groups.js.map +1 -1
  31. package/app-backend/api/v1/user-custom-fields/users-cf-by-share-groups.js +8 -26
  32. package/app-backend/api/v1/user-custom-fields/users-cf-by-share-groups.js.map +1 -1
  33. package/app-backend/benchmark/permission-user-assert-benchmark.js +15 -26
  34. package/app-backend/benchmark/permission-user-assert-benchmark.js.map +1 -1
  35. package/app-backend/core/module-pack.d.ts +1 -6
  36. package/app-backend/core/module-pack.js +0 -32
  37. package/app-backend/core/module-pack.js.map +1 -1
  38. package/app-backend/modules/PermissionsModule.d.ts +5 -3
  39. package/app-backend/modules/PermissionsModule.js +6 -22
  40. package/app-backend/modules/PermissionsModule.js.map +1 -1
  41. package/app-backend/modules/TagsModule.d.ts +6 -5
  42. package/app-backend/modules/TagsModule.js +10 -9
  43. package/app-backend/modules/TagsModule.js.map +1 -1
  44. package/app-backend/modules/{_imports.d.ts → consts.d.ts} +0 -3
  45. package/app-backend/modules/consts.js +10 -0
  46. package/app-backend/modules/consts.js.map +1 -0
  47. package/app-backend/modules/db-types/assign.d.ts +10 -9
  48. package/app-backend/modules/db-types/assign.js +62 -68
  49. package/app-backend/modules/db-types/assign.js.map +1 -1
  50. package/app-backend/modules/db-types/managment.d.ts +10 -8
  51. package/app-backend/modules/db-types/managment.js +40 -54
  52. package/app-backend/modules/db-types/managment.js.map +1 -1
  53. package/app-backend/modules/permissions-assert.d.ts +5 -3
  54. package/app-backend/modules/permissions-assert.js +40 -43
  55. package/app-backend/modules/permissions-assert.js.map +1 -1
  56. package/app-backend/modules/permissions-share.d.ts +2 -2
  57. package/app-backend/modules/permissions-share.js +2 -2
  58. package/app-backend/modules/permissions-share.js.map +1 -1
  59. package/app-frontend/core/module-pack.d.ts +0 -7
  60. package/app-frontend/core/module-pack.js +0 -34
  61. package/app-frontend/core/module-pack.js.map +1 -1
  62. package/app-frontend/modules/PermissionsComponent.d.ts +1 -1
  63. package/app-frontend/modules/PermissionsComponent.js +2 -2
  64. package/app-frontend/modules/PermissionsComponent.js.map +1 -1
  65. package/app-frontend/modules/PermissionsModuleFE.d.ts +1 -1
  66. package/app-frontend/modules/PermissionsModuleFE.js +10 -8
  67. package/app-frontend/modules/PermissionsModuleFE.js.map +1 -1
  68. package/app-frontend/modules/assign/ApiCaller_PermissionsGroup.d.ts +2 -2
  69. package/app-frontend/modules/assign/ApiCaller_PermissionsGroup.js +4 -4
  70. package/app-frontend/modules/assign/ApiCaller_PermissionsGroup.js.map +1 -1
  71. package/app-frontend/modules/assign/ApiCaller_PermissionsUser.d.ts +2 -2
  72. package/app-frontend/modules/assign/ApiCaller_PermissionsUser.js +4 -21
  73. package/app-frontend/modules/assign/ApiCaller_PermissionsUser.js.map +1 -1
  74. package/app-frontend/modules/manage/ApiCaller_PermissionsApi.d.ts +2 -2
  75. package/app-frontend/modules/manage/ApiCaller_PermissionsApi.js +4 -21
  76. package/app-frontend/modules/manage/ApiCaller_PermissionsApi.js.map +1 -1
  77. package/app-frontend/modules/manage/ApiCaller_PermissionsDomain.d.ts +2 -2
  78. package/app-frontend/modules/manage/ApiCaller_PermissionsDomain.js +4 -21
  79. package/app-frontend/modules/manage/ApiCaller_PermissionsDomain.js.map +1 -1
  80. package/app-frontend/modules/manage/ApiCaller_PermissionsLevel.d.ts +2 -2
  81. package/app-frontend/modules/manage/ApiCaller_PermissionsLevel.js +4 -21
  82. package/app-frontend/modules/manage/ApiCaller_PermissionsLevel.js.map +1 -1
  83. package/app-frontend/modules/manage/ApiCaller_PermissionsProject.d.ts +2 -2
  84. package/app-frontend/modules/manage/ApiCaller_PermissionsProject.js +4 -21
  85. package/app-frontend/modules/manage/ApiCaller_PermissionsProject.js.map +1 -1
  86. package/app-frontend/modules/tags/ApiCaller_PermissionsTags.d.ts +2 -2
  87. package/app-frontend/modules/tags/ApiCaller_PermissionsTags.js +4 -4
  88. package/app-frontend/modules/tags/ApiCaller_PermissionsTags.js.map +1 -1
  89. package/index.d.ts +0 -3
  90. package/index.js +0 -31
  91. package/index.js.map +1 -1
  92. package/package.json +7 -7
  93. package/shared/apis.d.ts +3 -3
  94. package/shared/apis.js +0 -17
  95. package/shared/apis.js.map +1 -1
  96. package/shared/assign-types.d.ts +1 -2
  97. package/shared/assign-types.js +0 -17
  98. package/shared/assign-types.js.map +1 -1
  99. package/shared/manager-types.d.ts +2 -2
  100. package/shared/manager-types.js +0 -17
  101. package/shared/manager-types.js.map +1 -1
  102. package/app-backend/api/v1/permissions/_imports.d.ts +0 -2
  103. package/app-backend/api/v1/permissions/_imports.js +0 -32
  104. package/app-backend/api/v1/permissions/_imports.js.map +0 -1
  105. package/app-backend/api/v1/test/_imports.d.ts +0 -1
  106. package/app-backend/api/v1/test/_imports.js +0 -23
  107. package/app-backend/api/v1/test/_imports.js.map +0 -1
  108. package/app-backend/modules/_imports.js +0 -40
  109. package/app-backend/modules/_imports.js.map +0 -1
  110. package/backend.d.ts +0 -1
  111. package/backend.js +0 -31
  112. package/backend.js.map +0 -1
  113. package/frontend.d.ts +0 -3
  114. package/frontend.js +0 -33
  115. package/frontend.js.map +0 -1
@@ -1,22 +1,5 @@
1
1
  "use strict";
2
- /*
3
- * ts-common is the basic building blocks of our typescript projects
4
- *
5
- * Copyright (C) 2020 Intuition Robotics
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
2
  Object.defineProperty(exports, "__esModule", { value: true });
20
- const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
21
- module.exports = new backend_1.RouteResolver(require, __dirname);
3
+ const HttpServer_1 = require("@intuitionrobotics/thunderstorm/app-backend/modules/server/HttpServer");
4
+ module.exports = new HttpServer_1.RouteResolver(require, __dirname);
22
5
  //# 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;;;;;;;;;;;;;;;;GAgBG;;AAEH,qEAAsE;AAEtE,MAAM,CAAC,OAAO,GAAG,IAAI,uBAAa,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,sGAAoG;AAEpG,MAAM,CAAC,OAAO,GAAG,IAAI,0BAAa,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC"}
@@ -1,21 +1,4 @@
1
1
  "use strict";
2
- /*
3
- * ts-common is the basic building blocks of our typescript projects
4
- *
5
- * Copyright (C) 2020 Intuition Robotics
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
2
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
20
3
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
21
4
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -26,18 +9,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
26
9
  });
27
10
  };
28
11
  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");
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");
32
15
  const permissions_assert_1 = require("../../../modules/permissions-assert");
33
- class ServerApi_AssertPermissions extends backend_1.ServerApi {
16
+ class ServerApi_AssertPermissions extends server_api_1.ServerApi {
34
17
  constructor() {
35
- super(thunderstorm_1.HttpMethod.POST, "assert-user-access");
18
+ super(types_1.HttpMethod.POST, "assert-user-access");
36
19
  this.dontPrintResponse();
37
20
  }
38
21
  process(request, response, queryParams, body) {
39
22
  return __awaiter(this, void 0, void 0, function* () {
40
- const account = yield backend_2.AccountModule.validateSession(request, response);
23
+ const account = yield AccountModule_1.AccountModule.validateSession(request, response);
41
24
  yield permissions_assert_1.PermissionsAssert.assertUserPermissions(body.projectId, body.path, account._id, body.requestCustomField);
42
25
  return account;
43
26
  });
@@ -1 +1 @@
1
- {"version":3,"file":"assert.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/permissions/assert.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;AAEH,qEAGiD;AAGjD,qEAAsE;AAKtE,kEAA2D;AAC3D,4EAAsE;AAGtE,MAAM,2BACL,SAAQ,mBAA0C;IAElD;QACC,KAAK,CAAC,yBAAU,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC;QAC7C,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC1B,CAAC;IAEe,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAA8B;;YACtH,MAAM,OAAO,GAAG,MAAM,uBAAa,CAAC,eAAe,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YACvE,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,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;IAEe,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAA8B;;YACnH,MAAM,OAAO,GAAG,MAAM,6BAAa,CAAC,eAAe,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YACvE,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;QACnB,CAAC;KAAA;CACJ;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,2BAA2B,EAAE,CAAC"}
@@ -1,26 +1,6 @@
1
1
  "use strict";
2
- /*
3
- * ts-common is the basic building blocks of our typescript projects
4
- *
5
- * Copyright (C) 2020 Intuition Robotics
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
2
  Object.defineProperty(exports, "__esModule", { value: true });
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());
3
+ const assign_1 = require("../../../../modules/db-types/assign");
4
+ const assignmentApis = [...assign_1.GroupPermissionsDB.apis(), ...assign_1.UserPermissionsDB.apis()];
25
5
  module.exports = assignmentApis;
26
6
  //# 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":";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
+ {"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,21 +1,4 @@
1
1
  "use strict";
2
- /*
3
- * ts-common is the basic building blocks of our typescript projects
4
- *
5
- * Copyright (C) 2020 Intuition Robotics
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
2
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
20
3
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
21
4
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -26,13 +9,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
26
9
  });
27
10
  };
28
11
  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");
12
+ const server_api_1 = require("@intuitionrobotics/thunderstorm/app-backend/modules/server/server-api");
13
+ const types_1 = require("@intuitionrobotics/thunderstorm/shared/types");
32
14
  const AccountModule_1 = require("@intuitionrobotics/user-account/app-backend/modules/AccountModule");
33
- class ServerApi_UserUrlsPermissions extends backend_1.ServerApi {
15
+ const assign_1 = require("../../../../modules/db-types/assign");
16
+ class ServerApi_UserUrlsPermissions extends server_api_1.ServerApi {
34
17
  constructor() {
35
- super(thunderstorm_1.HttpMethod.POST, "app-permissions");
18
+ super(types_1.HttpMethod.POST, "app-permissions");
36
19
  this.dontPrintResponse();
37
20
  }
38
21
  process(request, response, queryParams, body) {
@@ -47,7 +30,7 @@ class ServerApi_UserUrlsPermissions extends backend_1.ServerApi {
47
30
  else
48
31
  // when I share with you
49
32
  assignAppPermissions = Object.assign(Object.assign({}, body), { granterUserId: account._id, sharedUserIds: body.sharedUserIds });
50
- yield _imports_1.UserPermissionsDB.assignAppPermissions(assignAppPermissions, request);
33
+ yield assign_1.UserPermissionsDB.assignAppPermissions(assignAppPermissions, request);
51
34
  });
52
35
  }
53
36
  }
@@ -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;;;;;;;;;;;;;;;;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,QAAQ,CAAC,CAAC;YAEvE,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
+ {"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;IAEe,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAwB,EAAE,IAAkC;;YAChI,iIAAiI;YACjI,mEAAmE;YACnE,MAAM,OAAO,GAAG,MAAM,6BAAa,CAAC,eAAe,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAEvE,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,28 +1,10 @@
1
1
  "use strict";
2
- /*
3
- * ts-common is the basic building blocks of our typescript projects
4
- *
5
- * Copyright (C) 2020 Intuition Robotics
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
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
+ ];
28
10
  //# 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;;;;;;;;;;;;;;;;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
+ {"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,23 +1,5 @@
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
- */
20
2
  Object.defineProperty(exports, "__esModule", { value: true });
21
- const _imports_1 = require("../_imports");
22
- module.exports = _imports_1.TagsDB.apis();
3
+ const TagsModule_1 = require("../../../../modules/TagsModule");
4
+ module.exports = TagsModule_1.TagsDB.apis();
23
5
  //# 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;;;;;;;;;;;;;;;;;GAiBG;;AAEH,0CAAmC;AAEnC,MAAM,CAAC,OAAO,GAAG,iBAAM,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,+DAAsD;AAEtD,MAAM,CAAC,OAAO,GAAG,mBAAM,CAAC,IAAI,EAAE,CAAC"}
@@ -1,21 +1,4 @@
1
1
  "use strict";
2
- /*
3
- * ts-common is the basic building blocks of our typescript projects
4
- *
5
- * Copyright (C) 2020 Intuition Robotics
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
2
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
20
3
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
21
4
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -26,18 +9,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
26
9
  });
27
10
  };
28
11
  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");
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");
32
15
  const PermissionsModule_1 = require("../../../modules/PermissionsModule");
33
- class ServerApi_UserUrlsPermissions extends backend_1.ServerApi {
16
+ class ServerApi_UserUrlsPermissions extends server_api_1.ServerApi {
34
17
  constructor() {
35
- super(thunderstorm_1.HttpMethod.POST, "user-urls-permissions");
18
+ super(types_1.HttpMethod.POST, "user-urls-permissions");
36
19
  this.dontPrintResponse();
37
20
  }
38
21
  process(request, response, queryParams, body) {
39
22
  return __awaiter(this, void 0, void 0, function* () {
40
- const account = yield backend_2.AccountModule.validateSession(request, response);
23
+ const account = yield AccountModule_1.AccountModule.validateSession(request, response);
41
24
  return PermissionsModule_1.PermissionsModule.getUserUrlsPermissions(body.projectId, body.urls, account._id, body.requestCustomField);
42
25
  });
43
26
  }
@@ -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;;;;;;;;;;;;;;;;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,QAAQ,CAAC,CAAC;YACvE,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,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;IAEe,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAAiC;;YACtH,MAAM,OAAO,GAAG,MAAM,6BAAa,CAAC,eAAe,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YACvE,OAAO,qCAAiB,CAAC,sBAAsB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;QACrH,CAAC;KAAA;CACJ;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,6BAA6B,EAAE,CAAC"}
@@ -1,22 +1,5 @@
1
1
  "use strict";
2
- /*
3
- * ts-common is the basic building blocks of our typescript projects
4
- *
5
- * Copyright (C) 2020 Intuition Robotics
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
2
  Object.defineProperty(exports, "__esModule", { value: true });
20
- const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
21
- module.exports = new backend_1.RouteResolver(require, __dirname);
3
+ const HttpServer_1 = require("@intuitionrobotics/thunderstorm/app-backend/modules/server/HttpServer");
4
+ module.exports = new HttpServer_1.RouteResolver(require, __dirname);
22
5
  //# 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;;;;;;;;;;;;;;;;GAgBG;;AAEH,qEAAsE;AAEtE,MAAM,CAAC,OAAO,GAAG,IAAI,uBAAa,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,sGAAoG;AAEpG,MAAM,CAAC,OAAO,GAAG,IAAI,0BAAa,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
- import { ApiResponse, ExpressRequest, ServerApi } from "@intuitionrobotics/thunderstorm/backend";
2
- import { PermissionsApi_RegisterExternalProject, Request_RegisterProject } from "../permissions/_imports";
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";
3
4
  export declare class ServerApi_RegisterExternalProject extends ServerApi<PermissionsApi_RegisterExternalProject> {
4
5
  constructor();
5
6
  protected process(request: ExpressRequest, response: ApiResponse, queryParams: {}, body: Request_RegisterProject): Promise<void>;
@@ -1,21 +1,4 @@
1
1
  "use strict";
2
- /*
3
- * ts-common is the basic building blocks of our typescript projects
4
- *
5
- * Copyright (C) 2020 Intuition Robotics
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
2
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
20
3
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
21
4
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -27,16 +10,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
27
10
  };
28
11
  Object.defineProperty(exports, "__esModule", { value: true });
29
12
  exports.ServerApi_RegisterExternalProject = void 0;
30
- const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
31
- const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
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");
32
15
  const PermissionsModule_1 = require("../../../modules/PermissionsModule");
33
- class ServerApi_RegisterExternalProject extends backend_1.ServerApi {
16
+ const types_1 = require("@intuitionrobotics/thunderstorm/shared/types");
17
+ class ServerApi_RegisterExternalProject extends server_api_1.ServerApi {
34
18
  constructor() {
35
- super(thunderstorm_1.HttpMethod.POST, "register-external-project");
19
+ super(types_1.HttpMethod.POST, "register-external-project");
20
+ this.setMiddlewares(RemoteProxy_1.RemoteProxy.Middleware);
36
21
  }
37
22
  process(request, response, queryParams, body) {
38
23
  return __awaiter(this, void 0, void 0, function* () {
39
- backend_1.RemoteProxy.assertSecret(request);
40
24
  yield PermissionsModule_1.PermissionsModule._registerProject(body);
41
25
  });
42
26
  }
@@ -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;;;;;;;;;;;;;;;;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
+ {"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,5 +1,6 @@
1
- import { ApiResponse, ExpressRequest, ServerApi } from "@intuitionrobotics/thunderstorm/backend";
2
- import { PermissionsApi_RegisterProject } from "../permissions/_imports";
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";
3
4
  export declare class ServerApi_RegisterProject extends ServerApi<PermissionsApi_RegisterProject> {
4
5
  constructor();
5
6
  protected process(request: ExpressRequest, response: ApiResponse, queryParams: {}, body: void): Promise<void>;
@@ -1,21 +1,4 @@
1
1
  "use strict";
2
- /*
3
- * ts-common is the basic building blocks of our typescript projects
4
- *
5
- * Copyright (C) 2020 Intuition Robotics
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
2
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
20
3
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
21
4
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -27,17 +10,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
27
10
  };
28
11
  Object.defineProperty(exports, "__esModule", { value: true });
29
12
  exports.ServerApi_RegisterProject = void 0;
30
- const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
31
- const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
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");
32
16
  const PermissionsModule_1 = require("../../../modules/PermissionsModule");
33
- class ServerApi_RegisterProject extends backend_1.ServerApi {
17
+ class ServerApi_RegisterProject extends server_api_1.ServerApi {
34
18
  constructor() {
35
- super(thunderstorm_1.HttpMethod.GET, "register-project");
19
+ super(types_1.HttpMethod.GET, "register-project");
36
20
  }
37
21
  process(request, response, queryParams, body) {
38
22
  return __awaiter(this, void 0, void 0, function* () {
39
- // RemoteProxy.assertSecret(request);
40
- yield PermissionsModule_1.PermissionsModule.registerProject(backend_1.Storm.getInstance().getHttpServer());
23
+ yield PermissionsModule_1.PermissionsModule.registerProject(Storm_1.Storm.getInstance().getHttpServer());
41
24
  });
42
25
  }
43
26
  }
@@ -1 +1 @@
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"}
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,22 +1,5 @@
1
1
  "use strict";
2
- /*
3
- * ts-common is the basic building blocks of our typescript projects
4
- *
5
- * Copyright (C) 2020 Intuition Robotics
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
2
  Object.defineProperty(exports, "__esModule", { value: true });
20
- const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
21
- module.exports = new backend_1.RouteResolver(require, __dirname);
3
+ const HttpServer_1 = require("@intuitionrobotics/thunderstorm/app-backend/modules/server/HttpServer");
4
+ module.exports = new HttpServer_1.RouteResolver(require, __dirname);
22
5
  //# 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;;;;;;;;;;;;;;;;GAgBG;;AAEH,qEAAsE;AAEtE,MAAM,CAAC,OAAO,GAAG,IAAI,uBAAa,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,sGAAoG;AAEpG,MAAM,CAAC,OAAO,GAAG,IAAI,0BAAa,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC"}
@@ -1,21 +1,4 @@
1
1
  "use strict";
2
- /*
3
- * ts-common is the basic building blocks of our typescript projects
4
- *
5
- * Copyright (C) 2020 Intuition Robotics
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
2
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
20
3
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
21
4
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -26,17 +9,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
26
9
  });
27
10
  };
28
11
  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 {
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 {
33
16
  constructor() {
34
- super(thunderstorm_1.HttpMethod.GET, "test-permissions");
17
+ super(types_1.HttpMethod.GET, "test-permissions");
35
18
  }
36
19
  process(request, response, queryParams, body) {
37
20
  return __awaiter(this, void 0, void 0, function* () {
38
21
  console.log('Starting test permissions assert');
39
- yield _imports_1.testUserPermissionsTime();
22
+ yield permission_user_assert_benchmark_1.testUserPermissionsTime();
40
23
  console.log('---Finish test permissions assert---');
41
24
  });
42
25
  }
@@ -1 +1 @@
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,kCAAuB,EAAE,CAAC;YAChC,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;QACrD,CAAC;KAAA;CACD;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,yBAAyB,EAAE,CAAC"}
1
+ {"version":3,"file":"test-permissions.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/test/test-permissions.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sGAA6G;AAE7G,wEAAwE;AAExE,0GAA4F;AAE5F,MAAM,yBACF,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,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;YAChD,MAAM,0DAAuB,EAAE,CAAC;YAChC,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;QACxD,CAAC;KAAA;CACJ;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,yBAAyB,EAAE,CAAC"}
@@ -1,22 +1,5 @@
1
1
  "use strict";
2
- /*
3
- * ts-common is the basic building blocks of our typescript projects
4
- *
5
- * Copyright (C) 2020 Intuition Robotics
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
2
  Object.defineProperty(exports, "__esModule", { value: true });
20
- const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
21
- module.exports = new backend_1.RouteResolver(require, __dirname);
3
+ const HttpServer_1 = require("@intuitionrobotics/thunderstorm/app-backend/modules/server/HttpServer");
4
+ module.exports = new HttpServer_1.RouteResolver(require, __dirname);
22
5
  //# sourceMappingURL=_user-custom-fields.js.map
@@ -1 +1 @@
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
+ {"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,sGAAoG;AAEpG,MAAM,CAAC,OAAO,GAAG,IAAI,0BAAa,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC"}