feat(core-flows,medusa,types): remove rules from promotion endpoints + workflows (#6696)
This commit is contained in:
@@ -12,7 +12,6 @@ import {
|
||||
FilterablePromotionProps,
|
||||
PromotionDTO,
|
||||
PromotionRuleDTO,
|
||||
RemovePromotionRuleDTO,
|
||||
UpdatePromotionDTO,
|
||||
} from "./common"
|
||||
import { CreateCampaignDTO, UpdateCampaignDTO } from "./mutations"
|
||||
@@ -99,19 +98,19 @@ export interface IPromotionModuleService extends IModuleService {
|
||||
|
||||
removePromotionRules(
|
||||
promotionId: string,
|
||||
rulesData: RemovePromotionRuleDTO[],
|
||||
ruleIds: string[],
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
|
||||
removePromotionTargetRules(
|
||||
promotionId: string,
|
||||
rulesData: RemovePromotionRuleDTO[],
|
||||
ruleIds: string[],
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
|
||||
removePromotionBuyRules(
|
||||
promotionId: string,
|
||||
rulesData: RemovePromotionRuleDTO[],
|
||||
ruleIds: string[],
|
||||
sharedContext?: Context
|
||||
): Promise<void>
|
||||
|
||||
|
||||
@@ -7,3 +7,11 @@ export type AddPromotionRulesWorkflowDTO = {
|
||||
rules: CreatePromotionRuleDTO[]
|
||||
}
|
||||
}
|
||||
|
||||
export type RemovePromotionRulesWorkflowDTO = {
|
||||
rule_type: PromotionRuleTypes
|
||||
data: {
|
||||
id: string
|
||||
rule_ids: string[]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user