@adminide-stack/core 0.1.1 → 1.0.201-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +2 -2
  3. package/lib/constants/billing-plan.d.ts +1 -0
  4. package/lib/constants/billing-plan.js +5 -0
  5. package/lib/constants/billing-plan.js.map +1 -0
  6. package/lib/constants/configuration.d.ts +6 -0
  7. package/lib/constants/configuration.js +10 -0
  8. package/lib/constants/configuration.js.map +1 -0
  9. package/lib/constants/constants.d.ts +2 -7
  10. package/lib/constants/constants.js +6 -0
  11. package/lib/constants/constants.js.map +1 -0
  12. package/lib/constants/default-workspace-config.d.ts +3 -0
  13. package/lib/constants/default-workspace-config.js +7 -0
  14. package/lib/constants/default-workspace-config.js.map +1 -0
  15. package/lib/constants/index.d.ts +6 -0
  16. package/lib/constants/index.js +20 -0
  17. package/lib/constants/index.js.map +1 -0
  18. package/lib/constants/routes.d.ts +4 -0
  19. package/lib/constants/routes.js +10 -0
  20. package/lib/constants/routes.js.map +1 -0
  21. package/lib/constants/types.d.ts +19 -0
  22. package/lib/constants/types.js +23 -0
  23. package/lib/constants/types.js.map +1 -0
  24. package/lib/constants/urls.d.ts +3 -0
  25. package/lib/constants/urls.js +7 -0
  26. package/lib/constants/urls.js.map +1 -0
  27. package/lib/core/configurations/configuration.d.ts +64 -0
  28. package/lib/core/configurations/configuration.js +236 -0
  29. package/lib/core/configurations/configuration.js.map +1 -0
  30. package/lib/core/configurations/events/abstract-configuration-change-event.d.ts +6 -0
  31. package/lib/core/configurations/events/abstract-configuration-change-event.js +27 -0
  32. package/lib/core/configurations/events/abstract-configuration-change-event.js.map +1 -0
  33. package/lib/core/configurations/events/all-keys-configuration-change-event.d.ts +17 -0
  34. package/lib/core/configurations/events/all-keys-configuration-change-event.js +33 -0
  35. package/lib/core/configurations/events/all-keys-configuration-change-event.js.map +1 -0
  36. package/lib/core/configurations/events/configuration-change-event.d.ts +24 -0
  37. package/lib/core/configurations/events/configuration-change-event.js +84 -0
  38. package/lib/core/configurations/events/configuration-change-event.js.map +1 -0
  39. package/lib/core/configurations/events/index.d.ts +4 -0
  40. package/lib/core/configurations/events/index.js +17 -0
  41. package/lib/core/configurations/events/index.js.map +1 -0
  42. package/lib/core/configurations/events/organization-configuration-change-event.d.ts +15 -0
  43. package/lib/core/configurations/events/organization-configuration-change-event.js +39 -0
  44. package/lib/core/configurations/events/organization-configuration-change-event.js.map +1 -0
  45. package/lib/core/configurations/helpers/configuration.d.ts +26 -0
  46. package/lib/core/configurations/helpers/configuration.js +203 -0
  47. package/lib/core/configurations/helpers/configuration.js.map +1 -0
  48. package/lib/core/configurations/helpers/index.d.ts +1 -0
  49. package/lib/core/configurations/helpers/index.js +14 -0
  50. package/lib/core/configurations/helpers/index.js.map +1 -0
  51. package/lib/core/configurations/index.d.ts +4 -0
  52. package/lib/core/configurations/index.js +17 -0
  53. package/lib/core/configurations/index.js.map +1 -0
  54. package/lib/core/configurations/models/configuration-model.d.ts +24 -0
  55. package/lib/core/configurations/models/configuration-model.js +143 -0
  56. package/lib/core/configurations/models/configuration-model.js.map +1 -0
  57. package/lib/core/configurations/models/index.d.ts +1 -0
  58. package/lib/core/configurations/models/index.js +14 -0
  59. package/lib/core/configurations/models/index.js.map +1 -0
  60. package/lib/core/disposable.d.ts +28 -0
  61. package/lib/core/disposable.js +82 -0
  62. package/lib/core/disposable.js.map +1 -0
  63. package/lib/core/event.d.ts +76 -0
  64. package/lib/core/event.js +262 -0
  65. package/lib/core/event.js.map +1 -0
  66. package/lib/core/event.test.d.ts +1 -0
  67. package/lib/core/event.test.js +15 -0
  68. package/lib/core/event.test.js.map +1 -0
  69. package/lib/core/index.d.ts +6 -0
  70. package/lib/core/index.js +19 -0
  71. package/lib/core/index.js.map +1 -0
  72. package/lib/core/organization/configuration.d.ts +31 -0
  73. package/lib/core/organization/configuration.js +87 -0
  74. package/lib/core/organization/configuration.js.map +1 -0
  75. package/lib/core/organization/helpers/index.d.ts +1 -0
  76. package/lib/core/organization/helpers/index.js +14 -0
  77. package/lib/core/organization/helpers/index.js.map +1 -0
  78. package/lib/core/organization/helpers/organization-helpers.d.ts +6 -0
  79. package/lib/core/organization/helpers/organization-helpers.js +34 -0
  80. package/lib/core/organization/helpers/organization-helpers.js.map +1 -0
  81. package/lib/core/organization/index.d.ts +3 -0
  82. package/lib/core/organization/index.js +16 -0
  83. package/lib/core/organization/index.js.map +1 -0
  84. package/lib/core/organization/organization.d.ts +31 -0
  85. package/lib/core/organization/organization.js +135 -0
  86. package/lib/core/organization/organization.js.map +1 -0
  87. package/lib/core/path.d.ts +58 -0
  88. package/lib/core/path.js +189 -0
  89. package/lib/core/path.js.map +1 -0
  90. package/lib/core/path.test.d.ts +1 -0
  91. package/lib/core/path.test.js +205 -0
  92. package/lib/core/path.test.js.map +1 -0
  93. package/lib/core/types.d.ts +1 -0
  94. package/lib/core/types.js +3 -0
  95. package/lib/core/types.js.map +1 -0
  96. package/lib/core/uri.d.ts +68 -0
  97. package/lib/core/uri.js +158 -0
  98. package/lib/core/uri.js.map +1 -0
  99. package/lib/core/uri.test.d.ts +1 -0
  100. package/lib/core/uri.test.js +136 -0
  101. package/lib/core/uri.test.js.map +1 -0
  102. package/lib/enums/connection-status.d.ts +6 -0
  103. package/lib/enums/connection-status.js +11 -0
  104. package/lib/enums/connection-status.js.map +1 -0
  105. package/lib/enums/index.d.ts +7 -0
  106. package/lib/enums/index.js +20 -0
  107. package/lib/enums/index.js.map +1 -0
  108. package/lib/enums/integration-configuration-status.d.ts +5 -0
  109. package/lib/enums/integration-configuration-status.js +10 -0
  110. package/lib/enums/integration-configuration-status.js.map +1 -0
  111. package/lib/enums/integrations-configuration-steps.d.ts +7 -0
  112. package/lib/enums/integrations-configuration-steps.js +12 -0
  113. package/lib/enums/integrations-configuration-steps.js.map +1 -0
  114. package/lib/enums/integrations-connection-names.d.ts +11 -0
  115. package/lib/enums/integrations-connection-names.js +17 -0
  116. package/lib/enums/integrations-connection-names.js.map +1 -0
  117. package/lib/enums/integrations.d.ts +9 -0
  118. package/lib/enums/integrations.js +14 -0
  119. package/lib/enums/integrations.js.map +1 -0
  120. package/lib/enums/permissions.d.ts +7 -0
  121. package/lib/enums/permissions.js +12 -0
  122. package/lib/enums/permissions.js.map +1 -0
  123. package/lib/enums/team-member-status.d.ts +4 -0
  124. package/lib/enums/team-member-status.js +9 -0
  125. package/lib/enums/team-member-status.js.map +1 -0
  126. package/lib/errors/auth-error-messages.d.ts +25 -0
  127. package/lib/errors/auth-error-messages.js +31 -0
  128. package/lib/errors/auth-error-messages.js.map +1 -0
  129. package/lib/errors/auth-error.d.ts +8 -0
  130. package/lib/errors/auth-error.js +13 -0
  131. package/lib/errors/auth-error.js.map +1 -0
  132. package/lib/errors/index.d.ts +2 -0
  133. package/lib/errors/index.js +15 -0
  134. package/lib/errors/index.js.map +1 -0
  135. package/lib/index.d.ts +6 -0
  136. package/lib/index.js +19 -143
  137. package/lib/index.js.map +1 -1
  138. package/lib/interfaces/apollo-context.d.ts +48 -0
  139. package/lib/interfaces/apollo-context.js +3 -0
  140. package/lib/interfaces/apollo-context.js.map +1 -0
  141. package/lib/interfaces/common.d.ts +7 -0
  142. package/lib/interfaces/common.js +3 -0
  143. package/lib/interfaces/common.js.map +1 -0
  144. package/lib/interfaces/configuration/configuration-file-service.d.ts +5 -0
  145. package/lib/interfaces/configuration/configuration-file-service.js +3 -0
  146. package/lib/interfaces/configuration/configuration-file-service.js.map +1 -0
  147. package/lib/interfaces/configuration/configuration-server-service.d.ts +10 -0
  148. package/lib/interfaces/configuration/configuration-server-service.js +3 -0
  149. package/lib/interfaces/configuration/configuration-server-service.js.map +1 -0
  150. package/lib/interfaces/configuration/configuration.d.ts +39 -0
  151. package/lib/interfaces/configuration/configuration.js +51 -0
  152. package/lib/interfaces/configuration/configuration.js.map +1 -0
  153. package/lib/interfaces/configuration/configuraton-service.d.ts +60 -0
  154. package/lib/interfaces/configuration/configuraton-service.js +3 -0
  155. package/lib/interfaces/configuration/configuraton-service.js.map +1 -0
  156. package/lib/interfaces/configuration/event.d.ts +12 -0
  157. package/lib/interfaces/configuration/event.js +3 -0
  158. package/lib/interfaces/configuration/event.js.map +1 -0
  159. package/lib/interfaces/configuration/index.d.ts +5 -0
  160. package/lib/interfaces/configuration/index.js +18 -0
  161. package/lib/interfaces/configuration/index.js.map +1 -0
  162. package/lib/interfaces/contex-key-service.d.ts +2 -0
  163. package/lib/interfaces/contex-key-service.js +3 -0
  164. package/lib/interfaces/contex-key-service.js.map +1 -0
  165. package/lib/interfaces/database-migration.d.ts +8 -0
  166. package/lib/interfaces/database-migration.js +3 -0
  167. package/lib/interfaces/database-migration.js.map +1 -0
  168. package/lib/interfaces/enum.d.ts +26 -0
  169. package/lib/interfaces/enum.js +71 -0
  170. package/lib/interfaces/enum.js.map +1 -0
  171. package/lib/interfaces/environment/argv.d.ts +6 -0
  172. package/lib/interfaces/environment/argv.js +3 -0
  173. package/lib/interfaces/environment/argv.js.map +1 -0
  174. package/lib/interfaces/environment/environment-service.d.ts +7 -0
  175. package/lib/interfaces/environment/environment-service.js +3 -0
  176. package/lib/interfaces/environment/environment-service.js.map +1 -0
  177. package/lib/interfaces/environment/index.d.ts +2 -0
  178. package/lib/interfaces/environment/index.js +15 -0
  179. package/lib/interfaces/environment/index.js.map +1 -0
  180. package/lib/interfaces/generated/generated-models.d.ts +10956 -0
  181. package/lib/interfaces/generated/generated-models.js +3980 -0
  182. package/lib/interfaces/generated/generated-models.js.map +1 -0
  183. package/lib/interfaces/generated/index.d.ts +1 -0
  184. package/lib/interfaces/generated/index.js +14 -0
  185. package/lib/interfaces/generated/index.js.map +1 -0
  186. package/lib/interfaces/index.d.ts +17 -1
  187. package/lib/interfaces/index.js +30 -0
  188. package/lib/interfaces/index.js.map +1 -0
  189. package/lib/interfaces/lifecycle-service.d.ts +1 -0
  190. package/lib/interfaces/lifecycle-service.js +8 -0
  191. package/lib/interfaces/lifecycle-service.js.map +1 -0
  192. package/lib/interfaces/log/index.d.ts +1 -0
  193. package/lib/interfaces/log/index.js +14 -0
  194. package/lib/interfaces/log/index.js.map +1 -0
  195. package/lib/interfaces/log/log-service.d.ts +16 -0
  196. package/lib/interfaces/log/log-service.js +3 -0
  197. package/lib/interfaces/log/log-service.js.map +1 -0
  198. package/lib/interfaces/nav-items.d.ts +5 -0
  199. package/lib/interfaces/nav-items.js +3 -0
  200. package/lib/interfaces/nav-items.js.map +1 -0
  201. package/lib/interfaces/organization/index.d.ts +3 -0
  202. package/lib/interfaces/organization/index.js +16 -0
  203. package/lib/interfaces/organization/index.js.map +1 -0
  204. package/lib/interfaces/organization/organization-context-service.d.ts +65 -0
  205. package/lib/interfaces/organization/organization-context-service.js +3 -0
  206. package/lib/interfaces/organization/organization-context-service.js.map +1 -0
  207. package/lib/interfaces/organization/organization-context.d.ts +39 -0
  208. package/lib/interfaces/organization/organization-context.js +31 -0
  209. package/lib/interfaces/organization/organization-context.js.map +1 -0
  210. package/lib/interfaces/organization/organizations-context.d.ts +35 -0
  211. package/lib/interfaces/organization/organizations-context.js +3 -0
  212. package/lib/interfaces/organization/organizations-context.js.map +1 -0
  213. package/lib/interfaces/page-store.d.ts +16 -0
  214. package/lib/interfaces/page-store.js +3 -0
  215. package/lib/interfaces/page-store.js.map +1 -0
  216. package/lib/interfaces/permissions.d.ts +2 -0
  217. package/lib/interfaces/permissions.js +3 -0
  218. package/lib/interfaces/permissions.js.map +1 -0
  219. package/lib/interfaces/preferences-service.d.ts +40 -0
  220. package/lib/interfaces/preferences-service.js +3 -0
  221. package/lib/interfaces/preferences-service.js.map +1 -0
  222. package/lib/interfaces/service.d.ts +18 -0
  223. package/lib/interfaces/service.js +3 -0
  224. package/lib/interfaces/service.js.map +1 -0
  225. package/lib/interfaces/workbench-exports.d.ts +5 -0
  226. package/lib/interfaces/workbench-exports.js +6 -0
  227. package/lib/interfaces/workbench-exports.js.map +1 -0
  228. package/lib/modules/account-api/enums/index.d.ts +51 -0
  229. package/lib/modules/account-api/enums/index.js +56 -0
  230. package/lib/modules/account-api/enums/index.js.map +1 -0
  231. package/lib/modules/account-api/index.d.ts +1 -0
  232. package/lib/modules/account-api/index.js +14 -0
  233. package/lib/modules/account-api/index.js.map +1 -0
  234. package/lib/modules/billing-api/enums/index.d.ts +22 -0
  235. package/lib/modules/billing-api/enums/index.js +28 -0
  236. package/lib/modules/billing-api/enums/index.js.map +1 -0
  237. package/lib/modules/billing-api/index.d.ts +1 -0
  238. package/lib/modules/billing-api/index.js +14 -0
  239. package/lib/modules/billing-api/index.js.map +1 -0
  240. package/lib/modules/index.d.ts +2 -0
  241. package/lib/modules/index.js +15 -0
  242. package/lib/modules/index.js.map +1 -0
  243. package/lib/services/abstract-configuration.d.ts +54 -0
  244. package/lib/services/abstract-configuration.js +80 -0
  245. package/lib/services/abstract-configuration.js.map +1 -0
  246. package/lib/services/abstract-organization-context-service.d.ts +40 -0
  247. package/lib/services/abstract-organization-context-service.js +115 -0
  248. package/lib/services/abstract-organization-context-service.js.map +1 -0
  249. package/lib/services/index.d.ts +2 -0
  250. package/lib/services/index.js +15 -0
  251. package/lib/services/index.js.map +1 -0
  252. package/lib/utils/configuration-utils.d.ts +4 -0
  253. package/lib/utils/configuration-utils.js +15 -0
  254. package/lib/utils/configuration-utils.js.map +1 -0
  255. package/lib/utils/date-utils.d.ts +1 -0
  256. package/lib/utils/date-utils.js +9 -0
  257. package/lib/utils/date-utils.js.map +1 -0
  258. package/lib/utils/flatten-utils.d.ts +1 -0
  259. package/lib/utils/flatten-utils.js +20 -0
  260. package/lib/utils/flatten-utils.js.map +1 -0
  261. package/lib/utils/generate-uri.d.ts +35 -0
  262. package/lib/utils/generate-uri.js +49 -0
  263. package/lib/utils/generate-uri.js.map +1 -0
  264. package/lib/utils/generated-settings-id.d.ts +2 -0
  265. package/lib/utils/generated-settings-id.js +12 -0
  266. package/lib/utils/generated-settings-id.js.map +1 -0
  267. package/lib/utils/index.d.ts +9 -0
  268. package/lib/utils/index.js +22 -0
  269. package/lib/utils/index.js.map +1 -0
  270. package/lib/utils/omit-deep.d.ts +1 -0
  271. package/lib/utils/omit-deep.js +16 -0
  272. package/lib/utils/omit-deep.js.map +1 -0
  273. package/lib/utils/roles-utils.d.ts +2 -0
  274. package/lib/utils/roles-utils.js +11 -0
  275. package/lib/utils/roles-utils.js.map +1 -0
  276. package/lib/utils/uri.d.ts +3 -0
  277. package/lib/utils/uri.js +21 -0
  278. package/lib/utils/uri.js.map +1 -0
  279. package/lib/utils/utils.d.ts +3 -0
  280. package/lib/utils/utils.js +37 -0
  281. package/lib/utils/utils.js.map +1 -0
  282. package/lib/utils/validations.d.ts +1 -0
  283. package/lib/utils/validations.js +9 -0
  284. package/lib/utils/validations.js.map +1 -0
  285. package/package.json +34 -25
  286. package/lib/interfaces/workspace.d.ts +0 -37
package/lib/index.js CHANGED
@@ -1,146 +1,22 @@
1
- module.exports =
2
- /******/ (function(modules) { // webpackBootstrap
3
- /******/ // The module cache
4
- /******/ var installedModules = {};
5
- /******/
6
- /******/ // The require function
7
- /******/ function __webpack_require__(moduleId) {
8
- /******/
9
- /******/ // Check if module is in cache
10
- /******/ if(installedModules[moduleId]) {
11
- /******/ return installedModules[moduleId].exports;
12
- /******/ }
13
- /******/ // Create a new module (and put it into the cache)
14
- /******/ var module = installedModules[moduleId] = {
15
- /******/ i: moduleId,
16
- /******/ l: false,
17
- /******/ exports: {}
18
- /******/ };
19
- /******/
20
- /******/ // Execute the module function
21
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
- /******/
23
- /******/ // Flag the module as loaded
24
- /******/ module.l = true;
25
- /******/
26
- /******/ // Return the exports of the module
27
- /******/ return module.exports;
28
- /******/ }
29
- /******/
30
- /******/
31
- /******/ // expose the modules object (__webpack_modules__)
32
- /******/ __webpack_require__.m = modules;
33
- /******/
34
- /******/ // expose the module cache
35
- /******/ __webpack_require__.c = installedModules;
36
- /******/
37
- /******/ // identity function for calling harmony imports with the correct context
38
- /******/ __webpack_require__.i = function(value) { return value; };
39
- /******/
40
- /******/ // define getter function for harmony exports
41
- /******/ __webpack_require__.d = function(exports, name, getter) {
42
- /******/ if(!__webpack_require__.o(exports, name)) {
43
- /******/ Object.defineProperty(exports, name, {
44
- /******/ configurable: false,
45
- /******/ enumerable: true,
46
- /******/ get: getter
47
- /******/ });
48
- /******/ }
49
- /******/ };
50
- /******/
51
- /******/ // getDefaultExport function for compatibility with non-harmony modules
52
- /******/ __webpack_require__.n = function(module) {
53
- /******/ var getter = module && module.__esModule ?
54
- /******/ function getDefault() { return module['default']; } :
55
- /******/ function getModuleExports() { return module; };
56
- /******/ __webpack_require__.d(getter, 'a', getter);
57
- /******/ return getter;
58
- /******/ };
59
- /******/
60
- /******/ // Object.prototype.hasOwnProperty.call
61
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
62
- /******/
63
- /******/ // __webpack_public_path__
64
- /******/ __webpack_require__.p = "";
65
- /******/
66
- /******/ // Load entry module and return exports
67
- /******/ return __webpack_require__(__webpack_require__.s = 3);
68
- /******/ })
69
- /************************************************************************/
70
- /******/ ([
71
- /* 0 */
72
- /***/ (function(module, exports, __webpack_require__) {
73
-
74
1
  "use strict";
75
-
76
- function __export(m) {
77
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
78
- }
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
79
12
  Object.defineProperty(exports, "__esModule", { value: true });
80
- __export(__webpack_require__(2));
81
-
82
-
83
- /***/ }),
84
- /* 1 */
85
- /***/ (function(module, exports, __webpack_require__) {
86
-
87
- "use strict";
88
-
89
- function __export(m) {
90
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
91
- }
92
- Object.defineProperty(exports, "__esModule", { value: true });
93
- __export(__webpack_require__(4));
94
-
95
-
96
- /***/ }),
97
- /* 2 */
98
- /***/ (function(module, exports, __webpack_require__) {
99
-
100
- "use strict";
101
-
102
- Object.defineProperty(exports, "__esModule", { value: true });
103
- exports.STATUS_DISCONNECTED = 'STATUS_DISCONNECTED';
104
- exports.STATUS_CONNECTED = 'STATUS_CONNECTED';
105
- exports.STATUS_PENDING = 'STATUS_PENDING';
106
- exports.STATUS_CREATED = 'STATUS_CREATED';
107
- exports.STATUS_REMOVED = 'STATUS_REMOVED';
108
- exports.STATUS_DISABLED = 'STATUS_DISABLED';
109
- exports.STATUS_ACTIVE = 'STATUS_ACTIVE';
110
-
111
-
112
- /***/ }),
113
- /* 3 */
114
- /***/ (function(module, exports, __webpack_require__) {
115
-
116
- "use strict";
117
-
118
- function __export(m) {
119
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
120
- }
121
- Object.defineProperty(exports, "__esModule", { value: true });
122
- __export(__webpack_require__(0));
123
- __export(__webpack_require__(1));
124
-
125
-
126
- /***/ }),
127
- /* 4 */
128
- /***/ (function(module, exports, __webpack_require__) {
129
-
130
- "use strict";
131
-
132
- Object.defineProperty(exports, "__esModule", { value: true });
133
- var IWorkspaceStatus;
134
- (function (IWorkspaceStatus) {
135
- IWorkspaceStatus[IWorkspaceStatus["STATUS_CONNECTED"] = 0] = "STATUS_CONNECTED";
136
- IWorkspaceStatus[IWorkspaceStatus["STATUS_CREATED"] = 1] = "STATUS_CREATED";
137
- IWorkspaceStatus[IWorkspaceStatus["STATUS_DISCONNECTED"] = 2] = "STATUS_DISCONNECTED";
138
- IWorkspaceStatus[IWorkspaceStatus["STATUS_PENDING"] = 3] = "STATUS_PENDING";
139
- IWorkspaceStatus[IWorkspaceStatus["STATUS_REMOVED"] = 4] = "STATUS_REMOVED";
140
- IWorkspaceStatus[IWorkspaceStatus["STATUS_DISABLED"] = 5] = "STATUS_DISABLED";
141
- })(IWorkspaceStatus = exports.IWorkspaceStatus || (exports.IWorkspaceStatus = {}));
142
-
143
-
144
- /***/ })
145
- /******/ ]);
13
+ __exportStar(require("./constants"), exports);
14
+ __exportStar(require("./interfaces"), exports);
15
+ // export * from './context';
16
+ __exportStar(require("./utils"), exports);
17
+ __exportStar(require("./core"), exports);
18
+ __exportStar(require("./errors"), exports);
19
+ __exportStar(require("./services"), exports);
20
+ __exportStar(require("./modules"), exports);
21
+ __exportStar(require("./enums"), exports);
146
22
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap 94bf6e61c3f9de868b7d","webpack:///./src/constants/index.ts","webpack:///./src/interfaces/index.ts","webpack:///./src/constants/constants.ts","webpack:///./src/index.ts","webpack:///./src/interfaces/workspace.ts"],"names":[],"mappings":";;AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA,mDAA2C,cAAc;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;;;;;;;AChEA,iCAA4B;;;;;;;;;;;;;ACA5B,iCAA4B;;;;;;;;;;ACAf,2BAAmB,GAAG,qBAAqB,CAAC;AAC5C,wBAAgB,GAAG,kBAAkB,CAAC;AACtC,sBAAc,GAAG,gBAAgB,CAAC;AAClC,sBAAc,GAAG,gBAAgB,CAAC;AAClC,sBAAc,GAAG,gBAAgB,CAAC;AAClC,uBAAe,GAAG,iBAAiB,CAAC;AACpC,qBAAa,GAAG,eAAe,CAAC;;;;;;;;;;;;;ACN7C,iCAA4B;AAC5B,iCAA6B;;;;;;;;;;AC2C7B,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IACxB,+EAAgB;IAChB,2EAAc;IACd,qFAAmB;IACnB,2EAAc;IACd,2EAAc;IACd,6EAAe;AACnB,CAAC,EAPW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAO3B","file":"lib/index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 3);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 94bf6e61c3f9de868b7d","export * from './constants';\n\n\n\n// WEBPACK FOOTER //\n// ./src/constants/index.ts","export * from './workspace';\n\n\n\n// WEBPACK FOOTER //\n// ./src/interfaces/index.ts","export const STATUS_DISCONNECTED = 'STATUS_DISCONNECTED';\nexport const STATUS_CONNECTED = 'STATUS_CONNECTED';\nexport const STATUS_PENDING = 'STATUS_PENDING';\nexport const STATUS_CREATED = 'STATUS_CREATED';\nexport const STATUS_REMOVED = 'STATUS_REMOVED';\nexport const STATUS_DISABLED = 'STATUS_DISABLED';\nexport const STATUS_ACTIVE = 'STATUS_ACTIVE';\n\n\n\n\n// WEBPACK FOOTER //\n// ./src/constants/constants.ts","export * from './constants';\nexport * from './interfaces';\n\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.ts","import {\n STATUS_CONNECTED,\n STATUS_CREATED,\n STATUS_DISCONNECTED,\n STATUS_PENDING,\n STATUS_REMOVED,\n STATUS_DISABLED,\n} from '../constants';\n\nexport interface IWorkspace {\n id: string;\n name: string;\n language: string;\n description: string;\n status: IWorkspaceStatus;\n spec: IWorkspaceSpec;\n}\n\nexport interface IWorkspaceCreateRequest {\n name: string;\n language?: string;\n description?: string;\n}\n\n\nexport interface IWorkspaceUpdateRequest {\n id: string;\n name?: string;\n language?: string;\n description?: string;\n status?: IWorkspaceStatus;\n}\n\nexport interface IWorkspaceRemoveRequest {\n id: string;\n}\n\nexport interface IWorkspaceSpec {\n id: string;\n cpu: number;\n hdd: number;\n ram: number;\n}\n\nexport enum IWorkspaceStatus {\n STATUS_CONNECTED,\n STATUS_CREATED,\n STATUS_DISCONNECTED,\n STATUS_PENDING,\n STATUS_REMOVED,\n STATUS_DISABLED,\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/interfaces/workspace.ts"],"sourceRoot":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA4B;AAC5B,+CAA6B;AAC7B,6BAA6B;AAC7B,0CAAwB;AACxB,yCAAuB;AACvB,2CAAyB;AACzB,6CAA2B;AAC3B,4CAA0B;AAC1B,0CAAwB"}
@@ -0,0 +1,48 @@
1
+ import { DataProxy } from '@apollo/client/cache';
2
+ import { ApolloClient } from '@apollo/client';
3
+ import { IUserContext, IUserProfile, IIAuth0Token } from './generated';
4
+ import express from 'express';
5
+ import { IPreferncesTransformed } from '@common-stack/server-core';
6
+ import { IClientService } from './service';
7
+ import { IEnvironmentService } from './environment';
8
+ /**
9
+ *
10
+ * Context
11
+ * @export
12
+ * @interface MyContext
13
+ */
14
+ export interface MyContext extends ClientContext, ServerContext {
15
+ }
16
+ export interface ClientContext {
17
+ /**
18
+ * Only application on the client side
19
+ */
20
+ cache: DataProxy;
21
+ /**
22
+ * Only application on the client side
23
+ */
24
+ getCacheKey: (options: {
25
+ __typename: string;
26
+ id?: string;
27
+ }) => string;
28
+ /**
29
+ * Only applicable on the client side
30
+ */
31
+ apolloClient: ApolloClient<any>;
32
+ client: ApolloClient<any>;
33
+ getClientServices: () => IClientService;
34
+ }
35
+ export interface IDataSources {
36
+ }
37
+ export interface ServerContext {
38
+ req: express.Request;
39
+ res: express.Response;
40
+ userContext: IUserContext;
41
+ /** Backend Datasource */
42
+ dataSources: IDataSources;
43
+ profile: IUserProfile;
44
+ user: IIAuth0Token;
45
+ orgname?: string;
46
+ preferences: IPreferncesTransformed[];
47
+ environmentService: IEnvironmentService;
48
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=apollo-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apollo-context.js","sourceRoot":"","sources":["../../src/interfaces/apollo-context.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export interface ICdmbaseUser {
2
+ id: string;
3
+ githubUsername: string;
4
+ }
5
+ export declare type GraphQLContext = {
6
+ user?: ICdmbaseUser;
7
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/interfaces/common.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { IPreferencesInput, IConfigurationOverrides_Input, IConfigurationOverrides, ConfigurationTarget } from '../generated';
2
+ export interface IConfigurationFileService {
3
+ resolveConfiguration(input: IPreferencesInput, key: string, overrides: IConfigurationOverrides_Input): Promise<unknown>;
4
+ updateConfiguration(input: IPreferencesInput, key: string, value: any, overrides: IConfigurationOverrides, target: ConfigurationTarget, donotNotifyError?: boolean): Promise<void>;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=configuration-file-service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration-file-service.js","sourceRoot":"","sources":["../../../src/interfaces/configuration/configuration-file-service.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
2
+ import { ConfigurationTarget } from './configuration';
3
+ import { IConfigurationOverrides, IUserContext } from '../generated';
4
+ export interface IConfigurationServerService {
5
+ getConfiguration(uri: URI, target: ConfigurationTarget, context: IUserContext): Promise<any>;
6
+ updateValue(resource: string | URI, key: string, value: any): Promise<void>;
7
+ updateValue(resource: string | URI, key: string, value: any, overrides: IConfigurationOverrides): Promise<void>;
8
+ updateValue(resource: string | URI, key: string, value: any, target: ConfigurationTarget): Promise<void>;
9
+ updateValue(resource: string | URI, key: string, value: any, overrides: IConfigurationOverrides, target: ConfigurationTarget, donotNotifyError?: boolean): Promise<void>;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=configuration-server-service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration-server-service.js","sourceRoot":"","sources":["../../../src/interfaces/configuration/configuration-server-service.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
1
+ import { ConfigurationScope } from '@workbench-stack/core';
2
+ export { ConfigurationScope };
3
+ export declare const enum ConfigurationTarget {
4
+ /**
5
+ * Targets the user/application configuraton file for writing.
6
+ */
7
+ USER = 1,
8
+ /**
9
+ * Targets the application configuration file for writing.
10
+ */
11
+ APPLICATION = 2,
12
+ /**
13
+ * Targets the machine configuration file for writing. This only works if a machine is opened.
14
+ */
15
+ MACHINE = 3,
16
+ /**
17
+ * Targets the organization configuration file for writing. This only works if organization is opened.
18
+ */
19
+ ORGANIZATION = 4,
20
+ /**
21
+ * Targets the resource configuration file for writing. This only works if a organization is opened.
22
+ */
23
+ ORGANIZATION_RESOURCE = 5,
24
+ DEFAULT = 6,
25
+ MEMORY = 7
26
+ }
27
+ export declare const LOCAL_MACHINE_SCOPES: ConfigurationScope[];
28
+ export declare const REMOTE_MACHINE_SCOPES: ConfigurationScope[];
29
+ export declare const ORGANIZATION_SCOPES: ConfigurationScope[];
30
+ export declare const RESOURCE_SCOPES: ConfigurationScope[];
31
+ export declare type ConfigurationKey = {
32
+ type: 'user' | 'organization' | 'workspace';
33
+ key: string;
34
+ };
35
+ export interface IConfigurationCache {
36
+ read(key: ConfigurationKey): Promise<string>;
37
+ write(key: ConfigurationKey, content: string): Promise<void>;
38
+ remove(key: ConfigurationKey): Promise<void>;
39
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RESOURCE_SCOPES = exports.ORGANIZATION_SCOPES = exports.REMOTE_MACHINE_SCOPES = exports.LOCAL_MACHINE_SCOPES = exports.ConfigurationTarget = exports.ConfigurationScope = void 0;
4
+ // export const enum ConfigurationScope {
5
+ // /**
6
+ // * Application specific configuration, which can be configured only in local user settings.
7
+ // */
8
+ // APPLICATION = 1,
9
+ // /**
10
+ // * Machine specific configuration, which can be configured only in local and remote user settings.
11
+ // */
12
+ // MACHINE,
13
+ // /**
14
+ // * Window specific configuration, which can be configured in the user or organization settings.
15
+ // */
16
+ // WINDOW,
17
+ // /**
18
+ // * Resource specific configuration, which can be configured in the user, organization or workspace settings.
19
+ // */
20
+ // RESOURCE,
21
+ // }
22
+ var ConfigurationTarget;
23
+ (function (ConfigurationTarget) {
24
+ /**
25
+ * Targets the user/application configuraton file for writing.
26
+ */
27
+ ConfigurationTarget[ConfigurationTarget["USER"] = 1] = "USER";
28
+ /**
29
+ * Targets the application configuration file for writing.
30
+ */
31
+ ConfigurationTarget[ConfigurationTarget["APPLICATION"] = 2] = "APPLICATION";
32
+ /**
33
+ * Targets the machine configuration file for writing. This only works if a machine is opened.
34
+ */
35
+ ConfigurationTarget[ConfigurationTarget["MACHINE"] = 3] = "MACHINE";
36
+ /**
37
+ * Targets the organization configuration file for writing. This only works if organization is opened.
38
+ */
39
+ ConfigurationTarget[ConfigurationTarget["ORGANIZATION"] = 4] = "ORGANIZATION";
40
+ /**
41
+ * Targets the resource configuration file for writing. This only works if a organization is opened.
42
+ */
43
+ ConfigurationTarget[ConfigurationTarget["ORGANIZATION_RESOURCE"] = 5] = "ORGANIZATION_RESOURCE";
44
+ ConfigurationTarget[ConfigurationTarget["DEFAULT"] = 6] = "DEFAULT";
45
+ ConfigurationTarget[ConfigurationTarget["MEMORY"] = 7] = "MEMORY";
46
+ })(ConfigurationTarget = exports.ConfigurationTarget || (exports.ConfigurationTarget = {}));
47
+ exports.LOCAL_MACHINE_SCOPES = [1 /* APPLICATION */, 3 /* WINDOW */, 4 /* RESOURCE */];
48
+ exports.REMOTE_MACHINE_SCOPES = [2 /* MACHINE */, 3 /* WINDOW */, 4 /* RESOURCE */];
49
+ exports.ORGANIZATION_SCOPES = [3 /* WINDOW */, 4 /* RESOURCE */];
50
+ exports.RESOURCE_SCOPES = [4 /* RESOURCE */];
51
+ //# sourceMappingURL=configuration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/interfaces/configuration/configuration.ts"],"names":[],"mappings":";;;AAIA,yCAAyC;AACzC,UAAU;AACV,kGAAkG;AAClG,UAAU;AACV,uBAAuB;AACvB,UAAU;AACV,yGAAyG;AACzG,UAAU;AACV,eAAe;AACf,UAAU;AACV,sGAAsG;AACtG,UAAU;AACV,cAAc;AACd,UAAU;AACV,mHAAmH;AACnH,UAAU;AACV,gBAAgB;AAChB,IAAI;AAEJ,IAAkB,mBAuBjB;AAvBD,WAAkB,mBAAmB;IACjC;;OAEG;IACH,6DAAQ,CAAA;IACR;;OAEG;IACH,2EAAW,CAAA;IACX;;OAEG;IACH,mEAAO,CAAA;IACP;;OAEG;IACH,6EAAY,CAAA;IACZ;;OAEG;IACH,+FAAqB,CAAA;IACrB,mEAAO,CAAA;IACP,iEAAM,CAAA;AACV,CAAC,EAvBiB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAuBpC;AAGY,QAAA,oBAAoB,GAAG,uDAAwF,CAAC;AAChH,QAAA,qBAAqB,GAAG,mDAAoF,CAAC;AAC7G,QAAA,mBAAmB,GAAG,kCAAwD,CAAC;AAC/E,QAAA,eAAe,GAAG,kBAA6B,CAAC"}
@@ -0,0 +1,60 @@
1
+ import { Event } from '@vscode-alt/monaco-editor/esm/vs/base/common/event';
2
+ import { ConfigurationTarget } from './configuration';
3
+ import { IConfigurationChangeEvent } from './event';
4
+ import { IConfigurationOverrides, IConfigurationData, IConfigurationModel, IIResourceData, IIConfigurationModel } from '../generated';
5
+ import { IDisposable } from '@vscode-alt/monaco-editor/esm/vs/base/common/lifecycle';
6
+ import { IOrganizationContext } from '../organization';
7
+ import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
8
+ export interface IConfigurationService extends IDisposable {
9
+ onDidChangeConfiguration: Event<IConfigurationChangeEvent>;
10
+ getConfigurationData(): IConfigurationData;
11
+ /**
12
+ * Fetches the value of the section for the given overrides.
13
+ * Value can be of native type or an object keyed off the section name.
14
+ *
15
+ * @param section - Section of the configuration. Can be `null` or `undefined`.
16
+ * @param overrides - Overrides that has to be applied while fetching
17
+ */
18
+ getValue<T>(): T;
19
+ getValue<T>(section: string): T;
20
+ getValue<T>(overrides: IConfigurationOverrides): T;
21
+ getValue<T>(section: string, overrides: IConfigurationOverrides): T;
22
+ updateValue(key: string, value: any): Promise<void>;
23
+ updateValue(key: string, value: any, overrides: IConfigurationOverrides): Promise<void>;
24
+ updateValue(key: string, value: any, target: ConfigurationTarget): Promise<void>;
25
+ updateValue(key: string, value: any, overrides: IConfigurationOverrides, target: ConfigurationTarget, donotNotifyError?: boolean): Promise<void>;
26
+ /**
27
+ * Load the resource configuration if it is not loaded.
28
+ * @param resource
29
+ */
30
+ loadResourceConfiguration(resources: IIResourceData[], force: any): Promise<IIConfigurationModel[]>;
31
+ reloadConfiguration(): Promise<void>;
32
+ /**
33
+ * Reloads the Organization Resource configuration
34
+ * @param resource
35
+ */
36
+ reloadConfiguration(resource: any): Promise<void>;
37
+ initialize(organizationContext: IOrganizationContext): Promise<void>;
38
+ inspect<T>(key: string, overrides?: IConfigurationOverrides): {
39
+ default: T;
40
+ user: T;
41
+ organization?: T;
42
+ organizationResource?: T;
43
+ memory?: T;
44
+ value: T;
45
+ };
46
+ keys(): {
47
+ default: string[];
48
+ user: string[];
49
+ organization: string[];
50
+ organizationResource: string[];
51
+ memory?: string[];
52
+ };
53
+ }
54
+ export interface IClientConfigurationService extends IConfigurationService {
55
+ externalConfiguration?(resource: URI): IConfigurationModel;
56
+ extAcceptConfigurationChanged(data: IConfigurationData, event: IConfigurationChangeEvent): void;
57
+ }
58
+ export interface IConfigurationMicroserviceEvent {
59
+ onDidChangeConfiguration: (event: IConfigurationChangeEvent) => Promise<void>;
60
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=configuraton-service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuraton-service.js","sourceRoot":"","sources":["../../../src/interfaces/configuration/configuraton-service.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import { ConfigurationTarget } from './configuration';
2
+ import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
3
+ import { ResourceMap } from '@vscode-alt/monaco-editor/esm/vs/base/common/map';
4
+ import { IConfigurationModel } from '../generated';
5
+ export interface IConfigurationChangeEvent {
6
+ source: ConfigurationTarget;
7
+ affectedKeys: string[];
8
+ affectsConfiguration(configuration: string, resource?: URI): boolean;
9
+ sourceConfig: any;
10
+ changedConfiguration: IConfigurationModel;
11
+ changedConfigurationByResource: ResourceMap<IConfigurationModel>;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.js","sourceRoot":"","sources":["../../../src/interfaces/configuration/event.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export * from './configuration';
2
+ export * from './event';
3
+ export * from './configuraton-service';
4
+ export * from './configuration-server-service';
5
+ export * from './configuration-file-service';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./configuration"), exports);
14
+ __exportStar(require("./event"), exports);
15
+ __exportStar(require("./configuraton-service"), exports);
16
+ __exportStar(require("./configuration-server-service"), exports);
17
+ __exportStar(require("./configuration-file-service"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/configuration/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAgC;AAChC,0CAAwB;AACxB,yDAAuC;AACvC,iEAA+C;AAC/C,+DAA6C"}
@@ -0,0 +1,2 @@
1
+ export { IContextKey } from '@vscode-alt/monaco-editor/esm/vs/platform/contextkey/common/contextkey';
2
+ export { IContextKeyService } from '@workbench-stack/core';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=contex-key-service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contex-key-service.js","sourceRoot":"","sources":["../../src/interfaces/contex-key-service.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export interface IDatabaseMigration {
2
+ /**
3
+ * ID of the migration, and it should be changed inorder to overwrite previous migration
4
+ */
5
+ id: string;
6
+ up?(): Promise<void>;
7
+ down?(): Promise<void>;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=database-migration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"database-migration.js","sourceRoot":"","sources":["../../src/interfaces/database-migration.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ export interface IUserProjectDetails {
2
+ privateKey?: string;
3
+ username?: string;
4
+ email?: string;
5
+ }
6
+ export interface IProjectUsersParams {
7
+ usernaame: string;
8
+ email: string;
9
+ }
10
+ export interface IUserProjectSecrets {
11
+ keys: {
12
+ GLOBAL__KEY?: string;
13
+ };
14
+ tokens: {
15
+ GITHUB_TOKEN?: string;
16
+ GITLAB_TOKEN?: string;
17
+ BITBUCKET_TOKEN?: string;
18
+ VSTS_TOKEN?: string;
19
+ };
20
+ }
21
+ export interface IUserProjectResource {
22
+ [key: string]: IUserProjectDetails;
23
+ }
24
+ export interface IGiturlCreateRequest {
25
+ gitUrl: string;
26
+ }
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ // export enum StackType {
3
+ // IDE_STACK = 'IDE_STACK',
4
+ // CUSTOM_STACK = 'CUSTOM_STACK',
5
+ // MONOCULAR_STACK = 'MONOCULAR_STACK',
6
+ // }
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ // /**
9
+ // * @description
10
+ // * WorkspaceStatus: Different status the workspace can be on.
11
+ // *
12
+ // * @constant
13
+ // * WORSPACE_STATUS_DISCONNECTED: When the workspace is disconnected when it was connected prior by the user.
14
+ // * @constant
15
+ // * WORKSPACE_STATUS_CONNECTED: When the workspace is currently used by the user.
16
+ // * @constant
17
+ // * WORKSPACE_STATUS_PENDING: Pending state of workspace. Could be anything.
18
+ // * @constant
19
+ // * WORKSPACE_STATUS_CREATING: Pending state when workspace is being created.
20
+ // * @constant
21
+ // * WORKSPACE_STATUS_CREATED: A new workspace created.
22
+ // */
23
+ // export enum WorkspaceStatus {
24
+ // WORKSPACE_STATUS_DISCONNECTED = 'WORKSPACE_STATUS_DISCONNECTED',
25
+ // WORKSPACE_STATUS_CONNECTED = 'WORKSPACE_STATUS_CONNECTED',
26
+ // WORKSPACE_STATUS_PENDING = 'WORKSPACE_STATUS_PENDING',
27
+ // WORKSPACE_STATUS_CREATING = 'WORKSPACE_STATUS_CREATING',
28
+ // WORKSPACE_STATUS_CREATED = 'WORKSPACE_STATUS_CREATED',
29
+ // WORKSPACE_STATUS_REMOVING = 'WORKSPACE_STATUS_REMOVING',
30
+ // WORKSPACE_STATUS_REMOVED = 'WORKSPACE_STATUS_REMOVED',
31
+ // WORKSPACE_STATUS_DISABLED = 'WORKSPACE_STATUS_DISABLED',
32
+ // WORKSPACE_STATUS_STOPPING = 'WORKSPACE_STATUS_STOPPING',
33
+ // WORKSPACE_STATUS_STOPPED = 'WORKSPACE_STATUS_STOPPED',
34
+ // WORKSPACE_STATUS_UPDATING = 'WORKSPACE_STATUS_UPDATING',
35
+ // WORKSPACE_STATUS_ACTIVE = 'WORKSPACE_STATUS_ACTIVE',
36
+ // WORKSPACE_STATUS_STARTING = 'WORKSPACE_STATUS_STARTING',
37
+ // WORKSPACE_STATUS_STARTED = 'WORKSPACE_STATUS_STARTED',
38
+ // WORKSPACE_STATUS_ERRORED = 'WORKSPACE_STATUS_ERRORED',
39
+ // WORKSPACE_STATUS_FAILURE = 'WORKSPACE_STATUS_FAILURE',
40
+ // WORKSPACE_STATUS_ABANDONED = 'WORKSPACE_STATUS_ABANDONED',
41
+ // WORKSPACE_STATUS_INACTIVE = 'WORKSPACE_STATUS_INACTIVE',
42
+ // }
43
+ // /**
44
+ // * Subscription event for UI based on the status of the workspace
45
+ // * that was published through the microservices.
46
+ // */
47
+ // export enum WorkspaceServerEvents {
48
+ // WORKSPACE_CREATED_EVENT = 'WORKSPACE_CREATED_EVENT',
49
+ // WORKSPACE_REMOVED_EVENT = 'WORKSPACE_REMOVED_EVENT',
50
+ // WORKSPACE_STARTED_EVENT = 'WORKSPACE_STARTED_EVENT',
51
+ // WORKSPACE_STOPPED_EVENT = 'WORKSPACE_STOPPED_EVENT',
52
+ // WORKSPACE_UPDATED_EVENT = 'WORKSPACE_UPDATED_EVENT',
53
+ // }
54
+ // export enum WorkspaceDeploymentCommands {
55
+ // CREATE_WORKSPACE = 'CREATE_WORKSPACE',
56
+ // REMOVE_WORKSPACE = 'REMOVE_WORKSPACE',
57
+ // START_WORKSPACE = 'START_WORKSPACE',
58
+ // STOP_WORKSPACE = 'STOP_WORKSPACE',
59
+ // UPDATE_WORKSPACE = 'UPDATE_WORKSPACE',
60
+ // }
61
+ // export enum WorkspaceServiceCommands {
62
+ // GET_NAMESPACES = 'GET_NAMESPACES',
63
+ // CREATE_WORKSPACE = 'CREATE_WORKSPACE',
64
+ // REMOVE_WORKSPACE = 'REMOVE_WORKSPACE',
65
+ // START_WORKSPACE = 'START_WORKSPACE',
66
+ // STOP_WORKSPACE = 'STOP_WORKSPACE',
67
+ // UPDATE_WORKSPACE = 'UPDATE_WORKSPACE',
68
+ // ADD_STACKS_TO_WORKSPACE = 'ADD_STACKS_TO_WORKSPACE',
69
+ // ADD_PROJECT_TO_WORKSPACE = 'ADD_PROJECT_TO_WORKSPACE',
70
+ // }
71
+ //# sourceMappingURL=enum.js.map