feat(medusa,types): GET admin promotion endpoint to fetch by code (#6697)
what: - GET admin promotion endpoint will search for a promotion either through ID or code
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
import { BaseFilterable, OperatorMap } from "../../dal"
|
||||
import { CreateCampaignDTO } from "../mutations"
|
||||
import {
|
||||
ApplicationMethodDTO,
|
||||
CreateApplicationMethodDTO,
|
||||
UpdateApplicationMethodDTO,
|
||||
} from "./application-method"
|
||||
import { CreatePromotionRuleDTO, PromotionRuleDTO } from "./promotion-rule"
|
||||
|
||||
import { BaseFilterable } from "../../dal"
|
||||
import { CampaignDTO } from "./campaign"
|
||||
import { CreateCampaignDTO } from "../mutations"
|
||||
import { CreatePromotionRuleDTO, PromotionRuleDTO } from "./promotion-rule"
|
||||
|
||||
export type PromotionTypeValues = "standard" | "buyget"
|
||||
|
||||
@@ -42,9 +41,9 @@ export interface UpdatePromotionDTO {
|
||||
|
||||
export interface FilterablePromotionProps
|
||||
extends BaseFilterable<FilterablePromotionProps> {
|
||||
id?: string[]
|
||||
code?: string[]
|
||||
id?: string | string[]
|
||||
code?: string | string[] | OperatorMap<string>
|
||||
budget_id?: string[] | OperatorMap<string>
|
||||
is_automatic?: boolean
|
||||
type?: PromotionTypeValues[]
|
||||
budget_id?: string[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user