mirror of https://github.com/morpheus65535/bazarr
26 lines
492 B
TypeScript
26 lines
492 B
TypeScript
import BaseApi from "./base";
|
|
|
|
class HistoryApi extends BaseApi {
|
|
constructor() {
|
|
super("/history");
|
|
}
|
|
|
|
async stats(
|
|
timeFrame?: History.TimeFrameOptions,
|
|
action?: History.ActionOptions,
|
|
provider?: string,
|
|
language?: Language.CodeType
|
|
) {
|
|
const response = await this.get<History.Stat>("/stats", {
|
|
timeFrame,
|
|
action,
|
|
provider,
|
|
language,
|
|
});
|
|
return response;
|
|
}
|
|
}
|
|
|
|
const historyApi = new HistoryApi();
|
|
export default historyApi;
|