2023-11-27 11:20:39 +01:00
|
|
|
type ChangeRequestInfo = { id: number; title: string | null };
|
|
|
|
|
2023-11-21 10:29:43 +01:00
|
|
|
type NewStrategy = {
|
|
|
|
projectId: string;
|
|
|
|
featureName: string;
|
|
|
|
strategyName: string;
|
|
|
|
environment: string;
|
2023-11-27 11:20:39 +01:00
|
|
|
changeRequest: ChangeRequestInfo;
|
2023-11-21 10:29:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
type ExistingStrategy = NewStrategy & { id: string };
|
|
|
|
|
|
|
|
export type ChangeRequestStrategy = NewStrategy | ExistingStrategy;
|
|
|
|
|
2023-11-08 14:50:12 +01:00
|
|
|
export interface IChangeRequestSegmentUsageReadModel {
|
2023-11-21 10:29:43 +01:00
|
|
|
getStrategiesUsedInActiveChangeRequests(
|
|
|
|
segmentId: number,
|
|
|
|
): Promise<ChangeRequestStrategy[]>;
|
2023-11-08 14:50:12 +01:00
|
|
|
}
|