@cpzxrobot/sdk 1.3.80 → 1.3.81

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
@@ -79,14 +79,14 @@ export class DeviceGateway extends Object {
79
79
  public normalFilter: NormalGateway;
80
80
  context: Cpzxrobot;
81
81
  public categories = [
82
- { id: 0, name: '网关',order: 4 }, //排序时网关优先级不高
83
- { id: 1, name: '传感器',order: 1 },
84
- { id: 2, name: '执行器',order: 2 },
85
- { id: 3, name: 'AI设备',order: 3 },
86
- { id: 4, name: '业务数据',order: 5 },
87
- { id: 5, name: '设备参数',order: 6 },
88
- { id: 8, name: '生产设备',order: 7 },
89
- { id: 9, name: '设备部件',order: 8 },
82
+ { id: 0, name: '网关', order: 4 }, //排序时网关优先级不高
83
+ { id: 1, name: '传感器', order: 1 },
84
+ { id: 2, name: '执行器', order: 2 },
85
+ { id: 3, name: 'AI设备', order: 3 },
86
+ { id: 4, name: '业务数据', order: 5 },
87
+ { id: 5, name: '设备参数', order: 6 },
88
+ { id: 8, name: '生产设备', order: 7 },
89
+ { id: 9, name: '设备部件', order: 8 },
90
90
  ];
91
91
 
92
92
  get v2() {
@@ -1093,10 +1093,10 @@ export class DeviceGateway extends Object {
1093
1093
  * @returns Promise 包含报警分类统计数据
1094
1094
  */
1095
1095
  async getAlarmStatisticsByType(
1096
- factoryId: number | undefined = undefined,
1097
- topN?: number,
1098
1096
  fromDate?: string,
1099
- toDate?: string
1097
+ toDate?: string,
1098
+ factoryId?: number,
1099
+ topN?: number
1100
1100
  ): Promise<AlarmStatisticsByTypeResponse> {
1101
1101
  const axios = await this.context.ready;
1102
1102
  var _factoryId = factoryId || 0;
@@ -1154,7 +1154,7 @@ export class DeviceGateway extends Object {
1154
1154
  if (!regex.test(dateTime)) {
1155
1155
  return false;
1156
1156
  }
1157
-
1157
+
1158
1158
  const date = new Date(dateTime);
1159
1159
  return !isNaN(date.getTime());
1160
1160
  }
@@ -877,8 +877,8 @@ class DeviceGateway extends Object {
877
877
  * @param toDate 查询终止时间(格式:YYYY-MM-DD HH:mm:ss,不传则默认对所有的报警信息进行归类统计)
878
878
  * @returns Promise 包含报警分类统计数据
879
879
  */
880
- getAlarmStatisticsByType() {
881
- return __awaiter(this, arguments, void 0, function* (factoryId = undefined, topN, fromDate, toDate) {
880
+ getAlarmStatisticsByType(fromDate, toDate, factoryId, topN) {
881
+ return __awaiter(this, void 0, void 0, function* () {
882
882
  const axios = yield this.context.ready;
883
883
  var _factoryId = factoryId || 0;
884
884
  if (!factoryId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.3.80",
3
+ "version": "1.3.81",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {