@devtron-labs/devtron-fe-common-lib 0.1.16-beta-7 → 0.1.16-beta-8

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 (44) hide show
  1. package/dist/Common/Api.d.ts +1 -1
  2. package/dist/Common/AppStatus/constants.d.ts +5 -0
  3. package/dist/Common/CIPipeline.Types.d.ts +1 -4
  4. package/dist/Common/Constants.d.ts +0 -2
  5. package/dist/Common/CustomInput/Types.d.ts +2 -2
  6. package/dist/Common/Modals/VisibleModal.d.ts +1 -1
  7. package/dist/Common/Modals/VisibleModal2.d.ts +1 -1
  8. package/dist/Common/MultiSelectCustomization.d.ts +1 -1
  9. package/dist/Common/Types.d.ts +4 -3
  10. package/dist/Shared/Components/DetectBottom/DetectBottom.component.d.ts +1 -2
  11. package/dist/Shared/Components/Plugin/service.d.ts +1 -3
  12. package/dist/Shared/Components/Plugin/types.d.ts +2 -5
  13. package/dist/Shared/Components/Plugin/utils.d.ts +0 -3
  14. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  15. package/dist/Shared/Components/SelectPicker/type.d.ts +1 -10
  16. package/dist/Shared/Components/index.d.ts +0 -1
  17. package/dist/Shared/constants.d.ts +26 -2
  18. package/dist/Shared/types.d.ts +9 -1
  19. package/dist/Shared/validations.d.ts +0 -3
  20. package/dist/assets/index.css +1 -1
  21. package/dist/{cssMode-5222472b.js → cssMode-058ab96c.js} +1 -1
  22. package/dist/{freemarker2-86e00522.js → freemarker2-64197048.js} +1 -1
  23. package/dist/{handlebars-6a922d2a.js → handlebars-90c1751f.js} +1 -1
  24. package/dist/{html-b4158742.js → html-c30667e4.js} +1 -1
  25. package/dist/{htmlMode-d8c49ab0.js → htmlMode-7a8b50c7.js} +1 -1
  26. package/dist/{index-6d3a3314.js → index-e2376136.js} +23219 -23395
  27. package/dist/index.d.ts +2 -1
  28. package/dist/index.js +396 -402
  29. package/dist/{javascript-80dc4c2a.js → javascript-df1177dd.js} +1 -1
  30. package/dist/{jsonMode-771da968.js → jsonMode-eb5f0a08.js} +1 -1
  31. package/dist/{liquid-12cc259d.js → liquid-4d1dbabc.js} +1 -1
  32. package/dist/{mdx-3e169bed.js → mdx-a79fb1a5.js} +1 -1
  33. package/dist/{python-7abb639f.js → python-d2ee4285.js} +1 -1
  34. package/dist/{razor-0c1382cc.js → razor-4a83f7e4.js} +1 -1
  35. package/dist/{tsMode-bc8858f6.js → tsMode-6ddb6fc9.js} +1 -1
  36. package/dist/{typescript-0f031a62.js → typescript-5844ed4e.js} +1 -1
  37. package/dist/{xml-86ca1795.js → xml-bd63fabc.js} +1 -1
  38. package/dist/{yaml-71afa4d4.js → yaml-111cdabf.js} +1 -1
  39. package/package.json +1 -1
  40. package/dist/Shared/Components/EditImageFormField/EditImageFormField.d.ts +0 -4
  41. package/dist/Shared/Components/EditImageFormField/constants.d.ts +0 -6
  42. package/dist/Shared/Components/EditImageFormField/index.d.ts +0 -2
  43. package/dist/Shared/Components/EditImageFormField/types.d.ts +0 -18
  44. package/dist/Shared/Components/Header/HeaderWithCreateButton/constants.d.ts +0 -22
@@ -4,7 +4,7 @@ import { ResponseType, APIOptions } from './Types';
4
4
  export declare const post: (url: string, data: object, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType>;
5
5
  export declare const put: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
6
6
  export declare const patch: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
7
- export declare const get: <T = any>(url: string, options?: APIOptions) => Promise<ResponseType<T>>;
7
+ export declare const get: (url: string, options?: APIOptions) => Promise<ResponseType>;
8
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
@@ -4,6 +4,11 @@ export declare const StatusConstants: {
4
4
  normalCase: string;
5
5
  lowerCase: string;
6
6
  };
7
+ NOT_READY: {
8
+ noSpaceLower: string;
9
+ normalCase: string;
10
+ lowerCase: string;
11
+ };
7
12
  APP_STATUS: {
8
13
  noSpaceLower: string;
9
14
  normalText: string;
@@ -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
- export interface InlineStepDetailType {
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, ReactNode } from 'react';
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?: ReactNode;
20
+ helperText?: string;
21
21
  handleOnBlur?: (e: any) => void;
22
22
  readOnly?: boolean;
23
23
  noTrim?: boolean;
@@ -1,7 +1,7 @@
1
1
  import { default as React, SyntheticEvent } from 'react';
2
2
 
3
3
  export declare class VisibleModal extends React.Component<{
4
- className?: string;
4
+ className: string;
5
5
  parentClassName?: string;
6
6
  noBackground?: boolean;
7
7
  close?: (e: any) => void;
@@ -1,7 +1,7 @@
1
1
  import { default as React, SyntheticEvent } from 'react';
2
2
 
3
3
  export declare class VisibleModal2 extends React.Component<{
4
- className?: string;
4
+ className: string;
5
5
  close?: (e: any) => void;
6
6
  }> {
7
7
  modalRef: HTMLElement;
@@ -4,7 +4,7 @@ export declare const Option: (props: any) => JSX.Element;
4
4
  export declare const SingleSelectOption: (props: any) => JSX.Element;
5
5
  /**
6
6
  * Multi value container
7
- */
7
+ */
8
8
  export declare const MultiValueContainer: (props: any) => JSX.Element;
9
9
  /**
10
10
  *
@@ -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, hasError }: DetectBottomProps) => JSX.Element;
4
+ declare const DetectBottom: ({ callback }: DetectBottomProps) => JSX.Element;
6
5
  export default DetectBottom;
@@ -1,7 +1,5 @@
1
- import { ResponseType } from '../../../Common';
2
- import { GetPluginStoreDataReturnType, GetPluginStoreDataServiceParamsType, MinParentPluginDTO, PluginDetailServiceParamsType } from './types';
1
+ import { GetPluginStoreDataReturnType, GetPluginStoreDataServiceParamsType, PluginDetailServiceParamsType } from './types';
3
2
 
4
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[]>>;
@@ -45,9 +45,6 @@ export interface ParentPluginDTO {
45
45
  type: PluginCreationType;
46
46
  icon: string;
47
47
  pluginVersions: PluginVersionsDTO;
48
- pluginIdentifier: string;
49
- }
50
- export interface MinParentPluginDTO extends Pick<ParentPluginDTO, 'id' | 'name' | 'icon'> {
51
48
  }
52
49
  export interface PluginDetailDTO {
53
50
  parentPlugins: ParentPluginDTO[];
@@ -69,11 +66,11 @@ export interface PluginDetailPayloadType extends Pick<PluginDetailServiceParamsT
69
66
  export interface PluginListFiltersType extends Pick<BaseFilterQueryParams<unknown>, 'searchKey'> {
70
67
  selectedTags: string[];
71
68
  }
72
- interface ParentPluginType extends Pick<ParentPluginDTO, 'id' | 'name' | 'description' | 'type' | 'icon' | 'pluginIdentifier'> {
69
+ interface ParentPluginType extends Pick<ParentPluginDTO, 'id' | 'name' | 'description' | 'type' | 'icon'> {
73
70
  latestVersionId: MinimalPluginVersionDataDTO['id'];
74
71
  pluginVersions: MinimalPluginVersionDataDTO[];
75
72
  }
76
- interface DetailedPluginVersionType extends Pick<MinimalPluginVersionDataDTO, 'id' | 'description' | 'name' | 'pluginVersion'>, Pick<DetailedPluginVersionDTO, 'tags' | 'isLatest' | 'inputVariables' | 'outputVariables' | 'updatedBy' | 'docLink'>, Pick<ParentPluginType, 'icon' | 'type' | 'pluginIdentifier'> {
73
+ interface DetailedPluginVersionType extends Pick<MinimalPluginVersionDataDTO, 'id' | 'description' | 'name' | 'pluginVersion'>, Pick<DetailedPluginVersionDTO, 'tags' | 'isLatest' | 'inputVariables' | 'outputVariables' | 'updatedBy' | 'docLink'>, Pick<ParentPluginType, 'icon' | 'type'> {
77
74
  parentPluginId: ParentPluginType['id'];
78
75
  }
79
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, optionListError, reloadOptionList, ...props }: SelectPickerProps) => JSX.Element;
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' | 'autoFocus' | 'onKeyDown'>, Required<Pick<SelectProps, 'classNamePrefix' | 'inputId' | 'name'>> {
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 true, 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 {};
@@ -34,4 +34,3 @@ export * from './Plugin';
34
34
  export * from './KeyValueTable';
35
35
  export * from './SelectPicker';
36
36
  export * from './DetectBottom';
37
- export * from './EditImageFormField';
@@ -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
  /**
358
383
  * Size variants for components
@@ -362,4 +387,3 @@ export declare enum ComponentSizeType {
362
387
  medium = "medium",
363
388
  large = "large"
364
389
  }
365
- export declare const POP_UP_MENU_MODAL_ID = "popup";
@@ -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,5 +28,3 @@ export declare const validateUniqueKeys: (keys: string[]) => {
29
28
  isValid: boolean;
30
29
  message: string;
31
30
  };
32
- export declare const validateSemanticVersioning: (version: string) => ValidationResponseType;
33
- export declare const validateDisplayName: (name: string) => ValidationResponseType;