@devtron-labs/devtron-fe-common-lib 0.1.16-beta-6 → 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 (35) hide show
  1. package/dist/Common/AppStatus/constants.d.ts +5 -0
  2. package/dist/Common/Constants.d.ts +0 -2
  3. package/dist/Common/Types.d.ts +2 -1
  4. package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -1
  5. package/dist/Shared/Components/FilterChips/types.d.ts +6 -18
  6. package/dist/Shared/Hooks/index.d.ts +0 -1
  7. package/dist/Shared/Services/common.service.d.ts +2 -3
  8. package/dist/Shared/Services/types.d.ts +4 -15
  9. package/dist/Shared/constants.d.ts +26 -10
  10. package/dist/Shared/types.d.ts +10 -8
  11. package/dist/{cssMode-3e6ec700.js → cssMode-058ab96c.js} +1 -1
  12. package/dist/{freemarker2-5b5ee393.js → freemarker2-64197048.js} +1 -1
  13. package/dist/{handlebars-bf398b6d.js → handlebars-90c1751f.js} +1 -1
  14. package/dist/{html-b35def4f.js → html-c30667e4.js} +1 -1
  15. package/dist/{htmlMode-48e61b21.js → htmlMode-7a8b50c7.js} +1 -1
  16. package/dist/{index-109adc1e.js → index-e2376136.js} +18832 -18903
  17. package/dist/index.d.ts +2 -1
  18. package/dist/index.js +431 -434
  19. package/dist/{javascript-27a2b43d.js → javascript-df1177dd.js} +1 -1
  20. package/dist/{jsonMode-950b6194.js → jsonMode-eb5f0a08.js} +1 -1
  21. package/dist/{liquid-c64aed12.js → liquid-4d1dbabc.js} +1 -1
  22. package/dist/{mdx-479da7c4.js → mdx-a79fb1a5.js} +1 -1
  23. package/dist/{python-7b9f7243.js → python-d2ee4285.js} +1 -1
  24. package/dist/{razor-7aeb2aac.js → razor-4a83f7e4.js} +1 -1
  25. package/dist/{tsMode-43b9c3bb.js → tsMode-6ddb6fc9.js} +1 -1
  26. package/dist/{typescript-1166a256.js → typescript-5844ed4e.js} +1 -1
  27. package/dist/{xml-8a093524.js → xml-bd63fabc.js} +1 -1
  28. package/dist/{yaml-0ad40107.js → yaml-111cdabf.js} +1 -1
  29. package/package.json +1 -1
  30. package/dist/Shared/Components/Header/HeaderWithCreateButton/constants.d.ts +0 -22
  31. package/dist/Shared/Hooks/useGetResourceKindsOptions/index.d.ts +0 -2
  32. package/dist/Shared/Hooks/useGetResourceKindsOptions/service.d.ts +0 -9
  33. package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +0 -31
  34. package/dist/Shared/Hooks/useGetResourceKindsOptions/useGetResourceKindsOptions.d.ts +0 -16
  35. package/dist/Shared/Hooks/useGetResourceKindsOptions/utils.d.ts +0 -4
@@ -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;
@@ -75,8 +75,6 @@ export declare const ROUTES: {
75
75
  CONFIG_CD_PIPELINE: string;
76
76
  MODULE_CONFIGURED: string;
77
77
  RESOURCE_HISTORY_DEPLOYMENT: string;
78
- APP_LIST_MIN: string;
79
- CLUSTER_LIST_MIN: string;
80
78
  PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
81
79
  PLUGIN_GLOBAL_LIST_V2: string;
82
80
  PLUGIN_GLOBAL_LIST_TAGS: string;
@@ -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;
@@ -3,5 +3,5 @@ import { FilterChipsProps } from './types';
3
3
  /**
4
4
  * Component for rendering the applied filter chips
5
5
  */
6
- declare const FilterChips: <T = Record<string, unknown>>({ filterConfig, clearFilters, onRemoveFilter, getFormattedLabel, getFormattedValue, className, clearButtonClassName, showClearAndRemove, shouldHideLabel, }: FilterChipsProps<T>) => JSX.Element;
6
+ declare const FilterChips: <T = Record<string, unknown>>({ filterConfig, clearFilters, onRemoveFilter, getFormattedLabel, getFormattedValue, className, clearButtonClassName, shouldHideLabel, }: FilterChipsProps<T>) => JSX.Element;
7
7
  export default FilterChips;
@@ -21,33 +21,17 @@ export interface FilterChipProps {
21
21
  * If passed, the label will be formatted accordingly
22
22
  */
23
23
  getFormattedValue?: (filterKey: string, filterValue: unknown) => ReactNode;
24
- showRemoveIcon: boolean;
25
24
  /**
26
25
  * If true, would hide the label
27
26
  * @default false
28
27
  */
29
28
  shouldHideLabel?: boolean;
30
29
  }
31
- export type FilterChipsProps<T = Record<string, unknown>> = Pick<FilterChipProps, 'getFormattedLabel' | 'getFormattedValue' | 'shouldHideLabel'> & {
30
+ export interface FilterChipsProps<T = Record<string, unknown>> extends Pick<FilterChipProps, 'getFormattedLabel' | 'getFormattedValue' | 'shouldHideLabel'> {
32
31
  /**
33
32
  * Current filter configuration
34
33
  */
35
34
  filterConfig: T;
36
- /**
37
- * Class name for the container
38
- */
39
- className?: string;
40
- } & ({
41
- /**
42
- * If false, anything related to removing filters is not shown
43
- * @default 'true'
44
- */
45
- showClearAndRemove: false;
46
- clearFilters?: never;
47
- onRemoveFilter?: never;
48
- clearButtonClassName?: never;
49
- } | {
50
- showClearAndRemove?: true;
51
35
  /**
52
36
  * Callback handler for removing the filters
53
37
  */
@@ -56,8 +40,12 @@ export type FilterChipsProps<T = Record<string, unknown>> = Pick<FilterChipProps
56
40
  * Handler for removing a applied filter
57
41
  */
58
42
  onRemoveFilter: (filterConfig: T) => void;
43
+ /**
44
+ * Class name for the container
45
+ */
46
+ className?: string;
59
47
  /**
60
48
  * Class name for the clear filter button
61
49
  */
62
50
  clearButtonClassName?: string;
63
- });
51
+ }
@@ -1,3 +1,2 @@
1
1
  export * from './UsePrompt';
2
- export * from './useGetResourceKindsOptions';
3
2
  export * from './UseDownload';
@@ -1,4 +1,3 @@
1
- import { GetPolicyApiUrlProps, GetResourceApiUrlProps } from './types';
1
+ import { GetResourceApiUrlProps } from './types';
2
2
 
3
- export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, queryParams }: GetResourceApiUrlProps<T>) => string;
4
- export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
3
+ export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, queryParams }: GetResourceApiUrlProps<T>) => string;
@@ -1,5 +1,5 @@
1
1
  import { getUrlWithSearchParams } from '../../Common';
2
- import { PolicyKindType, ResourceKindType, ResourceVersionType } from '../types';
2
+ import { ResourceKindType, ResourceVersionType } from '../types';
3
3
 
4
4
  export interface ClusterType {
5
5
  id: number;
@@ -9,20 +9,9 @@ export interface ClusterType {
9
9
  */
10
10
  isVirtual: boolean;
11
11
  }
12
- /**
13
- * T => Type of query params
14
- * K => Type of kind
15
- * P => Type of version
16
- */
17
- interface BaseGetApiUrlProps<T, K extends ResourceKindType | PolicyKindType, P extends ResourceVersionType> {
12
+ export interface GetResourceApiUrlProps<T> {
18
13
  baseUrl: string;
19
- kind: K;
20
- version: P;
21
- suffix?: string;
14
+ kind: ResourceKindType;
15
+ version: ResourceVersionType;
22
16
  queryParams?: T extends Parameters<typeof getUrlWithSearchParams>[1] ? T : never;
23
17
  }
24
- export interface GetResourceApiUrlProps<T> extends BaseGetApiUrlProps<T, ResourceKindType, ResourceVersionType> {
25
- }
26
- export interface GetPolicyApiUrlProps<T> extends Omit<BaseGetApiUrlProps<T, PolicyKindType, ResourceVersionType>, 'baseUrl'> {
27
- }
28
- 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
  /**
358
383
  * Size variants for components
@@ -362,12 +387,3 @@ export declare enum ComponentSizeType {
362
387
  medium = "medium",
363
388
  large = "large"
364
389
  }
365
- /**
366
- * Identifiers for grouped / all resources
367
- */
368
- export declare enum SelectAllGroupedResourceIdentifiers {
369
- allProjects = "-1",
370
- allExistingAndFutureNonProdEnvironments = "-1",
371
- allExistingAndFutureProdEnvironments = "-2",
372
- allExistingAndFutureEnvironments = "-3"
373
- }
@@ -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",
@@ -360,21 +368,15 @@ export declare enum ResourceKindType {
360
368
  tenant = "tenant",
361
369
  installation = "installation",
362
370
  environment = "environment",
363
- cdPipeline = "cd-pipeline",
364
- project = "project"
371
+ cdPipeline = "cd-pipeline"
365
372
  }
366
373
  /**
367
374
  * Versions support for the resources on BE
368
- *
369
- * TODO: Rename to ApiVersionType
370
375
  */
371
376
  export declare enum ResourceVersionType {
372
377
  v1 = "v1",
373
378
  alpha1 = "alpha1"
374
379
  }
375
- export declare enum PolicyKindType {
376
- lockConfiguration = "lock-configuration"
377
- }
378
380
  export interface LastExecutionResultType {
379
381
  lastExecution: string;
380
382
  severityCount: {
@@ -1,7 +1,7 @@
1
1
  var Le = Object.defineProperty;
2
2
  var je = (e, n, i) => n in e ? Le(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => (je(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { m as Ne } from "./index-109adc1e.js";
4
+ import { m as Ne } from "./index-e2376136.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as F } from "./index-109adc1e.js";
1
+ import { m as F } from "./index-e2376136.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as i } from "./index-109adc1e.js";
1
+ import { m as i } from "./index-e2376136.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as d } from "./index-109adc1e.js";
1
+ import { m as d } from "./index-e2376136.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,7 +1,7 @@
1
1
  var $e = Object.defineProperty;
2
2
  var qe = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => (qe(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { m as Qe } from "./index-109adc1e.js";
4
+ import { m as Qe } from "./index-e2376136.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)