18 lines
354 B
TypeScript
18 lines
354 B
TypeScript
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),
|
|
}
|
|
}
|