@devtron-labs/devtron-fe-common-lib 0.0.7 → 0.0.9-beta-1
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/BreadCrumb/BreadCrumb.d.ts +1 -29
- package/dist/Common/BreadCrumb/Types.d.ts +28 -0
- package/dist/Common/CIPipeline.Types.d.ts +263 -0
- package/dist/Common/Checkbox.d.ts +1 -14
- package/dist/Common/Constants.d.ts +18 -0
- package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +1 -1
- package/dist/Common/CustomTagSelector/TagLabelValueSelector.d.ts +1 -1
- package/dist/Common/CustomTagSelector/Types.d.ts +11 -3
- package/dist/Common/CustomTagSelector/ValidationRules.d.ts +1 -1
- package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +4 -0
- package/dist/Common/DeleteComponentModal/types.d.ts +15 -0
- package/dist/Common/Dialogs/ConfirmationDialog.d.ts +5 -16
- package/dist/Common/Dialogs/DialogForm.d.ts +1 -9
- package/dist/Common/Dialogs/Types.d.ts +28 -0
- package/dist/Common/EmptyState/EmptyState.d.ts +2 -1
- package/dist/Common/EmptyState/GenericEmptyState.d.ts +5 -0
- package/dist/Common/Error.d.ts +2 -2
- package/dist/Common/Helper.d.ts +31 -1
- package/dist/Common/InfoColorBar/InfoColourbar.d.ts +2 -15
- package/dist/Common/Modals/Modal.d.ts +2 -9
- package/dist/Common/MultiSelectCustomization.d.ts +1 -2
- package/dist/Common/PopupMenu.d.ts +4 -21
- package/dist/Common/Progressing.d.ts +4 -13
- package/dist/Common/RadioGroup/RadioGroup.d.ts +17 -0
- package/dist/Common/RadioGroup.d.ts +1 -10
- package/dist/Common/Reload.d.ts +2 -4
- package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +4 -0
- package/dist/Common/TippyCustomized.d.ts +2 -30
- package/dist/Common/Toggle/Toggle.d.ts +12 -0
- package/dist/Common/Types.d.ts +293 -0
- package/dist/Common/index.d.ts +7 -1
- package/dist/index.js +2472 -1948
- package/package.json +2 -2
- package/rollup.config.js +3 -3
- package/src/Assets/Icon/ic-help.svg +3 -0
- package/src/Assets/Icon/ic-info-filled.svg +7 -0
- package/src/Assets/Icon/ic-warning.svg +7 -0
- package/src/Assets/Img/app-not-deployed.png +0 -0
- package/src/Common/Api.ts +7 -1
- package/src/Common/BreadCrumb/BreadCrumb.tsx +1 -30
- package/src/Common/BreadCrumb/Types.ts +30 -0
- package/src/Common/CIPipeline.Types.ts +275 -0
- package/src/Common/Checkbox.tsx +3 -16
- package/src/Common/Constants.ts +21 -0
- package/src/Common/CustomTagSelector/ResizableTagTextArea.tsx +6 -4
- package/src/Common/CustomTagSelector/TagDetails.tsx +15 -2
- package/src/Common/CustomTagSelector/TagLabelSelect.tsx +7 -3
- package/src/Common/CustomTagSelector/TagLabelValueSelector.tsx +66 -26
- package/src/Common/CustomTagSelector/Types.ts +11 -3
- package/src/Common/CustomTagSelector/ValidationRules.ts +21 -18
- package/src/Common/DeleteComponentModal/DeleteComponent.tsx +95 -0
- package/src/Common/DeleteComponentModal/types.ts +15 -0
- package/src/Common/Dialogs/ConfirmationDialog.tsx +6 -4
- package/src/Common/Dialogs/DeleteDialog.tsx +45 -27
- package/src/Common/Dialogs/DialogForm.tsx +2 -11
- package/src/Common/Dialogs/Types.ts +29 -0
- package/src/Common/Drawer/Drawer.scss +12 -11
- package/src/Common/EmptyState/EmptyState.tsx +5 -5
- package/src/Common/EmptyState/GenericEmptyState.tsx +41 -0
- package/src/Common/EmptyState/emptyState.scss +4 -15
- package/src/Common/Error.tsx +13 -16
- package/src/Common/ErrorScreenNotFound.tsx +23 -30
- package/src/Common/Helper.tsx +258 -2
- package/src/Common/InfoColorBar/InfoColourbar.tsx +6 -18
- package/src/Common/Modals/Modal.tsx +7 -1
- package/src/Common/Modals/OpaqueModal.tsx +2 -2
- package/src/Common/Modals/VisibleModal.tsx +1 -1
- package/src/Common/Modals/VisibleModal2.tsx +1 -1
- package/src/Common/MultiSelectCustomization.tsx +3 -3
- package/src/Common/PopupMenu.tsx +23 -6
- package/src/Common/Progressing.tsx +8 -15
- package/src/Common/RadioGroup/RadioGroup.tsx +88 -0
- package/src/Common/RadioGroup/radioGroup.scss +46 -0
- package/src/Common/RadioGroup.tsx +3 -13
- package/src/Common/Reload.tsx +15 -10
- package/src/Common/Security/ScanVulnerabilitiesTable.tsx +55 -0
- package/src/Common/Security/scanVulnerabilities.css +67 -0
- package/src/Common/TippyCustomized.tsx +29 -31
- package/src/Common/Toggle/Toggle.scss +70 -0
- package/src/Common/Toggle/Toggle.tsx +38 -0
- package/src/Common/Types.ts +319 -0
- package/src/Common/index.ts +7 -1
- package/dist/27bfa7a87d0b7039.png +0 -0
- package/dist/b5d52f036bdcd3ed.png +0 -0
- package/src/Assets/Icon/ic-close.svg +0 -9
- /package/src/Assets/Img/{warning-medium.svg → delete-medium.svg} +0 -0
|
@@ -1,25 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
onToggleCallback?: any;
|
|
5
|
-
autoClose?: boolean;
|
|
6
|
-
autoPosition?: boolean;
|
|
7
|
-
}): any;
|
|
2
|
+
import { PopupMenuBodyType, PopupMenuButtonType, PopupMenuType } from './Types';
|
|
3
|
+
declare function PopupMenu({ children, onToggleCallback, autoClose, autoPosition, }: PopupMenuType): any;
|
|
8
4
|
declare namespace PopupMenu {
|
|
9
|
-
var Button: ({ children, disabled, rootClassName, tabIndex, onHover, isKebab, }:
|
|
10
|
-
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
rootClassName?: string;
|
|
13
|
-
tabIndex?: number;
|
|
14
|
-
onHover?: boolean;
|
|
15
|
-
isKebab?: boolean;
|
|
16
|
-
}) => JSX.Element;
|
|
17
|
-
var Body: ({ children, rootClassName, style, autoWidth, preventWheelDisable }: {
|
|
18
|
-
children?: any;
|
|
19
|
-
rootClassName?: string;
|
|
20
|
-
style?: {};
|
|
21
|
-
autoWidth?: boolean;
|
|
22
|
-
preventWheelDisable?: boolean;
|
|
23
|
-
}) => JSX.Element;
|
|
5
|
+
var Button: ({ children, disabled, rootClassName, tabIndex, onHover, isKebab, dataTestId, }: PopupMenuButtonType) => JSX.Element;
|
|
6
|
+
var Body: ({ children, rootClassName, style, autoWidth, preventWheelDisable, noBackDrop, }: PopupMenuBodyType) => JSX.Element;
|
|
24
7
|
}
|
|
25
8
|
export default PopupMenu;
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
size?: number;
|
|
6
|
-
fullHeight?: boolean;
|
|
7
|
-
theme?: 'white' | 'default';
|
|
8
|
-
styles?: React.CSSProperties;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
export declare function Progressing({ pageLoader, size, theme, styles }: ProgressingProps): JSX.Element;
|
|
12
|
-
export declare function DetailsProgressing({ loadingText, size, fullHeight, children, styles, }: ProgressingProps): JSX.Element;
|
|
13
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ProgressingProps } from './Types';
|
|
3
|
+
export declare function Progressing({ pageLoader, size, theme, styles, fillColor }: ProgressingProps): JSX.Element;
|
|
4
|
+
export declare function DetailsProgressing({ loadingText, size, fullHeight, styles, fillColor, children, }: ProgressingProps): JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './radioGroup.scss';
|
|
3
|
+
interface RadioGroupInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
onChange: any;
|
|
6
|
+
className?: string;
|
|
7
|
+
initialTab: string;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
showTippy?: boolean;
|
|
10
|
+
tippyContent?: any;
|
|
11
|
+
dataTestId?: string;
|
|
12
|
+
}
|
|
13
|
+
interface RadioGroupComposition {
|
|
14
|
+
Radio?: React.FC<any>;
|
|
15
|
+
}
|
|
16
|
+
declare const RadioGroup: React.FC<RadioGroupInterface> & RadioGroupComposition;
|
|
17
|
+
export default RadioGroup;
|
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
|
|
3
|
-
value: string;
|
|
4
|
-
}
|
|
2
|
+
import { RadioGroupItemProps, RadioGroupProps } from './Types';
|
|
5
3
|
export declare class RadioGroupItem extends Component<RadioGroupItemProps> {
|
|
6
4
|
render(): JSX.Element;
|
|
7
5
|
}
|
|
8
|
-
export interface RadioGroupProps {
|
|
9
|
-
value: string;
|
|
10
|
-
name: string;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
onChange: (event: any) => void;
|
|
13
|
-
className?: string;
|
|
14
|
-
}
|
|
15
6
|
export declare class RadioGroup extends Component<RadioGroupProps> {
|
|
16
7
|
render(): JSX.Element;
|
|
17
8
|
}
|
package/dist/Common/Reload.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
className?: string;
|
|
5
|
-
}): JSX.Element;
|
|
2
|
+
import { ReloadType } from './Types';
|
|
3
|
+
export default function Reload({ reload, className }: ReloadType): JSX.Element;
|
|
@@ -1,32 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { Placement } from 'tippy.js';
|
|
1
|
+
/// <reference types="react" />
|
|
3
2
|
import 'tippy.js/animations/shift-toward-subtle.css';
|
|
4
|
-
import {
|
|
5
|
-
interface TippyCustomizedProps {
|
|
6
|
-
theme: TippyTheme;
|
|
7
|
-
visible?: boolean;
|
|
8
|
-
heading?: string;
|
|
9
|
-
infoTextHeading?: string;
|
|
10
|
-
placement: Placement;
|
|
11
|
-
className?: string;
|
|
12
|
-
Icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
13
|
-
iconPath?: string;
|
|
14
|
-
iconClass?: string;
|
|
15
|
-
iconSize?: number;
|
|
16
|
-
onImageLoadError?: (e: any) => void;
|
|
17
|
-
onClose?: () => void;
|
|
18
|
-
infoText?: string;
|
|
19
|
-
showCloseButton?: boolean;
|
|
20
|
-
arrow?: boolean;
|
|
21
|
-
interactive?: boolean;
|
|
22
|
-
showOnCreate?: boolean;
|
|
23
|
-
trigger?: string;
|
|
24
|
-
animation?: string;
|
|
25
|
-
duration?: number;
|
|
26
|
-
additionalContent?: ReactNode;
|
|
27
|
-
documentationLink?: string;
|
|
28
|
-
documentationLinkText?: string;
|
|
29
|
-
children: React.ReactElement<any>;
|
|
30
|
-
}
|
|
3
|
+
import { TippyCustomizedProps } from './Types';
|
|
31
4
|
export declare function TippyCustomized(props: TippyCustomizedProps): JSX.Element;
|
|
32
|
-
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './Toggle.scss';
|
|
3
|
+
declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, ...props }: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
onSelect?: any;
|
|
7
|
+
color?: string;
|
|
8
|
+
rootClassName?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
dataTestId?: string;
|
|
11
|
+
}) => JSX.Element;
|
|
12
|
+
export default Toggle;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
+
import { Placement } from 'tippy.js';
|
|
3
|
+
import { VariableType } from './CIPipeline.Types';
|
|
1
4
|
export interface ResponseType {
|
|
2
5
|
code: number;
|
|
3
6
|
status: string;
|
|
@@ -25,3 +28,293 @@ export interface Teams {
|
|
|
25
28
|
name: string;
|
|
26
29
|
active: boolean;
|
|
27
30
|
}
|
|
31
|
+
export declare enum CHECKBOX_VALUE {
|
|
32
|
+
CHECKED = "CHECKED",
|
|
33
|
+
INTERMEDIATE = "INTERMEDIATE"
|
|
34
|
+
}
|
|
35
|
+
export interface CheckboxProps {
|
|
36
|
+
onChange: (event: any) => void;
|
|
37
|
+
isChecked: boolean;
|
|
38
|
+
value: 'CHECKED' | 'INTERMEDIATE';
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
tabIndex?: number;
|
|
41
|
+
rootClassName?: string;
|
|
42
|
+
onClick?: (event: any) => void;
|
|
43
|
+
id?: string;
|
|
44
|
+
dataTestId?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface TippyCustomizedProps {
|
|
47
|
+
theme: TippyTheme;
|
|
48
|
+
visible?: boolean;
|
|
49
|
+
heading?: ReactNode | string;
|
|
50
|
+
headingInfo?: string;
|
|
51
|
+
infoTextHeading?: string;
|
|
52
|
+
placement: Placement;
|
|
53
|
+
className?: string;
|
|
54
|
+
Icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
55
|
+
iconPath?: string;
|
|
56
|
+
iconClass?: string;
|
|
57
|
+
iconSize?: number;
|
|
58
|
+
onImageLoadError?: (e: any) => void;
|
|
59
|
+
onClose?: () => void;
|
|
60
|
+
infoText?: string;
|
|
61
|
+
showCloseButton?: boolean;
|
|
62
|
+
arrow?: boolean;
|
|
63
|
+
interactive?: boolean;
|
|
64
|
+
showOnCreate?: boolean;
|
|
65
|
+
trigger?: string;
|
|
66
|
+
animation?: string;
|
|
67
|
+
duration?: number;
|
|
68
|
+
additionalContent?: ReactNode;
|
|
69
|
+
documentationLink?: string;
|
|
70
|
+
documentationLinkText?: string;
|
|
71
|
+
children: React.ReactElement<any>;
|
|
72
|
+
}
|
|
73
|
+
export interface GenericEmptyStateType {
|
|
74
|
+
title: ReactNode;
|
|
75
|
+
image?: any;
|
|
76
|
+
classname?: string;
|
|
77
|
+
subTitle?: ReactNode;
|
|
78
|
+
isButtonAvailable?: boolean;
|
|
79
|
+
styles?: CSSProperties;
|
|
80
|
+
heightToDeduct?: number;
|
|
81
|
+
imageType?: string;
|
|
82
|
+
renderButton?: () => JSX.Element;
|
|
83
|
+
imageClassName?: string;
|
|
84
|
+
children?: ReactNode;
|
|
85
|
+
noImage?: boolean;
|
|
86
|
+
}
|
|
87
|
+
export declare enum ImageType {
|
|
88
|
+
Large = "large",
|
|
89
|
+
Medium = "medium"
|
|
90
|
+
}
|
|
91
|
+
export interface InfoColourBarType {
|
|
92
|
+
message: React.ReactNode;
|
|
93
|
+
classname: string;
|
|
94
|
+
Icon: any;
|
|
95
|
+
iconClass?: string;
|
|
96
|
+
iconSize?: number;
|
|
97
|
+
renderActionButton?: () => JSX.Element;
|
|
98
|
+
linkText?: React.ReactNode;
|
|
99
|
+
redirectLink?: string;
|
|
100
|
+
linkOnClick?: () => void;
|
|
101
|
+
linkClass?: string;
|
|
102
|
+
internalLink?: boolean;
|
|
103
|
+
styles?: CSSProperties;
|
|
104
|
+
}
|
|
105
|
+
export interface ReloadType {
|
|
106
|
+
reload?: (event?: any) => void;
|
|
107
|
+
className?: string;
|
|
108
|
+
}
|
|
109
|
+
export interface RadioGroupItemProps {
|
|
110
|
+
value: string;
|
|
111
|
+
dataTestId?: string;
|
|
112
|
+
}
|
|
113
|
+
export interface RadioGroupProps {
|
|
114
|
+
value: string;
|
|
115
|
+
name: string;
|
|
116
|
+
disabled?: boolean;
|
|
117
|
+
onChange: (event: any) => void;
|
|
118
|
+
className?: string;
|
|
119
|
+
}
|
|
120
|
+
export interface ProgressingProps {
|
|
121
|
+
pageLoader?: boolean;
|
|
122
|
+
loadingText?: string;
|
|
123
|
+
size?: number;
|
|
124
|
+
fullHeight?: boolean;
|
|
125
|
+
theme?: 'white' | 'default';
|
|
126
|
+
styles?: React.CSSProperties;
|
|
127
|
+
children?: React.ReactNode;
|
|
128
|
+
fillColor?: string;
|
|
129
|
+
}
|
|
130
|
+
export interface PopupMenuType {
|
|
131
|
+
children?: any;
|
|
132
|
+
onToggleCallback?: (isOpen: boolean) => void;
|
|
133
|
+
autoClose?: boolean;
|
|
134
|
+
autoPosition?: boolean;
|
|
135
|
+
}
|
|
136
|
+
export interface PopupMenuButtonType {
|
|
137
|
+
children?: ReactNode;
|
|
138
|
+
disabled?: boolean;
|
|
139
|
+
rootClassName?: string;
|
|
140
|
+
tabIndex?: number;
|
|
141
|
+
onHover?: boolean;
|
|
142
|
+
isKebab?: boolean;
|
|
143
|
+
dataTestId?: string;
|
|
144
|
+
}
|
|
145
|
+
export interface PopupMenuBodyType {
|
|
146
|
+
children?: ReactNode;
|
|
147
|
+
rootClassName?: string;
|
|
148
|
+
style?: React.CSSProperties;
|
|
149
|
+
autoWidth?: boolean;
|
|
150
|
+
preventWheelDisable?: boolean;
|
|
151
|
+
noBackDrop?: boolean;
|
|
152
|
+
}
|
|
153
|
+
export interface ModalType {
|
|
154
|
+
style?: React.CSSProperties;
|
|
155
|
+
children?: ReactNode;
|
|
156
|
+
modal?: boolean;
|
|
157
|
+
rootClassName?: string;
|
|
158
|
+
onClick?: any;
|
|
159
|
+
callbackRef?: (element?: any) => any;
|
|
160
|
+
preventWheelDisable?: boolean;
|
|
161
|
+
noBackDrop?: boolean;
|
|
162
|
+
}
|
|
163
|
+
export type CDModalTabType = 'SECURITY' | 'CHANGES';
|
|
164
|
+
export declare const CDModalTab: {
|
|
165
|
+
Security: CDModalTabType;
|
|
166
|
+
Changes: CDModalTabType;
|
|
167
|
+
};
|
|
168
|
+
export declare enum DeploymentNodeType {
|
|
169
|
+
PRECD = "PRECD",
|
|
170
|
+
CD = "CD",
|
|
171
|
+
POSTCD = "POSTCD",
|
|
172
|
+
APPROVAL = "APPROVAL"
|
|
173
|
+
}
|
|
174
|
+
export interface UserApprovalConfigType {
|
|
175
|
+
requiredCount: number;
|
|
176
|
+
}
|
|
177
|
+
interface ApprovalUserDataType {
|
|
178
|
+
dataId: number;
|
|
179
|
+
userActionTime: string;
|
|
180
|
+
userComment: string;
|
|
181
|
+
userEmail: string;
|
|
182
|
+
userId: number;
|
|
183
|
+
userResponse: number;
|
|
184
|
+
}
|
|
185
|
+
export interface UserApprovalMetadataType {
|
|
186
|
+
approvalRequestId: number;
|
|
187
|
+
approvalRuntimeState: number;
|
|
188
|
+
approvedUsersData: ApprovalUserDataType[];
|
|
189
|
+
requestedUserData: ApprovalUserDataType;
|
|
190
|
+
}
|
|
191
|
+
export interface CommonNodeAttr {
|
|
192
|
+
connectingCiPipelineId?: number;
|
|
193
|
+
parents: string | number[] | string[];
|
|
194
|
+
x: number;
|
|
195
|
+
y: number;
|
|
196
|
+
title: string;
|
|
197
|
+
description?: string;
|
|
198
|
+
triggerType?: string;
|
|
199
|
+
id: string;
|
|
200
|
+
icon?: string;
|
|
201
|
+
status?: string;
|
|
202
|
+
isSource: boolean;
|
|
203
|
+
isGitSource: boolean;
|
|
204
|
+
isRoot: boolean;
|
|
205
|
+
downstreams: string[];
|
|
206
|
+
type: 'CI' | 'GIT' | 'PRECD' | 'CD' | 'POSTCD' | 'WEBHOOK';
|
|
207
|
+
parentCiPipeline?: number;
|
|
208
|
+
parentAppId?: number;
|
|
209
|
+
url?: string;
|
|
210
|
+
branch?: string;
|
|
211
|
+
sourceType?: string;
|
|
212
|
+
colorCode?: string;
|
|
213
|
+
isExternalCI?: boolean;
|
|
214
|
+
isLinkedCI?: boolean;
|
|
215
|
+
environmentName?: string;
|
|
216
|
+
environmentId?: number;
|
|
217
|
+
inputMaterialList?: any[];
|
|
218
|
+
rollbackMaterialList?: any[];
|
|
219
|
+
linkedCount?: number;
|
|
220
|
+
deploymentStrategy?: string;
|
|
221
|
+
height: number;
|
|
222
|
+
width: number;
|
|
223
|
+
preNode?: CommonNodeAttr;
|
|
224
|
+
postNode?: CommonNodeAttr;
|
|
225
|
+
stageIndex?: number;
|
|
226
|
+
sourceNodes?: Array<CommonNodeAttr>;
|
|
227
|
+
downstreamNodes?: Array<CommonNodeAttr>;
|
|
228
|
+
parentPipelineId?: string;
|
|
229
|
+
parentPipelineType?: string;
|
|
230
|
+
parentEnvironmentName?: string;
|
|
231
|
+
isRegex?: boolean;
|
|
232
|
+
regex?: string;
|
|
233
|
+
primaryBranchAfterRegex?: string;
|
|
234
|
+
storageConfigured?: boolean;
|
|
235
|
+
deploymentAppDeleteRequest?: boolean;
|
|
236
|
+
approvalUsers?: string[];
|
|
237
|
+
userApprovalConfig?: UserApprovalConfigType;
|
|
238
|
+
requestedUserId?: number;
|
|
239
|
+
showPluginWarning?: boolean;
|
|
240
|
+
helmPackageName?: string;
|
|
241
|
+
isVirtualEnvironment?: boolean;
|
|
242
|
+
}
|
|
243
|
+
export interface VulnerabilityType {
|
|
244
|
+
name: string;
|
|
245
|
+
severity: "CRITICAL" | "MODERATE" | "LOW";
|
|
246
|
+
package: string;
|
|
247
|
+
version: string;
|
|
248
|
+
fixedVersion: string;
|
|
249
|
+
policy: string;
|
|
250
|
+
url?: string;
|
|
251
|
+
}
|
|
252
|
+
export interface ScanVulnerabilitiesTableProps {
|
|
253
|
+
vulnerabilities: VulnerabilityType[];
|
|
254
|
+
}
|
|
255
|
+
export interface MaterialInfo {
|
|
256
|
+
revision: string;
|
|
257
|
+
modifiedTime: string | Date;
|
|
258
|
+
author: string;
|
|
259
|
+
message: string;
|
|
260
|
+
commitLink: string;
|
|
261
|
+
tag: string;
|
|
262
|
+
webhookData: string;
|
|
263
|
+
branch: string;
|
|
264
|
+
url?: string;
|
|
265
|
+
type?: string;
|
|
266
|
+
}
|
|
267
|
+
export interface CDMaterialType {
|
|
268
|
+
index: number;
|
|
269
|
+
id: string;
|
|
270
|
+
materialInfo: MaterialInfo[];
|
|
271
|
+
tab: CDModalTabType;
|
|
272
|
+
scanEnabled: boolean;
|
|
273
|
+
scanned: boolean;
|
|
274
|
+
vulnerabilitiesLoading: boolean;
|
|
275
|
+
lastExecution: string;
|
|
276
|
+
vulnerabilities: VulnerabilityType[];
|
|
277
|
+
vulnerable: boolean;
|
|
278
|
+
deployedTime: string;
|
|
279
|
+
deployedBy?: string;
|
|
280
|
+
wfrId?: number;
|
|
281
|
+
buildTime: string;
|
|
282
|
+
image: string;
|
|
283
|
+
isSelected: boolean;
|
|
284
|
+
showSourceInfo: boolean;
|
|
285
|
+
latest: boolean;
|
|
286
|
+
runningOnParentCd?: boolean;
|
|
287
|
+
userApprovalMetadata?: UserApprovalMetadataType;
|
|
288
|
+
triggeredBy?: number;
|
|
289
|
+
}
|
|
290
|
+
export interface CDMaterialResponseType {
|
|
291
|
+
approvalUsers: string[];
|
|
292
|
+
materials: any[];
|
|
293
|
+
userApprovalConfig: UserApprovalConfigType;
|
|
294
|
+
requestedUserId: number;
|
|
295
|
+
}
|
|
296
|
+
export declare enum PluginRequiredStageKeys {
|
|
297
|
+
PRE_CI = "PRE_CI",
|
|
298
|
+
POST_CI = "POST_CI",
|
|
299
|
+
PRE_OR_POST_CI = "PRE_OR_POST_CI"
|
|
300
|
+
}
|
|
301
|
+
export declare enum PluginRequiredStage {
|
|
302
|
+
PRE_CI = "preBuildStage",
|
|
303
|
+
POST_CI = "postBuildStage",
|
|
304
|
+
PRE_OR_POST_CI = "PRE_OR_POST_CI"
|
|
305
|
+
}
|
|
306
|
+
export interface MandatoryPluginDetailType {
|
|
307
|
+
id: number;
|
|
308
|
+
name: string;
|
|
309
|
+
description?: string;
|
|
310
|
+
requiredIn: PluginRequiredStage;
|
|
311
|
+
applied?: boolean;
|
|
312
|
+
inputVariables?: VariableType[];
|
|
313
|
+
outputVariables?: VariableType[];
|
|
314
|
+
}
|
|
315
|
+
export interface MandatoryPluginDataType {
|
|
316
|
+
pluginData: MandatoryPluginDetailType[];
|
|
317
|
+
isValidPre: boolean;
|
|
318
|
+
isValidPost: boolean;
|
|
319
|
+
}
|
|
320
|
+
export {};
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export * from './Types';
|
|
|
4
4
|
export * from './Api';
|
|
5
5
|
export * from './EmptyState/EmptyState';
|
|
6
6
|
export * from './ToastBody';
|
|
7
|
-
export
|
|
7
|
+
export { default as Reload } from './Reload';
|
|
8
8
|
export * from './Error';
|
|
9
9
|
export * from './Helper';
|
|
10
10
|
export * from './Progressing';
|
|
@@ -25,3 +25,9 @@ export { default as InfoColourBar } from './InfoColorBar/InfoColourbar';
|
|
|
25
25
|
export * from './Common.service';
|
|
26
26
|
export * from './Checkbox';
|
|
27
27
|
export { default as EmptyState } from './EmptyState/EmptyState';
|
|
28
|
+
export { default as GenericEmptyState } from './EmptyState/GenericEmptyState';
|
|
29
|
+
export { default as Toggle } from './Toggle/Toggle';
|
|
30
|
+
export { default as ScanVulnerabilitiesTable } from './Security/ScanVulnerabilitiesTable';
|
|
31
|
+
export { default as StyledRadioGroup } from './RadioGroup/RadioGroup';
|
|
32
|
+
export * from './CIPipeline.Types';
|
|
33
|
+
export { default as DeleteComponent } from './DeleteComponentModal/DeleteComponent';
|