From 922f53f5926702a53a1c18900151d40889fe770e Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Fri, 8 Jul 2022 10:45:17 +0200 Subject: [PATCH] backend-plugin-api: add API report Signed-off-by: Patrik Oldsberg --- packages/backend-plugin-api/api-report.md | 206 ++++++++++++++++++++++ 1 file changed, 206 insertions(+) create mode 100644 packages/backend-plugin-api/api-report.md diff --git a/packages/backend-plugin-api/api-report.md b/packages/backend-plugin-api/api-report.md new file mode 100644 index 0000000000..875f589d17 --- /dev/null +++ b/packages/backend-plugin-api/api-report.md @@ -0,0 +1,206 @@ +## API Report File for "@backstage/backend-plugin-api" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts +import { Config } from '@backstage/config'; +import { Handler } from 'express'; +import { PermissionAuthorizer } from '@backstage/plugin-permission-common'; +import { PermissionEvaluator } from '@backstage/plugin-permission-common'; +import { PluginCacheManager } from '@backstage/backend-common'; +import { PluginDatabaseManager } from '@backstage/backend-common'; +import { PluginEndpointDiscovery } from '@backstage/backend-common'; +import { PluginTaskScheduler } from '@backstage/backend-tasks'; +import { TokenManager } from '@backstage/backend-common'; +import { UrlReader } from '@backstage/backend-common'; + +// Warning: (ae-missing-release-tag) "AnyServiceFactory" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export type AnyServiceFactory = ServiceFactory< + unknown, + unknown, + { + [key in string]: unknown; + } +>; + +// Warning: (ae-missing-release-tag) "BackendInitRegistry" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export interface BackendInitRegistry { + // (undocumented) + registerExtensionPoint( + ref: ServiceRef, + impl: TExtensionPoint, + ): void; + // (undocumented) + registerInit< + Deps extends { + [name in string]: unknown; + }, + >(options: { + deps: { + [name in keyof Deps]: ServiceRef; + }; + init: (deps: Deps) => Promise; + }): void; +} + +// Warning: (ae-missing-release-tag) "BackendModuleConfig" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export interface BackendModuleConfig { + // (undocumented) + moduleId: string; + // (undocumented) + pluginId: string; + // (undocumented) + register( + reg: Omit, + options: TOptions, + ): void; +} + +// Warning: (ae-missing-release-tag) "BackendPluginConfig" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export interface BackendPluginConfig { + // (undocumented) + id: string; + // (undocumented) + register(reg: BackendInitRegistry, options: TOptions): void; +} + +// Warning: (ae-missing-release-tag) "BackendRegistrable" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export interface BackendRegistrable { + // (undocumented) + id: string; + // (undocumented) + register(reg: BackendInitRegistry): void; +} + +// @public (undocumented) +export const cacheServiceRef: ServiceRef; + +// @public (undocumented) +export const configServiceRef: ServiceRef; + +// Warning: (ae-missing-release-tag) "createBackendModule" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export function createBackendModule( + config: BackendModuleConfig, +): (option: TOptions) => BackendRegistrable; + +// Warning: (ae-missing-release-tag) "createBackendPlugin" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export function createBackendPlugin( + config: BackendPluginConfig, +): (option: TOptions) => BackendRegistrable; + +// Warning: (ae-missing-release-tag) "createExtensionPoint" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export function createExtensionPoint(options: { + id: string; +}): ExtensionPoint; + +// @public (undocumented) +export function createServiceFactory< + Api, + Impl extends Api, + Deps extends { + [name in string]: unknown; + }, +>(factory: ServiceFactory): ServiceFactory; + +// @public (undocumented) +export function createServiceRef(options: { id: string }): ServiceRef; + +// @public (undocumented) +export const databaseServiceRef: ServiceRef; + +// @public (undocumented) +export const discoveryServiceRef: ServiceRef; + +// @public +export type ExtensionPoint = { + id: string; + T: T; + toString(): string; + $$ref: 'extension-point'; +}; + +// Warning: (ae-missing-release-tag) "FactoryFunc" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export type FactoryFunc = (pluginId: string) => Promise; + +// @public (undocumented) +export interface HttpRouterService { + // (undocumented) + use(handler: Handler): void; +} + +// @public (undocumented) +export const httpRouterServiceRef: ServiceRef; + +// @public (undocumented) +export interface Logger { + // (undocumented) + child(fields: { [name: string]: string }): Logger; + // (undocumented) + info(message: string): void; +} + +// @public (undocumented) +export const loggerServiceRef: ServiceRef; + +// @public (undocumented) +export const permissionsServiceRef: ServiceRef< + PermissionAuthorizer | PermissionEvaluator +>; + +// @public (undocumented) +export const schedulerServiceRef: ServiceRef; + +// Warning: (ae-missing-release-tag) "ServiceFactory" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export type ServiceFactory< + TApi, + TImpl extends TApi, + TDeps extends { + [name in string]: unknown; + }, +> = { + service: ServiceRef; + deps: TypesToServiceRef; + factory(deps: DepsToDepFactories): Promise>; +}; + +// @public +export type ServiceRef = { + id: string; + T: T; + toString(): string; + $$ref: 'service'; +}; + +// @public (undocumented) +export const tokenManagerServiceRef: ServiceRef; + +// @public (undocumented) +export const urlReaderServiceRef: ServiceRef; + +// Warnings were encountered during analysis: +// +// src/services/system/types.d.ts:27:5 - (ae-forgotten-export) The symbol "TypesToServiceRef" needs to be exported by the entry point index.d.ts +// src/services/system/types.d.ts:28:5 - (ae-forgotten-export) The symbol "DepsToDepFactories" needs to be exported by the entry point index.d.ts +// src/wiring/types.d.ts:10:67 - (tsdoc-code-span-missing-delimiter) The code span is missing its closing backtick +// src/wiring/types.d.ts:11:24 - (tsdoc-code-span-missing-delimiter) The code span is missing its closing backtick +```