diff --git a/plugins/ilert/api-report.md b/plugins/ilert/api-report.md index 86ea698921..c1de4f796b 100644 --- a/plugins/ilert/api-report.md +++ b/plugins/ilert/api-report.md @@ -379,10 +379,8 @@ export interface ILertApi { assignAlert(alert: Alert, responder: AlertResponder): Promise; // (undocumented) createAlert(eventRequest: EventRequest): Promise; - // Warning: (ae-forgotten-export) The symbol "ServiceRequest" needs to be exported by the entry point index.d.ts - // // (undocumented) - createService(eventRequest: ServiceRequest): Promise; + createService(serviceRequest: ServiceRequest): Promise; // (undocumented) disableAlertSource(alertSource: AlertSource): Promise; // (undocumented) @@ -711,6 +709,11 @@ export interface Service { uptime: Uptime; } +// @public (undocumented) +export type ServiceRequest = { + name: string; +}; + // @public (undocumented) export type ServiceStatus = | typeof OPERATIONAL diff --git a/plugins/ilert/src/api/index.ts b/plugins/ilert/src/api/index.ts index 30120225a4..15d2981c20 100644 --- a/plugins/ilert/src/api/index.ts +++ b/plugins/ilert/src/api/index.ts @@ -22,5 +22,6 @@ export type { GetServicesOpts, GetStatusPagesOpts, ILertApi, + ServiceRequest as ServiceRequest, TableState, } from './types'; diff --git a/plugins/ilert/src/api/types.ts b/plugins/ilert/src/api/types.ts index 4e6e56dfd5..6d38d48023 100644 --- a/plugins/ilert/src/api/types.ts +++ b/plugins/ilert/src/api/types.ts @@ -114,7 +114,7 @@ export interface ILertApi { ): Promise; fetchServices(opts?: GetServicesOpts): Promise; - createService(eventRequest: ServiceRequest): Promise; + createService(serviceRequest: ServiceRequest): Promise; fetchStatusPages(opts?: GetStatusPagesOpts): Promise;