1
0
Fork 0
mirror of synced 2024-07-21 14:15:48 +12:00
budibase/packages/backend-core/tests/utilities/structures/licenses.ts

19 lines
354 B
TypeScript
Raw Normal View History

2022-10-07 04:03:47 +13:00
import { AccountPlan, License, PlanType, Quotas } from "@budibase/types"
const newPlan = (type: PlanType = PlanType.FREE): AccountPlan => {
return {
type,
}
}
export const newLicense = (opts: {
quotas: Quotas
planType?: PlanType
}): License => {
return {
features: [],
quotas: opts.quotas,
plan: newPlan(opts.planType),
}
}