41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import TestConfiguration from "../TestConfiguration"
|
|
import { AccountAPI } from "./accounts"
|
|
import { AuthAPI } from "./auth"
|
|
import { ConfigAPI } from "./configs"
|
|
import { EmailAPI } from "./email"
|
|
import { SelfAPI } from "./self"
|
|
import { UserAPI } from "./users"
|
|
import { EnvironmentAPI } from "./environment"
|
|
import { MigrationAPI } from "./migrations"
|
|
import { StatusAPI } from "./status"
|
|
import { RestoreAPI } from "./restore"
|
|
import { TenantAPI } from "./tenants"
|
|
|
|
export default class API {
|
|
accounts: AccountAPI
|
|
auth: AuthAPI
|
|
configs: ConfigAPI
|
|
emails: EmailAPI
|
|
self: SelfAPI
|
|
users: UserAPI
|
|
environment: EnvironmentAPI
|
|
migrations: MigrationAPI
|
|
status: StatusAPI
|
|
restore: RestoreAPI
|
|
tenants: TenantAPI
|
|
|
|
constructor(config: TestConfiguration) {
|
|
this.accounts = new AccountAPI(config)
|
|
this.auth = new AuthAPI(config)
|
|
this.configs = new ConfigAPI(config)
|
|
this.emails = new EmailAPI(config)
|
|
this.self = new SelfAPI(config)
|
|
this.users = new UserAPI(config)
|
|
this.environment = new EnvironmentAPI(config)
|
|
this.migrations = new MigrationAPI(config)
|
|
this.status = new StatusAPI(config)
|
|
this.restore = new RestoreAPI(config)
|
|
this.tenants = new TenantAPI(config)
|
|
}
|
|
}
|