@ray-js/api 1.6.2 → 1.6.4

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.
@@ -247,4 +247,22 @@ declare namespace ty.energy {
247
247
  function setDevicePropertySetting(
248
248
  params: SetDevicePropertySettingParams
249
249
  ): Promise<SetDevicePropertySettingResponse>
250
+
251
+ // 14. 单设备多指标趋势查询
252
+ type GetDpHistoryDataListParams = {
253
+ devId: string // 设备id
254
+ dateType: 'day' | 'week' | 'month' | 'year' // 日期类型
255
+ beginDate: string // 开始日期
256
+ endDate: string // 结束日期
257
+ aggregationType: 'SUM' | 'AVG' | 'MAX' | 'MIN' | 'NUM'
258
+ indicatorCodes: string // 指标code
259
+ }
260
+
261
+ type GetDpHistoryDataListResponse = {
262
+ total: number // 总量
263
+ }[]
264
+
265
+ function getDpHistoryDataList(
266
+ params: GetDpHistoryDataListParams
267
+ ): Promise<GetDpHistoryDataListResponse>
250
268
  }
@@ -12,4 +12,5 @@ export declare const energy: {
12
12
  getInverterDeviceModel: typeof ty.energy.getInverterDeviceModel;
13
13
  getDevicePropertySettingTranslate: typeof ty.energy.getDevicePropertySettingTranslate;
14
14
  setDevicePropertySetting: typeof ty.energy.setDevicePropertySetting;
15
+ getDpHistoryDataList: typeof ty.energy.getDpHistoryDataList;
15
16
  };
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../@types/energy.d.ts" />
1
2
  import { factory } from '../utils';
2
3
  const getDeviceDataMultipleSum = factory('getDeviceDataMultipleSum', {
3
4
  namespace: 'energy'
@@ -38,6 +39,9 @@ const getDevicePropertySettingTranslate = factory('getDevicePropertySettingTrans
38
39
  const setDevicePropertySetting = factory('setDevicePropertySetting', {
39
40
  namespace: 'energy'
40
41
  });
42
+ const getDpHistoryDataList = factory('getDpHistoryDataList', {
43
+ namespace: 'energy'
44
+ });
41
45
  export const energy = {
42
46
  getDeviceDataMultipleSum,
43
47
  getInverterDeviceInfo,
@@ -51,5 +55,6 @@ export const energy = {
51
55
  getPropertySettingTranslate,
52
56
  getInverterDeviceModel,
53
57
  getDevicePropertySettingTranslate,
54
- setDevicePropertySetting
58
+ setDevicePropertySetting,
59
+ getDpHistoryDataList
55
60
  };
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../@types/gateway.d.ts" />
1
2
  import { factory } from '../utils';
2
3
  const sendCmdForRefreshDeviceLQI = factory('sendCmdForRefreshDeviceLQI', {
3
4
  namespace: 'gateway'
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../@types/health.d.ts" />
1
2
  import { factory } from '../utils';
2
3
  const addPanelUser = factory('addPanelUser', {
3
4
  namespace: 'health'
@@ -1,3 +1,5 @@
1
+ /// <reference path="../../../@types/api-cloud.d.ts" />
2
+
1
3
  import { factory } from '../../utils';
2
4
  const getMultipleMapFiles = factory('getMultipleMapFiles');
3
5
  const getSweeperStorageConfig = factory('getSweeperStorageConfig');
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../@types/api-cloud.d.ts" />
1
2
  import { factory } from '../../utils';
2
3
  const getCleaningRecords = factory('getCleaningRecords');
3
4
  const deleteCleaningRecord = factory('deleteCleaningRecord');
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../@types/api-cloud.d.ts" />
1
2
  import { factory } from '../../utils';
2
3
  const getVoiceList = factory('getVoiceList');
3
4
  export { getVoiceList };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "description": "Ray universal api",
5
5
  "keywords": [
6
6
  "ray"
@@ -29,14 +29,14 @@
29
29
  "watch": "ray start --type=component"
30
30
  },
31
31
  "dependencies": {
32
- "@ray-js/framework": "1.6.2",
33
- "@ray-js/router": "1.6.2",
32
+ "@ray-js/framework": "1.6.4",
33
+ "@ray-js/router": "1.6.4",
34
34
  "@ray-js/wechat": "^0.2.19",
35
35
  "base64-browser": "^1.0.1",
36
36
  "query-string": "^7.1.3"
37
37
  },
38
38
  "devDependencies": {
39
- "@ray-js/cli": "1.6.2",
39
+ "@ray-js/cli": "1.6.4",
40
40
  "art-template": "^4.13.2",
41
41
  "fs-extra": "^10.1.0",
42
42
  "miniprogram-api-typings": "^3.12.3",
@@ -46,5 +46,5 @@
46
46
  "access": "public",
47
47
  "registry": "https://registry.npmjs.com"
48
48
  },
49
- "gitHead": "3b5d2fa88a51ed215543b93d99e10c6977cce04d"
49
+ "gitHead": "910ca3db88f2dbf79307fff3e36698c1fd59ffef"
50
50
  }