From c31908550af4511c7a88925a9cda5df8a5c16efc Mon Sep 17 00:00:00 2001 From: Boyan Tabakov Date: Wed, 21 Nov 2018 14:35:05 +0200 Subject: [PATCH 1/2] Add new API endpoints --- src/sdk.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/sdk.js b/src/sdk.js index f855a40b..fee61448 100644 --- a/src/sdk.js +++ b/src/sdk.js @@ -287,6 +287,27 @@ const endpointDefinitions = [ method: 'post', interceptors: [new TransitResponse(), new TransitRequest()], }, + { + apiName: 'api', + path: 'availability_exceptions/create', + internal: false, + method: 'post', + interceptors: [new TransitResponse(), new TransitRequest()], + }, + { + apiName: 'api', + path: 'availability_exceptions/delete', + internal: false, + method: 'post', + interceptors: [new TransitResponse(), new TransitRequest()], + }, + { + apiName: 'api', + path: 'availability_exceptions/query', + internal: false, + method: 'get', + interceptors: [new TransitResponse()], + }, { apiName: 'api', path: 'images/upload', @@ -343,6 +364,13 @@ const endpointDefinitions = [ method: 'get', interceptors: [new TransitResponse()], }, + { + apiName: 'api', + path: 'bookings/query', + internal: false, + method: 'get', + interceptors: [new TransitResponse()], + }, { apiName: 'api', path: 'messages/query', From 3aecaa8e49465e91c4321b144a9059a3abedb81f Mon Sep 17 00:00:00 2001 From: Boyan Tabakov Date: Wed, 21 Nov 2018 14:36:10 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9b106a9..1f3a2419 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] - xxxx-xx-xx +### Added + +- New endpoints [#89](https://github.com/sharetribe/flex-sdk-js/pull/89) + * `sdk.availabilityExceptions.create(/* ... */)` + * `sdk.availabilityExceptions.delete(/* ... */)` + * `sdk.availabilityExceptions.query(/* ... */)` + * `sdk.bookings.query(/* ... */)` ### Changed