budibase/packages/server/src/tests/utilities/api/index.ts

35 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-07-18 12:56:24 +02:00
import TestConfiguration from "../TestConfiguration"
2023-08-22 09:24:43 +02:00
import { PermissionAPI } from "./permission"
2023-07-26 12:29:19 +02:00
import { RowAPI } from "./row"
2023-07-19 15:47:45 +02:00
import { TableAPI } from "./table"
2023-07-18 12:56:24 +02:00
import { ViewV2API } from "./viewV2"
2023-09-04 18:53:32 +02:00
import { DatasourceAPI } from "./datasource"
2023-09-13 09:59:17 +02:00
import { LegacyViewAPI } from "./legacyView"
import { ScreenAPI } from "./screen"
2023-10-13 19:03:10 +02:00
import { ApplicationAPI } from "./application"
import { AttachmentAPI } from "./attachment"
2023-07-18 12:56:24 +02:00
export default class API {
2023-07-19 15:47:45 +02:00
table: TableAPI
2023-09-13 09:59:17 +02:00
legacyView: LegacyViewAPI
2023-07-18 12:56:24 +02:00
viewV2: ViewV2API
2023-07-26 12:29:19 +02:00
row: RowAPI
2023-08-22 09:24:43 +02:00
permission: PermissionAPI
2023-09-04 18:53:32 +02:00
datasource: DatasourceAPI
screen: ScreenAPI
2023-10-13 19:03:10 +02:00
application: ApplicationAPI
attachment: AttachmentAPI
2023-07-18 12:56:24 +02:00
constructor(config: TestConfiguration) {
2023-07-19 15:47:45 +02:00
this.table = new TableAPI(config)
2023-09-13 09:59:17 +02:00
this.legacyView = new LegacyViewAPI(config)
2023-07-18 12:56:24 +02:00
this.viewV2 = new ViewV2API(config)
2023-07-26 12:29:19 +02:00
this.row = new RowAPI(config)
2023-08-22 09:24:43 +02:00
this.permission = new PermissionAPI(config)
2023-09-04 18:53:32 +02:00
this.datasource = new DatasourceAPI(config)
this.screen = new ScreenAPI(config)
2023-10-13 19:03:10 +02:00
this.application = new ApplicationAPI(config)
this.attachment = new AttachmentAPI(config)
2023-07-18 12:56:24 +02:00
}
}