@devtron-labs/devtron-fe-common-lib 0.0.70-beta-1 → 0.0.70-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 +0 -1
- package/dist/Common/Constants.d.ts +45 -6
- package/dist/Common/Helper.d.ts +4 -0
- package/dist/Common/ImageTags.Types.d.ts +1 -1
- package/dist/Common/Types.d.ts +21 -62
- 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 -6
- package/dist/Shared/Helpers.d.ts +0 -6
- package/dist/Shared/index.d.ts +0 -1
- package/dist/Shared/types.d.ts +0 -114
- package/dist/index.js +12631 -13031
- package/package.json +2 -2
- 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/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 -1
- package/dist/Shared/Components/Vulnerabilities/service.d.ts +0 -2
- package/dist/Shared/Components/Vulnerabilities/types.d.ts +0 -8
- 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 {};
|
|
@@ -17,15 +17,12 @@ export declare const URLS: {
|
|
|
17
17
|
PERMISSION_GROUPS: string;
|
|
18
18
|
};
|
|
19
19
|
export declare const ROUTES: {
|
|
20
|
-
APP_ARTIFACT_PROMOTE_MATERIAL: string;
|
|
21
20
|
PROJECT_LIST_MIN: string;
|
|
22
21
|
USER_CHECK_ROLE: string;
|
|
23
22
|
IMAGE_TAGGING: string;
|
|
24
23
|
CD_MATERIAL_GET: string;
|
|
25
24
|
DEPLOYMENT_TEMPLATE_LIST: string;
|
|
26
25
|
INFRA_CONFIG_PROFILE: string;
|
|
27
|
-
SECURITY_SCAN_EXECUTION_DETAILS: string;
|
|
28
|
-
NOTIFIER: string;
|
|
29
26
|
};
|
|
30
27
|
export declare enum KEY_VALUE {
|
|
31
28
|
KEY = "key",
|
|
@@ -77,8 +74,7 @@ export declare enum MODES {
|
|
|
77
74
|
}
|
|
78
75
|
export declare enum APPROVAL_MODAL_TYPE {
|
|
79
76
|
CONFIG = "CONFIG",
|
|
80
|
-
DEPLOYMENT = "DEPLOYMENT"
|
|
81
|
-
IMAGE_PROMOTION = "IMAGE-PROMOTION"
|
|
77
|
+
DEPLOYMENT = "DEPLOYMENT"
|
|
82
78
|
}
|
|
83
79
|
export declare const MAX_Z_INDEX = 2147483647;
|
|
84
80
|
export declare const SELECTED_APPROVAL_TAB_STATE: {
|
|
@@ -99,6 +95,50 @@ export declare enum SortingOrder {
|
|
|
99
95
|
* Base page size for pagination
|
|
100
96
|
*/
|
|
101
97
|
export declare const DEFAULT_BASE_PAGE_SIZE = 20;
|
|
98
|
+
/**
|
|
99
|
+
* Deployment Window
|
|
100
|
+
*/
|
|
101
|
+
export declare enum MODAL_TYPE {
|
|
102
|
+
HIBERNATE = "HIBERNATE",
|
|
103
|
+
UNHIBERNATE = "UNHIBERNATE",
|
|
104
|
+
RESTORE = "RESTORE",
|
|
105
|
+
DEPLOY = "DEPLOY",
|
|
106
|
+
RESOURCE = "RESOURCE",
|
|
107
|
+
RESTART = "RESTART",
|
|
108
|
+
PIPELINE = "PIPELINE",
|
|
109
|
+
OVERVIEW = "OVERVIEW",
|
|
110
|
+
APP_DETAILS_STATUS = "APP_DETAILS_STATUS"
|
|
111
|
+
}
|
|
112
|
+
export declare enum ACTION_STATE {
|
|
113
|
+
ALLOWED = "ALLOWED",
|
|
114
|
+
PARTIAL = "PARTIAL",
|
|
115
|
+
BLOCKED = "BLOCKED"
|
|
116
|
+
}
|
|
117
|
+
export declare enum DEPLOYMENT_WINDOW_TYPE {
|
|
118
|
+
MAINTENANCE = "MAINTENANCE",
|
|
119
|
+
BLACKOUT = "BLACKOUT"
|
|
120
|
+
}
|
|
121
|
+
export declare const arrowUnicode = "\u279D";
|
|
122
|
+
export declare enum WEEK_DAYS_ENUM {
|
|
123
|
+
SUNDAY = "SUNDAY",
|
|
124
|
+
MONDAY = "MONDAY",
|
|
125
|
+
TUESDAY = "TUESDAY",
|
|
126
|
+
WEDNESDAY = "WEDNESDAY",
|
|
127
|
+
THURSDAY = "THURSDAY",
|
|
128
|
+
FRIDAY = "FRIDAY",
|
|
129
|
+
SATURDAY = "SATURDAY"
|
|
130
|
+
}
|
|
131
|
+
export declare enum FREQUENCY_ENUM {
|
|
132
|
+
FIXED = "FIXED",
|
|
133
|
+
DAILY = "DAILY",
|
|
134
|
+
WEEKLY = "WEEKLY",
|
|
135
|
+
MONTHLY = "MONTHLY",
|
|
136
|
+
YEARLY = "YEARLY",
|
|
137
|
+
WEEKLY_RANGE = "WEEKLY_RANGE"
|
|
138
|
+
}
|
|
139
|
+
export declare const TIME_FORMAT: {
|
|
140
|
+
DD_MMM_YYYY_HH_MM: string;
|
|
141
|
+
};
|
|
102
142
|
export declare enum ReactSelectInputAction {
|
|
103
143
|
inputChange = "input-change",
|
|
104
144
|
selectOption = "select-option",
|
|
@@ -106,4 +146,3 @@ export declare enum ReactSelectInputAction {
|
|
|
106
146
|
removeValue = "remove-value"
|
|
107
147
|
}
|
|
108
148
|
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,4 +65,8 @@ 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;
|
|
68
72
|
export {};
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
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 { DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
|
5
|
-
import { RegistryType } from '../Shared';
|
|
4
|
+
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
|
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;
|
|
@@ -248,33 +246,10 @@ export declare enum FilterStates {
|
|
|
248
246
|
export declare enum MaterialDataSource {
|
|
249
247
|
EXTERNAL = "ext"
|
|
250
248
|
}
|
|
251
|
-
export
|
|
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;
|
|
249
|
+
export interface DeploymentWindowArtifactMetadata {
|
|
265
250
|
id: number;
|
|
266
|
-
|
|
267
|
-
|
|
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;
|
|
251
|
+
name: string;
|
|
252
|
+
type: DEPLOYMENT_WINDOW_TYPE;
|
|
278
253
|
}
|
|
279
254
|
export interface CDMaterialType {
|
|
280
255
|
index: number;
|
|
@@ -302,7 +277,7 @@ export interface CDMaterialType {
|
|
|
302
277
|
imageReleaseTags?: ReleaseTag[];
|
|
303
278
|
artifactStatus?: string;
|
|
304
279
|
filterState: FilterStates;
|
|
305
|
-
registryType?:
|
|
280
|
+
registryType?: string;
|
|
306
281
|
imagePath?: string;
|
|
307
282
|
registryName?: string;
|
|
308
283
|
scanToolId?: number;
|
|
@@ -312,27 +287,14 @@ export interface CDMaterialType {
|
|
|
312
287
|
createdTime?: string;
|
|
313
288
|
deployed?: boolean;
|
|
314
289
|
dataSource?: MaterialDataSource;
|
|
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[];
|
|
290
|
+
deploymentWindowArtifactMetadata?: DeploymentWindowArtifactMetadata;
|
|
321
291
|
}
|
|
322
292
|
export declare enum CDMaterialServiceEnum {
|
|
323
293
|
ROLLBACK = "rollback",
|
|
324
|
-
CD_MATERIALS = "cd-materials"
|
|
325
|
-
IMAGE_PROMOTION = "image-promotion"
|
|
294
|
+
CD_MATERIALS = "cd-materials"
|
|
326
295
|
}
|
|
327
296
|
export declare enum CDMaterialResourceQuery {
|
|
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"
|
|
297
|
+
PENDING_APPROVAL = "PENDING_APPROVAL"
|
|
336
298
|
}
|
|
337
299
|
export declare enum CDMaterialFilterQuery {
|
|
338
300
|
RESOURCE = "ELIGIBLE_RESOURCES",
|
|
@@ -343,11 +305,6 @@ export interface CDMaterialServiceQueryParams {
|
|
|
343
305
|
offset?: number;
|
|
344
306
|
size?: number;
|
|
345
307
|
resource?: CDMaterialResourceQuery;
|
|
346
|
-
resourceName?: string;
|
|
347
|
-
resourceId?: number;
|
|
348
|
-
workflowId?: number;
|
|
349
|
-
appId?: number;
|
|
350
|
-
pendingForCurrentUser?: boolean;
|
|
351
308
|
filter?: CDMaterialFilterQuery;
|
|
352
309
|
}
|
|
353
310
|
export interface DownstreamNodesEnvironmentsType {
|
|
@@ -419,7 +376,7 @@ export interface CommonNodeAttr {
|
|
|
419
376
|
deploymentAppCreated?: boolean;
|
|
420
377
|
isLast?: boolean;
|
|
421
378
|
downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
|
|
422
|
-
|
|
379
|
+
isDeploymentBlocked?: boolean;
|
|
423
380
|
}
|
|
424
381
|
export declare enum DeploymentAppTypes {
|
|
425
382
|
HELM = "helm",
|
|
@@ -468,7 +425,7 @@ export interface FilterConditionsListType {
|
|
|
468
425
|
export interface CDMaterialsApprovalInfo {
|
|
469
426
|
approvalUsers: string[];
|
|
470
427
|
userApprovalConfig: UserApprovalConfigType;
|
|
471
|
-
|
|
428
|
+
requestedUserId: number;
|
|
472
429
|
}
|
|
473
430
|
export interface CDMaterialsMetaInfo {
|
|
474
431
|
tagsEditable: boolean;
|
|
@@ -476,16 +433,9 @@ export interface CDMaterialsMetaInfo {
|
|
|
476
433
|
hideImageTaggingHardDelete: boolean;
|
|
477
434
|
resourceFilters?: FilterConditionsListType[];
|
|
478
435
|
totalCount: number;
|
|
479
|
-
|
|
480
|
-
* This is the ID of user that has request the material
|
|
481
|
-
*/
|
|
482
|
-
requestedUserId: number;
|
|
483
|
-
}
|
|
484
|
-
export interface ImagePromotionMaterialInfo {
|
|
485
|
-
isApprovalPendingForPromotion: boolean;
|
|
486
|
-
imagePromotionApproverEmails: string[];
|
|
436
|
+
canApproverDeploy: boolean;
|
|
487
437
|
}
|
|
488
|
-
export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo
|
|
438
|
+
export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo {
|
|
489
439
|
materials: CDMaterialType[];
|
|
490
440
|
}
|
|
491
441
|
export interface InputDetailType {
|
|
@@ -782,4 +732,13 @@ export type SortingParams<T = string> = {
|
|
|
782
732
|
sortOrder?: never;
|
|
783
733
|
sortBy?: never;
|
|
784
734
|
};
|
|
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
|
+
}
|
|
785
744
|
export {};
|
|
@@ -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,12 +1,6 @@
|
|
|
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';
|
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,8 +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
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,31 +8,3 @@ export declare enum CIMaterialSidebarType {
|
|
|
94
8
|
CODE_SOURCE = "Code Source",
|
|
95
9
|
PARAMETERS = "Parameters"
|
|
96
10
|
}
|
|
97
|
-
interface LastExecutionResultType {
|
|
98
|
-
scanExecutionId: number;
|
|
99
|
-
lastExecution: string;
|
|
100
|
-
appId?: number;
|
|
101
|
-
appName?: string;
|
|
102
|
-
envId?: number;
|
|
103
|
-
envName?: string;
|
|
104
|
-
pod?: string;
|
|
105
|
-
replicaSet?: string;
|
|
106
|
-
image?: string;
|
|
107
|
-
objectType: 'app' | 'chart';
|
|
108
|
-
scanned: boolean;
|
|
109
|
-
scanEnabled: boolean;
|
|
110
|
-
severityCount: {
|
|
111
|
-
critical: number;
|
|
112
|
-
moderate: number;
|
|
113
|
-
low: number;
|
|
114
|
-
};
|
|
115
|
-
vulnerabilities: VulnerabilityType[];
|
|
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 {};
|