@devtron-labs/devtron-fe-common-lib 0.6.2-beta-4 → 0.6.2-beta-5
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 +1 -1
- package/dist/Common/Constants.d.ts +1 -0
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +21 -22
- package/dist/Pages/ResourceBrowser/index.d.ts +1 -0
- package/dist/Pages/ResourceBrowser/service.d.ts +3 -0
- package/dist/Shared/API/APIQueuing.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/types.d.ts +5 -8
- package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.d.ts +1 -2
- package/dist/Shared/Components/Security/SecurityModal/config/index.d.ts +0 -1
- package/dist/Shared/Components/Security/SecurityModal/index.d.ts +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-BgsQnQlX.js → cssMode-D6cMdCcr.js} +1 -1
- package/dist/{freemarker2-djunybWy.js → freemarker2-BthsYAKa.js} +1 -1
- package/dist/{handlebars-D1nZIxCP.js → handlebars-dwjn3Wnn.js} +1 -1
- package/dist/{html-CZWdzgjJ.js → html-CVTjlMl4.js} +1 -1
- package/dist/{htmlMode-CkAfoM0D.js → htmlMode-C2nHRrJf.js} +1 -1
- package/dist/{index-P6obYGmI.js → index-BvHcN3iW.js} +2718 -2734
- package/dist/index.d.ts +0 -1
- package/dist/index.js +37 -37
- package/dist/{javascript-CcdzggLu.js → javascript-Cyg9CuqQ.js} +1 -1
- package/dist/{jsonMode-D5Jsd8Kl.js → jsonMode-CG9eoceV.js} +1 -1
- package/dist/{liquid-DoQANYNs.js → liquid-Do1hnqPh.js} +1 -1
- package/dist/{mdx-23wMxVhr.js → mdx-FXcumih9.js} +1 -1
- package/dist/{python-CeAiGgEk.js → python-mI3gg4SD.js} +1 -1
- package/dist/{razor-BHzb66BL.js → razor-BoLzqpT3.js} +1 -1
- package/dist/{tsMode-CkOeWpbm.js → tsMode-BBIuuNpq.js} +1 -1
- package/dist/{typescript-urm_SAaC.js → typescript-BN4PS7EM.js} +1 -1
- package/dist/{xml-CRIhopo1.js → xml-CyMqM47f.js} +1 -1
- package/dist/{yaml-CPkuFdfK.js → yaml-CWmoETA1.js} +1 -1
- package/package.json +1 -1
package/dist/Common/Api.d.ts
CHANGED
|
@@ -12,4 +12,4 @@ export declare const abortPreviousRequests: <T>(callback: () => Promise<T>, abor
|
|
|
12
12
|
/**
|
|
13
13
|
* Returns true if the error is due to a aborted request
|
|
14
14
|
*/
|
|
15
|
-
export declare const getIsRequestAborted: (error: any) =>
|
|
15
|
+
export declare const getIsRequestAborted: (error: any) => any;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { NodeType, Nodes } from '../../Shared/types';
|
|
2
|
-
import { RefObject } from 'react';
|
|
3
2
|
export interface GVKType {
|
|
4
3
|
Group: string;
|
|
5
4
|
Version: string;
|
|
@@ -19,26 +18,26 @@ export interface K8SObjectBaseType {
|
|
|
19
18
|
name: string;
|
|
20
19
|
isExpanded: boolean;
|
|
21
20
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
handleOpenRestartWorkloadModal: () => void;
|
|
27
|
-
parentRef: RefObject<HTMLDivElement>;
|
|
28
|
-
showBulkRestartOption: boolean;
|
|
21
|
+
interface K8sRequestResourceIdentifierType {
|
|
22
|
+
groupVersionKind: GVKType;
|
|
23
|
+
namespace?: string;
|
|
24
|
+
name?: string;
|
|
29
25
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
shouldAllowForceOperation?: true;
|
|
26
|
+
interface ResourceListPayloadK8sRequestType {
|
|
27
|
+
resourceIdentifier: K8sRequestResourceIdentifierType;
|
|
28
|
+
patch?: string;
|
|
29
|
+
forceDelete?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface K8sResourceListPayloadType {
|
|
32
|
+
clusterId: number;
|
|
33
|
+
filter?: string;
|
|
34
|
+
k8sRequest: ResourceListPayloadK8sRequestType;
|
|
35
|
+
}
|
|
36
|
+
export type K8sResourceDetailDataType = {
|
|
37
|
+
[key: string]: string | number | object;
|
|
43
38
|
};
|
|
44
|
-
export
|
|
39
|
+
export interface K8sResourceDetailType {
|
|
40
|
+
headers: string[];
|
|
41
|
+
data: K8sResourceDetailDataType[];
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ResponseType } from '../../Common/Types';
|
|
2
|
+
import { K8sResourceDetailType, K8sResourceListPayloadType } from './ResourceBrowser.Types';
|
|
3
|
+
export declare const getK8sResourceList: (resourceListPayload: K8sResourceListPayloadType, signal?: AbortSignal) => Promise<ResponseType<K8sResourceDetailType>>;
|
|
@@ -6,5 +6,5 @@ import { ApiQueuingWithBatchResponseItem } from '../types';
|
|
|
6
6
|
* @param shouldRejectOnError If set to true, the promise will reject if any of the function calls rejects, i.e, acts like Promise.all else Promise.allSettled . Defaults to false.
|
|
7
7
|
* @returns A promise that resolves to a array of objects containing the status and value of the batch execution.
|
|
8
8
|
*/
|
|
9
|
-
declare const ApiQueuingWithBatch: <T>(functionCalls: any, shouldRejectOnError?: boolean, batchSize?: number) => Promise<ApiQueuingWithBatchResponseItem<T>[]>;
|
|
9
|
+
declare const ApiQueuingWithBatch: <T>(functionCalls: any, httpProtocol: string, shouldRejectOnError?: boolean, batchSize?: number) => Promise<ApiQueuingWithBatchResponseItem<T>[]>;
|
|
10
10
|
export default ApiQueuingWithBatch;
|
|
@@ -24,7 +24,6 @@ export interface UseBulkSelectionReturnType<T> extends GetBulkSelectionCheckboxV
|
|
|
24
24
|
handleBulkSelection: ({ action, data }: HandleBulkSelectionType<T>) => void;
|
|
25
25
|
isBulkSelectionApplied: boolean;
|
|
26
26
|
getSelectedIdentifiersCount: () => number;
|
|
27
|
-
setIdentifiers: React.Dispatch<React.SetStateAction<T>>;
|
|
28
27
|
}
|
|
29
28
|
export interface BulkSelectionProps {
|
|
30
29
|
showPagination: boolean;
|
|
@@ -46,15 +45,13 @@ export declare enum SelectAllDialogStatus {
|
|
|
46
45
|
export type BulkSelectionIdentifiersType<T> = Record<string | number, T>;
|
|
47
46
|
export interface UseBulkSelectionProps<T> {
|
|
48
47
|
/**
|
|
49
|
-
*
|
|
48
|
+
* Response from API, assuming structure to be array of objects with key and values
|
|
49
|
+
* This will the given ids on current page
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
identifiers: T;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
54
|
-
* This will the given ids on current page.
|
|
55
|
-
*
|
|
56
|
-
* NOTE!: Please wrap this value with a useMemo since it goes into useEffect dependency
|
|
53
|
+
* Act as buffer between select all across pages and select all on page state
|
|
57
54
|
*/
|
|
58
|
-
|
|
55
|
+
getSelectAllDialogStatus: () => SelectAllDialogStatus;
|
|
59
56
|
children?: React.ReactNode;
|
|
60
57
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DetailViewDataType, ImageScan, SecurityModalStateType, TablePropsType,
|
|
2
|
-
export declare const getProgressingStateForStatus: (status: StatusType["status"]) => JSX.Element;
|
|
1
|
+
import { DetailViewDataType, ImageScan, SecurityModalStateType, TablePropsType, InfoCardPropsType, EmptyStateType, ApiResponseResultType, OpenDetailViewButtonProps } from '../types';
|
|
3
2
|
export declare const getImageScanTableData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], hidePolicy: boolean) => TablePropsType;
|
|
4
3
|
export declare const getImageScanInfoCardData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
|
5
4
|
export declare const getImageScanEmptyState: (data: ApiResponseResultType, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as SecurityModal } from './SecurityModal';
|
|
2
2
|
export { getSecurityScanSeveritiesCount, getTotalVulnerabilityCount, parseGetResourceScanDetailsResponse, parseExecutionDetailResponse, } from './utils';
|
|
3
3
|
export type { AppDetailsPayload, ExecutionDetailsPayload, ApiResponseResultType, SidebarPropsType, SidebarDataChildType, SidebarDataType, GetResourceScanDetailsPayloadType, GetResourceScanDetailsResponseType, } from './types';
|
|
4
|
-
export { SIDEBAR_DATA
|
|
4
|
+
export { SIDEBAR_DATA } from './config';
|
|
5
5
|
export { CATEGORY_LABELS } from './constants';
|
|
6
6
|
export { getExecutionDetails } from './service';
|