@adminide-stack/core 9.2.1-alpha.9 → 10.0.1-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/lib/constants/configuration.d.ts +1 -0
- package/lib/constants/configuration.js +2 -1
- package/lib/constants/configuration.js.map +1 -1
- package/lib/core/configurations/configuration.d.ts +14 -13
- package/lib/core/configurations/configuration.js +100 -100
- package/lib/core/configurations/configuration.js.map +1 -1
- package/lib/core/configurations/events/ConfigurationChangeEvent.d.ts +3 -3
- package/lib/core/configurations/events/ConfigurationChangeEvent.js +2 -2
- package/lib/core/configurations/events/ConfigurationChangeEvent.js.map +1 -1
- package/lib/core/configurations/helpers/configuration.d.ts +2 -1
- package/lib/core/configurations/helpers/configuration.js +1 -1
- package/lib/core/configurations/helpers/configuration.js.map +1 -1
- package/lib/core/configurations/models/ConfigurationModel.d.ts +5 -4
- package/lib/core/configurations/models/ConfigurationModel.js +26 -19
- package/lib/core/configurations/models/ConfigurationModel.js.map +1 -1
- package/lib/core/organization/configuration.d.ts +2 -1
- package/lib/core/organization/configuration.js +1 -1
- package/lib/core/organization/configuration.js.map +1 -1
- package/lib/core/organization/helpers/organization-helpers.d.ts +2 -1
- package/lib/core/organization/helpers/organization-helpers.js +2 -2
- package/lib/core/organization/helpers/organization-helpers.js.map +1 -1
- package/lib/core/organization/organization.d.ts +15 -14
- package/lib/core/organization/organization.js +48 -44
- package/lib/core/organization/organization.js.map +1 -1
- package/lib/errors/auth-error.d.ts +2 -2
- package/lib/errors/auth-error.js +1 -1
- package/lib/errors/auth-error.js.map +1 -1
- package/lib/errors/index.d.ts +0 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/interfaces/apollo-context.d.ts +2 -1
- package/lib/interfaces/configuration/configuration-file-service.d.ts +1 -1
- package/lib/interfaces/configuration/configuration-server-service.d.ts +3 -3
- package/lib/interfaces/configuration/configuration.d.ts +8 -57
- package/lib/interfaces/configuration/configuration.js +1 -34
- package/lib/interfaces/configuration/configuration.js.map +1 -1
- package/lib/interfaces/configuration/configurationRegistry.d.ts +66 -46
- package/lib/interfaces/configuration/configuraton-service.d.ts +2 -2
- package/lib/interfaces/configuration/defaultSettingSnapshot.d.ts +9 -0
- package/lib/interfaces/configuration/event.d.ts +3 -3
- package/lib/interfaces/configuration/index.d.ts +1 -0
- package/lib/interfaces/contex-key-service.d.ts +2 -2
- package/lib/interfaces/environment/environment-service.d.ts +1 -1
- package/lib/interfaces/index.d.ts +0 -1
- package/lib/interfaces/organization/organization-context-service.d.ts +1 -1
- package/lib/interfaces/organization/organization-context.d.ts +1 -1
- package/lib/interfaces/organization/organization-context.js.map +1 -1
- package/lib/interfaces/organization/organizations-context.d.ts +1 -1
- package/lib/interfaces/organization-key-context.d.ts +1 -1
- package/lib/interfaces/permissions.d.ts +1 -2
- package/lib/interfaces/permissions.js.map +1 -1
- package/lib/interfaces/policy.d.ts +1 -1
- package/lib/interfaces/preferences-service.d.ts +8 -6
- package/lib/interfaces/reduxStore.d.ts +1 -1
- package/lib/interfaces/workbench-exports.d.ts +1 -1
- package/lib/services/abstract-configuration.d.ts +12 -10
- package/lib/services/abstract-configuration.js +40 -39
- package/lib/services/abstract-configuration.js.map +1 -1
- package/lib/services/abstract-organization-context-service.d.ts +5 -4
- package/lib/services/abstract-organization-context-service.js +2 -2
- package/lib/services/abstract-organization-context-service.js.map +1 -1
- package/lib/utils/cdecodeUri.d.ts +9 -18
- package/lib/utils/cdecodeUri.js +71 -7
- package/lib/utils/cdecodeUri.js.map +1 -1
- package/lib/utils/configuration-utils.d.ts +11 -3
- package/lib/utils/configuration-utils.js +12 -2
- package/lib/utils/configuration-utils.js.map +1 -1
- package/lib/utils/flatten-utils.d.ts +1 -0
- package/lib/utils/flatten-utils.js +19 -1
- package/lib/utils/flatten-utils.js.map +1 -1
- package/lib/utils/generate-uri.d.ts +6 -4
- package/lib/utils/generate-uri.js +22 -2
- package/lib/utils/generate-uri.js.map +1 -1
- package/lib/utils/generate-uri.test.d.ts +1 -0
- package/lib/utils/generated-settings-id.d.ts +1 -1
- package/lib/utils/generated-settings-id.js +3 -3
- package/lib/utils/generated-settings-id.js.map +1 -1
- package/lib/utils/getLogger.d.ts +1 -0
- package/lib/utils/getLogger.js +8 -0
- package/lib/utils/getLogger.js.map +1 -0
- package/lib/utils/getUserAlias.d.ts +2 -0
- package/lib/utils/getUserAlias.js +9 -0
- package/lib/utils/getUserAlias.js.map +1 -0
- package/lib/utils/index.d.ts +6 -1
- package/lib/utils/nodeContext.d.ts +8 -0
- package/lib/utils/nodeContext.js +18 -0
- package/lib/utils/nodeContext.js.map +1 -0
- package/lib/utils/preferenceUri.d.ts +18 -0
- package/lib/utils/preferenceUri.js +107 -0
- package/lib/utils/preferenceUri.js.map +1 -0
- package/lib/utils/preferenceUri.test.d.ts +1 -0
- package/lib/utils/resourceUriConversion.js +67 -0
- package/lib/utils/resourceUriConversion.js.map +1 -0
- package/lib/utils/resourceUriConversion.test.d.ts +1 -0
- package/lib/utils/reviveUri.d.ts +2 -0
- package/lib/utils/reviveUri.js +13 -0
- package/lib/utils/reviveUri.js.map +1 -0
- package/lib/utils/roles-utils.d.ts +1 -1
- package/lib/utils/roles-utils.js +1 -1
- package/lib/utils/roles-utils.js.map +1 -1
- package/package.json +5 -4
- package/lib/errors/auth-error-messages.d.ts +0 -25
- package/lib/errors/auth-error-messages.js +0 -27
- package/lib/errors/auth-error-messages.js.map +0 -1
- package/lib/interfaces/generated/generated-models.d.ts +0 -13308
- package/lib/interfaces/generated/generated-models.js +0 -18845
- package/lib/interfaces/generated/generated-models.js.map +0 -1
- package/lib/interfaces/generated/index.d.ts +0 -1
- package/lib/utils/uri.js +0 -24
- package/lib/utils/uri.js.map +0 -1
- /package/lib/utils/{uri.d.ts → resourceUriConversion.d.ts} +0 -0
@@ -3,7 +3,8 @@ import { IJSONSchema } from '@vscode-alt/monaco-editor/esm/vs/base/common/jsonSc
|
|
3
3
|
import { Event } from '@vscode-alt/monaco-editor/esm/vs/base/common/event';
|
4
4
|
import { ConfigurationScope } from '@workbench-stack/core/lib/interfaces/configuration/configuration.js';
|
5
5
|
import { EditPresentationTypes } from '@workbench-stack/core/lib/interfaces/configuration/configuration-registry.js';
|
6
|
-
import {
|
6
|
+
import { IConfigurationDelta, IConfigurationDefaultOverrideValue } from './configuration';
|
7
|
+
import { IConfigurationDefaults, IConfigurationExtensionInfo, IConfigurationNode, IConfigurationNodeContextInput } from 'common/lib/generated/generated-models.js';
|
7
8
|
export type PolicyName = string;
|
8
9
|
export interface IPolicy {
|
9
10
|
/**
|
@@ -19,27 +20,33 @@ export interface IConfigurationPropertySchema extends IJSONSchema {
|
|
19
20
|
scope?: ConfigurationScope;
|
20
21
|
/**
|
21
22
|
* When restricted, value of this configuration will be read only from trusted sources.
|
22
|
-
* For
|
23
|
+
* For example, if the workspace is not trusted, then the value of this configuration
|
24
|
+
* is not read from the workspace settings file.
|
23
25
|
*/
|
24
26
|
restricted?: boolean;
|
25
27
|
/**
|
26
|
-
* When
|
28
|
+
* When set to false, this property is excluded from the registry. Default is to include.
|
27
29
|
*/
|
28
30
|
included?: boolean;
|
29
31
|
/**
|
30
32
|
* List of tags associated to the property.
|
31
33
|
* - A tag can be used for filtering
|
32
|
-
* - Use `experimental` tag for marking the setting as experimental.
|
34
|
+
* - Use `experimental` tag for marking the setting as experimental.
|
35
|
+
* NOTE: Defaults of experimental settings can be changed by running experiments.
|
33
36
|
*/
|
34
37
|
tags?: string[];
|
35
38
|
/**
|
36
|
-
* When enabled this setting is ignored during sync and user can override this.
|
39
|
+
* When enabled, this setting is ignored during sync and user can override this.
|
37
40
|
*/
|
38
41
|
ignoreSync?: boolean;
|
39
42
|
/**
|
40
|
-
* When enabled this setting is ignored during sync and user cannot override this.
|
43
|
+
* When enabled, this setting is ignored during sync and user cannot override this.
|
41
44
|
*/
|
42
45
|
disallowSyncIgnore?: boolean;
|
46
|
+
/**
|
47
|
+
* Disallow extensions to contribute configuration default value for this setting.
|
48
|
+
*/
|
49
|
+
disallowConfigurationDefault?: boolean;
|
43
50
|
/**
|
44
51
|
* Labels for enumeration items
|
45
52
|
*/
|
@@ -62,84 +69,97 @@ export interface IConfigurationPropertySchema extends IJSONSchema {
|
|
62
69
|
}
|
63
70
|
export type IRegisteredConfigurationPropertySchema = IConfigurationPropertySchema & {
|
64
71
|
defaultDefaultValue?: any;
|
65
|
-
source?:
|
66
|
-
defaultValueSource?:
|
72
|
+
source?: IConfigurationExtensionInfo;
|
73
|
+
defaultValueSource?: IConfigurationExtensionInfo;
|
67
74
|
};
|
75
|
+
/**
|
76
|
+
* The main interface for a configuration registry: register and manage
|
77
|
+
* configuration nodes and default configurations, etc. Now extended to handle
|
78
|
+
* multi-tenant or global contexts.
|
79
|
+
*/
|
68
80
|
export interface IConfigurationRegistry {
|
69
81
|
/**
|
70
|
-
*
|
82
|
+
* Event that fires whenever a configuration has changed or updated.
|
83
|
+
*/
|
84
|
+
readonly onDidSchemaChange: Event<void>;
|
85
|
+
/**
|
86
|
+
* Event that fires whenever a configuration has been updated (including
|
87
|
+
* updates to default overrides).
|
88
|
+
*/
|
89
|
+
readonly onDidUpdateConfiguration: Event<{
|
90
|
+
properties: ReadonlySet<string>;
|
91
|
+
defaultsOverrides?: boolean;
|
92
|
+
}>;
|
93
|
+
/**
|
94
|
+
* Register a single configuration node (no tenant context).
|
71
95
|
*/
|
72
|
-
registerConfiguration(configuration: IConfigurationNode): void
|
96
|
+
registerConfiguration(configuration: IConfigurationNode, context: IConfigurationNodeContextInput): void | Promise<void>;
|
73
97
|
/**
|
74
|
-
* Register multiple
|
98
|
+
* Register multiple configuration nodes (no tenant context).
|
75
99
|
*/
|
76
|
-
registerConfigurations(configurations: IConfigurationNode[], validate?: boolean): void
|
100
|
+
registerConfigurations(configurations: IConfigurationNode[], context: IConfigurationNodeContextInput, validate?: boolean): void | Promise<void>;
|
77
101
|
/**
|
78
|
-
* Deregister multiple configurations
|
102
|
+
* Deregister multiple configurations (no tenant context).
|
79
103
|
*/
|
80
|
-
deregisterConfigurations(configurations: IConfigurationNode[]): void
|
104
|
+
deregisterConfigurations(configurations: IConfigurationNode[], context: IConfigurationNodeContextInput): void | Promise<void>;
|
81
105
|
/**
|
82
|
-
*
|
83
|
-
*
|
84
|
-
* - dereigstering the configurations to remove
|
106
|
+
* Update the configuration registry by registering the "add" part
|
107
|
+
* and deregistering the "remove" part.
|
85
108
|
*/
|
86
109
|
updateConfigurations(configurations: {
|
87
110
|
add: IConfigurationNode[];
|
88
111
|
remove: IConfigurationNode[];
|
89
|
-
}): void
|
112
|
+
}, context: IConfigurationNodeContextInput): void | Promise<void>;
|
90
113
|
/**
|
91
|
-
* Register multiple default configurations
|
114
|
+
* Register multiple default configurations (applies globally, not tenant-specific).
|
92
115
|
*/
|
93
|
-
registerDefaultConfigurations(defaultConfigurations: IConfigurationDefaults[]): void
|
116
|
+
registerDefaultConfigurations(defaultConfigurations: IConfigurationDefaults[], context: IConfigurationNodeContextInput): void | Promise<void>;
|
94
117
|
/**
|
95
|
-
* Deregister multiple default configurations
|
118
|
+
* Deregister multiple default configurations (applies globally, not tenant-specific).
|
96
119
|
*/
|
97
|
-
deregisterDefaultConfigurations(defaultConfigurations: IConfigurationDefaults[]): void
|
120
|
+
deregisterDefaultConfigurations(defaultConfigurations: IConfigurationDefaults[], context: IConfigurationNodeContextInput): void | Promise<void>;
|
98
121
|
/**
|
99
122
|
* Bulk update of the configuration registry (default and configurations, remove and add)
|
100
123
|
* @param delta
|
101
124
|
*/
|
102
|
-
deltaConfiguration(delta: IConfigurationDelta): void
|
125
|
+
deltaConfiguration(delta: IConfigurationDelta, context: IConfigurationNodeContextInput): void | Promise<void>;
|
103
126
|
/**
|
104
127
|
* Return the registered configuration defaults overrides
|
105
128
|
*/
|
106
|
-
getConfigurationDefaultsOverrides(): Map<string,
|
129
|
+
getConfigurationDefaultsOverrides(context: IConfigurationNodeContextInput): Map<string, IConfigurationDefaultOverrideValue> | Promise<Map<string, IConfigurationDefaultOverrideValue>>;
|
107
130
|
/**
|
108
|
-
* Signal that the schema of a configuration setting has
|
109
|
-
*
|
131
|
+
* Signal that the schema of a configuration setting has changed
|
132
|
+
* (only supported to change enumeration values; property/default-value
|
133
|
+
* changes are not allowed).
|
110
134
|
*/
|
111
|
-
notifyConfigurationSchemaUpdated(
|
112
|
-
/**
|
113
|
-
* Event that fires whenever a configuration has been
|
114
|
-
* registered.
|
115
|
-
*/
|
116
|
-
readonly onDidSchemaChange: Event<void>;
|
117
|
-
/**
|
118
|
-
* Event that fires whenever a configuration has been
|
119
|
-
* registered.
|
120
|
-
*/
|
121
|
-
readonly onDidUpdateConfiguration: Event<{
|
122
|
-
properties: ReadonlySet<string>;
|
123
|
-
defaultsOverrides?: boolean;
|
124
|
-
}>;
|
135
|
+
notifyConfigurationSchemaUpdated(configurations: IConfigurationNode[], context: IConfigurationNodeContextInput): void;
|
125
136
|
/**
|
126
137
|
* Returns all configuration nodes contributed to this registry.
|
127
138
|
*/
|
128
|
-
getConfigurations(): IConfigurationNode[]
|
139
|
+
getConfigurations(context: IConfigurationNodeContextInput): IConfigurationNode[] | Promise<IConfigurationNode[]>;
|
129
140
|
/**
|
130
141
|
* Returns all configurations settings of all configuration nodes contributed to this registry.
|
131
|
-
|
132
|
-
|
142
|
+
* If Source Id given, it retrieves only the overrides from a specific source ID within an IConfigurationNodeRegistry.
|
143
|
+
*
|
144
|
+
* This function filters the "configurationDefaults" array to those items whose
|
145
|
+
* source?.id equals the given sourceId, then merges their overrides into a single
|
146
|
+
* final result.
|
147
|
+
*
|
148
|
+
* @param context An IConfigurationNodeContextInput object, which includes `extensionName, schemaId, tenantId`,
|
149
|
+
* @param sourceId The ID of the source to filter on (e.g., 'ownerExtensionPoint')
|
150
|
+
* @returns A Map<string, IRegisteredConfigurationPropertySchema> describing the final (merged) overrides from that source
|
151
|
+
*/
|
152
|
+
getConfigurationProperties(context: IConfigurationNodeContextInput, sourceId?: string): IStringDictionary<IRegisteredConfigurationPropertySchema> | Promise<IStringDictionary<IRegisteredConfigurationPropertySchema>>;
|
133
153
|
/**
|
134
154
|
* Return all configurations by policy name
|
135
155
|
*/
|
136
|
-
getPolicyConfigurations(): Map<PolicyName, string
|
156
|
+
getPolicyConfigurations(context: IConfigurationNodeContextInput): Map<PolicyName, string> | Promise<Map<PolicyName, string>>;
|
137
157
|
/**
|
138
158
|
* Returns all excluded configurations settings of all configuration nodes contributed to this registry.
|
139
159
|
*/
|
140
|
-
getExcludedConfigurationProperties(): IStringDictionary<IRegisteredConfigurationPropertySchema
|
160
|
+
getExcludedConfigurationProperties(context: IConfigurationNodeContextInput): IStringDictionary<IRegisteredConfigurationPropertySchema> | Promise<IStringDictionary<IRegisteredConfigurationPropertySchema>>;
|
141
161
|
/**
|
142
162
|
* Register the identifiers for editor configurations
|
143
163
|
*/
|
144
|
-
registerOverrideIdentifiers(identifiers: string[]): void
|
164
|
+
registerOverrideIdentifiers(identifiers: string[], context: IConfigurationNodeContextInput): void | Promise<void>;
|
145
165
|
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { Event } from '@vscode-alt/monaco-editor/esm/vs/base/common/event';
|
2
2
|
import { IDisposable } from '@vscode-alt/monaco-editor/esm/vs/base/common/lifecycle';
|
3
3
|
import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
4
|
-
import {
|
4
|
+
import { IConfigurationOverrides, IConfigurationData, IConfigurationModel, IIResourceData, IIConfigurationModel, ConfigurationTarget } from 'common/lib/generated/generated-models.js';
|
5
|
+
import { IConfigurationValue } from './configuration';
|
5
6
|
import { IConfigurationChangeEvent } from './event';
|
6
|
-
import { IConfigurationOverrides, IConfigurationData, IConfigurationModel, IIResourceData, IIConfigurationModel } from '../generated';
|
7
7
|
import { IOrganizationContext } from '../organization';
|
8
8
|
import { Configuration } from '../../core';
|
9
9
|
export interface IConfigurationService extends IDisposable {
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { IContributionSettings, ISettingsGroup } from 'common/lib/generated/generated-models.js';
|
2
|
+
export interface IDefaultSettingsSnapshot {
|
3
|
+
content?: string;
|
4
|
+
contentWithoutMostCommonlyUsed?: any;
|
5
|
+
allSettingsMap: Map<string, IContributionSettings>;
|
6
|
+
allSettingsGroups: (ISettingsGroup | IContributionSettings[])[];
|
7
|
+
registeredGroups: ISettingsGroup[];
|
8
|
+
schema?: string;
|
9
|
+
}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { IConfigurationOverrides } from '
|
2
|
-
import {
|
1
|
+
import { ConfigurationTarget, IConfigurationOverrides } from 'common/lib/generated/generated-models.js';
|
2
|
+
import { IConfigurationChange } from './configuration';
|
3
3
|
export interface IConfigurationChangeEvent {
|
4
4
|
readonly source: ConfigurationTarget;
|
5
5
|
readonly affectedKeys: string[];
|
6
6
|
readonly change: IConfigurationChange;
|
7
|
-
affectsConfiguration(configuration: string, overrides?: IConfigurationOverrides): boolean;
|
8
7
|
readonly sourceConfig: any;
|
8
|
+
affectsConfiguration(configuration: string, overrides?: IConfigurationOverrides): boolean;
|
9
9
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { IContextKey } from '@vscode-alt/monaco-editor/esm/vs/platform/contextkey/common/contextkey';
|
2
|
-
export { IContextKeyService } from '@workbench-stack/core/lib/interfaces/context-key-service.js';
|
1
|
+
export type { IContextKey } from '@vscode-alt/monaco-editor/esm/vs/platform/contextkey/common/contextkey';
|
2
|
+
export type { IContextKeyService } from '@workbench-stack/core/lib/interfaces/context-key-service.js';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
2
2
|
import { Event } from '@vscode-alt/monaco-editor/esm/vs/base/common/event';
|
3
3
|
import { IDisposable } from '@vscode-alt/monaco-editor/esm/vs/base/common/lifecycle';
|
4
|
-
import { IOrganizationData, IOrganizationIdentifier, IResourceCreationDataInput } from '
|
4
|
+
import { IOrganizationData, IOrganizationIdentifier, IResourceCreationDataInput } from 'common/lib/generated/generated-models.js';
|
5
5
|
import { IOrganizationResource, ApplicationState, IOrganizationResourcesChangeEvent, IOrganizationContext } from './organization-context';
|
6
6
|
import { IOrganizationResourceCreationData, ISingleResourceOrganizationIdentifier } from './organizations-context';
|
7
7
|
import { OrganizationContext } from '../../core';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
2
|
-
import { IOrganizationResourceData, IOrganizationData } from '
|
2
|
+
import { IOrganizationResourceData, IOrganizationData } from 'common/lib/generated/generated-models.js';
|
3
3
|
export declare const enum ApplicationState {
|
4
4
|
EMPTY = 1,
|
5
5
|
RESOURCE = 2,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"organization-context.js","sources":["../../../src/interfaces/organization/organization-context.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"organization-context.js","sources":["../../../src/interfaces/organization/organization-context.ts"],"sourcesContent":[null],"names":[],"mappings":"0EAGkB;AAAlB,CAAA,UAAkB,gBAAgB,EAAA;AAC9B,EAAA,gBAAA,CAAA,gBAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,GAAA,OAAA;AACA,EAAA,gBAAA,CAAA,gBAAA,CAAA,UAAA,CAAA,GAAA,CAAA,CAAA,GAAA,UAAA;AACA,EAAA,gBAAA,CAAA,gBAAA,CAAA,cAAA,CAAA,GAAA,CAAA,CAAA,GAAA,cAAA;AACJ,CAAC,EAJiB,gBAAgB,KAAhB,gBAAgB,GAIjC,EAAA,CAAA,CAAA;AAQK,IAAW;AAAjB,CAAA,UAAiB,oBAAoB,EAAA;WACjB,eAAA,CAAA,KAA0B,EAAA;AACtC,IAAA,OAAA,KACI,IAAK,OAAA,KAAA,KAAA,QAAA,IAAA,OAAA,KAAA,CAAA,EAAA,KAAA,QAAA,IAAA,KAAA,CAAA,OAAA,CAAA,KAAA,CAAA,SAAA,CAAA;;AAEL,EAAA,oBAAsC,CAAA,eAAgB,GAAA,eAAA;4BACvC,oBACjB,GAAA,EAAA,CAAA,CAAA;;AANU,IAAA;AAQpB,CAAC,UATgB,qBAAA,EAAA;AA8BjB,EAA8E,SAAA,uBAAA,CAAA,KAAA,EAAA;AAC9E,IAAM,OAAW,qBAAqB,KAUrC,QAAA,IAAA,GAAA,CAAA,KAAA,CAAA,KAAA,CAAA,GAAA,CAAA,IAAA,OAAA,KAAA,CAAA,IAAA,KAAA,QAAA,IAAA,OAAA,KAAA,CAAA,UAAA,KAAA,UAAA;AAVD;uBACoB,CAAA,uBAAkC,GAAA,uBAAA;AAC9C,CAAA,EAAA,qBACS,KAAA,qBAAA,GAAA,EAAA,CAAA,CAAA"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
2
|
-
import { IOrganizationIdentifier } from '
|
2
|
+
import { IOrganizationIdentifier } from 'common/lib/generated/generated-models.js';
|
3
3
|
/**
|
4
4
|
* A single folder workspace identifier is just the path to the folder.
|
5
5
|
*/
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
2
|
+
import { IUserOrgContextFragment } from 'common/lib/generated/generated-models.js';
|
2
3
|
import { OrganizationContext } from '../core';
|
3
|
-
import { IUserOrgContextFragment } from './generated';
|
4
4
|
export interface IUserOrgKeyContextService {
|
5
5
|
initialOrgName(orgName: string): void;
|
6
6
|
getOrganizationContext(): OrganizationContext | undefined;
|
@@ -1,7 +1,6 @@
|
|
1
|
+
import { IResolveConfigurationQuery, IPermissions } from 'common/lib/generated/generated-models.js';
|
1
2
|
import { IPreDefineBillingPermissions, IPreDefineAccountPermissions, IPreDefineInboxPermissions } from '../modules';
|
2
|
-
import { IResolveConfigurationQuery } from './generated';
|
3
3
|
import { Flatten } from './utils';
|
4
|
-
import { IPermissions } from './generated/generated-models';
|
5
4
|
export type IPreDefinedPermissions = IPreDefineBillingPermissions | IPreDefineAccountPermissions | IPreDefineInboxPermissions;
|
6
5
|
export type IPermissionsFlattenedKeys = Flatten<IPermissions>;
|
7
6
|
export declare enum IPermissionBehavior {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"permissions.js","sources":["../../src/interfaces/permissions.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"permissions.js","sources":["../../src/interfaces/permissions.ts"],"sourcesContent":[null],"names":[],"mappings":"IAYY;AAAZ,CAAA,UAAY,mBAAmB,EAAA;AAC3B,EAAA,mBAAA,CAAA,mBAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAA;AACA,EAAA,mBAAA,CAAA,mBAAA,CAAA,kBAAA,CAAA,GAAA,CAAA,CAAA,GAAA,kBAAA;AACA,EAAA,mBAAA,CAAA,mBAAA,CAAA,iBAAA,CAAA,GAAA,CAAA,CAAA,GAAA,iBAAA;AACJ,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,GAI9B,EAAA,CAAA,CAAA"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { IResolveConfigurationQuery } from '
|
1
|
+
import { IResolveConfigurationQuery } from 'common/lib/generated/generated-models.js';
|
2
2
|
export type IPolicyResult = IResolveConfigurationQuery | Record<string, any>;
|
@@ -1,21 +1,23 @@
|
|
1
1
|
import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
2
|
-
import { ISettingsSubject, IViewerSettingsInput, IPreferenceRoleInput, IPermissionSubject, IViewerSettingsSubject, IPolicySubject, IViewerPoliciesInput } from '
|
3
|
-
import { ConfigurationTarget, IPreferencesInput, IPreferencesOpenOptionsInput as IPreferencesOpenOptions, IContributionSettings } from '
|
2
|
+
import { ISettingsSubject, IViewerSettingsInput, IPreferenceRoleInput, IPermissionSubject, IViewerSettingsSubject, IPolicySubject, IViewerPoliciesInput, IConfigurationOverrides, ICdecodeUriInput, IPageResourceSetting, IConfigurationNodeContextInput } from 'common/lib/generated/generated-models.js';
|
3
|
+
import { ConfigurationTarget, IPreferencesInput, IPreferencesOpenOptionsInput as IPreferencesOpenOptions, IContributionSettings } from 'common/lib/generated/generated-models.js';
|
4
4
|
export type IPrefFragment = {
|
5
5
|
fragmentName?: string;
|
6
6
|
fragmentDoc?: string;
|
7
7
|
};
|
8
8
|
export interface IPreferencesService {
|
9
9
|
initiateSettingsFile(resource: URI): Promise<any>;
|
10
|
-
defaultViewerSettingsSubject(target: ConfigurationTarget): ISettingsSubject
|
10
|
+
defaultViewerSettingsSubject(target: ConfigurationTarget, options: IPreferencesOpenOptions, context: IConfigurationNodeContextInput): Promise<ISettingsSubject>;
|
11
11
|
/**
|
12
12
|
* Viewer Settings for an Organization and its resources.
|
13
13
|
* @param params
|
14
14
|
* @param context
|
15
15
|
*/
|
16
|
-
viewerSettings<T = IViewerSettingsSubject>(input: IViewerSettingsInput,
|
17
|
-
|
18
|
-
|
16
|
+
viewerSettings<T = IViewerSettingsSubject>(input: IViewerSettingsInput, context: IConfigurationNodeContextInput): Promise<T>;
|
17
|
+
viewerSettings2<T = IPageResourceSetting>(input: ICdecodeUriInput, context: IConfigurationNodeContextInput): Promise<T>;
|
18
|
+
viewerPolicies<T = IPolicySubject>(input: IViewerPoliciesInput, context: IConfigurationNodeContextInput): Promise<T>;
|
19
|
+
viewerPermissions<T = IPermissionSubject>(input: IPreferenceRoleInput, context: IConfigurationNodeContextInput): Promise<T>;
|
20
|
+
writeSettings(cdecodeUri: URI, settings: Record<string, any>, arg3: IConfigurationOverrides, arg4: ConfigurationTarget, donotNotifyError?: boolean): any;
|
19
21
|
}
|
20
22
|
export interface IPreferenceClientService {
|
21
23
|
readonly defaultKeybindingsResource: URI;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { IUserState as IUser } from '
|
1
|
+
import { IUserState as IUser } from 'common/lib/generated/generated-models.js';
|
2
2
|
import { ApplicationErrorState } from './error-state';
|
3
3
|
import { IPlatformState } from './platform';
|
4
4
|
interface Route {
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export { Extensions } from '@workbench-stack/core/lib/constants/extensions.js';
|
2
|
-
export { IRegistry } from '@workbench-stack/core/lib/interfaces/registry/registry.js';
|
2
|
+
export type { IRegistry } from '@workbench-stack/core/lib/interfaces/registry/registry.js';
|
@@ -5,31 +5,32 @@ import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
|
5
5
|
import { CdmLogger } from '@cdm-logger/core';
|
6
6
|
import { Event, Emitter } from '@vscode-alt/monaco-editor/esm/vs/base/common/event';
|
7
7
|
import { ApolloClient, NormalizedCacheObject } from '@apollo/client/index.js';
|
8
|
+
import { IIResourceData, IIConfigurationModel, IConfigurationData, IConfigurationModel, ConfigurationTarget } from 'common/lib/generated/generated-models.js';
|
9
|
+
import { IConfigurationOverrides } from '@workbench-stack/core';
|
8
10
|
import { OrganizationConfiguration as Configuration, ConfigurationModel } from '../core';
|
9
|
-
import { IClientConfigurationService, IConfigurationChangeEvent,
|
11
|
+
import { IClientConfigurationService, IConfigurationChangeEvent, IOrganizationResource, IOrganizationContext, IConfigurationValue, IConfigurationChange, IConfigurationHydratedData } from '../interfaces';
|
10
12
|
type ILogger = CdmLogger.ILogger;
|
11
13
|
export declare abstract class AbstractOrganizationConfigurationClientService extends Disposable implements IClientConfigurationService, IDisposable {
|
12
14
|
protected _apolloClientFactory: () => ApolloClient<NormalizedCacheObject>;
|
13
15
|
protected utility: any;
|
14
|
-
protected _configuration: Configuration;
|
15
16
|
protected organization: IOrganizationContext;
|
16
17
|
protected logger: ILogger;
|
17
18
|
protected externalResources: URI[];
|
18
|
-
constructor(_apolloClientFactory: () => ApolloClient<NormalizedCacheObject>, utility: any, logger: ILogger);
|
19
19
|
protected readonly _onDidChangeConfiguration: Emitter<IConfigurationChangeEvent>;
|
20
20
|
readonly onDidChangeConfiguration: Event<IConfigurationChangeEvent>;
|
21
|
-
|
22
|
-
|
21
|
+
constructor(_apolloClientFactory: () => ApolloClient<NormalizedCacheObject>, utility: any, logger: ILogger);
|
22
|
+
protected _configuration: Configuration;
|
23
23
|
get configuration(): Configuration;
|
24
24
|
set configuration(configuration: Configuration);
|
25
|
+
static parse(data: IConfigurationData, organization: IOrganizationContext, previousConfiguration?: ConfigurationModel, prevResourceConfigurations?: ResourceMap<ConfigurationModel>): Configuration;
|
26
|
+
protected static parseConfigurationModel(model: IIConfigurationModel): ConfigurationModel;
|
27
|
+
abstract initialize(organizationContext: any): any;
|
28
|
+
abstract loadResourceConfiguration(resources: IIResourceData[], force: any): any;
|
25
29
|
getConfigurationData(): IConfigurationData;
|
26
30
|
getValue<T>(): T;
|
27
31
|
getValue<T>(section: string): T;
|
28
32
|
getValue<T>(overrides: IConfigurationOverrides): T;
|
29
33
|
getValue<T>(section: string, overrides: IConfigurationOverrides): T;
|
30
|
-
private addResource;
|
31
|
-
private prioritiseResourceCache;
|
32
|
-
private trimOldResource;
|
33
34
|
abstract hydrateData(args: IConfigurationHydratedData): void;
|
34
35
|
abstract updateValue(key: string, value: any): Promise<void>;
|
35
36
|
abstract updateValue(key: string, value: any, overrides: IConfigurationOverrides): Promise<void>;
|
@@ -47,9 +48,10 @@ export declare abstract class AbstractOrganizationConfigurationClientService ext
|
|
47
48
|
organizationResource: string[];
|
48
49
|
};
|
49
50
|
extAcceptConfigurationChanged(data: IConfigurationData, event: IConfigurationChangeEvent): void;
|
50
|
-
static parse(data: IConfigurationData, organization: IOrganizationContext, previousConfiguration?: ConfigurationModel, prevResourceConfigurations?: ResourceMap<ConfigurationModel>): Configuration;
|
51
|
-
protected static parseConfigurationModel(model: IIConfigurationModel): ConfigurationModel;
|
52
51
|
protected trigger(configurationChange: IConfigurationChange, previous: IConfigurationData, source: ConfigurationTarget): void;
|
52
|
+
private addResource;
|
53
|
+
private prioritiseResourceCache;
|
54
|
+
private trimOldResource;
|
53
55
|
private getTargetConfiguration;
|
54
56
|
}
|
55
57
|
export {};
|
@@ -3,10 +3,11 @@ const MAX_EXTERNAL_RESOURCE_SIZE = 5;
|
|
3
3
|
let AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigurationClientService_1 = class AbstractOrganizationConfigurationClientService extends Disposable {
|
4
4
|
_apolloClientFactory;
|
5
5
|
utility;
|
6
|
-
_configuration;
|
7
6
|
organization;
|
8
7
|
logger;
|
9
8
|
externalResources;
|
9
|
+
_onDidChangeConfiguration = this._register(new Emitter());
|
10
|
+
onDidChangeConfiguration = this._onDidChangeConfiguration.event;
|
10
11
|
constructor(_apolloClientFactory, utility, logger) {
|
11
12
|
super();
|
12
13
|
this._apolloClientFactory = _apolloClientFactory;
|
@@ -16,14 +17,29 @@ let AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigu
|
|
16
17
|
className: 'OrganizationConfigurationClientService'
|
17
18
|
});
|
18
19
|
}
|
19
|
-
|
20
|
-
onDidChangeConfiguration = this._onDidChangeConfiguration.event;
|
20
|
+
_configuration;
|
21
21
|
get configuration() {
|
22
22
|
return this._configuration;
|
23
23
|
}
|
24
24
|
set configuration(configuration) {
|
25
25
|
this._configuration = configuration;
|
26
26
|
}
|
27
|
+
static parse(data, organization, previousConfiguration, prevResourceConfigurations) {
|
28
|
+
const defaultConfiguration = AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.defaults);
|
29
|
+
const policyConfiguration = data.policy ? AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.policy) : new ConfigurationModel();
|
30
|
+
const applicationConfiguration = data.application ? AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.application) : new ConfigurationModel();
|
31
|
+
const userConfiguration = AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.user);
|
32
|
+
const machineConfiguration = data.machine ? AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.machine) : new ConfigurationModel();
|
33
|
+
const organizationConfiguration = AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.organization);
|
34
|
+
const resources = Object.keys(data.resources).reduce((result, key) => {
|
35
|
+
result.set(URI.parse(key), AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.resources[key]));
|
36
|
+
return result;
|
37
|
+
}, new ResourceMap());
|
38
|
+
return new OrganizationConfiguration(defaultConfiguration, policyConfiguration, applicationConfiguration, userConfiguration, machineConfiguration, organizationConfiguration, resources, previousConfiguration || new ConfigurationModel(), prevResourceConfigurations || new ResourceMap(), organization);
|
39
|
+
}
|
40
|
+
static parseConfigurationModel(model) {
|
41
|
+
return new ConfigurationModel(model?.contents, model?.keys, model?.overrides).freeze();
|
42
|
+
}
|
27
43
|
getConfigurationData() {
|
28
44
|
return this.configuration.toData();
|
29
45
|
}
|
@@ -35,6 +51,25 @@ let AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigu
|
|
35
51
|
}
|
36
52
|
return this.configuration.getValue(section, overrides);
|
37
53
|
}
|
54
|
+
inspect(key, overrides) {
|
55
|
+
return this.configuration.inspect(key, overrides);
|
56
|
+
}
|
57
|
+
keys() {
|
58
|
+
return this.configuration.keys();
|
59
|
+
}
|
60
|
+
extAcceptConfigurationChanged(data, event) {
|
61
|
+
this._configuration = AbstractOrganizationConfigurationClientService_1.parse(data, this.organization);
|
62
|
+
// this._confugrationScopes = data.configurationScopes;
|
63
|
+
this._onDidChangeConfiguration.fire(event);
|
64
|
+
}
|
65
|
+
trigger(configurationChange, previous, source) {
|
66
|
+
const event = new ConfigurationChangeEvent(configurationChange, {
|
67
|
+
data: previous
|
68
|
+
}, this._configuration);
|
69
|
+
event.source = source;
|
70
|
+
event.sourceConfig = this.getTargetConfiguration(source);
|
71
|
+
this._onDidChangeConfiguration.fire(event);
|
72
|
+
}
|
38
73
|
addResource(resource) {
|
39
74
|
if (!this.configuration.resourceConfigurations.get(resource)) {
|
40
75
|
// limit the resources to max. value
|
@@ -68,41 +103,6 @@ let AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigu
|
|
68
103
|
});
|
69
104
|
}
|
70
105
|
}
|
71
|
-
inspect(key, overrides) {
|
72
|
-
return this.configuration.inspect(key, overrides);
|
73
|
-
}
|
74
|
-
keys() {
|
75
|
-
return this.configuration.keys();
|
76
|
-
}
|
77
|
-
extAcceptConfigurationChanged(data, event) {
|
78
|
-
this._configuration = AbstractOrganizationConfigurationClientService_1.parse(data, this.organization);
|
79
|
-
// this._confugrationScopes = data.configurationScopes;
|
80
|
-
this._onDidChangeConfiguration.fire(event);
|
81
|
-
}
|
82
|
-
static parse(data, organization, previousConfiguration, prevResourceConfigurations) {
|
83
|
-
const defaultConfiguration = AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.defaults);
|
84
|
-
const policyConfiguration = data.policy ? AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.policy) : new ConfigurationModel();
|
85
|
-
const applicationConfiguration = data.application ? AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.application) : new ConfigurationModel();
|
86
|
-
const userConfiguration = AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.user);
|
87
|
-
const machineConfiguration = data.machine ? AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.machine) : new ConfigurationModel();
|
88
|
-
const organizationConfiguration = AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.organization);
|
89
|
-
const resources = Object.keys(data.resources).reduce((result, key) => {
|
90
|
-
result.set(URI.parse(key), AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.resources[key]));
|
91
|
-
return result;
|
92
|
-
}, new ResourceMap());
|
93
|
-
return new OrganizationConfiguration(defaultConfiguration, policyConfiguration, applicationConfiguration, userConfiguration, machineConfiguration, organizationConfiguration, resources, previousConfiguration || new ConfigurationModel(), prevResourceConfigurations || new ResourceMap(), organization);
|
94
|
-
}
|
95
|
-
static parseConfigurationModel(model) {
|
96
|
-
return new ConfigurationModel(model?.contents, model?.keys, model?.overrides).freeze();
|
97
|
-
}
|
98
|
-
trigger(configurationChange, previous, source) {
|
99
|
-
const event = new ConfigurationChangeEvent(configurationChange, {
|
100
|
-
data: previous
|
101
|
-
}, this._configuration);
|
102
|
-
event.source = source;
|
103
|
-
event.sourceConfig = this.getTargetConfiguration(source);
|
104
|
-
this._onDidChangeConfiguration.fire(event);
|
105
|
-
}
|
106
106
|
getTargetConfiguration(target) {
|
107
107
|
switch (target) {
|
108
108
|
case 6 /* ConfigurationTarget.DEFAULT */:
|
@@ -113,8 +113,9 @@ let AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigu
|
|
113
113
|
return this._configuration.machineConfiguration.contents;
|
114
114
|
case 4 /* ConfigurationTarget.ORGANIZATION */:
|
115
115
|
return this._configuration.organizationConfiguration.contents;
|
116
|
+
default:
|
117
|
+
return {};
|
116
118
|
}
|
117
|
-
return {};
|
118
119
|
}
|
119
120
|
};
|
120
121
|
AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigurationClientService_1 = __decorate([injectable(), __param(0, inject(ClientTypes.ApolloClientFactory)), __param(1, inject(ClientTypes.UtilityClass)), __param(2, inject(ClientTypes.Logger)), __metadata("design:paramtypes", [Function, Object, Object])], AbstractOrganizationConfigurationClientService);export{AbstractOrganizationConfigurationClientService};//# sourceMappingURL=abstract-configuration.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"abstract-configuration.js","sources":["../../src/services/abstract-configuration.ts"],"sourcesContent":[null],"names":[
|
1
|
+
{"version":3,"file":"abstract-configuration.js","sources":["../../src/services/abstract-configuration.ts"],"sourcesContent":[null],"names":[],"mappings":";AAmCA,MAAM,0BAA0B,GAAG,CAAC;AAE7B,IAAe,8CAA8C,GAAA,gDAAA,GAA7D,MAAe,8CAClB,SAAQ,UAAU,CAAA;AAiBJ,EAAA,oBAAA;AAEA,EAAA,OAAA;AAhBJ,EAAA,YAAA;AAEA,EAAA,MAAA;AAEA,EAAA,iBAAA;2BAEkC,GAAA,cAA4C,CAAA,IAChF,OAAA,EAAO,CAA6B;AAG5B,EAAA,wBAAA,OAAiE,CAAA,yBAA0B,CAAA;AAE3G,EAAA,WAAA,CAAA,oBAE6E,EAAA,OAExD,EAAA,MAEF,EAAA;AAEf,IAAA,KAAA,E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AA;AACH,OAAA,CAAA;UACH,CAAA,oBAAA,EAAA,CAAA,KAAA,CAAA,KAAA,CAAA;QACJ,EAAA,EAAA;AAEO,OAAA,CAAA;;AAEA;AACI,EAAA,6BAAY,EAAA;AAChB,IAAA,QAAA,MAAA;AACI,MAAA,KAAA,CAAA;AACJ,QAAA,OAAA,IAAA,CAAA,cAAA,CAAA,QAAA,CAAA,QAAA;AACI,MAAA,KAAA,CAAA;AACJ,QAAA,OAAA,IAAA,CAAA,cAAA,CAAA,iBAAA,CAAA,QAAA;AACI,MAAA,KAAA,CAAA;AACJ,QAAA,OAAA,IAAA,CAAA,cAAA,CAAA,oBAAA,CAAA,QAAA;AACI,MAAA,KAAA,CAAA;QACR,OAAC,IAAA,CAAA,cAAA,CAAA,yBAAA,CAAA,QAAA;MACJ;QACJ,OAAA,EAAA;AAtNqB;AADrB;AAkBQ;AAEA,8CAA+B,GAAC,gDAAA,GAAA,UAAA,CAAA,CAAA,UAAA,EAAA,EAAA,OAAA,CAAA,CAAA,EAAA,MAAA,CAAA,WAAA,CAAA,mBAAA,CAAA,CAAA,EAAA,OAAA,CAAA,CAAA,EAAA,MAAA,CAAA,WAAA,CAAA,YAAA,CAAA,CAAA,EAAA,OAAA,CAAA,CAAA,EAAA,MAAA,CAAA,WAAA,CAAA,MAAA,CAAA,CAAA,EAAA,UAAA,CAAA,mBAAA,EAAA,CAAA,QAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA,CAAA,EAAA,8CAAA,CAAA"}
|
@@ -3,11 +3,11 @@ import { Event, Emitter } from '@vscode-alt/monaco-editor/esm/vs/base/common/eve
|
|
3
3
|
import { Disposable } from '@workbench-stack/core/lib/services/lifecycle/disposable.js';
|
4
4
|
import { Barrier } from '@vscode-alt/monaco-editor/esm/vs/base/common/async';
|
5
5
|
import { CdmLogger } from '@cdm-logger/core';
|
6
|
+
import { IOrganizationIdentifier, IOrganizationData } from 'common/lib/generated/generated-models.js';
|
6
7
|
import { OrganizationContext } from '../core';
|
7
|
-
import { IConfigurationChangeEvent,
|
8
|
+
import { IConfigurationChangeEvent, IClientOrganizationContextService, ApplicationState, IOrganizationResource, IOrganizationResourceCreationData, IOrganizationResourcesChangeEvent, ISingleResourceOrganizationIdentifier } from '../interfaces';
|
8
9
|
type ILogger = CdmLogger.ILogger;
|
9
10
|
export declare abstract class AbstractOrganizationContextService extends Disposable implements IClientOrganizationContextService {
|
10
|
-
protected _organizationContext: OrganizationContext;
|
11
11
|
protected completeOrganizationBarrier: Barrier;
|
12
12
|
protected updateOrganizationBarrier: Barrier;
|
13
13
|
protected logger: ILogger;
|
@@ -20,11 +20,12 @@ export declare abstract class AbstractOrganizationContextService extends Disposa
|
|
20
20
|
protected readonly _onDidChangeApplicationState: Emitter<ApplicationState>;
|
21
21
|
readonly onDidChangeApplicationState: Event<ApplicationState>;
|
22
22
|
constructor(logger: ILogger);
|
23
|
+
protected _organizationContext: OrganizationContext;
|
24
|
+
get organizationContext(): OrganizationContext;
|
25
|
+
set organizationContext(context: OrganizationContext);
|
23
26
|
abstract initialize(args: any): any;
|
24
27
|
abstract hydrate(apolloState: any): any;
|
25
28
|
abstract toJSON(): any;
|
26
|
-
get organizationContext(): OrganizationContext;
|
27
|
-
set organizationContext(context: OrganizationContext);
|
28
29
|
getCompleteOrganization(): Promise<OrganizationContext>;
|
29
30
|
getOrganization(): OrganizationContext;
|
30
31
|
getApplicationState(): ApplicationState;
|