chore(core-flows): general fixes to core-flows TSDocs (#11046)
This commit is contained in:
1 parent
d089852ce3
commit
e4487341b6
13 files changed
+83
-4
No files matched your search
+3
@@ -32,6 +32,9 @@ export const linkSalesChannelsToApiKeyWorkflowId =
|
|||||||
* remove: ["sc_321"]
|
* remove: ["sc_321"]
|
||||||
* }
|
* }
|
||||||
* })
|
* })
|
||||||
|
*
|
||||||
|
* @summary
|
||||||
|
* Manage the sales channels of a publishable API key.
|
||||||
*/
|
*/
|
||||||
export const linkSalesChannelsToApiKeyWorkflow = createWorkflow(
|
export const linkSalesChannelsToApiKeyWorkflow = createWorkflow(
|
||||||
linkSalesChannelsToApiKeyWorkflowId,
|
linkSalesChannelsToApiKeyWorkflowId,
|
||||||
|
|||||||
@@ -57,6 +57,10 @@ export const createReturnFulfillmentWorkflowId =
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* })
|
* })
|
||||||
|
*
|
||||||
|
* @summary
|
||||||
|
*
|
||||||
|
* Create a fulfillment for a return.
|
||||||
*/
|
*/
|
||||||
export const createReturnFulfillmentWorkflow = createWorkflow(
|
export const createReturnFulfillmentWorkflow = createWorkflow(
|
||||||
createReturnFulfillmentWorkflowId,
|
createReturnFulfillmentWorkflowId,
|
||||||
|
|||||||
@@ -128,6 +128,10 @@ export const removeItemClaimActionWorkflowId = "remove-item-claim-action"
|
|||||||
* action_id: "orchact_123",
|
* action_id: "orchact_123",
|
||||||
* }
|
* }
|
||||||
* })
|
* })
|
||||||
|
*
|
||||||
|
* @summary
|
||||||
|
*
|
||||||
|
* Remove order items from a claim.
|
||||||
*/
|
*/
|
||||||
export const removeItemClaimActionWorkflow = createWorkflow(
|
export const removeItemClaimActionWorkflow = createWorkflow(
|
||||||
removeItemClaimActionWorkflowId,
|
removeItemClaimActionWorkflowId,
|
||||||
|
|||||||
+4
@@ -49,6 +49,10 @@ export const createOrUpdateOrderPaymentCollectionWorkflowId =
|
|||||||
* amount: 20
|
* amount: 20
|
||||||
* }
|
* }
|
||||||
* })
|
* })
|
||||||
|
*
|
||||||
|
* @summary
|
||||||
|
*
|
||||||
|
* Create or update payment collection for an order.
|
||||||
*/
|
*/
|
||||||
export const createOrUpdateOrderPaymentCollectionWorkflow = createWorkflow(
|
export const createOrUpdateOrderPaymentCollectionWorkflow = createWorkflow(
|
||||||
createOrUpdateOrderPaymentCollectionWorkflowId,
|
createOrUpdateOrderPaymentCollectionWorkflowId,
|
||||||
|
|||||||
@@ -228,7 +228,6 @@ export const createOrderWorkflow = createWorkflow(
|
|||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated Instead use the singular name `createOrderWorkflow`.
|
||||||
* Instead use the singular name "createOrderWorkflow"
|
|
||||||
*/
|
*/
|
||||||
export const createOrdersWorkflow = createOrderWorkflow
|
export const createOrdersWorkflow = createOrderWorkflow
|
||||||
@@ -105,6 +105,10 @@ export const cancelReturnWorkflowId = "cancel-return"
|
|||||||
* return_id: "return_123",
|
* return_id: "return_123",
|
||||||
* }
|
* }
|
||||||
* })
|
* })
|
||||||
|
*
|
||||||
|
* @summary
|
||||||
|
*
|
||||||
|
* Cancel a return.
|
||||||
*/
|
*/
|
||||||
export const cancelReturnWorkflow = createWorkflow(
|
export const cancelReturnWorkflow = createWorkflow(
|
||||||
cancelReturnWorkflowId,
|
cancelReturnWorkflowId,
|
||||||
|
|||||||
@@ -105,7 +105,25 @@ export type RefundPaymentsWorkflowInput = {
|
|||||||
|
|
||||||
export const refundPaymentsWorkflowId = "refund-payments-workflow"
|
export const refundPaymentsWorkflowId = "refund-payments-workflow"
|
||||||
/**
|
/**
|
||||||
* This workflow refunds a payment.
|
* This workflow refunds payments.
|
||||||
|
*
|
||||||
|
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
||||||
|
* refund payments in your custom flow.
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* const { result } = await refundPaymentsWorkflow(container)
|
||||||
|
* .run({
|
||||||
|
* input: [
|
||||||
|
* {
|
||||||
|
* payment_id: "pay_123",
|
||||||
|
* amount: 10,
|
||||||
|
* }
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* @summary
|
||||||
|
*
|
||||||
|
* Refund one or more payments.
|
||||||
*/
|
*/
|
||||||
export const refundPaymentsWorkflow = createWorkflow(
|
export const refundPaymentsWorkflow = createWorkflow(
|
||||||
refundPaymentsWorkflowId,
|
refundPaymentsWorkflowId,
|
||||||
|
|||||||
@@ -26,6 +26,10 @@ export const deletePriceListsWorkflowId = "delete-price-lists"
|
|||||||
* ids: ["plist_123"]
|
* ids: ["plist_123"]
|
||||||
* }
|
* }
|
||||||
* })
|
* })
|
||||||
|
*
|
||||||
|
* @summary
|
||||||
|
*
|
||||||
|
* Delete one or more price lists.
|
||||||
*/
|
*/
|
||||||
export const deletePriceListsWorkflow = createWorkflow(
|
export const deletePriceListsWorkflow = createWorkflow(
|
||||||
deletePriceListsWorkflowId,
|
deletePriceListsWorkflowId,
|
||||||
|
|||||||
@@ -65,6 +65,10 @@ export const batchProductVariantsWorkflowId = "batch-product-variants"
|
|||||||
* delete: ["variant_321"]
|
* delete: ["variant_321"]
|
||||||
* }
|
* }
|
||||||
* })
|
* })
|
||||||
|
*
|
||||||
|
* @summary
|
||||||
|
*
|
||||||
|
* Create, update, and delete product variants.
|
||||||
*/
|
*/
|
||||||
export const batchProductVariantsWorkflow = createWorkflow(
|
export const batchProductVariantsWorkflow = createWorkflow(
|
||||||
batchProductVariantsWorkflowId,
|
batchProductVariantsWorkflowId,
|
||||||
|
|||||||
@@ -35,6 +35,10 @@ export const createPromotionRulesWorkflowId = "create-promotion-rules-workflow"
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* })
|
* })
|
||||||
|
*
|
||||||
|
* @summary
|
||||||
|
*
|
||||||
|
* Create one or more promotion rules.
|
||||||
*/
|
*/
|
||||||
export const createPromotionRulesWorkflow = createWorkflow(
|
export const createPromotionRulesWorkflow = createWorkflow(
|
||||||
createPromotionRulesWorkflowId,
|
createPromotionRulesWorkflowId,
|
||||||
|
|||||||
@@ -33,6 +33,10 @@ export const createRegionsWorkflowId = "create-regions"
|
|||||||
* ]
|
* ]
|
||||||
* }
|
* }
|
||||||
* })
|
* })
|
||||||
|
*
|
||||||
|
* @summary
|
||||||
|
*
|
||||||
|
* Create one or more regions.
|
||||||
*/
|
*/
|
||||||
export const createRegionsWorkflow = createWorkflow(
|
export const createRegionsWorkflow = createWorkflow(
|
||||||
createRegionsWorkflowId,
|
createRegionsWorkflowId,
|
||||||
|
|||||||
+24
-1
@@ -2,12 +2,35 @@ import { WorkflowData, createWorkflow } from "@medusajs/framework/workflows-sdk"
|
|||||||
|
|
||||||
import { deleteReservationsByLineItemsStep } from "../steps"
|
import { deleteReservationsByLineItemsStep } from "../steps"
|
||||||
|
|
||||||
export type DeleteReservationByLineItemsWorkflowInput = { ids: string[] }
|
/**
|
||||||
|
* The data to delete reservations by their associated line items.
|
||||||
|
*/
|
||||||
|
export type DeleteReservationByLineItemsWorkflowInput = {
|
||||||
|
/**
|
||||||
|
* The IDs of the line items to delete reservations for.
|
||||||
|
*/
|
||||||
|
ids: string[]
|
||||||
|
}
|
||||||
|
|
||||||
export const deleteReservationsByLineItemsWorkflowId =
|
export const deleteReservationsByLineItemsWorkflowId =
|
||||||
"delete-reservations-by-line-items"
|
"delete-reservations-by-line-items"
|
||||||
/**
|
/**
|
||||||
* This workflow deletes reservations by their associated line items.
|
* This workflow deletes reservations by their associated line items.
|
||||||
|
*
|
||||||
|
* You can use this workflow within your own customizations or custom workflows, allowing you
|
||||||
|
* to delete reservations by their associated line items within your custom flows.
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* const { result } = await deleteReservationsByLineItemsWorkflow(container)
|
||||||
|
* .run({
|
||||||
|
* input: {
|
||||||
|
* ids: ["orli_123"]
|
||||||
|
* }
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* @summary
|
||||||
|
*
|
||||||
|
* Delete reservations by their associated line items.
|
||||||
*/
|
*/
|
||||||
export const deleteReservationsByLineItemsWorkflow = createWorkflow(
|
export const deleteReservationsByLineItemsWorkflow = createWorkflow(
|
||||||
deleteReservationsByLineItemsWorkflowId,
|
deleteReservationsByLineItemsWorkflowId,
|
||||||
|
|||||||
@@ -33,6 +33,10 @@ export const deleteStoresWorkflowId = "delete-stores"
|
|||||||
* ids: ["store_123"]
|
* ids: ["store_123"]
|
||||||
* }
|
* }
|
||||||
* })
|
* })
|
||||||
|
*
|
||||||
|
* @summary
|
||||||
|
*
|
||||||
|
* Delete one or more stores.
|
||||||
*/
|
*/
|
||||||
export const deleteStoresWorkflow = createWorkflow(
|
export const deleteStoresWorkflow = createWorkflow(
|
||||||
deleteStoresWorkflowId,
|
deleteStoresWorkflowId,
|
||||||
|
|||||||
Reference in new issue
Block a user