breaking: move shared HTTP utils to the framework (#9402)
Fixes: FRMW-2728, FRMW-2729 After this PR gets merged the following middleware will be exported from the `@medusajs/framework/http` import path. - applyParamsAsFilters - clearFiltersByKey - applyDefaultFilters - setContext - getQueryConfig - httpCompression - maybeApplyLinkFilter - refetchEntities - unlessPath - validateBody - validateQuery Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com>
This commit is contained in:
@@ -4,4 +4,3 @@ export * from "./link-sales-channels-to-publishable-key"
|
||||
export * from "./revoke-api-keys"
|
||||
export * from "./update-api-keys"
|
||||
export * from "./validate-sales-channel-exists"
|
||||
|
||||
|
||||
@@ -3,4 +3,3 @@ export * from "./delete-api-keys"
|
||||
export * from "./link-sales-channels-to-publishable-key"
|
||||
export * from "./revoke-api-keys"
|
||||
export * from "./update-api-keys"
|
||||
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
export * from "./steps"
|
||||
export * from "./workflows"
|
||||
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
export * from "./steps"
|
||||
export * from "./workflows"
|
||||
|
||||
|
||||
@@ -28,4 +28,3 @@ export * from "./update-line-items"
|
||||
export * from "./validate-cart-payments"
|
||||
export * from "./validate-cart-shipping-options"
|
||||
export * from "./validate-variant-prices"
|
||||
|
||||
|
||||
@@ -83,7 +83,8 @@ export const updateTaxLinesWorkflow = createWorkflow(
|
||||
transform({ input, cart }, (data) => ({
|
||||
cart: data.cart,
|
||||
items: data.input.items || data.cart.items,
|
||||
shipping_methods: data.input.shipping_methods || data.cart.shipping_methods,
|
||||
shipping_methods:
|
||||
data.input.shipping_methods || data.cart.shipping_methods,
|
||||
force_tax_calculation: data.input.force_tax_calculation,
|
||||
}))
|
||||
)
|
||||
|
||||
@@ -6,4 +6,3 @@ export * from "./delete-customers"
|
||||
export * from "./remove-customer-account"
|
||||
export * from "./update-addresses"
|
||||
export * from "./update-customers"
|
||||
|
||||
|
||||
@@ -15,4 +15,3 @@ export * from "./update-fulfillment"
|
||||
export * from "./update-shipping-profiles"
|
||||
export * from "./upsert-shipping-options"
|
||||
export * from "./validate-shipment"
|
||||
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
export * from "./capture-payment"
|
||||
export * from "./refund-payment"
|
||||
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
export * from "./steps"
|
||||
export * from "./workflows"
|
||||
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
export * from "./steps"
|
||||
export * from "./workflows"
|
||||
|
||||
|
||||
@@ -3,4 +3,3 @@ export * from "./create-users"
|
||||
export * from "./delete-users"
|
||||
export * from "./remove-user-account"
|
||||
export * from "./update-users"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user