Skip to content

Commit

Permalink
Remove the preferences endpoints (#54)
Browse files Browse the repository at this point in the history
* Remove preferences

* Update changelog

* Clean-up
  • Loading branch information
pcothenet authored Dec 8, 2021
1 parent b8c6351 commit 23875a0
Show file tree
Hide file tree
Showing 41 changed files with 46 additions and 426 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.16.0] - 2021-12-07

### Removed

- Removes the `preferences` endpoints (deprecated)

## [1.15.2] - 2021-11-08

### Added
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patch-technology/patch",
"version": "1.15.2",
"version": "1.16.0",
"description": "Node.js wrapper for the Patch API",
"license": "MIT",
"repository": {
Expand Down
10 changes: 5 additions & 5 deletions src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Patch API V1
* The core API used to integrate with Patch's service
*
* Contact: developers@usepatch.com
* Contact: engineering@usepatch.com
*/

import superagent from 'superagent';
Expand All @@ -16,7 +16,7 @@ class ApiClient {
};

this.defaultHeaders = {
'User-Agent': 'patch-node/1.15.2'
'User-Agent': 'patch-node/1.16.0'
};

/**
Expand Down Expand Up @@ -457,13 +457,13 @@ class ApiClient {
hostSettings() {
return [
{
url: 'https://{defaultHost}',
url: '{defaultUrl}',
description: 'No description provided',

variables: {
defaultHost: {
defaultUrl: {
description: 'No description provided',
default_value: 'api.patch.io',
default_value: 'https://api.patch.io',
enum_values: []
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/api/EstimatesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Patch API V1
* The core API used to integrate with Patch's service
*
* Contact: developers@usepatch.com
* Contact: engineering@usepatch.com
*/

import ApiClient from '../ApiClient';
Expand Down
2 changes: 1 addition & 1 deletion src/api/OrdersApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Patch API V1
* The core API used to integrate with Patch's service
*
* Contact: developers@usepatch.com
* Contact: engineering@usepatch.com
*/

import ApiClient from '../ApiClient';
Expand Down
183 changes: 0 additions & 183 deletions src/api/PreferencesApi.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/api/ProjectsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Patch API V1
* The core API used to integrate with Patch's service
*
* Contact: developers@usepatch.com
* Contact: engineering@usepatch.com
*/

import ApiClient from '../ApiClient';
Expand Down
2 changes: 1 addition & 1 deletion src/api/TechnologyTypesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Patch API V1
* The core API used to integrate with Patch's service
*
* Contact: developers@usepatch.com
* Contact: engineering@usepatch.com
*/

import ApiClient from '../ApiClient';
Expand Down
5 changes: 1 addition & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
* Patch API V1
* The core API used to integrate with Patch's service
*
* Contact: developers@usepatch.com
* Contact: engineering@usepatch.com
*/

import ApiClient from './ApiClient';
import EstimatesApi from './api/EstimatesApi';
import OrdersApi from './api/OrdersApi';
import PreferencesApi from './api/PreferencesApi';
import ProjectsApi from './api/ProjectsApi';
import TechnologyTypesApi from './api/TechnologyTypesApi';

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

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

this.preferences = new PreferencesApi(this.client);

this.projects = new ProjectsApi(this.client);

this.technologytypes = new TechnologyTypesApi(this.client);
Expand Down
2 changes: 1 addition & 1 deletion src/model/Allocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Patch API V1
* The core API used to integrate with Patch's service
*
* Contact: developers@usepatch.com
* Contact: engineering@usepatch.com
*/

import ApiClient from '../ApiClient';
Expand Down
2 changes: 1 addition & 1 deletion src/model/CreateBitcoinEstimateRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Patch API V1
* The core API used to integrate with Patch's service
*
* Contact: developers@usepatch.com
* Contact: engineering@usepatch.com
*/

import ApiClient from '../ApiClient';
Expand Down
2 changes: 1 addition & 1 deletion src/model/CreateEthereumEstimateRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Patch API V1
* The core API used to integrate with Patch's service
*
* Contact: developers@usepatch.com
* Contact: engineering@usepatch.com
*/

import ApiClient from '../ApiClient';
Expand Down
2 changes: 1 addition & 1 deletion src/model/CreateFlightEstimateRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Patch API V1
* The core API used to integrate with Patch's service
*
* Contact: developers@usepatch.com
* Contact: engineering@usepatch.com
*/

import ApiClient from '../ApiClient';
Expand Down
2 changes: 1 addition & 1 deletion src/model/CreateMassEstimateRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Patch API V1
* The core API used to integrate with Patch's service
*
* Contact: developers@usepatch.com
* Contact: engineering@usepatch.com
*/

import ApiClient from '../ApiClient';
Expand Down
2 changes: 1 addition & 1 deletion src/model/CreateOrderRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Patch API V1
* The core API used to integrate with Patch's service
*
* Contact: developers@usepatch.com
* Contact: engineering@usepatch.com
*/

import ApiClient from '../ApiClient';
Expand Down
2 changes: 1 addition & 1 deletion src/model/CreateShippingEstimateRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Patch API V1
* The core API used to integrate with Patch's service
*
* Contact: developers@usepatch.com
* Contact: engineering@usepatch.com
*/

import ApiClient from '../ApiClient';
Expand Down
2 changes: 1 addition & 1 deletion src/model/CreateSuccessResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Patch API V1
* The core API used to integrate with Patch's service
*
* Contact: developers@usepatch.com
* Contact: engineering@usepatch.com
*/

import ApiClient from '../ApiClient';
Expand Down
2 changes: 1 addition & 1 deletion src/model/CreateVehicleEstimateRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Patch API V1
* The core API used to integrate with Patch's service
*
* Contact: developers@usepatch.com
* Contact: engineering@usepatch.com
*/

import ApiClient from '../ApiClient';
Expand Down
Loading

0 comments on commit 23875a0

Please sign in to comment.