@adminide-stack/core 13.5.26 → 13.5.27-alpha.1

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.
@@ -10,3 +10,18 @@ export declare const DEFAULT_CONTRIBUTION_TENANT_ID = "default";
10
10
  * @deprecated - use DEFAULT_CONTRIBUTION_TENANT_ID
11
11
  */
12
12
  export declare const DEFAULT_TENANT_ID = "default";
13
+ /**
14
+ * `pageSettings` context flag: read the requested resource's own values, without following the
15
+ * `project-settings` references stored in the `applications` document. A reference otherwise wins
16
+ * over the value the resource itself holds (it names where the marketplace saved the setting); a
17
+ * reader that needs one project's own value - an own OAuth app's settings, in the project its
18
+ * keys were saved from - sets this.
19
+ */
20
+ export declare const SKIP_SETTINGS_REFERENCE_RESOLUTION = "_skipReferenceResolution";
21
+ /**
22
+ * The registry default of every connector's `oauthConnector.redirectUri`: each app's own callback,
23
+ * resolved by each backend from its own environment. A redirect URI shared by every app (for
24
+ * providers that accept one registered redirect URI) is a setting saved like the connector's
25
+ * scopes - never this default, which the registry shares between all apps.
26
+ */
27
+ export declare const CONNECTOR_REDIRECT_URI_TEMPLATE = "{{CLIENT_URL}}/{{CONNECTOR_ENDPOINT}}";
@@ -9,4 +9,19 @@ const DEFAULT_CONTRIBUTION_TENANT_ID = 'default';
9
9
  /**
10
10
  * @deprecated - use DEFAULT_CONTRIBUTION_TENANT_ID
11
11
  */
12
- const DEFAULT_TENANT_ID = 'default';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};//# sourceMappingURL=configuration.js.map
12
+ const DEFAULT_TENANT_ID = 'default';
13
+ /**
14
+ * `pageSettings` context flag: read the requested resource's own values, without following the
15
+ * `project-settings` references stored in the `applications` document. A reference otherwise wins
16
+ * over the value the resource itself holds (it names where the marketplace saved the setting); a
17
+ * reader that needs one project's own value - an own OAuth app's settings, in the project its
18
+ * keys were saved from - sets this.
19
+ */
20
+ const SKIP_SETTINGS_REFERENCE_RESOLUTION = '_skipReferenceResolution';
21
+ /**
22
+ * The registry default of every connector's `oauthConnector.redirectUri`: each app's own callback,
23
+ * resolved by each backend from its own environment. A redirect URI shared by every app (for
24
+ * providers that accept one registered redirect URI) is a setting saved like the connector's
25
+ * scopes - never this default, which the registry shares between all apps.
26
+ */
27
+ const CONNECTOR_REDIRECT_URI_TEMPLATE = '{{CLIENT_URL}}/{{CONNECTOR_ENDPOINT}}';export{CONNECTOR_REDIRECT_URI_TEMPLATE,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,SKIP_SETTINGS_REFERENCE_RESOLUTION,USER_CONFIGURATION_FILE};//# sourceMappingURL=configuration.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.js","sources":["../../src/constants/configuration.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,0BAA0B,GAAG;AACnC,MAAM,iBAAiB,GAAG;AAC1B,MAAM,kCAAkC,GAAG;AAC3C,MAAM,2BAA2B,GAAG;AACpC,MAAM,yBAAyB,GAAG,CAAA,EAAA,EAAK,2BAA2B;AAClE,MAAM,yBAAyB,GAAG;AAClC,MAAM,uBAAuB,GAAG;AAChC,MAAM,8BAA8B,GAAG;AAC9C;;AAEG;AACI,MAAM,iBAAiB,GAAG"}
1
+ {"version":3,"file":"configuration.js","sources":["../../src/constants/configuration.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,0BAA0B,GAAG;AACnC,MAAM,iBAAiB,GAAG;AAC1B,MAAM,kCAAkC,GAAG;AAC3C,MAAM,2BAA2B,GAAG;AACpC,MAAM,yBAAyB,GAAG,CAAA,EAAA,EAAK,2BAA2B;AAClE,MAAM,yBAAyB,GAAG;AAClC,MAAM,uBAAuB,GAAG;AAChC,MAAM,8BAA8B,GAAG;AAC9C;;AAEG;AACI,MAAM,iBAAiB,GAAG;AAEjC;;;;;;AAMG;AACI,MAAM,kCAAkC,GAAG;AAElD;;;;;AAKG;AACI,MAAM,+BAA+B,GAAG"}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- export{AUTH_RETURN_TO_PARAM,NATS_HEMERA_ADMINIDE_WORKSPACE,NATS_HEMERA_ADMINIDE_WORKSPACE_UPDATER}from'./constants/constants.js';export{ALL_COUNTRIES_LIMIT,COMMON_COUNTRIES,getCommonCountriesCriteria}from'./constants/countries.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_ADDON_CATEGORY_TAG_TYPE_ID,DEFAULT_ANONYMOUS_ACCOUNT_ID,DEFAULT_ANONYMOUS_EMAIL,DEFAULT_ANONYMOUS_PUBLISHER_DISPLAY_NAME,DEFAULT_ANONYMOUS_PUBLISHER_ID,DEFAULT_ANONYMOUS_PUBLISHER_NAME,DEFAULT_ANONYMOUS_USERNAME,DEFAULT_APP_ID,DEFAULT_APP_TENANT_ID,DEFAULT_DEVELOPMENT_TAG_ID,DEFAULT_ENVIRONMENT_TAG_TYPE_ID,DEFAULT_ISSUE_TAG_TYPE_ID,DEFAULT_PRODUCTION_TAG_ID,DEFAULT_STAGING_TAG_ID,DEFAULT_SYSTEM_ACCOUNT_ID,DEFAULT_SYSTEM_EMAIL,DEFAULT_SYSTEM_USERNAME,VAULT_DEFAULT_DIR}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,formatResourceIdWithIdField,generateCdecodeUri,isReservedCdecodeParam,parseCdecodeUri,parseResourceIdWithIdField,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{FileNameToTarget,SettingsFileName,determineSchemaFromUri,extractExtensionNameFromFragment,extractExtensionNameFromPathSegments,extractFileNameFromPath,generateDefaultConfigurationUri,generateEffectiveExtensionsUri,generateInstalledExtensionsUri,generatePublicExtensionsUri,generateSystemDefaultsUri,getDefaultSettingsURI,getEditableSettingsURI,getOpenSettings,getSettingsFileName,getTargetFromFileName,getTargetFromSettingsUri,isDefaultSettingsUri,mapAuthorityToSchemaId,mapFragmentToSchemaId,mapSchemaIdToAuthority,mapStringToSchemaId,parseDefaultConfigurationUri,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{CONTEXT_ROOT,configurationContextPath,contextPath}from'./utils/context-path.js';export{splitCdecodeUri,splitOrgUri}from'./utils/splitCdecodeUri.js';export{generatePath}from'./utils/generatePath.js';export{resolveContextPlaceholders,resolvePlaceholdersSync,resolveResourceParamsPlaceholders}from'./utils/resolveContextPlaceholders.js';export{SLUG_REGEX,SLUG_VALIDATION_MESSAGE,SLUG_VALIDATOR_CONFIG,getSlugValidationMessage,isValidSlug,slugValidator,slugify}from'./utils/slug-utils.js';export{pubSub}from'./utils/pubsub-utility.js';export{denylistKey,isTokenRevoked}from'./utils/secret-api-token-denylist.js';export{APPROVED_SITE_PAGES,APPROVED_SURFACE_APEXES,isAllowedSurfaceOrigin,surfaceDisplayName}from'./utils/surface-origin.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{createConfigurationModel,extractConfiguration,extractConfigurationWithModel,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
1
+ export{AUTH_RETURN_TO_PARAM,NATS_HEMERA_ADMINIDE_WORKSPACE,NATS_HEMERA_ADMINIDE_WORKSPACE_UPDATER}from'./constants/constants.js';export{ALL_COUNTRIES_LIMIT,COMMON_COUNTRIES,getCommonCountriesCriteria}from'./constants/countries.js';export{DEFAULT_CPU,DEFAULT_HDD,DEFAULT_RAM}from'./constants/default-workspace-config.js';export{CONNECTOR_REDIRECT_URI_TEMPLATE,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,SKIP_SETTINGS_REFERENCE_RESOLUTION,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_ADDON_CATEGORY_TAG_TYPE_ID,DEFAULT_ANONYMOUS_ACCOUNT_ID,DEFAULT_ANONYMOUS_EMAIL,DEFAULT_ANONYMOUS_PUBLISHER_DISPLAY_NAME,DEFAULT_ANONYMOUS_PUBLISHER_ID,DEFAULT_ANONYMOUS_PUBLISHER_NAME,DEFAULT_ANONYMOUS_USERNAME,DEFAULT_APP_ID,DEFAULT_APP_TENANT_ID,DEFAULT_DEVELOPMENT_TAG_ID,DEFAULT_ENVIRONMENT_TAG_TYPE_ID,DEFAULT_ISSUE_TAG_TYPE_ID,DEFAULT_PRODUCTION_TAG_ID,DEFAULT_STAGING_TAG_ID,DEFAULT_SYSTEM_ACCOUNT_ID,DEFAULT_SYSTEM_EMAIL,DEFAULT_SYSTEM_USERNAME,VAULT_DEFAULT_DIR}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,formatResourceIdWithIdField,generateCdecodeUri,isReservedCdecodeParam,parseCdecodeUri,parseResourceIdWithIdField,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{FileNameToTarget,SettingsFileName,determineSchemaFromUri,extractExtensionNameFromFragment,extractExtensionNameFromPathSegments,extractFileNameFromPath,generateDefaultConfigurationUri,generateEffectiveExtensionsUri,generateInstalledExtensionsUri,generatePublicExtensionsUri,generateSystemDefaultsUri,getDefaultSettingsURI,getEditableSettingsURI,getOpenSettings,getSettingsFileName,getTargetFromFileName,getTargetFromSettingsUri,isDefaultSettingsUri,mapAuthorityToSchemaId,mapFragmentToSchemaId,mapSchemaIdToAuthority,mapStringToSchemaId,parseDefaultConfigurationUri,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{CONTEXT_ROOT,configurationContextPath,contextPath}from'./utils/context-path.js';export{splitCdecodeUri,splitOrgUri}from'./utils/splitCdecodeUri.js';export{generatePath}from'./utils/generatePath.js';export{resolveContextPlaceholders,resolvePlaceholdersSync,resolveResourceParamsPlaceholders}from'./utils/resolveContextPlaceholders.js';export{SLUG_REGEX,SLUG_VALIDATION_MESSAGE,SLUG_VALIDATOR_CONFIG,getSlugValidationMessage,isValidSlug,slugValidator,slugify}from'./utils/slug-utils.js';export{pubSub}from'./utils/pubsub-utility.js';export{denylistKey,isTokenRevoked}from'./utils/secret-api-token-denylist.js';export{APPROVED_SITE_PAGES,APPROVED_SURFACE_APEXES,isAllowedSurfaceOrigin,surfaceDisplayName}from'./utils/surface-origin.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{createConfigurationModel,extractConfiguration,extractConfigurationWithModel,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": "13.5.26",
3
+ "version": "13.5.27-alpha.1",
4
4
  "description": "AdminIDE core for higher packages to depend on",
5
5
  "license": "UNLICENSED",
6
6
  "author": "adminide-stack-user",
@@ -30,7 +30,7 @@
30
30
  "vscode-uri": "^3.0.8"
31
31
  },
32
32
  "devDependencies": {
33
- "common": "^13.5.26"
33
+ "common": "13.5.27-alpha.1"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@common-stack/server-core": ">=9.2.1-alpha.0",
@@ -39,5 +39,5 @@
39
39
  "typescript": {
40
40
  "definition": "lib/index.d.ts"
41
41
  },
42
- "gitHead": "8d36f17d327b148957d8b3d263cbe17b5d488363"
42
+ "gitHead": "ffbdcb9993f8f030bbdc2b6f3d759d4e4b0dd84b"
43
43
  }