Files
speckle-server/packages/server/modules/core/helpers/mainConstants.ts
T
Kristaps Fabians Geikins 2f8272b6ae feat(shared): modularized package & node16 support (#2336)
* feat(shared): modularized package & node16 support

* lockfile update

* various fixes

* moar fixes

* added znv and zod as devdeps of shared

* lockfile update
2024-06-11 14:12:13 +03:00

17 lines
540 B
TypeScript

import { Roles, Scopes, AllScopes as BaseAllScopes } from '@speckle/shared'
import { getFeatureFlags } from '@/modules/shared/helpers/envHelper'
const { FF_AUTOMATE_MODULE_ENABLED } = getFeatureFlags()
const AllScopes = FF_AUTOMATE_MODULE_ENABLED
? BaseAllScopes
: BaseAllScopes.filter(
(s: string) =>
!(
[Scopes.AutomateFunctions.Read, Scopes.AutomateFunctions.Write] as string[]
).includes(s)
)
export type { ServerRoles, StreamRoles } from '@speckle/shared'
export { Roles, Scopes, AllScopes }