@tduniec/backstage-plugin-time-saver-backend
Version:
This plugin provides an implementation of charts and statistics related to your time savings that are coming from usage of your templates. Plugins is built from frontend and backend part. Backend plugin is responsible for scheduled stats parsing process a
20 lines (17 loc) • 870 B
TypeScript
import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
import { LoggerService, RootConfigService, DiscoveryService, DatabaseService, UrlReaderService, AuthService, HttpAuthService } from '@backstage/backend-plugin-api';
import { PluginTaskScheduler } from '@backstage/backend-tasks';
import express from 'express';
interface RouterOptions {
logger: LoggerService;
config: RootConfigService;
discovery: DiscoveryService;
database: DatabaseService;
scheduler: PluginTaskScheduler;
urlReader: UrlReaderService;
auth?: AuthService;
httpAuth?: HttpAuthService;
}
declare function createRouter(options: RouterOptions): Promise<express.Router>;
declare const timeSaverPlugin: _backstage_backend_plugin_api.BackendFeatureCompat;
export { type RouterOptions, createRouter, timeSaverPlugin as default, timeSaverPlugin };