@medusajs/core-flows
Version:
Set of workflow definitions for Medusa
32 lines • 1.06 kB
TypeScript
import { LinkDefinition } from "@medusajs/framework/types";
export declare const createLinksWorkflowId = "create-link";
/**
* This workflow creates one or more links between records.
*
* You can use this workflow within your customizations or your own custom workflows, allowing you to
* create links within your custom flows.
*
* Learn more about links in [this documentation](https://docs.medusajs.com/learn/fundamentals/module-links/link).
*
* @example
* const { result } = await createLinksWorkflow(container)
* .run({
* input: [
* {
* // import { Modules } from "@medusajs/framework/utils"
* [Modules.PRODUCT]: {
* product_id: "prod_123",
* },
* "helloModuleService": {
* my_custom_id: "mc_123",
* },
* }
* ]
* })
*
* @summary
*
* Create links between two records of linked data models.
*/
export declare const createLinksWorkflow: import("@medusajs/framework/workflows-sdk").ReturnWorkflow<LinkDefinition[], LinkDefinition[], []>;
//# sourceMappingURL=create-links.d.ts.map