@adminide-stack/core 5.0.1-alpha.0 → 5.0.1-alpha.10
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/lib/constants/billing-plan.js +1 -4
- package/lib/constants/billing-plan.js.map +1 -1
- package/lib/constants/configuration.js +7 -10
- package/lib/constants/configuration.js.map +1 -1
- package/lib/constants/constants.js +2 -5
- package/lib/constants/constants.js.map +1 -1
- package/lib/constants/default-workspace-config.js +3 -6
- package/lib/constants/default-workspace-config.js.map +1 -1
- package/lib/constants/index.js +7 -23
- package/lib/constants/index.js.map +1 -1
- package/lib/constants/routes.js +2 -5
- package/lib/constants/routes.js.map +1 -1
- package/lib/constants/types.js +5 -8
- package/lib/constants/types.js.map +1 -1
- package/lib/constants/urls.js +2 -5
- package/lib/constants/urls.js.map +1 -1
- package/lib/core/configurations/configuration.js +28 -34
- package/lib/core/configurations/configuration.js.map +1 -1
- package/lib/core/configurations/configuration.test.js +7 -9
- package/lib/core/configurations/configuration.test.js.map +1 -1
- package/lib/core/configurations/events/ConfigurationChangeEvent.js +11 -16
- package/lib/core/configurations/events/ConfigurationChangeEvent.js.map +1 -1
- package/lib/core/configurations/events/index.js +1 -17
- package/lib/core/configurations/events/index.js.map +1 -1
- package/lib/core/configurations/helpers/configuration.js +23 -38
- package/lib/core/configurations/helpers/configuration.js.map +1 -1
- package/lib/core/configurations/helpers/index.js +1 -17
- package/lib/core/configurations/helpers/index.js.map +1 -1
- package/lib/core/configurations/index.js +4 -20
- package/lib/core/configurations/index.js.map +1 -1
- package/lib/core/configurations/models/ConfigurationModel.js +9 -13
- package/lib/core/configurations/models/ConfigurationModel.js.map +1 -1
- package/lib/core/configurations/models/ConfigurationModel.test.js +33 -35
- package/lib/core/configurations/models/ConfigurationModel.test.js.map +1 -1
- package/lib/core/configurations/models/index.js +1 -17
- package/lib/core/configurations/models/index.js.map +1 -1
- package/lib/core/disposable.js +5 -9
- package/lib/core/disposable.js.map +1 -1
- package/lib/core/event.js +5 -9
- package/lib/core/event.js.map +1 -1
- package/lib/core/event.test.js +5 -7
- package/lib/core/event.test.js.map +1 -1
- package/lib/core/index.js +6 -22
- package/lib/core/index.js.map +1 -1
- package/lib/core/organization/configuration.js +2 -6
- package/lib/core/organization/configuration.js.map +1 -1
- package/lib/core/organization/helpers/index.js +1 -17
- package/lib/core/organization/helpers/index.js.map +1 -1
- package/lib/core/organization/helpers/organization-helpers.js +8 -16
- package/lib/core/organization/helpers/organization-helpers.js.map +1 -1
- package/lib/core/organization/index.js +3 -19
- package/lib/core/organization/index.js.map +1 -1
- package/lib/core/organization/organization.js +18 -26
- package/lib/core/organization/organization.js.map +1 -1
- package/lib/core/path.js +1 -5
- package/lib/core/path.js.map +1 -1
- package/lib/core/path.test.js +13 -15
- package/lib/core/path.test.js.map +1 -1
- package/lib/core/types.js +1 -2
- package/lib/core/uri.js +30 -14
- package/lib/core/uri.js.map +1 -1
- package/lib/core/uri.test.js +38 -40
- package/lib/core/uri.test.js.map +1 -1
- package/lib/enums/connection-status.js +2 -5
- package/lib/enums/connection-status.js.map +1 -1
- package/lib/enums/index.js +7 -23
- package/lib/enums/index.js.map +1 -1
- package/lib/enums/integration-configuration-status.js +2 -5
- package/lib/enums/integration-configuration-status.js.map +1 -1
- package/lib/enums/integrations-configuration-steps.js +2 -5
- package/lib/enums/integrations-configuration-steps.js.map +1 -1
- package/lib/enums/integrations-connection-names.js +2 -5
- package/lib/enums/integrations-connection-names.js.map +1 -1
- package/lib/enums/integrations.js +2 -5
- package/lib/enums/integrations.js.map +1 -1
- package/lib/enums/permissions.js +2 -5
- package/lib/enums/permissions.js.map +1 -1
- package/lib/enums/team-member-status.js +2 -5
- package/lib/enums/team-member-status.js.map +1 -1
- package/lib/errors/auth-error-messages.js +3 -6
- package/lib/errors/auth-error-messages.js.map +1 -1
- package/lib/errors/auth-error.js +4 -8
- package/lib/errors/auth-error.js.map +1 -1
- package/lib/errors/index.js +2 -18
- package/lib/errors/index.js.map +1 -1
- package/lib/index.js +8 -24
- package/lib/index.js.map +1 -1
- package/lib/interfaces/apollo-context.d.ts +1 -0
- package/lib/interfaces/apollo-context.js +1 -2
- package/lib/interfaces/common.js +1 -2
- package/lib/interfaces/configuration/configuration-file-service.js +1 -2
- package/lib/interfaces/configuration/configuration-server-service.js +1 -2
- package/lib/interfaces/configuration/configuration.js +8 -11
- package/lib/interfaces/configuration/configuration.js.map +1 -1
- package/lib/interfaces/configuration/configurationRegistry.js +1 -2
- package/lib/interfaces/configuration/configuraton-service.js +1 -2
- package/lib/interfaces/configuration/event.js +1 -2
- package/lib/interfaces/configuration/index.js +6 -22
- package/lib/interfaces/configuration/index.js.map +1 -1
- package/lib/interfaces/contex-key-service.js +1 -2
- package/lib/interfaces/database-migration.js +1 -2
- package/lib/interfaces/enum.js +1 -2
- package/lib/interfaces/enum.js.map +1 -1
- package/lib/interfaces/environment/argv.js +1 -2
- package/lib/interfaces/environment/environment-service.js +1 -2
- package/lib/interfaces/environment/index.js +2 -18
- package/lib/interfaces/environment/index.js.map +1 -1
- package/lib/interfaces/generated/generated-models.d.ts +3 -3
- package/lib/interfaces/generated/generated-models.js +725 -902
- package/lib/interfaces/generated/generated-models.js.map +1 -1
- package/lib/interfaces/generated/index.js +1 -17
- package/lib/interfaces/generated/index.js.map +1 -1
- package/lib/interfaces/index.js +18 -34
- package/lib/interfaces/index.js.map +1 -1
- package/lib/interfaces/lifecycle-service.js +1 -7
- package/lib/interfaces/lifecycle-service.js.map +1 -1
- package/lib/interfaces/log/index.js +1 -17
- package/lib/interfaces/log/index.js.map +1 -1
- package/lib/interfaces/log/log-service.js +1 -2
- package/lib/interfaces/nav-items.js +1 -2
- package/lib/interfaces/organization/index.js +3 -19
- package/lib/interfaces/organization/index.js.map +1 -1
- package/lib/interfaces/organization/organization-context-service.js +1 -2
- package/lib/interfaces/organization/organization-context.js +8 -11
- package/lib/interfaces/organization/organization-context.js.map +1 -1
- package/lib/interfaces/organization/organizations-context.js +1 -2
- package/lib/interfaces/page-store.js +1 -2
- package/lib/interfaces/permissions.js +1 -2
- package/lib/interfaces/platform.d.ts +1 -0
- package/lib/interfaces/platform.js +1 -2
- package/lib/interfaces/preferences-service.js +1 -2
- package/lib/interfaces/service.js +1 -2
- package/lib/interfaces/workbench-exports.js +1 -5
- package/lib/interfaces/workbench-exports.js.map +1 -1
- package/lib/modules/account-api/enums/index.js +2 -5
- package/lib/modules/account-api/enums/index.js.map +1 -1
- package/lib/modules/account-api/index.js +1 -17
- package/lib/modules/account-api/index.js.map +1 -1
- package/lib/modules/billing-api/enums/index.js +4 -7
- package/lib/modules/billing-api/enums/index.js.map +1 -1
- package/lib/modules/billing-api/index.js +1 -17
- package/lib/modules/billing-api/index.js.map +1 -1
- package/lib/modules/inbox/enums/index.js +2 -5
- package/lib/modules/inbox/enums/index.js.map +1 -1
- package/lib/modules/inbox/index.js +1 -17
- package/lib/modules/inbox/index.js.map +1 -1
- package/lib/modules/index.js +3 -19
- package/lib/modules/index.js.map +1 -1
- package/lib/services/abstract-configuration.js +25 -28
- package/lib/services/abstract-configuration.js.map +1 -1
- package/lib/services/abstract-organization-context-service.js +24 -27
- package/lib/services/abstract-organization-context-service.js.map +1 -1
- package/lib/services/index.js +2 -18
- package/lib/services/index.js.map +1 -1
- package/lib/utils/configuration-utils.js +1 -5
- package/lib/utils/configuration-utils.js.map +1 -1
- package/lib/utils/date-utils.js +1 -5
- package/lib/utils/date-utils.js.map +1 -1
- package/lib/utils/flatten-utils.js +4 -8
- package/lib/utils/flatten-utils.js.map +1 -1
- package/lib/utils/generate-uri.js +14 -24
- package/lib/utils/generate-uri.js.map +1 -1
- package/lib/utils/generated-settings-id.js +3 -7
- package/lib/utils/generated-settings-id.js.map +1 -1
- package/lib/utils/index.js +9 -25
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/omit-deep.js +3 -7
- package/lib/utils/omit-deep.js.map +1 -1
- package/lib/utils/roles-utils.js +5 -9
- package/lib/utils/roles-utils.js.map +1 -1
- package/lib/utils/uri.js +6 -11
- package/lib/utils/uri.js.map +1 -1
- package/lib/utils/utils.js +4 -21
- package/lib/utils/utils.js.map +1 -1
- package/lib/utils/validations.js +1 -5
- package/lib/utils/validations.js.map +1 -1
- package/package.json +3 -2
@@ -1,18 +1,2 @@
|
|
1
|
-
|
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("./generated-models"), exports);
|
1
|
+
export * from './generated-models';
|
18
2
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/generated/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/generated/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
package/lib/interfaces/index.js
CHANGED
@@ -1,36 +1,20 @@
|
|
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
1
|
/* eslint-disable import/export */
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
2
|
+
export * from './enum';
|
3
|
+
export * from './common';
|
4
|
+
export * from './generated';
|
5
|
+
export * from './nav-items';
|
6
|
+
export * from './page-store';
|
7
|
+
export * from './apollo-context';
|
8
|
+
export * from './configuration';
|
9
|
+
export * from './organization';
|
10
|
+
export * from './preferences-service';
|
11
|
+
export * from './workbench-exports';
|
12
|
+
export * from './contex-key-service';
|
13
|
+
export * from './lifecycle-service';
|
14
|
+
export * from './database-migration';
|
15
|
+
export * from './permissions';
|
16
|
+
export * from './service';
|
17
|
+
export * from './log';
|
18
|
+
export * from './environment';
|
19
|
+
export * from './platform';
|
36
20
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AAErC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
|
@@ -1,8 +1,2 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ShutdownReason = exports.StartupKind = exports.LifecyclePhase = void 0;
|
4
|
-
var core_1 = require("@workbench-stack/core");
|
5
|
-
Object.defineProperty(exports, "LifecyclePhase", { enumerable: true, get: function () { return core_1.LifecyclePhase; } });
|
6
|
-
Object.defineProperty(exports, "StartupKind", { enumerable: true, get: function () { return core_1.StartupKind; } });
|
7
|
-
Object.defineProperty(exports, "ShutdownReason", { enumerable: true, get: function () { return core_1.ShutdownReason; } });
|
1
|
+
export { LifecyclePhase, StartupKind, ShutdownReason } from '@workbench-stack/core';
|
8
2
|
//# sourceMappingURL=lifecycle-service.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lifecycle-service.js","sourceRoot":"","sources":["../../src/interfaces/lifecycle-service.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"lifecycle-service.js","sourceRoot":"","sources":["../../src/interfaces/lifecycle-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,cAAc,EAAqB,WAAW,EAAuB,cAAc,EAAE,MAAM,uBAAuB,CAAC"}
|
@@ -1,18 +1,2 @@
|
|
1
|
-
|
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("./log-service"), exports);
|
1
|
+
export * from './log-service';
|
18
2
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/log/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/log/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
@@ -1,20 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
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("./organization-context"), exports);
|
18
|
-
__exportStar(require("./organizations-context"), exports);
|
19
|
-
__exportStar(require("./organization-context-service"), exports);
|
1
|
+
export * from './organization-context';
|
2
|
+
export * from './organizations-context';
|
3
|
+
export * from './organization-context-service';
|
20
4
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/organization/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/organization/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC"}
|
@@ -1,14 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.IOrganizationResource = exports.IOrganizationContext = exports.ApplicationState = void 0;
|
4
|
-
const uri_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/uri");
|
5
|
-
var ApplicationState;
|
1
|
+
import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
2
|
+
export var ApplicationState;
|
6
3
|
(function (ApplicationState) {
|
7
4
|
ApplicationState[ApplicationState["EMPTY"] = 1] = "EMPTY";
|
8
5
|
ApplicationState[ApplicationState["RESOURCE"] = 2] = "RESOURCE";
|
9
6
|
ApplicationState[ApplicationState["ORGANIZATION"] = 3] = "ORGANIZATION";
|
10
|
-
})(ApplicationState
|
11
|
-
var IOrganizationContext;
|
7
|
+
})(ApplicationState || (ApplicationState = {}));
|
8
|
+
export var IOrganizationContext;
|
12
9
|
(function (IOrganizationContext) {
|
13
10
|
function isIOrganization(thing) {
|
14
11
|
return thing && typeof thing === 'object'
|
@@ -16,16 +13,16 @@ var IOrganizationContext;
|
|
16
13
|
&& Array.isArray(thing.resources);
|
17
14
|
}
|
18
15
|
IOrganizationContext.isIOrganization = isIOrganization;
|
19
|
-
})(IOrganizationContext
|
16
|
+
})(IOrganizationContext || (IOrganizationContext = {}));
|
20
17
|
// since IOrganizationFolder interface and namespace should exist in same file
|
21
|
-
var IOrganizationResource;
|
18
|
+
export var IOrganizationResource;
|
22
19
|
(function (IOrganizationResource) {
|
23
20
|
function isIOrganizationResource(thing) {
|
24
21
|
return thing && typeof thing === 'object'
|
25
|
-
&&
|
22
|
+
&& URI.isUri(thing.uri)
|
26
23
|
&& typeof thing.name === 'string'
|
27
24
|
&& typeof thing.toResource === 'function';
|
28
25
|
}
|
29
26
|
IOrganizationResource.isIOrganizationResource = isIOrganizationResource;
|
30
|
-
})(IOrganizationResource
|
27
|
+
})(IOrganizationResource || (IOrganizationResource = {}));
|
31
28
|
//# sourceMappingURL=organization-context.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"organization-context.js","sourceRoot":"","sources":["../../../src/interfaces/organization/organization-context.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"organization-context.js","sourceRoot":"","sources":["../../../src/interfaces/organization/organization-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kDAAkD,CAAC;AAIvE,MAAM,CAAN,IAAkB,gBAIjB;AAJD,WAAkB,gBAAgB;IAC9B,yDAAS,CAAA;IACT,+DAAQ,CAAA;IACR,uEAAY,CAAA;AAChB,CAAC,EAJiB,gBAAgB,KAAhB,gBAAgB,QAIjC;AAQD,MAAM,KAAW,oBAAoB,CAMpC;AAND,WAAiB,oBAAoB;IACjC,SAAgB,eAAe,CAAC,KAAU;QACtC,OAAO,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;eAClC,OAAQ,KAA8B,CAAC,EAAE,KAAK,QAAQ;eACtD,KAAK,CAAC,OAAO,CAAE,KAA8B,CAAC,SAAS,CAAC,CAAC;IACpE,CAAC;IAJe,oCAAe,kBAI9B,CAAA;AACL,CAAC,EANgB,oBAAoB,KAApB,oBAAoB,QAMpC;AAuBD,8EAA8E;AAC9E,MAAM,KAAW,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IAClC,SAAgB,uBAAuB,CAAC,KAAU;QAC9C,OAAO,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;eAClC,GAAG,CAAC,KAAK,CAAE,KAA+B,CAAC,GAAG,CAAC;eAC/C,OAAQ,KAA+B,CAAC,IAAI,KAAK,QAAQ;eACzD,OAAQ,KAA+B,CAAC,UAAU,KAAK,UAAU,CAAC;IAC7E,CAAC;IALe,6CAAuB,0BAKtC,CAAA;AACL,CAAC,EAPgB,qBAAqB,KAArB,qBAAqB,QAOrC"}
|
@@ -1,9 +1,5 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Extensions = void 0;
|
4
1
|
// export type IConfigurationRegistry = IWorkspaceIConfigurationRegistry<ConfigurationScope>;
|
5
2
|
// export type IConfigurationPropertySchema = IWorksapceConfigurationPropertySchema<ConfigurationScope>;
|
6
3
|
// export type IConfigurationNode = IWorkspaceConfigurationNode<ConfigurationScope>;
|
7
|
-
|
8
|
-
Object.defineProperty(exports, "Extensions", { enumerable: true, get: function () { return core_1.Extensions; } });
|
4
|
+
export { Extensions } from '@workbench-stack/core';
|
9
5
|
//# sourceMappingURL=workbench-exports.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"workbench-exports.js","sourceRoot":"","sources":["../../src/interfaces/workbench-exports.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"workbench-exports.js","sourceRoot":"","sources":["../../src/interfaces/workbench-exports.ts"],"names":[],"mappings":"AAOA,6FAA6F;AAC7F,wGAAwG;AACxG,oFAAoF;AAEpF,OAAO,EAAa,UAAU,EAAE,MAAM,uBAAuB,CAAC"}
|
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.IPreDefineAccountPermissions = void 0;
|
4
|
-
var IPreDefineAccountPermissions;
|
1
|
+
export var IPreDefineAccountPermissions;
|
5
2
|
(function (IPreDefineAccountPermissions) {
|
6
3
|
IPreDefineAccountPermissions["secureUser"] = "account.user.secure";
|
7
4
|
IPreDefineAccountPermissions["guestUser"] = "account.user.guest";
|
@@ -67,5 +64,5 @@ var IPreDefineAccountPermissions;
|
|
67
64
|
IPreDefineAccountPermissions["viewSettings"] = "organization.settings.view";
|
68
65
|
IPreDefineAccountPermissions["editSettings"] = "organization.settings.edit";
|
69
66
|
IPreDefineAccountPermissions["viewReports"] = "organization.reports.view";
|
70
|
-
})(IPreDefineAccountPermissions
|
67
|
+
})(IPreDefineAccountPermissions || (IPreDefineAccountPermissions = {}));
|
71
68
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/account-api/enums/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/account-api/enums/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,4BAyEX;AAzED,WAAY,4BAA4B;IACtC,kEAAkC,CAAA;IAClC,gEAAgC,CAAA;IAChC,gFAAgD,CAAA;IAChD,qEAAqC,CAAA;IACrC,yEAAyC,CAAA;IACzC,qEAAqC,CAAA;IACrC,yEAAyC,CAAA;IACzC,yEAAyC,CAAA;IACzC,2FAA2D,CAAA;IAE3D,MAAM;IACN,oFAAoD,CAAA;IACpD,wFAAwD,CAAA;IACxD,oFAAoD,CAAA;IACpD,wFAAwD,CAAA;IACxD,wFAAwD,CAAA;IACxD,gGAAgE,CAAA;IAChE,QAAQ;IACR,wFAAwD,CAAA;IACxD,4FAA4D,CAAA;IAC5D,wFAAwD,CAAA;IACxD,4FAA4D,CAAA;IAC5D,4FAA4D,CAAA;IAC5D,oGAAoE,CAAA;IAEpE,yEAAyC,CAAA;IACzC,6EAA6C,CAAA;IAC7C,yEAAyC,CAAA;IACzC,6EAA6C,CAAA;IAC7C,6EAA6C,CAAA;IAE7C,MAAM;IACN,kFAAkD,CAAA;IAClD,sFAAsD,CAAA;IACtD,kFAAkD,CAAA;IAClD,sFAAsD,CAAA;IACtD,sFAAsD,CAAA;IACtD,QAAQ;IACR,sFAAsD,CAAA;IACtD,0FAA0D,CAAA;IAC1D,sFAAsD,CAAA;IACtD,0FAA0D,CAAA;IAC1D,0FAA0D,CAAA;IAE1D,qEAAqC,CAAA;IACrC,yEAAyC,CAAA;IACzC,qEAAqC,CAAA;IACrC,yEAAyC,CAAA;IACzC,yEAAyC,CAAA;IAEzC,mEAAmC,CAAA;IACnC,uEAAuC,CAAA;IACvC,mEAAmC,CAAA;IACnC,uEAAuC,CAAA;IACvC,uEAAuC,CAAA;IAEvC,sEAAsC,CAAA;IACtC,0EAA0C,CAAA;IAC1C,sEAAsC,CAAA;IACtC,0EAA0C,CAAA;IAC1C,0EAA0C,CAAA;IAE1C,qEAAqC,CAAA;IACrC,qEAAsC,CAAA;IACtC,iFAAiD,CAAA;IACjD,iFAAiD,CAAA;IACjD,2EAA2C,CAAA;IAC3C,2EAA2C,CAAA;IAC3C,2EAA2C,CAAA;IAC3C,2EAA2C,CAAA;IAE3C,yEAAyC,CAAA;AAC3C,CAAC,EAzEW,4BAA4B,KAA5B,4BAA4B,QAyEvC"}
|
@@ -1,18 +1,2 @@
|
|
1
|
-
|
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("./enums"), exports);
|
1
|
+
export * from './enums';
|
18
2
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/account-api/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/account-api/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
@@ -1,13 +1,10 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.IPreDefineBillingPermissions = exports.IBillingModules = void 0;
|
4
|
-
var IBillingModules;
|
1
|
+
export var IBillingModules;
|
5
2
|
(function (IBillingModules) {
|
6
3
|
IBillingModules["subscriptions"] = "subscriptions";
|
7
4
|
IBillingModules["paymentMethods"] = "paymentMethods";
|
8
5
|
IBillingModules["paymentProfile"] = "paymentProfile";
|
9
|
-
})(IBillingModules
|
10
|
-
var IPreDefineBillingPermissions;
|
6
|
+
})(IBillingModules || (IBillingModules = {}));
|
7
|
+
export var IPreDefineBillingPermissions;
|
11
8
|
(function (IPreDefineBillingPermissions) {
|
12
9
|
IPreDefineBillingPermissions["viewSubscriptions"] = "organization.billing.subscriptions.view";
|
13
10
|
IPreDefineBillingPermissions["createSubscriptions"] = "organization.billing.subscriptions.create";
|
@@ -24,5 +21,5 @@ var IPreDefineBillingPermissions;
|
|
24
21
|
IPreDefineBillingPermissions["editPaymentProfile"] = "billing.paymentProfile.edit";
|
25
22
|
IPreDefineBillingPermissions["deletePaymentProfile"] = "billing.paymentProfile.delete";
|
26
23
|
IPreDefineBillingPermissions["managePaymentProfile"] = "billing.paymentProfile.manage";
|
27
|
-
})(IPreDefineBillingPermissions
|
24
|
+
})(IPreDefineBillingPermissions || (IPreDefineBillingPermissions = {}));
|
28
25
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/billing-api/enums/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/billing-api/enums/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,kDAA8B,CAAA;IAC9B,oDAAiC,CAAA;IACjC,oDAAgC,CAAA;AACpC,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AAED,MAAM,CAAN,IAAY,4BAkBX;AAlBD,WAAY,4BAA4B;IACpC,6FAA4D,CAAA;IAC5D,iGAAgE,CAAA;IAChE,6FAA4D,CAAA;IAC5D,iGAAgE,CAAA;IAChE,iGAAgE,CAAA;IAEhE,+FAA8D,CAAA;IAC9D,mGAAkE,CAAA;IAClE,+FAA8D,CAAA;IAC9D,mGAAkE,CAAA;IAClE,mGAAkE,CAAA;IAElE,kFAAiD,CAAA;IACjD,sFAAqD,CAAA;IACrD,kFAAiD,CAAA;IACjD,sFAAqD,CAAA;IACrD,sFAAqD,CAAA;AACzD,CAAC,EAlBW,4BAA4B,KAA5B,4BAA4B,QAkBvC"}
|
@@ -1,18 +1,2 @@
|
|
1
|
-
|
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("./enums"), exports);
|
1
|
+
export * from './enums';
|
18
2
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/billing-api/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/billing-api/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.IPreDefineInboxPermissions = void 0;
|
4
|
-
var IPreDefineInboxPermissions;
|
1
|
+
export var IPreDefineInboxPermissions;
|
5
2
|
(function (IPreDefineInboxPermissions) {
|
6
3
|
//inbox
|
7
4
|
//inbox/posts
|
@@ -26,5 +23,5 @@ var IPreDefineInboxPermissions;
|
|
26
23
|
IPreDefineInboxPermissions["replyOthersThread"] = "organization.inbox.threads.replyOthersThread";
|
27
24
|
IPreDefineInboxPermissions["editOthersThreadReply"] = "organization.inbox.threads.editOthersThreadReply";
|
28
25
|
IPreDefineInboxPermissions["deleteOthersThreadReply"] = "organization.inbox.threads.deleteOthersThreadReply";
|
29
|
-
})(IPreDefineInboxPermissions
|
26
|
+
})(IPreDefineInboxPermissions || (IPreDefineInboxPermissions = {}));
|
30
27
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/inbox/enums/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/inbox/enums/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,0BA0BX;AA1BD,WAAY,0BAA0B;IAClC,OAAO;IACP,aAAa;IACb,yEAA2C,CAAA;IAC3C,4EAA8C,CAAA;IAC9C,wEAA0C,CAAA;IAC1C,4EAA8C,CAAA;IAE9C,eAAe;IACf,6EAA+C,CAAA;IAC/C,4EAA8C,CAAA;IAC9C,gFAAkD,CAAA;IAClD,8EAAgD,CAAA;IAChD,2BAA2B;IAC3B,wFAA0D,CAAA;IAC1D,iGAAmE,CAAA;IACnE,gGAAkE,CAAA;IAClE,4FAA8D,CAAA;IAC9D,gGAAkE,CAAA;IAElE,wBAAwB;IACxB,8FAAgE,CAAA;IAChE,kGAAoE,CAAA;IACpE,gGAAkE,CAAA;IAClE,wGAA0E,CAAA;IAC1E,4GAA8E,CAAA;AAClF,CAAC,EA1BW,0BAA0B,KAA1B,0BAA0B,QA0BrC"}
|
@@ -1,18 +1,2 @@
|
|
1
|
-
|
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("./enums"), exports);
|
1
|
+
export * from './enums';
|
18
2
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/inbox/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/inbox/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
package/lib/modules/index.js
CHANGED
@@ -1,20 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
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("./account-api"), exports);
|
18
|
-
__exportStar(require("./billing-api"), exports);
|
19
|
-
__exportStar(require("./inbox"), exports);
|
1
|
+
export * from './account-api';
|
2
|
+
export * from './billing-api';
|
3
|
+
export * from './inbox';
|
20
4
|
//# sourceMappingURL=index.js.map
|
package/lib/modules/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAA"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
"use strict";
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
@@ -12,22 +11,20 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
13
12
|
};
|
14
13
|
var AbstractOrganizationConfigurationClientService_1;
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
const event_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/event");
|
23
|
-
const core_2 = require("../core");
|
14
|
+
import { injectable, inject } from 'inversify';
|
15
|
+
import { ClientTypes } from '@common-stack/client-core';
|
16
|
+
import { Disposable } from '@workbench-stack/core';
|
17
|
+
import { ResourceMap } from '@vscode-alt/monaco-editor/esm/vs/base/common/map';
|
18
|
+
import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
19
|
+
import { Emitter } from '@vscode-alt/monaco-editor/esm/vs/base/common/event';
|
20
|
+
import { OrganizationConfiguration as Configuration, isConfigurationOverrides, ConfigurationModel, ConfigurationChangeEvent, } from '../core';
|
24
21
|
const MAX_EXTERNAL_RESOURCE_SIZE = 5;
|
25
|
-
let AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigurationClientService_1 = class AbstractOrganizationConfigurationClientService extends
|
22
|
+
let AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigurationClientService_1 = class AbstractOrganizationConfigurationClientService extends Disposable {
|
26
23
|
constructor(_apolloClientFactory, utility, logger) {
|
27
24
|
super();
|
28
25
|
this._apolloClientFactory = _apolloClientFactory;
|
29
26
|
this.utility = utility;
|
30
|
-
this._onDidChangeConfiguration = this._register(new
|
27
|
+
this._onDidChangeConfiguration = this._register(new Emitter());
|
31
28
|
this.onDidChangeConfiguration = this._onDidChangeConfiguration.event;
|
32
29
|
this.externalResources = [];
|
33
30
|
this.logger = logger.child({ className: 'OrganizationConfigurationClientService' });
|
@@ -43,8 +40,8 @@ let AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigu
|
|
43
40
|
}
|
44
41
|
getValue(arg1, arg2) {
|
45
42
|
const section = typeof arg1 === 'string' ? arg1 : undefined;
|
46
|
-
const overrides =
|
47
|
-
if (overrides
|
43
|
+
const overrides = isConfigurationOverrides(arg1) ? arg1 : isConfigurationOverrides(arg2) ? arg2 : {};
|
44
|
+
if (overrides?.externalResource) {
|
48
45
|
this.addResource(overrides.externalResource);
|
49
46
|
}
|
50
47
|
return this.configuration.getValue(section, overrides);
|
@@ -55,7 +52,7 @@ let AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigu
|
|
55
52
|
this.trimOldResource();
|
56
53
|
const externalConfiguration = this.externalConfiguration(resource);
|
57
54
|
const { contents, keys, overrides } = externalConfiguration;
|
58
|
-
this.configuration.addResourceConfiguration(resource, new
|
55
|
+
this.configuration.addResourceConfiguration(resource, new ConfigurationModel(contents, keys, overrides));
|
59
56
|
}
|
60
57
|
else {
|
61
58
|
this.prioritiseResourceCache(resource);
|
@@ -92,26 +89,26 @@ let AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigu
|
|
92
89
|
const defaultConfiguration = AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.defaults);
|
93
90
|
const policyConfiguration = data.policy
|
94
91
|
? AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.policy)
|
95
|
-
: new
|
92
|
+
: new ConfigurationModel();
|
96
93
|
const applicationConfiguration = data.application
|
97
94
|
? AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.application)
|
98
|
-
: new
|
95
|
+
: new ConfigurationModel();
|
99
96
|
const userConfiguration = AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.user);
|
100
97
|
const machineConfiguration = data.machine
|
101
98
|
? AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.machine)
|
102
|
-
: new
|
99
|
+
: new ConfigurationModel();
|
103
100
|
const organizationConfiguration = AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.organization);
|
104
101
|
const resources = Object.keys(data.resources).reduce((result, key) => {
|
105
|
-
result.set(
|
102
|
+
result.set(URI.parse(key), AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.resources[key]));
|
106
103
|
return result;
|
107
|
-
}, new
|
108
|
-
return new
|
104
|
+
}, new ResourceMap());
|
105
|
+
return new Configuration(defaultConfiguration, policyConfiguration, applicationConfiguration, userConfiguration, machineConfiguration, organizationConfiguration, resources, previousConfiguration || new ConfigurationModel(), prevResourceConfigurations || new ResourceMap(), organization);
|
109
106
|
}
|
110
107
|
static parseConfigurationModel(model) {
|
111
|
-
return new
|
108
|
+
return new ConfigurationModel(model?.contents, model?.keys, model?.overrides).freeze();
|
112
109
|
}
|
113
110
|
trigger(configurationChange, previous, source) {
|
114
|
-
const event = new
|
111
|
+
const event = new ConfigurationChangeEvent(configurationChange, { data: previous }, this._configuration);
|
115
112
|
event.source = source;
|
116
113
|
event.sourceConfig = this.getTargetConfiguration(source);
|
117
114
|
this._onDidChangeConfiguration.fire(event);
|
@@ -131,11 +128,11 @@ let AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigu
|
|
131
128
|
}
|
132
129
|
};
|
133
130
|
AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigurationClientService_1 = __decorate([
|
134
|
-
|
135
|
-
__param(0,
|
136
|
-
__param(1,
|
137
|
-
__param(2,
|
131
|
+
injectable(),
|
132
|
+
__param(0, inject(ClientTypes.ApolloClientFactory)),
|
133
|
+
__param(1, inject(ClientTypes.UtilityClass)),
|
134
|
+
__param(2, inject(ClientTypes.Logger)),
|
138
135
|
__metadata("design:paramtypes", [Function, Object, Object])
|
139
136
|
], AbstractOrganizationConfigurationClientService);
|
140
|
-
|
137
|
+
export { AbstractOrganizationConfigurationClientService };
|
141
138
|
//# sourceMappingURL=abstract-configuration.js.map
|