chore: change 2.11.4 to 2.12.0 in TSDocs (#14174)
This commit is contained in:
@@ -5,7 +5,7 @@ import { StepResponse, createStep } from "@medusajs/framework/workflows-sdk"
|
|||||||
/**
|
/**
|
||||||
* This step lists order change actions filtered by action type.
|
* This step lists order change actions filtered by action type.
|
||||||
*
|
*
|
||||||
* @since v2.11.4
|
* @since v2.12.0
|
||||||
*/
|
*/
|
||||||
export const listOrderChangeActionsByTypeStep = createStep(
|
export const listOrderChangeActionsByTypeStep = createStep(
|
||||||
"list-order-change-actions-by-type",
|
"list-order-change-actions-by-type",
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ export const computeAdjustmentsForPreviewWorkflowId =
|
|||||||
* You can use this workflow within your customizations or your own custom workflows, allowing you to compute adjustments
|
* You can use this workflow within your customizations or your own custom workflows, allowing you to compute adjustments
|
||||||
* in your custom flows.
|
* in your custom flows.
|
||||||
*
|
*
|
||||||
* @since v2.11.4
|
* @since v2.12.0
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* const { result } = await computeAdjustmentsForPreviewWorkflow(container)
|
* const { result } = await computeAdjustmentsForPreviewWorkflow(container)
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export type OnCarryPromotionsFlagSetWorkflowInput = {
|
|||||||
*
|
*
|
||||||
* :::
|
* :::
|
||||||
*
|
*
|
||||||
* @since v2.11.4
|
* @since v2.12.0
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* const data = validateCarryPromotionsFlagStep({
|
* const data = validateCarryPromotionsFlagStep({
|
||||||
@@ -150,7 +150,7 @@ export const onCarryPromotionsFlagSetId = "on-carry-promotions-flag-set"
|
|||||||
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
||||||
* set the carry over promotions flag for an order change in your custom flows.
|
* set the carry over promotions flag for an order change in your custom flows.
|
||||||
*
|
*
|
||||||
* @since v2.11.4
|
* @since v2.12.0
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* const { result } = await onCarryPromotionsFlagSet(container)
|
* const { result } = await onCarryPromotionsFlagSet(container)
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export const updateOrderChangeWorkflowId = "update-order-change-workflow"
|
|||||||
* You can use this workflow within your customizations or your own custom workflows, allowing you to wrap custom logic around
|
* You can use this workflow within your customizations or your own custom workflows, allowing you to wrap custom logic around
|
||||||
* updating an order change and conditionally handling promotion carry-over.
|
* updating an order change and conditionally handling promotion carry-over.
|
||||||
*
|
*
|
||||||
* @since v2.11.4
|
* @since v2.12.0
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* const { result } = await updateOrderChangeWorkflow(container)
|
* const { result } = await updateOrderChangeWorkflow(container)
|
||||||
|
|||||||
@@ -639,7 +639,7 @@ export class Order {
|
|||||||
* [Update Order Change](https://docs.medusajs.com/api/admin#order-changes_postorder-changesid)
|
* [Update Order Change](https://docs.medusajs.com/api/admin#order-changes_postorder-changesid)
|
||||||
* API route.
|
* API route.
|
||||||
*
|
*
|
||||||
* @since v2.11.4
|
* @since v2.12.0
|
||||||
*
|
*
|
||||||
* @param id - The order change's ID.
|
* @param id - The order change's ID.
|
||||||
* @param body - The update details.
|
* @param body - The update details.
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
import { ContainerRegistrationKeys } from "@medusajs/framework/utils"
|
import { ContainerRegistrationKeys } from "@medusajs/framework/utils"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since v2.11.4
|
* @since v2.12.0
|
||||||
*/
|
*/
|
||||||
export const POST = async (
|
export const POST = async (
|
||||||
req: AuthenticatedMedusaRequest<
|
req: AuthenticatedMedusaRequest<
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ const _OrderChange = model
|
|||||||
canceled_by: model.text().nullable(),
|
canceled_by: model.text().nullable(),
|
||||||
canceled_at: model.dateTime().nullable(),
|
canceled_at: model.dateTime().nullable(),
|
||||||
/**
|
/**
|
||||||
* @since v2.11.4
|
* @since v2.12.0
|
||||||
*/
|
*/
|
||||||
carry_over_promotions: model.boolean().nullable(),
|
carry_over_promotions: model.boolean().nullable(),
|
||||||
order: model.belongsTo<() => typeof Order>(() => Order, {
|
order: model.belongsTo<() => typeof Order>(() => Order, {
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ const Promotion = model
|
|||||||
is_automatic: model.boolean().default(false),
|
is_automatic: model.boolean().default(false),
|
||||||
is_tax_inclusive: model.boolean().default(false),
|
is_tax_inclusive: model.boolean().default(false),
|
||||||
/**
|
/**
|
||||||
* @since v2.11.4
|
* @since v2.12.0
|
||||||
*/
|
*/
|
||||||
limit: model.number().nullable(),
|
limit: model.number().nullable(),
|
||||||
/**
|
/**
|
||||||
* @since v2.11.4
|
* @since v2.12.0
|
||||||
*/
|
*/
|
||||||
used: model.number().default(0),
|
used: model.number().default(0),
|
||||||
type: model.enum(PromotionUtils.PromotionType).index("IDX_promotion_type"),
|
type: model.enum(PromotionUtils.PromotionType).index("IDX_promotion_type"),
|
||||||
@@ -37,7 +37,7 @@ const Promotion = model
|
|||||||
mappedBy: "promotions",
|
mappedBy: "promotions",
|
||||||
}),
|
}),
|
||||||
/**
|
/**
|
||||||
* @since v2.11.4
|
* @since v2.12.0
|
||||||
*/
|
*/
|
||||||
metadata: model.json().nullable(),
|
metadata: model.json().nullable(),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user