@arekstasko/plantcare-api-client 1.2.2 → 1.2.4
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 +4 -7
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +4 -7
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1221,17 +1221,14 @@ var Client = /*#__PURE__*/ function() {
|
|
|
1221
1221
|
},
|
|
1222
1222
|
{
|
|
1223
1223
|
/**
|
|
1224
|
-
* @param idQuery (optional)
|
|
1225
1224
|
* @param body (optional)
|
|
1226
1225
|
* @return OK
|
|
1227
1226
|
*/ key: "setHumidityValues",
|
|
1228
|
-
value: function setHumidityValues(
|
|
1227
|
+
value: function setHumidityValues(id, body, cancelToken) {
|
|
1229
1228
|
var _this = this;
|
|
1230
|
-
var url_ = this.baseUrl + "/api/plants/{id}/set-humidity-values
|
|
1231
|
-
if (
|
|
1232
|
-
url_ = url_.replace("{id}", encodeURIComponent("" +
|
|
1233
|
-
if (idQuery === null) throw new globalThis.Error("The parameter 'idQuery' cannot be null.");
|
|
1234
|
-
else if (idQuery !== void 0) url_ += "id=" + encodeURIComponent("" + idQuery) + "&";
|
|
1229
|
+
var url_ = this.baseUrl + "/api/plants/{id}/set-humidity-values";
|
|
1230
|
+
if (id === void 0 || id === null) throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
1231
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
1235
1232
|
url_ = url_.replace(/[?&]$/, "");
|
|
1236
1233
|
var content_ = JSON.stringify(body);
|
|
1237
1234
|
var options_ = {
|
package/dist/index.d.cts
CHANGED
|
@@ -98,11 +98,10 @@ declare class Client {
|
|
|
98
98
|
plantsAll(cancelToken?: CancelToken): Promise<Plant[]>;
|
|
99
99
|
protected processPlantsAll(response: AxiosResponse): Promise<Plant[]>;
|
|
100
100
|
/**
|
|
101
|
-
* @param idQuery (optional)
|
|
102
101
|
* @param body (optional)
|
|
103
102
|
* @return OK
|
|
104
103
|
*/
|
|
105
|
-
setHumidityValues(
|
|
104
|
+
setHumidityValues(id: number, body: UpdatePlantHumidityValues | undefined, cancelToken?: CancelToken): Promise<boolean>;
|
|
106
105
|
protected processSetHumidityValues(response: AxiosResponse): Promise<boolean>;
|
|
107
106
|
/**
|
|
108
107
|
* @return OK
|
package/dist/index.d.ts
CHANGED
|
@@ -98,11 +98,10 @@ declare class Client {
|
|
|
98
98
|
plantsAll(cancelToken?: CancelToken): Promise<Plant[]>;
|
|
99
99
|
protected processPlantsAll(response: AxiosResponse): Promise<Plant[]>;
|
|
100
100
|
/**
|
|
101
|
-
* @param idQuery (optional)
|
|
102
101
|
* @param body (optional)
|
|
103
102
|
* @return OK
|
|
104
103
|
*/
|
|
105
|
-
setHumidityValues(
|
|
104
|
+
setHumidityValues(id: number, body: UpdatePlantHumidityValues | undefined, cancelToken?: CancelToken): Promise<boolean>;
|
|
106
105
|
protected processSetHumidityValues(response: AxiosResponse): Promise<boolean>;
|
|
107
106
|
/**
|
|
108
107
|
* @return OK
|
package/dist/index.js
CHANGED
|
@@ -1110,17 +1110,14 @@ var Client = /*#__PURE__*/ function() {
|
|
|
1110
1110
|
},
|
|
1111
1111
|
{
|
|
1112
1112
|
/**
|
|
1113
|
-
* @param idQuery (optional)
|
|
1114
1113
|
* @param body (optional)
|
|
1115
1114
|
* @return OK
|
|
1116
1115
|
*/ key: "setHumidityValues",
|
|
1117
|
-
value: function setHumidityValues(
|
|
1116
|
+
value: function setHumidityValues(id, body, cancelToken) {
|
|
1118
1117
|
var _this = this;
|
|
1119
|
-
var url_ = this.baseUrl + "/api/plants/{id}/set-humidity-values
|
|
1120
|
-
if (
|
|
1121
|
-
url_ = url_.replace("{id}", encodeURIComponent("" +
|
|
1122
|
-
if (idQuery === null) throw new globalThis.Error("The parameter 'idQuery' cannot be null.");
|
|
1123
|
-
else if (idQuery !== void 0) url_ += "id=" + encodeURIComponent("" + idQuery) + "&";
|
|
1118
|
+
var url_ = this.baseUrl + "/api/plants/{id}/set-humidity-values";
|
|
1119
|
+
if (id === void 0 || id === null) throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
1120
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
1124
1121
|
url_ = url_.replace(/[?&]$/, "");
|
|
1125
1122
|
var content_ = JSON.stringify(body);
|
|
1126
1123
|
var options_ = {
|