@k8slens/extensions 6.3.0-git.1b6f64c523.0 → 6.3.0-git.30bfd6fa88.0
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/src/common/app-event-bus/emit-event.injectable.d.ts +1 -1
- package/dist/src/common/app-paths/app-path-injection-token.d.ts +1 -1
- package/dist/src/common/app-paths/app-path-names.d.ts +1 -1
- package/dist/src/common/app-paths/app-paths-channel.d.ts +1 -1
- package/dist/src/common/catalog/catalog-entity.d.ts +7 -7
- package/dist/src/common/catalog/category-registry.d.ts +1 -1
- package/dist/src/common/catalog/has-category-for-entity.injectable.d.ts +1 -1
- package/dist/src/common/catalog/visit-entity-context-menu.injectable.d.ts +1 -1
- package/dist/src/common/catalog-entities/kubernetes-cluster.d.ts +1 -1
- package/dist/src/common/catalog-entities/web-link.d.ts +1 -1
- package/dist/src/common/certificate-authorities/inject-system-cas.injectable.d.ts +6 -0
- package/dist/src/common/certificate-authorities/request-system-cas-token.d.ts +5 -0
- package/dist/src/common/certificate-authorities/request-system-cas.injectable.darwin.d.ts +2 -0
- package/dist/src/common/certificate-authorities/request-system-cas.injectable.linux.d.ts +2 -0
- package/dist/src/common/certificate-authorities/request-system-cas.injectable.testing-env.d.ts +2 -0
- package/dist/src/common/certificate-authorities/request-system-cas.injectable.win32.d.ts +2 -0
- package/dist/src/common/cluster/authorization-namespace-review.injectable.d.ts +19 -0
- package/dist/src/common/cluster/authorization-review.injectable.d.ts +9 -4
- package/dist/src/common/cluster/cluster.d.ts +13 -6
- package/dist/src/common/cluster/create-cluster-injection-token.d.ts +1 -1
- package/dist/src/common/cluster/list-api-resources.injectable.d.ts +13 -0
- package/dist/src/common/cluster/list-namespaces.injectable.d.ts +1 -1
- package/dist/src/common/cluster/visibility-channel.d.ts +7 -0
- package/dist/src/common/cluster-store/get-by-id.injectable.d.ts +1 -1
- package/dist/src/common/cluster-store/read-cluster-config.injectable.d.ts +1 -1
- package/dist/src/common/cluster-types.d.ts +3 -9
- package/dist/src/common/error-reporting/initialize-sentry-reporting.injectable.d.ts +1 -1
- package/dist/src/common/event-emitter.d.ts +1 -1
- package/dist/src/common/fetch/download-binary.injectable.d.ts +1 -1
- package/dist/src/common/fetch/download-json.injectable.d.ts +1 -1
- package/dist/src/common/fetch/fetch.injectable.d.ts +3 -3
- package/dist/src/common/front-end-routing/app-navigation-channel.d.ts +1 -1
- package/dist/src/common/front-end-routing/cluster-frame-navigation-channel.d.ts +1 -1
- package/dist/src/common/front-end-routing/navigate-to-route-injection-token.d.ts +7 -7
- package/dist/src/common/front-end-routing/navigate-to-url-injection-token.d.ts +1 -1
- package/dist/src/common/front-end-routing/routes/catalog/navigate-to-catalog.injectable.d.ts +1 -1
- package/dist/src/common/front-end-routing/routes/cluster/helm/charts/navigate-to-helm-charts.injectable.d.ts +1 -1
- package/dist/src/common/front-end-routing/routes/cluster/helm/releases/navigate-to-helm-releases.injectable.d.ts +1 -1
- package/dist/src/common/front-end-routing/routes/cluster/network/port-forwards/navigate-to-port-forwards.injectable.d.ts +1 -1
- package/dist/src/common/front-end-routing/routes/cluster-view/navigate-to-cluster-view.injectable.d.ts +1 -1
- package/dist/src/common/front-end-routing/routes/entity-settings/navigate-to-entity-settings.injectable.d.ts +1 -1
- package/dist/src/common/fs/access-path.injectable.d.ts +1 -1
- package/dist/src/common/fs/copy.injectable.d.ts +1 -1
- package/dist/src/common/fs/create-read-file-stream.injectable.d.ts +1 -1
- package/dist/src/common/fs/delete-file.injectable.d.ts +1 -1
- package/dist/src/common/fs/ensure-dir.injectable.d.ts +1 -1
- package/dist/src/common/fs/exec-file.injectable.d.ts +6 -3
- package/dist/src/common/fs/extract-tar.injectable.d.ts +1 -1
- package/dist/src/common/fs/lstat.injectable.d.ts +1 -1
- package/dist/src/common/fs/move.injectable.d.ts +1 -1
- package/dist/src/common/fs/path-exists.injectable.d.ts +1 -1
- package/dist/src/common/fs/read-file-sync.injectable.d.ts +1 -1
- package/dist/src/common/fs/read-file.injectable.d.ts +1 -1
- package/dist/src/common/fs/read-json-file.injectable.d.ts +1 -1
- package/dist/src/common/fs/read-yaml-file.injectable.d.ts +1 -1
- package/dist/src/common/fs/remove-path.injectable.d.ts +1 -1
- package/dist/src/common/fs/stat/stat.injectable.d.ts +1 -1
- package/dist/src/common/fs/validate-directory.injectable.d.ts +1 -1
- package/dist/src/common/fs/watch/watch.injectable.d.ts +3 -3
- package/dist/src/common/fs/write-file.injectable.d.ts +1 -1
- package/dist/src/common/fs/write-json-file.injectable.d.ts +1 -1
- package/dist/src/common/helm/add-helm-repository-channel.d.ts +1 -1
- package/dist/src/common/helm/get-active-helm-repositories-channel.d.ts +1 -1
- package/dist/src/common/helm/helm-repo.d.ts +1 -1
- package/dist/src/common/helm/remove-helm-repository-channel.d.ts +1 -1
- package/dist/src/common/hotbars/add-hotbar.injectable.d.ts +1 -1
- package/dist/src/common/hotbars/types.d.ts +1 -1
- package/dist/src/common/ipc/broadcast-message.injectable.d.ts +1 -1
- package/dist/src/common/ipc/cluster.d.ts +1 -4
- package/dist/src/common/ipc/invalid-kubeconfig/index.d.ts +1 -1
- package/dist/src/common/k8s/create-resource-stack.injectable.d.ts +5 -0
- package/dist/src/common/k8s/resource-stack.d.ts +25 -6
- package/dist/src/common/k8s-api/api-manager/api-manager.d.ts +3 -3
- package/dist/src/common/k8s-api/create-json-api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/create-kube-json-api-for-cluster.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/create-kube-json-api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/custom-resource-definition.api.d.ts +2 -2
- package/dist/src/common/k8s-api/endpoints/helm-charts.api/request-charts.injectable.d.ts +2 -2
- package/dist/src/common/k8s-api/endpoints/helm-charts.api/request-readme.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/helm-charts.api/request-values.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/helm-charts.api/request-versions.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/helm-charts.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/helm-releases.api/request-configuration.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/helm-releases.api/request-create.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/helm-releases.api/request-delete.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/helm-releases.api/request-details.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/helm-releases.api/request-history.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/helm-releases.api/request-releases.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/helm-releases.api/request-rollback.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/helm-releases.api/request-update.injectable.d.ts +2 -6
- package/dist/src/common/k8s-api/endpoints/helm-releases.api/request-values.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/horizontal-pod-autoscaler.api.d.ts +2 -2
- package/dist/src/common/k8s-api/endpoints/ingress.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/limit-range.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/metrics.api/request-cluster-metrics-by-node-names.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/metrics.api/request-ingress-metrics.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/metrics.api/request-metrics-for-all-nodes.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/metrics.api/request-persistent-volume-claim-metrics.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/metrics.api/request-pod-metrics-for-daemon-sets.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/metrics.api/request-pod-metrics-for-deployments.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/metrics.api/request-pod-metrics-for-jobs.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/metrics.api/request-pod-metrics-for-replica-sets.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/metrics.api/request-pod-metrics-for-stateful-sets.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/metrics.api/request-pod-metrics-in-namespace.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/metrics.api/request-pod-metrics.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/metrics.api/request-providers.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/network-policy.api.d.ts +2 -2
- package/dist/src/common/k8s-api/endpoints/pod.api.d.ts +2 -2
- package/dist/src/common/k8s-api/endpoints/resource-applier.api/request-patch.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/resource-applier.api/request-update.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/resource-quota.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/types/preemption-policy.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/types/subject.d.ts +1 -1
- package/dist/src/common/k8s-api/json-api.d.ts +4 -4
- package/dist/src/common/k8s-api/kube-api.d.ts +3 -3
- package/dist/src/common/k8s-api/kube-object.d.ts +10 -10
- package/dist/src/common/k8s-api/kube-object.store.d.ts +3 -3
- package/dist/src/common/k8s-api/kube-watch-event.d.ts +1 -1
- package/dist/src/common/kube-helpers/channels.d.ts +25 -0
- package/dist/src/common/kube-helpers/load-config-from-file.injectable.d.ts +1 -1
- package/dist/src/common/kube-helpers.d.ts +1 -1
- package/dist/src/common/path/get-absolute-path.injectable.d.ts +1 -1
- package/dist/src/common/path/get-basename.injectable.d.ts +1 -1
- package/dist/src/common/path/get-dirname.injectable.d.ts +1 -1
- package/dist/src/common/path/get-relative-path.injectable.d.ts +1 -1
- package/dist/src/common/path/is-logical-child-path.injectable.d.ts +1 -1
- package/dist/src/common/path/join-paths.injectable.d.ts +1 -1
- package/dist/src/common/path/resolve-path.injectable.d.ts +1 -1
- package/dist/src/common/path/resolve-tilde.injectable.d.ts +1 -1
- package/dist/src/common/rbac.d.ts +1 -1
- package/dist/src/common/root-frame/root-frame-rendered-channel.d.ts +1 -1
- package/dist/src/common/runnable/run-many-for.d.ts +2 -2
- package/dist/src/common/runnable/run-many-sync-for.d.ts +2 -2
- package/dist/src/common/terminal/channels.d.ts +1 -1
- package/dist/src/common/user-store/file-name-migration.injectable.d.ts +1 -1
- package/dist/src/common/user-store/preferences-helpers.d.ts +8 -8
- package/dist/src/common/utils/add-separator/add-separator.d.ts +1 -1
- package/dist/src/common/utils/async-result.d.ts +1 -1
- package/dist/src/common/utils/buildUrl.d.ts +1 -1
- package/dist/src/common/utils/channel/enlist-message-channel-listener-injection-token.d.ts +1 -1
- package/dist/src/common/utils/channel/message-channel-listener-injection-token.d.ts +1 -1
- package/dist/src/common/utils/channel/message-to-channel-injection-token.d.ts +1 -0
- package/dist/src/common/utils/composable-responsibilities/orderable/orderable.d.ts +1 -1
- package/dist/src/common/utils/composable-responsibilities/showable/showable.d.ts +1 -1
- package/dist/src/common/utils/composite/interfaces.d.ts +1 -1
- package/dist/src/common/utils/get-startable-stoppable.d.ts +2 -2
- package/dist/src/common/utils/is-allowed-resource.injectable.d.ts +1 -1
- package/dist/src/common/utils/iter.d.ts +1 -1
- package/dist/src/common/utils/observable-crate/impl.d.ts +1 -1
- package/dist/src/common/utils/open-link-in-browser.injectable.d.ts +1 -1
- package/dist/src/common/utils/resolve-system-proxy/resolve-system-proxy-channel.d.ts +1 -1
- package/dist/src/common/utils/resolve-system-proxy/resolve-system-proxy-injection-token.d.ts +1 -1
- package/dist/src/common/utils/sync-box/channels.d.ts +2 -2
- package/dist/src/common/utils/tar.d.ts +1 -1
- package/dist/src/common/utils/tuple.d.ts +2 -2
- package/dist/src/common/utils/type-narrowing.d.ts +2 -2
- package/dist/src/common/utils/types.d.ts +6 -6
- package/dist/src/common/utils/with-error-logging/with-error-logging.injectable.d.ts +1 -1
- package/dist/src/common/vars/application-information.injectable.d.ts +1 -1
- package/dist/src/extensions/common-api/k8s-api.d.ts +12 -1
- package/dist/src/extensions/common-api/types.d.ts +3 -3
- package/dist/src/extensions/extension-api.js +90 -912
- package/dist/src/extensions/extension-loader/create-extension-instance.token.d.ts +1 -1
- package/dist/src/extensions/extension-loader/extension-registrator-injection-token.d.ts +1 -1
- package/dist/src/extensions/lens-extension.d.ts +2 -2
- package/dist/src/extensions/main-api/power.d.ts +1 -1
- package/dist/src/features/application-menu/main/application-menu-item-composite.injectable.d.ts +1 -1
- package/dist/src/features/application-menu/main/menu-items/application-menu-item-injection-token.d.ts +9 -9
- package/dist/src/features/application-menu/main/menu.d.ts +1 -1
- package/dist/src/features/application-update/common/discovered-update-version/discovered-update-version.injectable.d.ts +1 -1
- package/dist/src/features/application-update/common/progress-of-update-download/progress-of-update-download.injectable.d.ts +1 -1
- package/dist/src/features/application-update/common/restart-and-install-update-channel.d.ts +1 -1
- package/dist/src/features/application-update/common/update-channels.d.ts +1 -1
- package/dist/src/features/application-update/common/update-is-being-downloaded/update-is-being-downloaded.injectable.d.ts +1 -1
- package/dist/src/features/application-update/common/updates-are-being-discovered/updates-are-being-discovered.injectable.d.ts +1 -1
- package/dist/src/features/application-update/main/check-for-updates/check-for-platform-updates/check-for-platform-updates.injectable.d.ts +2 -2
- package/dist/src/features/application-update/main/check-for-updates/check-for-updates-starting-from-channel.injectable.d.ts +1 -1
- package/dist/src/features/application-update/main/download-update/download-platform-update/download-platform-update.injectable.d.ts +1 -1
- package/dist/src/features/cluster/delete-dialog/common/clear-as-deleting-channel.d.ts +1 -1
- package/dist/src/features/cluster/delete-dialog/common/delete-channel.d.ts +1 -1
- package/dist/src/features/cluster/delete-dialog/common/set-as-deleting-channel.d.ts +1 -1
- package/dist/src/features/cluster/delete-dialog/renderer/request-clear-as-deleting.injectable.d.ts +1 -1
- package/dist/src/features/cluster/delete-dialog/renderer/request-delete.injectable.d.ts +1 -1
- package/dist/src/features/cluster/delete-dialog/renderer/request-set-as-deleting.injectable.d.ts +1 -1
- package/dist/src/features/helm-charts/child-features/preferences/renderer/helm-repositories-error-state.injectable.d.ts +1 -1
- package/dist/src/features/navigation/reload-page/common/channel.d.ts +1 -1
- package/dist/src/features/preferences/renderer/preference-items/preference-item-injection-token.d.ts +8 -8
- package/dist/src/features/preferences/renderer/preference-items/preference-tab-root.d.ts +1 -1
- package/dist/src/features/shell-sync/common/failure-channel.d.ts +6 -0
- package/dist/src/{main/utils/shell-env → features/shell-sync/main}/compute-shell-environment.injectable.d.ts +2 -2
- package/dist/src/{main/utils/shell-env → features/shell-sync/main}/compute-unix-shell-environment.global-override-for-injectable.d.ts +0 -0
- package/dist/src/{main/utils/shell-env → features/shell-sync/main}/compute-unix-shell-environment.injectable.d.ts +1 -1
- package/dist/src/{main/utils/shell-env → features/shell-sync/main}/compute-unix-shell-environment.test.d.ts +0 -0
- package/dist/src/features/shell-sync/main/emit-failure.injectable.d.ts +2 -0
- package/dist/src/{main/utils/shell-env → features/shell-sync/main}/env.injectable.d.ts +0 -0
- package/dist/src/{main/utils/shell-env → features/shell-sync/main}/execPath.injectable.d.ts +0 -0
- package/dist/src/{main/start-main-application/runnables → features/shell-sync/main}/setup-shell.injectable.d.ts +0 -0
- package/dist/src/features/shell-sync/renderer/failure-listener.injectable.d.ts +5 -0
- package/dist/src/main/app-paths/get-electron-app-path/get-electron-app-path.d.ts +1 -1
- package/dist/src/main/catalog-sources/kubeconfig-sync/compute-diff.injectable.d.ts +1 -1
- package/dist/src/main/catalog-sources/kubeconfig-sync/config-to-models.injectable.d.ts +1 -1
- package/dist/src/main/catalog-sources/kubeconfig-sync/diff-changed-kubeconfig.injectable.d.ts +1 -1
- package/dist/src/main/catalog-sources/kubeconfig-sync/watch-file-changes.injectable.d.ts +1 -1
- package/dist/src/main/child-process/spawn.injectable.d.ts +1 -1
- package/dist/src/main/cluster/manager.d.ts +2 -2
- package/dist/src/main/cluster/visibility-handler.injectable.d.ts +5 -0
- package/dist/src/main/cluster/visible-cluster.injectable.d.ts +2 -0
- package/dist/src/main/cluster-detectors/detector-registry.d.ts +1 -1
- package/dist/src/main/electron-app/features/show-message-popup.injectable.d.ts +1 -1
- package/dist/src/main/electron-app/runnables/setup-ipc-main-handlers/setup-ipc-main-handlers.d.ts +1 -5
- package/dist/src/main/get-metrics.injectable.d.ts +1 -1
- package/dist/src/main/helm/exec-helm/exec-env.global-override-for-injectable.d.ts +9 -0
- package/dist/src/main/helm/exec-helm/exec-env.injectable.d.ts +2 -0
- package/dist/src/main/helm/exec-helm/exec-helm.injectable.d.ts +1 -1
- package/dist/src/main/helm/get-helm-env/get-helm-env.injectable.d.ts +1 -1
- package/dist/src/main/helm/helm-chart-manager-cache.injectable.d.ts +1 -1
- package/dist/src/main/helm/helm-service/get-helm-release-resources/call-for-kube-resources-by-manifest/call-for-kube-resources-by-manifest.injectable.d.ts +1 -1
- package/dist/src/main/helm/helm-service/get-helm-release-resources/call-for-kube-resources-by-manifest/exec-file-with-input/exec-file-with-input.injectable.d.ts +1 -1
- package/dist/src/main/helm/helm-service/get-helm-release-resources/get-helm-release-resources.injectable.d.ts +1 -1
- package/dist/src/main/helm/helm-service/update-helm-release.injectable.d.ts +1 -2
- package/dist/src/main/ipc/ask-user-for-file-paths.injectable.d.ts +1 -1
- package/dist/src/main/k8s-request.injectable.d.ts +1 -1
- package/dist/src/main/kube-auth-proxy/create-kube-auth-proxy.injectable.d.ts +1 -1
- package/dist/src/main/kube-auth-proxy/get-kube-auth-proxy-certificate.d.ts +1 -1
- package/dist/src/main/kube-auth-proxy/wait-until-port-is-used/wait-until-port-is-used.injectable.d.ts +1 -1
- package/dist/src/main/kubeconfig-manager/create-kubeconfig-manager.injectable.d.ts +1 -1
- package/dist/src/main/kubectl/apply-all-handler.injectable.d.ts +5 -0
- package/dist/src/main/kubectl/delete-all-handler.injectable.d.ts +5 -0
- package/dist/src/main/kubectl/kubectl-apply-all.injectable.d.ts +2 -0
- package/dist/src/main/kubectl/kubectl-delete-all.injectable.d.ts +2 -0
- package/dist/src/main/lens-proxy/lens-proxy.d.ts +2 -2
- package/dist/src/main/logger/level.injectable.d.ts +1 -1
- package/dist/src/main/resource-applier/create-resource-applier.injectable.d.ts +1 -1
- package/dist/src/main/resource-applier/resource-applier.d.ts +6 -5
- package/dist/src/main/router/create-handler-for-route.injectable.d.ts +2 -2
- package/dist/src/main/router/parse-request.injectable.d.ts +1 -1
- package/dist/src/main/router/route.d.ts +3 -3
- package/dist/src/main/router/router-content-types.d.ts +1 -1
- package/dist/src/main/routes/resource-applier/create-resource-route.injectable.d.ts +13 -1
- package/dist/src/main/shell-session/create-shell-session.injectable.d.ts +1 -1
- package/dist/src/main/shell-session/local-shell-session/open.injectable.d.ts +1 -1
- package/dist/src/main/shell-session/shell-env-modifier/modify-terminal-shell-env.injectable.d.ts +1 -1
- package/dist/src/main/shell-session/shell-env-modifier/shell-env-modifier-registration.d.ts +1 -1
- package/dist/src/main/shell-session/shell-session.d.ts +1 -1
- package/dist/src/main/shell-session/spawn-pty.injectable.d.ts +4 -4
- package/dist/src/main/start-main-application/lens-window/application-window/create-electron-window.injectable.d.ts +3 -3
- package/dist/src/main/start-main-application/lens-window/navigate-for-extension.injectable.d.ts +1 -1
- package/dist/src/main/theme/operating-system-theme-state.injectable.d.ts +1 -1
- package/dist/src/main/utils/channel/channel-listeners/enlist-request-channel-listener.injectable.d.ts +1 -1
- package/dist/src/main/utils/channel/channel-listeners/listener-tokens.d.ts +1 -1
- package/dist/src/renderer/api/catalog/entity/get-active-cluster-entity.injectable.d.ts +1 -1
- package/dist/src/renderer/api/catalog/entity/registry.d.ts +2 -2
- package/dist/src/renderer/api/create-terminal-api.injectable.d.ts +1 -1
- package/dist/src/renderer/api/helpers/watch-for-general-entity-navigation.injectable.d.ts +1 -1
- package/dist/src/renderer/catalog/normalize-menu-item.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+catalog/catalog-entity-store/catalog-entity.store.d.ts +3 -3
- package/dist/src/renderer/components/+catalog/columns/get.injectable.d.ts +2 -2
- package/dist/src/renderer/components/+catalog/columns/specific-category.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+catalog/get-label-badges.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+config-secrets/add-secret-dialog.d.ts +1 -1
- package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+extensions/attempt-install/create-temp-files-and-validate.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+extensions/attempt-install/get-extension-dest-folder.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+extensions/attempt-install-by-info.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+extensions/attempt-installs.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+extensions/confirm-uninstall-extension.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+extensions/install-extension-from-input.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+extensions/install-on-drop.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+extensions/read-file-notify/read-file-notify.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+helm-charts/helm-charts/request-versions-of-chart-for-release.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+helm-charts/helm-charts/request-versions.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+helm-releases/dialog/open.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+helm-releases/release-details/release-details-model/get-resource-details-url.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+helm-releases/release-details/release-details-model/request-detailed-helm-release.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+helm-releases/rollback-release/rollback-release.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+helm-releases/to-helm-release.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+namespaces/namespace-select-filter-model/is-selection-key.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+namespaces/namespace-select-filter-model/namespace-select-filter-model.d.ts +2 -2
- package/dist/src/renderer/components/+namespaces/namespace-select.d.ts +1 -1
- package/dist/src/renderer/components/+storage-volumes/get-persisten-volumes-by-storage-class.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-deployments/scale/open.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-deployments/store.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-jobs/get-jobs-by-owner.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-overview/overview-workload-status.d.ts +2 -2
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variant-helpers.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-pods/get-pod-by-id.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-pods/get-pods-by-owner-id.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-replicasets/scale-dialog/open.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-statefulsets/scale/open-dialog.injectable.d.ts +1 -1
- package/dist/src/renderer/components/animate/animate.d.ts +1 -1
- package/dist/src/renderer/components/animate/request-animation-frame.injectable.d.ts +1 -1
- package/dist/src/renderer/components/chart/options.d.ts +1 -1
- package/dist/src/renderer/components/chart/pie-chart.d.ts +1 -1
- package/dist/src/renderer/components/cluster-manager/cluster-frame-handler.d.ts +11 -1
- package/dist/src/renderer/components/cluster-manager/emit-cluster-visibility.injectable.d.ts +5 -0
- package/dist/src/renderer/components/command-palette/registered-commands/commands.d.ts +1 -1
- package/dist/src/renderer/components/command-palette/registered-commands/get-entity-setting-commands.injectable.d.ts +1 -1
- package/dist/src/renderer/components/confirm-dialog/confirm.injectable.d.ts +1 -1
- package/dist/src/renderer/components/confirm-dialog/open.injectable.d.ts +1 -1
- package/dist/src/renderer/components/confirm-dialog/with-confirm.injectable.d.ts +1 -1
- package/dist/src/renderer/components/delete-cluster-dialog/open.injectable.d.ts +1 -1
- package/dist/src/renderer/components/delete-cluster-dialog/save-kubeconfig.injectable.d.ts +1 -1
- package/dist/src/renderer/components/dock/create-resource/create-resource-templates.injectable.d.ts +1 -1
- package/dist/src/renderer/components/dock/dock/store.d.ts +3 -3
- package/dist/src/renderer/components/dock/dock-tab-store/dock-tab.store.d.ts +1 -1
- package/dist/src/renderer/components/dock/edit-resource/edit-resource-model/call-for-patch-resource/call-for-patch-resource.injectable.d.ts +1 -1
- package/dist/src/renderer/components/dock/edit-resource/edit-resource-model/call-for-resource/call-for-resource.injectable.d.ts +1 -1
- package/dist/src/renderer/components/dock/install-chart/create-install-chart-tab.injectable.d.ts +1 -1
- package/dist/src/renderer/components/dock/logs/call-for-logs.injectable.d.ts +1 -1
- package/dist/src/renderer/components/dock/logs/create-logs-tab.injectable.d.ts +1 -1
- package/dist/src/renderer/components/dock/logs/store.d.ts +1 -1
- package/dist/src/renderer/components/dock/terminal/create-terminal.injectable.d.ts +1 -1
- package/dist/src/renderer/components/dock/upgrade-chart/upgrade-chart-model.injectable.d.ts +2 -4
- package/dist/src/renderer/components/dock/upgrade-chart/view.d.ts +1 -1
- package/dist/src/renderer/components/drawer/drawer.d.ts +1 -1
- package/dist/src/renderer/components/file-picker/file-picker.d.ts +1 -1
- package/dist/src/renderer/components/input/input.d.ts +4 -4
- package/dist/src/renderer/components/input/input_validators.d.ts +4 -4
- package/dist/src/renderer/components/item-object-list/list-layout.d.ts +8 -8
- package/dist/src/renderer/components/kube-detail-params/get-details-url.injectable.d.ts +1 -1
- package/dist/src/renderer/components/kube-detail-params/hide-details.injectable.d.ts +1 -1
- package/dist/src/renderer/components/kube-detail-params/show-details.injectable.d.ts +1 -1
- package/dist/src/renderer/components/kube-object-menu/kube-object-menu-item-injection-token.d.ts +1 -1
- package/dist/src/renderer/components/kube-object-menu/on-context-menu-open.injectable.d.ts +1 -1
- package/dist/src/renderer/components/kubeconfig-dialog/open-service-account-kube-config-dialog.injectable.d.ts +1 -1
- package/dist/src/renderer/components/kubeconfig-dialog/open.injectable.d.ts +1 -1
- package/dist/src/renderer/components/list/list.d.ts +1 -1
- package/dist/src/renderer/components/monaco-editor/monaco-editor.d.ts +1 -1
- package/dist/src/renderer/components/monaco-editor/monaco-themes.d.ts +2 -2
- package/dist/src/renderer/components/notifications/notifications.d.ts +1 -1
- package/dist/src/renderer/components/notifications/notifications.store.d.ts +2 -2
- package/dist/src/renderer/components/notifications/show-checked-error.injectable.d.ts +1 -1
- package/dist/src/renderer/components/render-delay/cancel-idle-callback.injectable.d.ts +1 -1
- package/dist/src/renderer/components/render-delay/request-idle-callback.injectable.d.ts +1 -1
- package/dist/src/renderer/components/resource-metrics/resource-metrics.d.ts +1 -1
- package/dist/src/renderer/components/select/select.d.ts +1 -1
- package/dist/src/renderer/components/table/table-cell.d.ts +1 -1
- package/dist/src/renderer/components/table/table-head.d.ts +1 -1
- package/dist/src/renderer/components/table/table-row.d.ts +1 -1
- package/dist/src/renderer/components/table/table.d.ts +4 -4
- package/dist/src/renderer/components/test-utils/discovery-of-html-elements.d.ts +4 -4
- package/dist/src/renderer/components/test-utils/get-application-builder.d.ts +2 -2
- package/dist/src/renderer/components/test-utils/renderFor.d.ts +2 -2
- package/dist/src/renderer/ipc/index.d.ts +0 -8
- package/dist/src/renderer/kube-object/handler.d.ts +2 -2
- package/dist/src/renderer/kube-watch-api/kube-watch-api.d.ts +1 -1
- package/dist/src/renderer/kubectl/apply-all.injectable.d.ts +2 -0
- package/dist/src/renderer/kubectl/delete-all.injectable.d.ts +2 -0
- package/dist/src/renderer/navigation/create-page-param.injectable.d.ts +1 -1
- package/dist/src/renderer/navigation/is-route-active.injectable.d.ts +1 -1
- package/dist/src/renderer/navigation/match-route.injectable.d.ts +1 -1
- package/dist/src/renderer/navigation/navigate.injectable.d.ts +1 -1
- package/dist/src/renderer/port-forward/open-port-forward.injectable.d.ts +1 -1
- package/dist/src/renderer/port-forward/port-forward-item.d.ts +1 -1
- package/dist/src/renderer/port-forward/port-forward-store/request-active-port-forward.injectable.d.ts +1 -1
- package/dist/src/renderer/routes/get-extension-page-parameters.injectable.d.ts +1 -1
- package/dist/src/renderer/themes/active-type.injectable.d.ts +1 -1
- package/dist/src/renderer/themes/store.d.ts +2 -2
- package/dist/src/renderer/utils/create-storage/create-storage.d.ts +1 -1
- package/dist/src/renderer/utils/cssNames.d.ts +3 -3
- package/dist/src/renderer/window/event-listener.injectable.d.ts +2 -2
- package/dist/src/test-utils/skippers.d.ts +13 -0
- package/package.json +1 -1
- package/dist/src/common/__tests__/system-ca.test.d.ts +0 -1
- package/dist/src/common/system-ca.d.ts +0 -24
@@ -3,6 +3,6 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import type { CronJob, Job } from "../../../common/k8s-api/endpoints";
|
6
|
-
export
|
6
|
+
export type GetJobsByOwner = (cronJob: CronJob) => Job[];
|
7
7
|
declare const getJobsByOwnerInjectable: import("@ogre-tools/injectable").Injectable<GetJobsByOwner, unknown, void>;
|
8
8
|
export default getJobsByOwnerInjectable;
|
@@ -6,8 +6,8 @@ import "./overview-workload-status.scss";
|
|
6
6
|
import React from "react";
|
7
7
|
import type { PascalCase } from "type-fest";
|
8
8
|
import type { Workload } from "./workloads/workload-injection-token";
|
9
|
-
export
|
10
|
-
export
|
9
|
+
export type LowercaseOrPascalCase<T extends string> = Lowercase<T> | PascalCase<T>;
|
10
|
+
export type WorkloadStatus = Partial<Record<LowercaseOrPascalCase<keyof typeof statusBackgroundColorMapping>, number>>;
|
11
11
|
export interface OverviewWorkloadStatusProps {
|
12
12
|
workload: Workload;
|
13
13
|
}
|
@@ -11,7 +11,7 @@ export interface PodVolumeVariantSpecificProps<Kind extends keyof PodVolumeVaria
|
|
11
11
|
pod: Pod;
|
12
12
|
volumeName: string;
|
13
13
|
}
|
14
|
-
export
|
14
|
+
export type VolumeVariantComponent<Kind extends keyof PodVolumeVariants> = React.FunctionComponent<PodVolumeVariantSpecificProps<Kind>>;
|
15
15
|
export interface LocalRefPropsApi {
|
16
16
|
getUrl(desc?: Partial<ResourceDescriptor>, query?: Partial<KubeApiQueryParams>): string;
|
17
17
|
}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { Pod } from "../../../common/k8s-api/endpoints";
|
2
|
-
export
|
2
|
+
export type GetPodById = (id: string) => Pod | undefined;
|
3
3
|
declare const getPodByIdInjectable: import("@ogre-tools/injectable").Injectable<GetPodById, unknown, void>;
|
4
4
|
export default getPodByIdInjectable;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { Pod } from "../../../common/k8s-api/endpoints";
|
2
|
-
export
|
2
|
+
export type GetPodsByOwnerId = (ownerId: string) => Pod[];
|
3
3
|
declare const getPodsByOwnerIdInjectable: import("@ogre-tools/injectable").Injectable<GetPodsByOwnerId, unknown, void>;
|
4
4
|
export default getPodsByOwnerIdInjectable;
|
package/dist/src/renderer/components/+workloads-replicasets/scale-dialog/open.injectable.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { ReplicaSet } from "../../../../common/k8s-api/endpoints";
|
2
|
-
export
|
2
|
+
export type OpenReplicaSetScaleDialog = (obj: ReplicaSet) => void;
|
3
3
|
declare const openReplicaSetScaleDialogInjectable: import("@ogre-tools/injectable").Injectable<OpenReplicaSetScaleDialog, unknown, void>;
|
4
4
|
export default openReplicaSetScaleDialogInjectable;
|
package/dist/src/renderer/components/+workloads-statefulsets/scale/open-dialog.injectable.d.ts
CHANGED
@@ -3,6 +3,6 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import type { StatefulSet } from "../../../../common/k8s-api/endpoints";
|
6
|
-
export
|
6
|
+
export type OpenStatefulSetScaleDialog = (obj: StatefulSet) => void;
|
7
7
|
declare const openStatefulSetScaleDialogInjectable: import("@ogre-tools/injectable").Injectable<OpenStatefulSetScaleDialog, unknown, void>;
|
8
8
|
export default openStatefulSetScaleDialogInjectable;
|
@@ -4,7 +4,7 @@
|
|
4
4
|
*/
|
5
5
|
import "./animate.scss";
|
6
6
|
import React from "react";
|
7
|
-
export
|
7
|
+
export type AnimateName = "opacity" | "slide-right" | "opacity-scale" | string;
|
8
8
|
export interface AnimateProps {
|
9
9
|
name?: AnimateName;
|
10
10
|
enter?: boolean;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export
|
1
|
+
export type RequestAnimationFrame = (callback: () => void) => void;
|
2
2
|
declare const requestAnimationFrameInjectable: import("@ogre-tools/injectable").Injectable<RequestAnimationFrame, unknown, void>;
|
3
3
|
export default requestAnimationFrameInjectable;
|
@@ -3,5 +3,5 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import type { ChartOptions } from "chart.js";
|
6
|
-
export
|
6
|
+
export type MetricsTab = "CPU" | "Memory" | "Disk" | "Pods" | "Network" | "Filesystem" | "Duration";
|
7
7
|
export declare const metricTabOptions: Record<MetricsTab, ChartOptions>;
|
@@ -11,7 +11,7 @@ export interface PieChartProps extends ChartProps {
|
|
11
11
|
export interface PieChartData extends ChartJS.ChartData {
|
12
12
|
datasets?: PieChartDataSets[];
|
13
13
|
}
|
14
|
-
export
|
14
|
+
export type DatasetTooltipLabel = (percent: string) => string | string;
|
15
15
|
interface PieChartDataSets extends ChartJS.ChartDataSets {
|
16
16
|
id?: string;
|
17
17
|
tooltipLabels?: DatasetTooltipLabel[];
|
@@ -3,16 +3,26 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import type { ClusterId } from "../../../common/cluster-types";
|
6
|
+
import type { Logger } from "../../../common/logger";
|
7
|
+
import type { GetClusterById } from "../../../common/cluster-store/get-by-id.injectable";
|
8
|
+
import type { EmitClusterVisibility } from "./emit-cluster-visibility.injectable";
|
6
9
|
export interface LensView {
|
7
10
|
isLoaded: boolean;
|
8
11
|
frame: HTMLIFrameElement;
|
9
12
|
}
|
13
|
+
interface Dependencies {
|
14
|
+
readonly logger: Logger;
|
15
|
+
getClusterById: GetClusterById;
|
16
|
+
emitClusterVisibility: EmitClusterVisibility;
|
17
|
+
}
|
10
18
|
export declare class ClusterFrameHandler {
|
19
|
+
protected readonly dependencies: Dependencies;
|
11
20
|
private readonly views;
|
12
|
-
constructor();
|
21
|
+
constructor(dependencies: Dependencies);
|
13
22
|
hasLoadedView(clusterId: string): boolean;
|
14
23
|
initView(clusterId: ClusterId): void;
|
15
24
|
private prevVisibleClusterChange?;
|
16
25
|
setVisibleCluster(clusterId: ClusterId | null): void;
|
17
26
|
clearVisibleCluster(): void;
|
18
27
|
}
|
28
|
+
export {};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import type { MessageChannelHandler } from "../../../common/utils/channel/message-channel-listener-injection-token";
|
2
|
+
import { clusterVisibilityChannel } from "../../../common/cluster/visibility-channel";
|
3
|
+
export type EmitClusterVisibility = MessageChannelHandler<typeof clusterVisibilityChannel>;
|
4
|
+
declare const emitClusterVisibilityInjectable: import("@ogre-tools/injectable").Injectable<(message: string | null) => void, unknown, void>;
|
5
|
+
export default emitClusterVisibilityInjectable;
|
@@ -44,4 +44,4 @@ export interface CommandRegistration {
|
|
44
44
|
*/
|
45
45
|
isActive?: (context: CommandContext) => boolean;
|
46
46
|
}
|
47
|
-
export
|
47
|
+
export type RegisteredCommand = Required<Omit<CommandRegistration, "scope">>;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { RegisteredEntitySetting } from "../../../../extensions/registries";
|
2
|
-
export
|
2
|
+
export type GetEntitySettingCommands = (kind: string, apiVersion: string, source?: string) => RegisteredEntitySetting[];
|
3
3
|
declare const getEntitySettingCommandsInjectable: import("@ogre-tools/injectable").Injectable<GetEntitySettingCommands, unknown, void>;
|
4
4
|
export default getEntitySettingCommandsInjectable;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { ConfirmDialogBooleanParams } from "./confirm-dialog";
|
2
|
-
export
|
2
|
+
export type Confirm = (params: ConfirmDialogBooleanParams) => Promise<boolean>;
|
3
3
|
declare const confirmInjectable: import("@ogre-tools/injectable").Injectable<Confirm, unknown, void>;
|
4
4
|
export default confirmInjectable;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { ConfirmDialogParams } from "./confirm-dialog";
|
2
|
-
export
|
2
|
+
export type OpenConfirmDialog = (params: ConfirmDialogParams) => void;
|
3
3
|
declare const openConfirmDialogInjectable: import("@ogre-tools/injectable").Injectable<OpenConfirmDialog, unknown, void>;
|
4
4
|
export default openConfirmDialogInjectable;
|
@@ -3,6 +3,6 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import type { ConfirmDialogParams } from "./confirm-dialog";
|
6
|
-
export
|
6
|
+
export type WithConfirmation = (params: ConfirmDialogParams) => () => void;
|
7
7
|
declare const withConfirmationInjectable: import("@ogre-tools/injectable").Injectable<WithConfirmation, unknown, void>;
|
8
8
|
export default withConfirmationInjectable;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { DeleteClusterDialogState } from "./state.injectable";
|
2
|
-
export
|
2
|
+
export type OpenDeleteClusterDialog = (props: DeleteClusterDialogState) => void;
|
3
3
|
declare const openDeleteClusterDialogInjectable: import("@ogre-tools/injectable").Injectable<OpenDeleteClusterDialog, unknown, void>;
|
4
4
|
export default openDeleteClusterDialogInjectable;
|
@@ -3,6 +3,6 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import type { KubeConfig } from "@kubernetes/client-node";
|
6
|
-
export
|
6
|
+
export type SaveKubeconfig = (config: KubeConfig, path: string) => Promise<void>;
|
7
7
|
declare const saveKubeconfigInjectable: import("@ogre-tools/injectable").Injectable<SaveKubeconfig, unknown, void>;
|
8
8
|
export default saveKubeconfigInjectable;
|
package/dist/src/renderer/components/dock/create-resource/create-resource-templates.injectable.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { GroupBase } from "react-select";
|
2
|
-
export
|
2
|
+
export type RawTemplates = [group: string, items: [file: string, contents: string][]];
|
3
3
|
declare const createResourceTemplatesInjectable: import("@ogre-tools/injectable").Injectable<Promise<import("mobx").IComputedValue<GroupBase<{
|
4
4
|
label: string;
|
5
5
|
value: string;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import type { StorageLayer } from "../../../utils";
|
6
|
-
export
|
6
|
+
export type TabId = string;
|
7
7
|
export declare enum TabKind {
|
8
8
|
TERMINAL = "terminal",
|
9
9
|
CREATE_RESOURCE = "create-resource",
|
@@ -17,7 +17,7 @@ export declare enum TabKind {
|
|
17
17
|
*
|
18
18
|
* All fields are required.
|
19
19
|
*/
|
20
|
-
export
|
20
|
+
export type DockTab = Required<DockTabCreate>;
|
21
21
|
/**
|
22
22
|
* These are the arguments for creating a new Tab on the dock
|
23
23
|
*/
|
@@ -50,7 +50,7 @@ export interface DockTabCreate {
|
|
50
50
|
* That way users should get a type error if they try and specify a `kind`
|
51
51
|
* themselves.
|
52
52
|
*/
|
53
|
-
export
|
53
|
+
export type DockTabCreateSpecific = Omit<DockTabCreate, "kind">;
|
54
54
|
export interface DockStorageState {
|
55
55
|
height: number;
|
56
56
|
tabs: DockTab[];
|
@@ -9,7 +9,7 @@ export interface DockTabStoreOptions {
|
|
9
9
|
autoInit?: boolean;
|
10
10
|
storageKey?: string;
|
11
11
|
}
|
12
|
-
export
|
12
|
+
export type DockTabStorageState<T> = Record<TabId, T>;
|
13
13
|
export interface DockTabStoreDependencies {
|
14
14
|
createStorage: CreateStorage;
|
15
15
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { AsyncResult } from "../../../../../../common/utils/async-result";
|
2
2
|
import type { JsonPatch } from "../../../../../../common/k8s-api/kube-object.store";
|
3
3
|
import type { KubeObject } from "../../../../../../common/k8s-api/kube-object";
|
4
|
-
export
|
4
|
+
export type CallForPatchResource = (item: KubeObject, patch: JsonPatch) => Promise<AsyncResult<{
|
5
5
|
name: string;
|
6
6
|
kind: string;
|
7
7
|
}>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { KubeObject } from "../../../../../../common/k8s-api/kube-object";
|
2
2
|
import type { AsyncResult } from "../../../../../../common/utils/async-result";
|
3
|
-
export
|
3
|
+
export type CallForResource = (selfLink: string) => Promise<AsyncResult<KubeObject | undefined>>;
|
4
4
|
declare const callForResourceInjectable: import("@ogre-tools/injectable").Injectable<CallForResource, unknown, void>;
|
5
5
|
export default callForResourceInjectable;
|
package/dist/src/renderer/components/dock/install-chart/create-install-chart-tab.injectable.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { HelmChart } from "../../../../common/k8s-api/endpoints/helm-charts.api";
|
2
2
|
import type { DockTab, DockTabCreateSpecific } from "../dock/store";
|
3
|
-
export
|
3
|
+
export type CreateInstallChartTab = (chart: HelmChart, tabParams?: DockTabCreateSpecific) => DockTab;
|
4
4
|
declare const createInstallChartTabInjectable: import("@ogre-tools/injectable").Injectable<(chart: HelmChart, tabParams?: DockTabCreateSpecific) => Required<import("../dock/store").DockTabCreate>, unknown, void>;
|
5
5
|
export default createInstallChartTabInjectable;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { PodLogsQuery } from "../../../../common/k8s-api/endpoints";
|
2
2
|
import type { ResourceDescriptor } from "../../../../common/k8s-api/kube-api";
|
3
|
-
export
|
3
|
+
export type CallForLogs = (params: ResourceDescriptor, query?: PodLogsQuery) => Promise<string>;
|
4
4
|
declare const callForLogsInjectable: import("@ogre-tools/injectable").Injectable<CallForLogs, unknown, void>;
|
5
5
|
export default callForLogsInjectable;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { TabId } from "../dock/store";
|
2
2
|
import type { LogTabData } from "./tab-store";
|
3
|
-
export
|
3
|
+
export type CreateLogsTabData = Pick<LogTabData, "owner" | "selectedPodId" | "selectedContainer" | "namespace"> & Omit<Partial<LogTabData>, "owner" | "selectedPodId" | "selectedContainer" | "namespace">;
|
4
4
|
declare const createLogsTabInjectable: import("@ogre-tools/injectable").Injectable<(title: string, data: CreateLogsTabData) => TabId, unknown, void>;
|
5
5
|
export default createLogsTabInjectable;
|
@@ -74,7 +74,7 @@ export declare class LogStore {
|
|
74
74
|
*/
|
75
75
|
getLastSinceTime(tabId: TabId): string;
|
76
76
|
splitOutTimestamp(logs: string): [string, string];
|
77
|
-
getTimestamps(logs: string): RegExpMatchArray;
|
77
|
+
getTimestamps(logs: string): RegExpMatchArray | null;
|
78
78
|
removeTimestamps(logs: string): string;
|
79
79
|
clearLogs(tabId: TabId): void;
|
80
80
|
reload(tabId: TabId, computedPod: IComputedValue<Pod | undefined>, logTabData: IComputedValue<LogTabData | undefined>): Promise<void>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Terminal } from "./terminal";
|
2
2
|
import type { TabId } from "../dock/store";
|
3
3
|
import type { TerminalApi } from "../../../api/terminal-api";
|
4
|
-
export
|
4
|
+
export type CreateTerminal = (tabId: TabId, api: TerminalApi) => Terminal;
|
5
5
|
declare const createTerminalInjectable: import("@ogre-tools/injectable").Injectable<CreateTerminal, unknown, void>;
|
6
6
|
export default createTerminalInjectable;
|
@@ -2,6 +2,7 @@ import type { IComputedValue } from "mobx";
|
|
2
2
|
import type { SingleValue } from "react-select";
|
3
3
|
import type { HelmChartVersion } from "../../+helm-charts/helm-charts/versions";
|
4
4
|
import type { HelmRelease } from "../../../../common/k8s-api/endpoints/helm-releases.api";
|
5
|
+
import type { AsyncResult } from "../../../../common/utils/async-result";
|
5
6
|
import type { SelectOption } from "../../select";
|
6
7
|
export interface UpgradeChartModel {
|
7
8
|
readonly release: HelmRelease;
|
@@ -16,10 +17,7 @@ export interface UpgradeChartModel {
|
|
16
17
|
readonly value: IComputedValue<HelmChartVersion | undefined>;
|
17
18
|
set: (value: SingleValue<SelectOption<HelmChartVersion>>) => void;
|
18
19
|
};
|
19
|
-
submit: () => Promise<
|
20
|
-
}
|
21
|
-
export interface UpgradeChartSubmitResult {
|
22
|
-
completedSuccessfully: boolean;
|
20
|
+
submit: () => Promise<AsyncResult<void, string>>;
|
23
21
|
}
|
24
22
|
declare const upgradeChartModelInjectable: import("@ogre-tools/injectable").Injectable<Promise<UpgradeChartModel>, unknown, Required<import("../dock/store").DockTabCreate>>;
|
25
23
|
export default upgradeChartModelInjectable;
|
@@ -14,7 +14,7 @@ interface Dependencies {
|
|
14
14
|
model: UpgradeChartModel;
|
15
15
|
}
|
16
16
|
export declare class NonInjectedUpgradeChart extends React.Component<UpgradeChartProps & Dependencies> {
|
17
|
-
upgrade: () => Promise<JSX.Element
|
17
|
+
upgrade: () => Promise<JSX.Element>;
|
18
18
|
render(): JSX.Element;
|
19
19
|
}
|
20
20
|
export declare const UpgradeChart: React.FunctionComponent<UpgradeChartProps>;
|
@@ -7,7 +7,7 @@ import React from "react";
|
|
7
7
|
import type { SingleOrMany } from "../../utils";
|
8
8
|
import type { AnimateName } from "../animate";
|
9
9
|
import { ResizeDirection, ResizeGrowthDirection, ResizeSide } from "../resizing-anchor";
|
10
|
-
export
|
10
|
+
export type DrawerPosition = "top" | "left" | "right" | "bottom";
|
11
11
|
export interface DrawerProps {
|
12
12
|
open: boolean;
|
13
13
|
title: React.ReactNode;
|
@@ -36,5 +36,5 @@ export interface BaseProps {
|
|
36
36
|
maxTotalSize?: number;
|
37
37
|
onOverTotalSizeLimit?: OverTotalSizeLimitStyle;
|
38
38
|
}
|
39
|
-
export
|
39
|
+
export type FilePickerProps = BaseProps & (MemoryUseProps | FileUploadProps);
|
40
40
|
export declare const FilePicker: (props: FilePickerProps) => JSX.Element;
|
@@ -32,8 +32,8 @@ declare const asyncInputValidator: typeof Validators.asyncInputValidator, inputV
|
|
32
32
|
};
|
33
33
|
export { InputValidators, asyncInputValidator, inputValidator, isAsyncValidator, unionInputValidatorsAsync, };
|
34
34
|
export type { InputValidator, InputValidation, InputValidationResult, SyncValidationMessage, };
|
35
|
-
|
36
|
-
|
35
|
+
type InputElement = HTMLInputElement | HTMLTextAreaElement;
|
36
|
+
type InputElementProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement> & DOMAttributes<InputElement>;
|
37
37
|
export interface IconDataFnArg {
|
38
38
|
isDirty: boolean;
|
39
39
|
}
|
@@ -43,8 +43,8 @@ export interface IconDataFnArg {
|
|
43
43
|
* - A react node
|
44
44
|
* - Or a function that produces a react node
|
45
45
|
*/
|
46
|
-
export
|
47
|
-
export
|
46
|
+
export type IconData = string | React.ReactNode | ((opt: IconDataFnArg) => React.ReactNode);
|
47
|
+
export type InputProps = Omit<InputElementProps, "onChange" | "onSubmit"> & {
|
48
48
|
theme?: "round-black" | "round";
|
49
49
|
className?: string;
|
50
50
|
value?: string;
|
@@ -5,9 +5,9 @@
|
|
5
5
|
import type { InputProps } from "./input";
|
6
6
|
import type React from "react";
|
7
7
|
import type { SetRequired } from "type-fest";
|
8
|
-
export
|
9
|
-
export
|
10
|
-
export
|
8
|
+
export type InputValidationResult<IsAsync extends boolean> = IsAsync extends true ? Promise<void> : boolean;
|
9
|
+
export type InputValidation<IsAsync extends boolean> = (value: string, props?: InputProps) => InputValidationResult<IsAsync>;
|
10
|
+
export type SyncValidationMessage = React.ReactNode | ((value: string, props?: InputProps) => React.ReactNode);
|
11
11
|
/**
|
12
12
|
* @deprecated This type is not as type safe as it is possible to specify an async input validator without specifying a `debounce` time.
|
13
13
|
*
|
@@ -40,7 +40,7 @@ export interface SyncInputValidator {
|
|
40
40
|
message: SyncValidationMessage;
|
41
41
|
debounce?: undefined;
|
42
42
|
}
|
43
|
-
export
|
43
|
+
export type InputValidator<IsAsync extends boolean = boolean> = SyncInputValidator | AsyncInputValidator | (IsAsync extends boolean ? LegacyInputValidator : never);
|
44
44
|
export declare function isAsyncValidator(validator: InputValidator): validator is AsyncInputValidator;
|
45
45
|
/**
|
46
46
|
* A helper function to create an {@link AsyncInputValidator}
|
@@ -14,17 +14,17 @@ import type { ItemObject } from "../../../common/item.store";
|
|
14
14
|
import type { SearchInputUrlProps } from "../input";
|
15
15
|
import type { PageFiltersStore } from "./page-filters/store";
|
16
16
|
import type { SubscribableStore } from "../../kube-watch-api/kube-watch-api";
|
17
|
-
export
|
18
|
-
export
|
19
|
-
export
|
20
|
-
export
|
17
|
+
export type SearchFilter<I extends ItemObject> = (item: I) => SingleOrMany<string | number | undefined | null>;
|
18
|
+
export type SearchFilters<I extends ItemObject> = Record<string, SearchFilter<I>>;
|
19
|
+
export type ItemsFilter<I extends ItemObject> = (items: I[]) => I[];
|
20
|
+
export type ItemsFilters<I extends ItemObject> = Record<string, ItemsFilter<I>>;
|
21
21
|
export interface HeaderPlaceholders {
|
22
22
|
title?: ReactNode;
|
23
23
|
searchProps?: SearchInputUrlProps;
|
24
24
|
filters?: ReactNode;
|
25
25
|
info?: ReactNode;
|
26
26
|
}
|
27
|
-
export
|
27
|
+
export type ItemListStore<I extends ItemObject, PreLoadStores extends boolean> = {
|
28
28
|
readonly isLoaded: boolean;
|
29
29
|
readonly failedLoading: boolean;
|
30
30
|
getTotalCount: () => number;
|
@@ -46,9 +46,9 @@ export declare type ItemListStore<I extends ItemObject, PreLoadStores extends bo
|
|
46
46
|
} : {
|
47
47
|
loadAll?: unknown;
|
48
48
|
});
|
49
|
-
export
|
50
|
-
export
|
51
|
-
export
|
49
|
+
export type RenderHeaderTitle<Item extends ItemObject, PreLoadStores extends boolean> = ReactNode | ((parent: NonInjectedItemListLayout<Item, PreLoadStores>) => ReactNode);
|
50
|
+
export type HeaderCustomizer = (placeholders: HeaderPlaceholders) => HeaderPlaceholders;
|
51
|
+
export type ItemListLayoutProps<Item extends ItemObject, PreLoadStores extends boolean = boolean> = {
|
52
52
|
tableId?: string;
|
53
53
|
className: IClassName;
|
54
54
|
getItems: () => Item[];
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export
|
1
|
+
export type GetDetailsUrl = (selfLink: string, resetSelected?: boolean, mergeGlobals?: boolean) => string;
|
2
2
|
declare const getDetailsUrlInjectable: import("@ogre-tools/injectable").Injectable<GetDetailsUrl, unknown, void>;
|
3
3
|
export default getDetailsUrlInjectable;
|
@@ -3,6 +3,6 @@
|
|
3
3
|
* @param resetSelected If true then will reset the selected kube object (which object is highlighted generally)
|
4
4
|
* @default resetSelected true
|
5
5
|
*/
|
6
|
-
export
|
6
|
+
export type ShowDetails = (selfLink: string | undefined, resetSelected?: boolean) => void;
|
7
7
|
declare const showDetailsInjectable: import("@ogre-tools/injectable").Injectable<ShowDetails, unknown, void>;
|
8
8
|
export default showDetailsInjectable;
|
package/dist/src/renderer/components/kube-object-menu/kube-object-menu-item-injection-token.d.ts
CHANGED
@@ -2,7 +2,7 @@ import type { IComputedValue } from "mobx";
|
|
2
2
|
import type { KubeObjectMenuProps } from "./kube-object-menu";
|
3
3
|
import type { KubeObject } from "../../../common/k8s-api/kube-object";
|
4
4
|
import type React from "react";
|
5
|
-
export
|
5
|
+
export type KubeObjectMenuItemComponent = React.ElementType<KubeObjectMenuProps<KubeObject>>;
|
6
6
|
export interface KubeObjectMenuItem {
|
7
7
|
kind: string;
|
8
8
|
apiVersions: string[];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { KubeObject } from "../../../common/k8s-api/kube-object";
|
2
2
|
import type { KubeObjectOnContextMenuOpenContext } from "../../kube-object/handler";
|
3
|
-
export
|
3
|
+
export type OnKubeObjectContextMenuOpen = (obj: KubeObject, ctx: KubeObjectOnContextMenuOpenContext) => void;
|
4
4
|
declare const onKubeObjectContextMenuOpenInjectable: import("@ogre-tools/injectable").Injectable<OnKubeObjectContextMenuOpen, unknown, void>;
|
5
5
|
export default onKubeObjectContextMenuOpenInjectable;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { ServiceAccount } from "../../../common/k8s-api/endpoints";
|
2
|
-
export
|
2
|
+
export type OpenServiceAccountKubeConfigDialog = (account: ServiceAccount) => void;
|
3
3
|
declare const openServiceAccountKubeConfigDialogInjectable: import("@ogre-tools/injectable").Injectable<OpenServiceAccountKubeConfigDialog, unknown, void>;
|
4
4
|
export default openServiceAccountKubeConfigDialogInjectable;
|
@@ -3,6 +3,6 @@ export interface OpenKubeconfigDialogArgs {
|
|
3
3
|
title?: React.ReactNode;
|
4
4
|
loader: () => Promise<string>;
|
5
5
|
}
|
6
|
-
export
|
6
|
+
export type OpenKubeconfigDialog = (openArgs: OpenKubeconfigDialogArgs) => void;
|
7
7
|
declare const openKubeconfigDialogInjectable: import("@ogre-tools/injectable").Injectable<OpenKubeconfigDialog, unknown, void>;
|
8
8
|
export default openKubeconfigDialogInjectable;
|
@@ -4,7 +4,7 @@
|
|
4
4
|
*/
|
5
5
|
import React from "react";
|
6
6
|
import type { UseTableOptions } from "react-table";
|
7
|
-
export
|
7
|
+
export type SearchFilter<T> = (item: T) => string | number;
|
8
8
|
export interface ListProps<T> extends UseTableOptions<any> {
|
9
9
|
items: T[];
|
10
10
|
filters: SearchFilter<T>[];
|
@@ -5,7 +5,7 @@
|
|
5
5
|
import React from "react";
|
6
6
|
import { editor, Uri } from "monaco-editor";
|
7
7
|
import type { MonacoTheme } from "./monaco-themes";
|
8
|
-
export
|
8
|
+
export type MonacoEditorId = string;
|
9
9
|
export interface MonacoEditorProps {
|
10
10
|
id?: MonacoEditorId;
|
11
11
|
className?: string;
|
@@ -3,8 +3,8 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import { editor } from "monaco-editor";
|
6
|
-
export
|
7
|
-
export
|
6
|
+
export type MonacoTheme = "vs" | "vs-dark" | "hc-black" | MonacoCustomTheme;
|
7
|
+
export type MonacoCustomTheme = "clouds-midnight";
|
8
8
|
export interface MonacoThemeData extends editor.IStandaloneThemeData {
|
9
9
|
name?: string;
|
10
10
|
}
|
@@ -7,7 +7,7 @@ import React from "react";
|
|
7
7
|
import type { Disposer } from "../../utils";
|
8
8
|
import type { CreateNotificationOptions, NotificationMessage } from "./notifications.store";
|
9
9
|
import type { ShowCheckedErrorNotification } from "./show-checked-error.injectable";
|
10
|
-
export
|
10
|
+
export type ShowNotification = (message: NotificationMessage, opts?: CreateNotificationOptions) => Disposer;
|
11
11
|
export declare const Notifications: React.FC<{}> & {
|
12
12
|
ok: ShowNotification;
|
13
13
|
checkedError: ShowCheckedErrorNotification;
|
@@ -4,8 +4,8 @@
|
|
4
4
|
*/
|
5
5
|
import type React from "react";
|
6
6
|
import type { JsonApiErrorParsed } from "../../../common/k8s-api/json-api";
|
7
|
-
export
|
8
|
-
export
|
7
|
+
export type NotificationId = string | number;
|
8
|
+
export type NotificationMessage = string | React.ReactElement | React.ReactElement[] | JsonApiErrorParsed | Error;
|
9
9
|
export declare enum NotificationStatus {
|
10
10
|
OK = "ok",
|
11
11
|
ERROR = "error",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Disposer } from "../../utils";
|
2
2
|
import type { CreateNotificationOptions } from "./notifications.store";
|
3
|
-
export
|
3
|
+
export type ShowCheckedErrorNotification = (message: unknown, fallback: string, opts?: CreateNotificationOptions) => Disposer;
|
4
4
|
declare const showCheckedErrorNotificationInjectable: import("@ogre-tools/injectable").Injectable<ShowCheckedErrorNotification, unknown, void>;
|
5
5
|
export default showCheckedErrorNotificationInjectable;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export
|
1
|
+
export type CancelIdleCallback = (handle: number) => void;
|
2
2
|
declare const cancelIdleCallbackInjectable: import("@ogre-tools/injectable").Injectable<CancelIdleCallback, unknown, void>;
|
3
3
|
export default cancelIdleCallbackInjectable;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export
|
1
|
+
export type RequestIdleCallback = (callback: () => void, options: {
|
2
2
|
timeout: number;
|
3
3
|
}) => number;
|
4
4
|
declare const requestIdleCallbackInjectable: import("@ogre-tools/injectable").Injectable<RequestIdleCallback, unknown, void>;
|
@@ -7,7 +7,7 @@ import React from "react";
|
|
7
7
|
import type { KubeObject } from "../../../common/k8s-api/kube-object";
|
8
8
|
import type { MetricsTab } from "../chart/options";
|
9
9
|
import type { MetricData } from "../../../common/k8s-api/endpoints/metrics.api";
|
10
|
-
export
|
10
|
+
export type AtLeastOneMetricTab = [MetricsTab, ...MetricsTab[]];
|
11
11
|
export interface ResourceMetricsProps<Keys extends string> {
|
12
12
|
tabs: AtLeastOneMetricTab;
|
13
13
|
object: KubeObject;
|
@@ -16,7 +16,7 @@ export interface SelectOption<Value> {
|
|
16
16
|
/**
|
17
17
|
* @deprecated This should not be used anymore, convert the options yourself.
|
18
18
|
*/
|
19
|
-
export
|
19
|
+
export type LegacyAutoConvertedOptions = string[];
|
20
20
|
export interface SelectProps<Value,
|
21
21
|
/**
|
22
22
|
* This needs to extend `object` because even though `ReactSelectProps` allows for any `T`, the
|
@@ -6,7 +6,7 @@ import "./table-cell.scss";
|
|
6
6
|
import type { TableSortBy, TableSortParams } from "./table";
|
7
7
|
import type { ReactNode } from "react";
|
8
8
|
import React from "react";
|
9
|
-
export
|
9
|
+
export type TableCellElem = React.ReactElement<TableCellProps>;
|
10
10
|
export interface TableCellProps extends React.DOMAttributes<HTMLDivElement> {
|
11
11
|
/**
|
12
12
|
* used for configuration visibility of columns
|