@devtron-labs/devtron-fe-common-lib 0.5.2-beta-4 → 0.5.2-beta-6

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 (43) hide show
  1. package/dist/Common/CIPipeline.Types.d.ts +0 -1
  2. package/dist/Common/Constants.d.ts +0 -1
  3. package/dist/Common/Policy.Types.d.ts +49 -20
  4. package/dist/Common/Types.d.ts +6 -9
  5. package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +2 -2
  6. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +1 -1
  7. package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +1 -1
  8. package/dist/Shared/Components/CICDHistory/types.d.ts +0 -5
  9. package/dist/Shared/Components/CollapsibleList/CollapsibleList.component.d.ts +2 -2
  10. package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +14 -35
  11. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +2 -2
  12. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
  13. package/dist/Shared/Components/FeatureDescription/index.d.ts +1 -0
  14. package/dist/Shared/Components/FeatureDescription/types.d.ts +6 -0
  15. package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
  16. package/dist/Shared/Components/Plugin/service.d.ts +3 -3
  17. package/dist/Shared/Components/Plugin/types.d.ts +19 -2
  18. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  19. package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
  20. package/dist/Shared/Components/SelectPicker/type.d.ts +21 -13
  21. package/dist/Shared/Components/SelectPicker/utils.d.ts +2 -1
  22. package/dist/Shared/types.d.ts +4 -2
  23. package/dist/Shared/validations.d.ts +3 -0
  24. package/dist/assets/index.css +1 -1
  25. package/dist/{cssMode-B5MUCpWp.js → cssMode-DfmQev0b.js} +1 -1
  26. package/dist/{freemarker2-CCfNEs0F.js → freemarker2-BUbjZvd6.js} +1 -1
  27. package/dist/{handlebars-Dmracx2P.js → handlebars-CpIW24AH.js} +1 -1
  28. package/dist/{html-CTHNIvRd.js → html-CI5uIkug.js} +1 -1
  29. package/dist/{htmlMode-BVncFJX5.js → htmlMode-D-jvXMLS.js} +1 -1
  30. package/dist/{index-CIseFzKm.js → index-CAwcOytl.js} +22650 -22694
  31. package/dist/index.d.ts +1 -1
  32. package/dist/index.js +136 -135
  33. package/dist/{javascript-B0Ntu6eA.js → javascript-zzz_OdE1.js} +1 -1
  34. package/dist/{jsonMode-BxHBCcsP.js → jsonMode-B4f5UJjc.js} +1 -1
  35. package/dist/{liquid-Dbc0WdVD.js → liquid-BJ7l4LRn.js} +1 -1
  36. package/dist/{mdx-D0M1cfx0.js → mdx-mgJriR82.js} +1 -1
  37. package/dist/{python-CL_HGxY_.js → python-BgwhELJY.js} +1 -1
  38. package/dist/{razor-B_1HOd5q.js → razor-CT2-n1-P.js} +1 -1
  39. package/dist/{tsMode-R81qgjXx.js → tsMode-DqTzAnCd.js} +1 -1
  40. package/dist/{typescript-CkJ9eG_J.js → typescript-CO631RmF.js} +1 -1
  41. package/dist/{xml-BIJNp9gl.js → xml-_9tqHjHQ.js} +1 -1
  42. package/dist/{yaml-BxxldZeh.js → yaml-Bnn975os.js} +1 -1
  43. package/package.json +2 -1
@@ -138,7 +138,6 @@ export interface StepType {
138
138
  inlineStepDetail?: InlineStepDetailType;
139
139
  pluginRefStepDetail?: PluginRefStepDetailType;
140
140
  triggerIfParentStageFail: boolean;
141
- isMandatory?: boolean;
142
141
  }
143
142
  export interface BuildStageType {
144
143
  id: number;
@@ -44,7 +44,6 @@ export declare const URLS: {
44
44
  GLOBAL_CONFIG_SCOPED_VARIABLES: string;
45
45
  GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: string;
46
46
  NETWORK_STATUS_INTERFACE: string;
47
- CONFIG_DRIFT: string;
48
47
  };
49
48
  export declare const ROUTES: {
50
49
  APP: string;
@@ -1,27 +1,24 @@
1
- import { PluginDataStoreType } from '../Shared';
2
- import { VariableType } from './CIPipeline.Types';
1
+ import { PluginDataStoreType, PluginDetailPayloadType, ResourceKindType } from '../Shared';
2
+ import { FormType, VariableType } from './CIPipeline.Types';
3
3
  import { ServerErrors } from './ServerError';
4
- import { ResponseType } from './Types';
5
4
  export declare enum ApplyPolicyToStage {
6
5
  PRE_CI = "PRE_CI",
7
6
  POST_CI = "POST_CI",
8
- PRE_OR_POST_CI = "PRE_OR_POST_CI"
7
+ /**
8
+ * @deprecated in mandatory plugin policy v2
9
+ */
10
+ PRE_OR_POST_CI = "PRE_OR_POST_CI",
11
+ PRE_CD = "PRE_CD",
12
+ POST_CD = "POST_CD"
9
13
  }
10
14
  export declare enum PluginRequiredStage {
11
- PRE_CI = "preBuildStage",
12
- POST_CI = "postBuildStage",
13
- PRE_OR_POST_CI = "PRE_OR_POST_CI"
15
+ PRE_STAGE = "preBuildStage",
16
+ POST_STAGE = "postBuildStage",
17
+ PRE_OR_POST_STAGE = "PRE_OR_POST_CI"
14
18
  }
15
19
  export interface DefinitionSourceType {
16
- projectName: string;
17
- isDueToProductionEnvironment: boolean;
18
- isDueToLinkedPipeline: boolean;
19
- policyName: string;
20
- appName?: string;
21
- clusterName?: string;
22
- environmentName?: string;
23
- branchNames?: string[];
24
- ciPipelineName?: string;
20
+ policyNames: string[];
21
+ linkedCIPipelineNames?: string[];
25
22
  }
26
23
  export interface MandatoryPluginDetailType {
27
24
  id: number;
@@ -33,7 +30,7 @@ export interface MandatoryPluginDetailType {
33
30
  applied?: boolean;
34
31
  inputVariables?: VariableType[];
35
32
  outputVariables?: VariableType[];
36
- definitionSources?: DefinitionSourceType[];
33
+ definitionSources?: DefinitionSourceType;
37
34
  }
38
35
  export interface MandatoryPluginDataType {
39
36
  pluginData: MandatoryPluginDetailType[];
@@ -45,9 +42,44 @@ export interface ProcessPluginDataReturnType {
45
42
  pluginDataStore: PluginDataStoreType;
46
43
  mandatoryPluginsError?: ServerErrors;
47
44
  }
45
+ export type ProcessPluginDataCIParamsType = {
46
+ resourceKind: ResourceKindType.ciPipeline;
47
+ ciPipelineId: number;
48
+ /**
49
+ * Comma separated branch names used for v1 api
50
+ * For v2 format is [branchName1],[branchName2]
51
+ */
52
+ branchName?: string;
53
+ envName?: never;
54
+ };
55
+ export type ProcessPluginDataCDParamsType = {
56
+ resourceKind: ResourceKindType.cdPipeline;
57
+ envName?: string;
58
+ ciPipelineId?: never;
59
+ branchName?: never;
60
+ };
61
+ export type ProcessPluginDataParamsType = {
62
+ formData: FormType;
63
+ pluginDataStoreState: PluginDataStoreType;
64
+ appId: number;
65
+ appName: string;
66
+ /**
67
+ * Would be sent in case we have to get data for steps
68
+ */
69
+ requiredPluginIds: PluginDetailPayloadType['pluginId'];
70
+ } & (ProcessPluginDataCIParamsType | ProcessPluginDataCDParamsType);
48
71
  export declare enum ConsequenceAction {
72
+ /**
73
+ * This is used if the policy is enforced immediately.
74
+ */
49
75
  BLOCK = "BLOCK",
76
+ /**
77
+ * This is used if the policy will be enforced after a certain timestamp.
78
+ */
50
79
  ALLOW_UNTIL_TIME = "ALLOW_UNTIL_TIME",
80
+ /**
81
+ * This is used if the policy is not enforced yet (just to show waring).
82
+ */
51
83
  ALLOW_FOREVER = "ALLOW_FOREVER"
52
84
  }
53
85
  export interface ConsequenceType {
@@ -59,6 +91,3 @@ export interface BlockedStateData {
59
91
  isCITriggerBlocked: boolean;
60
92
  ciBlockState: ConsequenceType;
61
93
  }
62
- export interface GetBlockedStateResponse extends ResponseType {
63
- result?: BlockedStateData;
64
- }
@@ -3,7 +3,7 @@ import { Placement } from 'tippy.js';
3
3
  import { UserGroupDTO } from '../Pages/GlobalConfigurations';
4
4
  import { ImageComment, ReleaseTag } from './ImageTags.Types';
5
5
  import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
6
- import { RegistryType, RuntimeParamsListItemType, Severity } from '../Shared';
6
+ import { MandatoryPluginNodeType, RegistryType, RuntimeParamsListItemType, Severity } from '../Shared';
7
7
  /**
8
8
  * Generic response type object with support for overriding the result type
9
9
  *
@@ -462,7 +462,7 @@ export interface DownstreamNodesEnvironmentsType {
462
462
  environmentId: number;
463
463
  environmentName: string;
464
464
  }
465
- export interface CommonNodeAttr {
465
+ export interface CommonNodeAttr extends Pick<MandatoryPluginNodeType, 'isTriggerBlocked' | 'pluginBlockState'> {
466
466
  connectingCiPipelineId?: number;
467
467
  parents: string | number[] | string[];
468
468
  x: number;
@@ -512,15 +512,10 @@ export interface CommonNodeAttr {
512
512
  approvalUsers?: string[];
513
513
  userApprovalConfig?: UserApprovalConfigType;
514
514
  requestedUserId?: number;
515
- showPluginWarning?: boolean;
515
+ showPluginWarning: boolean;
516
516
  helmPackageName?: string;
517
517
  isVirtualEnvironment?: boolean;
518
518
  deploymentAppType?: DeploymentAppTypes;
519
- isCITriggerBlocked?: boolean;
520
- ciBlockState?: {
521
- action: any;
522
- metadataField: string;
523
- };
524
519
  appReleaseTagNames?: string[];
525
520
  tagsEditable?: boolean;
526
521
  isGitOpsRepoNotConfigured?: boolean;
@@ -677,7 +672,7 @@ export interface CDStageConfigMapSecretNames {
677
672
  configMaps: any[];
678
673
  secrets: any[];
679
674
  }
680
- export interface PrePostDeployStageType {
675
+ export interface PrePostDeployStageType extends MandatoryPluginNodeType {
681
676
  isValid: boolean;
682
677
  steps: TaskErrorObj[];
683
678
  triggerType: string;
@@ -714,6 +709,8 @@ export interface CdPipeline {
714
709
  preDeployStage?: PrePostDeployStageType;
715
710
  postDeployStage?: PrePostDeployStageType;
716
711
  isProdEnv?: boolean;
712
+ isGitOpsRepoNotConfigured?: boolean;
713
+ isDeploymentBlocked?: boolean;
717
714
  }
718
715
  export interface ExternalCiConfig {
719
716
  id: number;
@@ -1,3 +1,3 @@
1
- import { DescriptorProps } from './types';
2
- declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }: DescriptorProps) => JSX.Element;
1
+ import { BuildInfraDescriptorProps } from './types';
2
+ declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }: BuildInfraDescriptorProps) => JSX.Element;
3
3
  export default Descriptor;
@@ -48,7 +48,7 @@ export declare enum BuildInfraProfileVariants {
48
48
  NORMAL = "NORMAL",
49
49
  CUSTOM = "CUSTOM"
50
50
  }
51
- export interface DescriptorProps {
51
+ export interface BuildInfraDescriptorProps {
52
52
  /**
53
53
  * In case we want to restrict the max-width
54
54
  */
@@ -1,3 +1,3 @@
1
1
  import { AppStatusDetailsChartType } from './types';
2
- declare const AppStatusDetailsChart: ({ filterRemoveHealth, showFooter, showConfigDriftInfo, onClose, }: AppStatusDetailsChartType) => JSX.Element;
2
+ declare const AppStatusDetailsChart: ({ filterRemoveHealth, showFooter }: AppStatusDetailsChartType) => JSX.Element;
3
3
  export default AppStatusDetailsChart;
@@ -419,8 +419,6 @@ export interface DeploymentHistorySidebarType {
419
419
  export interface AppStatusDetailsChartType {
420
420
  filterRemoveHealth?: boolean;
421
421
  showFooter: boolean;
422
- showConfigDriftInfo?: boolean;
423
- onClose?: () => void;
424
422
  }
425
423
  export interface StatusFilterButtonType {
426
424
  nodes: Array<Node>;
@@ -434,9 +432,6 @@ export declare enum NodeStatus {
434
432
  Suspended = "suspended",
435
433
  Unknown = "unknown"
436
434
  }
437
- export declare enum NodeFilters {
438
- drifted = "drifted"
439
- }
440
435
  type NodesMap = {
441
436
  [key in NodeType]?: Map<string, any>;
442
437
  };
@@ -1,2 +1,2 @@
1
- import { CollapsibleListProps, TabOptions } from './CollapsibleList.types';
2
- export declare const CollapsibleList: <TabType extends TabOptions>({ config, tabType, onCollapseBtnClick, }: CollapsibleListProps<TabType>) => JSX.Element;
1
+ import { CollapsibleListProps } from './CollapsibleList.types';
2
+ export declare const CollapsibleList: ({ config, onCollapseBtnClick }: CollapsibleListProps) => JSX.Element;
@@ -1,30 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { TippyProps } from '@tippyjs/react';
3
- interface ButtonTab {
4
- /**
5
- * Is tab active ( for button tab )
6
- */
7
- isActive: boolean;
8
- /**
9
- * The callback function to handle click events on the button.
10
- */
11
- onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
12
- href?: never;
13
- }
14
- interface NavLinkTab {
15
- /**
16
- * The URL of the nav link.
17
- */
18
- href: string;
19
- /**
20
- * The callback function to handle click events on the nav link.
21
- */
22
- onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
23
- isActive?: never;
24
- }
25
- export type TabOptions = 'button' | 'navLink';
26
- type ConditionalTabType<TabType extends TabOptions> = TabType extends 'button' ? ButtonTab : NavLinkTab;
27
- export type CollapsibleListItem<TabType extends TabOptions> = ConditionalTabType<TabType> & {
3
+ export interface CollapsibleListItem {
28
4
  /**
29
5
  * The title of the list item.
30
6
  */
@@ -54,8 +30,16 @@ export type CollapsibleListItem<TabType extends TabOptions> = ConditionalTabType
54
30
  */
55
31
  tooltipProps?: TippyProps;
56
32
  };
57
- };
58
- export interface CollapsibleListConfig<TabType extends 'button' | 'navLink'> {
33
+ /**
34
+ * The URL of the nav link.
35
+ */
36
+ href?: string;
37
+ /**
38
+ * The callback function to handle click events on the nav link.
39
+ */
40
+ onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
41
+ }
42
+ export interface CollapsibleListConfig {
59
43
  /**
60
44
  * The unique identifier for the collapsible list.
61
45
  */
@@ -93,21 +77,17 @@ export interface CollapsibleListConfig<TabType extends 'button' | 'navLink'> {
93
77
  /**
94
78
  * An array of items to be displayed in the collapsible list.
95
79
  */
96
- items: CollapsibleListItem<TabType>[];
80
+ items: CollapsibleListItem[];
97
81
  /**
98
82
  * Boolean indicating whether the list is expanded or not.
99
83
  */
100
84
  isExpanded?: boolean;
101
85
  }
102
- export interface CollapsibleListProps<TabType extends TabOptions> {
86
+ export interface CollapsibleListProps {
103
87
  /**
104
88
  * An array of collapsible list configurations.
105
89
  */
106
- config: CollapsibleListConfig<TabType>[];
107
- /**
108
- * Type of tab list: button or navLink
109
- */
110
- tabType: TabType;
90
+ config: CollapsibleListConfig[];
111
91
  /**
112
92
  * Function to handle the collapse button click event.
113
93
  *
@@ -117,4 +97,3 @@ export interface CollapsibleListProps<TabType extends TabOptions> {
117
97
  */
118
98
  onCollapseBtnClick?: (id: string, e: React.MouseEvent<HTMLButtonElement>) => void;
119
99
  }
120
- export {};
@@ -36,10 +36,10 @@ export type DeploymentConfigDiffSelectPickerProps = {
36
36
  text?: never;
37
37
  selectPickerProps: SelectPickerProps;
38
38
  };
39
- export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem<'navLink'>, 'href' | 'title' | 'onClick'> {
39
+ export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem, 'href' | 'title' | 'onClick'> {
40
40
  diffState: DeploymentConfigListItem['diffState'];
41
41
  }
42
- export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig<'navLink'>, 'id' | 'header' | 'noItemsText'> {
42
+ export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig, 'id' | 'header' | 'noItemsText'> {
43
43
  items: DeploymentConfigDiffNavigationItem[];
44
44
  }
45
45
  export interface DeploymentConfigDiffProps {
@@ -1,3 +1,3 @@
1
1
  import { DescriptorProps } from './types';
2
- declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, }: DescriptorProps) => JSX.Element;
2
+ declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, showInfoIcon, }: DescriptorProps) => JSX.Element;
3
3
  export default FeatureTitleWithInfo;
@@ -1,2 +1,3 @@
1
1
  export * from './FeatureDescriptionModal';
2
2
  export { default as FeatureTitleWithInfo } from './FeatureTitleWithInfo';
3
+ export * from './types';
@@ -20,4 +20,10 @@ export interface DescriptorProps extends FeatureDescriptionModalProps {
20
20
  docLinkText?: string;
21
21
  dataTestId?: string;
22
22
  additionalContent?: ReactNode;
23
+ /**
24
+ * If true, the info icon is displayed which when clicked shows the feature description modal
25
+ *
26
+ * @default false
27
+ */
28
+ showInfoIcon?: boolean;
23
29
  }
@@ -1,3 +1,3 @@
1
1
  import { InfoIconTippyProps } from '../../../Common/Types';
2
- declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, }: InfoIconTippyProps) => JSX.Element;
2
+ declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, }: InfoIconTippyProps) => JSX.Element;
3
3
  export default InfoIconTippy;
@@ -1,6 +1,6 @@
1
1
  import { ResponseType } from '../../../Common';
2
- import { GetPluginStoreDataReturnType, GetPluginStoreDataServiceParamsType, MinParentPluginDTO, PluginDetailServiceParamsType } from './types';
3
- export declare const getPluginsDetail: ({ appId, parentPluginIds, pluginIds, signal, shouldShowError, }: PluginDetailServiceParamsType) => Promise<Pick<GetPluginStoreDataReturnType, "pluginStore">>;
2
+ import { GetParentPluginListPayloadType, GetPluginStoreDataReturnType, GetPluginStoreDataServiceParamsType, MinParentPluginDTO, PluginDetailServiceParamsType } from './types';
3
+ export declare const getPluginsDetail: ({ appId, parentPluginIds, pluginIds, signal, shouldShowError, parentPluginIdentifiers, }: PluginDetailServiceParamsType) => Promise<Pick<GetPluginStoreDataReturnType, "pluginStore">>;
4
4
  export declare const getPluginStoreData: ({ searchKey, selectedTags, appId, offset, signal, }: GetPluginStoreDataServiceParamsType) => Promise<GetPluginStoreDataReturnType>;
5
5
  export declare const getAvailablePluginTags: (appId: number) => Promise<string[]>;
6
- export declare const getParentPluginList: (appId?: number) => Promise<ResponseType<MinParentPluginDTO[]>>;
6
+ export declare const getParentPluginList: (params?: Partial<GetParentPluginListPayloadType>) => Promise<ResponseType<MinParentPluginDTO[]>>;
@@ -1,5 +1,5 @@
1
1
  import { MutableRefObject } from 'react';
2
- import { VariableType } from '../../../Common';
2
+ import { ConsequenceType, VariableType } from '../../../Common';
3
3
  import { BaseFilterQueryParams } from '../../types';
4
4
  import { ImageWithFallbackProps } from '../ImageWithFallback';
5
5
  import { getPluginStoreData } from './service';
@@ -13,6 +13,7 @@ export interface PluginAPIBaseQueryParamsType {
13
13
  export interface GetPluginTagsPayloadType extends PluginAPIBaseQueryParamsType {
14
14
  }
15
15
  export interface GetParentPluginListPayloadType extends PluginAPIBaseQueryParamsType {
16
+ type?: 'ALL';
16
17
  }
17
18
  export interface PluginTagNamesDTO {
18
19
  tagNames: string[];
@@ -50,7 +51,7 @@ export interface ParentPluginDTO {
50
51
  pluginVersions: PluginVersionsDTO;
51
52
  pluginIdentifier: string;
52
53
  }
53
- export interface MinParentPluginDTO extends Pick<ParentPluginDTO, 'id' | 'name' | 'icon'> {
54
+ export interface MinParentPluginDTO extends Pick<ParentPluginDTO, 'id' | 'name' | 'icon' | 'pluginIdentifier'> {
54
55
  }
55
56
  export interface PluginDetailDTO {
56
57
  parentPlugins: ParentPluginDTO[];
@@ -60,6 +61,7 @@ export interface PluginDetailServiceParamsType {
60
61
  appId: number;
61
62
  pluginIds?: number[];
62
63
  parentPluginIds?: number[];
64
+ parentPluginIdentifiers?: string[];
63
65
  /**
64
66
  * @default true
65
67
  */
@@ -69,6 +71,7 @@ export interface PluginDetailServiceParamsType {
69
71
  export interface PluginDetailPayloadType extends Pick<PluginDetailServiceParamsType, 'appId'> {
70
72
  pluginId?: PluginDetailServiceParamsType['pluginIds'];
71
73
  parentPluginId?: PluginDetailServiceParamsType['parentPluginIds'];
74
+ parentPluginIdentifier?: PluginDetailServiceParamsType['parentPluginIdentifiers'][number];
72
75
  }
73
76
  export interface PluginListFiltersType extends Pick<BaseFilterQueryParams<unknown>, 'searchKey'> {
74
77
  selectedTags: string[];
@@ -184,4 +187,18 @@ export interface PluginTagsContainerProps {
184
187
  export interface PluginImageContainerProps extends Pick<ImageWithFallbackProps, 'imageProps'> {
185
188
  fallbackImageClassName?: string;
186
189
  }
190
+ export declare enum TaskActionModalType {
191
+ DELETE = "DELETE",
192
+ MOVE_PLUGIN = "MOVE_PLUGIN"
193
+ }
194
+ export interface TaskActionModalStateType {
195
+ type: TaskActionModalType;
196
+ pluginId: PluginDetailType['id'];
197
+ taskIndex: number;
198
+ }
199
+ export interface MandatoryPluginNodeType {
200
+ isOffendingMandatoryPlugin: boolean;
201
+ isTriggerBlocked: boolean;
202
+ pluginBlockState: ConsequenceType;
203
+ }
187
204
  export {};
@@ -134,5 +134,5 @@ import { SelectPickerProps } from './type';
134
134
  * />
135
135
  * ```
136
136
  */
137
- declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, renderMenuListFooter, inputValue, onInputChange, isCreatable, onCreateOption, closeMenuOnSelect, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
137
+ declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, renderMenuListFooter, inputValue, onInputChange, isCreatable, onCreateOption, closeMenuOnSelect, shouldShowNoOptionsMessage, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
138
138
  export default SelectPicker;
@@ -2,7 +2,7 @@ import { DropdownIndicatorProps, ControlProps, OptionProps, ClearIndicatorProps,
2
2
  import { SelectPickerGroupHeadingProps, SelectPickerOptionType, SelectPickerProps } from './type';
3
3
  export declare const SelectPickerDropdownIndicator: <OptionValue>(props: DropdownIndicatorProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
4
4
  export declare const SelectPickerClearIndicator: <OptionValue>(props: ClearIndicatorProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
5
- export declare const SelectPickerControl: <OptionValue, IsMulti extends boolean>({ icon, showSelectedOptionIcon, ...props }: ControlProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "icon" | "showSelectedOptionIcon">) => JSX.Element;
5
+ export declare const SelectPickerControl: <OptionValue>(props: ControlProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
6
6
  export declare const SelectPickerValueContainer: <OptionValue, IsMulti extends boolean>({ showSelectedOptionsCount, customSelectedOptionsCount, ...props }: ValueContainerProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "showSelectedOptionsCount" | "customSelectedOptionsCount">) => JSX.Element;
7
7
  export declare const SelectPickerLoadingIndicator: () => JSX.Element;
8
8
  export declare const SelectPickerOption: <OptionValue, IsMulti extends boolean>({ disableDescriptionEllipsis, ...props }: OptionProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "disableDescriptionEllipsis">) => JSX.Element;
@@ -44,17 +44,24 @@ declare module 'react-select/base' {
44
44
  * Imp Note: The menu open/close needs to handled by the consumer in this case
45
45
  */
46
46
  renderCustomOptions?: () => ReactElement;
47
+ /**
48
+ * Icon to be rendered in the control
49
+ */
50
+ icon?: ReactElement;
51
+ /**
52
+ * If true, the selected option icon is shown in the container.
53
+ * startIcon has higher priority than endIcon.
54
+ *
55
+ * @default 'true'
56
+ */
57
+ showSelectedOptionIcon?: boolean;
47
58
  }
48
59
  }
49
60
  export declare enum SelectPickerVariantType {
50
61
  DEFAULT = "default",
51
62
  BORDER_LESS = "border-less"
52
63
  }
53
- 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' | 'onInputChange' | 'inputValue'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption'>> & {
54
- /**
55
- * Icon to be rendered in the control
56
- */
57
- icon?: ReactElement;
64
+ 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'>> & {
58
65
  /**
59
66
  * Error message for the select
60
67
  */
@@ -67,13 +74,6 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
67
74
  * Label for the select. if required is added, the corresponding * is also added
68
75
  */
69
76
  label?: ReactNode;
70
- /**
71
- * If true, the selected option icon is shown in the container.
72
- * startIcon has higher priority than endIcon.
73
- *
74
- * @default 'true'
75
- */
76
- showSelectedOptionIcon?: boolean;
77
77
  /**
78
78
  * Custom selected options count for use cases like filters
79
79
  */
@@ -145,6 +145,14 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
145
145
  * @default false
146
146
  */
147
147
  isCreatable?: boolean;
148
+ /**
149
+ * If false, the no options message is not shown
150
+ *
151
+ * Note: Handling for the menu distortion needs to be handled explicitly in this case
152
+ *
153
+ * @default true
154
+ */
155
+ shouldShowNoOptionsMessage?: boolean;
148
156
  } & (IsMulti extends true ? {
149
157
  isMulti: IsMulti | boolean;
150
158
  multiSelectProps?: {
@@ -168,7 +176,7 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
168
176
  export type SelectPickerGroupHeadingProps<OptionValue> = GroupHeadingProps<SelectPickerOptionType<OptionValue>> & {
169
177
  isGroupHeadingSelectable: boolean;
170
178
  };
171
- export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight' | 'optionListError' | 'reloadOptionList'> {
179
+ export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight' | 'optionListError' | 'reloadOptionList' | 'getOptionValue'> {
172
180
  appliedFilterOptions: SelectPickerOptionType[];
173
181
  handleApplyFilter: (filtersToApply: SelectPickerOptionType<number | string>[]) => void;
174
182
  }
@@ -9,6 +9,7 @@ export declare const getGroupCheckboxValue: <OptionValue>(groupHeadingOptions: r
9
9
  * @param optionsList - The list of options or groups of options.
10
10
  * @param value - The value to compare against the options' values.
11
11
  * @param defaultOption - The default option to return if no match is found.
12
+ * @param getOptionValue - Override the default value for the option
12
13
  * @returns The matched option or the default option if no match is found.
13
14
  */
14
- export declare const getSelectPickerOptionByValue: <OptionValue>(optionsList: OptionsOrGroups<SelectPickerOptionType<OptionValue>, GroupBase<SelectPickerOptionType<OptionValue>>>, value: OptionValue, defaultOption?: SelectPickerOptionType<OptionValue>) => SelectPickerOptionType<OptionValue>;
15
+ export declare const getSelectPickerOptionByValue: <OptionValue>(optionsList: OptionsOrGroups<SelectPickerOptionType<OptionValue>, GroupBase<SelectPickerOptionType<OptionValue>>>, value: OptionValue, defaultOption?: SelectPickerOptionType<OptionValue>, getOptionValue?: SelectPickerProps<OptionValue>["getOptionValue"]) => SelectPickerOptionType<OptionValue>;
@@ -104,7 +104,6 @@ export interface Node {
104
104
  port: number;
105
105
  canBeHibernated: boolean;
106
106
  isHibernated: boolean;
107
- hasDrift?: boolean;
108
107
  }
109
108
  export interface iNodes extends Array<iNode> {
110
109
  }
@@ -377,6 +376,7 @@ export declare enum ResourceKindType {
377
376
  installation = "installation",
378
377
  environment = "environment",
379
378
  cdPipeline = "cd-pipeline",
379
+ ciPipeline = "ci-pipeline",
380
380
  project = "project"
381
381
  }
382
382
  /**
@@ -396,7 +396,9 @@ export interface SeverityCount {
396
396
  unknown: number;
397
397
  }
398
398
  export declare enum PolicyKindType {
399
- lockConfiguration = "lock-configuration"
399
+ lockConfiguration = "lock-configuration",
400
+ imagePromotion = "image-promotion",
401
+ plugins = "plugin"
400
402
  }
401
403
  export interface LastExecutionResultType {
402
404
  lastExecution: string;
@@ -14,6 +14,8 @@ export declare const MESSAGES: {
14
14
  VALID_POSITIVE_INTEGER: string;
15
15
  MAX_SAFE_INTEGER: string;
16
16
  INVALID_SEMANTIC_VERSION: string;
17
+ INVALID_DATE: string;
18
+ DATE_BEFORE_CURRENT_TIME: string;
17
19
  };
18
20
  export declare const requiredField: (value: string) => ValidationResponseType;
19
21
  export declare const validateName: (name: string) => ValidationResponseType;
@@ -42,3 +44,4 @@ export declare const validateSemanticVersioning: (version: string) => Validation
42
44
  */
43
45
  export declare const validateDisplayName: (name: string) => ValidationResponseType;
44
46
  export declare const validateJSON: (json: string) => ValidationResponseType;
47
+ export declare const validateDateAndTime: (date: Date) => ValidationResponseType;