@adminide-stack/core 12.0.4-alpha.322 → 12.0.4-alpha.325
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/core/configurations/index.d.ts +1 -0
- package/lib/core/configurations/models/ConfigurationModelWrapper.test.d.ts +1 -0
- package/lib/core/configurations/utils/configurationExtractor.js +248 -0
- package/lib/core/configurations/utils/configurationExtractor.js.map +1 -0
- package/lib/index.js +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import {OVERRIDE_PROPERTY_REGEX,overrideIdentifiersFromKey}from'../configuration.js';/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
// ============================================================================
|
|
3
|
+
// Core Utility Functions (Reusing existing utilities)
|
|
4
|
+
// ============================================================================
|
|
5
|
+
/**
|
|
6
|
+
* Check if a key is a bracket-notation override identifier
|
|
7
|
+
* Uses OVERRIDE_PROPERTY_REGEX from configuration.ts
|
|
8
|
+
*
|
|
9
|
+
* @param key - The key to check
|
|
10
|
+
* @returns True if the key matches the override pattern
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* isBracketKey('[desktop]') // true
|
|
15
|
+
* isBracketKey('[/o/:orgName/vault]') // true
|
|
16
|
+
* isBracketKey('[/route][desktop]') // true
|
|
17
|
+
* isBracketKey('headerBgColor') // false
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
function isBracketKey(key) {
|
|
21
|
+
return OVERRIDE_PROPERTY_REGEX.test(key);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Extract individual identifiers from a bracket key
|
|
25
|
+
* Reuses overrideIdentifiersFromKey from configuration.ts
|
|
26
|
+
* Handles compound identifiers like [/route][desktop]
|
|
27
|
+
*
|
|
28
|
+
* @param key - The bracket key to parse
|
|
29
|
+
* @returns Array of identifiers without brackets
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```typescript
|
|
33
|
+
* extractIdentifiersFromKey('[desktop]')
|
|
34
|
+
* // Returns: ['desktop']
|
|
35
|
+
*
|
|
36
|
+
* extractIdentifiersFromKey('[/o/:orgName/vault]')
|
|
37
|
+
* // Returns: ['/o/:orgName/vault']
|
|
38
|
+
*
|
|
39
|
+
* extractIdentifiersFromKey('[/o/:orgName/vault][desktop]')
|
|
40
|
+
* // Returns: ['/o/:orgName/vault', 'desktop']
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
function extractIdentifiersFromKey(key) {
|
|
44
|
+
return overrideIdentifiersFromKey(key);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Extract overrides and base configuration from settings object
|
|
48
|
+
*
|
|
49
|
+
* @param settings - Configuration object that may contain bracket-notation overrides
|
|
50
|
+
* @returns Extracted base contents, keys, and overrides array
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```typescript
|
|
54
|
+
* const settings = {
|
|
55
|
+
* headerBgColor: "#000000",
|
|
56
|
+
* textColor: "#a19c9c",
|
|
57
|
+
* "[/o/:orgName/vault]": {
|
|
58
|
+
* navTheme: "realDark",
|
|
59
|
+
* primaryColor: "#1890ff"
|
|
60
|
+
* },
|
|
61
|
+
* "[/o/:orgName/pref/settings]": {
|
|
62
|
+
* header: { menuHeaderRender: false }
|
|
63
|
+
* }
|
|
64
|
+
* };
|
|
65
|
+
*
|
|
66
|
+
* const { baseContents, baseKeys, overrides } = extractConfiguration(settings);
|
|
67
|
+
* // baseContents: { headerBgColor: "#000000", textColor: "#a19c9c" }
|
|
68
|
+
* // baseKeys: ["headerBgColor", "textColor"]
|
|
69
|
+
* // overrides: [
|
|
70
|
+
* // { identifiers: ["/o/:orgName/vault"], contents: {...}, keys: [...] },
|
|
71
|
+
* // { identifiers: ["/o/:orgName/pref/settings"], contents: {...}, keys: [...] }
|
|
72
|
+
* // ]
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
function extractConfiguration(settings) {
|
|
76
|
+
const baseContents = {};
|
|
77
|
+
const overrides = [];
|
|
78
|
+
if (!settings || typeof settings !== 'object') {
|
|
79
|
+
return {
|
|
80
|
+
baseContents: {},
|
|
81
|
+
baseKeys: [],
|
|
82
|
+
overrides: []
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
// Iterate through all keys in the settings object
|
|
86
|
+
Object.keys(settings).forEach(key => {
|
|
87
|
+
if (isBracketKey(key)) {
|
|
88
|
+
// This is a bracket override: [device] or [/route][device]
|
|
89
|
+
const overrideData = settings[key];
|
|
90
|
+
const identifiers = extractIdentifiersFromKey(key);
|
|
91
|
+
overrides.push({
|
|
92
|
+
identifiers,
|
|
93
|
+
contents: overrideData,
|
|
94
|
+
keys: Object.keys(overrideData || {})
|
|
95
|
+
});
|
|
96
|
+
} else {
|
|
97
|
+
// Base settings (flat, no wrapper)
|
|
98
|
+
baseContents[key] = settings[key];
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
const baseKeys = Object.keys(baseContents);
|
|
102
|
+
return {
|
|
103
|
+
baseContents,
|
|
104
|
+
baseKeys,
|
|
105
|
+
overrides
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
// ============================================================================
|
|
109
|
+
// Additional Helper Functions
|
|
110
|
+
// ============================================================================
|
|
111
|
+
/**
|
|
112
|
+
* Get only the override keys (bracket-notation keys) from settings
|
|
113
|
+
*
|
|
114
|
+
* @param settings - Configuration object
|
|
115
|
+
* @returns Array of bracket keys
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```typescript
|
|
119
|
+
* const settings = {
|
|
120
|
+
* headerBgColor: "#000000",
|
|
121
|
+
* "[/o/:orgName/vault]": {...},
|
|
122
|
+
* "[desktop]": {...}
|
|
123
|
+
* };
|
|
124
|
+
*
|
|
125
|
+
* getOverrideKeys(settings)
|
|
126
|
+
* // Returns: ['[/o/:orgName/vault]', '[desktop]']
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
129
|
+
function getOverrideKeys(settings) {
|
|
130
|
+
if (!settings || typeof settings !== 'object') {
|
|
131
|
+
return [];
|
|
132
|
+
}
|
|
133
|
+
return Object.keys(settings).filter(isBracketKey);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Get only the base keys (non-bracket keys) from settings
|
|
137
|
+
*
|
|
138
|
+
* @param settings - Configuration object
|
|
139
|
+
* @returns Array of base keys
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* ```typescript
|
|
143
|
+
* const settings = {
|
|
144
|
+
* headerBgColor: "#000000",
|
|
145
|
+
* textColor: "#a19c9c",
|
|
146
|
+
* "[/o/:orgName/vault]": {...}
|
|
147
|
+
* };
|
|
148
|
+
*
|
|
149
|
+
* getBaseKeys(settings)
|
|
150
|
+
* // Returns: ['headerBgColor', 'textColor']
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
function getBaseKeys(settings) {
|
|
154
|
+
if (!settings || typeof settings !== 'object') {
|
|
155
|
+
return [];
|
|
156
|
+
}
|
|
157
|
+
return Object.keys(settings).filter(key => !isBracketKey(key));
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Remove all bracket-notation keys from an object
|
|
161
|
+
* Returns a new object with only base properties
|
|
162
|
+
*
|
|
163
|
+
* @param settings - Configuration object
|
|
164
|
+
* @returns New object without bracket keys
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* ```typescript
|
|
168
|
+
* const settings = {
|
|
169
|
+
* headerBgColor: "#000000",
|
|
170
|
+
* "[/o/:orgName/vault]": {...},
|
|
171
|
+
* textColor: "#a19c9c"
|
|
172
|
+
* };
|
|
173
|
+
*
|
|
174
|
+
* removeOverrideKeys(settings)
|
|
175
|
+
* // Returns: { headerBgColor: "#000000", textColor: "#a19c9c" }
|
|
176
|
+
* ```
|
|
177
|
+
*/
|
|
178
|
+
function removeOverrideKeys(settings) {
|
|
179
|
+
if (!settings || typeof settings !== 'object') {
|
|
180
|
+
return {};
|
|
181
|
+
}
|
|
182
|
+
const result = {};
|
|
183
|
+
Object.keys(settings).forEach(key => {
|
|
184
|
+
if (!isBracketKey(key)) {
|
|
185
|
+
result[key] = settings[key];
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
return result;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Check if settings object has any override identifiers
|
|
192
|
+
*
|
|
193
|
+
* @param settings - Configuration object
|
|
194
|
+
* @returns True if any bracket keys exist
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* ```typescript
|
|
198
|
+
* hasOverrides({ headerBgColor: "#000" }) // false
|
|
199
|
+
* hasOverrides({ "[desktop]": {...} }) // true
|
|
200
|
+
* ```
|
|
201
|
+
*/
|
|
202
|
+
function hasOverrides(settings) {
|
|
203
|
+
if (!settings || typeof settings !== 'object') {
|
|
204
|
+
return false;
|
|
205
|
+
}
|
|
206
|
+
return Object.keys(settings).some(isBracketKey);
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Get a specific override by identifier
|
|
210
|
+
*
|
|
211
|
+
* @param settings - Configuration object
|
|
212
|
+
* @param identifier - The identifier to search for (without brackets)
|
|
213
|
+
* @returns The override contents or undefined if not found
|
|
214
|
+
*
|
|
215
|
+
* @example
|
|
216
|
+
* ```typescript
|
|
217
|
+
* const settings = {
|
|
218
|
+
* "[/o/:orgName/vault]": { navTheme: "realDark" },
|
|
219
|
+
* "[desktop]": { theme: "dark" }
|
|
220
|
+
* };
|
|
221
|
+
*
|
|
222
|
+
* getOverrideByIdentifier(settings, '/o/:orgName/vault')
|
|
223
|
+
* // Returns: { navTheme: "realDark" }
|
|
224
|
+
*
|
|
225
|
+
* getOverrideByIdentifier(settings, 'desktop')
|
|
226
|
+
* // Returns: { theme: "dark" }
|
|
227
|
+
* ```
|
|
228
|
+
*/
|
|
229
|
+
function getOverrideByIdentifier(settings, identifier) {
|
|
230
|
+
if (!settings || typeof settings !== 'object' || !identifier) {
|
|
231
|
+
return undefined;
|
|
232
|
+
}
|
|
233
|
+
// Try exact match with brackets
|
|
234
|
+
const exactKey = `[${identifier}]`;
|
|
235
|
+
if (settings[exactKey]) {
|
|
236
|
+
return settings[exactKey];
|
|
237
|
+
}
|
|
238
|
+
// Try finding in compound keys
|
|
239
|
+
for (const key of Object.keys(settings)) {
|
|
240
|
+
if (isBracketKey(key)) {
|
|
241
|
+
const identifiers = extractIdentifiersFromKey(key);
|
|
242
|
+
if (identifiers.includes(identifier)) {
|
|
243
|
+
return settings[key];
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return undefined;
|
|
248
|
+
}export{extractConfiguration,extractIdentifiersFromKey,getBaseKeys,getOverrideByIdentifier,getOverrideKeys,hasOverrides,isBracketKey,removeOverrideKeys};//# sourceMappingURL=configurationExtractor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurationExtractor.js","sources":["../../../../src/core/configurations/utils/configurationExtractor.ts"],"sourcesContent":[null],"names":[],"mappings":"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"}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{NATS_HEMERA_ADMINIDE_WORKSPACE,NATS_HEMERA_ADMINIDE_WORKSPACE_UPDATER}from'./constants/constants.js';export{DEFAULT_CPU,DEFAULT_HDD,DEFAULT_RAM}from'./constants/default-workspace-config.js';export{DEFAULT_CONTRIBUTION_TENANT_ID,DEFAULT_TENANT_ID,GLOBAL_CONFIGURATION_FILE,OVERRIDE_IDENTIFIER_PATTERN,OVERRIDE_PATTERN_WITH_SUBSTITUTION,OVERRIDE_PROPERTY,OVERRIDE_PROPERTY_PATTERN,SETTINGS_OVERRRIDE_NODE_ID,USER_CONFIGURATION_FILE}from'./constants/configuration.js';export{ASANA_WEBHOOK_ENDPOINT,ORG_BASE_PATH,ORG_STD_ROUTES}from'./constants/urls.js';export{IntegrationConfigurationRoute,hasOrganizationContext}from'./constants/routes.js';export{BillingPlan}from'./constants/billing-plan.js';export{DEFAULT_APP_ID,DEFAULT_APP_TENANT_ID}from'./constants/defaultIds.js';export{LOCAL_MACHINE_SCOPES,ORGANIZATION_SCOPES,REMOTE_MACHINE_SCOPES,RESOURCE_SCOPES,USER_SCOPES}from'./interfaces/configuration/configuration.js';export{ApplicationState,IOrganizationContext,IOrganizationResource}from'./interfaces/organization/organization-context.js';export{Extensions}from'@workbench-stack/core/lib/constants/extensions.js';export{LifecyclePhase,ShutdownReason,StartupKind}from'@workbench-stack/core/lib/interfaces/lifecycle/lifecycle.js';export{PermissionBehavior}from'./interfaces/permissions.js';export*from'common/lib/generated/generated-models.js';export{getFilteredRoutes,getFilteredTabs,getTtl}from'./utils/utils.js';export{configureForCurrentBranch,configureForUpcomingBranch,convertToResourceUri,createDirectResourceUri,createStandardResourceUri,generateHashId,normalizeResourceUri,resourcePath,setupResourceUriConfiguration,strictConvertToResourceUri}from'./utils/resourceUriConversion.js';export{generateApplicationUri,generateMachineUri,generateOrgUri,generateOrgUriById,generateProxyUserUri,generateResourceUri,generateUri,generateUserUri}from'./utils/generate-uri.js';export{RESERVED_CDECODE_PARAMS,determineConfigurationTarget,generateCdecodeUri,isReservedCdecodeParam,parseCdecodeUri,validateUserQueryParams}from'./utils/cdecodeUri.js';export{generateApplicationRoleResource,generateRegisteredRoleURI}from'./utils/roles-utils.js';export{getScopes}from'./utils/configuration-utils.js';export{omitDeep}from'./utils/omit-deep.js';export{generateSettingsId}from'./utils/generated-settings-id.js';export{validateEmail}from'./utils/validations.js';export{toMilliSeconds}from'./utils/date-utils.js';export{expand,flatten,flattenObject}from'./utils/flatten-utils.js';export{generateUserAlias}from'./utils/generateUserAlias.js';export{getUserAlias}from'./utils/getUserAlias.js';export{getLogger}from'./utils/getLogger.js';export{getDefaultSettingsURI,getEditableSettingsURI,getOpenSettings,parseExtensionFromDefaultSettingsUri}from'./utils/preferenceUri.js';export{reviveUri}from'./utils/reviveUri.js';export{buildExtensionNodeContext,buildExtensionSettingsNodeContext,buildNodeContext,buildPermissionNodeContext,buildPolicyNodeContext,buildRoleNodeContext,buildUiLayoutNodeContext,isSystemContribution}from'./utils/nodeContext.js';export{splitCdecodeUri,splitOrgUri}from'./utils/splitCdecodeUri.js';export{generatePath}from'./utils/generatePath.js';export{Disposable,DisposableCollection}from'./core/disposable.js';export{BaseDisposable}from'./core/BaseDisposable.js';export{Emitter,Event,WaitUntilEvent}from'./core/event.js';export{Path}from'./core/path.js';export{OrganizationContext,OrganizationResource,toOrganizationResource,toOrganizationResources,toUri}from'./core/organization/organization.js';export{OrganizationConfiguration}from'./core/organization/configuration.js';export{isOrganizationIdentifier,isRawFileOrganizationResource,isRawUriOrganizationResource,isSingleResourceOrganizationIdentifier,isSingleResourceOrganizationInitializationPayload}from'./core/organization/helpers/organization-helpers.js';export{ConfigurationTargetConfigurationMapper,ConfigurationTargetToString,SettingsTypeToConfiguraitonTarget,addToValueTree,getConfigurationValue,getMigratedSettingValue,isConfigurationOverrides,keyFromOverrideIdentifier,merge,overrideIdentifierFromKey,removeFromValueTree,toValuesTree}from'./core/configurations/helpers/configuration.js';export{ConfigurationModel}from'./core/configurations/models/ConfigurationModel.js';export{EnhancedConfigurationModel}from'./core/configurations/models/ConfigurationModelWrapper.js';export{Configuration,OVERRIDE_PROPERTY_REGEX,compare,overrideIdentifiersFromKey}from'./core/configurations/configuration.js';export{ConfigurationChangeEvent}from'./core/configurations/events/ConfigurationChangeEvent.js';export{parseConfiguration}from'./core/configurations/parser/configurationParser.js';export{CdeCodeProvider}from'./core/in-memory-providers/cde-code-provider.js';export{AuthError}from'./errors/auth-error.js';export{AbstractOrganizationContextService}from'./services/abstract-organization-context-service.js';export{AbstractOrganizationConfigurationClientService}from'./services/abstract-configuration.js';export{PreDefineAccountPermissions}from'./modules/account-api/enums/index.js';export{BillingModules,PreDefineBillingPermissions}from'./modules/billing-api/enums/index.js';export{URI,uriToFsPath}from'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';export{ConfigurationScope}from'common';//# sourceMappingURL=index.js.map
|
|
1
|
+
export{NATS_HEMERA_ADMINIDE_WORKSPACE,NATS_HEMERA_ADMINIDE_WORKSPACE_UPDATER}from'./constants/constants.js';export{DEFAULT_CPU,DEFAULT_HDD,DEFAULT_RAM}from'./constants/default-workspace-config.js';export{DEFAULT_CONTRIBUTION_TENANT_ID,DEFAULT_TENANT_ID,GLOBAL_CONFIGURATION_FILE,OVERRIDE_IDENTIFIER_PATTERN,OVERRIDE_PATTERN_WITH_SUBSTITUTION,OVERRIDE_PROPERTY,OVERRIDE_PROPERTY_PATTERN,SETTINGS_OVERRRIDE_NODE_ID,USER_CONFIGURATION_FILE}from'./constants/configuration.js';export{ASANA_WEBHOOK_ENDPOINT,ORG_BASE_PATH,ORG_STD_ROUTES}from'./constants/urls.js';export{IntegrationConfigurationRoute,hasOrganizationContext}from'./constants/routes.js';export{BillingPlan}from'./constants/billing-plan.js';export{DEFAULT_APP_ID,DEFAULT_APP_TENANT_ID}from'./constants/defaultIds.js';export{LOCAL_MACHINE_SCOPES,ORGANIZATION_SCOPES,REMOTE_MACHINE_SCOPES,RESOURCE_SCOPES,USER_SCOPES}from'./interfaces/configuration/configuration.js';export{ApplicationState,IOrganizationContext,IOrganizationResource}from'./interfaces/organization/organization-context.js';export{Extensions}from'@workbench-stack/core/lib/constants/extensions.js';export{LifecyclePhase,ShutdownReason,StartupKind}from'@workbench-stack/core/lib/interfaces/lifecycle/lifecycle.js';export{PermissionBehavior}from'./interfaces/permissions.js';export*from'common/lib/generated/generated-models.js';export{getFilteredRoutes,getFilteredTabs,getTtl}from'./utils/utils.js';export{configureForCurrentBranch,configureForUpcomingBranch,convertToResourceUri,createDirectResourceUri,createStandardResourceUri,generateHashId,normalizeResourceUri,resourcePath,setupResourceUriConfiguration,strictConvertToResourceUri}from'./utils/resourceUriConversion.js';export{generateApplicationUri,generateMachineUri,generateOrgUri,generateOrgUriById,generateProxyUserUri,generateResourceUri,generateUri,generateUserUri}from'./utils/generate-uri.js';export{RESERVED_CDECODE_PARAMS,determineConfigurationTarget,generateCdecodeUri,isReservedCdecodeParam,parseCdecodeUri,validateUserQueryParams}from'./utils/cdecodeUri.js';export{generateApplicationRoleResource,generateRegisteredRoleURI}from'./utils/roles-utils.js';export{getScopes}from'./utils/configuration-utils.js';export{omitDeep}from'./utils/omit-deep.js';export{generateSettingsId}from'./utils/generated-settings-id.js';export{validateEmail}from'./utils/validations.js';export{toMilliSeconds}from'./utils/date-utils.js';export{expand,flatten,flattenObject}from'./utils/flatten-utils.js';export{generateUserAlias}from'./utils/generateUserAlias.js';export{getUserAlias}from'./utils/getUserAlias.js';export{getLogger}from'./utils/getLogger.js';export{getDefaultSettingsURI,getEditableSettingsURI,getOpenSettings,parseExtensionFromDefaultSettingsUri}from'./utils/preferenceUri.js';export{reviveUri}from'./utils/reviveUri.js';export{buildExtensionNodeContext,buildExtensionSettingsNodeContext,buildNodeContext,buildPermissionNodeContext,buildPolicyNodeContext,buildRoleNodeContext,buildUiLayoutNodeContext,isSystemContribution}from'./utils/nodeContext.js';export{splitCdecodeUri,splitOrgUri}from'./utils/splitCdecodeUri.js';export{generatePath}from'./utils/generatePath.js';export{Disposable,DisposableCollection}from'./core/disposable.js';export{BaseDisposable}from'./core/BaseDisposable.js';export{Emitter,Event,WaitUntilEvent}from'./core/event.js';export{Path}from'./core/path.js';export{OrganizationContext,OrganizationResource,toOrganizationResource,toOrganizationResources,toUri}from'./core/organization/organization.js';export{OrganizationConfiguration}from'./core/organization/configuration.js';export{isOrganizationIdentifier,isRawFileOrganizationResource,isRawUriOrganizationResource,isSingleResourceOrganizationIdentifier,isSingleResourceOrganizationInitializationPayload}from'./core/organization/helpers/organization-helpers.js';export{ConfigurationTargetConfigurationMapper,ConfigurationTargetToString,SettingsTypeToConfiguraitonTarget,addToValueTree,getConfigurationValue,getMigratedSettingValue,isConfigurationOverrides,keyFromOverrideIdentifier,merge,overrideIdentifierFromKey,removeFromValueTree,toValuesTree}from'./core/configurations/helpers/configuration.js';export{ConfigurationModel}from'./core/configurations/models/ConfigurationModel.js';export{EnhancedConfigurationModel}from'./core/configurations/models/ConfigurationModelWrapper.js';export{Configuration,OVERRIDE_PROPERTY_REGEX,compare,overrideIdentifiersFromKey}from'./core/configurations/configuration.js';export{ConfigurationChangeEvent}from'./core/configurations/events/ConfigurationChangeEvent.js';export{parseConfiguration}from'./core/configurations/parser/configurationParser.js';export{extractConfiguration,extractIdentifiersFromKey,getBaseKeys,getOverrideByIdentifier,getOverrideKeys,hasOverrides,isBracketKey,removeOverrideKeys}from'./core/configurations/utils/configurationExtractor.js';export{CdeCodeProvider}from'./core/in-memory-providers/cde-code-provider.js';export{AuthError}from'./errors/auth-error.js';export{AbstractOrganizationContextService}from'./services/abstract-organization-context-service.js';export{AbstractOrganizationConfigurationClientService}from'./services/abstract-configuration.js';export{PreDefineAccountPermissions}from'./modules/account-api/enums/index.js';export{BillingModules,PreDefineBillingPermissions}from'./modules/billing-api/enums/index.js';export{URI,uriToFsPath}from'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';export{ConfigurationScope}from'common';//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminide-stack/core",
|
|
3
|
-
"version": "12.0.4-alpha.
|
|
3
|
+
"version": "12.0.4-alpha.325",
|
|
4
4
|
"description": "AdminIDE core for higher packages to depend on",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"vscode-uri": "^3.0.8"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"common": "12.0.4-alpha.
|
|
33
|
+
"common": "12.0.4-alpha.323"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@common-stack/server-core": ">=0.5.21",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"typescript": {
|
|
43
43
|
"definition": "lib/index.d.ts"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "002d3aa20605c694617688d45337135f88fcac95"
|
|
46
46
|
}
|