@devtron-labs/devtron-fe-common-lib 0.0.68-beta-6 → 0.0.68-beta-7

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.
Files changed (56) hide show
  1. package/dist/Common/Common.service.d.ts +1 -0
  2. package/dist/Common/Constants.d.ts +12 -28
  3. package/dist/Common/Helper.d.ts +0 -4
  4. package/dist/Common/ImageTags.Types.d.ts +1 -1
  5. package/dist/Common/Types.d.ts +59 -9
  6. package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +2 -1
  7. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +7 -0
  8. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupsTable.component.d.ts +3 -0
  9. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/index.d.ts +1 -0
  10. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/types.d.ts +31 -0
  11. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/index.d.ts +1 -0
  12. package/dist/Pages/GlobalConfigurations/Authorization/shared/index.d.ts +1 -0
  13. package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +27 -0
  14. package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +2 -0
  15. package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +3 -0
  16. package/dist/Shared/Components/ActivityIndicator/index.d.ts +1 -0
  17. package/dist/Shared/Components/ActivityIndicator/types.d.ts +3 -0
  18. package/dist/Shared/Components/ExcludedImageNode/ExcludedImageNode.d.ts +3 -0
  19. package/dist/Shared/Components/ExcludedImageNode/index.d.ts +1 -0
  20. package/dist/Shared/Components/ExcludedImageNode/types.d.ts +3 -0
  21. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +3 -0
  22. package/dist/Shared/Components/GenericSectionErrorState/index.d.ts +1 -0
  23. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +12 -0
  24. package/dist/Shared/Components/ImageCard/ArtifactInfo/ArtifactInfo.d.ts +3 -0
  25. package/dist/Shared/Components/ImageCard/ArtifactInfo/index.d.ts +1 -0
  26. package/dist/Shared/Components/ImageCard/ArtifactInfo/types.d.ts +3 -0
  27. package/dist/Shared/Components/ImageCard/ImageCard.d.ts +3 -0
  28. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/DeploymentEnvState.d.ts +3 -0
  29. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/constants.d.ts +6 -0
  30. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/index.d.ts +1 -0
  31. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/types.d.ts +10 -0
  32. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/utils.d.ts +2 -0
  33. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +3 -0
  34. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/index.d.ts +1 -0
  35. package/dist/Shared/Components/ImageCard/index.d.ts +3 -0
  36. package/dist/Shared/Components/ImageCard/types.d.ts +40 -0
  37. package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +3 -0
  38. package/dist/Shared/Components/ImageCardAccordion/index.d.ts +1 -0
  39. package/dist/Shared/Components/ImageCardAccordion/types.d.ts +23 -0
  40. package/dist/Shared/Components/ReactSelect/utils.d.ts +4 -0
  41. package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +3 -0
  42. package/dist/Shared/Components/ScannedByToolModal/index.d.ts +1 -0
  43. package/dist/Shared/Components/ScannedByToolModal/types.d.ts +3 -0
  44. package/dist/Shared/Components/Vulnerabilities/Vulnerabilities.d.ts +3 -0
  45. package/dist/Shared/Components/Vulnerabilities/constants.d.ts +4 -0
  46. package/dist/Shared/Components/Vulnerabilities/index.d.ts +1 -0
  47. package/dist/Shared/Components/Vulnerabilities/service.d.ts +2 -0
  48. package/dist/Shared/Components/Vulnerabilities/types.d.ts +8 -0
  49. package/dist/Shared/Components/index.d.ts +7 -0
  50. package/dist/Shared/Helpers.d.ts +5 -0
  51. package/dist/Shared/constants.d.ts +31 -0
  52. package/dist/Shared/index.d.ts +1 -0
  53. package/dist/Shared/types.d.ts +114 -0
  54. package/dist/assets/index.css +1 -1
  55. package/dist/index.js +11052 -10503
  56. package/package.json +1 -1
@@ -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 function getDefaultConfig(): Promise<ResponseType>;
20
21
  export {};
@@ -14,14 +14,18 @@ export declare const PATTERNS: {
14
14
  };
15
15
  export declare const URLS: {
16
16
  LOGIN_SSO: string;
17
+ PERMISSION_GROUPS: string;
17
18
  };
18
19
  export declare const ROUTES: {
20
+ APP_ARTIFACT_PROMOTE_MATERIAL: string;
19
21
  PROJECT_LIST_MIN: string;
20
22
  USER_CHECK_ROLE: string;
21
23
  IMAGE_TAGGING: string;
22
24
  CD_MATERIAL_GET: string;
23
25
  DEPLOYMENT_TEMPLATE_LIST: string;
24
26
  INFRA_CONFIG_PROFILE: string;
27
+ SECURITY_SCAN_EXECUTION_DETAILS: string;
28
+ NOTIFIER: string;
25
29
  };
26
30
  export declare enum KEY_VALUE {
27
31
  KEY = "key",
@@ -73,7 +77,8 @@ export declare enum MODES {
73
77
  }
74
78
  export declare enum APPROVAL_MODAL_TYPE {
75
79
  CONFIG = "CONFIG",
76
- DEPLOYMENT = "DEPLOYMENT"
80
+ DEPLOYMENT = "DEPLOYMENT",
81
+ IMAGE_PROMOTION = "IMAGE-PROMOTION"
77
82
  }
78
83
  export declare const MAX_Z_INDEX = 2147483647;
79
84
  export declare const SELECTED_APPROVAL_TAB_STATE: {
@@ -94,31 +99,10 @@ export declare enum SortingOrder {
94
99
  * Base page size for pagination
95
100
  */
96
101
  export declare const DEFAULT_BASE_PAGE_SIZE = 20;
97
- /**
98
- * Deployment Window
99
- */
100
- export declare enum MODAL_TYPE {
101
- HIBERNATE = "HIBERNATE",
102
- RESTORE = "RESTORE",
103
- DEPLOY = "DEPLOY",
104
- RESOURCE = "RESOURCE",
105
- RESTART = "RESTART",
106
- PIPELINE = "PIPELINE",
107
- OVERVIEW = "OVERVIEW",
108
- APP_DETAILS_STATUS = "APP_DETAILS_STATUS"
109
- }
110
- export declare enum ACTION_STATE {
111
- ALLOWED = "ALLOWED",
112
- PARTIAL = "PARTIAL",
113
- BLOCKED = "BLOCKED"
114
- }
115
- export declare enum DEPLOYMENT_WINDOW_TYPE {
116
- MAINTENANCE = "MAINTENANCE",
117
- BLACKOUT = "BLACKOUT"
118
- }
119
- export interface DeploymentWindowProfileMetaData {
120
- userActionState: ACTION_STATE;
121
- type: string | DEPLOYMENT_WINDOW_TYPE;
122
- calculatedTimestamp: string;
123
- isActive: boolean;
102
+ export declare enum ReactSelectInputAction {
103
+ inputChange = "input-change",
104
+ selectOption = "select-option",
105
+ deselectOption = "deselect-option",
106
+ removeValue = "remove-value"
124
107
  }
108
+ export declare const ZERO_TIME_STRING = "0001-01-01T00:00:00Z";
@@ -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 {};
@@ -34,7 +34,7 @@ export interface ImageButtonType {
34
34
  onHardDeleteClick?: any;
35
35
  tagId: number;
36
36
  softDeleteTags: any;
37
- isSuperAdmin: any;
37
+ isSuperAdmin: boolean;
38
38
  duplicateTag?: boolean;
39
39
  hideHardDelete?: boolean;
40
40
  }
@@ -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 { 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,6 +248,34 @@ export declare enum FilterStates {
246
248
  export declare enum MaterialDataSource {
247
249
  EXTERNAL = "ext"
248
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
+ promoteFromType?: string;
278
+ }
249
279
  export interface CDMaterialType {
250
280
  index: number;
251
281
  id: string;
@@ -272,7 +302,7 @@ export interface CDMaterialType {
272
302
  imageReleaseTags?: ReleaseTag[];
273
303
  artifactStatus?: string;
274
304
  filterState: FilterStates;
275
- registryType?: string;
305
+ registryType?: RegistryType;
276
306
  imagePath?: string;
277
307
  registryName?: string;
278
308
  scanToolId?: number;
@@ -282,13 +312,24 @@ export interface CDMaterialType {
282
312
  createdTime?: string;
283
313
  deployed?: boolean;
284
314
  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[];
285
321
  }
286
322
  export declare enum CDMaterialServiceEnum {
287
323
  ROLLBACK = "rollback",
288
- CD_MATERIALS = "cd-materials"
324
+ CD_MATERIALS = "cd-materials",
325
+ IMAGE_PROMOTION = "image-promotion"
289
326
  }
290
327
  export declare enum CDMaterialResourceQuery {
291
- 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"
292
333
  }
293
334
  export declare enum CDMaterialFilterQuery {
294
335
  RESOURCE = "ELIGIBLE_RESOURCES",
@@ -299,6 +340,10 @@ export interface CDMaterialServiceQueryParams {
299
340
  offset?: number;
300
341
  size?: number;
301
342
  resource?: CDMaterialResourceQuery;
343
+ resourceName?: string;
344
+ workflowId?: number;
345
+ appId?: number;
346
+ pendingForCurrentUser?: boolean;
302
347
  filter?: CDMaterialFilterQuery;
303
348
  }
304
349
  export interface DownstreamNodesEnvironmentsType {
@@ -370,7 +415,7 @@ export interface CommonNodeAttr {
370
415
  deploymentAppCreated?: boolean;
371
416
  isLast?: boolean;
372
417
  downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
373
- isDeploymentBlocked?: boolean;
418
+ cipipelineId?: number;
374
419
  }
375
420
  export declare enum DeploymentAppTypes {
376
421
  HELM = "helm",
@@ -419,7 +464,7 @@ export interface FilterConditionsListType {
419
464
  export interface CDMaterialsApprovalInfo {
420
465
  approvalUsers: string[];
421
466
  userApprovalConfig: UserApprovalConfigType;
422
- requestedUserId: number;
467
+ canApproverDeploy: boolean;
423
468
  }
424
469
  export interface CDMaterialsMetaInfo {
425
470
  tagsEditable: boolean;
@@ -427,9 +472,16 @@ export interface CDMaterialsMetaInfo {
427
472
  hideImageTaggingHardDelete: boolean;
428
473
  resourceFilters?: FilterConditionsListType[];
429
474
  totalCount: number;
430
- canApproverDeploy: boolean;
475
+ /**
476
+ * This is the ID of user that has request the material
477
+ */
478
+ requestedUserId: number;
479
+ }
480
+ export interface ImagePromotionMaterialInfo {
481
+ isApprovalPendingForPromotion: boolean;
482
+ imagePromotionApproverEmails: string[];
431
483
  }
432
- export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo {
484
+ export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo, ImagePromotionMaterialInfo {
433
485
  materials: CDMaterialType[];
434
486
  }
435
487
  export interface InputDetailType {
@@ -463,8 +515,6 @@ export interface ResizableTextareaProps {
463
515
  onFocus?: (e: any) => void;
464
516
  className?: string;
465
517
  placeholder?: string;
466
- lineHeight?: number;
467
- padding?: number;
468
518
  disabled?: boolean;
469
519
  name?: string;
470
520
  dataTestId?: string;
@@ -1,2 +1,3 @@
1
1
  export * from './constants';
2
- export * from './types';
2
+ export type { UserListFilterParams, BaseFilterQueryParams, UserRoleGroup } from './types';
3
+ export * from './shared';
@@ -0,0 +1,7 @@
1
+ import { UserRoleGroupsTableProps } from './types';
2
+ import { UserRoleGroup } from '../../../types';
3
+ declare const UserRoleGroupTableRow: ({ id, name, description, status, timeToLive, modifierClassName, disableStatusComponent, handleStatusUpdate, handleDelete, statusComponent: StatusComponent, showStatus, showDelete, }: UserRoleGroup & Pick<UserRoleGroupsTableProps, "disableStatusComponent" | "handleStatusUpdate" | "handleDelete" | "statusComponent" | "showStatus"> & {
4
+ modifierClassName: string;
5
+ showDelete: boolean;
6
+ }) => JSX.Element;
7
+ export default UserRoleGroupTableRow;
@@ -0,0 +1,3 @@
1
+ import { UserRoleGroupsTableProps } from './types';
2
+ declare const UserRoleGroupsTable: ({ roleGroups, showStatus, handleDelete, statusComponent, statusHeaderComponent: StatusHeaderComponent, handleStatusUpdate, disableStatusComponent, }: UserRoleGroupsTableProps) => JSX.Element;
3
+ export default UserRoleGroupsTable;
@@ -0,0 +1 @@
1
+ export { default as UserRoleGroupsTable } from './UserRoleGroupsTable.component';
@@ -0,0 +1,31 @@
1
+ import { FC } from 'react';
2
+ import { UserRoleGroup } from '../../../types';
3
+ export type UserRoleGroupsTableProps = {
4
+ roleGroups: UserRoleGroup[];
5
+ showStatus?: boolean;
6
+ /**
7
+ * Delete button is shown only if handleDelete is passed
8
+ */
9
+ handleDelete?: (id: number) => void;
10
+ } & ({
11
+ showStatus?: false;
12
+ statusComponent?: never;
13
+ statusHeaderComponent?: never;
14
+ handleStatusUpdate?: never;
15
+ disableStatusComponent?: never;
16
+ } | {
17
+ /**
18
+ * Component for rendering the status
19
+ */
20
+ statusComponent: FC<Record<string, any>>;
21
+ /**
22
+ * Component for rendering the status header
23
+ */
24
+ statusHeaderComponent: FC;
25
+ handleStatusUpdate: (id: UserRoleGroup['id'], updatedStatus: UserRoleGroup['status'], updatedTimeToLive: UserRoleGroup['timeToLive']) => void;
26
+ disableStatusComponent?: boolean;
27
+ });
28
+ export type UserRoleGroupTableRow = UserRoleGroup & Pick<UserRoleGroupsTableProps, 'disableStatusComponent' | 'handleStatusUpdate' | 'handleDelete' | 'statusComponent' | 'showStatus'> & {
29
+ modifierClassName: string;
30
+ showDelete: boolean;
31
+ };
@@ -0,0 +1 @@
1
+ export * from './UserRoleGroupsTable';
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -19,5 +19,32 @@ export type BaseFilterQueryParams<T> = {
19
19
  showAll?: boolean;
20
20
  } & SortingParams<T>;
21
21
  export type UserListFilterParams = BaseFilterQueryParams<UserListSortableKeys> & {
22
+ /**
23
+ * Selected statuses (if any)
24
+ */
22
25
  status: UserStatus[];
23
26
  };
27
+ export interface UserRoleGroup {
28
+ /**
29
+ * Id of the permission group
30
+ */
31
+ id: number;
32
+ /**
33
+ * Name of the permission group
34
+ */
35
+ name: string;
36
+ /**
37
+ * Associated description for the group
38
+ *
39
+ * @default '-'
40
+ */
41
+ description?: string;
42
+ /**
43
+ * Status of the role group
44
+ */
45
+ status: UserStatus;
46
+ /**
47
+ * Timeout for the role group
48
+ */
49
+ timeToLive: string;
50
+ }
@@ -2,6 +2,7 @@ import { UseBuildInfraFormProps, UseBuildInfraFormResponseType, ValidateRequestL
2
2
  export declare const validateRequestLimit: ({ request, limit, unitsMap, }: ValidateRequestLimitType) => ValidateRequestLimitResponseType;
3
3
  export declare const useBuildInfraForm: ({ name, editProfile, handleSuccessRedirection, }: UseBuildInfraFormProps) => UseBuildInfraFormResponseType;
4
4
  export declare const unitSelectorStyles: () => {
5
+ container: (base: any, state: any) => any;
5
6
  menuList: (base: any) => any;
6
7
  control: (base: any, state: any) => any;
7
8
  option: (base: any, state: any) => any;
@@ -9,4 +10,5 @@ export declare const unitSelectorStyles: () => {
9
10
  valueContainer: (base: any) => any;
10
11
  loadingMessage: (base: any) => any;
11
12
  noOptionsMessage: (base: any) => any;
13
+ placeholder: (base: any) => any;
12
14
  };
@@ -0,0 +1,3 @@
1
+ import { ActivityIndicatorProps } from './types';
2
+ declare const ActivityIndicator: ({ rootClassName }: ActivityIndicatorProps) => JSX.Element;
3
+ export default ActivityIndicator;
@@ -0,0 +1 @@
1
+ export { default as ActivityIndicator } from './ActivityIndicator';
@@ -0,0 +1,3 @@
1
+ export interface ActivityIndicatorProps {
2
+ rootClassName?: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ import { ExcludedImageNodeProps } from './types';
2
+ declare const ExcludedImageNode: ({ image }: ExcludedImageNodeProps) => JSX.Element;
3
+ export default ExcludedImageNode;
@@ -0,0 +1 @@
1
+ export { default as ExcludedImageNode } from './ExcludedImageNode';
@@ -0,0 +1,3 @@
1
+ export interface ExcludedImageNodeProps {
2
+ image: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ import { GenericSectionErrorStateProps } from './types';
2
+ declare const GenericSectionErrorState: ({ reload, withBorder }: GenericSectionErrorStateProps) => JSX.Element;
3
+ export default GenericSectionErrorState;
@@ -0,0 +1 @@
1
+ export { default as GenericSectionErrorState } from './GenericSectionErrorState.component';
@@ -0,0 +1,12 @@
1
+ export interface GenericSectionErrorStateProps {
2
+ /**
3
+ * Handler for reloading the section
4
+ */
5
+ reload: () => void;
6
+ /**
7
+ * If true, border is added to the section
8
+ *
9
+ * @default false
10
+ */
11
+ withBorder?: boolean;
12
+ }
@@ -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 { ArtifactInfoProps } from '../types';
2
+ export interface ImagePathTippyContentProps extends Pick<ArtifactInfoProps, 'imagePath' | 'registryName'> {
3
+ }
@@ -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,3 @@
1
+ import { DeploymentEnvStateProps } from './types';
2
+ declare const DeploymentEnvState: ({ envStateText, title, tooltipContent }: DeploymentEnvStateProps) => JSX.Element;
3
+ export default DeploymentEnvState;
@@ -0,0 +1,6 @@
1
+ export declare const DEPLOYMENT_ENV_TEXT: {
2
+ ACTIVE: string;
3
+ VIRTUAL_ENV: string;
4
+ FAILED: string;
5
+ DEPLOYING: string;
6
+ };
@@ -0,0 +1 @@
1
+ export { default as DeploymentEnvState } from './DeploymentEnvState';
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ export interface DeploymentEnvStateProps {
3
+ envStateText: string;
4
+ title: string;
5
+ tooltipContent?: string;
6
+ }
7
+ export interface GetDeploymentEnvConfigType {
8
+ Icon: ReactNode;
9
+ stateClassName: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ import { GetDeploymentEnvConfigType } from './types';
2
+ export declare const getDeploymentEnvConfig: (envStateText: string) => GetDeploymentEnvConfigType;
@@ -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,3 @@
1
+ export { default as ImageCard } from './ImageCard';
2
+ export * from './types';
3
+ export * from './ArtifactInfo';
@@ -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
+ }
@@ -1,4 +1,5 @@
1
1
  export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
2
+ container: (base: any, state: any) => any;
2
3
  menuList: (base: any) => any;
3
4
  control: (base: any, state: any) => any;
4
5
  option: (base: any, state: any) => any;
@@ -6,6 +7,9 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
6
7
  valueContainer: (base: any) => any;
7
8
  loadingMessage: (base: any) => any;
8
9
  noOptionsMessage: (base: any) => any;
10
+ placeholder: (base: any) => any;
9
11
  };
10
12
  export declare const getCustomOptionSelectionStyle: (styleOverrides?: {}) => (base: any, state: any) => any;
11
13
  export declare const SelectOption: (props: any) => JSX.Element;
14
+ export declare const LoadingIndicator: () => JSX.Element;
15
+ export declare const GroupHeading: (props: any) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { ScannedByToolModalProps } from './types';
2
+ declare const ScannedByToolModal: ({ scanToolId }: ScannedByToolModalProps) => JSX.Element;
3
+ export default ScannedByToolModal;
@@ -0,0 +1 @@
1
+ export { default as ScannedByToolModal } from './ScannedByToolModal';
@@ -0,0 +1,3 @@
1
+ export interface ScannedByToolModalProps {
2
+ scanToolId?: number;
3
+ }
@@ -0,0 +1,3 @@
1
+ import { VulnerabilitiesProps } from './types';
2
+ declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, environmentId, setVulnerabilityCount, }: VulnerabilitiesProps) => JSX.Element;
3
+ export default Vulnerabilities;
@@ -0,0 +1,4 @@
1
+ export declare const NO_VULNERABILITY_TEXT: {
2
+ SECURED: string;
3
+ NO_VULNERABILITY_FOUND: string;
4
+ };
@@ -0,0 +1 @@
1
+ export { default as Vulnerabilities } from './Vulnerabilities';
@@ -0,0 +1,2 @@
1
+ import { LastExecutionResponseType } from '../../types';
2
+ export declare function getLastExecutionByArtifactAppEnv(artifactId: string | number, appId: number | string, envId: number | string): Promise<LastExecutionResponseType>;
@@ -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,5 +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';
11
+ export * from './GenericSectionErrorState';
5
12
  export * from './KeyValueList';
@@ -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,7 @@ 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;
16
21
  export {};