@cpzxrobot/sdk 1.3.59 → 1.3.61
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/device_gateway.ts +1 -1
- package/dist/device_gateway.js +1 -1
- package/dist/pigfarm_gateway.js +1 -1
- package/package.json +1 -1
- package/pigfarm_gateway.ts +1 -1
package/device_gateway.ts
CHANGED
|
@@ -775,7 +775,7 @@ export class DeviceGateway extends Object {
|
|
|
775
775
|
if (manufacturerId === undefined) {
|
|
776
776
|
return axios.get('/api/v3/device/model');
|
|
777
777
|
} else {
|
|
778
|
-
return axios.get(
|
|
778
|
+
return axios.get(`/api/v3/device/manufacture/${manufacturerId}/models`);
|
|
779
779
|
}
|
|
780
780
|
},
|
|
781
781
|
|
package/dist/device_gateway.js
CHANGED
|
@@ -618,7 +618,7 @@ class DeviceGateway extends Object {
|
|
|
618
618
|
return axios.get('/api/v3/device/model');
|
|
619
619
|
}
|
|
620
620
|
else {
|
|
621
|
-
return axios.get(
|
|
621
|
+
return axios.get(`/api/v3/device/manufacture/${manufacturerId}/models`);
|
|
622
622
|
}
|
|
623
623
|
},
|
|
624
624
|
create: async (data) => {
|
package/dist/pigfarm_gateway.js
CHANGED
|
@@ -266,7 +266,7 @@ class PigfarmGateway extends Object {
|
|
|
266
266
|
},
|
|
267
267
|
getGroup: async (unit) => {
|
|
268
268
|
var axios = await this.context.ready;
|
|
269
|
-
return axios.
|
|
269
|
+
return axios.get(`/api/v1/pigfarm/heatLamp/group?unitId=${unit.id}`);
|
|
270
270
|
},
|
|
271
271
|
deleteGroup: async (id) => {
|
|
272
272
|
var axios = await this.context.ready;
|
package/package.json
CHANGED
package/pigfarm_gateway.ts
CHANGED
|
@@ -328,7 +328,7 @@ export class PigfarmGateway extends Object {
|
|
|
328
328
|
},
|
|
329
329
|
getGroup: async (unit: Unit): Promise<any> => {
|
|
330
330
|
var axios = await this.context.ready;
|
|
331
|
-
return axios.
|
|
331
|
+
return axios.get(`/api/v1/pigfarm/heatLamp/group?unitId=${unit.id}`);
|
|
332
332
|
},
|
|
333
333
|
deleteGroup: async (id: any): Promise<any> => {
|
|
334
334
|
var axios = await this.context.ready;
|