@gooddata/api-client-bear
Version:
API Client for the GoodData platform
21 lines • 1.17 kB
TypeScript
import { IAssociatedProjectPermissions, IFeatureFlags } from "@gooddata/api-model-bear";
import { CachingContext } from "./types.js";
import { IProjectConfigSettingItem, ProjectModule } from "../project.js";
import { ProjectModuleDecorator } from "../decoratedModules/project.js";
export declare class ProjectModuleWithCaching extends ProjectModuleDecorator {
private readonly ctx;
constructor(decorated: ProjectModule, ctx: CachingContext);
getCurrentProjectId(): Promise<string>;
getConfig(projectId: string): Promise<IProjectConfigSettingItem[]>;
getConfigItem(projectId: string, key: string): Promise<IProjectConfigSettingItem | undefined>;
getProjectFeatureFlags(projectId: string, source?: string): Promise<IFeatureFlags>;
getPermissions(workspaceId: string, userId: string): Promise<IAssociatedProjectPermissions>;
private getOrCreateFeatureFlagsEntry;
private getOrCreatePermissionsEntry;
}
/**
* @alpha
*/
export type ProjectModuleDecoratorFactory = (user: ProjectModule) => ProjectModule;
export declare function cachedProject(ctx: CachingContext): ProjectModuleDecoratorFactory;
//# sourceMappingURL=project.d.ts.map