@adminide-stack/core 13.2.1-alpha.12 → 13.2.1-alpha.120
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/defaultIds.d.ts +3 -0
- package/lib/constants/defaultIds.js +5 -1
- package/lib/constants/defaultIds.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/modules/account-api/enums/index.d.ts +80 -64
- package/lib/modules/account-api/enums/index.js +98 -70
- package/lib/modules/account-api/enums/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export declare const DEFAULT_APP_TENANT_ID = "550e8400-e29b-41d4-a716-446655440000";
|
|
2
2
|
export declare const DEFAULT_APP_ID = "660e8400-e29b-41d4-a716-446655440001";
|
|
3
3
|
export declare const DEFAULT_ENVIRONMENT_TAG_TYPE_ID = "770e8400-e29b-41d4-a716-446655440002";
|
|
4
|
+
export declare const DEFAULT_PRODUCTION_TAG_ID = "aa0e8400-e29b-41d4-a716-446655440005";
|
|
5
|
+
export declare const DEFAULT_STAGING_TAG_ID = "bb0e8400-e29b-41d4-a716-446655440006";
|
|
6
|
+
export declare const DEFAULT_DEVELOPMENT_TAG_ID = "cc0e8400-e29b-41d4-a716-446655440007";
|
|
4
7
|
export declare const DEFAULT_SYSTEM_ACCOUNT_ID = "880e8400-e29b-41d4-a716-446655440003";
|
|
5
8
|
export declare const DEFAULT_SYSTEM_USERNAME = "system";
|
|
6
9
|
export declare const DEFAULT_SYSTEM_EMAIL = "system@adminide.com";
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
const DEFAULT_APP_TENANT_ID = '550e8400-e29b-41d4-a716-446655440000';
|
|
4
4
|
const DEFAULT_APP_ID = '660e8400-e29b-41d4-a716-446655440001';
|
|
5
5
|
const DEFAULT_ENVIRONMENT_TAG_TYPE_ID = '770e8400-e29b-41d4-a716-446655440002';
|
|
6
|
+
// Static environment tag IDs for root environment tags
|
|
7
|
+
const DEFAULT_PRODUCTION_TAG_ID = 'aa0e8400-e29b-41d4-a716-446655440005';
|
|
8
|
+
const DEFAULT_STAGING_TAG_ID = 'bb0e8400-e29b-41d4-a716-446655440006';
|
|
9
|
+
const DEFAULT_DEVELOPMENT_TAG_ID = 'cc0e8400-e29b-41d4-a716-446655440007';
|
|
6
10
|
// Static account IDs for system and anonymous users
|
|
7
11
|
// These accounts are created during migration and should never be deleted
|
|
8
12
|
const DEFAULT_SYSTEM_ACCOUNT_ID = '880e8400-e29b-41d4-a716-446655440003';
|
|
@@ -11,4 +15,4 @@ const DEFAULT_SYSTEM_EMAIL = 'system@adminide.com';
|
|
|
11
15
|
const DEFAULT_ANONYMOUS_ACCOUNT_ID = '990e8400-e29b-41d4-a716-446655440004';
|
|
12
16
|
const DEFAULT_ANONYMOUS_USERNAME = 'anonymous';
|
|
13
17
|
const DEFAULT_ANONYMOUS_EMAIL = 'anonymous@adminide.com';
|
|
14
|
-
const VAULT_DEFAULT_DIR = 'default';export{DEFAULT_ANONYMOUS_ACCOUNT_ID,DEFAULT_ANONYMOUS_EMAIL,DEFAULT_ANONYMOUS_USERNAME,DEFAULT_APP_ID,DEFAULT_APP_TENANT_ID,DEFAULT_ENVIRONMENT_TAG_TYPE_ID,DEFAULT_SYSTEM_ACCOUNT_ID,DEFAULT_SYSTEM_EMAIL,DEFAULT_SYSTEM_USERNAME,VAULT_DEFAULT_DIR};//# sourceMappingURL=defaultIds.js.map
|
|
18
|
+
const VAULT_DEFAULT_DIR = 'default';export{DEFAULT_ANONYMOUS_ACCOUNT_ID,DEFAULT_ANONYMOUS_EMAIL,DEFAULT_ANONYMOUS_USERNAME,DEFAULT_APP_ID,DEFAULT_APP_TENANT_ID,DEFAULT_DEVELOPMENT_TAG_ID,DEFAULT_ENVIRONMENT_TAG_TYPE_ID,DEFAULT_PRODUCTION_TAG_ID,DEFAULT_STAGING_TAG_ID,DEFAULT_SYSTEM_ACCOUNT_ID,DEFAULT_SYSTEM_EMAIL,DEFAULT_SYSTEM_USERNAME,VAULT_DEFAULT_DIR};//# sourceMappingURL=defaultIds.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultIds.js","sources":["../../src/constants/defaultIds.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACO,MAAM,qBAAqB,GAAG;AAE9B,MAAM,cAAc,GAAG;AAEvB,MAAM,+BAA+B,GAAG;AAE/C;AACA;AACO,MAAM,yBAAyB,GAAG;AAClC,MAAM,uBAAuB,GAAG;AAChC,MAAM,oBAAoB,GAAG;AAE7B,MAAM,4BAA4B,GAAG;AACrC,MAAM,0BAA0B,GAAG;AACnC,MAAM,uBAAuB,GAAG;AAEhC,MAAM,iBAAiB,GAAG"}
|
|
1
|
+
{"version":3,"file":"defaultIds.js","sources":["../../src/constants/defaultIds.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACO,MAAM,qBAAqB,GAAG;AAE9B,MAAM,cAAc,GAAG;AAEvB,MAAM,+BAA+B,GAAG;AAE/C;AACO,MAAM,yBAAyB,GAAG;AAClC,MAAM,sBAAsB,GAAG;AAC/B,MAAM,0BAA0B,GAAG;AAE1C;AACA;AACO,MAAM,yBAAyB,GAAG;AAClC,MAAM,uBAAuB,GAAG;AAChC,MAAM,oBAAoB,GAAG;AAE7B,MAAM,4BAA4B,GAAG;AACrC,MAAM,0BAA0B,GAAG;AACnC,MAAM,uBAAuB,GAAG;AAEhC,MAAM,iBAAiB,GAAG"}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{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_ANONYMOUS_ACCOUNT_ID,DEFAULT_ANONYMOUS_EMAIL,DEFAULT_ANONYMOUS_USERNAME,DEFAULT_APP_ID,DEFAULT_APP_TENANT_ID,DEFAULT_ENVIRONMENT_TAG_TYPE_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,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{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{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{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_ANONYMOUS_ACCOUNT_ID,DEFAULT_ANONYMOUS_EMAIL,DEFAULT_ANONYMOUS_USERNAME,DEFAULT_APP_ID,DEFAULT_APP_TENANT_ID,DEFAULT_DEVELOPMENT_TAG_ID,DEFAULT_ENVIRONMENT_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,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{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{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,64 +1,80 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Auto-generated permission enum keys from GraphQL IPermissions type
|
|
3
|
+
* These keys are generated from common/src/generated/generated-models.ts
|
|
4
|
+
* and will automatically stay in sync when running yarn generateGraphql
|
|
5
|
+
*/
|
|
6
|
+
export declare const PreDefineAccountPermissions: {
|
|
7
|
+
readonly secureUser: "account.user.secure";
|
|
8
|
+
readonly guestUser: "account.user.guest";
|
|
9
|
+
readonly viewOrganization: "organization.view";
|
|
10
|
+
readonly createOrganization: "organization.create";
|
|
11
|
+
readonly editOrganization: "organization.edit";
|
|
12
|
+
readonly deleteOrganization: "organization.delete";
|
|
13
|
+
readonly manageOrganization: "organization.manage";
|
|
14
|
+
readonly inviteMember: "organization.inviteMember";
|
|
15
|
+
readonly viewMembers: "organization.members.view";
|
|
16
|
+
readonly createMembers: "organization.members.create";
|
|
17
|
+
readonly editMembers: "organization.members.edit";
|
|
18
|
+
readonly deleteMembers: "organization.members.delete";
|
|
19
|
+
readonly manageMembers: "organization.members.manage";
|
|
20
|
+
readonly viewRoles: "organization.roles.view";
|
|
21
|
+
readonly editRoles: "organization.roles.edit";
|
|
22
|
+
readonly viewPermissions: "organization.permissions.view";
|
|
23
|
+
readonly editPermissions: "organization.permissions.edit";
|
|
24
|
+
readonly viewPolicies: "organization.policies.view";
|
|
25
|
+
readonly editPolicies: "organization.policies.edit";
|
|
26
|
+
readonly viewSettings: "organization.settings.view";
|
|
27
|
+
readonly editSettings: "organization.settings.edit";
|
|
28
|
+
readonly inviteTeamMember: "organization.teams.inviteMember";
|
|
29
|
+
readonly viewTeams: "organization.teams.view";
|
|
30
|
+
readonly viewOthersTeam: "organization.teams.viewOthers";
|
|
31
|
+
readonly createTeams: "organization.teams.create";
|
|
32
|
+
readonly editTeams: "organization.teams.edit";
|
|
33
|
+
readonly deleteTeams: "organization.teams.delete";
|
|
34
|
+
readonly manageTeams: "organization.teams.manage";
|
|
35
|
+
readonly accessTeamDashboard: "organization.teams.dashboard.access";
|
|
36
|
+
readonly viewSelfProjects: "organization.projects.self.view";
|
|
37
|
+
readonly createSelfProjects: "organization.projects.self.create";
|
|
38
|
+
readonly editSelfProjects: "organization.projects.self.edit";
|
|
39
|
+
readonly deleteSelfProjects: "organization.projects.self.delete";
|
|
40
|
+
readonly manageSelfProjects: "organization.projects.self.manage";
|
|
41
|
+
readonly viewSelfProjectStatus: "organization.projects.status.self.view";
|
|
42
|
+
readonly viewOthersProjects: "organization.projects.others.view";
|
|
43
|
+
readonly createOthersProjects: "organization.projects.others.create";
|
|
44
|
+
readonly editOthersProjects: "organization.projects.others.edit";
|
|
45
|
+
readonly deleteOthersProjects: "organization.projects.others.delete";
|
|
46
|
+
readonly manageOthersProjects: "organization.projects.others.manage";
|
|
47
|
+
readonly viewOthersProjectStatus: "organization.projects.status.others.view";
|
|
48
|
+
readonly viewSelfClients: "organization.clients.self.view";
|
|
49
|
+
readonly createSelfClients: "organization.clients.self.create";
|
|
50
|
+
readonly editSelfClients: "organization.clients.self.edit";
|
|
51
|
+
readonly deleteSelfClients: "organization.clients.self.delete";
|
|
52
|
+
readonly manageSelfClients: "organization.clients.self.manage";
|
|
53
|
+
readonly viewOthersClients: "organization.clients.others.view";
|
|
54
|
+
readonly createOthersClients: "organization.clients.others.create";
|
|
55
|
+
readonly editOthersClients: "organization.clients.others.edit";
|
|
56
|
+
readonly deleteOthersClients: "organization.clients.others.delete";
|
|
57
|
+
readonly manageOthersClients: "organization.clients.others.manage";
|
|
58
|
+
readonly viewTasks: "organization.tasks.view";
|
|
59
|
+
readonly createTasks: "organization.tasks.create";
|
|
60
|
+
readonly editTasks: "organization.tasks.edit";
|
|
61
|
+
readonly deleteTasks: "organization.tasks.delete";
|
|
62
|
+
readonly manageTasks: "organization.tasks.manage";
|
|
63
|
+
readonly viewTags: "organization.tags.view";
|
|
64
|
+
readonly createTags: "organization.tags.create";
|
|
65
|
+
readonly editTags: "organization.tags.edit";
|
|
66
|
+
readonly deleteTags: "organization.tags.delete";
|
|
67
|
+
readonly manageTags: "organization.tags.manage";
|
|
68
|
+
readonly approveExtensions: "organization.extensions.approve";
|
|
69
|
+
readonly rejectExtensions: "organization.extensions.reject";
|
|
70
|
+
readonly blockExtensions: "organization.extensions.block";
|
|
71
|
+
readonly viewReports: "organization.reports.view";
|
|
72
|
+
readonly viewGlobalMarketplace: "marketplace.global.view";
|
|
73
|
+
readonly installGlobalExtensions: "marketplace.global.extensions.install";
|
|
74
|
+
readonly uninstallGlobalExtensions: "marketplace.global.extensions.uninstall";
|
|
75
|
+
readonly manageGlobalExtensions: "marketplace.global.extensions.manage";
|
|
76
|
+
readonly publishGlobalExtensions: "marketplace.global.extensions.publish";
|
|
77
|
+
readonly approveGlobalExtensions: "marketplace.global.extensions.approve";
|
|
78
|
+
readonly rejectGlobalExtensions: "marketplace.global.extensions.reject";
|
|
79
|
+
};
|
|
80
|
+
export type PreDefineAccountPermissions = (typeof PreDefineAccountPermissions)[keyof typeof PreDefineAccountPermissions];
|
|
@@ -1,70 +1,98 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
//
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Auto-generated permission enum keys from GraphQL IPermissions type
|
|
3
|
+
* These keys are generated from common/src/generated/generated-models.ts
|
|
4
|
+
* and will automatically stay in sync when running yarn generateGraphql
|
|
5
|
+
*/
|
|
6
|
+
// Re-export the flattened permission keys as a constant object
|
|
7
|
+
// This provides the same API as the previous enum but stays in sync with GraphQL schema
|
|
8
|
+
const PreDefineAccountPermissions = {
|
|
9
|
+
// Account User
|
|
10
|
+
secureUser: 'account.user.secure',
|
|
11
|
+
guestUser: 'account.user.guest',
|
|
12
|
+
// Organization
|
|
13
|
+
viewOrganization: 'organization.view',
|
|
14
|
+
createOrganization: 'organization.create',
|
|
15
|
+
editOrganization: 'organization.edit',
|
|
16
|
+
deleteOrganization: 'organization.delete',
|
|
17
|
+
manageOrganization: 'organization.manage',
|
|
18
|
+
inviteMember: 'organization.inviteMember',
|
|
19
|
+
// Members
|
|
20
|
+
viewMembers: 'organization.members.view',
|
|
21
|
+
createMembers: 'organization.members.create',
|
|
22
|
+
editMembers: 'organization.members.edit',
|
|
23
|
+
deleteMembers: 'organization.members.delete',
|
|
24
|
+
manageMembers: 'organization.members.manage',
|
|
25
|
+
// Roles
|
|
26
|
+
viewRoles: 'organization.roles.view',
|
|
27
|
+
editRoles: 'organization.roles.edit',
|
|
28
|
+
// Permissions
|
|
29
|
+
viewPermissions: 'organization.permissions.view',
|
|
30
|
+
editPermissions: 'organization.permissions.edit',
|
|
31
|
+
// Policies
|
|
32
|
+
viewPolicies: 'organization.policies.view',
|
|
33
|
+
editPolicies: 'organization.policies.edit',
|
|
34
|
+
// Settings
|
|
35
|
+
viewSettings: 'organization.settings.view',
|
|
36
|
+
editSettings: 'organization.settings.edit',
|
|
37
|
+
// Teams
|
|
38
|
+
inviteTeamMember: 'organization.teams.inviteMember',
|
|
39
|
+
viewTeams: 'organization.teams.view',
|
|
40
|
+
viewOthersTeam: 'organization.teams.viewOthers',
|
|
41
|
+
createTeams: 'organization.teams.create',
|
|
42
|
+
editTeams: 'organization.teams.edit',
|
|
43
|
+
deleteTeams: 'organization.teams.delete',
|
|
44
|
+
manageTeams: 'organization.teams.manage',
|
|
45
|
+
accessTeamDashboard: 'organization.teams.dashboard.access',
|
|
46
|
+
// Projects - Self
|
|
47
|
+
viewSelfProjects: 'organization.projects.self.view',
|
|
48
|
+
createSelfProjects: 'organization.projects.self.create',
|
|
49
|
+
editSelfProjects: 'organization.projects.self.edit',
|
|
50
|
+
deleteSelfProjects: 'organization.projects.self.delete',
|
|
51
|
+
manageSelfProjects: 'organization.projects.self.manage',
|
|
52
|
+
viewSelfProjectStatus: 'organization.projects.status.self.view',
|
|
53
|
+
// Projects - Others
|
|
54
|
+
viewOthersProjects: 'organization.projects.others.view',
|
|
55
|
+
createOthersProjects: 'organization.projects.others.create',
|
|
56
|
+
editOthersProjects: 'organization.projects.others.edit',
|
|
57
|
+
deleteOthersProjects: 'organization.projects.others.delete',
|
|
58
|
+
manageOthersProjects: 'organization.projects.others.manage',
|
|
59
|
+
viewOthersProjectStatus: 'organization.projects.status.others.view',
|
|
60
|
+
// Clients - Self
|
|
61
|
+
viewSelfClients: 'organization.clients.self.view',
|
|
62
|
+
createSelfClients: 'organization.clients.self.create',
|
|
63
|
+
editSelfClients: 'organization.clients.self.edit',
|
|
64
|
+
deleteSelfClients: 'organization.clients.self.delete',
|
|
65
|
+
manageSelfClients: 'organization.clients.self.manage',
|
|
66
|
+
// Clients - Others
|
|
67
|
+
viewOthersClients: 'organization.clients.others.view',
|
|
68
|
+
createOthersClients: 'organization.clients.others.create',
|
|
69
|
+
editOthersClients: 'organization.clients.others.edit',
|
|
70
|
+
deleteOthersClients: 'organization.clients.others.delete',
|
|
71
|
+
manageOthersClients: 'organization.clients.others.manage',
|
|
72
|
+
// Tasks
|
|
73
|
+
viewTasks: 'organization.tasks.view',
|
|
74
|
+
createTasks: 'organization.tasks.create',
|
|
75
|
+
editTasks: 'organization.tasks.edit',
|
|
76
|
+
deleteTasks: 'organization.tasks.delete',
|
|
77
|
+
manageTasks: 'organization.tasks.manage',
|
|
78
|
+
// Tags
|
|
79
|
+
viewTags: 'organization.tags.view',
|
|
80
|
+
createTags: 'organization.tags.create',
|
|
81
|
+
editTags: 'organization.tags.edit',
|
|
82
|
+
deleteTags: 'organization.tags.delete',
|
|
83
|
+
manageTags: 'organization.tags.manage',
|
|
84
|
+
// Extensions (Organization-level)
|
|
85
|
+
approveExtensions: 'organization.extensions.approve',
|
|
86
|
+
rejectExtensions: 'organization.extensions.reject',
|
|
87
|
+
blockExtensions: 'organization.extensions.block',
|
|
88
|
+
// Reports
|
|
89
|
+
viewReports: 'organization.reports.view',
|
|
90
|
+
// Marketplace (Application-level) - Auto-generated from GraphQL schema
|
|
91
|
+
viewGlobalMarketplace: 'marketplace.global.view',
|
|
92
|
+
installGlobalExtensions: 'marketplace.global.extensions.install',
|
|
93
|
+
uninstallGlobalExtensions: 'marketplace.global.extensions.uninstall',
|
|
94
|
+
manageGlobalExtensions: 'marketplace.global.extensions.manage',
|
|
95
|
+
publishGlobalExtensions: 'marketplace.global.extensions.publish',
|
|
96
|
+
approveGlobalExtensions: 'marketplace.global.extensions.approve',
|
|
97
|
+
rejectGlobalExtensions: 'marketplace.global.extensions.reject'
|
|
98
|
+
};export{PreDefineAccountPermissions};//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/modules/account-api/enums/index.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/modules/account-api/enums/index.ts"],"sourcesContent":[null],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminide-stack/core",
|
|
3
|
-
"version": "13.2.1-alpha.
|
|
3
|
+
"version": "13.2.1-alpha.120",
|
|
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.2.1-alpha.
|
|
33
|
+
"common": "13.2.1-alpha.120"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@common-stack/server-core": ">=0.5.21",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"typescript": {
|
|
40
40
|
"definition": "lib/index.d.ts"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "0a95becdb8f79b37ab8799a24c77bb5a90092da7"
|
|
43
43
|
}
|