fix(types): fix type of application_method_type filter (#12160)

The `application_method_type` filter has a `string` type in the HTTP types. This PR accurately sets the type. This is useful for the generated OAS to show the possible filter values.
This commit is contained in:
Shahed Nasser
2025-04-13 16:16:57 +03:00
committed by GitHub
parent 734f4fecbc
commit 1f73281ab8
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/types": patch
---
fix(types): fix type of application_method_type filter

View File

@@ -1,4 +1,5 @@
import { BaseFilterable, OperatorMap } from "../../../dal"
import { ApplicationMethodTypeValues } from "../../../promotion"
import { FindParams, SelectParams } from "../../common"
export interface AdminGetPromotionParams extends SelectParams {}
@@ -46,7 +47,7 @@ export interface AdminGetPromotionsParams
/**
* Filter by the promotion's application method type.
*/
application_method_type?: string | string[]
application_method_type?: ApplicationMethodTypeValues | ApplicationMethodTypeValues[]
/**
* An array of filters to apply on the entity, where each item in the array is joined with an "and" condition.
*/