@cpzxrobot/sdk 1.3.85 → 1.3.86

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
@@ -1021,10 +1021,10 @@ export class DeviceGateway extends Object {
1021
1021
  * @returns Promise 包含设备报警统计列表分页数据
1022
1022
  */
1023
1023
  async getAlarmStatistics(
1024
- factoryId: number | undefined = undefined,
1025
1024
  resolveType: number = 2,
1026
1025
  pageNum: number = 1,
1027
- pageSize: number = 10
1026
+ pageSize: number = 10,
1027
+ factoryId: number | undefined = undefined
1028
1028
  ): Promise<DeviceAlarmStatisticsResponse> {
1029
1029
  const axios = await this.context.ready;
1030
1030
  var _factoryId = factoryId || 0;
@@ -1094,10 +1094,10 @@ export class DeviceGateway extends Object {
1094
1094
  * @returns Promise 包含报警分类统计数据
1095
1095
  */
1096
1096
  async getAlarmStatisticsByType(
1097
- factoryId: number | undefined = undefined,
1098
- topN?: number,
1099
1097
  fromDate?: string,
1100
- toDate?: string
1098
+ toDate?: string,
1099
+ factoryId?: number,
1100
+ topN?: number,
1101
1101
  ): Promise<AlarmStatisticsByTypeResponse> {
1102
1102
  const axios = await this.context.ready;
1103
1103
  var _factoryId = factoryId || 0;
@@ -812,7 +812,7 @@ class DeviceGateway extends Object {
812
812
  * @returns Promise 包含设备报警统计列表分页数据
813
813
  */
814
814
  getAlarmStatistics() {
815
- return __awaiter(this, arguments, void 0, function* (factoryId = undefined, resolveType = 2, pageNum = 1, pageSize = 10) {
815
+ return __awaiter(this, arguments, void 0, function* (resolveType = 2, pageNum = 1, pageSize = 10, factoryId = undefined) {
816
816
  const axios = yield this.context.ready;
817
817
  var _factoryId = factoryId || 0;
818
818
  if (!factoryId) {
@@ -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.85",
3
+ "version": "1.3.86",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {