fix(medusa): Clean response data usage for admin and store fields/expand (#3323)

* fix(medusa): Clean response data usage for admin and store fields/expand

* cleanup

* Create mighty-ads-fold.md

* fix integration

* fix integration

* refactor transform query and cleanup

* fix missing re naming

* Update packages/medusa/src/api/middlewares/transform-query.ts

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
Adrien de Peretti
2023-02-28 09:48:08 +01:00
committed by GitHub
parent 0a02b70e59
commit cbbf3ca054
22 changed files with 287 additions and 96 deletions
@@ -177,6 +177,17 @@ describe("/store/carts", () => {
"customer",
"payments",
"region",
// default
"shipping_total",
"discount_total",
"tax_total",
"refunded_total",
"total",
"subtotal",
"paid_total",
"refundable_amount",
"gift_card_total",
"gift_card_tax_total",
])
})
@@ -197,6 +208,17 @@ describe("/store/carts", () => {
"customer",
"payments",
"region",
// default
"shipping_total",
"discount_total",
"tax_total",
"refunded_total",
"total",
"subtotal",
"paid_total",
"refundable_amount",
"gift_card_total",
"gift_card_tax_total",
])
})
@@ -212,6 +234,17 @@ describe("/store/carts", () => {
"status",
// selected relations
"billing_address",
// default
"shipping_total",
"discount_total",
"tax_total",
"refunded_total",
"total",
"subtotal",
"paid_total",
"refundable_amount",
"gift_card_total",
"gift_card_tax_total",
])
})