@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 +5 -5
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -242,8 +242,8 @@ var Client = /*#__PURE__*/ function() {
|
|
|
242
242
|
{
|
|
243
243
|
/**
|
|
244
244
|
* @return OK
|
|
245
|
-
*/ key: "
|
|
246
|
-
value: function
|
|
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.
|
|
265
|
+
return _this.processDistributor(_response);
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
|
-
key: "
|
|
271
|
-
value: function
|
|
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
|
-
|
|
12
|
-
protected
|
|
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
|
-
|
|
12
|
-
protected
|
|
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: "
|
|
135
|
-
value: function
|
|
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.
|
|
154
|
+
return _this.processDistributor(_response);
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
|
-
key: "
|
|
160
|
-
value: function
|
|
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") {
|