UNPKG

@roadiehq/backstage-plugin-github-insights

Version:
220 lines (217 loc) 12.4 kB
import * as _backstage_catalog_model from '@backstage/catalog-model'; import * as react from 'react'; import * as _backstage_plugin_catalog_react_alpha from '@backstage/plugin-catalog-react/alpha'; import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api'; import * as _backstage_core_plugin_api from '@backstage/core-plugin-api'; declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{}, {}, { "api:code-insights": _backstage_frontend_plugin_api.ExtensionDefinition<{ kind: "api"; name: undefined; config: {}; configInput: {}; output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_core_plugin_api.AnyApiFactory, "core.api.factory", {}>; inputs: {}; params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_core_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_core_plugin_api.AnyApiFactory>; }>; "entity-card:code-insights/compliance": _backstage_frontend_plugin_api.ExtensionDefinition<{ kind: "entity-card"; name: "compliance"; config: { filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined; type: "content" | "summary" | "info" | undefined; }; configInput: { filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined; type?: "content" | "summary" | "info" | undefined; }; output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", { optional: true; }> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", { optional: true; }> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", { optional: true; }>; inputs: {}; params: { loader: () => Promise<JSX.Element>; filter?: string | _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean); type?: _backstage_plugin_catalog_react_alpha.EntityCardType; }; }>; "entity-card:code-insights/contributors": _backstage_frontend_plugin_api.ExtensionDefinition<{ kind: "entity-card"; name: "contributors"; config: { filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined; type: "content" | "summary" | "info" | undefined; }; configInput: { filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined; type?: "content" | "summary" | "info" | undefined; }; output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", { optional: true; }> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", { optional: true; }> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", { optional: true; }>; inputs: {}; params: { loader: () => Promise<JSX.Element>; filter?: string | _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean); type?: _backstage_plugin_catalog_react_alpha.EntityCardType; }; }>; "entity-card:code-insights/environments": _backstage_frontend_plugin_api.ExtensionDefinition<{ kind: "entity-card"; name: "environments"; config: { filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined; type: "content" | "summary" | "info" | undefined; }; configInput: { filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined; type?: "content" | "summary" | "info" | undefined; }; output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", { optional: true; }> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", { optional: true; }> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", { optional: true; }>; inputs: {}; params: { loader: () => Promise<JSX.Element>; filter?: string | _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean); type?: _backstage_plugin_catalog_react_alpha.EntityCardType; }; }>; "entity-card:code-insights/languages": _backstage_frontend_plugin_api.ExtensionDefinition<{ kind: "entity-card"; name: "languages"; config: { filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined; type: "content" | "summary" | "info" | undefined; }; configInput: { filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined; type?: "content" | "summary" | "info" | undefined; }; output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", { optional: true; }> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", { optional: true; }> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", { optional: true; }>; inputs: {}; params: { loader: () => Promise<JSX.Element>; filter?: string | _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean); type?: _backstage_plugin_catalog_react_alpha.EntityCardType; }; }>; "entity-card:code-insights/readme": _backstage_frontend_plugin_api.ExtensionDefinition<{ config: { maxHeight: number | undefined; title: string | undefined; } & { filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined; type: "content" | "summary" | "info" | undefined; }; configInput: { title?: string | undefined; maxHeight?: number | undefined; } & { filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined; type?: "content" | "summary" | "info" | undefined; }; output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", { optional: true; }> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", { optional: true; }> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", { optional: true; }>; inputs: { [x: string]: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ExtensionDataRef<unknown, string, { optional?: true; }>, { optional: boolean; singleton: boolean; }>; }; kind: "entity-card"; name: "readme"; params: { loader: () => Promise<JSX.Element>; filter?: string | _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean); type?: _backstage_plugin_catalog_react_alpha.EntityCardType; }; }>; "entity-card:code-insights/releases": _backstage_frontend_plugin_api.ExtensionDefinition<{ kind: "entity-card"; name: "releases"; config: { filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined; type: "content" | "summary" | "info" | undefined; }; configInput: { filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined; type?: "content" | "summary" | "info" | undefined; }; output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", { optional: true; }> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", { optional: true; }> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", { optional: true; }>; inputs: {}; params: { loader: () => Promise<JSX.Element>; filter?: string | _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean); type?: _backstage_plugin_catalog_react_alpha.EntityCardType; }; }>; "entity-content:code-insights": _backstage_frontend_plugin_api.ExtensionDefinition<{ kind: "entity-content"; name: undefined; config: { path: string | undefined; title: string | undefined; filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined; group: string | false | undefined; }; configInput: { filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined; title?: string | undefined; path?: string | undefined; group?: string | false | undefined; }; output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", { optional: true; }> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", { optional: true; }> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", { optional: true; }> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-group", { optional: true; }>; inputs: {}; params: { defaultPath?: [Error: `Use the 'path' param instead`]; path: string; defaultTitle?: [Error: `Use the 'title' param instead`]; title: string; defaultGroup?: [Error: `Use the 'group' param instead`]; group?: ("deployment" | "operation" | "development" | "overview" | "documentation" | "observability") | (string & {}); loader: () => Promise<JSX.Element>; routeRef?: _backstage_frontend_plugin_api.RouteRef; filter?: string | _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean); }; }>; }>; export { _default as default };