@devtron-labs/devtron-fe-common-lib 0.1.18-beta-3 → 0.1.19
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/Api.d.ts +5 -5
- package/dist/Common/AppStatus/constants.d.ts +5 -0
- package/dist/Common/CIPipeline.Types.d.ts +1 -4
- package/dist/Common/Constants.d.ts +0 -2
- package/dist/Common/CustomInput/Types.d.ts +2 -2
- package/dist/Common/Modals/VisibleModal.d.ts +1 -1
- package/dist/Common/Modals/VisibleModal2.d.ts +1 -1
- package/dist/Common/MultiSelectCustomization.d.ts +1 -1
- package/dist/Common/Types.d.ts +4 -3
- package/dist/Shared/Components/DetectBottom/DetectBottom.component.d.ts +1 -2
- package/dist/Shared/Components/Header/types.d.ts +12 -1
- package/dist/Shared/Components/Plugin/service.d.ts +2 -4
- package/dist/Shared/Components/Plugin/types.d.ts +3 -11
- package/dist/Shared/Components/Plugin/utils.d.ts +0 -3
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -10
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/constants.d.ts +26 -2
- package/dist/Shared/types.d.ts +9 -1
- package/dist/Shared/validations.d.ts +0 -11
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-956d5eae.js → cssMode-3b8730e0.js} +1 -1
- package/dist/{freemarker2-81ee3915.js → freemarker2-3d674165.js} +1 -1
- package/dist/{handlebars-64dce357.js → handlebars-778549d5.js} +1 -1
- package/dist/{html-f30acd83.js → html-b63a30b8.js} +1 -1
- package/dist/{htmlMode-945abc9b.js → htmlMode-71ffb01f.js} +1 -1
- package/dist/{index-e79098f5.js → index-7ab4ff11.js} +20590 -20772
- package/dist/index.d.ts +2 -1
- package/dist/index.js +400 -406
- package/dist/{javascript-d557413a.js → javascript-d699b3d7.js} +1 -1
- package/dist/{jsonMode-a058d09a.js → jsonMode-d3fbc4fe.js} +1 -1
- package/dist/{liquid-1fda64a4.js → liquid-fd3ed14a.js} +1 -1
- package/dist/{mdx-1373a250.js → mdx-f058f4dd.js} +1 -1
- package/dist/{python-60162a7c.js → python-07b5b6a2.js} +1 -1
- package/dist/{razor-4e273270.js → razor-c25a9f7c.js} +1 -1
- package/dist/{tsMode-5d18ecf9.js → tsMode-ab463e44.js} +1 -1
- package/dist/{typescript-17b25d1f.js → typescript-b6036ce0.js} +1 -1
- package/dist/{xml-79e893b7.js → xml-a48a96c1.js} +1 -1
- package/dist/{yaml-78c623f1.js → yaml-9d0856b9.js} +1 -1
- package/package.json +1 -1
- package/dist/Shared/Components/EditImageFormField/EditImageFormField.d.ts +0 -19
- package/dist/Shared/Components/EditImageFormField/constants.d.ts +0 -7
- package/dist/Shared/Components/EditImageFormField/index.d.ts +0 -2
- package/dist/Shared/Components/EditImageFormField/types.d.ts +0 -41
- package/dist/Shared/Components/Header/HeaderWithCreateButton/constants.d.ts +0 -22
package/dist/Common/Api.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
2
|
import { ResponseType, APIOptions } from './Types';
|
|
3
3
|
|
|
4
|
-
export declare const post:
|
|
5
|
-
export declare const put:
|
|
6
|
-
export declare const patch:
|
|
7
|
-
export declare const get:
|
|
8
|
-
export declare const trash:
|
|
4
|
+
export declare const post: (url: string, data: object, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType>;
|
|
5
|
+
export declare const put: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
|
|
6
|
+
export declare const patch: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
|
|
7
|
+
export declare const get: (url: string, options?: APIOptions) => Promise<ResponseType>;
|
|
8
|
+
export declare const trash: (url: string, data?: object, options?: APIOptions) => Promise<ResponseType>;
|
|
9
9
|
/**
|
|
10
10
|
* Aborts the previous request before triggering next request
|
|
11
11
|
*/
|
|
@@ -77,7 +77,6 @@ export interface VariableType {
|
|
|
77
77
|
format: string;
|
|
78
78
|
description: string;
|
|
79
79
|
defaultValue: string;
|
|
80
|
-
allowEmptyValue: boolean;
|
|
81
80
|
variableType: RefVariableType;
|
|
82
81
|
refVariableStepIndex: number;
|
|
83
82
|
refVariableName: string;
|
|
@@ -99,7 +98,7 @@ interface ConditionDetails {
|
|
|
99
98
|
conditionType: ConditionType;
|
|
100
99
|
conditionalValue: string;
|
|
101
100
|
}
|
|
102
|
-
|
|
101
|
+
interface InlineStepDetailType {
|
|
103
102
|
scriptType: ScriptType;
|
|
104
103
|
isMountCustomScript?: boolean;
|
|
105
104
|
script?: string;
|
|
@@ -118,8 +117,6 @@ export interface InlineStepDetailType {
|
|
|
118
117
|
inputVariables?: VariableType[];
|
|
119
118
|
outputVariables?: VariableType[];
|
|
120
119
|
conditionDetails: ConditionDetails[];
|
|
121
|
-
storeScriptAt?: string;
|
|
122
|
-
mountCodeToContainerPath?: string;
|
|
123
120
|
}
|
|
124
121
|
interface PluginRefStepDetailType {
|
|
125
122
|
id: number;
|
|
@@ -78,7 +78,6 @@ export declare const ROUTES: {
|
|
|
78
78
|
PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
|
|
79
79
|
PLUGIN_GLOBAL_LIST_V2: string;
|
|
80
80
|
PLUGIN_GLOBAL_LIST_TAGS: string;
|
|
81
|
-
PLUGIN_LIST_MIN: string;
|
|
82
81
|
};
|
|
83
82
|
export declare enum KEY_VALUE {
|
|
84
83
|
KEY = "key",
|
|
@@ -268,4 +267,3 @@ export declare const DATE_TIME_FORMATS: {
|
|
|
268
267
|
DD_MMM_YYYY_HH_MM: string;
|
|
269
268
|
DD_MMM_YYYY: string;
|
|
270
269
|
};
|
|
271
|
-
export declare const SEMANTIC_VERSION_DOCUMENTATION_LINK = "https://semver.org/";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React, HTMLInputTypeAttribute, InputHTMLAttributes
|
|
1
|
+
import { default as React, HTMLInputTypeAttribute, InputHTMLAttributes } from 'react';
|
|
2
2
|
|
|
3
3
|
export interface CustomInputProps {
|
|
4
4
|
name: string;
|
|
@@ -17,7 +17,7 @@ export interface CustomInputProps {
|
|
|
17
17
|
autoFocus?: boolean;
|
|
18
18
|
rootClassName?: string;
|
|
19
19
|
error?: string[] | string;
|
|
20
|
-
helperText?:
|
|
20
|
+
helperText?: string;
|
|
21
21
|
handleOnBlur?: (e: any) => void;
|
|
22
22
|
readOnly?: boolean;
|
|
23
23
|
noTrim?: boolean;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -177,10 +177,10 @@ export interface RadioGroupItemProps {
|
|
|
177
177
|
export interface RadioGroupInterface {
|
|
178
178
|
name: string;
|
|
179
179
|
onChange: any;
|
|
180
|
+
className?: string;
|
|
180
181
|
initialTab: string;
|
|
182
|
+
disabled: boolean;
|
|
181
183
|
children: ReactNode;
|
|
182
|
-
disabled?: boolean;
|
|
183
|
-
className?: string;
|
|
184
184
|
}
|
|
185
185
|
export interface RadioInterface {
|
|
186
186
|
children: ReactNode;
|
|
@@ -488,7 +488,8 @@ export declare enum DeploymentAppTypes {
|
|
|
488
488
|
HELM = "helm",
|
|
489
489
|
GITOPS = "argo_cd",
|
|
490
490
|
MANIFEST_DOWNLOAD = "manifest_download",
|
|
491
|
-
MANIFEST_PUSH = "manifest_push"
|
|
491
|
+
MANIFEST_PUSH = "manifest_push",
|
|
492
|
+
FLUX = "flux"
|
|
492
493
|
}
|
|
493
494
|
export interface VulnerabilityType {
|
|
494
495
|
name: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
interface DetectBottomProps {
|
|
2
2
|
callback: () => void;
|
|
3
|
-
hasError?: boolean;
|
|
4
3
|
}
|
|
5
|
-
declare const DetectBottom: ({ callback
|
|
4
|
+
declare const DetectBottom: ({ callback }: DetectBottomProps) => JSX.Element;
|
|
6
5
|
export default DetectBottom;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ModuleStatus } from '../../types';
|
|
2
1
|
import { ResponseType, TippyCustomizedProps } from '../../../Common';
|
|
3
2
|
|
|
4
3
|
export declare enum InstallationType {
|
|
@@ -6,6 +5,18 @@ export declare enum InstallationType {
|
|
|
6
5
|
OSS_HELM = "oss_helm",
|
|
7
6
|
ENTERPRISE = "enterprise"
|
|
8
7
|
}
|
|
8
|
+
export declare enum ModuleStatus {
|
|
9
|
+
HEALTHY = "healthy",
|
|
10
|
+
NONE = "none",
|
|
11
|
+
UNKNOWN = "unknown",
|
|
12
|
+
UPGRADING = "upgrading",
|
|
13
|
+
UPGRADE_FAILED = "upgradeFailed",
|
|
14
|
+
INSTALLED = "installed",
|
|
15
|
+
INSTALLING = "installing",
|
|
16
|
+
INSTALL_FAILED = "installFailed",
|
|
17
|
+
NOT_INSTALLED = "notInstalled",
|
|
18
|
+
TIMEOUT = "timeout"
|
|
19
|
+
}
|
|
9
20
|
export interface PageHeaderType {
|
|
10
21
|
headerName?: string;
|
|
11
22
|
showTabs?: boolean;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GetPluginStoreDataReturnType, GetPluginStoreDataServiceParamsType, MinParentPluginDTO, PluginDetailServiceParamsType } from './types';
|
|
1
|
+
import { GetPluginStoreDataReturnType, GetPluginStoreDataServiceParamsType, PluginDetailServiceParamsType } from './types';
|
|
3
2
|
|
|
4
|
-
export declare const getPluginsDetail: ({ appId, parentPluginIds, pluginIds,
|
|
3
|
+
export declare const getPluginsDetail: ({ appId, parentPluginIds, pluginIds, shouldShowError, }: PluginDetailServiceParamsType) => Promise<Pick<GetPluginStoreDataReturnType, 'pluginStore'>>;
|
|
5
4
|
export declare const getPluginStoreData: ({ searchKey, selectedTags, appId, offset, signal, }: GetPluginStoreDataServiceParamsType) => Promise<GetPluginStoreDataReturnType>;
|
|
6
5
|
export declare const getAvailablePluginTags: (appId: number) => Promise<string[]>;
|
|
7
|
-
export declare const getParentPluginList: (appId?: number) => Promise<ResponseType<MinParentPluginDTO[]>>;
|
|
@@ -8,13 +8,9 @@ export declare enum PluginCreationType {
|
|
|
8
8
|
SHARED = "SHARED",
|
|
9
9
|
PRESET = "PRESET"
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
11
|
+
export interface GetPluginTagsPayloadType {
|
|
12
12
|
appId: number;
|
|
13
13
|
}
|
|
14
|
-
export interface GetPluginTagsPayloadType extends PluginAPIBaseQueryParamsType {
|
|
15
|
-
}
|
|
16
|
-
export interface GetParentPluginListPayloadType extends PluginAPIBaseQueryParamsType {
|
|
17
|
-
}
|
|
18
14
|
export interface PluginTagNamesDTO {
|
|
19
15
|
tagNames: string[];
|
|
20
16
|
}
|
|
@@ -49,9 +45,6 @@ export interface ParentPluginDTO {
|
|
|
49
45
|
type: PluginCreationType;
|
|
50
46
|
icon: string;
|
|
51
47
|
pluginVersions: PluginVersionsDTO;
|
|
52
|
-
pluginIdentifier: string;
|
|
53
|
-
}
|
|
54
|
-
export interface MinParentPluginDTO extends Pick<ParentPluginDTO, 'id' | 'name' | 'icon'> {
|
|
55
48
|
}
|
|
56
49
|
export interface PluginDetailDTO {
|
|
57
50
|
parentPlugins: ParentPluginDTO[];
|
|
@@ -65,7 +58,6 @@ export interface PluginDetailServiceParamsType {
|
|
|
65
58
|
* @default true
|
|
66
59
|
*/
|
|
67
60
|
shouldShowError?: boolean;
|
|
68
|
-
signal?: AbortSignal;
|
|
69
61
|
}
|
|
70
62
|
export interface PluginDetailPayloadType extends Pick<PluginDetailServiceParamsType, 'appId'> {
|
|
71
63
|
pluginId?: PluginDetailServiceParamsType['pluginIds'];
|
|
@@ -74,11 +66,11 @@ export interface PluginDetailPayloadType extends Pick<PluginDetailServiceParamsT
|
|
|
74
66
|
export interface PluginListFiltersType extends Pick<BaseFilterQueryParams<unknown>, 'searchKey'> {
|
|
75
67
|
selectedTags: string[];
|
|
76
68
|
}
|
|
77
|
-
interface ParentPluginType extends Pick<ParentPluginDTO, 'id' | 'name' | 'description' | 'type' | 'icon'
|
|
69
|
+
interface ParentPluginType extends Pick<ParentPluginDTO, 'id' | 'name' | 'description' | 'type' | 'icon'> {
|
|
78
70
|
latestVersionId: MinimalPluginVersionDataDTO['id'];
|
|
79
71
|
pluginVersions: MinimalPluginVersionDataDTO[];
|
|
80
72
|
}
|
|
81
|
-
interface DetailedPluginVersionType extends Pick<MinimalPluginVersionDataDTO, 'id' | 'description' | 'name' | 'pluginVersion'>, Pick<DetailedPluginVersionDTO, 'tags' | 'isLatest' | 'inputVariables' | 'outputVariables' | 'updatedBy' | 'docLink'>, Pick<ParentPluginType, 'icon' | 'type'
|
|
73
|
+
interface DetailedPluginVersionType extends Pick<MinimalPluginVersionDataDTO, 'id' | 'description' | 'name' | 'pluginVersion'>, Pick<DetailedPluginVersionDTO, 'tags' | 'isLatest' | 'inputVariables' | 'outputVariables' | 'updatedBy' | 'docLink'>, Pick<ParentPluginType, 'icon' | 'type'> {
|
|
82
74
|
parentPluginId: ParentPluginType['id'];
|
|
83
75
|
}
|
|
84
76
|
export interface PluginDataStoreType {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { OptionProps } from 'react-select';
|
|
2
|
-
import { OptionType } from '../../../Common/Types';
|
|
3
1
|
import { ParentPluginDTO, PluginDataStoreType } from './types';
|
|
4
2
|
|
|
5
3
|
export declare const parsePluginDetailsDTOIntoPluginStore: (pluginData: ParentPluginDTO[]) => PluginDataStoreType;
|
|
@@ -16,7 +14,6 @@ export declare const pluginTagSelectStyles: {
|
|
|
16
14
|
group: (base: any) => any;
|
|
17
15
|
groupHeading: (base: any) => any;
|
|
18
16
|
};
|
|
19
|
-
export declare const PluginTagOption: (props: OptionProps<OptionType, true>) => JSX.Element;
|
|
20
17
|
/**
|
|
21
18
|
* @description This method takes the initial plugin data store and updates the keys with the target parent plugin store and plugin version store
|
|
22
19
|
*/
|
|
@@ -81,5 +81,5 @@ import { SelectPickerProps } from './type';
|
|
|
81
81
|
* <SelectPicker ... showSelectedOptionsCount />
|
|
82
82
|
* ```
|
|
83
83
|
*/
|
|
84
|
-
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize,
|
|
84
|
+
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, ...props }: SelectPickerProps) => JSX.Element;
|
|
85
85
|
export default SelectPicker;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ServerErrors } from '../../../Common/ServerError';
|
|
2
1
|
import { OptionType } from '../../../Common/Types';
|
|
3
2
|
import { ComponentSizeType } from '../../constants';
|
|
4
3
|
import { ReactElement, ReactNode } from 'react';
|
|
@@ -19,7 +18,7 @@ export interface SelectPickerOptionType extends OptionType<number | string, Reac
|
|
|
19
18
|
endIcon?: ReactElement;
|
|
20
19
|
}
|
|
21
20
|
type SelectProps = ReactSelectProps<SelectPickerOptionType>;
|
|
22
|
-
export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'isLoading' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder'
|
|
21
|
+
export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'isLoading' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder'>, Required<Pick<SelectProps, 'classNamePrefix' | 'inputId' | 'name'>> {
|
|
23
22
|
/**
|
|
24
23
|
* Icon to be rendered in the control
|
|
25
24
|
*/
|
|
@@ -71,13 +70,5 @@ export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value'
|
|
|
71
70
|
* @default 'ComponentSizeType.small'
|
|
72
71
|
*/
|
|
73
72
|
menuSize?: ComponentSizeType;
|
|
74
|
-
/**
|
|
75
|
-
* If truthy, would show generic section error state as no options message
|
|
76
|
-
*/
|
|
77
|
-
optionListError?: ServerErrors;
|
|
78
|
-
/**
|
|
79
|
-
* Would reload the option list when called in case optionListError is present
|
|
80
|
-
*/
|
|
81
|
-
reloadOptionList?: () => void;
|
|
82
73
|
}
|
|
83
74
|
export {};
|
|
@@ -349,10 +349,35 @@ export declare const statusColor: {
|
|
|
349
349
|
};
|
|
350
350
|
export declare const APP_STATUS_HEADERS: string[];
|
|
351
351
|
export declare const MATERIAL_EXCLUDE_TIPPY_TEXT = "Not available for build as this commit contains changes in excluded files or folders";
|
|
352
|
+
export declare const AppListConstants: {
|
|
353
|
+
SAMPLE_NODE_REPO_URL: string;
|
|
354
|
+
CREATE_DEVTRON_APP_URL: string;
|
|
355
|
+
AppTabs: {
|
|
356
|
+
DEVTRON_APPS: string;
|
|
357
|
+
HELM_APPS: string;
|
|
358
|
+
ARGO_APPS: string;
|
|
359
|
+
FLUX_APPS: string;
|
|
360
|
+
};
|
|
361
|
+
AppType: {
|
|
362
|
+
DEVTRON_APPS: string;
|
|
363
|
+
HELM_APPS: string;
|
|
364
|
+
ARGO_APPS: string;
|
|
365
|
+
FLUX_APPS: string;
|
|
366
|
+
};
|
|
367
|
+
FilterType: {
|
|
368
|
+
PROJECT: string;
|
|
369
|
+
CLUTSER: string;
|
|
370
|
+
NAMESPACE: string;
|
|
371
|
+
ENVIRONMENT: string;
|
|
372
|
+
APP_STATUS: string;
|
|
373
|
+
TEMPLATE_TYPE: string;
|
|
374
|
+
};
|
|
375
|
+
};
|
|
352
376
|
export declare enum K8sResourcePayloadAppType {
|
|
353
377
|
DEVTRON_APP = 0,
|
|
354
378
|
HELM_APP = 1,
|
|
355
|
-
EXTERNAL_ARGO_APP = 2
|
|
379
|
+
EXTERNAL_ARGO_APP = 2,
|
|
380
|
+
EXTERNAL_FLUX_APP = 3
|
|
356
381
|
}
|
|
357
382
|
export declare const ANSI_UP_REGEX: RegExp;
|
|
358
383
|
/**
|
|
@@ -363,4 +388,3 @@ export declare enum ComponentSizeType {
|
|
|
363
388
|
medium = "medium",
|
|
364
389
|
large = "large"
|
|
365
390
|
}
|
|
366
|
-
export declare const POP_UP_MENU_MODAL_ID = "popup";
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -124,7 +124,8 @@ export declare enum AppType {
|
|
|
124
124
|
DEVTRON_APP = "devtron_app",
|
|
125
125
|
DEVTRON_HELM_CHART = "devtron_helm_chart",
|
|
126
126
|
EXTERNAL_HELM_CHART = "external_helm_chart",
|
|
127
|
-
EXTERNAL_ARGO_APP = "external_argo_app"
|
|
127
|
+
EXTERNAL_ARGO_APP = "external_argo_app",
|
|
128
|
+
EXTERNAL_FLUX_APP = "external_flux_app"
|
|
128
129
|
}
|
|
129
130
|
export interface HelmReleaseStatus {
|
|
130
131
|
status: string;
|
|
@@ -140,6 +141,11 @@ interface MaterialInfo {
|
|
|
140
141
|
url: string;
|
|
141
142
|
webhookData: string;
|
|
142
143
|
}
|
|
144
|
+
export interface FluxAppStatusDetail {
|
|
145
|
+
status: string;
|
|
146
|
+
message: string;
|
|
147
|
+
reason: string;
|
|
148
|
+
}
|
|
143
149
|
export interface AppDetails {
|
|
144
150
|
appId?: number;
|
|
145
151
|
appName: string;
|
|
@@ -181,6 +187,8 @@ export interface AppDetails {
|
|
|
181
187
|
helmPackageName?: string;
|
|
182
188
|
appStatus?: string;
|
|
183
189
|
chartAvatar?: string;
|
|
190
|
+
fluxTemplateType?: string;
|
|
191
|
+
FluxAppStatusDetail?: FluxAppStatusDetail;
|
|
184
192
|
}
|
|
185
193
|
export declare enum RegistryType {
|
|
186
194
|
GIT = "git",
|
|
@@ -12,7 +12,6 @@ export declare const MESSAGES: {
|
|
|
12
12
|
VALID_POSITIVE_NUMBER: string;
|
|
13
13
|
VALID_POSITIVE_INTEGER: string;
|
|
14
14
|
MAX_SAFE_INTEGER: string;
|
|
15
|
-
INVALID_SEMANTIC_VERSION: string;
|
|
16
15
|
};
|
|
17
16
|
export declare const requiredField: (value: string) => ValidationResponseType;
|
|
18
17
|
export declare const validateName: (name: string) => ValidationResponseType;
|
|
@@ -29,13 +28,3 @@ export declare const validateUniqueKeys: (keys: string[]) => {
|
|
|
29
28
|
isValid: boolean;
|
|
30
29
|
message: string;
|
|
31
30
|
};
|
|
32
|
-
/**
|
|
33
|
-
* Rules for valid semantic version:
|
|
34
|
-
* 1. version.length < 128 and not empty
|
|
35
|
-
* 2. version should follow semantic versioning regex from https://semver.org/
|
|
36
|
-
*/
|
|
37
|
-
export declare const validateSemanticVersioning: (version: string) => ValidationResponseType;
|
|
38
|
-
/**
|
|
39
|
-
* A valid display name should be between 3 and 50 characters
|
|
40
|
-
*/
|
|
41
|
-
export declare const validateDisplayName: (name: string) => ValidationResponseType;
|