chore: Move several more endpoints to use zod for validation, unify APIs (#7086)

This commit is contained in:
Stevche Radevski
2024-04-18 06:51:43 +00:00
committed by GitHub
parent 2a835cae13
commit 44829f296a
35 changed files with 708 additions and 1035 deletions
@@ -334,14 +334,14 @@ medusaIntegrationTestRunner({
it("should delete an inventory location level and create a new one", async () => {
const result = await api.post(
`/admin/inventory-items/${inventoryItem.id}/location-levels/batch/combi`,
`/admin/inventory-items/${inventoryItem.id}/location-levels/op/batch`,
{
creates: [
create: [
{
location_id: "location_2",
},
],
deletes: [locationId],
delete: [locationId],
},
adminHeaders
)
@@ -386,6 +386,7 @@ medusaIntegrationTestRunner({
id: expect.any(String),
object: "inventory-level",
deleted: true,
parent: expect.any(Object),
})
})