2023-04-06 02:33:56 +12:00
|
|
|
import AccountInternalAPIClient from "./AccountInternalAPIClient"
|
2023-10-06 05:39:40 +13:00
|
|
|
import { AccountAPI, LicenseAPI, AuthAPI, StripeAPI } from "./apis"
|
2023-04-06 02:33:56 +12:00
|
|
|
import { State } from "../../types"
|
|
|
|
|
|
|
|
export default class AccountInternalAPI {
|
|
|
|
client: AccountInternalAPIClient
|
|
|
|
|
2023-07-13 23:48:44 +12:00
|
|
|
auth: AuthAPI
|
2023-04-06 02:33:56 +12:00
|
|
|
accounts: AccountAPI
|
|
|
|
licenses: LicenseAPI
|
2023-10-06 05:39:40 +13:00
|
|
|
stripe: StripeAPI
|
2023-04-06 02:33:56 +12:00
|
|
|
|
|
|
|
constructor(state: State) {
|
|
|
|
this.client = new AccountInternalAPIClient(state)
|
2023-07-13 23:48:44 +12:00
|
|
|
this.auth = new AuthAPI(this.client)
|
2023-04-06 02:33:56 +12:00
|
|
|
this.accounts = new AccountAPI(this.client)
|
|
|
|
this.licenses = new LicenseAPI(this.client)
|
2023-10-06 05:43:25 +13:00
|
|
|
this.stripe = new StripeAPI(this.client)
|
2023-04-06 02:33:56 +12:00
|
|
|
}
|
|
|
|
}
|