@devtron-labs/devtron-fe-common-lib 0.0.90-beta-1 → 0.0.90-beta-2
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/Dialogs/Types.d.ts +17 -2
- package/dist/Common/EmptyState/GenericFilterEmptyState.d.ts +5 -2
- package/dist/Common/EmptyState/types.d.ts +13 -0
- package/dist/Common/Hooks/useStateFilters/types.d.ts +1 -1
- package/dist/Common/Modals/Modal.d.ts +3 -0
- package/dist/Common/Modals/VisibleModal.d.ts +2 -1
- package/dist/Common/Modals/VisibleModal2.d.ts +2 -1
- package/dist/Common/PopupMenu.d.ts +1 -1
- package/dist/Common/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +1 -1
- package/dist/Common/SortableTableHeaderCell/types.d.ts +0 -5
- package/dist/Common/Types.d.ts +3 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +0 -2
- package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +3 -0
- package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +4 -0
- package/dist/Shared/Components/FeatureDescription/constant.d.ts +8 -0
- package/dist/Shared/Components/FeatureDescription/index.d.ts +2 -0
- package/dist/Shared/Components/FeatureDescription/types.d.ts +19 -0
- package/dist/Shared/Components/FeatureDescription/utils.d.ts +6 -0
- package/dist/Shared/Components/ImageWithFallback/ImageWithFallback.component.d.ts +4 -0
- package/dist/Shared/Components/ImageWithFallback/index.d.ts +2 -0
- package/dist/Shared/Components/ImageWithFallback/types.d.ts +12 -0
- package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +4 -0
- package/dist/Shared/Components/ModalSidebarPanel/index.d.ts +2 -0
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +9 -0
- package/dist/Shared/Components/ReactSelect/utils.d.ts +0 -4
- package/dist/Shared/Components/index.d.ts +3 -1
- package/dist/Shared/Helpers.d.ts +2 -0
- package/dist/Shared/Services/common.service.d.ts +3 -0
- package/dist/Shared/Services/index.d.ts +2 -0
- package/dist/Shared/Services/types.d.ts +17 -0
- package/dist/Shared/constants.d.ts +4 -0
- package/dist/Shared/index.d.ts +1 -1
- package/dist/Shared/types.d.ts +44 -43
- package/dist/Shared/validations.d.ts +4 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-07d7773b.js → cssMode-c8f8c088.js} +1 -1
- package/dist/{freemarker2-38252b9d.js → freemarker2-e27b3168.js} +1 -1
- package/dist/{handlebars-933ed526.js → handlebars-5a235a76.js} +1 -1
- package/dist/{html-98cdc8f3.js → html-6ec39546.js} +1 -1
- package/dist/{htmlMode-347a2681.js → htmlMode-c5add57a.js} +1 -1
- package/dist/{index-9369744f.js → index-9e5cc476.js} +19814 -19670
- package/dist/index.js +374 -365
- package/dist/{javascript-1c94db42.js → javascript-f6830def.js} +1 -1
- package/dist/{jsonMode-9888b5f5.js → jsonMode-696a7805.js} +1 -1
- package/dist/{liquid-7f732582.js → liquid-19f79b7d.js} +1 -1
- package/dist/{mdx-bcbbf051.js → mdx-2caf6026.js} +1 -1
- package/dist/{python-ccf185f2.js → python-580482d9.js} +1 -1
- package/dist/{razor-ba6ad09d.js → razor-142c853f.js} +1 -1
- package/dist/{tsMode-0d8e3cff.js → tsMode-79ec4084.js} +1 -1
- package/dist/{typescript-ba44fc90.js → typescript-35ea705c.js} +1 -1
- package/dist/{xml-bd46f314.js → xml-6ddcbb18.js} +1 -1
- package/dist/{yaml-02afcbbb.js → yaml-055d6e1d.js} +1 -1
- package/package.json +5 -5
- package/dist/Shared/API/APIQueuing.d.ts +0 -11
- package/dist/Shared/API/index.d.ts +0 -1
- package/dist/Shared/Components/EnvironmentSelector/EnvironmentSelector.component.d.ts +0 -4
- package/dist/Shared/Components/EnvironmentSelector/constants.d.ts +0 -5
- package/dist/Shared/Components/EnvironmentSelector/index.d.ts +0 -1
- package/dist/Shared/Components/EnvironmentSelector/service.d.ts +0 -3
- package/dist/Shared/Components/EnvironmentSelector/types.d.ts +0 -27
- package/dist/Shared/Components/EnvironmentSelector/utils.d.ts +0 -6
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
type WithOrWithoutDeleteConfirmationType = {
|
|
4
|
+
showDeleteConfirmation: true;
|
|
5
|
+
/**
|
|
6
|
+
* If added, confirmation input is shown
|
|
7
|
+
*/
|
|
8
|
+
deleteConfirmationText: string;
|
|
9
|
+
} | {
|
|
10
|
+
showDeleteConfirmation?: never;
|
|
11
|
+
/**
|
|
12
|
+
* If added, confirmation input is shown
|
|
13
|
+
*/
|
|
14
|
+
deleteConfirmationText?: never;
|
|
15
|
+
};
|
|
16
|
+
export type DeleteDialogProps = {
|
|
4
17
|
title: string;
|
|
5
18
|
description?: string;
|
|
6
19
|
closeDelete: () => void;
|
|
@@ -12,7 +25,8 @@ export interface DeleteDialogProps {
|
|
|
12
25
|
buttonPrimaryText?: string;
|
|
13
26
|
shouldStopPropagation?: boolean;
|
|
14
27
|
disabled?: boolean;
|
|
15
|
-
|
|
28
|
+
children?: ReactNode;
|
|
29
|
+
} & WithOrWithoutDeleteConfirmationType;
|
|
16
30
|
export interface ForceDeleteDialogType {
|
|
17
31
|
onClickDelete: () => void;
|
|
18
32
|
closeDeleteModal: () => void;
|
|
@@ -44,3 +58,4 @@ export interface DialogFormProps {
|
|
|
44
58
|
onSave: (event: any) => void;
|
|
45
59
|
headerClassName?: string;
|
|
46
60
|
}
|
|
61
|
+
export {};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GenericFilterEmptyStateProps } from './types';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Empty state when no filters are applied
|
|
5
|
+
*/
|
|
6
|
+
declare const GenericFilterEmptyState: ({ handleClearFilters, isButtonAvailable, renderButton, ...props }: GenericFilterEmptyStateProps) => JSX.Element;
|
|
4
7
|
export default GenericFilterEmptyState;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GenericEmptyStateType } from '../Types';
|
|
2
|
+
|
|
3
|
+
export type GenericFilterEmptyStateProps = Omit<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'isButtonAvailable' | 'renderButton'> & Partial<Pick<GenericEmptyStateType, 'title' | 'subTitle'>> & ({
|
|
4
|
+
/**
|
|
5
|
+
* If provided, it will have priority over the isButtonAvailable prop
|
|
6
|
+
* and render clear filter button
|
|
7
|
+
*/
|
|
8
|
+
handleClearFilters?: () => void;
|
|
9
|
+
isButtonAvailable?: never;
|
|
10
|
+
renderButton?: never;
|
|
11
|
+
} | (Pick<GenericEmptyStateType, 'isButtonAvailable' | 'renderButton'> & {
|
|
12
|
+
handleClearFilters?: never;
|
|
13
|
+
}));
|
|
@@ -2,5 +2,5 @@ import { UseUrlFiltersProps, UseUrlFiltersReturnType } from '../useUrlFilters';
|
|
|
2
2
|
|
|
3
3
|
export interface UseStateFiltersProps<T> extends Pick<UseUrlFiltersProps<T, never>, 'initialSortKey'> {
|
|
4
4
|
}
|
|
5
|
-
export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters'> {
|
|
5
|
+
export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters' | 'searchKey' | 'handleSearch'> {
|
|
6
6
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { ModalType } from '../Types';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use VisibleModal instead
|
|
6
|
+
*/
|
|
4
7
|
export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => React.ReactPortal;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, SyntheticEvent } from 'react';
|
|
2
2
|
|
|
3
3
|
export declare class VisibleModal extends React.Component<{
|
|
4
4
|
className: string;
|
|
@@ -12,5 +12,6 @@ export declare class VisibleModal extends React.Component<{
|
|
|
12
12
|
escFunction(event: any): void;
|
|
13
13
|
componentDidMount(): void;
|
|
14
14
|
componentWillUnmount(): void;
|
|
15
|
+
handleBodyClick: (e: SyntheticEvent) => void;
|
|
15
16
|
render(): React.ReactPortal;
|
|
16
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, SyntheticEvent } from 'react';
|
|
2
2
|
|
|
3
3
|
export declare class VisibleModal2 extends React.Component<{
|
|
4
4
|
className: string;
|
|
@@ -9,5 +9,6 @@ export declare class VisibleModal2 extends React.Component<{
|
|
|
9
9
|
escFunction(event: any): void;
|
|
10
10
|
componentDidMount(): void;
|
|
11
11
|
componentWillUnmount(): void;
|
|
12
|
+
handleBodyClick: (e: SyntheticEvent) => void;
|
|
12
13
|
render(): React.ReactPortal;
|
|
13
14
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PopupMenuBodyType, PopupMenuButtonType, PopupMenuType } from './Types';
|
|
2
2
|
|
|
3
3
|
declare const PopupMenu: {
|
|
4
|
-
({ children, onToggleCallback, autoClose, autoPosition, }: 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
|
};
|
|
@@ -14,5 +14,5 @@ import { SortableTableHeaderCellProps } from './types';
|
|
|
14
14
|
* />
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
declare const SortableTableHeaderCell: ({ isSorted, triggerSorting, sortOrder, title, disabled,
|
|
17
|
+
declare const SortableTableHeaderCell: ({ isSorted, triggerSorting, sortOrder, title, disabled, }: SortableTableHeaderCellProps) => JSX.Element;
|
|
18
18
|
export default SortableTableHeaderCell;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -140,7 +140,8 @@ export interface ErrorScreenNotAuthorizedProps {
|
|
|
140
140
|
}
|
|
141
141
|
export declare enum ImageType {
|
|
142
142
|
Large = "large",
|
|
143
|
-
Medium = "medium"
|
|
143
|
+
Medium = "medium",
|
|
144
|
+
SMALL = "small"
|
|
144
145
|
}
|
|
145
146
|
export interface InfoColourBarType {
|
|
146
147
|
message: React.ReactNode;
|
|
@@ -213,6 +214,7 @@ export interface PopupMenuType {
|
|
|
213
214
|
onToggleCallback?: (isOpen: boolean) => void;
|
|
214
215
|
autoClose?: boolean;
|
|
215
216
|
autoPosition?: boolean;
|
|
217
|
+
shouldPreventDefault?: boolean;
|
|
216
218
|
}
|
|
217
219
|
export interface PopupMenuButtonType {
|
|
218
220
|
children?: ReactNode;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DescriptorProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, }: DescriptorProps) => JSX.Element;
|
|
4
|
+
export default FeatureTitleWithInfo;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
|
|
2
|
+
import { ImageType } from '../../../Common';
|
|
3
|
+
|
|
4
|
+
export interface FeatureDescriptionModalProps {
|
|
5
|
+
title: string;
|
|
6
|
+
renderDescriptionContent?: () => JSX.Element;
|
|
7
|
+
closeModalText?: string;
|
|
8
|
+
docLink?: string;
|
|
9
|
+
closeModal?: () => void;
|
|
10
|
+
imageVariant?: ImageType;
|
|
11
|
+
SVGImage?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
12
|
+
imageStyles?: React.CSSProperties;
|
|
13
|
+
}
|
|
14
|
+
export interface DescriptorProps extends FeatureDescriptionModalProps {
|
|
15
|
+
breadCrumbs: Breadcrumb[];
|
|
16
|
+
additionalContainerClasses?: string;
|
|
17
|
+
iconClassName?: string;
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ImgHTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ImageWithFallbackProps {
|
|
4
|
+
/**
|
|
5
|
+
* Props for the image
|
|
6
|
+
*/
|
|
7
|
+
imageProps: ImgHTMLAttributes<HTMLImageElement>;
|
|
8
|
+
/**
|
|
9
|
+
* Fallback image; can be a url or a jsx element
|
|
10
|
+
*/
|
|
11
|
+
fallbackImage: string | JSX.Element;
|
|
12
|
+
}
|
|
@@ -8,8 +8,6 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
|
|
|
8
8
|
loadingMessage: (base: any) => any;
|
|
9
9
|
noOptionsMessage: (base: any) => any;
|
|
10
10
|
placeholder: (base: any) => any;
|
|
11
|
-
group: (base: any) => any;
|
|
12
|
-
groupHeading: (base: any) => any;
|
|
13
11
|
};
|
|
14
12
|
export declare const getCustomOptionSelectionStyle: (styleOverrides?: {}) => (base: any, state: any) => any;
|
|
15
13
|
export declare const SelectOption: (props: any) => JSX.Element;
|
|
@@ -25,6 +23,4 @@ export declare const commonSelectStyles: {
|
|
|
25
23
|
loadingMessage: (base: any) => any;
|
|
26
24
|
noOptionsMessage: (base: any) => any;
|
|
27
25
|
placeholder: (base: any) => any;
|
|
28
|
-
group: (base: any) => any;
|
|
29
|
-
groupHeading: (base: any) => any;
|
|
30
26
|
};
|
|
@@ -17,7 +17,9 @@ export * from './Header';
|
|
|
17
17
|
export * from './AnnouncementBanner';
|
|
18
18
|
export * from './ButtonWithLoader';
|
|
19
19
|
export * from './ButtonWithSelector';
|
|
20
|
-
export * from './
|
|
20
|
+
export * from './ModalSidebarPanel';
|
|
21
|
+
export * from './ImageWithFallback';
|
|
22
|
+
export * from './FeatureDescription';
|
|
21
23
|
export * from './CICDHistory';
|
|
22
24
|
export * from './GitCommitInfoGeneric';
|
|
23
25
|
export * from './Error';
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
|
2
2
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
|
|
3
3
|
import { MaterialInfo, SortingOrder } from '../Common';
|
|
4
|
+
import { ReactElement } from 'react';
|
|
4
5
|
|
|
5
6
|
interface HighlightSearchTextProps {
|
|
6
7
|
/**
|
|
@@ -26,6 +27,7 @@ export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => J
|
|
|
26
27
|
export declare const useIntersection: (target: React.RefObject<Element> | Element | null, options?: IntersectionOptions, callback?: IntersectionChangeHandler) => boolean;
|
|
27
28
|
export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
28
29
|
export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
|
|
30
|
+
export declare const renderValidInputButtonTippy: (children: ReactElement) => JSX.Element;
|
|
29
31
|
export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
|
30
32
|
export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
|
|
31
33
|
export declare const decode: (data: any, isEncoded?: boolean) => {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ResourceKindType, ResourceVersionType } from '../types';
|
|
2
|
+
import { getUrlWithSearchParams } from '../../Common';
|
|
3
|
+
|
|
4
|
+
export interface ClusterType {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
/**
|
|
8
|
+
* If true, denotes virtual cluster
|
|
9
|
+
*/
|
|
10
|
+
isVirtual: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface GetResourceApiUrlProps<T> {
|
|
13
|
+
baseUrl: string;
|
|
14
|
+
kind: ResourceKindType;
|
|
15
|
+
version: ResourceVersionType;
|
|
16
|
+
queryParams?: T extends Parameters<typeof getUrlWithSearchParams>[1] ? T : never;
|
|
17
|
+
}
|
|
@@ -43,6 +43,10 @@ export declare enum DeploymentWithConfigType {
|
|
|
43
43
|
LATEST_TRIGGER_CONFIG = "LATEST_TRIGGER_CONFIG",
|
|
44
44
|
SPECIFIC_TRIGGER_CONFIG = "SPECIFIC_TRIGGER_CONFIG"
|
|
45
45
|
}
|
|
46
|
+
export declare enum EnvironmentTypeEnum {
|
|
47
|
+
production = "Production",
|
|
48
|
+
nonProduction = "Non-Production"
|
|
49
|
+
}
|
|
46
50
|
export declare enum TIMELINE_STATUS {
|
|
47
51
|
DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED",
|
|
48
52
|
GIT_COMMIT = "GIT_COMMIT",
|
package/dist/Shared/index.d.ts
CHANGED
package/dist/Shared/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PatchOperationType } from './constants';
|
|
2
|
-
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes
|
|
1
|
+
import { EnvironmentTypeEnum, PatchOperationType } from './constants';
|
|
2
|
+
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes } from '../Common';
|
|
3
3
|
|
|
4
4
|
export declare enum EnvType {
|
|
5
5
|
CHART = "helm_charts",
|
|
@@ -351,6 +351,9 @@ export declare enum ResourceKindType {
|
|
|
351
351
|
cluster = "cluster",
|
|
352
352
|
release = "release",
|
|
353
353
|
releaseTrack = "release-track",
|
|
354
|
+
tenant = "tenant",
|
|
355
|
+
installation = "installation",
|
|
356
|
+
environment = "environment",
|
|
354
357
|
cdPipeline = "cd-pipeline"
|
|
355
358
|
}
|
|
356
359
|
/**
|
|
@@ -399,6 +402,10 @@ export type IntersectionOptions = {
|
|
|
399
402
|
defaultIntersecting?: boolean;
|
|
400
403
|
};
|
|
401
404
|
export type IntersectionChangeHandler = (entry: IntersectionObserverEntry) => void;
|
|
405
|
+
export interface InputFieldState<T = string> {
|
|
406
|
+
value: T;
|
|
407
|
+
error: string;
|
|
408
|
+
}
|
|
402
409
|
export declare enum AggregationKeys {
|
|
403
410
|
Workloads = "Workloads",
|
|
404
411
|
Networking = "Networking",
|
|
@@ -411,53 +418,47 @@ export declare enum AggregationKeys {
|
|
|
411
418
|
Namespaces = "Namespaces"
|
|
412
419
|
}
|
|
413
420
|
export type AggregationKeysType = keyof typeof AggregationKeys;
|
|
414
|
-
export interface
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
lastDeployed: string;
|
|
419
|
-
lastDeployedImage?: string;
|
|
420
|
-
lastDeployedBy?: string;
|
|
421
|
-
appId: number;
|
|
422
|
-
envId: number;
|
|
423
|
-
pipelineId?: number;
|
|
424
|
-
commits?: string[];
|
|
425
|
-
ciArtifactId?: number;
|
|
426
|
-
}
|
|
427
|
-
export interface EnvListMinDTO {
|
|
421
|
+
export interface EnvironmentType {
|
|
422
|
+
/**
|
|
423
|
+
* Unique identifier for the environment
|
|
424
|
+
*/
|
|
428
425
|
id: number;
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
environmentIdentifier: string;
|
|
437
|
-
environment_name: string;
|
|
438
|
-
isClusterCdActive: boolean;
|
|
439
|
-
isDigestEnforcedForEnv: boolean;
|
|
440
|
-
isVirtualEnvironment: boolean;
|
|
426
|
+
/**
|
|
427
|
+
* Name of the environment
|
|
428
|
+
*/
|
|
429
|
+
name: string;
|
|
430
|
+
/**
|
|
431
|
+
* Associated namespace for the environment
|
|
432
|
+
*/
|
|
441
433
|
namespace: string;
|
|
434
|
+
/**
|
|
435
|
+
* Type of the environment
|
|
436
|
+
*/
|
|
437
|
+
environmentType: EnvironmentTypeEnum;
|
|
438
|
+
/**
|
|
439
|
+
* Associated cluster for the environment
|
|
440
|
+
*/
|
|
441
|
+
cluster: string;
|
|
442
|
+
/**
|
|
443
|
+
* If true, denotes virtual environment
|
|
444
|
+
*/
|
|
445
|
+
isVirtual: boolean;
|
|
442
446
|
}
|
|
443
|
-
export
|
|
444
|
-
|
|
445
|
-
|
|
447
|
+
export interface CreatedByDTO {
|
|
448
|
+
icon: boolean;
|
|
449
|
+
id: number;
|
|
450
|
+
name: string;
|
|
446
451
|
}
|
|
447
|
-
export
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
status: PromiseAllStatusType.REJECTED;
|
|
452
|
-
reason: ServerErrors;
|
|
453
|
-
};
|
|
454
|
-
export interface BatchConfigType {
|
|
455
|
-
lastIndex: number;
|
|
456
|
-
results: any[];
|
|
457
|
-
concurrentCount: number;
|
|
458
|
-
completedCalls: number;
|
|
452
|
+
export declare enum DependencyType {
|
|
453
|
+
UPSTREAM = "upstream",
|
|
454
|
+
DOWNSTREAM = "downstream",
|
|
455
|
+
LEVEL = "level"
|
|
459
456
|
}
|
|
460
457
|
export interface scrollableInterface {
|
|
461
458
|
autoBottomScroll: boolean;
|
|
462
459
|
}
|
|
460
|
+
export declare enum PromiseAllStatusType {
|
|
461
|
+
FULFILLED = "fulfilled",
|
|
462
|
+
REJECTED = "rejected"
|
|
463
|
+
}
|
|
463
464
|
export {};
|
|
@@ -8,6 +8,7 @@ export declare const MESSAGES: {
|
|
|
8
8
|
CAN_NOT_START_END_WITH_SEPARATORS: string;
|
|
9
9
|
getMinMaxCharMessage: (min: number, max: number) => string;
|
|
10
10
|
getMaxCharMessage: (max: number) => string;
|
|
11
|
+
getMinCharMessage: (min: number) => string;
|
|
11
12
|
VALID_POSITIVE_NUMBER: string;
|
|
12
13
|
VALID_POSITIVE_INTEGER: string;
|
|
13
14
|
MAX_SAFE_INTEGER: string;
|
|
@@ -15,5 +16,8 @@ export declare const MESSAGES: {
|
|
|
15
16
|
export declare const requiredField: (value: string) => ValidationResponseType;
|
|
16
17
|
export declare const validateName: (name: string) => ValidationResponseType;
|
|
17
18
|
export declare const validateDescription: (description: string) => ValidationResponseType;
|
|
19
|
+
export declare const validateStringLength: (value: string, maxLimit: number, minLimit: number) => ValidationResponseType;
|
|
18
20
|
export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
|
|
19
21
|
export declare const validateRequiredPositiveInteger: (value: string | number) => ValidationResponseType;
|
|
22
|
+
export declare const validateURL: (url: string, allowBase64Url?: boolean) => ValidationResponseType;
|
|
23
|
+
export declare const validateIfImageExist: (url: string) => Promise<ValidationResponseType>;
|