UNPKG

@medusajs/core-flows

Version:

Set of workflow definitions for Medusa

28 lines 1.02 kB
import { UpdatePromotionRulesWorkflowDTO, PromotionRuleDTO } from "@medusajs/framework/types"; export declare const updatePromotionRulesWorkflowId = "update-promotion-rules-workflow"; /** * This workflow updates one or more promotion rules. It's used by other workflows, * such as {@link batchPromotionRulesWorkflow} that manages the rules of a promotion. * * You can use this workflow within your own customizations or custom workflows, allowing you to * update promotion rules within your custom flows. * * @example * const { result } = await updatePromotionRulesWorkflow(container) * .run({ * input: { * data: [ * { * id: "prule_123", * attribute: "cusgrp_123", * } * ] * } * }) * * @summary * * Update one or more promotion rules. */ export declare const updatePromotionRulesWorkflow: import("@medusajs/framework/workflows-sdk").ReturnWorkflow<UpdatePromotionRulesWorkflowDTO, PromotionRuleDTO[], []>; //# sourceMappingURL=update-promotion-rules.d.ts.map