diff --git a/src/modules/ad/interface/grpc-controllers/dtos/match.request.dto.ts b/src/modules/ad/interface/grpc-controllers/dtos/match.request.dto.ts index 2557f07..b21cd91 100644 --- a/src/modules/ad/interface/grpc-controllers/dtos/match.request.dto.ts +++ b/src/modules/ad/interface/grpc-controllers/dtos/match.request.dto.ts @@ -81,6 +81,10 @@ export class MatchRequestDto { @ValidateNested({ each: true }) waypoints: WaypointDto[]; + @IsUUID() + @IsOptional() + excludedAdId?: string; + @IsOptional() @IsEnum(AlgorithmType) algorithmType?: AlgorithmType; diff --git a/src/modules/ad/interface/grpc-controllers/matcher.proto b/src/modules/ad/interface/grpc-controllers/matcher.proto index fa4e59f..15f7cbb 100644 --- a/src/modules/ad/interface/grpc-controllers/matcher.proto +++ b/src/modules/ad/interface/grpc-controllers/matcher.proto @@ -16,16 +16,17 @@ message MatchRequest { repeated ScheduleItem schedule = 7; bool strict = 8; repeated Waypoint waypoints = 9; - AlgorithmType algorithmType = 10; - int32 remoteness = 11; - bool useProportion = 12; - float proportion = 13; - bool useAzimuth = 14; - int32 azimuthMargin = 15; - float maxDetourDistanceRatio = 16; - float maxDetourDurationRatio = 17; - optional int32 page = 18; - optional int32 perPage = 19; + string excludedAdId = 10; + AlgorithmType algorithmType = 11; + int32 remoteness = 12; + bool useProportion = 13; + float proportion = 14; + bool useAzimuth = 15; + int32 azimuthMargin = 16; + float maxDetourDistanceRatio = 17; + float maxDetourDurationRatio = 18; + optional int32 page = 19; + optional int32 perPage = 20; } message ScheduleItem {