@cpzxrobot/sdk 1.1.11 → 1.1.12
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 +3 -3
- package/dist/device_gateway.js +1 -1
- package/dist/factory_gateway.js +1 -1
- package/factory_gateway.ts +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -0
package/device_gateway.ts
CHANGED
|
@@ -71,7 +71,7 @@ export class DeviceGateway extends Object {
|
|
|
71
71
|
let axios = await this.context.ready;
|
|
72
72
|
return axios.get(`/api/v2/threshold/config`, {
|
|
73
73
|
params: {
|
|
74
|
-
factoryType: factory?.
|
|
74
|
+
factoryType: factory?.business_kind
|
|
75
75
|
},
|
|
76
76
|
});
|
|
77
77
|
},
|
|
@@ -81,7 +81,7 @@ export class DeviceGateway extends Object {
|
|
|
81
81
|
return axios.post(`/api/v2/threshold/config`, data);
|
|
82
82
|
},
|
|
83
83
|
//向阈值配置中新增一条规则
|
|
84
|
-
addRule: async (configId:
|
|
84
|
+
addRule: async (configId: any, data: any) => {
|
|
85
85
|
let axios = await this.context.ready;
|
|
86
86
|
return axios.post(`/api/v2/threshold`, {
|
|
87
87
|
...data,
|
|
@@ -96,7 +96,7 @@ export class DeviceGateway extends Object {
|
|
|
96
96
|
});
|
|
97
97
|
},
|
|
98
98
|
//读取阈值配置,包括阈值规则列表
|
|
99
|
-
get: async (configId:
|
|
99
|
+
get: async (configId: any) => {
|
|
100
100
|
let axios = await this.context.ready;
|
|
101
101
|
return axios.get(`/api/v2/threshold/config/${configId}`);
|
|
102
102
|
},
|
package/dist/device_gateway.js
CHANGED
|
@@ -44,7 +44,7 @@ class DeviceGateway extends Object {
|
|
|
44
44
|
let axios = await this.context.ready;
|
|
45
45
|
return axios.get(`/api/v2/threshold/config`, {
|
|
46
46
|
params: {
|
|
47
|
-
factoryType: factory === null || factory === void 0 ? void 0 : factory.
|
|
47
|
+
factoryType: factory === null || factory === void 0 ? void 0 : factory.business_kind
|
|
48
48
|
},
|
|
49
49
|
});
|
|
50
50
|
},
|
package/dist/factory_gateway.js
CHANGED
|
@@ -64,7 +64,7 @@ class FactoryGateway extends Object {
|
|
|
64
64
|
},
|
|
65
65
|
types: async (factory) => {
|
|
66
66
|
var axios = await this.context.ready;
|
|
67
|
-
return axios.get(`/api/v2/factory/${factory.
|
|
67
|
+
return axios.get(`/api/v2/factory/${factory.business_kind}/workshop/type`);
|
|
68
68
|
},
|
|
69
69
|
list: async (factory) => {
|
|
70
70
|
var axios = await this.context.ready;
|
package/factory_gateway.ts
CHANGED
|
@@ -74,7 +74,7 @@ export class FactoryGateway extends Object {
|
|
|
74
74
|
},
|
|
75
75
|
types: async (factory: Factory) => {
|
|
76
76
|
var axios = await this.context.ready;
|
|
77
|
-
return axios.get(`/api/v2/factory/${factory.
|
|
77
|
+
return axios.get(`/api/v2/factory/${factory.business_kind}/workshop/type`);
|
|
78
78
|
},
|
|
79
79
|
list: async (factory: Factory) => {
|
|
80
80
|
var axios = await this.context.ready;
|
package/package.json
CHANGED