UNPKG

@speckle/shared

Version:

Shared code between various Speckle JS packages

8 lines 1.27 kB
import { DashboardNotFoundError, DashboardProjectsNotEnoughPermissionsError, DashboardsNotEnabledError, WorkspacePlanNoFeatureAccessError } from '../domain/authErrors.js'; import { Loaders } from '../domain/loaders.js'; import { AuthPolicyEnsureFragment } from '../domain/policies.js'; import { DashboardContext, UserContext, WorkspaceContext } from '../domain/context.js'; export declare const ensureDashboardsEnabledFragment: AuthPolicyEnsureFragment<typeof Loaders.getEnv, {}, InstanceType<typeof DashboardsNotEnabledError>>; export declare const ensureWorkspaceDashboardsFeatureAccessFragment: AuthPolicyEnsureFragment<typeof Loaders.getWorkspacePlan, WorkspaceContext, InstanceType<typeof WorkspacePlanNoFeatureAccessError>>; export declare const ensureDashboardProjectsReadAccess: AuthPolicyEnsureFragment<typeof Loaders.getDashboard | typeof Loaders.getProjectRole | typeof Loaders.getProject | typeof Loaders.getServerRole | typeof Loaders.getEnv | typeof Loaders.getWorkspaceRole | typeof Loaders.getWorkspace | typeof Loaders.getWorkspaceSsoProvider | typeof Loaders.getWorkspaceSsoSession, DashboardContext & UserContext, InstanceType<typeof DashboardNotFoundError | typeof DashboardProjectsNotEnoughPermissionsError>>; //# sourceMappingURL=dashboards.d.ts.map