@adminide-stack/core 10.2.1-alpha.0 → 10.2.1-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.
- package/lib/enums/index.d.ts +0 -1
- package/lib/index.js +1 -1
- package/lib/interfaces/apollo-context.d.ts +2 -2
- package/lib/utils/getUserAlias.d.ts +2 -2
- package/lib/utils/getUserAlias.js +6 -6
- package/lib/utils/getUserAlias.js.map +1 -1
- 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 +3 -3
- package/lib/enums/team-member-status.d.ts +0 -4
- package/lib/enums/team-member-status.js +0 -5
- package/lib/enums/team-member-status.js.map +0 -1
- package/lib/routes.json +0 -1
package/lib/enums/index.d.ts
CHANGED
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_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{CommonTypes,PlatformClientTypes,ServerTypes}from'./constants/types.js';export{ASANA_WEBHOOK_ENDPOINT,ORG_BASE_PATH,ORG_STD_ROUTES}from'./constants/urls.js';export{IntegrationConfigurationRoute}from'./constants/routes.js';export{BillingPlan}from'./constants/billing-plan.js';export{Scheme}from'./constants/scheme.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{convertToResourceUri,resourcePath}from'./utils/resourceUriConversion.js';export{generateApplicationUri,generateMachineUri,generateOrgUri,generateProxyUserUri,generateResourceUri,generateUri,generateUserUri}from'./utils/generate-uri.js';export{determineConfigurationTarget,generateCdecodeUri,parseCdecodeUri}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{buildNodeContext,buildPermissionNodeContext,buildPolicyNodeContext,buildRoleNodeContext}from'./utils/nodeContext.js';export{splitCdecodeUri}from'./utils/splitCdecodeUri.js';export{Disposable,DisposableCollection}from'./core/disposable.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{Configuration,OVERRIDE_PROPERTY_REGEX,compare,overrideIdentifiersFromKey}from'./core/configurations/configuration.js';export{ConfigurationChangeEvent}from'./core/configurations/events/ConfigurationChangeEvent.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{PreDefineInboxPermissions}from'./modules/inbox/enums/index.js';export{PermissionTypes}from'./enums/permissions.js';export{IntegrationConnections}from'./enums/integrations-connection-names.js';export{ConnectionStatus}from'./enums/connection-status.js';export{IntegrationsConfigSteps}from'./enums/integrations-configuration-steps.js';export{IntegrationConfigStatus}from'./enums/integration-configuration-status.js';export{Integrations}from'./enums/integrations.js';export{
|
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_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{CommonTypes,PlatformClientTypes,ServerTypes}from'./constants/types.js';export{ASANA_WEBHOOK_ENDPOINT,ORG_BASE_PATH,ORG_STD_ROUTES}from'./constants/urls.js';export{IntegrationConfigurationRoute}from'./constants/routes.js';export{BillingPlan}from'./constants/billing-plan.js';export{Scheme}from'./constants/scheme.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{convertToResourceUri,resourcePath}from'./utils/resourceUriConversion.js';export{generateApplicationUri,generateMachineUri,generateOrgUri,generateProxyUserUri,generateResourceUri,generateUri,generateUserUri}from'./utils/generate-uri.js';export{determineConfigurationTarget,generateCdecodeUri,parseCdecodeUri}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{buildNodeContext,buildPermissionNodeContext,buildPolicyNodeContext,buildRoleNodeContext}from'./utils/nodeContext.js';export{splitCdecodeUri}from'./utils/splitCdecodeUri.js';export{Disposable,DisposableCollection}from'./core/disposable.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{Configuration,OVERRIDE_PROPERTY_REGEX,compare,overrideIdentifiersFromKey}from'./core/configurations/configuration.js';export{ConfigurationChangeEvent}from'./core/configurations/events/ConfigurationChangeEvent.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{PreDefineInboxPermissions}from'./modules/inbox/enums/index.js';export{PermissionTypes}from'./enums/permissions.js';export{IntegrationConnections}from'./enums/integrations-connection-names.js';export{ConnectionStatus}from'./enums/connection-status.js';export{IntegrationsConfigSteps}from'./enums/integrations-configuration-steps.js';export{IntegrationConfigStatus}from'./enums/integration-configuration-status.js';export{Integrations}from'./enums/integrations.js';export{URI,uriToFsPath}from'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';export{ConfigurationScope}from'@workbench-stack/core/lib/interfaces/configuration/configuration.js';//# sourceMappingURL=index.js.map
|
@@ -3,7 +3,7 @@ import { ApolloClient } from '@apollo/client/index.js';
|
|
3
3
|
import { CdmLogger } from '@cdm-logger/core';
|
4
4
|
import express from 'express';
|
5
5
|
import { IPreferncesTransformed } from '@common-stack/server-core';
|
6
|
-
import { IUserContext, IUserProfile, IIAuth0Token,
|
6
|
+
import { IUserContext, IUserProfile, IIAuth0Token, AuthStrategy, ICdecodeParsedUri } from 'common/lib/generated/generated-models.js';
|
7
7
|
import { IClientService } from './service';
|
8
8
|
import { IEnvironmentService } from './environment';
|
9
9
|
import { IPreferencesService } from './preferences-service';
|
@@ -38,7 +38,7 @@ export interface IDataSources {
|
|
38
38
|
}
|
39
39
|
export interface IHttpMiddlewareContext {
|
40
40
|
req?: express.Request & {
|
41
|
-
authStrategy:
|
41
|
+
authStrategy: AuthStrategy | string;
|
42
42
|
permissions?: any;
|
43
43
|
cdecodeuri?: any;
|
44
44
|
currentPageUriSegments: ICdecodeParsedUri;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
export declare const getUserAlias: (alias: string[], strategy:
|
1
|
+
import { AuthStrategy } from 'common/lib/generated/generated-models';
|
2
|
+
export declare const getUserAlias: (alias: string[], strategy: AuthStrategy) => any;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import {AuthStrategy}from'common/lib/generated/generated-models.js';const getUserAlias = (alias, strategy) => {
|
2
2
|
let id;
|
3
|
-
if (strategy ===
|
4
|
-
id = alias.find(x => x.includes(
|
5
|
-
return id.split(`${
|
3
|
+
if (strategy === AuthStrategy.Keycloak) {
|
4
|
+
id = alias.find(x => x.includes(AuthStrategy.Keycloak));
|
5
|
+
return id.split(`${AuthStrategy.Keycloak}|`)[1];
|
6
6
|
}
|
7
|
-
id = alias.find(x => !x.includes(
|
8
|
-
return id.split(`${
|
7
|
+
id = alias.find(x => !x.includes(AuthStrategy.Keycloak));
|
8
|
+
return id.split(`${AuthStrategy.Auth0}|`)[1];
|
9
9
|
};export{getUserAlias};//# sourceMappingURL=getUserAlias.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getUserAlias.js","sources":["../../src/utils/getUserAlias.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"getUserAlias.js","sources":["../../src/utils/getUserAlias.ts"],"sourcesContent":[null],"names":[],"mappings":"0EAEa,YAAY,GAAG,CAAC,KAAe,EAAE,QAAsB,KAAI;AACpE,EAAA,IAAA,EAAI;AACJ,EAAA,IAAA,aAAiB,YAAA,CAAA,QAAa,EAAQ;AAClC,IAAA,EAAA,GAAA,KAAU,CAAA,IAAC,MAAM,CAAC,CAAE,qBAAc,CAAA,QAAqB,CAAA,CAAA;AACvD,IAAA,OAAA,EAAA,CAAA,KAAe,CAAA,CAAA,EAAA,YAAI,CAAA,QAAa,CAAA,CAAA,CAAA,CAAQ,CAAG,CAAA,CAAA;;IAE/C,GAAE,UAAS,CAAA,CAAI,KAAK,CAAE,CAAA,qBAAa,CAAA,QAAqB,CAAA,CAAA;AACxD,EAAA,OAAA,EAAO,CAAE,KAAM,CAAA,CAAA,EAAI,YAAA,CAAA,KAAa,CAAA,CAAK,CAAG,CAAA,CAAA,CAAC,CAAC;AAC9C"}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
2
|
-
import { ConfigurationTarget } from 'common
|
2
|
+
import { ConfigurationTarget } from 'common';
|
3
3
|
export declare function generateApplicationRoleResource(roleName: string): URI;
|
4
4
|
export declare function generateRegisteredRoleURI(roleName: string, target?: ConfigurationTarget): URI;
|
package/lib/utils/roles-utils.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {URI}from'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';import {Schemas}from'@workbench-stack/core/lib/core/network.js';import {camelCase}from'lodash-es';import {ResourceAuthority}from'common
|
1
|
+
import {URI}from'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';import {Schemas}from'@workbench-stack/core/lib/core/network.js';import {camelCase}from'lodash-es';import {ResourceAuthority}from'common';function generateApplicationRoleResource(roleName) {
|
2
2
|
return URI.from({
|
3
3
|
scheme: Schemas.cdecode,
|
4
4
|
authority: 'applicationrole',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"roles-utils.js","sources":["../../src/utils/roles-utils.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"roles-utils.js","sources":["../../src/utils/roles-utils.ts"],"sourcesContent":[null],"names":[],"mappings":"+MAKM,SAAU,+BAA+B,CAAC,QAAgB,EAAA;SACrD,GAAA,CAAA,IAAI,CAAA;AACf,IAAC,MAAA,EAAA,OAAA,CAAA,OAAA;AAED,IAAA,SAAgB,EAAA,iBAAA;AAIZ,IAAA,IAAI,eAAkB,CAAA,QAAA,CAAA,CAAA,KAAA;IAEtB;AACI;AACI,SAAA,yBAA6B,CAAC,QAAA,EAAA,MAAgB,GAAA,CAAA,wCAAA;eACxC;AACV,EAAA,QAAA,MAAA;AACI,IAAA,KAAA,CAAA;eACM,GAAA,iBAAA,CAAA,eAAA;AACV,MAAA;AACI,IAAA,KAAA,CAAA;eACM,GAAA,iBAAA,CAAA,gBAAA;AACV,MAAA;AACI,IAAA,KAAA,CAAA;eACM,GAAA,iBAAA,CAAA,YAAA;AACV,MAAA;AACI,IAAA,KAAA,CAAA;MACP,SAAA,GAAA,iBAAA,CAAA,QAAA;MAEM;;YAEM,IAAA,KAAmB,CAAA,CAAA,gBAAmB,EAAA,MAAA,CAAA,CAAA,CAAA;AAC/C;AACH,EAAA,OAAE,GAAA,CAAA,IAAA,CAAA;AACP,IAAC,MAAA,EAAA,OAAA,CAAA,OAAA;;;;"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@adminide-stack/core",
|
3
|
-
"version": "10.2.1-alpha.
|
3
|
+
"version": "10.2.1-alpha.1",
|
4
4
|
"description": "AdminIDE core for higher packages to depend on",
|
5
5
|
"license": "UNLICENSED",
|
6
6
|
"author": "CDMBase LLC",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"dependencies": {
|
24
24
|
"@vscode-alt/monaco-editor": "^0.21.4",
|
25
25
|
"@workbench-stack/core": "3.9.7",
|
26
|
-
"common": "10.2.1-alpha.
|
26
|
+
"common": "10.2.1-alpha.1",
|
27
27
|
"query-string": "^9.0.0",
|
28
28
|
"sort-keys": "^5.0.0",
|
29
29
|
"vscode-uri": "^3.0.8"
|
@@ -38,5 +38,5 @@
|
|
38
38
|
"typescript": {
|
39
39
|
"definition": "lib/index.d.ts"
|
40
40
|
},
|
41
|
-
"gitHead": "
|
41
|
+
"gitHead": "45478d608c46c011f89e86f51ada97629360de68"
|
42
42
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"team-member-status.js","sources":["../../src/enums/team-member-status.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,gBAAgB,EAAA;AAC1B,EAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAA;AACA,EAAA,gBAAA,CAAA,aAAA,CAAA,GAAA,aAAA;AACF,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,GAG3B,EAAA,CAAA,CAAA"}
|
package/lib/routes.json
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
[]
|