1
0
Fork 0
mirror of synced 2024-09-20 11:27:56 +12:00

Fix account-portal server tests.

This commit is contained in:
Sam Rose 2024-08-05 17:27:03 +01:00
parent da74441c1c
commit 879552d298
No known key found for this signature in database
3 changed files with 12 additions and 1 deletions

View file

@ -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[]
}

View file

@ -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"

View file

@ -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