@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
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.generateSettingsId = void 0;
|
4
|
+
const interfaces_1 = require("../interfaces");
|
5
|
+
// not used anymore
|
6
|
+
const generateSettingsId = (target, nativeId = interfaces_1.IConfigurationContributionNames.DefaultSettings) => {
|
7
|
+
if (!nativeId) {
|
8
|
+
nativeId = interfaces_1.IConfigurationContributionNames.DefaultSettings;
|
9
|
+
}
|
10
|
+
return `${nativeId}_${target}`;
|
11
|
+
};
|
12
|
+
exports.generateSettingsId = generateSettingsId;
|
13
|
+
//# sourceMappingURL=generated-settings-id.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"generated-settings-id.js","sourceRoot":"","sources":["../../src/utils/generated-settings-id.ts"],"names":[],"mappings":";;;AAAA,8CAAqF;AAErF,mBAAmB;AACZ,MAAM,kBAAkB,GAAG,CAC9B,MAA2B,EAC3B,WAAmB,4CAA+B,CAAC,eAAe,EACpE,EAAE;IACA,IAAI,CAAC,QAAQ,EAAE;QACX,QAAQ,GAAG,4CAA+B,CAAC,eAAe,CAAC;KAC9D;IACD,OAAO,GAAG,QAAQ,IAAI,MAAM,EAAE,CAAC;AACnC,CAAC,CAAC;AARW,QAAA,kBAAkB,sBAQ7B"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export * from './utils';
|
2
|
+
export * from './uri';
|
3
|
+
export * from './generate-uri';
|
4
|
+
export * from './roles-utils';
|
5
|
+
export * from './configuration-utils';
|
6
|
+
export * from './omit-deep';
|
7
|
+
export * from './generated-settings-id';
|
8
|
+
export * from './validations';
|
9
|
+
export * from './date-utils';
|
@@ -0,0 +1,26 @@
|
|
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("./utils"), exports);
|
18
|
+
__exportStar(require("./uri"), exports);
|
19
|
+
__exportStar(require("./generate-uri"), exports);
|
20
|
+
__exportStar(require("./roles-utils"), exports);
|
21
|
+
__exportStar(require("./configuration-utils"), exports);
|
22
|
+
__exportStar(require("./omit-deep"), exports);
|
23
|
+
__exportStar(require("./generated-settings-id"), exports);
|
24
|
+
__exportStar(require("./validations"), exports);
|
25
|
+
__exportStar(require("./date-utils"), exports);
|
26
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,wCAAsB;AACtB,iDAA+B;AAC/B,gDAA8B;AAC9B,wDAAsC;AACtC,8CAA4B;AAC5B,0DAAwC;AACxC,gDAA8B;AAC9B,+CAA6B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function omitDeep(collection: any, excludeKeys: string[]): any;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.omitDeep = void 0;
|
4
|
+
const lodash_1 = require("lodash");
|
5
|
+
function omitDeep(collection, excludeKeys) {
|
6
|
+
function omitFn(value) {
|
7
|
+
if (value && typeof value === 'object') {
|
8
|
+
excludeKeys.forEach((key) => {
|
9
|
+
delete value[key];
|
10
|
+
});
|
11
|
+
}
|
12
|
+
}
|
13
|
+
return (0, lodash_1.cloneDeepWith)(collection, omitFn);
|
14
|
+
}
|
15
|
+
exports.omitDeep = omitDeep;
|
16
|
+
//# sourceMappingURL=omit-deep.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"omit-deep.js","sourceRoot":"","sources":["../../src/utils/omit-deep.ts"],"names":[],"mappings":";;;AAAA,mCAAuC;AACvC,SAAgB,QAAQ,CAAC,UAAe,EAAE,WAAqB;IAC3D,SAAS,MAAM,CAAC,KAAK;QACjB,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YACpC,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;gBACxB,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC;YACtB,CAAC,CAAC,CAAC;SACN;IACL,CAAC;IAED,OAAO,IAAA,sBAAa,EAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AAC7C,CAAC;AAVD,4BAUC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.generateApplicationRoleResource = void 0;
|
4
|
+
const uri_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/uri");
|
5
|
+
const core_1 = require("@workbench-stack/core");
|
6
|
+
const lodash_1 = require("lodash");
|
7
|
+
function generateApplicationRoleResource(roleName) {
|
8
|
+
return uri_1.URI.from({ scheme: core_1.Schemas.cdecode, authority: 'applicationrole', path: `/${(0, lodash_1.camelCase)(roleName)}.json` });
|
9
|
+
}
|
10
|
+
exports.generateApplicationRoleResource = generateApplicationRoleResource;
|
11
|
+
//# sourceMappingURL=roles-utils.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"roles-utils.js","sourceRoot":"","sources":["../../src/utils/roles-utils.ts"],"names":[],"mappings":";;;AAAA,0EAAuE;AACvE,gDAAgD;AAChD,mCAAmC;AAEnC,SAAgB,+BAA+B,CAAC,QAAgB;IAC5D,OAAO,SAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,cAAO,CAAC,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,IAAA,kBAAS,EAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;AACrH,CAAC;AAFD,0EAEC"}
|
package/lib/utils/uri.js
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.convertToResourceUri = exports.resourcePath = void 0;
|
4
|
+
const uri_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/uri");
|
5
|
+
// moved to `@workbench-stack/core`
|
6
|
+
const resourcePath = (resource) => typeof resource === 'string' ? resource : `${resource.path}:${resource.query}:${resource.fragment}`;
|
7
|
+
exports.resourcePath = resourcePath;
|
8
|
+
function convertToResourceUri(resource) {
|
9
|
+
if (resource instanceof uri_1.URI) {
|
10
|
+
return resource;
|
11
|
+
}
|
12
|
+
else if (typeof resource === 'string') {
|
13
|
+
// default resource
|
14
|
+
return uri_1.URI.parse(resource);
|
15
|
+
}
|
16
|
+
else if (typeof resource === 'object') {
|
17
|
+
return uri_1.URI.revive(resource);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
exports.convertToResourceUri = convertToResourceUri;
|
21
|
+
//# sourceMappingURL=uri.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"uri.js","sourceRoot":"","sources":["../../src/utils/uri.ts"],"names":[],"mappings":";;;AAAA,0EAAsF;AACtF,mCAAmC;AAC5B,MAAM,YAAY,GAAG,CAAC,QAAyC,EAAE,EAAE,CAAC,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,KAAK,IAAI,QAAQ,CAAC,QAAQ,EAAE,CAAC;AAAlK,QAAA,YAAY,gBAAsJ;AAG/K,SAAgB,oBAAoB,CAAC,QAAsC;IACvE,IAAI,QAAQ,YAAY,SAAG,EAAE;QACzB,OAAO,QAAQ,CAAC;KACnB;SAAM,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QACrC,mBAAmB;QACnB,OAAO,SAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;KAC9B;SAAM,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QACrC,OAAO,SAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;KAC/B;AACL,CAAC;AATD,oDASC"}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
3
|
+
var t = {};
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
5
|
+
t[p] = s[p];
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
9
|
+
t[p[i]] = s[p[i]];
|
10
|
+
}
|
11
|
+
return t;
|
12
|
+
};
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
14
|
+
exports.getTtl = exports.getFilteredTabs = exports.getFilteredRoutes = void 0;
|
15
|
+
const getFilteredRoutes = (pageStore, selectedRoutes) => pageStore.map(item => {
|
16
|
+
if (selectedRoutes.indexOf(item.key) !== -1) {
|
17
|
+
const { path } = item;
|
18
|
+
return {
|
19
|
+
[path]: item,
|
20
|
+
};
|
21
|
+
}
|
22
|
+
return null;
|
23
|
+
}).filter(valid => valid);
|
24
|
+
exports.getFilteredRoutes = getFilteredRoutes;
|
25
|
+
const getFilteredTabs = (pageStore, selectedTabs) => pageStore.map(item => {
|
26
|
+
if (selectedTabs.indexOf(item.key) !== -1) {
|
27
|
+
const { component } = item, rest = __rest(item, ["component"]);
|
28
|
+
return rest;
|
29
|
+
}
|
30
|
+
}).filter(valid => valid);
|
31
|
+
exports.getFilteredTabs = getFilteredTabs;
|
32
|
+
const getTtl = (exp) => {
|
33
|
+
const now = parseInt(`${Date.now() / 1000}`, null);
|
34
|
+
return exp - now;
|
35
|
+
};
|
36
|
+
exports.getTtl = getTtl;
|
37
|
+
//# sourceMappingURL=utils.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAKO,MAAM,iBAAiB,GAAG,CAAC,SAAS,EAAE,cAAc,EAAE,EAAE,CAC3D,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;IACjB,IAAI,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE;QACzC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QACtB,OAAO;YACH,CAAC,IAAI,CAAC,EAAE,IAAI;SACf,CAAC;KACL;IACD,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;AATjB,QAAA,iBAAiB,qBASA;AAEvB,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,YAAY,EAAE,EAAE,CACvD,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;IACjB,IAAI,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE;QACvC,MAAM,EAAE,SAAS,KAAc,IAAI,EAAb,IAAI,UAAK,IAAI,EAA7B,aAAsB,CAAO,CAAC;QACpC,OAAO,IAAI,CAAC;KACf;AACL,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;AANjB,QAAA,eAAe,mBAME;AAEvB,MAAM,MAAM,GAAG,CAAC,GAAG,EAAE,EAAE;IAC1B,MAAM,GAAG,GAAG,QAAQ,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC;IACnD,OAAO,GAAG,GAAG,GAAG,CAAC;AACrB,CAAC,CAAC;AAHW,QAAA,MAAM,UAGjB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const validateEmail: (email: any) => boolean;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.validateEmail = void 0;
|
4
|
+
const validateEmail = function (email) {
|
5
|
+
const re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
|
6
|
+
return re.test(email);
|
7
|
+
};
|
8
|
+
exports.validateEmail = validateEmail;
|
9
|
+
//# sourceMappingURL=validations.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validations.js","sourceRoot":"","sources":["../../src/utils/validations.ts"],"names":[],"mappings":";;;AAAO,MAAM,aAAa,GAAG,UAAU,KAAK;IACxC,MAAM,EAAE,GAAG,+CAA+C,CAAC;IAC3D,OAAO,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1B,CAAC,CAAC;AAHW,QAAA,aAAa,iBAGxB"}
|
package/package.json
CHANGED
@@ -1,51 +1,37 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
"
|
8
|
-
"
|
9
|
-
"
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
},
|
21
|
-
"jest": {
|
22
|
-
"testEnvironment": "node",
|
23
|
-
"roots": [
|
24
|
-
"src"
|
25
|
-
],
|
26
|
-
"modulePaths": [
|
27
|
-
"node_modules"
|
28
|
-
],
|
29
|
-
"moduleFileExtensions": [
|
30
|
-
"ts",
|
31
|
-
"tsx",
|
32
|
-
"js",
|
33
|
-
"json"
|
34
|
-
],
|
35
|
-
"transform": {
|
36
|
-
"\\.(ts|tsx)$": "<rootDir>/../../node_modules/ts-jest/preprocessor.js"
|
2
|
+
"name": "@adminide-stack/core",
|
3
|
+
"version": "0.0.2-alpha.0",
|
4
|
+
"description": "AdminIDE core for higher packages to depend on",
|
5
|
+
"license": "ISC",
|
6
|
+
"author": "CDMBase LLC",
|
7
|
+
"main": "lib/index.js",
|
8
|
+
"typings": "lib/index.d.ts",
|
9
|
+
"scripts": {
|
10
|
+
"build": "npm run build:clean && npm run build:lib",
|
11
|
+
"build:clean": "rimraf lib",
|
12
|
+
"build:lib": "tsc",
|
13
|
+
"build:lib:watch": "npm run build:lib -- --watch",
|
14
|
+
"jest": "./node_modules/.bin/jest",
|
15
|
+
"prepublish": "npm run build",
|
16
|
+
"test": "jest",
|
17
|
+
"test:debug": "npm test -- --runInBand",
|
18
|
+
"test:watch": "npm test -- --watch",
|
19
|
+
"watch": "npm run build:lib:watch"
|
37
20
|
},
|
38
|
-
"
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
"
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
21
|
+
"dependencies": {
|
22
|
+
"@vscode-alt/monaco-editor": "^0.21.2",
|
23
|
+
"@workbench-stack/core": "3.0.1-alpha.5",
|
24
|
+
"querystring": "^0.2.0",
|
25
|
+
"sort-keys": "^4.0.0"
|
26
|
+
},
|
27
|
+
"peerDependencies": {
|
28
|
+
"@common-stack/server-core": ">=0.5.1-alpha.1"
|
29
|
+
},
|
30
|
+
"publishConfig": {
|
31
|
+
"access": "public"
|
32
|
+
},
|
33
|
+
"typescript": {
|
34
|
+
"definition": "lib/index.d.ts"
|
35
|
+
},
|
36
|
+
"gitHead": "adc8a3c248d8d214e66489f332f758759fcdb7a5"
|
51
37
|
}
|
@@ -1,159 +0,0 @@
|
|
1
|
-
import { WorkspaceStatus } from '../constants';
|
2
|
-
export interface IWorkspace {
|
3
|
-
id?: string;
|
4
|
-
name: string;
|
5
|
-
language: string;
|
6
|
-
description?: string;
|
7
|
-
iconUrl: string;
|
8
|
-
status?: WorkspaceStatus;
|
9
|
-
config?: IWorkspaceConfig;
|
10
|
-
token?: string;
|
11
|
-
url?: string;
|
12
|
-
orgId: string;
|
13
|
-
namespace: string;
|
14
|
-
temporary?: string;
|
15
|
-
projects: IProject[];
|
16
|
-
stacks: IStack[];
|
17
|
-
}
|
18
|
-
export interface IProject {
|
19
|
-
name: string;
|
20
|
-
description: string;
|
21
|
-
path: string;
|
22
|
-
source: {
|
23
|
-
location?: string;
|
24
|
-
type: ISourceType;
|
25
|
-
parameters: {
|
26
|
-
branch?: string;
|
27
|
-
};
|
28
|
-
providers?: ISourceProviders;
|
29
|
-
language?: string;
|
30
|
-
};
|
31
|
-
problems?: string[];
|
32
|
-
}
|
33
|
-
export interface IWorkspaceCreateRequest {
|
34
|
-
id?: string;
|
35
|
-
name: string;
|
36
|
-
language?: string;
|
37
|
-
orgId: string;
|
38
|
-
description?: string;
|
39
|
-
namespace?: string;
|
40
|
-
iconUrl?: string;
|
41
|
-
projects: IProject[];
|
42
|
-
stacks?: IStack[];
|
43
|
-
}
|
44
|
-
export interface IStack {
|
45
|
-
id?: string;
|
46
|
-
connectionId?: string;
|
47
|
-
type: IStackType;
|
48
|
-
repository?: string;
|
49
|
-
releaseName: string;
|
50
|
-
chartName: string;
|
51
|
-
chartVersion?: string;
|
52
|
-
namespace?: string;
|
53
|
-
cluster?: string;
|
54
|
-
tillerNamespace?: string;
|
55
|
-
valuesFile?: any;
|
56
|
-
overrideSetVariables?: {
|
57
|
-
[key: string]: string;
|
58
|
-
};
|
59
|
-
variables?: IEnvironmentVariable[];
|
60
|
-
}
|
61
|
-
export declare enum IStackType {
|
62
|
-
IDE_STACK = "IDE_STACK",
|
63
|
-
CUSTOM_STACK = "CUSTOM_STACK",
|
64
|
-
MONOCULAR_STACK = "MONOCULAR_STACK",
|
65
|
-
}
|
66
|
-
export declare enum ISourceProviders {
|
67
|
-
GITHUB = "GITHUB",
|
68
|
-
BITBUCKET = "BITBUCKET",
|
69
|
-
GITLAB = "GITLAB",
|
70
|
-
VSTS = "VSTS",
|
71
|
-
NONE = "NONE",
|
72
|
-
}
|
73
|
-
export declare enum ISourceType {
|
74
|
-
GIT = "GIT",
|
75
|
-
BLANK = "BLANK",
|
76
|
-
ZIP = "ZIP",
|
77
|
-
}
|
78
|
-
export interface IWorkspaceMetadata {
|
79
|
-
namespace: string;
|
80
|
-
orgId: string;
|
81
|
-
identities: any[];
|
82
|
-
}
|
83
|
-
export interface IWorkspaceConfig {
|
84
|
-
id?: string;
|
85
|
-
name: string;
|
86
|
-
defaultEnv: string;
|
87
|
-
description: string;
|
88
|
-
commands: ICommand[];
|
89
|
-
spec: IWorkspaceSpec;
|
90
|
-
ports?: IWorkspacePorts;
|
91
|
-
globalVariables: IEnvironmentVariable[];
|
92
|
-
}
|
93
|
-
export interface IEnvironmentVariable {
|
94
|
-
field: string;
|
95
|
-
value: string;
|
96
|
-
secured?: boolean;
|
97
|
-
}
|
98
|
-
export interface ICommand {
|
99
|
-
id?: string;
|
100
|
-
commandLine: any;
|
101
|
-
name: string;
|
102
|
-
type: string;
|
103
|
-
}
|
104
|
-
export interface IEnvironment {
|
105
|
-
id?: string;
|
106
|
-
content: any;
|
107
|
-
contentType: string;
|
108
|
-
location: string;
|
109
|
-
type: string;
|
110
|
-
}
|
111
|
-
export interface IWorkspaceSpec {
|
112
|
-
id: string;
|
113
|
-
cpu: number;
|
114
|
-
hdd: number;
|
115
|
-
ram: number;
|
116
|
-
}
|
117
|
-
export interface ISetWorkspaceEnvVariblesRequest {
|
118
|
-
workspace: string;
|
119
|
-
variables: IEnvironmentVariable[];
|
120
|
-
}
|
121
|
-
export interface IGiturlCreateRequest {
|
122
|
-
gitUrl: string;
|
123
|
-
}
|
124
|
-
export interface IWorkspaceUpdateRequest {
|
125
|
-
id: string;
|
126
|
-
requestedUserId?: string;
|
127
|
-
stacks?: IStack[];
|
128
|
-
status?: WorkspaceStatus;
|
129
|
-
}
|
130
|
-
export interface IWorkspaceRemoveRequest {
|
131
|
-
id: string;
|
132
|
-
orgId: string;
|
133
|
-
requestedUserId?: string;
|
134
|
-
stacks?: IStack[];
|
135
|
-
}
|
136
|
-
export interface IWorkspaceStartRequest {
|
137
|
-
id: string;
|
138
|
-
orgId: string;
|
139
|
-
requestedUserId?: string;
|
140
|
-
stacks?: IStack[];
|
141
|
-
}
|
142
|
-
export interface IWorkspaceStopRequest {
|
143
|
-
id: string;
|
144
|
-
orgId: string;
|
145
|
-
requestedUserId?: string;
|
146
|
-
stacks?: IStack[];
|
147
|
-
}
|
148
|
-
export interface IWorkspaceConfigPayload {
|
149
|
-
orgId: string;
|
150
|
-
repositoryUrl?: string;
|
151
|
-
repositoryBranch?: string;
|
152
|
-
workspaceId?: string;
|
153
|
-
status?: WorkspaceStatus;
|
154
|
-
}
|
155
|
-
export interface IWorkspacePorts {
|
156
|
-
application: string;
|
157
|
-
management: string;
|
158
|
-
worker: string;
|
159
|
-
}
|