2022-07-19 08:11:52 +12:00
|
|
|
import { Context } from "koa"
|
|
|
|
import { User } from "../documents"
|
2022-09-07 03:24:36 +12:00
|
|
|
import { License } from "../sdk"
|
2022-07-19 08:11:52 +12:00
|
|
|
|
|
|
|
export interface ContextUser extends User {
|
|
|
|
globalId?: string
|
2022-09-07 03:24:36 +12:00
|
|
|
license: License
|
2022-07-19 08:11:52 +12:00
|
|
|
}
|
|
|
|
|
2022-10-15 08:10:44 +13:00
|
|
|
export interface BBContext {
|
2022-07-19 08:11:52 +12:00
|
|
|
user?: ContextUser
|
2022-10-15 08:10:44 +13:00
|
|
|
request: {
|
|
|
|
body: any
|
|
|
|
}
|
|
|
|
params: any
|
|
|
|
body?: any
|
|
|
|
redirect?: any
|
2022-07-19 08:11:52 +12:00
|
|
|
}
|