unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
35 lines • 1.92 kB
TypeScript
import type { Request, Response } from 'express';
import Controller from '../../../routes/controller.js';
import type { IUnleashConfig } from '../../../types/option.js';
import type { IFeatureToggleQuery } from '../../../types/model.js';
import type { IAuthRequest } from '../../../routes/unleash-types.js';
import type { TagSchema } from '../../../openapi/spec/tag-schema.js';
import type { TagsSchema } from '../../../openapi/spec/tags-schema.js';
import type { IUnleashServices } from '../../../services/index.js';
import type { UpdateTagsSchema } from '../../../openapi/spec/update-tags-schema.js';
import type { ValidateFeatureSchema } from '../../../openapi/spec/validate-feature-schema.js';
declare class FeatureController extends Controller {
private tagService;
private openApiService;
private service;
constructor(config: IUnleashConfig, { featureTagService, featureToggleService, openApiService, }: Pick<IUnleashServices, 'featureTagService' | 'featureToggleService' | 'openApiService'>);
paramToArray(param: any): any;
prepQuery({ tag, project, namePrefix, }: any): Promise<IFeatureToggleQuery>;
listTags(req: Request<{
featureName: string;
}, any, any, any>, res: Response<TagsSchema>): Promise<void>;
addTag(req: IAuthRequest<{
featureName: string;
}, Response<TagSchema>, TagSchema, any>, res: Response<TagSchema>): Promise<void>;
updateTags(req: IAuthRequest<{
featureName: string;
}, Response<TagsSchema>, UpdateTagsSchema, any>, res: Response<TagsSchema>): Promise<void>;
removeTag(req: IAuthRequest<{
featureName: string;
type: string;
value: string;
}>, res: Response<void>): Promise<void>;
validate(req: Request<any, any, ValidateFeatureSchema, any>, res: Response<void>): Promise<void>;
}
export default FeatureController;
//# sourceMappingURL=feature-toggle-legacy-controller.d.ts.map