@devtron-labs/devtron-fe-common-lib 1.22.5-beta-1 → 1.22.6
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-CHdP-tRL.js → @code-editor-CICrw4xP.js} +4514 -4565
- package/dist/{@common-rjsf-DlabFjrd.js → @common-rjsf-CQlekqsP.js} +2 -2
- package/dist/{@framer-motion-Bi7d_Mil.js → @framer-motion-LZK2bgCK.js} +64 -64
- package/dist/{@react-dates-CR-uCH60.js → @react-dates-CbpfVsC0.js} +1 -1
- package/dist/{@react-select-C5q5RdNV.js → @react-select-BuPEYnTv.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-LXSXNrbc.js → @react-virtualized-sticky-tree-DX7VkyTZ.js} +1 -1
- package/dist/{@vendor-CtCMPfdc.js → @vendor-BsABdDGm.js} +9181 -9266
- package/dist/Common/API/reactQueryHooks.d.ts +1 -2
- package/dist/Common/Constants.d.ts +0 -3
- package/dist/Pages-Devtron-2.0/Navigation/types.d.ts +1 -1
- package/dist/Shared/Components/AppStatusModal/AppStatusBody.d.ts +1 -1
- package/dist/Shared/Components/AppStatusModal/types.d.ts +1 -4
- package/dist/Shared/Components/CICDHistory/types.d.ts +0 -6
- package/dist/Shared/Components/Charts/types.d.ts +2 -0
- package/dist/Shared/Components/DocLink/constants.d.ts +1 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +0 -11
- package/dist/Shared/Helpers.d.ts +3 -3
- package/dist/Shared/Providers/MainContextProvider/index.d.ts +1 -1
- package/dist/Shared/Providers/MainContextProvider/types.d.ts +4 -43
- package/dist/Shared/Services/types.d.ts +0 -1
- package/dist/Shared/types.d.ts +19 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1003 -1005
- package/package.json +1 -1
- package/dist/assets/ic-bell.d2aa01ec.svg +0 -3
- package/dist/assets/ic-bulb.3906a732.svg +0 -7
- package/dist/assets/ic-close-circle.b39dd87d.svg +0 -3
- package/dist/assets/ic-comment.cc141b33.svg +0 -3
- package/dist/assets/ic-dot-circle.5ce1fccf.svg +0 -3
- package/dist/assets/ic-new-chat.f7c90f8e.svg +0 -5
- package/dist/assets/ic-piggybank.3a4839d7.svg +0 -3
- package/dist/assets/ic-priority-high-fill.53755d8f.svg +0 -3
- package/dist/assets/ic-priority-low-fill.79e781ae.svg +0 -4
- package/dist/assets/ic-priority-urgent-fill.78d42fa0.svg +0 -10
- package/dist/assets/ic-red-bulb.25e01bfc.svg +0 -9
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { QueryKey,
|
|
1
|
+
import { QueryKey, UseMutationOptions, UseMutationResult, useQueryClient, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { ServerErrors } from '../ServerError';
|
|
3
3
|
import { ResponseType } from '../Types';
|
|
4
4
|
export declare const useQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, WrapWithResponseType extends boolean = true>(options: UseQueryOptions<WrapWithResponseType extends true ? ResponseType<TQueryFnData> : TQueryFnData, ServerErrors, TData, TQueryKey>) => UseQueryResult<TData, ServerErrors>;
|
|
5
5
|
export declare const useMutation: <TData = unknown, TVariables = void, TContext = unknown>(options: UseMutationOptions<ResponseType<TData>, ServerErrors, TVariables, TContext>) => UseMutationResult<ResponseType<TData>, ServerErrors, TVariables, TContext>;
|
|
6
|
-
export declare const useInfiniteQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, WrapWithResponseType extends boolean = true>(options: UseInfiniteQueryOptions<WrapWithResponseType extends true ? ResponseType<TQueryFnData> : TQueryFnData, ServerErrors, TData, WrapWithResponseType extends true ? ResponseType<TQueryFnData> : TQueryFnData, TQueryKey>) => UseInfiniteQueryResult<TData, ServerErrors>;
|
|
7
6
|
export { useQueryClient };
|
|
@@ -42,8 +42,6 @@ export declare const URLS: {
|
|
|
42
42
|
readonly APP_DEPLOYMNENT_HISTORY: "deployments";
|
|
43
43
|
readonly APP_DETAILS: "details";
|
|
44
44
|
readonly APP_DETAILS_K8: "k8s-resources";
|
|
45
|
-
readonly EXTERNAL_ARGO_APP: "eaa";
|
|
46
|
-
readonly EXTERNAL_FLUX_APP: "external-flux";
|
|
47
45
|
readonly DETAILS: "/details";
|
|
48
46
|
readonly CD_DETAILS: "cd-details";
|
|
49
47
|
readonly APP_TRIGGER: "trigger";
|
|
@@ -111,7 +109,6 @@ export declare const URLS: {
|
|
|
111
109
|
};
|
|
112
110
|
export declare const ROUTES: {
|
|
113
111
|
readonly APP: "app";
|
|
114
|
-
readonly ATHENA: "athena";
|
|
115
112
|
readonly APP_ARTIFACT_PROMOTE_MATERIAL: "app/artifact/promotion-request/material";
|
|
116
113
|
readonly APP_TEMPLATE_DATA: "app/template/data";
|
|
117
114
|
readonly ENVIRONMENT_CATEGORIES: "env/categories";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { customEnv, Never } from 'src';
|
|
2
2
|
import { IconsProps } from '../../Shared/Components';
|
|
3
|
-
export type NavigationItemID = 'application-management-overview' | 'application-management-devtron-applications' | 'application-management-application-groups' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-projects' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | 'infrastructure-management-applications' | 'infrastructure-management-chart-store' | '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-vulnerabilities' | 'security-center-security-enablement' | 'security-center-security-policy' | 'automation-and-enablement-jobs' | 'automation-and-enablement-alerting' | 'automation-and-enablement-incident-response' | 'automation-and-enablement-api-portal' | 'global-configuration-sso-login-services' | 'global-configuration-host-urls' | 'global-configuration-external-links' | 'global-configuration-chart-repository' | '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';
|
|
3
|
+
export type NavigationItemID = 'application-management-overview' | 'application-management-devtron-applications' | 'application-management-application-groups' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-projects' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | 'infrastructure-management-applications' | 'infrastructure-management-chart-store' | '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-vulnerabilities' | 'security-center-security-enablement' | '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-external-links' | 'global-configuration-chart-repository' | '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';
|
|
4
4
|
export type NavigationSubMenuItemID = 'application-management-configurations-gitops' | 'application-management-configurations-git-accounts' | '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';
|
|
5
5
|
export type NavigationRootItemID = 'application-management' | 'infrastructure-management' | 'software-release-management' | 'cost-visibility' | 'security-center' | 'automation-and-enablement' | 'data-protection-management' | 'global-configuration';
|
|
6
6
|
export type CommonNavigationItemType = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AppStatusBodyProps } from './types';
|
|
2
|
-
export declare const AppStatusBody: ({ appDetails, type, handleShowConfigDriftModal, deploymentStatusDetailsBreakdownData, selectedTab, debugWithAIButton: ExplainWithAIButton,
|
|
2
|
+
export declare const AppStatusBody: ({ appDetails, type, handleShowConfigDriftModal, deploymentStatusDetailsBreakdownData, selectedTab, debugWithAIButton: ExplainWithAIButton, }: AppStatusBodyProps) => JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
import { APIOptions, DeploymentAppTypes } from '../../../Common/Types';
|
|
3
|
-
import { MainContext } from '../../Providers';
|
|
4
3
|
import { AppDetails, ConfigDriftModalProps, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, IntelligenceConfig } from '../../types';
|
|
5
4
|
export declare enum AppStatusModalTabType {
|
|
6
5
|
APP_STATUS = "appStatus",
|
|
@@ -14,8 +13,6 @@ export type AppStatusModalProps = {
|
|
|
14
13
|
processVirtualEnvironmentDeploymentData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
|
15
14
|
debugWithAIButton: FunctionComponent<{
|
|
16
15
|
intelligenceConfig: IntelligenceConfig;
|
|
17
|
-
debugAgentContext: MainContext['debugAgentContext'];
|
|
18
|
-
onClick?: () => void;
|
|
19
16
|
}>;
|
|
20
17
|
} & ({
|
|
21
18
|
type: 'release';
|
|
@@ -32,7 +29,7 @@ export type AppStatusModalProps = {
|
|
|
32
29
|
appId?: never;
|
|
33
30
|
envId?: never;
|
|
34
31
|
});
|
|
35
|
-
export interface AppStatusBodyProps extends Required<Pick<AppStatusModalProps, 'appDetails' | 'type' | 'debugWithAIButton'
|
|
32
|
+
export interface AppStatusBodyProps extends Required<Pick<AppStatusModalProps, 'appDetails' | 'type' | 'debugWithAIButton'>> {
|
|
36
33
|
handleShowConfigDriftModal: () => void;
|
|
37
34
|
selectedTab: AppStatusModalTabType;
|
|
38
35
|
deploymentStatusDetailsBreakdownData: DeploymentStatusDetailsBreakdownDataType;
|
|
@@ -506,12 +506,6 @@ export interface AggregatedNodes {
|
|
|
506
506
|
};
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
|
-
export interface PodMetadatum {
|
|
510
|
-
name: string;
|
|
511
|
-
uid: string;
|
|
512
|
-
containers: string[];
|
|
513
|
-
isNew: boolean;
|
|
514
|
-
}
|
|
515
509
|
export declare const STATUS_SORTING_ORDER: {
|
|
516
510
|
missing: number;
|
|
517
511
|
degraded: number;
|
|
@@ -93,7 +93,9 @@ export type ChartProps = {
|
|
|
93
93
|
placement?: TooltipProps['placement'];
|
|
94
94
|
datasetValueFormatter?: (value: number) => string | number;
|
|
95
95
|
};
|
|
96
|
+
/** A title for x axis */
|
|
96
97
|
xScaleTitle?: string;
|
|
98
|
+
/** A title for y axis */
|
|
97
99
|
yScaleTitle?: string;
|
|
98
100
|
} & TypeAndDatasetsType;
|
|
99
101
|
export type TransformDatasetProps = {
|
|
@@ -104,5 +104,6 @@ export declare const DOCUMENTATION: {
|
|
|
104
104
|
readonly COST_CALCULATION: "docs/user-guide/finops/overview-cost-visibility#how-is-the-cost-calculated";
|
|
105
105
|
readonly COST_VISIBILITY_OVERVIEW: "docs/user-guide/finops/overview-cost-visibility";
|
|
106
106
|
readonly SECURITY_CENTER: "docs/user-guide/security-features";
|
|
107
|
+
readonly AI_RECOMMENDATIONS: "docs/user-guide/ai-recommendations";
|
|
107
108
|
readonly AUTOMATION_AND_ENABLEMENT: "docs/user-guide/automation";
|
|
108
109
|
};
|
|
@@ -30,7 +30,6 @@ export declare const iconMap: {
|
|
|
30
30
|
'ic-backup-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
31
31
|
'ic-backup-location': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
32
32
|
'ic-backup-schedule-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
33
|
-
'ic-bell': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
34
33
|
'ic-bg-backup-schedule': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
35
34
|
'ic-bg-backups': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
36
35
|
'ic-bg-build': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -57,7 +56,6 @@ export declare const iconMap: {
|
|
|
57
56
|
'ic-bug': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
58
57
|
'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
59
58
|
'ic-building': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
60
|
-
'ic-bulb': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
61
59
|
'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
62
60
|
'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
63
61
|
'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -81,7 +79,6 @@ export declare const iconMap: {
|
|
|
81
79
|
'ic-clipboard': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
82
80
|
'ic-clock-counterclockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
83
81
|
'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
84
|
-
'ic-close-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
85
82
|
'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
86
83
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
87
84
|
'ic-cloud-upload': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -91,7 +88,6 @@ export declare const iconMap: {
|
|
|
91
88
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
92
89
|
'ic-coins-color-animated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
93
90
|
'ic-coins': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
94
|
-
'ic-comment': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
95
91
|
'ic-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
96
92
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
97
93
|
'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -120,7 +116,6 @@ export declare const iconMap: {
|
|
|
120
116
|
'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
121
117
|
'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
122
118
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
123
|
-
'ic-dot-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
124
119
|
'ic-download': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
125
120
|
'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
126
121
|
'ic-edit-lines': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -224,7 +219,6 @@ export declare const iconMap: {
|
|
|
224
219
|
'ic-more-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
225
220
|
'ic-namespace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
226
221
|
'ic-nav-cursor': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
227
|
-
'ic-new-chat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
228
222
|
'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
229
223
|
'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
230
224
|
'ic-oidc': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -242,16 +236,11 @@ export declare const iconMap: {
|
|
|
242
236
|
'ic-pause-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
243
237
|
'ic-pause': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
244
238
|
'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
245
|
-
'ic-piggybank': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
246
239
|
'ic-play-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
247
|
-
'ic-priority-high-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
248
|
-
'ic-priority-low-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
249
240
|
'ic-priority-medium-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
250
|
-
'ic-priority-urgent-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
251
241
|
'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
252
242
|
'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
253
243
|
'ic-ratings': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
254
|
-
'ic-red-bulb': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
255
244
|
'ic-release-hub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
256
245
|
'ic-resize-handle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
257
246
|
'ic-resource-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { Pair } from 'yaml';
|
|
|
5
5
|
import { MaterialHistoryType } from './Services/app.types';
|
|
6
6
|
import { ApprovalConfigDataType, MaterialInfo, SortingOrder, UserApprovalConfigType, UserApprovalInfo } from '../Common';
|
|
7
7
|
import { GVKType } from '../Pages';
|
|
8
|
-
import { AggregatedNodes
|
|
9
|
-
import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, Node, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
|
|
8
|
+
import { AggregatedNodes } from './Components';
|
|
9
|
+
import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, Node, PodMetaData, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
|
|
10
10
|
interface HighlightSearchTextProps {
|
|
11
11
|
/**
|
|
12
12
|
* The text to be highlighted
|
|
@@ -37,7 +37,7 @@ export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
|
37
37
|
export declare const handleDisableSubmitOnEnter: (event: React.KeyboardEvent<HTMLFormElement>) => void;
|
|
38
38
|
export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
|
|
39
39
|
export declare const renderValidInputButtonTippy: (children: ReactElement) => JSX.Element;
|
|
40
|
-
export declare function aggregateNodes(nodes: any[], podMetadata:
|
|
40
|
+
export declare function aggregateNodes(nodes: any[], podMetadata: PodMetaData[]): AggregatedNodes;
|
|
41
41
|
export declare const decode: (data: any, isEncoded?: boolean) => {};
|
|
42
42
|
export declare const isTimeStringAvailable: (time: string) => boolean;
|
|
43
43
|
export declare const getTimeDifference: ({ startTime, endTime, fallbackString, }: GetTimeDifferenceParamsType) => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * from './MainContextProvider';
|
|
2
2
|
export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig, TempAppWindowConfig } from './types';
|
|
3
|
-
export {
|
|
3
|
+
export { SidePanelTab } from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dispatch,
|
|
1
|
+
import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
|
|
2
2
|
import { SERVER_MODE } from '../../../Common';
|
|
3
3
|
import { DevtronLicenseInfo, EnvironmentDataValuesDTO, IntelligenceConfig, LicenseInfoDialogType, ToastManager } from '../..';
|
|
4
4
|
import { ServerInfo } from '../../Components/Header/types';
|
|
@@ -22,43 +22,10 @@ export interface SidePanelConfig {
|
|
|
22
22
|
/** URL to documentation that should be displayed in the panel */
|
|
23
23
|
docLink: string | null;
|
|
24
24
|
aiSessionId?: string;
|
|
25
|
-
isExpandedView?: boolean;
|
|
26
25
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
export type AIAgentAppType = 'devtronApp' | 'devtronHelmChart' | 'externalHelmChart' | 'externalArgoApp' | 'externalFluxApp';
|
|
32
|
-
type AIAgentAppDataMasterType = {
|
|
33
|
-
appId: number | string;
|
|
34
|
-
appName: string;
|
|
35
|
-
envId: number;
|
|
36
|
-
envName: string;
|
|
37
|
-
clusterId: number;
|
|
38
|
-
namespace: string;
|
|
39
|
-
appType: AIAgentAppType;
|
|
40
|
-
fluxAppDeploymentType: string;
|
|
41
|
-
};
|
|
42
|
-
type AIAgentAppDataType<TAppType extends AIAgentAppType, TRequiredFields extends keyof AIAgentAppDataMasterType> = Pick<AIAgentAppDataMasterType, TRequiredFields> & {
|
|
43
|
-
[K in Exclude<keyof AIAgentAppDataMasterType, TRequiredFields | 'appType'>]?: never;
|
|
44
|
-
} & {
|
|
45
|
-
appType: TAppType;
|
|
46
|
-
};
|
|
47
|
-
type CommonContextDataType = Record<string, unknown> & {
|
|
48
|
-
uiMarkup?: string;
|
|
49
|
-
};
|
|
50
|
-
export type AIAgentContextType = {
|
|
51
|
-
source: AIAgentContextSourceType.APP_DETAILS;
|
|
52
|
-
data: AIAgentAppDataType<'devtronApp' | 'devtronHelmChart', 'appId' | 'appName' | 'envId' | 'envName' | 'clusterId'> | AIAgentAppDataType<'externalHelmChart', 'appId' | 'appName' | 'clusterId' | 'namespace'> | AIAgentAppDataType<'externalArgoApp', 'appName' | 'clusterId' | 'namespace'> | (AIAgentAppDataType<'externalFluxApp', 'appName' | 'clusterId' | 'namespace' | 'fluxAppDeploymentType'> & CommonContextDataType);
|
|
53
|
-
} | {
|
|
54
|
-
source: AIAgentContextSourceType.RESOURCE_BROWSER_CLUSTER;
|
|
55
|
-
data: {
|
|
56
|
-
clusterId: number;
|
|
57
|
-
clusterName: string;
|
|
58
|
-
} & CommonContextDataType;
|
|
59
|
-
};
|
|
60
|
-
export type DebugAgentContextType = AIAgentContextType & {
|
|
61
|
-
prompt?: string;
|
|
26
|
+
type AIAgentContextType = {
|
|
27
|
+
path: string;
|
|
28
|
+
context: Record<string, string>;
|
|
62
29
|
};
|
|
63
30
|
export interface TempAppWindowConfig {
|
|
64
31
|
/** Whether the temporary window is open */
|
|
@@ -120,8 +87,6 @@ type CommonMainContextProps = {
|
|
|
120
87
|
setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
|
|
121
88
|
canFetchHelmAppStatus: boolean;
|
|
122
89
|
setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
|
|
123
|
-
debugAgentContext: DebugAgentContextType | null;
|
|
124
|
-
setDebugAgentContext: (aiAgentContext: DebugAgentContextType | null) => void;
|
|
125
90
|
setAIAgentContext: (aiAgentContext: AIAgentContextType) => void;
|
|
126
91
|
setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>;
|
|
127
92
|
} & Pick<EnvironmentDataValuesDTO, 'isResourceRecommendationEnabled'>;
|
|
@@ -150,8 +115,6 @@ export type MainContext = CommonMainContextProps & ({
|
|
|
150
115
|
aiAgentContext: AIAgentContextType;
|
|
151
116
|
tempAppWindowConfig: TempAppWindowConfig;
|
|
152
117
|
setTempAppWindowConfig: Dispatch<SetStateAction<TempAppWindowConfig>>;
|
|
153
|
-
AIRecommendations?: FunctionComponent;
|
|
154
|
-
featureAskDevtronExpert: EnvironmentDataValuesDTO['featureAskDevtronExpert'];
|
|
155
118
|
} | {
|
|
156
119
|
isLicenseDashboard: true;
|
|
157
120
|
serverMode: null;
|
|
@@ -169,8 +132,6 @@ export type MainContext = CommonMainContextProps & ({
|
|
|
169
132
|
aiAgentContext: null;
|
|
170
133
|
tempAppWindowConfig: null;
|
|
171
134
|
setTempAppWindowConfig: null;
|
|
172
|
-
AIRecommendations?: null;
|
|
173
|
-
featureAskDevtronExpert?: null;
|
|
174
135
|
});
|
|
175
136
|
export interface MainContextProviderProps {
|
|
176
137
|
children: ReactNode;
|
|
@@ -39,7 +39,6 @@ export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitO
|
|
|
39
39
|
canOnlyViewPermittedEnvOrgLevel: boolean;
|
|
40
40
|
devtronManagedLicensingEnabled: boolean;
|
|
41
41
|
isResourceRecommendationEnabled?: boolean;
|
|
42
|
-
featureAskDevtronExpert: boolean;
|
|
43
42
|
}
|
|
44
43
|
export interface ClusterMinDTO {
|
|
45
44
|
id: number;
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -129,13 +129,21 @@ export interface iNode extends Node {
|
|
|
129
129
|
status: string;
|
|
130
130
|
pNode?: iNode;
|
|
131
131
|
}
|
|
132
|
+
export interface HelmReleaseStatus {
|
|
133
|
+
status: string;
|
|
134
|
+
message: string;
|
|
135
|
+
description: string;
|
|
136
|
+
}
|
|
132
137
|
export interface ResourceTree {
|
|
133
|
-
|
|
138
|
+
nodes: Node[];
|
|
134
139
|
newGenerationReplicaSet: string;
|
|
135
|
-
nodes: Array<Node>;
|
|
136
|
-
podMetadata: Array<PodMetaData>;
|
|
137
140
|
status: string;
|
|
141
|
+
podMetadata: PodMetaData[];
|
|
142
|
+
conditions?: any;
|
|
143
|
+
releaseStatus?: HelmReleaseStatus;
|
|
138
144
|
resourcesSyncResult?: Record<string, string>;
|
|
145
|
+
hasDrift?: boolean;
|
|
146
|
+
lastSnapshotTime?: string;
|
|
139
147
|
wfrId?: number;
|
|
140
148
|
}
|
|
141
149
|
export declare enum AppType {
|
|
@@ -145,11 +153,6 @@ export declare enum AppType {
|
|
|
145
153
|
EXTERNAL_ARGO_APP = "external_argo_app",
|
|
146
154
|
EXTERNAL_FLUX_APP = "external_flux_app"
|
|
147
155
|
}
|
|
148
|
-
export interface HelmReleaseStatus {
|
|
149
|
-
status: string;
|
|
150
|
-
message: string;
|
|
151
|
-
description: string;
|
|
152
|
-
}
|
|
153
156
|
interface MaterialInfo {
|
|
154
157
|
author: string;
|
|
155
158
|
branch: string;
|
|
@@ -173,7 +176,7 @@ export interface AppDetails {
|
|
|
173
176
|
appStoreChartName?: string;
|
|
174
177
|
appStoreInstalledAppVersionId?: number;
|
|
175
178
|
ciArtifactId?: number;
|
|
176
|
-
deprecated?:
|
|
179
|
+
deprecated?: boolean;
|
|
177
180
|
environmentId?: number;
|
|
178
181
|
environmentName: string;
|
|
179
182
|
installedAppId?: number;
|
|
@@ -209,6 +212,12 @@ export interface AppDetails {
|
|
|
209
212
|
FluxAppStatusDetail?: FluxAppStatusDetail;
|
|
210
213
|
isPipelineTriggered?: boolean;
|
|
211
214
|
releaseMode?: ReleaseMode;
|
|
215
|
+
cdPipelineId?: number;
|
|
216
|
+
triggerType?: string;
|
|
217
|
+
parentEnvironmentName?: string;
|
|
218
|
+
ciPipelineId?: number;
|
|
219
|
+
trafficSwitched?: boolean;
|
|
220
|
+
pcoId?: number;
|
|
212
221
|
}
|
|
213
222
|
export interface ConfigDriftModalProps extends Required<Pick<AppDetails, 'appId'>> {
|
|
214
223
|
envId: number;
|
|
@@ -1119,7 +1128,7 @@ export interface DeploymentStatusDetailsBreakdownDataType {
|
|
|
1119
1128
|
}
|
|
1120
1129
|
export interface IntelligenceConfig {
|
|
1121
1130
|
clusterId: number;
|
|
1122
|
-
metadata: Record<string, string
|
|
1131
|
+
metadata: Record<string, string>;
|
|
1123
1132
|
prompt: string;
|
|
1124
1133
|
analyticsCategory: string;
|
|
1125
1134
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -135,6 +135,7 @@ export interface customEnv {
|
|
|
135
135
|
GATEKEEPER_URL?: string;
|
|
136
136
|
FEATURE_AI_INTEGRATION_ENABLE?: boolean;
|
|
137
137
|
LOGIN_PAGE_IMAGE?: string;
|
|
138
|
+
FEATURE_ASK_DEVTRON_EXPERT?: boolean;
|
|
138
139
|
/**
|
|
139
140
|
* If true, the manage traffic feature is enabled in apps & app groups.
|
|
140
141
|
*
|
|
@@ -167,7 +168,6 @@ export interface customEnv {
|
|
|
167
168
|
* @default false
|
|
168
169
|
*/
|
|
169
170
|
FEATURE_STORAGE_ENABLE?: boolean;
|
|
170
|
-
FEATURE_ATHENA_DEBUG_MODE_ENABLE?: boolean;
|
|
171
171
|
}
|
|
172
172
|
declare global {
|
|
173
173
|
interface Window {
|