Fixed up API Report

Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
This commit is contained in:
Andre Wanlin
2021-09-17 16:42:34 -05:00
parent 94373feca1
commit bb256781b0
3 changed files with 42 additions and 3 deletions
+39 -2
View File
@@ -4,23 +4,60 @@
```ts
import { Build } from 'azure-devops-node-api/interfaces/BuildInterfaces';
import { BuildResult } from 'azure-devops-node-api/interfaces/BuildInterfaces';
import { BuildStatus } from 'azure-devops-node-api/interfaces/BuildInterfaces';
import { Config } from '@backstage/config';
import express from 'express';
import { GitRepository } from 'azure-devops-node-api/interfaces/GitInterfaces';
import { Logger as Logger_2 } from 'winston';
import { WebApi } from 'azure-devops-node-api';
// Warning: (ae-missing-release-tag) "AzureDevOpsApi" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export class AzureDevOpsApi {
constructor(logger: Logger_2, webApi: WebApi);
// (undocumented)
getBuildList(
projectName: string,
repoId: string,
top: string,
): Promise<Build[]>;
// (undocumented)
getGitRepository(
projectName: string,
repoName: string,
): Promise<GitRepository>;
// (undocumented)
getRepoBuilds(
projectName: string,
repoName: string,
top: string,
): Promise<RepoBuild[]>;
}
// Warning: (ae-missing-release-tag) "createRouter" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export function createRouter(options: RouterOptions): Promise<express.Router>;
// Warning: (ae-missing-release-tag) "RepoBuild" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export type RepoBuild = {
id?: number;
title: string;
link: string;
status?: BuildStatus;
result?: BuildResult;
queueTime?: Date;
source: string;
};
// Warning: (ae-missing-release-tag) "RouterOptions" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export interface RouterOptions {
// Warning: (ae-forgotten-export) The symbol "AzureDevOpsApi" needs to be exported by the entry point index.d.ts
//
// (undocumented)
azureDevOpsApi?: AzureDevOpsApi;
// (undocumented)
@@ -15,3 +15,4 @@
*/
export { AzureDevOpsApi } from './AzureDevOpsApi';
export type { RepoBuild } from './types';
+2 -1
View File
@@ -13,5 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { AzureDevOpsApi } from './api';
export type { RepoBuild } from './api';
export * from './service/router';