Removed options type

Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com>
This commit is contained in:
Jonathan Mezach
2023-02-17 17:15:27 +01:00
parent ec60e69df4
commit d85821f0a8
2 changed files with 11 additions and 20 deletions
+6 -9
View File
@@ -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)
```
+5 -11
View File
@@ -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;