@questlabs/core
Version:
This is the quest SDK
13 lines (12 loc) • 1.25 kB
TypeScript
import QuestSdk from "../../";
import { IGetRequestOptions, IPostRequestOptions } from "../../types/common.types";
import { IAddNewFeatureFlagForEntityResponse, IGetAllFeatureFlagsForEntityResponse, IGetAllFeatureFlagsForEntity, IToggleEntityFeatureFlags, IToggleFeatureFlagResponse, IAddNewFeatureFlagForEntity, IGetAllFeatureFlagsStream } from "../../types/entityFeatureFlag.types";
export declare class EntityFeatureFlag {
questSdk: QuestSdk;
constructor(questSdk: QuestSdk);
getAllFeatureFlagsForEntity({ entityId }?: IGetAllFeatureFlagsForEntity, options?: IGetRequestOptions): Promise<IGetAllFeatureFlagsForEntityResponse>;
addNewFeatureFlagForEntity({ entityId, flagName, description, isEnabled }: IAddNewFeatureFlagForEntity, options?: IPostRequestOptions): Promise<IAddNewFeatureFlagForEntityResponse>;
toggleFeatureFlagForEntity({ entityId, flagName }: IToggleEntityFeatureFlags, options?: IPostRequestOptions): Promise<IToggleFeatureFlagResponse>;
terminateFeatureFlagForEntity({ entityId, flagName }: IToggleEntityFeatureFlags, options?: IPostRequestOptions): Promise<IToggleFeatureFlagResponse>;
getAllFeatureFlagsStream({ entityId }?: IGetAllFeatureFlagsStream, options?: IGetRequestOptions): EventSource;
}