Fix api report

Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com>
This commit is contained in:
Jonathan Mezach
2023-07-04 15:45:08 +02:00
parent 122a48610b
commit 03bdc4380a
2 changed files with 30 additions and 2 deletions
+25
View File
@@ -0,0 +1,25 @@
## API Report File for "backstage-plugin-analytics-module-nr"
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
import { AnalyticsApi } from '@backstage/core-plugin-api';
import { AnalyticsEvent } from '@backstage/core-plugin-api';
import { Config } from '@backstage/config';
import { IdentityApi } from '@backstage/core-plugin-api';
// @public
export class NewRelicBrowser implements AnalyticsApi {
// (undocumented)
captureEvent(event: AnalyticsEvent): void;
// (undocumented)
static fromConfig(
config: Config,
options: {
identityApi?: IdentityApi;
},
): NewRelicBrowser;
}
// (No @packageDocumentation comment for this package)
```
@@ -24,7 +24,7 @@ import type { setAPI } from '@newrelic/browser-agent/loaders/api/api';
type NewRelicAPI = ReturnType<typeof setAPI>;
export type NewRelicBrowserOptions = {
type NewRelicBrowserOptions = {
accountId: string;
applicationId: string;
licenseKey: string;
@@ -33,7 +33,10 @@ export type NewRelicBrowserOptions = {
useEuEndpoint: boolean;
};
// Implementation that optionally initializes with a userId.
/**
* New Relic Browser API provider for the Backstage Analytics API.
* @public
*/
export class NewRelicBrowser implements AnalyticsApi {
private readonly agent: NewRelicAPI;