@ray-js/api 1.7.69 → 1.7.71

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.
Files changed (154) hide show
  1. package/@types/AIKit.d.ts +5509 -610
  2. package/@types/AIStreamKit.d.ts +2641 -0
  3. package/@types/AVideoKit.d.ts +1827 -0
  4. package/@types/BaseKit.d.ts +8682 -1893
  5. package/@types/BizKit.d.ts +6639 -1038
  6. package/@types/CategoryCommonBizKit.d.ts +1459 -0
  7. package/@types/CommunityKit.d.ts +154 -0
  8. package/@types/DeviceKit.d.ts +18475 -5662
  9. package/@types/GroupCITestKit.d.ts +651 -0
  10. package/@types/HealthKit.d.ts +2290 -357
  11. package/@types/HomeKit.d.ts +4068 -182
  12. package/@types/IPCKit.d.ts +4327 -1227
  13. package/@types/LightKit.d.ts +125 -0
  14. package/@types/MapKit.d.ts +1560 -204
  15. package/@types/MediaKit.d.ts +136 -16
  16. package/@types/MediaPlayerKit.d.ts +47 -0
  17. package/@types/MiniKit.d.ts +2976 -628
  18. package/@types/OutdoorKit.d.ts +1337 -24
  19. package/@types/P2PKit.d.ts +622 -103
  20. package/@types/PayKit.d.ts +115 -0
  21. package/@types/PlayNetKit.d.ts +3454 -1309
  22. package/@types/SweeperKit.d.ts +154 -0
  23. package/@types/ThirdAuthKit.d.ts +324 -0
  24. package/@types/ThirdPartyDeviceKit.d.ts +410 -0
  25. package/@types/WearKit.d.ts +10177 -375
  26. package/@types/gateway.d.ts +349 -61
  27. package/@types/health.d.ts +486 -304
  28. package/lib/AIKit-1.6.0.d.ts +265 -41
  29. package/lib/AIKit-1.6.0.js +374 -120
  30. package/lib/BaseKit-3.17.7.d.ts +704 -0
  31. package/lib/BaseKit-3.17.7.js +720 -1
  32. package/lib/BizKit-4.10.4.d.ts +336 -0
  33. package/lib/BizKit-4.10.4.js +342 -5
  34. package/lib/DeviceKit-4.13.1.d.ts +996 -0
  35. package/lib/DeviceKit-4.13.1.js +1247 -249
  36. package/lib/HealthKit-6.5.0.d.ts +210 -44
  37. package/lib/HealthKit-6.5.0.js +295 -128
  38. package/lib/HomeKit-3.1.4.d.ts +20 -6
  39. package/lib/HomeKit-3.1.4.js +29 -14
  40. package/lib/IPCKit-6.4.5.d.ts +375 -77
  41. package/lib/IPCKit-6.4.5.js +525 -228
  42. package/lib/MapKit-3.4.13.d.ts +70 -16
  43. package/lib/MapKit-3.4.13.js +98 -47
  44. package/lib/MediaKit-3.4.1.d.ts +5 -3
  45. package/lib/MediaKit-3.4.1.js +7 -6
  46. package/lib/MiniKit-3.14.1.d.ts +300 -0
  47. package/lib/MiniKit-3.14.1.js +302 -0
  48. package/lib/OutdoorKit-1.0.4.d.ts +55 -13
  49. package/lib/OutdoorKit-1.0.4.js +78 -35
  50. package/lib/P2PKit-2.0.3.d.ts +125 -27
  51. package/lib/P2PKit-2.0.3.js +175 -78
  52. package/lib/PlayNetKit-1.3.30.d.ts +290 -60
  53. package/lib/PlayNetKit-1.3.30.js +407 -176
  54. package/lib/WearKit-1.1.6.d.ts +125 -27
  55. package/lib/WearKit-1.1.6.js +176 -77
  56. package/lib/all-kits.d.ts +10 -10
  57. package/lib/all-kits.js +10 -10
  58. package/lib/cloud/core.d.ts +31 -1
  59. package/lib/cloud/core.js +31 -1
  60. package/lib/cloud/device.d.ts +155 -24
  61. package/lib/cloud/device.js +153 -22
  62. package/lib/cloud/gateway.d.ts +254 -0
  63. package/lib/cloud/gateway.js +269 -9
  64. package/lib/cloud/health.d.ts +1 -0
  65. package/lib/cloud/health.js +121 -0
  66. package/lib/cloud/interface.d.ts +222 -44
  67. package/lib/cloud/interface.js +15 -2
  68. package/lib/cloud/laser-clean/deleteCleaningRecord/index.d.ts +27 -0
  69. package/lib/cloud/laser-clean/deleteCleaningRecord/index.js +28 -0
  70. package/lib/cloud/laser-clean/deleteCleaningRecord/type.d.ts +7 -0
  71. package/lib/cloud/laser-clean/deleteCleaningRecord/type.js +1 -0
  72. package/lib/cloud/laser-clean/deleteGyroCleanRecord/index.d.ts +27 -0
  73. package/lib/cloud/laser-clean/deleteGyroCleanRecord/index.js +28 -0
  74. package/lib/cloud/laser-clean/deleteGyroCleanRecord/type.d.ts +7 -0
  75. package/lib/cloud/laser-clean/deleteGyroCleanRecord/type.js +1 -0
  76. package/lib/cloud/laser-clean/deleteMultipleMapFiles/index.d.ts +27 -0
  77. package/lib/cloud/laser-clean/deleteMultipleMapFiles/index.js +28 -0
  78. package/lib/cloud/laser-clean/deleteMultipleMapFiles/type.d.ts +7 -0
  79. package/lib/cloud/laser-clean/deleteMultipleMapFiles/type.js +1 -0
  80. package/lib/cloud/laser-clean/getCleaningRecords/index.d.ts +30 -0
  81. package/lib/cloud/laser-clean/getCleaningRecords/index.js +31 -0
  82. package/lib/cloud/laser-clean/getCleaningRecords/type.d.ts +39 -0
  83. package/lib/cloud/laser-clean/getCleaningRecords/type.js +1 -0
  84. package/lib/cloud/laser-clean/getGyroCleanRecordDetail/index.d.ts +29 -0
  85. package/lib/cloud/laser-clean/getGyroCleanRecordDetail/index.js +30 -0
  86. package/lib/cloud/laser-clean/getGyroCleanRecordDetail/type.d.ts +30 -0
  87. package/lib/cloud/laser-clean/getGyroCleanRecordDetail/type.js +1 -0
  88. package/lib/cloud/laser-clean/getGyroCleanRecords/index.d.ts +29 -0
  89. package/lib/cloud/laser-clean/getGyroCleanRecords/index.js +30 -0
  90. package/lib/cloud/laser-clean/getGyroCleanRecords/type.d.ts +35 -0
  91. package/lib/cloud/laser-clean/getGyroCleanRecords/type.js +1 -0
  92. package/lib/cloud/laser-clean/getGyroLatestCleanMap/index.d.ts +28 -0
  93. package/lib/cloud/laser-clean/getGyroLatestCleanMap/index.js +29 -0
  94. package/lib/cloud/laser-clean/getGyroLatestCleanMap/type.d.ts +28 -0
  95. package/lib/cloud/laser-clean/getGyroLatestCleanMap/type.js +1 -0
  96. package/lib/cloud/laser-clean/getMultipleMapFiles/index.d.ts +24 -0
  97. package/lib/cloud/laser-clean/getMultipleMapFiles/index.js +25 -0
  98. package/lib/cloud/laser-clean/getMultipleMapFiles/type.d.ts +29 -0
  99. package/lib/cloud/laser-clean/getMultipleMapFiles/type.js +1 -0
  100. package/lib/cloud/laser-clean/getSweeperStorageConfig/index.d.ts +24 -0
  101. package/lib/cloud/laser-clean/getSweeperStorageConfig/index.js +25 -0
  102. package/lib/cloud/laser-clean/getSweeperStorageConfig/type.d.ts +26 -0
  103. package/lib/cloud/laser-clean/getSweeperStorageConfig/type.js +1 -0
  104. package/lib/cloud/laser-clean/getVoiceList/index.d.ts +28 -0
  105. package/lib/cloud/laser-clean/getVoiceList/index.js +29 -0
  106. package/lib/cloud/laser-clean/getVoiceList/type.d.ts +48 -0
  107. package/lib/cloud/laser-clean/getVoiceList/type.js +1 -0
  108. package/lib/cloud/laser-clean/index.d.ts +1 -1
  109. package/lib/cloud/laser-clean/index.js +1 -1
  110. package/lib/cloud/laser-clean/map.d.ts +5 -7
  111. package/lib/cloud/laser-clean/map.js +5 -9
  112. package/lib/cloud/laser-clean/record.d.ts +5 -6
  113. package/lib/cloud/laser-clean/record.js +5 -7
  114. package/lib/cloud/laser-clean/renameHistoryMap/index.d.ts +28 -0
  115. package/lib/cloud/laser-clean/renameHistoryMap/index.js +29 -0
  116. package/lib/cloud/laser-clean/renameHistoryMap/type.d.ts +9 -0
  117. package/lib/cloud/laser-clean/renameHistoryMap/type.js +1 -0
  118. package/lib/cloud/laser-clean/voice.d.ts +1 -3
  119. package/lib/cloud/laser-clean/voice.js +1 -4
  120. package/lib/cloud/linkage.d.ts +271 -53
  121. package/lib/cloud/linkage.js +256 -51
  122. package/lib/cloud/remoteGroup.d.ts +37 -0
  123. package/lib/cloud/remoteGroup.js +37 -0
  124. package/lib/cloud/timer.d.ts +104 -26
  125. package/lib/cloud/timer.js +104 -26
  126. package/lib/getApp/index.thing.d.ts +47 -1
  127. package/lib/getApp/index.thing.js +40 -2
  128. package/lib/getBoundingClientRect/index.thing.d.ts +101 -1
  129. package/lib/getBoundingClientRect/index.thing.js +59 -0
  130. package/lib/getCurrentPages/index.thing.d.ts +40 -15
  131. package/lib/getCurrentPages/index.thing.js +36 -15
  132. package/lib/getCustomConfig/index.d.ts +5 -2
  133. package/lib/getCustomConfig/index.thing.d.ts +68 -2
  134. package/lib/getCustomConfig/index.thing.js +62 -0
  135. package/lib/getCustomConfig/index.wechat.d.ts +5 -2
  136. package/lib/getCustomConfig/type.d.ts +26 -15
  137. package/lib/getElementById/index.thing.d.ts +42 -1
  138. package/lib/getElementById/index.thing.js +40 -0
  139. package/lib/index.d.ts +3 -0
  140. package/lib/index.js +4 -2
  141. package/lib/nativeRouters/common.d.ts +8 -0
  142. package/lib/nativeRouters/device.d.ts +137 -5
  143. package/lib/nativeRouters/device.js +138 -6
  144. package/lib/nativeRouters/gw.d.ts +58 -8
  145. package/lib/nativeRouters/gw.js +57 -8
  146. package/lib/nativeRouters/outdoors.d.ts +16 -3
  147. package/lib/nativeRouters/outdoors.js +16 -3
  148. package/lib/nativeRouters/remoteGroup.d.ts +23 -0
  149. package/lib/nativeRouters/remoteGroup.js +23 -0
  150. package/lib/nativeRouters/root.d.ts +19 -0
  151. package/lib/nativeRouters/root.js +17 -0
  152. package/lib/openGroupCreate/index.d.ts +45 -0
  153. package/lib/openGroupCreate/index.js +32 -0
  154. package/package.json +5 -5
@@ -0,0 +1,1459 @@
1
+ /**
2
+ * CategoryCommonBizKit
3
+ *
4
+ * @version 6.4.1
5
+ */
6
+ declare namespace ty.categorycommonbiz {
7
+ /**
8
+ * Quanlity写入权限申请接口
9
+ * @public
10
+ * @since CategoryCommonBizKit 0.0.4
11
+ * @platform iOS Android
12
+ */
13
+ export function authQuanlityWritePermissions(params: {
14
+ /**
15
+ * 权限类型
16
+ * @since CategoryCommonBizKit 0.0.4
17
+ */
18
+ permissions: string[]
19
+ /**
20
+ * 读取权限类型
21
+ * @since CategoryCommonBizKit 0.0.4
22
+ */
23
+ readPermissions: string[]
24
+ /**
25
+ * 写入权限类型
26
+ * @since CategoryCommonBizKit 0.0.4
27
+ */
28
+ writePermissions: string[]
29
+ /**
30
+ * 写入权限类型
31
+ * @since CategoryCommonBizKit 0.0.4
32
+ */
33
+ writePermission: number
34
+ /**
35
+ * quanlity 类型
36
+ * @since CategoryCommonBizKit 0.0.4
37
+ */
38
+ quanlityType: number
39
+ /**
40
+ * 写入值
41
+ * @since CategoryCommonBizKit 0.0.4
42
+ */
43
+ value: number
44
+ /**
45
+ * 传入单位 比如"mg/dL","g"
46
+ * @since CategoryCommonBizKit 0.0.4
47
+ */
48
+ unitType: string
49
+ /**
50
+ * 开始时间
51
+ * @since CategoryCommonBizKit 0.0.4
52
+ */
53
+ startTime: number
54
+ /**
55
+ * 结束时间
56
+ * @since CategoryCommonBizKit 0.0.4
57
+ */
58
+ endTime: number
59
+ /**
60
+ * 类型
61
+ * @since CategoryCommonBizKit 0.0.4
62
+ */
63
+ type: number
64
+ /**
65
+ * quanlity 类型
66
+ * @since CategoryCommonBizKit 0.0.4
67
+ */
68
+ categorylity: number
69
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
70
+ complete?: () => void
71
+ /** 接口调用成功的回调函数 */
72
+ success?: (params: null) => void
73
+ /** 接口调用失败的回调函数 */
74
+ fail?: (params: {
75
+ /** 错误信息 */
76
+ errorMsg: string
77
+ /** 错误码 */
78
+ errorCode: string | number
79
+ /** 错误扩展 */
80
+ innerError: {
81
+ /** 错误扩展码 */
82
+ errorCode: string | number
83
+ /** 错误扩展信息 */
84
+ errorMsg: string
85
+ }
86
+ }) => void
87
+ }): void
88
+
89
+ /**
90
+ * 用户是否已经做过授权操作
91
+ * @public
92
+ * @since CategoryCommonBizKit 0.0.4
93
+ * @platform iOS Android
94
+ */
95
+ export function authStatuPermissions(params: {
96
+ /**
97
+ * 权限类型
98
+ * @since CategoryCommonBizKit 0.0.4
99
+ */
100
+ permissions: string[]
101
+ /**
102
+ * 读取权限类型
103
+ * @since CategoryCommonBizKit 0.0.4
104
+ */
105
+ readPermissions: string[]
106
+ /**
107
+ * 写入权限类型
108
+ * @since CategoryCommonBizKit 0.0.4
109
+ */
110
+ writePermissions: string[]
111
+ /**
112
+ * 写入权限类型
113
+ * @since CategoryCommonBizKit 0.0.4
114
+ */
115
+ writePermission: number
116
+ /**
117
+ * quanlity 类型
118
+ * @since CategoryCommonBizKit 0.0.4
119
+ */
120
+ quanlityType: number
121
+ /**
122
+ * 写入值
123
+ * @since CategoryCommonBizKit 0.0.4
124
+ */
125
+ value: number
126
+ /**
127
+ * 传入单位 比如"mg/dL","g"
128
+ * @since CategoryCommonBizKit 0.0.4
129
+ */
130
+ unitType: string
131
+ /**
132
+ * 开始时间
133
+ * @since CategoryCommonBizKit 0.0.4
134
+ */
135
+ startTime: number
136
+ /**
137
+ * 结束时间
138
+ * @since CategoryCommonBizKit 0.0.4
139
+ */
140
+ endTime: number
141
+ /**
142
+ * 类型
143
+ * @since CategoryCommonBizKit 0.0.4
144
+ */
145
+ type: number
146
+ /**
147
+ * quanlity 类型
148
+ * @since CategoryCommonBizKit 0.0.4
149
+ */
150
+ categorylity: number
151
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
152
+ complete?: () => void
153
+ /** 接口调用成功的回调函数 */
154
+ success?: (params: null) => void
155
+ /** 接口调用失败的回调函数 */
156
+ fail?: (params: {
157
+ /** 错误信息 */
158
+ errorMsg: string
159
+ /** 错误码 */
160
+ errorCode: string | number
161
+ /** 错误扩展 */
162
+ innerError: {
163
+ /** 错误扩展码 */
164
+ errorCode: string | number
165
+ /** 错误扩展信息 */
166
+ errorMsg: string
167
+ }
168
+ }) => void
169
+ }): void
170
+
171
+ /**
172
+ * 用户是否有写入权限
173
+ * @public
174
+ * @since CategoryCommonBizKit 0.0.4
175
+ * @platform iOS Android
176
+ */
177
+ export function saveQuanlityPermisson(params: {
178
+ /**
179
+ * 权限类型
180
+ * @since CategoryCommonBizKit 0.0.4
181
+ */
182
+ permissions: string[]
183
+ /**
184
+ * 读取权限类型
185
+ * @since CategoryCommonBizKit 0.0.4
186
+ */
187
+ readPermissions: string[]
188
+ /**
189
+ * 写入权限类型
190
+ * @since CategoryCommonBizKit 0.0.4
191
+ */
192
+ writePermissions: string[]
193
+ /**
194
+ * 写入权限类型
195
+ * @since CategoryCommonBizKit 0.0.4
196
+ */
197
+ writePermission: number
198
+ /**
199
+ * quanlity 类型
200
+ * @since CategoryCommonBizKit 0.0.4
201
+ */
202
+ quanlityType: number
203
+ /**
204
+ * 写入值
205
+ * @since CategoryCommonBizKit 0.0.4
206
+ */
207
+ value: number
208
+ /**
209
+ * 传入单位 比如"mg/dL","g"
210
+ * @since CategoryCommonBizKit 0.0.4
211
+ */
212
+ unitType: string
213
+ /**
214
+ * 开始时间
215
+ * @since CategoryCommonBizKit 0.0.4
216
+ */
217
+ startTime: number
218
+ /**
219
+ * 结束时间
220
+ * @since CategoryCommonBizKit 0.0.4
221
+ */
222
+ endTime: number
223
+ /**
224
+ * 类型
225
+ * @since CategoryCommonBizKit 0.0.4
226
+ */
227
+ type: number
228
+ /**
229
+ * quanlity 类型
230
+ * @since CategoryCommonBizKit 0.0.4
231
+ */
232
+ categorylity: number
233
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
234
+ complete?: () => void
235
+ /** 接口调用成功的回调函数 */
236
+ success?: (params: null) => void
237
+ /** 接口调用失败的回调函数 */
238
+ fail?: (params: {
239
+ /** 错误信息 */
240
+ errorMsg: string
241
+ /** 错误码 */
242
+ errorCode: string | number
243
+ /** 错误扩展 */
244
+ innerError: {
245
+ /** 错误扩展码 */
246
+ errorCode: string | number
247
+ /** 错误扩展信息 */
248
+ errorMsg: string
249
+ }
250
+ }) => void
251
+ }): void
252
+
253
+ /**
254
+ * Category写入权限申请接口
255
+ * @public
256
+ * @since CategoryCommonBizKit 0.0.4
257
+ * @platform iOS Android
258
+ */
259
+ export function authCategoryWritePermissions(params: {
260
+ /**
261
+ * 权限类型
262
+ * @since CategoryCommonBizKit 0.0.4
263
+ */
264
+ permissions: string[]
265
+ /**
266
+ * 读取权限类型
267
+ * @since CategoryCommonBizKit 0.0.4
268
+ */
269
+ readPermissions: string[]
270
+ /**
271
+ * 写入权限类型
272
+ * @since CategoryCommonBizKit 0.0.4
273
+ */
274
+ writePermissions: string[]
275
+ /**
276
+ * 写入权限类型
277
+ * @since CategoryCommonBizKit 0.0.4
278
+ */
279
+ writePermission: number
280
+ /**
281
+ * quanlity 类型
282
+ * @since CategoryCommonBizKit 0.0.4
283
+ */
284
+ quanlityType: number
285
+ /**
286
+ * 写入值
287
+ * @since CategoryCommonBizKit 0.0.4
288
+ */
289
+ value: number
290
+ /**
291
+ * 传入单位 比如"mg/dL","g"
292
+ * @since CategoryCommonBizKit 0.0.4
293
+ */
294
+ unitType: string
295
+ /**
296
+ * 开始时间
297
+ * @since CategoryCommonBizKit 0.0.4
298
+ */
299
+ startTime: number
300
+ /**
301
+ * 结束时间
302
+ * @since CategoryCommonBizKit 0.0.4
303
+ */
304
+ endTime: number
305
+ /**
306
+ * 类型
307
+ * @since CategoryCommonBizKit 0.0.4
308
+ */
309
+ type: number
310
+ /**
311
+ * quanlity 类型
312
+ * @since CategoryCommonBizKit 0.0.4
313
+ */
314
+ categorylity: number
315
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
316
+ complete?: () => void
317
+ /** 接口调用成功的回调函数 */
318
+ success?: (params: null) => void
319
+ /** 接口调用失败的回调函数 */
320
+ fail?: (params: {
321
+ /** 错误信息 */
322
+ errorMsg: string
323
+ /** 错误码 */
324
+ errorCode: string | number
325
+ /** 错误扩展 */
326
+ innerError: {
327
+ /** 错误扩展码 */
328
+ errorCode: string | number
329
+ /** 错误扩展信息 */
330
+ errorMsg: string
331
+ }
332
+ }) => void
333
+ }): void
334
+
335
+ /**
336
+ * Quanlity读取权限申请
337
+ * @public
338
+ * @since CategoryCommonBizKit 0.0.4
339
+ * @platform iOS Android
340
+ */
341
+ export function authQuanlityReadPermissions(params: {
342
+ /**
343
+ * 权限类型
344
+ * @since CategoryCommonBizKit 0.0.4
345
+ */
346
+ permissions: string[]
347
+ /**
348
+ * 读取权限类型
349
+ * @since CategoryCommonBizKit 0.0.4
350
+ */
351
+ readPermissions: string[]
352
+ /**
353
+ * 写入权限类型
354
+ * @since CategoryCommonBizKit 0.0.4
355
+ */
356
+ writePermissions: string[]
357
+ /**
358
+ * 写入权限类型
359
+ * @since CategoryCommonBizKit 0.0.4
360
+ */
361
+ writePermission: number
362
+ /**
363
+ * quanlity 类型
364
+ * @since CategoryCommonBizKit 0.0.4
365
+ */
366
+ quanlityType: number
367
+ /**
368
+ * 写入值
369
+ * @since CategoryCommonBizKit 0.0.4
370
+ */
371
+ value: number
372
+ /**
373
+ * 传入单位 比如"mg/dL","g"
374
+ * @since CategoryCommonBizKit 0.0.4
375
+ */
376
+ unitType: string
377
+ /**
378
+ * 开始时间
379
+ * @since CategoryCommonBizKit 0.0.4
380
+ */
381
+ startTime: number
382
+ /**
383
+ * 结束时间
384
+ * @since CategoryCommonBizKit 0.0.4
385
+ */
386
+ endTime: number
387
+ /**
388
+ * 类型
389
+ * @since CategoryCommonBizKit 0.0.4
390
+ */
391
+ type: number
392
+ /**
393
+ * quanlity 类型
394
+ * @since CategoryCommonBizKit 0.0.4
395
+ */
396
+ categorylity: number
397
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
398
+ complete?: () => void
399
+ /** 接口调用成功的回调函数 */
400
+ success?: (params: null) => void
401
+ /** 接口调用失败的回调函数 */
402
+ fail?: (params: {
403
+ /** 错误信息 */
404
+ errorMsg: string
405
+ /** 错误码 */
406
+ errorCode: string | number
407
+ /** 错误扩展 */
408
+ innerError: {
409
+ /** 错误扩展码 */
410
+ errorCode: string | number
411
+ /** 错误扩展信息 */
412
+ errorMsg: string
413
+ }
414
+ }) => void
415
+ }): void
416
+
417
+ /**
418
+ * Category 读取权限申请
419
+ * @public
420
+ * @since CategoryCommonBizKit 0.0.4
421
+ * @platform iOS Android
422
+ */
423
+ export function authCategoryReadPermissions(params: {
424
+ /**
425
+ * 权限类型
426
+ * @since CategoryCommonBizKit 0.0.4
427
+ */
428
+ permissions: string[]
429
+ /**
430
+ * 读取权限类型
431
+ * @since CategoryCommonBizKit 0.0.4
432
+ */
433
+ readPermissions: string[]
434
+ /**
435
+ * 写入权限类型
436
+ * @since CategoryCommonBizKit 0.0.4
437
+ */
438
+ writePermissions: string[]
439
+ /**
440
+ * 写入权限类型
441
+ * @since CategoryCommonBizKit 0.0.4
442
+ */
443
+ writePermission: number
444
+ /**
445
+ * quanlity 类型
446
+ * @since CategoryCommonBizKit 0.0.4
447
+ */
448
+ quanlityType: number
449
+ /**
450
+ * 写入值
451
+ * @since CategoryCommonBizKit 0.0.4
452
+ */
453
+ value: number
454
+ /**
455
+ * 传入单位 比如"mg/dL","g"
456
+ * @since CategoryCommonBizKit 0.0.4
457
+ */
458
+ unitType: string
459
+ /**
460
+ * 开始时间
461
+ * @since CategoryCommonBizKit 0.0.4
462
+ */
463
+ startTime: number
464
+ /**
465
+ * 结束时间
466
+ * @since CategoryCommonBizKit 0.0.4
467
+ */
468
+ endTime: number
469
+ /**
470
+ * 类型
471
+ * @since CategoryCommonBizKit 0.0.4
472
+ */
473
+ type: number
474
+ /**
475
+ * quanlity 类型
476
+ * @since CategoryCommonBizKit 0.0.4
477
+ */
478
+ categorylity: number
479
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
480
+ complete?: () => void
481
+ /** 接口调用成功的回调函数 */
482
+ success?: (params: null) => void
483
+ /** 接口调用失败的回调函数 */
484
+ fail?: (params: {
485
+ /** 错误信息 */
486
+ errorMsg: string
487
+ /** 错误码 */
488
+ errorCode: string | number
489
+ /** 错误扩展 */
490
+ innerError: {
491
+ /** 错误扩展码 */
492
+ errorCode: string | number
493
+ /** 错误扩展信息 */
494
+ errorMsg: string
495
+ }
496
+ }) => void
497
+ }): void
498
+
499
+ /**
500
+ * Characteristic 读取权限申请
501
+ * @public
502
+ * @since CategoryCommonBizKit 0.0.4
503
+ * @platform iOS Android
504
+ */
505
+ export function authCharacteristicReadPermissions(params: {
506
+ /**
507
+ * 权限类型
508
+ * @since CategoryCommonBizKit 0.0.4
509
+ */
510
+ permissions: string[]
511
+ /**
512
+ * 读取权限类型
513
+ * @since CategoryCommonBizKit 0.0.4
514
+ */
515
+ readPermissions: string[]
516
+ /**
517
+ * 写入权限类型
518
+ * @since CategoryCommonBizKit 0.0.4
519
+ */
520
+ writePermissions: string[]
521
+ /**
522
+ * 写入权限类型
523
+ * @since CategoryCommonBizKit 0.0.4
524
+ */
525
+ writePermission: number
526
+ /**
527
+ * quanlity 类型
528
+ * @since CategoryCommonBizKit 0.0.4
529
+ */
530
+ quanlityType: number
531
+ /**
532
+ * 写入值
533
+ * @since CategoryCommonBizKit 0.0.4
534
+ */
535
+ value: number
536
+ /**
537
+ * 传入单位 比如"mg/dL","g"
538
+ * @since CategoryCommonBizKit 0.0.4
539
+ */
540
+ unitType: string
541
+ /**
542
+ * 开始时间
543
+ * @since CategoryCommonBizKit 0.0.4
544
+ */
545
+ startTime: number
546
+ /**
547
+ * 结束时间
548
+ * @since CategoryCommonBizKit 0.0.4
549
+ */
550
+ endTime: number
551
+ /**
552
+ * 类型
553
+ * @since CategoryCommonBizKit 0.0.4
554
+ */
555
+ type: number
556
+ /**
557
+ * quanlity 类型
558
+ * @since CategoryCommonBizKit 0.0.4
559
+ */
560
+ categorylity: number
561
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
562
+ complete?: () => void
563
+ /** 接口调用成功的回调函数 */
564
+ success?: (params: null) => void
565
+ /** 接口调用失败的回调函数 */
566
+ fail?: (params: {
567
+ /** 错误信息 */
568
+ errorMsg: string
569
+ /** 错误码 */
570
+ errorCode: string | number
571
+ /** 错误扩展 */
572
+ innerError: {
573
+ /** 错误扩展码 */
574
+ errorCode: string | number
575
+ /** 错误扩展信息 */
576
+ errorMsg: string
577
+ }
578
+ }) => void
579
+ }): void
580
+
581
+ /**
582
+ * Quanlity读写权限申请
583
+ * @public
584
+ * @since CategoryCommonBizKit 0.0.4
585
+ * @platform iOS Android
586
+ */
587
+ export function authQuanlityRWPermissions(params: {
588
+ /**
589
+ * 权限类型
590
+ * @since CategoryCommonBizKit 0.0.4
591
+ */
592
+ permissions: string[]
593
+ /**
594
+ * 读取权限类型
595
+ * @since CategoryCommonBizKit 0.0.4
596
+ */
597
+ readPermissions: string[]
598
+ /**
599
+ * 写入权限类型
600
+ * @since CategoryCommonBizKit 0.0.4
601
+ */
602
+ writePermissions: string[]
603
+ /**
604
+ * 写入权限类型
605
+ * @since CategoryCommonBizKit 0.0.4
606
+ */
607
+ writePermission: number
608
+ /**
609
+ * quanlity 类型
610
+ * @since CategoryCommonBizKit 0.0.4
611
+ */
612
+ quanlityType: number
613
+ /**
614
+ * 写入值
615
+ * @since CategoryCommonBizKit 0.0.4
616
+ */
617
+ value: number
618
+ /**
619
+ * 传入单位 比如"mg/dL","g"
620
+ * @since CategoryCommonBizKit 0.0.4
621
+ */
622
+ unitType: string
623
+ /**
624
+ * 开始时间
625
+ * @since CategoryCommonBizKit 0.0.4
626
+ */
627
+ startTime: number
628
+ /**
629
+ * 结束时间
630
+ * @since CategoryCommonBizKit 0.0.4
631
+ */
632
+ endTime: number
633
+ /**
634
+ * 类型
635
+ * @since CategoryCommonBizKit 0.0.4
636
+ */
637
+ type: number
638
+ /**
639
+ * quanlity 类型
640
+ * @since CategoryCommonBizKit 0.0.4
641
+ */
642
+ categorylity: number
643
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
644
+ complete?: () => void
645
+ /** 接口调用成功的回调函数 */
646
+ success?: (params: null) => void
647
+ /** 接口调用失败的回调函数 */
648
+ fail?: (params: {
649
+ /** 错误信息 */
650
+ errorMsg: string
651
+ /** 错误码 */
652
+ errorCode: string | number
653
+ /** 错误扩展 */
654
+ innerError: {
655
+ /** 错误扩展码 */
656
+ errorCode: string | number
657
+ /** 错误扩展信息 */
658
+ errorMsg: string
659
+ }
660
+ }) => void
661
+ }): void
662
+
663
+ /**
664
+ * Category 读写权限申请
665
+ * @public
666
+ * @since CategoryCommonBizKit 0.0.4
667
+ * @platform iOS Android
668
+ */
669
+ export function authCategoryRWPermissions(params: {
670
+ /**
671
+ * 权限类型
672
+ * @since CategoryCommonBizKit 0.0.4
673
+ */
674
+ permissions: string[]
675
+ /**
676
+ * 读取权限类型
677
+ * @since CategoryCommonBizKit 0.0.4
678
+ */
679
+ readPermissions: string[]
680
+ /**
681
+ * 写入权限类型
682
+ * @since CategoryCommonBizKit 0.0.4
683
+ */
684
+ writePermissions: string[]
685
+ /**
686
+ * 写入权限类型
687
+ * @since CategoryCommonBizKit 0.0.4
688
+ */
689
+ writePermission: number
690
+ /**
691
+ * quanlity 类型
692
+ * @since CategoryCommonBizKit 0.0.4
693
+ */
694
+ quanlityType: number
695
+ /**
696
+ * 写入值
697
+ * @since CategoryCommonBizKit 0.0.4
698
+ */
699
+ value: number
700
+ /**
701
+ * 传入单位 比如"mg/dL","g"
702
+ * @since CategoryCommonBizKit 0.0.4
703
+ */
704
+ unitType: string
705
+ /**
706
+ * 开始时间
707
+ * @since CategoryCommonBizKit 0.0.4
708
+ */
709
+ startTime: number
710
+ /**
711
+ * 结束时间
712
+ * @since CategoryCommonBizKit 0.0.4
713
+ */
714
+ endTime: number
715
+ /**
716
+ * 类型
717
+ * @since CategoryCommonBizKit 0.0.4
718
+ */
719
+ type: number
720
+ /**
721
+ * quanlity 类型
722
+ * @since CategoryCommonBizKit 0.0.4
723
+ */
724
+ categorylity: number
725
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
726
+ complete?: () => void
727
+ /** 接口调用成功的回调函数 */
728
+ success?: (params: null) => void
729
+ /** 接口调用失败的回调函数 */
730
+ fail?: (params: {
731
+ /** 错误信息 */
732
+ errorMsg: string
733
+ /** 错误码 */
734
+ errorCode: string | number
735
+ /** 错误扩展 */
736
+ innerError: {
737
+ /** 错误扩展码 */
738
+ errorCode: string | number
739
+ /** 错误扩展信息 */
740
+ errorMsg: string
741
+ }
742
+ }) => void
743
+ }): void
744
+
745
+ /**
746
+ * 写入quality类型的数据
747
+ * @public
748
+ * @since CategoryCommonBizKit 0.0.4
749
+ * @platform iOS Android
750
+ */
751
+ export function saveQuanlityData(params: {
752
+ /**
753
+ * 权限类型
754
+ * @since CategoryCommonBizKit 0.0.4
755
+ */
756
+ permissions: string[]
757
+ /**
758
+ * 读取权限类型
759
+ * @since CategoryCommonBizKit 0.0.4
760
+ */
761
+ readPermissions: string[]
762
+ /**
763
+ * 写入权限类型
764
+ * @since CategoryCommonBizKit 0.0.4
765
+ */
766
+ writePermissions: string[]
767
+ /**
768
+ * 写入权限类型
769
+ * @since CategoryCommonBizKit 0.0.4
770
+ */
771
+ writePermission: number
772
+ /**
773
+ * quanlity 类型
774
+ * @since CategoryCommonBizKit 0.0.4
775
+ */
776
+ quanlityType: number
777
+ /**
778
+ * 写入值
779
+ * @since CategoryCommonBizKit 0.0.4
780
+ */
781
+ value: number
782
+ /**
783
+ * 传入单位 比如"mg/dL","g"
784
+ * @since CategoryCommonBizKit 0.0.4
785
+ */
786
+ unitType: string
787
+ /**
788
+ * 开始时间
789
+ * @since CategoryCommonBizKit 0.0.4
790
+ */
791
+ startTime: number
792
+ /**
793
+ * 结束时间
794
+ * @since CategoryCommonBizKit 0.0.4
795
+ */
796
+ endTime: number
797
+ /**
798
+ * 类型
799
+ * @since CategoryCommonBizKit 0.0.4
800
+ */
801
+ type: number
802
+ /**
803
+ * quanlity 类型
804
+ * @since CategoryCommonBizKit 0.0.4
805
+ */
806
+ categorylity: number
807
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
808
+ complete?: () => void
809
+ /** 接口调用成功的回调函数 */
810
+ success?: (params: null) => void
811
+ /** 接口调用失败的回调函数 */
812
+ fail?: (params: {
813
+ /** 错误信息 */
814
+ errorMsg: string
815
+ /** 错误码 */
816
+ errorCode: string | number
817
+ /** 错误扩展 */
818
+ innerError: {
819
+ /** 错误扩展码 */
820
+ errorCode: string | number
821
+ /** 错误扩展信息 */
822
+ errorMsg: string
823
+ }
824
+ }) => void
825
+ }): void
826
+
827
+ /**
828
+ * 写入quality类型的数据
829
+ * @public
830
+ * @since CategoryCommonBizKit 0.0.4
831
+ * @platform iOS Android
832
+ */
833
+ export function saveQuanlityNoTimeWithData(params: {
834
+ /**
835
+ * 权限类型
836
+ * @since CategoryCommonBizKit 0.0.4
837
+ */
838
+ permissions: string[]
839
+ /**
840
+ * 读取权限类型
841
+ * @since CategoryCommonBizKit 0.0.4
842
+ */
843
+ readPermissions: string[]
844
+ /**
845
+ * 写入权限类型
846
+ * @since CategoryCommonBizKit 0.0.4
847
+ */
848
+ writePermissions: string[]
849
+ /**
850
+ * 写入权限类型
851
+ * @since CategoryCommonBizKit 0.0.4
852
+ */
853
+ writePermission: number
854
+ /**
855
+ * quanlity 类型
856
+ * @since CategoryCommonBizKit 0.0.4
857
+ */
858
+ quanlityType: number
859
+ /**
860
+ * 写入值
861
+ * @since CategoryCommonBizKit 0.0.4
862
+ */
863
+ value: number
864
+ /**
865
+ * 传入单位 比如"mg/dL","g"
866
+ * @since CategoryCommonBizKit 0.0.4
867
+ */
868
+ unitType: string
869
+ /**
870
+ * 开始时间
871
+ * @since CategoryCommonBizKit 0.0.4
872
+ */
873
+ startTime: number
874
+ /**
875
+ * 结束时间
876
+ * @since CategoryCommonBizKit 0.0.4
877
+ */
878
+ endTime: number
879
+ /**
880
+ * 类型
881
+ * @since CategoryCommonBizKit 0.0.4
882
+ */
883
+ type: number
884
+ /**
885
+ * quanlity 类型
886
+ * @since CategoryCommonBizKit 0.0.4
887
+ */
888
+ categorylity: number
889
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
890
+ complete?: () => void
891
+ /** 接口调用成功的回调函数 */
892
+ success?: (params: null) => void
893
+ /** 接口调用失败的回调函数 */
894
+ fail?: (params: {
895
+ /** 错误信息 */
896
+ errorMsg: string
897
+ /** 错误码 */
898
+ errorCode: string | number
899
+ /** 错误扩展 */
900
+ innerError: {
901
+ /** 错误扩展码 */
902
+ errorCode: string | number
903
+ /** 错误扩展信息 */
904
+ errorMsg: string
905
+ }
906
+ }) => void
907
+ }): void
908
+
909
+ /**
910
+ * 读取 quanlity
911
+ * @public
912
+ * @since CategoryCommonBizKit 0.0.4
913
+ * @platform iOS Android
914
+ */
915
+ export function readQuanlityDataWithType(params: {
916
+ /**
917
+ * 权限类型
918
+ * @since CategoryCommonBizKit 0.0.4
919
+ */
920
+ permissions: string[]
921
+ /**
922
+ * 读取权限类型
923
+ * @since CategoryCommonBizKit 0.0.4
924
+ */
925
+ readPermissions: string[]
926
+ /**
927
+ * 写入权限类型
928
+ * @since CategoryCommonBizKit 0.0.4
929
+ */
930
+ writePermissions: string[]
931
+ /**
932
+ * 写入权限类型
933
+ * @since CategoryCommonBizKit 0.0.4
934
+ */
935
+ writePermission: number
936
+ /**
937
+ * quanlity 类型
938
+ * @since CategoryCommonBizKit 0.0.4
939
+ */
940
+ quanlityType: number
941
+ /**
942
+ * 写入值
943
+ * @since CategoryCommonBizKit 0.0.4
944
+ */
945
+ value: number
946
+ /**
947
+ * 传入单位 比如"mg/dL","g"
948
+ * @since CategoryCommonBizKit 0.0.4
949
+ */
950
+ unitType: string
951
+ /**
952
+ * 开始时间
953
+ * @since CategoryCommonBizKit 0.0.4
954
+ */
955
+ startTime: number
956
+ /**
957
+ * 结束时间
958
+ * @since CategoryCommonBizKit 0.0.4
959
+ */
960
+ endTime: number
961
+ /**
962
+ * 类型
963
+ * @since CategoryCommonBizKit 0.0.4
964
+ */
965
+ type: number
966
+ /**
967
+ * quanlity 类型
968
+ * @since CategoryCommonBizKit 0.0.4
969
+ */
970
+ categorylity: number
971
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
972
+ complete?: () => void
973
+ /** 接口调用成功的回调函数 */
974
+ success?: (params: null) => void
975
+ /** 接口调用失败的回调函数 */
976
+ fail?: (params: {
977
+ /** 错误信息 */
978
+ errorMsg: string
979
+ /** 错误码 */
980
+ errorCode: string | number
981
+ /** 错误扩展 */
982
+ innerError: {
983
+ /** 错误扩展码 */
984
+ errorCode: string | number
985
+ /** 错误扩展信息 */
986
+ errorMsg: string
987
+ }
988
+ }) => void
989
+ }): void
990
+
991
+ /**
992
+ * 删除QuanlityData数据
993
+ * @public
994
+ * @since CategoryCommonBizKit 0.0.4
995
+ * @platform iOS Android
996
+ */
997
+ export function deleteQuanlityDataType(params: {
998
+ /**
999
+ * 权限类型
1000
+ * @since CategoryCommonBizKit 0.0.4
1001
+ */
1002
+ permissions: string[]
1003
+ /**
1004
+ * 读取权限类型
1005
+ * @since CategoryCommonBizKit 0.0.4
1006
+ */
1007
+ readPermissions: string[]
1008
+ /**
1009
+ * 写入权限类型
1010
+ * @since CategoryCommonBizKit 0.0.4
1011
+ */
1012
+ writePermissions: string[]
1013
+ /**
1014
+ * 写入权限类型
1015
+ * @since CategoryCommonBizKit 0.0.4
1016
+ */
1017
+ writePermission: number
1018
+ /**
1019
+ * quanlity 类型
1020
+ * @since CategoryCommonBizKit 0.0.4
1021
+ */
1022
+ quanlityType: number
1023
+ /**
1024
+ * 写入值
1025
+ * @since CategoryCommonBizKit 0.0.4
1026
+ */
1027
+ value: number
1028
+ /**
1029
+ * 传入单位 比如"mg/dL","g"
1030
+ * @since CategoryCommonBizKit 0.0.4
1031
+ */
1032
+ unitType: string
1033
+ /**
1034
+ * 开始时间
1035
+ * @since CategoryCommonBizKit 0.0.4
1036
+ */
1037
+ startTime: number
1038
+ /**
1039
+ * 结束时间
1040
+ * @since CategoryCommonBizKit 0.0.4
1041
+ */
1042
+ endTime: number
1043
+ /**
1044
+ * 类型
1045
+ * @since CategoryCommonBizKit 0.0.4
1046
+ */
1047
+ type: number
1048
+ /**
1049
+ * quanlity 类型
1050
+ * @since CategoryCommonBizKit 0.0.4
1051
+ */
1052
+ categorylity: number
1053
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1054
+ complete?: () => void
1055
+ /** 接口调用成功的回调函数 */
1056
+ success?: (params: null) => void
1057
+ /** 接口调用失败的回调函数 */
1058
+ fail?: (params: {
1059
+ /** 错误信息 */
1060
+ errorMsg: string
1061
+ /** 错误码 */
1062
+ errorCode: string | number
1063
+ /** 错误扩展 */
1064
+ innerError: {
1065
+ /** 错误扩展码 */
1066
+ errorCode: string | number
1067
+ /** 错误扩展信息 */
1068
+ errorMsg: string
1069
+ }
1070
+ }) => void
1071
+ }): void
1072
+
1073
+ /**
1074
+ * 读取 Characteristic
1075
+ * @public
1076
+ * @since CategoryCommonBizKit 0.0.4
1077
+ * @platform iOS Android
1078
+ */
1079
+ export function readCharacteristicDataWithType(params: {
1080
+ /**
1081
+ * 权限类型
1082
+ * @since CategoryCommonBizKit 0.0.4
1083
+ */
1084
+ permissions: string[]
1085
+ /**
1086
+ * 读取权限类型
1087
+ * @since CategoryCommonBizKit 0.0.4
1088
+ */
1089
+ readPermissions: string[]
1090
+ /**
1091
+ * 写入权限类型
1092
+ * @since CategoryCommonBizKit 0.0.4
1093
+ */
1094
+ writePermissions: string[]
1095
+ /**
1096
+ * 写入权限类型
1097
+ * @since CategoryCommonBizKit 0.0.4
1098
+ */
1099
+ writePermission: number
1100
+ /**
1101
+ * quanlity 类型
1102
+ * @since CategoryCommonBizKit 0.0.4
1103
+ */
1104
+ quanlityType: number
1105
+ /**
1106
+ * 写入值
1107
+ * @since CategoryCommonBizKit 0.0.4
1108
+ */
1109
+ value: number
1110
+ /**
1111
+ * 传入单位 比如"mg/dL","g"
1112
+ * @since CategoryCommonBizKit 0.0.4
1113
+ */
1114
+ unitType: string
1115
+ /**
1116
+ * 开始时间
1117
+ * @since CategoryCommonBizKit 0.0.4
1118
+ */
1119
+ startTime: number
1120
+ /**
1121
+ * 结束时间
1122
+ * @since CategoryCommonBizKit 0.0.4
1123
+ */
1124
+ endTime: number
1125
+ /**
1126
+ * 类型
1127
+ * @since CategoryCommonBizKit 0.0.4
1128
+ */
1129
+ type: number
1130
+ /**
1131
+ * quanlity 类型
1132
+ * @since CategoryCommonBizKit 0.0.4
1133
+ */
1134
+ categorylity: number
1135
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1136
+ complete?: () => void
1137
+ /** 接口调用成功的回调函数 */
1138
+ success?: (params: null) => void
1139
+ /** 接口调用失败的回调函数 */
1140
+ fail?: (params: {
1141
+ /** 错误信息 */
1142
+ errorMsg: string
1143
+ /** 错误码 */
1144
+ errorCode: string | number
1145
+ /** 错误扩展 */
1146
+ innerError: {
1147
+ /** 错误扩展码 */
1148
+ errorCode: string | number
1149
+ /** 错误扩展信息 */
1150
+ errorMsg: string
1151
+ }
1152
+ }) => void
1153
+ }): void
1154
+
1155
+ /**
1156
+ * 写入quality类型的数据
1157
+ * @public
1158
+ * @since CategoryCommonBizKit 0.0.4
1159
+ * @platform iOS Android
1160
+ */
1161
+ export function saveCategorylityData(params: {
1162
+ /**
1163
+ * 权限类型
1164
+ * @since CategoryCommonBizKit 0.0.4
1165
+ */
1166
+ permissions: string[]
1167
+ /**
1168
+ * 读取权限类型
1169
+ * @since CategoryCommonBizKit 0.0.4
1170
+ */
1171
+ readPermissions: string[]
1172
+ /**
1173
+ * 写入权限类型
1174
+ * @since CategoryCommonBizKit 0.0.4
1175
+ */
1176
+ writePermissions: string[]
1177
+ /**
1178
+ * 写入权限类型
1179
+ * @since CategoryCommonBizKit 0.0.4
1180
+ */
1181
+ writePermission: number
1182
+ /**
1183
+ * quanlity 类型
1184
+ * @since CategoryCommonBizKit 0.0.4
1185
+ */
1186
+ quanlityType: number
1187
+ /**
1188
+ * 写入值
1189
+ * @since CategoryCommonBizKit 0.0.4
1190
+ */
1191
+ value: number
1192
+ /**
1193
+ * 传入单位 比如"mg/dL","g"
1194
+ * @since CategoryCommonBizKit 0.0.4
1195
+ */
1196
+ unitType: string
1197
+ /**
1198
+ * 开始时间
1199
+ * @since CategoryCommonBizKit 0.0.4
1200
+ */
1201
+ startTime: number
1202
+ /**
1203
+ * 结束时间
1204
+ * @since CategoryCommonBizKit 0.0.4
1205
+ */
1206
+ endTime: number
1207
+ /**
1208
+ * 类型
1209
+ * @since CategoryCommonBizKit 0.0.4
1210
+ */
1211
+ type: number
1212
+ /**
1213
+ * quanlity 类型
1214
+ * @since CategoryCommonBizKit 0.0.4
1215
+ */
1216
+ categorylity: number
1217
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1218
+ complete?: () => void
1219
+ /** 接口调用成功的回调函数 */
1220
+ success?: (params: null) => void
1221
+ /** 接口调用失败的回调函数 */
1222
+ fail?: (params: {
1223
+ /** 错误信息 */
1224
+ errorMsg: string
1225
+ /** 错误码 */
1226
+ errorCode: string | number
1227
+ /** 错误扩展 */
1228
+ innerError: {
1229
+ /** 错误扩展码 */
1230
+ errorCode: string | number
1231
+ /** 错误扩展信息 */
1232
+ errorMsg: string
1233
+ }
1234
+ }) => void
1235
+ }): void
1236
+
1237
+ /**
1238
+ * 写入quality类型的数据
1239
+ * @public
1240
+ * @since CategoryCommonBizKit 0.0.4
1241
+ * @platform iOS Android
1242
+ */
1243
+ export function saveCategoryNoTimeWithData(params: {
1244
+ /**
1245
+ * 权限类型
1246
+ * @since CategoryCommonBizKit 0.0.4
1247
+ */
1248
+ permissions: string[]
1249
+ /**
1250
+ * 读取权限类型
1251
+ * @since CategoryCommonBizKit 0.0.4
1252
+ */
1253
+ readPermissions: string[]
1254
+ /**
1255
+ * 写入权限类型
1256
+ * @since CategoryCommonBizKit 0.0.4
1257
+ */
1258
+ writePermissions: string[]
1259
+ /**
1260
+ * 写入权限类型
1261
+ * @since CategoryCommonBizKit 0.0.4
1262
+ */
1263
+ writePermission: number
1264
+ /**
1265
+ * quanlity 类型
1266
+ * @since CategoryCommonBizKit 0.0.4
1267
+ */
1268
+ quanlityType: number
1269
+ /**
1270
+ * 写入值
1271
+ * @since CategoryCommonBizKit 0.0.4
1272
+ */
1273
+ value: number
1274
+ /**
1275
+ * 传入单位 比如"mg/dL","g"
1276
+ * @since CategoryCommonBizKit 0.0.4
1277
+ */
1278
+ unitType: string
1279
+ /**
1280
+ * 开始时间
1281
+ * @since CategoryCommonBizKit 0.0.4
1282
+ */
1283
+ startTime: number
1284
+ /**
1285
+ * 结束时间
1286
+ * @since CategoryCommonBizKit 0.0.4
1287
+ */
1288
+ endTime: number
1289
+ /**
1290
+ * 类型
1291
+ * @since CategoryCommonBizKit 0.0.4
1292
+ */
1293
+ type: number
1294
+ /**
1295
+ * quanlity 类型
1296
+ * @since CategoryCommonBizKit 0.0.4
1297
+ */
1298
+ categorylity: number
1299
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1300
+ complete?: () => void
1301
+ /** 接口调用成功的回调函数 */
1302
+ success?: (params: null) => void
1303
+ /** 接口调用失败的回调函数 */
1304
+ fail?: (params: {
1305
+ /** 错误信息 */
1306
+ errorMsg: string
1307
+ /** 错误码 */
1308
+ errorCode: string | number
1309
+ /** 错误扩展 */
1310
+ innerError: {
1311
+ /** 错误扩展码 */
1312
+ errorCode: string | number
1313
+ /** 错误扩展信息 */
1314
+ errorMsg: string
1315
+ }
1316
+ }) => void
1317
+ }): void
1318
+
1319
+ /**
1320
+ * 读取 quanlity
1321
+ * @public
1322
+ * @since CategoryCommonBizKit 0.0.4
1323
+ * @platform iOS Android
1324
+ */
1325
+ export function readCategoryDataWithType(params: {
1326
+ /**
1327
+ * 权限类型
1328
+ * @since CategoryCommonBizKit 0.0.4
1329
+ */
1330
+ permissions: string[]
1331
+ /**
1332
+ * 读取权限类型
1333
+ * @since CategoryCommonBizKit 0.0.4
1334
+ */
1335
+ readPermissions: string[]
1336
+ /**
1337
+ * 写入权限类型
1338
+ * @since CategoryCommonBizKit 0.0.4
1339
+ */
1340
+ writePermissions: string[]
1341
+ /**
1342
+ * 写入权限类型
1343
+ * @since CategoryCommonBizKit 0.0.4
1344
+ */
1345
+ writePermission: number
1346
+ /**
1347
+ * quanlity 类型
1348
+ * @since CategoryCommonBizKit 0.0.4
1349
+ */
1350
+ quanlityType: number
1351
+ /**
1352
+ * 写入值
1353
+ * @since CategoryCommonBizKit 0.0.4
1354
+ */
1355
+ value: number
1356
+ /**
1357
+ * 传入单位 比如"mg/dL","g"
1358
+ * @since CategoryCommonBizKit 0.0.4
1359
+ */
1360
+ unitType: string
1361
+ /**
1362
+ * 开始时间
1363
+ * @since CategoryCommonBizKit 0.0.4
1364
+ */
1365
+ startTime: number
1366
+ /**
1367
+ * 结束时间
1368
+ * @since CategoryCommonBizKit 0.0.4
1369
+ */
1370
+ endTime: number
1371
+ /**
1372
+ * 类型
1373
+ * @since CategoryCommonBizKit 0.0.4
1374
+ */
1375
+ type: number
1376
+ /**
1377
+ * quanlity 类型
1378
+ * @since CategoryCommonBizKit 0.0.4
1379
+ */
1380
+ categorylity: number
1381
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1382
+ complete?: () => void
1383
+ /** 接口调用成功的回调函数 */
1384
+ success?: (params: null) => void
1385
+ /** 接口调用失败的回调函数 */
1386
+ fail?: (params: {
1387
+ /** 错误信息 */
1388
+ errorMsg: string
1389
+ /** 错误码 */
1390
+ errorCode: string | number
1391
+ /** 错误扩展 */
1392
+ innerError: {
1393
+ /** 错误扩展码 */
1394
+ errorCode: string | number
1395
+ /** 错误扩展信息 */
1396
+ errorMsg: string
1397
+ }
1398
+ }) => void
1399
+ }): void
1400
+
1401
+ /** @since CategoryCommonBizKit 0.0.4 */
1402
+ export interface ParamModel {
1403
+ /**
1404
+ * 权限类型
1405
+ * @since CategoryCommonBizKit 0.0.4
1406
+ */
1407
+ permissions: string[]
1408
+ /**
1409
+ * 读取权限类型
1410
+ * @since CategoryCommonBizKit 0.0.4
1411
+ */
1412
+ readPermissions: string[]
1413
+ /**
1414
+ * 写入权限类型
1415
+ * @since CategoryCommonBizKit 0.0.4
1416
+ */
1417
+ writePermissions: string[]
1418
+ /**
1419
+ * 写入权限类型
1420
+ * @since CategoryCommonBizKit 0.0.4
1421
+ */
1422
+ writePermission: number
1423
+ /**
1424
+ * quanlity 类型
1425
+ * @since CategoryCommonBizKit 0.0.4
1426
+ */
1427
+ quanlityType: number
1428
+ /**
1429
+ * 写入值
1430
+ * @since CategoryCommonBizKit 0.0.4
1431
+ */
1432
+ value: number
1433
+ /**
1434
+ * 传入单位 比如"mg/dL","g"
1435
+ * @since CategoryCommonBizKit 0.0.4
1436
+ */
1437
+ unitType: string
1438
+ /**
1439
+ * 开始时间
1440
+ * @since CategoryCommonBizKit 0.0.4
1441
+ */
1442
+ startTime: number
1443
+ /**
1444
+ * 结束时间
1445
+ * @since CategoryCommonBizKit 0.0.4
1446
+ */
1447
+ endTime: number
1448
+ /**
1449
+ * 类型
1450
+ * @since CategoryCommonBizKit 0.0.4
1451
+ */
1452
+ type: number
1453
+ /**
1454
+ * quanlity 类型
1455
+ * @since CategoryCommonBizKit 0.0.4
1456
+ */
1457
+ categorylity: number
1458
+ }
1459
+ }