@adminide-stack/core
Advanced tools
Comparing version 9.2.1-alpha.16 to 9.2.1-alpha.19
@@ -1,1 +0,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{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{ClientTypes,CommonTypes,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{AcceptOrganizationInvitationDocument,AccountBillingPreferencesFragmentDoc,AccountOnBoardingDocument,AddContributionRoleDocument,AddResourceToContextDocument,AddTeamMembersDocument,AllContextFragmentDoc,ChangeMemberRoleDocument,ChangeOrgMemberRoleDocument,ChangeOrganizationDocument,ConfigurationFragmentDoc,ConfigurationModelFragmentDoc,ConfigurationUpdateEventFragmentDoc,ContextConfigurationFragmentDoc,CreateOrganizationDocument,CreateTeamDocument,DeclineOrganizationInvitationDocument,DecodeOrganizationInvitationDocument,DecodeOrganizationSharedTokenDocument,DefaultContextFragmentDoc,DefaultResolveSettingsDocument,DefaultSettingFragmentDoc,DefaultSettingsDocument,DeleteUserAccountDocument,FilterIntegrationConfigurationDocument,GetAccountsApplicationPoliciesDocument,GetAccountsDocument,GetAccountsViewerSettingsDocument,GetAllCountriesDocument,GetApplicationPolicyDocument,GetApplicationRoleDocument,GetConfigurationDataDocument,GetConfigurationTargetDocument,GetContextDataDocument,GetContextPropertyDocument,GetContributionRolesDocument,GetCurrentPagePermissionsDocument,GetDefaultApplicationPermissionsDocument,GetDefaultPermissionsDocument,GetDefaultPolicySettingsDocument,GetDefaultRoleDocument,GetManageableOrganizationsDocument,GetOrgConfigurationDocument,GetOrgContextDocument,GetOrgInvitationMembersDocument,GetOrgMembersWithRolesDocument,GetOrgMembersWithRolesUnsecuredDocument,GetOrgNameFromContextDocument,GetOrgPolicyDocument,GetOrgRoleDocument,GetOrgTeamInvitationsDocument,GetOrgUserDocument,GetOrgWithResourcesConfigurationDocument,GetOrgWithResourcesPolicyDocument,GetOrgWithResourcesRoleDocument,GetOrganizationInvitationDocument,GetOrganizationMembersDocument,GetOrganizationMembersWithNameDocument,GetOrganizationTeamsDocument,GetResourcesConfigurationDocument,GetRoleDocument,GetTeamByNameDocument,GetTeamContextDocument,GetTeamDocument,GetTeamNameFromContextDocument,GetUserAccessRoleDocument,GetUserAccountByAuth0IdDocument,GetUserAccountDocument,GetUserConfigurationDocument,GetUserOrganizationsDocument,GetUserOrganizationsListDocument,GetUserOrganizationsWithRoleDocument,GetUserRoleDocument,GetUserTokenDetailsDocument,GetUserWithDefaultConfigurationDocument,GetUsersDocument,GetViewerPermissionsDocument,GetViewerSettingsDocument,IAccountServiceAction,IApplicationBillingPlanPolicy,IApplicationRoles,IAuthErrorCodes,IAuthStrategyEnum,IClientCacheTypeNames,IClientContainerService,IClientTypes,IConfigCollectionName,IConfigFragmentName,IConfigurationContributionNames,IConfigurationServiceAction,IContextServiceAction,IDeviceInfoPlatform,IEditPresentationTypes,IFileRefType,IGlobalCurrencies,IGlobalLanguages,IIntegrationWorkflowServiceAction,IInviteStatus,IMailTemplateId,IMenuPosition,IMoleculerCronServiceName,IMoleculerServiceName,IOrgUserRole,IOrgainizationInvitationRole,IOrganizationContextPubSubEvents,IOrganizationServiceAction,IPermissionAction,IPermissionResource,IPermissionType,IPortalLanguage,IPreDefinedRole,IPreferenceProjectIntegrationStatus,IRegistryExtensions,IResourceAuthority,IRole,IRouteParams,ISettingValueType,ISortEnum,ITeamServiceAction,ITokenTypesEnum,IUserBroadcasterAction,IUserOrderBy,IUserServiceAction,IVisibility,InitializeOrgNameInContextDocument,InitializeTeamInContextDocument,InitiateConfigurationValueDocument,MachineConfigurationFragmentDoc,OpenPreferencesSettingsDocument,OrgContextFragmentDoc,OrgNameInContextFragmentDoc,OrgResourceContextFragmentDoc,OrgUserFragmentDoc,OrgUserIdContextFragmentDoc,OrganizationDataFragmentDoc,OrganizationResourceContextDocument,OrganizationUserFragmentDoc,OrganizationsDocument,OverWriteRoleValueFragmentDoc,ReassignConfigurationDocument,RegisterAccountUserDocument,RemoveOrgMemberDocument,RemoveOrganizationDocument,RemoveTeamDocument,RemoveTeamMemberDocument,ResendOrganizationInvitationDocument,ResetUserPasswordDocument,ResolveConfigurationDocument,ResourceDataFragmentDoc,ResourceUserRoleFragmentDoc,RoleTargetFragmentDoc,SendEmailVerificationDocument,SendOrganizationInvitationDocument,SendPhoneOtpDocument,SendUserPasswordResetEmailDocument,SubscribeToConfigurationUpdateDocument,SubscribeToOrganizationContextDocument,SubscribeToPermissionUpdateDocument,SubscribeToPolicyUpdateDocument,TeamContextFragmentDoc,TeamDocument,TeamNameInContextFragmentDoc,TeamWithOrgOnContextFragmentDoc,TeamsDocument,UpdateConfigurationDocument,UpdateConfigurationValueByUriDocument,UpdateConfigurationValueDocument,UpdateOrgMemberTeamsDocument,UpdateOrganizationContextAddResourcesDocument,UpdateOrganizationContextRemoveResourcesDocument,UpdateOrganizationContextUpdateResourcesDocument,UpdateOrganizationDocument,UpdatePolicyValueDocument,UpdateRoleValueDocument,UpdateTeamConfigurationDocument,UpdateUserAccountAliasesDocument,UpdateUserAccountDocument,UserCreationEventFragmentDoc,UserOrgContextFragmentDoc,ValidatePasswordResetOtpDocument,ValidateUserEmailVerificationDocument,VerifyPhoneOtpDocument,ViewerSettingsDocument,useAcceptOrganizationInvitationMutation,useAccountOnBoardingMutation,useAddContributionRoleMutation,useAddResourceToContextMutation,useAddTeamMembersMutation,useChangeMemberRoleMutation,useChangeOrgMemberRoleMutation,useChangeOrganizationMutation,useCreateOrganizationMutation,useCreateTeamMutation,useDeclineOrganizationInvitationMutation,useDecodeOrganizationInvitationLazyQuery,useDecodeOrganizationInvitationQuery,useDecodeOrganizationInvitationSuspenseQuery,useDecodeOrganizationSharedTokenLazyQuery,useDecodeOrganizationSharedTokenQuery,useDecodeOrganizationSharedTokenSuspenseQuery,useDefaultResolveSettingsLazyQuery,useDefaultResolveSettingsQuery,useDefaultResolveSettingsSuspenseQuery,useDefaultSettingsLazyQuery,useDefaultSettingsQuery,useDefaultSettingsSuspenseQuery,useDeleteUserAccountMutation,useFilterIntegrationConfigurationLazyQuery,useFilterIntegrationConfigurationQuery,useFilterIntegrationConfigurationSuspenseQuery,useGetAccountsApplicationPoliciesLazyQuery,useGetAccountsApplicationPoliciesQuery,useGetAccountsApplicationPoliciesSuspenseQuery,useGetAccountsLazyQuery,useGetAccountsQuery,useGetAccountsSuspenseQuery,useGetAccountsViewerSettingsLazyQuery,useGetAccountsViewerSettingsQuery,useGetAccountsViewerSettingsSuspenseQuery,useGetAllCountriesLazyQuery,useGetAllCountriesQuery,useGetAllCountriesSuspenseQuery,useGetApplicationPolicyLazyQuery,useGetApplicationPolicyQuery,useGetApplicationPolicySuspenseQuery,useGetApplicationRoleLazyQuery,useGetApplicationRoleQuery,useGetApplicationRoleSuspenseQuery,useGetConfigurationDataLazyQuery,useGetConfigurationDataQuery,useGetConfigurationDataSuspenseQuery,useGetConfigurationTargetLazyQuery,useGetConfigurationTargetQuery,useGetConfigurationTargetSuspenseQuery,useGetContextDataLazyQuery,useGetContextDataQuery,useGetContextDataSuspenseQuery,useGetContextPropertyLazyQuery,useGetContextPropertyQuery,useGetContextPropertySuspenseQuery,useGetContributionRolesLazyQuery,useGetContributionRolesQuery,useGetContributionRolesSuspenseQuery,useGetCurrentPagePermissionsLazyQuery,useGetCurrentPagePermissionsQuery,useGetCurrentPagePermissionsSuspenseQuery,useGetDefaultApplicationPermissionsLazyQuery,useGetDefaultApplicationPermissionsQuery,useGetDefaultApplicationPermissionsSuspenseQuery,useGetDefaultPermissionsLazyQuery,useGetDefaultPermissionsQuery,useGetDefaultPermissionsSuspenseQuery,useGetDefaultPolicySettingsLazyQuery,useGetDefaultPolicySettingsQuery,useGetDefaultPolicySettingsSuspenseQuery,useGetDefaultRoleLazyQuery,useGetDefaultRoleQuery,useGetDefaultRoleSuspenseQuery,useGetManageableOrganizationsLazyQuery,useGetManageableOrganizationsQuery,useGetManageableOrganizationsSuspenseQuery,useGetOrgConfigurationLazyQuery,useGetOrgConfigurationQuery,useGetOrgConfigurationSuspenseQuery,useGetOrgContextLazyQuery,useGetOrgContextQuery,useGetOrgContextSuspenseQuery,useGetOrgInvitationMembersLazyQuery,useGetOrgInvitationMembersQuery,useGetOrgInvitationMembersSuspenseQuery,useGetOrgMembersWithRolesLazyQuery,useGetOrgMembersWithRolesQuery,useGetOrgMembersWithRolesSuspenseQuery,useGetOrgMembersWithRolesUnsecuredLazyQuery,useGetOrgMembersWithRolesUnsecuredQuery,useGetOrgMembersWithRolesUnsecuredSuspenseQuery,useGetOrgNameFromContextLazyQuery,useGetOrgNameFromContextQuery,useGetOrgNameFromContextSuspenseQuery,useGetOrgPolicyLazyQuery,useGetOrgPolicyQuery,useGetOrgPolicySuspenseQuery,useGetOrgRoleLazyQuery,useGetOrgRoleQuery,useGetOrgRoleSuspenseQuery,useGetOrgTeamInvitationsLazyQuery,useGetOrgTeamInvitationsQuery,useGetOrgTeamInvitationsSuspenseQuery,useGetOrgUserLazyQuery,useGetOrgUserQuery,useGetOrgUserSuspenseQuery,useGetOrgWithResourcesConfigurationLazyQuery,useGetOrgWithResourcesConfigurationQuery,useGetOrgWithResourcesConfigurationSuspenseQuery,useGetOrgWithResourcesPolicyLazyQuery,useGetOrgWithResourcesPolicyQuery,useGetOrgWithResourcesPolicySuspenseQuery,useGetOrgWithResourcesRoleLazyQuery,useGetOrgWithResourcesRoleQuery,useGetOrgWithResourcesRoleSuspenseQuery,useGetOrganizationInvitationLazyQuery,useGetOrganizationInvitationQuery,useGetOrganizationInvitationSuspenseQuery,useGetOrganizationMembersLazyQuery,useGetOrganizationMembersQuery,useGetOrganizationMembersSuspenseQuery,useGetOrganizationMembersWithNameLazyQuery,useGetOrganizationMembersWithNameQuery,useGetOrganizationMembersWithNameSuspenseQuery,useGetOrganizationTeamsLazyQuery,useGetOrganizationTeamsQuery,useGetOrganizationTeamsSuspenseQuery,useGetResourcesConfigurationLazyQuery,useGetResourcesConfigurationQuery,useGetResourcesConfigurationSuspenseQuery,useGetRoleLazyQuery,useGetRoleQuery,useGetRoleSuspenseQuery,useGetTeamByNameLazyQuery,useGetTeamByNameQuery,useGetTeamByNameSuspenseQuery,useGetTeamContextLazyQuery,useGetTeamContextQuery,useGetTeamContextSuspenseQuery,useGetTeamLazyQuery,useGetTeamNameFromContextLazyQuery,useGetTeamNameFromContextQuery,useGetTeamNameFromContextSuspenseQuery,useGetTeamQuery,useGetTeamSuspenseQuery,useGetUserAccessRoleLazyQuery,useGetUserAccessRoleQuery,useGetUserAccessRoleSuspenseQuery,useGetUserAccountByAuth0IdLazyQuery,useGetUserAccountByAuth0IdQuery,useGetUserAccountByAuth0IdSuspenseQuery,useGetUserAccountLazyQuery,useGetUserAccountQuery,useGetUserAccountSuspenseQuery,useGetUserConfigurationLazyQuery,useGetUserConfigurationQuery,useGetUserConfigurationSuspenseQuery,useGetUserOrganizationsLazyQuery,useGetUserOrganizationsListLazyQuery,useGetUserOrganizationsListQuery,useGetUserOrganizationsListSuspenseQuery,useGetUserOrganizationsQuery,useGetUserOrganizationsSuspenseQuery,useGetUserOrganizationsWithRoleLazyQuery,useGetUserOrganizationsWithRoleQuery,useGetUserOrganizationsWithRoleSuspenseQuery,useGetUserRoleLazyQuery,useGetUserRoleQuery,useGetUserRoleSuspenseQuery,useGetUserTokenDetailsLazyQuery,useGetUserTokenDetailsQuery,useGetUserTokenDetailsSuspenseQuery,useGetUserWithDefaultConfigurationLazyQuery,useGetUserWithDefaultConfigurationQuery,useGetUserWithDefaultConfigurationSuspenseQuery,useGetUsersLazyQuery,useGetUsersQuery,useGetUsersSuspenseQuery,useGetViewerPermissionsLazyQuery,useGetViewerPermissionsQuery,useGetViewerPermissionsSuspenseQuery,useGetViewerSettingsLazyQuery,useGetViewerSettingsQuery,useGetViewerSettingsSuspenseQuery,useInitializeOrgNameInContextMutation,useInitializeTeamInContextMutation,useInitiateConfigurationValueMutation,useOpenPreferencesSettingsLazyQuery,useOpenPreferencesSettingsQuery,useOpenPreferencesSettingsSuspenseQuery,useOrganizationResourceContextLazyQuery,useOrganizationResourceContextQuery,useOrganizationResourceContextSuspenseQuery,useOrganizationsLazyQuery,useOrganizationsQuery,useOrganizationsSuspenseQuery,useReassignConfigurationMutation,useRegisterAccountUserMutation,useRemoveOrgMemberMutation,useRemoveOrganizationMutation,useRemoveTeamMemberMutation,useRemoveTeamMutation,useResendOrganizationInvitationMutation,useResetUserPasswordMutation,useResolveConfigurationLazyQuery,useResolveConfigurationQuery,useResolveConfigurationSuspenseQuery,useSendEmailVerificationMutation,useSendOrganizationInvitationMutation,useSendPhoneOtpMutation,useSendUserPasswordResetEmailMutation,useSubscribeToConfigurationUpdateSubscription,useSubscribeToOrganizationContextSubscription,useSubscribeToPermissionUpdateSubscription,useSubscribeToPolicyUpdateSubscription,useTeamLazyQuery,useTeamQuery,useTeamSuspenseQuery,useTeamsLazyQuery,useTeamsQuery,useTeamsSuspenseQuery,useUpdateConfigurationMutation,useUpdateConfigurationValueByUriMutation,useUpdateConfigurationValueMutation,useUpdateOrgMemberTeamsMutation,useUpdateOrganizationContextAddResourcesMutation,useUpdateOrganizationContextRemoveResourcesMutation,useUpdateOrganizationContextUpdateResourcesMutation,useUpdateOrganizationMutation,useUpdatePolicyValueMutation,useUpdateRoleValueMutation,useUpdateTeamConfigurationMutation,useUpdateUserAccountAliasesMutation,useUpdateUserAccountMutation,useValidatePasswordResetOtpMutation,useValidateUserEmailVerificationMutation,useVerifyPhoneOtpMutation,useViewerSettingsLazyQuery,useViewerSettingsQuery,useViewerSettingsSuspenseQuery}from'./interfaces/generated/generated-models.js';export{ConfigurationTarget,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{IPermissionBehavior}from'./interfaces/permissions.js';export{getFilteredRoutes,getFilteredTabs,getTtl}from'./utils/utils.js';export{convertToResourceUri,resourcePath}from'./utils/uri.js';export{generateApplicationUri,generateMachineUri,generateOrgUri,generateProxyUserUri,generateResourceUri,generateUri,generateUserUri}from'./utils/generate-uri.js';export{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}from'./utils/flatten-utils.js';export{generateUserAlias}from'./utils/generateUserAlias.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{AuthErrors,AuthErrorsMessage}from'./errors/auth-error-messages.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{IPreDefineAccountPermissions}from'./modules/account-api/enums/index.js';export{IBillingModules,IPreDefineBillingPermissions}from'./modules/billing-api/enums/index.js';export{IPreDefineInboxPermissions}from'./modules/inbox/enums/index.js';export{IPermissionTypes}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{TeamMemberStatus}from'./enums/team-member-status.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 | ||
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{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{ClientTypes,CommonTypes,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{AcceptOrganizationInvitationDocument,AccountBillingPreferencesFragmentDoc,AccountOnBoardingDocument,AddContributionRoleDocument,AddResourceToContextDocument,AddTeamMembersDocument,AllContextFragmentDoc,ChangeMemberRoleDocument,ChangeOrgMemberRoleDocument,ChangeOrganizationDocument,ConfigurationFragmentDoc,ConfigurationModelFragmentDoc,ConfigurationUpdateEventFragmentDoc,ContextConfigurationFragmentDoc,CreateOrganizationDocument,CreateTeamDocument,DeclineOrganizationInvitationDocument,DecodeOrganizationInvitationDocument,DecodeOrganizationSharedTokenDocument,DefaultContextFragmentDoc,DefaultResolveSettingsDocument,DefaultSettingFragmentDoc,DefaultSettingsDocument,DeleteUserAccountDocument,FilterIntegrationConfigurationDocument,GetAccountsApplicationPoliciesDocument,GetAccountsDocument,GetAccountsViewerSettingsDocument,GetAllCountriesDocument,GetApplicationPolicyDocument,GetApplicationRoleDocument,GetConfigurationDataDocument,GetConfigurationTargetDocument,GetContextDataDocument,GetContextPropertyDocument,GetContributionRolesDocument,GetCurrentPagePermissionsDocument,GetDefaultApplicationPermissionsDocument,GetDefaultPermissionsDocument,GetDefaultPolicySettingsDocument,GetDefaultRoleDocument,GetManageableOrganizationsDocument,GetOrgConfigurationDocument,GetOrgContextDocument,GetOrgInvitationMembersDocument,GetOrgMembersWithRolesDocument,GetOrgMembersWithRolesUnsecuredDocument,GetOrgNameFromContextDocument,GetOrgPolicyDocument,GetOrgRoleDocument,GetOrgTeamInvitationsDocument,GetOrgUserDocument,GetOrgWithResourcesConfigurationDocument,GetOrgWithResourcesPolicyDocument,GetOrgWithResourcesRoleDocument,GetOrganizationInvitationDocument,GetOrganizationMembersDocument,GetOrganizationMembersWithNameDocument,GetOrganizationTeamsDocument,GetPageSettingsDocument,GetResourcesConfigurationDocument,GetRoleDocument,GetTeamByNameDocument,GetTeamContextDocument,GetTeamDocument,GetTeamNameFromContextDocument,GetUserAccessRoleDocument,GetUserAccountByAuth0IdDocument,GetUserAccountDocument,GetUserConfigurationDocument,GetUserOrganizationsDocument,GetUserOrganizationsListDocument,GetUserOrganizationsWithRoleDocument,GetUserRoleDocument,GetUserTokenDetailsDocument,GetUserWithDefaultConfigurationDocument,GetUsersDocument,GetViewerPermissionsDocument,GetViewerSettingsDocument,IAccountServiceAction,IApplicationBillingPlanPolicy,IApplicationRoles,IAuthErrorCodes,IAuthStrategyEnum,IClientCacheTypeNames,IClientContainerService,IClientTypes,IConfigCollectionName,IConfigFragmentName,IConfigurationContributionNames,IConfigurationServiceAction,IContextServiceAction,IDeviceInfoPlatform,IEditPresentationTypes,IFileRefType,IGlobalCurrencies,IGlobalLanguages,IIntegrationWorkflowServiceAction,IInviteStatus,IMailTemplateId,IMenuPosition,IMoleculerCronServiceName,IMoleculerServiceName,IOrgUserRole,IOrgainizationInvitationRole,IOrganizationContextPubSubEvents,IOrganizationServiceAction,IPermissionAction,IPermissionResource,IPermissionType,IPortalLanguage,IPreDefinedRole,IPreferenceProjectIntegrationStatus,IRegistryExtensions,IResourceAuthority,IRole,IRouteParams,ISettingValueType,ISortEnum,ITeamServiceAction,ITokenTypesEnum,IUserBroadcasterAction,IUserOrderBy,IUserServiceAction,IVisibility,InitializeOrgNameInContextDocument,InitializeTeamInContextDocument,InitiateConfigurationValueDocument,MachineConfigurationFragmentDoc,OpenPreferencesSettingsDocument,OrgContextFragmentDoc,OrgNameInContextFragmentDoc,OrgResourceContextFragmentDoc,OrgUserFragmentDoc,OrgUserIdContextFragmentDoc,OrganizationDataFragmentDoc,OrganizationResourceContextDocument,OrganizationUserFragmentDoc,OrganizationsDocument,OverWriteRoleValueFragmentDoc,ReassignConfigurationDocument,RegisterAccountUserDocument,RemoveOrgMemberDocument,RemoveOrganizationDocument,RemoveTeamDocument,RemoveTeamMemberDocument,ResendOrganizationInvitationDocument,ResetUserPasswordDocument,ResolveConfigurationDocument,ResourceDataFragmentDoc,ResourceUserRoleFragmentDoc,RoleTargetFragmentDoc,SendEmailVerificationDocument,SendOrganizationInvitationDocument,SendPhoneOtpDocument,SendUserPasswordResetEmailDocument,SubscribeToConfigurationUpdateDocument,SubscribeToOrganizationContextDocument,SubscribeToPermissionUpdateDocument,SubscribeToPolicyUpdateDocument,TeamContextFragmentDoc,TeamDocument,TeamNameInContextFragmentDoc,TeamWithOrgOnContextFragmentDoc,TeamsDocument,UpdateConfigurationDocument,UpdateConfigurationValueByUriDocument,UpdateConfigurationValueDocument,UpdateOrgMemberTeamsDocument,UpdateOrganizationContextAddResourcesDocument,UpdateOrganizationContextRemoveResourcesDocument,UpdateOrganizationContextUpdateResourcesDocument,UpdateOrganizationDocument,UpdatePolicyValueDocument,UpdateRoleValueDocument,UpdateTeamConfigurationDocument,UpdateUserAccountAliasesDocument,UpdateUserAccountDocument,UserCreationEventFragmentDoc,UserOrgContextFragmentDoc,ValidatePasswordResetOtpDocument,ValidateUserEmailVerificationDocument,VerifyPhoneOtpDocument,ViewerSettingsDocument,WriteSettingsDocument,useAcceptOrganizationInvitationMutation,useAccountOnBoardingMutation,useAddContributionRoleMutation,useAddResourceToContextMutation,useAddTeamMembersMutation,useChangeMemberRoleMutation,useChangeOrgMemberRoleMutation,useChangeOrganizationMutation,useCreateOrganizationMutation,useCreateTeamMutation,useDeclineOrganizationInvitationMutation,useDecodeOrganizationInvitationLazyQuery,useDecodeOrganizationInvitationQuery,useDecodeOrganizationInvitationSuspenseQuery,useDecodeOrganizationSharedTokenLazyQuery,useDecodeOrganizationSharedTokenQuery,useDecodeOrganizationSharedTokenSuspenseQuery,useDefaultResolveSettingsLazyQuery,useDefaultResolveSettingsQuery,useDefaultResolveSettingsSuspenseQuery,useDefaultSettingsLazyQuery,useDefaultSettingsQuery,useDefaultSettingsSuspenseQuery,useDeleteUserAccountMutation,useFilterIntegrationConfigurationLazyQuery,useFilterIntegrationConfigurationQuery,useFilterIntegrationConfigurationSuspenseQuery,useGetAccountsApplicationPoliciesLazyQuery,useGetAccountsApplicationPoliciesQuery,useGetAccountsApplicationPoliciesSuspenseQuery,useGetAccountsLazyQuery,useGetAccountsQuery,useGetAccountsSuspenseQuery,useGetAccountsViewerSettingsLazyQuery,useGetAccountsViewerSettingsQuery,useGetAccountsViewerSettingsSuspenseQuery,useGetAllCountriesLazyQuery,useGetAllCountriesQuery,useGetAllCountriesSuspenseQuery,useGetApplicationPolicyLazyQuery,useGetApplicationPolicyQuery,useGetApplicationPolicySuspenseQuery,useGetApplicationRoleLazyQuery,useGetApplicationRoleQuery,useGetApplicationRoleSuspenseQuery,useGetConfigurationDataLazyQuery,useGetConfigurationDataQuery,useGetConfigurationDataSuspenseQuery,useGetConfigurationTargetLazyQuery,useGetConfigurationTargetQuery,useGetConfigurationTargetSuspenseQuery,useGetContextDataLazyQuery,useGetContextDataQuery,useGetContextDataSuspenseQuery,useGetContextPropertyLazyQuery,useGetContextPropertyQuery,useGetContextPropertySuspenseQuery,useGetContributionRolesLazyQuery,useGetContributionRolesQuery,useGetContributionRolesSuspenseQuery,useGetCurrentPagePermissionsLazyQuery,useGetCurrentPagePermissionsQuery,useGetCurrentPagePermissionsSuspenseQuery,useGetDefaultApplicationPermissionsLazyQuery,useGetDefaultApplicationPermissionsQuery,useGetDefaultApplicationPermissionsSuspenseQuery,useGetDefaultPermissionsLazyQuery,useGetDefaultPermissionsQuery,useGetDefaultPermissionsSuspenseQuery,useGetDefaultPolicySettingsLazyQuery,useGetDefaultPolicySettingsQuery,useGetDefaultPolicySettingsSuspenseQuery,useGetDefaultRoleLazyQuery,useGetDefaultRoleQuery,useGetDefaultRoleSuspenseQuery,useGetManageableOrganizationsLazyQuery,useGetManageableOrganizationsQuery,useGetManageableOrganizationsSuspenseQuery,useGetOrgConfigurationLazyQuery,useGetOrgConfigurationQuery,useGetOrgConfigurationSuspenseQuery,useGetOrgContextLazyQuery,useGetOrgContextQuery,useGetOrgContextSuspenseQuery,useGetOrgInvitationMembersLazyQuery,useGetOrgInvitationMembersQuery,useGetOrgInvitationMembersSuspenseQuery,useGetOrgMembersWithRolesLazyQuery,useGetOrgMembersWithRolesQuery,useGetOrgMembersWithRolesSuspenseQuery,useGetOrgMembersWithRolesUnsecuredLazyQuery,useGetOrgMembersWithRolesUnsecuredQuery,useGetOrgMembersWithRolesUnsecuredSuspenseQuery,useGetOrgNameFromContextLazyQuery,useGetOrgNameFromContextQuery,useGetOrgNameFromContextSuspenseQuery,useGetOrgPolicyLazyQuery,useGetOrgPolicyQuery,useGetOrgPolicySuspenseQuery,useGetOrgRoleLazyQuery,useGetOrgRoleQuery,useGetOrgRoleSuspenseQuery,useGetOrgTeamInvitationsLazyQuery,useGetOrgTeamInvitationsQuery,useGetOrgTeamInvitationsSuspenseQuery,useGetOrgUserLazyQuery,useGetOrgUserQuery,useGetOrgUserSuspenseQuery,useGetOrgWithResourcesConfigurationLazyQuery,useGetOrgWithResourcesConfigurationQuery,useGetOrgWithResourcesConfigurationSuspenseQuery,useGetOrgWithResourcesPolicyLazyQuery,useGetOrgWithResourcesPolicyQuery,useGetOrgWithResourcesPolicySuspenseQuery,useGetOrgWithResourcesRoleLazyQuery,useGetOrgWithResourcesRoleQuery,useGetOrgWithResourcesRoleSuspenseQuery,useGetOrganizationInvitationLazyQuery,useGetOrganizationInvitationQuery,useGetOrganizationInvitationSuspenseQuery,useGetOrganizationMembersLazyQuery,useGetOrganizationMembersQuery,useGetOrganizationMembersSuspenseQuery,useGetOrganizationMembersWithNameLazyQuery,useGetOrganizationMembersWithNameQuery,useGetOrganizationMembersWithNameSuspenseQuery,useGetOrganizationTeamsLazyQuery,useGetOrganizationTeamsQuery,useGetOrganizationTeamsSuspenseQuery,useGetPageSettingsLazyQuery,useGetPageSettingsQuery,useGetPageSettingsSuspenseQuery,useGetResourcesConfigurationLazyQuery,useGetResourcesConfigurationQuery,useGetResourcesConfigurationSuspenseQuery,useGetRoleLazyQuery,useGetRoleQuery,useGetRoleSuspenseQuery,useGetTeamByNameLazyQuery,useGetTeamByNameQuery,useGetTeamByNameSuspenseQuery,useGetTeamContextLazyQuery,useGetTeamContextQuery,useGetTeamContextSuspenseQuery,useGetTeamLazyQuery,useGetTeamNameFromContextLazyQuery,useGetTeamNameFromContextQuery,useGetTeamNameFromContextSuspenseQuery,useGetTeamQuery,useGetTeamSuspenseQuery,useGetUserAccessRoleLazyQuery,useGetUserAccessRoleQuery,useGetUserAccessRoleSuspenseQuery,useGetUserAccountByAuth0IdLazyQuery,useGetUserAccountByAuth0IdQuery,useGetUserAccountByAuth0IdSuspenseQuery,useGetUserAccountLazyQuery,useGetUserAccountQuery,useGetUserAccountSuspenseQuery,useGetUserConfigurationLazyQuery,useGetUserConfigurationQuery,useGetUserConfigurationSuspenseQuery,useGetUserOrganizationsLazyQuery,useGetUserOrganizationsListLazyQuery,useGetUserOrganizationsListQuery,useGetUserOrganizationsListSuspenseQuery,useGetUserOrganizationsQuery,useGetUserOrganizationsSuspenseQuery,useGetUserOrganizationsWithRoleLazyQuery,useGetUserOrganizationsWithRoleQuery,useGetUserOrganizationsWithRoleSuspenseQuery,useGetUserRoleLazyQuery,useGetUserRoleQuery,useGetUserRoleSuspenseQuery,useGetUserTokenDetailsLazyQuery,useGetUserTokenDetailsQuery,useGetUserTokenDetailsSuspenseQuery,useGetUserWithDefaultConfigurationLazyQuery,useGetUserWithDefaultConfigurationQuery,useGetUserWithDefaultConfigurationSuspenseQuery,useGetUsersLazyQuery,useGetUsersQuery,useGetUsersSuspenseQuery,useGetViewerPermissionsLazyQuery,useGetViewerPermissionsQuery,useGetViewerPermissionsSuspenseQuery,useGetViewerSettingsLazyQuery,useGetViewerSettingsQuery,useGetViewerSettingsSuspenseQuery,useInitializeOrgNameInContextMutation,useInitializeTeamInContextMutation,useInitiateConfigurationValueMutation,useOpenPreferencesSettingsLazyQuery,useOpenPreferencesSettingsQuery,useOpenPreferencesSettingsSuspenseQuery,useOrganizationResourceContextLazyQuery,useOrganizationResourceContextQuery,useOrganizationResourceContextSuspenseQuery,useOrganizationsLazyQuery,useOrganizationsQuery,useOrganizationsSuspenseQuery,useReassignConfigurationMutation,useRegisterAccountUserMutation,useRemoveOrgMemberMutation,useRemoveOrganizationMutation,useRemoveTeamMemberMutation,useRemoveTeamMutation,useResendOrganizationInvitationMutation,useResetUserPasswordMutation,useResolveConfigurationLazyQuery,useResolveConfigurationQuery,useResolveConfigurationSuspenseQuery,useSendEmailVerificationMutation,useSendOrganizationInvitationMutation,useSendPhoneOtpMutation,useSendUserPasswordResetEmailMutation,useSubscribeToConfigurationUpdateSubscription,useSubscribeToOrganizationContextSubscription,useSubscribeToPermissionUpdateSubscription,useSubscribeToPolicyUpdateSubscription,useTeamLazyQuery,useTeamQuery,useTeamSuspenseQuery,useTeamsLazyQuery,useTeamsQuery,useTeamsSuspenseQuery,useUpdateConfigurationMutation,useUpdateConfigurationValueByUriMutation,useUpdateConfigurationValueMutation,useUpdateOrgMemberTeamsMutation,useUpdateOrganizationContextAddResourcesMutation,useUpdateOrganizationContextRemoveResourcesMutation,useUpdateOrganizationContextUpdateResourcesMutation,useUpdateOrganizationMutation,useUpdatePolicyValueMutation,useUpdateRoleValueMutation,useUpdateTeamConfigurationMutation,useUpdateUserAccountAliasesMutation,useUpdateUserAccountMutation,useValidatePasswordResetOtpMutation,useValidateUserEmailVerificationMutation,useVerifyPhoneOtpMutation,useViewerSettingsLazyQuery,useViewerSettingsQuery,useViewerSettingsSuspenseQuery,useWriteSettingsMutation}from'./interfaces/generated/generated-models.js';export{ConfigurationTarget,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{IPermissionBehavior}from'./interfaces/permissions.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{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}from'./utils/flatten-utils.js';export{generateUserAlias}from'./utils/generateUserAlias.js';export{getLogger}from'./utils/getLogger.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{AuthErrors,AuthErrorsMessage}from'./errors/auth-error-messages.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{IPreDefineAccountPermissions}from'./modules/account-api/enums/index.js';export{IBillingModules,IPreDefineBillingPermissions}from'./modules/billing-api/enums/index.js';export{IPreDefineInboxPermissions}from'./modules/inbox/enums/index.js';export{IPermissionTypes}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{TeamMemberStatus}from'./enums/team-member-status.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 |
@@ -1,2 +0,2 @@ | ||
export { IContextKey } from '@vscode-alt/monaco-editor/esm/vs/platform/contextkey/common/contextkey'; | ||
export { IContextKeyService } from '@workbench-stack/core/lib/interfaces/context-key-service.js'; | ||
export type { IContextKey } from '@vscode-alt/monaco-editor/esm/vs/platform/contextkey/common/contextkey'; | ||
export type { IContextKeyService } from '@workbench-stack/core/lib/interfaces/context-key-service.js'; |
import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri'; | ||
import { ISettingsSubject, IViewerSettingsInput, IPreferenceRoleInput, IPermissionSubject, IViewerSettingsSubject, IPolicySubject, IViewerPoliciesInput } from './generated'; | ||
import { ISettingsSubject, IViewerSettingsInput, IPreferenceRoleInput, IPermissionSubject, IViewerSettingsSubject, IPolicySubject, IViewerPoliciesInput, IConfigurationOverrides } from './generated'; | ||
import { ConfigurationTarget, IPreferencesInput, IPreferencesOpenOptionsInput as IPreferencesOpenOptions, IContributionSettings } from './generated'; | ||
@@ -19,2 +19,3 @@ export type IPrefFragment = { | ||
viewerPermissions<T = IPermissionSubject>(input: IPreferenceRoleInput, fragment?: IPrefFragment): Promise<T>; | ||
writeSettings(cdecodeUri: URI, settings: Record<string, any>, arg3: IConfigurationOverrides, arg4: ConfigurationTarget, donotNotifyError?: boolean): any; | ||
} | ||
@@ -21,0 +22,0 @@ export interface IPreferenceClientService { |
export { Extensions } from '@workbench-stack/core/lib/constants/extensions.js'; | ||
export { IRegistry } from '@workbench-stack/core/lib/interfaces/registry/registry.js'; | ||
export type { IRegistry } from '@workbench-stack/core/lib/interfaces/registry/registry.js'; |
@@ -116,6 +116,7 @@ import {__decorate,__param,__metadata}from'tslib';import {injectable,inject}from'inversify';import {ClientTypes}from'@common-stack/client-core';import {Disposable}from'@workbench-stack/core/lib/services/lifecycle/disposable.js';import {ResourceMap}from'@vscode-alt/monaco-editor/esm/vs/base/common/map.js';import {URI}from'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';import {Emitter}from'@vscode-alt/monaco-editor/esm/vs/base/common/event.js';import'../core/disposable.js';import'../core/event.js';import'@vscode-alt/monaco-editor/esm/vs/base/common/resources.js';import'@vscode-alt/monaco-editor/esm/vs/base/common/path.js';import {OrganizationConfiguration}from'../core/organization/configuration.js';import {isConfigurationOverrides}from'../core/configurations/helpers/configuration.js';import {ConfigurationModel}from'../core/configurations/models/ConfigurationModel.js';import'@vscode-alt/monaco-editor/esm/vs/base/common/types.js';import'@vscode-alt/monaco-editor/esm/vs/base/common/objects.js';import'@vscode-alt/monaco-editor/esm/vs/base/common/arrays.js';import'../constants/types.js';import'../constants/urls.js';import'../constants/routes.js';import {ConfigurationChangeEvent}from'../core/configurations/events/ConfigurationChangeEvent.js';var AbstractOrganizationConfigurationClientService_1; | ||
return this._configuration.organizationConfiguration.contents; | ||
default: | ||
return {}; | ||
} | ||
return {}; | ||
} | ||
}; | ||
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 |
@@ -6,6 +6,11 @@ import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri'; | ||
organization: string; | ||
project?: string; | ||
resourceGroup?: string; | ||
resourceType?: IConfigCollectionName; | ||
resourceId?: string; | ||
} | ||
export interface IAuthorityComponents { | ||
domain: string; | ||
region: string; | ||
bucketOrAppName: string; | ||
} | ||
export interface ICdecodeParsedUri { | ||
@@ -18,4 +23,4 @@ scheme: string; | ||
} | ||
export declare const generateCdecodeUri: (authority: string, params: ICdecodeURIPathSegments, query?: { | ||
[key: string]: any; | ||
export declare const generateCdecodeUri: (authority: string | IAuthorityComponents, params: ICdecodeURIPathSegments, query?: { | ||
[key: string]: string | number; | ||
}, fragment?: string) => URI; | ||
@@ -22,0 +27,0 @@ /** |
@@ -1,8 +0,49 @@ | ||
import {URI}from'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';import {Schemas}from'@workbench-stack/core/lib/core/network.js';import sortKeys from'sort-keys';import queryString from'query-string';import {IConfigCollectionName}from'../interfaces/generated/generated-models.js';import'../interfaces/configuration/configuration.js';import'../interfaces/organization/organization-context.js';import'@workbench-stack/core/lib/constants/extensions.js';import'@workbench-stack/core/lib/interfaces/lifecycle/lifecycle.js';import'../interfaces/permissions.js';const generateCdecodeUri = (authority, params, query = {}, fragment) => { | ||
import {URI}from'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';import {Schemas}from'@workbench-stack/core/lib/core/network.js';import sortKeys from'sort-keys';import queryString from'query-string';import {IConfigCollectionName}from'../interfaces/generated/generated-models.js';import'../interfaces/configuration/configuration.js';import'../interfaces/organization/organization-context.js';import'@workbench-stack/core/lib/constants/extensions.js';import'@workbench-stack/core/lib/interfaces/lifecycle/lifecycle.js';import'../interfaces/permissions.js';/* eslint-disable prefer-destructuring */ | ||
/* eslint-disable default-param-last */ | ||
const generateCdecodeUri = (authority, params, query = {}, fragment) => { | ||
let authorityString; | ||
// Determine if authority is a string or an object | ||
if (typeof authority === 'string') { | ||
authorityString = authority; | ||
} else { | ||
const { | ||
domain, | ||
region, | ||
bucketOrAppName | ||
} = authority; | ||
if (!domain || !region || !bucketOrAppName) { | ||
throw new Error('Authority object must include domain, region, and bucketOrAppName.'); | ||
} | ||
// Construct the authority string | ||
authorityString = `${bucketOrAppName}.${region}.${domain}`.toLowerCase(); | ||
} | ||
// Sort query parameters for consistent ordering | ||
const orderedParams = sortKeys(query ?? {}); | ||
const queryInString = queryString.stringify(orderedParams); | ||
const path = Object.entries(params ?? {}).filter(([key, value]) => key === 'organization' || value != null).reduce((acc, [, value]) => `${acc}${value ? `/${value}` : ''}`, ``); | ||
// Build the path from the provided parameters | ||
const pathSegments = []; | ||
// Organization is optional but reserved as the first path segment | ||
if (params.organization !== undefined && params.organization !== null && params.organization !== '') { | ||
pathSegments.push(params.organization); | ||
} else { | ||
const hasAdditionalSegments = params.resourceGroup && params.resourceGroup !== '' || params.resourceType && params.resourceType !== undefined && params.resourceType !== '' || params.resourceId && params.resourceId !== ''; | ||
if (hasAdditionalSegments) { | ||
// Add an empty string to represent the missing organization | ||
pathSegments.push(''); | ||
} | ||
} | ||
if (params.resourceGroup !== undefined && params.resourceGroup !== null && params.resourceGroup !== '') { | ||
pathSegments.push(params.resourceGroup); | ||
} | ||
if (params.resourceType !== undefined && params.resourceType !== null && params.resourceType !== '') { | ||
pathSegments.push(params.resourceType); | ||
} | ||
if (params.resourceId !== undefined && params.resourceId !== null && params.resourceId !== '') { | ||
pathSegments.push(params.resourceId); | ||
} | ||
// Conditionally include the leading slash | ||
const path = pathSegments.length > 0 ? `/${pathSegments.join('/')}` : ''; | ||
return URI.from({ | ||
scheme: Schemas.cdecode, | ||
authority, | ||
authority: authorityString, | ||
path, | ||
@@ -70,6 +111,6 @@ query: queryInString, | ||
// Otherwise, treat it as a project | ||
pathSegments.project = possibleResourceTypeOrProject; | ||
pathSegments.resourceGroup = possibleResourceTypeOrProject; | ||
} else if (pathSegmentsArray.length > 3) { | ||
// Case: organization/project/resourceType/resourceId | ||
pathSegments.project = pathSegmentsArray[1]; | ||
pathSegments.resourceGroup = pathSegmentsArray[1]; | ||
const possibleResourceType = pathSegmentsArray[2]; | ||
@@ -76,0 +117,0 @@ const resourceId = pathSegmentsArray[3]; |
export * from './utils'; | ||
export * from './uri'; | ||
export * from './resourceUriConversion'; | ||
export * from './generate-uri'; | ||
@@ -13,1 +13,2 @@ export * from './cdecodeUri'; | ||
export * from './generateUserAlias'; | ||
export * from './getLogger'; |
{ | ||
"name": "@adminide-stack/core", | ||
"version": "9.2.1-alpha.16", | ||
"version": "9.2.1-alpha.19", | ||
"description": "AdminIDE core for higher packages to depend on", | ||
@@ -18,3 +18,3 @@ "license": "ISC", | ||
"prepublish": "npm run build", | ||
"test": "jest", | ||
"test": "vitest", | ||
"test:debug": "npm test -- --runInBand", | ||
@@ -38,3 +38,3 @@ "test:watch": "npm test -- --watch", | ||
}, | ||
"gitHead": "6cb3daee130a1800d7773030c3932a88844e43a5", | ||
"gitHead": "9f1bb5ba19c2e49d27ccfb89022bca7263646d89", | ||
"typescript": { | ||
@@ -41,0 +41,0 @@ "definition": "lib/index.d.ts" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1721700
218
37331