Merge pull request #6076 from backstage/rugvip/allreports

scripts/api-extractor: create and check API reports for all(most) plugins
This commit is contained in:
Patrik Oldsberg
2021-06-17 15:46:11 +02:00
committed by GitHub
55 changed files with 5261 additions and 22 deletions
+98
View File
@@ -0,0 +1,98 @@
## API Report File for "@backstage/plugin-todo-backend"
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
import { CatalogApi } from '@backstage/catalog-client';
import { Config } from '@backstage/config';
import { EntityName } from '@backstage/catalog-model';
import express from 'express';
import { Logger } from 'winston';
import { ScmIntegrations } from '@backstage/integration';
import { UrlReader } from '@backstage/backend-common';
// @public (undocumented)
export function createRouter(options: RouterOptions): Promise<express.Router>;
// @public (undocumented)
export function createTodoParser(options?: TodoParserOptions): TodoParser;
// @public (undocumented)
export type ListTodosRequest = {
entity?: EntityName;
offset?: number;
limit?: number;
orderBy?: {
field: Fields;
direction: 'asc' | 'desc';
};
filters?: {
field: Fields;
value: string;
}[];
};
// @public (undocumented)
export type ListTodosResponse = {
items: TodoItem[];
totalCount: number;
offset: number;
limit: number;
};
// @public (undocumented)
export type ReadTodosOptions = {
url: string;
};
// @public (undocumented)
export type ReadTodosResult = {
items: TodoItem[];
};
// @public (undocumented)
export type TodoItem = {
text: string;
tag: string;
author?: string;
viewUrl?: string;
lineNumber?: number;
repoFilePath?: string;
};
// @public (undocumented)
export interface TodoReader {
readTodos(options: ReadTodosOptions): Promise<ReadTodosResult>;
}
// @public (undocumented)
export class TodoReaderService implements TodoService {
constructor(options: Options_2);
// (undocumented)
listTodos(req: ListTodosRequest, options?: {
token?: string;
}): Promise<ListTodosResponse>;
}
// @public (undocumented)
export class TodoScmReader implements TodoReader {
constructor(options: Options);
// (undocumented)
static fromConfig(config: Config, options: Omit<Options, 'integrations'>): TodoScmReader;
// (undocumented)
readTodos({ url }: ReadTodosOptions): Promise<ReadTodosResult>;
}
// @public (undocumented)
export interface TodoService {
// (undocumented)
listTodos(req: ListTodosRequest, options?: {
token?: string;
}): Promise<ListTodosResponse>;
}
// (No @packageDocumentation comment for this package)
```