refactoring, fix api-reports.md

Signed-off-by: Marko Simon <marko@ilert.com>
This commit is contained in:
Marko Simon
2022-10-18 17:30:30 +02:00
parent 646426303e
commit ebe4489a37
3 changed files with 8 additions and 4 deletions
+6 -3
View File
@@ -379,10 +379,8 @@ export interface ILertApi {
assignAlert(alert: Alert, responder: AlertResponder): Promise<Alert>;
// (undocumented)
createAlert(eventRequest: EventRequest): Promise<boolean>;
// Warning: (ae-forgotten-export) The symbol "ServiceRequest" needs to be exported by the entry point index.d.ts
//
// (undocumented)
createService(eventRequest: ServiceRequest): Promise<boolean>;
createService(serviceRequest: ServiceRequest): Promise<boolean>;
// (undocumented)
disableAlertSource(alertSource: AlertSource): Promise<AlertSource>;
// (undocumented)
@@ -711,6 +709,11 @@ export interface Service {
uptime: Uptime;
}
// @public (undocumented)
export type ServiceRequest = {
name: string;
};
// @public (undocumented)
export type ServiceStatus =
| typeof OPERATIONAL
+1
View File
@@ -22,5 +22,6 @@ export type {
GetServicesOpts,
GetStatusPagesOpts,
ILertApi,
ServiceRequest as ServiceRequest,
TableState,
} from './types';
+1 -1
View File
@@ -114,7 +114,7 @@ export interface ILertApi {
): Promise<Schedule>;
fetchServices(opts?: GetServicesOpts): Promise<Service[]>;
createService(eventRequest: ServiceRequest): Promise<boolean>;
createService(serviceRequest: ServiceRequest): Promise<boolean>;
fetchStatusPages(opts?: GetStatusPagesOpts): Promise<StatusPage[]>;