capacitor-plugin-ihealth 1.1.0

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 (178) hide show
  1. package/CapacitorPluginIhealth.podspec +35 -0
  2. package/README.md +214 -0
  3. package/android/build.gradle +58 -0
  4. package/android/src/main/AndroidManifest.xml +2 -0
  5. package/android/src/main/java/com/managemyhealth/plugins/ihealth/ihealth.java +11 -0
  6. package/android/src/main/java/com/managemyhealth/plugins/ihealth/ihealthPlugin.java +22 -0
  7. package/android/src/main/res/.gitkeep +0 -0
  8. package/dist/docs.json +450 -0
  9. package/dist/esm/definitions.d.ts +29 -0
  10. package/dist/esm/definitions.js +2 -0
  11. package/dist/esm/definitions.js.map +1 -0
  12. package/dist/esm/index.d.ts +4 -0
  13. package/dist/esm/index.js +7 -0
  14. package/dist/esm/index.js.map +1 -0
  15. package/dist/esm/web.d.ts +37 -0
  16. package/dist/esm/web.js +42 -0
  17. package/dist/esm/web.js.map +1 -0
  18. package/dist/plugin.cjs.js +58 -0
  19. package/dist/plugin.cjs.js.map +1 -0
  20. package/dist/plugin.js +61 -0
  21. package/dist/plugin.js.map +1 -0
  22. package/ios/Plugin/Info.plist +24 -0
  23. package/ios/Plugin/Plugin-Bridging-Header.h +35 -0
  24. package/ios/Plugin/iHealthSDKHeaders/ABI.h +82 -0
  25. package/ios/Plugin/iHealthSDKHeaders/ABIController.h +28 -0
  26. package/ios/Plugin/iHealthSDKHeaders/ABPM.h +144 -0
  27. package/ios/Plugin/iHealthSDKHeaders/ABPMController.h +25 -0
  28. package/ios/Plugin/iHealthSDKHeaders/AM3.h +188 -0
  29. package/ios/Plugin/iHealthSDKHeaders/AM3Controller.h +29 -0
  30. package/ios/Plugin/iHealthSDKHeaders/AM3SController_V2.h +29 -0
  31. package/ios/Plugin/iHealthSDKHeaders/AM3S_V2.h +227 -0
  32. package/ios/Plugin/iHealthSDKHeaders/AM4.h +223 -0
  33. package/ios/Plugin/iHealthSDKHeaders/AM4Controller.h +31 -0
  34. package/ios/Plugin/iHealthSDKHeaders/AM5.h +335 -0
  35. package/ios/Plugin/iHealthSDKHeaders/AM5Controller.h +30 -0
  36. package/ios/Plugin/iHealthSDKHeaders/AM5Header.h +20 -0
  37. package/ios/Plugin/iHealthSDKHeaders/AMHeader.h +27 -0
  38. package/ios/Plugin/iHealthSDKHeaders/AMMacroFile.h +1171 -0
  39. package/ios/Plugin/iHealthSDKHeaders/BG1.h +53 -0
  40. package/ios/Plugin/iHealthSDKHeaders/BG1Controller.h +46 -0
  41. package/ios/Plugin/iHealthSDKHeaders/BG1S.h +64 -0
  42. package/ios/Plugin/iHealthSDKHeaders/BG1SController.h +25 -0
  43. package/ios/Plugin/iHealthSDKHeaders/BG3.h +83 -0
  44. package/ios/Plugin/iHealthSDKHeaders/BG3Controller.h +28 -0
  45. package/ios/Plugin/iHealthSDKHeaders/BG5.h +158 -0
  46. package/ios/Plugin/iHealthSDKHeaders/BG5Controller.h +28 -0
  47. package/ios/Plugin/iHealthSDKHeaders/BG5S.h +294 -0
  48. package/ios/Plugin/iHealthSDKHeaders/BG5SController.h +29 -0
  49. package/ios/Plugin/iHealthSDKHeaders/BGController.h +32 -0
  50. package/ios/Plugin/iHealthSDKHeaders/BGDevice.h +42 -0
  51. package/ios/Plugin/iHealthSDKHeaders/BGHeader.h +23 -0
  52. package/ios/Plugin/iHealthSDKHeaders/BGMacroFile.h +507 -0
  53. package/ios/Plugin/iHealthSDKHeaders/BP3.h +77 -0
  54. package/ios/Plugin/iHealthSDKHeaders/BP3Controller.h +27 -0
  55. package/ios/Plugin/iHealthSDKHeaders/BP3L.h +58 -0
  56. package/ios/Plugin/iHealthSDKHeaders/BP3LController.h +30 -0
  57. package/ios/Plugin/iHealthSDKHeaders/BP5.h +32 -0
  58. package/ios/Plugin/iHealthSDKHeaders/BP5C.h +131 -0
  59. package/ios/Plugin/iHealthSDKHeaders/BP5CController.h +25 -0
  60. package/ios/Plugin/iHealthSDKHeaders/BP5Controller.h +25 -0
  61. package/ios/Plugin/iHealthSDKHeaders/BP5S.h +97 -0
  62. package/ios/Plugin/iHealthSDKHeaders/BP5SController.h +27 -0
  63. package/ios/Plugin/iHealthSDKHeaders/BP5SRW.h +101 -0
  64. package/ios/Plugin/iHealthSDKHeaders/BP5SRWController.h +26 -0
  65. package/ios/Plugin/iHealthSDKHeaders/BP7.h +141 -0
  66. package/ios/Plugin/iHealthSDKHeaders/BP7Controller.h +25 -0
  67. package/ios/Plugin/iHealthSDKHeaders/BP7S.h +106 -0
  68. package/ios/Plugin/iHealthSDKHeaders/BP7SController.h +32 -0
  69. package/ios/Plugin/iHealthSDKHeaders/BPAV10Device.h +15 -0
  70. package/ios/Plugin/iHealthSDKHeaders/BPBTLEDevice.h +17 -0
  71. package/ios/Plugin/iHealthSDKHeaders/BPBV10Device.h +20 -0
  72. package/ios/Plugin/iHealthSDKHeaders/BPContinua.h +56 -0
  73. package/ios/Plugin/iHealthSDKHeaders/BPContinuaController.h +30 -0
  74. package/ios/Plugin/iHealthSDKHeaders/BPController.h +40 -0
  75. package/ios/Plugin/iHealthSDKHeaders/BPDevice.h +131 -0
  76. package/ios/Plugin/iHealthSDKHeaders/BPHeader.h +54 -0
  77. package/ios/Plugin/iHealthSDKHeaders/BPLoopMeasureSettingModel.h +120 -0
  78. package/ios/Plugin/iHealthSDKHeaders/BPM1AE.h +80 -0
  79. package/ios/Plugin/iHealthSDKHeaders/BPMacroFile.h +247 -0
  80. package/ios/Plugin/iHealthSDKHeaders/BPV24Device.h +16 -0
  81. package/ios/Plugin/iHealthSDKHeaders/BPV25Device.h +17 -0
  82. package/ios/Plugin/iHealthSDKHeaders/ConnectDeviceController.h +27 -0
  83. package/ios/Plugin/iHealthSDKHeaders/DFUController.h +160 -0
  84. package/ios/Plugin/iHealthSDKHeaders/DFUDeviceFirmwareInfo.h +56 -0
  85. package/ios/Plugin/iHealthSDKHeaders/DFUHeader.h +19 -0
  86. package/ios/Plugin/iHealthSDKHeaders/DFUMacro.h +264 -0
  87. package/ios/Plugin/iHealthSDKHeaders/DFUServerFirmwareInfo.h +48 -0
  88. package/ios/Plugin/iHealthSDKHeaders/ECG3.h +94 -0
  89. package/ios/Plugin/iHealthSDKHeaders/ECG3Controller.h +30 -0
  90. package/ios/Plugin/iHealthSDKHeaders/ECG3USB.h +145 -0
  91. package/ios/Plugin/iHealthSDKHeaders/ECG3USBController.h +31 -0
  92. package/ios/Plugin/iHealthSDKHeaders/ECGHeader.h +20 -0
  93. package/ios/Plugin/iHealthSDKHeaders/ECGMacroFile.h +84 -0
  94. package/ios/Plugin/iHealthSDKHeaders/HFSmartLink.h +88 -0
  95. package/ios/Plugin/iHealthSDKHeaders/HFSmartLinkDeviceInfo.h +14 -0
  96. package/ios/Plugin/iHealthSDKHeaders/HS2.h +64 -0
  97. package/ios/Plugin/iHealthSDKHeaders/HS2Controller.h +25 -0
  98. package/ios/Plugin/iHealthSDKHeaders/HS2S.h +399 -0
  99. package/ios/Plugin/iHealthSDKHeaders/HS2SController.h +27 -0
  100. package/ios/Plugin/iHealthSDKHeaders/HS3.h +63 -0
  101. package/ios/Plugin/iHealthSDKHeaders/HS3Controller.h +32 -0
  102. package/ios/Plugin/iHealthSDKHeaders/HS4.h +64 -0
  103. package/ios/Plugin/iHealthSDKHeaders/HS4Controller.h +26 -0
  104. package/ios/Plugin/iHealthSDKHeaders/HS5.h +141 -0
  105. package/ios/Plugin/iHealthSDKHeaders/HS5Controller.h +38 -0
  106. package/ios/Plugin/iHealthSDKHeaders/HSHeader.h +25 -0
  107. package/ios/Plugin/iHealthSDKHeaders/HSMacroFile.h +709 -0
  108. package/ios/Plugin/iHealthSDKHeaders/HealthHeader.h +67 -0
  109. package/ios/Plugin/iHealthSDKHeaders/HealthUser.h +126 -0
  110. package/ios/Plugin/iHealthSDKHeaders/IDOBindEnum.h +49 -0
  111. package/ios/Plugin/iHealthSDKHeaders/IDOBlueDataResponse.h +66 -0
  112. package/ios/Plugin/iHealthSDKHeaders/IDOBlueEnum.h +213 -0
  113. package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothBaseModel.h +112 -0
  114. package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothEngine.h +283 -0
  115. package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothManager.h +166 -0
  116. package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothServices.h +75 -0
  117. package/ios/Plugin/iHealthSDKHeaders/IDOCalculateBluetoothModel.h +263 -0
  118. package/ios/Plugin/iHealthSDKHeaders/IDOCommonMacro.h +89 -0
  119. package/ios/Plugin/iHealthSDKHeaders/IDODataExchangeModel.h +128 -0
  120. package/ios/Plugin/iHealthSDKHeaders/IDODataMigrationManager.h +79 -0
  121. package/ios/Plugin/iHealthSDKHeaders/IDOErrorCodeToStr.h +19 -0
  122. package/ios/Plugin/iHealthSDKHeaders/IDOFoundationCommand.h +1178 -0
  123. package/ios/Plugin/iHealthSDKHeaders/IDOGetInfoBluetoothModel.h +1924 -0
  124. package/ios/Plugin/iHealthSDKHeaders/IDOLogEnum.h +165 -0
  125. package/ios/Plugin/iHealthSDKHeaders/IDOPeripheralModel.h +59 -0
  126. package/ios/Plugin/iHealthSDKHeaders/IDORecordDeviceLog.h +56 -0
  127. package/ios/Plugin/iHealthSDKHeaders/IDOSetInfoBluetoothModel.h +1760 -0
  128. package/ios/Plugin/iHealthSDKHeaders/IDOSyncActivityDataModel.h +207 -0
  129. package/ios/Plugin/iHealthSDKHeaders/IDOSyncBpDataModel.h +191 -0
  130. package/ios/Plugin/iHealthSDKHeaders/IDOSyncEnum.h +316 -0
  131. package/ios/Plugin/iHealthSDKHeaders/IDOSyncGpsDataModel.h +133 -0
  132. package/ios/Plugin/iHealthSDKHeaders/IDOSyncHeartRateDataModel.h +442 -0
  133. package/ios/Plugin/iHealthSDKHeaders/IDOSyncManager.h +161 -0
  134. package/ios/Plugin/iHealthSDKHeaders/IDOSyncPressureDataModel.h +158 -0
  135. package/ios/Plugin/iHealthSDKHeaders/IDOSyncSleepDataModel.h +224 -0
  136. package/ios/Plugin/iHealthSDKHeaders/IDOSyncSpo2DataModel.h +175 -0
  137. package/ios/Plugin/iHealthSDKHeaders/IDOSyncSportDataModel.h +221 -0
  138. package/ios/Plugin/iHealthSDKHeaders/IDOSyncSwimDataModel.h +188 -0
  139. package/ios/Plugin/iHealthSDKHeaders/IDOTranEnum.h +93 -0
  140. package/ios/Plugin/iHealthSDKHeaders/IDOTransferFileManager.h +116 -0
  141. package/ios/Plugin/iHealthSDKHeaders/IDOWatchDialInfoModel.h +95 -0
  142. package/ios/Plugin/iHealthSDKHeaders/IDOWatchDialManager.h +75 -0
  143. package/ios/Plugin/iHealthSDKHeaders/IDOWeightBluetoothModel.h +124 -0
  144. package/ios/Plugin/iHealthSDKHeaders/IHSDKCloudUser.h +104 -0
  145. package/ios/Plugin/iHealthSDKHeaders/KN550BT.h +115 -0
  146. package/ios/Plugin/iHealthSDKHeaders/KN550BTController.h +32 -0
  147. package/ios/Plugin/iHealthSDKHeaders/ManageDeviceController.h +34 -0
  148. package/ios/Plugin/iHealthSDKHeaders/NT13B.h +33 -0
  149. package/ios/Plugin/iHealthSDKHeaders/NT13BController.h +28 -0
  150. package/ios/Plugin/iHealthSDKHeaders/NT13BHeader.h +16 -0
  151. package/ios/Plugin/iHealthSDKHeaders/NT13BMacroFile.h +34 -0
  152. package/ios/Plugin/iHealthSDKHeaders/PO1.h +82 -0
  153. package/ios/Plugin/iHealthSDKHeaders/PO1Controller.h +29 -0
  154. package/ios/Plugin/iHealthSDKHeaders/PO3.h +96 -0
  155. package/ios/Plugin/iHealthSDKHeaders/PO3Controller.h +29 -0
  156. package/ios/Plugin/iHealthSDKHeaders/POHeader.h +20 -0
  157. package/ios/Plugin/iHealthSDKHeaders/POMacroFile.h +142 -0
  158. package/ios/Plugin/iHealthSDKHeaders/PT3SBT.h +167 -0
  159. package/ios/Plugin/iHealthSDKHeaders/PT3SBTController.h +27 -0
  160. package/ios/Plugin/iHealthSDKHeaders/PT3SBTMacroFile.h +92 -0
  161. package/ios/Plugin/iHealthSDKHeaders/SDKFlowUpdateDevice.h +196 -0
  162. package/ios/Plugin/iHealthSDKHeaders/SDKInfo.h +30 -0
  163. package/ios/Plugin/iHealthSDKHeaders/SDKUpdateDevice.h +235 -0
  164. package/ios/Plugin/iHealthSDKHeaders/ScanDeviceController.h +47 -0
  165. package/ios/Plugin/iHealthSDKHeaders/THV3.h +104 -0
  166. package/ios/Plugin/iHealthSDKHeaders/THV3Controller.h +30 -0
  167. package/ios/Plugin/iHealthSDKHeaders/THV3Macro.h +17 -0
  168. package/ios/Plugin/iHealthSDKHeaders/TS28B.h +26 -0
  169. package/ios/Plugin/iHealthSDKHeaders/TS28BController.h +142 -0
  170. package/ios/Plugin/iHealthSDKHeaders/TS28BHeader.h +15 -0
  171. package/ios/Plugin/iHealthSDKHeaders/iHealthHS6.h +174 -0
  172. package/ios/Plugin/ihealth.swift +8 -0
  173. package/ios/Plugin/ihealthPlugin.h +10 -0
  174. package/ios/Plugin/ihealthPlugin.m +16 -0
  175. package/ios/Plugin/ihealthPlugin.swift +1502 -0
  176. package/ios/Plugin/libiHealthSDK2.7.8.a +0 -0
  177. package/ios/Plugin/test.m +9 -0
  178. package/package.json +78 -0
package/dist/docs.json ADDED
@@ -0,0 +1,450 @@
1
+ {
2
+ "api": {
3
+ "name": "ihealthPlugin",
4
+ "slug": "ihealthplugin",
5
+ "docs": "",
6
+ "tags": [],
7
+ "methods": [
8
+ {
9
+ "name": "authoriseiHealthSdk",
10
+ "signature": "() => Promise<{ value: any; }>",
11
+ "parameters": [],
12
+ "returns": "Promise<{ value: any; }>",
13
+ "tags": [],
14
+ "docs": "",
15
+ "complexTypes": [],
16
+ "slug": "authoriseihealthsdk"
17
+ },
18
+ {
19
+ "name": "isBluetoothEnabled",
20
+ "signature": "() => Promise<{ value: any; }>",
21
+ "parameters": [],
22
+ "returns": "Promise<{ value: any; }>",
23
+ "tags": [],
24
+ "docs": "",
25
+ "complexTypes": [],
26
+ "slug": "isbluetoothenabled"
27
+ },
28
+ {
29
+ "name": "initialiseCentralManager",
30
+ "signature": "() => Promise<{ value: any; }>",
31
+ "parameters": [],
32
+ "returns": "Promise<{ value: any; }>",
33
+ "tags": [],
34
+ "docs": "",
35
+ "complexTypes": [],
36
+ "slug": "initialisecentralmanager"
37
+ },
38
+ {
39
+ "name": "scanDiscover",
40
+ "signature": "(options: Object) => Promise<{ value: any; }>",
41
+ "parameters": [
42
+ {
43
+ "name": "options",
44
+ "docs": "",
45
+ "type": "Object"
46
+ }
47
+ ],
48
+ "returns": "Promise<{ value: any; }>",
49
+ "tags": [],
50
+ "docs": "",
51
+ "complexTypes": [
52
+ "Object"
53
+ ],
54
+ "slug": "scandiscover"
55
+ },
56
+ {
57
+ "name": "connectDevice",
58
+ "signature": "(options: Object) => Promise<any>",
59
+ "parameters": [
60
+ {
61
+ "name": "options",
62
+ "docs": "",
63
+ "type": "Object"
64
+ }
65
+ ],
66
+ "returns": "Promise<any>",
67
+ "tags": [],
68
+ "docs": "",
69
+ "complexTypes": [
70
+ "Object"
71
+ ],
72
+ "slug": "connectdevice"
73
+ },
74
+ {
75
+ "name": "getConnectedDeviceInstance",
76
+ "signature": "(options: Object) => Promise<{ value: any; }>",
77
+ "parameters": [
78
+ {
79
+ "name": "options",
80
+ "docs": "",
81
+ "type": "Object"
82
+ }
83
+ ],
84
+ "returns": "Promise<{ value: any; }>",
85
+ "tags": [],
86
+ "docs": "",
87
+ "complexTypes": [
88
+ "Object"
89
+ ],
90
+ "slug": "getconnecteddeviceinstance"
91
+ },
92
+ {
93
+ "name": "disconnectDevice",
94
+ "signature": "() => Promise<{ value: any; }>",
95
+ "parameters": [],
96
+ "returns": "Promise<{ value: any; }>",
97
+ "tags": [],
98
+ "docs": "",
99
+ "complexTypes": [],
100
+ "slug": "disconnectdevice"
101
+ },
102
+ {
103
+ "name": "deleteDeviceData",
104
+ "signature": "() => Promise<{ value: any; }>",
105
+ "parameters": [],
106
+ "returns": "Promise<{ value: any; }>",
107
+ "tags": [],
108
+ "docs": "",
109
+ "complexTypes": [],
110
+ "slug": "deletedevicedata"
111
+ },
112
+ {
113
+ "name": "getDeviceOfflineData",
114
+ "signature": "() => Promise<{ value: any; }>",
115
+ "parameters": [],
116
+ "returns": "Promise<{ value: any; }>",
117
+ "tags": [],
118
+ "docs": "",
119
+ "complexTypes": [],
120
+ "slug": "getdeviceofflinedata"
121
+ },
122
+ {
123
+ "name": "addListener",
124
+ "signature": "(...args: [eventName: \"OnlineDeviceData\", listenerFunc: (info: any) => void] | [eventName: \"error\", listenerFunc: (info: any) => void] | [eventName: \"deviceDatafound\", listenerFunc: (info: any) => void] | [eventName: \"dataNotFound\", listenerFunc: (info: any) => void] | [eventName: \"deviceConnectFail\", listenerFunc: (info: any) => void] | [eventName: \"deviceDisconnect\", listenerFunc: (info: any) => void] | [eventName: \"deviceDiscover\", listenerFunc: (info: any) => void] | [eventName: \"deviceConnect\", listenerFunc: (info: any) => void]) => Promise<PluginListenerHandle> & PluginListenerHandle",
125
+ "parameters": [
126
+ {
127
+ "name": "args",
128
+ "docs": "",
129
+ "type": "[eventName: 'OnlineDeviceData', listenerFunc: (info: any) => void] | [eventName: 'error', listenerFunc: (info: any) => void] | [eventName: 'deviceDatafound', listenerFunc: (info: any) => void] | [eventName: 'dataNotFound', listenerFunc: (info: any) => void] | [eventName: 'deviceConnectFail', listenerFunc: (info: any) => void] | [eventName: 'deviceDisconnect', listenerFunc: (info: any) => void] | [eventName: 'deviceDiscover', listenerFunc: (info: any) => void] | [eventName: 'deviceConnect', listenerFunc: (info: any) => void]"
130
+ }
131
+ ],
132
+ "returns": "Promise<PluginListenerHandle> & PluginListenerHandle",
133
+ "tags": [],
134
+ "docs": "",
135
+ "complexTypes": [
136
+ "PluginListenerHandle"
137
+ ],
138
+ "slug": "addlistenereventname-onlinedevicedata-listenerfunc-info-any--void--eventname-error-listenerfunc-info-any--void--eventname-devicedatafound-listenerfunc-info-any--void--eventname-datanotfound-listenerfunc-info-any--void--eventname-deviceconnectfail-listenerfunc-info-any--void--eventname-devicedisconnect-listenerfunc-info-any--void--eventname-devicediscover-listenerfunc-info-any--void--eventname-deviceconnect-listenerfunc-info-any--void"
139
+ }
140
+ ],
141
+ "properties": []
142
+ },
143
+ "interfaces": [
144
+ {
145
+ "name": "Object",
146
+ "slug": "object",
147
+ "docs": "Provides functionality common to all JavaScript objects.",
148
+ "tags": [],
149
+ "methods": [
150
+ {
151
+ "name": "toString",
152
+ "signature": "() => string",
153
+ "parameters": [],
154
+ "returns": "string",
155
+ "tags": [],
156
+ "docs": "Returns a string representation of an object.",
157
+ "complexTypes": [],
158
+ "slug": "tostring"
159
+ },
160
+ {
161
+ "name": "toLocaleString",
162
+ "signature": "() => string",
163
+ "parameters": [],
164
+ "returns": "string",
165
+ "tags": [],
166
+ "docs": "Returns a date converted to a string using the current locale.",
167
+ "complexTypes": [],
168
+ "slug": "tolocalestring"
169
+ },
170
+ {
171
+ "name": "valueOf",
172
+ "signature": "() => Object",
173
+ "parameters": [],
174
+ "returns": "Object",
175
+ "tags": [],
176
+ "docs": "Returns the primitive value of the specified object.",
177
+ "complexTypes": [
178
+ "Object"
179
+ ],
180
+ "slug": "valueof"
181
+ },
182
+ {
183
+ "name": "hasOwnProperty",
184
+ "signature": "(v: PropertyKey) => boolean",
185
+ "parameters": [
186
+ {
187
+ "name": "v",
188
+ "docs": "A property name.",
189
+ "type": "PropertyKey"
190
+ }
191
+ ],
192
+ "returns": "boolean",
193
+ "tags": [
194
+ {
195
+ "name": "param",
196
+ "text": "v A property name."
197
+ }
198
+ ],
199
+ "docs": "Determines whether an object has a property with the specified name.",
200
+ "complexTypes": [
201
+ "PropertyKey"
202
+ ],
203
+ "slug": "hasownproperty"
204
+ },
205
+ {
206
+ "name": "isPrototypeOf",
207
+ "signature": "(v: Object) => boolean",
208
+ "parameters": [
209
+ {
210
+ "name": "v",
211
+ "docs": "Another object whose prototype chain is to be checked.",
212
+ "type": "Object"
213
+ }
214
+ ],
215
+ "returns": "boolean",
216
+ "tags": [
217
+ {
218
+ "name": "param",
219
+ "text": "v Another object whose prototype chain is to be checked."
220
+ }
221
+ ],
222
+ "docs": "Determines whether an object exists in another object's prototype chain.",
223
+ "complexTypes": [
224
+ "Object"
225
+ ],
226
+ "slug": "isprototypeof"
227
+ },
228
+ {
229
+ "name": "propertyIsEnumerable",
230
+ "signature": "(v: PropertyKey) => boolean",
231
+ "parameters": [
232
+ {
233
+ "name": "v",
234
+ "docs": "A property name.",
235
+ "type": "PropertyKey"
236
+ }
237
+ ],
238
+ "returns": "boolean",
239
+ "tags": [
240
+ {
241
+ "name": "param",
242
+ "text": "v A property name."
243
+ }
244
+ ],
245
+ "docs": "Determines whether a specified property is enumerable.",
246
+ "complexTypes": [
247
+ "PropertyKey"
248
+ ],
249
+ "slug": "propertyisenumerable"
250
+ }
251
+ ],
252
+ "properties": [
253
+ {
254
+ "name": "constructor",
255
+ "tags": [],
256
+ "docs": "The initial value of Object.prototype.constructor is the standard built-in Object constructor.",
257
+ "complexTypes": [
258
+ "Function"
259
+ ],
260
+ "type": "Function"
261
+ }
262
+ ]
263
+ },
264
+ {
265
+ "name": "Function",
266
+ "slug": "function",
267
+ "docs": "Creates a new function.",
268
+ "tags": [],
269
+ "methods": [
270
+ {
271
+ "name": "apply",
272
+ "signature": "(this: Function, thisArg: any, argArray?: any) => any",
273
+ "parameters": [
274
+ {
275
+ "name": "thisArg",
276
+ "docs": "The object to be used as the this object.",
277
+ "type": "any"
278
+ },
279
+ {
280
+ "name": "argArray",
281
+ "docs": "A set of arguments to be passed to the function.",
282
+ "type": "any"
283
+ }
284
+ ],
285
+ "returns": "any",
286
+ "tags": [
287
+ {
288
+ "name": "param",
289
+ "text": "thisArg The object to be used as the this object."
290
+ },
291
+ {
292
+ "name": "param",
293
+ "text": "argArray A set of arguments to be passed to the function."
294
+ }
295
+ ],
296
+ "docs": "Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.",
297
+ "complexTypes": [
298
+ "Function"
299
+ ],
300
+ "slug": "apply"
301
+ },
302
+ {
303
+ "name": "call",
304
+ "signature": "(this: Function, thisArg: any, ...argArray: any[]) => any",
305
+ "parameters": [
306
+ {
307
+ "name": "thisArg",
308
+ "docs": "The object to be used as the current object.",
309
+ "type": "any"
310
+ },
311
+ {
312
+ "name": "argArray",
313
+ "docs": "A list of arguments to be passed to the method.",
314
+ "type": "any[]"
315
+ }
316
+ ],
317
+ "returns": "any",
318
+ "tags": [
319
+ {
320
+ "name": "param",
321
+ "text": "thisArg The object to be used as the current object."
322
+ },
323
+ {
324
+ "name": "param",
325
+ "text": "argArray A list of arguments to be passed to the method."
326
+ }
327
+ ],
328
+ "docs": "Calls a method of an object, substituting another object for the current object.",
329
+ "complexTypes": [
330
+ "Function"
331
+ ],
332
+ "slug": "call"
333
+ },
334
+ {
335
+ "name": "bind",
336
+ "signature": "(this: Function, thisArg: any, ...argArray: any[]) => any",
337
+ "parameters": [
338
+ {
339
+ "name": "thisArg",
340
+ "docs": "An object to which the this keyword can refer inside the new function.",
341
+ "type": "any"
342
+ },
343
+ {
344
+ "name": "argArray",
345
+ "docs": "A list of arguments to be passed to the new function.",
346
+ "type": "any[]"
347
+ }
348
+ ],
349
+ "returns": "any",
350
+ "tags": [
351
+ {
352
+ "name": "param",
353
+ "text": "thisArg An object to which the this keyword can refer inside the new function."
354
+ },
355
+ {
356
+ "name": "param",
357
+ "text": "argArray A list of arguments to be passed to the new function."
358
+ }
359
+ ],
360
+ "docs": "For a given function, creates a bound function that has the same body as the original function.\r\nThe this object of the bound function is associated with the specified object, and has the specified initial parameters.",
361
+ "complexTypes": [
362
+ "Function"
363
+ ],
364
+ "slug": "bind"
365
+ },
366
+ {
367
+ "name": "toString",
368
+ "signature": "() => string",
369
+ "parameters": [],
370
+ "returns": "string",
371
+ "tags": [],
372
+ "docs": "Returns a string representation of a function.",
373
+ "complexTypes": [],
374
+ "slug": "tostring"
375
+ }
376
+ ],
377
+ "properties": [
378
+ {
379
+ "name": "prototype",
380
+ "tags": [],
381
+ "docs": "",
382
+ "complexTypes": [],
383
+ "type": "any"
384
+ },
385
+ {
386
+ "name": "length",
387
+ "tags": [],
388
+ "docs": "",
389
+ "complexTypes": [],
390
+ "type": "number"
391
+ },
392
+ {
393
+ "name": "arguments",
394
+ "tags": [],
395
+ "docs": "",
396
+ "complexTypes": [],
397
+ "type": "any"
398
+ },
399
+ {
400
+ "name": "caller",
401
+ "tags": [],
402
+ "docs": "",
403
+ "complexTypes": [
404
+ "Function"
405
+ ],
406
+ "type": "Function"
407
+ }
408
+ ]
409
+ },
410
+ {
411
+ "name": "PluginListenerHandle",
412
+ "slug": "pluginlistenerhandle",
413
+ "docs": "",
414
+ "tags": [],
415
+ "methods": [],
416
+ "properties": [
417
+ {
418
+ "name": "remove",
419
+ "tags": [],
420
+ "docs": "",
421
+ "complexTypes": [],
422
+ "type": "() => Promise<void>"
423
+ }
424
+ ]
425
+ }
426
+ ],
427
+ "enums": [],
428
+ "typeAliases": [
429
+ {
430
+ "name": "PropertyKey",
431
+ "slug": "propertykey",
432
+ "docs": "",
433
+ "types": [
434
+ {
435
+ "text": "string",
436
+ "complexTypes": []
437
+ },
438
+ {
439
+ "text": "number",
440
+ "complexTypes": []
441
+ },
442
+ {
443
+ "text": "symbol",
444
+ "complexTypes": []
445
+ }
446
+ ]
447
+ }
448
+ ],
449
+ "pluginConfigs": []
450
+ }
@@ -0,0 +1,29 @@
1
+ import { PluginListenerHandle } from "@capacitor/core";
2
+ export interface ihealthPlugin {
3
+ authoriseiHealthSdk(): Promise<{
4
+ value: any;
5
+ }>;
6
+ isBluetoothEnabled(): Promise<{
7
+ value: any;
8
+ }>;
9
+ initialiseCentralManager(): Promise<{
10
+ value: any;
11
+ }>;
12
+ scanDiscover(options: Object): Promise<{
13
+ value: any;
14
+ }>;
15
+ connectDevice(options: Object): Promise<any>;
16
+ getConnectedDeviceInstance(options: Object): Promise<{
17
+ value: any;
18
+ }>;
19
+ disconnectDevice(): Promise<{
20
+ value: any;
21
+ }>;
22
+ deleteDeviceData(): Promise<{
23
+ value: any;
24
+ }>;
25
+ getDeviceOfflineData(): Promise<{
26
+ value: any;
27
+ }>;
28
+ addListener(...args: [eventName: 'OnlineDeviceData', listenerFunc: (info: any) => void] | [eventName: 'error', listenerFunc: (info: any) => void] | [eventName: 'deviceDatafound', listenerFunc: (info: any) => void] | [eventName: 'dataNotFound', listenerFunc: (info: any) => void] | [eventName: 'deviceConnectFail', listenerFunc: (info: any) => void] | [eventName: 'deviceDisconnect', listenerFunc: (info: any) => void] | [eventName: 'deviceDiscover', listenerFunc: (info: any) => void] | [eventName: 'deviceConnect', listenerFunc: (info: any) => void]): Promise<PluginListenerHandle> & PluginListenerHandle;
29
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import { PluginListenerHandle } from \"@capacitor/core\";\n\nexport interface ihealthPlugin {\n authoriseiHealthSdk(): Promise<{ value: any }>;\n isBluetoothEnabled(): Promise<{ value: any }>;\n\tinitialiseCentralManager(): Promise<{ value: any }>;\n scanDiscover(options: Object): Promise<{ value: any }>;\n\tconnectDevice(options: Object): Promise<any>;\n getConnectedDeviceInstance(options: Object): Promise<{ value: any }>;\n\tdisconnectDevice(): Promise<{ value: any }>;\n deleteDeviceData(): Promise<{ value: any }>;\n getDeviceOfflineData(): Promise<{ value: any }>;\n addListener(...args: [eventName: 'OnlineDeviceData', listenerFunc: (info: any) => void] |[eventName: 'error', listenerFunc: (info: any) => void] | [eventName: 'deviceDatafound', listenerFunc: (info: any) => void] | [eventName: 'dataNotFound', listenerFunc: (info: any) => void]|[eventName: 'deviceConnectFail', listenerFunc: (info: any) => void] | [eventName: 'deviceDisconnect', listenerFunc: (info: any) => void] | [eventName: 'deviceDiscover', listenerFunc: (info: any) => void] | [eventName: 'deviceConnect', listenerFunc: (info: any) => void]): Promise<PluginListenerHandle> & PluginListenerHandle;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import type { ihealthPlugin } from './definitions';
2
+ declare const ihealth: ihealthPlugin;
3
+ export * from './definitions';
4
+ export { ihealth };
@@ -0,0 +1,7 @@
1
+ import { registerPlugin } from '@capacitor/core';
2
+ const ihealth = registerPlugin('ihealth', {
3
+ web: () => import('./web').then(m => new m.ihealthWeb()),
4
+ });
5
+ export * from './definitions';
6
+ export { ihealth };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,OAAO,GAAG,cAAc,CAAgB,SAAS,EAAE;IACvD,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;CACzD,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { ihealthPlugin } from './definitions';\n\nconst ihealth = registerPlugin<ihealthPlugin>('ihealth', {\n web: () => import('./web').then(m => new m.ihealthWeb()),\n});\n\nexport * from './definitions';\nexport { ihealth };\n"]}
@@ -0,0 +1,37 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ import type { ihealthPlugin } from './definitions';
3
+ export declare class ihealthWeb extends WebPlugin implements ihealthPlugin {
4
+ options: {
5
+ value: any;
6
+ };
7
+ echo(options: {
8
+ value: string;
9
+ }): Promise<{
10
+ value: string;
11
+ }>;
12
+ authoriseiHealthSdk(): Promise<{
13
+ value: any;
14
+ }>;
15
+ isBluetoothEnabled(): Promise<{
16
+ value: any;
17
+ }>;
18
+ initialiseCentralManager(): Promise<{
19
+ value: any;
20
+ }>;
21
+ scanDiscover(options: Object): Promise<{
22
+ value: any;
23
+ }>;
24
+ connectDevice(options: Object): Promise<any>;
25
+ getConnectedDeviceInstance(options: Object): Promise<{
26
+ value: any;
27
+ }>;
28
+ disconnectDevice(): Promise<{
29
+ value: any;
30
+ }>;
31
+ deleteDeviceData(): Promise<{
32
+ value: any;
33
+ }>;
34
+ getDeviceOfflineData(): Promise<{
35
+ value: any;
36
+ }>;
37
+ }
@@ -0,0 +1,42 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ export class ihealthWeb extends WebPlugin {
3
+ constructor() {
4
+ super(...arguments);
5
+ this.options = { value: "ok" };
6
+ }
7
+ async echo(options) {
8
+ console.log('ECHO', options);
9
+ return options;
10
+ }
11
+ async authoriseiHealthSdk() {
12
+ return this.options;
13
+ }
14
+ async isBluetoothEnabled() {
15
+ return this.options;
16
+ }
17
+ async initialiseCentralManager() {
18
+ return this.options;
19
+ }
20
+ async scanDiscover(options) {
21
+ console.log("options", options);
22
+ return this.options;
23
+ }
24
+ async connectDevice(options) {
25
+ console.log("options", options);
26
+ return this.options;
27
+ }
28
+ async getConnectedDeviceInstance(options) {
29
+ console.log("options", options);
30
+ return this.options;
31
+ }
32
+ async disconnectDevice() {
33
+ return this.options;
34
+ }
35
+ async deleteDeviceData() {
36
+ return this.options;
37
+ }
38
+ async getDeviceOfflineData() {
39
+ return this.options;
40
+ }
41
+ }
42
+ //# sourceMappingURL=web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,UAAW,SAAQ,SAAS;IAAzC;;QACE,YAAO,GAAoB,EAAC,KAAK,EAAC,IAAI,EAAC,CAAC;IAsC1C,CAAC;IArCC,KAAK,CAAC,IAAI,CAAC,OAA0B;QACnC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC7B,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,KAAK,CAAC,mBAAmB;QAEvB,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IACA,KAAK,CAAC,kBAAkB;QAEvB,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IACF,KAAK,CAAC,wBAAwB;QAE3B,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IACD,KAAK,CAAC,YAAY,CAAC,OAAe;QACjC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAC,OAAO,CAAC,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IACJ,KAAK,CAAC,aAAa,CAAC,OAAe;QAChC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAC,OAAO,CAAC,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IACD,KAAK,CAAC,0BAA0B,CAAC,OAAe;QAC9C,OAAO,CAAC,GAAG,CAAC,SAAS,EAAC,OAAO,CAAC,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IACF,KAAK,CAAC,gBAAgB;QACnB,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IACD,KAAK,CAAC,gBAAgB;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IACD,KAAK,CAAC,oBAAoB;QACxB,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;CACJ","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { ihealthPlugin } from './definitions';\n\nexport class ihealthWeb extends WebPlugin implements ihealthPlugin {\n options: { value: any; } = {value:\"ok\"};\n async echo(options: { value: string }): Promise<{ value: string }> {\n console.log('ECHO', options);\n return options;\n }\n async authoriseiHealthSdk(): Promise<{ value: any }>{\n \n return this.options;\n }\n async isBluetoothEnabled(): Promise<{ value: any }>{\n \n return this.options;\n }\n\tasync initialiseCentralManager(): Promise<{ value: any }>{\n \n return this.options;\n }\n async scanDiscover(options: Object): Promise<{ value: any }>{\n console.log(\"options\",options);\n return this.options;\n }\n\tasync connectDevice(options: Object): Promise<any>{\n console.log(\"options\",options);\n return this.options;\n }\n async getConnectedDeviceInstance(options: Object): Promise<{ value: any }>{\n console.log(\"options\",options);\n return this.options;\n }\n\tasync disconnectDevice(): Promise<{ value: any }>{\n return this.options;\n }\n async deleteDeviceData(): Promise<{ value: any }>{\n return this.options;\n }\n async getDeviceOfflineData(): Promise<{ value: any }>{\n return this.options;\n }\n}\n"]}
@@ -0,0 +1,58 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var core = require('@capacitor/core');
6
+
7
+ const ihealth = core.registerPlugin('ihealth', {
8
+ web: () => Promise.resolve().then(function () { return web; }).then(m => new m.ihealthWeb()),
9
+ });
10
+
11
+ class ihealthWeb extends core.WebPlugin {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.options = { value: "ok" };
15
+ }
16
+ async echo(options) {
17
+ console.log('ECHO', options);
18
+ return options;
19
+ }
20
+ async authoriseiHealthSdk() {
21
+ return this.options;
22
+ }
23
+ async isBluetoothEnabled() {
24
+ return this.options;
25
+ }
26
+ async initialiseCentralManager() {
27
+ return this.options;
28
+ }
29
+ async scanDiscover(options) {
30
+ console.log("options", options);
31
+ return this.options;
32
+ }
33
+ async connectDevice(options) {
34
+ console.log("options", options);
35
+ return this.options;
36
+ }
37
+ async getConnectedDeviceInstance(options) {
38
+ console.log("options", options);
39
+ return this.options;
40
+ }
41
+ async disconnectDevice() {
42
+ return this.options;
43
+ }
44
+ async deleteDeviceData() {
45
+ return this.options;
46
+ }
47
+ async getDeviceOfflineData() {
48
+ return this.options;
49
+ }
50
+ }
51
+
52
+ var web = /*#__PURE__*/Object.freeze({
53
+ __proto__: null,
54
+ ihealthWeb: ihealthWeb
55
+ });
56
+
57
+ exports.ihealth = ihealth;
58
+ //# sourceMappingURL=plugin.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst ihealth = registerPlugin('ihealth', {\n web: () => import('./web').then(m => new m.ihealthWeb()),\n});\nexport * from './definitions';\nexport { ihealth };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class ihealthWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.options = { value: \"ok\" };\n }\n async echo(options) {\n console.log('ECHO', options);\n return options;\n }\n async authoriseiHealthSdk() {\n return this.options;\n }\n async isBluetoothEnabled() {\n return this.options;\n }\n async initialiseCentralManager() {\n return this.options;\n }\n async scanDiscover(options) {\n console.log(\"options\", options);\n return this.options;\n }\n async connectDevice(options) {\n console.log(\"options\", options);\n return this.options;\n }\n async getConnectedDeviceInstance(options) {\n console.log(\"options\", options);\n return this.options;\n }\n async disconnectDevice() {\n return this.options;\n }\n async deleteDeviceData() {\n return this.options;\n }\n async getDeviceOfflineData() {\n return this.options;\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;;;AACK,MAAC,OAAO,GAAGA,mBAAc,CAAC,SAAS,EAAE;AAC1C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;AAC5D,CAAC;;ACFM,MAAM,UAAU,SAASC,cAAS,CAAC;AAC1C,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,CAAC,GAAG,SAAS,CAAC,CAAC;AAC5B,QAAQ,IAAI,CAAC,OAAO,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;AACxB,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACrC,QAAQ,OAAO,OAAO,CAAC;AACvB,KAAK;AACL,IAAI,MAAM,mBAAmB,GAAG;AAChC,QAAQ,OAAO,IAAI,CAAC,OAAO,CAAC;AAC5B,KAAK;AACL,IAAI,MAAM,kBAAkB,GAAG;AAC/B,QAAQ,OAAO,IAAI,CAAC,OAAO,CAAC;AAC5B,KAAK;AACL,IAAI,MAAM,wBAAwB,GAAG;AACrC,QAAQ,OAAO,IAAI,CAAC,OAAO,CAAC;AAC5B,KAAK;AACL,IAAI,MAAM,YAAY,CAAC,OAAO,EAAE;AAChC,QAAQ,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AACxC,QAAQ,OAAO,IAAI,CAAC,OAAO,CAAC;AAC5B,KAAK;AACL,IAAI,MAAM,aAAa,CAAC,OAAO,EAAE;AACjC,QAAQ,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AACxC,QAAQ,OAAO,IAAI,CAAC,OAAO,CAAC;AAC5B,KAAK;AACL,IAAI,MAAM,0BAA0B,CAAC,OAAO,EAAE;AAC9C,QAAQ,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AACxC,QAAQ,OAAO,IAAI,CAAC,OAAO,CAAC;AAC5B,KAAK;AACL,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,OAAO,IAAI,CAAC,OAAO,CAAC;AAC5B,KAAK;AACL,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,OAAO,IAAI,CAAC,OAAO,CAAC;AAC5B,KAAK;AACL,IAAI,MAAM,oBAAoB,GAAG;AACjC,QAAQ,OAAO,IAAI,CAAC,OAAO,CAAC;AAC5B,KAAK;AACL;;;;;;;;;"}