@devtron-labs/devtron-fe-common-lib 0.0.69-beta-2 → 0.0.69-beta-3
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/Common.service.d.ts +1 -0
- package/dist/Common/Constants.d.ts +6 -23
- package/dist/Common/Helper.d.ts +0 -4
- package/dist/Common/ImageTags.Types.d.ts +1 -1
- package/dist/Common/Types.d.ts +62 -21
- package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -1
- package/dist/Shared/Components/APIResponseHandler/types.d.ts +9 -0
- package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +3 -0
- package/dist/Shared/Components/ActivityIndicator/index.d.ts +1 -0
- package/dist/Shared/Components/ActivityIndicator/types.d.ts +3 -0
- package/dist/Shared/Components/ExcludedImageNode/ExcludedImageNode.d.ts +3 -0
- package/dist/Shared/Components/ExcludedImageNode/index.d.ts +1 -0
- package/dist/Shared/Components/ExcludedImageNode/types.d.ts +3 -0
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -1
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +21 -1
- package/dist/Shared/Components/ImageCard/ArtifactInfo/ArtifactInfo.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/ArtifactInfo/index.d.ts +1 -0
- package/dist/Shared/Components/ImageCard/ArtifactInfo/types.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/ImageCard.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/DeploymentEnvState.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/constants.d.ts +6 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/index.d.ts +1 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/types.d.ts +10 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/utils.d.ts +2 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/index.d.ts +1 -0
- package/dist/Shared/Components/ImageCard/index.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/types.d.ts +40 -0
- package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +3 -0
- package/dist/Shared/Components/ImageCardAccordion/index.d.ts +1 -0
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +23 -0
- package/dist/Shared/Components/ReactSelect/utils.d.ts +1 -0
- package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +3 -0
- package/dist/Shared/Components/ScannedByToolModal/index.d.ts +1 -0
- package/dist/Shared/Components/ScannedByToolModal/types.d.ts +3 -0
- package/dist/Shared/Components/Vulnerabilities/Vulnerabilities.d.ts +3 -0
- package/dist/Shared/Components/Vulnerabilities/constants.d.ts +4 -0
- package/dist/Shared/Components/Vulnerabilities/index.d.ts +1 -0
- package/dist/Shared/Components/Vulnerabilities/service.d.ts +2 -0
- package/dist/Shared/Components/Vulnerabilities/types.d.ts +8 -0
- package/dist/Shared/Components/index.d.ts +6 -0
- package/dist/Shared/Helpers.d.ts +6 -0
- package/dist/Shared/constants.d.ts +31 -0
- package/dist/Shared/index.d.ts +1 -0
- package/dist/Shared/types.d.ts +114 -0
- package/dist/index.js +13032 -12622
- package/package.json +2 -2
|
@@ -17,4 +17,5 @@ export declare const genericCDMaterialsService: (serviceType: CDMaterialServiceE
|
|
|
17
17
|
export declare function extractImage(image: string): string;
|
|
18
18
|
export declare function createGitCommitUrl(url: string, revision: string): string;
|
|
19
19
|
export declare function fetchChartTemplateVersions(): Promise<ResponseType<any>>;
|
|
20
|
+
export declare const getDefaultConfig: () => Promise<ResponseType>;
|
|
20
21
|
export {};
|
|
@@ -17,12 +17,15 @@ export declare const URLS: {
|
|
|
17
17
|
PERMISSION_GROUPS: string;
|
|
18
18
|
};
|
|
19
19
|
export declare const ROUTES: {
|
|
20
|
+
APP_ARTIFACT_PROMOTE_MATERIAL: string;
|
|
20
21
|
PROJECT_LIST_MIN: string;
|
|
21
22
|
USER_CHECK_ROLE: string;
|
|
22
23
|
IMAGE_TAGGING: string;
|
|
23
24
|
CD_MATERIAL_GET: string;
|
|
24
25
|
DEPLOYMENT_TEMPLATE_LIST: string;
|
|
25
26
|
INFRA_CONFIG_PROFILE: string;
|
|
27
|
+
SECURITY_SCAN_EXECUTION_DETAILS: string;
|
|
28
|
+
NOTIFIER: string;
|
|
26
29
|
};
|
|
27
30
|
export declare enum KEY_VALUE {
|
|
28
31
|
KEY = "key",
|
|
@@ -74,7 +77,8 @@ export declare enum MODES {
|
|
|
74
77
|
}
|
|
75
78
|
export declare enum APPROVAL_MODAL_TYPE {
|
|
76
79
|
CONFIG = "CONFIG",
|
|
77
|
-
DEPLOYMENT = "DEPLOYMENT"
|
|
80
|
+
DEPLOYMENT = "DEPLOYMENT",
|
|
81
|
+
IMAGE_PROMOTION = "IMAGE-PROMOTION"
|
|
78
82
|
}
|
|
79
83
|
export declare const MAX_Z_INDEX = 2147483647;
|
|
80
84
|
export declare const SELECTED_APPROVAL_TAB_STATE: {
|
|
@@ -95,28 +99,6 @@ export declare enum SortingOrder {
|
|
|
95
99
|
* Base page size for pagination
|
|
96
100
|
*/
|
|
97
101
|
export declare const DEFAULT_BASE_PAGE_SIZE = 20;
|
|
98
|
-
/**
|
|
99
|
-
* Deployment Window
|
|
100
|
-
*/
|
|
101
|
-
export declare enum MODAL_TYPE {
|
|
102
|
-
HIBERNATE = "HIBERNATE",
|
|
103
|
-
RESTORE = "RESTORE",
|
|
104
|
-
DEPLOY = "DEPLOY",
|
|
105
|
-
RESOURCE = "RESOURCE",
|
|
106
|
-
RESTART = "RESTART",
|
|
107
|
-
PIPELINE = "PIPELINE",
|
|
108
|
-
OVERVIEW = "OVERVIEW",
|
|
109
|
-
APP_DETAILS_STATUS = "APP_DETAILS_STATUS"
|
|
110
|
-
}
|
|
111
|
-
export declare enum ACTION_STATE {
|
|
112
|
-
ALLOWED = "ALLOWED",
|
|
113
|
-
PARTIAL = "PARTIAL",
|
|
114
|
-
BLOCKED = "BLOCKED"
|
|
115
|
-
}
|
|
116
|
-
export declare enum DEPLOYMENT_WINDOW_TYPE {
|
|
117
|
-
MAINTENANCE = "MAINTENANCE",
|
|
118
|
-
BLACKOUT = "BLACKOUT"
|
|
119
|
-
}
|
|
120
102
|
export declare enum ReactSelectInputAction {
|
|
121
103
|
inputChange = "input-change",
|
|
122
104
|
selectOption = "select-option",
|
|
@@ -124,3 +106,4 @@ export declare enum ReactSelectInputAction {
|
|
|
124
106
|
removeValue = "remove-value"
|
|
125
107
|
}
|
|
126
108
|
export declare const ZERO_TIME_STRING = "0001-01-01T00:00:00Z";
|
|
109
|
+
export declare const EXCLUDED_FALSY_VALUES: readonly [any, any, "", number];
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -65,8 +65,4 @@ export declare function getLockedJSON(json: any, jsonPathArray: string[]): any;
|
|
|
65
65
|
* Returns a debounced variant of the function
|
|
66
66
|
*/
|
|
67
67
|
export declare const debounce: (func: any, timeout?: number) => (this: any, ...args: any[]) => void;
|
|
68
|
-
/**
|
|
69
|
-
* Returns a capitalized string with first letter in uppercase and rest in lowercase
|
|
70
|
-
*/
|
|
71
|
-
export declare const capitalizeFirstLetter: (text: string) => string;
|
|
72
68
|
export {};
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { ReactNode, CSSProperties } from 'react';
|
|
2
2
|
import { Placement } from 'tippy.js';
|
|
3
3
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
4
|
-
import {
|
|
4
|
+
import { DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
|
5
|
+
import { RegistryType } from '../Shared';
|
|
5
6
|
/**
|
|
6
7
|
* Generic response type object with support for overriding the result type
|
|
7
8
|
*
|
|
@@ -51,6 +52,7 @@ export interface CheckboxProps {
|
|
|
51
52
|
onChange: (event: any) => void;
|
|
52
53
|
isChecked: boolean;
|
|
53
54
|
value: 'CHECKED' | 'INTERMEDIATE' | 'BULK_CHECKED';
|
|
55
|
+
name?: string;
|
|
54
56
|
disabled?: boolean;
|
|
55
57
|
tabIndex?: number;
|
|
56
58
|
rootClassName?: string;
|
|
@@ -246,10 +248,33 @@ export declare enum FilterStates {
|
|
|
246
248
|
export declare enum MaterialDataSource {
|
|
247
249
|
EXTERNAL = "ext"
|
|
248
250
|
}
|
|
249
|
-
export
|
|
250
|
-
|
|
251
|
+
export declare enum ImagePromotionRuntimeState {
|
|
252
|
+
AWAITING = "AWAITING",
|
|
253
|
+
PROMOTED = "PROMOTED",
|
|
254
|
+
CANCELLED = "CANCELLED",
|
|
255
|
+
STALE = "STALE"
|
|
256
|
+
}
|
|
257
|
+
export interface ImagePromotionPolicyApprovalMetadata {
|
|
258
|
+
approverCount: number;
|
|
259
|
+
allowRequesterFromApprove: boolean;
|
|
260
|
+
allowImageBuilderFromApprove: boolean;
|
|
261
|
+
allowApproverFromDeploy: boolean;
|
|
262
|
+
}
|
|
263
|
+
export interface ImagePromotionPolicyInfoType {
|
|
251
264
|
name: string;
|
|
252
|
-
|
|
265
|
+
id: number;
|
|
266
|
+
description: string;
|
|
267
|
+
conditions: FilterConditionsInfo[];
|
|
268
|
+
approvalMetadata: ImagePromotionPolicyApprovalMetadata;
|
|
269
|
+
}
|
|
270
|
+
export interface PromotionApprovalMetadataType {
|
|
271
|
+
approvalRequestId: number;
|
|
272
|
+
approvalRuntimeState: ImagePromotionRuntimeState;
|
|
273
|
+
approvedUsersData: ApprovalUserDataType[];
|
|
274
|
+
requestedUserData: ApprovalUserDataType;
|
|
275
|
+
policy: ImagePromotionPolicyInfoType;
|
|
276
|
+
promotedFrom?: string;
|
|
277
|
+
promotedFromType?: CDMaterialResourceQuery;
|
|
253
278
|
}
|
|
254
279
|
export interface CDMaterialType {
|
|
255
280
|
index: number;
|
|
@@ -277,7 +302,7 @@ export interface CDMaterialType {
|
|
|
277
302
|
imageReleaseTags?: ReleaseTag[];
|
|
278
303
|
artifactStatus?: string;
|
|
279
304
|
filterState: FilterStates;
|
|
280
|
-
registryType?:
|
|
305
|
+
registryType?: RegistryType;
|
|
281
306
|
imagePath?: string;
|
|
282
307
|
registryName?: string;
|
|
283
308
|
scanToolId?: number;
|
|
@@ -287,14 +312,27 @@ export interface CDMaterialType {
|
|
|
287
312
|
createdTime?: string;
|
|
288
313
|
deployed?: boolean;
|
|
289
314
|
dataSource?: MaterialDataSource;
|
|
290
|
-
|
|
315
|
+
/**
|
|
316
|
+
* The below two keys: `promotionApprovalMetaData`, `deployedOnEnvironments` are used in image promotion
|
|
317
|
+
* and may not be available to cater other use-cases.
|
|
318
|
+
*/
|
|
319
|
+
promotionApprovalMetadata?: PromotionApprovalMetadataType;
|
|
320
|
+
deployedOnEnvironments?: string[];
|
|
291
321
|
}
|
|
292
322
|
export declare enum CDMaterialServiceEnum {
|
|
293
323
|
ROLLBACK = "rollback",
|
|
294
|
-
CD_MATERIALS = "cd-materials"
|
|
324
|
+
CD_MATERIALS = "cd-materials",
|
|
325
|
+
IMAGE_PROMOTION = "image-promotion"
|
|
295
326
|
}
|
|
296
327
|
export declare enum CDMaterialResourceQuery {
|
|
297
|
-
PENDING_APPROVAL = "PENDING_APPROVAL"
|
|
328
|
+
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
329
|
+
PROMOTION_APPROVAL_PENDING_NODE = "PROMOTION_APPROVAL_PENDING_NODE",
|
|
330
|
+
CI = "CI",
|
|
331
|
+
ENVIRONMENT = "ENVIRONMENT",
|
|
332
|
+
WEBHOOK = "WEBHOOK",
|
|
333
|
+
LINKED_CI = "LINKED-CI",
|
|
334
|
+
CI_JOB = "CI-JOB",
|
|
335
|
+
LINKED_CD = "LINKED-CD"
|
|
298
336
|
}
|
|
299
337
|
export declare enum CDMaterialFilterQuery {
|
|
300
338
|
RESOURCE = "ELIGIBLE_RESOURCES",
|
|
@@ -305,6 +343,11 @@ export interface CDMaterialServiceQueryParams {
|
|
|
305
343
|
offset?: number;
|
|
306
344
|
size?: number;
|
|
307
345
|
resource?: CDMaterialResourceQuery;
|
|
346
|
+
resourceName?: string;
|
|
347
|
+
resourceId?: number;
|
|
348
|
+
workflowId?: number;
|
|
349
|
+
appId?: number;
|
|
350
|
+
pendingForCurrentUser?: boolean;
|
|
308
351
|
filter?: CDMaterialFilterQuery;
|
|
309
352
|
}
|
|
310
353
|
export interface DownstreamNodesEnvironmentsType {
|
|
@@ -376,7 +419,7 @@ export interface CommonNodeAttr {
|
|
|
376
419
|
deploymentAppCreated?: boolean;
|
|
377
420
|
isLast?: boolean;
|
|
378
421
|
downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
|
|
379
|
-
|
|
422
|
+
cipipelineId?: number;
|
|
380
423
|
}
|
|
381
424
|
export declare enum DeploymentAppTypes {
|
|
382
425
|
HELM = "helm",
|
|
@@ -425,7 +468,7 @@ export interface FilterConditionsListType {
|
|
|
425
468
|
export interface CDMaterialsApprovalInfo {
|
|
426
469
|
approvalUsers: string[];
|
|
427
470
|
userApprovalConfig: UserApprovalConfigType;
|
|
428
|
-
|
|
471
|
+
canApproverDeploy: boolean;
|
|
429
472
|
}
|
|
430
473
|
export interface CDMaterialsMetaInfo {
|
|
431
474
|
tagsEditable: boolean;
|
|
@@ -433,9 +476,16 @@ export interface CDMaterialsMetaInfo {
|
|
|
433
476
|
hideImageTaggingHardDelete: boolean;
|
|
434
477
|
resourceFilters?: FilterConditionsListType[];
|
|
435
478
|
totalCount: number;
|
|
436
|
-
|
|
479
|
+
/**
|
|
480
|
+
* This is the ID of user that has request the material
|
|
481
|
+
*/
|
|
482
|
+
requestedUserId: number;
|
|
437
483
|
}
|
|
438
|
-
export interface
|
|
484
|
+
export interface ImagePromotionMaterialInfo {
|
|
485
|
+
isApprovalPendingForPromotion: boolean;
|
|
486
|
+
imagePromotionApproverEmails: string[];
|
|
487
|
+
}
|
|
488
|
+
export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo, ImagePromotionMaterialInfo {
|
|
439
489
|
materials: CDMaterialType[];
|
|
440
490
|
}
|
|
441
491
|
export interface InputDetailType {
|
|
@@ -732,13 +782,4 @@ export type SortingParams<T = string> = {
|
|
|
732
782
|
sortOrder?: never;
|
|
733
783
|
sortBy?: never;
|
|
734
784
|
};
|
|
735
|
-
export interface DeploymentWindowProfileMetaData {
|
|
736
|
-
name: string;
|
|
737
|
-
userActionState: ACTION_STATE;
|
|
738
|
-
type: string | DEPLOYMENT_WINDOW_TYPE;
|
|
739
|
-
calculatedTimestamp: string;
|
|
740
|
-
isActive: boolean;
|
|
741
|
-
excludedUserEmails: string[];
|
|
742
|
-
warningMessage: string;
|
|
743
|
-
}
|
|
744
785
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { APIResponseHandlerProps } from './types';
|
|
2
|
-
declare const APIResponseHandler: ({ isLoading, progressingProps, error, notAuthorized, notFoundText, reloadProps, children, }: APIResponseHandlerProps) => JSX.Element;
|
|
2
|
+
declare const APIResponseHandler: ({ isLoading, progressingProps, customLoader, error, notAuthorized, notFoundText, reloadProps, genericSectionErrorProps, children, }: APIResponseHandlerProps) => JSX.Element;
|
|
3
3
|
export default APIResponseHandler;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { GenericEmptyStateType, ProgressingProps, ReloadType, ServerErrors } from '../../../Common';
|
|
3
|
+
import { GenericSectionErrorStateProps } from '../GenericSectionErrorState/types';
|
|
3
4
|
export interface EmptyPageTextType {
|
|
4
5
|
title?: GenericEmptyStateType['title'];
|
|
5
6
|
subTitle?: GenericEmptyStateType['subTitle'];
|
|
@@ -13,6 +14,10 @@ export interface APIResponseHandlerProps {
|
|
|
13
14
|
* If loading is true, would load send these props to Progressing component
|
|
14
15
|
*/
|
|
15
16
|
progressingProps?: ProgressingProps;
|
|
17
|
+
/**
|
|
18
|
+
* If given, would show this component instead of default Progressing component
|
|
19
|
+
*/
|
|
20
|
+
customLoader?: ReactNode;
|
|
16
21
|
/**
|
|
17
22
|
* If true and isLoading is false would show default Reload component
|
|
18
23
|
* In case error code is 404 show default 404 page using GenericEmptyState
|
|
@@ -30,6 +35,10 @@ export interface APIResponseHandlerProps {
|
|
|
30
35
|
* If given, on Error, would load these props
|
|
31
36
|
*/
|
|
32
37
|
reloadProps?: ReloadType;
|
|
38
|
+
/**
|
|
39
|
+
* If given, would show this component instead of default Error component
|
|
40
|
+
*/
|
|
41
|
+
genericSectionErrorProps?: GenericSectionErrorStateProps;
|
|
33
42
|
/**
|
|
34
43
|
* If no Error and no Loading, would load this component
|
|
35
44
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ActivityIndicator } from './ActivityIndicator';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ExcludedImageNode } from './ExcludedImageNode';
|
package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GenericSectionErrorStateProps } from './types';
|
|
2
|
-
declare const GenericSectionErrorState: ({ reload, withBorder }: GenericSectionErrorStateProps) => JSX.Element;
|
|
2
|
+
declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, }: GenericSectionErrorStateProps) => JSX.Element;
|
|
3
3
|
export default GenericSectionErrorState;
|
|
@@ -2,11 +2,31 @@ export interface GenericSectionErrorStateProps {
|
|
|
2
2
|
/**
|
|
3
3
|
* Handler for reloading the section
|
|
4
4
|
*/
|
|
5
|
-
reload
|
|
5
|
+
reload?: () => void;
|
|
6
6
|
/**
|
|
7
7
|
* If true, border is added to the section
|
|
8
8
|
*
|
|
9
9
|
* @default false
|
|
10
10
|
*/
|
|
11
11
|
withBorder?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* @default 'Failed to load'
|
|
14
|
+
*/
|
|
15
|
+
title?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @default 'We could not load the information on this page.'
|
|
18
|
+
*/
|
|
19
|
+
subTitle?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @default 'Please reload or try again later'
|
|
22
|
+
*/
|
|
23
|
+
description?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @default 'Reload'
|
|
26
|
+
*/
|
|
27
|
+
buttonText?: string;
|
|
28
|
+
/**
|
|
29
|
+
* to be applied on parent div
|
|
30
|
+
*/
|
|
31
|
+
rootClassName?: string;
|
|
12
32
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ArtifactInfoProps } from '../types';
|
|
2
|
+
declare const ArtifactInfo: ({ imagePath, registryName, registryType, image, deployedTime, deployedBy, isRollbackTrigger, excludedImagePathNode, approvalChecksNode, approvalInfoTippy, }: ArtifactInfoProps) => JSX.Element;
|
|
3
|
+
export default ArtifactInfo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ArtifactInfo } from './ArtifactInfo';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ImageCardProps } from './types';
|
|
2
|
+
declare const ImageCard: ({ testIdLocator, cta, sequentialCDCardTitleProps, artifactInfoProps, imageTagContainerProps, children, rootClassName, materialInfoRootClassName, }: ImageCardProps) => JSX.Element;
|
|
3
|
+
export default ImageCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DeploymentEnvState } from './DeploymentEnvState';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { SequentialCDCardTitleProps } from '../types';
|
|
2
|
+
declare const SequentialCDCardTitle: ({ isLatest, isRunningOnParentCD, artifactStatus, environmentName, parentEnvironmentName, stageType, showLatestTag, isVirtualEnvironment, deployedOn, additionalInfo, }: SequentialCDCardTitleProps) => JSX.Element;
|
|
3
|
+
export default SequentialCDCardTitle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SequentialCDCardTitle } from './SequentialCDCardTitle';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ImageTaggingContainerType } from '../../../Common';
|
|
3
|
+
import { RegistryType } from '../..';
|
|
4
|
+
export interface ArtifactInfoProps {
|
|
5
|
+
imagePath: string;
|
|
6
|
+
registryName: string;
|
|
7
|
+
registryType: RegistryType;
|
|
8
|
+
image: string;
|
|
9
|
+
deployedTime: string;
|
|
10
|
+
deployedBy: string;
|
|
11
|
+
isRollbackTrigger: boolean;
|
|
12
|
+
excludedImagePathNode: ReactNode;
|
|
13
|
+
approvalChecksNode?: ReactNode;
|
|
14
|
+
approvalInfoTippy?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export interface SequentialCDCardTitleProps {
|
|
17
|
+
isLatest: boolean;
|
|
18
|
+
isRunningOnParentCD: boolean;
|
|
19
|
+
artifactStatus: string;
|
|
20
|
+
stageType: string;
|
|
21
|
+
showLatestTag: boolean;
|
|
22
|
+
isVirtualEnvironment: boolean;
|
|
23
|
+
deployedOn?: string[];
|
|
24
|
+
environmentName?: string;
|
|
25
|
+
parentEnvironmentName?: string;
|
|
26
|
+
additionalInfo?: ReactNode;
|
|
27
|
+
}
|
|
28
|
+
export interface ImageCardProps {
|
|
29
|
+
testIdLocator: string;
|
|
30
|
+
sequentialCDCardTitleProps: SequentialCDCardTitleProps;
|
|
31
|
+
cta: ReactNode;
|
|
32
|
+
artifactInfoProps: ArtifactInfoProps;
|
|
33
|
+
imageTagContainerProps: ImageTaggingContainerType;
|
|
34
|
+
/**
|
|
35
|
+
* Meant for ImageCardAccordion
|
|
36
|
+
*/
|
|
37
|
+
children?: ReactNode;
|
|
38
|
+
rootClassName?: string;
|
|
39
|
+
materialInfoRootClassName?: string;
|
|
40
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ImageCardAccordionProps } from './types';
|
|
2
|
+
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, environmentId, changesCard, isScanned, isScanEnabled, }: ImageCardAccordionProps) => JSX.Element;
|
|
3
|
+
export default ImageCardAccordion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ImageCardAccordion } from './ImageCardAccordion';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { CDModalTabType, VulnerabilityType } from '../../../Common';
|
|
3
|
+
import { MaterialSecurityInfoType } from '../../types';
|
|
4
|
+
export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
|
|
5
|
+
isSecurityModuleInstalled: boolean;
|
|
6
|
+
artifactId: number;
|
|
7
|
+
applicationId: number;
|
|
8
|
+
environmentId: number;
|
|
9
|
+
changesCard: ReactNode;
|
|
10
|
+
isScanned: boolean;
|
|
11
|
+
isScanEnabled: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface SecurityDetailsType {
|
|
14
|
+
vulnerabilities: VulnerabilityType[];
|
|
15
|
+
scanToolId: number;
|
|
16
|
+
lastExecution: string;
|
|
17
|
+
}
|
|
18
|
+
export interface AccordionItemProps {
|
|
19
|
+
currentTab: CDModalTabType;
|
|
20
|
+
activeTab: CDModalTabType;
|
|
21
|
+
setActiveTab: React.Dispatch<React.SetStateAction<CDModalTabType>>;
|
|
22
|
+
buttonText: string;
|
|
23
|
+
}
|
|
@@ -12,3 +12,4 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
|
|
|
12
12
|
export declare const getCustomOptionSelectionStyle: (styleOverrides?: {}) => (base: any, state: any) => any;
|
|
13
13
|
export declare const SelectOption: (props: any) => JSX.Element;
|
|
14
14
|
export declare const LoadingIndicator: () => JSX.Element;
|
|
15
|
+
export declare const GroupHeading: (props: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ScannedByToolModal } from './ScannedByToolModal';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Vulnerabilities } from './Vulnerabilities';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MaterialSecurityInfoType } from '../../types';
|
|
3
|
+
export interface VulnerabilitiesProps extends MaterialSecurityInfoType {
|
|
4
|
+
artifactId: number;
|
|
5
|
+
applicationId: number;
|
|
6
|
+
environmentId: number;
|
|
7
|
+
setVulnerabilityCount: React.Dispatch<React.SetStateAction<number>>;
|
|
8
|
+
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export * from './APIResponseHandler';
|
|
2
2
|
export * from './ReactSelect';
|
|
3
3
|
export * from './BulkSelection';
|
|
4
|
+
export * from './ImageCard';
|
|
5
|
+
export * from './ImageCardAccordion';
|
|
6
|
+
export * from './ExcludedImageNode';
|
|
7
|
+
export * from './ScannedByToolModal';
|
|
8
|
+
export * from './Vulnerabilities';
|
|
4
9
|
export * from './FilterChips';
|
|
10
|
+
export * from './ActivityIndicator';
|
|
5
11
|
export * from './GenericSectionErrorState';
|
|
6
12
|
export * from './KeyValueList';
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { MaterialInfo } from '../Common';
|
|
2
|
+
import { GitTriggers } from './types';
|
|
1
3
|
interface HighlightSearchTextProps {
|
|
2
4
|
/**
|
|
3
5
|
* The text to be highlighted
|
|
@@ -13,4 +15,8 @@ interface HighlightSearchTextProps {
|
|
|
13
15
|
highlightClasses?: string;
|
|
14
16
|
}
|
|
15
17
|
export declare const highlightSearchText: ({ searchText, text, highlightClasses }: HighlightSearchTextProps) => string;
|
|
18
|
+
export declare const preventBodyScroll: (lock: boolean) => void;
|
|
19
|
+
export declare const getIsMaterialInfoAvailable: (materialInfo: MaterialInfo[]) => boolean;
|
|
20
|
+
export declare const getGitCommitInfo: (materialInfo: MaterialInfo) => GitTriggers;
|
|
21
|
+
export declare const caseInsensitiveStringComparator: (a: string, b: string) => number;
|
|
16
22
|
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const ARTIFACT_STATUS: {
|
|
2
|
+
PROGRESSING: string;
|
|
3
|
+
DEGRADED: string;
|
|
4
|
+
FAILED: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const STAGE_TYPE: {
|
|
7
|
+
CD: string;
|
|
8
|
+
CI: string;
|
|
9
|
+
GIT: string;
|
|
10
|
+
PRECD: string;
|
|
11
|
+
POSTCD: string;
|
|
12
|
+
ROLLBACK: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const SCAN_TOOL_ID_TRIVY = 3;
|
|
15
|
+
export declare const IMAGE_SCAN_TOOL: {
|
|
16
|
+
Clair: string;
|
|
17
|
+
Trivy: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const EXCLUDED_IMAGE_TOOLTIP = "This image is excluded for new deployment as it does not match the filter conditions configured for this environment.";
|
|
20
|
+
export declare const ModuleNameMap: {
|
|
21
|
+
ARGO_CD: string;
|
|
22
|
+
CICD: string;
|
|
23
|
+
SECURITY: string;
|
|
24
|
+
BLOB_STORAGE: string;
|
|
25
|
+
GRAFANA: string;
|
|
26
|
+
NOTIFICATION: string;
|
|
27
|
+
SECURITY_TRIVY: string;
|
|
28
|
+
SECURITY_CLAIR: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const DATE_TIME_FORMAT_STRING = "ddd DD MMM YYYY HH:mm:ss";
|
|
31
|
+
export declare const API_TOKEN_PREFIX = "API-TOKEN:";
|