@devtron-labs/devtron-fe-common-lib 0.0.75-beta-30 → 0.0.75-beta-31
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 +0 -1
- package/dist/Common/Constants.d.ts +26 -8
- package/dist/Common/ErrorPage.d.ts +3 -0
- package/dist/Common/ErrorScreenManager.d.ts +3 -0
- package/dist/Common/ErrorScreenNotAuthorized.d.ts +3 -0
- package/dist/Common/Helper.d.ts +3 -1
- package/dist/Common/Hooks/index.d.ts +0 -1
- package/dist/Common/ImageTags.Types.d.ts +1 -1
- package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +1 -1
- package/dist/Common/Types.d.ts +19 -65
- 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 +0 -9
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -1
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +1 -21
- package/dist/Shared/Components/ReactSelect/utils.d.ts +0 -1
- package/dist/Shared/Components/index.d.ts +0 -7
- package/dist/Shared/Helpers.d.ts +0 -7
- package/dist/Shared/index.d.ts +0 -1
- package/dist/Shared/types.d.ts +0 -157
- package/dist/assets/index.css +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +13773 -14178
- package/package.json +3 -5
- package/dist/Common/Error.d.ts +0 -17
- package/dist/Common/ErrorScreenNotFound.d.ts +0 -2
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcut.d.ts +0 -2
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutContext.d.ts +0 -3
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +0 -3
- package/dist/Common/Hooks/UseRegisterShortcut/index.d.ts +0 -2
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +0 -8
- package/dist/Common/Markdown/MarkDown.d.ts +0 -3
- package/dist/Common/Markdown/Types.d.ts +0 -7
- package/dist/Common/Markdown/index.d.ts +0 -1
- package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +0 -3
- package/dist/Shared/Components/ActivityIndicator/index.d.ts +0 -1
- package/dist/Shared/Components/ActivityIndicator/types.d.ts +0 -3
- package/dist/Shared/Components/ExcludedImageNode/ExcludedImageNode.d.ts +0 -3
- package/dist/Shared/Components/ExcludedImageNode/index.d.ts +0 -1
- package/dist/Shared/Components/ExcludedImageNode/types.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/ArtifactInfo/ArtifactInfo.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/ArtifactInfo/index.d.ts +0 -1
- package/dist/Shared/Components/ImageCard/ArtifactInfo/types.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/ImageCard.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/DeploymentEnvState.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/constants.d.ts +0 -6
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/index.d.ts +0 -1
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/types.d.ts +0 -10
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/utils.d.ts +0 -2
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/index.d.ts +0 -1
- package/dist/Shared/Components/ImageCard/index.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/types.d.ts +0 -40
- package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +0 -3
- package/dist/Shared/Components/ImageCardAccordion/index.d.ts +0 -1
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +0 -23
- package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +0 -3
- package/dist/Shared/Components/ScannedByToolModal/index.d.ts +0 -1
- package/dist/Shared/Components/ScannedByToolModal/types.d.ts +0 -3
- package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +0 -3
- package/dist/Shared/Components/ScannedObjectBar/index.d.ts +0 -1
- package/dist/Shared/Components/ScannedObjectBar/types.d.ts +0 -7
- package/dist/Shared/Components/Vulnerabilities/Vulnerabilities.d.ts +0 -3
- package/dist/Shared/Components/Vulnerabilities/constants.d.ts +0 -4
- package/dist/Shared/Components/Vulnerabilities/index.d.ts +0 -2
- package/dist/Shared/Components/Vulnerabilities/service.d.ts +0 -2
- package/dist/Shared/Components/Vulnerabilities/types.d.ts +0 -8
- package/dist/Shared/Components/Vulnerabilities/utils.d.ts +0 -3
- package/dist/Shared/constants.d.ts +0 -31
|
@@ -17,5 +17,4 @@ 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>;
|
|
21
20
|
export {};
|
|
@@ -2,6 +2,7 @@ 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/";
|
|
5
6
|
export declare const DOCUMENTATION: {
|
|
6
7
|
APP_TAGS: string;
|
|
7
8
|
APP_OVERVIEW_TAGS: string;
|
|
@@ -25,15 +26,13 @@ export declare const URLS: {
|
|
|
25
26
|
APP_LIST_HELM: string;
|
|
26
27
|
};
|
|
27
28
|
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
|
-
|
|
36
|
-
NOTIFIER: string;
|
|
35
|
+
APP_LIST: string;
|
|
37
36
|
TELEMETRY_EVENT: string;
|
|
38
37
|
SERVER_INFO_API: string;
|
|
39
38
|
ATTRIBUTES_USER: string;
|
|
@@ -51,6 +50,16 @@ export declare const DEFAULT_TAG_DATA: {
|
|
|
51
50
|
isInvalidValue: boolean;
|
|
52
51
|
isSuggested: boolean;
|
|
53
52
|
};
|
|
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
|
+
}
|
|
54
63
|
export declare const TOAST_ACCESS_DENIED: {
|
|
55
64
|
TITLE: string;
|
|
56
65
|
SUBTITLE: string;
|
|
@@ -59,11 +68,23 @@ export declare const ERROR_EMPTY_SCREEN: {
|
|
|
59
68
|
PAGE_NOT_FOUND: string;
|
|
60
69
|
PAGE_NOT_EXIST: string;
|
|
61
70
|
TAKE_BACK_HOME: string;
|
|
71
|
+
REPORT_ISSUE: string;
|
|
62
72
|
ONLY_FOR_SUPERADMIN: string;
|
|
63
73
|
NOT_AUTHORIZED: string;
|
|
74
|
+
REQUIRED_MANAGER_ACCESS: string;
|
|
75
|
+
BAD_REQUEST: string;
|
|
76
|
+
BAD_REQUEST_MESSAGE: string;
|
|
77
|
+
TRY_AGAIN: string;
|
|
64
78
|
UNAUTHORIZED: string;
|
|
79
|
+
UNAUTHORIZED_MESSAGE: string;
|
|
65
80
|
FORBIDDEN: string;
|
|
66
|
-
|
|
81
|
+
FORBIDDEN_MESSAGE: string;
|
|
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;
|
|
67
88
|
};
|
|
68
89
|
export declare const TOKEN_COOKIE_NAME = "argocd.token";
|
|
69
90
|
export declare const TriggerTypeMap: {
|
|
@@ -89,8 +110,7 @@ export declare enum MODES {
|
|
|
89
110
|
}
|
|
90
111
|
export declare enum APPROVAL_MODAL_TYPE {
|
|
91
112
|
CONFIG = "CONFIG",
|
|
92
|
-
DEPLOYMENT = "DEPLOYMENT"
|
|
93
|
-
IMAGE_PROMOTION = "IMAGE-PROMOTION"
|
|
113
|
+
DEPLOYMENT = "DEPLOYMENT"
|
|
94
114
|
}
|
|
95
115
|
export declare const MAX_Z_INDEX = 2147483647;
|
|
96
116
|
export declare const SELECTED_APPROVAL_TAB_STATE: {
|
|
@@ -170,7 +190,6 @@ export declare enum ReactSelectInputAction {
|
|
|
170
190
|
removeValue = "remove-value"
|
|
171
191
|
}
|
|
172
192
|
export declare const ZERO_TIME_STRING = "0001-01-01T00:00:00Z";
|
|
173
|
-
export declare const EXCLUDED_FALSY_VALUES: readonly [any, any, "", number];
|
|
174
193
|
export declare const API_STATUS_CODES: {
|
|
175
194
|
UNAUTHORIZED: number;
|
|
176
195
|
PERMISSION_DENIED: number;
|
|
@@ -181,7 +200,6 @@ export declare enum SERVER_MODE {
|
|
|
181
200
|
EA_ONLY = "EA_ONLY",
|
|
182
201
|
FULL = "FULL"
|
|
183
202
|
}
|
|
184
|
-
export declare const DISCORD_LINK = "https://discord.devtron.ai/";
|
|
185
203
|
export declare const POSTHOG_EVENT_ONBOARDING: {
|
|
186
204
|
PREVIEW: string;
|
|
187
205
|
DEPLOY_CUSTOM_APP_CI_CD: string;
|
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): 1 | 0 | -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,6 +15,8 @@ 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;
|
|
18
20
|
export declare function useEffectAfterMount(cb: any, dependencies: any): void;
|
|
19
21
|
export declare function getCookie(sKey: any): string;
|
|
20
22
|
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
|
|
3
|
+
export default function ScanVulnerabilitiesTable({ vulnerabilities }: ScanVulnerabilitiesTableProps): JSX.Element;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ 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';
|
|
6
5
|
/**
|
|
7
6
|
* Generic response type object with support for overriding the result type
|
|
8
7
|
*
|
|
@@ -52,7 +51,6 @@ export interface CheckboxProps {
|
|
|
52
51
|
onChange: (event: any) => void;
|
|
53
52
|
isChecked: boolean;
|
|
54
53
|
value: 'CHECKED' | 'INTERMEDIATE' | 'BULK_CHECKED';
|
|
55
|
-
name?: string;
|
|
56
54
|
disabled?: boolean;
|
|
57
55
|
tabIndex?: number;
|
|
58
56
|
rootClassName?: string;
|
|
@@ -110,6 +108,19 @@ export interface GenericEmptyStateType {
|
|
|
110
108
|
layout?: 'row' | 'column';
|
|
111
109
|
contentClassName?: string;
|
|
112
110
|
}
|
|
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
|
+
}
|
|
113
124
|
export declare enum ImageType {
|
|
114
125
|
Large = "large",
|
|
115
126
|
Medium = "medium"
|
|
@@ -248,34 +259,6 @@ export declare enum FilterStates {
|
|
|
248
259
|
export declare enum MaterialDataSource {
|
|
249
260
|
EXTERNAL = "ext"
|
|
250
261
|
}
|
|
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
|
-
}
|
|
279
262
|
export interface DeploymentWindowArtifactMetadata {
|
|
280
263
|
id: number;
|
|
281
264
|
name: string;
|
|
@@ -307,7 +290,7 @@ export interface CDMaterialType {
|
|
|
307
290
|
imageReleaseTags?: ReleaseTag[];
|
|
308
291
|
artifactStatus?: string;
|
|
309
292
|
filterState: FilterStates;
|
|
310
|
-
registryType?:
|
|
293
|
+
registryType?: string;
|
|
311
294
|
imagePath?: string;
|
|
312
295
|
registryName?: string;
|
|
313
296
|
scanToolId?: number;
|
|
@@ -317,28 +300,14 @@ export interface CDMaterialType {
|
|
|
317
300
|
createdTime?: string;
|
|
318
301
|
deployed?: boolean;
|
|
319
302
|
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[];
|
|
326
303
|
deploymentWindowArtifactMetadata?: DeploymentWindowArtifactMetadata;
|
|
327
304
|
}
|
|
328
305
|
export declare enum CDMaterialServiceEnum {
|
|
329
306
|
ROLLBACK = "rollback",
|
|
330
|
-
CD_MATERIALS = "cd-materials"
|
|
331
|
-
IMAGE_PROMOTION = "image-promotion"
|
|
307
|
+
CD_MATERIALS = "cd-materials"
|
|
332
308
|
}
|
|
333
309
|
export declare enum CDMaterialResourceQuery {
|
|
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"
|
|
310
|
+
PENDING_APPROVAL = "PENDING_APPROVAL"
|
|
342
311
|
}
|
|
343
312
|
export declare enum CDMaterialFilterQuery {
|
|
344
313
|
RESOURCE = "ELIGIBLE_RESOURCES",
|
|
@@ -349,11 +318,6 @@ export interface CDMaterialServiceQueryParams {
|
|
|
349
318
|
offset?: number;
|
|
350
319
|
size?: number;
|
|
351
320
|
resource?: CDMaterialResourceQuery;
|
|
352
|
-
resourceName?: string;
|
|
353
|
-
resourceId?: number;
|
|
354
|
-
workflowId?: number;
|
|
355
|
-
appId?: number;
|
|
356
|
-
pendingForCurrentUser?: boolean;
|
|
357
321
|
filter?: CDMaterialFilterQuery;
|
|
358
322
|
}
|
|
359
323
|
export interface DownstreamNodesEnvironmentsType {
|
|
@@ -425,7 +389,6 @@ export interface CommonNodeAttr {
|
|
|
425
389
|
deploymentAppCreated?: boolean;
|
|
426
390
|
isLast?: boolean;
|
|
427
391
|
downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
|
|
428
|
-
cipipelineId?: number;
|
|
429
392
|
isDeploymentBlocked?: boolean;
|
|
430
393
|
}
|
|
431
394
|
export declare enum DeploymentAppTypes {
|
|
@@ -445,8 +408,6 @@ export interface VulnerabilityType {
|
|
|
445
408
|
}
|
|
446
409
|
export interface ScanVulnerabilitiesTableProps {
|
|
447
410
|
vulnerabilities: VulnerabilityType[];
|
|
448
|
-
hidePolicy?: boolean;
|
|
449
|
-
shouldStick?: boolean;
|
|
450
411
|
}
|
|
451
412
|
export interface MaterialInfo {
|
|
452
413
|
revision: string;
|
|
@@ -477,7 +438,7 @@ export interface FilterConditionsListType {
|
|
|
477
438
|
export interface CDMaterialsApprovalInfo {
|
|
478
439
|
approvalUsers: string[];
|
|
479
440
|
userApprovalConfig: UserApprovalConfigType;
|
|
480
|
-
|
|
441
|
+
requestedUserId: number;
|
|
481
442
|
}
|
|
482
443
|
export interface CDMaterialsMetaInfo {
|
|
483
444
|
tagsEditable: boolean;
|
|
@@ -485,16 +446,9 @@ export interface CDMaterialsMetaInfo {
|
|
|
485
446
|
hideImageTaggingHardDelete: boolean;
|
|
486
447
|
resourceFilters?: FilterConditionsListType[];
|
|
487
448
|
totalCount: number;
|
|
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[];
|
|
449
|
+
canApproverDeploy: boolean;
|
|
496
450
|
}
|
|
497
|
-
export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo
|
|
451
|
+
export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo {
|
|
498
452
|
materials: CDMaterialType[];
|
|
499
453
|
}
|
|
500
454
|
export interface InputDetailType {
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ export * from './Types';
|
|
|
4
4
|
export * from './Api';
|
|
5
5
|
export * from './ToastBody';
|
|
6
6
|
export { default as Reload } from './Reload';
|
|
7
|
-
export
|
|
7
|
+
export { default as ErrorScreenManager } from './ErrorScreenManager';
|
|
8
|
+
export { default as ErrorScreenNotAuthorized } from './ErrorScreenNotAuthorized';
|
|
8
9
|
export * from './Helper';
|
|
9
10
|
export * from './Progressing';
|
|
10
11
|
export * from './Drawer/Drawer';
|
|
@@ -49,4 +50,3 @@ export * from './AddCDButton';
|
|
|
49
50
|
export * from './CustomInput';
|
|
50
51
|
export * from './DraggableWrapper';
|
|
51
52
|
export * from './Pagination';
|
|
52
|
-
export * from './Markdown';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { APIResponseHandlerProps } from './types';
|
|
2
|
-
declare const APIResponseHandler: ({ isLoading, progressingProps,
|
|
2
|
+
declare const APIResponseHandler: ({ isLoading, progressingProps, error, notAuthorized, notFoundText, reloadProps, children, }: APIResponseHandlerProps) => JSX.Element;
|
|
3
3
|
export default APIResponseHandler;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { GenericEmptyStateType, ProgressingProps, ReloadType, ServerErrors } from '../../../Common';
|
|
3
|
-
import { GenericSectionErrorStateProps } from '../GenericSectionErrorState/types';
|
|
4
3
|
export interface EmptyPageTextType {
|
|
5
4
|
title?: GenericEmptyStateType['title'];
|
|
6
5
|
subTitle?: GenericEmptyStateType['subTitle'];
|
|
@@ -14,10 +13,6 @@ export interface APIResponseHandlerProps {
|
|
|
14
13
|
* If loading is true, would load send these props to Progressing component
|
|
15
14
|
*/
|
|
16
15
|
progressingProps?: ProgressingProps;
|
|
17
|
-
/**
|
|
18
|
-
* If given, would show this component instead of default Progressing component
|
|
19
|
-
*/
|
|
20
|
-
customLoader?: ReactNode;
|
|
21
16
|
/**
|
|
22
17
|
* If true and isLoading is false would show default Reload component
|
|
23
18
|
* In case error code is 404 show default 404 page using GenericEmptyState
|
|
@@ -35,10 +30,6 @@ export interface APIResponseHandlerProps {
|
|
|
35
30
|
* If given, on Error, would load these props
|
|
36
31
|
*/
|
|
37
32
|
reloadProps?: ReloadType;
|
|
38
|
-
/**
|
|
39
|
-
* If given, would show this component instead of default Error component
|
|
40
|
-
*/
|
|
41
|
-
genericSectionErrorProps?: GenericSectionErrorStateProps;
|
|
42
33
|
/**
|
|
43
34
|
* If no Error and no Loading, would load this component
|
|
44
35
|
*/
|
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
|
|
2
|
+
declare const GenericSectionErrorState: ({ reload, withBorder }: GenericSectionErrorStateProps) => JSX.Element;
|
|
3
3
|
export default GenericSectionErrorState;
|
|
@@ -2,31 +2,11 @@ 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;
|
|
32
12
|
}
|
|
@@ -12,4 +12,3 @@ 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;
|
|
@@ -1,16 +1,9 @@
|
|
|
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';
|
|
9
4
|
export * from './FilterChips';
|
|
10
|
-
export * from './ActivityIndicator';
|
|
11
5
|
export * from './GenericSectionErrorState';
|
|
12
6
|
export * from './KeyValueList';
|
|
13
|
-
export * from './ScannedObjectBar';
|
|
14
7
|
export * from './EditableTextArea';
|
|
15
8
|
export * from './Header';
|
|
16
9
|
export * from './AnnouncementBanner';
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { MaterialInfo } from '../Common';
|
|
2
|
-
import { GitTriggers } from './types';
|
|
3
1
|
interface HighlightSearchTextProps {
|
|
4
2
|
/**
|
|
5
3
|
* The text to be highlighted
|
|
@@ -15,9 +13,4 @@ interface HighlightSearchTextProps {
|
|
|
15
13
|
highlightClasses?: string;
|
|
16
14
|
}
|
|
17
15
|
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;
|
|
22
|
-
export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
23
16
|
export {};
|
package/dist/Shared/index.d.ts
CHANGED
package/dist/Shared/types.d.ts
CHANGED
|
@@ -1,89 +1,3 @@
|
|
|
1
|
-
import { CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType } from '../Common';
|
|
2
|
-
export declare enum RegistryType {
|
|
3
|
-
GIT = "git",
|
|
4
|
-
GITHUB = "github",
|
|
5
|
-
GITLAB = "gitlab",
|
|
6
|
-
BITBUCKET = "bitbucket",
|
|
7
|
-
DOCKER = "docker",
|
|
8
|
-
DOCKER_HUB = "docker-hub",
|
|
9
|
-
ACR = "acr",
|
|
10
|
-
QUAY = "quay",
|
|
11
|
-
ECR = "ecr",
|
|
12
|
-
ARTIFACT_REGISTRY = "artifact-registry",
|
|
13
|
-
GCR = "gcr",
|
|
14
|
-
OTHER = "other"
|
|
15
|
-
}
|
|
16
|
-
export declare enum DefaultUserKey {
|
|
17
|
-
system = "system",
|
|
18
|
-
admin = "admin"
|
|
19
|
-
}
|
|
20
|
-
export declare enum Severity {
|
|
21
|
-
CRITICAL = "critical",
|
|
22
|
-
MODERATE = "moderate",
|
|
23
|
-
LOW = "low"
|
|
24
|
-
}
|
|
25
|
-
export declare enum ImagePromotionTabs {
|
|
26
|
-
REQUEST = "request",
|
|
27
|
-
PENDING = "pending"
|
|
28
|
-
}
|
|
29
|
-
export interface ArtifactPromotionMetadata {
|
|
30
|
-
isConfigured: boolean;
|
|
31
|
-
isApprovalPendingForPromotion: boolean;
|
|
32
|
-
}
|
|
33
|
-
export interface Material {
|
|
34
|
-
gitMaterialId: number;
|
|
35
|
-
materialName: string;
|
|
36
|
-
}
|
|
37
|
-
export interface WorkflowType {
|
|
38
|
-
id: string;
|
|
39
|
-
name: string;
|
|
40
|
-
gitMaterials?: Material[];
|
|
41
|
-
ciConfiguredGitMaterialId?: number;
|
|
42
|
-
startX: number;
|
|
43
|
-
startY: number;
|
|
44
|
-
width: number;
|
|
45
|
-
height: number;
|
|
46
|
-
nodes: CommonNodeAttr[];
|
|
47
|
-
dag: any;
|
|
48
|
-
showTippy?: boolean;
|
|
49
|
-
appId?: number;
|
|
50
|
-
isSelected?: boolean;
|
|
51
|
-
approvalConfiguredIdsMap?: Record<number, UserApprovalConfigType>;
|
|
52
|
-
imageReleaseTags: string[];
|
|
53
|
-
appReleaseTags?: string[];
|
|
54
|
-
tagsEditable?: boolean;
|
|
55
|
-
hideImageTaggingHardDelete?: boolean;
|
|
56
|
-
artifactPromotionMetadata?: ArtifactPromotionMetadata;
|
|
57
|
-
}
|
|
58
|
-
export declare enum ModuleStatus {
|
|
59
|
-
HEALTHY = "healthy",
|
|
60
|
-
NONE = "none",
|
|
61
|
-
UNKNOWN = "unknown",
|
|
62
|
-
UPGRADING = "upgrading",
|
|
63
|
-
UPGRADE_FAILED = "upgradeFailed",
|
|
64
|
-
INSTALLED = "installed",
|
|
65
|
-
INSTALLING = "installing",
|
|
66
|
-
INSTALL_FAILED = "installFailed",
|
|
67
|
-
NOT_INSTALLED = "notInstalled",
|
|
68
|
-
TIMEOUT = "timeout"
|
|
69
|
-
}
|
|
70
|
-
export interface WebHookData {
|
|
71
|
-
Id: number;
|
|
72
|
-
EventActionType: string;
|
|
73
|
-
Data: any;
|
|
74
|
-
}
|
|
75
|
-
export interface GitTriggers {
|
|
76
|
-
Commit: string;
|
|
77
|
-
Author: string;
|
|
78
|
-
Date: Date | string;
|
|
79
|
-
Message: string;
|
|
80
|
-
Changes: string[];
|
|
81
|
-
WebhookData: WebHookData;
|
|
82
|
-
GitRepoUrl: string;
|
|
83
|
-
GitRepoName: string;
|
|
84
|
-
CiConfigureSourceType: string;
|
|
85
|
-
CiConfigureSourceValue: string;
|
|
86
|
-
}
|
|
87
1
|
export interface RuntimeParamsAPIResponseType {
|
|
88
2
|
envVariables: Record<string, string>;
|
|
89
3
|
}
|
|
@@ -94,74 +8,3 @@ export declare enum CIMaterialSidebarType {
|
|
|
94
8
|
CODE_SOURCE = "Code Source",
|
|
95
9
|
PARAMETERS = "Parameters"
|
|
96
10
|
}
|
|
97
|
-
export interface LastExecutionResultType {
|
|
98
|
-
lastExecution: string;
|
|
99
|
-
severityCount: {
|
|
100
|
-
critical: number;
|
|
101
|
-
moderate: number;
|
|
102
|
-
low: number;
|
|
103
|
-
};
|
|
104
|
-
vulnerabilities: VulnerabilityType[];
|
|
105
|
-
scanExecutionId?: number;
|
|
106
|
-
appId?: number;
|
|
107
|
-
appName?: string;
|
|
108
|
-
envId?: number;
|
|
109
|
-
envName?: string;
|
|
110
|
-
pod?: string;
|
|
111
|
-
replicaSet?: string;
|
|
112
|
-
image?: string;
|
|
113
|
-
objectType?: 'app' | 'chart';
|
|
114
|
-
scanned?: boolean;
|
|
115
|
-
scanEnabled?: boolean;
|
|
116
|
-
scanToolId?: number;
|
|
117
|
-
}
|
|
118
|
-
export interface LastExecutionResponseType extends ResponseType<LastExecutionResultType> {
|
|
119
|
-
}
|
|
120
|
-
export interface MaterialSecurityInfoType {
|
|
121
|
-
isScanned: boolean;
|
|
122
|
-
isScanEnabled: boolean;
|
|
123
|
-
}
|
|
124
|
-
export declare enum Nodes {
|
|
125
|
-
Service = "Service",
|
|
126
|
-
Alertmanager = "Alertmanager",
|
|
127
|
-
PodSecurity = "PodSecurityPolicy",
|
|
128
|
-
ConfigMap = "ConfigMap",
|
|
129
|
-
ServiceAccount = "ServiceAccount",
|
|
130
|
-
ClusterRoleBinding = "ClusterRoleBinding",
|
|
131
|
-
RoleBinding = "RoleBinding",
|
|
132
|
-
ClusterRole = "ClusterRole",
|
|
133
|
-
Role = "Role",
|
|
134
|
-
Prometheus = "Prometheus",
|
|
135
|
-
ServiceMonitor = "ServiceMonitor",
|
|
136
|
-
Deployment = "Deployment",
|
|
137
|
-
MutatingWebhookConfiguration = "MutatingWebhookConfiguration",
|
|
138
|
-
DaemonSet = "DaemonSet",
|
|
139
|
-
Secret = "Secret",
|
|
140
|
-
ValidatingWebhookConfiguration = "ValidatingWebhookConfiguration",
|
|
141
|
-
Pod = "Pod",
|
|
142
|
-
Ingress = "Ingress",
|
|
143
|
-
ReplicaSet = "ReplicaSet",
|
|
144
|
-
Endpoints = "Endpoints",
|
|
145
|
-
Cluster = "ClusterRoleBinding",
|
|
146
|
-
PodSecurityPolicy = "PodSecurityPolicy",
|
|
147
|
-
CronJob = "CronJob",
|
|
148
|
-
Job = "Job",
|
|
149
|
-
ReplicationController = "ReplicationController",
|
|
150
|
-
StatefulSet = "StatefulSet",
|
|
151
|
-
Rollout = "Rollout",
|
|
152
|
-
PersistentVolumeClaim = "PersistentVolumeClaim",
|
|
153
|
-
PersistentVolume = "PersistentVolume",
|
|
154
|
-
Containers = "Containers",
|
|
155
|
-
InitContainers = "InitContainers",
|
|
156
|
-
EndpointSlice = "EndpointSlice",
|
|
157
|
-
NetworkPolicy = "NetworkPolicy",
|
|
158
|
-
StorageClass = "StorageClass",
|
|
159
|
-
VolumeSnapshot = "VolumeSnapshot",
|
|
160
|
-
VolumeSnapshotContent = "VolumeSnapshotContent",
|
|
161
|
-
VolumeSnapshotClass = "VolumeSnapshotClass",
|
|
162
|
-
PodDisruptionBudget = "PodDisruptionBudget",
|
|
163
|
-
Event = "Event",
|
|
164
|
-
Namespace = "Namespace",
|
|
165
|
-
Overview = "Overview"
|
|
166
|
-
}
|
|
167
|
-
export type NodeType = keyof typeof Nodes;
|