@prorobotech/openapi-k8s-toolkit 1.1.0-alpha.2 → 1.1.0-alpha.21
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/openapi-k8s-toolkit.es.js +2867 -1815
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +2876 -1819
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/api/bff/scopes/checkScopes.d.ts +6 -6
- package/dist/types/api/bff/scopes/filterScopes.d.ts +4 -4
- package/dist/types/api/bff/search/getKinds.d.ts +2 -2
- package/dist/types/api/bff/swagger/getSwagger.d.ts +2 -2
- package/dist/types/api/forms.d.ts +4 -0
- package/dist/types/api/getApiResource.d.ts +8 -8
- package/dist/types/api/getApiResourceTypes.d.ts +4 -4
- package/dist/types/api/getBuiltinResource.d.ts +8 -8
- package/dist/types/api/getBuiltinResourceTypes.d.ts +2 -2
- package/dist/types/api/getCrdData.d.ts +2 -2
- package/dist/types/api/getCrdResource.d.ts +5 -5
- package/dist/types/api/permissions.d.ts +4 -4
- package/dist/types/components/atoms/CursorDefaultDiv/CursorDefaultDiv.d.ts +2 -2
- package/dist/types/components/atoms/CursorDefaultDiv/index.d.ts +1 -1
- package/dist/types/components/atoms/CursorPointerTag/index.d.ts +1 -1
- package/dist/types/components/atoms/CursorPointerTagMinContent/index.d.ts +1 -1
- package/dist/types/components/atoms/CustomSelect/index.d.ts +1 -1
- package/dist/types/components/atoms/FlexGrow/index.d.ts +1 -1
- package/dist/types/components/atoms/PaddingContainer/index.d.ts +1 -1
- package/dist/types/components/atoms/ResourceLink/ResourceLink.d.ts +19 -0
- package/dist/types/components/atoms/ResourceLink/index.d.ts +1 -0
- package/dist/types/components/atoms/ResourceLink/styled.d.ts +8 -0
- package/dist/types/components/atoms/UncontrolledSelect/index.d.ts +1 -1
- package/dist/types/components/atoms/index.d.ts +19 -13
- package/dist/types/components/molecules/BlackholeForm/atoms/ArrayInsideContainer/ArrayInsideContainer.d.ts +2 -2
- package/dist/types/components/molecules/BlackholeForm/atoms/ArrayInsideContainer/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/atoms/CustomCollapse/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/atoms/CustomSizeTitle/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/atoms/DebugNameViewer/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/atoms/HeightContainer/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/atoms/HiddenContainer/HiddenContainer.d.ts +4 -2
- package/dist/types/components/molecules/BlackholeForm/atoms/HiddenContainer/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/atoms/PersistedCheckbox/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/atoms/PossibleHiddenContainer/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/atoms/ResetedFormItem/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/atoms/index.d.ts +9 -9
- package/dist/types/components/molecules/BlackholeForm/index.d.ts +2 -2
- package/dist/types/components/molecules/BlackholeForm/molecules/FormArrayHeader/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormEnumStringInput/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormInlineYamlEditor/FormInlineYamlEditor.d.ts +4 -2
- package/dist/types/components/molecules/BlackholeForm/molecules/FormInlineYamlEditor/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNumberInput/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormObjectFromSwagger/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/molecules/RangeInput/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/molecules/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormStringMultilineInput/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditor/index.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/index.d.ts +12 -13
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts +5 -6
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/{BlackholeFormDataProvider/BlackholeFormDataProvider.d.ts → BlackholeFormProvider/BlackholeFormProvider.d.ts} +5 -5
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormProvider/index.d.ts +2 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/index.d.ts +4 -2
- package/dist/types/components/molecules/EnrichedTable/index.d.ts +2 -1
- package/dist/types/components/molecules/EnrichedTable/molecules/index.d.ts +1 -1
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/FilterDropdown/index.d.ts +1 -1
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/ShortenedTextWithTooltip/index.d.ts +1 -1
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TableComponents/index.d.ts +1 -1
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TextAlignContainer/index.d.ts +1 -1
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TinyButton/index.d.ts +1 -1
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TrimmedTags/index.d.ts +1 -1
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/index.d.ts +6 -6
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/types.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 +1 -1
- package/dist/types/components/molecules/EnrichedTable/organisms/index.d.ts +4 -2
- package/dist/types/components/molecules/Events/Events.d.ts +3 -2
- package/dist/types/components/molecules/Events/index.d.ts +1 -0
- package/dist/types/components/molecules/Events/molecules/EventRow/EventRow.d.ts +1 -0
- package/dist/types/components/molecules/Events/molecules/EventRow/utils.d.ts +0 -20
- package/dist/types/components/molecules/ManageableBreadcrumbs/index.d.ts +2 -3
- package/dist/types/components/molecules/ManageableBreadcrumbs/molecules/CollapsibleBreadcrumb/index.d.ts +1 -1
- package/dist/types/components/molecules/ManageableBreadcrumbs/molecules/index.d.ts +1 -1
- package/dist/types/components/molecules/ManageableBreadcrumbs/organisms/ManageableBreadcrumbs/ManageableBreadcrumbs.d.ts +8 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/organisms/ManageableBreadcrumbs/index.d.ts +2 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/organisms/ManageableBreadcrumbsProvider/ManageableBreadcrumbsProvider.d.ts +12 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/organisms/ManageableBreadcrumbsProvider/index.d.ts +3 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/organisms/ManageableBreadcrumbsProvider/styled.d.ts +276 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/organisms/index.d.ts +4 -0
- package/dist/types/components/molecules/ManageableSidebar/index.d.ts +2 -3
- package/dist/types/components/molecules/ManageableSidebar/organisms/ManageableSidebar/ManageableSidebar.d.ts +10 -0
- package/dist/types/components/molecules/ManageableSidebar/organisms/ManageableSidebar/index.d.ts +2 -0
- package/dist/types/components/molecules/ManageableSidebar/organisms/ManageableSidebarProvider/ManageableSidebarProvider.d.ts +16 -0
- package/dist/types/components/molecules/ManageableSidebar/organisms/ManageableSidebarProvider/index.d.ts +3 -0
- package/dist/types/components/molecules/ManageableSidebar/{utils.d.ts → organisms/ManageableSidebarProvider/utils.d.ts} +2 -1
- package/dist/types/components/molecules/ManageableSidebar/organisms/index.d.ts +4 -0
- package/dist/types/components/molecules/MarketPlace/MarketPlace.d.ts +3 -3
- package/dist/types/components/molecules/MarketPlace/atoms/AddCard/index.d.ts +1 -1
- package/dist/types/components/molecules/MarketPlace/atoms/index.d.ts +1 -1
- package/dist/types/components/molecules/MarketPlace/molecules/AddEditFormModal/AddEditFormModal.d.ts +3 -3
- package/dist/types/components/molecules/MarketPlace/molecules/AddEditFormModal/index.d.ts +1 -1
- package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/MarketplaceCard.d.ts +1 -1
- package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/index.d.ts +2 -1
- package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/utils.d.ts +9 -9
- package/dist/types/components/molecules/MarketPlace/molecules/SearchTextInput/index.d.ts +1 -1
- package/dist/types/components/molecules/MarketPlace/molecules/index.d.ts +4 -3
- package/dist/types/components/molecules/ProjectInfoCard/ProjectInfoCard.d.ts +3 -3
- package/dist/types/components/molecules/ProjectInfoCard/molecules/DropdownAccessGroups/index.d.ts +1 -1
- package/dist/types/components/molecules/ProjectInfoCard/molecules/DropdownActions/index.d.ts +1 -1
- package/dist/types/components/molecules/ProjectInfoCard/molecules/index.d.ts +2 -2
- package/dist/types/components/molecules/Search/Search.d.ts +1 -2
- package/dist/types/components/molecules/Search/index.d.ts +1 -0
- package/dist/types/components/molecules/Terminals/NodeTerminal/molecules/XTerminal/index.d.ts +1 -1
- package/dist/types/components/molecules/Terminals/NodeTerminal/molecules/index.d.ts +1 -1
- package/dist/types/components/molecules/Terminals/PodLogs/molecules/XTerminal/index.d.ts +1 -1
- package/dist/types/components/molecules/Terminals/PodLogs/molecules/index.d.ts +1 -1
- package/dist/types/components/molecules/Terminals/PodLogsMonaco/molecules/MonacoEditor/index.d.ts +1 -1
- package/dist/types/components/molecules/Terminals/PodLogsMonaco/molecules/index.d.ts +1 -1
- package/dist/types/components/molecules/Terminals/PodTerminal/molecules/XTerminal/index.d.ts +1 -1
- package/dist/types/components/molecules/Terminals/PodTerminal/molecules/index.d.ts +1 -1
- package/dist/types/components/molecules/Terminals/index.d.ts +8 -4
- package/dist/types/components/molecules/{BlackholeForm/molecules/YamlEditorSingleton → YamlEditorSingleton}/YamlEditorSingleton.d.ts +2 -2
- package/dist/types/components/molecules/YamlEditorSingleton/index.d.ts +1 -0
- package/dist/types/components/molecules/index.d.ts +19 -9
- package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/molecules/EditModal/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/molecules/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdButton/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdCard/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdCol/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdFlex/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdLink/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdRow/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdTabs/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdText/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/ArrayOfObjectsToKeyValues/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/ContentCard/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/ConverterBytes/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/DefaultDiv/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/EnrichedTable/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/Events/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/ItemCounter/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/KeyCounter/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/Labels/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/Labels/molecules/EditModal/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/Labels/molecules/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/LabelsToSearchParams/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/MarketplaceCard/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/MultiQuery/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/NodeTerminal/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/OwnerRefs.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/guard.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/organsisms/RefsList/RefsList.d.ts +22 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/organsisms/RefsList/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/organsisms/RefsList/molecules/RefElement/RefElement.d.ts +21 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/organsisms/RefsList/molecules/RefElement/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/organsisms/RefsList/molecules/RefElement/utils.d.ts +5 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/organsisms/RefsList/molecules/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/types.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ParsedText/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/PartsOfUrl/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/PodLogs/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/PodTerminal/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/ProjectInfoCard/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/ResourceBadge/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/SecretBase64Plain/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/SidebarProvider/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/Spacer/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/StatusText/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/Taints/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/Taints/molecules/EditModal/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/Taints/molecules/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/Toggler/Toggler.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Toggler/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/TogglerSegmented/TogglerSegmented.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/TogglerSegmented/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/molecules/EditModal/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/molecules/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/VisibilityContainer/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/YamlEditorSingleton/index.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/YamlEditorSingleton/utils.d.ts +10 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/index.d.ts +39 -36
- package/dist/types/components/organisms/DynamicComponents/types.d.ts +92 -16
- package/dist/types/components/organisms/DynamicRendererWithProviders/DynamicRendererWithProviders.d.ts +2 -1
- package/dist/types/components/organisms/DynamicRendererWithProviders/hybridDataProvider.d.ts +22 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/multiK8sProvider.d.ts +22 -0
- package/dist/types/components/organisms/index.d.ts +5 -3
- package/dist/types/hooks/useApiResource.d.ts +9 -8
- package/dist/types/hooks/useApisResourceTypes.d.ts +4 -4
- package/dist/types/hooks/useBuiltinResource.d.ts +9 -8
- package/dist/types/hooks/useBuiltinResourceTypes.d.ts +2 -2
- package/dist/types/hooks/useCrdData.d.ts +2 -2
- package/dist/types/hooks/useCrdResource.d.ts +6 -5
- package/dist/types/hooks/useK8sSmartResource/index.d.ts +4 -0
- package/dist/types/hooks/useK8sSmartResource/useK8sSmartResource.d.ts +28 -0
- package/dist/types/hooks/{useK8sSmartResource.d.ts → useK8sSmartResource/useK8sSmartResourceWithoutKinds.d.ts} +5 -5
- package/dist/types/hooks/useK8sSmartResource/useManyK8sSmartResource.d.ts +17 -0
- package/dist/types/hooks/useK8sSmartResource/useSmartResourceParams.d.ts +9 -0
- package/dist/types/hooks/useListThenWatch/types.d.ts +10 -1
- package/dist/types/hooks/useListThenWatch/useListWatch.d.ts +1 -0
- package/dist/types/hooks/usePermissions.d.ts +4 -4
- package/dist/types/index.d.ts +2 -1
- package/dist/types/localTypes/bff/form.d.ts +5 -5
- package/dist/types/localTypes/bff/scopes.d.ts +6 -6
- package/dist/types/localTypes/bff/table.d.ts +2 -1
- package/dist/types/localTypes/dynamicRender.d.ts +2 -1
- package/dist/types/localTypes/form.d.ts +2 -2
- package/dist/types/localTypes/k8s.d.ts +1 -0
- package/dist/types/localTypes/marketplace.d.ts +1 -1
- package/dist/types/localTypes/navigations.d.ts +24 -0
- package/dist/types/utils/createContextFactory/index.d.ts +1 -1
- package/dist/types/utils/deepMerge/index.d.ts +1 -1
- package/dist/types/utils/filterSelectOptions/index.d.ts +1 -1
- package/dist/types/utils/getAllPathsFromObj/index.d.ts +1 -1
- package/dist/types/utils/getGroupsByCategory/getGroupsByCategory.d.ts +2 -2
- package/dist/types/utils/getGroupsByCategory/index.d.ts +1 -1
- package/dist/types/utils/getPrefixSubArrays/index.d.ts +1 -1
- package/dist/types/utils/getResourceLink/getResourceLink.d.ts +27 -0
- package/dist/types/utils/getResourceLink/index.d.ts +1 -0
- package/dist/types/utils/getSortedKinds/index.d.ts +1 -1
- package/dist/types/utils/getSortedKindsAll/index.d.ts +1 -1
- package/dist/types/utils/getStringByName/index.d.ts +1 -1
- package/dist/types/utils/getUppercase/index.d.ts +1 -1
- package/dist/types/utils/groupsToTreeData/index.d.ts +2 -1
- package/dist/types/utils/hslFromString/index.d.ts +1 -1
- package/dist/types/utils/index.d.ts +25 -22
- package/dist/types/utils/isFlatObject/index.d.ts +1 -1
- package/dist/types/utils/kindByGvr/index.d.ts +1 -1
- package/dist/types/utils/namespacedByGvr/index.d.ts +1 -1
- package/dist/types/utils/nestedStringsArrayInclude/index.d.ts +1 -1
- package/dist/types/utils/normalizeValuesForQuotas/index.d.ts +1 -1
- package/dist/types/utils/parseForQuotaValues/index.d.ts +1 -1
- package/dist/types/utils/pluralByKind/index.d.ts +1 -1
- package/dist/types/utils/prepareTemplate/index.d.ts +1 -1
- package/dist/types/utils/prepareUrlsToFetchForDynamicRenderer/index.d.ts +1 -1
- package/dist/types/utils/tableLocations/index.d.ts +1 -1
- package/dist/types/utils/tableLocations/tableLocations.d.ts +5 -5
- package/package.json +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditorSingleton/index.d.ts +0 -1
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/index.d.ts +0 -2
- package/dist/types/components/molecules/ManageableBreadcrumbs/ManageableBreadcrumbs.d.ts +0 -19
- package/dist/types/components/molecules/ManageableSidebar/ManageableSidebar.d.ts +0 -24
- /package/dist/types/components/molecules/ManageableBreadcrumbs/{styled.d.ts → organisms/ManageableBreadcrumbs/styled.d.ts} +0 -0
- /package/dist/types/components/molecules/ManageableBreadcrumbs/{types.d.ts → organisms/ManageableBreadcrumbsProvider/types.d.ts} +0 -0
- /package/dist/types/components/molecules/ManageableBreadcrumbs/{utils.d.ts → organisms/ManageableBreadcrumbsProvider/utils.d.ts} +0 -0
- /package/dist/types/components/molecules/ManageableSidebar/{styled.d.ts → organisms/ManageableSidebar/styled.d.ts} +0 -0
- /package/dist/types/components/molecules/ManageableSidebar/{types.d.ts → organisms/ManageableSidebarProvider/types.d.ts} +0 -0
- /package/dist/types/components/molecules/{BlackholeForm/molecules/YamlEditorSingleton → YamlEditorSingleton}/styled.d.ts +0 -0
|
@@ -2,9 +2,9 @@ import { CSSProperties } from 'react';
|
|
|
2
2
|
import { CardProps, FlexProps, RowProps, ColProps, ButtonProps, TabsProps, SelectProps } from 'antd';
|
|
3
3
|
import type { TextProps } from 'antd/es/typography/Text';
|
|
4
4
|
import type { LinkProps } from 'antd/es/typography/Link';
|
|
5
|
-
import { TContentCardProps, TSpacerProps } from '../../atoms';
|
|
6
|
-
import {
|
|
7
|
-
import { TUnitInput } from './molecules/ConverterBytes/types';
|
|
5
|
+
import type { TContentCardProps, TSpacerProps } from '../../atoms';
|
|
6
|
+
import type { TManageableSidebarProviderProps, TEnrichedTableProviderProps } from '../../molecules';
|
|
7
|
+
import type { TUnitInput } from './molecules/ConverterBytes/types';
|
|
8
8
|
export type TDynamicComponentsAppTypeMap = {
|
|
9
9
|
DefaultDiv: {
|
|
10
10
|
id: number | string;
|
|
@@ -53,26 +53,26 @@ export type TDynamicComponentsAppTypeMap = {
|
|
|
53
53
|
};
|
|
54
54
|
ProjectInfoCard: {
|
|
55
55
|
id: number | string;
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
cluster: string;
|
|
57
|
+
namespace: string;
|
|
58
58
|
baseApiGroup: string;
|
|
59
59
|
baseApiVersion: string;
|
|
60
60
|
baseProjectApiGroup: string;
|
|
61
61
|
baseProjectVersion: string;
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
projectPlural: string;
|
|
63
|
+
marketplacePlural: string;
|
|
64
64
|
accessGroups: string[];
|
|
65
65
|
baseprefix?: string;
|
|
66
66
|
showZeroResources?: boolean;
|
|
67
67
|
};
|
|
68
68
|
MarketplaceCard: {
|
|
69
69
|
id: number | string;
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
cluster: string;
|
|
71
|
+
namespace: string;
|
|
72
72
|
baseApiGroup: string;
|
|
73
73
|
baseApiVersion: string;
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
marketplacePlural: string;
|
|
75
|
+
marketplaceKind: string;
|
|
76
76
|
baseprefix?: string;
|
|
77
77
|
standalone?: boolean;
|
|
78
78
|
forceAddedMode?: boolean;
|
|
@@ -99,12 +99,19 @@ export type TDynamicComponentsAppTypeMap = {
|
|
|
99
99
|
} & Omit<TextProps, 'id' | 'children'>;
|
|
100
100
|
SidebarProvider: {
|
|
101
101
|
id: number | string;
|
|
102
|
-
} & Omit<
|
|
102
|
+
} & Omit<TManageableSidebarProviderProps, 'replaceValues'>;
|
|
103
103
|
EnrichedTable: {
|
|
104
104
|
id: number | string;
|
|
105
|
-
fetchUrl
|
|
105
|
+
fetchUrl?: string;
|
|
106
|
+
k8sResourceToFetch?: {
|
|
107
|
+
apiGroup?: string;
|
|
108
|
+
apiVersion: string;
|
|
109
|
+
plural: string;
|
|
110
|
+
namespace?: string;
|
|
111
|
+
};
|
|
106
112
|
pathToItems: string | string[];
|
|
107
|
-
|
|
113
|
+
additionalReqsDataToEachItem?: number[];
|
|
114
|
+
cluster: string;
|
|
108
115
|
labelSelector?: Record<string, string>;
|
|
109
116
|
labelSelectorFull?: {
|
|
110
117
|
reqIndex: number;
|
|
@@ -139,8 +146,10 @@ export type TDynamicComponentsAppTypeMap = {
|
|
|
139
146
|
type: 'builtin' | 'apis';
|
|
140
147
|
apiGroup?: string;
|
|
141
148
|
apiVersion?: string;
|
|
142
|
-
|
|
149
|
+
plural: string;
|
|
150
|
+
forcedKind?: string;
|
|
143
151
|
prefillValuesRequestIndex: number;
|
|
152
|
+
pathToData?: string | string[];
|
|
144
153
|
substractHeight?: number;
|
|
145
154
|
readOnly?: boolean;
|
|
146
155
|
};
|
|
@@ -305,7 +314,7 @@ export type TDynamicComponentsAppTypeMap = {
|
|
|
305
314
|
Events: {
|
|
306
315
|
id: number | string;
|
|
307
316
|
baseprefix?: string;
|
|
308
|
-
|
|
317
|
+
cluster: string;
|
|
309
318
|
wsUrl: string;
|
|
310
319
|
pageSize?: number;
|
|
311
320
|
substractHeight?: number;
|
|
@@ -321,5 +330,72 @@ export type TDynamicComponentsAppTypeMap = {
|
|
|
321
330
|
baseFactoryNamespacedBuiltinKey: string;
|
|
322
331
|
baseFactoryClusterSceopedBuiltinKey: string;
|
|
323
332
|
baseNamespaceFactoryKey: string;
|
|
333
|
+
baseNavigationPlural: string;
|
|
334
|
+
baseNavigationName: string;
|
|
335
|
+
};
|
|
336
|
+
OwnerRefs: {
|
|
337
|
+
id: number | string;
|
|
338
|
+
baseprefix?: string;
|
|
339
|
+
cluster: string;
|
|
340
|
+
reqIndex: string;
|
|
341
|
+
errorText: string;
|
|
342
|
+
notArrayErrorText: string;
|
|
343
|
+
emptyArrayErrorText: string;
|
|
344
|
+
isNotRefsArrayErrorText: string;
|
|
345
|
+
containerStyle?: CSSProperties;
|
|
346
|
+
listFlexProps?: FlexProps;
|
|
347
|
+
jsonPathToArrayOfRefs: string;
|
|
348
|
+
forcedApiVersion?: {
|
|
349
|
+
kind: string;
|
|
350
|
+
apiVersion: string;
|
|
351
|
+
}[];
|
|
352
|
+
forcedNamespace?: string;
|
|
353
|
+
keysToForcedLabel?: string | string[];
|
|
354
|
+
forcedRelatedValuePath?: string;
|
|
355
|
+
baseFactoryNamespacedAPIKey: string;
|
|
356
|
+
baseFactoryClusterSceopedAPIKey: string;
|
|
357
|
+
baseFactoryNamespacedBuiltinKey: string;
|
|
358
|
+
baseFactoryClusterSceopedBuiltinKey: string;
|
|
359
|
+
baseNavigationPlural: string;
|
|
360
|
+
baseNavigationName: string;
|
|
361
|
+
};
|
|
362
|
+
Toggler: {
|
|
363
|
+
id: number | string;
|
|
364
|
+
reqIndex: string;
|
|
365
|
+
jsonPathToValue: string;
|
|
366
|
+
criteria: {
|
|
367
|
+
type: 'forSuccess' | 'forError';
|
|
368
|
+
operator: 'exists' | 'equals';
|
|
369
|
+
valueToCompare?: string;
|
|
370
|
+
};
|
|
371
|
+
notificationSuccessMessage?: string;
|
|
372
|
+
notificationErrorMessage?: string;
|
|
373
|
+
notificationSuccessMessageDescription?: string;
|
|
374
|
+
notificationErrorMessageDescription?: string;
|
|
375
|
+
containerStyle?: CSSProperties;
|
|
376
|
+
endpoint: string;
|
|
377
|
+
pathToValue: string;
|
|
378
|
+
valueToSubmit: {
|
|
379
|
+
onValue: any;
|
|
380
|
+
offValue?: any;
|
|
381
|
+
toRemoveWhenOff?: boolean;
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
TogglerSegmented: {
|
|
385
|
+
id: number | string;
|
|
386
|
+
reqIndex: string;
|
|
387
|
+
jsonPathToValue: string;
|
|
388
|
+
notificationSuccessMessage?: string;
|
|
389
|
+
notificationErrorMessage?: string;
|
|
390
|
+
notificationSuccessMessageDescription?: string;
|
|
391
|
+
notificationErrorMessageDescription?: string;
|
|
392
|
+
containerStyle?: CSSProperties;
|
|
393
|
+
endpoint: string;
|
|
394
|
+
pathToValue: string;
|
|
395
|
+
possibleValues: any[];
|
|
396
|
+
valuesMap?: {
|
|
397
|
+
value: any;
|
|
398
|
+
renderedValue: string | number;
|
|
399
|
+
}[];
|
|
324
400
|
};
|
|
325
401
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { TItemTypeMap } from '../../../localTypes/dynamicRender';
|
|
3
|
+
import { TUseK8sSmartResourceParams } from '../../../hooks/useK8sSmartResource';
|
|
3
4
|
import { TDynamicRendererProps } from '../DynamicRenderer';
|
|
4
5
|
export declare const DynamicRendererWithProviders: <T extends TItemTypeMap>(props: TDynamicRendererProps<T> & {
|
|
5
|
-
urlsToFetch: string[];
|
|
6
|
+
urlsToFetch: (string | TUseK8sSmartResourceParams<any>)[];
|
|
6
7
|
dataToApplyToContext?: unknown;
|
|
7
8
|
theme: 'dark' | 'light';
|
|
8
9
|
nodeTerminalDefaultProfile?: string | undefined;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { AxiosError } from 'axios';
|
|
3
|
+
import { TUseK8sSmartResourceParams } from '../../../hooks/useK8sSmartResource';
|
|
4
|
+
type DataMap = Record<string, unknown>;
|
|
5
|
+
type MultiQueryContextValue = {
|
|
6
|
+
data: DataMap;
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
isError: boolean;
|
|
9
|
+
errors: ReadonlyArray<AxiosError | Error | string | null>;
|
|
10
|
+
};
|
|
11
|
+
type MultiQueryProviderProps = {
|
|
12
|
+
/** Mixed array: first (any number of) K8s resources, then (any number of) URL strings */
|
|
13
|
+
items: ReadonlyArray<string | TUseK8sSmartResourceParams<unknown>>;
|
|
14
|
+
/** Optional short-circuit to set data.req0 directly */
|
|
15
|
+
dataToApplyToContext?: unknown;
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
};
|
|
18
|
+
/** ------------------------------ Provider -------------------------------- */
|
|
19
|
+
export declare const MultiQueryProvider: FC<MultiQueryProviderProps>;
|
|
20
|
+
/** Consumer hook */
|
|
21
|
+
export declare const useMultiQuery: () => MultiQueryContextValue;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import type { AxiosError } from 'axios';
|
|
3
|
+
import { useK8sSmartResource } from '../../../hooks/useK8sSmartResource';
|
|
4
|
+
/** Reuse your hook's param type */
|
|
5
|
+
export type UseK8sSmartResourceParams<T> = Parameters<typeof useK8sSmartResource<T>>[0];
|
|
6
|
+
type DataMap = Record<string, unknown>;
|
|
7
|
+
type MultiK8sContextValue = {
|
|
8
|
+
data: DataMap;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
isError: boolean;
|
|
11
|
+
errors: ReadonlyArray<AxiosError | Error | string | null>;
|
|
12
|
+
};
|
|
13
|
+
type MultiK8sProviderProps = {
|
|
14
|
+
resources: ReadonlyArray<UseK8sSmartResourceParams<unknown>>;
|
|
15
|
+
dataToApplyToContext?: unknown;
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
};
|
|
18
|
+
/** --- Provider ----------------------------------------------------------- */
|
|
19
|
+
export declare const MultiK8sProvider: FC<MultiK8sProviderProps>;
|
|
20
|
+
/** --- Consumer Hook ------------------------------------------------------ */
|
|
21
|
+
export declare const useMultiK8s: () => MultiK8sContextValue;
|
|
22
|
+
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export { DynamicRenderer } from './DynamicRenderer';
|
|
2
|
+
export type { TDynamicRendererProps } from './DynamicRenderer';
|
|
3
|
+
export { DynamicComponents } from './DynamicComponents';
|
|
4
|
+
export type { TDynamicComponentsAppTypeMap } from './DynamicComponents';
|
|
5
|
+
export { DynamicRendererWithProviders } from './DynamicRendererWithProviders';
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import { TApiResources } from '../localTypes/k8s';
|
|
2
|
-
export declare const useApiResources: ({
|
|
3
|
-
|
|
2
|
+
export declare const useApiResources: ({ cluster, namespace, apiGroup, apiVersion, plural, name, labels, fields, limit, refetchInterval, isEnabled, }: {
|
|
3
|
+
cluster: string;
|
|
4
4
|
namespace?: string | undefined;
|
|
5
5
|
apiGroup: string;
|
|
6
6
|
apiVersion: string;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
plural: string;
|
|
8
|
+
name?: string | undefined;
|
|
9
9
|
labels?: string[] | undefined;
|
|
10
10
|
fields?: string[] | undefined;
|
|
11
11
|
limit: string | null;
|
|
12
12
|
refetchInterval?: number | false | undefined;
|
|
13
13
|
isEnabled?: boolean | undefined;
|
|
14
14
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TApiResources, Error>;
|
|
15
|
-
export declare const useApiResourceSingle: ({
|
|
16
|
-
|
|
15
|
+
export declare const useApiResourceSingle: ({ cluster, namespace, apiGroup, apiVersion, plural, name, refetchInterval, }: {
|
|
16
|
+
cluster: string;
|
|
17
17
|
namespace?: string | undefined;
|
|
18
18
|
apiGroup: string;
|
|
19
19
|
apiVersion: string;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
plural: string;
|
|
21
|
+
name: string;
|
|
22
22
|
refetchInterval?: number | false | undefined;
|
|
23
23
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
24
24
|
metadata: {
|
|
25
25
|
name: string;
|
|
26
26
|
creationTimestamp: string;
|
|
27
|
+
uid?: string | undefined;
|
|
27
28
|
namespace?: string | undefined;
|
|
28
29
|
managedFields?: any;
|
|
29
30
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const useApisResourceTypes: ({
|
|
2
|
-
|
|
1
|
+
export declare const useApisResourceTypes: ({ cluster }: {
|
|
2
|
+
cluster: string;
|
|
3
3
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
4
4
|
apiVersion: string;
|
|
5
5
|
kind: string;
|
|
@@ -15,8 +15,8 @@ export declare const useApisResourceTypes: ({ clusterName }: {
|
|
|
15
15
|
};
|
|
16
16
|
}[];
|
|
17
17
|
}, Error>;
|
|
18
|
-
export declare const useApiResourceTypesByGroup: ({
|
|
19
|
-
|
|
18
|
+
export declare const useApiResourceTypesByGroup: ({ cluster, apiGroup, apiVersion, }: {
|
|
19
|
+
cluster: string;
|
|
20
20
|
apiGroup: string;
|
|
21
21
|
apiVersion: string;
|
|
22
22
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { TBuiltinResources } from '../localTypes/k8s';
|
|
2
|
-
export declare const useBuiltinResources: ({
|
|
3
|
-
|
|
2
|
+
export declare const useBuiltinResources: ({ cluster, namespace, plural, name, labels, fields, limit, refetchInterval, isEnabled, }: {
|
|
3
|
+
cluster: string;
|
|
4
4
|
namespace?: string | undefined;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
plural: string;
|
|
6
|
+
name?: string | undefined;
|
|
7
7
|
labels?: string[] | undefined;
|
|
8
8
|
fields?: string[] | undefined;
|
|
9
9
|
limit: string | null;
|
|
10
10
|
refetchInterval?: number | false | undefined;
|
|
11
11
|
isEnabled?: boolean | undefined;
|
|
12
12
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TBuiltinResources, Error>;
|
|
13
|
-
export declare const useBuiltinResourceSingle: ({
|
|
14
|
-
|
|
13
|
+
export declare const useBuiltinResourceSingle: ({ cluster, namespace, plural, name, refetchInterval, }: {
|
|
14
|
+
cluster: string;
|
|
15
15
|
namespace?: string | undefined;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
plural: string;
|
|
17
|
+
name: string;
|
|
18
18
|
refetchInterval?: number | false | undefined;
|
|
19
19
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
20
20
|
metadata: {
|
|
21
21
|
name: string;
|
|
22
22
|
creationTimestamp: string;
|
|
23
|
+
uid?: string | undefined;
|
|
23
24
|
namespace?: string | undefined;
|
|
24
25
|
managedFields?: any;
|
|
25
26
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TBuiltinResourceTypeList } from '../localTypes/k8s';
|
|
2
|
-
export declare const useBuiltinResourceTypes: ({
|
|
3
|
-
|
|
2
|
+
export declare const useBuiltinResourceTypes: ({ cluster }: {
|
|
3
|
+
cluster: string;
|
|
4
4
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TBuiltinResourceTypeList, Error>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const useCrdData: ({
|
|
2
|
-
|
|
1
|
+
export declare const useCrdData: ({ cluster, apiExtensionVersion, crdName, }: {
|
|
2
|
+
cluster: string;
|
|
3
3
|
apiExtensionVersion: string;
|
|
4
4
|
crdName: string;
|
|
5
5
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TJSON } from '../localTypes/JSON';
|
|
2
|
-
export declare const useCrdResources: <T = TJSON[]>({
|
|
3
|
-
|
|
2
|
+
export declare const useCrdResources: <T = TJSON[]>({ cluster, namespace, apiGroup, apiVersion, crdName, refetchInterval, isEnabled, }: {
|
|
3
|
+
cluster: string;
|
|
4
4
|
namespace?: string | undefined;
|
|
5
5
|
apiGroup: string;
|
|
6
6
|
apiVersion: string;
|
|
@@ -19,18 +19,19 @@ export declare const useCrdResources: <T = TJSON[]>({ clusterName, namespace, ap
|
|
|
19
19
|
reason?: string | undefined;
|
|
20
20
|
} | undefined;
|
|
21
21
|
}, Error>;
|
|
22
|
-
export declare const useCrdResourceSingle: ({
|
|
23
|
-
|
|
22
|
+
export declare const useCrdResourceSingle: ({ cluster, namespace, apiGroup, apiVersion, crdName, name, refetchInterval, }: {
|
|
23
|
+
cluster: string;
|
|
24
24
|
namespace?: string | undefined;
|
|
25
25
|
apiGroup: string;
|
|
26
26
|
apiVersion: string;
|
|
27
27
|
crdName: string;
|
|
28
|
-
|
|
28
|
+
name: string;
|
|
29
29
|
refetchInterval?: number | false | undefined;
|
|
30
30
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
31
31
|
metadata: {
|
|
32
32
|
name: string;
|
|
33
33
|
creationTimestamp: string;
|
|
34
|
+
uid?: string | undefined;
|
|
34
35
|
namespace?: string | undefined;
|
|
35
36
|
managedFields?: any;
|
|
36
37
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { useK8sSmartResource } from './useK8sSmartResource';
|
|
2
|
+
export type { TUseK8sSmartResourceParams } from './useK8sSmartResourceWithoutKinds';
|
|
3
|
+
export { useManyK8sSmartResource } from './useManyK8sSmartResource';
|
|
4
|
+
export { useSmartResourceParams } from './useSmartResourceParams';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type TUseK8sSmartResourceParams } from './useK8sSmartResourceWithoutKinds';
|
|
2
|
+
/**
|
|
3
|
+
* If T has an `{ items: U[] }` field, we add `kind?: string` and `apiVersion?: string` to each item.
|
|
4
|
+
* Otherwise T is left unchanged.
|
|
5
|
+
*/
|
|
6
|
+
type TWithKindAndApiVersionOnItems<T> = T extends {
|
|
7
|
+
items: (infer U)[];
|
|
8
|
+
} ? Omit<T, 'items'> & {
|
|
9
|
+
items: (U & {
|
|
10
|
+
kind?: string;
|
|
11
|
+
apiVersion?: string;
|
|
12
|
+
})[];
|
|
13
|
+
} : T;
|
|
14
|
+
/**
|
|
15
|
+
* Same params as useK8sSmartResource.
|
|
16
|
+
* Returns the same shape as useK8sSmartResource,
|
|
17
|
+
* but if `data.items` exists, items are enriched with `kind`.
|
|
18
|
+
*/
|
|
19
|
+
export declare const useK8sSmartResource: <T>(params: TUseK8sSmartResourceParams<T>) => {
|
|
20
|
+
data: TWithKindAndApiVersionOnItems<T> | undefined;
|
|
21
|
+
isLoading: boolean;
|
|
22
|
+
isError: boolean;
|
|
23
|
+
error: string | Error | import("axios").AxiosError<unknown, any> | undefined;
|
|
24
|
+
_meta?: {
|
|
25
|
+
used: "disabled" | "list" | "watch" | "verbs-loading" | "verbs-error";
|
|
26
|
+
} | undefined;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AxiosError } from 'axios';
|
|
2
|
-
import { TSingleResource } from '
|
|
3
|
-
type
|
|
2
|
+
import { TSingleResource } from '../../localTypes/k8s';
|
|
3
|
+
export type TUseK8sSmartResourceParams<T> = {
|
|
4
4
|
cluster: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
apiGroup?: string;
|
|
6
|
+
apiVersion: string;
|
|
7
7
|
plural: string;
|
|
8
8
|
namespace?: string;
|
|
9
9
|
fieldSelector?: string;
|
|
@@ -25,5 +25,5 @@ type SmartResult<T> = {
|
|
|
25
25
|
used: 'list' | 'watch' | 'disabled' | 'verbs-loading' | 'verbs-error';
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
export declare const
|
|
28
|
+
export declare const useK8sSmartResourceWithoutKinds: <T>({ cluster, apiGroup, apiVersion, plural, namespace, fieldSelector, labelSelector, isEnabled, listRefetchInterval, limit, mapListWatchState, }: TUseK8sSmartResourceParams<T>) => SmartResult<T>;
|
|
29
29
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TUseK8sSmartResourceParams } from './useK8sSmartResourceWithoutKinds';
|
|
2
|
+
export declare const useManyK8sSmartResource: <T>(paramsList: readonly TUseK8sSmartResourceParams<T>[]) => {
|
|
3
|
+
data: (T extends {
|
|
4
|
+
items: (infer U)[];
|
|
5
|
+
} ? Omit<T, "items"> & {
|
|
6
|
+
items: (U & {
|
|
7
|
+
kind?: string | undefined;
|
|
8
|
+
apiVersion?: string | undefined;
|
|
9
|
+
})[];
|
|
10
|
+
} : T) | undefined;
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
isError: boolean;
|
|
13
|
+
error: string | Error | import("axios").AxiosError<unknown, any> | undefined;
|
|
14
|
+
_meta?: {
|
|
15
|
+
used: "disabled" | "list" | "watch" | "verbs-loading" | "verbs-error";
|
|
16
|
+
} | undefined;
|
|
17
|
+
}[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TUseK8sSmartResourceParams } from './useK8sSmartResourceWithoutKinds';
|
|
2
|
+
/**
|
|
3
|
+
* A single hook whose return value is a plain constant array,
|
|
4
|
+
* safe to pass to `useManyK8sSmartResource`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useSmartResourceParams: ({ cluster, namespace }: {
|
|
7
|
+
cluster: string;
|
|
8
|
+
namespace?: string | undefined;
|
|
9
|
+
}) => TUseK8sSmartResourceParams<unknown>[];
|
|
@@ -21,7 +21,16 @@ type TDeltaFrame = {
|
|
|
21
21
|
type: TWatchPhase;
|
|
22
22
|
item: TSingleResource;
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
type TConsoleFrame = {
|
|
25
|
+
type: 'SERVER_LOG';
|
|
26
|
+
level: 'info' | 'warn' | 'error';
|
|
27
|
+
message: string;
|
|
28
|
+
};
|
|
29
|
+
type TInitialError = {
|
|
30
|
+
type: 'INITIAL_ERROR';
|
|
31
|
+
message: string;
|
|
32
|
+
};
|
|
33
|
+
export type TServerFrame = TInitialFrame | TPageFrame | TPageErrorFrame | TDeltaFrame | TConsoleFrame | TInitialError;
|
|
25
34
|
export type TScrollMsg = {
|
|
26
35
|
type: 'SCROLL';
|
|
27
36
|
continue: string;
|
|
@@ -52,6 +52,7 @@ export type TUseListWatchReturn = {
|
|
|
52
52
|
continueToken?: string;
|
|
53
53
|
status: TConnStatus;
|
|
54
54
|
lastError?: string;
|
|
55
|
+
hasInitial: boolean;
|
|
55
56
|
setPaused: (v: boolean) => void;
|
|
56
57
|
setIgnoreRemove: (v: boolean) => void;
|
|
57
58
|
/** Ask the server for the next page (if any) */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const usePermissions: ({
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export declare const usePermissions: ({ cluster, namespace, apiGroup, plural, verb, name, refetchInterval, enabler, }: {
|
|
2
|
+
cluster: string;
|
|
3
|
+
apiGroup?: string | undefined;
|
|
4
|
+
plural: string;
|
|
5
5
|
namespace?: string | undefined;
|
|
6
6
|
name?: string | undefined;
|
|
7
7
|
verb: 'create' | 'delete' | 'patch' | 'update';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export { usePermissions } from './hooks/usePermissions';
|
|
|
26
26
|
export { useListWatch, useInfiniteSentinel } from './hooks/useListThenWatch';
|
|
27
27
|
export type { TConnStatus, TUseListWatchQuery, TUseListWatchOptions, TUseListWatchReturn, } from './hooks/useListThenWatch';
|
|
28
28
|
export { useK8sVerbs } from './hooks/useK8sVerbs';
|
|
29
|
-
export { useK8sSmartResource } from './hooks/useK8sSmartResource';
|
|
29
|
+
export { useK8sSmartResource, useManyK8sSmartResource, useSmartResourceParams } from './hooks/useK8sSmartResource';
|
|
30
30
|
export type { TRequestError } from './localTypes/api';
|
|
31
31
|
export type { TClusterList } from './localTypes/clusterList';
|
|
32
32
|
export type { TItemTypeMap, TRenderableItem, TRendererComponents, TFactoryDataK8s, TFactoryResponse, TFactoryResource, } from './localTypes/dynamicRender';
|
|
@@ -40,3 +40,4 @@ export type { TFilterIfApiInstanceNamespaceScopedReq, TFilterIfApiInstanceNamesp
|
|
|
40
40
|
export type { TVersionEntry, TKindItem, TKindIndex } from './localTypes/bff/search';
|
|
41
41
|
export type { TGetDerefedSwaggerRes } from './localTypes/bff/swagger';
|
|
42
42
|
export type { TKindWithVersion } from './localTypes/search';
|
|
43
|
+
export type { TNavigationResource } from './localTypes/navigations';
|
|
@@ -5,24 +5,24 @@ import { TFormPrefill } from '../formExtensions';
|
|
|
5
5
|
export type TPrepareFormReq = {
|
|
6
6
|
data: {
|
|
7
7
|
type: 'builtin';
|
|
8
|
-
|
|
8
|
+
plural: string;
|
|
9
9
|
prefillValuesSchema?: TJSON;
|
|
10
10
|
prefillValueNamespaceOnly?: string;
|
|
11
11
|
} | {
|
|
12
12
|
type: 'apis';
|
|
13
13
|
apiGroup: string;
|
|
14
14
|
apiVersion: string;
|
|
15
|
-
|
|
15
|
+
plural: string;
|
|
16
16
|
prefillValuesSchema?: TJSON;
|
|
17
17
|
prefillValueNamespaceOnly?: string;
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
cluster: string;
|
|
20
20
|
customizationId?: string;
|
|
21
21
|
};
|
|
22
22
|
export type TPrepareFormRes = {
|
|
23
23
|
result: 'error';
|
|
24
24
|
error: string | undefined;
|
|
25
|
-
|
|
25
|
+
kind: string | undefined;
|
|
26
26
|
fallbackToManualMode: true;
|
|
27
27
|
isNamespaced: boolean;
|
|
28
28
|
} | {
|
|
@@ -35,7 +35,7 @@ export type TPrepareFormRes = {
|
|
|
35
35
|
expandedPaths: string[][] | undefined;
|
|
36
36
|
persistedPaths: string[][] | undefined;
|
|
37
37
|
sortPaths: string[][] | undefined;
|
|
38
|
-
|
|
38
|
+
kind: string | undefined;
|
|
39
39
|
isNamespaced: boolean;
|
|
40
40
|
formPrefills?: TFormPrefill;
|
|
41
41
|
namespacesData?: string[];
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { TApiGroupResourceTypeList, TBuiltinResourceTypeList } from '../k8s';
|
|
2
2
|
export type TCheckIfApiInstanceNamespaceScopedReq = {
|
|
3
|
-
|
|
3
|
+
plural: string;
|
|
4
4
|
apiGroup: string;
|
|
5
5
|
apiVersion: string;
|
|
6
|
-
|
|
6
|
+
cluster: string;
|
|
7
7
|
};
|
|
8
8
|
export type TCheckIfApiInstanceNamespaceScopedRes = {
|
|
9
9
|
isClusterWide: boolean;
|
|
10
10
|
isNamespaceScoped: boolean;
|
|
11
11
|
};
|
|
12
12
|
export type TCheckIfBuiltInInstanceNamespaceScopedReq = {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
plural: string;
|
|
14
|
+
cluster: string;
|
|
15
15
|
};
|
|
16
16
|
export type TCheckIfBuiltInInstanceNamespaceScopedRes = {
|
|
17
17
|
isClusterWide: boolean;
|
|
@@ -22,12 +22,12 @@ export type TFilterIfApiInstanceNamespaceScopedReq = {
|
|
|
22
22
|
data?: TApiGroupResourceTypeList;
|
|
23
23
|
apiGroup: string;
|
|
24
24
|
apiVersion: string;
|
|
25
|
-
|
|
25
|
+
cluster: string;
|
|
26
26
|
};
|
|
27
27
|
export type TFilterIfApiInstanceNamespaceScopedRes = TApiGroupResourceTypeList['resources'] | undefined;
|
|
28
28
|
export type TFilterIfBuiltInInstanceNamespaceScopedReq = {
|
|
29
29
|
namespace?: string;
|
|
30
30
|
data?: TBuiltinResourceTypeList;
|
|
31
|
-
|
|
31
|
+
cluster: string;
|
|
32
32
|
};
|
|
33
33
|
export type TFilterIfBuiltInInstanceNamespaceScopedRes = TBuiltinResourceTypeList['resources'] | undefined;
|
|
@@ -3,9 +3,10 @@ export type TPrepareTableReq = {
|
|
|
3
3
|
customizationId?: string;
|
|
4
4
|
tableMappingsReplaceValues?: Record<string, string | undefined>;
|
|
5
5
|
forceDefaultAdditionalPrinterColumns?: TAdditionalPrinterColumns;
|
|
6
|
+
cluster: string;
|
|
6
7
|
namespace?: string;
|
|
7
8
|
k8sResource?: {
|
|
8
|
-
|
|
9
|
+
plural: string;
|
|
9
10
|
apiGroup?: string;
|
|
10
11
|
apiVersion: string;
|
|
11
12
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { TUseK8sSmartResourceParams } from '../hooks/useK8sSmartResource';
|
|
2
3
|
export type TItemTypeMap = Record<string, unknown>;
|
|
3
4
|
export type TRenderableItem<T extends TItemTypeMap> = {
|
|
4
5
|
[K in keyof T]: {
|
|
@@ -15,7 +16,7 @@ export type TRendererComponents<T extends TItemTypeMap> = {
|
|
|
15
16
|
};
|
|
16
17
|
export type TFactoryDataK8s<T extends TItemTypeMap> = {
|
|
17
18
|
key: string;
|
|
18
|
-
urlsToFetch: string[];
|
|
19
|
+
urlsToFetch: (string | TUseK8sSmartResourceParams<any>)[];
|
|
19
20
|
withScrollableMainContentCard?: boolean;
|
|
20
21
|
data: TRenderableItem<T>[];
|
|
21
22
|
sidebarTags?: string[];
|