1
0
Fork 0
mirror of synced 2024-06-02 18:44:54 +12:00
budibase/packages/backend-core/tests/utilities/structures/licenses.ts
2022-10-06 16:03:47 +01:00

19 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),
}
}