Fix account-portal server tests.
This commit is contained in:
parent
da74441c1c
commit
879552d298
|
@ -0,0 +1,9 @@
|
|||
export enum FeatureFlag {
|
||||
LICENSING = "LICENSING",
|
||||
PER_CREATOR_PER_USER_PRICE = "PER_CREATOR_PER_USER_PRICE",
|
||||
PER_CREATOR_PER_USER_PRICE_ALERT = "PER_CREATOR_PER_USER_PRICE_ALERT",
|
||||
}
|
||||
|
||||
export interface TenantFeatureFlags {
|
||||
[key: string]: FeatureFlag[]
|
||||
}
|
|
@ -11,6 +11,7 @@ export * from "./auth"
|
|||
export * from "./locks"
|
||||
export * from "./db"
|
||||
export * from "./middleware"
|
||||
export * from "./featureFlag"
|
||||
export * from "./environmentVariables"
|
||||
export * from "./auditLogs"
|
||||
export * from "./sso"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Context, Request } from "koa"
|
||||
import { User, Role, UserRoles, Account, ConfigType } from "../documents"
|
||||
import { License } from "../sdk"
|
||||
import { FeatureFlag, License } from "../sdk"
|
||||
import { Files } from "formidable"
|
||||
|
||||
export interface ContextUser extends Omit<User, "roles"> {
|
||||
|
@ -11,6 +11,7 @@ export interface ContextUser extends Omit<User, "roles"> {
|
|||
role?: Role
|
||||
roles?: UserRoles
|
||||
csrfToken?: string
|
||||
featureFlags?: FeatureFlag[]
|
||||
accountPortalAccess?: boolean
|
||||
providerType?: ConfigType
|
||||
account?: Account
|
||||
|
|
Loading…
Reference in New Issue