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

This commit is contained in:
Stevche Radevski authored and GitHub committed 2024-04-18 06:51:43 +00:00
1 parent 2a835cae13
commit 44829f296a
35 files changed
+708 -1035

No files matched your search

@@ -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),
})
})