@arekstasko/plantcare-api-client 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -242,8 +242,8 @@ var Client = /*#__PURE__*/ function() {
242
242
  {
243
243
  /**
244
244
  * @return OK
245
- */ key: "getDistributors",
246
- value: function getDistributors(cancelToken) {
245
+ */ key: "distributor",
246
+ value: function distributor(cancelToken) {
247
247
  var _this = this;
248
248
  var url_ = this.baseUrl + "/api/distributor";
249
249
  url_ = url_.replace(/[?&]$/, "");
@@ -262,13 +262,13 @@ var Client = /*#__PURE__*/ function() {
262
262
  throw _error;
263
263
  }
264
264
  }).then(function(_response) {
265
- return _this.processGetDistributors(_response);
265
+ return _this.processDistributor(_response);
266
266
  });
267
267
  }
268
268
  },
269
269
  {
270
- key: "processGetDistributors",
271
- value: function processGetDistributors(response) {
270
+ key: "processDistributor",
271
+ value: function processDistributor(response) {
272
272
  var status = response.status;
273
273
  var _headers = {};
274
274
  if (response.headers && _type_of(response.headers) === "object") {
package/dist/index.d.cts CHANGED
@@ -8,8 +8,8 @@ declare class Client {
8
8
  /**
9
9
  * @return OK
10
10
  */
11
- getDistributors(cancelToken?: CancelToken): Promise<Distributor[]>;
12
- protected processGetDistributors(response: AxiosResponse): Promise<Distributor[]>;
11
+ distributor(cancelToken?: CancelToken): Promise<Distributor[]>;
12
+ protected processDistributor(response: AxiosResponse): Promise<Distributor[]>;
13
13
  /**
14
14
  * @param body (optional)
15
15
  * @return OK
package/dist/index.d.ts CHANGED
@@ -8,8 +8,8 @@ declare class Client {
8
8
  /**
9
9
  * @return OK
10
10
  */
11
- getDistributors(cancelToken?: CancelToken): Promise<Distributor[]>;
12
- protected processGetDistributors(response: AxiosResponse): Promise<Distributor[]>;
11
+ distributor(cancelToken?: CancelToken): Promise<Distributor[]>;
12
+ protected processDistributor(response: AxiosResponse): Promise<Distributor[]>;
13
13
  /**
14
14
  * @param body (optional)
15
15
  * @return OK
package/dist/index.js CHANGED
@@ -131,8 +131,8 @@ var Client = /*#__PURE__*/ function() {
131
131
  {
132
132
  /**
133
133
  * @return OK
134
- */ key: "getDistributors",
135
- value: function getDistributors(cancelToken) {
134
+ */ key: "distributor",
135
+ value: function distributor(cancelToken) {
136
136
  var _this = this;
137
137
  var url_ = this.baseUrl + "/api/distributor";
138
138
  url_ = url_.replace(/[?&]$/, "");
@@ -151,13 +151,13 @@ var Client = /*#__PURE__*/ function() {
151
151
  throw _error;
152
152
  }
153
153
  }).then(function(_response) {
154
- return _this.processGetDistributors(_response);
154
+ return _this.processDistributor(_response);
155
155
  });
156
156
  }
157
157
  },
158
158
  {
159
- key: "processGetDistributors",
160
- value: function processGetDistributors(response) {
159
+ key: "processDistributor",
160
+ value: function processDistributor(response) {
161
161
  var status = response.status;
162
162
  var _headers = {};
163
163
  if (response.headers && _type_of(response.headers) === "object") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arekstasko/plantcare-api-client",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",