mirror of
https://github.com/hanzoai/calendar.git
synced 2026-09-24 22:42:24 +00:00
* feat: allows forcing/skipping calendar cache serving Signed-off-by: Omar López <[email protected]> * Update features.repository.ts * Added to HNB * type fixes * Update packages/prisma/migrations/20241216000000_add_calendar_cache_serve/migration.sql Co-authored-by: Keith Williams <[email protected]> * Update packages/prisma/zod-utils.ts Co-authored-by: Keith Williams <[email protected]> * Update selectedCalendar.ts --------- Signed-off-by: Omar López <[email protected]> Co-authored-by: Keith Williams <[email protected]>
8 lines
313 B
TypeScript
8 lines
313 B
TypeScript
import type { AppFlags } from "./config";
|
|
|
|
export interface IFeaturesRepository {
|
|
checkIfFeatureIsEnabledGlobally(slug: keyof AppFlags): Promise<boolean>;
|
|
checkIfUserHasFeature(userId: number, slug: string): Promise<boolean>;
|
|
checkIfTeamHasFeature(teamId: number, slug: keyof AppFlags): Promise<boolean>;
|
|
}
|