@mxenabled/rules-engine
Version:
UI for MX's rules engine Dwight
37 lines (36 loc) • 1.11 kB
TypeScript
export interface HttpClient {
get<T>(resource: string, options?: {
params?: Record<string, string>;
body?: BodyInit;
}): Promise<T>;
put<T>(resource: string, options: {
params?: Record<string, string>;
body?: BodyInit;
}): Promise<T>;
post<T>(resource: string, options?: {
params?: Record<string, string>;
body?: BodyInit;
}): Promise<T>;
delete<T>(resource: string, options?: {
params?: Record<string, string>;
body?: BodyInit;
}): Promise<T>;
request(method: string, resource: string, options?: {
params?: Record<string, string>;
body?: BodyInit;
}): Promise<any>;
setTimeout(timeout: number): void;
setDefaultHeaders(headers: Record<string, string>): void;
createRequestHeaders(options: {
headers?: Record<string, string>;
body?: BodyInit;
}): Record<string, string>;
headers: Record<string, string>;
timeout: number;
}
export interface ApiInsight {
title: string;
final_generated_count: number;
created_at: string;
status: number;
}