1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-23 13:46:45 +02:00

feat: add some new types

This commit is contained in:
Thomas Heartman 2023-11-20 10:46:57 +01:00
parent 6efd78c403
commit f453a97b43
No known key found for this signature in database
GPG Key ID: BD1F880DAED1EE78

View File

@ -1,4 +1,15 @@
type NewStrategy = {
projectId: string;
featureName: string;
strategyName: string;
environment: string;
};
type ExistingStrategy = NewStrategy & { id?: string };
type ChangeRequestStrategy = NewStrategy | ExistingStrategy;
export interface IChangeRequestSegmentUsageReadModel {
isSegmentUsedInActiveChangeRequests(segmentId: number): Promise<boolean>;
getSegmentsUsedInActiveChangeRequests(): Promise<{}[]>;
getSegmentsUsedInActiveChangeRequests(): Promise<ChangeRequestStrategy[]>;
}