Skip to content

Commit 23875a0

Browse files
authored
Remove the preferences endpoints (#54)
* Remove preferences * Update changelog * Clean-up
1 parent b8c6351 commit 23875a0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+46
-426
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.16.0] - 2021-12-07
9+
10+
### Removed
11+
12+
- Removes the `preferences` endpoints (deprecated)
13+
814
## [1.15.2] - 2021-11-08
915

1016
### Added

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@patch-technology/patch",
3-
"version": "1.15.2",
3+
"version": "1.16.0",
44
"description": "Node.js wrapper for the Patch API",
55
"license": "MIT",
66
"repository": {

src/ApiClient.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Patch API V1
33
* The core API used to integrate with Patch's service
44
*
5-
* Contact: developers@usepatch.com
5+
* Contact: engineering@usepatch.com
66
*/
77

88
import superagent from 'superagent';
@@ -16,7 +16,7 @@ class ApiClient {
1616
};
1717

1818
this.defaultHeaders = {
19-
'User-Agent': 'patch-node/1.15.2'
19+
'User-Agent': 'patch-node/1.16.0'
2020
};
2121

2222
/**
@@ -457,13 +457,13 @@ class ApiClient {
457457
hostSettings() {
458458
return [
459459
{
460-
url: 'https://{defaultHost}',
460+
url: '{defaultUrl}',
461461
description: 'No description provided',
462462

463463
variables: {
464-
defaultHost: {
464+
defaultUrl: {
465465
description: 'No description provided',
466-
default_value: 'api.patch.io',
466+
default_value: 'https://api.patch.io',
467467
enum_values: []
468468
}
469469
}

src/api/EstimatesApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Patch API V1
33
* The core API used to integrate with Patch's service
44
*
5-
* Contact: developers@usepatch.com
5+
* Contact: engineering@usepatch.com
66
*/
77

88
import ApiClient from '../ApiClient';

src/api/OrdersApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Patch API V1
33
* The core API used to integrate with Patch's service
44
*
5-
* Contact: developers@usepatch.com
5+
* Contact: engineering@usepatch.com
66
*/
77

88
import ApiClient from '../ApiClient';

src/api/PreferencesApi.js

Lines changed: 0 additions & 183 deletions
This file was deleted.

src/api/ProjectsApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Patch API V1
33
* The core API used to integrate with Patch's service
44
*
5-
* Contact: developers@usepatch.com
5+
* Contact: engineering@usepatch.com
66
*/
77

88
import ApiClient from '../ApiClient';

src/api/TechnologyTypesApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Patch API V1
33
* The core API used to integrate with Patch's service
44
*
5-
* Contact: developers@usepatch.com
5+
* Contact: engineering@usepatch.com
66
*/
77

88
import ApiClient from '../ApiClient';

src/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
* Patch API V1
33
* The core API used to integrate with Patch's service
44
*
5-
* Contact: developers@usepatch.com
5+
* Contact: engineering@usepatch.com
66
*/
77

88
import ApiClient from './ApiClient';
99
import EstimatesApi from './api/EstimatesApi';
1010
import OrdersApi from './api/OrdersApi';
11-
import PreferencesApi from './api/PreferencesApi';
1211
import ProjectsApi from './api/ProjectsApi';
1312
import TechnologyTypesApi from './api/TechnologyTypesApi';
1413

@@ -22,8 +21,6 @@ export default function Patch(accessToken) {
2221

2322
this.orders = new OrdersApi(this.client);
2423

25-
this.preferences = new PreferencesApi(this.client);
26-
2724
this.projects = new ProjectsApi(this.client);
2825

2926
this.technologytypes = new TechnologyTypesApi(this.client);

src/model/Allocation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Patch API V1
33
* The core API used to integrate with Patch's service
44
*
5-
* Contact: developers@usepatch.com
5+
* Contact: engineering@usepatch.com
66
*/
77

88
import ApiClient from '../ApiClient';

src/model/CreateBitcoinEstimateRequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Patch API V1
33
* The core API used to integrate with Patch's service
44
*
5-
* Contact: developers@usepatch.com
5+
* Contact: engineering@usepatch.com
66
*/
77

88
import ApiClient from '../ApiClient';

src/model/CreateEthereumEstimateRequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Patch API V1
33
* The core API used to integrate with Patch's service
44
*
5-
* Contact: developers@usepatch.com
5+
* Contact: engineering@usepatch.com
66
*/
77

88
import ApiClient from '../ApiClient';

src/model/CreateFlightEstimateRequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Patch API V1
33
* The core API used to integrate with Patch's service
44
*
5-
* Contact: developers@usepatch.com
5+
* Contact: engineering@usepatch.com
66
*/
77

88
import ApiClient from '../ApiClient';

src/model/CreateMassEstimateRequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Patch API V1
33
* The core API used to integrate with Patch's service
44
*
5-
* Contact: developers@usepatch.com
5+
* Contact: engineering@usepatch.com
66
*/
77

88
import ApiClient from '../ApiClient';

src/model/CreateOrderRequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Patch API V1
33
* The core API used to integrate with Patch's service
44
*
5-
* Contact: developers@usepatch.com
5+
* Contact: engineering@usepatch.com
66
*/
77

88
import ApiClient from '../ApiClient';

src/model/CreateShippingEstimateRequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Patch API V1
33
* The core API used to integrate with Patch's service
44
*
5-
* Contact: developers@usepatch.com
5+
* Contact: engineering@usepatch.com
66
*/
77

88
import ApiClient from '../ApiClient';

src/model/CreateSuccessResponse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Patch API V1
33
* The core API used to integrate with Patch's service
44
*
5-
* Contact: developers@usepatch.com
5+
* Contact: engineering@usepatch.com
66
*/
77

88
import ApiClient from '../ApiClient';

src/model/CreateVehicleEstimateRequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Patch API V1
33
* The core API used to integrate with Patch's service
44
*
5-
* Contact: developers@usepatch.com
5+
* Contact: engineering@usepatch.com
66
*/
77

88
import ApiClient from '../ApiClient';

0 commit comments

Comments
 (0)