@devtron-labs/devtron-fe-common-lib 0.0.75-beta-31 → 0.0.75-beta-33
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 +8 -26
- package/dist/Common/Error.d.ts +17 -0
- package/dist/Common/ErrorScreenNotFound.d.ts +2 -0
- package/dist/Common/Helper.d.ts +1 -3
- package/dist/Common/ImageTags.Types.d.ts +1 -1
- package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +1 -1
- package/dist/Common/SegmentedBarChart/SegmentedBarChart.d.ts +4 -0
- package/dist/Common/SegmentedBarChart/constants.d.ts +5 -0
- package/dist/Common/SegmentedBarChart/index.d.ts +2 -0
- package/dist/Common/SegmentedBarChart/types.d.ts +9 -0
- package/dist/Common/Types.d.ts +65 -19
- package/dist/Common/index.d.ts +2 -2
- 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/ScannedObjectBar/ScannedObjectBar.d.ts +3 -0
- package/dist/Shared/Components/ScannedObjectBar/index.d.ts +1 -0
- package/dist/Shared/Components/ScannedObjectBar/types.d.ts +7 -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 +2 -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/Vulnerabilities/utils.d.ts +3 -0
- package/dist/Shared/Components/index.d.ts +7 -0
- package/dist/Shared/Helpers.d.ts +7 -0
- package/dist/Shared/constants.d.ts +31 -0
- package/dist/Shared/index.d.ts +1 -0
- package/dist/Shared/types.d.ts +157 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +13381 -13015
- package/package.json +4 -3
- package/dist/Common/ErrorPage.d.ts +0 -3
- package/dist/Common/ErrorScreenManager.d.ts +0 -3
- package/dist/Common/ErrorScreenNotAuthorized.d.ts +0 -3
|
@@ -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 {};
|
|
@@ -2,7 +2,6 @@ import { RegistryTypeDetailType } from './Types';
|
|
|
2
2
|
export declare const FALLBACK_REQUEST_TIMEOUT = 60000;
|
|
3
3
|
export declare const Host: string;
|
|
4
4
|
export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
|
|
5
|
-
export declare const DISCORD_LINK = "https://discord.devtron.ai/";
|
|
6
5
|
export declare const DOCUMENTATION: {
|
|
7
6
|
APP_TAGS: string;
|
|
8
7
|
APP_OVERVIEW_TAGS: string;
|
|
@@ -26,13 +25,15 @@ export declare const URLS: {
|
|
|
26
25
|
APP_LIST_HELM: string;
|
|
27
26
|
};
|
|
28
27
|
export declare const ROUTES: {
|
|
28
|
+
APP_ARTIFACT_PROMOTE_MATERIAL: string;
|
|
29
29
|
PROJECT_LIST_MIN: string;
|
|
30
30
|
USER_CHECK_ROLE: string;
|
|
31
31
|
IMAGE_TAGGING: string;
|
|
32
32
|
CD_MATERIAL_GET: string;
|
|
33
33
|
DEPLOYMENT_TEMPLATE_LIST: string;
|
|
34
34
|
INFRA_CONFIG_PROFILE: string;
|
|
35
|
-
|
|
35
|
+
SECURITY_SCAN_EXECUTION_DETAILS: string;
|
|
36
|
+
NOTIFIER: string;
|
|
36
37
|
TELEMETRY_EVENT: string;
|
|
37
38
|
SERVER_INFO_API: string;
|
|
38
39
|
ATTRIBUTES_USER: string;
|
|
@@ -50,16 +51,6 @@ export declare const DEFAULT_TAG_DATA: {
|
|
|
50
51
|
isInvalidValue: boolean;
|
|
51
52
|
isSuggested: boolean;
|
|
52
53
|
};
|
|
53
|
-
export declare enum ERROR_STATUS_CODE {
|
|
54
|
-
BAD_REQUEST = 400,
|
|
55
|
-
UNAUTHORIZED = 401,
|
|
56
|
-
PERMISSION_DENIED = 403,
|
|
57
|
-
NOT_FOUND = 404,
|
|
58
|
-
EXPECTATION_FAILED = 417,
|
|
59
|
-
INTERNAL_SERVER_ERROR = 500,
|
|
60
|
-
BAD_GATEWAY = 502,
|
|
61
|
-
SERVICE_TEMPORARY_UNAVAILABLE = 503
|
|
62
|
-
}
|
|
63
54
|
export declare const TOAST_ACCESS_DENIED: {
|
|
64
55
|
TITLE: string;
|
|
65
56
|
SUBTITLE: string;
|
|
@@ -68,23 +59,11 @@ export declare const ERROR_EMPTY_SCREEN: {
|
|
|
68
59
|
PAGE_NOT_FOUND: string;
|
|
69
60
|
PAGE_NOT_EXIST: string;
|
|
70
61
|
TAKE_BACK_HOME: string;
|
|
71
|
-
REPORT_ISSUE: string;
|
|
72
62
|
ONLY_FOR_SUPERADMIN: string;
|
|
73
63
|
NOT_AUTHORIZED: string;
|
|
74
|
-
REQUIRED_MANAGER_ACCESS: string;
|
|
75
|
-
BAD_REQUEST: string;
|
|
76
|
-
BAD_REQUEST_MESSAGE: string;
|
|
77
|
-
TRY_AGAIN: string;
|
|
78
64
|
UNAUTHORIZED: string;
|
|
79
|
-
UNAUTHORIZED_MESSAGE: string;
|
|
80
65
|
FORBIDDEN: string;
|
|
81
|
-
|
|
82
|
-
INTERNAL_SERVER_ERROR: string;
|
|
83
|
-
INTERNAL_SERVER_ERROR_MESSAGE: string;
|
|
84
|
-
BAD_GATEWAY: string;
|
|
85
|
-
BAD_GATEWAY_MESSAGE: string;
|
|
86
|
-
SERVICE_TEMPORARY_UNAVAILABLE: string;
|
|
87
|
-
SERVICE_TEMPORARY_UNAVAILABLE_MESSAGE: string;
|
|
66
|
+
REQUIRED_MANAGER_ACCESS: string;
|
|
88
67
|
};
|
|
89
68
|
export declare const TOKEN_COOKIE_NAME = "argocd.token";
|
|
90
69
|
export declare const TriggerTypeMap: {
|
|
@@ -110,7 +89,8 @@ export declare enum MODES {
|
|
|
110
89
|
}
|
|
111
90
|
export declare enum APPROVAL_MODAL_TYPE {
|
|
112
91
|
CONFIG = "CONFIG",
|
|
113
|
-
DEPLOYMENT = "DEPLOYMENT"
|
|
92
|
+
DEPLOYMENT = "DEPLOYMENT",
|
|
93
|
+
IMAGE_PROMOTION = "IMAGE-PROMOTION"
|
|
114
94
|
}
|
|
115
95
|
export declare const MAX_Z_INDEX = 2147483647;
|
|
116
96
|
export declare const SELECTED_APPROVAL_TAB_STATE: {
|
|
@@ -190,6 +170,7 @@ export declare enum ReactSelectInputAction {
|
|
|
190
170
|
removeValue = "remove-value"
|
|
191
171
|
}
|
|
192
172
|
export declare const ZERO_TIME_STRING = "0001-01-01T00:00:00Z";
|
|
173
|
+
export declare const EXCLUDED_FALSY_VALUES: readonly [any, any, "", number];
|
|
193
174
|
export declare const API_STATUS_CODES: {
|
|
194
175
|
UNAUTHORIZED: number;
|
|
195
176
|
PERMISSION_DENIED: number;
|
|
@@ -200,6 +181,7 @@ export declare enum SERVER_MODE {
|
|
|
200
181
|
EA_ONLY = "EA_ONLY",
|
|
201
182
|
FULL = "FULL"
|
|
202
183
|
}
|
|
184
|
+
export declare const DISCORD_LINK = "https://discord.devtron.ai/";
|
|
203
185
|
export declare const POSTHOG_EVENT_ONBOARDING: {
|
|
204
186
|
PREVIEW: string;
|
|
205
187
|
DEPLOY_CUSTOM_APP_CI_CD: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
export declare class ErrorScreenManager extends Component<{
|
|
3
|
+
code?: number;
|
|
4
|
+
reload?: (...args: any[]) => any;
|
|
5
|
+
subtitle?: React.ReactChild;
|
|
6
|
+
subtitleClass?: string;
|
|
7
|
+
reloadClass?: string;
|
|
8
|
+
}> {
|
|
9
|
+
getMessage(): JSX.Element | "Bad Request" | "Unauthorized" | "Internal Server Error" | "Bad Gateway" | "Service Temporarily Unavailable";
|
|
10
|
+
render(): JSX.Element;
|
|
11
|
+
}
|
|
12
|
+
export declare class ErrorScreenNotAuthorized extends Component<{
|
|
13
|
+
subtitle?: React.ReactChild;
|
|
14
|
+
title?: string;
|
|
15
|
+
}> {
|
|
16
|
+
render(): JSX.Element;
|
|
17
|
+
}
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ interface ConditionalWrapper<T> {
|
|
|
7
7
|
children: T;
|
|
8
8
|
}
|
|
9
9
|
export declare const ConditionalWrap: React.FC<ConditionalWrapper<any>>;
|
|
10
|
-
export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean):
|
|
10
|
+
export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 0 | 1 | -1;
|
|
11
11
|
export declare const stopPropagation: (event: any) => void;
|
|
12
12
|
export declare function useThrottledEffect(callback: any, delay: any, deps?: any[]): void;
|
|
13
13
|
export declare function getRandomColor(email: string): string;
|
|
@@ -15,8 +15,6 @@ export declare const getAlphabetIcon: (str: string, rootClassName?: string) => J
|
|
|
15
15
|
export declare const getEmptyArrayOfLength: (length: number) => unknown[];
|
|
16
16
|
export declare function noop(...args: any[]): any;
|
|
17
17
|
export declare function not(e: any): boolean;
|
|
18
|
-
export declare const refresh: () => void;
|
|
19
|
-
export declare const reportIssue: () => void;
|
|
20
18
|
export declare function useEffectAfterMount(cb: any, dependencies: any): void;
|
|
21
19
|
export declare function getCookie(sKey: any): string;
|
|
22
20
|
export declare function getLoginInfo(): any;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ScanVulnerabilitiesTableProps } from '../Types';
|
|
3
|
-
export default function ScanVulnerabilitiesTable({ vulnerabilities }: ScanVulnerabilitiesTableProps): JSX.Element;
|
|
3
|
+
export default function ScanVulnerabilitiesTable({ vulnerabilities, hidePolicy, shouldStick }: ScanVulnerabilitiesTableProps): JSX.Element;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import React, { ReactNode, CSSProperties } from 'react';
|
|
|
2
2
|
import { Placement } from 'tippy.js';
|
|
3
3
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
4
4
|
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, 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;
|
|
@@ -108,19 +110,6 @@ export interface GenericEmptyStateType {
|
|
|
108
110
|
layout?: 'row' | 'column';
|
|
109
111
|
contentClassName?: string;
|
|
110
112
|
}
|
|
111
|
-
export interface ErrorPageType extends Pick<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'renderButton' | 'imageType'> {
|
|
112
|
-
code: number;
|
|
113
|
-
}
|
|
114
|
-
export interface ErrorScreenManagerProps {
|
|
115
|
-
code?: number;
|
|
116
|
-
reload?: (...args: any[]) => any;
|
|
117
|
-
subtitle?: React.ReactChild;
|
|
118
|
-
reloadClass?: string;
|
|
119
|
-
}
|
|
120
|
-
export interface ErrorScreenNotAuthorizedProps {
|
|
121
|
-
subtitle?: React.ReactChild;
|
|
122
|
-
title?: string;
|
|
123
|
-
}
|
|
124
113
|
export declare enum ImageType {
|
|
125
114
|
Large = "large",
|
|
126
115
|
Medium = "medium"
|
|
@@ -259,6 +248,34 @@ export declare enum FilterStates {
|
|
|
259
248
|
export declare enum MaterialDataSource {
|
|
260
249
|
EXTERNAL = "ext"
|
|
261
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 {
|
|
264
|
+
name: string;
|
|
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;
|
|
278
|
+
}
|
|
262
279
|
export interface DeploymentWindowArtifactMetadata {
|
|
263
280
|
id: number;
|
|
264
281
|
name: string;
|
|
@@ -290,7 +307,7 @@ export interface CDMaterialType {
|
|
|
290
307
|
imageReleaseTags?: ReleaseTag[];
|
|
291
308
|
artifactStatus?: string;
|
|
292
309
|
filterState: FilterStates;
|
|
293
|
-
registryType?:
|
|
310
|
+
registryType?: RegistryType;
|
|
294
311
|
imagePath?: string;
|
|
295
312
|
registryName?: string;
|
|
296
313
|
scanToolId?: number;
|
|
@@ -300,14 +317,28 @@ export interface CDMaterialType {
|
|
|
300
317
|
createdTime?: string;
|
|
301
318
|
deployed?: boolean;
|
|
302
319
|
dataSource?: MaterialDataSource;
|
|
320
|
+
/**
|
|
321
|
+
* The below two keys: `promotionApprovalMetaData`, `deployedOnEnvironments` are used in image promotion
|
|
322
|
+
* and may not be available to cater other use-cases.
|
|
323
|
+
*/
|
|
324
|
+
promotionApprovalMetadata?: PromotionApprovalMetadataType;
|
|
325
|
+
deployedOnEnvironments?: string[];
|
|
303
326
|
deploymentWindowArtifactMetadata?: DeploymentWindowArtifactMetadata;
|
|
304
327
|
}
|
|
305
328
|
export declare enum CDMaterialServiceEnum {
|
|
306
329
|
ROLLBACK = "rollback",
|
|
307
|
-
CD_MATERIALS = "cd-materials"
|
|
330
|
+
CD_MATERIALS = "cd-materials",
|
|
331
|
+
IMAGE_PROMOTION = "image-promotion"
|
|
308
332
|
}
|
|
309
333
|
export declare enum CDMaterialResourceQuery {
|
|
310
|
-
PENDING_APPROVAL = "PENDING_APPROVAL"
|
|
334
|
+
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
335
|
+
PROMOTION_APPROVAL_PENDING_NODE = "PROMOTION_APPROVAL_PENDING_NODE",
|
|
336
|
+
CI = "CI",
|
|
337
|
+
ENVIRONMENT = "ENVIRONMENT",
|
|
338
|
+
WEBHOOK = "WEBHOOK",
|
|
339
|
+
LINKED_CI = "LINKED-CI",
|
|
340
|
+
CI_JOB = "CI-JOB",
|
|
341
|
+
LINKED_CD = "LINKED-CD"
|
|
311
342
|
}
|
|
312
343
|
export declare enum CDMaterialFilterQuery {
|
|
313
344
|
RESOURCE = "ELIGIBLE_RESOURCES",
|
|
@@ -318,6 +349,11 @@ export interface CDMaterialServiceQueryParams {
|
|
|
318
349
|
offset?: number;
|
|
319
350
|
size?: number;
|
|
320
351
|
resource?: CDMaterialResourceQuery;
|
|
352
|
+
resourceName?: string;
|
|
353
|
+
resourceId?: number;
|
|
354
|
+
workflowId?: number;
|
|
355
|
+
appId?: number;
|
|
356
|
+
pendingForCurrentUser?: boolean;
|
|
321
357
|
filter?: CDMaterialFilterQuery;
|
|
322
358
|
}
|
|
323
359
|
export interface DownstreamNodesEnvironmentsType {
|
|
@@ -389,6 +425,7 @@ export interface CommonNodeAttr {
|
|
|
389
425
|
deploymentAppCreated?: boolean;
|
|
390
426
|
isLast?: boolean;
|
|
391
427
|
downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
|
|
428
|
+
cipipelineId?: number;
|
|
392
429
|
isDeploymentBlocked?: boolean;
|
|
393
430
|
}
|
|
394
431
|
export declare enum DeploymentAppTypes {
|
|
@@ -408,6 +445,8 @@ export interface VulnerabilityType {
|
|
|
408
445
|
}
|
|
409
446
|
export interface ScanVulnerabilitiesTableProps {
|
|
410
447
|
vulnerabilities: VulnerabilityType[];
|
|
448
|
+
hidePolicy?: boolean;
|
|
449
|
+
shouldStick?: boolean;
|
|
411
450
|
}
|
|
412
451
|
export interface MaterialInfo {
|
|
413
452
|
revision: string;
|
|
@@ -438,7 +477,7 @@ export interface FilterConditionsListType {
|
|
|
438
477
|
export interface CDMaterialsApprovalInfo {
|
|
439
478
|
approvalUsers: string[];
|
|
440
479
|
userApprovalConfig: UserApprovalConfigType;
|
|
441
|
-
|
|
480
|
+
canApproverDeploy: boolean;
|
|
442
481
|
}
|
|
443
482
|
export interface CDMaterialsMetaInfo {
|
|
444
483
|
tagsEditable: boolean;
|
|
@@ -446,9 +485,16 @@ export interface CDMaterialsMetaInfo {
|
|
|
446
485
|
hideImageTaggingHardDelete: boolean;
|
|
447
486
|
resourceFilters?: FilterConditionsListType[];
|
|
448
487
|
totalCount: number;
|
|
449
|
-
|
|
488
|
+
/**
|
|
489
|
+
* This is the ID of user that has request the material
|
|
490
|
+
*/
|
|
491
|
+
requestedUserId: number;
|
|
492
|
+
}
|
|
493
|
+
export interface ImagePromotionMaterialInfo {
|
|
494
|
+
isApprovalPendingForPromotion: boolean;
|
|
495
|
+
imagePromotionApproverEmails: string[];
|
|
450
496
|
}
|
|
451
|
-
export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo {
|
|
497
|
+
export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo, ImagePromotionMaterialInfo {
|
|
452
498
|
materials: CDMaterialType[];
|
|
453
499
|
}
|
|
454
500
|
export interface InputDetailType {
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -4,8 +4,7 @@ export * from './Types';
|
|
|
4
4
|
export * from './Api';
|
|
5
5
|
export * from './ToastBody';
|
|
6
6
|
export { default as Reload } from './Reload';
|
|
7
|
-
export
|
|
8
|
-
export { default as ErrorScreenNotAuthorized } from './ErrorScreenNotAuthorized';
|
|
7
|
+
export * from './Error';
|
|
9
8
|
export * from './Helper';
|
|
10
9
|
export * from './Progressing';
|
|
11
10
|
export * from './Drawer/Drawer';
|
|
@@ -50,3 +49,4 @@ export * from './AddCDButton';
|
|
|
50
49
|
export * from './CustomInput';
|
|
51
50
|
export * from './DraggableWrapper';
|
|
52
51
|
export * from './Pagination';
|
|
52
|
+
export * from './SegmentedBarChart';
|
|
@@ -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,3 @@
|
|
|
1
|
+
import { ScannedObjectBarProps } from './types';
|
|
2
|
+
declare const ScannedObjectBar: ({ criticalVulnerabilitiesCount, moderateVulnerabilitiesCount, lowVulnerabilitiesCount, objectBarClassName, removeObjectCountMargin, }: ScannedObjectBarProps) => JSX.Element;
|
|
3
|
+
export default ScannedObjectBar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ScannedObjectBar } from './ScannedObjectBar';
|