feat: Add HTTP endpoints and workflows for price preference management (#7960)

REF CORE-2376

Remaining pieces are adding UI to manage the flag, showing the flag in price editor, plugging it in cart calculations, and https://github.com/medusajs/medusa/pull/7827
This commit is contained in:
Stevche Radevski
2024-07-05 10:47:01 +02:00
committed by GitHub
parent 1162b1625d
commit 3e86cb6ac3
27 changed files with 702 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
import { getOrdersListlWorkflow } from "@medusajs/core-flows"
import { getOrdersListWorkflow } from "@medusajs/core-flows"
import { OrderDTO } from "@medusajs/types"
import {
AuthenticatedMedusaRequest,
@@ -17,7 +17,7 @@ export const GET = async (
...req.remoteQueryConfig.pagination,
}
const workflow = getOrdersListlWorkflow(req.scope)
const workflow = getOrdersListWorkflow(req.scope)
const { result } = await workflow.run({
input: {
fields: req.remoteQueryConfig.fields,