Fix API report

Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com>
This commit is contained in:
Jonathan Mezach
2023-02-16 08:48:56 +01:00
parent 350ee5dcb6
commit 4faab54915
3 changed files with 19 additions and 22 deletions
+7 -21
View File
@@ -11,8 +11,6 @@ import { DiscoveryApi } from '@backstage/core-plugin-api';
import { Entity } from '@backstage/catalog-model';
import { IdentityApi } from '@backstage/core-plugin-api';
// Warning: (ae-missing-release-tag) "EntityOctopusDeployContent" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const EntityOctopusDeployContent: (props: {
defaultLimit?: number | undefined;
@@ -21,8 +19,6 @@ export const EntityOctopusDeployContent: (props: {
// @public (undocumented)
export const isOctopusDeployAvailable: (entity: Entity) => boolean;
// Warning: (ae-missing-release-tag) "OctopusDeployApi" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export interface OctopusDeployApi {
// (undocumented)
@@ -32,16 +28,11 @@ export interface OctopusDeployApi {
): Promise<OctopusProgression>;
}
// Warning: (ae-missing-release-tag) "octopusDeployApiRef" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const octopusDeployApiRef: ApiRef<OctopusDeployApi>;
// Warning: (ae-missing-release-tag) "OctopusDeployClient" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export class OctopusDeployClient implements OctopusDeployApi {
// Warning: (ae-forgotten-export) The symbol "Options" needs to be exported by the entry point index.d.ts
constructor(options: Options);
// (undocumented)
getReleaseProgression(
@@ -50,44 +41,32 @@ export class OctopusDeployClient implements OctopusDeployApi {
): Promise<OctopusProgression>;
}
// Warning: (ae-missing-release-tag) "OctopusDeployment" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export type OctopusDeployment = {
State: string;
};
// Warning: (ae-missing-release-tag) "octopusDeployPlugin" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const octopusDeployPlugin: BackstagePlugin<{}, {}, {}>;
// Warning: (ae-missing-release-tag) "OctopusEnvironment" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export type OctopusEnvironment = {
Id: string;
Name: string;
};
// Warning: (ae-missing-release-tag) "OctopusProgression" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export type OctopusProgression = {
Environments: OctopusEnvironment[];
Releases: OctopusReleaseProgression[];
};
// Warning: (ae-missing-release-tag) "OctopusRelease" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export type OctopusRelease = {
Id: string;
Version: string;
};
// Warning: (ae-missing-release-tag) "OctopusReleaseProgression" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export type OctopusReleaseProgression = {
Release: OctopusRelease;
@@ -96,5 +75,12 @@ export type OctopusReleaseProgression = {
};
};
// @public (undocumented)
export type Options = {
discoveryApi: DiscoveryApi;
identityApi: IdentityApi;
proxyPathBase?: string;
};
// (No @packageDocumentation comment for this package)
```
+10 -1
View File
@@ -19,37 +19,44 @@ import {
IdentityApi,
} from '@backstage/core-plugin-api';
/** @public */
export type OctopusProgression = {
Environments: OctopusEnvironment[];
Releases: OctopusReleaseProgression[];
};
/** @public */
export type OctopusEnvironment = {
Id: string;
Name: string;
};
/** @public */
export type OctopusReleaseProgression = {
Release: OctopusRelease;
Deployments: { [key: string]: OctopusDeployment[] };
};
/** @public */
export type OctopusRelease = {
Id: string;
Version: string;
};
/** @public */
export type OctopusDeployment = {
State: string;
};
/** @public */
export const octopusDeployApiRef = createApiRef<OctopusDeployApi>({
id: 'plugin.octopusdeploy.service',
});
const DEFAULT_PROXY_PATH_BASE = '/octopus-deploy';
type Options = {
/** @public */
export type Options = {
discoveryApi: DiscoveryApi;
identityApi: IdentityApi;
/**
@@ -58,6 +65,7 @@ type Options = {
proxyPathBase?: string;
};
/** @public */
export interface OctopusDeployApi {
getReleaseProgression(
projectId: string,
@@ -65,6 +73,7 @@ export interface OctopusDeployApi {
): Promise<OctopusProgression>;
}
/** @public */
export class OctopusDeployClient implements OctopusDeployApi {
private readonly discoveryApi: DiscoveryApi;
private readonly identityApi: IdentityApi;
+2
View File
@@ -32,6 +32,7 @@ import { Entity } from '@backstage/catalog-model';
export const isOctopusDeployAvailable = (entity: Entity) =>
Boolean(entity.metadata.annotations?.[OCTOPUS_DEPLOY_PROJECT_ID_ANNOTATION]);
/** @public */
export const octopusDeployPlugin = createPlugin({
id: 'octopus-deploy',
apis: [
@@ -55,6 +56,7 @@ export const OctopusDeployPage = octopusDeployPlugin.provide(
);
*/
/** @public */
export const EntityOctopusDeployContent = octopusDeployPlugin.provide(
createRoutableExtension({
name: 'EntityOctopusDeployContent',