@prorobotech/openapi-k8s-toolkit 1.1.0-alpha.9 → 1.2.0-alpha.10

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 (95) hide show
  1. package/README.md +119 -0
  2. package/dist/openapi-k8s-toolkit.es.js +13172 -12249
  3. package/dist/openapi-k8s-toolkit.es.js.map +1 -1
  4. package/dist/openapi-k8s-toolkit.umd.js +13182 -12246
  5. package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
  6. package/dist/types/api/bff/scopes/checkScopes.d.ts +6 -6
  7. package/dist/types/api/bff/scopes/filterScopes.d.ts +4 -4
  8. package/dist/types/api/bff/search/getKinds.d.ts +2 -2
  9. package/dist/types/api/bff/swagger/getSwagger.d.ts +2 -2
  10. package/dist/types/api/forms.d.ts +4 -0
  11. package/dist/types/api/getApiResource.d.ts +8 -8
  12. package/dist/types/api/getApiResourceTypes.d.ts +4 -4
  13. package/dist/types/api/getBuiltinResource.d.ts +8 -8
  14. package/dist/types/api/getBuiltinResourceTypes.d.ts +2 -2
  15. package/dist/types/api/getCrdData.d.ts +2 -2
  16. package/dist/types/api/getCrdResource.d.ts +5 -5
  17. package/dist/types/api/permissions.d.ts +4 -4
  18. package/dist/types/components/molecules/BlackholeForm/index.d.ts +0 -1
  19. package/dist/types/components/molecules/BlackholeForm/molecules/index.d.ts +0 -1
  20. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts +3 -3
  21. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormProvider/BlackholeFormProvider.d.ts +3 -3
  22. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/EnrichedTable.d.ts +2 -1
  23. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/types.d.ts +2 -2
  24. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/utils.d.ts +4 -2
  25. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/EnrichedTableProvider.d.ts +2 -2
  26. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/utils.d.ts +1 -1
  27. package/dist/types/components/molecules/Events/Events.d.ts +2 -2
  28. package/dist/types/components/molecules/ManageableSidebar/organisms/ManageableSidebarProvider/ManageableSidebarProvider.d.ts +1 -0
  29. package/dist/types/components/molecules/ManageableSidebar/organisms/ManageableSidebarProvider/utils.d.ts +2 -1
  30. package/dist/types/components/molecules/MarketPlace/MarketPlace.d.ts +3 -3
  31. package/dist/types/components/molecules/MarketPlace/molecules/AddEditFormModal/AddEditFormModal.d.ts +3 -3
  32. package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/MarketplaceCard.d.ts +1 -1
  33. package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/utils.d.ts +9 -9
  34. package/dist/types/components/molecules/ProjectInfoCard/ProjectInfoCard.d.ts +3 -3
  35. package/dist/types/components/molecules/{BlackholeForm/molecules/YamlEditorSingleton → YamlEditorSingleton}/YamlEditorSingleton.d.ts +2 -2
  36. package/dist/types/components/molecules/index.d.ts +2 -1
  37. package/dist/types/components/organisms/DynamicComponents/molecules/ConverterBytes/ConverterBytes.d.ts +13 -0
  38. package/dist/types/components/organisms/DynamicComponents/molecules/ConverterCores/ConverterCores.d.ts +19 -0
  39. package/dist/types/components/organisms/DynamicComponents/molecules/ConverterCores/index.d.ts +1 -0
  40. package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/organsisms/RefsList/RefsList.d.ts +3 -2
  41. package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/organsisms/RefsList/molecules/RefElement/RefElement.d.ts +1 -0
  42. package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/MemoryChart.d.ts +6 -0
  43. package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/MemoryChartMulti.d.ts +6 -0
  44. package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/usePrometheusQueryRange.d.ts +7 -0
  45. package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/usePrometheusQueryRangeMulti.d.ts +7 -0
  46. package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/prometheus.d.ts +10 -0
  47. package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/prometheus.test.d.ts +1 -0
  48. package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/prometheusAdapter.d.ts +21 -0
  49. package/dist/types/components/organisms/DynamicComponents/molecules/Toggler/Toggler.d.ts +6 -0
  50. package/dist/types/components/organisms/DynamicComponents/molecules/Toggler/index.d.ts +1 -0
  51. package/dist/types/components/organisms/DynamicComponents/molecules/TogglerSegmented/TogglerSegmented.d.ts +6 -0
  52. package/dist/types/components/organisms/DynamicComponents/molecules/TogglerSegmented/index.d.ts +1 -0
  53. package/dist/types/components/organisms/DynamicComponents/molecules/index.d.ts +3 -0
  54. package/dist/types/components/organisms/DynamicComponents/molecules/utils.d.ts +2 -1
  55. package/dist/types/components/organisms/DynamicComponents/molecules/utils.test.d.ts +1 -0
  56. package/dist/types/components/organisms/DynamicComponents/types.d.ts +89 -20
  57. package/dist/types/hooks/useApiResource.d.ts +8 -8
  58. package/dist/types/hooks/useApisResourceTypes.d.ts +4 -4
  59. package/dist/types/hooks/useBuiltinResource.d.ts +8 -8
  60. package/dist/types/hooks/useBuiltinResourceTypes.d.ts +2 -2
  61. package/dist/types/hooks/useCrdData.d.ts +2 -2
  62. package/dist/types/hooks/useCrdResource.d.ts +5 -5
  63. package/dist/types/hooks/useK8sSmartResource/index.d.ts +4 -0
  64. package/dist/types/hooks/useK8sSmartResource/useK8sSmartResource.d.ts +29 -0
  65. package/dist/types/hooks/{useK8sSmartResource.d.ts → useK8sSmartResource/useK8sSmartResourceWithoutKinds.d.ts} +5 -4
  66. package/dist/types/hooks/useK8sSmartResource/useManyK8sSmartResource.d.ts +18 -0
  67. package/dist/types/hooks/useK8sSmartResource/useSmartResourceParams.d.ts +9 -0
  68. package/dist/types/hooks/useListThenWatch/useListWatch.d.ts +1 -0
  69. package/dist/types/hooks/usePermissions.d.ts +4 -4
  70. package/dist/types/hooks/useResourceScope/index.d.ts +1 -0
  71. package/dist/types/hooks/useResourceScope/useResourceScope.d.ts +12 -0
  72. package/dist/types/index.d.ts +2 -1
  73. package/dist/types/localTypes/bff/form.d.ts +5 -5
  74. package/dist/types/localTypes/bff/scopes.d.ts +6 -6
  75. package/dist/types/localTypes/bff/table.d.ts +4 -3
  76. package/dist/types/localTypes/factories/converterBytes.d.ts +10 -0
  77. package/dist/types/localTypes/factories/converterCores.d.ts +7 -0
  78. package/dist/types/localTypes/form.d.ts +2 -2
  79. package/dist/types/localTypes/marketplace.d.ts +1 -1
  80. package/dist/types/localTypes/navigations.d.ts +3 -0
  81. package/dist/types/localTypes/richTable.d.ts +4 -0
  82. package/dist/types/utils/converterBytes/converterBytes.d.ts +32 -0
  83. package/dist/types/utils/converterBytes/converterBytes.test.d.ts +1 -0
  84. package/dist/types/utils/converterBytes/index.d.ts +1 -0
  85. package/dist/types/utils/converterCores/converterCores.d.ts +45 -0
  86. package/dist/types/utils/converterCores/converterCores.test.d.ts +1 -0
  87. package/dist/types/utils/converterCores/index.d.ts +1 -0
  88. package/dist/types/utils/getGroupsByCategory/getGroupsByCategory.d.ts +2 -2
  89. package/dist/types/utils/index.d.ts +2 -0
  90. package/dist/types/utils/tableLocations/tableLocations.d.ts +5 -5
  91. package/package.json +2 -1
  92. package/dist/types/components/organisms/DynamicComponents/molecules/ConverterBytes/types.d.ts +0 -10
  93. package/dist/types/components/organisms/DynamicComponents/molecules/ConverterBytes/utils.d.ts +0 -15
  94. /package/dist/types/components/molecules/{BlackholeForm/molecules/YamlEditorSingleton → YamlEditorSingleton}/index.d.ts +0 -0
  95. /package/dist/types/components/molecules/{BlackholeForm/molecules/YamlEditorSingleton → YamlEditorSingleton}/styled.d.ts +0 -0
@@ -1,11 +1,11 @@
1
1
  import { TCheckIfApiInstanceNamespaceScopedRes, TCheckIfBuiltInInstanceNamespaceScopedRes } from '../../../localTypes/bff/scopes';
2
- export declare const checkIfApiInstanceNamespaceScoped: ({ typeName, apiGroup, apiVersion, clusterName, }: {
3
- typeName: string;
2
+ export declare const checkIfApiInstanceNamespaceScoped: ({ plural, apiGroup, apiVersion, cluster, }: {
3
+ plural: string;
4
4
  apiGroup: string;
5
5
  apiVersion: string;
6
- clusterName: string;
6
+ cluster: string;
7
7
  }) => Promise<TCheckIfApiInstanceNamespaceScopedRes>;
8
- export declare const checkIfBuiltInInstanceNamespaceScoped: ({ typeName, clusterName, }: {
9
- typeName: string;
10
- clusterName: string;
8
+ export declare const checkIfBuiltInInstanceNamespaceScoped: ({ plural, cluster, }: {
9
+ plural: string;
10
+ cluster: string;
11
11
  }) => Promise<TCheckIfBuiltInInstanceNamespaceScopedRes>;
@@ -1,6 +1,6 @@
1
1
  import { TFilterIfApiInstanceNamespaceScopedRes, TFilterIfBuiltInInstanceNamespaceScopedRes } from '../../../localTypes/bff/scopes';
2
2
  import { TApiGroupResourceTypeList, TBuiltinResourceTypeList } from '../../../localTypes/k8s';
3
- export declare const filterIfApiInstanceNamespaceScoped: ({ namespace, data, apiGroup, apiVersion, clusterName, }: {
3
+ export declare const filterIfApiInstanceNamespaceScoped: ({ cluster, namespace, apiGroup, apiVersion, data, }: {
4
4
  namespace?: string | undefined;
5
5
  data?: {
6
6
  apiVersion: string;
@@ -13,10 +13,10 @@ export declare const filterIfApiInstanceNamespaceScoped: ({ namespace, data, api
13
13
  } | undefined;
14
14
  apiGroup: string;
15
15
  apiVersion: string;
16
- clusterName: string;
16
+ cluster: string;
17
17
  }) => Promise<TFilterIfApiInstanceNamespaceScopedRes>;
18
- export declare const filterIfBuiltInInstanceNamespaceScoped: ({ namespace, data, clusterName, }: {
18
+ export declare const filterIfBuiltInInstanceNamespaceScoped: ({ cluster, namespace, data, }: {
19
+ cluster: string;
19
20
  namespace?: string | undefined;
20
21
  data?: TBuiltinResourceTypeList | undefined;
21
- clusterName: string;
22
22
  }) => Promise<TFilterIfBuiltInInstanceNamespaceScopedRes>;
@@ -1,4 +1,4 @@
1
1
  import { TKindIndex } from '../../../localTypes/bff/search';
2
- export declare const getKinds: ({ clusterName }: {
3
- clusterName: string;
2
+ export declare const getKinds: ({ cluster }: {
3
+ cluster: string;
4
4
  }) => Promise<TKindIndex>;
@@ -1,5 +1,5 @@
1
1
  import { AxiosResponse } from 'axios';
2
2
  import { TGetDerefedSwaggerRes } from '../../../localTypes/bff/swagger';
3
- export declare const getSwagger: ({ clusterName, }: {
4
- clusterName: string;
3
+ export declare const getSwagger: ({ cluster }: {
4
+ cluster: string;
5
5
  }) => Promise<AxiosResponse<TGetDerefedSwaggerRes>>;
@@ -15,3 +15,7 @@ export declare const patchEntryWithReplaceOp: <T>({ endpoint, pathToValue, body,
15
15
  pathToValue: string;
16
16
  body: unknown;
17
17
  }) => Promise<AxiosResponse<T, any, {}>>;
18
+ export declare const patchEntryWithDeleteOp: <T>({ endpoint, pathToValue, }: {
19
+ endpoint: string;
20
+ pathToValue: string;
21
+ }) => Promise<AxiosResponse<T, any, {}>>;
@@ -1,20 +1,20 @@
1
1
  import { AxiosResponse } from 'axios';
2
- export declare const getApiResources: <T>({ clusterName, namespace, apiGroup, apiVersion, typeName, specificName, labels, fields, limit, }: {
3
- clusterName: string;
2
+ export declare const getApiResources: <T>({ cluster, namespace, apiGroup, apiVersion, plural, name, labels, fields, limit, }: {
3
+ cluster: string;
4
4
  namespace?: string | undefined;
5
5
  apiGroup: string;
6
6
  apiVersion: string;
7
- typeName: string;
8
- specificName?: string | undefined;
7
+ plural: string;
8
+ name?: string | undefined;
9
9
  labels?: string[] | undefined;
10
10
  fields?: string[] | undefined;
11
11
  limit: string | null;
12
12
  }) => Promise<AxiosResponse<T, any, {}>>;
13
- export declare const getApiResourceSingle: <T>({ clusterName, namespace, apiGroup, apiVersion, typeName, entryName, }: {
14
- clusterName: string;
13
+ export declare const getApiResourceSingle: <T>({ cluster, namespace, apiGroup, apiVersion, plural, name, }: {
14
+ cluster: string;
15
15
  namespace?: string | undefined;
16
16
  apiGroup: string;
17
17
  apiVersion: string;
18
- typeName: string;
19
- entryName: string;
18
+ plural: string;
19
+ name: string;
20
20
  }) => Promise<AxiosResponse<T, any, {}>>;
@@ -1,9 +1,9 @@
1
1
  import { AxiosResponse } from 'axios';
2
- export declare const getApiResourceTypes: <T>({ clusterName }: {
3
- clusterName: string;
2
+ export declare const getApiResourceTypes: <T>({ cluster }: {
3
+ cluster: string;
4
4
  }) => Promise<AxiosResponse<T, any, {}>>;
5
- export declare const getApiResourceTypesByApiGroup: <T>({ clusterName, apiGroup, apiVersion, }: {
6
- clusterName: string;
5
+ export declare const getApiResourceTypesByApiGroup: <T>({ cluster, apiGroup, apiVersion, }: {
6
+ cluster: string;
7
7
  apiGroup: string;
8
8
  apiVersion: string;
9
9
  }) => Promise<AxiosResponse<T, any, {}>>;
@@ -1,16 +1,16 @@
1
1
  import { AxiosResponse } from 'axios';
2
- export declare const getBuiltinResources: <T>({ clusterName, namespace, typeName, specificName, labels, fields, limit, }: {
3
- clusterName: string;
2
+ export declare const getBuiltinResources: <T>({ cluster, namespace, plural, name, labels, fields, limit, }: {
3
+ cluster: string;
4
4
  namespace?: string | undefined;
5
- typeName: string;
6
- specificName?: string | undefined;
5
+ plural: string;
6
+ name?: string | undefined;
7
7
  labels?: string[] | undefined;
8
8
  fields?: string[] | undefined;
9
9
  limit: string | null;
10
10
  }) => Promise<AxiosResponse<T, any, {}>>;
11
- export declare const getBuiltinResourceSingle: <T>({ clusterName, namespace, typeName, entryName, }: {
12
- clusterName: string;
11
+ export declare const getBuiltinResourceSingle: <T>({ cluster, namespace, plural, name, }: {
12
+ cluster: string;
13
13
  namespace?: string | undefined;
14
- typeName: string;
15
- entryName: string;
14
+ plural: string;
15
+ name: string;
16
16
  }) => Promise<AxiosResponse<T, any, {}>>;
@@ -1,4 +1,4 @@
1
1
  import { AxiosResponse } from 'axios';
2
- export declare const getBuiltinResourceTypes: <T>({ clusterName, }: {
3
- clusterName: string;
2
+ export declare const getBuiltinResourceTypes: <T>({ cluster }: {
3
+ cluster: string;
4
4
  }) => Promise<AxiosResponse<T, any, {}>>;
@@ -1,6 +1,6 @@
1
1
  import { AxiosResponse } from 'axios';
2
- export declare const getCrdData: <T>({ clusterName, apiExtensionVersion, crdName, }: {
3
- clusterName: string;
2
+ export declare const getCrdData: <T>({ cluster, apiExtensionVersion, crdName, }: {
3
+ cluster: string;
4
4
  apiExtensionVersion: string;
5
5
  crdName: string;
6
6
  }) => Promise<AxiosResponse<T, any, {}>>;
@@ -1,16 +1,16 @@
1
1
  import { AxiosResponse } from 'axios';
2
- export declare const getCrdResources: <T>({ clusterName, namespace, apiGroup, apiVersion, crdName, }: {
3
- clusterName: string;
2
+ export declare const getCrdResources: <T>({ cluster, namespace, apiGroup, apiVersion, crdName, }: {
3
+ cluster: string;
4
4
  namespace?: string | undefined;
5
5
  apiGroup: string;
6
6
  apiVersion: string;
7
7
  crdName: string;
8
8
  }) => Promise<AxiosResponse<T, any, {}>>;
9
- export declare const getCrdResourceSingle: <T>({ clusterName, namespace, apiGroup, apiVersion, crdName, entryName, }: {
10
- clusterName: string;
9
+ export declare const getCrdResourceSingle: <T>({ cluster, namespace, apiGroup, apiVersion, crdName, name, }: {
10
+ cluster: string;
11
11
  namespace?: string | undefined;
12
12
  apiGroup: string;
13
13
  apiVersion: string;
14
14
  crdName: string;
15
- entryName: string;
15
+ name: string;
16
16
  }) => Promise<AxiosResponse<T, any, {}>>;
@@ -1,9 +1,9 @@
1
1
  import { AxiosResponse } from 'axios';
2
- export declare const checkPermission: ({ clusterName, body, }: {
3
- clusterName: string;
2
+ export declare const checkPermission: ({ cluster, body, }: {
3
+ cluster: string;
4
4
  body: {
5
- group?: string;
6
- resource: string;
5
+ apiGroup?: string;
6
+ plural: string;
7
7
  verb: 'get' | 'list' | 'watch' | 'create' | 'delete' | 'patch' | 'update';
8
8
  namespace?: string;
9
9
  name?: string;
@@ -1,3 +1,2 @@
1
1
  export { BlackholeFormProvider, BlackholeForm, getObjectFormItemsDraft } from './organisms';
2
2
  export type { TBlackholeFormProviderProps, TBlackholeFormProps } from './organisms';
3
- export { YamlEditorSingleton } from './molecules';
@@ -1,5 +1,4 @@
1
1
  export { YamlEditor } from './YamlEditor';
2
- export { YamlEditorSingleton } from './YamlEditorSingleton';
3
2
  export { FormListInput } from './FormListInput';
4
3
  export { FormRangeInput } from './FormRangeInput';
5
4
  export { FormNamespaceInput } from './FormNamespaceInput';
@@ -9,7 +9,7 @@ export type TBlackholeFormProps = {
9
9
  urlParams: TUrlParams;
10
10
  urlParamsForPermissions: {
11
11
  apiGroup?: string;
12
- typeName?: string;
12
+ plural?: string;
13
13
  };
14
14
  formsPrefills?: TFormPrefill;
15
15
  staticProperties: OpenAPIV2.SchemaObject['properties'];
@@ -24,8 +24,8 @@ export type TBlackholeFormProps = {
24
24
  isCreate?: boolean;
25
25
  type: 'builtin' | 'apis';
26
26
  apiGroupApiVersion: string;
27
- kindName: string;
28
- typeName: string;
27
+ kind: string;
28
+ plural: string;
29
29
  backlink?: string | null;
30
30
  designNewLayout?: boolean;
31
31
  designNewLayoutHeight?: number;
@@ -7,18 +7,18 @@ export type TBlackholeFormProviderProps = {
7
7
  urlParams: TUrlParams;
8
8
  urlParamsForPermissions: {
9
9
  apiGroup?: string;
10
- typeName?: string;
10
+ plural?: string;
11
11
  };
12
12
  data: {
13
13
  type: 'builtin';
14
- typeName: string;
14
+ plural: string;
15
15
  prefillValuesSchema?: TJSON;
16
16
  prefillValueNamespaceOnly?: string;
17
17
  } | {
18
18
  type: 'apis';
19
19
  apiGroup: string;
20
20
  apiVersion: string;
21
- typeName: string;
21
+ plural: string;
22
22
  prefillValuesSchema?: TJSON;
23
23
  prefillValueNamespaceOnly?: string;
24
24
  };
@@ -1,6 +1,6 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
2
  import { TableProps, TablePaginationConfig } from 'antd';
3
- import { TAdditionalPrinterColumnsColWidths, TAdditionalPrinterColumnsKeyTypeProps, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsUndefinedValues } from '../../../../../localTypes/richTable';
3
+ import { TAdditionalPrinterColumnsColWidths, TAdditionalPrinterColumnsKeyTypeProps, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsUndefinedValues, TAdditionalPrinterColumnsCustomSortersAndFilters } from '../../../../../localTypes/richTable';
4
4
  export type TEnrichedTableProps = {
5
5
  theme: 'light' | 'dark';
6
6
  baseprefix?: string;
@@ -14,6 +14,7 @@ export type TEnrichedTableProps = {
14
14
  additionalPrinterColumnsTrimLengths?: TAdditionalPrinterColumnsTrimLengths;
15
15
  additionalPrinterColumnsColWidths?: TAdditionalPrinterColumnsColWidths;
16
16
  additionalPrinterColumnsKeyTypeProps?: TAdditionalPrinterColumnsKeyTypeProps;
17
+ additionalPrinterColumnsCustomSortersAndFilters?: TAdditionalPrinterColumnsCustomSortersAndFilters;
17
18
  selectData?: {
18
19
  onChange: (selectedRowKeys: React.Key[], selectedRowsData: {
19
20
  name: string;
@@ -2,8 +2,8 @@ export type TInternalDataForControls = {
2
2
  cluster: string;
3
3
  pathPrefix: string;
4
4
  apiGroupAndVersion: string;
5
- typeName: string;
6
- entryName: string;
5
+ plural: string;
6
+ name: string;
7
7
  backlink: string;
8
8
  namespace?: string;
9
9
  syntheticProject?: string;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { NavigateFunction } from 'react-router-dom';
3
3
  import { TableProps } from 'antd';
4
- import { TAdditionalPrinterColumnsColWidths, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsUndefinedValues, TAdditionalPrinterColumnsKeyTypeProps } from '../../../../../localTypes/richTable';
4
+ import { TAdditionalPrinterColumnsColWidths, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsUndefinedValues, TAdditionalPrinterColumnsKeyTypeProps, TAdditionalPrinterColumnsCustomSortersAndFilters } from '../../../../../localTypes/richTable';
5
5
  import { TJSON } from '../../../../../localTypes/JSON';
6
6
  export declare const getCellRender: ({ value, record, possibleTrimLength, possibleUndefinedValue, possibleCustomTypeWithProps, theme, }: {
7
7
  value: TJSON;
@@ -14,13 +14,15 @@ export declare const getCellRender: ({ value, record, possibleTrimLength, possib
14
14
  } | undefined;
15
15
  theme: 'dark' | 'light';
16
16
  }) => JSX.Element;
17
- export declare const getEnrichedColumns: ({ columns, additionalPrinterColumnsUndefinedValues, additionalPrinterColumnsTrimLengths, additionalPrinterColumnsColWidths, additionalPrinterColumnsKeyTypeProps, theme, }: {
17
+ export declare const getEnrichedColumns: ({ columns, additionalPrinterColumnsUndefinedValues, additionalPrinterColumnsTrimLengths, additionalPrinterColumnsColWidths, additionalPrinterColumnsKeyTypeProps, additionalPrinterColumnsCustomSortersAndFilters, theme, getRowKey, }: {
18
18
  columns: TableProps['columns'];
19
19
  additionalPrinterColumnsUndefinedValues?: TAdditionalPrinterColumnsUndefinedValues | undefined;
20
20
  additionalPrinterColumnsTrimLengths?: TAdditionalPrinterColumnsTrimLengths | undefined;
21
21
  additionalPrinterColumnsColWidths?: TAdditionalPrinterColumnsColWidths | undefined;
22
22
  additionalPrinterColumnsKeyTypeProps?: TAdditionalPrinterColumnsKeyTypeProps | undefined;
23
+ additionalPrinterColumnsCustomSortersAndFilters?: TAdditionalPrinterColumnsCustomSortersAndFilters | undefined;
23
24
  theme: 'dark' | 'light';
25
+ getRowKey: (record: any) => React.Key;
24
26
  }) => TableProps['columns'] | undefined;
25
27
  export declare const getEnrichedColumnsWithControls: ({ enrichedColumns, navigate, baseprefix, editIcon, deleteIcon, }: {
26
28
  enrichedColumns: TableProps['columns'];
@@ -10,14 +10,14 @@ export type TEnrichedTableProviderProps = {
10
10
  dataItems: TJSON[];
11
11
  resourceSchema?: TJSON;
12
12
  k8sResource?: {
13
- resource: string;
13
+ plural: string;
14
14
  apiGroup?: string;
15
15
  apiVersion: string;
16
16
  };
17
17
  dataForControls?: {
18
18
  cluster: string;
19
19
  syntheticProject?: string;
20
- resource: string;
20
+ plural: string;
21
21
  apiGroup?: string;
22
22
  apiVersion: string;
23
23
  };
@@ -9,7 +9,7 @@ export declare const prepare: ({ dataItems, resourceSchema, dataForControls, add
9
9
  syntheticProject?: string | undefined;
10
10
  pathPrefix: string;
11
11
  apiVersion: string;
12
- typeName: string;
12
+ plural: string;
13
13
  backlink: string;
14
14
  deletePathPrefix: string;
15
15
  onDeleteHandle: (name: string, endpoint: string) => void;
@@ -11,7 +11,7 @@ export type TEventsProps = {
11
11
  baseFactoryNamespacedBuiltinKey: string;
12
12
  baseFactoryClusterSceopedBuiltinKey: string;
13
13
  baseNamespaceFactoryKey: string;
14
- baseNavigationPluralName: string;
15
- baseNavigationSpecificName: string;
14
+ baseNavigationPlural: string;
15
+ baseNavigationName: string;
16
16
  };
17
17
  export declare const Events: FC<TEventsProps>;
@@ -8,6 +8,7 @@ export type TManageableSidebarProviderProps = {
8
8
  replaceValues: Record<string, string | undefined>;
9
9
  pathname: string;
10
10
  idToCompare: string;
11
+ fallbackIdToCompare?: string;
11
12
  currentTags?: string[];
12
13
  hidden?: boolean;
13
14
  noMarginTop?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { ItemType } from 'antd/es/menu/interface';
2
2
  import { TLink } from './types';
3
- export declare const prepareDataForManageableSidebar: ({ data, replaceValues, pathname, idToCompare, currentTags, }: {
3
+ export declare const prepareDataForManageableSidebar: ({ data, replaceValues, pathname, idToCompare, fallbackIdToCompare, currentTags, }: {
4
4
  data: {
5
5
  id: string;
6
6
  menuItems: TLink[];
@@ -10,6 +10,7 @@ export declare const prepareDataForManageableSidebar: ({ data, replaceValues, pa
10
10
  replaceValues: Record<string, string | undefined>;
11
11
  pathname: string;
12
12
  idToCompare: string;
13
+ fallbackIdToCompare?: string | undefined;
13
14
  currentTags?: string[] | undefined;
14
15
  }) => {
15
16
  menuItems: ItemType[];
@@ -1,11 +1,11 @@
1
1
  import { FC } from 'react';
2
2
  export type TMarketPlaceProps = {
3
- clusterName?: string;
3
+ cluster: string;
4
4
  namespace?: string;
5
5
  baseApiGroup: string;
6
6
  baseApiVersion: string;
7
- mpResourceName: string;
8
- mpResourceKind: string;
7
+ marketplacePlural: string;
8
+ marketplaceKind: string;
9
9
  baseprefix?: string;
10
10
  standalone?: boolean;
11
11
  forceAddedMode?: boolean;
@@ -2,11 +2,11 @@ import { FC, Dispatch, SetStateAction } from 'react';
2
2
  import { AxiosError } from 'axios';
3
3
  import { TMarketPlacePanelResource } from '../../../../../localTypes/marketplace';
4
4
  type TAddEditFormModalProps = {
5
- clusterName?: string;
5
+ cluster: string;
6
6
  baseApiGroup: string;
7
7
  baseApiVersion: string;
8
- mpResourceName: string;
9
- mpResourceKind: string;
8
+ marketplacePlural: string;
9
+ marketplaceKind: string;
10
10
  isOpen: boolean | TMarketPlacePanelResource;
11
11
  setIsOpen: Dispatch<SetStateAction<boolean | TMarketPlacePanelResource>>;
12
12
  setError: Dispatch<SetStateAction<AxiosError | Error | undefined>>;
@@ -2,7 +2,7 @@ import { FC } from 'react';
2
2
  import { TMarketPlacePanel } from '../../../../../localTypes/marketplace';
3
3
  export type TMarketplaceCardProps = {
4
4
  baseprefix?: string;
5
- clusterName: string;
5
+ cluster: string;
6
6
  namespace: string;
7
7
  isEditMode?: boolean;
8
8
  onDeleteClick?: () => void;
@@ -1,28 +1,28 @@
1
- export declare const getPathToNav: ({ clusterName, namespace, type, pathToNav, typeName, apiGroup, apiVersion, baseprefix, }: {
2
- clusterName: string;
1
+ export declare const getPathToNav: ({ cluster, namespace, type, pathToNav, plural, apiGroup, apiVersion, baseprefix, }: {
2
+ cluster: string;
3
3
  namespace: string;
4
4
  type: string;
5
5
  pathToNav?: string | undefined;
6
- typeName?: string | undefined;
6
+ plural?: string | undefined;
7
7
  apiGroup?: string | undefined;
8
8
  apiVersion?: string | undefined;
9
9
  baseprefix?: string | undefined;
10
10
  }) => string;
11
- export declare const getCreatePathToNav: ({ clusterName, namespace, type, pathToNav, typeName, apiGroup, apiVersion, baseprefix, }: {
12
- clusterName: string;
11
+ export declare const getCreatePathToNav: ({ cluster, namespace, type, pathToNav, plural, apiGroup, apiVersion, baseprefix, }: {
12
+ cluster: string;
13
13
  namespace: string;
14
14
  type: string;
15
15
  pathToNav?: string | undefined;
16
- typeName?: string | undefined;
16
+ plural?: string | undefined;
17
17
  apiGroup?: string | undefined;
18
18
  apiVersion?: string | undefined;
19
19
  baseprefix?: string | undefined;
20
20
  }) => string;
21
- export declare const getListPath: ({ clusterName, namespace, type, typeName, apiGroup, apiVersion, }: {
22
- clusterName: string;
21
+ export declare const getListPath: ({ cluster, namespace, type, plural, apiGroup, apiVersion, }: {
22
+ cluster: string;
23
23
  namespace: string;
24
24
  type: string;
25
- typeName?: string | undefined;
25
+ plural?: string | undefined;
26
26
  apiGroup?: string | undefined;
27
27
  apiVersion?: string | undefined;
28
28
  }) => string | undefined;
@@ -1,13 +1,13 @@
1
1
  import { FC } from 'react';
2
2
  export type TProjectInfoCardProps = {
3
- clusterName?: string;
3
+ cluster: string;
4
4
  namespace?: string;
5
5
  baseApiGroup: string;
6
6
  baseApiVersion: string;
7
7
  baseProjectApiGroup: string;
8
8
  baseProjectVersion: string;
9
- projectResourceName: string;
10
- mpResourceName: string;
9
+ projectPlural: string;
10
+ marketplacePlural: string;
11
11
  baseprefix?: string;
12
12
  accessGroups: string[];
13
13
  showZeroResources?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { TJSON } from '../../../../../localTypes/JSON';
2
+ import { TJSON } from '../../../localTypes/JSON';
3
3
  type TYamlEditorSingletonProps = {
4
4
  theme: 'light' | 'dark';
5
5
  cluster: string;
@@ -8,7 +8,7 @@ type TYamlEditorSingletonProps = {
8
8
  isCreate?: boolean;
9
9
  type: 'builtin' | 'apis';
10
10
  apiGroupApiVersion: string;
11
- typeName: string;
11
+ plural: string;
12
12
  backlink?: string | null;
13
13
  designNewLayout?: boolean;
14
14
  designNewLayoutHeight?: number;
@@ -4,7 +4,8 @@ export { ManageableSidebarProvider, prepareDataForManageableSidebar, ManageableS
4
4
  export type { TManageableSidebarProviderProps, TManageableSidebarProps } from './ManageableSidebar';
5
5
  export { EnrichedTableProvider, EnrichedTable, getEnrichedColumns, getEnrichedColumnsWithControls, } from './EnrichedTable';
6
6
  export type { TEnrichedTableProviderProps, TEnrichedTableProps } from './EnrichedTable';
7
- export { BlackholeFormProvider, BlackholeForm, getObjectFormItemsDraft, YamlEditorSingleton } from './BlackholeForm';
7
+ export { YamlEditorSingleton } from './YamlEditorSingleton';
8
+ export { BlackholeFormProvider, BlackholeForm, getObjectFormItemsDraft } from './BlackholeForm';
8
9
  export type { TBlackholeFormProviderProps, TBlackholeFormProps } from './BlackholeForm';
9
10
  export { MarketPlace, MarketplaceCard } from './MarketPlace';
10
11
  export type { TMarketPlaceProps, TMarketplaceCardProps } from './MarketPlace';
@@ -1,5 +1,18 @@
1
1
  import { FC } from 'react';
2
2
  import { TDynamicComponentsAppTypeMap } from '../../types';
3
+ /**
4
+ * Idea (extended for arrays):
5
+ * 1. bytesValue may be:
6
+ * - "1234567890" → raw number (bytes)
7
+ * - "12312312Ki" → number + source unit
8
+ * - ["10GiB", "512Mi", "1024"] → array; all converted to bytes, summed, then formatted
9
+ * 2. Each entry is resolved via parseAll, then parsed with parseValueWithUnit.
10
+ * 3. Each value is converted to base bytes (respecting fromUnit override).
11
+ * 4. All bytes are summed into totalBytes.
12
+ * 5. Finally:
13
+ * - If there’s a target unit (unit or toUnit), we convert totalBytes to that.
14
+ * - If not, we auto-scale totalBytes with formatBytesAuto.
15
+ */
3
16
  export declare const ConverterBytes: FC<{
4
17
  data: TDynamicComponentsAppTypeMap['ConverterBytes'];
5
18
  }>;
@@ -0,0 +1,19 @@
1
+ import { FC } from 'react';
2
+ import { TDynamicComponentsAppTypeMap } from '../../types';
3
+ /**
4
+ * Idea (extended for arrays):
5
+ * 1. coresValue may be:
6
+ * - "0.5" → raw number (cores)
7
+ * - "500m" → number + source unit (millicores)
8
+ * - "2 vcpu" → number + alias for "core"
9
+ * - ["500m", "0.5 core", "1"] → array of such values
10
+ * 2. Each entry is resolved via parseAll, then parsed with parseCoresWithUnit.
11
+ * 3. Each value is converted to base "cores" (respecting fromUnit override).
12
+ * 4. All cores are summed into totalCores.
13
+ * 5. Finally:
14
+ * - If there’s a target unit (unit or toUnit), we convert totalCores to that.
15
+ * - Otherwise, we auto-scale totalCores with formatCoresAuto.
16
+ */
17
+ export declare const ConverterCores: FC<{
18
+ data: TDynamicComponentsAppTypeMap['ConverterCores'];
19
+ }>;
@@ -0,0 +1 @@
1
+ export { ConverterCores } from './ConverterCores';
@@ -10,12 +10,13 @@ export type TRefsListProps = {
10
10
  forcedRelatedValuePath?: string;
11
11
  rawObjectToFindLabel?: any;
12
12
  jsonPathToArrayOfRefs: string;
13
+ forcedNamespace?: string;
13
14
  baseFactoryNamespacedAPIKey: string;
14
15
  baseFactoryClusterSceopedAPIKey: string;
15
16
  baseFactoryNamespacedBuiltinKey: string;
16
17
  baseFactoryClusterSceopedBuiltinKey: string;
17
- baseNavigationPluralName: string;
18
- baseNavigationSpecificName: string;
18
+ baseNavigationPlural: string;
19
+ baseNavigationName: string;
19
20
  listFlexProps?: FlexProps;
20
21
  };
21
22
  export declare const RefsList: FC<TRefsListProps>;
@@ -6,6 +6,7 @@ type TRefElementProps = {
6
6
  forcedRelatedValuePath?: string;
7
7
  rawObjectToFindLabel?: any;
8
8
  jsonPathToArrayOfRefs: string;
9
+ forcedNamespace?: string;
9
10
  theme: 'dark' | 'light';
10
11
  baseprefix?: string;
11
12
  cluster: string;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ type MemoryChartProps = {
3
+ range?: string;
4
+ };
5
+ export declare const MemoryChart: FC<MemoryChartProps>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ type MemoryChartProps = {
3
+ range?: string;
4
+ };
5
+ export declare const MemoryChartMulti: FC<MemoryChartProps>;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ChartPoint } from '../utils/prometheusAdapter';
2
+ export declare const usePrometheusQueryRange: ({ query, range, refetchInterval, enabled, }: {
3
+ query: string;
4
+ range?: string | undefined;
5
+ refetchInterval?: number | false | undefined;
6
+ enabled?: boolean | undefined;
7
+ }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<ChartPoint[], Error>;
@@ -0,0 +1,7 @@
1
+ import { RechartsSeries } from '../utils/prometheusAdapter';
2
+ export declare const usePrometheusQueryRangeMulti: ({ query, range, refetchInterval, enabled, }: {
3
+ query: string;
4
+ range?: string | undefined;
5
+ refetchInterval?: number | false | undefined;
6
+ enabled?: boolean | undefined;
7
+ }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<RechartsSeries[], Error>;
@@ -0,0 +1,10 @@
1
+ export type PrometheusRangeParams = {
2
+ start: string;
3
+ end: string;
4
+ step: string;
5
+ };
6
+ /**
7
+ * Converts a duration string like "30m", "2h", "7d" into start/end ISO timestamps
8
+ * and a safe step value to ensure < 11k data points for Prometheus query_range.
9
+ */
10
+ export declare const buildPrometheusRangeParams: (range?: string) => PrometheusRangeParams;