@ray-js/api 1.7.79 → 1.7.80
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/AIKit.d.ts +1140 -1009
- package/@types/AVideoKit.d.ts +26 -101
- package/@types/BaseKit.d.ts +234 -210
- package/@types/BizKit.d.ts +271 -296
- package/@types/DeviceKit.d.ts +57 -88
- package/@types/GroupCITestKit.d.ts +1 -3
- package/@types/HealthKit.d.ts +273 -230
- package/@types/HomeKit.d.ts +1062 -891
- package/@types/IPCKit.d.ts +23 -50
- package/@types/LightKit.d.ts +2 -2
- package/@types/MapKit.d.ts +592 -381
- package/@types/MediaPlayerKit.d.ts +4 -28
- package/@types/MiniKit.d.ts +198 -375
- package/@types/P2PKit.d.ts +139 -205
- package/@types/PayKit.d.ts +10 -79
- package/@types/SweeperKit.d.ts +10 -10
- package/@types/ThirdAuthKit.d.ts +28 -252
- package/@types/WearKit.d.ts +630 -1593
- package/@types/api-extend.d.ts +0 -63
- package/lib/AIKit-1.6.0.d.ts +732 -35
- package/lib/AIKit-1.6.0.js +732 -51
- package/lib/BaseKit-3.17.7.d.ts +0 -214
- package/lib/BaseKit-3.17.7.js +1 -227
- package/lib/DeviceKit-4.13.1.d.ts +3666 -0
- package/lib/DeviceKit-4.13.1.js +3666 -0
- package/lib/HealthKit-6.5.0.d.ts +603 -0
- package/lib/HealthKit-6.5.0.js +603 -0
- package/lib/HomeKit-3.1.4.d.ts +4 -0
- package/lib/HomeKit-3.1.4.js +4 -0
- package/lib/IPCKit-6.4.5.d.ts +0 -1
- package/lib/IPCKit-6.4.5.js +0 -1
- package/lib/MapKit-3.4.13.d.ts +251 -0
- package/lib/MapKit-3.4.13.js +251 -0
- package/lib/MediaKit-3.4.1.d.ts +16 -0
- package/lib/MediaKit-3.4.1.js +16 -0
- package/lib/PlayNetKit-1.3.30.d.ts +930 -0
- package/lib/PlayNetKit-1.3.30.js +930 -0
- package/lib/cloud/alarm.d.ts +38 -5
- package/lib/cloud/alarm.js +38 -5
- package/lib/cloud/device.d.ts +42 -6
- package/lib/cloud/device.js +42 -6
- package/lib/cloud/gateway.d.ts +16 -0
- package/lib/cloud/gateway.js +16 -0
- package/lib/cloud/health.d.ts +1 -0
- package/lib/cloud/health.js +272 -0
- package/lib/cloud/interface.d.ts +161 -0
- package/lib/cloud/interface.js +18 -0
- package/lib/cloud/statistic.d.ts +112 -26
- package/lib/cloud/statistic.js +112 -26
- package/lib/cloud/timer.d.ts +2 -4
- package/lib/nativeRouters/outdoors.d.ts +2 -0
- package/lib/nativeRouters/outdoors.js +2 -0
- package/lib/nativeRouters/remoteGroup.d.ts +2 -0
- package/lib/nativeRouters/remoteGroup.js +2 -0
- package/lib/panel/publishDps.js +1 -1
- package/package.json +5 -5
package/lib/HealthKit-6.5.0.d.ts
CHANGED
|
@@ -2,210 +2,813 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
* @since @ray-js/ray 1.6.17
|
|
5
|
+
* @example 基础调用
|
|
6
|
+
* ```tsx
|
|
7
|
+
* import { health } from '@ray-js/ray';
|
|
8
|
+
*
|
|
9
|
+
* const { getHealthConnectStatus } = health;
|
|
10
|
+
*
|
|
11
|
+
* getHealthConnectStatus({
|
|
12
|
+
* success: (status) => {
|
|
13
|
+
* console.log('Health Connect status:', status);
|
|
14
|
+
* },
|
|
15
|
+
* fail: (error) => {
|
|
16
|
+
* console.log('getHealthConnectStatus fail', error.errorMsg);
|
|
17
|
+
* },
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
5
20
|
*/
|
|
6
21
|
export declare const getHealthConnectStatus: typeof ty.health.getHealthConnectStatus;
|
|
7
22
|
/**
|
|
8
23
|
* @public
|
|
9
24
|
* @since @ray-js/ray 1.6.17
|
|
25
|
+
* @example 基础调用
|
|
26
|
+
* ```tsx
|
|
27
|
+
* import { health } from '@ray-js/ray';
|
|
28
|
+
*
|
|
29
|
+
* const { getHealthConnectStatusSync } = health;
|
|
30
|
+
*
|
|
31
|
+
* const result = getHealthConnectStatusSync();
|
|
32
|
+
* console.log('Health Connect status:', result);
|
|
33
|
+
* ```
|
|
10
34
|
*/
|
|
11
35
|
export declare const getHealthConnectStatusSync: typeof ty.health.getHealthConnectStatusSync;
|
|
12
36
|
/**
|
|
13
37
|
* @public
|
|
14
38
|
* @since @ray-js/ray 1.6.17
|
|
39
|
+
* @example 基础调用
|
|
40
|
+
* ```tsx
|
|
41
|
+
* import { health } from '@ray-js/ray';
|
|
42
|
+
*
|
|
43
|
+
* const { insertRecords } = health;
|
|
44
|
+
*
|
|
45
|
+
* const records = JSON.stringify([{ type: 'steps', value: 1000 }]);
|
|
46
|
+
* insertRecords({
|
|
47
|
+
* request: records,
|
|
48
|
+
* success: (result) => {
|
|
49
|
+
* console.log('insertRecords success', result);
|
|
50
|
+
* },
|
|
51
|
+
* fail: (error) => {
|
|
52
|
+
* console.log('insertRecords fail', error.errorMsg);
|
|
53
|
+
* },
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
15
56
|
*/
|
|
16
57
|
export declare const insertRecords: typeof ty.health.insertRecords;
|
|
17
58
|
/**
|
|
18
59
|
* @public
|
|
19
60
|
* @since @ray-js/ray 1.6.17
|
|
61
|
+
* @example 基础调用
|
|
62
|
+
* ```tsx
|
|
63
|
+
* import { health } from '@ray-js/ray';
|
|
64
|
+
*
|
|
65
|
+
* const { insertRecordsSync } = health;
|
|
66
|
+
*
|
|
67
|
+
* const records = JSON.stringify([{ type: 'steps', value: 1000 }]);
|
|
68
|
+
* const result = insertRecordsSync({ request: records });
|
|
69
|
+
* console.log('insertRecordsSync result', result);
|
|
70
|
+
* ```
|
|
20
71
|
*/
|
|
21
72
|
export declare const insertRecordsSync: typeof ty.health.insertRecordsSync;
|
|
22
73
|
/**
|
|
23
74
|
* @public
|
|
24
75
|
* @since @ray-js/ray 1.6.17
|
|
76
|
+
* @example 基础调用
|
|
77
|
+
* ```tsx
|
|
78
|
+
* import { health } from '@ray-js/ray';
|
|
79
|
+
*
|
|
80
|
+
* const { authStatusPermissions } = health;
|
|
81
|
+
*
|
|
82
|
+
* authStatusPermissions({
|
|
83
|
+
* readPermissions: ['1', '2'],
|
|
84
|
+
* writePermissions: ['1', '2'],
|
|
85
|
+
* success: (result) => {
|
|
86
|
+
* console.log('authStatusPermissions value:', result.value);
|
|
87
|
+
* },
|
|
88
|
+
* fail: (error) => {
|
|
89
|
+
* console.log('authStatusPermissions fail', error.errorMsg);
|
|
90
|
+
* },
|
|
91
|
+
* });
|
|
92
|
+
* ```
|
|
25
93
|
*/
|
|
26
94
|
export declare const authStatusPermissions: typeof ty.health.authStatusPermissions;
|
|
27
95
|
/**
|
|
28
96
|
* @public
|
|
29
97
|
* @since @ray-js/ray 1.6.17
|
|
98
|
+
* @example 基础调用
|
|
99
|
+
* ```tsx
|
|
100
|
+
* import { health } from '@ray-js/ray';
|
|
101
|
+
*
|
|
102
|
+
* const { authStatusPermissionsSync } = health;
|
|
103
|
+
*
|
|
104
|
+
* const result = authStatusPermissionsSync({
|
|
105
|
+
* readPermissions: ['1', '2'],
|
|
106
|
+
* writePermissions: ['1', '2'],
|
|
107
|
+
* });
|
|
108
|
+
* console.log('authStatusPermissionsSync value:', result.value);
|
|
109
|
+
* ```
|
|
30
110
|
*/
|
|
31
111
|
export declare const authStatusPermissionsSync: typeof ty.health.authStatusPermissionsSync;
|
|
32
112
|
/**
|
|
33
113
|
* @public
|
|
34
114
|
* @since @ray-js/ray 1.6.17
|
|
115
|
+
* @example 基础调用
|
|
116
|
+
* ```tsx
|
|
117
|
+
* import { health } from '@ray-js/ray';
|
|
118
|
+
*
|
|
119
|
+
* const { getSaveQuantityPermission } = health;
|
|
120
|
+
*
|
|
121
|
+
* getSaveQuantityPermission({
|
|
122
|
+
* writePermission: 1,
|
|
123
|
+
* success: (result) => {
|
|
124
|
+
* console.log('getSaveQuantityPermission value:', result.value);
|
|
125
|
+
* },
|
|
126
|
+
* fail: (error) => {
|
|
127
|
+
* console.log('getSaveQuantityPermission fail', error.errorMsg);
|
|
128
|
+
* },
|
|
129
|
+
* });
|
|
130
|
+
* ```
|
|
35
131
|
*/
|
|
36
132
|
export declare const getSaveQuantityPermission: typeof ty.health.getSaveQuantityPermission;
|
|
37
133
|
/**
|
|
38
134
|
* @public
|
|
39
135
|
* @since @ray-js/ray 1.6.17
|
|
136
|
+
* @example 基础调用
|
|
137
|
+
* ```tsx
|
|
138
|
+
* import { health } from '@ray-js/ray';
|
|
139
|
+
*
|
|
140
|
+
* const { getSaveQuantityPermissionSync } = health;
|
|
141
|
+
*
|
|
142
|
+
* const result = getSaveQuantityPermissionSync({
|
|
143
|
+
* writePermission: 1,
|
|
144
|
+
* });
|
|
145
|
+
* console.log('getSaveQuantityPermissionSync value:', result.value);
|
|
146
|
+
* ```
|
|
40
147
|
*/
|
|
41
148
|
export declare const getSaveQuantityPermissionSync: typeof ty.health.getSaveQuantityPermissionSync;
|
|
42
149
|
/**
|
|
43
150
|
* @public
|
|
44
151
|
* @since @ray-js/ray 1.6.17
|
|
152
|
+
* @example 基础调用
|
|
153
|
+
* ```tsx
|
|
154
|
+
* import { health } from '@ray-js/ray';
|
|
155
|
+
*
|
|
156
|
+
* const { authQuantityWritePermissions } = health;
|
|
157
|
+
*
|
|
158
|
+
* authQuantityWritePermissions({
|
|
159
|
+
* permissions: ['1', '2'],
|
|
160
|
+
* success: () => {
|
|
161
|
+
* console.log('authQuantityWritePermissions success');
|
|
162
|
+
* },
|
|
163
|
+
* fail: (error) => {
|
|
164
|
+
* console.log('authQuantityWritePermissions fail', error.errorMsg);
|
|
165
|
+
* },
|
|
166
|
+
* });
|
|
167
|
+
* ```
|
|
45
168
|
*/
|
|
46
169
|
export declare const authQuantityWritePermissions: typeof ty.health.authQuantityWritePermissions;
|
|
47
170
|
/**
|
|
48
171
|
* @public
|
|
49
172
|
* @since @ray-js/ray 1.6.17
|
|
173
|
+
* @example 基础调用
|
|
174
|
+
* ```tsx
|
|
175
|
+
* import { health } from '@ray-js/ray';
|
|
176
|
+
*
|
|
177
|
+
* const { authQuantityWritePermissionsSync } = health;
|
|
178
|
+
*
|
|
179
|
+
* authQuantityWritePermissionsSync({
|
|
180
|
+
* permissions: ['1', '2'],
|
|
181
|
+
* });
|
|
182
|
+
* ```
|
|
50
183
|
*/
|
|
51
184
|
export declare const authQuantityWritePermissionsSync: typeof ty.health.authQuantityWritePermissionsSync;
|
|
52
185
|
/**
|
|
53
186
|
* @public
|
|
54
187
|
* @since @ray-js/ray 1.6.17
|
|
188
|
+
* @example 基础调用
|
|
189
|
+
* ```tsx
|
|
190
|
+
* import { health } from '@ray-js/ray';
|
|
191
|
+
*
|
|
192
|
+
* const { authCategoryWritePermissions } = health;
|
|
193
|
+
*
|
|
194
|
+
* authCategoryWritePermissions({
|
|
195
|
+
* permissions: ['1', '2'],
|
|
196
|
+
* success: () => {
|
|
197
|
+
* console.log('authCategoryWritePermissions success');
|
|
198
|
+
* },
|
|
199
|
+
* fail: (error) => {
|
|
200
|
+
* console.log('authCategoryWritePermissions fail', error.errorMsg);
|
|
201
|
+
* },
|
|
202
|
+
* });
|
|
203
|
+
* ```
|
|
55
204
|
*/
|
|
56
205
|
export declare const authCategoryWritePermissions: typeof ty.health.authCategoryWritePermissions;
|
|
57
206
|
/**
|
|
58
207
|
* @public
|
|
59
208
|
* @since @ray-js/ray 1.6.17
|
|
209
|
+
* @example 基础调用
|
|
210
|
+
* ```tsx
|
|
211
|
+
* import { health } from '@ray-js/ray';
|
|
212
|
+
*
|
|
213
|
+
* const { authCategoryWritePermissionsSync } = health;
|
|
214
|
+
*
|
|
215
|
+
* authCategoryWritePermissionsSync({
|
|
216
|
+
* permissions: ['1', '2'],
|
|
217
|
+
* });
|
|
218
|
+
* ```
|
|
60
219
|
*/
|
|
61
220
|
export declare const authCategoryWritePermissionsSync: typeof ty.health.authCategoryWritePermissionsSync;
|
|
62
221
|
/**
|
|
63
222
|
* @public
|
|
64
223
|
* @since @ray-js/ray 1.6.17
|
|
224
|
+
* @example 基础调用
|
|
225
|
+
* ```tsx
|
|
226
|
+
* import { health } from '@ray-js/ray';
|
|
227
|
+
*
|
|
228
|
+
* const { authQuantityReadPermissions } = health;
|
|
229
|
+
*
|
|
230
|
+
* authQuantityReadPermissions({
|
|
231
|
+
* permissions: ['1', '2'],
|
|
232
|
+
* success: () => {
|
|
233
|
+
* console.log('authQuantityReadPermissions success');
|
|
234
|
+
* },
|
|
235
|
+
* fail: (error) => {
|
|
236
|
+
* console.log('authQuantityReadPermissions fail', error.errorMsg);
|
|
237
|
+
* },
|
|
238
|
+
* });
|
|
239
|
+
* ```
|
|
65
240
|
*/
|
|
66
241
|
export declare const authQuantityReadPermissions: typeof ty.health.authQuantityReadPermissions;
|
|
67
242
|
/**
|
|
68
243
|
* @public
|
|
69
244
|
* @since @ray-js/ray 1.6.17
|
|
245
|
+
* @example 基础调用
|
|
246
|
+
* ```tsx
|
|
247
|
+
* import { health } from '@ray-js/ray';
|
|
248
|
+
*
|
|
249
|
+
* const { authQuantityReadPermissionsSync } = health;
|
|
250
|
+
*
|
|
251
|
+
* authQuantityReadPermissionsSync({
|
|
252
|
+
* permissions: ['1', '2'],
|
|
253
|
+
* });
|
|
254
|
+
* ```
|
|
70
255
|
*/
|
|
71
256
|
export declare const authQuantityReadPermissionsSync: typeof ty.health.authQuantityReadPermissionsSync;
|
|
72
257
|
/**
|
|
73
258
|
* @public
|
|
74
259
|
* @since @ray-js/ray 1.6.17
|
|
260
|
+
* @example 基础调用
|
|
261
|
+
* ```tsx
|
|
262
|
+
* import { health } from '@ray-js/ray';
|
|
263
|
+
*
|
|
264
|
+
* const { authCategoryReadPermissions } = health;
|
|
265
|
+
*
|
|
266
|
+
* authCategoryReadPermissions({
|
|
267
|
+
* permissions: ['1', '2'],
|
|
268
|
+
* success: () => {
|
|
269
|
+
* console.log('authCategoryReadPermissions success');
|
|
270
|
+
* },
|
|
271
|
+
* fail: (error) => {
|
|
272
|
+
* console.log('authCategoryReadPermissions fail', error.errorMsg);
|
|
273
|
+
* },
|
|
274
|
+
* });
|
|
275
|
+
* ```
|
|
75
276
|
*/
|
|
76
277
|
export declare const authCategoryReadPermissions: typeof ty.health.authCategoryReadPermissions;
|
|
77
278
|
/**
|
|
78
279
|
* @public
|
|
79
280
|
* @since @ray-js/ray 1.6.17
|
|
281
|
+
* @example 基础调用
|
|
282
|
+
* ```tsx
|
|
283
|
+
* import { health } from '@ray-js/ray';
|
|
284
|
+
*
|
|
285
|
+
* const { authCategoryReadPermissionsSync } = health;
|
|
286
|
+
*
|
|
287
|
+
* authCategoryReadPermissionsSync({
|
|
288
|
+
* permissions: ['1', '2'],
|
|
289
|
+
* });
|
|
290
|
+
* ```
|
|
80
291
|
*/
|
|
81
292
|
export declare const authCategoryReadPermissionsSync: typeof ty.health.authCategoryReadPermissionsSync;
|
|
82
293
|
/**
|
|
83
294
|
* @public
|
|
84
295
|
* @since @ray-js/ray 1.6.17
|
|
296
|
+
* @example 基础调用
|
|
297
|
+
* ```tsx
|
|
298
|
+
* import { health } from '@ray-js/ray';
|
|
299
|
+
*
|
|
300
|
+
* const { authCharacteristicReadPermissions } = health;
|
|
301
|
+
*
|
|
302
|
+
* authCharacteristicReadPermissions({
|
|
303
|
+
* permissions: ['1', '2'],
|
|
304
|
+
* success: () => {
|
|
305
|
+
* console.log('authCharacteristicReadPermissions success');
|
|
306
|
+
* },
|
|
307
|
+
* fail: (error) => {
|
|
308
|
+
* console.log('authCharacteristicReadPermissions fail', error.errorMsg);
|
|
309
|
+
* },
|
|
310
|
+
* });
|
|
311
|
+
* ```
|
|
85
312
|
*/
|
|
86
313
|
export declare const authCharacteristicReadPermissions: typeof ty.health.authCharacteristicReadPermissions;
|
|
87
314
|
/**
|
|
88
315
|
* @public
|
|
89
316
|
* @since @ray-js/ray 1.6.17
|
|
317
|
+
* @example 基础调用
|
|
318
|
+
* ```tsx
|
|
319
|
+
* import { health } from '@ray-js/ray';
|
|
320
|
+
*
|
|
321
|
+
* const { authCharacteristicReadPermissionsSync } = health;
|
|
322
|
+
*
|
|
323
|
+
* authCharacteristicReadPermissionsSync({
|
|
324
|
+
* permissions: ['1', '2'],
|
|
325
|
+
* });
|
|
326
|
+
* ```
|
|
90
327
|
*/
|
|
91
328
|
export declare const authCharacteristicReadPermissionsSync: typeof ty.health.authCharacteristicReadPermissionsSync;
|
|
92
329
|
/**
|
|
93
330
|
* @public
|
|
94
331
|
* @since @ray-js/ray 1.6.17
|
|
332
|
+
* @example 基础调用
|
|
333
|
+
* ```tsx
|
|
334
|
+
* import { health } from '@ray-js/ray';
|
|
335
|
+
*
|
|
336
|
+
* const { authQuantityRWPermissions } = health;
|
|
337
|
+
*
|
|
338
|
+
* authQuantityRWPermissions({
|
|
339
|
+
* permissions: ['1', '2'],
|
|
340
|
+
* success: () => {
|
|
341
|
+
* console.log('authQuantityRWPermissions success');
|
|
342
|
+
* },
|
|
343
|
+
* fail: (error) => {
|
|
344
|
+
* console.log('authQuantityRWPermissions fail', error.errorMsg);
|
|
345
|
+
* },
|
|
346
|
+
* });
|
|
347
|
+
* ```
|
|
95
348
|
*/
|
|
96
349
|
export declare const authQuantityRWPermissions: typeof ty.health.authQuantityRWPermissions;
|
|
97
350
|
/**
|
|
98
351
|
* @public
|
|
99
352
|
* @since @ray-js/ray 1.6.17
|
|
353
|
+
* @example 基础调用
|
|
354
|
+
* ```tsx
|
|
355
|
+
* import { health } from '@ray-js/ray';
|
|
356
|
+
*
|
|
357
|
+
* const { authQuantityRWPermissionsSync } = health;
|
|
358
|
+
*
|
|
359
|
+
* authQuantityRWPermissionsSync({
|
|
360
|
+
* permissions: ['1', '2'],
|
|
361
|
+
* });
|
|
362
|
+
* ```
|
|
100
363
|
*/
|
|
101
364
|
export declare const authQuantityRWPermissionsSync: typeof ty.health.authQuantityRWPermissionsSync;
|
|
102
365
|
/**
|
|
103
366
|
* @public
|
|
104
367
|
* @since @ray-js/ray 1.6.17
|
|
368
|
+
* @example 基础调用
|
|
369
|
+
* ```tsx
|
|
370
|
+
* import { health } from '@ray-js/ray';
|
|
371
|
+
*
|
|
372
|
+
* const { authCategoryRWPermissions } = health;
|
|
373
|
+
*
|
|
374
|
+
* authCategoryRWPermissions({
|
|
375
|
+
* permissions: ['1', '2'],
|
|
376
|
+
* success: () => {
|
|
377
|
+
* console.log('authCategoryRWPermissions success');
|
|
378
|
+
* },
|
|
379
|
+
* fail: (error) => {
|
|
380
|
+
* console.log('authCategoryRWPermissions fail', error.errorMsg);
|
|
381
|
+
* },
|
|
382
|
+
* });
|
|
383
|
+
* ```
|
|
105
384
|
*/
|
|
106
385
|
export declare const authCategoryRWPermissions: typeof ty.health.authCategoryRWPermissions;
|
|
107
386
|
/**
|
|
108
387
|
* @public
|
|
109
388
|
* @since @ray-js/ray 1.6.17
|
|
389
|
+
* @example 基础调用
|
|
390
|
+
* ```tsx
|
|
391
|
+
* import { health } from '@ray-js/ray';
|
|
392
|
+
*
|
|
393
|
+
* const { authCategoryRWPermissionsSync } = health;
|
|
394
|
+
*
|
|
395
|
+
* authCategoryRWPermissionsSync({
|
|
396
|
+
* permissions: ['1', '2'],
|
|
397
|
+
* });
|
|
398
|
+
* ```
|
|
110
399
|
*/
|
|
111
400
|
export declare const authCategoryRWPermissionsSync: typeof ty.health.authCategoryRWPermissionsSync;
|
|
112
401
|
/**
|
|
113
402
|
* @public
|
|
114
403
|
* @since @ray-js/ray 1.6.17
|
|
404
|
+
* @example 基础调用
|
|
405
|
+
* ```tsx
|
|
406
|
+
* import { health } from '@ray-js/ray';
|
|
407
|
+
*
|
|
408
|
+
* const { saveQuantityData } = health;
|
|
409
|
+
*
|
|
410
|
+
* saveQuantityData({
|
|
411
|
+
* type: 1,
|
|
412
|
+
* value: 65,
|
|
413
|
+
* unitType: 'kg',
|
|
414
|
+
* startTime: 1700000000,
|
|
415
|
+
* endTime: 1700000060,
|
|
416
|
+
* success: () => {
|
|
417
|
+
* console.log('saveQuantityData success');
|
|
418
|
+
* },
|
|
419
|
+
* fail: (error) => {
|
|
420
|
+
* console.log('saveQuantityData fail', error.errorMsg);
|
|
421
|
+
* },
|
|
422
|
+
* });
|
|
423
|
+
* ```
|
|
115
424
|
*/
|
|
116
425
|
export declare const saveQuantityData: typeof ty.health.saveQuantityData;
|
|
117
426
|
/**
|
|
118
427
|
* @public
|
|
119
428
|
* @since @ray-js/ray 1.6.17
|
|
429
|
+
* @example 基础调用
|
|
430
|
+
* ```tsx
|
|
431
|
+
* import { health } from '@ray-js/ray';
|
|
432
|
+
*
|
|
433
|
+
* const { saveQuantityDataSync } = health;
|
|
434
|
+
*
|
|
435
|
+
* saveQuantityDataSync({
|
|
436
|
+
* type: 1,
|
|
437
|
+
* value: 65,
|
|
438
|
+
* unitType: 'kg',
|
|
439
|
+
* startTime: 1700000000,
|
|
440
|
+
* endTime: 1700000060,
|
|
441
|
+
* });
|
|
442
|
+
* ```
|
|
120
443
|
*/
|
|
121
444
|
export declare const saveQuantityDataSync: typeof ty.health.saveQuantityDataSync;
|
|
122
445
|
/**
|
|
123
446
|
* @public
|
|
124
447
|
* @since @ray-js/ray 1.6.17
|
|
448
|
+
* @example 基础调用
|
|
449
|
+
* ```tsx
|
|
450
|
+
* import { health } from '@ray-js/ray';
|
|
451
|
+
*
|
|
452
|
+
* const { saveQuantityNoTimeWithData } = health;
|
|
453
|
+
*
|
|
454
|
+
* saveQuantityNoTimeWithData({
|
|
455
|
+
* type: 1,
|
|
456
|
+
* value: 65,
|
|
457
|
+
* unitType: 'kg',
|
|
458
|
+
* success: () => {
|
|
459
|
+
* console.log('saveQuantityNoTimeWithData success');
|
|
460
|
+
* },
|
|
461
|
+
* fail: (error) => {
|
|
462
|
+
* console.log('saveQuantityNoTimeWithData fail', error.errorMsg);
|
|
463
|
+
* },
|
|
464
|
+
* });
|
|
465
|
+
* ```
|
|
125
466
|
*/
|
|
126
467
|
export declare const saveQuantityNoTimeWithData: typeof ty.health.saveQuantityNoTimeWithData;
|
|
127
468
|
/**
|
|
128
469
|
* @public
|
|
129
470
|
* @since @ray-js/ray 1.6.17
|
|
471
|
+
* @example 基础调用
|
|
472
|
+
* ```tsx
|
|
473
|
+
* import { health } from '@ray-js/ray';
|
|
474
|
+
*
|
|
475
|
+
* const { saveQuantityNoTimeWithDataSync } = health;
|
|
476
|
+
*
|
|
477
|
+
* saveQuantityNoTimeWithDataSync({
|
|
478
|
+
* type: 1,
|
|
479
|
+
* value: 65,
|
|
480
|
+
* unitType: 'kg',
|
|
481
|
+
* });
|
|
482
|
+
* ```
|
|
130
483
|
*/
|
|
131
484
|
export declare const saveQuantityNoTimeWithDataSync: typeof ty.health.saveQuantityNoTimeWithDataSync;
|
|
132
485
|
/**
|
|
133
486
|
* @public
|
|
134
487
|
* @since @ray-js/ray 1.6.17
|
|
488
|
+
* @example 基础调用
|
|
489
|
+
* ```tsx
|
|
490
|
+
* import { health } from '@ray-js/ray';
|
|
491
|
+
*
|
|
492
|
+
* const { saveBloodPressureData } = health;
|
|
493
|
+
*
|
|
494
|
+
* saveBloodPressureData({
|
|
495
|
+
* systolic: 120,
|
|
496
|
+
* diastolic: 80,
|
|
497
|
+
* startTime: 1700000000,
|
|
498
|
+
* endTime: 1700000060,
|
|
499
|
+
* success: () => {
|
|
500
|
+
* console.log('saveBloodPressureData success');
|
|
501
|
+
* },
|
|
502
|
+
* fail: (error) => {
|
|
503
|
+
* console.log('saveBloodPressureData fail', error.errorMsg);
|
|
504
|
+
* },
|
|
505
|
+
* });
|
|
506
|
+
* ```
|
|
135
507
|
*/
|
|
136
508
|
export declare const saveBloodPressureData: typeof ty.health.saveBloodPressureData;
|
|
137
509
|
/**
|
|
138
510
|
* @public
|
|
139
511
|
* @since @ray-js/ray 1.6.17
|
|
512
|
+
* @example 基础调用
|
|
513
|
+
* ```tsx
|
|
514
|
+
* import { health } from '@ray-js/ray';
|
|
515
|
+
*
|
|
516
|
+
* const { saveBloodPressureDataSync } = health;
|
|
517
|
+
*
|
|
518
|
+
* saveBloodPressureDataSync({
|
|
519
|
+
* systolic: 120,
|
|
520
|
+
* diastolic: 80,
|
|
521
|
+
* startTime: 1700000000,
|
|
522
|
+
* endTime: 1700000060,
|
|
523
|
+
* });
|
|
524
|
+
* ```
|
|
140
525
|
*/
|
|
141
526
|
export declare const saveBloodPressureDataSync: typeof ty.health.saveBloodPressureDataSync;
|
|
142
527
|
/**
|
|
143
528
|
* @public
|
|
144
529
|
* @since @ray-js/ray 1.6.17
|
|
530
|
+
* @example 基础调用
|
|
531
|
+
* ```tsx
|
|
532
|
+
* import { health } from '@ray-js/ray';
|
|
533
|
+
*
|
|
534
|
+
* const { readQuantityDataWithType } = health;
|
|
535
|
+
*
|
|
536
|
+
* readQuantityDataWithType({
|
|
537
|
+
* type: 1,
|
|
538
|
+
* unitType: 'count',
|
|
539
|
+
* startTime: 1700000000,
|
|
540
|
+
* endTime: 1700086400,
|
|
541
|
+
* success: (result) => {
|
|
542
|
+
* console.log('readQuantityDataWithType success', result.value);
|
|
543
|
+
* },
|
|
544
|
+
* fail: (error) => {
|
|
545
|
+
* console.log('readQuantityDataWithType fail', error.errorMsg);
|
|
546
|
+
* },
|
|
547
|
+
* });
|
|
548
|
+
* ```
|
|
145
549
|
*/
|
|
146
550
|
export declare const readQuantityDataWithType: typeof ty.health.readQuantityDataWithType;
|
|
147
551
|
/**
|
|
148
552
|
* @public
|
|
149
553
|
* @since @ray-js/ray 1.6.17
|
|
554
|
+
* @example 基础调用
|
|
555
|
+
* ```tsx
|
|
556
|
+
* import { health } from '@ray-js/ray';
|
|
557
|
+
*
|
|
558
|
+
* const { readQuantityDataWithTypeSync } = health;
|
|
559
|
+
*
|
|
560
|
+
* const result = readQuantityDataWithTypeSync({
|
|
561
|
+
* type: 1,
|
|
562
|
+
* unitType: 'count',
|
|
563
|
+
* startTime: 1700000000,
|
|
564
|
+
* endTime: 1700086400,
|
|
565
|
+
* });
|
|
566
|
+
* console.log('readQuantityDataWithTypeSync result', result.value);
|
|
567
|
+
* ```
|
|
150
568
|
*/
|
|
151
569
|
export declare const readQuantityDataWithTypeSync: typeof ty.health.readQuantityDataWithTypeSync;
|
|
152
570
|
/**
|
|
153
571
|
* @public
|
|
154
572
|
* @since @ray-js/ray 1.6.17
|
|
573
|
+
* @example 基础调用
|
|
574
|
+
* ```tsx
|
|
575
|
+
* import { health } from '@ray-js/ray';
|
|
576
|
+
*
|
|
577
|
+
* const { deleteQuantityDataType } = health;
|
|
578
|
+
*
|
|
579
|
+
* deleteQuantityDataType({
|
|
580
|
+
* type: 1,
|
|
581
|
+
* startTime: 1700000000,
|
|
582
|
+
* endTime: 1700086400,
|
|
583
|
+
* success: () => {
|
|
584
|
+
* console.log('deleteQuantityDataType success');
|
|
585
|
+
* },
|
|
586
|
+
* fail: (error) => {
|
|
587
|
+
* console.log('deleteQuantityDataType fail', error.errorMsg);
|
|
588
|
+
* },
|
|
589
|
+
* });
|
|
590
|
+
* ```
|
|
155
591
|
*/
|
|
156
592
|
export declare const deleteQuantityDataType: typeof ty.health.deleteQuantityDataType;
|
|
157
593
|
/**
|
|
158
594
|
* @public
|
|
159
595
|
* @since @ray-js/ray 1.6.17
|
|
596
|
+
* @example 基础调用
|
|
597
|
+
* ```tsx
|
|
598
|
+
* import { health } from '@ray-js/ray';
|
|
599
|
+
*
|
|
600
|
+
* const { deleteQuantityDataTypeSync } = health;
|
|
601
|
+
*
|
|
602
|
+
* deleteQuantityDataTypeSync({
|
|
603
|
+
* type: 1,
|
|
604
|
+
* startTime: 1700000000,
|
|
605
|
+
* endTime: 1700086400,
|
|
606
|
+
* });
|
|
607
|
+
* ```
|
|
160
608
|
*/
|
|
161
609
|
export declare const deleteQuantityDataTypeSync: typeof ty.health.deleteQuantityDataTypeSync;
|
|
162
610
|
/**
|
|
163
611
|
* @public
|
|
164
612
|
* @since @ray-js/ray 1.6.17
|
|
613
|
+
* @example 基础调用
|
|
614
|
+
* ```tsx
|
|
615
|
+
* import { health } from '@ray-js/ray';
|
|
616
|
+
*
|
|
617
|
+
* const { readCharacteristicDataWithType } = health;
|
|
618
|
+
*
|
|
619
|
+
* readCharacteristicDataWithType({
|
|
620
|
+
* type: 1,
|
|
621
|
+
* success: (result) => {
|
|
622
|
+
* console.log('readCharacteristicDataWithType success', result.value);
|
|
623
|
+
* },
|
|
624
|
+
* fail: (error) => {
|
|
625
|
+
* console.log('readCharacteristicDataWithType fail', error.errorMsg);
|
|
626
|
+
* },
|
|
627
|
+
* });
|
|
628
|
+
* ```
|
|
165
629
|
*/
|
|
166
630
|
export declare const readCharacteristicDataWithType: typeof ty.health.readCharacteristicDataWithType;
|
|
167
631
|
/**
|
|
168
632
|
* @public
|
|
169
633
|
* @since @ray-js/ray 1.6.17
|
|
634
|
+
* @example 基础调用
|
|
635
|
+
* ```tsx
|
|
636
|
+
* import { health } from '@ray-js/ray';
|
|
637
|
+
*
|
|
638
|
+
* const { readCharacteristicDataWithTypeSync } = health;
|
|
639
|
+
*
|
|
640
|
+
* const result = readCharacteristicDataWithTypeSync({
|
|
641
|
+
* type: 1,
|
|
642
|
+
* });
|
|
643
|
+
* console.log('readCharacteristicDataWithTypeSync result', result.value);
|
|
644
|
+
* ```
|
|
170
645
|
*/
|
|
171
646
|
export declare const readCharacteristicDataWithTypeSync: typeof ty.health.readCharacteristicDataWithTypeSync;
|
|
172
647
|
/**
|
|
173
648
|
* @public
|
|
174
649
|
* @since @ray-js/ray 1.6.17
|
|
650
|
+
* @example 基础调用
|
|
651
|
+
* ```tsx
|
|
652
|
+
* import { health } from '@ray-js/ray';
|
|
653
|
+
*
|
|
654
|
+
* const { saveCategoryData } = health;
|
|
655
|
+
*
|
|
656
|
+
* saveCategoryData({
|
|
657
|
+
* type: 1,
|
|
658
|
+
* value: 1,
|
|
659
|
+
* startTime: 1700000000,
|
|
660
|
+
* endTime: 1700000060,
|
|
661
|
+
* success: () => {
|
|
662
|
+
* console.log('saveCategoryData success');
|
|
663
|
+
* },
|
|
664
|
+
* fail: (error) => {
|
|
665
|
+
* console.log('saveCategoryData fail', error.errorMsg);
|
|
666
|
+
* },
|
|
667
|
+
* });
|
|
668
|
+
* ```
|
|
175
669
|
*/
|
|
176
670
|
export declare const saveCategoryData: typeof ty.health.saveCategoryData;
|
|
177
671
|
/**
|
|
178
672
|
* @public
|
|
179
673
|
* @since @ray-js/ray 1.6.17
|
|
674
|
+
* @example 基础调用
|
|
675
|
+
* ```tsx
|
|
676
|
+
* import { health } from '@ray-js/ray';
|
|
677
|
+
*
|
|
678
|
+
* const { saveCategoryDataSync } = health;
|
|
679
|
+
*
|
|
680
|
+
* saveCategoryDataSync({
|
|
681
|
+
* type: 1,
|
|
682
|
+
* value: 1,
|
|
683
|
+
* startTime: 1700000000,
|
|
684
|
+
* endTime: 1700000060,
|
|
685
|
+
* });
|
|
686
|
+
* ```
|
|
180
687
|
*/
|
|
181
688
|
export declare const saveCategoryDataSync: typeof ty.health.saveCategoryDataSync;
|
|
182
689
|
/**
|
|
183
690
|
* @public
|
|
184
691
|
* @since @ray-js/ray 1.6.17
|
|
692
|
+
* @example 基础调用
|
|
693
|
+
* ```tsx
|
|
694
|
+
* import { health } from '@ray-js/ray';
|
|
695
|
+
*
|
|
696
|
+
* const { saveCategoryNoTimeWithData } = health;
|
|
697
|
+
*
|
|
698
|
+
* saveCategoryNoTimeWithData({
|
|
699
|
+
* type: 1,
|
|
700
|
+
* value: 1,
|
|
701
|
+
* success: () => {
|
|
702
|
+
* console.log('saveCategoryNoTimeWithData success');
|
|
703
|
+
* },
|
|
704
|
+
* fail: (error) => {
|
|
705
|
+
* console.log('saveCategoryNoTimeWithData fail', error.errorMsg);
|
|
706
|
+
* },
|
|
707
|
+
* });
|
|
708
|
+
* ```
|
|
185
709
|
*/
|
|
186
710
|
export declare const saveCategoryNoTimeWithData: typeof ty.health.saveCategoryNoTimeWithData;
|
|
187
711
|
/**
|
|
188
712
|
* @public
|
|
189
713
|
* @since @ray-js/ray 1.6.17
|
|
714
|
+
* @example 基础调用
|
|
715
|
+
* ```tsx
|
|
716
|
+
* import { health } from '@ray-js/ray';
|
|
717
|
+
*
|
|
718
|
+
* const { saveCategoryNoTimeWithDataSync } = health;
|
|
719
|
+
*
|
|
720
|
+
* saveCategoryNoTimeWithDataSync({
|
|
721
|
+
* type: 1,
|
|
722
|
+
* value: 1,
|
|
723
|
+
* });
|
|
724
|
+
* ```
|
|
190
725
|
*/
|
|
191
726
|
export declare const saveCategoryNoTimeWithDataSync: typeof ty.health.saveCategoryNoTimeWithDataSync;
|
|
192
727
|
/**
|
|
193
728
|
* @public
|
|
194
729
|
* @since @ray-js/ray 1.6.17
|
|
730
|
+
* @example 基础调用
|
|
731
|
+
* ```tsx
|
|
732
|
+
* import { health } from '@ray-js/ray';
|
|
733
|
+
*
|
|
734
|
+
* const { readCategoryDataWithType } = health;
|
|
735
|
+
*
|
|
736
|
+
* readCategoryDataWithType({
|
|
737
|
+
* type: 1,
|
|
738
|
+
* startTime: 1700000000,
|
|
739
|
+
* endTime: 1700086400,
|
|
740
|
+
* success: (result) => {
|
|
741
|
+
* console.log('readCategoryDataWithType success', result.value);
|
|
742
|
+
* },
|
|
743
|
+
* fail: (error) => {
|
|
744
|
+
* console.log('readCategoryDataWithType fail', error.errorMsg);
|
|
745
|
+
* },
|
|
746
|
+
* });
|
|
747
|
+
* ```
|
|
195
748
|
*/
|
|
196
749
|
export declare const readCategoryDataWithType: typeof ty.health.readCategoryDataWithType;
|
|
197
750
|
/**
|
|
198
751
|
* @public
|
|
199
752
|
* @since @ray-js/ray 1.6.17
|
|
753
|
+
* @example 基础调用
|
|
754
|
+
* ```tsx
|
|
755
|
+
* import { health } from '@ray-js/ray';
|
|
756
|
+
*
|
|
757
|
+
* const { readCategoryDataWithTypeSync } = health;
|
|
758
|
+
*
|
|
759
|
+
* const result = readCategoryDataWithTypeSync({
|
|
760
|
+
* type: 1,
|
|
761
|
+
* startTime: 1700000000,
|
|
762
|
+
* endTime: 1700086400,
|
|
763
|
+
* });
|
|
764
|
+
* console.log('readCategoryDataWithTypeSync result', result.value);
|
|
765
|
+
* ```
|
|
200
766
|
*/
|
|
201
767
|
export declare const readCategoryDataWithTypeSync: typeof ty.health.readCategoryDataWithTypeSync;
|
|
202
768
|
/**
|
|
203
769
|
* @public
|
|
204
770
|
* @since @ray-js/ray 1.7.4
|
|
771
|
+
* @example 基础调用
|
|
772
|
+
* ```tsx
|
|
773
|
+
* import { health } from '@ray-js/ray';
|
|
774
|
+
*
|
|
775
|
+
* const { queryBodyFatScaleAlgorithm } = health;
|
|
776
|
+
*
|
|
777
|
+
* queryBodyFatScaleAlgorithm({
|
|
778
|
+
* sex: 1,
|
|
779
|
+
* weight: 70,
|
|
780
|
+
* imp: 500,
|
|
781
|
+
* height: 175,
|
|
782
|
+
* birthday: 946684800000,
|
|
783
|
+
* time: 1700000000000,
|
|
784
|
+
* success: (result) => {
|
|
785
|
+
* console.log('queryBodyFatScaleAlgorithm success', result.bmi, result.fat);
|
|
786
|
+
* },
|
|
787
|
+
* fail: (error) => {
|
|
788
|
+
* console.log('queryBodyFatScaleAlgorithm fail', error.errorMsg);
|
|
789
|
+
* },
|
|
790
|
+
* });
|
|
791
|
+
* ```
|
|
205
792
|
*/
|
|
206
793
|
export declare const queryBodyFatScaleAlgorithm: typeof ty.health.queryBodyFatScaleAlgorithm;
|
|
207
794
|
/**
|
|
208
795
|
* @public
|
|
209
796
|
* @since @ray-js/ray 1.7.4
|
|
797
|
+
* @example 基础调用
|
|
798
|
+
* ```tsx
|
|
799
|
+
* import { health } from '@ray-js/ray';
|
|
800
|
+
*
|
|
801
|
+
* const { queryBodyFatScaleAlgorithmSync } = health;
|
|
802
|
+
*
|
|
803
|
+
* const result = queryBodyFatScaleAlgorithmSync({
|
|
804
|
+
* sex: 1,
|
|
805
|
+
* weight: 70,
|
|
806
|
+
* imp: 500,
|
|
807
|
+
* height: 175,
|
|
808
|
+
* birthday: 946684800000,
|
|
809
|
+
* time: 1700000000000,
|
|
810
|
+
* });
|
|
811
|
+
* console.log('queryBodyFatScaleAlgorithmSync result', result.bmi, result.fat);
|
|
812
|
+
* ```
|
|
210
813
|
*/
|
|
211
814
|
export declare const queryBodyFatScaleAlgorithmSync: typeof ty.health.queryBodyFatScaleAlgorithmSync;
|