import { NotEntitledJustification } from '@frontegg/rest-api'; /** * Frontegg app entitlements configuration */ export interface EntitlementsOptions { enabled: boolean; } /** * Load entitlements callback * @param isSucceeded true will be passed when completed successfully, false when failed */ export type LoadEntitlementsCallback = (isSucceeded: boolean) => void; /** * Load entitlements saga action payload */ export interface LoadEntitlementsActionPayload { callback: LoadEntitlementsCallback; } export interface Entitlement { isEntitled: boolean; justification?: NotEntitledJustification; } export type EntitledToOptions = EntitledToFeature | EntitledToPermission; export interface EntitledToFeature { featureKey: string; } export interface EntitledToPermission { permissionKey: string; }