@devtron-labs/devtron-fe-common-lib 0.5.8-beta-1 → 0.5.8-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 +1 -0
- package/dist/Common/Constants.d.ts +14 -0
- package/dist/Common/Policy.Types.d.ts +3 -23
- package/dist/Common/Types.d.ts +5 -2
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +2 -2
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/index.d.ts +0 -1
- package/dist/Shared/Components/FeatureDescription/types.d.ts +0 -6
- package/dist/Shared/Components/GitCommitInfoGeneric/GitCommitInfoGeneric.d.ts +1 -1
- package/dist/Shared/Components/Plugin/service.d.ts +3 -3
- package/dist/Shared/Components/Plugin/types.d.ts +1 -4
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +13 -21
- package/dist/Shared/Components/SelectPicker/utils.d.ts +1 -2
- package/dist/Shared/Helpers.d.ts +14 -0
- package/dist/Shared/Services/app.types.d.ts +2 -1
- package/dist/Shared/types.d.ts +1 -4
- package/dist/Shared/validations.d.ts +0 -3
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-BwbkD8aM.js → cssMode-4uKuaTjf.js} +1 -1
- package/dist/{freemarker2-Ap_rFCGx.js → freemarker2-BAKI7PU1.js} +1 -1
- package/dist/{handlebars-D4wsr1mt.js → handlebars-CxrMU7l-.js} +1 -1
- package/dist/{html-dezaGCGx.js → html-Bls0LXlZ.js} +1 -1
- package/dist/{htmlMode-D5PO5n1e.js → htmlMode-C9NOzAkH.js} +1 -1
- package/dist/{index-AdkqlXul.js → index-DteCD2Kl.js} +17413 -17448
- package/dist/index.js +414 -410
- package/dist/{javascript-Dkc3sG_w.js → javascript-DsLYx2E7.js} +1 -1
- package/dist/{jsonMode-Bowkx3Eg.js → jsonMode-BuES7ZBU.js} +1 -1
- package/dist/{liquid-BDoBAEEq.js → liquid-CgyzJ_2b.js} +1 -1
- package/dist/{mdx-BW9NjI8y.js → mdx-CuocaQbi.js} +1 -1
- package/dist/{python-CGCOatx9.js → python-JIVP1CL7.js} +1 -1
- package/dist/{razor-XmXh9c_h.js → razor-ANSxWzI4.js} +1 -1
- package/dist/{tsMode-DPDADhm2.js → tsMode-p8fe4lL1.js} +1 -1
- package/dist/{typescript-bEVoJgfo.js → typescript-C4wR5A-2.js} +1 -1
- package/dist/{xml-DusRLrnV.js → xml-DXzVCaAZ.js} +1 -1
- package/dist/{yaml-5HBlhCYx.js → yaml-CwXfri60.js} +1 -1
- package/package.json +1 -1
|
@@ -27,4 +27,5 @@ export declare function getClusterListMin(): Promise<ResponseType<any>>;
|
|
|
27
27
|
export declare const getResourceGroupListRaw: (clusterId: string) => Promise<ResponseType<ApiResourceType>>;
|
|
28
28
|
export declare function getNamespaceListMin(clusterIdsCsv: string): Promise<EnvironmentListHelmResponse>;
|
|
29
29
|
export declare function getWebhookEventsForEventId(eventId: string | number): Promise<ResponseType<any>>;
|
|
30
|
+
export declare const getGitBranchUrl: (gitUrl: string, branchName: string) => string | null;
|
|
30
31
|
export {};
|
|
@@ -291,3 +291,17 @@ export declare const VULNERABILITIES_SORT_PRIORITY: {
|
|
|
291
291
|
unknown: number;
|
|
292
292
|
};
|
|
293
293
|
export declare const IS_PLATFORM_MAC_OS: boolean;
|
|
294
|
+
/**
|
|
295
|
+
* Git provider types
|
|
296
|
+
*/
|
|
297
|
+
export declare enum GitProviderType {
|
|
298
|
+
GITHUB = "github",
|
|
299
|
+
GITLAB = "gitlab",
|
|
300
|
+
BITBUCKET = "bitbucket",
|
|
301
|
+
AZURE = "azure",
|
|
302
|
+
GITEA = "gitea"
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Formats the schema removing any irregularity in the existing schema
|
|
306
|
+
*/
|
|
307
|
+
export declare const getFormattedSchema: (schema?: string) => string;
|
|
@@ -5,11 +5,6 @@ import { ResponseType } from './Types';
|
|
|
5
5
|
export declare enum ApplyPolicyToStage {
|
|
6
6
|
PRE_CI = "PRE_CI",
|
|
7
7
|
POST_CI = "POST_CI",
|
|
8
|
-
PRE_CD = "PRE_CD",
|
|
9
|
-
POST_CD = "POST_CD",
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated in mandatory plugin policy v2
|
|
12
|
-
*/
|
|
13
8
|
PRE_OR_POST_CI = "PRE_OR_POST_CI"
|
|
14
9
|
}
|
|
15
10
|
export declare enum PluginRequiredStage {
|
|
@@ -51,29 +46,14 @@ export interface ProcessPluginDataReturnType {
|
|
|
51
46
|
mandatoryPluginsError?: ServerErrors;
|
|
52
47
|
}
|
|
53
48
|
export declare enum ConsequenceAction {
|
|
54
|
-
/**
|
|
55
|
-
* This is used if the policy is enforced immediately.
|
|
56
|
-
*/
|
|
57
49
|
BLOCK = "BLOCK",
|
|
58
|
-
/**
|
|
59
|
-
* This is used if the policy will be enforced after a certain timestamp.
|
|
60
|
-
*/
|
|
61
50
|
ALLOW_UNTIL_TIME = "ALLOW_UNTIL_TIME",
|
|
62
|
-
/**
|
|
63
|
-
* This is used if the policy is not enforced yet (just to show waring).
|
|
64
|
-
*/
|
|
65
51
|
ALLOW_FOREVER = "ALLOW_FOREVER"
|
|
66
52
|
}
|
|
67
|
-
export
|
|
68
|
-
action:
|
|
69
|
-
metadataField?: never | null;
|
|
70
|
-
} | {
|
|
71
|
-
action: ConsequenceAction.ALLOW_UNTIL_TIME;
|
|
72
|
-
/**
|
|
73
|
-
* Denotes the time till which the policy enforcement is relaxed
|
|
74
|
-
*/
|
|
53
|
+
export interface ConsequenceType {
|
|
54
|
+
action: ConsequenceAction;
|
|
75
55
|
metadataField: string;
|
|
76
|
-
}
|
|
56
|
+
}
|
|
77
57
|
export interface BlockedStateData {
|
|
78
58
|
isOffendingMandatoryPlugin: boolean;
|
|
79
59
|
isCITriggerBlocked: boolean;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { default as React, ReactNode, CSSProperties, ReactElement } from 'react'
|
|
|
2
2
|
import { Placement } from 'tippy.js';
|
|
3
3
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
|
4
4
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
5
|
-
import { ACTION_STATE,
|
|
5
|
+
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
|
6
6
|
import { RegistryType, RuntimeParamsListItemType, Severity } from '../Shared';
|
|
7
7
|
/**
|
|
8
8
|
* Generic response type object with support for overriding the result type
|
|
@@ -517,7 +517,10 @@ export interface CommonNodeAttr {
|
|
|
517
517
|
isVirtualEnvironment?: boolean;
|
|
518
518
|
deploymentAppType?: DeploymentAppTypes;
|
|
519
519
|
isCITriggerBlocked?: boolean;
|
|
520
|
-
ciBlockState?:
|
|
520
|
+
ciBlockState?: {
|
|
521
|
+
action: any;
|
|
522
|
+
metadataField: string;
|
|
523
|
+
};
|
|
521
524
|
appReleaseTagNames?: string[];
|
|
522
525
|
tagsEditable?: boolean;
|
|
523
526
|
isGitOpsRepoNotConfigured?: boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }:
|
|
1
|
+
import { DescriptorProps } from './types';
|
|
2
|
+
declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }: DescriptorProps) => JSX.Element;
|
|
3
3
|
export default Descriptor;
|
|
@@ -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,
|
|
2
|
+
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, }: DescriptorProps) => JSX.Element;
|
|
3
3
|
export default FeatureTitleWithInfo;
|
|
@@ -20,10 +20,4 @@ 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;
|
|
29
23
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GitCommitInfoGenericProps } from './types';
|
|
2
|
-
declare const GitCommitInfoGeneric: ({ materialSourceType, materialSourceValue, commitInfo, selectedCommitInfo, materialUrl, showMaterialInfoHeader,
|
|
2
|
+
declare const GitCommitInfoGeneric: ({ materialSourceType, materialSourceValue, commitInfo, selectedCommitInfo, materialUrl, showMaterialInfoHeader, index, isExcluded, }: GitCommitInfoGenericProps) => JSX.Element;
|
|
3
3
|
export default GitCommitInfoGeneric;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResponseType } from '../../../Common';
|
|
2
|
-
import {
|
|
3
|
-
export declare const getPluginsDetail: ({ appId, parentPluginIds, pluginIds, signal, shouldShowError,
|
|
2
|
+
import { GetPluginStoreDataReturnType, GetPluginStoreDataServiceParamsType, MinParentPluginDTO, PluginDetailServiceParamsType } from './types';
|
|
3
|
+
export declare const getPluginsDetail: ({ appId, parentPluginIds, pluginIds, signal, shouldShowError, }: 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: (
|
|
6
|
+
export declare const getParentPluginList: (appId?: number) => Promise<ResponseType<MinParentPluginDTO[]>>;
|
|
@@ -13,7 +13,6 @@ export interface PluginAPIBaseQueryParamsType {
|
|
|
13
13
|
export interface GetPluginTagsPayloadType extends PluginAPIBaseQueryParamsType {
|
|
14
14
|
}
|
|
15
15
|
export interface GetParentPluginListPayloadType extends PluginAPIBaseQueryParamsType {
|
|
16
|
-
type?: 'ALL';
|
|
17
16
|
}
|
|
18
17
|
export interface PluginTagNamesDTO {
|
|
19
18
|
tagNames: string[];
|
|
@@ -51,7 +50,7 @@ export interface ParentPluginDTO {
|
|
|
51
50
|
pluginVersions: PluginVersionsDTO;
|
|
52
51
|
pluginIdentifier: string;
|
|
53
52
|
}
|
|
54
|
-
export interface MinParentPluginDTO extends Pick<ParentPluginDTO, 'id' | 'name' | 'icon'
|
|
53
|
+
export interface MinParentPluginDTO extends Pick<ParentPluginDTO, 'id' | 'name' | 'icon'> {
|
|
55
54
|
}
|
|
56
55
|
export interface PluginDetailDTO {
|
|
57
56
|
parentPlugins: ParentPluginDTO[];
|
|
@@ -61,7 +60,6 @@ export interface PluginDetailServiceParamsType {
|
|
|
61
60
|
appId: number;
|
|
62
61
|
pluginIds?: number[];
|
|
63
62
|
parentPluginIds?: number[];
|
|
64
|
-
parentPluginIdentifiers?: string[];
|
|
65
63
|
/**
|
|
66
64
|
* @default true
|
|
67
65
|
*/
|
|
@@ -71,7 +69,6 @@ export interface PluginDetailServiceParamsType {
|
|
|
71
69
|
export interface PluginDetailPayloadType extends Pick<PluginDetailServiceParamsType, 'appId'> {
|
|
72
70
|
pluginId?: PluginDetailServiceParamsType['pluginIds'];
|
|
73
71
|
parentPluginId?: PluginDetailServiceParamsType['parentPluginIds'];
|
|
74
|
-
parentPluginIdentifier?: PluginDetailServiceParamsType['parentPluginIdentifiers'][number];
|
|
75
72
|
}
|
|
76
73
|
export interface PluginListFiltersType extends Pick<BaseFilterQueryParams<unknown>, 'searchKey'> {
|
|
77
74
|
selectedTags: string[];
|
|
@@ -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,
|
|
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;
|
|
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>(props: ControlProps<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;
|
|
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,24 +44,17 @@ 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;
|
|
58
47
|
}
|
|
59
48
|
}
|
|
60
49
|
export declare enum SelectPickerVariantType {
|
|
61
50
|
DEFAULT = "default",
|
|
62
51
|
BORDER_LESS = "border-less"
|
|
63
52
|
}
|
|
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' | '
|
|
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;
|
|
65
58
|
/**
|
|
66
59
|
* Error message for the select
|
|
67
60
|
*/
|
|
@@ -74,6 +67,13 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
74
67
|
* Label for the select. if required is added, the corresponding * is also added
|
|
75
68
|
*/
|
|
76
69
|
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,14 +145,6 @@ 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;
|
|
156
148
|
} & (IsMulti extends true ? {
|
|
157
149
|
isMulti: IsMulti | boolean;
|
|
158
150
|
multiSelectProps?: {
|
|
@@ -176,7 +168,7 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
176
168
|
export type SelectPickerGroupHeadingProps<OptionValue> = GroupHeadingProps<SelectPickerOptionType<OptionValue>> & {
|
|
177
169
|
isGroupHeadingSelectable: boolean;
|
|
178
170
|
};
|
|
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'
|
|
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'> {
|
|
180
172
|
appliedFilterOptions: SelectPickerOptionType[];
|
|
181
173
|
handleApplyFilter: (filtersToApply: SelectPickerOptionType<number | string>[]) => void;
|
|
182
174
|
}
|
|
@@ -9,7 +9,6 @@ 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
|
|
13
12
|
* @returns The matched option or the default option if no match is found.
|
|
14
13
|
*/
|
|
15
|
-
export declare const getSelectPickerOptionByValue: <OptionValue>(optionsList: OptionsOrGroups<SelectPickerOptionType<OptionValue>, GroupBase<SelectPickerOptionType<OptionValue>>>, value: OptionValue, defaultOption?: SelectPickerOptionType<OptionValue
|
|
14
|
+
export declare const getSelectPickerOptionByValue: <OptionValue>(optionsList: OptionsOrGroups<SelectPickerOptionType<OptionValue>, GroupBase<SelectPickerOptionType<OptionValue>>>, value: OptionValue, defaultOption?: SelectPickerOptionType<OptionValue>) => SelectPickerOptionType<OptionValue>;
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { Pair } from 'yaml';
|
|
3
|
+
import { MaterialHistoryType } from '@Shared/Services/app.types';
|
|
3
4
|
import { MaterialInfo, SortingOrder, UserApprovalConfigType } from '../Common';
|
|
4
5
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
|
|
5
6
|
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
|
@@ -63,4 +64,17 @@ export declare const getDefaultValueFromType: (value: unknown) => {};
|
|
|
63
64
|
* and the values are arrays of objects that share the same key value.
|
|
64
65
|
*/
|
|
65
66
|
export declare const groupArrayByObjectKey: <T extends Record<string, any>, K extends keyof T>(array: T[], key: K) => Record<string, T[]>;
|
|
67
|
+
/**
|
|
68
|
+
* @description - Function to get the lower case object
|
|
69
|
+
* @param input - The input object
|
|
70
|
+
* @returns Record<string, any>
|
|
71
|
+
*/
|
|
72
|
+
export declare const getLowerCaseObject: (input: any) => Record<string, any>;
|
|
73
|
+
/**
|
|
74
|
+
* @description - Function to get the webhook date
|
|
75
|
+
* @param materialSourceType - The type of material source (e.g., WEBHOOK)
|
|
76
|
+
* @param history - The history object containing commit information
|
|
77
|
+
* @returns - Formatted webhook date if available, otherwise an empty string
|
|
78
|
+
*/
|
|
79
|
+
export declare const getWebhookDate: (materialSourceType: string, history: MaterialHistoryType) => string;
|
|
66
80
|
export {};
|
|
@@ -12,7 +12,7 @@ interface MaterialHistoryDTO {
|
|
|
12
12
|
Changes: unknown[];
|
|
13
13
|
WebhookData: WebhookDataType;
|
|
14
14
|
}
|
|
15
|
-
interface MaterialHistoryType {
|
|
15
|
+
export interface MaterialHistoryType {
|
|
16
16
|
commitURL: string;
|
|
17
17
|
commit: MaterialHistoryDTO['Commit'];
|
|
18
18
|
author: MaterialHistoryDTO['Author'];
|
|
@@ -56,6 +56,7 @@ export interface CIMaterialType extends Pick<CIMaterialDTO, 'id' | 'gitMaterialI
|
|
|
56
56
|
gitURL: CIMaterialDTO['url'];
|
|
57
57
|
history: MaterialHistoryType[];
|
|
58
58
|
isSelected: boolean;
|
|
59
|
+
gitMaterialUrl?: string;
|
|
59
60
|
}
|
|
60
61
|
interface ImageCommentDTO {
|
|
61
62
|
id: number;
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -376,7 +376,6 @@ export declare enum ResourceKindType {
|
|
|
376
376
|
tenant = "tenant",
|
|
377
377
|
installation = "installation",
|
|
378
378
|
environment = "environment",
|
|
379
|
-
ciPipeline = "ci-pipeline",
|
|
380
379
|
cdPipeline = "cd-pipeline",
|
|
381
380
|
project = "project"
|
|
382
381
|
}
|
|
@@ -397,9 +396,7 @@ export interface SeverityCount {
|
|
|
397
396
|
unknown: number;
|
|
398
397
|
}
|
|
399
398
|
export declare enum PolicyKindType {
|
|
400
|
-
lockConfiguration = "lock-configuration"
|
|
401
|
-
imagePromotion = "image-promotion",
|
|
402
|
-
plugins = "plugin"
|
|
399
|
+
lockConfiguration = "lock-configuration"
|
|
403
400
|
}
|
|
404
401
|
export interface LastExecutionResultType {
|
|
405
402
|
lastExecution: string;
|
|
@@ -14,8 +14,6 @@ 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;
|
|
19
17
|
};
|
|
20
18
|
export declare const requiredField: (value: string) => ValidationResponseType;
|
|
21
19
|
export declare const validateName: (name: string) => ValidationResponseType;
|
|
@@ -44,4 +42,3 @@ export declare const validateSemanticVersioning: (version: string) => Validation
|
|
|
44
42
|
*/
|
|
45
43
|
export declare const validateDisplayName: (name: string) => ValidationResponseType;
|
|
46
44
|
export declare const validateJSON: (json: string) => ValidationResponseType;
|
|
47
|
-
export declare const validateDateAndTime: (date: Date) => ValidationResponseType;
|