2c8ff89fac
* wip * Filter only selectedCalendars where ff is enabled * test: fix and add tests for calendar subscription cache feature Co-Authored-By: Volnei Munhoz <volnei.munhoz@gmail.com> * test: fix SelectedCalendarRepository tests for new teamIds parameter Co-Authored-By: Volnei Munhoz <volnei.munhoz@gmail.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
9 lines
384 B
TypeScript
9 lines
384 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>;
|
|
getTeamsWithFeatureEnabled(slug: keyof AppFlags): Promise<number[]>;
|
|
}
|