chore: update API report and remove links from README

Signed-off-by: djamaile <rdjamaile@gmail.com>
This commit is contained in:
djamaile
2022-03-12 20:26:07 +01:00
committed by Fredrik Adelöw
parent 9e4937dd83
commit ff21a91645
4 changed files with 16 additions and 8 deletions
@@ -2,8 +2,4 @@
## Getting started
Your plugin has been added to the example app in this repository, meaning you'll be able to access it by running `yarn start` in the root directory, and then navigating to [/cicd-statistics-module-gitlab](http://localhost:3000/cicd-statistics-module-gitlab).
You can also serve the plugin in isolation by running `yarn start` in the plugin directory.
This method of serving the plugin provides quicker iteration speed and a faster startup and hot reloads.
It is only meant for local development, and the setup for it can be found inside the [/dev](./dev) directory.
Will update in another commit
@@ -14,8 +14,6 @@ import { OAuthApi } from '@backstage/core-plugin-api';
// @public
export class CicdStatisticsApiGitlab implements CicdStatisticsApi {
constructor(gitLabAuthApi: OAuthApi);
// Warning: (ae-forgotten-export) The symbol "GitlabClient" needs to be exported by the entry point index.d.ts
//
// (undocumented)
createGitlabApi(entity: Entity, scopes: string[]): Promise<GitlabClient>;
// (undocumented)
@@ -24,5 +22,11 @@ export class CicdStatisticsApiGitlab implements CicdStatisticsApi {
getConfiguration(): Promise<Partial<CicdConfiguration>>;
}
// @public
export type GitlabClient = {
api: InstanceType<typeof Gitlab>;
owner: string;
};
// (No @packageDocumentation comment for this package)
```
@@ -68,8 +68,15 @@ function jobsToStages(jobs: Array<Types.JobSchema>): Stage[] {
});
}
type GitlabClient = {
/**
* This type represents a initialized gitlab client with gitbeaker
*
* @public
*/
export type GitlabClient = {
/* the actual API of gitbeaker */
api: InstanceType<typeof Gitlab>;
/* the owner the repository, retrieved from the entity source location */
owner: string;
};
@@ -15,3 +15,4 @@
*/
export { CicdStatisticsApiGitlab } from './api';
export type { GitlabClient } from './api';