Files
speckle-server/packages/server/modules/gatekeeper/helpers/plans.ts
T
Gergő Jedlicska c33052e697 fix(gatekeeper): accept workspace project invite fixes (#4426)
* fix(gatekeeper): accept workspace project invite fixes

* chore(gatekeeper): remove old subscription event handler
2025-04-17 05:21:23 +01:00

17 lines
509 B
TypeScript

import {
isNewWorkspacePlan,
PaidWorkspacePlansNew,
PaidWorkspacePlansOld,
WorkspacePlans
} from '@speckle/shared'
export const isNewPaidPlanType = (plan: WorkspacePlans): boolean => {
return (Object.values(PaidWorkspacePlansNew) as string[]).includes(plan)
}
export const isNewPlanType = (plan: WorkspacePlans): boolean => isNewWorkspacePlan(plan)
export const isOldPaidPlanType = (plan: WorkspacePlans): boolean => {
return (Object.values(PaidWorkspacePlansOld) as string[]).includes(plan)
}