1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00
unleash.unleash/src/lib/features/change-request-segment-usage-service/change-request-segment-usage-read-model.ts

17 lines
418 B
TypeScript
Raw Normal View History

type NewStrategy = {
projectId: string;
featureName: string;
strategyName: string;
environment: string;
};
type ExistingStrategy = NewStrategy & { id: string };
export type ChangeRequestStrategy = NewStrategy | ExistingStrategy;
export interface IChangeRequestSegmentUsageReadModel {
getStrategiesUsedInActiveChangeRequests(
segmentId: number,
): Promise<ChangeRequestStrategy[]>;
}