@cpzxrobot/sdk 1.3.99 → 1.3.100

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 CHANGED
@@ -317,7 +317,7 @@ export class DeviceGateway extends Object {
317
317
  allActive: (request.factoryIds?.length || 0) > 0 ? false : request.allActive !== undefined ? request.allActive : true
318
318
  };
319
319
 
320
- return axios.post(`/api/v2/device/stat/alarms/rule/active`, requestData).then((res) => {
320
+ return axios.post(`/api/v2/device/stat/alarms/rule/activate`, requestData).then((res) => {
321
321
  if (res.data.code !== 200) {
322
322
  throw new Error(res.data.message || '激活报警规则失败');
323
323
  }
@@ -243,7 +243,7 @@ class DeviceGateway extends Object {
243
243
  factoryIds: request.factoryIds || [],
244
244
  allActive: (((_a = request.factoryIds) === null || _a === void 0 ? void 0 : _a.length) || 0) > 0 ? false : request.allActive !== undefined ? request.allActive : true
245
245
  };
246
- return axios.post(`/api/v2/device/stat/alarms/rule/active`, requestData).then((res) => {
246
+ return axios.post(`/api/v2/device/stat/alarms/rule/activate`, requestData).then((res) => {
247
247
  if (res.data.code !== 200) {
248
248
  throw new Error(res.data.message || '激活报警规则失败');
249
249
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.3.99",
3
+ "version": "1.3.100",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {