update API reports for backend system factory function refactor
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -13,6 +13,7 @@ import { ErrorRequestHandler } from 'express';
|
||||
import { Express as Express_2 } from 'express';
|
||||
import { ExtensionPoint } from '@backstage/backend-plugin-api';
|
||||
import { Handler } from 'express';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { HelmetOptions } from 'helmet';
|
||||
import * as http from 'http';
|
||||
import { HttpRouterService } from '@backstage/backend-plugin-api';
|
||||
@@ -46,14 +47,13 @@ export interface Backend {
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export const cacheFactory: (
|
||||
options?: undefined,
|
||||
) => ServiceFactory<PluginCacheManager>;
|
||||
export const cacheFactory: FactoryFunction<
|
||||
ServiceFactory<PluginCacheManager>,
|
||||
[]
|
||||
>;
|
||||
|
||||
// @public (undocumented)
|
||||
export const configFactory: (
|
||||
options?: undefined,
|
||||
) => ServiceFactory<ConfigService>;
|
||||
export const configFactory: FactoryFunction<ServiceFactory<ConfigService>, []>;
|
||||
|
||||
// @public
|
||||
export function createHttpServer(
|
||||
@@ -76,9 +76,10 @@ export interface CreateSpecializedBackendOptions {
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export const databaseFactory: (
|
||||
options?: undefined,
|
||||
) => ServiceFactory<PluginDatabaseManager>;
|
||||
export const databaseFactory: FactoryFunction<
|
||||
ServiceFactory<PluginDatabaseManager>,
|
||||
[]
|
||||
>;
|
||||
|
||||
// @public
|
||||
export class DefaultRootHttpRouter implements RootHttpRouterService {
|
||||
@@ -96,9 +97,10 @@ export interface DefaultRootHttpRouterOptions {
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export const discoveryFactory: (
|
||||
options?: undefined,
|
||||
) => ServiceFactory<PluginEndpointDiscovery>;
|
||||
export const discoveryFactory: FactoryFunction<
|
||||
ServiceFactory<PluginEndpointDiscovery>,
|
||||
[]
|
||||
>;
|
||||
|
||||
// @public
|
||||
export interface ExtendedHttpServer extends http.Server {
|
||||
@@ -111,14 +113,15 @@ export interface ExtendedHttpServer extends http.Server {
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export const httpRouterFactory: (
|
||||
options?: HttpRouterFactoryOptions | undefined,
|
||||
) => ServiceFactory<HttpRouterService>;
|
||||
export const httpRouterFactory: FactoryFunction<
|
||||
ServiceFactory<HttpRouterService>,
|
||||
[options?: HttpRouterFactoryOptions | undefined]
|
||||
>;
|
||||
|
||||
// @public (undocumented)
|
||||
export type HttpRouterFactoryOptions = {
|
||||
export interface HttpRouterFactoryOptions {
|
||||
getPath(pluginId: string): string;
|
||||
};
|
||||
}
|
||||
|
||||
// @public
|
||||
export type HttpServerCertificateOptions =
|
||||
@@ -144,9 +147,10 @@ export type HttpServerOptions = {
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
export const identityFactory: (
|
||||
options?: IdentityFactoryOptions | undefined,
|
||||
) => ServiceFactory<IdentityService>;
|
||||
export const identityFactory: FactoryFunction<
|
||||
ServiceFactory<IdentityService>,
|
||||
[]
|
||||
>;
|
||||
|
||||
// @public
|
||||
export type IdentityFactoryOptions = {
|
||||
@@ -155,14 +159,13 @@ export type IdentityFactoryOptions = {
|
||||
};
|
||||
|
||||
// @public
|
||||
export const lifecycleFactory: (
|
||||
options?: undefined,
|
||||
) => ServiceFactory<LifecycleService>;
|
||||
export const lifecycleFactory: FactoryFunction<
|
||||
ServiceFactory<LifecycleService>,
|
||||
[]
|
||||
>;
|
||||
|
||||
// @public (undocumented)
|
||||
export const loggerFactory: (
|
||||
options?: undefined,
|
||||
) => ServiceFactory<LoggerService>;
|
||||
export const loggerFactory: FactoryFunction<ServiceFactory<LoggerService>, []>;
|
||||
|
||||
// @public
|
||||
export class MiddlewareFactory {
|
||||
@@ -190,9 +193,10 @@ export interface MiddlewareFactoryOptions {
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export const permissionsFactory: (
|
||||
options?: undefined,
|
||||
) => ServiceFactory<PermissionsService>;
|
||||
export const permissionsFactory: FactoryFunction<
|
||||
ServiceFactory<PermissionsService>,
|
||||
[]
|
||||
>;
|
||||
|
||||
// @public
|
||||
export function readCorsOptions(config?: Config): CorsOptions;
|
||||
@@ -220,9 +224,10 @@ export interface RootHttpRouterConfigureOptions {
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export const rootHttpRouterFactory: (
|
||||
options?: RootHttpRouterFactoryOptions | undefined,
|
||||
) => ServiceFactory<RootHttpRouterService>;
|
||||
export const rootHttpRouterFactory: FactoryFunction<
|
||||
ServiceFactory<RootHttpRouterService>,
|
||||
[]
|
||||
>;
|
||||
|
||||
// @public (undocumented)
|
||||
export type RootHttpRouterFactoryOptions = {
|
||||
@@ -231,19 +236,22 @@ export type RootHttpRouterFactoryOptions = {
|
||||
};
|
||||
|
||||
// @public
|
||||
export const rootLifecycleFactory: (
|
||||
options?: undefined,
|
||||
) => ServiceFactory<RootLifecycleService>;
|
||||
export const rootLifecycleFactory: FactoryFunction<
|
||||
ServiceFactory<RootLifecycleService>,
|
||||
[]
|
||||
>;
|
||||
|
||||
// @public (undocumented)
|
||||
export const rootLoggerFactory: (
|
||||
options?: undefined,
|
||||
) => ServiceFactory<RootLoggerService>;
|
||||
export const rootLoggerFactory: FactoryFunction<
|
||||
ServiceFactory<RootLoggerService>,
|
||||
[]
|
||||
>;
|
||||
|
||||
// @public (undocumented)
|
||||
export const schedulerFactory: (
|
||||
options?: undefined,
|
||||
) => ServiceFactory<SchedulerService>;
|
||||
export const schedulerFactory: FactoryFunction<
|
||||
ServiceFactory<SchedulerService>,
|
||||
[]
|
||||
>;
|
||||
|
||||
// @public (undocumented)
|
||||
export type ServiceOrExtensionPoint<T = unknown> =
|
||||
@@ -251,12 +259,11 @@ export type ServiceOrExtensionPoint<T = unknown> =
|
||||
| ServiceRef<T>;
|
||||
|
||||
// @public (undocumented)
|
||||
export const tokenManagerFactory: (
|
||||
options?: undefined,
|
||||
) => ServiceFactory<TokenManagerService>;
|
||||
export const tokenManagerFactory: FactoryFunction<
|
||||
ServiceFactory<TokenManagerService>,
|
||||
[]
|
||||
>;
|
||||
|
||||
// @public (undocumented)
|
||||
export const urlReaderFactory: (
|
||||
options?: undefined,
|
||||
) => ServiceFactory<UrlReader>;
|
||||
export const urlReaderFactory: FactoryFunction<ServiceFactory<UrlReader>, []>;
|
||||
```
|
||||
|
||||
@@ -23,7 +23,7 @@ export interface BackendFeature {
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export interface BackendModuleConfig<TOptions> {
|
||||
export interface BackendModuleConfig {
|
||||
// (undocumented)
|
||||
moduleId: string;
|
||||
// (undocumented)
|
||||
@@ -31,16 +31,15 @@ export interface BackendModuleConfig<TOptions> {
|
||||
// (undocumented)
|
||||
register(
|
||||
reg: Omit<BackendRegistrationPoints, 'registerExtensionPoint'>,
|
||||
options: TOptions,
|
||||
): void;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export interface BackendPluginConfig<TOptions> {
|
||||
export interface BackendPluginConfig {
|
||||
// (undocumented)
|
||||
id: string;
|
||||
// (undocumented)
|
||||
register(reg: BackendRegistrationPoints, options: TOptions): void;
|
||||
register(reg: BackendRegistrationPoints): void;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
@@ -113,14 +112,14 @@ export namespace coreServices {
|
||||
}
|
||||
|
||||
// @public
|
||||
export function createBackendModule<TOptions extends MaybeOptions = undefined>(
|
||||
config: BackendModuleConfig<TOptions>,
|
||||
): FactoryFunctionWithOptions<BackendFeature, TOptions>;
|
||||
export function createBackendModule<TOptions extends [options?: object] = []>(
|
||||
config: FactoryFunctionConfig<BackendModuleConfig, TOptions>,
|
||||
): FactoryFunction<BackendFeature, TOptions>;
|
||||
|
||||
// @public (undocumented)
|
||||
export function createBackendPlugin<TOptions extends MaybeOptions = undefined>(
|
||||
config: BackendPluginConfig<TOptions>,
|
||||
): FactoryFunctionWithOptions<BackendFeature, TOptions>;
|
||||
export function createBackendPlugin<TOptions extends [options?: object] = []>(
|
||||
config: FactoryFunctionConfig<BackendPluginConfig, TOptions>,
|
||||
): FactoryFunction<BackendFeature, TOptions>;
|
||||
|
||||
// @public (undocumented)
|
||||
export function createExtensionPoint<T>(
|
||||
@@ -135,10 +134,13 @@ export function createServiceFactory<
|
||||
TDeps extends {
|
||||
[name in string]: ServiceRef<unknown>;
|
||||
},
|
||||
TOpts extends MaybeOptions = undefined,
|
||||
TOpts extends [options?: object] = [],
|
||||
>(
|
||||
config: ServiceFactoryConfig<TService, TScope, TImpl, TDeps, TOpts>,
|
||||
): FactoryFunctionWithOptions<ServiceFactory<TService>, TOpts>;
|
||||
config: FactoryFunctionConfig<
|
||||
ServiceFactoryConfig<TService, TScope, TImpl, TDeps>,
|
||||
TOpts
|
||||
>,
|
||||
): FactoryFunction<ServiceFactory<TService>, TOpts>;
|
||||
|
||||
// @public
|
||||
export function createServiceRef<TService>(
|
||||
@@ -337,14 +339,12 @@ export interface ServiceFactoryConfig<
|
||||
TDeps extends {
|
||||
[name in string]: ServiceRef<unknown>;
|
||||
},
|
||||
TOpts extends MaybeOptions = undefined,
|
||||
> {
|
||||
// (undocumented)
|
||||
deps: TDeps;
|
||||
// (undocumented)
|
||||
factory(
|
||||
deps: ServiceRefsToInstances<TDeps, 'root'>,
|
||||
options: TOpts,
|
||||
): TScope extends 'root'
|
||||
? Promise<TImpl>
|
||||
: Promise<(deps: ServiceRefsToInstances<TDeps>) => Promise<TImpl>>;
|
||||
|
||||
@@ -6,11 +6,15 @@
|
||||
import { BackendFeature } from '@backstage/backend-plugin-api';
|
||||
import { Config } from '@backstage/config';
|
||||
import express from 'express';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { Logger } from 'winston';
|
||||
import { PluginDatabaseManager } from '@backstage/backend-common';
|
||||
|
||||
// @alpha
|
||||
export const appPlugin: (options: AppPluginOptions) => BackendFeature;
|
||||
export const appPlugin: FactoryFunction<
|
||||
BackendFeature,
|
||||
[options: AppPluginOptions]
|
||||
>;
|
||||
|
||||
// @alpha (undocumented)
|
||||
export type AppPluginOptions = {
|
||||
|
||||
@@ -11,6 +11,7 @@ import { Config } from '@backstage/config';
|
||||
import { Credentials } from 'aws-sdk';
|
||||
import { EntityProvider } from '@backstage/plugin-catalog-backend';
|
||||
import { EntityProviderConnection } from '@backstage/plugin-catalog-backend';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { LocationSpec } from '@backstage/plugin-catalog-backend';
|
||||
import { Logger } from 'winston';
|
||||
import { PluginTaskScheduler } from '@backstage/backend-tasks';
|
||||
@@ -90,7 +91,8 @@ export class AwsS3EntityProvider implements EntityProvider {
|
||||
}
|
||||
|
||||
// @alpha
|
||||
export const awsS3EntityProviderCatalogModule: (
|
||||
options?: undefined,
|
||||
) => BackendFeature;
|
||||
export const awsS3EntityProviderCatalogModule: FactoryFunction<
|
||||
BackendFeature,
|
||||
[]
|
||||
>;
|
||||
```
|
||||
|
||||
@@ -9,6 +9,7 @@ import { CatalogProcessorEmit } from '@backstage/plugin-catalog-backend';
|
||||
import { Config } from '@backstage/config';
|
||||
import { EntityProvider } from '@backstage/plugin-catalog-backend';
|
||||
import { EntityProviderConnection } from '@backstage/plugin-catalog-backend';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { LocationSpec } from '@backstage/plugin-catalog-backend';
|
||||
import { Logger } from 'winston';
|
||||
import { PluginTaskScheduler } from '@backstage/backend-tasks';
|
||||
@@ -58,7 +59,8 @@ export class AzureDevOpsEntityProvider implements EntityProvider {
|
||||
}
|
||||
|
||||
// @alpha
|
||||
export const azureDevOpsEntityProviderCatalogModule: (
|
||||
options?: undefined,
|
||||
) => BackendFeature;
|
||||
export const azureDevOpsEntityProviderCatalogModule: FactoryFunction<
|
||||
BackendFeature,
|
||||
[]
|
||||
>;
|
||||
```
|
||||
|
||||
@@ -11,6 +11,7 @@ import { EntityProviderConnection } from '@backstage/plugin-catalog-backend';
|
||||
import { EventParams } from '@backstage/plugin-events-node';
|
||||
import { Events } from '@backstage/plugin-bitbucket-cloud-common';
|
||||
import { EventSubscriber } from '@backstage/plugin-events-node';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { Logger } from 'winston';
|
||||
import { PluginTaskScheduler } from '@backstage/backend-tasks';
|
||||
import { TaskRunner } from '@backstage/backend-tasks';
|
||||
@@ -48,7 +49,8 @@ export class BitbucketCloudEntityProvider
|
||||
}
|
||||
|
||||
// @alpha (undocumented)
|
||||
export const bitbucketCloudEntityProviderCatalogModule: (
|
||||
options?: undefined,
|
||||
) => BackendFeature;
|
||||
export const bitbucketCloudEntityProviderCatalogModule: FactoryFunction<
|
||||
BackendFeature,
|
||||
[]
|
||||
>;
|
||||
```
|
||||
|
||||
@@ -9,6 +9,7 @@ import { Config } from '@backstage/config';
|
||||
import { Entity } from '@backstage/catalog-model';
|
||||
import { EntityProvider } from '@backstage/plugin-catalog-backend';
|
||||
import { EntityProviderConnection } from '@backstage/plugin-catalog-backend';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { LocationSpec } from '@backstage/plugin-catalog-backend';
|
||||
import { Logger } from 'winston';
|
||||
import { PluginTaskScheduler } from '@backstage/backend-tasks';
|
||||
@@ -69,9 +70,10 @@ export class BitbucketServerEntityProvider implements EntityProvider {
|
||||
}
|
||||
|
||||
// @alpha (undocumented)
|
||||
export const bitbucketServerEntityProviderCatalogModule: (
|
||||
options?: undefined,
|
||||
) => BackendFeature;
|
||||
export const bitbucketServerEntityProviderCatalogModule: FactoryFunction<
|
||||
BackendFeature,
|
||||
[]
|
||||
>;
|
||||
|
||||
// @public (undocumented)
|
||||
export type BitbucketServerListOptions = {
|
||||
|
||||
@@ -7,6 +7,7 @@ import { BackendFeature } from '@backstage/backend-plugin-api';
|
||||
import { Config } from '@backstage/config';
|
||||
import { EntityProvider } from '@backstage/plugin-catalog-backend';
|
||||
import { EntityProviderConnection } from '@backstage/plugin-catalog-backend';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { Logger } from 'winston';
|
||||
import { PluginTaskScheduler } from '@backstage/backend-tasks';
|
||||
import { TaskRunner } from '@backstage/backend-tasks';
|
||||
@@ -31,9 +32,10 @@ export class GerritEntityProvider implements EntityProvider {
|
||||
}
|
||||
|
||||
// @alpha (undocumented)
|
||||
export const gerritEntityProviderCatalogModule: (
|
||||
options?: undefined,
|
||||
) => BackendFeature;
|
||||
export const gerritEntityProviderCatalogModule: FactoryFunction<
|
||||
BackendFeature,
|
||||
[]
|
||||
>;
|
||||
|
||||
// (No @packageDocumentation comment for this package)
|
||||
```
|
||||
|
||||
@@ -13,6 +13,7 @@ import { EntityProvider } from '@backstage/plugin-catalog-backend';
|
||||
import { EntityProviderConnection } from '@backstage/plugin-catalog-backend';
|
||||
import { EventParams } from '@backstage/plugin-events-node';
|
||||
import { EventSubscriber } from '@backstage/plugin-events-node';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { GithubCredentialsProvider } from '@backstage/integration';
|
||||
import { GithubIntegrationConfig } from '@backstage/integration';
|
||||
import { graphql } from '@octokit/graphql';
|
||||
@@ -101,9 +102,10 @@ export class GithubEntityProvider implements EntityProvider, EventSubscriber {
|
||||
}
|
||||
|
||||
// @alpha
|
||||
export const githubEntityProviderCatalogModule: (
|
||||
options?: undefined,
|
||||
) => BackendFeature;
|
||||
export const githubEntityProviderCatalogModule: FactoryFunction<
|
||||
BackendFeature,
|
||||
[]
|
||||
>;
|
||||
|
||||
// @public (undocumented)
|
||||
export class GithubLocationAnalyzer implements ScmLocationAnalyzer {
|
||||
|
||||
@@ -9,6 +9,7 @@ import { CatalogProcessorEmit } from '@backstage/plugin-catalog-backend';
|
||||
import { Config } from '@backstage/config';
|
||||
import { EntityProvider } from '@backstage/plugin-catalog-backend';
|
||||
import { EntityProviderConnection } from '@backstage/plugin-catalog-backend';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { LocationSpec } from '@backstage/plugin-catalog-backend';
|
||||
import { Logger } from 'winston';
|
||||
import { PluginTaskScheduler } from '@backstage/backend-tasks';
|
||||
@@ -34,9 +35,10 @@ export class GitlabDiscoveryEntityProvider implements EntityProvider {
|
||||
}
|
||||
|
||||
// @alpha
|
||||
export const gitlabDiscoveryEntityProviderCatalogModule: (
|
||||
options?: undefined,
|
||||
) => BackendFeature;
|
||||
export const gitlabDiscoveryEntityProviderCatalogModule: FactoryFunction<
|
||||
BackendFeature,
|
||||
[]
|
||||
>;
|
||||
|
||||
// @public
|
||||
export class GitLabDiscoveryProcessor implements CatalogProcessor {
|
||||
|
||||
@@ -10,6 +10,7 @@ import { CatalogBuilder } from '@backstage/plugin-catalog-backend';
|
||||
import type { Config } from '@backstage/config';
|
||||
import type { DeferredEntity } from '@backstage/plugin-catalog-backend';
|
||||
import type { DurationObjectUnits } from 'luxon';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import type { Logger } from 'winston';
|
||||
import type { PermissionEvaluator } from '@backstage/plugin-permission-common';
|
||||
import type { PluginDatabaseManager } from '@backstage/backend-common';
|
||||
@@ -68,12 +69,17 @@ export interface IncrementalEntityProviderOptions {
|
||||
}
|
||||
|
||||
// @alpha
|
||||
export const incrementalIngestionEntityProviderCatalogModule: (options: {
|
||||
providers: {
|
||||
provider: IncrementalEntityProvider<unknown, unknown>;
|
||||
options: IncrementalEntityProviderOptions;
|
||||
}[];
|
||||
}) => BackendFeature;
|
||||
export const incrementalIngestionEntityProviderCatalogModule: FactoryFunction<
|
||||
BackendFeature,
|
||||
[
|
||||
options: {
|
||||
providers: {
|
||||
provider: IncrementalEntityProvider<unknown, unknown>;
|
||||
options: IncrementalEntityProviderOptions;
|
||||
}[];
|
||||
},
|
||||
]
|
||||
>;
|
||||
|
||||
// @public (undocumented)
|
||||
export type PluginEnvironment = {
|
||||
|
||||
@@ -9,6 +9,7 @@ import { CatalogProcessorEmit } from '@backstage/plugin-catalog-backend';
|
||||
import { Config } from '@backstage/config';
|
||||
import { EntityProvider } from '@backstage/plugin-catalog-backend';
|
||||
import { EntityProviderConnection } from '@backstage/plugin-catalog-backend';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { GroupEntity } from '@backstage/catalog-model';
|
||||
import { LocationSpec } from '@backstage/plugin-catalog-backend';
|
||||
import { Logger } from 'winston';
|
||||
@@ -135,9 +136,10 @@ export class MicrosoftGraphOrgEntityProvider implements EntityProvider {
|
||||
}
|
||||
|
||||
// @alpha
|
||||
export const microsoftGraphOrgEntityProviderCatalogModule: (
|
||||
options?: MicrosoftGraphOrgEntityProviderCatalogModuleOptions | undefined,
|
||||
) => BackendFeature;
|
||||
export const microsoftGraphOrgEntityProviderCatalogModule: FactoryFunction<
|
||||
BackendFeature,
|
||||
[]
|
||||
>;
|
||||
|
||||
// @alpha
|
||||
export interface MicrosoftGraphOrgEntityProviderCatalogModuleOptions {
|
||||
|
||||
@@ -34,6 +34,7 @@ import { EntityProvider } from '@backstage/plugin-catalog-node';
|
||||
import { EntityProviderConnection } from '@backstage/plugin-catalog-node';
|
||||
import { EntityProviderMutation } from '@backstage/plugin-catalog-node';
|
||||
import { EntityRelationSpec } from '@backstage/plugin-catalog-node';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { GetEntitiesRequest } from '@backstage/catalog-client';
|
||||
import { JsonValue } from '@backstage/types';
|
||||
import { LocationEntityV1alpha1 } from '@backstage/catalog-model';
|
||||
@@ -237,7 +238,7 @@ export type CatalogPermissionRule<
|
||||
> = PermissionRule<Entity, EntitiesSearchFilter, 'catalog-entity', TParams>;
|
||||
|
||||
// @alpha
|
||||
export const catalogPlugin: (options?: undefined) => BackendFeature;
|
||||
export const catalogPlugin: FactoryFunction<BackendFeature, []>;
|
||||
|
||||
// @public
|
||||
export interface CatalogProcessingEngine {
|
||||
|
||||
@@ -7,6 +7,7 @@ import { BackendFeature } from '@backstage/backend-plugin-api';
|
||||
import { Config } from '@backstage/config';
|
||||
import { EventBroker } from '@backstage/plugin-events-node';
|
||||
import { EventPublisher } from '@backstage/plugin-events-node';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { Logger } from 'winston';
|
||||
import { PluginTaskScheduler } from '@backstage/backend-tasks';
|
||||
|
||||
@@ -23,7 +24,8 @@ export class AwsSqsConsumingEventPublisher implements EventPublisher {
|
||||
}
|
||||
|
||||
// @alpha
|
||||
export const awsSqsConsumingEventPublisherEventsModule: (
|
||||
options?: undefined,
|
||||
) => BackendFeature;
|
||||
export const awsSqsConsumingEventPublisherEventsModule: FactoryFunction<
|
||||
BackendFeature,
|
||||
[]
|
||||
>;
|
||||
```
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
```ts
|
||||
import { BackendFeature } from '@backstage/backend-plugin-api';
|
||||
import { EventParams } from '@backstage/plugin-events-node';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { SubTopicEventRouter } from '@backstage/plugin-events-node';
|
||||
|
||||
// @public
|
||||
@@ -15,7 +16,8 @@ export class AzureDevOpsEventRouter extends SubTopicEventRouter {
|
||||
}
|
||||
|
||||
// @alpha
|
||||
export const azureDevOpsEventRouterEventsModule: (
|
||||
options?: undefined,
|
||||
) => BackendFeature;
|
||||
export const azureDevOpsEventRouterEventsModule: FactoryFunction<
|
||||
BackendFeature,
|
||||
[]
|
||||
>;
|
||||
```
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
```ts
|
||||
import { BackendFeature } from '@backstage/backend-plugin-api';
|
||||
import { EventParams } from '@backstage/plugin-events-node';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { SubTopicEventRouter } from '@backstage/plugin-events-node';
|
||||
|
||||
// @public
|
||||
@@ -15,7 +16,8 @@ export class BitbucketCloudEventRouter extends SubTopicEventRouter {
|
||||
}
|
||||
|
||||
// @alpha
|
||||
export const bitbucketCloudEventRouterEventsModule: (
|
||||
options?: undefined,
|
||||
) => BackendFeature;
|
||||
export const bitbucketCloudEventRouterEventsModule: FactoryFunction<
|
||||
BackendFeature,
|
||||
[]
|
||||
>;
|
||||
```
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
```ts
|
||||
import { BackendFeature } from '@backstage/backend-plugin-api';
|
||||
import { EventParams } from '@backstage/plugin-events-node';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { SubTopicEventRouter } from '@backstage/plugin-events-node';
|
||||
|
||||
// @public
|
||||
@@ -15,7 +16,5 @@ export class GerritEventRouter extends SubTopicEventRouter {
|
||||
}
|
||||
|
||||
// @alpha
|
||||
export const gerritEventRouterEventsModule: (
|
||||
options?: undefined,
|
||||
) => BackendFeature;
|
||||
export const gerritEventRouterEventsModule: FactoryFunction<BackendFeature, []>;
|
||||
```
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
import { BackendFeature } from '@backstage/backend-plugin-api';
|
||||
import { Config } from '@backstage/config';
|
||||
import { EventParams } from '@backstage/plugin-events-node';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { RequestValidator } from '@backstage/plugin-events-node';
|
||||
import { SubTopicEventRouter } from '@backstage/plugin-events-node';
|
||||
|
||||
@@ -22,10 +23,8 @@ export class GithubEventRouter extends SubTopicEventRouter {
|
||||
}
|
||||
|
||||
// @alpha
|
||||
export const githubEventRouterEventsModule: (
|
||||
options?: undefined,
|
||||
) => BackendFeature;
|
||||
export const githubEventRouterEventsModule: FactoryFunction<BackendFeature, []>;
|
||||
|
||||
// @alpha
|
||||
export const githubWebhookEventsModule: (options?: undefined) => BackendFeature;
|
||||
export const githubWebhookEventsModule: FactoryFunction<BackendFeature, []>;
|
||||
```
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
import { BackendFeature } from '@backstage/backend-plugin-api';
|
||||
import { Config } from '@backstage/config';
|
||||
import { EventParams } from '@backstage/plugin-events-node';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { RequestValidator } from '@backstage/plugin-events-node';
|
||||
import { SubTopicEventRouter } from '@backstage/plugin-events-node';
|
||||
|
||||
@@ -20,10 +21,8 @@ export class GitlabEventRouter extends SubTopicEventRouter {
|
||||
}
|
||||
|
||||
// @alpha
|
||||
export const gitlabEventRouterEventsModule: (
|
||||
options?: undefined,
|
||||
) => BackendFeature;
|
||||
export const gitlabEventRouterEventsModule: FactoryFunction<BackendFeature, []>;
|
||||
|
||||
// @alpha
|
||||
export const gitlabWebhookEventsModule: (options?: undefined) => BackendFeature;
|
||||
export const gitlabWebhookEventsModule: FactoryFunction<BackendFeature, []>;
|
||||
```
|
||||
|
||||
@@ -9,6 +9,7 @@ import { EventBroker } from '@backstage/plugin-events-node';
|
||||
import { EventPublisher } from '@backstage/plugin-events-node';
|
||||
import { EventSubscriber } from '@backstage/plugin-events-node';
|
||||
import express from 'express';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { HttpPostIngressOptions } from '@backstage/plugin-events-node';
|
||||
import { Logger } from 'winston';
|
||||
|
||||
@@ -29,7 +30,7 @@ export class EventsBackend {
|
||||
}
|
||||
|
||||
// @alpha
|
||||
export const eventsPlugin: (options?: undefined) => BackendFeature;
|
||||
export const eventsPlugin: FactoryFunction<BackendFeature, []>;
|
||||
|
||||
// @public
|
||||
export class HttpPostIngressEventPublisher implements EventPublisher {
|
||||
|
||||
@@ -13,6 +13,7 @@ import { Config } from '@backstage/config';
|
||||
import { createPullRequest } from 'octokit-plugin-create-pull-request';
|
||||
import { Entity } from '@backstage/catalog-model';
|
||||
import express from 'express';
|
||||
import { FactoryFunction } from '@backstage/backend-plugin-api/src/types';
|
||||
import { GithubCredentialsProvider } from '@backstage/integration';
|
||||
import { IdentityApi } from '@backstage/plugin-auth-node';
|
||||
import { JsonObject } from '@backstage/types';
|
||||
@@ -625,7 +626,7 @@ export type RunCommandOptions = {
|
||||
};
|
||||
|
||||
// @alpha
|
||||
export const scaffolderCatalogModule: (options?: undefined) => BackendFeature;
|
||||
export const scaffolderCatalogModule: FactoryFunction<BackendFeature, []>;
|
||||
|
||||
// @public (undocumented)
|
||||
export class ScaffolderEntitiesProcessor implements CatalogProcessor {
|
||||
@@ -642,9 +643,10 @@ export class ScaffolderEntitiesProcessor implements CatalogProcessor {
|
||||
}
|
||||
|
||||
// @alpha
|
||||
export const scaffolderPlugin: (
|
||||
options: ScaffolderPluginOptions,
|
||||
) => BackendFeature;
|
||||
export const scaffolderPlugin: FactoryFunction<
|
||||
BackendFeature,
|
||||
[options: ScaffolderPluginOptions]
|
||||
>;
|
||||
|
||||
// @alpha
|
||||
export type ScaffolderPluginOptions = {
|
||||
|
||||
Reference in New Issue
Block a user