UNPKG

@medusajs/core-flows

Version:

Set of workflow definitions for Medusa

34 lines 1.29 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createShippingProfilesWorkflow = exports.createShippingProfilesWorkflowId = void 0; const workflows_sdk_1 = require("@medusajs/framework/workflows-sdk"); const steps_1 = require("../steps"); exports.createShippingProfilesWorkflowId = "create-shipping-profiles-workflow"; /** * This workflow creates one or more shipping profiles. It's used by the * [Create Shipping Profile Admin API Route](https://docs.medusajs.com/api/admin#shipping-profiles_postshippingprofiles). * * You can use this workflow within your own customizations or custom workflows, allowing you to * create shipping profiles within your custom flows. * * @example * const { result } = await createShippingProfilesWorkflow(container) * .run({ * input: { * data: [ * { * name: "Standard", * type: "standard" * } * ] * } * }) * * @summary * * Create one or more shipping profiles. */ exports.createShippingProfilesWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.createShippingProfilesWorkflowId, (input) => { return new workflows_sdk_1.WorkflowResponse((0, steps_1.createShippingProfilesStep)(input.data)); }); //# sourceMappingURL=create-shipping-profiles.js.map