@devtron-labs/devtron-fe-common-lib 1.1.6-beta-3 → 1.1.6-beta-5

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 (37) hide show
  1. package/dist/Common/CustomTagSelector/Types.d.ts +12 -0
  2. package/dist/Common/Types.d.ts +17 -2
  3. package/dist/Shared/Components/DynamicDataTable/DynamicDataTable.d.ts +2 -0
  4. package/dist/Shared/Components/DynamicDataTable/DynamicDataTableHeader.d.ts +2 -0
  5. package/dist/Shared/Components/DynamicDataTable/DynamicDataTableRow.d.ts +2 -0
  6. package/dist/Shared/Components/DynamicDataTable/index.d.ts +2 -0
  7. package/dist/Shared/Components/DynamicDataTable/types.d.ts +161 -0
  8. package/dist/Shared/Components/DynamicDataTable/utils.d.ts +5 -0
  9. package/dist/Shared/Components/MultipleResizableTextArea/MultipleResizableTextArea.d.ts +2 -0
  10. package/dist/Shared/Components/MultipleResizableTextArea/index.d.ts +2 -0
  11. package/dist/Shared/Components/MultipleResizableTextArea/types.d.ts +9 -0
  12. package/dist/Shared/Components/SelectPicker/type.d.ts +5 -4
  13. package/dist/Shared/Components/SelectTextArea/SelectTextArea.d.ts +2 -0
  14. package/dist/Shared/Components/SelectTextArea/index.d.ts +2 -0
  15. package/dist/Shared/Components/SelectTextArea/types.d.ts +12 -0
  16. package/dist/Shared/Components/index.d.ts +2 -0
  17. package/dist/Shared/types.d.ts +19 -1
  18. package/dist/assets/index.css +1 -1
  19. package/dist/{cssMode-LuGmMkrz.js → cssMode-0yJ7e6IZ.js} +1 -1
  20. package/dist/{freemarker2-x4RlP1Lb.js → freemarker2-D4QfmbvG.js} +1 -1
  21. package/dist/{handlebars-CmzmbrC4.js → handlebars-BPfTbad8.js} +1 -1
  22. package/dist/{html-C5BGMOju.js → html-CqjcPRya.js} +1 -1
  23. package/dist/{htmlMode-ojR1UPbw.js → htmlMode-CP6arrAi.js} +1 -1
  24. package/dist/{index-D-Wm7m6U.js → index-DWQmgQlY.js} +27499 -27017
  25. package/dist/index.d.ts +0 -1
  26. package/dist/index.js +506 -501
  27. package/dist/{javascript-B1bShWIo.js → javascript-DZorxUEz.js} +1 -1
  28. package/dist/{jsonMode-COdOy9-_.js → jsonMode-Dyws5QA1.js} +1 -1
  29. package/dist/{liquid-BjXJHFpF.js → liquid-BKRZnxM9.js} +1 -1
  30. package/dist/{mdx-XJRNLcdB.js → mdx-BFtQumAP.js} +1 -1
  31. package/dist/{python-CEuHuu7a.js → python-DQiPaoOf.js} +1 -1
  32. package/dist/{razor-ByG7kYAl.js → razor-DpkSSGVJ.js} +1 -1
  33. package/dist/{tsMode-GtXif5Eu.js → tsMode-DbjA76K2.js} +1 -1
  34. package/dist/{typescript-FqIgT4Lb.js → typescript-BcW8u-MZ.js} +1 -1
  35. package/dist/{xml-BUcUe2Ft.js → xml-D4BfkDaf.js} +1 -1
  36. package/dist/{yaml-CFa20EYw.js → yaml-DN711t0M.js} +1 -1
  37. package/package.json +1 -1
@@ -4,6 +4,16 @@ export interface SuggestedTagOptionType extends OptionType {
4
4
  description: string;
5
5
  propagate: boolean;
6
6
  }
7
+ export declare enum DeploymentPolicy {
8
+ ALLOW = "allow",
9
+ BLOCK = "block",
10
+ BLOCK_PROD = "block-prod",
11
+ BLOCK_NON_PROD = "block-non-prod"
12
+ }
13
+ export interface VariableValueConstraintTypes {
14
+ choices?: string[];
15
+ blockCustomValue?: boolean;
16
+ }
7
17
  export interface TagType {
8
18
  id?: number;
9
19
  key: string;
@@ -15,6 +25,8 @@ export interface TagType {
15
25
  isInvalidValue?: boolean;
16
26
  isSuggested?: boolean;
17
27
  isPropagateDisabled?: boolean;
28
+ deploymentPolicy?: DeploymentPolicy;
29
+ valueConstraint?: VariableValueConstraintTypes;
18
30
  }
19
31
  export interface TagErrorType {
20
32
  isValid: boolean;
@@ -1,8 +1,9 @@
1
1
  import { default as React, ReactNode, CSSProperties, ReactElement, MutableRefObject } from 'react';
2
+ import { TippyProps } from '@tippyjs/react';
2
3
  import { Placement } from 'tippy.js';
3
4
  import { UserGroupDTO } from '../Pages/GlobalConfigurations';
4
5
  import { ImageComment, ReleaseTag } from './ImageTags.Types';
5
- import { MandatoryPluginBaseStateType, RegistryType, RuntimeParamsListItemType, Severity } from '../Shared';
6
+ import { MandatoryPluginBaseStateType, PolicyBlockInfo, RegistryType, RuntimeParamsListItemType, Severity } from '../Shared';
6
7
  import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
7
8
  /**
8
9
  * Generic response type object with support for overriding the result type
@@ -65,7 +66,7 @@ export interface CheckboxProps {
65
66
  id?: string;
66
67
  dataTestId?: string;
67
68
  }
68
- export interface TippyCustomizedProps {
69
+ export interface TippyCustomizedProps extends Pick<TippyProps, 'appendTo'> {
69
70
  theme: TippyTheme;
70
71
  visible?: boolean;
71
72
  heading?: ReactNode | string;
@@ -431,6 +432,7 @@ export interface CDMaterialType {
431
432
  * Would currently only be received in case of release
432
433
  */
433
434
  appWorkflowId: number;
435
+ deploymentBlockedState?: PolicyBlockInfo;
434
436
  }
435
437
  export declare enum CDMaterialServiceEnum {
436
438
  ROLLBACK = "rollback",
@@ -467,6 +469,14 @@ export interface DownstreamNodesEnvironmentsType {
467
469
  environmentId: number;
468
470
  environmentName: string;
469
471
  }
472
+ export declare enum TriggerBlockType {
473
+ MANDATORY_TAG = "mandatory-tags",
474
+ MANDATORY_PLUGIN = "mandatory-plugins"
475
+ }
476
+ export interface TriggerBlockedInfo {
477
+ blockedBy: TriggerBlockType;
478
+ blockedReason?: string;
479
+ }
470
480
  export interface CommonNodeAttr extends Pick<MandatoryPluginBaseStateType, 'isTriggerBlocked' | 'pluginBlockState'> {
471
481
  connectingCiPipelineId?: number;
472
482
  parents: string | number[] | string[];
@@ -529,6 +539,7 @@ export interface CommonNodeAttr extends Pick<MandatoryPluginBaseStateType, 'isTr
529
539
  downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
530
540
  cipipelineId?: number;
531
541
  isDeploymentBlocked?: boolean;
542
+ triggerBlockedInfo?: TriggerBlockedInfo;
532
543
  }
533
544
  export declare enum DeploymentAppTypes {
534
545
  HELM = "helm",
@@ -592,6 +603,7 @@ export interface CDMaterialsMetaInfo {
592
603
  */
593
604
  requestedUserId: number;
594
605
  runtimeParams: RuntimeParamsListItemType[];
606
+ deploymentBlockedState?: PolicyBlockInfo;
595
607
  }
596
608
  export interface ImagePromotionMaterialInfo {
597
609
  isApprovalPendingForPromotion: boolean;
@@ -685,6 +697,7 @@ export interface PrePostDeployStageType extends MandatoryPluginBaseStateType {
685
697
  triggerType: string;
686
698
  name: string;
687
699
  status: string;
700
+ triggerBlockedInfo?: TriggerBlockedInfo;
688
701
  }
689
702
  export interface CdPipeline {
690
703
  id: number;
@@ -718,6 +731,8 @@ export interface CdPipeline {
718
731
  isProdEnv?: boolean;
719
732
  isGitOpsRepoNotConfigured?: boolean;
720
733
  isDeploymentBlocked?: boolean;
734
+ isTriggerBlocked?: boolean;
735
+ triggerBlockedInfo?: TriggerBlockedInfo;
721
736
  }
722
737
  export interface ExternalCiConfig {
723
738
  id: number;
@@ -0,0 +1,2 @@
1
+ import { DynamicDataTableProps } from './types';
2
+ export declare const DynamicDataTable: <K extends string>({ headers, ...props }: DynamicDataTableProps<K>) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { DynamicDataTableHeaderProps } from './types';
2
+ export declare const DynamicDataTableHeader: <K extends string>({ headers, rows, sortingConfig, onRowAdd, readOnly, isAdditionNotAllowed, isDeletionNotAllowed, headerComponent, actionButtonConfig, }: DynamicDataTableHeaderProps<K>) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { DynamicDataTableRowProps } from './types';
2
+ export declare const DynamicDataTableRow: <K extends string>({ rows, headers, maskValue, readOnly, isAdditionNotAllowed, isDeletionNotAllowed, validationSchema, showError, errorMessages, actionButtonConfig, onRowEdit, onRowDelete, leadingCellIcon, trailingCellIcon, }: DynamicDataTableRowProps<K>) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './DynamicDataTable';
2
+ export * from './types';
@@ -0,0 +1,161 @@
1
+ import { DetailedHTMLProps, ReactNode } from 'react';
2
+ import { SortingOrder } from '../../../Common/Constants';
3
+ import { SelectPickerOptionType, SelectPickerProps } from '../SelectPicker';
4
+ import { MultipleResizableTextAreaProps } from '../MultipleResizableTextArea';
5
+ import { SelectTextAreaProps } from '../SelectTextArea';
6
+ /**
7
+ * Interface representing a key-value header.
8
+ * @template K - A string representing the key type.
9
+ */
10
+ export type DynamicDataTableHeaderType<K extends string> = {
11
+ /** The label of the header. */
12
+ label: string;
13
+ /** The key associated with the header. */
14
+ key: K;
15
+ /** */
16
+ width: string;
17
+ /** An optional boolean indicating if the column is sortable. */
18
+ isSortable?: boolean;
19
+ /** An optional boolean to hide the column */
20
+ isHidden?: boolean;
21
+ };
22
+ export declare enum DynamicDataTableRowDataType {
23
+ TEXT = "text",
24
+ DROPDOWN = "dropdown",
25
+ SELECT_TEXT = "select-text",
26
+ BUTTON = "button"
27
+ }
28
+ /**
29
+ * Type representing a key-value row.
30
+ * @template K - A string representing the key type.
31
+ */
32
+ export type DynamicDataTableRowType<K extends string> = {
33
+ data: {
34
+ [key in K]: {
35
+ value: string;
36
+ disabled?: boolean;
37
+ /** An optional boolean indicating if an asterisk should be shown. */
38
+ required?: boolean;
39
+ } & ({
40
+ type?: DynamicDataTableRowDataType.TEXT;
41
+ props?: Omit<MultipleResizableTextAreaProps, 'className' | 'minHeight' | 'maxHeight' | 'value' | 'onChange' | 'disabled' | 'disableOnBlurResizeToMinHeight' | 'refVar' | 'dependentRefs'>;
42
+ } | {
43
+ type?: DynamicDataTableRowDataType.DROPDOWN;
44
+ props?: Omit<SelectPickerProps<string, false>, 'inputId' | 'value' | 'onChange' | 'fullWidth' | 'isDisabled'>;
45
+ } | {
46
+ type?: DynamicDataTableRowDataType.SELECT_TEXT;
47
+ props?: Omit<SelectTextAreaProps, 'value' | 'onChange' | 'inputId' | 'isDisabled' | 'dependentRefs' | 'refVar' | 'textAreaProps'> & {
48
+ textAreaProps?: Omit<SelectTextAreaProps['textAreaProps'], 'className' | 'disableOnBlurResizeToMinHeight' | 'minHeight' | 'maxHeight'>;
49
+ };
50
+ } | ({
51
+ type?: DynamicDataTableRowDataType.BUTTON;
52
+ props: Pick<DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, 'onClick'> & {
53
+ icon?: ReactNode;
54
+ text: ReactNode;
55
+ };
56
+ } & ({
57
+ wrap: true;
58
+ wrapRenderer: (props: {
59
+ children: JSX.Element;
60
+ customState?: Record<string, any>;
61
+ }) => JSX.Element;
62
+ } | {
63
+ wrap?: false;
64
+ wrapRenderer?: never;
65
+ })));
66
+ };
67
+ id: string | number;
68
+ /** */
69
+ customState?: Record<string, any>;
70
+ };
71
+ /**
72
+ * Type representing a mask for key-value pairs.
73
+ * @template K - A string representing the key type.
74
+ */
75
+ type DynamicDataTableMask<K extends string> = {
76
+ [key in K]?: boolean;
77
+ };
78
+ type DynamicDataTableCellIcon<K extends string> = {
79
+ [key in K]?: (rowId: string | number) => ReactNode;
80
+ };
81
+ /**
82
+ * Interface representing the properties for a key-value table component.
83
+ * @template K - A string representing the key type.
84
+ */
85
+ export type DynamicDataTableProps<K extends string> = {
86
+ /** An array containing two key-value headers. */
87
+ headers: DynamicDataTableHeaderType<K>[];
88
+ /** An array of key-value rows. */
89
+ rows: DynamicDataTableRowType<K>[];
90
+ /** */
91
+ sortingConfig?: {
92
+ sortBy: K;
93
+ sortOrder: SortingOrder;
94
+ handleSorting: () => void;
95
+ };
96
+ /** An optional mask for the key-value pairs. */
97
+ maskValue?: DynamicDataTableMask<K>;
98
+ /** */
99
+ leadingCellIcon?: DynamicDataTableCellIcon<K>;
100
+ /** */
101
+ trailingCellIcon?: DynamicDataTableCellIcon<K>;
102
+ /** An optional React node for a custom header component. */
103
+ headerComponent?: ReactNode;
104
+ /** When true, data addition field will not be shown. */
105
+ isAdditionNotAllowed?: boolean;
106
+ /** When true, data addition field will not be shown. */
107
+ isDeletionNotAllowed?: boolean;
108
+ /** When true, data add or update is disabled. */
109
+ readOnly?: boolean;
110
+ /** */
111
+ onRowAdd: () => void;
112
+ /**
113
+ * Function to handle changes in the table rows.
114
+ * @param row - The row that changed.
115
+ * @param headerKey - The key of the header that changed.
116
+ * @param value - The value of the cell.
117
+ */
118
+ onRowEdit: (row: DynamicDataTableRowType<K>, headerKey: K, value: string, extraData: {
119
+ selectedValue?: SelectPickerOptionType<string>;
120
+ }) => void;
121
+ /**
122
+ * Function to handle row deletions.
123
+ * @param row - The row that was deleted.
124
+ */
125
+ onRowDelete: (row: DynamicDataTableRowType<K>) => void;
126
+ /** */
127
+ actionButtonConfig?: {
128
+ renderer: (row: DynamicDataTableRowType<K>) => ReactNode;
129
+ key?: K;
130
+ /**
131
+ * @default '32px'
132
+ */
133
+ width?: string;
134
+ /**
135
+ * @default 'start'
136
+ */
137
+ position?: 'start' | 'end';
138
+ };
139
+ /**
140
+ * Indicates whether to show errors.
141
+ */
142
+ showError?: boolean;
143
+ /**
144
+ * An array of error messages to be displayed in the cell error tooltip.
145
+ */
146
+ errorMessages?: string[];
147
+ /**
148
+ * The function to use to validate the value of the cell.
149
+ * @param value - The value to validate.
150
+ * @param key - The row key of the value.
151
+ * @param rowId - The id of the row.
152
+ * @returns Return true if the value is valid, otherwise false
153
+ * and set `showError` to `true` and provide errorMessages array to show error message.
154
+ */
155
+ validationSchema?: (value: string, key: K, rowId: string | number) => boolean;
156
+ };
157
+ export interface DynamicDataTableHeaderProps<K extends string> extends Pick<DynamicDataTableProps<K>, 'headers' | 'rows' | 'headerComponent' | 'sortingConfig' | 'onRowAdd' | 'readOnly' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'actionButtonConfig'> {
158
+ }
159
+ export interface DynamicDataTableRowProps<K extends string> extends Pick<DynamicDataTableProps<K>, 'rows' | 'headers' | 'maskValue' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'readOnly' | 'onRowEdit' | 'onRowDelete' | 'actionButtonConfig' | 'showError' | 'errorMessages' | 'validationSchema' | 'leadingCellIcon' | 'trailingCellIcon'> {
160
+ }
161
+ export {};
@@ -0,0 +1,5 @@
1
+ import { DynamicDataTableHeaderType, DynamicDataTableProps, DynamicDataTableRowDataType } from './types';
2
+ export declare const getActionButtonPosition: <K extends string>({ headers, actionButtonConfig, }: Pick<DynamicDataTableProps<K>, "headers" | "actionButtonConfig">) => number;
3
+ export declare const getHeaderGridTemplateColumn: <K extends string>(headers: DynamicDataTableHeaderType<K>[], actionButtonConfig: DynamicDataTableProps<K>["actionButtonConfig"], noDeleteBtn: boolean) => string;
4
+ export declare const getRowGridTemplateColumn: <K extends string>(headers: DynamicDataTableHeaderType<K>[], actionButtonConfig: DynamicDataTableProps<K>["actionButtonConfig"], noDeleteBtn: boolean) => string;
5
+ export declare const rowTypeHasInputField: (type: DynamicDataTableRowDataType) => boolean;
@@ -0,0 +1,2 @@
1
+ import { MultipleResizableTextAreaProps } from './types';
2
+ export declare const MultipleResizableTextArea: ({ value, minHeight, maxHeight, dataTestId, onChange, onBlur, onFocus, refVar, dependentRefs, className, disableOnBlurResizeToMinHeight, ...resProps }: MultipleResizableTextAreaProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './MultipleResizableTextArea';
2
+ export * from './types';
@@ -0,0 +1,9 @@
1
+ import { DetailedHTMLProps, MutableRefObject, TextareaHTMLAttributes } from 'react';
2
+ export interface MultipleResizableTextAreaProps extends DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> {
3
+ minHeight?: number;
4
+ maxHeight?: number;
5
+ dataTestId?: string;
6
+ refVar?: MutableRefObject<HTMLTextAreaElement>;
7
+ dependentRefs?: Record<string | number, MutableRefObject<HTMLTextAreaElement>>;
8
+ disableOnBlurResizeToMinHeight?: boolean;
9
+ }
@@ -24,6 +24,10 @@ export interface SelectPickerOptionType<OptionValue = string | number> extends O
24
24
  tooltipProps?: Omit<TooltipProps, 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'shortcutKeyCombo'> | (Omit<TooltipProps, 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'content'> & Required<Pick<TooltipProps, 'shortcutKeyCombo'>>);
25
25
  }
26
26
  type SelectProps<OptionValue, IsMulti extends boolean> = ReactSelectProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>;
27
+ export declare enum SelectPickerVariantType {
28
+ DEFAULT = "default",
29
+ BORDER_LESS = "border-less"
30
+ }
27
31
  declare module 'react-select/base' {
28
32
  interface Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> {
29
33
  /**
@@ -55,12 +59,9 @@ declare module 'react-select/base' {
55
59
  * @default 'true'
56
60
  */
57
61
  showSelectedOptionIcon?: boolean;
62
+ variant?: SelectPickerVariantType;
58
63
  }
59
64
  }
60
- export declare enum SelectPickerVariantType {
61
- DEFAULT = "default",
62
- BORDER_LESS = "border-less"
63
- }
64
65
  export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption'>> & {
65
66
  /**
66
67
  * Error message for the select
@@ -0,0 +1,2 @@
1
+ import { SelectTextAreaProps } from './types';
2
+ export declare const SelectTextArea: ({ value, selectedOptionIcon: Icon, onChange, options, inputId, placeholder, refVar, dependentRefs, disabled, selectPickerProps, textAreaProps, }: SelectTextAreaProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './SelectTextArea';
2
+ export * from './types';
@@ -0,0 +1,12 @@
1
+ import { ReactElement } from 'react';
2
+ import { SelectPickerOptionType, SelectPickerProps } from '../SelectPicker';
3
+ import { MultipleResizableTextAreaProps } from '../MultipleResizableTextArea';
4
+ export type SelectTextAreaProps = Pick<SelectPickerProps<string, false>, 'inputId' | 'options'> & Pick<MultipleResizableTextAreaProps, 'refVar' | 'dependentRefs'> & {
5
+ value: string;
6
+ selectedOptionIcon?: ReactElement;
7
+ onChange?: (selectedValue: SelectPickerOptionType<string>) => void;
8
+ disabled?: boolean;
9
+ placeholder?: string;
10
+ textAreaProps?: Omit<MultipleResizableTextAreaProps, 'refVar' | 'dependentRefs' | 'id' | 'value' | 'onChange' | 'placeholder' | 'disabled'>;
11
+ selectPickerProps?: Omit<SelectPickerProps<string, false>, 'inputId' | 'options' | 'isDisabled' | 'onChange' | 'variant' | 'isCreatable' | 'value' | 'placeholder' | 'fullWidth' | 'selectRef' | 'onCreateOption' | 'isMulti'>;
12
+ };
@@ -43,3 +43,5 @@ export * from './Button';
43
43
  export * from './InvalidYAMLTippy';
44
44
  export * from './ConfirmationModal';
45
45
  export * from './DiffViewer';
46
+ export * from './MultipleResizableTextArea';
47
+ export * from './DynamicDataTable';
@@ -1,5 +1,5 @@
1
1
  import { Dayjs } from 'dayjs';
2
- import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams } from '../Common';
2
+ import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams, TriggerBlockType } from '../Common';
3
3
  import { KeyValueListType } from './Components';
4
4
  import { EnvironmentTypeEnum, PatchOperationType } from './constants';
5
5
  export declare enum EnvType {
@@ -739,4 +739,22 @@ export interface PreventOutsideFocusProps {
739
739
  identifier: string;
740
740
  preventFocus: boolean;
741
741
  }
742
+ export interface PolicyBlockInfo {
743
+ isBlocked: boolean;
744
+ blockedBy: TriggerBlockType;
745
+ reason: string;
746
+ }
747
+ export interface PipelineStageBlockInfo {
748
+ node: PolicyBlockInfo;
749
+ pre: PolicyBlockInfo;
750
+ post: PolicyBlockInfo;
751
+ }
752
+ export interface PolicyConsequencesDTO {
753
+ cd: PipelineStageBlockInfo;
754
+ ci: PipelineStageBlockInfo;
755
+ }
756
+ export interface GetPolicyConsequencesProps {
757
+ appId: number;
758
+ envId: number;
759
+ }
742
760
  export {};