UNPKG

unleash-server

Version:

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

21 lines 1.25 kB
import { type IUnleashConfig } from '../../types/index.js'; import type { IUnleashServices } from '../../services/index.js'; import { type FeatureLifecycleCompletedSchema, type FeatureLifecycleSchema } from '../../openapi/index.js'; import Controller from '../../routes/controller.js'; import type { Request, Response } from 'express'; import type { IAuthRequest } from '../../routes/unleash-types.js'; interface FeatureLifecycleParams { projectId: string; featureName: string; } export default class FeatureLifecycleController extends Controller { private featureLifecycleService; private openApiService; private flagResolver; constructor(config: IUnleashConfig, { transactionalFeatureLifecycleService, openApiService, }: Pick<IUnleashServices, 'openApiService' | 'transactionalFeatureLifecycleService'>); getFeatureLifecycle(req: Request<FeatureLifecycleParams, any, any, any>, res: Response<FeatureLifecycleSchema>): Promise<void>; complete(req: IAuthRequest<FeatureLifecycleParams, any, FeatureLifecycleCompletedSchema>, res: Response): Promise<void>; uncomplete(req: IAuthRequest<FeatureLifecycleParams>, res: Response): Promise<void>; } export {}; //# sourceMappingURL=feature-lifecycle-controller.d.ts.map