@devtron-labs/devtron-fe-common-lib 0.6.2-beta-2 → 0.6.2-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.
@@ -1,4 +1,5 @@
1
1
  import { NodeType, Nodes } from '../../Shared/types';
2
+ import { RefObject } from 'react';
2
3
  export interface GVKType {
3
4
  Group: string;
4
5
  Version: string;
@@ -18,3 +19,26 @@ export interface K8SObjectBaseType {
18
19
  name: string;
19
20
  isExpanded: boolean;
20
21
  }
22
+ export interface BulkSelectionActionWidgetProps {
23
+ count: number;
24
+ handleOpenBulkDeleteModal: () => void;
25
+ handleClearBulkSelection: () => void;
26
+ handleOpenRestartWorkloadModal: () => void;
27
+ parentRef: RefObject<HTMLDivElement>;
28
+ showBulkRestartOption: boolean;
29
+ }
30
+ export interface BulkOperation {
31
+ name: string;
32
+ operation: (signal: AbortSignal, data?: unknown) => Promise<void>;
33
+ }
34
+ export type BulkOperationModalProps = {
35
+ operationType: 'restart' | 'delete';
36
+ clusterName: string;
37
+ operations: NonNullable<BulkOperation[]>;
38
+ handleModalClose: () => void;
39
+ resourceKind: string;
40
+ handleReloadDataAfterBulkOperation?: () => void;
41
+ hideResultsDrawer?: boolean;
42
+ shouldAllowForceOperation?: true;
43
+ };
44
+ export type BulkOperationModalState = BulkOperationModalProps['operationType'] | 'closed';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.6.2-beta-2",
3
+ "version": "0.6.2-beta-3",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",