Module exposing: createCustomerAddressesWorkflowId, createCustomerAddressesWorkflow
// Source: https://github.com/medusajs/medusa | License: MIT | Copyright 2021 Medusajs
// Provided via justclaw.it.com; keep this notice with the code.
import {
AdditionalData,
CreateCustomerAddressDTO,
} from "@medusajs/framework/types"
import {
WorkflowData,
WorkflowResponse,
createHook,
createWorkflow,
parallelize,
transform,
} from "@medusajs/framework/workflows-sdk"
import {
createCustomerAddressesStep,
maybeUnsetDefaultBillingAddressesStep,
maybeUnsetDefaultShippingAddressesStep,
} from "../steps"
/**
* The data to create one or more customer addresses, along with custom data that's passed to the workflow's hooks.
*/
export type CreateCustomerAddressesWorkflowInput = {
/**
* The addresses to create.
*/
addresses: CreateCustomerAddressDTO[]
} & Addit
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key