@adminide-stack/core 0.1.1 → 1.0.201-alpha.2
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 +2 -7
- package/lib/constants/constants.js +6 -0
- package/lib/constants/constants.js.map +1 -0
- package/lib/constants/default-workspace-config.d.ts +3 -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 +6 -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 +262 -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 +7 -0
- package/lib/enums/integrations-configuration-steps.js +12 -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 -143
- 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 +7 -0
- 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 +10953 -0
- package/lib/interfaces/generated/generated-models.js +3984 -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 +17 -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 +49 -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 +12 -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 -25
- package/lib/interfaces/workspace.d.ts +0 -37
package/lib/index.js
CHANGED
@@ -1,146 +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
|
-
/******/ // 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
|
-
|
77
|
-
|
78
|
-
|
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
|
+
};
|
79
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
"
|
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
|
-
/******/ ]);
|
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);
|
146
26
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
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, 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 @@
|
|
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":""}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
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
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./configuration"), exports);
|
18
|
+
__exportStar(require("./event"), exports);
|
19
|
+
__exportStar(require("./configuraton-service"), exports);
|
20
|
+
__exportStar(require("./configuration-server-service"), exports);
|
21
|
+
__exportStar(require("./configuration-file-service"), exports);
|
22
|
+
//# 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 @@
|
|
1
|
+
{"version":3,"file":"contex-key-service.js","sourceRoot":"","sources":["../../src/interfaces/contex-key-service.ts"],"names":[],"mappings":""}
|
@@ -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
|
+
}
|