feat(core-flows, medusa): add update stock location endpoint to api-v2 (#6800)

* initial create

* add changeset

* redo changes for stock locatino module'

* initial update

* add changeset

* move integration tests

* update update method

* fix integration tests

* Update packages/stock-location-next/src/services/stock-location.ts

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>

* update service

* initial fixes

* pr feedback

* update types

* expand revert clause for update

* update versioning

---------

Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
Philip Korsholm
2024-03-27 10:31:17 +01:00
committed by GitHub
co-authored by Oli Juhl Riqwan Thamir
parent 0b23e7efb8
commit 4cf71af07d
13 changed files with 378 additions and 27 deletions
@@ -107,7 +107,7 @@ moduleIntegrationTestRunner({
id: stockLocation.id,
name: "updated location",
}
const location = await service.update(data)
const location = await service.upsert(data)
expect(location).toEqual(expect.objectContaining(data))
})
@@ -122,7 +122,7 @@ moduleIntegrationTestRunner({
},
}
const location = await service.update(data)
const location = await service.upsert(data)
expect(location).toEqual(
expect.objectContaining({