packages: regenerate all API reports with prettier

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-07-12 11:20:25 +02:00
parent e87aa59df3
commit 602b5b59bb
78 changed files with 8153 additions and 4661 deletions
+102 -87
View File
@@ -3,7 +3,6 @@
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
/// <reference types="react" />
import { ApiRef } from '@backstage/core-plugin-api';
@@ -18,90 +17,96 @@ export type Audit = AuditRunning | AuditFailed | AuditCompleted;
// @public (undocumented)
export interface AuditCompleted extends AuditBase {
// (undocumented)
categories: Record<LighthouseCategoryId, LighthouseCategoryAbbr>;
// (undocumented)
report: Object;
// (undocumented)
status: 'COMPLETED';
// (undocumented)
timeCompleted: string;
// (undocumented)
categories: Record<LighthouseCategoryId, LighthouseCategoryAbbr>;
// (undocumented)
report: Object;
// (undocumented)
status: 'COMPLETED';
// (undocumented)
timeCompleted: string;
}
// @public (undocumented)
export interface AuditFailed extends AuditBase {
// (undocumented)
status: 'FAILED';
// (undocumented)
timeCompleted: string;
// (undocumented)
status: 'FAILED';
// (undocumented)
timeCompleted: string;
}
// @public (undocumented)
export interface AuditRunning extends AuditBase {
// (undocumented)
status: 'RUNNING';
// (undocumented)
status: 'RUNNING';
}
// @public (undocumented)
export const EmbeddedRouter: (_props: Props) => JSX.Element;
// @public (undocumented)
export const EntityLastLighthouseAuditCard: ({ dense, variant, }: {
dense?: boolean | undefined;
variant?: InfoCardVariants | undefined;
export const EntityLastLighthouseAuditCard: ({
dense,
variant,
}: {
dense?: boolean | undefined;
variant?: InfoCardVariants | undefined;
}) => JSX.Element;
// @public (undocumented)
export const EntityLighthouseContent: (_props: {
entity?: Entity | undefined;
entity?: Entity | undefined;
}) => JSX.Element;
// @public (undocumented)
export class FetchError extends Error {
// (undocumented)
static forResponse(resp: Response): Promise<FetchError>;
// (undocumented)
get name(): string;
// (undocumented)
static forResponse(resp: Response): Promise<FetchError>;
// (undocumented)
get name(): string;
}
// @public (undocumented)
const isLighthouseAvailable: (entity: Entity) => boolean;
export { isLighthouseAvailable }
export { isLighthouseAvailable as isPluginApplicableToEntity }
export { isLighthouseAvailable };
export { isLighthouseAvailable as isPluginApplicableToEntity };
// @public (undocumented)
export interface LASListRequest {
// (undocumented)
limit?: number;
// (undocumented)
offset?: number;
// (undocumented)
limit?: number;
// (undocumented)
offset?: number;
}
// @public (undocumented)
export interface LASListResponse<Item> {
// (undocumented)
items: Item[];
// (undocumented)
limit: number;
// (undocumented)
offset: number;
// (undocumented)
total: number;
// (undocumented)
items: Item[];
// (undocumented)
limit: number;
// (undocumented)
offset: number;
// (undocumented)
total: number;
}
// @public (undocumented)
export const LastLighthouseAuditCard: ({ dense, variant, }: {
dense?: boolean | undefined;
variant?: InfoCardVariants | undefined;
export const LastLighthouseAuditCard: ({
dense,
variant,
}: {
dense?: boolean | undefined;
variant?: InfoCardVariants | undefined;
}) => JSX.Element;
// @public (undocumented)
export type LighthouseApi = {
url: string;
getWebsiteList: (listOptions: LASListRequest) => Promise<WebsiteListResponse>;
getWebsiteForAuditId: (auditId: string) => Promise<Website>;
triggerAudit: (payload: TriggerAuditPayload) => Promise<Audit>;
getWebsiteByUrl: (websiteUrl: string) => Promise<Website>;
url: string;
getWebsiteList: (listOptions: LASListRequest) => Promise<WebsiteListResponse>;
getWebsiteForAuditId: (auditId: string) => Promise<Website>;
triggerAudit: (payload: TriggerAuditPayload) => Promise<Audit>;
getWebsiteByUrl: (websiteUrl: string) => Promise<Website>;
};
// @public (undocumented)
@@ -109,43 +114,54 @@ export const lighthouseApiRef: ApiRef<LighthouseApi>;
// @public (undocumented)
export interface LighthouseCategoryAbbr {
// (undocumented)
id: LighthouseCategoryId;
// (undocumented)
score: number;
// (undocumented)
title: string;
// (undocumented)
id: LighthouseCategoryId;
// (undocumented)
score: number;
// (undocumented)
title: string;
}
// @public (undocumented)
export type LighthouseCategoryId = 'pwa' | 'seo' | 'performance' | 'accessibility' | 'best-practices';
export type LighthouseCategoryId =
| 'pwa'
| 'seo'
| 'performance'
| 'accessibility'
| 'best-practices';
// @public (undocumented)
export const LighthousePage: () => JSX.Element;
// @public (undocumented)
const lighthousePlugin: BackstagePlugin< {
root: RouteRef<undefined>;
entityContent: RouteRef<undefined>;
}, {}>;
export { lighthousePlugin }
export { lighthousePlugin as plugin }
const lighthousePlugin: BackstagePlugin<
{
root: RouteRef<undefined>;
entityContent: RouteRef<undefined>;
},
{}
>;
export { lighthousePlugin };
export { lighthousePlugin as plugin };
// @public (undocumented)
export class LighthouseRestApi implements LighthouseApi {
constructor(url: string);
// (undocumented)
static fromConfig(config: Config): LighthouseRestApi;
// (undocumented)
getWebsiteByUrl(websiteUrl: string): Promise<Website>;
// (undocumented)
getWebsiteForAuditId(auditId: string): Promise<Website>;
// (undocumented)
getWebsiteList({ limit, offset, }?: LASListRequest): Promise<WebsiteListResponse>;
// (undocumented)
triggerAudit(payload: TriggerAuditPayload): Promise<Audit>;
// (undocumented)
url: string;
constructor(url: string);
// (undocumented)
static fromConfig(config: Config): LighthouseRestApi;
// (undocumented)
getWebsiteByUrl(websiteUrl: string): Promise<Website>;
// (undocumented)
getWebsiteForAuditId(auditId: string): Promise<Website>;
// (undocumented)
getWebsiteList({
limit,
offset,
}?: LASListRequest): Promise<WebsiteListResponse>;
// (undocumented)
triggerAudit(payload: TriggerAuditPayload): Promise<Audit>;
// (undocumented)
url: string;
}
// @public (undocumented)
@@ -153,31 +169,30 @@ export const Router: () => JSX.Element;
// @public (undocumented)
export interface TriggerAuditPayload {
// (undocumented)
options: {
lighthouseConfig: {
settings: {
emulatedFormFactor: string;
};
};
// (undocumented)
options: {
lighthouseConfig: {
settings: {
emulatedFormFactor: string;
};
};
// (undocumented)
url: string;
};
// (undocumented)
url: string;
}
// @public (undocumented)
export interface Website {
// (undocumented)
audits: Audit[];
// (undocumented)
lastAudit: Audit;
// (undocumented)
url: string;
// (undocumented)
audits: Audit[];
// (undocumented)
lastAudit: Audit;
// (undocumented)
url: string;
}
// @public (undocumented)
export type WebsiteListResponse = LASListResponse<Website>;
// (No @packageDocumentation comment for this package)
```