UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.

19 lines 1.16 kB
import type { Response } from 'express'; import Controller from '../../routes/controller.js'; import type { IUnleashServices } from '../../services/index.js'; import { type IFeatureSearchOverview, type IUnleashConfig } from '../../types/index.js'; import { type SearchFeaturesSchema } from '../../openapi/index.js'; import type { IAuthRequest } from '../../routes/unleash-types.js'; import { type FeatureSearchQueryParameters } from '../../openapi/spec/feature-search-query-parameters.js'; type FeatureSearchServices = Pick<IUnleashServices, 'openApiService' | 'featureSearchService'>; export default class FeatureSearchController extends Controller { private openApiService; private flagResolver; private featureSearchService; private readonly logger; constructor(config: IUnleashConfig, { openApiService, featureSearchService }: FeatureSearchServices); maybeAnonymise(features: IFeatureSearchOverview[]): IFeatureSearchOverview[]; searchFeatures(req: IAuthRequest<any, any, any, FeatureSearchQueryParameters>, res: Response<SearchFeaturesSchema>): Promise<void>; } export {}; //# sourceMappingURL=feature-search-controller.d.ts.map