@adminide-stack/core 0.0.2-0.0.16-6.0 → 0.0.2-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.
- package/LICENSE +674 -0
- package/README.md +2 -2
- package/lib/constants/billing-plan.d.ts +1 -0
- package/lib/constants/billing-plan.js +5 -0
- package/lib/constants/billing-plan.js.map +1 -0
- package/lib/constants/configuration.d.ts +6 -0
- package/lib/constants/configuration.js +10 -0
- package/lib/constants/configuration.js.map +1 -0
- package/lib/constants/constants.d.ts +0 -41
- package/lib/constants/constants.js +6 -0
- package/lib/constants/constants.js.map +1 -0
- package/lib/constants/default-workspace-config.js +7 -0
- package/lib/constants/default-workspace-config.js.map +1 -0
- package/lib/constants/index.d.ts +5 -0
- package/lib/constants/index.js +24 -0
- package/lib/constants/index.js.map +1 -0
- package/lib/constants/routes.d.ts +4 -0
- package/lib/constants/routes.js +10 -0
- package/lib/constants/routes.js.map +1 -0
- package/lib/constants/types.d.ts +19 -0
- package/lib/constants/types.js +23 -0
- package/lib/constants/types.js.map +1 -0
- package/lib/constants/urls.d.ts +3 -0
- package/lib/constants/urls.js +7 -0
- package/lib/constants/urls.js.map +1 -0
- package/lib/core/configurations/configuration.d.ts +64 -0
- package/lib/core/configurations/configuration.js +236 -0
- package/lib/core/configurations/configuration.js.map +1 -0
- package/lib/core/configurations/events/abstract-configuration-change-event.d.ts +6 -0
- package/lib/core/configurations/events/abstract-configuration-change-event.js +27 -0
- package/lib/core/configurations/events/abstract-configuration-change-event.js.map +1 -0
- package/lib/core/configurations/events/all-keys-configuration-change-event.d.ts +17 -0
- package/lib/core/configurations/events/all-keys-configuration-change-event.js +33 -0
- package/lib/core/configurations/events/all-keys-configuration-change-event.js.map +1 -0
- package/lib/core/configurations/events/configuration-change-event.d.ts +24 -0
- package/lib/core/configurations/events/configuration-change-event.js +84 -0
- package/lib/core/configurations/events/configuration-change-event.js.map +1 -0
- package/lib/core/configurations/events/index.d.ts +4 -0
- package/lib/core/configurations/events/index.js +21 -0
- package/lib/core/configurations/events/index.js.map +1 -0
- package/lib/core/configurations/events/organization-configuration-change-event.d.ts +15 -0
- package/lib/core/configurations/events/organization-configuration-change-event.js +39 -0
- package/lib/core/configurations/events/organization-configuration-change-event.js.map +1 -0
- package/lib/core/configurations/helpers/configuration.d.ts +26 -0
- package/lib/core/configurations/helpers/configuration.js +203 -0
- package/lib/core/configurations/helpers/configuration.js.map +1 -0
- package/lib/core/configurations/helpers/index.d.ts +1 -0
- package/lib/core/configurations/helpers/index.js +18 -0
- package/lib/core/configurations/helpers/index.js.map +1 -0
- package/lib/core/configurations/index.d.ts +4 -0
- package/lib/core/configurations/index.js +21 -0
- package/lib/core/configurations/index.js.map +1 -0
- package/lib/core/configurations/models/configuration-model.d.ts +24 -0
- package/lib/core/configurations/models/configuration-model.js +143 -0
- package/lib/core/configurations/models/configuration-model.js.map +1 -0
- package/lib/core/configurations/models/index.d.ts +1 -0
- package/lib/core/configurations/models/index.js +18 -0
- package/lib/core/configurations/models/index.js.map +1 -0
- package/lib/core/disposable.d.ts +28 -0
- package/lib/core/disposable.js +82 -0
- package/lib/core/disposable.js.map +1 -0
- package/lib/core/event.d.ts +76 -0
- package/lib/core/event.js +249 -0
- package/lib/core/event.js.map +1 -0
- package/lib/core/event.test.d.ts +1 -0
- package/lib/core/event.test.js +15 -0
- package/lib/core/event.test.js.map +1 -0
- package/lib/core/index.d.ts +6 -0
- package/lib/core/index.js +23 -0
- package/lib/core/index.js.map +1 -0
- package/lib/core/organization/configuration.d.ts +31 -0
- package/lib/core/organization/configuration.js +87 -0
- package/lib/core/organization/configuration.js.map +1 -0
- package/lib/core/organization/helpers/index.d.ts +1 -0
- package/lib/core/organization/helpers/index.js +18 -0
- package/lib/core/organization/helpers/index.js.map +1 -0
- package/lib/core/organization/helpers/organization-helpers.d.ts +6 -0
- package/lib/core/organization/helpers/organization-helpers.js +34 -0
- package/lib/core/organization/helpers/organization-helpers.js.map +1 -0
- package/lib/core/organization/index.d.ts +3 -0
- package/lib/core/organization/index.js +20 -0
- package/lib/core/organization/index.js.map +1 -0
- package/lib/core/organization/organization.d.ts +31 -0
- package/lib/core/organization/organization.js +135 -0
- package/lib/core/organization/organization.js.map +1 -0
- package/lib/core/path.d.ts +58 -0
- package/lib/core/path.js +189 -0
- package/lib/core/path.js.map +1 -0
- package/lib/core/path.test.d.ts +1 -0
- package/lib/core/path.test.js +205 -0
- package/lib/core/path.test.js.map +1 -0
- package/lib/core/types.d.ts +1 -0
- package/lib/core/types.js +3 -0
- package/lib/core/types.js.map +1 -0
- package/lib/core/uri.d.ts +68 -0
- package/lib/core/uri.js +158 -0
- package/lib/core/uri.js.map +1 -0
- package/lib/core/uri.test.d.ts +1 -0
- package/lib/core/uri.test.js +136 -0
- package/lib/core/uri.test.js.map +1 -0
- package/lib/enums/connection-status.d.ts +6 -0
- package/lib/enums/connection-status.js +11 -0
- package/lib/enums/connection-status.js.map +1 -0
- package/lib/enums/index.d.ts +7 -0
- package/lib/enums/index.js +24 -0
- package/lib/enums/index.js.map +1 -0
- package/lib/enums/integration-configuration-status.d.ts +5 -0
- package/lib/enums/integration-configuration-status.js +10 -0
- package/lib/enums/integration-configuration-status.js.map +1 -0
- package/lib/enums/integrations-configuration-steps.d.ts +8 -0
- package/lib/enums/integrations-configuration-steps.js +13 -0
- package/lib/enums/integrations-configuration-steps.js.map +1 -0
- package/lib/enums/integrations-connection-names.d.ts +11 -0
- package/lib/enums/integrations-connection-names.js +17 -0
- package/lib/enums/integrations-connection-names.js.map +1 -0
- package/lib/enums/integrations.d.ts +9 -0
- package/lib/enums/integrations.js +14 -0
- package/lib/enums/integrations.js.map +1 -0
- package/lib/enums/permissions.d.ts +7 -0
- package/lib/enums/permissions.js +12 -0
- package/lib/enums/permissions.js.map +1 -0
- package/lib/enums/team-member-status.d.ts +4 -0
- package/lib/enums/team-member-status.js +9 -0
- package/lib/enums/team-member-status.js.map +1 -0
- package/lib/errors/auth-error-messages.d.ts +25 -0
- package/lib/errors/auth-error-messages.js +31 -0
- package/lib/errors/auth-error-messages.js.map +1 -0
- package/lib/errors/auth-error.d.ts +8 -0
- package/lib/errors/auth-error.js +13 -0
- package/lib/errors/auth-error.js.map +1 -0
- package/lib/errors/index.d.ts +2 -0
- package/lib/errors/index.js +19 -0
- package/lib/errors/index.js.map +1 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +23 -256
- package/lib/index.js.map +1 -1
- package/lib/interfaces/apollo-context.d.ts +48 -0
- package/lib/interfaces/apollo-context.js +3 -0
- package/lib/interfaces/apollo-context.js.map +1 -0
- package/lib/interfaces/common.d.ts +2 -2
- package/lib/interfaces/common.js +3 -0
- package/lib/interfaces/common.js.map +1 -0
- package/lib/interfaces/configuration/configuration-file-service.d.ts +5 -0
- package/lib/interfaces/configuration/configuration-file-service.js +3 -0
- package/lib/interfaces/configuration/configuration-file-service.js.map +1 -0
- package/lib/interfaces/configuration/configuration-server-service.d.ts +10 -0
- package/lib/interfaces/configuration/configuration-server-service.js +3 -0
- package/lib/interfaces/configuration/configuration-server-service.js.map +1 -0
- package/lib/interfaces/configuration/configuration.d.ts +39 -0
- package/lib/interfaces/configuration/configuration.js +53 -0
- package/lib/interfaces/configuration/configuration.js.map +1 -0
- package/lib/interfaces/configuration/configuraton-service.d.ts +60 -0
- package/lib/interfaces/configuration/configuraton-service.js +3 -0
- package/lib/interfaces/configuration/configuraton-service.js.map +1 -0
- package/lib/interfaces/configuration/event.d.ts +12 -0
- package/lib/interfaces/configuration/event.js +3 -0
- package/lib/interfaces/configuration/event.js.map +1 -0
- package/lib/interfaces/configuration/index.d.ts +5 -0
- package/lib/interfaces/configuration/index.js +22 -0
- package/lib/interfaces/configuration/index.js.map +1 -0
- package/lib/interfaces/contex-key-service.d.ts +2 -0
- package/lib/interfaces/contex-key-service.js +3 -0
- package/lib/interfaces/contex-key-service.js.map +1 -0
- package/lib/interfaces/database-migration.d.ts +8 -0
- package/lib/interfaces/database-migration.js +3 -0
- package/lib/interfaces/database-migration.js.map +1 -0
- package/lib/interfaces/enum.d.ts +26 -0
- package/lib/interfaces/enum.js +71 -0
- package/lib/interfaces/enum.js.map +1 -0
- package/lib/interfaces/environment/argv.d.ts +6 -0
- package/lib/interfaces/environment/argv.js +3 -0
- package/lib/interfaces/environment/argv.js.map +1 -0
- package/lib/interfaces/environment/environment-service.d.ts +7 -0
- package/lib/interfaces/environment/environment-service.js +3 -0
- package/lib/interfaces/environment/environment-service.js.map +1 -0
- package/lib/interfaces/environment/index.d.ts +2 -0
- package/lib/interfaces/environment/index.js +19 -0
- package/lib/interfaces/environment/index.js.map +1 -0
- package/lib/interfaces/generated/generated-models.d.ts +9198 -0
- package/lib/interfaces/generated/generated-models.js +3183 -0
- package/lib/interfaces/generated/generated-models.js.map +1 -0
- package/lib/interfaces/generated/index.d.ts +1 -0
- package/lib/interfaces/generated/index.js +18 -0
- package/lib/interfaces/generated/index.js.map +1 -0
- package/lib/interfaces/index.d.ts +16 -1
- package/lib/interfaces/index.js +34 -0
- package/lib/interfaces/index.js.map +1 -0
- package/lib/interfaces/lifecycle-service.d.ts +1 -0
- package/lib/interfaces/lifecycle-service.js +8 -0
- package/lib/interfaces/lifecycle-service.js.map +1 -0
- package/lib/interfaces/log/index.d.ts +1 -0
- package/lib/interfaces/log/index.js +18 -0
- package/lib/interfaces/log/index.js.map +1 -0
- package/lib/interfaces/log/log-service.d.ts +16 -0
- package/lib/interfaces/log/log-service.js +3 -0
- package/lib/interfaces/log/log-service.js.map +1 -0
- package/lib/interfaces/nav-items.d.ts +5 -0
- package/lib/interfaces/nav-items.js +3 -0
- package/lib/interfaces/nav-items.js.map +1 -0
- package/lib/interfaces/organization/index.d.ts +3 -0
- package/lib/interfaces/organization/index.js +20 -0
- package/lib/interfaces/organization/index.js.map +1 -0
- package/lib/interfaces/organization/organization-context-service.d.ts +65 -0
- package/lib/interfaces/organization/organization-context-service.js +3 -0
- package/lib/interfaces/organization/organization-context-service.js.map +1 -0
- package/lib/interfaces/organization/organization-context.d.ts +39 -0
- package/lib/interfaces/organization/organization-context.js +31 -0
- package/lib/interfaces/organization/organization-context.js.map +1 -0
- package/lib/interfaces/organization/organizations-context.d.ts +35 -0
- package/lib/interfaces/organization/organizations-context.js +3 -0
- package/lib/interfaces/organization/organizations-context.js.map +1 -0
- package/lib/interfaces/page-store.d.ts +16 -0
- package/lib/interfaces/page-store.js +3 -0
- package/lib/interfaces/page-store.js.map +1 -0
- package/lib/interfaces/permissions.d.ts +2 -0
- package/lib/interfaces/permissions.js +3 -0
- package/lib/interfaces/permissions.js.map +1 -0
- package/lib/interfaces/preferences-service.d.ts +40 -0
- package/lib/interfaces/preferences-service.js +3 -0
- package/lib/interfaces/preferences-service.js.map +1 -0
- package/lib/interfaces/service.d.ts +18 -0
- package/lib/interfaces/service.js +3 -0
- package/lib/interfaces/service.js.map +1 -0
- package/lib/interfaces/workbench-exports.d.ts +5 -0
- package/lib/interfaces/workbench-exports.js +6 -0
- package/lib/interfaces/workbench-exports.js.map +1 -0
- package/lib/modules/account-api/enums/index.d.ts +51 -0
- package/lib/modules/account-api/enums/index.js +56 -0
- package/lib/modules/account-api/enums/index.js.map +1 -0
- package/lib/modules/account-api/index.d.ts +1 -0
- package/lib/modules/account-api/index.js +18 -0
- package/lib/modules/account-api/index.js.map +1 -0
- package/lib/modules/billing-api/enums/index.d.ts +22 -0
- package/lib/modules/billing-api/enums/index.js +28 -0
- package/lib/modules/billing-api/enums/index.js.map +1 -0
- package/lib/modules/billing-api/index.d.ts +1 -0
- package/lib/modules/billing-api/index.js +18 -0
- package/lib/modules/billing-api/index.js.map +1 -0
- package/lib/modules/index.d.ts +2 -0
- package/lib/modules/index.js +19 -0
- package/lib/modules/index.js.map +1 -0
- package/lib/services/abstract-configuration.d.ts +54 -0
- package/lib/services/abstract-configuration.js +80 -0
- package/lib/services/abstract-configuration.js.map +1 -0
- package/lib/services/abstract-organization-context-service.d.ts +40 -0
- package/lib/services/abstract-organization-context-service.js +115 -0
- package/lib/services/abstract-organization-context-service.js.map +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.js +19 -0
- package/lib/services/index.js.map +1 -0
- package/lib/utils/configuration-utils.d.ts +4 -0
- package/lib/utils/configuration-utils.js +15 -0
- package/lib/utils/configuration-utils.js.map +1 -0
- package/lib/utils/date-utils.d.ts +1 -0
- package/lib/utils/date-utils.js +9 -0
- package/lib/utils/date-utils.js.map +1 -0
- package/lib/utils/flatten-utils.d.ts +1 -0
- package/lib/utils/flatten-utils.js +20 -0
- package/lib/utils/flatten-utils.js.map +1 -0
- package/lib/utils/generate-uri.d.ts +35 -0
- package/lib/utils/generate-uri.js +50 -0
- package/lib/utils/generate-uri.js.map +1 -0
- package/lib/utils/generated-settings-id.d.ts +2 -0
- package/lib/utils/generated-settings-id.js +13 -0
- package/lib/utils/generated-settings-id.js.map +1 -0
- package/lib/utils/index.d.ts +9 -0
- package/lib/utils/index.js +26 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/omit-deep.d.ts +1 -0
- package/lib/utils/omit-deep.js +16 -0
- package/lib/utils/omit-deep.js.map +1 -0
- package/lib/utils/roles-utils.d.ts +2 -0
- package/lib/utils/roles-utils.js +11 -0
- package/lib/utils/roles-utils.js.map +1 -0
- package/lib/utils/uri.d.ts +3 -0
- package/lib/utils/uri.js +21 -0
- package/lib/utils/uri.js.map +1 -0
- package/lib/utils/utils.d.ts +3 -0
- package/lib/utils/utils.js +37 -0
- package/lib/utils/utils.js.map +1 -0
- package/lib/utils/validations.d.ts +1 -0
- package/lib/utils/validations.js +9 -0
- package/lib/utils/validations.js.map +1 -0
- package/package.json +34 -48
- package/lib/interfaces/workspace.d.ts +0 -159
package/lib/index.js
CHANGED
@@ -1,259 +1,26 @@
|
|
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
|
-
/******/ // define getter function for harmony exports
|
38
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
39
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
40
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
41
|
-
/******/ }
|
42
|
-
/******/ };
|
43
|
-
/******/
|
44
|
-
/******/ // define __esModule on exports
|
45
|
-
/******/ __webpack_require__.r = function(exports) {
|
46
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
47
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
48
|
-
/******/ }
|
49
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
50
|
-
/******/ };
|
51
|
-
/******/
|
52
|
-
/******/ // create a fake namespace object
|
53
|
-
/******/ // mode & 1: value is a module id, require it
|
54
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
55
|
-
/******/ // mode & 4: return value when already ns object
|
56
|
-
/******/ // mode & 8|1: behave like require
|
57
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
58
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
59
|
-
/******/ if(mode & 8) return value;
|
60
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
61
|
-
/******/ var ns = Object.create(null);
|
62
|
-
/******/ __webpack_require__.r(ns);
|
63
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
64
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
65
|
-
/******/ return ns;
|
66
|
-
/******/ };
|
67
|
-
/******/
|
68
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
69
|
-
/******/ __webpack_require__.n = function(module) {
|
70
|
-
/******/ var getter = module && module.__esModule ?
|
71
|
-
/******/ function getDefault() { return module['default']; } :
|
72
|
-
/******/ function getModuleExports() { return module; };
|
73
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
74
|
-
/******/ return getter;
|
75
|
-
/******/ };
|
76
|
-
/******/
|
77
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
78
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
79
|
-
/******/
|
80
|
-
/******/ // __webpack_public_path__
|
81
|
-
/******/ __webpack_require__.p = "";
|
82
|
-
/******/
|
83
|
-
/******/
|
84
|
-
/******/ // Load entry module and return exports
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts");
|
86
|
-
/******/ })
|
87
|
-
/************************************************************************/
|
88
|
-
/******/ ({
|
89
|
-
|
90
|
-
/***/ "./src/constants/constants.ts":
|
91
|
-
/*!************************************!*\
|
92
|
-
!*** ./src/constants/constants.ts ***!
|
93
|
-
\************************************/
|
94
|
-
/*! no static exports found */
|
95
|
-
/***/ (function(module, exports, __webpack_require__) {
|
96
|
-
|
97
1
|
"use strict";
|
98
|
-
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
99
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
100
|
-
exports
|
101
|
-
exports
|
102
|
-
|
103
|
-
(
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
WorkspaceStatus["WORKSPACE_STATUS_REMOVING"] = "WORKSPACE_STATUS_REMOVING";
|
110
|
-
WorkspaceStatus["WORKSPACE_STATUS_REMOVED"] = "WORKSPACE_STATUS_REMOVED";
|
111
|
-
WorkspaceStatus["WORKSPACE_STATUS_DISABLED"] = "WORKSPACE_STATUS_DISABLED";
|
112
|
-
WorkspaceStatus["WORKSPACE_STATUS_STOPPING"] = "WORKSPACE_STATUS_STOPPING";
|
113
|
-
WorkspaceStatus["WORKSPACE_STATUS_STOPPED"] = "WORKSPACE_STATUS_STOPPED";
|
114
|
-
WorkspaceStatus["WORKSPACE_STATUS_UPDATING"] = "WORKSPACE_STATUS_UPDATING";
|
115
|
-
WorkspaceStatus["WORKSPACE_STATUS_ACTIVE"] = "WORKSPACE_STATUS_ACTIVE";
|
116
|
-
WorkspaceStatus["WORKSPACE_STATUS_STARTING"] = "WORKSPACE_STATUS_STARTING";
|
117
|
-
WorkspaceStatus["WORKSPACE_STATUS_STARTED"] = "WORKSPACE_STATUS_STARTED";
|
118
|
-
WorkspaceStatus["WORKSPACE_STATUS_ERRORED"] = "WORKSPACE_STATUS_ERRORED";
|
119
|
-
WorkspaceStatus["WORKSPACE_STATUS_FAILURE"] = "WORKSPACE_STATUS_FAILURE";
|
120
|
-
WorkspaceStatus["WORKSPACE_STATUS_ABANDONED"] = "WORKSPACE_STATUS_ABANDONED";
|
121
|
-
WorkspaceStatus["WORKSPACE_STATUS_INACTIVE"] = "WORKSPACE_STATUS_INACTIVE";
|
122
|
-
})(WorkspaceStatus = exports.WorkspaceStatus || (exports.WorkspaceStatus = {}));
|
123
|
-
var WorkspaceServerEvents;
|
124
|
-
(function (WorkspaceServerEvents) {
|
125
|
-
WorkspaceServerEvents["WORKSPACE_CREATED_EVENT"] = "WORKSPACE_CREATED_EVENT";
|
126
|
-
WorkspaceServerEvents["WORKSPACE_REMOVED_EVENT"] = "WORKSPACE_REMOVED_EVENT";
|
127
|
-
WorkspaceServerEvents["WORKSPACE_STARTED_EVENT"] = "WORKSPACE_STARTED_EVENT";
|
128
|
-
WorkspaceServerEvents["WORKSPACE_STOPPED_EVENT"] = "WORKSPACE_STOPPED_EVENT";
|
129
|
-
WorkspaceServerEvents["WORKSPACE_UPDATED_EVENT"] = "WORKSPACE_UPDATED_EVENT";
|
130
|
-
})(WorkspaceServerEvents = exports.WorkspaceServerEvents || (exports.WorkspaceServerEvents = {}));
|
131
|
-
var WorkspaceDeploymentCommands;
|
132
|
-
(function (WorkspaceDeploymentCommands) {
|
133
|
-
WorkspaceDeploymentCommands["CREATE_WORKSPACE"] = "CREATE_WORKSPACE";
|
134
|
-
WorkspaceDeploymentCommands["REMOVE_WORKSPACE"] = "REMOVE_WORKSPACE";
|
135
|
-
WorkspaceDeploymentCommands["START_WORKSPACE"] = "START_WORKSPACE";
|
136
|
-
WorkspaceDeploymentCommands["STOP_WORKSPACE"] = "STOP_WORKSPACE";
|
137
|
-
WorkspaceDeploymentCommands["UPDATE_WORKSPACE"] = "UPDATE_WORKSPACE";
|
138
|
-
})(WorkspaceDeploymentCommands = exports.WorkspaceDeploymentCommands || (exports.WorkspaceDeploymentCommands = {}));
|
139
|
-
var WorkspaceServiceCommands;
|
140
|
-
(function (WorkspaceServiceCommands) {
|
141
|
-
WorkspaceServiceCommands["CREATE_WORKSPACE"] = "CREATE_WORKSPACE";
|
142
|
-
WorkspaceServiceCommands["REMOVE_WORKSPACE"] = "REMOVE_WORKSPACE";
|
143
|
-
WorkspaceServiceCommands["START_WORKSPACE"] = "START_WORKSPACE";
|
144
|
-
WorkspaceServiceCommands["STOP_WORKSPACE"] = "STOP_WORKSPACE";
|
145
|
-
WorkspaceServiceCommands["UPDATE_WORKSPACE"] = "UPDATE_WORKSPACE";
|
146
|
-
})(WorkspaceServiceCommands = exports.WorkspaceServiceCommands || (exports.WorkspaceServiceCommands = {}));
|
147
|
-
|
148
|
-
|
149
|
-
/***/ }),
|
150
|
-
|
151
|
-
/***/ "./src/constants/default-workspace-config.ts":
|
152
|
-
/*!***************************************************!*\
|
153
|
-
!*** ./src/constants/default-workspace-config.ts ***!
|
154
|
-
\***************************************************/
|
155
|
-
/*! no static exports found */
|
156
|
-
/***/ (function(module, exports, __webpack_require__) {
|
157
|
-
|
158
|
-
"use strict";
|
159
|
-
|
160
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
161
|
-
exports.DEFAULT_RAM = 536870912;
|
162
|
-
exports.DEFAULT_HDD = 1073741824;
|
163
|
-
exports.DEFAULT_CPU = 1;
|
164
|
-
|
165
|
-
|
166
|
-
/***/ }),
|
167
|
-
|
168
|
-
/***/ "./src/constants/index.ts":
|
169
|
-
/*!********************************!*\
|
170
|
-
!*** ./src/constants/index.ts ***!
|
171
|
-
\********************************/
|
172
|
-
/*! no static exports found */
|
173
|
-
/***/ (function(module, exports, __webpack_require__) {
|
174
|
-
|
175
|
-
"use strict";
|
176
|
-
|
177
|
-
function __export(m) {
|
178
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
179
|
-
}
|
180
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
181
|
-
__export(__webpack_require__(/*! ./constants */ "./src/constants/constants.ts"));
|
182
|
-
__export(__webpack_require__(/*! ./default-workspace-config */ "./src/constants/default-workspace-config.ts"));
|
183
|
-
|
184
|
-
|
185
|
-
/***/ }),
|
186
|
-
|
187
|
-
/***/ "./src/index.ts":
|
188
|
-
/*!**********************!*\
|
189
|
-
!*** ./src/index.ts ***!
|
190
|
-
\**********************/
|
191
|
-
/*! no static exports found */
|
192
|
-
/***/ (function(module, exports, __webpack_require__) {
|
193
|
-
|
194
|
-
"use strict";
|
195
|
-
|
196
|
-
function __export(m) {
|
197
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
198
|
-
}
|
199
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
200
|
-
__export(__webpack_require__(/*! ./constants */ "./src/constants/index.ts"));
|
201
|
-
__export(__webpack_require__(/*! ./interfaces */ "./src/interfaces/index.ts"));
|
202
|
-
|
203
|
-
|
204
|
-
/***/ }),
|
205
|
-
|
206
|
-
/***/ "./src/interfaces/index.ts":
|
207
|
-
/*!*********************************!*\
|
208
|
-
!*** ./src/interfaces/index.ts ***!
|
209
|
-
\*********************************/
|
210
|
-
/*! no static exports found */
|
211
|
-
/***/ (function(module, exports, __webpack_require__) {
|
212
|
-
|
213
|
-
"use strict";
|
214
|
-
|
215
|
-
function __export(m) {
|
216
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
217
|
-
}
|
218
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
219
|
-
__export(__webpack_require__(/*! ./workspace */ "./src/interfaces/workspace.ts"));
|
220
|
-
|
221
|
-
|
222
|
-
/***/ }),
|
223
|
-
|
224
|
-
/***/ "./src/interfaces/workspace.ts":
|
225
|
-
/*!*************************************!*\
|
226
|
-
!*** ./src/interfaces/workspace.ts ***!
|
227
|
-
\*************************************/
|
228
|
-
/*! no static exports found */
|
229
|
-
/***/ (function(module, exports, __webpack_require__) {
|
230
|
-
|
231
|
-
"use strict";
|
232
|
-
|
233
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
234
|
-
var IStackType;
|
235
|
-
(function (IStackType) {
|
236
|
-
IStackType["IDE_STACK"] = "IDE_STACK";
|
237
|
-
IStackType["CUSTOM_STACK"] = "CUSTOM_STACK";
|
238
|
-
IStackType["MONOCULAR_STACK"] = "MONOCULAR_STACK";
|
239
|
-
})(IStackType = exports.IStackType || (exports.IStackType = {}));
|
240
|
-
var ISourceProviders;
|
241
|
-
(function (ISourceProviders) {
|
242
|
-
ISourceProviders["GITHUB"] = "GITHUB";
|
243
|
-
ISourceProviders["BITBUCKET"] = "BITBUCKET";
|
244
|
-
ISourceProviders["GITLAB"] = "GITLAB";
|
245
|
-
ISourceProviders["VSTS"] = "VSTS";
|
246
|
-
ISourceProviders["NONE"] = "NONE";
|
247
|
-
})(ISourceProviders = exports.ISourceProviders || (exports.ISourceProviders = {}));
|
248
|
-
var ISourceType;
|
249
|
-
(function (ISourceType) {
|
250
|
-
ISourceType["GIT"] = "GIT";
|
251
|
-
ISourceType["BLANK"] = "BLANK";
|
252
|
-
ISourceType["ZIP"] = "ZIP";
|
253
|
-
})(ISourceType = exports.ISourceType || (exports.ISourceType = {}));
|
254
|
-
|
255
|
-
|
256
|
-
/***/ })
|
257
|
-
|
258
|
-
/******/ });
|
17
|
+
__exportStar(require("./constants"), exports);
|
18
|
+
__exportStar(require("./interfaces"), exports);
|
19
|
+
// export * from './context';
|
20
|
+
__exportStar(require("./utils"), exports);
|
21
|
+
__exportStar(require("./core"), exports);
|
22
|
+
__exportStar(require("./errors"), exports);
|
23
|
+
__exportStar(require("./services"), exports);
|
24
|
+
__exportStar(require("./modules"), exports);
|
25
|
+
__exportStar(require("./enums"), exports);
|
259
26
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["webpack://@adminide-stack/core/webpack/bootstrap","webpack://@adminide-stack/core/./src/constants/constants.ts","webpack://@adminide-stack/core/./src/constants/default-workspace-config.ts","webpack://@adminide-stack/core/./src/constants/index.ts","webpack://@adminide-stack/core/./src/index.ts","webpack://@adminide-stack/core/./src/interfaces/index.ts","webpack://@adminide-stack/core/./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;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;;;;;;;ACjFa,sCAA8B,GAAG,gCAAgC,CAAC;AAClE,8CAAsC,GAAG,wCAAwC,CAAC;AAgB/F,IAAY,eAmBX;AAnBD,WAAY,eAAe;IACvB,kFAA+D;IAC/D,4EAAyD;IACzD,wEAAqD;IACrD,0EAAuD;IACvD,wEAAqD;IACrD,0EAAuD;IACvD,wEAAqD;IACrD,0EAAuD;IACvD,0EAAuD;IACvD,wEAAqD;IACrD,0EAAuD;IACvD,sEAAmD;IACnD,0EAAuD;IACvD,wEAAqD;IACrD,wEAAqD;IACrD,wEAAqD;IACrD,4EAAyD;IACzD,0EAAuD;AAC3D,CAAC,EAnBW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAmB1B;AAED,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC7B,4EAAmD;IACnD,4EAAmD;IACnD,4EAAmD;IACnD,4EAAmD;IACnD,4EAAmD;AACvD,CAAC,EANW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAMhC;AAED,IAAY,2BAMX;AAND,WAAY,2BAA2B;IACnC,oEAAqC;IACrC,oEAAqC;IACrC,kEAAmC;IACnC,gEAAiC;IACjC,oEAAqC;AACzC,CAAC,EANW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAMtC;AAED,IAAY,wBAMX;AAND,WAAY,wBAAwB;IAChC,iEAAqC;IACrC,iEAAqC;IACrC,+DAAmC;IACnC,6DAAiC;IACjC,iEAAqC;AACzC,CAAC,EANW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAMnC;;;;;;;;;;;;;;;AC5DY,mBAAW,GAAG,SAAS,CAAC;AACxB,mBAAW,GAAG,UAAU,CAAC;AACzB,mBAAW,GAAG,CAAC,CAAC;;;;;;;;;;;;;;;;;;ACH7B,iFAA4B;AAC5B,+GAA2C;;;;;;;;;;;;;;;;;;ACD3C,6EAA4B;AAC5B,+EAA6B;;;;;;;;;;;;;;;;;;ACD7B,kFAA4B;;;;;;;;;;;;;;;ACwJ5B,IAAY,UAIX;AAJD,WAAY,UAAU;IAClB,qCAAsB;IACtB,2CAA6B;IAC7B,iDAAmC;AACvC,CAAC,EAJW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAIrB;AAKD,IAAY,gBAMX;AAND,WAAY,gBAAgB;IACxB,qCAAiB;IACjB,2CAAuB;IACvB,qCAAiB;IACjB,iCAAa;IACb,iCAAa;AACjB,CAAC,EANW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAM3B;AAKD,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,0BAAW;IACX,8BAAe;IACf,0BAAW;AACf,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB","file":"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// 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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/index.ts\");\n","\nexport const NATS_HEMERA_ADMINIDE_WORKSPACE = 'NATS_HEMERA_ADMINIDE_WORKSPACE';\nexport const NATS_HEMERA_ADMINIDE_WORKSPACE_UPDATER = 'NATS_HEMERA_ADMINIDE_WORKSPACE_UPDATER';\n/**\n * @description\n * WorkspaceStatus: Different status the workspace can be on.\n *\n * @constant\n * WORSPACE_STATUS_DISCONNECTED: When the workspace is disconnected when it was connected prior by the user.\n * @constant\n * WORKSPACE_STATUS_CONNECTED: When the workspace is currently used by the user.\n * @constant\n * WORKSPACE_STATUS_PENDING: Pending state of workspace. Could be anything.\n * @constant\n * WORKSPACE_STATUS_CREATING: Pending state when workspace is being created.\n * @constant\n * WORKSPACE_STATUS_CREATED: A new workspace created.\n */\nexport enum WorkspaceStatus {\n WORKSPACE_STATUS_DISCONNECTED = 'WORKSPACE_STATUS_DISCONNECTED',\n WORKSPACE_STATUS_CONNECTED = 'WORKSPACE_STATUS_CONNECTED',\n WORKSPACE_STATUS_PENDING = 'WORKSPACE_STATUS_PENDING',\n WORKSPACE_STATUS_CREATING = 'WORKSPACE_STATUS_CREATING',\n WORKSPACE_STATUS_CREATED = 'WORKSPACE_STATUS_CREATED',\n WORKSPACE_STATUS_REMOVING = 'WORKSPACE_STATUS_REMOVING',\n WORKSPACE_STATUS_REMOVED = 'WORKSPACE_STATUS_REMOVED',\n WORKSPACE_STATUS_DISABLED = 'WORKSPACE_STATUS_DISABLED',\n WORKSPACE_STATUS_STOPPING = 'WORKSPACE_STATUS_STOPPING',\n WORKSPACE_STATUS_STOPPED = 'WORKSPACE_STATUS_STOPPED',\n WORKSPACE_STATUS_UPDATING = 'WORKSPACE_STATUS_UPDATING',\n WORKSPACE_STATUS_ACTIVE = 'WORKSPACE_STATUS_ACTIVE',\n WORKSPACE_STATUS_STARTING = 'WORKSPACE_STATUS_STARTING',\n WORKSPACE_STATUS_STARTED = 'WORKSPACE_STATUS_STARTED',\n WORKSPACE_STATUS_ERRORED = 'WORKSPACE_STATUS_ERRORED',\n WORKSPACE_STATUS_FAILURE = 'WORKSPACE_STATUS_FAILURE',\n WORKSPACE_STATUS_ABANDONED = 'WORKSPACE_STATUS_ABANDONED',\n WORKSPACE_STATUS_INACTIVE = 'WORKSPACE_STATUS_INACTIVE',\n}\n\nexport enum WorkspaceServerEvents {\n WORKSPACE_CREATED_EVENT = 'WORKSPACE_CREATED_EVENT',\n WORKSPACE_REMOVED_EVENT = 'WORKSPACE_REMOVED_EVENT',\n WORKSPACE_STARTED_EVENT = 'WORKSPACE_STARTED_EVENT',\n WORKSPACE_STOPPED_EVENT = 'WORKSPACE_STOPPED_EVENT',\n WORKSPACE_UPDATED_EVENT = 'WORKSPACE_UPDATED_EVENT',\n}\n\nexport enum WorkspaceDeploymentCommands {\n CREATE_WORKSPACE = 'CREATE_WORKSPACE',\n REMOVE_WORKSPACE = 'REMOVE_WORKSPACE',\n START_WORKSPACE = 'START_WORKSPACE',\n STOP_WORKSPACE = 'STOP_WORKSPACE',\n UPDATE_WORKSPACE = 'UPDATE_WORKSPACE',\n}\n\nexport enum WorkspaceServiceCommands {\n CREATE_WORKSPACE = 'CREATE_WORKSPACE',\n REMOVE_WORKSPACE = 'REMOVE_WORKSPACE',\n START_WORKSPACE = 'START_WORKSPACE',\n STOP_WORKSPACE = 'STOP_WORKSPACE',\n UPDATE_WORKSPACE = 'UPDATE_WORKSPACE',\n}\n","\nexport const DEFAULT_RAM = 536870912;\nexport const DEFAULT_HDD = 1073741824;\nexport const DEFAULT_CPU = 1;\n\n","export * from './constants';\nexport * from './default-workspace-config';\n","export * from './constants';\nexport * from './interfaces';\n","export * from './workspace';\nexport * from './common';\n","import { WorkspaceStatus } from '../constants';\nimport { IUser } from './common';\n\n\n/**\n * Workspace is a single or group of containers for a complete application. It consists of\n * Projects and Predefined Stacks like DB etc.\n *\n * @property\n * name: Workspace Name\n * @property\n * language: Primary language of the workspace\n * @property\n * description: Workspace Description\n * @property\n * iconUrl: ICON Url for workspace\n * @property\n * status; Workspace status\n * @property\n * config: Workspace configuration\n * @property\n * token: Workspace token\n * @property\n * url: Workspace direct access URL\n * @property\n * ownerId: Workspace Owner ID\n * @property\n * namespace: Workspace Namespace, a namespace can have many workspaces\n * @property\n * temporary: Whether workspace is temporary or not\n * @property\n * projects: Workspace with projects such as Git Repositories. It can have many projects.\n * @property\n * stacks: Monocular stack\n */\nexport interface IWorkspace {\n id?: string;\n name: string;\n language: string;\n description?: string;\n iconUrl: string;\n status?: WorkspaceStatus;\n config?: IWorkspaceConfig;\n token?: string;\n url?: string;\n orgId: string;\n namespace: string;\n temporary?: string;\n projects: IProject[];\n stacks: IStack[];\n}\n\n/**\n * Project can be any of the following:\n * i. Git Repository\n * ii. Blank, in case the source.location is empty\n * iii. Others like upload files or zip files\n *\n * @property\n * name: Project Name\n * @property\n * description: Project description\n * @property\n * path: Path of the project in workspace\n * @property\n * source: Source of the project, it could Git etc. If GIT we define the branch under parameters.\n * @property\n * problems: If the project failed with any issues, we save them to notify the user.\n */\nexport interface IProject {\n name: string;\n description: string;\n path: string;\n source: {\n location?: string;\n type: ISourceType;\n parameters: {\n branch?: string;\n };\n providers?: ISourceProviders;\n language?: string;\n };\n problems?: string[];\n}\n\n\n/**\n * User provided data to create workspace.\n */\nexport interface IWorkspaceCreateRequest {\n id?: string;\n name: string;\n language?: string;\n orgId: string;\n description?: string;\n namespace?: string;\n iconUrl?: string;\n projects: IProject[];\n stacks?: IStack[];\n}\n\n\n/**\n * Stack would be the workspace environment. Basically the containers the user will\n * be having.\n * IDE Editor comes as default stack with various flavor of Docker image.\n * Additional the user can choose any collection of stack from Monocular charts.\n * Cluster information such as `cluster`, `namespace` and `trillerNamespace` can be hidden\n * if the user haven't integrated with their kubernetes cluster.\n * The values file can be edited and only diff values need to be send to backend.\n *\n * @property\n * type: Type of the stack. `IDE_STACK` is a private stack whoes the details won't be shown in UI.\n * It is used for creating IDE based on the machine flavors.\n * @property\n * repository: The repository for installing the chart. Default is Monocular charts.\n * @property\n * releaseName: Chart Release name when installing it. It will be a unique name.\n * @property\n * chartName: Name of the chart to be installed.\n * @property\n * chartVersion: Version of the chart to be installed.\n * @property\n * namespace: In case chart installed in a different namespace.\n * @property\n * cluster: If the different cluster was installed. (not supported yet)\n * @property\n * tillerNamespace: (Not supported yet)\n * @property\n * valuesFile: YAML file format to send to backend.\n * @property\n * overrideSetVariables: Key, Value parit to override values.\n * @property\n * variables: Environment variables to add to the stack additionally.\n *\n */\nexport interface IStack {\n id?: string;\n connectionId?: string;\n type: IStackType;\n repository?: string;\n releaseName: string;\n chartName: string;\n chartVersion?: string;\n namespace?: string;\n cluster?: string;\n tillerNamespace?: string;\n valuesFile?: any;\n overrideSetVariables?: { [key: string]: string };\n variables?: IEnvironmentVariable[];\n}\n\nexport enum IStackType {\n IDE_STACK= 'IDE_STACK',\n CUSTOM_STACK = 'CUSTOM_STACK',\n MONOCULAR_STACK = 'MONOCULAR_STACK',\n}\n\n/**\n * Various Source Providers for Projects Source.\n */\nexport enum ISourceProviders {\n GITHUB = 'GITHUB',\n BITBUCKET = 'BITBUCKET',\n GITLAB = 'GITLAB',\n VSTS = 'VSTS',\n NONE = 'NONE',\n}\n\n/**\n * Various types of sources.\n */\nexport enum ISourceType {\n GIT = 'GIT',\n BLANK = 'BLANK',\n ZIP = 'ZIP',\n}\n\nexport interface IWorkspaceMetadata {\n namespace: string;\n orgId: string;\n identities: any[];\n}\n\n/**\n * Workspace configuration.\n */\nexport interface IWorkspaceConfig {\n id?: string;\n name: string;\n defaultEnv: string;\n description: string;\n commands: ICommand[];\n spec: IWorkspaceSpec;\n ports?: IWorkspacePorts;\n globalVariables: IEnvironmentVariable[];\n}\n\nexport interface IEnvironmentVariable {\n field: string;\n value: string;\n secured?: boolean;\n}\n\nexport interface ICommand {\n id?: string;\n commandLine: any;\n name: string;\n type: string;\n}\n\nexport interface IEnvironment {\n id?: string;\n content: any;\n contentType: string;\n location: string;\n type: string;\n}\n\nexport interface IWorkspaceSpec {\n id: string;\n cpu: number;\n hdd: number;\n ram: number;\n}\n\n\nexport interface ISetWorkspaceEnvVariblesRequest {\n workspace: string;\n variables: IEnvironmentVariable[];\n}\n\n\n\nexport interface IGiturlCreateRequest {\n gitUrl: string;\n}\n\n\nexport interface IWorkspaceUpdateRequest {\n id: string;\n requestedUserId?: string;\n stacks?: IStack[];\n status?: WorkspaceStatus;\n}\n\nexport interface IWorkspaceRemoveRequest {\n id: string;\n orgId: string;\n requestedUserId?: string;\n stacks?: IStack[];\n}\n\nexport interface IWorkspaceStartRequest {\n id: string;\n orgId: string;\n requestedUserId?: string;\n stacks?: IStack[];\n}\n\nexport interface IWorkspaceStopRequest {\n id: string;\n orgId: string;\n requestedUserId?: string;\n stacks?: IStack[];\n}\n\n\nexport interface IWorkspaceConfigPayload {\n orgId: string;\n repositoryUrl?: string;\n repositoryBranch?: string;\n workspaceId?: string;\n status?: WorkspaceStatus;\n}\n\nexport interface IWorkspacePorts {\n application: string;\n management: string;\n worker: string;\n}\n\n"],"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 @@
|
|
1
|
+
{"version":3,"file":"apollo-context.js","sourceRoot":"","sources":["../../src/interfaces/apollo-context.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/interfaces/common.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { IPreferencesInput, IConfigurationOverridesInput, IConfigurationOverrides, ConfigurationTarget } from '../generated';
|
2
|
+
export interface IConfigurationFileService {
|
3
|
+
resolveConfiguration(input: IPreferencesInput, key: string, overrides: IConfigurationOverridesInput): Promise<unknown>;
|
4
|
+
updateConfiguration(input: IPreferencesInput, key: string, value: any, overrides: IConfigurationOverrides, target: ConfigurationTarget, donotNotifyError?: boolean): Promise<void>;
|
5
|
+
}
|
@@ -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 @@
|
|
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,53 @@
|
|
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
|
+
const core_1 = require("@workbench-stack/core");
|
5
|
+
Object.defineProperty(exports, "ConfigurationScope", { enumerable: true, get: function () { return core_1.ConfigurationScope; } });
|
6
|
+
// export const enum ConfigurationScope {
|
7
|
+
// /**
|
8
|
+
// * Application specific configuration, which can be configured only in local user settings.
|
9
|
+
// */
|
10
|
+
// APPLICATION = 1,
|
11
|
+
// /**
|
12
|
+
// * Machine specific configuration, which can be configured only in local and remote user settings.
|
13
|
+
// */
|
14
|
+
// MACHINE,
|
15
|
+
// /**
|
16
|
+
// * Window specific configuration, which can be configured in the user or organization settings.
|
17
|
+
// */
|
18
|
+
// WINDOW,
|
19
|
+
// /**
|
20
|
+
// * Resource specific configuration, which can be configured in the user, organization or workspace settings.
|
21
|
+
// */
|
22
|
+
// RESOURCE,
|
23
|
+
// }
|
24
|
+
var ConfigurationTarget;
|
25
|
+
(function (ConfigurationTarget) {
|
26
|
+
/**
|
27
|
+
* Targets the user/application configuraton file for writing.
|
28
|
+
*/
|
29
|
+
ConfigurationTarget[ConfigurationTarget["USER"] = 1] = "USER";
|
30
|
+
/**
|
31
|
+
* Targets the application configuration file for writing.
|
32
|
+
*/
|
33
|
+
ConfigurationTarget[ConfigurationTarget["APPLICATION"] = 2] = "APPLICATION";
|
34
|
+
/**
|
35
|
+
* Targets the machine configuration file for writing. This only works if a machine is opened.
|
36
|
+
*/
|
37
|
+
ConfigurationTarget[ConfigurationTarget["MACHINE"] = 3] = "MACHINE";
|
38
|
+
/**
|
39
|
+
* Targets the organization configuration file for writing. This only works if organization is opened.
|
40
|
+
*/
|
41
|
+
ConfigurationTarget[ConfigurationTarget["ORGANIZATION"] = 4] = "ORGANIZATION";
|
42
|
+
/**
|
43
|
+
* Targets the resource configuration file for writing. This only works if a organization is opened.
|
44
|
+
*/
|
45
|
+
ConfigurationTarget[ConfigurationTarget["ORGANIZATION_RESOURCE"] = 5] = "ORGANIZATION_RESOURCE";
|
46
|
+
ConfigurationTarget[ConfigurationTarget["DEFAULT"] = 6] = "DEFAULT";
|
47
|
+
ConfigurationTarget[ConfigurationTarget["MEMORY"] = 7] = "MEMORY";
|
48
|
+
})(ConfigurationTarget = exports.ConfigurationTarget || (exports.ConfigurationTarget = {}));
|
49
|
+
exports.LOCAL_MACHINE_SCOPES = [1 /* ConfigurationScope.APPLICATION */, 3 /* ConfigurationScope.WINDOW */, 4 /* ConfigurationScope.RESOURCE */];
|
50
|
+
exports.REMOTE_MACHINE_SCOPES = [2 /* ConfigurationScope.MACHINE */, 3 /* ConfigurationScope.WINDOW */, 4 /* ConfigurationScope.RESOURCE */];
|
51
|
+
exports.ORGANIZATION_SCOPES = [3 /* ConfigurationScope.WINDOW */, 4 /* ConfigurationScope.RESOURCE */];
|
52
|
+
exports.RESOURCE_SCOPES = [4 /* ConfigurationScope.RESOURCE */];
|
53
|
+
//# sourceMappingURL=configuration.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/interfaces/configuration/configuration.ts"],"names":[],"mappings":";;;AACA,gDAA2D;AAElD,mGAFA,yBAAkB,OAEA;AAC3B,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,gHAAwF,CAAC;AAChH,QAAA,qBAAqB,GAAG,4GAAoF,CAAC;AAC7G,QAAA,mBAAmB,GAAG,wEAAwD,CAAC;AAC/E,QAAA,eAAe,GAAG,qCAA6B,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 @@
|
|
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 @@
|
|
1
|
+
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../../src/interfaces/configuration/event.ts"],"names":[],"mappings":""}
|