62 lines
2.0 KiB
TypeScript
62 lines
2.0 KiB
TypeScript
import TestConfiguration from "../TestConfiguration"
|
|
import { PermissionAPI } from "./permission"
|
|
import { RowAPI } from "./row"
|
|
import { TableAPI } from "./table"
|
|
import { ViewV2API } from "./viewV2"
|
|
import { DatasourceAPI } from "./datasource"
|
|
import { LegacyViewAPI } from "./legacyView"
|
|
import { ScreenAPI } from "./screen"
|
|
import { ApplicationAPI } from "./application"
|
|
import { BackupAPI } from "./backup"
|
|
import { AttachmentAPI } from "./attachment"
|
|
import { UserAPI } from "./user"
|
|
import { QueryAPI } from "./query"
|
|
import { RoleAPI } from "./role"
|
|
import { TemplateAPI } from "./template"
|
|
import { RowActionAPI } from "./rowAction"
|
|
import { AutomationAPI } from "./automation"
|
|
import { PluginAPI } from "./plugin"
|
|
import { WebhookAPI } from "./webhook"
|
|
|
|
export default class API {
|
|
application: ApplicationAPI
|
|
attachment: AttachmentAPI
|
|
automation: AutomationAPI
|
|
backup: BackupAPI
|
|
datasource: DatasourceAPI
|
|
legacyView: LegacyViewAPI
|
|
permission: PermissionAPI
|
|
plugin: PluginAPI
|
|
query: QueryAPI
|
|
roles: RoleAPI
|
|
row: RowAPI
|
|
rowAction: RowActionAPI
|
|
screen: ScreenAPI
|
|
table: TableAPI
|
|
templates: TemplateAPI
|
|
user: UserAPI
|
|
viewV2: ViewV2API
|
|
webhook: WebhookAPI
|
|
|
|
constructor(config: TestConfiguration) {
|
|
this.application = new ApplicationAPI(config)
|
|
this.attachment = new AttachmentAPI(config)
|
|
this.automation = new AutomationAPI(config)
|
|
this.backup = new BackupAPI(config)
|
|
this.datasource = new DatasourceAPI(config)
|
|
this.legacyView = new LegacyViewAPI(config)
|
|
this.permission = new PermissionAPI(config)
|
|
this.plugin = new PluginAPI(config)
|
|
this.query = new QueryAPI(config)
|
|
this.roles = new RoleAPI(config)
|
|
this.row = new RowAPI(config)
|
|
this.rowAction = new RowActionAPI(config)
|
|
this.screen = new ScreenAPI(config)
|
|
this.table = new TableAPI(config)
|
|
this.templates = new TemplateAPI(config)
|
|
this.user = new UserAPI(config)
|
|
this.viewV2 = new ViewV2API(config)
|
|
this.webhook = new WebhookAPI(config)
|
|
}
|
|
}
|