unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
22 lines • 906 B
TypeScript
import type { IFeatureLifecycleStage, StageName } from '../../types/index.js';
export type FeatureLifecycleStage = {
feature: string;
stage: StageName;
status?: string;
statusValue?: string;
};
export type FeatureLifecycleView = IFeatureLifecycleStage[];
export type FeatureLifecycleProjectItem = FeatureLifecycleStage & {
enteredStageAt: Date;
project: string;
};
export type NewStage = Pick<FeatureLifecycleStage, 'feature' | 'stage'>;
export interface IFeatureLifecycleStore {
insert(featureLifecycleStages: FeatureLifecycleStage[]): Promise<NewStage[]>;
get(feature: string): Promise<FeatureLifecycleView>;
stageExists(stage: FeatureLifecycleStage): Promise<boolean>;
delete(feature: string): Promise<void>;
deleteAll(): Promise<void>;
deleteStage(stage: FeatureLifecycleStage): Promise<void>;
}
//# sourceMappingURL=feature-lifecycle-store-type.d.ts.map