Skip to content

Commit

Permalink
Merge pull request #35 from sharetribe/stock-endpoints
Browse files Browse the repository at this point in the history
Add stock API endpoints
  • Loading branch information
bladealslayer authored Sep 20, 2021
2 parents d3bc38e + d78952f commit e0e6cd2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
- Update Lodash to 4.17.21 [#131](https://github.com/sharetribe/flex-sdk-js/pull/131)
- Update development dependencies with security vulnerabilities (multiple PRs)

### Added

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

## v1.4.0 - 2020-12-15

### Added
Expand Down
28 changes: 28 additions & 0 deletions src/integration_sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,34 @@ const endpointDefinitions = [
method: 'get',
interceptors: [new TransitResponse()],
},
{
apiName: 'integration_api',
path: 'stock_adjustments/query',
internal: false,
method: 'get',
interceptors: [new TransitResponse()],
},
{
apiName: 'integration_api',
path: 'stock_adjustments/create',
internal: false,
method: 'post',
interceptors: [new TransitResponse(), new TransitRequest()],
},
{
apiName: 'integration_api',
path: 'stock/compare_and_set',
internal: false,
method: 'post',
interceptors: [new TransitResponse(), new TransitRequest()],
},
{
apiName: 'integration_api',
path: 'stock_reservations/show',
internal: false,
method: 'get',
interceptors: [new TransitResponse()],
},
{ apiName: 'auth', path: 'token', internal: true, method: 'post', interceptors: [] },
{ apiName: 'auth', path: 'revoke', internal: true, method: 'post', interceptors: [] },

Expand Down

0 comments on commit e0e6cd2

Please sign in to comment.