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 "./locks"
|
||||||
export * from "./db"
|
export * from "./db"
|
||||||
export * from "./middleware"
|
export * from "./middleware"
|
||||||
|
export * from "./featureFlag"
|
||||||
export * from "./environmentVariables"
|
export * from "./environmentVariables"
|
||||||
export * from "./auditLogs"
|
export * from "./auditLogs"
|
||||||
export * from "./sso"
|
export * from "./sso"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Context, Request } from "koa"
|
import { Context, Request } from "koa"
|
||||||
import { User, Role, UserRoles, Account, ConfigType } from "../documents"
|
import { User, Role, UserRoles, Account, ConfigType } from "../documents"
|
||||||
import { License } from "../sdk"
|
import { FeatureFlag, License } from "../sdk"
|
||||||
import { Files } from "formidable"
|
import { Files } from "formidable"
|
||||||
|
|
||||||
export interface ContextUser extends Omit<User, "roles"> {
|
export interface ContextUser extends Omit<User, "roles"> {
|
||||||
|
@ -11,6 +11,7 @@ export interface ContextUser extends Omit<User, "roles"> {
|
||||||
role?: Role
|
role?: Role
|
||||||
roles?: UserRoles
|
roles?: UserRoles
|
||||||
csrfToken?: string
|
csrfToken?: string
|
||||||
|
featureFlags?: FeatureFlag[]
|
||||||
accountPortalAccess?: boolean
|
accountPortalAccess?: boolean
|
||||||
providerType?: ConfigType
|
providerType?: ConfigType
|
||||||
account?: Account
|
account?: Account
|
||||||
|
|
Loading…
Reference in New Issue