@ray-js/api 1.6.16 → 1.6.17
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/@types/HealthKit.d.ts +1121 -0
- package/@types/all-kits.d.ts +1 -0
- package/lib/HealthKit-5.18.4.d.ts +42 -0
- package/lib/HealthKit-5.18.4.js +128 -0
- package/lib/cloud/health.js +0 -1
- package/lib/cloud/index.d.ts +1 -1
- package/lib/cloud/index.js +4 -2
- package/lib/index.d.ts +70 -1
- package/lib/index.js +15 -1
- package/package.json +5 -5
- package/lib/all-kits.d.ts +0 -11
- package/lib/all-kits.js +0 -11
package/@types/all-kits.d.ts
CHANGED
@@ -0,0 +1,42 @@
|
|
1
|
+
export declare const health: {
|
2
|
+
getHealthConnectStatus: typeof ty.health.getHealthConnectStatus;
|
3
|
+
getHealthConnectStatusSync: typeof ty.health.getHealthConnectStatusSync;
|
4
|
+
insertRecords: typeof ty.health.insertRecords;
|
5
|
+
insertRecordsSync: typeof ty.health.insertRecordsSync;
|
6
|
+
authStatusPermissions: typeof ty.health.authStatusPermissions;
|
7
|
+
authStatusPermissionsSync: typeof ty.health.authStatusPermissionsSync;
|
8
|
+
getSaveQuantityPermission: typeof ty.health.getSaveQuantityPermission;
|
9
|
+
getSaveQuantityPermissionSync: typeof ty.health.getSaveQuantityPermissionSync;
|
10
|
+
authQuantityWritePermissions: typeof ty.health.authQuantityWritePermissions;
|
11
|
+
authQuantityWritePermissionsSync: typeof ty.health.authQuantityWritePermissionsSync;
|
12
|
+
authCategoryWritePermissions: typeof ty.health.authCategoryWritePermissions;
|
13
|
+
authCategoryWritePermissionsSync: typeof ty.health.authCategoryWritePermissionsSync;
|
14
|
+
authQuantityReadPermissions: typeof ty.health.authQuantityReadPermissions;
|
15
|
+
authQuantityReadPermissionsSync: typeof ty.health.authQuantityReadPermissionsSync;
|
16
|
+
authCategoryReadPermissions: typeof ty.health.authCategoryReadPermissions;
|
17
|
+
authCategoryReadPermissionsSync: typeof ty.health.authCategoryReadPermissionsSync;
|
18
|
+
authCharacteristicReadPermissions: typeof ty.health.authCharacteristicReadPermissions;
|
19
|
+
authCharacteristicReadPermissionsSync: typeof ty.health.authCharacteristicReadPermissionsSync;
|
20
|
+
authQuantityRWPermissions: typeof ty.health.authQuantityRWPermissions;
|
21
|
+
authQuantityRWPermissionsSync: typeof ty.health.authQuantityRWPermissionsSync;
|
22
|
+
authCategoryRWPermissions: typeof ty.health.authCategoryRWPermissions;
|
23
|
+
authCategoryRWPermissionsSync: typeof ty.health.authCategoryRWPermissionsSync;
|
24
|
+
saveQuantityData: typeof ty.health.saveQuantityData;
|
25
|
+
saveQuantityDataSync: typeof ty.health.saveQuantityDataSync;
|
26
|
+
saveQuantityNoTimeWithData: typeof ty.health.saveQuantityNoTimeWithData;
|
27
|
+
saveQuantityNoTimeWithDataSync: typeof ty.health.saveQuantityNoTimeWithDataSync;
|
28
|
+
saveBloodPressureData: typeof ty.health.saveBloodPressureData;
|
29
|
+
saveBloodPressureDataSync: typeof ty.health.saveBloodPressureDataSync;
|
30
|
+
readQuantityDataWithType: typeof ty.health.readQuantityDataWithType;
|
31
|
+
readQuantityDataWithTypeSync: typeof ty.health.readQuantityDataWithTypeSync;
|
32
|
+
deleteQuantityDataType: typeof ty.health.deleteQuantityDataType;
|
33
|
+
deleteQuantityDataTypeSync: typeof ty.health.deleteQuantityDataTypeSync;
|
34
|
+
readCharacteristicDataWithType: typeof ty.health.readCharacteristicDataWithType;
|
35
|
+
readCharacteristicDataWithTypeSync: typeof ty.health.readCharacteristicDataWithTypeSync;
|
36
|
+
saveCategoryData: typeof ty.health.saveCategoryData;
|
37
|
+
saveCategoryDataSync: typeof ty.health.saveCategoryDataSync;
|
38
|
+
saveCategoryNoTimeWithData: typeof ty.health.saveCategoryNoTimeWithData;
|
39
|
+
saveCategoryNoTimeWithDataSync: typeof ty.health.saveCategoryNoTimeWithDataSync;
|
40
|
+
readCategoryDataWithType: typeof ty.health.readCategoryDataWithType;
|
41
|
+
readCategoryDataWithTypeSync: typeof ty.health.readCategoryDataWithTypeSync;
|
42
|
+
};
|
@@ -0,0 +1,128 @@
|
|
1
|
+
/// <reference path="../@types/HealthKit.d.ts" />
|
2
|
+
|
3
|
+
import { createFactory } from './utils';
|
4
|
+
const factory = createFactory('HealthKit');
|
5
|
+
|
6
|
+
// ray 1.6.17 集成
|
7
|
+
export const health = {
|
8
|
+
getHealthConnectStatus: factory('getHealthConnectStatus', {
|
9
|
+
namespace: 'health'
|
10
|
+
}),
|
11
|
+
getHealthConnectStatusSync: factory('getHealthConnectStatusSync', {
|
12
|
+
namespace: 'health'
|
13
|
+
}),
|
14
|
+
insertRecords: factory('insertRecords', {
|
15
|
+
namespace: 'health'
|
16
|
+
}),
|
17
|
+
insertRecordsSync: factory('insertRecordsSync', {
|
18
|
+
namespace: 'health'
|
19
|
+
}),
|
20
|
+
authStatusPermissions: factory('authStatusPermissions', {
|
21
|
+
namespace: 'health'
|
22
|
+
}),
|
23
|
+
authStatusPermissionsSync: factory('authStatusPermissionsSync', {
|
24
|
+
namespace: 'health'
|
25
|
+
}),
|
26
|
+
getSaveQuantityPermission: factory('getSaveQuantityPermission', {
|
27
|
+
namespace: 'health'
|
28
|
+
}),
|
29
|
+
getSaveQuantityPermissionSync: factory('getSaveQuantityPermissionSync', {
|
30
|
+
namespace: 'health'
|
31
|
+
}),
|
32
|
+
authQuantityWritePermissions: factory('authQuantityWritePermissions', {
|
33
|
+
namespace: 'health'
|
34
|
+
}),
|
35
|
+
authQuantityWritePermissionsSync: factory('authQuantityWritePermissionsSync', {
|
36
|
+
namespace: 'health'
|
37
|
+
}),
|
38
|
+
authCategoryWritePermissions: factory('authCategoryWritePermissions', {
|
39
|
+
namespace: 'health'
|
40
|
+
}),
|
41
|
+
authCategoryWritePermissionsSync: factory('authCategoryWritePermissionsSync', {
|
42
|
+
namespace: 'health'
|
43
|
+
}),
|
44
|
+
authQuantityReadPermissions: factory('authQuantityReadPermissions', {
|
45
|
+
namespace: 'health'
|
46
|
+
}),
|
47
|
+
authQuantityReadPermissionsSync: factory('authQuantityReadPermissionsSync', {
|
48
|
+
namespace: 'health'
|
49
|
+
}),
|
50
|
+
authCategoryReadPermissions: factory('authCategoryReadPermissions', {
|
51
|
+
namespace: 'health'
|
52
|
+
}),
|
53
|
+
authCategoryReadPermissionsSync: factory('authCategoryReadPermissionsSync', {
|
54
|
+
namespace: 'health'
|
55
|
+
}),
|
56
|
+
authCharacteristicReadPermissions: factory('authCharacteristicReadPermissions', {
|
57
|
+
namespace: 'health'
|
58
|
+
}),
|
59
|
+
authCharacteristicReadPermissionsSync: factory('authCharacteristicReadPermissionsSync', {
|
60
|
+
namespace: 'health'
|
61
|
+
}),
|
62
|
+
authQuantityRWPermissions: factory('authQuantityRWPermissions', {
|
63
|
+
namespace: 'health'
|
64
|
+
}),
|
65
|
+
authQuantityRWPermissionsSync: factory('authQuantityRWPermissionsSync', {
|
66
|
+
namespace: 'health'
|
67
|
+
}),
|
68
|
+
authCategoryRWPermissions: factory('authCategoryRWPermissions', {
|
69
|
+
namespace: 'health'
|
70
|
+
}),
|
71
|
+
authCategoryRWPermissionsSync: factory('authCategoryRWPermissionsSync', {
|
72
|
+
namespace: 'health'
|
73
|
+
}),
|
74
|
+
saveQuantityData: factory('saveQuantityData', {
|
75
|
+
namespace: 'health'
|
76
|
+
}),
|
77
|
+
saveQuantityDataSync: factory('saveQuantityDataSync', {
|
78
|
+
namespace: 'health'
|
79
|
+
}),
|
80
|
+
saveQuantityNoTimeWithData: factory('saveQuantityNoTimeWithData', {
|
81
|
+
namespace: 'health'
|
82
|
+
}),
|
83
|
+
saveQuantityNoTimeWithDataSync: factory('saveQuantityNoTimeWithDataSync', {
|
84
|
+
namespace: 'health'
|
85
|
+
}),
|
86
|
+
saveBloodPressureData: factory('saveBloodPressureData', {
|
87
|
+
namespace: 'health'
|
88
|
+
}),
|
89
|
+
saveBloodPressureDataSync: factory('saveBloodPressureDataSync', {
|
90
|
+
namespace: 'health'
|
91
|
+
}),
|
92
|
+
readQuantityDataWithType: factory('readQuantityDataWithType', {
|
93
|
+
namespace: 'health'
|
94
|
+
}),
|
95
|
+
readQuantityDataWithTypeSync: factory('readQuantityDataWithTypeSync', {
|
96
|
+
namespace: 'health'
|
97
|
+
}),
|
98
|
+
deleteQuantityDataType: factory('deleteQuantityDataType', {
|
99
|
+
namespace: 'health'
|
100
|
+
}),
|
101
|
+
deleteQuantityDataTypeSync: factory('deleteQuantityDataTypeSync', {
|
102
|
+
namespace: 'health'
|
103
|
+
}),
|
104
|
+
readCharacteristicDataWithType: factory('readCharacteristicDataWithType', {
|
105
|
+
namespace: 'health'
|
106
|
+
}),
|
107
|
+
readCharacteristicDataWithTypeSync: factory('readCharacteristicDataWithTypeSync', {
|
108
|
+
namespace: 'health'
|
109
|
+
}),
|
110
|
+
saveCategoryData: factory('saveCategoryData', {
|
111
|
+
namespace: 'health'
|
112
|
+
}),
|
113
|
+
saveCategoryDataSync: factory('saveCategoryDataSync', {
|
114
|
+
namespace: 'health'
|
115
|
+
}),
|
116
|
+
saveCategoryNoTimeWithData: factory('saveCategoryNoTimeWithData', {
|
117
|
+
namespace: 'health'
|
118
|
+
}),
|
119
|
+
saveCategoryNoTimeWithDataSync: factory('saveCategoryNoTimeWithDataSync', {
|
120
|
+
namespace: 'health'
|
121
|
+
}),
|
122
|
+
readCategoryDataWithType: factory('readCategoryDataWithType', {
|
123
|
+
namespace: 'health'
|
124
|
+
}),
|
125
|
+
readCategoryDataWithTypeSync: factory('readCategoryDataWithTypeSync', {
|
126
|
+
namespace: 'health'
|
127
|
+
})
|
128
|
+
};
|
package/lib/cloud/health.js
CHANGED
package/lib/cloud/index.d.ts
CHANGED
package/lib/cloud/index.js
CHANGED
@@ -16,6 +16,8 @@ export * from './recipe';
|
|
16
16
|
|
17
17
|
// 激光清洁
|
18
18
|
export * from './laser-clean';
|
19
|
-
export * from './health';
|
20
19
|
export * from './gateway';
|
21
|
-
export * from './energy';
|
20
|
+
export * from './energy';
|
21
|
+
|
22
|
+
// 健康: 由于HealthKit与云 API scope 冲突,所以需要单独导出 merge 到 health 对象
|
23
|
+
export { health as healthCloudApi } from './health';
|
package/lib/index.d.ts
CHANGED
@@ -1,5 +1,74 @@
|
|
1
1
|
export * from './constants';
|
2
|
-
export * from './
|
2
|
+
export * from './BaseKit-3.17.7';
|
3
|
+
export * from './BizKit-4.10.4';
|
4
|
+
export * from './DeviceKit-4.13.1';
|
5
|
+
export * from './MiniKit-3.14.1';
|
6
|
+
export * from './PlayNetKit-1.1.3';
|
7
|
+
export * from './MapKit-3.4.13';
|
8
|
+
export * from './HomeKit-3.1.4';
|
9
|
+
export * from './P2PKit-2.0.3';
|
10
|
+
export * from './OutdoorKit-1.0.4';
|
11
|
+
import * as device from './DeviceKit-4.13.1';
|
12
|
+
export declare const health: {
|
13
|
+
getHealthConnectStatus: typeof ty.health.getHealthConnectStatus;
|
14
|
+
getHealthConnectStatusSync: typeof ty.health.getHealthConnectStatusSync;
|
15
|
+
insertRecords: typeof ty.health.insertRecords;
|
16
|
+
insertRecordsSync: typeof ty.health.insertRecordsSync;
|
17
|
+
authStatusPermissions: typeof ty.health.authStatusPermissions;
|
18
|
+
authStatusPermissionsSync: typeof ty.health.authStatusPermissionsSync;
|
19
|
+
getSaveQuantityPermission: typeof ty.health.getSaveQuantityPermission;
|
20
|
+
getSaveQuantityPermissionSync: typeof ty.health.getSaveQuantityPermissionSync;
|
21
|
+
authQuantityWritePermissions: typeof ty.health.authQuantityWritePermissions;
|
22
|
+
authQuantityWritePermissionsSync: typeof ty.health.authQuantityWritePermissionsSync;
|
23
|
+
authCategoryWritePermissions: typeof ty.health.authCategoryWritePermissions;
|
24
|
+
authCategoryWritePermissionsSync: typeof ty.health.authCategoryWritePermissionsSync;
|
25
|
+
authQuantityReadPermissions: typeof ty.health.authQuantityReadPermissions;
|
26
|
+
authQuantityReadPermissionsSync: typeof ty.health.authQuantityReadPermissionsSync;
|
27
|
+
authCategoryReadPermissions: typeof ty.health.authCategoryReadPermissions;
|
28
|
+
authCategoryReadPermissionsSync: typeof ty.health.authCategoryReadPermissionsSync;
|
29
|
+
authCharacteristicReadPermissions: typeof ty.health.authCharacteristicReadPermissions;
|
30
|
+
authCharacteristicReadPermissionsSync: typeof ty.health.authCharacteristicReadPermissionsSync;
|
31
|
+
authQuantityRWPermissions: typeof ty.health.authQuantityRWPermissions;
|
32
|
+
authQuantityRWPermissionsSync: typeof ty.health.authQuantityRWPermissionsSync;
|
33
|
+
authCategoryRWPermissions: typeof ty.health.authCategoryRWPermissions;
|
34
|
+
authCategoryRWPermissionsSync: typeof ty.health.authCategoryRWPermissionsSync;
|
35
|
+
saveQuantityData: typeof ty.health.saveQuantityData;
|
36
|
+
saveQuantityDataSync: typeof ty.health.saveQuantityDataSync;
|
37
|
+
saveQuantityNoTimeWithData: typeof ty.health.saveQuantityNoTimeWithData;
|
38
|
+
saveQuantityNoTimeWithDataSync: typeof ty.health.saveQuantityNoTimeWithDataSync;
|
39
|
+
saveBloodPressureData: typeof ty.health.saveBloodPressureData;
|
40
|
+
saveBloodPressureDataSync: typeof ty.health.saveBloodPressureDataSync;
|
41
|
+
readQuantityDataWithType: typeof ty.health.readQuantityDataWithType;
|
42
|
+
readQuantityDataWithTypeSync: typeof ty.health.readQuantityDataWithTypeSync;
|
43
|
+
deleteQuantityDataType: typeof ty.health.deleteQuantityDataType;
|
44
|
+
deleteQuantityDataTypeSync: typeof ty.health.deleteQuantityDataTypeSync;
|
45
|
+
readCharacteristicDataWithType: typeof ty.health.readCharacteristicDataWithType;
|
46
|
+
readCharacteristicDataWithTypeSync: typeof ty.health.readCharacteristicDataWithTypeSync;
|
47
|
+
saveCategoryData: typeof ty.health.saveCategoryData;
|
48
|
+
saveCategoryDataSync: typeof ty.health.saveCategoryDataSync;
|
49
|
+
saveCategoryNoTimeWithData: typeof ty.health.saveCategoryNoTimeWithData;
|
50
|
+
saveCategoryNoTimeWithDataSync: typeof ty.health.saveCategoryNoTimeWithDataSync;
|
51
|
+
readCategoryDataWithType: typeof ty.health.readCategoryDataWithType;
|
52
|
+
readCategoryDataWithTypeSync: typeof ty.health.readCategoryDataWithTypeSync;
|
53
|
+
addPanelUser: typeof ty.health.addPanelUser;
|
54
|
+
updatePanelUser: typeof ty.health.updatePanelUser;
|
55
|
+
deletePanelUser: typeof ty.health.deletePanelUser;
|
56
|
+
getPanelUserList: typeof ty.health.getPanelUserList;
|
57
|
+
getDefaultAvatarList: typeof ty.health.getDefaultAvatarList;
|
58
|
+
reportPanelBpgData: typeof ty.health.reportPanelBpgData;
|
59
|
+
reportSingleBpgData: typeof ty.health.reportSingleBpgData;
|
60
|
+
updateBpgDataRemark: typeof ty.health.updateBpgDataRemark;
|
61
|
+
deleteBpgData: typeof ty.health.deleteBpgData;
|
62
|
+
getBpgDataHistory: typeof ty.health.getBpgDataHistory;
|
63
|
+
getBpgDataTrendLatest: typeof ty.health.getBpgDataTrendLatest;
|
64
|
+
getBpgDataLevnum: typeof ty.health.getBpgDataLevnum;
|
65
|
+
getBpgDataTrend: typeof ty.health.getBpgDataTrend;
|
66
|
+
getBpgDataDays: typeof ty.health.getBpgDataDays;
|
67
|
+
getBpgDataUnallocated: typeof ty.health.getBpgDataUnallocated;
|
68
|
+
updateBpgDataUnallocated: typeof ty.health.updateBpgDataUnallocated;
|
69
|
+
deleteBpgDataUnallocated: typeof ty.health.deleteBpgDataUnallocated;
|
70
|
+
};
|
71
|
+
export { device };
|
3
72
|
export * from './lifecycles';
|
4
73
|
export { default as getApp } from './getApp';
|
5
74
|
export { default as getBoundingClientRect } from './getBoundingClientRect';
|
package/lib/index.js
CHANGED
@@ -1,8 +1,22 @@
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
1
2
|
/// <reference path="../@types/api.d.ts" />
|
2
3
|
|
3
4
|
import { factory } from './utils';
|
4
5
|
export * from './constants';
|
5
|
-
export * from './
|
6
|
+
export * from './BaseKit-3.17.7';
|
7
|
+
export * from './BizKit-4.10.4';
|
8
|
+
export * from './DeviceKit-4.13.1';
|
9
|
+
export * from './MiniKit-3.14.1';
|
10
|
+
export * from './PlayNetKit-1.1.3';
|
11
|
+
export * from './MapKit-3.4.13';
|
12
|
+
export * from './HomeKit-3.1.4';
|
13
|
+
export * from './P2PKit-2.0.3';
|
14
|
+
export * from './OutdoorKit-1.0.4';
|
15
|
+
import * as device from './DeviceKit-4.13.1';
|
16
|
+
import { healthCloudApi } from './cloud';
|
17
|
+
import { health as healthKit } from './HealthKit-5.18.4';
|
18
|
+
export const health = _objectSpread(_objectSpread({}, healthCloudApi), healthKit);
|
19
|
+
export { device };
|
6
20
|
export * from './lifecycles';
|
7
21
|
export { default as getApp } from './getApp';
|
8
22
|
export { default as getBoundingClientRect } from './getBoundingClientRect';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "1.6.
|
3
|
+
"version": "1.6.17",
|
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.
|
33
|
-
"@ray-js/router": "1.6.
|
32
|
+
"@ray-js/framework": "1.6.17",
|
33
|
+
"@ray-js/router": "1.6.17",
|
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.
|
39
|
+
"@ray-js/cli": "1.6.17",
|
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": "
|
49
|
+
"gitHead": "394c90650f5a37897a017020f9971500d9423a13"
|
50
50
|
}
|
package/lib/all-kits.d.ts
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
export * from './BaseKit-3.17.7';
|
2
|
-
export * from './BizKit-4.10.4';
|
3
|
-
export * from './DeviceKit-4.13.1';
|
4
|
-
export * from './MiniKit-3.14.1';
|
5
|
-
export * from './PlayNetKit-1.1.3';
|
6
|
-
export * from './MapKit-3.4.13';
|
7
|
-
export * from './HomeKit-3.1.4';
|
8
|
-
export * from './P2PKit-2.0.3';
|
9
|
-
export * from './OutdoorKit-1.0.4';
|
10
|
-
import * as device from './DeviceKit-4.13.1';
|
11
|
-
export { device };
|
package/lib/all-kits.js
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
export * from './BaseKit-3.17.7';
|
2
|
-
export * from './BizKit-4.10.4';
|
3
|
-
export * from './DeviceKit-4.13.1';
|
4
|
-
export * from './MiniKit-3.14.1';
|
5
|
-
export * from './PlayNetKit-1.1.3';
|
6
|
-
export * from './MapKit-3.4.13';
|
7
|
-
export * from './HomeKit-3.1.4';
|
8
|
-
export * from './P2PKit-2.0.3';
|
9
|
-
export * from './OutdoorKit-1.0.4';
|
10
|
-
import * as device from './DeviceKit-4.13.1';
|
11
|
-
export { device };
|