@devtron-labs/devtron-fe-common-lib 0.0.53-beta-5 → 0.0.53-beta-6

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.
@@ -12,9 +12,9 @@ export declare const SourceTypeMap: {
12
12
  BranchRegex: string;
13
13
  };
14
14
  export declare function getUserRole(appName?: string): Promise<UserRole>;
15
- export declare function setImageTags(request: any, pipelineId: number, artifactId: number): Promise<ResponseType<any>>;
15
+ export declare function setImageTags(request: any, pipelineId: number, artifactId: number): Promise<ResponseType>;
16
16
  export declare const genericCDMaterialsService: (serviceType: CDMaterialServiceEnum, cdMaterialID: number, stage: DeploymentNodeType, signal: AbortSignal, queryParams?: CDMaterialServiceQueryParams) => Promise<CDMaterialResponseType>;
17
17
  export declare function extractImage(image: string): string;
18
18
  export declare function createGitCommitUrl(url: string, revision: string): string;
19
- export declare function fetchChartTemplateVersions(): Promise<ResponseType<any>>;
19
+ export declare function fetchChartTemplateVersions(): Promise<ResponseType>;
20
20
  export {};
@@ -1,8 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { DebouncedSearchProps } from './Types';
3
3
  /**
4
- * @deprecated Use `SearchBar` component instead.
5
- *
6
4
  * @param onSearch - Callback function to be called on search
7
5
  * @param Icon - (Optional) Icon to be shown before the input
8
6
  * @param iconClass - (Optional) Class for the icon
@@ -57,8 +57,4 @@ export declare const customStyles: {
57
57
  export declare const getFilteredChartVersions: (charts: any, selectedChartType: any) => any;
58
58
  export declare function getUnlockedJSON(json: any, jsonPathArray: any): any;
59
59
  export declare function getLockedJSON(json: any, jsonPathArray: string[]): any;
60
- /**
61
- * Returns a debounced variant of the function
62
- */
63
- export declare const debounce: (func: any, timeout?: number) => (this: any, ...args: any[]) => void;
64
60
  export {};
@@ -2,23 +2,10 @@ import React, { ReactNode, CSSProperties } from 'react';
2
2
  import { Placement } from 'tippy.js';
3
3
  import { ImageComment, ReleaseTag } from './ImageTags.Types';
4
4
  import { DockerConfigOverrideType, TaskErrorObj } from '.';
5
- /**
6
- * Generic response type object with support for overriding the result type
7
- *
8
- * @example Default usage:
9
- * ```ts
10
- * interface UserResponse extends ResponseType {}
11
- * ```
12
- *
13
- * @example Override the response type:
14
- * ```ts
15
- * interface UserResponse extends ResponseType<Record<string, string>> {}
16
- * ```
17
- */
18
- export interface ResponseType<T = any> {
5
+ export interface ResponseType {
19
6
  code: number;
20
7
  status: string;
21
- result?: T;
8
+ result?: any;
22
9
  errors?: any;
23
10
  }
24
11
  export interface APIOptions {
@@ -248,6 +235,8 @@ export interface CDMaterialType {
248
235
  registryType?: string;
249
236
  imagePath?: string;
250
237
  registryName?: string;
238
+ hasDuplicateImages?: boolean;
239
+ isSuperseded?: boolean;
251
240
  scanToolId?: number;
252
241
  appliedFiltersTimestamp?: string;
253
242
  appliedFilters?: FilterConditionsListType[];
@@ -26,7 +26,6 @@ export * from './Common.service';
26
26
  export * from './Checkbox';
27
27
  export { default as EmptyState } from './EmptyState/EmptyState';
28
28
  export { default as GenericEmptyState } from './EmptyState/GenericEmptyState';
29
- export * from './SearchBar';
30
29
  export { default as Toggle } from './Toggle/Toggle';
31
30
  export { default as ScanVulnerabilitiesTable } from './Security/ScanVulnerabilitiesTable';
32
31
  export { default as StyledRadioGroup } from './RadioGroup/RadioGroup';