diff --git a/plugins/octopus-deploy/api-report.md b/plugins/octopus-deploy/api-report.md index 48487c46c9..82512ebcef 100644 --- a/plugins/octopus-deploy/api-report.md +++ b/plugins/octopus-deploy/api-report.md @@ -9,7 +9,7 @@ import { ApiRef } from '@backstage/core-plugin-api'; import { BackstagePlugin } from '@backstage/core-plugin-api'; import { DiscoveryApi } from '@backstage/core-plugin-api'; import { Entity } from '@backstage/catalog-model'; -import { IdentityApi } from '@backstage/core-plugin-api'; +import { FetchApi } from '@backstage/core-plugin-api'; // @public (undocumented) export const EntityOctopusDeployContent: (props: { @@ -36,7 +36,11 @@ export const octopusDeployApiRef: ApiRef; // @public (undocumented) export class OctopusDeployClient implements OctopusDeployApi { - constructor(options: Options); + constructor(options: { + discoveryApi: DiscoveryApi; + fetchApi: FetchApi; + proxyPathBase?: string; + }); // (undocumented) getReleaseProgression( projectId: string, @@ -78,12 +82,5 @@ export type OctopusReleaseProgression = { }; }; -// @public (undocumented) -export type Options = { - discoveryApi: DiscoveryApi; - identityApi: IdentityApi; - proxyPathBase?: string; -}; - // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/octopus-deploy/src/api/index.ts b/plugins/octopus-deploy/src/api/index.ts index c1a2711b09..9cba49d6c0 100644 --- a/plugins/octopus-deploy/src/api/index.ts +++ b/plugins/octopus-deploy/src/api/index.ts @@ -55,16 +55,6 @@ export const octopusDeployApiRef = createApiRef({ const DEFAULT_PROXY_PATH_BASE = '/octopus-deploy'; -/** @public */ -export type Options = { - discoveryApi: DiscoveryApi; - fetchApi: FetchApi; - /** - * Path to use for requests via the proxy, defaults to /octopus-deploy - */ - proxyPathBase?: string; -}; - /** @public */ export interface OctopusDeployApi { getReleaseProgression( @@ -79,7 +69,11 @@ export class OctopusDeployClient implements OctopusDeployApi { private readonly fetchApi: FetchApi; private readonly proxyPathBase: string; - constructor(options: Options) { + constructor(options: { + discoveryApi: DiscoveryApi; + fetchApi: FetchApi; + proxyPathBase?: string; + }) { this.discoveryApi = options.discoveryApi; this.fetchApi = options.fetchApi; this.proxyPathBase = options.proxyPathBase ?? DEFAULT_PROXY_PATH_BASE;