From a1bedb3706e81b1a68eff44c600de74c9b04abf9 Mon Sep 17 00:00:00 2001 From: Boyan Tabakov Date: Thu, 22 Jul 2021 10:16:39 +0300 Subject: [PATCH 1/2] Add stock API endpoints --- src/sdk.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/sdk.js b/src/sdk.js index 7da8fbb..844ddbb 100644 --- a/src/sdk.js +++ b/src/sdk.js @@ -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', From 1a7d97dc34f768de1d4d93ae42b92afe76e134ed Mon Sep 17 00:00:00 2001 From: Mikko Koski Date: Thu, 16 Sep 2021 14:47:24 +0300 Subject: [PATCH 2/2] CHANGELOG --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2541461..be91944 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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