sencrop-js-api-client
Advanced tools
Comparing version 1.22.0 to 2.0.0
@@ -0,1 +1,20 @@ | ||
# [2.0.0](https://github.com/sencrop/sencrop-js-api-client/compare/v1.22.0...v2.0.0) (2019-07-12) | ||
### Bug Fixes | ||
* **test:** fix tests ([9570061](https://github.com/sencrop/sencrop-js-api-client/commit/9570061)) | ||
### Features | ||
* **multi_organisations:** add new endpoint for multi-organisations ([25e42e8](https://github.com/sencrop/sencrop-js-api-client/commit/25e42e8)) | ||
### BREAKING CHANGES | ||
* **multi_organisations:** user endpoint are replaced by organisation/user endpoints | ||
# [1.22.0](https://github.com/sencrop/sencrop-js-api-client/compare/v1.21.0...v1.22.0) (2019-03-19) | ||
@@ -2,0 +21,0 @@ |
@@ -96,3 +96,3 @@ 'use strict'; | ||
encodedQueryParams: true | ||
}).put('/v1/users/902/devices/1B28C5', { | ||
}).put('/v1/organisations/1/devices/1B28C5', { | ||
contents: { | ||
@@ -117,3 +117,4 @@ serial: '1B28C5', | ||
}, ['content-type', 'application/json', 'Transaction-Id', '13', 'Date', 'Thu, 27 Jul 2017 14:23:57 GMT', 'Connection', 'close', 'Transfer-Encoding', 'chunked']); | ||
return API.putUserDevice({ | ||
return API.putOrganisationDevice({ | ||
organisationId: 1, | ||
userId: 902, | ||
@@ -120,0 +121,0 @@ deviceId: '1B28C5', |
{ | ||
"name": "sencrop-js-api-client", | ||
"version": "1.22.0", | ||
"version": "2.0.0", | ||
"description": "The Sencrop JavaScript API client", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -141,3 +141,3 @@ 'use strict'; | ||
}) | ||
.put('/v1/users/902/devices/1B28C5', { | ||
.put('/v1/organisations/1/devices/1B28C5', { | ||
contents: { | ||
@@ -179,3 +179,4 @@ serial: '1B28C5', | ||
return API.putUserDevice({ | ||
return API.putOrganisationDevice({ | ||
organisationId: 1, | ||
userId: 902, | ||
@@ -182,0 +183,0 @@ deviceId: '1B28C5', |
@@ -175,3 +175,4 @@ 'use strict'; | ||
it('should work', done => { | ||
const promise = API.putUserDevice({ | ||
const promise = API.putOrganisationDevice({ | ||
organisationId: 1, | ||
userId: 902, | ||
@@ -178,0 +179,0 @@ deviceId: '1B28C5', |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2368360
62627
1