@prorobotech/openapi-k8s-toolkit 1.4.0-alpha.14 → 1.4.0-alpha.16
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/{index-DuYZpKMC.mjs → index-Cc-4YPOA.mjs} +159 -18
- package/dist/{index-DuYZpKMC.mjs.map → index-Cc-4YPOA.mjs.map} +1 -1
- package/dist/{index-DcEC4xll.mjs → index-Drku3xGg.mjs} +2 -2
- package/dist/{index-DcEC4xll.mjs.map → index-Drku3xGg.mjs.map} +1 -1
- package/dist/openapi-k8s-toolkit.es.js +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +157 -16
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/api/bff/plugins/getPlugins.d.ts +1 -1
- package/dist/types/api/bff/scopes/checkScopes.d.ts +1 -1
- package/dist/types/api/bff/scopes/filterScopes.d.ts +2 -2
- package/dist/types/api/bff/search/getKinds.d.ts +1 -1
- package/dist/types/api/bff/swagger/getSwagger.d.ts +1 -1
- package/dist/types/api/getClusterList.d.ts +1 -1
- package/dist/types/api/permissions.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/atoms/CustomCollapse/CustomCollapse.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/atoms/DebugNameViewer/DebugNameViewer.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/atoms/HiddenContainer/HiddenContainer.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/atoms/HiddenContainer/utils.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/atoms/PersistedCheckbox/PersistedCheckbox.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormArrayHeader/FormArrayHeader.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/FormBooleanInput.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormEnumStringInput/FormEnumStringInput.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormInlineYamlEditor/FormInlineYamlEditor.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/FormListInput.d.ts +2 -2
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/FormNamespaceInput.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNumberInput/FormNumberInput.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormObjectFromSwagger/FormObjectFromSwagger.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormObjectFromSwagger/FormObjectFromSwagger.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/FormRangeInput.d.ts +2 -2
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/molecules/RangeInput/RangeInput.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/utils.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/FormStringInput.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormStringMultilineInput/FormStringMultilineInput.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/helpers/validation.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts +3 -3
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/casts.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/getSortedPropertyKeys.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/hiddenExpanded.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utils.d.ts +2 -2
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utilsErrorHandler.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormProvider/BlackholeFormProvider.d.ts +2 -2
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/EnrichedTable.d.ts +1 -1
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/utils.d.ts +2 -2
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/EnrichedTableProvider.d.ts +2 -2
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/utils.d.ts +2 -2
- package/dist/types/components/molecules/MarketPlace/molecules/AddEditFormModal/AddEditFormModal.d.ts +1 -1
- package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/MarketplaceCard.d.ts +1 -1
- package/dist/types/components/molecules/Search/Search.d.ts +1 -1
- package/dist/types/components/molecules/YamlEditorSingleton/YamlEditorSingleton.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/DynamicComponents.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/ActionsDropdown/ActionsDropdown.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ActionsDropdown/dropdownPlacement.d.ts +12 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ActionsDropdown/dropdownPlacement.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ActionsDropdown/hooks/useActionsDropdownHandlers/helpers.d.ts +5 -4
- package/dist/types/components/organisms/DynamicComponents/molecules/ActionsDropdown/hooks/useActionsDropdownHandlers/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/ActionsDropdown/permissionsMap.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/helpers.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/UsageGraphCard/atoms/FormattedValue/utils.d.ts +2 -2
- package/dist/types/components/organisms/DynamicComponents/types/ActionsDropdown.d.ts +4 -2
- package/dist/types/components/organisms/DynamicComponents/types/ContentCard.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/types/ConverterBytes.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/types/ConverterCores.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/types/EnrichedTable.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/types/PrometheusGraph.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/types/SidebarProvider.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/types/Spacer.d.ts +1 -1
- package/dist/types/components/organisms/DynamicRenderer/DynamicRenderer.d.ts +1 -1
- package/dist/types/components/organisms/DynamicRendererWithProviders/DynamicRendererWithProviders.d.ts +2 -2
- package/dist/types/components/organisms/DynamicRendererWithProviders/providers/hybridDataProvider/hybridDataProvider.d.ts +1 -1
- package/dist/types/components/organisms/DynamicRendererWithProviders/providers/multiK8sProvider/multiK8sProvider.d.ts +1 -1
- package/dist/types/hooks/useApiResource.d.ts +1 -1
- package/dist/types/hooks/useBuiltinResourceTypes.d.ts +1 -1
- package/dist/types/hooks/useCrdResource.d.ts +1 -1
- package/dist/types/hooks/useK8sSmartResource/useK8sSmartResourceWithoutKinds.d.ts +1 -1
- package/dist/types/hooks/useListThenWatch/reducer.d.ts +1 -1
- package/dist/types/hooks/useListThenWatch/types.d.ts +1 -1
- package/dist/types/hooks/useListThenWatch/useListWatch.d.ts +1 -1
- package/dist/types/hooks/useListThenWatch/utils.d.ts +1 -1
- package/dist/types/hooks/usePermissions.d.ts +1 -1
- package/dist/types/localTypes/bff/table.d.ts +1 -1
- package/dist/types/localTypes/dynamicRender.d.ts +1 -1
- package/dist/types/localTypes/search.d.ts +1 -1
- package/dist/types/utils/converterBytes/converterBytes.d.ts +1 -1
- package/dist/types/utils/converterCores/converterCores.d.ts +1 -1
- package/dist/types/utils/getGroupsByCategory/getGroupsByCategory.d.ts +1 -1
- package/dist/types/utils/getSortedKinds/getSortedKinds.d.ts +2 -2
- package/dist/types/utils/getSortedKindsAll/getSortedKindsAll.d.ts +2 -2
- package/dist/types/utils/getStringByName/getStringByName.d.ts +1 -1
- package/dist/types/utils/kindByGvr/kindByGvr.d.ts +1 -1
- package/dist/types/utils/namespacedByGvr/namespacedByGvr.d.ts +1 -1
- package/dist/types/utils/pluralByKind/pluralByKind.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TCheckIfApiInstanceNamespaceScopedRes, TCheckIfBuiltInInstanceNamespaceScopedRes } from '
|
|
1
|
+
import { TCheckIfApiInstanceNamespaceScopedRes, TCheckIfBuiltInInstanceNamespaceScopedRes } from 'localTypes/bff/scopes';
|
|
2
2
|
export declare const checkIfApiInstanceNamespaceScoped: ({ plural, apiGroup, apiVersion, cluster, }: {
|
|
3
3
|
plural: string;
|
|
4
4
|
apiGroup: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TFilterIfApiInstanceNamespaceScopedRes, TFilterIfBuiltInInstanceNamespaceScopedRes } from '
|
|
2
|
-
import { TApiGroupResourceTypeList, TBuiltinResourceTypeList } from '
|
|
1
|
+
import { TFilterIfApiInstanceNamespaceScopedRes, TFilterIfBuiltInInstanceNamespaceScopedRes } from 'localTypes/bff/scopes';
|
|
2
|
+
import { TApiGroupResourceTypeList, TBuiltinResourceTypeList } from 'localTypes/k8s';
|
|
3
3
|
export declare const filterIfApiInstanceNamespaceScoped: ({ cluster, namespace, apiGroup, apiVersion, data, }: {
|
|
4
4
|
namespace?: string | undefined;
|
|
5
5
|
data?: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { TGetDerefedSwaggerRes } from '
|
|
2
|
+
import { TGetDerefedSwaggerRes } from 'localTypes/bff/swagger';
|
|
3
3
|
export declare const getSwagger: ({ cluster }: {
|
|
4
4
|
cluster: string;
|
|
5
5
|
}) => Promise<AxiosResponse<TGetDerefedSwaggerRes>>;
|
package/dist/types/components/molecules/BlackholeForm/atoms/CustomCollapse/CustomCollapse.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC, ReactNode, PropsWithChildren } from 'react';
|
|
2
|
-
import { TFormName, TExpandedControls } from '
|
|
2
|
+
import { TFormName, TExpandedControls } from 'localTypes/form';
|
|
3
3
|
type TCustomCollapseProps = PropsWithChildren<{
|
|
4
4
|
title: string | ReactNode;
|
|
5
5
|
formName: TFormName;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TFormName } from '
|
|
1
|
+
import { TFormName } from 'localTypes/form';
|
|
2
2
|
export declare const includesPath: (haystack: string[][], needle: (string | number)[]) => boolean;
|
|
3
3
|
export declare const toArray: (p?: TFormName) => (string | number)[] | undefined;
|
package/dist/types/components/molecules/BlackholeForm/atoms/PersistedCheckbox/PersistedCheckbox.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { TFormName, TPersistedControls } from '
|
|
2
|
+
import { TFormName, TPersistedControls } from 'localTypes/form';
|
|
3
3
|
type TPersistedCheckboxProps = {
|
|
4
4
|
formName: TFormName;
|
|
5
5
|
persistedControls: TPersistedControls;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { TFormName, TPersistedControls } from '
|
|
2
|
+
import { TFormName, TPersistedControls } from 'localTypes/form';
|
|
3
3
|
type TFormInlineYamlEditorProps = {
|
|
4
4
|
path: TFormName;
|
|
5
5
|
persistedControls: TPersistedControls;
|
package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/FormListInput.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { TFormName, TPersistedControls, TUrlParams } from '
|
|
3
|
-
import { TListInputCustomProps } from '
|
|
2
|
+
import { TFormName, TPersistedControls, TUrlParams } from 'localTypes/form';
|
|
3
|
+
import { TListInputCustomProps } from 'localTypes/formExtensions';
|
|
4
4
|
type TFormListInputProps = {
|
|
5
5
|
name: TFormName;
|
|
6
6
|
arrKey?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { OpenAPIV2, IJsonSchema } from 'openapi-types';
|
|
3
|
-
import { TFormName, TExpandedControls, TPersistedControls } from '
|
|
3
|
+
import { TFormName, TExpandedControls, TPersistedControls } from 'localTypes/form';
|
|
4
4
|
type TFormObjectFromSwaggerProps = {
|
|
5
5
|
name: TFormName;
|
|
6
6
|
persistName?: TFormName;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/FormRangeInput.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { TFormName, TPersistedControls, TUrlParams } from '
|
|
3
|
-
import { TRangeInputCustomProps } from '
|
|
2
|
+
import { TFormName, TPersistedControls, TUrlParams } from 'localTypes/form';
|
|
3
|
+
import { TRangeInputCustomProps } from 'localTypes/formExtensions';
|
|
4
4
|
type TFormRangeInputProps = {
|
|
5
5
|
name: TFormName;
|
|
6
6
|
arrKey?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { SliderBaseProps } from 'antd/es/slider';
|
|
3
|
-
import { TFormName, TPersistedControls } from '
|
|
3
|
+
import { TFormName, TPersistedControls } from 'localTypes/form';
|
|
4
4
|
export type TRangeInputProps = {
|
|
5
5
|
name: TFormName;
|
|
6
6
|
arrKey?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TRangeInputCustomValuesBlock } from '
|
|
1
|
+
import { TRangeInputCustomValuesBlock } from 'localTypes/formExtensions';
|
|
2
2
|
export declare const prepareMinAndMaxValues: ({ minMaxAndStep, minValueObj, minSubstractFirstValueObj, minSubstractSecondValueObj, minAddFirstValueObj, minAddSecondValueObj, maxValueObj, maxSubstractFirstValueObj, maxSubstractSecondValueObj, maxAddFirstValueObj, maxAddSecondValueObj, logic, }: {
|
|
3
3
|
minMaxAndStep: TRangeInputCustomValuesBlock;
|
|
4
4
|
minValueObj: unknown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TFormName } from '
|
|
1
|
+
import { TFormName } from 'localTypes/form';
|
|
2
2
|
export declare const prettyFieldPath: (name: TFormName) => string;
|
|
3
3
|
export declare const getRequiredRule: (isRequired: boolean, name: TFormName) => {
|
|
4
4
|
required: boolean;
|
package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { OpenAPIV2 } from 'openapi-types';
|
|
3
|
-
import { TJSON } from '
|
|
4
|
-
import { TUrlParams } from '
|
|
5
|
-
import { TFormPrefill } from '
|
|
3
|
+
import { TJSON } from 'localTypes/JSON';
|
|
4
|
+
import { TUrlParams } from 'localTypes/form';
|
|
5
|
+
import { TFormPrefill } from 'localTypes/formExtensions';
|
|
6
6
|
export type TBlackholeFormProps = {
|
|
7
7
|
cluster: string;
|
|
8
8
|
theme: 'light' | 'dark';
|
package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/casts.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
2
|
import { OpenAPIV2 } from 'openapi-types';
|
|
3
|
-
import { TFormName } from '
|
|
3
|
+
import { TFormName } from 'localTypes/form';
|
|
4
4
|
export declare const pathKey: (p: (string | number)[]) => string;
|
|
5
5
|
/**
|
|
6
6
|
* Recursively prunes schema properties that are marked as "additional"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OpenAPIV2 } from 'openapi-types';
|
|
2
|
-
import { TFormName } from '
|
|
2
|
+
import { TFormName } from 'localTypes/form';
|
|
3
3
|
export declare const getSortedPropertyKeys: ({ name, sortPaths, properties, }: {
|
|
4
4
|
name: TFormName;
|
|
5
5
|
sortPaths?: string[][] | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TFormName } from '
|
|
1
|
+
import { TFormName } from 'localTypes/form';
|
|
2
2
|
export declare const sanitizeWildcardPath: (p: (string | number | unknown)[]) => string[];
|
|
3
3
|
export declare const expandWildcardTemplates: (templates: (string | number)[][], values: Record<string, unknown>, opts?: {
|
|
4
4
|
includeMissingExact?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OpenAPIV2 } from 'openapi-types';
|
|
2
|
-
import { TListInputCustomProps, TRangeInputCustomProps } from '
|
|
3
|
-
import { TFormName, TExpandedControls, TNamespaceData, TPersistedControls, TUrlParams } from '
|
|
2
|
+
import { TListInputCustomProps, TRangeInputCustomProps } from 'localTypes/formExtensions';
|
|
3
|
+
import { TFormName, TExpandedControls, TNamespaceData, TPersistedControls, TUrlParams } from 'localTypes/form';
|
|
4
4
|
export declare const getStringFormItemFromSwagger: ({ name, arrKey, arrName, persistName, required, forceNonRequired, description, namespaceData, isAdditionalProperties, removeField, persistedControls, onRemoveByMinus, }: {
|
|
5
5
|
name: TFormName;
|
|
6
6
|
arrKey?: number | undefined;
|
package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utilsErrorHandler.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosError } from 'axios';
|
|
2
|
-
import { TFormName } from '
|
|
2
|
+
import { TFormName } from 'localTypes/form';
|
|
3
3
|
export declare const handleSubmitError: ({ error, expandedKeys, }: {
|
|
4
4
|
error: AxiosError<any, any>;
|
|
5
5
|
expandedKeys: TFormName[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { TJSON } from '
|
|
3
|
-
import { TUrlParams } from '
|
|
2
|
+
import { TJSON } from 'localTypes/JSON';
|
|
3
|
+
import { TUrlParams } from 'localTypes/form';
|
|
4
4
|
export type TBlackholeFormProviderProps = {
|
|
5
5
|
theme: 'light' | 'dark';
|
|
6
6
|
cluster: string;
|
package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/EnrichedTable.d.ts
CHANGED
|
@@ -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, TAdditionalPrinterColumnsCustomSortersAndFilters, TAdditionalPrinterColumnsTooltips } from '
|
|
3
|
+
import { TAdditionalPrinterColumnsColWidths, TAdditionalPrinterColumnsKeyTypeProps, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsUndefinedValues, TAdditionalPrinterColumnsCustomSortersAndFilters, TAdditionalPrinterColumnsTooltips } from 'localTypes/richTable';
|
|
4
4
|
export type TEnrichedTableProps = {
|
|
5
5
|
theme: 'light' | 'dark';
|
|
6
6
|
baseprefix?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
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, TAdditionalPrinterColumnsTooltips, TAdditionalPrinterColumnsKeyTypeProps, TAdditionalPrinterColumnsCustomSortersAndFilters } from '
|
|
5
|
-
import { TJSON } from '
|
|
4
|
+
import { TAdditionalPrinterColumnsColWidths, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsUndefinedValues, TAdditionalPrinterColumnsTooltips, TAdditionalPrinterColumnsKeyTypeProps, TAdditionalPrinterColumnsCustomSortersAndFilters } from 'localTypes/richTable';
|
|
5
|
+
import { TJSON } from 'localTypes/JSON';
|
|
6
6
|
export declare const getCellRender: ({ value, record, possibleTrimLength, possibleUndefinedValue, possibleCustomTypeWithProps, theme, }: {
|
|
7
7
|
value: TJSON;
|
|
8
8
|
record: unknown;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FC, ReactNode } from 'react';
|
|
2
2
|
import { TablePaginationConfig } from 'antd';
|
|
3
|
-
import { TJSON } from '
|
|
4
|
-
import { TAdditionalPrinterColumns } from '
|
|
3
|
+
import { TJSON } from 'localTypes/JSON';
|
|
4
|
+
import { TAdditionalPrinterColumns } from 'localTypes/richTable';
|
|
5
5
|
export type TEnrichedTableProviderProps = {
|
|
6
6
|
cluster: string;
|
|
7
7
|
namespace?: string;
|
package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableProps } from 'antd';
|
|
2
|
-
import { TJSON } from '
|
|
3
|
-
import { TAdditionalPrinterColumns } from '
|
|
2
|
+
import { TJSON } from 'localTypes/JSON';
|
|
3
|
+
import { TAdditionalPrinterColumns } from 'localTypes/richTable';
|
|
4
4
|
export declare const prepare: ({ dataItems, pathToKey, resourceSchema, dataForControls, additionalPrinterColumns, }: {
|
|
5
5
|
dataItems: TJSON[];
|
|
6
6
|
pathToKey?: string | undefined;
|
package/dist/types/components/molecules/MarketPlace/molecules/AddEditFormModal/AddEditFormModal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { AxiosError } from 'axios';
|
|
3
|
-
import { TMarketPlacePanelResource } from '
|
|
3
|
+
import { TMarketPlacePanelResource } from 'localTypes/marketplace';
|
|
4
4
|
type TAddEditFormModalProps = {
|
|
5
5
|
cluster: string;
|
|
6
6
|
baseApiGroup: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TRendererComponents } from '
|
|
1
|
+
import { TRendererComponents } from 'localTypes/dynamicRender';
|
|
2
2
|
import { TDynamicComponentsAppTypeMap } from './types';
|
|
3
3
|
export declare const DynamicComponents: TRendererComponents<TDynamicComponentsAppTypeMap>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type TActionsDropdownPlacement = 'bottomLeft' | 'topLeft';
|
|
2
|
+
export type TComputeActionsDropdownPlacementParams = {
|
|
3
|
+
triggerTop: number;
|
|
4
|
+
triggerBottom: number;
|
|
5
|
+
viewportHeight: number;
|
|
6
|
+
actionsCount: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const DEFAULT_MENU_MAX_HEIGHT_PX = 320;
|
|
9
|
+
export declare const getDropdownPlacement: ({ triggerTop, triggerBottom, viewportHeight, actionsCount, }: TComputeActionsDropdownPlacementParams) => {
|
|
10
|
+
placement: TActionsDropdownPlacement;
|
|
11
|
+
maxMenuHeightPx: number;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,10 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import type { TActionUnion, TEvictActionProps } from '../../../../types/ActionsDropdown';
|
|
3
3
|
import type { TDeleteChildrenModalData, TDrainResponse, TEvictModalData, TParseContext } from './types';
|
|
4
4
|
export declare const parseValueIfString: (value: unknown, ctx: TParseContext) => unknown;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
export declare const resolveObjectByReqIndexAndJsonPath: ({ reqIndex, jsonPathToObj, multiQueryData, }: {
|
|
6
|
+
reqIndex: string;
|
|
7
|
+
jsonPathToObj: string;
|
|
8
|
+
multiQueryData: Record<string, unknown>;
|
|
9
|
+
}) => Record<string, unknown> | undefined;
|
|
9
10
|
export declare const buildEvictModalData: (props: TEvictActionProps, ctx: TParseContext) => TEvictModalData;
|
|
10
11
|
export declare const buildEvictBody: (data: TEvictModalData) => {
|
|
11
12
|
deleteOptions?: Record<string, unknown> | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { useActionsDropdownHandlers } from './useActionsDropdownHandlers';
|
|
2
2
|
export type { TCreateFromFilesModalData, TDeleteChildrenModalData, TDrainModalData, TDrainResponse, TEvictModalData, TParseContext, TRerunModalData, TRollbackModalData, TScaleModalData, } from './types';
|
|
3
|
-
export { buildDeleteChildrenData, buildEvictBody, buildEvictModalData, parseValueIfString, stripMetadataForRerun, } from './helpers';
|
|
3
|
+
export { buildDeleteChildrenData, buildEvictBody, buildEvictModalData, parseValueIfString, resolveObjectByReqIndexAndJsonPath, stripMetadataForRerun, } from './helpers';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TPermissionVerb } from '
|
|
1
|
+
import type { TPermissionVerb } from 'localTypes/permissions';
|
|
2
2
|
import type { TActionUnion } from '../../types/ActionsDropdown';
|
|
3
3
|
export type TRequiredPermission = {
|
|
4
4
|
verb: TPermissionVerb;
|
package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/helpers.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type TDateFormatOptions } from '
|
|
1
|
+
import { type TDateFormatOptions } from 'utils/converterDates';
|
|
2
2
|
export declare const createValueFormatter: ({ formatter, unit, }: {
|
|
3
3
|
formatter: 'bytes' | 'cores' | 'unit' | 'none';
|
|
4
4
|
unit?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TUnitInput } from '
|
|
2
|
-
import { TCoreUnitInput } from '
|
|
1
|
+
import { TUnitInput } from 'localTypes/factories/converterBytes';
|
|
2
|
+
import { TCoreUnitInput } from 'localTypes/factories/converterCores';
|
|
3
3
|
export declare const getNormalizedCoreUnit: (maxValue: number) => TCoreUnitInput;
|
|
4
4
|
export declare const getNormalizedByteUnit: (maxValue: number, standard: 'si' | 'iec') => TUnitInput;
|
|
@@ -81,7 +81,8 @@ export type TScaleActionProps = TActionBaseProps & {
|
|
|
81
81
|
export type TTriggerRunActionProps = TActionBaseProps & {
|
|
82
82
|
createEndpoint: string;
|
|
83
83
|
cronJobName: string;
|
|
84
|
-
|
|
84
|
+
reqIndex: string;
|
|
85
|
+
jsonPathToObj: string;
|
|
85
86
|
};
|
|
86
87
|
export type TDeleteChildrenActionProps = TActionBaseProps & {
|
|
87
88
|
children: string;
|
|
@@ -89,8 +90,9 @@ export type TDeleteChildrenActionProps = TActionBaseProps & {
|
|
|
89
90
|
};
|
|
90
91
|
export type TRerunLastActionProps = TActionBaseProps & {
|
|
91
92
|
createEndpoint: string;
|
|
92
|
-
sourceJobSpec: string;
|
|
93
93
|
sourceJobName: string;
|
|
94
|
+
reqIndex: string;
|
|
95
|
+
jsonPathToObj: string;
|
|
94
96
|
};
|
|
95
97
|
export type TDrainActionProps = TActionBaseProps & {
|
|
96
98
|
bffEndpoint: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import type { TUnitInput } from '
|
|
2
|
+
import type { TUnitInput } from 'localTypes/factories/converterBytes';
|
|
3
3
|
export type TConverterBytesProps = {
|
|
4
4
|
id: number | string;
|
|
5
5
|
bytesValue: string | string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import type { TCoreUnitInput } from '
|
|
2
|
+
import type { TCoreUnitInput } from 'localTypes/factories/converterCores';
|
|
3
3
|
export type TConverterCoresProps = {
|
|
4
4
|
id: number | string;
|
|
5
5
|
/** Raw text that may contain a number or number+unit like "0.5", "500m", "2 vcpu" */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import type { TDateFormatOptions } from '
|
|
2
|
+
import type { TDateFormatOptions } from 'utils/converterDates';
|
|
3
3
|
export type TPrometheusGraphProps = {
|
|
4
4
|
id: number | string;
|
|
5
5
|
type: 'MatrixToAreaMulti' | 'MatrixToAreaSingle' | 'MatrixToAreaStacked' | 'MatrixToLineMulti' | 'MatrixToLineSingle' | 'MatrixToReducedBar' | 'MatrixToTableRows' | 'VectorToBarGauge' | 'VectorToBarHorizontal' | 'VectorToBarVertical' | 'VectorToGaugeRadial' | 'VectorToPie' | 'VectorToTableRows' | 'ScalarToGauge' | 'ScalarToStat';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TManageableSidebarProviderProps } from '
|
|
1
|
+
import type { TManageableSidebarProviderProps } from 'components/molecules';
|
|
2
2
|
export type TSidebarProviderProps = {
|
|
3
3
|
id: number | string;
|
|
4
4
|
} & Omit<TManageableSidebarProviderProps, 'replaceValues'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { TItemTypeMap, TRenderableItem, TRendererComponents } from '
|
|
2
|
+
import { TItemTypeMap, TRenderableItem, TRendererComponents } from 'localTypes/dynamicRender';
|
|
3
3
|
export type TDynamicRendererProps<T extends TItemTypeMap> = {
|
|
4
4
|
items: readonly TRenderableItem<T>[];
|
|
5
5
|
components: TRendererComponents<T>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { TItemTypeMap } from '
|
|
3
|
-
import { TUseK8sSmartResourceParams } from '
|
|
2
|
+
import { TItemTypeMap } from 'localTypes/dynamicRender';
|
|
3
|
+
import { TUseK8sSmartResourceParams } from 'hooks/useK8sSmartResource';
|
|
4
4
|
import { TDynamicRendererProps } from '../DynamicRenderer';
|
|
5
5
|
export declare const DynamicRendererWithProviders: <T extends TItemTypeMap>(props: TDynamicRendererProps<T> & {
|
|
6
6
|
urlsToFetch: (string | TUseK8sSmartResourceParams<any>)[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { AxiosError } from 'axios';
|
|
3
|
-
import { TUseK8sSmartResourceParams } from '
|
|
3
|
+
import { TUseK8sSmartResourceParams } from 'hooks/useK8sSmartResource';
|
|
4
4
|
type DataMap = Record<string, unknown>;
|
|
5
5
|
type MultiQueryContextValue = {
|
|
6
6
|
data: DataMap;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import type { AxiosError } from 'axios';
|
|
3
|
-
import { useK8sSmartResource } from '
|
|
3
|
+
import { useK8sSmartResource } from 'hooks/useK8sSmartResource';
|
|
4
4
|
/** Reuse your hook's param type */
|
|
5
5
|
export type UseK8sSmartResourceParams<T> = Parameters<typeof useK8sSmartResource<T>>[0];
|
|
6
6
|
type DataMap = Record<string, unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TApiResources } from '
|
|
1
|
+
import { TApiResources } from 'localTypes/k8s';
|
|
2
2
|
export declare const useApiResources: ({ cluster, namespace, apiGroup, apiVersion, plural, name, labels, fields, limit, refetchInterval, isEnabled, }: {
|
|
3
3
|
cluster: string;
|
|
4
4
|
namespace?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TBuiltinResourceTypeList } from '
|
|
1
|
+
import { TBuiltinResourceTypeList } from 'localTypes/k8s';
|
|
2
2
|
export declare const useBuiltinResourceTypes: ({ cluster }: {
|
|
3
3
|
cluster: string;
|
|
4
4
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TBuiltinResourceTypeList, Error>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TJSON } from '
|
|
1
|
+
import { TJSON } from 'localTypes/JSON';
|
|
2
2
|
export declare const useCrdResources: <T = TJSON[]>({ cluster, namespace, apiGroup, apiVersion, crdName, refetchInterval, isEnabled, }: {
|
|
3
3
|
cluster: string;
|
|
4
4
|
namespace?: string | undefined;
|