c33052e697
* fix(gatekeeper): accept workspace project invite fixes * chore(gatekeeper): remove old subscription event handler
17 lines
509 B
TypeScript
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)
|
|
}
|