@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.7 → 0.0.1-alpha.71
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 +46179 -38348
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +46991 -458
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/style.css +218 -0
- package/dist/types/api/bff/scopes/checkScopes.d.ts +11 -0
- package/dist/types/api/bff/scopes/filterScopes.d.ts +22 -0
- package/dist/types/api/bff/swagger/getSwagger.d.ts +5 -0
- package/dist/types/api/forms.d.ts +12 -0
- package/dist/types/api/getApiResource.d.ts +17 -0
- package/dist/types/api/getApiResourceTypes.d.ts +9 -0
- package/dist/types/api/getBuiltinResource.d.ts +13 -0
- package/dist/types/api/getBuiltinResourceTypes.d.ts +4 -0
- package/dist/types/api/getClusterList.d.ts +3 -0
- package/dist/types/api/getCrdData.d.ts +6 -0
- package/dist/types/api/getCrdResource.d.ts +16 -0
- package/dist/types/api/permissions.d.ts +14 -0
- package/dist/types/components/atoms/ContentCard/ContentCard.d.ts +9 -0
- package/dist/types/components/atoms/ContentCard/index.d.ts +2 -0
- package/dist/types/components/atoms/ContentCard/styled.d.ts +14 -0
- package/dist/types/components/atoms/DeleteModal/DeleteModal.d.ts +7 -0
- package/dist/types/components/atoms/DeleteModal/index.d.ts +2 -0
- package/dist/types/components/atoms/DeleteModalMany/DeleteModalMany.d.ts +9 -0
- package/dist/types/components/atoms/DeleteModalMany/index.d.ts +2 -0
- package/dist/types/components/atoms/Icons/BackToDefaultIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/CustomFeedBackIcons.d.ts +6 -0
- package/dist/types/components/atoms/Icons/DeleteIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/DownIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/EditIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/LockedIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/MinusIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/PlusIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/SuccessIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/UnlockedIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/UpIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/index.d.ts +11 -0
- package/dist/types/components/atoms/Spacer/Spacer.d.ts +7 -0
- package/dist/types/components/atoms/Spacer/index.d.ts +2 -0
- package/dist/types/components/atoms/TreeWithSearch/TreeWithSearch.d.ts +7 -0
- package/dist/types/components/atoms/TreeWithSearch/index.d.ts +2 -0
- package/dist/types/components/atoms/TreeWithSearch/styled.d.ts +276 -0
- package/dist/types/components/atoms/index.d.ts +6 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/ArrayInsideContainer/ArrayInsideContainer.d.ts +4 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/ArrayInsideContainer/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/ArrayInsideContainer/styled.d.ts +9 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/CustomCollapse/CustomCollapse.d.ts +13 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/CustomCollapse/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/CustomCollapse/styled.d.ts +288 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/CustomSizeTitle/CustomSizeTitle.d.ts +6 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/CustomSizeTitle/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/DebugNameViewer/DebugNameViewer.d.ts +11 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/DebugNameViewer/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/HeightContainer/HeightContainer.d.ts +6 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/HeightContainer/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/HiddenContainer/HiddenContainer.d.ts +8 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/HiddenContainer/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/PersistedCheckbox/PersistedCheckbox.d.ts +9 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/PersistedCheckbox/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/PossibleHiddenContainer/PossibleHiddenContainer.d.ts +6 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/PossibleHiddenContainer/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/ResetedFormItem/ResetedFormItem.d.ts +49 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/ResetedFormItem/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/index.d.ts +9 -0
- package/dist/types/components/molecules/BlackholeForm/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormArrayHeader/FormArrayHeader.d.ts +16 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormArrayHeader/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/FormBooleanInput.d.ts +16 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/styled.d.ts +548 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormEnumStringInput/FormEnumStringInput.d.ts +20 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormEnumStringInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/FormListInput.d.ts +22 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/FormNamespaceInput.d.ts +12 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNumberInput/FormNumberInput.d.ts +20 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNumberInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormObjectFromSwagger/FormObjectFromSwagger.d.ts +35 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormObjectFromSwagger/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/FormRangeInput.d.ts +19 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/molecules/RangeInput/RangeInput.d.ts +19 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/molecules/RangeInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/molecules/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/utils.d.ts +18 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/FormStringInput.d.ts +19 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditor/YamlEditor.d.ts +8 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditor/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditor/styled.d.ts +276 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditorSingleton/YamlEditorSingleton.d.ts +17 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditorSingleton/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditorSingleton/styled.d.ts +286 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/index.d.ts +11 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts +33 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/context.d.ts +27 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/index.d.ts +2 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/styled.d.ts +583 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utils.d.ts +192 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utilsErrorHandler.d.ts +16 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/BlackholeFormDataProvider.d.ts +36 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/index.d.ts +2 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/index.d.ts +2 -0
- package/dist/types/components/molecules/EnrichedTable/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/EnrichedTable.d.ts +34 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/FilterDropdown/FilterDropdown.d.ts +11 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/FilterDropdown/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/ShortenedTextWithTooltip/ShortenedTextWithTooltip.d.ts +8 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/ShortenedTextWithTooltip/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/ShortenedTextWithTooltip/styled.d.ts +9 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TableComponents/TableComponents.d.ts +284 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TableComponents/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TextAlignContainer/TextAlignContainer.d.ts +6 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TextAlignContainer/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TinyButton/TinyButton.d.ts +314 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TinyButton/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TrimmedTags/TrimmedTags.d.ts +7 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TrimmedTags/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/index.d.ts +6 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/index.d.ts +3 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/types.d.ts +16 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/utils.d.ts +17 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/EnrichedTableProvider.d.ts +47 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/index.d.ts +2 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/utils.d.ts +25 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/index.d.ts +2 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/ManageableBreadcrumbs.d.ts +5 -9
- package/dist/types/components/molecules/ManageableBreadcrumbs/molecules/CollapsibleBreadcrumb/CollapsibleBreadcrumb.d.ts +7 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/molecules/CollapsibleBreadcrumb/index.d.ts +1 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/molecules/CollapsibleBreadcrumb/styled.d.ts +820 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/molecules/index.d.ts +1 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/styled.d.ts +3 -3
- package/dist/types/components/molecules/ManageableBreadcrumbs/types.d.ts +1 -1
- package/dist/types/components/molecules/ManageableBreadcrumbs/utils.d.ts +3 -10
- package/dist/types/components/molecules/ManageableSidebar/ManageableSidebar.d.ts +22 -0
- package/dist/types/components/molecules/ManageableSidebar/index.d.ts +3 -0
- package/dist/types/components/molecules/ManageableSidebar/styled.d.ts +10 -0
- package/dist/types/components/molecules/ManageableSidebar/types.d.ts +19 -0
- package/dist/types/components/molecules/ManageableSidebar/utils.d.ts +16 -0
- package/dist/types/components/molecules/MarketPlace/MarketPlace.d.ts +11 -0
- package/dist/types/components/molecules/MarketPlace/atoms/AddCard/AddCard.d.ts +6 -0
- package/dist/types/components/molecules/MarketPlace/atoms/AddCard/index.d.ts +1 -0
- package/dist/types/components/molecules/MarketPlace/atoms/AddCard/styled.d.ts +297 -0
- package/dist/types/components/molecules/MarketPlace/atoms/index.d.ts +1 -0
- package/dist/types/components/molecules/MarketPlace/index.d.ts +4 -0
- package/dist/types/components/molecules/MarketPlace/molecules/AddEditFormModal/AddEditFormModal.d.ts +17 -0
- package/dist/types/components/molecules/MarketPlace/molecules/AddEditFormModal/index.d.ts +1 -0
- package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/MarketplaceCard.d.ts +12 -0
- package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/index.d.ts +1 -0
- package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/styled.d.ts +1925 -0
- package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/utils.d.ts +28 -0
- package/dist/types/components/molecules/MarketPlace/molecules/SearchTextInput/SearchTextInput.d.ts +8 -0
- package/dist/types/components/molecules/MarketPlace/molecules/SearchTextInput/index.d.ts +1 -0
- package/dist/types/components/molecules/MarketPlace/molecules/index.d.ts +3 -0
- package/dist/types/components/molecules/MarketPlace/styled.d.ts +276 -0
- package/dist/types/components/molecules/ProjectInfoCard/ProjectInfoCard.d.ts +15 -0
- package/dist/types/components/molecules/ProjectInfoCard/index.d.ts +2 -0
- package/dist/types/components/molecules/ProjectInfoCard/molecules/DropdownAccessGroups/DropdownAccessGroups.d.ts +6 -0
- package/dist/types/components/molecules/ProjectInfoCard/molecules/DropdownAccessGroups/index.d.ts +1 -0
- package/dist/types/components/molecules/ProjectInfoCard/molecules/DropdownActions/DropdownActions.d.ts +7 -0
- package/dist/types/components/molecules/ProjectInfoCard/molecules/DropdownActions/index.d.ts +1 -0
- package/dist/types/components/molecules/ProjectInfoCard/molecules/index.d.ts +2 -0
- package/dist/types/components/molecules/ProjectInfoCard/styled.d.ts +548 -0
- package/dist/types/components/molecules/Terminals/NodeTerminal/NodeTerminal.d.ts +7 -0
- package/dist/types/components/molecules/Terminals/NodeTerminal/index.d.ts +2 -0
- package/dist/types/components/molecules/Terminals/NodeTerminal/molecules/XTerminal/XTerminal.d.ts +10 -0
- package/dist/types/components/molecules/Terminals/NodeTerminal/molecules/XTerminal/index.d.ts +1 -0
- package/dist/types/components/molecules/Terminals/NodeTerminal/molecules/XTerminal/styled.d.ts +17 -0
- package/dist/types/components/molecules/Terminals/NodeTerminal/molecules/index.d.ts +1 -0
- package/dist/types/components/molecules/Terminals/NodeTerminal/styled.d.ts +276 -0
- package/dist/types/components/molecules/Terminals/PodLogs/PodLogs.d.ts +9 -0
- package/dist/types/components/molecules/Terminals/PodLogs/index.d.ts +2 -0
- package/dist/types/components/molecules/Terminals/PodLogs/molecules/XTerminal/XTerminal.d.ts +11 -0
- package/dist/types/components/molecules/Terminals/PodLogs/molecules/XTerminal/index.d.ts +1 -0
- package/dist/types/components/molecules/Terminals/PodLogs/molecules/XTerminal/styled.d.ts +13 -0
- package/dist/types/components/molecules/Terminals/PodLogs/molecules/index.d.ts +1 -0
- package/dist/types/components/molecules/Terminals/PodLogs/styled.d.ts +276 -0
- package/dist/types/components/molecules/Terminals/PodLogsMonaco/PodLogsMonaco.d.ts +10 -0
- package/dist/types/components/molecules/Terminals/PodLogsMonaco/index.d.ts +2 -0
- package/dist/types/components/molecules/Terminals/PodLogsMonaco/molecules/MonacoEditor/MonacoEditor.d.ts +11 -0
- package/dist/types/components/molecules/Terminals/PodLogsMonaco/molecules/MonacoEditor/index.d.ts +1 -0
- package/dist/types/components/molecules/Terminals/PodLogsMonaco/molecules/MonacoEditor/styled.d.ts +285 -0
- package/dist/types/components/molecules/Terminals/PodLogsMonaco/molecules/index.d.ts +1 -0
- package/dist/types/components/molecules/Terminals/PodLogsMonaco/styled.d.ts +276 -0
- package/dist/types/components/molecules/Terminals/PodTerminal/PodTerminal.d.ts +9 -0
- package/dist/types/components/molecules/Terminals/PodTerminal/index.d.ts +2 -0
- package/dist/types/components/molecules/Terminals/PodTerminal/molecules/XTerminal/XTerminal.d.ts +11 -0
- package/dist/types/components/molecules/Terminals/PodTerminal/molecules/XTerminal/index.d.ts +1 -0
- package/dist/types/components/molecules/Terminals/PodTerminal/molecules/XTerminal/styled.d.ts +13 -0
- package/dist/types/components/molecules/Terminals/PodTerminal/molecules/index.d.ts +1 -0
- package/dist/types/components/molecules/Terminals/PodTerminal/styled.d.ts +276 -0
- package/dist/types/components/molecules/Terminals/index.d.ts +4 -0
- package/dist/types/components/molecules/index.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/DynamicComponents.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdButton/AntdButton.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdButton/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdCard/AntdCard.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdCard/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdCol/AntdCol.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdCol/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdFlex/AntdFlex.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdFlex/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdRow/AntdRow.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdRow/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdTabs/AntdTabs.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdTabs/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdText/AntdText.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdText/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ContentCard/ContentCard.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ContentCard/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/DefaultDiv/DefaultDiv.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/DefaultDiv/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/EnrichedTable/EnrichedTable.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/EnrichedTable/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/EnrichedTable/utils.d.ts +9 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/MarketplaceCard/MarketplaceCard.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/MarketplaceCard/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/MultiQuery/MultiQuery.d.ts +5 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/MultiQuery/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/NodeTerminal/NodeTerminal.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/NodeTerminal/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/NodeTerminal/utils.d.ts +8 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ParsedText/ParsedText.d.ts +5 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ParsedText/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PartsOfUrl/PartsOfUrl.d.ts +5 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PartsOfUrl/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PodLogs/PodLogs.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PodLogs/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PodLogs/utils.d.ts +18 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PodTerminal/PodTerminal.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PodTerminal/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PodTerminal/utils.d.ts +18 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ProjectInfoCard/ProjectInfoCard.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ProjectInfoCard/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/SidebarProvider/SidebarProvider.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/SidebarProvider/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Spacer/Spacer.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Spacer/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/StatusText/StatusText.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/StatusText/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/index.d.ts +21 -0
- package/dist/types/components/organisms/DynamicComponents/types.d.ts +121 -0
- package/dist/types/components/organisms/DynamicRenderer/DynamicRenderer.d.ts +7 -0
- package/dist/types/components/organisms/DynamicRenderer/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/DynamicRendererWithProviders.d.ts +7 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/multiQueryProvider.d.ts +17 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/partsOfUrlContext.d.ts +9 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/themeContext.d.ts +8 -0
- package/dist/types/components/organisms/index.d.ts +3 -0
- package/dist/types/hooks/useApiResource.d.ts +28 -0
- package/dist/types/hooks/useApisResourceTypes.d.ts +30 -0
- package/dist/types/hooks/useBuiltinResource.d.ts +24 -0
- package/dist/types/hooks/useBuiltinResourceTypes.d.ts +4 -0
- package/dist/types/hooks/useClusterList.d.ts +3 -0
- package/dist/types/hooks/useCrdData.d.ts +25 -0
- package/dist/types/hooks/useCrdResource.d.ts +38 -0
- package/dist/types/hooks/useDirectUnknownResource.d.ts +2 -1
- package/dist/types/hooks/usePermissions.d.ts +13 -0
- package/dist/types/index.d.ts +34 -0
- package/dist/types/localTypes/JSON.d.ts +3 -0
- package/dist/types/localTypes/api.d.ts +8 -0
- package/dist/types/localTypes/bff/form.d.ts +52 -0
- package/dist/types/localTypes/bff/scopes.d.ts +33 -0
- package/dist/types/localTypes/bff/swagger.d.ts +2 -0
- package/dist/types/localTypes/bff/table.d.ts +15 -0
- package/dist/types/localTypes/clusterList.d.ts +7 -0
- package/dist/types/localTypes/dynamicRender.d.ts +31 -0
- package/dist/types/localTypes/form.d.ts +26 -0
- package/dist/types/localTypes/formExtensions.d.ts +52 -0
- package/dist/types/localTypes/k8s.d.ts +96 -0
- package/dist/types/localTypes/marketplace.d.ts +27 -0
- package/dist/types/localTypes/richTable.d.ts +17 -0
- package/dist/types/utils/createContextFactory/createContextFactory.d.ts +7 -0
- package/dist/types/utils/createContextFactory/index.d.ts +1 -0
- package/dist/types/utils/filterSelectOptions/filterSelectOptions.d.ts +2 -0
- package/dist/types/utils/filterSelectOptions/index.d.ts +1 -0
- package/dist/types/utils/getAllPathsFromObj/getAllPathsFromObj.d.ts +3 -0
- package/dist/types/utils/getAllPathsFromObj/index.d.ts +1 -0
- package/dist/types/utils/getGroupsByCategory/getGroupsByCategory.d.ts +53 -0
- package/dist/types/utils/getGroupsByCategory/index.d.ts +1 -0
- package/dist/types/utils/getPrefixSubArrays/getPrefixSubArrays.d.ts +1 -0
- package/dist/types/utils/getPrefixSubArrays/index.d.ts +1 -0
- package/dist/types/utils/getStringByName/getStringByName.d.ts +2 -0
- package/dist/types/utils/getStringByName/index.d.ts +1 -0
- package/dist/types/utils/groupsToTreeData/groupsToTreeData.d.ts +7 -0
- package/dist/types/utils/groupsToTreeData/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts +12 -0
- package/dist/types/utils/isFlatObject/index.d.ts +1 -0
- package/dist/types/utils/isFlatObject/isFlatObject.d.ts +1 -0
- package/dist/types/utils/nestedStringsArrayInclude/index.d.ts +1 -0
- package/dist/types/utils/nestedStringsArrayInclude/nestedStringsArrayInclude.d.ts +1 -0
- package/dist/types/utils/normalizeValuesForQuotas/index.d.ts +1 -0
- package/dist/types/utils/normalizeValuesForQuotas/normalizeValuesForQuotas.d.ts +2 -0
- package/dist/types/utils/parseForQuotaValues/index.d.ts +1 -0
- package/dist/types/utils/parseForQuotaValues/parseForQuotaValues.d.ts +4 -0
- package/dist/types/utils/prepareTemplate/index.d.ts +1 -0
- package/dist/types/utils/prepareTemplate/prepareTemplate.d.ts +4 -0
- package/dist/types/utils/prepareUrlsToFetchForDynamicRenderer/index.d.ts +1 -0
- package/dist/types/utils/prepareUrlsToFetchForDynamicRenderer/prepareUrlsToFetchForDynamicRenderer.d.ts +4 -0
- package/package.json +31 -16
- /package/dist/types/{components/molecules/ManageableBreadcrumbs → utils/prepareTemplate}/prepareTemplate.test.d.ts +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './AntdText';
|
|
2
|
+
export * from './AntdCard';
|
|
3
|
+
export * from './AntdFlex';
|
|
4
|
+
export * from './AntdRow';
|
|
5
|
+
export * from './AntdCol';
|
|
6
|
+
export * from './AntdTabs';
|
|
7
|
+
export * from './AntdButton';
|
|
8
|
+
export * from './PartsOfUrl';
|
|
9
|
+
export * from './MultiQuery';
|
|
10
|
+
export * from './ParsedText';
|
|
11
|
+
export * from './ProjectInfoCard';
|
|
12
|
+
export * from './MarketplaceCard';
|
|
13
|
+
export * from './ContentCard';
|
|
14
|
+
export * from './Spacer';
|
|
15
|
+
export * from './DefaultDiv';
|
|
16
|
+
export * from './StatusText';
|
|
17
|
+
export * from './SidebarProvider';
|
|
18
|
+
export * from './EnrichedTable';
|
|
19
|
+
export * from './PodTerminal';
|
|
20
|
+
export * from './NodeTerminal';
|
|
21
|
+
export * from './PodLogs';
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CardProps, FlexProps, RowProps, ColProps, ButtonProps, TabsProps } from 'antd';
|
|
3
|
+
import type { TextProps } from 'antd/es/typography/Text';
|
|
4
|
+
import { TContentCardProps, TSpacerProps } from '../../atoms';
|
|
5
|
+
import { TManageableSidebarWithDataProviderProps, TEnrichedTableProviderProps } from '../../molecules';
|
|
6
|
+
export type TDynamicComponentsAppTypeMap = {
|
|
7
|
+
DefaultDiv: {
|
|
8
|
+
id: number;
|
|
9
|
+
} & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
10
|
+
antdText: {
|
|
11
|
+
id: number;
|
|
12
|
+
text: string;
|
|
13
|
+
} & Omit<TextProps, 'id' | 'children'>;
|
|
14
|
+
antdCard: {
|
|
15
|
+
id: number;
|
|
16
|
+
} & Omit<CardProps, 'id'>;
|
|
17
|
+
antdFlex: {
|
|
18
|
+
id: number;
|
|
19
|
+
} & Omit<FlexProps, 'id' | 'children'>;
|
|
20
|
+
antdRow: {
|
|
21
|
+
id: number;
|
|
22
|
+
} & Omit<RowProps, 'id' | 'children'>;
|
|
23
|
+
antdCol: {
|
|
24
|
+
id: number;
|
|
25
|
+
} & Omit<ColProps, 'id' | 'children'>;
|
|
26
|
+
antdTabs: {
|
|
27
|
+
id: number;
|
|
28
|
+
} & Omit<TabsProps, 'id' | 'children'>;
|
|
29
|
+
antdButton: {
|
|
30
|
+
id: number;
|
|
31
|
+
text: string;
|
|
32
|
+
} & Omit<ButtonProps, 'id' | 'children'>;
|
|
33
|
+
partsOfUrl: {
|
|
34
|
+
id: number;
|
|
35
|
+
text: string;
|
|
36
|
+
};
|
|
37
|
+
multiQuery: {
|
|
38
|
+
id: number;
|
|
39
|
+
text: string;
|
|
40
|
+
};
|
|
41
|
+
parsedText: {
|
|
42
|
+
id: number;
|
|
43
|
+
text: string;
|
|
44
|
+
};
|
|
45
|
+
ProjectInfoCard: {
|
|
46
|
+
id: number;
|
|
47
|
+
clusterNamePartOfUrl: string;
|
|
48
|
+
namespacePartOfUrl: string;
|
|
49
|
+
baseApiGroup: string;
|
|
50
|
+
baseApiVersion: string;
|
|
51
|
+
baseProjectApiGroup: string;
|
|
52
|
+
baseProjectVersion: string;
|
|
53
|
+
projectResourceName: string;
|
|
54
|
+
mpResourceName: string;
|
|
55
|
+
accessGroups: string[];
|
|
56
|
+
baseprefix?: string;
|
|
57
|
+
};
|
|
58
|
+
MarketplaceCard: {
|
|
59
|
+
id: number;
|
|
60
|
+
clusterNamePartOfUrl: string;
|
|
61
|
+
namespacePartOfUrl: string;
|
|
62
|
+
baseApiGroup: string;
|
|
63
|
+
baseApiVersion: string;
|
|
64
|
+
mpResourceName: string;
|
|
65
|
+
mpResourceKind: string;
|
|
66
|
+
baseprefix?: string;
|
|
67
|
+
};
|
|
68
|
+
ContentCard: {
|
|
69
|
+
id: number;
|
|
70
|
+
} & TContentCardProps;
|
|
71
|
+
Spacer: {
|
|
72
|
+
id: number;
|
|
73
|
+
} & TSpacerProps;
|
|
74
|
+
StatusText: {
|
|
75
|
+
id: number;
|
|
76
|
+
requestIndex: number;
|
|
77
|
+
jsonPath: string;
|
|
78
|
+
criteria: 'equals' | 'notEquals';
|
|
79
|
+
valueToCompare: unknown;
|
|
80
|
+
successText: string;
|
|
81
|
+
errorText: string;
|
|
82
|
+
} & Omit<TextProps, 'id' | 'children'>;
|
|
83
|
+
SidebarProvider: {
|
|
84
|
+
id: number;
|
|
85
|
+
} & Omit<TManageableSidebarWithDataProviderProps, 'replaceValues'>;
|
|
86
|
+
EnrichedTable: {
|
|
87
|
+
id: number;
|
|
88
|
+
fetchUrl: string;
|
|
89
|
+
pathToItems: string[];
|
|
90
|
+
clusterNamePartOfUrl: string;
|
|
91
|
+
labelsSelector?: Record<string, string>;
|
|
92
|
+
labelsSelectorFull?: {
|
|
93
|
+
reqIndex: number;
|
|
94
|
+
pathToLabels: string[];
|
|
95
|
+
};
|
|
96
|
+
fieldSelector?: {
|
|
97
|
+
fieldName: string;
|
|
98
|
+
parsedText: string;
|
|
99
|
+
};
|
|
100
|
+
} & Omit<TEnrichedTableProviderProps, 'tableMappingsReplaceValues' | 'cluster' | 'theme' | 'tableProps' | 'dataItems' | 'withoutControls'>;
|
|
101
|
+
PodTerminal: {
|
|
102
|
+
id: number;
|
|
103
|
+
cluster: string;
|
|
104
|
+
namespace: string;
|
|
105
|
+
podName: string;
|
|
106
|
+
substractHeight?: number;
|
|
107
|
+
};
|
|
108
|
+
NodeTerminal: {
|
|
109
|
+
id: number;
|
|
110
|
+
cluster: string;
|
|
111
|
+
nodeName: string;
|
|
112
|
+
substractHeight?: number;
|
|
113
|
+
};
|
|
114
|
+
PodLogs: {
|
|
115
|
+
id: number;
|
|
116
|
+
cluster: string;
|
|
117
|
+
namespace: string;
|
|
118
|
+
podName: string;
|
|
119
|
+
substractHeight?: number;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { TItemTypeMap, TRenderableItem, TRendererComponents } from '../../../localTypes/dynamicRender';
|
|
3
|
+
export type TDynamicRendererProps<T extends TItemTypeMap> = {
|
|
4
|
+
items: readonly TRenderableItem<T>[];
|
|
5
|
+
components: TRendererComponents<T>;
|
|
6
|
+
};
|
|
7
|
+
export declare const DynamicRenderer: <T extends TItemTypeMap>(props: TDynamicRendererProps<T>) => ReactElement;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { TItemTypeMap } from '../../../localTypes/dynamicRender';
|
|
3
|
+
import { TDynamicRendererProps } from '../DynamicRenderer';
|
|
4
|
+
export declare const DynamicRendererWithProviders: <T extends TItemTypeMap>(props: TDynamicRendererProps<T> & {
|
|
5
|
+
urlsToFetch: string[];
|
|
6
|
+
theme: 'dark' | 'light';
|
|
7
|
+
}) => ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DynamicRendererWithProviders } from './DynamicRendererWithProviders';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
type TDataMap = {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
};
|
|
5
|
+
interface MultiQueryContextType {
|
|
6
|
+
data: TDataMap;
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
isError: boolean;
|
|
9
|
+
errors: (Error | null)[];
|
|
10
|
+
}
|
|
11
|
+
type TMultiQueryProviderProps = {
|
|
12
|
+
urls: string[];
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export declare const MultiQueryProvider: FC<TMultiQueryProviderProps>;
|
|
16
|
+
export declare const useMultiQuery: () => MultiQueryContextType;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type TPartsOfUrl = {
|
|
3
|
+
partsOfUrl: string[];
|
|
4
|
+
};
|
|
5
|
+
export declare const PartsOfUrlProvider: ({ children, value }: import("react").PropsWithChildren<{
|
|
6
|
+
value: TPartsOfUrl;
|
|
7
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const usePartsOfUrl: () => TPartsOfUrl;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TApiResources } from '../localTypes/k8s';
|
|
2
|
+
export declare const useApiResources: ({ clusterName, namespace, apiGroup, apiVersion, typeName, limit, refetchInterval, }: {
|
|
3
|
+
clusterName: string;
|
|
4
|
+
namespace?: string | undefined;
|
|
5
|
+
apiGroup: string;
|
|
6
|
+
apiVersion: string;
|
|
7
|
+
typeName: string;
|
|
8
|
+
limit: string | null;
|
|
9
|
+
refetchInterval?: number | false | undefined;
|
|
10
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TApiResources, Error>;
|
|
11
|
+
export declare const useApiResourceSingle: ({ clusterName, namespace, apiGroup, apiVersion, typeName, entryName, refetchInterval, }: {
|
|
12
|
+
clusterName: string;
|
|
13
|
+
namespace?: string | undefined;
|
|
14
|
+
apiGroup: string;
|
|
15
|
+
apiVersion: string;
|
|
16
|
+
typeName: string;
|
|
17
|
+
entryName: string;
|
|
18
|
+
refetchInterval?: number | false | undefined;
|
|
19
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
20
|
+
metadata: {
|
|
21
|
+
name: string;
|
|
22
|
+
creationTimestamp: string;
|
|
23
|
+
namespace?: string | undefined;
|
|
24
|
+
managedFields?: any;
|
|
25
|
+
};
|
|
26
|
+
spec?: import("..").TJSON | undefined;
|
|
27
|
+
status?: any;
|
|
28
|
+
}, Error>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const useApisResourceTypes: ({ clusterName }: {
|
|
2
|
+
clusterName: string;
|
|
3
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
4
|
+
apiVersion: string;
|
|
5
|
+
kind: string;
|
|
6
|
+
groups: {
|
|
7
|
+
name: string;
|
|
8
|
+
versions: {
|
|
9
|
+
groupVersion: string;
|
|
10
|
+
version: string;
|
|
11
|
+
}[];
|
|
12
|
+
preferredVersion: {
|
|
13
|
+
groupVersion: string;
|
|
14
|
+
version: string;
|
|
15
|
+
};
|
|
16
|
+
}[];
|
|
17
|
+
}, Error>;
|
|
18
|
+
export declare const useApiResourceTypesByGroup: ({ clusterName, apiGroup, apiVersion, }: {
|
|
19
|
+
clusterName: string;
|
|
20
|
+
apiGroup: string;
|
|
21
|
+
apiVersion: string;
|
|
22
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
23
|
+
apiVersion: string;
|
|
24
|
+
kind: string;
|
|
25
|
+
groupVersion: string;
|
|
26
|
+
resources: {
|
|
27
|
+
name: string;
|
|
28
|
+
kind: string;
|
|
29
|
+
}[];
|
|
30
|
+
}, Error>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TBuiltinResources } from '../localTypes/k8s';
|
|
2
|
+
export declare const useBuiltinResources: ({ clusterName, namespace, typeName, limit, refetchInterval, }: {
|
|
3
|
+
clusterName: string;
|
|
4
|
+
namespace?: string | undefined;
|
|
5
|
+
typeName: string;
|
|
6
|
+
limit: string | null;
|
|
7
|
+
refetchInterval?: number | false | undefined;
|
|
8
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TBuiltinResources, Error>;
|
|
9
|
+
export declare const useBuiltinResourceSingle: ({ clusterName, namespace, typeName, entryName, refetchInterval, }: {
|
|
10
|
+
clusterName: string;
|
|
11
|
+
namespace?: string | undefined;
|
|
12
|
+
typeName: string;
|
|
13
|
+
entryName: string;
|
|
14
|
+
refetchInterval?: number | false | undefined;
|
|
15
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
16
|
+
metadata: {
|
|
17
|
+
name: string;
|
|
18
|
+
creationTimestamp: string;
|
|
19
|
+
namespace?: string | undefined;
|
|
20
|
+
managedFields?: any;
|
|
21
|
+
};
|
|
22
|
+
spec?: import("..").TJSON | undefined;
|
|
23
|
+
status?: any;
|
|
24
|
+
}, Error>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const useCrdData: ({ clusterName, apiExtensionVersion, crdName, }: {
|
|
2
|
+
clusterName: string;
|
|
3
|
+
apiExtensionVersion: string;
|
|
4
|
+
crdName: string;
|
|
5
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
6
|
+
apiVersion: string;
|
|
7
|
+
metadata: {
|
|
8
|
+
managedFields?: any;
|
|
9
|
+
};
|
|
10
|
+
spec: {
|
|
11
|
+
names: {
|
|
12
|
+
kind: string;
|
|
13
|
+
singular: string;
|
|
14
|
+
plural: string;
|
|
15
|
+
};
|
|
16
|
+
versions: {
|
|
17
|
+
name: string;
|
|
18
|
+
additionalPrinterColumns: import("..").TAdditionalPrinterColumns;
|
|
19
|
+
}[];
|
|
20
|
+
group: string;
|
|
21
|
+
};
|
|
22
|
+
status: {
|
|
23
|
+
storedVersions: string[];
|
|
24
|
+
};
|
|
25
|
+
}, Error>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { TJSON } from '../localTypes/JSON';
|
|
2
|
+
export declare const useCrdResources: <T = TJSON[]>({ clusterName, namespace, apiGroup, apiVersion, crdName, refetchInterval, }: {
|
|
3
|
+
clusterName: string;
|
|
4
|
+
namespace?: string | undefined;
|
|
5
|
+
apiGroup: string;
|
|
6
|
+
apiVersion: string;
|
|
7
|
+
crdName: string;
|
|
8
|
+
refetchInterval?: number | false | undefined;
|
|
9
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
10
|
+
kind: string;
|
|
11
|
+
apiVersion: string;
|
|
12
|
+
metadata: {
|
|
13
|
+
managedFields?: any;
|
|
14
|
+
};
|
|
15
|
+
items: T;
|
|
16
|
+
status?: {
|
|
17
|
+
allowed?: boolean | undefined;
|
|
18
|
+
reason?: string | undefined;
|
|
19
|
+
} | undefined;
|
|
20
|
+
}, Error>;
|
|
21
|
+
export declare const useCrdResourceSingle: ({ clusterName, namespace, apiGroup, apiVersion, crdName, entryName, refetchInterval, }: {
|
|
22
|
+
clusterName: string;
|
|
23
|
+
namespace?: string | undefined;
|
|
24
|
+
apiGroup: string;
|
|
25
|
+
apiVersion: string;
|
|
26
|
+
crdName: string;
|
|
27
|
+
entryName: string;
|
|
28
|
+
refetchInterval?: number | false | undefined;
|
|
29
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
30
|
+
metadata: {
|
|
31
|
+
name: string;
|
|
32
|
+
creationTimestamp: string;
|
|
33
|
+
namespace?: string | undefined;
|
|
34
|
+
managedFields?: any;
|
|
35
|
+
};
|
|
36
|
+
spec?: TJSON | undefined;
|
|
37
|
+
status?: any;
|
|
38
|
+
}, Error>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
1
2
|
export declare const useDirectUnknownResource: <T>({ uri, queryKey, refetchInterval, isEnabled, }: {
|
|
2
3
|
uri: string;
|
|
3
4
|
queryKey: string[];
|
|
4
5
|
refetchInterval?: number | false | undefined;
|
|
5
6
|
isEnabled?: boolean | undefined;
|
|
6
|
-
}) =>
|
|
7
|
+
}) => UseQueryResult<T, Error>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const usePermissions: ({ clusterName, namespace, apiGroup, typeName, verb, refetchInterval, enabler, }: {
|
|
2
|
+
clusterName: string;
|
|
3
|
+
apiGroup: string;
|
|
4
|
+
typeName: string;
|
|
5
|
+
namespace: string;
|
|
6
|
+
verb: 'create' | 'delete' | 'patch' | 'update';
|
|
7
|
+
refetchInterval?: number | false | undefined;
|
|
8
|
+
enabler?: boolean | undefined;
|
|
9
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
10
|
+
status: {
|
|
11
|
+
allowed?: boolean | undefined;
|
|
12
|
+
};
|
|
13
|
+
}, Error>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1,35 @@
|
|
|
1
1
|
export * from './components';
|
|
2
|
+
export * from './utils';
|
|
3
|
+
export { getClusterList } from './api/getClusterList';
|
|
4
|
+
export { createNewEntry, updateEntry, deleteEntry } from './api/forms';
|
|
5
|
+
export { getApiResources, getApiResourceSingle } from './api/getApiResource';
|
|
6
|
+
export { getBuiltinResources, getBuiltinResourceSingle } from './api/getBuiltinResource';
|
|
7
|
+
export { getCrdResources, getCrdResourceSingle } from './api/getCrdResource';
|
|
8
|
+
export { getApiResourceTypes, getApiResourceTypesByApiGroup } from './api/getApiResourceTypes';
|
|
9
|
+
export { getBuiltinResourceTypes } from './api/getBuiltinResourceTypes';
|
|
10
|
+
export { getCrdData } from './api/getCrdData';
|
|
11
|
+
export { getDirectUnknownResource } from './api/getDirectUnknownResource';
|
|
12
|
+
export { checkPermission } from './api/permissions';
|
|
13
|
+
export { getSwagger } from './api/bff/swagger/getSwagger';
|
|
14
|
+
export { filterIfApiInstanceNamespaceScoped, filterIfBuiltInInstanceNamespaceScoped, } from './api/bff/scopes/filterScopes';
|
|
15
|
+
export { checkIfApiInstanceNamespaceScoped, checkIfBuiltInInstanceNamespaceScoped } from './api/bff/scopes/checkScopes';
|
|
16
|
+
export { useClusterList } from './hooks/useClusterList';
|
|
17
|
+
export { useApiResources, useApiResourceSingle } from './hooks/useApiResource';
|
|
18
|
+
export { useBuiltinResources, useBuiltinResourceSingle } from './hooks/useBuiltinResource';
|
|
19
|
+
export { useCrdResources, useCrdResourceSingle } from './hooks/useCrdResource';
|
|
20
|
+
export { useApisResourceTypes, useApiResourceTypesByGroup } from './hooks/useApisResourceTypes';
|
|
21
|
+
export { useBuiltinResourceTypes } from './hooks/useBuiltinResourceTypes';
|
|
22
|
+
export { useCrdData } from './hooks/useCrdData';
|
|
23
|
+
export { useDirectUnknownResource } from './hooks/useDirectUnknownResource';
|
|
24
|
+
export { usePermissions } from './hooks/usePermissions';
|
|
25
|
+
export type { TRequestError } from './localTypes/api';
|
|
26
|
+
export type { TClusterList } from './localTypes/clusterList';
|
|
27
|
+
export type { TItemTypeMap, TRenderableItem, TRendererComponents, TFactoryDataK8s, TFactoryResponse, TFactoryResource, } from './localTypes/dynamicRender';
|
|
28
|
+
export type { TNamespaceData, TFormName, TExpandedControls, TPersistedControls, TUrlParams } from './localTypes/form';
|
|
29
|
+
export type { TFormPrefill, TRangeInputCustomValue, TRangeInputCustomValuesBlock, TRangeInputCustomProps, TListInputCustomProps, } from './localTypes/formExtensions';
|
|
30
|
+
export type { TJSON } from './localTypes/JSON';
|
|
31
|
+
export type { TApiGroupList, TApiGroupResourceTypeList, TBuiltinResourceTypeList, TSingleResource, TBuiltinResources, TApiResources, TCrdResources, TCRD, } from './localTypes/k8s';
|
|
32
|
+
export type { TMarketPlacePanel, TMarketPlacePanelResource, TMarketPlacePanelResponse } from './localTypes/marketplace';
|
|
33
|
+
export type { TAdditionalPrinterColumns, TAdditionalPrinterColumnsUndefinedValues, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsColWidths, } from './localTypes/richTable';
|
|
34
|
+
export type { TFilterIfApiInstanceNamespaceScopedReq, TFilterIfApiInstanceNamespaceScopedRes, TFilterIfBuiltInInstanceNamespaceScopedReq, TFilterIfBuiltInInstanceNamespaceScopedRes, } from './localTypes/bff/scopes';
|
|
35
|
+
export type { TGetDerefedSwaggerRes } from './localTypes/bff/swagger';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { OpenAPIV2 } from 'openapi-types';
|
|
2
|
+
import { TJSON } from '../JSON';
|
|
3
|
+
import { TFormName } from '../form';
|
|
4
|
+
import { TFormPrefill } from '../formExtensions';
|
|
5
|
+
export type TPrepareFormReq = {
|
|
6
|
+
data: {
|
|
7
|
+
type: 'builtin';
|
|
8
|
+
typeName: string;
|
|
9
|
+
prefillValuesSchema?: TJSON;
|
|
10
|
+
prefillValueNamespaceOnly?: string;
|
|
11
|
+
} | {
|
|
12
|
+
type: 'apis';
|
|
13
|
+
apiGroup: string;
|
|
14
|
+
apiVersion: string;
|
|
15
|
+
typeName: string;
|
|
16
|
+
prefillValuesSchema?: TJSON;
|
|
17
|
+
prefillValueNamespaceOnly?: string;
|
|
18
|
+
};
|
|
19
|
+
clusterName: string;
|
|
20
|
+
customizationId?: string;
|
|
21
|
+
};
|
|
22
|
+
export type TPrepareFormRes = {
|
|
23
|
+
result: 'error';
|
|
24
|
+
error: string | undefined;
|
|
25
|
+
kindName: string | undefined;
|
|
26
|
+
fallbackToManualMode: true;
|
|
27
|
+
isNamespaced: boolean;
|
|
28
|
+
} | {
|
|
29
|
+
result: 'success';
|
|
30
|
+
properties: {
|
|
31
|
+
[name: string]: OpenAPIV2.SchemaObject;
|
|
32
|
+
};
|
|
33
|
+
required: string[] | undefined;
|
|
34
|
+
hiddenPaths: string[][] | undefined;
|
|
35
|
+
expandedPaths: string[][] | undefined;
|
|
36
|
+
persistedPaths: string[][] | undefined;
|
|
37
|
+
kindName: string | undefined;
|
|
38
|
+
isNamespaced: boolean;
|
|
39
|
+
formPrefills?: TFormPrefill;
|
|
40
|
+
namespacesData?: string[];
|
|
41
|
+
};
|
|
42
|
+
export type TYamlByValuesReq = {
|
|
43
|
+
values: any;
|
|
44
|
+
persistedKeys: TFormName[];
|
|
45
|
+
properties: OpenAPIV2.SchemaObject['properties'];
|
|
46
|
+
};
|
|
47
|
+
export type TYamlByValuesRes = any;
|
|
48
|
+
export type TValuesByYamlReq = {
|
|
49
|
+
values: Record<string, unknown>;
|
|
50
|
+
properties: OpenAPIV2.SchemaObject['properties'];
|
|
51
|
+
};
|
|
52
|
+
export type TValuesByYamlRes = any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { TApiGroupResourceTypeList, TBuiltinResourceTypeList } from '../k8s';
|
|
2
|
+
export type TCheckIfApiInstanceNamespaceScopedReq = {
|
|
3
|
+
typeName: string;
|
|
4
|
+
apiGroup: string;
|
|
5
|
+
apiVersion: string;
|
|
6
|
+
clusterName: string;
|
|
7
|
+
};
|
|
8
|
+
export type TCheckIfApiInstanceNamespaceScopedRes = {
|
|
9
|
+
isClusterWide: boolean;
|
|
10
|
+
isNamespaceScoped: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type TCheckIfBuiltInInstanceNamespaceScopedReq = {
|
|
13
|
+
typeName: string;
|
|
14
|
+
clusterName: string;
|
|
15
|
+
};
|
|
16
|
+
export type TCheckIfBuiltInInstanceNamespaceScopedRes = {
|
|
17
|
+
isClusterWide: boolean;
|
|
18
|
+
isNamespaceScoped: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type TFilterIfApiInstanceNamespaceScopedReq = {
|
|
21
|
+
namespace?: string;
|
|
22
|
+
data?: TApiGroupResourceTypeList;
|
|
23
|
+
apiGroup: string;
|
|
24
|
+
apiVersion: string;
|
|
25
|
+
clusterName: string;
|
|
26
|
+
};
|
|
27
|
+
export type TFilterIfApiInstanceNamespaceScopedRes = TApiGroupResourceTypeList['resources'] | undefined;
|
|
28
|
+
export type TFilterIfBuiltInInstanceNamespaceScopedReq = {
|
|
29
|
+
namespace?: string;
|
|
30
|
+
data?: TBuiltinResourceTypeList;
|
|
31
|
+
clusterName: string;
|
|
32
|
+
};
|
|
33
|
+
export type TFilterIfBuiltInInstanceNamespaceScopedRes = TBuiltinResourceTypeList['resources'] | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TAdditionalPrinterColumns, TAdditionalPrinterColumnsUndefinedValues, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsColWidths } from '../richTable';
|
|
2
|
+
export type TPrepareTableReq = {
|
|
3
|
+
customizationId?: string;
|
|
4
|
+
tableMappingsReplaceValues?: Record<string, string | undefined>;
|
|
5
|
+
forceDefaultAdditionalPrinterColumns?: TAdditionalPrinterColumns;
|
|
6
|
+
};
|
|
7
|
+
export type TPrepareTableRes = {
|
|
8
|
+
additionalPrinterColumns: TAdditionalPrinterColumns;
|
|
9
|
+
additionalPrinterColumnsUndefinedValues?: TAdditionalPrinterColumnsUndefinedValues;
|
|
10
|
+
additionalPrinterColumnsTrimLengths?: TAdditionalPrinterColumnsTrimLengths;
|
|
11
|
+
additionalPrinterColumnsColWidths?: TAdditionalPrinterColumnsColWidths;
|
|
12
|
+
pathToNavigate?: string;
|
|
13
|
+
recordKeysForNavigation?: string[];
|
|
14
|
+
recordKeysForNavigationSecond?: string[];
|
|
15
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
export type TItemTypeMap = Record<string, unknown>;
|
|
3
|
+
export type TRenderableItem<T extends TItemTypeMap> = {
|
|
4
|
+
[K in keyof T]: {
|
|
5
|
+
type: K;
|
|
6
|
+
data: T[K];
|
|
7
|
+
children?: readonly TRenderableItem<T>[];
|
|
8
|
+
};
|
|
9
|
+
}[keyof T];
|
|
10
|
+
export type TRendererComponents<T extends TItemTypeMap> = {
|
|
11
|
+
[K in keyof T]: React.ComponentType<{
|
|
12
|
+
data: T[K];
|
|
13
|
+
children?: ReactElement | ReactElement[];
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
export type TFactoryDataK8s<T extends TItemTypeMap> = {
|
|
17
|
+
key: string;
|
|
18
|
+
urlsToFetch: string[];
|
|
19
|
+
withScrollableMainContentCard?: boolean;
|
|
20
|
+
data: TRenderableItem<T>[];
|
|
21
|
+
sidebarTags?: string[];
|
|
22
|
+
};
|
|
23
|
+
export type TFactoryResource<T extends TItemTypeMap> = {
|
|
24
|
+
apiVersion: string;
|
|
25
|
+
kind: string;
|
|
26
|
+
spec: TFactoryDataK8s<T>;
|
|
27
|
+
} & unknown;
|
|
28
|
+
export type TFactoryResponse<T extends TItemTypeMap> = {
|
|
29
|
+
apiVersion: string;
|
|
30
|
+
items: TFactoryResource<T>[];
|
|
31
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DefaultOptionType } from 'antd/es/select';
|
|
2
|
+
export type TNamespaceData = {
|
|
3
|
+
filterSelectOptions: (input: string, option?: DefaultOptionType) => boolean;
|
|
4
|
+
selectValues: {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}[];
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
} | undefined;
|
|
10
|
+
export type TFormName = string | number | string[] | number[] | (string | number)[];
|
|
11
|
+
export type TExpandedControls = {
|
|
12
|
+
onExpandOpen: (value: TFormName) => void;
|
|
13
|
+
onExpandClose: (value: TFormName) => void;
|
|
14
|
+
expandedKeys: TFormName[];
|
|
15
|
+
};
|
|
16
|
+
export type TPersistedControls = {
|
|
17
|
+
onPersistMark: (value: TFormName, type?: 'str' | 'number' | 'arr' | 'obj') => void;
|
|
18
|
+
onPersistUnmark: (value: TFormName) => void;
|
|
19
|
+
persistedKeys: TFormName[];
|
|
20
|
+
};
|
|
21
|
+
export type TUrlParams = {
|
|
22
|
+
clusterName?: string;
|
|
23
|
+
namespace?: string;
|
|
24
|
+
syntheticProject?: string;
|
|
25
|
+
entryName?: string;
|
|
26
|
+
};
|