Skip to content

Commit

Permalink
Merge pull request #142 from sharetribe/stock-api-endpoints
Browse files Browse the repository at this point in the history
Stock api endpoints
  • Loading branch information
bladealslayer authored Sep 20, 2021
2 parents dddabdc + 1a7d97d commit 8e59382
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased] - xxxx-xx-xx

### Added

- New endpoints [#133](https://github.com/sharetribe/flex-sdk-js/pull/133)
- `sdk.stockAdjustments.query(/* ... */)`
- `sdk.stockAdjustments.create(/* ... */)`
- `sdk.stock.compareAndSet(/* ... */)`

### Changed

- Extend cookie expiration from 30 days to 180 days. This matches
Expand Down
21 changes: 21 additions & 0 deletions src/sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,27 @@ const endpointDefinitions = [
method: 'post',
interceptors: [new TransitResponse(), new TransitRequest()],
},
{
apiName: 'api',
path: 'stock_adjustments/query',
internal: false,
method: 'get',
interceptors: [new TransitResponse()],
},
{
apiName: 'api',
path: 'stock_adjustments/create',
internal: false,
method: 'post',
interceptors: [new TransitResponse(), new TransitRequest()],
},
{
apiName: 'api',
path: 'stock/compare_and_set',
internal: false,
method: 'post',
interceptors: [new TransitResponse(), new TransitRequest()],
},
{
apiName: 'auth',
path: 'token',
Expand Down

0 comments on commit 8e59382

Please sign in to comment.