@devtron-labs/devtron-fe-common-lib 0.2.17-patch-2 → 0.2.18
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/Constants.d.ts +1 -0
- package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +1 -1
- package/dist/Common/InfoColorBar/InfoColourbar.d.ts +1 -1
- package/dist/Common/MultiSelectCustomization.d.ts +1 -1
- package/dist/Common/PopupMenu.d.ts +1 -1
- package/dist/Common/RJSF/templates/TitleField.d.ts +1 -1
- package/dist/Common/Types.d.ts +52 -1
- package/dist/Pages/CDPipeline/types.d.ts +2 -4
- package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +3 -1
- package/dist/Pages/GlobalConfigurations/Authorization/service.d.ts +4 -0
- package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +36 -0
- package/dist/Pages/GlobalConfigurations/Authorization/utils.d.ts +3 -0
- 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 +25 -25
- package/dist/Shared/Helpers.d.ts +7 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-5bf75313.js → cssMode-2c30b361.js} +1 -1
- package/dist/{freemarker2-9f6b2625.js → freemarker2-543f249a.js} +1 -1
- package/dist/{handlebars-5e94c929.js → handlebars-375e2ca9.js} +1 -1
- package/dist/{html-b22b1337.js → html-89e98a3c.js} +1 -1
- package/dist/{htmlMode-2689f468.js → htmlMode-eaa7306d.js} +1 -1
- package/dist/{index-4b135e50.js → index-bac00dc2.js} +26137 -26532
- package/dist/index.js +356 -350
- package/dist/{javascript-b0807237.js → javascript-005cce04.js} +1 -1
- package/dist/{jsonMode-7c4319f9.js → jsonMode-09c2eb23.js} +1 -1
- package/dist/{liquid-c535b211.js → liquid-7d09fe91.js} +1 -1
- package/dist/{mdx-4649039a.js → mdx-d4f4f63a.js} +1 -1
- package/dist/{python-bef7dbf6.js → python-c4e048b6.js} +1 -1
- package/dist/{razor-5d4d8e15.js → razor-af31eab3.js} +1 -1
- package/dist/{tsMode-c3af933f.js → tsMode-3fc87c5f.js} +1 -1
- package/dist/{typescript-a6752bda.js → typescript-506e0a19.js} +1 -1
- package/dist/{xml-9c0a4d19.js → xml-223c5290.js} +1 -1
- package/dist/{yaml-9e2df47a.js → yaml-70dc6e6b.js} +1 -1
- package/package.json +1 -1
|
@@ -6,4 +6,4 @@ import { DraggableWrapperProps } from './types';
|
|
|
6
6
|
* 2. dragSelector will be used to identify the grabbable button that will grab the div to drag
|
|
7
7
|
* 3. parentRef is the reference point from which we will derive the base top:0 ,left: 0 position
|
|
8
8
|
*/
|
|
9
|
-
export default function DraggableWrapper({ children, zIndex, positionVariant, dragSelector, parentRef, boundaryGap, childDivProps, layoutFixDelta }: DraggableWrapperProps): JSX.Element;
|
|
9
|
+
export default function DraggableWrapper({ children, zIndex, positionVariant, dragSelector, parentRef, boundaryGap, childDivProps, layoutFixDelta, }: DraggableWrapperProps): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { InfoColourBarType } from '../Types';
|
|
2
2
|
|
|
3
|
-
declare const InfoColourBar: ({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, hideIcon }: InfoColourBarType) => JSX.Element;
|
|
3
|
+
declare const InfoColourBar: ({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, hideIcon, }: InfoColourBarType) => JSX.Element;
|
|
4
4
|
export default InfoColourBar;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PopupMenuBodyType, PopupMenuButtonType, PopupMenuType } from './Types';
|
|
2
2
|
|
|
3
3
|
declare const PopupMenu: {
|
|
4
|
-
({ children, onToggleCallback, autoClose, autoPosition, shouldPreventDefault }: PopupMenuType): any;
|
|
4
|
+
({ children, onToggleCallback, autoClose, autoPosition, shouldPreventDefault, }: PopupMenuType): any;
|
|
5
5
|
Button: ({ children, disabled, rootClassName, tabIndex, onHover, isKebab, dataTestId, }: PopupMenuButtonType) => JSX.Element;
|
|
6
6
|
Body: ({ children, rootClassName, style, autoWidth, preventWheelDisable, noBackDrop, }: PopupMenuBodyType) => JSX.Element;
|
|
7
7
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TitleFieldProps } from '@rjsf/utils';
|
|
2
2
|
|
|
3
|
-
export declare const TitleField: ({ id, title, required, description }: TitleFieldProps & Partial<Record<'description', string>>) => JSX.Element;
|
|
3
|
+
export declare const TitleField: ({ id, title, required, description, }: TitleFieldProps & Partial<Record<'description', string>>) => JSX.Element;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { default as React, ReactNode, CSSProperties } from 'react';
|
|
|
2
2
|
import { Placement } from 'tippy.js';
|
|
3
3
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
4
4
|
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
|
5
|
+
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
|
5
6
|
import { RegistryType, Severity } from '../Shared';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -263,9 +264,45 @@ export declare enum DeploymentNodeType {
|
|
|
263
264
|
POSTCD = "POSTCD",
|
|
264
265
|
APPROVAL = "APPROVAL"
|
|
265
266
|
}
|
|
266
|
-
export
|
|
267
|
+
export declare enum ManualApprovalType {
|
|
268
|
+
specific = "SPECIFIC",
|
|
269
|
+
any = "ANY",
|
|
270
|
+
notConfigured = "NOT_CONFIGURED"
|
|
271
|
+
}
|
|
272
|
+
export interface UserGroupApproverType {
|
|
273
|
+
email: string;
|
|
274
|
+
hasAccess: boolean;
|
|
275
|
+
}
|
|
276
|
+
export interface ImageApprovalPolicyUserGroupDataType {
|
|
277
|
+
dataStore: Record<string, UserGroupApproverType>;
|
|
267
278
|
requiredCount: number;
|
|
279
|
+
emails: string[];
|
|
280
|
+
}
|
|
281
|
+
export interface ImageApprovalPolicyType {
|
|
282
|
+
isPolicyConfigured: boolean;
|
|
283
|
+
specificUsersData: ImageApprovalPolicyUserGroupDataType;
|
|
284
|
+
userGroupData: Record<string, ImageApprovalPolicyUserGroupDataType>;
|
|
285
|
+
validGroups: string[];
|
|
268
286
|
}
|
|
287
|
+
export type ImageApprovalUsersInfoDTO = Record<string, Pick<UserGroupDTO, 'identifier' | 'name'>[]>;
|
|
288
|
+
export interface UserApprovalConfigType {
|
|
289
|
+
type: ManualApprovalType;
|
|
290
|
+
requiredCount: number;
|
|
291
|
+
specificUsers: {
|
|
292
|
+
identifiers: string[];
|
|
293
|
+
requiredCount?: number;
|
|
294
|
+
};
|
|
295
|
+
userGroups: (Pick<UserGroupDTO, 'identifier'> & {
|
|
296
|
+
requiredCount: number;
|
|
297
|
+
})[];
|
|
298
|
+
}
|
|
299
|
+
export type UserApprovalConfigPayloadType = ({
|
|
300
|
+
type: ManualApprovalType.any;
|
|
301
|
+
} & Pick<UserApprovalConfigType, 'requiredCount'>) | ({
|
|
302
|
+
type: ManualApprovalType.specific;
|
|
303
|
+
} & Pick<UserApprovalConfigType, 'userGroups' | 'specificUsers'>) | {
|
|
304
|
+
type: ManualApprovalType.notConfigured;
|
|
305
|
+
};
|
|
269
306
|
interface ApprovalUserDataType {
|
|
270
307
|
dataId: number;
|
|
271
308
|
userActionTime: string;
|
|
@@ -273,12 +310,14 @@ interface ApprovalUserDataType {
|
|
|
273
310
|
userEmail: string;
|
|
274
311
|
userId: number;
|
|
275
312
|
userResponse: number;
|
|
313
|
+
userGroups?: Pick<UserGroupDTO, 'identifier' | 'name'>[];
|
|
276
314
|
}
|
|
277
315
|
export interface UserApprovalMetadataType {
|
|
278
316
|
approvalRequestId: number;
|
|
279
317
|
approvalRuntimeState: number;
|
|
280
318
|
approvedUsersData: ApprovalUserDataType[];
|
|
281
319
|
requestedUserData: ApprovalUserDataType;
|
|
320
|
+
approvalConfig?: UserApprovalConfigType;
|
|
282
321
|
}
|
|
283
322
|
export declare enum FilterStates {
|
|
284
323
|
ALLOWED = 0,
|
|
@@ -329,6 +368,14 @@ export interface ArtifactReleaseMappingType {
|
|
|
329
368
|
kind: string;
|
|
330
369
|
version: string;
|
|
331
370
|
}
|
|
371
|
+
export interface CDMaterialListModalServiceUtilProps {
|
|
372
|
+
artifacts: any[];
|
|
373
|
+
offset: number;
|
|
374
|
+
artifactId?: number;
|
|
375
|
+
artifactStatus?: string;
|
|
376
|
+
disableDefaultSelection?: boolean;
|
|
377
|
+
userApprovalConfig?: UserApprovalConfigType;
|
|
378
|
+
}
|
|
332
379
|
export interface CDMaterialType {
|
|
333
380
|
index: number;
|
|
334
381
|
id: string;
|
|
@@ -535,6 +582,10 @@ export interface CDMaterialsApprovalInfo {
|
|
|
535
582
|
approvalUsers: string[];
|
|
536
583
|
userApprovalConfig: UserApprovalConfigType;
|
|
537
584
|
canApproverDeploy: boolean;
|
|
585
|
+
/**
|
|
586
|
+
* Only available incase of approvals do'nt use in cd materials or any other flow since approvalUsers are not present there
|
|
587
|
+
*/
|
|
588
|
+
imageApprovalPolicyDetails: ImageApprovalPolicyType;
|
|
538
589
|
}
|
|
539
590
|
export interface CDMaterialsMetaInfo {
|
|
540
591
|
tagsEditable: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BuildStageType, FormType } from '../../Common/CIPipeline.Types';
|
|
2
|
-
import { DeploymentAppTypes } from '../../Common/Types';
|
|
2
|
+
import { DeploymentAppTypes, UserApprovalConfigType } from '../../Common/Types';
|
|
3
3
|
import { DeploymentStrategy } from '../../Shared/Components';
|
|
4
4
|
import { EnvListMinDTO } from '../../Shared/types';
|
|
5
5
|
|
|
@@ -54,9 +54,7 @@ export interface CDFormType {
|
|
|
54
54
|
secrets: ConfigSecretType[];
|
|
55
55
|
};
|
|
56
56
|
requiredApprovals: string;
|
|
57
|
-
userApprovalConfig?:
|
|
58
|
-
requiredCount: number;
|
|
59
|
-
};
|
|
57
|
+
userApprovalConfig?: UserApprovalConfigType;
|
|
60
58
|
isClusterCdActive: boolean;
|
|
61
59
|
deploymentAppCreated: boolean;
|
|
62
60
|
clusterId: string;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export * from './constants';
|
|
2
|
-
export type { UserListFilterParams, UserRoleGroup } from './types';
|
|
2
|
+
export type { UserListFilterParams, UserRoleGroup, UserGroupDTO, UserGroupType } from './types';
|
|
3
3
|
export * from './shared';
|
|
4
|
+
export * from './service';
|
|
5
|
+
export { getUserAndApiTokenOption } from './utils';
|
|
@@ -7,6 +7,10 @@ export type UserListFilterParams = BaseFilterQueryParams<UserListSortableKeys> &
|
|
|
7
7
|
*/
|
|
8
8
|
status: UserStatus[];
|
|
9
9
|
};
|
|
10
|
+
export interface UserMinType {
|
|
11
|
+
id: number;
|
|
12
|
+
emailId: string;
|
|
13
|
+
}
|
|
10
14
|
export interface UserRoleGroup {
|
|
11
15
|
/**
|
|
12
16
|
* Id of the permission group
|
|
@@ -31,3 +35,35 @@ export interface UserRoleGroup {
|
|
|
31
35
|
*/
|
|
32
36
|
timeToLive: string;
|
|
33
37
|
}
|
|
38
|
+
export interface UserGroupDTO {
|
|
39
|
+
/**
|
|
40
|
+
* Unique display name of the user group
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
* Unique id of the user group
|
|
45
|
+
*
|
|
46
|
+
* Follows the validation for app name
|
|
47
|
+
*/
|
|
48
|
+
identifier: string;
|
|
49
|
+
/**
|
|
50
|
+
* Associated description
|
|
51
|
+
*
|
|
52
|
+
* @default ''
|
|
53
|
+
*/
|
|
54
|
+
description?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Number of users assigned to the group
|
|
57
|
+
*
|
|
58
|
+
* @default 0
|
|
59
|
+
*/
|
|
60
|
+
usersCount?: number;
|
|
61
|
+
}
|
|
62
|
+
export interface UserGroupType extends Required<Pick<UserGroupDTO, 'description' | 'name' | 'usersCount' | 'identifier'>> {
|
|
63
|
+
/**
|
|
64
|
+
* Unique id of the user group
|
|
65
|
+
*
|
|
66
|
+
* Follows the validation for app name
|
|
67
|
+
*/
|
|
68
|
+
userGroupId: string;
|
|
69
|
+
}
|
|
@@ -135,5 +135,5 @@ import { SelectPickerProps } from './type';
|
|
|
135
135
|
* />
|
|
136
136
|
* ```
|
|
137
137
|
*/
|
|
138
|
-
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon,
|
|
138
|
+
declare const SelectPicker: <OptionValue extends string | number, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
|
139
139
|
export default SelectPicker;
|
|
@@ -7,7 +7,7 @@ export declare const SelectPickerControl: <OptionValue, IsMulti extends boolean>
|
|
|
7
7
|
export declare const SelectPickerValueContainer: <OptionValue, IsMulti extends boolean>({ showSelectedOptionsCount, customSelectedOptionsCount, ...props }: ValueContainerProps<SelectPickerOptionType<OptionValue>, boolean, import('react-select').GroupBase<SelectPickerOptionType<OptionValue>>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "customSelectedOptionsCount" | "showSelectedOptionsCount">) => JSX.Element;
|
|
8
8
|
export declare const SelectPickerLoadingIndicator: () => JSX.Element;
|
|
9
9
|
export declare const SelectPickerOption: <OptionValue, IsMulti extends boolean>({ disableDescriptionEllipsis, ...props }: OptionProps<SelectPickerOptionType<OptionValue>, boolean, import('react-select').GroupBase<SelectPickerOptionType<OptionValue>>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "disableDescriptionEllipsis">) => JSX.Element;
|
|
10
|
-
export declare const SelectPickerMenuList: <OptionValue
|
|
10
|
+
export declare const SelectPickerMenuList: <OptionValue extends string | number>(props: MenuListProps<SelectPickerOptionType<OptionValue>, boolean, import('react-select').GroupBase<SelectPickerOptionType<OptionValue>>>) => JSX.Element;
|
|
11
11
|
export declare const SelectPickerMultiValueLabel: <OptionValue, IsMulti extends boolean>({ getIsOptionValid, ...props }: MultiValueProps<SelectPickerOptionType<OptionValue>, true, import('react-select').GroupBase<SelectPickerOptionType<OptionValue>>> & Pick<SelectPickerProps<OptionValue, IsMulti>["multiSelectProps"], "getIsOptionValid">) => JSX.Element;
|
|
12
12
|
export declare const SelectPickerMultiValueRemove: (props: MultiValueRemoveProps) => JSX.Element;
|
|
13
13
|
export declare const SelectPickerGroupHeading: <OptionValue>({ isGroupHeadingSelectable, ...props }: SelectPickerGroupHeadingProps<OptionValue>) => JSX.Element;
|
|
@@ -18,12 +18,34 @@ export interface SelectPickerOptionType<OptionValue = string | number> extends O
|
|
|
18
18
|
*/
|
|
19
19
|
endIcon?: ReactElement;
|
|
20
20
|
}
|
|
21
|
+
type SelectProps<OptionValue, IsMulti extends boolean> = ReactSelectProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>;
|
|
22
|
+
declare module 'react-select/base' {
|
|
23
|
+
interface Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> {
|
|
24
|
+
/**
|
|
25
|
+
* Render function for the footer at the bottom of menu list. It is sticky by default
|
|
26
|
+
*/
|
|
27
|
+
renderMenuListFooter?: (selectedOptions: SelectProps<string | number, IsMulti>['value']) => ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* If true, custom options are rendered in the menuList component of react select
|
|
30
|
+
*
|
|
31
|
+
* Note: renderCustomOptions is required to be passed; renderMenuListFooter is also not called
|
|
32
|
+
*
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
shouldRenderCustomOptions?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Callback handler for custom options
|
|
38
|
+
*
|
|
39
|
+
* Imp Note: The menu open/close needs to handled by the consumer in this case
|
|
40
|
+
*/
|
|
41
|
+
renderCustomOptions?: () => ReactElement;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
21
44
|
export declare enum SelectPickerVariantType {
|
|
22
45
|
DEFAULT = "default",
|
|
23
46
|
BORDER_LESS = "border-less"
|
|
24
47
|
}
|
|
25
|
-
type
|
|
26
|
-
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'> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & {
|
|
48
|
+
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' | 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions'> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & {
|
|
27
49
|
/**
|
|
28
50
|
* Icon to be rendered in the control
|
|
29
51
|
*/
|
|
@@ -32,10 +54,6 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
32
54
|
* Error message for the select
|
|
33
55
|
*/
|
|
34
56
|
error?: ReactNode;
|
|
35
|
-
/**
|
|
36
|
-
* Render function for the footer at the bottom of menu list. It is sticky by default
|
|
37
|
-
*/
|
|
38
|
-
renderMenuListFooter?: (selectedOptions: SelectProps<OptionValue, IsMulti>['value']) => ReactNode;
|
|
39
57
|
/**
|
|
40
58
|
* Info text for the select, if any
|
|
41
59
|
*/
|
|
@@ -134,30 +152,12 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
134
152
|
} : {
|
|
135
153
|
isMulti?: never;
|
|
136
154
|
multiSelectProps?: never;
|
|
137
|
-
}) & ({
|
|
138
|
-
/**
|
|
139
|
-
* If true, custom options are rendered in the menuList component of react select
|
|
140
|
-
*
|
|
141
|
-
* Note: renderCustomOptions is required to be passed; renderMenuListFooter is also not called
|
|
142
|
-
*
|
|
143
|
-
* @default false
|
|
144
|
-
*/
|
|
145
|
-
shouldRenderCustomOptions: boolean;
|
|
146
|
-
/**
|
|
147
|
-
* Callback handler for custom options
|
|
148
|
-
*
|
|
149
|
-
* Imp Note: The menu open/close needs to handled by the consumer in this case
|
|
150
|
-
*/
|
|
151
|
-
renderCustomOptions: () => ReactElement;
|
|
152
|
-
} | {
|
|
153
|
-
shouldRenderCustomOptions?: never;
|
|
154
|
-
renderCustomOptions?: never;
|
|
155
155
|
});
|
|
156
156
|
export type SelectPickerGroupHeadingProps<OptionValue> = GroupHeadingProps<SelectPickerOptionType<OptionValue>> & {
|
|
157
157
|
isGroupHeadingSelectable: boolean;
|
|
158
158
|
};
|
|
159
159
|
export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight'> {
|
|
160
|
-
appliedFilterOptions:
|
|
160
|
+
appliedFilterOptions: SelectPickerOptionType[];
|
|
161
161
|
handleApplyFilter: (filtersToApply: SelectPickerOptionType<number | string>[]) => void;
|
|
162
162
|
}
|
|
163
163
|
export {};
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { Pair } from 'yaml';
|
|
3
|
-
import { MaterialInfo, SortingOrder } from '../Common';
|
|
3
|
+
import { MaterialInfo, SortingOrder, UserApprovalConfigType } from '../Common';
|
|
4
4
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
|
|
5
5
|
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
|
6
6
|
|
|
@@ -39,6 +39,12 @@ export declare const decode: (data: any, isEncoded?: boolean) => {};
|
|
|
39
39
|
export declare const isTimeStringAvailable: (time: string) => boolean;
|
|
40
40
|
export declare const getTimeDifference: (startTime: string, endTime: string) => string;
|
|
41
41
|
export declare const getFileNameFromHeaders: (headers: Headers) => string;
|
|
42
|
+
export declare const sanitizeUserApprovalConfig: (userApprovalConfig: UserApprovalConfigType) => UserApprovalConfigType;
|
|
43
|
+
/**
|
|
44
|
+
* Manual approval is considered configured only if the type is not notConfigured
|
|
45
|
+
*/
|
|
46
|
+
export declare const getIsManualApprovalConfigured: (userApprovalConfig?: Pick<UserApprovalConfigType, 'type'>) => boolean;
|
|
47
|
+
export declare const getIsManualApprovalSpecific: (userApprovalConfig?: Pick<UserApprovalConfigType, 'type'>) => boolean;
|
|
42
48
|
/**
|
|
43
49
|
* @description - Function to open a new tab with the given url
|
|
44
50
|
* @param url - url to be opened in new tab
|