@devtron-labs/devtron-fe-common-lib 1.20.6-alpha-2 → 1.20.6-alpha-20
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/dist/{@code-editor-BXUMy12o.js → @code-editor-DmaAaQJK.js} +11211 -9499
- package/dist/{@common-rjsf-DMKxjzgm.js → @common-rjsf-BFGk62PX.js} +30 -30
- package/dist/{@framer-motion-DZveCoIL.js → @framer-motion-DMkBQPN0.js} +92 -90
- package/dist/{@react-dates-CZ1bNWJM.js → @react-dates-BjZWpiVv.js} +1 -1
- package/dist/{@react-select-DS68hCUM.js → @react-select-DtwlfcIG.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-V-8klKy9.js → @react-virtualized-sticky-tree-M81Af3Qs.js} +1 -1
- package/dist/{@vendor-3ORIJA0h.js → @vendor-DceGoESd.js} +26335 -18086
- package/dist/Common/API/reactQueryHooks.d.ts +1 -1
- package/dist/Common/API/types.d.ts +1 -1
- package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +1 -0
- package/dist/Common/BreadCrumb/NestedBreadCrumb.d.ts +2 -0
- package/dist/Common/BreadCrumb/Types.d.ts +20 -0
- package/dist/Common/Common.service.d.ts +4 -1
- package/dist/Common/Constants.d.ts +56 -14
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +1 -0
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +8 -0
- package/dist/Common/SegmentedBarChart/types.d.ts +2 -0
- package/dist/Common/SegmentedBarChart/utils.d.ts +2 -0
- package/dist/Common/Types.d.ts +58 -5
- package/dist/Common/index.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +0 -2
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +13 -7
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/VirtualClusterSidebar.d.ts +2 -0
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +3 -3
- package/dist/Pages/ResourceBrowser/constants.d.ts +8 -8
- package/dist/Pages/ResourceBrowser/types.d.ts +3 -3
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/ApplicationManagementIcon.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/utils.d.ts +11 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/Automation&Enablement/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/constants.d.ts +4 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +31 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/DataProtectionManagement/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/DataProtectionManagement/types.d.ts +8 -0
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalOverview/GlobalOverview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalOverview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/InfrastructureManagementIcon.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/utils.d.ts +6 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/utils.d.ts +11 -0
- package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SecurityCenter/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/index.d.ts +4 -0
- package/dist/Shared/Components/ActionMenu/types.d.ts +3 -0
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/types.d.ts +1 -1
- package/dist/Shared/Components/Badge/utils.d.ts +2 -1
- package/dist/Shared/Components/Card/Card.component.d.ts +3 -0
- package/dist/Shared/Components/Card/constants.d.ts +4 -0
- package/dist/Shared/Components/Card/index.d.ts +2 -0
- package/dist/Shared/Components/Card/types.d.ts +25 -0
- package/dist/Shared/Components/Charts/Chart.component.d.ts +102 -0
- package/dist/Shared/Components/Charts/constants.d.ts +9 -0
- package/dist/Shared/Components/Charts/index.d.ts +4 -0
- package/dist/Shared/Components/Charts/plugins.d.ts +4 -0
- package/dist/Shared/Components/Charts/types.d.ts +116 -0
- package/dist/Shared/Components/Charts/utils.d.ts +70 -0
- package/dist/Shared/Components/ClusterStatusIcon/ClusterStatusIcon.d.ts +3 -0
- package/dist/Shared/Components/ClusterStatusIcon/index.d.ts +1 -0
- package/dist/Shared/Components/ClusterStatusIcon/types.d.ts +5 -0
- package/dist/Shared/Components/ClusterStatusIcon/utils.d.ts +2 -0
- package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +1 -1
- package/dist/Shared/Components/DTFocusTrap/types.d.ts +2 -1
- package/dist/Shared/Components/DocLink/constants.d.ts +1 -0
- package/dist/Shared/Components/ExportToCsv/ExportToCsv.d.ts +3 -0
- package/dist/Shared/Components/ExportToCsv/ExportToCsvDialog.d.ts +3 -0
- package/dist/Shared/Components/ExportToCsv/index.d.ts +2 -0
- package/dist/Shared/Components/ExportToCsv/types.d.ts +64 -0
- package/dist/Shared/Components/FeatureDescription/types.d.ts +1 -1
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +2 -1
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +21 -5
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -1
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +1 -3
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +2 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +39 -0
- package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
- package/dist/Shared/Components/Icon/types.d.ts +6 -0
- package/dist/Shared/Components/Illustration/Illustration.d.ts +6 -0
- package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +3 -0
- package/dist/Shared/Components/KeyboardShortcut/constants.d.ts +3 -0
- package/dist/Shared/Components/KeyboardShortcut/index.d.ts +1 -0
- package/dist/Shared/Components/KeyboardShortcut/types.d.ts +4 -0
- package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +3 -0
- package/dist/Shared/Components/PrometheusConfigurations/index.d.ts +2 -0
- package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +20 -0
- package/dist/Shared/Components/SideNavigation/SideNavigation.d.ts +2 -0
- package/dist/Shared/Components/SideNavigation/index.d.ts +2 -0
- package/dist/Shared/Components/SideNavigation/types.d.ts +19 -0
- package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
- package/dist/Shared/Components/Table/TableContent.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +11 -6
- package/dist/Shared/Components/TrailingItem/types.d.ts +4 -0
- package/dist/Shared/Components/TreeView/TreeView.component.d.ts +1 -1
- package/dist/Shared/Components/TreeView/TreeViewNodeContent.d.ts +1 -1
- package/dist/Shared/Components/TreeView/constants.d.ts +3 -0
- package/dist/Shared/Components/TreeView/types.d.ts +17 -3
- package/dist/Shared/Components/index.d.ts +7 -0
- package/dist/Shared/Helpers.d.ts +2 -0
- package/dist/Shared/Hooks/useGetResourceKindsOptions/service.d.ts +0 -5
- package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +5 -20
- package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +32 -2
- package/dist/Shared/Providers/MainContextProvider/types.d.ts +9 -0
- package/dist/Shared/Services/common.service.d.ts +2 -0
- package/dist/Shared/Services/types.d.ts +6 -0
- package/dist/Shared/constants.d.ts +3 -1
- package/dist/Shared/types.d.ts +20 -0
- package/dist/Shared/validations.d.ts +1 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/create-backup-schedule.bbac4a86.webp +0 -0
- package/dist/assets/create-backup-snapshot.c794f612.webp +0 -0
- package/dist/assets/ic-alibaba.518d61a4.svg +3 -0
- package/dist/assets/ic-argocd-app.9c5eba79.svg +61 -0
- package/dist/assets/ic-arrow-line-down.b6a98848.svg +3 -0
- package/dist/assets/ic-aws.eb2d0124.svg +12 -0
- package/dist/assets/ic-bg-build.8609d0ea.svg +13 -0
- package/dist/assets/ic-bg-cpu.15ec70f0.svg +11 -0
- package/dist/assets/ic-bg-deploy.266711fe.svg +22 -0
- package/dist/assets/ic-bg-memory.5373a125.svg +11 -0
- package/dist/assets/ic-bg-production-pipelines.2951cdc0.svg +22 -0
- package/dist/assets/ic-bg-project.84658405.svg +12 -0
- package/dist/assets/ic-bg-scan.2249360c.svg +28 -0
- package/dist/assets/ic-bg-webhook.b455152d.svg +13 -0
- package/dist/assets/ic-bot.65f403dd.svg +3 -0
- package/dist/assets/ic-building.2405d07b.svg +3 -0
- package/dist/assets/ic-check-circle.af18cd7e.svg +3 -0
- package/dist/assets/ic-circle-small.a0740b0e.svg +3 -0
- package/dist/assets/ic-clipboard.2869fa7d.svg +3 -0
- package/dist/assets/ic-clock-counterclockwise.3d7c2ef1.svg +3 -0
- package/dist/assets/ic-cloud.aa7acc8a.svg +3 -0
- package/dist/assets/ic-coins.2c15f406.svg +3 -0
- package/dist/assets/ic-cost-visibility.4a4625fc.svg +3 -0
- package/dist/assets/ic-database-backup.b9e7c558.svg +3 -0
- package/dist/assets/ic-devtron-text.67a413b6.svg +3 -0
- package/dist/assets/ic-edit-lines.57927b07.svg +3 -0
- package/dist/assets/ic-file-download.ca57c068.svg +5 -0
- package/dist/assets/ic-files-changed.04e6de3f.svg +3 -0
- package/dist/assets/ic-floppy-disk.6d392bcd.svg +3 -0
- package/dist/assets/ic-fluxcd-app.7bf7dce5.svg +22 -0
- package/dist/assets/ic-google-cloud.3077a8dd.svg +6 -0
- package/dist/assets/ic-kubernetes.7e04c3d2.svg +4 -0
- package/dist/assets/ic-magic-wand.2c29cd4e.svg +10 -0
- package/dist/assets/ic-oracle-cloud.5a8ee45d.svg +3 -0
- package/dist/assets/ic-otc-cloud.43b31bd8.svg +5 -0
- package/dist/assets/ic-party.cfc7e7c6.svg +4 -0
- package/dist/assets/ic-priority-medium-fill.7bab0ff8.svg +4 -0
- package/dist/assets/ic-right-panel-collapse.0ecf8ceb.svg +3 -0
- package/dist/assets/ic-symbol-greater-than.8f71342d.svg +3 -0
- package/dist/assets/ic-trend-up.5752ef30.svg +3 -0
- package/dist/assets/ic-warning-stroke.fc850a4a.svg +3 -0
- package/dist/assets/img-folder-empty.8e898c33.svg +33 -0
- package/dist/assets/img-no-backup-location.0e8699c5.svg +180 -0
- package/dist/assets/img-no-restores.f26cb7db.svg +114 -0
- package/dist/assets/no-cluster-cost-enabled.038c73db.webp +0 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1012 -957
- package/package.json +4 -1
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import { Teams } from '../../../Common/Types';
|
|
2
|
-
import { ClusterType } from '../../Services';
|
|
3
|
-
import { AppsGroupedByProjectsType, EnvironmentsGroupedByClustersType } from './types';
|
|
4
|
-
export declare const getAppOptionsGroupedByProjects: () => Promise<AppsGroupedByProjectsType>;
|
|
5
2
|
export declare const getProjectOptions: () => Promise<Pick<Teams, "id" | "name">[]>;
|
|
6
|
-
export declare const getClusterOptions: () => Promise<ClusterType[]>;
|
|
7
|
-
export declare const getEnvironmentOptionsGroupedByClusters: () => Promise<EnvironmentsGroupedByClustersType>;
|
|
@@ -1,24 +1,9 @@
|
|
|
1
|
+
import { getAppOptionsGroupedByProjects } from '../../../Common/Common.service';
|
|
1
2
|
import { ServerErrors } from '../../../Common/ServerError';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export type AppsGroupedByProjectsType = {
|
|
8
|
-
projectId: number;
|
|
9
|
-
projectName: string;
|
|
10
|
-
appList: AppType[];
|
|
11
|
-
}[];
|
|
12
|
-
export type EnvironmentsGroupedByClustersType = {
|
|
13
|
-
clusterName: EnvironmentType['cluster'];
|
|
14
|
-
envList: EnvironmentType[];
|
|
15
|
-
}[];
|
|
16
|
-
export interface ClusterDTO {
|
|
17
|
-
id: number;
|
|
18
|
-
cluster_name: string;
|
|
19
|
-
isVirtualCluster: boolean;
|
|
20
|
-
isProd: boolean;
|
|
21
|
-
}
|
|
3
|
+
import { EnvironmentsGroupedByClustersType } from '../../../Common/Types';
|
|
4
|
+
import { getClusterOptions } from '../../index';
|
|
5
|
+
import { ResourceKindType } from '../../types';
|
|
6
|
+
import { getProjectOptions } from './service';
|
|
22
7
|
export interface UseGetResourceKindsOptionsProps {
|
|
23
8
|
resourcesToFetch: Extract<ResourceKindType, ResourceKindType.devtronApplication | ResourceKindType.project | ResourceKindType.cluster | ResourceKindType.environment>[];
|
|
24
9
|
}
|
|
@@ -4,7 +4,7 @@ import { PreferredResourceKindType, UserPreferenceFilteredListTypes, UserPrefere
|
|
|
4
4
|
* @description This function fetches the user preferences from the server. It uses the `get` method to make a request to the server and retrieves the user preferences based on the `USER_PREFERENCES_ATTRIBUTE_KEY`. The result is parsed and returned as a `UserPreferencesType` object.
|
|
5
5
|
* @throws Will throw an error if the request fails or if the result is not in the expected format.
|
|
6
6
|
*/
|
|
7
|
-
export declare const getUserPreferences: () => Promise<UserPreferencesType>;
|
|
7
|
+
export declare const getUserPreferences: (signal?: AbortSignal) => Promise<UserPreferencesType>;
|
|
8
8
|
export declare const updateUserPreferences: ({ path, value, resourceKind, shouldThrowError, userPreferencesResponse, }: UserPreferenceResourceProps) => Promise<boolean>;
|
|
9
9
|
/**
|
|
10
10
|
* Optimized function to get updated user preferences with resource filtering
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { USER_PREFERENCES_ATTRIBUTE_KEY } from './constants';
|
|
2
2
|
import { AppThemeType, ThemeConfigType, ThemePreferenceType } from '../../Providers/ThemeProvider/types';
|
|
3
3
|
import { ResourceKindType } from '../../types';
|
|
4
|
+
export type NavigationItemID = 'application-management-overview' | 'application-management-applications' | 'application-management-application-groups' | 'application-management-chart-store' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-projects' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | 'infrastructure-management-resource-browser' | 'infrastructure-management-resource-watcher' | 'infrastructure-management-catalog-framework' | 'software-release-management-overview' | 'software-release-management-release-hub' | 'software-release-management-tenants' | 'cost-visibility-overview' | 'cost-visibility-cost-breakdown' | 'cost-visibility-configurations' | 'security-center-overview' | 'security-center-security-scans' | 'security-center-security-policy' | 'automation-and-enablement-jobs' | 'automation-and-enablement-alerting' | 'automation-and-enablement-incident-response' | 'automation-and-enablement-api-portal' | 'automation-and-enablement-runbook-automation' | 'global-configuration-sso-login-services' | 'global-configuration-host-urls' | 'global-configuration-cluster-and-environments' | 'global-configuration-container-oci-registry' | 'global-configuration-authorization' | 'data-protection-overview' | 'data-protection-backup-and-schedule' | 'data-protection-restores' | 'data-protection-backup-repositories' | 'data-protection-backup-locations' | 'data-protection-history-and-logs' | 'ai-recommendations-overview';
|
|
5
|
+
export type NavigationSubMenuItemID = 'application-management-configurations-gitops' | 'application-management-configurations-git-accounts' | 'application-management-configurations-external-links' | 'application-management-configurations-chart-repository' | 'application-management-configurations-deployment-charts' | 'application-management-configurations-notifications' | 'application-management-configurations-catalog-frameworks' | 'application-management-configurations-scoped-variables' | 'application-management-configurations-build-infra' | 'application-management-policies-deployment-window' | 'application-management-policies-approval-policy' | 'application-management-policies-plugin-policy' | 'application-management-policies-pull-image-digest' | 'application-management-policies-tag-policy' | 'application-management-policies-filter-conditions' | 'application-management-policies-image-promotion' | 'application-management-policies-lock-deployment-configuration' | 'cost-visibility-cost-breakdown-clusters' | 'cost-visibility-cost-breakdown-environments' | 'cost-visibility-cost-breakdown-projects' | 'cost-visibility-cost-breakdown-applications' | 'global-configuration-authorization-user-permissions' | 'global-configuration-authorization-permission-groups' | 'global-configuration-authorization-api-tokens';
|
|
4
6
|
export interface GetUserPreferencesQueryParamsType {
|
|
5
7
|
key: typeof USER_PREFERENCES_ATTRIBUTE_KEY;
|
|
6
8
|
}
|
|
@@ -23,6 +25,7 @@ export interface UserResourceKindActionType {
|
|
|
23
25
|
[UserPreferenceResourceActions.RECENTLY_VISITED]: BaseRecentlyVisitedEntitiesTypes[];
|
|
24
26
|
}
|
|
25
27
|
export type UserPreferenceResourceType = Partial<Record<PreferredResourceKindType, UserResourceKindActionType>>;
|
|
28
|
+
export type CommandBarAdditionalItemsId = 'app-management-devtron-app-list' | 'app-management-helm-app-list' | 'app-management-flux-app-list' | 'app-management-argo-app-list' | `app-management-devtron-app-list-${number}` | 'search-app-list-view' | `chart-list-${number}` | 'search-chart-list-view' | `helm-app-list-${number}` | 'search-helm-app-list-view' | `cluster-list-${number}` | 'search-cluster-list-view';
|
|
26
29
|
export interface GetUserPreferencesParsedDTO {
|
|
27
30
|
viewPermittedEnvOnly?: boolean;
|
|
28
31
|
/**
|
|
@@ -36,13 +39,18 @@ export interface GetUserPreferencesParsedDTO {
|
|
|
36
39
|
*
|
|
37
40
|
*/
|
|
38
41
|
resources?: UserPreferenceResourceType;
|
|
42
|
+
commandBar: {
|
|
43
|
+
recentNavigationActions: {
|
|
44
|
+
id: NavigationItemID | NavigationSubMenuItemID | CommandBarAdditionalItemsId;
|
|
45
|
+
}[];
|
|
46
|
+
};
|
|
39
47
|
}
|
|
40
48
|
export interface UserPreferencesPayloadValueType extends GetUserPreferencesParsedDTO {
|
|
41
49
|
}
|
|
42
50
|
export interface UpdateUserPreferencesPayloadType extends Pick<GetUserPreferencesQueryParamsType, 'key'> {
|
|
43
51
|
value: string;
|
|
44
52
|
}
|
|
45
|
-
export interface UserPreferencesType {
|
|
53
|
+
export interface UserPreferencesType extends Pick<GetUserPreferencesParsedDTO, 'commandBar'> {
|
|
46
54
|
/**
|
|
47
55
|
* Preferred theme for the user
|
|
48
56
|
* If null, would forcibly show user theme switcher dialog for user to select
|
|
@@ -69,7 +77,7 @@ export interface UseUserPreferencesProps {
|
|
|
69
77
|
migrateUserPreferences?: (userPreferencesResponse: UserPreferencesType) => Promise<UserPreferencesType>;
|
|
70
78
|
recentlyVisitedFetchConfig?: RecentlyVisitedFetchConfigType;
|
|
71
79
|
}
|
|
72
|
-
|
|
80
|
+
type UserPathValueMapType = {
|
|
73
81
|
path: 'themePreference';
|
|
74
82
|
value: Required<Pick<UpdatedUserPreferencesType, 'themePreference' | 'appTheme'>>;
|
|
75
83
|
resourceKind?: never;
|
|
@@ -84,7 +92,28 @@ export type UserPathValueMapType = {
|
|
|
84
92
|
value: Required<BaseRecentlyVisitedEntitiesTypes[]>;
|
|
85
93
|
resourceKind: PreferredResourceKindType;
|
|
86
94
|
userPreferencesResponse?: UserPreferencesType;
|
|
95
|
+
} | {
|
|
96
|
+
path: 'commandBar.recentNavigationActions';
|
|
97
|
+
value: UserPreferencesType['commandBar']['recentNavigationActions'];
|
|
98
|
+
resourceKind?: never;
|
|
99
|
+
userPreferencesResponse?: never;
|
|
87
100
|
};
|
|
101
|
+
export type GetUserPreferencePayloadParams = {
|
|
102
|
+
userPreferencesResponse: UserPreferencesType;
|
|
103
|
+
resourceKind?: PreferredResourceKindType;
|
|
104
|
+
} & ({
|
|
105
|
+
path: 'themePreference';
|
|
106
|
+
value: Required<Pick<UpdatedUserPreferencesType, 'themePreference' | 'appTheme'>>;
|
|
107
|
+
} | {
|
|
108
|
+
path: 'pipelineRBACViewSelectedTab';
|
|
109
|
+
value: Required<Pick<UserPreferencesType, 'pipelineRBACViewSelectedTab'>>;
|
|
110
|
+
} | {
|
|
111
|
+
path: 'resources';
|
|
112
|
+
value: Required<BaseRecentlyVisitedEntitiesTypes[]>;
|
|
113
|
+
} | {
|
|
114
|
+
path: 'commandBar.recentNavigationActions';
|
|
115
|
+
value: UserPreferencesType['commandBar']['recentNavigationActions'];
|
|
116
|
+
});
|
|
88
117
|
export type UserPreferenceResourceProps = UserPathValueMapType & {
|
|
89
118
|
shouldThrowError?: boolean;
|
|
90
119
|
userPreferencesResponse?: UserPreferencesType;
|
|
@@ -92,3 +121,4 @@ export type UserPreferenceResourceProps = UserPathValueMapType & {
|
|
|
92
121
|
export interface UserPreferenceFilteredListTypes extends UserPreferenceRecentlyVisitedAppsTypes {
|
|
93
122
|
userPreferencesResponse?: UserPreferencesType;
|
|
94
123
|
}
|
|
124
|
+
export {};
|
|
@@ -21,6 +21,7 @@ export interface SidePanelConfig {
|
|
|
21
21
|
reinitialize?: boolean;
|
|
22
22
|
/** URL to documentation that should be displayed in the panel */
|
|
23
23
|
docLink: string | null;
|
|
24
|
+
aiSessionId?: string;
|
|
24
25
|
}
|
|
25
26
|
type AIAgentContextType = {
|
|
26
27
|
path: string;
|
|
@@ -39,6 +40,14 @@ export interface TempAppWindowConfig {
|
|
|
39
40
|
showOpenInNewTab?: boolean;
|
|
40
41
|
/** React component to render in the window */
|
|
41
42
|
component?: JSX.Element;
|
|
43
|
+
customCloseConfig?: {
|
|
44
|
+
/**
|
|
45
|
+
* Provide this method if you want to do something before temp window closes
|
|
46
|
+
* Provide noop if not relevant
|
|
47
|
+
* */
|
|
48
|
+
beforeClose: () => void;
|
|
49
|
+
icon: JSX.Element;
|
|
50
|
+
};
|
|
42
51
|
}
|
|
43
52
|
type CommonMainContextProps = {
|
|
44
53
|
setServerMode: (serverMode: SERVER_MODE) => void;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { AppConfigProps } from '../../Pages/index';
|
|
2
|
+
import { ClusterType } from '..';
|
|
2
3
|
import { EnvironmentDataValuesDTO, GetPolicyApiUrlProps, GetResourceApiUrlProps } from './types';
|
|
3
4
|
export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, queryParams }: GetResourceApiUrlProps<T>) => string;
|
|
4
5
|
export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
|
|
5
6
|
export declare const saveCDPipeline: (request: any, { isTemplateView }: Required<Pick<AppConfigProps, "isTemplateView">>) => Promise<import('../../Common').ResponseType<any>>;
|
|
6
7
|
export declare const getEnvironmentData: () => Promise<import('../../Common').ResponseType<EnvironmentDataValuesDTO>>;
|
|
8
|
+
export declare const getClusterOptions: () => Promise<ClusterType[]>;
|
|
@@ -40,4 +40,10 @@ export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitO
|
|
|
40
40
|
devtronManagedLicensingEnabled: boolean;
|
|
41
41
|
isResourceRecommendationEnabled?: boolean;
|
|
42
42
|
}
|
|
43
|
+
export interface ClusterMinDTO {
|
|
44
|
+
id: number;
|
|
45
|
+
cluster_name: string;
|
|
46
|
+
isVirtualCluster: boolean;
|
|
47
|
+
isProd: boolean;
|
|
48
|
+
}
|
|
43
49
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeploymentNodeType, OptionType } from '../Common/Types';
|
|
2
2
|
import { InfoBlockProps } from './Components';
|
|
3
|
-
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, DeploymentStrategyTypeWithDefault, IconBaseColorType } from './types';
|
|
3
|
+
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, DeploymentStrategyTypeWithDefault, IconBaseColorType, RemoteConnectionType } from './types';
|
|
4
4
|
export declare const ARTIFACT_STATUS: {
|
|
5
5
|
PROGRESSING: string;
|
|
6
6
|
DEGRADED: string;
|
|
@@ -434,3 +434,5 @@ export declare const PROGRESSING_DEPLOYMENT_STATUS_POLLING_INTERVAL = 10000;
|
|
|
434
434
|
export declare const STRATEGY_TYPE_TO_TITLE_MAP: Record<DeploymentStrategyTypeWithDefault, string>;
|
|
435
435
|
export declare const CUBIC_BEZIER_CURVE: [number, number, number, number];
|
|
436
436
|
export declare const ALLOW_ACTION_OUTSIDE_FOCUS_TRAP = "allow-action-outside-focus-trap";
|
|
437
|
+
export declare const REMOTE_CONNECTION_TYPE_LABEL_MAP: Record<RemoteConnectionType, string>;
|
|
438
|
+
export declare const TARGET_K8S_VERSION_SEARCH_KEY = "targetK8sVersion";
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -1113,4 +1113,24 @@ export interface PipelineDeploymentStrategy {
|
|
|
1113
1113
|
strategies: Strategy[];
|
|
1114
1114
|
error: ServerError;
|
|
1115
1115
|
}
|
|
1116
|
+
export declare enum RemoteConnectionType {
|
|
1117
|
+
Direct = "DIRECT",
|
|
1118
|
+
Proxy = "PROXY",
|
|
1119
|
+
SSHTunnel = "SSH"
|
|
1120
|
+
}
|
|
1121
|
+
export declare enum AuthenticationType {
|
|
1122
|
+
BASIC = "BASIC",
|
|
1123
|
+
ANONYMOUS = "ANONYMOUS",
|
|
1124
|
+
IAM = "IAM"
|
|
1125
|
+
}
|
|
1126
|
+
/**
|
|
1127
|
+
* Makes all props in T optional and set to never when isLoading is true.
|
|
1128
|
+
* Used for components with loading states.
|
|
1129
|
+
* @example See usage in CostVisibility -> cards
|
|
1130
|
+
*/
|
|
1131
|
+
export type PropsTypeWithIsLoading<T extends Record<string, any>> = (Partial<Record<keyof T, never>> & {
|
|
1132
|
+
isLoading: true;
|
|
1133
|
+
}) | ({
|
|
1134
|
+
isLoading?: false;
|
|
1135
|
+
} & T);
|
|
1116
1136
|
export {};
|
|
@@ -60,3 +60,4 @@ export declare const validateCMVolumeMountPath: (value: string) => {
|
|
|
60
60
|
};
|
|
61
61
|
export declare const validateYAML: (yamlString: string, isRequired?: boolean) => ValidationResponseType;
|
|
62
62
|
export declare const validateEmail: (email: string) => ValidationResponseType;
|
|
63
|
+
export declare const getIsRegexValid: (regexString: string) => ValidationResponseType;
|