@devtron-labs/devtron-fe-common-lib 0.1.11-beta-2 → 0.1.11-beta-3

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 (52) hide show
  1. package/dist/Common/CodeEditor/types.d.ts +1 -0
  2. package/dist/Common/Constants.d.ts +0 -1
  3. package/dist/Common/Helper.d.ts +0 -4
  4. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +1 -1
  5. package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +1 -2
  6. package/dist/Common/RJSF/types.d.ts +0 -12
  7. package/dist/Common/RJSF/utils.d.ts +2 -2
  8. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  9. package/dist/Common/SearchBar/types.d.ts +1 -8
  10. package/dist/Common/Types.d.ts +1 -1
  11. package/dist/Common/index.d.ts +0 -1
  12. package/dist/Shared/Components/CICDHistory/constants.d.ts +0 -2
  13. package/dist/Shared/Components/CICDHistory/types.d.ts +0 -31
  14. package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -2
  15. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
  16. package/dist/Shared/Components/FeatureDescription/types.d.ts +2 -7
  17. package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -1
  18. package/dist/Shared/Components/FilterChips/types.d.ts +18 -6
  19. package/dist/Shared/Helpers.d.ts +0 -2
  20. package/dist/Shared/Hooks/index.d.ts +1 -0
  21. package/dist/Shared/Hooks/useGetResourceKindsOptions/index.d.ts +2 -0
  22. package/dist/Shared/Hooks/useGetResourceKindsOptions/service.d.ts +9 -0
  23. package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +31 -0
  24. package/dist/Shared/Hooks/useGetResourceKindsOptions/useGetResourceKindsOptions.d.ts +16 -0
  25. package/dist/Shared/Hooks/useGetResourceKindsOptions/utils.d.ts +4 -0
  26. package/dist/Shared/Services/common.service.d.ts +3 -2
  27. package/dist/Shared/Services/types.d.ts +15 -4
  28. package/dist/Shared/constants.d.ts +0 -1
  29. package/dist/Shared/types.d.ts +7 -1
  30. package/dist/assets/index.css +1 -1
  31. package/dist/{cssMode-84e6b682.js → cssMode-c3b49a22.js} +1 -1
  32. package/dist/{freemarker2-5485ed0f.js → freemarker2-a23b547d.js} +1 -1
  33. package/dist/{handlebars-aff35f10.js → handlebars-3ab70804.js} +1 -1
  34. package/dist/{html-2b7b4cb7.js → html-173d6f4b.js} +1 -1
  35. package/dist/{htmlMode-30b2f226.js → htmlMode-cd5b4e94.js} +1 -1
  36. package/dist/{index-33fb83a2.js → index-08e72af8.js} +29981 -32272
  37. package/dist/index.d.ts +0 -1
  38. package/dist/index.js +400 -406
  39. package/dist/{javascript-161708ae.js → javascript-7dfc1aae.js} +1 -1
  40. package/dist/{jsonMode-8a682c44.js → jsonMode-e4e3bb06.js} +1 -1
  41. package/dist/{liquid-bbce162d.js → liquid-35bd99b6.js} +1 -1
  42. package/dist/{mdx-0a8edcd5.js → mdx-20526694.js} +1 -1
  43. package/dist/{python-4afe1bde.js → python-1ffe9348.js} +1 -1
  44. package/dist/{razor-65877c61.js → razor-00e603a8.js} +1 -1
  45. package/dist/{tsMode-50cf3ae7.js → tsMode-83f263b7.js} +1 -1
  46. package/dist/{typescript-14d800cb.js → typescript-c9eff357.js} +1 -1
  47. package/dist/{xml-f651333e.js → xml-2b6d8024.js} +1 -1
  48. package/dist/{yaml-977928ac.js → yaml-3c4eb3e1.js} +1 -1
  49. package/package.json +2 -3
  50. package/dist/Common/SearchBar/utils.d.ts +0 -3
  51. package/dist/Common/Tippy.d.ts +0 -4
  52. package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +0 -4
@@ -20,6 +20,7 @@ export interface CodeEditorInterface {
20
20
  noParsing?: boolean;
21
21
  inline?: boolean;
22
22
  height?: number | string;
23
+ width?: number | string;
23
24
  shebang?: string | JSX.Element;
24
25
  diffView?: boolean;
25
26
  loading?: boolean;
@@ -9,7 +9,6 @@ export declare const DOCUMENTATION: {
9
9
  APP_TAGS: string;
10
10
  APP_OVERVIEW_TAGS: string;
11
11
  BLOB_STORAGE: string;
12
- GLOBAL_CONFIG_BUILD_INFRA: string;
13
12
  };
14
13
  export declare const PATTERNS: {
15
14
  KUBERNETES_KEY_PREFIX: RegExp;
@@ -1,5 +1,4 @@
1
1
  import { default as React, SyntheticEvent } from 'react';
2
- import { JSONPathOptions } from 'jsonpath-plus';
3
2
  import { AsyncOptions, UseSearchString } from './Types';
4
3
  import { scrollableInterface } from '../Shared';
5
4
 
@@ -95,9 +94,6 @@ export declare const getRegexMatchPositions: (string: string, regex: RegExp) =>
95
94
  * @returns set of substrings
96
95
  */
97
96
  export declare const powerSetOfSubstringsFromStart: (strings: string[], regex: RegExp) => string[];
98
- export declare const convertJSONPointerToJSONPath: (pointer: string) => string;
99
- export declare const flatMapOfJSONPaths: (paths: string[], json: object, resultType?: JSONPathOptions['resultType']) => string[];
100
- export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) => object;
101
97
  /**
102
98
  * Returns a debounced variant of the function
103
99
  */
@@ -1,3 +1,3 @@
1
1
  import { ArrayFieldTemplateItemType } from '@rjsf/utils';
2
2
 
3
- export declare const ArrayFieldItemTemplate: ({ children, disabled, hasToolbar, hasRemove, index, onDropIndexClick, readonly, registry, uiSchema, }: ArrayFieldTemplateItemType) => JSX.Element;
3
+ export declare const ArrayFieldItemTemplate: ({ children, className, disabled, hasToolbar, hasRemove, index, onDropIndexClick, readonly, registry, uiSchema, }: ArrayFieldTemplateItemType) => JSX.Element;
@@ -1,4 +1,3 @@
1
1
  import { ObjectFieldTemplateProps } from '@rjsf/utils';
2
- import { RJSFFormSchema } from '../types';
3
2
 
4
- export declare const ObjectFieldTemplate: (props: ObjectFieldTemplateProps<any, RJSFFormSchema, any>) => JSX.Element;
3
+ export declare const ObjectFieldTemplate: (props: ObjectFieldTemplateProps) => JSX.Element;
@@ -1,16 +1,4 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { default as RJSFForm } from '@rjsf/core';
3
- import { StrictRJSFSchema } from '@rjsf/utils';
4
3
 
5
4
  export type FormProps = Omit<ComponentProps<typeof RJSFForm>, 'validator'>;
6
- interface Hidden {
7
- condition: boolean;
8
- match: string;
9
- }
10
- export interface RJSFFormSchema extends StrictRJSFSchema {
11
- properties: {
12
- [key: string]: RJSFFormSchema;
13
- };
14
- hidden: Hidden;
15
- }
16
- export {};
@@ -1,5 +1,5 @@
1
1
  import { TranslatableString } from '@rjsf/utils';
2
- import { default as Tippy } from '../Tippy';
2
+ import { default as Tippy } from '@tippyjs/react';
3
3
 
4
4
  /**
5
5
  * Override for the TranslatableString from RJSF
@@ -25,4 +25,4 @@ export declare const getRedirectionProps: (url: string) => import('react').Ancho
25
25
  * Infers the type for json schema from value type
26
26
  */
27
27
  export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "array" | "null";
28
- export declare const getTippyWrapperWithContent: (content: any, placement?: React.ComponentProps<typeof Tippy>['placement'], truncateWidth?: number) => (children: any) => JSX.Element;
28
+ export declare const getTippyWrapperWithContent: (content: any, placement?: React.ComponentProps<typeof Tippy>['placement']) => (children: any) => JSX.Element;
@@ -34,5 +34,5 @@ import { SearchBarProps } from './types';
34
34
  * <SearchBar inputProps={{ placeholder: 'Enter search text' }} />
35
35
  * ```
36
36
  */
37
- declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, size, }: SearchBarProps) => JSX.Element;
37
+ declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
38
38
  export default SearchBar;
@@ -1,5 +1,4 @@
1
- import { ComponentSizeType } from '../../Shared/constants';
2
-
1
+ /// <reference types="react" />
3
2
  export interface SearchBarProps {
4
3
  /**
5
4
  * Initial search text
@@ -41,10 +40,4 @@ export interface SearchBarProps {
41
40
  * Hide the background and border of the search
42
41
  */
43
42
  noBackgroundAndBorder?: boolean;
44
- /**
45
- * Height of the searchbar
46
- *
47
- * @default 'ComponentSizeType.medium'
48
- */
49
- size?: ComponentSizeType.medium | ComponentSizeType.large;
50
43
  }
@@ -77,7 +77,7 @@ export interface TippyCustomizedProps {
77
77
  iconSize?: number;
78
78
  onImageLoadError?: (e: any) => void;
79
79
  onClose?: () => void;
80
- infoText?: React.ReactNode;
80
+ infoText?: string;
81
81
  showCloseButton?: boolean;
82
82
  arrow?: boolean;
83
83
  interactive?: boolean;
@@ -54,4 +54,3 @@ export * from './GenericDescription';
54
54
  export * from './SegmentedBarChart';
55
55
  export * from './CodeEditor';
56
56
  export * from './AppStatus';
57
- export { default as Tippy } from './Tippy';
@@ -43,5 +43,3 @@ export declare const DEFAULT_ENV = "devtron-ci";
43
43
  export declare const LOGS_RETRY_COUNT = 3;
44
44
  export declare const DEPLOYMENT_STATUS_QUERY_PARAM = "deployment-status";
45
45
  export declare const MANIFEST_STATUS_HEADERS: string[];
46
- export declare const LOGS_STAGE_IDENTIFIER = "STAGE_INFO";
47
- export declare const LOGS_STAGE_STREAM_SEPARATOR = "|";
@@ -584,37 +584,6 @@ export interface TriggerHistoryFilterCriteriaProps {
584
584
  releaseId: number;
585
585
  showCurrentReleaseDeployments: boolean;
586
586
  }
587
- export declare enum StageStatusType {
588
- SUCCESS = "Success",
589
- FAILURE = "Failure",
590
- /**
591
- * Not given in API response
592
- */
593
- PROGRESSING = "Progressing"
594
- }
595
- export interface StageInfoDTO {
596
- stage: string;
597
- startTime: string;
598
- endTime?: string;
599
- status?: StageStatusType;
600
- }
601
- export interface StageDetailType extends Pick<StageInfoDTO, 'stage' | 'startTime' | 'endTime' | 'status'> {
602
- logs: string[];
603
- isOpen: boolean;
604
- }
605
- export interface LogStageAccordionProps extends StageDetailType {
606
- handleStageClose: (index: number) => void;
607
- handleStageOpen: (index: number) => void;
608
- stageIndex: number;
609
- /**
610
- * A stage is loading if it is last in current stage list and event is not closed
611
- */
612
- isLoading: boolean;
613
- }
614
- export interface CreateMarkupReturnType {
615
- __html: string;
616
- isSearchKeyPresent: boolean;
617
- }
618
587
  export type TriggerHistoryFilterCriteriaType = `${string}|${string}|${string}`[];
619
588
  export declare const terminalStatus: Set<string>;
620
589
  export declare const statusSet: Set<string>;
@@ -1,7 +1,6 @@
1
- import { TriggerHistoryFilterCriteriaProps, DeploymentHistoryResultObject, TriggerHistoryFilterCriteriaType, StageStatusType } from './types';
1
+ import { TriggerHistoryFilterCriteriaProps, DeploymentHistoryResultObject, TriggerHistoryFilterCriteriaType } from './types';
2
2
 
3
3
  export declare const getTriggerHistoryFilterCriteria: ({ appId, envId, releaseId, showCurrentReleaseDeployments, }: TriggerHistoryFilterCriteriaProps) => TriggerHistoryFilterCriteriaType;
4
4
  export declare const getParsedTriggerHistory: (result: any) => DeploymentHistoryResultObject;
5
5
  export declare const buildHoverHtmlForWebhook: (eventName: any, condition: any, selectors: any) => JSX.Element;
6
6
  export declare const renderIcon: (iconState: string) => JSX.Element;
7
- export declare const getStageStatusIcon: (status: StageStatusType) => JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { DescriptorProps } from './types';
2
2
 
3
- declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, }: DescriptorProps) => JSX.Element;
3
+ declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, }: DescriptorProps) => JSX.Element;
4
4
  export default FeatureTitleWithInfo;
@@ -1,10 +1,9 @@
1
- import { default as React, ReactNode } from 'react';
2
1
  import { ImageType } from '../../../Common';
3
2
  import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
4
3
 
5
4
  export interface FeatureDescriptionModalProps {
6
5
  title: string;
7
- renderDescriptionContent?: () => ReactNode;
6
+ renderDescriptionContent?: () => JSX.Element;
8
7
  closeModalText?: string;
9
8
  docLink?: string;
10
9
  closeModal?: () => void;
@@ -13,12 +12,8 @@ export interface FeatureDescriptionModalProps {
13
12
  imageStyles?: React.CSSProperties;
14
13
  }
15
14
  export interface DescriptorProps extends FeatureDescriptionModalProps {
16
- breadCrumbs?: Breadcrumb[];
15
+ breadCrumbs: Breadcrumb[];
17
16
  additionalContainerClasses?: string;
18
17
  iconClassName?: string;
19
18
  children?: React.ReactNode;
20
- showInfoIconTippy?: boolean;
21
- docLinkText?: string;
22
- dataTestId?: string;
23
- additionalContent?: ReactNode;
24
19
  }
@@ -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, }: FilterChipsProps<T>) => JSX.Element;
6
+ declare const FilterChips: <T = Record<string, unknown>>({ filterConfig, clearFilters, onRemoveFilter, getFormattedLabel, getFormattedValue, className, clearButtonClassName, showClearAndRemove, }: FilterChipsProps<T>) => JSX.Element;
7
7
  export default FilterChips;
@@ -21,12 +21,28 @@ 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;
24
25
  }
25
- export interface FilterChipsProps<T = Record<string, unknown>> extends Pick<FilterChipProps, 'getFormattedLabel' | 'getFormattedValue'> {
26
+ export type FilterChipsProps<T = Record<string, unknown>> = Pick<FilterChipProps, 'getFormattedLabel' | 'getFormattedValue'> & {
26
27
  /**
27
28
  * Current filter configuration
28
29
  */
29
30
  filterConfig: T;
31
+ /**
32
+ * Class name for the container
33
+ */
34
+ className?: string;
35
+ } & ({
36
+ /**
37
+ * If false, anything related to removing filters is not shown
38
+ * @default 'true'
39
+ */
40
+ showClearAndRemove: false;
41
+ clearFilters?: never;
42
+ onRemoveFilter?: never;
43
+ clearButtonClassName?: never;
44
+ } | {
45
+ showClearAndRemove?: true;
30
46
  /**
31
47
  * Callback handler for removing the filters
32
48
  */
@@ -35,12 +51,8 @@ export interface FilterChipsProps<T = Record<string, unknown>> extends Pick<Filt
35
51
  * Handler for removing a applied filter
36
52
  */
37
53
  onRemoveFilter: (filterConfig: T) => void;
38
- /**
39
- * Class name for the container
40
- */
41
- className?: string;
42
54
  /**
43
55
  * Class name for the clear filter button
44
56
  */
45
57
  clearButtonClassName?: string;
46
- }
58
+ });
@@ -32,6 +32,4 @@ export declare const renderValidInputButtonTippy: (children: ReactElement) => JS
32
32
  export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
33
33
  export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
34
34
  export declare const decode: (data: any, isEncoded?: boolean) => {};
35
- export declare const isTimeStringAvailable: (time: string) => boolean;
36
- export declare const getTimeDifference: (startTime: string, endTime: string) => string;
37
35
  export {};
@@ -1 +1,2 @@
1
1
  export * from './UsePrompt';
2
+ export * from './useGetResourceKindsOptions';
@@ -0,0 +1,2 @@
1
+ export { default as useGetResourceKindsOptions } from './useGetResourceKindsOptions';
2
+ export type { UseGetResourceKindsOptionsProps, UseGetResourceKindOptionsReturnType } from './types';
@@ -0,0 +1,9 @@
1
+ import { Teams } from '../../../Common/Types';
2
+ import { ClusterType } from '../../Services';
3
+ import { EnvironmentType } from '../../types';
4
+ import { AppsGroupedByProjectsType } from './types';
5
+
6
+ export declare const getAppOptionsGroupedByProjects: () => Promise<AppsGroupedByProjectsType>;
7
+ export declare const getProjectOptions: () => Promise<Pick<Teams, 'id' | 'name'>[]>;
8
+ export declare const getClusterOptions: () => Promise<ClusterType[]>;
9
+ export declare const getEnvironmentOptions: () => Promise<EnvironmentType[]>;
@@ -0,0 +1,31 @@
1
+ import { ResourceKindType } from '../../types';
2
+ import { ServerErrors } from '../../../Common/ServerError';
3
+ import { getAppOptionsGroupedByProjects, getClusterOptions, getEnvironmentOptions, getProjectOptions } from './service';
4
+
5
+ export interface AppType {
6
+ name: string;
7
+ }
8
+ export type AppsGroupedByProjectsType = {
9
+ projectId: number;
10
+ projectName: string;
11
+ appList: AppType[];
12
+ }[];
13
+ export interface ClusterDTO {
14
+ id: number;
15
+ cluster_name: string;
16
+ isVirtualCluster: boolean;
17
+ }
18
+ export interface UseGetResourceKindsOptionsProps {
19
+ resourcesToFetch: Extract<ResourceKindType, ResourceKindType.devtronApplication | ResourceKindType.project | ResourceKindType.cluster | ResourceKindType.environment>[];
20
+ }
21
+ export interface UseGetResourceKindOptionsReturnType {
22
+ isResourcesOptionsLoading: boolean;
23
+ resourcesOptionsMap: {
24
+ [ResourceKindType.devtronApplication]: Awaited<ReturnType<typeof getAppOptionsGroupedByProjects>>;
25
+ [ResourceKindType.project]: Awaited<ReturnType<typeof getProjectOptions>>;
26
+ [ResourceKindType.cluster]: Awaited<ReturnType<typeof getClusterOptions>>;
27
+ [ResourceKindType.environment]: Awaited<ReturnType<typeof getEnvironmentOptions>>;
28
+ };
29
+ resourcesOptionsError: ServerErrors;
30
+ refetchResourcesOptions: () => void;
31
+ }
@@ -0,0 +1,16 @@
1
+ import { UseGetResourceKindOptionsReturnType, UseGetResourceKindsOptionsProps } from './types';
2
+
3
+ /**
4
+ * Generic hook to fetch the options list for the supported resource kinds.
5
+ *
6
+ * Note: no call would be made for empty resource kind list
7
+ *
8
+ * @example Usage
9
+ * ```tsx
10
+ * const data = useGetResourceKindsOptions({
11
+ * resourcesToFetch: [ResourceKindType.devtronApplication, ResourceKindType.environment]
12
+ * })
13
+ * ```
14
+ */
15
+ declare const useGetResourceKindsOptions: ({ resourcesToFetch, }: UseGetResourceKindsOptionsProps) => UseGetResourceKindOptionsReturnType;
16
+ export default useGetResourceKindsOptions;
@@ -0,0 +1,4 @@
1
+ import { ResourceKindType } from '../../types';
2
+ import { UseGetResourceKindsOptionsProps } from './types';
3
+
4
+ export declare const getResourcesToFetchMap: (resourcesToFetch: UseGetResourceKindsOptionsProps['resourcesToFetch']) => Record<ResourceKindType.devtronApplication | ResourceKindType.cluster | ResourceKindType.environment | ResourceKindType.project, boolean>;
@@ -1,3 +1,4 @@
1
- import { GetResourceApiUrlProps } from './types';
1
+ import { GetPolicyApiUrlProps, GetResourceApiUrlProps } from './types';
2
2
 
3
- export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, queryParams }: GetResourceApiUrlProps<T>) => string;
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;
@@ -1,5 +1,5 @@
1
1
  import { getUrlWithSearchParams } from '../../Common';
2
- import { ResourceKindType, ResourceVersionType } from '../types';
2
+ import { PolicyKindType, ResourceKindType, ResourceVersionType } from '../types';
3
3
 
4
4
  export interface ClusterType {
5
5
  id: number;
@@ -9,9 +9,20 @@ export interface ClusterType {
9
9
  */
10
10
  isVirtual: boolean;
11
11
  }
12
- export interface GetResourceApiUrlProps<T> {
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> {
13
18
  baseUrl: string;
14
- kind: ResourceKindType;
15
- version: ResourceVersionType;
19
+ kind: K;
20
+ version: P;
21
+ suffix?: string;
16
22
  queryParams?: T extends Parameters<typeof getUrlWithSearchParams>[1] ? T : never;
17
23
  }
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 {};
@@ -353,7 +353,6 @@ export declare enum K8sResourcePayloadAppType {
353
353
  HELM_APP = 1,
354
354
  EXTERNAL_ARGO_APP = 2
355
355
  }
356
- export declare const ANSI_UP_REGEX: RegExp;
357
356
  /**
358
357
  * Size variants for components
359
358
  */
@@ -354,15 +354,21 @@ export declare enum ResourceKindType {
354
354
  tenant = "tenant",
355
355
  installation = "installation",
356
356
  environment = "environment",
357
- cdPipeline = "cd-pipeline"
357
+ cdPipeline = "cd-pipeline",
358
+ project = "project"
358
359
  }
359
360
  /**
360
361
  * Versions support for the resources on BE
362
+ *
363
+ * TODO: Rename to ApiVersionType
361
364
  */
362
365
  export declare enum ResourceVersionType {
363
366
  v1 = "v1",
364
367
  alpha1 = "alpha1"
365
368
  }
369
+ export declare enum PolicyKindType {
370
+ lockConfiguration = "lock-configuration"
371
+ }
366
372
  export interface LastExecutionResultType {
367
373
  lastExecution: string;
368
374
  severityCount: {