Removed options type
Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com>
This commit is contained in:
@@ -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<OctopusDeployApi>;
|
||||
|
||||
// @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)
|
||||
```
|
||||
|
||||
@@ -55,16 +55,6 @@ export const octopusDeployApiRef = createApiRef<OctopusDeployApi>({
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user