@ray-js/api 1.6.3 → 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
  };
@@ -39,6 +39,9 @@ const getDevicePropertySettingTranslate = factory('getDevicePropertySettingTrans
39
39
  const setDevicePropertySetting = factory('setDevicePropertySetting', {
40
40
  namespace: 'energy'
41
41
  });
42
+ const getDpHistoryDataList = factory('getDpHistoryDataList', {
43
+ namespace: 'energy'
44
+ });
42
45
  export const energy = {
43
46
  getDeviceDataMultipleSum,
44
47
  getInverterDeviceInfo,
@@ -52,5 +55,6 @@ export const energy = {
52
55
  getPropertySettingTranslate,
53
56
  getInverterDeviceModel,
54
57
  getDevicePropertySettingTranslate,
55
- setDevicePropertySetting
58
+ setDevicePropertySetting,
59
+ getDpHistoryDataList
56
60
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "1.6.3",
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.3",
33
- "@ray-js/router": "1.6.3",
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.3",
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": "f0390bf5a5c5867f2157214b900ca656877853fd"
49
+ "gitHead": "910ca3db88f2dbf79307fff3e36698c1fd59ffef"
50
50
  }