@medusajs/core-flows
Version:
Set of workflow definitions for Medusa
34 lines • 1.14 kB
TypeScript
import { TaxRegionDTO, UpdateTaxRegionDTO } from "@medusajs/framework/types";
/**
* The tax regions to update.
*/
export type UpdateTaxRegionsWorkflowInput = UpdateTaxRegionDTO[];
/**
* The updated tax regions.
*/
export type UpdateTaxRegionsWorkflowOutput = TaxRegionDTO[];
export declare const updateTaxRegionsWorkflowId = "update-tax-regions";
/**
* This workflow updates one or more tax regions. It's used by the
* [Update Tax Regions Admin API Route](https://docs.medusajs.com/api/admin#tax-regions_posttaxregionsid).
*
* You can use this workflow within your own customizations or custom workflows, allowing you
* to update tax regions in your custom flows.
*
* @example
* const { result } = await updateTaxRegionsWorkflow(container)
* .run({
* input: [
* {
* id: "txreg_123",
* province_code: "CA",
* }
* ]
* })
*
* @summary
*
* Update one or more tax regions.
*/
export declare const updateTaxRegionsWorkflow: import("@medusajs/framework/workflows-sdk").ReturnWorkflow<UpdateTaxRegionsWorkflowInput, UpdateTaxRegionsWorkflowOutput, []>;
//# sourceMappingURL=update-tax-regions.d.ts.map