2021-10-24 00:42:20 +00:00
|
|
|
import { AdminAboutAPI } from "./admin/admin-about";
|
|
|
|
import { AdminTaskAPI } from "./admin/admin-tasks";
|
2021-11-24 03:57:24 +00:00
|
|
|
import { AdminUsersApi } from "./admin/admin-users";
|
2021-11-25 23:17:02 +00:00
|
|
|
import { AdminGroupsApi } from "./admin/admin-groups";
|
2022-03-13 23:42:22 +00:00
|
|
|
import { AdminBackupsApi } from "./admin/admin-backups";
|
2022-03-25 06:17:38 +00:00
|
|
|
import { AdminMaintenanceApi } from "./admin/admin-maintenance";
|
2022-03-29 16:25:28 +00:00
|
|
|
import { AdminAnalyticsApi } from "./admin/admin-analytics";
|
2021-10-24 00:42:20 +00:00
|
|
|
import { ApiRequestInstance } from "~/types/api";
|
|
|
|
|
|
|
|
export class AdminAPI {
|
|
|
|
public about: AdminAboutAPI;
|
|
|
|
public serverTasks: AdminTaskAPI;
|
2021-11-24 03:57:24 +00:00
|
|
|
public users: AdminUsersApi;
|
2021-11-25 23:17:02 +00:00
|
|
|
public groups: AdminGroupsApi;
|
2022-03-13 23:42:22 +00:00
|
|
|
public backups: AdminBackupsApi;
|
2022-03-25 06:17:38 +00:00
|
|
|
public maintenance: AdminMaintenanceApi;
|
2022-03-29 16:25:28 +00:00
|
|
|
public analytics: AdminAnalyticsApi;
|
2021-10-24 00:42:20 +00:00
|
|
|
|
|
|
|
constructor(requests: ApiRequestInstance) {
|
|
|
|
this.about = new AdminAboutAPI(requests);
|
|
|
|
this.serverTasks = new AdminTaskAPI(requests);
|
2021-11-24 03:57:24 +00:00
|
|
|
this.users = new AdminUsersApi(requests);
|
2021-11-25 23:17:02 +00:00
|
|
|
this.groups = new AdminGroupsApi(requests);
|
2022-03-13 23:42:22 +00:00
|
|
|
this.backups = new AdminBackupsApi(requests);
|
2022-03-25 06:17:38 +00:00
|
|
|
this.maintenance = new AdminMaintenanceApi(requests);
|
2022-03-29 16:25:28 +00:00
|
|
|
this.analytics = new AdminAnalyticsApi(requests);
|
2021-10-24 00:42:20 +00:00
|
|
|
|
|
|
|
Object.freeze(this);
|
|
|
|
}
|
|
|
|
}
|