@devtron-labs/devtron-fe-common-lib 0.3.22-beta-10 → 0.3.22-beta-11
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/Common/Constants.d.ts +3 -0
- package/dist/Common/RJSF/widgets/Select.d.ts +1 -1
- package/dist/Common/RJSF/widgets/index.d.ts +1 -1
- package/dist/Common/Types.d.ts +7 -6
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/DTApplicationMetricsFormField.d.ts +3 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/constants.d.ts +2 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/index.d.ts +4 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/service.d.ts +4 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +171 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +2 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/constants.d.ts +5 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/index.d.ts +5 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +27 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +2 -0
- package/dist/Pages/{CDPipeline → Applications/DevtronApps/Details/CDPipeline}/types.d.ts +4 -4
- package/dist/Pages/{App → Applications/DevtronApps/Details}/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/index.d.ts +1 -0
- package/dist/Pages/Applications/index.d.ts +1 -0
- package/dist/Pages/index.d.ts +1 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/utils.d.ts +11 -0
- package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +4 -15
- package/dist/Shared/Components/CICDHistory/utils.d.ts +0 -1
- package/dist/Shared/Components/DatePicker/types.d.ts +6 -11
- package/dist/Shared/Components/DatePicker/utils.d.ts +18 -7
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +2 -1
- package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +1 -1
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +0 -1
- package/dist/Shared/Components/InvalidYAMLTippy/InvalidYAMLTippyWrapper.d.ts +3 -0
- package/dist/Shared/Components/InvalidYAMLTippy/constants.d.ts +1 -0
- package/dist/Shared/Components/InvalidYAMLTippy/index.d.ts +2 -0
- package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +6 -0
- package/dist/Shared/Components/InvalidYAMLTippy/utils.d.ts +2 -0
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/config/Table.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +0 -2
- package/dist/Shared/Components/Security/SecuritySummaryCard/SecuritySummaryCard.d.ts +1 -1
- package/dist/Shared/Components/Security/SecuritySummaryCard/types.d.ts +0 -1
- package/dist/Shared/Components/Security/Vulnerabilities/Vulnerabilities.d.ts +1 -1
- package/dist/Shared/Components/Security/Vulnerabilities/index.d.ts +1 -0
- package/dist/Shared/Components/Security/Vulnerabilities/service.d.ts +2 -0
- package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +2 -2
- package/dist/Shared/Components/Security/Vulnerabilities/utils.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +11 -10
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +9 -1
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +2 -0
- package/dist/Shared/Hooks/useForm/useForm.d.ts +29 -26
- package/dist/Shared/Hooks/useForm/useForm.types.d.ts +15 -8
- package/dist/Shared/Hooks/useForm/useForm.utils.d.ts +1 -1
- package/dist/Shared/Services/app.types.d.ts +35 -22
- package/dist/Shared/constants.d.ts +3 -1
- package/dist/Shared/types.d.ts +12 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-CocL_SIN.js → cssMode-DPfdVIlJ.js} +1 -1
- package/dist/{freemarker2-CF17u7kS.js → freemarker2-BFJxlWnj.js} +1 -1
- package/dist/{handlebars-4uTCIyRt.js → handlebars-CoNebpqS.js} +1 -1
- package/dist/{html-C5WFuDRO.js → html-QjpP_0Xp.js} +1 -1
- package/dist/{htmlMode-DjplYt3l.js → htmlMode-CK2SDpZ6.js} +1 -1
- package/dist/{index-BfpcGp8O.js → index-0FuAvzk5.js} +47222 -46945
- package/dist/index.js +544 -521
- package/dist/{javascript-WxzEX4r1.js → javascript-t0NKXXRr.js} +1 -1
- package/dist/{jsonMode-BB6n-65w.js → jsonMode-6tfAHLN8.js} +1 -1
- package/dist/{liquid-DhIc9hPQ.js → liquid-DievHSFI.js} +1 -1
- package/dist/{mdx-Bif7pfos.js → mdx-CB9DJcVd.js} +1 -1
- package/dist/{python-C-x68s-r.js → python-DjCp-0BZ.js} +1 -1
- package/dist/{razor-D5rDqdWw.js → razor-DO3E9Aj6.js} +1 -1
- package/dist/{tsMode-DTTybbiB.js → tsMode-CMcG0umW.js} +1 -1
- package/dist/{typescript-B1Y6GyW6.js → typescript-URSNJMeo.js} +1 -1
- package/dist/{xml-CYRvtpbR.js → xml-Cl2vSlMw.js} +1 -1
- package/dist/{yaml-CvZusIFq.js → yaml-BgubCkEu.js} +1 -1
- package/package.json +4 -3
- package/dist/Pages/App/AppConfigurations/index.d.ts +0 -1
- package/dist/Pages/App/AppConfigurations/utils.d.ts +0 -2
- /package/dist/Pages/{CDPipeline → Applications/DevtronApps/Details/CDPipeline}/index.d.ts +0 -0
|
@@ -5,6 +5,7 @@ export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
|
|
|
5
5
|
export declare const DOCUMENTATION_VERSION = "/v/v0.7";
|
|
6
6
|
export declare const DISCORD_LINK = "https://discord.devtron.ai/";
|
|
7
7
|
export declare const DOCUMENTATION: {
|
|
8
|
+
APP_METRICS: string;
|
|
8
9
|
APP_TAGS: string;
|
|
9
10
|
APP_OVERVIEW_TAGS: string;
|
|
10
11
|
BLOB_STORAGE: string;
|
|
@@ -48,6 +49,7 @@ export declare const URLS: {
|
|
|
48
49
|
export declare const ROUTES: {
|
|
49
50
|
APP: string;
|
|
50
51
|
APP_ARTIFACT_PROMOTE_MATERIAL: string;
|
|
52
|
+
APP_TEMPLATE_DATA: string;
|
|
51
53
|
PROJECT_LIST_MIN: string;
|
|
52
54
|
USER_CHECK_ROLE: string;
|
|
53
55
|
IMAGE_TAGGING: string;
|
|
@@ -250,6 +252,7 @@ export declare const API_STATUS_CODES: {
|
|
|
250
252
|
PERMISSION_DENIED: number;
|
|
251
253
|
NOT_FOUND: number;
|
|
252
254
|
EXPECTATION_FAILED: number;
|
|
255
|
+
LOCKED: number;
|
|
253
256
|
};
|
|
254
257
|
export declare enum SERVER_MODE {
|
|
255
258
|
EA_ONLY = "EA_ONLY",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { WidgetProps } from '@rjsf/utils';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const Select: (props: WidgetProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Checkbox as CheckboxWidget } from './Checkbox';
|
|
2
|
-
export { SelectWidget } from './Select';
|
|
2
|
+
export { Select as SelectWidget } from './Select';
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -546,6 +546,11 @@ export interface VulnerabilityType {
|
|
|
546
546
|
policy: string;
|
|
547
547
|
url?: string;
|
|
548
548
|
}
|
|
549
|
+
export interface ScanVulnerabilitiesTableProps {
|
|
550
|
+
vulnerabilities: VulnerabilityType[];
|
|
551
|
+
hidePolicy?: boolean;
|
|
552
|
+
shouldStick?: boolean;
|
|
553
|
+
}
|
|
549
554
|
export interface MaterialInfo {
|
|
550
555
|
revision: string;
|
|
551
556
|
modifiedTime: string | Date;
|
|
@@ -661,6 +666,8 @@ export interface AppEnvironment {
|
|
|
661
666
|
isProtected?: boolean;
|
|
662
667
|
pipelineId?: number;
|
|
663
668
|
latestCdWorkflowRunnerId?: number;
|
|
669
|
+
commits?: string[];
|
|
670
|
+
ciArtifactId?: number;
|
|
664
671
|
}
|
|
665
672
|
export interface Strategy {
|
|
666
673
|
deploymentTemplate: string;
|
|
@@ -779,12 +786,6 @@ export interface CiPipeline {
|
|
|
779
786
|
isOffendingMandatoryPlugin?: boolean;
|
|
780
787
|
pipelineType?: string;
|
|
781
788
|
}
|
|
782
|
-
export interface DeploymentChartVersionType {
|
|
783
|
-
chartRefId: number;
|
|
784
|
-
chartVersion: string;
|
|
785
|
-
chartType: string;
|
|
786
|
-
type: number;
|
|
787
|
-
}
|
|
788
789
|
export interface ChartVersionAndTypeSelectorProps {
|
|
789
790
|
setSelectedChartRefId: React.Dispatch<React.SetStateAction<number>>;
|
|
790
791
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DTApplicationMetricsFormFieldProps } from './types';
|
|
2
|
+
declare const DTApplicationMetricsFormField: ({ showApplicationMetrics, isLoading, selectedChart, isDisabled, toggleAppMetrics, isAppMetricsEnabled, onlyShowCurrentStatus, parsingError, restoreLastSavedYAML, }: DTApplicationMetricsFormFieldProps) => JSX.Element;
|
|
3
|
+
export default DTApplicationMetricsFormField;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ResponseType } from '../../../../../../Common/Types';
|
|
2
|
+
import { GetDeploymentManifestProps, GetResolvedDeploymentTemplateProps, GetResolvedDeploymentTemplateReturnType, ResolvedDeploymentTemplateDTO } from './types';
|
|
3
|
+
export declare const getDeploymentManifest: (params: GetDeploymentManifestProps, abortSignal?: AbortSignal) => Promise<ResponseType<ResolvedDeploymentTemplateDTO>>;
|
|
4
|
+
export declare const getResolvedDeploymentTemplate: (params: GetResolvedDeploymentTemplateProps, signal?: AbortSignal) => Promise<GetResolvedDeploymentTemplateReturnType>;
|
package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { DraftMetadataDTO, TemplateListType } from '../../../../../../Shared/Services';
|
|
2
|
+
import { OverrideMergeStrategyType } from '../types';
|
|
3
|
+
export type DeploymentChartOptionkind = 'base' | 'env' | 'chartVersion' | 'deployment';
|
|
4
|
+
export interface DeploymentChartVersionType {
|
|
5
|
+
id: number | string;
|
|
6
|
+
version: string;
|
|
7
|
+
/**
|
|
8
|
+
* BEWARE: This field may or may not exist, not sure why it was there in first place
|
|
9
|
+
*/
|
|
10
|
+
chartRefId?: number;
|
|
11
|
+
type: number;
|
|
12
|
+
deploymentTemplateHistoryId: number;
|
|
13
|
+
pipelineId: number;
|
|
14
|
+
environmentId: number;
|
|
15
|
+
name: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
isAppMetricsSupported: boolean;
|
|
18
|
+
userUploaded?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface DeploymentChartOptionType extends DeploymentChartVersionType {
|
|
21
|
+
value: string | number;
|
|
22
|
+
label: string;
|
|
23
|
+
kind?: DeploymentChartOptionkind;
|
|
24
|
+
}
|
|
25
|
+
export interface ChartMetadataType {
|
|
26
|
+
chartDescription: string;
|
|
27
|
+
}
|
|
28
|
+
export interface GetResolvedDeploymentTemplateReturnType {
|
|
29
|
+
resolvedData: string;
|
|
30
|
+
data: string;
|
|
31
|
+
areVariablesPresent: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare enum ValuesAndManifestFlagDTO {
|
|
34
|
+
DEPLOYMENT_TEMPLATE = 1,
|
|
35
|
+
MANIFEST = 2
|
|
36
|
+
}
|
|
37
|
+
type GetResolvedDeploymentTemplateCustomValuesPayloadType = {
|
|
38
|
+
/**
|
|
39
|
+
* String to be resolved
|
|
40
|
+
*/
|
|
41
|
+
values: string;
|
|
42
|
+
type?: never;
|
|
43
|
+
deploymentTemplateHistoryId?: never;
|
|
44
|
+
pipelineId?: never;
|
|
45
|
+
};
|
|
46
|
+
type GetHistoricResolvedDeploymentTemplatePayloadType = {
|
|
47
|
+
values?: never;
|
|
48
|
+
type: TemplateListType;
|
|
49
|
+
deploymentTemplateHistoryId: number;
|
|
50
|
+
pipelineId: number;
|
|
51
|
+
};
|
|
52
|
+
type GetDeploymentTemplateAndManifestBasePayload = {
|
|
53
|
+
appId: number;
|
|
54
|
+
/**
|
|
55
|
+
* EnvId for the given VALUE
|
|
56
|
+
*/
|
|
57
|
+
envId?: number;
|
|
58
|
+
chartRefId: number;
|
|
59
|
+
} & (GetHistoricResolvedDeploymentTemplatePayloadType | GetResolvedDeploymentTemplateCustomValuesPayloadType);
|
|
60
|
+
export type GetResolvedDeploymentTemplatePayloadType = {
|
|
61
|
+
valuesAndManifestFlag: ValuesAndManifestFlagDTO.DEPLOYMENT_TEMPLATE;
|
|
62
|
+
} & GetDeploymentTemplateAndManifestBasePayload;
|
|
63
|
+
export type GetResolvedDeploymentTemplateProps = GetResolvedDeploymentTemplatePayloadType;
|
|
64
|
+
export type GetDeploymentManifestProps = GetDeploymentTemplateAndManifestBasePayload;
|
|
65
|
+
export type GetDeploymentManifestPayloadType = {
|
|
66
|
+
valuesAndManifestFlag: ValuesAndManifestFlagDTO.MANIFEST;
|
|
67
|
+
} & GetDeploymentTemplateAndManifestBasePayload;
|
|
68
|
+
export interface ResolvedDeploymentTemplateDTO {
|
|
69
|
+
/**
|
|
70
|
+
* Template with encoded variables
|
|
71
|
+
*/
|
|
72
|
+
data: string;
|
|
73
|
+
/**
|
|
74
|
+
* Template with resolved variables
|
|
75
|
+
*/
|
|
76
|
+
resolvedData: string;
|
|
77
|
+
variableSnapshot: Record<string, string>;
|
|
78
|
+
}
|
|
79
|
+
export interface ManifestTemplateDTO extends Pick<ResolvedDeploymentTemplateDTO, 'data'> {
|
|
80
|
+
}
|
|
81
|
+
interface DeploymentTemplateChartConfigType {
|
|
82
|
+
id: number;
|
|
83
|
+
/**
|
|
84
|
+
* Not consumed on UI just need to send in payload while update
|
|
85
|
+
*/
|
|
86
|
+
refChartTemplate: string;
|
|
87
|
+
/**
|
|
88
|
+
* Not consumed on UI just need to send in payload while update
|
|
89
|
+
*/
|
|
90
|
+
refChartTemplateVersion: string;
|
|
91
|
+
chartRefId: number;
|
|
92
|
+
readme: string;
|
|
93
|
+
}
|
|
94
|
+
export interface SelectedChartDetailsType {
|
|
95
|
+
selectedChartRefId: number;
|
|
96
|
+
selectedChart: DeploymentChartVersionType;
|
|
97
|
+
}
|
|
98
|
+
interface EnvironmentConfigType {
|
|
99
|
+
id: number;
|
|
100
|
+
status: number;
|
|
101
|
+
manualReviewed: boolean;
|
|
102
|
+
active: boolean;
|
|
103
|
+
namespace: string;
|
|
104
|
+
}
|
|
105
|
+
interface BaseDeploymentTemplateConfigState {
|
|
106
|
+
chartConfig: DeploymentTemplateChartConfigType;
|
|
107
|
+
isOverridden?: never;
|
|
108
|
+
environmentConfig?: never;
|
|
109
|
+
mergeStrategy?: never;
|
|
110
|
+
}
|
|
111
|
+
interface EnvironmentOverrideDeploymentTemplateConfigState {
|
|
112
|
+
chartConfig?: never;
|
|
113
|
+
isOverridden: boolean;
|
|
114
|
+
environmentConfig: EnvironmentConfigType;
|
|
115
|
+
mergeStrategy: OverrideMergeStrategyType;
|
|
116
|
+
}
|
|
117
|
+
export interface DeploymentTemplateConfigCommonState extends SelectedChartDetailsType {
|
|
118
|
+
/**
|
|
119
|
+
* The first ever state of the deployment template
|
|
120
|
+
*/
|
|
121
|
+
originalTemplate: Record<string, string>;
|
|
122
|
+
isAppMetricsEnabled: boolean;
|
|
123
|
+
readme: string;
|
|
124
|
+
schema: Record<string, string>;
|
|
125
|
+
guiSchema: string;
|
|
126
|
+
latestDraft?: DraftMetadataDTO;
|
|
127
|
+
editorTemplate: string;
|
|
128
|
+
editorTemplateWithoutLockedKeys: string;
|
|
129
|
+
}
|
|
130
|
+
export type DeploymentTemplateConfigState = DeploymentTemplateConfigCommonState & (BaseDeploymentTemplateConfigState | EnvironmentOverrideDeploymentTemplateConfigState);
|
|
131
|
+
type DTApplicationMetricsReadOnlyProps = {
|
|
132
|
+
isLoading?: never;
|
|
133
|
+
selectedChart?: never;
|
|
134
|
+
isDisabled?: never;
|
|
135
|
+
toggleAppMetrics?: never;
|
|
136
|
+
/**
|
|
137
|
+
* @default - false
|
|
138
|
+
* If true, would only text depicting the information whether the application metrics is enabled or not
|
|
139
|
+
*/
|
|
140
|
+
onlyShowCurrentStatus: true;
|
|
141
|
+
parsingError?: never;
|
|
142
|
+
restoreLastSavedYAML?: never;
|
|
143
|
+
};
|
|
144
|
+
type DTApplicationMetricsParseErrorProps = {
|
|
145
|
+
parsingError: string;
|
|
146
|
+
restoreLastSavedYAML: () => void;
|
|
147
|
+
} | {
|
|
148
|
+
parsingError?: never;
|
|
149
|
+
restoreLastSavedYAML?: never;
|
|
150
|
+
};
|
|
151
|
+
type DTApplicationMetricsActionProps = {
|
|
152
|
+
isLoading: boolean;
|
|
153
|
+
selectedChart: DeploymentChartVersionType;
|
|
154
|
+
isDisabled: boolean;
|
|
155
|
+
toggleAppMetrics: () => void;
|
|
156
|
+
onlyShowCurrentStatus?: false;
|
|
157
|
+
} & DTApplicationMetricsParseErrorProps;
|
|
158
|
+
export type DTApplicationMetricsFormFieldProps = {
|
|
159
|
+
isAppMetricsEnabled: boolean;
|
|
160
|
+
showApplicationMetrics: boolean;
|
|
161
|
+
} & (DTApplicationMetricsActionProps | DTApplicationMetricsReadOnlyProps);
|
|
162
|
+
export declare enum CompareFromApprovalOptionsValuesType {
|
|
163
|
+
APPROVAL_PENDING = 1,
|
|
164
|
+
VALUES_FROM_DRAFT = 2
|
|
165
|
+
}
|
|
166
|
+
export declare enum DryRunEditorMode {
|
|
167
|
+
APPROVAL_PENDING = "approvalPending",
|
|
168
|
+
VALUES_FROM_DRAFT = "valuesFromDraft",
|
|
169
|
+
PUBLISHED_VALUES = "publishedValues"
|
|
170
|
+
}
|
|
171
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
export declare enum ConfigHeaderTabType {
|
|
3
|
+
VALUES = "values",
|
|
4
|
+
INHERITED = "inherited",
|
|
5
|
+
DRY_RUN = "dryRun"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ProtectConfigTabsType {
|
|
8
|
+
PUBLISHED = "published",
|
|
9
|
+
COMPARE = "compare",
|
|
10
|
+
EDIT_DRAFT = "editDraft"
|
|
11
|
+
}
|
|
12
|
+
export declare enum OverrideMergeStrategyType {
|
|
13
|
+
PATCH = "patch",
|
|
14
|
+
REPLACE = "replace"
|
|
15
|
+
}
|
|
16
|
+
export interface ConfigToolbarPopupMenuConfigType {
|
|
17
|
+
text: string;
|
|
18
|
+
onClick: (event: SyntheticEvent) => void;
|
|
19
|
+
dataTestId: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
icon?: ReactNode | null;
|
|
22
|
+
variant?: 'default' | 'negative';
|
|
23
|
+
}
|
|
24
|
+
export declare enum ConfigToolbarPopupNodeType {
|
|
25
|
+
DISCARD_DRAFT = "discardDraft",
|
|
26
|
+
EDIT_HISTORY = "editHistory"
|
|
27
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BuildStageType, FormType } from '
|
|
2
|
-
import { DeploymentAppTypes, UserApprovalConfigType } from '
|
|
3
|
-
import { DeploymentStrategy } from '
|
|
4
|
-
import { EnvListMinDTO } from '
|
|
1
|
+
import { BuildStageType, FormType } from '../../../../../Common/CIPipeline.Types';
|
|
2
|
+
import { DeploymentAppTypes, UserApprovalConfigType } from '../../../../../Common/Types';
|
|
3
|
+
import { DeploymentStrategy } from '../../../../../Shared/Components';
|
|
4
|
+
import { EnvListMinDTO } from '../../../../../Shared/types';
|
|
5
5
|
interface ConfigSecretType {
|
|
6
6
|
label: string;
|
|
7
7
|
value: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Details';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DevtronApps';
|
package/dist/Pages/index.d.ts
CHANGED
package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DeploymentTemplateHistoryType } from '../types';
|
|
2
|
-
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, comparisonBodyClassName,
|
|
2
|
+
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, comparisonBodyClassName, sortingConfig, }: DeploymentTemplateHistoryType) => JSX.Element;
|
|
3
3
|
export default DeploymentHistoryDiffView;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const dropdownStyles: {
|
|
2
|
+
menu: (base: any) => any;
|
|
3
|
+
control: (base: any) => any;
|
|
4
|
+
singleValue: (base: any) => any;
|
|
5
|
+
option: (base: any, state: any) => any;
|
|
6
|
+
valueContainer: (base: any) => any;
|
|
7
|
+
indicatorsContainer: (base: any) => any;
|
|
8
|
+
dropdownIndicator: (styles: any) => any;
|
|
9
|
+
container: (base: any, state: any) => any;
|
|
10
|
+
};
|
|
11
|
+
export declare const Option: (props: any) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LogStageAccordionProps } from './types';
|
|
2
|
-
declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, fullScreenView,
|
|
2
|
+
declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, fullScreenView, }: LogStageAccordionProps) => JSX.Element;
|
|
3
3
|
export default LogStageAccordion;
|
|
@@ -394,7 +394,10 @@ export interface DeploymentTemplateHistoryType {
|
|
|
394
394
|
isDeleteDraft?: boolean;
|
|
395
395
|
rootClassName?: string;
|
|
396
396
|
comparisonBodyClassName?: string;
|
|
397
|
-
|
|
397
|
+
sortingConfig?: {
|
|
398
|
+
sortBy: string;
|
|
399
|
+
sortOrder: SortingOrder;
|
|
400
|
+
};
|
|
398
401
|
}
|
|
399
402
|
export interface DeploymentHistoryDetailRes extends ResponseType {
|
|
400
403
|
result?: DeploymentHistoryDetail;
|
|
@@ -635,25 +638,11 @@ export interface LogStageAccordionProps extends StageDetailType, Pick<LogsRender
|
|
|
635
638
|
* A stage is loading if it is last in current stage list and event is not closed
|
|
636
639
|
*/
|
|
637
640
|
isLoading: boolean;
|
|
638
|
-
searchIndex: string;
|
|
639
641
|
}
|
|
640
642
|
export interface CreateMarkupReturnType {
|
|
641
643
|
__html: string;
|
|
642
644
|
isSearchKeyPresent: boolean;
|
|
643
645
|
}
|
|
644
|
-
export type CreateMarkupPropsType = {
|
|
645
|
-
log: string;
|
|
646
|
-
currentIndex?: never;
|
|
647
|
-
targetSearchKey?: never;
|
|
648
|
-
searchMatchResults?: never;
|
|
649
|
-
searchIndex?: never;
|
|
650
|
-
} | {
|
|
651
|
-
log: string;
|
|
652
|
-
currentIndex: number;
|
|
653
|
-
targetSearchKey: string;
|
|
654
|
-
searchMatchResults: string[];
|
|
655
|
-
searchIndex: string;
|
|
656
|
-
};
|
|
657
646
|
export type TriggerHistoryFilterCriteriaType = `${string}|${string}|${string}`[];
|
|
658
647
|
export declare const terminalStatus: Set<string>;
|
|
659
648
|
export declare const statusSet: Set<string>;
|
|
@@ -5,4 +5,3 @@ export declare const buildHoverHtmlForWebhook: (eventName: any, condition: any,
|
|
|
5
5
|
export declare const renderIcon: (iconState: string) => JSX.Element;
|
|
6
6
|
export declare const getStageStatusIcon: (status: StageStatusType) => JSX.Element;
|
|
7
7
|
export declare const getTriggerStatusIcon: (triggerDetailStatus: string) => JSX.Element;
|
|
8
|
-
export declare const getLogSearchIndex: ({ stageIndex, lineNumberInsideStage, }: Record<"stageIndex" | "lineNumberInsideStage", number>) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Moment } from 'moment';
|
|
2
2
|
import { SelectInstance } from 'react-select';
|
|
3
3
|
import { SingleDatePickerShape } from 'react-dates';
|
|
4
|
-
import {
|
|
4
|
+
import { OptionType } from '../../../Common';
|
|
5
5
|
export interface SingleDatePickerProps {
|
|
6
6
|
/**
|
|
7
7
|
* Date value to be displayed
|
|
@@ -32,14 +32,13 @@ export interface SingleDatePickerProps {
|
|
|
32
32
|
*/
|
|
33
33
|
dataTestId?: string;
|
|
34
34
|
}
|
|
35
|
-
export type DateSelectPickerType = SelectPickerOptionType<string>;
|
|
36
35
|
export interface MonthlySelectProps extends Pick<SingleDatePickerProps, 'dataTestId'> {
|
|
37
36
|
/**
|
|
38
37
|
* Current selected date object
|
|
39
38
|
*
|
|
40
39
|
* @default 'new Date()'
|
|
41
40
|
*/
|
|
42
|
-
selectedMonthlyDate:
|
|
41
|
+
selectedMonthlyDate: OptionType;
|
|
43
42
|
/**
|
|
44
43
|
* Onchange handle picker type
|
|
45
44
|
*/
|
|
@@ -55,7 +54,7 @@ export interface TimeSelectProps {
|
|
|
55
54
|
/**
|
|
56
55
|
* Handler for updating the date from the parent component
|
|
57
56
|
*/
|
|
58
|
-
onChange: (date:
|
|
57
|
+
onChange: (date: Date) => void;
|
|
59
58
|
/**
|
|
60
59
|
* Props for the time picker
|
|
61
60
|
*/
|
|
@@ -71,7 +70,7 @@ export interface TimeSelectProps {
|
|
|
71
70
|
/**
|
|
72
71
|
* Id for the component
|
|
73
72
|
*/
|
|
74
|
-
default12HourTime:
|
|
73
|
+
default12HourTime: OptionType;
|
|
75
74
|
/**
|
|
76
75
|
* Data test id for time picker
|
|
77
76
|
*/
|
|
@@ -79,9 +78,9 @@ export interface TimeSelectProps {
|
|
|
79
78
|
/**
|
|
80
79
|
* To hide time selector
|
|
81
80
|
*/
|
|
82
|
-
selectedTimeOption:
|
|
81
|
+
selectedTimeOption: OptionType;
|
|
83
82
|
}
|
|
84
|
-
export interface DateTimePickerProps extends Pick<TimeSelectProps, 'date' | 'timePickerProps' | 'error' | 'disabled' | 'dataTestIdForTime'>, Pick<SingleDatePickerShape, 'openDirection'> {
|
|
83
|
+
export interface DateTimePickerProps extends Pick<TimeSelectProps, 'date' | 'onChange' | 'timePickerProps' | 'error' | 'disabled' | 'dataTestIdForTime'>, Pick<SingleDatePickerShape, 'openDirection'> {
|
|
85
84
|
/**
|
|
86
85
|
* Props for the date picker
|
|
87
86
|
*/
|
|
@@ -114,8 +113,4 @@ export interface DateTimePickerProps extends Pick<TimeSelectProps, 'date' | 'tim
|
|
|
114
113
|
* Data test id for date picker
|
|
115
114
|
*/
|
|
116
115
|
dataTestidForDate?: string;
|
|
117
|
-
/**
|
|
118
|
-
* Function to handle date change
|
|
119
|
-
*/
|
|
120
|
-
onChange: (date: Date) => void;
|
|
121
116
|
}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OptionType } from '../../../Common';
|
|
2
|
+
export declare const getTimePickerStyles: () => {
|
|
3
|
+
container: (base: any) => any;
|
|
4
|
+
control: (base: any, state: any) => any;
|
|
5
|
+
menu: (base: any) => any;
|
|
6
|
+
singleValue: (base: any) => any;
|
|
7
|
+
placeholder: (base: any) => any;
|
|
8
|
+
option: (base: any, state: any) => any;
|
|
9
|
+
valueContainer: (base: any) => any;
|
|
10
|
+
dropdownIndicator: (base: any) => any;
|
|
11
|
+
};
|
|
2
12
|
/**
|
|
3
13
|
* Return the options for the dates in label and value format
|
|
4
14
|
*/
|
|
@@ -8,9 +18,9 @@ export declare const MONTHLY_DATE_OPTIONS: {
|
|
|
8
18
|
}[];
|
|
9
19
|
/**
|
|
10
20
|
* Return the options for the time in label and value format
|
|
11
|
-
* @type {
|
|
21
|
+
* @type {OptionType[]}
|
|
12
22
|
*/
|
|
13
|
-
export declare const DEFAULT_TIME_OPTIONS:
|
|
23
|
+
export declare const DEFAULT_TIME_OPTIONS: OptionType[];
|
|
14
24
|
/**
|
|
15
25
|
* Get the time value from the date object in the format: `hh:mm:ss`
|
|
16
26
|
*/
|
|
@@ -18,10 +28,7 @@ export declare const getTimeValue: (currentDateObj: Date) => string;
|
|
|
18
28
|
/**
|
|
19
29
|
* Updates the time in the given date object and returns the updated object
|
|
20
30
|
*/
|
|
21
|
-
export declare const updateTime: (currentDateObj: Date, timeString: string) =>
|
|
22
|
-
label: Date;
|
|
23
|
-
value: Date;
|
|
24
|
-
};
|
|
31
|
+
export declare const updateTime: (currentDateObj: Date, timeString: string) => Date;
|
|
25
32
|
/**
|
|
26
33
|
* Updates the date in the given date object and returns the updated object
|
|
27
34
|
*/
|
|
@@ -32,3 +39,7 @@ export declare const updateDate: (currentDateObj: Date, newDate: Date) => Date;
|
|
|
32
39
|
* @returns
|
|
33
40
|
*/
|
|
34
41
|
export declare const getDefaultDateFromTimeToLive: (timeToLive: string, isTomorrow?: boolean) => Date;
|
|
42
|
+
/**
|
|
43
|
+
* Clock icon for the time picker
|
|
44
|
+
*/
|
|
45
|
+
export declare const DropdownIndicatorTimePicker: (props: any) => JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SortingOrder } from '../../../Common/Constants';
|
|
2
|
-
import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType
|
|
2
|
+
import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType } from '../../Services';
|
|
3
|
+
import { ManifestTemplateDTO } from '../../../Pages/Applications';
|
|
3
4
|
import { DeploymentHistoryDetail } from '../CICDHistory';
|
|
4
5
|
import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
|
|
5
6
|
import { SelectPickerProps } from '../SelectPicker';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ImageCardAccordionProps } from './types';
|
|
2
|
-
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId,
|
|
2
|
+
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, changesCard, isScanned, isScanEnabled, SecurityModalSidebar, getSecurityScan, }: ImageCardAccordionProps) => JSX.Element;
|
|
3
3
|
export default ImageCardAccordion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_INVALID_YAML_ERROR = "The provided YAML is invalid. Please provide valid YAML.";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiResponseResultType, CodeScan, DetailViewDataType, EmptyStateType, InfoCardPropsType, OpenDetailViewButtonProps, SecurityModalStateType, StatusType, TablePropsType } from '../types';
|
|
2
|
-
export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"]
|
|
2
|
+
export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"]) => {
|
|
3
3
|
headers: ({
|
|
4
4
|
headerText: string;
|
|
5
5
|
isSortable: boolean;
|
|
@@ -95,6 +95,6 @@ export declare const getCodeScanExposedSecrets: (data: CodeScan["exposedSecrets"
|
|
|
95
95
|
})[];
|
|
96
96
|
}[];
|
|
97
97
|
};
|
|
98
|
-
export declare const getCodeScanTableData: (data: CodeScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]
|
|
98
|
+
export declare const getCodeScanTableData: (data: CodeScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
|
|
99
99
|
export declare const getCodeScanInfoCardData: (data: CodeScan, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
|
100
100
|
export declare const getCodeScanEmptyState: (data: ApiResponseResultType, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DetailViewDataType, ImageScan, SecurityModalStateType, TablePropsType, InfoCardPropsType, EmptyStateType, ApiResponseResultType, OpenDetailViewButtonProps } from '../types';
|
|
2
|
-
export declare const getImageScanTableData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]
|
|
2
|
+
export declare const getImageScanTableData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
|
|
3
3
|
export declare const getImageScanInfoCardData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
|
4
4
|
export declare const getImageScanEmptyState: (data: ApiResponseResultType, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ApiResponseResultType, OpenDetailViewButtonProps, SecurityModalStateType, TablePropsType } from '../types';
|
|
2
|
-
export declare const getTableData: (data: ApiResponseResultType, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]
|
|
2
|
+
export declare const getTableData: (data: ApiResponseResultType, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
|
|
@@ -120,7 +120,6 @@ export interface CodeScanVulnerabilityType {
|
|
|
120
120
|
package: string;
|
|
121
121
|
currentVersion: string;
|
|
122
122
|
fixedInVersion: string;
|
|
123
|
-
permission?: string;
|
|
124
123
|
}
|
|
125
124
|
export interface ImageScanVulnerabilityType extends CodeScanVulnerabilityType {
|
|
126
125
|
target?: string;
|
|
@@ -214,7 +213,6 @@ interface SecurityModalBaseProps extends Partial<Pick<SidebarPropsType, 'isExter
|
|
|
214
213
|
isHelmApp?: boolean;
|
|
215
214
|
isResourceScan?: boolean;
|
|
216
215
|
isSecurityScanV2Enabled: boolean;
|
|
217
|
-
hidePolicy?: boolean;
|
|
218
216
|
}
|
|
219
217
|
export type SecurityModalPropsType = SecurityModalBaseProps;
|
|
220
218
|
export interface IndexedTextDisplayPropsType {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SecuritySummaryCardProps } from './types';
|
|
2
|
-
declare const SecuritySummaryCard: ({ severityCount, scanToolId, rootClassName, isHelmApp, SecurityModalSidebar, responseData, isSecurityScanV2Enabled,
|
|
2
|
+
declare const SecuritySummaryCard: ({ severityCount, scanToolId, rootClassName, isHelmApp, SecurityModalSidebar, responseData, isSecurityScanV2Enabled, }: SecuritySummaryCardProps) => JSX.Element;
|
|
3
3
|
export default SecuritySummaryCard;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { VulnerabilitiesProps } from './types';
|
|
2
|
-
declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId,
|
|
2
|
+
declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, setVulnerabilityCount, SecurityModalSidebar, getSecurityScan, }: VulnerabilitiesProps) => JSX.Element;
|
|
3
3
|
export default Vulnerabilities;
|