@ovok/native 1.17.0-dev.2287 → 1.17.0-dev.2295

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 (163) hide show
  1. package/lib/commonjs/modules/data-sync/components/android/android-health-connect-authorization-provider.js +14 -5
  2. package/lib/commonjs/modules/data-sync/components/android/android-health-connect-authorization-provider.js.map +1 -1
  3. package/lib/commonjs/modules/data-sync/services/base-health-sync-service.js +4 -7
  4. package/lib/commonjs/modules/data-sync/services/base-health-sync-service.js.map +1 -1
  5. package/lib/commonjs/modules/data-sync/services/managers/data-processor.js +22 -9
  6. package/lib/commonjs/modules/data-sync/services/managers/data-processor.js.map +1 -1
  7. package/lib/commonjs/modules/data-sync/utils/get-health-record-sync-id.js +21 -2
  8. package/lib/commonjs/modules/data-sync/utils/get-health-record-sync-id.js.map +1 -1
  9. package/lib/commonjs/modules/data-sync/utils/get-records-from-health-connect.js +2 -1
  10. package/lib/commonjs/modules/data-sync/utils/get-records-from-health-connect.js.map +1 -1
  11. package/lib/commonjs/modules/data-sync/utils/get-samples-from-health.js +2 -1
  12. package/lib/commonjs/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
  13. package/lib/commonjs/modules/data-sync/utils/get-total-records-count.js +4 -0
  14. package/lib/commonjs/modules/data-sync/utils/get-total-records-count.js.map +1 -1
  15. package/lib/commonjs/modules/data-sync/utils/get-total-samples-count.js +4 -0
  16. package/lib/commonjs/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
  17. package/lib/commonjs/modules/data-sync/utils/health-connect-series.js +4 -7
  18. package/lib/commonjs/modules/data-sync/utils/health-connect-series.js.map +1 -1
  19. package/lib/commonjs/modules/data-sync/utils/healthkit-series.js +5 -8
  20. package/lib/commonjs/modules/data-sync/utils/healthkit-series.js.map +1 -1
  21. package/lib/commonjs/modules/data-sync/utils/hourly-series.js +42 -2
  22. package/lib/commonjs/modules/data-sync/utils/hourly-series.js.map +1 -1
  23. package/lib/commonjs/modules/data-sync/utils/identify-imported-observations.js +9 -1
  24. package/lib/commonjs/modules/data-sync/utils/identify-imported-observations.js.map +1 -1
  25. package/lib/commonjs/modules/next/bluetooth/{families/finicare/crc.js → codec/crc8-maxim.js} +1 -1
  26. package/lib/commonjs/modules/next/bluetooth/codec/crc8-maxim.js.map +1 -0
  27. package/lib/commonjs/modules/next/bluetooth/families/built-in.js +3 -2
  28. package/lib/commonjs/modules/next/bluetooth/families/built-in.js.map +1 -1
  29. package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/famidoc-hearing-aid.js +17 -0
  30. package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/famidoc-hearing-aid.js.map +1 -0
  31. package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/frame.js +89 -0
  32. package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/frame.js.map +1 -0
  33. package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/models.js +14 -0
  34. package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/models.js.map +1 -0
  35. package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/protocol.js +30 -0
  36. package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/protocol.js.map +1 -0
  37. package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/replies.js +104 -0
  38. package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/replies.js.map +1 -0
  39. package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/session.js +79 -0
  40. package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/session.js.map +1 -0
  41. package/lib/commonjs/modules/next/bluetooth/families/finicare/frame.js +3 -3
  42. package/lib/commonjs/modules/next/bluetooth/families/finicare/frame.js.map +1 -1
  43. package/lib/module/modules/data-sync/components/android/android-health-connect-authorization-provider.js +15 -6
  44. package/lib/module/modules/data-sync/components/android/android-health-connect-authorization-provider.js.map +1 -1
  45. package/lib/module/modules/data-sync/services/base-health-sync-service.js +4 -7
  46. package/lib/module/modules/data-sync/services/base-health-sync-service.js.map +1 -1
  47. package/lib/module/modules/data-sync/services/managers/data-processor.js +23 -10
  48. package/lib/module/modules/data-sync/services/managers/data-processor.js.map +1 -1
  49. package/lib/module/modules/data-sync/utils/get-health-record-sync-id.js +19 -1
  50. package/lib/module/modules/data-sync/utils/get-health-record-sync-id.js.map +1 -1
  51. package/lib/module/modules/data-sync/utils/get-records-from-health-connect.js +2 -1
  52. package/lib/module/modules/data-sync/utils/get-records-from-health-connect.js.map +1 -1
  53. package/lib/module/modules/data-sync/utils/get-samples-from-health.js +2 -1
  54. package/lib/module/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
  55. package/lib/module/modules/data-sync/utils/get-total-records-count.js +4 -0
  56. package/lib/module/modules/data-sync/utils/get-total-records-count.js.map +1 -1
  57. package/lib/module/modules/data-sync/utils/get-total-samples-count.js +4 -0
  58. package/lib/module/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
  59. package/lib/module/modules/data-sync/utils/health-connect-series.js +5 -8
  60. package/lib/module/modules/data-sync/utils/health-connect-series.js.map +1 -1
  61. package/lib/module/modules/data-sync/utils/healthkit-series.js +6 -9
  62. package/lib/module/modules/data-sync/utils/healthkit-series.js.map +1 -1
  63. package/lib/module/modules/data-sync/utils/hourly-series.js +41 -3
  64. package/lib/module/modules/data-sync/utils/hourly-series.js.map +1 -1
  65. package/lib/module/modules/data-sync/utils/identify-imported-observations.js +9 -1
  66. package/lib/module/modules/data-sync/utils/identify-imported-observations.js.map +1 -1
  67. package/lib/module/modules/next/bluetooth/{families/finicare/crc.js → codec/crc8-maxim.js} +1 -1
  68. package/lib/module/modules/next/bluetooth/codec/crc8-maxim.js.map +1 -0
  69. package/lib/module/modules/next/bluetooth/families/built-in.js +3 -2
  70. package/lib/module/modules/next/bluetooth/families/built-in.js.map +1 -1
  71. package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/famidoc-hearing-aid.js +9 -0
  72. package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/famidoc-hearing-aid.js.map +1 -0
  73. package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/frame.js +83 -0
  74. package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/frame.js.map +1 -0
  75. package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/models.js +12 -0
  76. package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/models.js.map +1 -0
  77. package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/protocol.js +28 -0
  78. package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/protocol.js.map +1 -0
  79. package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/replies.js +96 -0
  80. package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/replies.js.map +1 -0
  81. package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/session.js +76 -0
  82. package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/session.js.map +1 -0
  83. package/lib/module/modules/next/bluetooth/families/finicare/frame.js +1 -1
  84. package/lib/module/modules/next/bluetooth/families/finicare/frame.js.map +1 -1
  85. package/lib/typescript/commonjs/src/modules/data-sync/components/android/android-health-connect-authorization-provider.d.ts.map +1 -1
  86. package/lib/typescript/commonjs/src/modules/data-sync/services/base-health-sync-service.d.ts.map +1 -1
  87. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/data-processor.d.ts +19 -16
  88. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
  89. package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts +8 -1
  90. package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
  91. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-health-record-sync-id.d.ts +6 -1
  92. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-health-record-sync-id.d.ts.map +1 -1
  93. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-records-from-health-connect.d.ts.map +1 -1
  94. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts +5 -1
  95. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts.map +1 -1
  96. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-total-records-count.d.ts.map +1 -1
  97. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-total-samples-count.d.ts.map +1 -1
  98. package/lib/typescript/commonjs/src/modules/data-sync/utils/health-connect-series.d.ts +9 -5
  99. package/lib/typescript/commonjs/src/modules/data-sync/utils/health-connect-series.d.ts.map +1 -1
  100. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-series.d.ts +10 -6
  101. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-series.d.ts.map +1 -1
  102. package/lib/typescript/commonjs/src/modules/data-sync/utils/hourly-series.d.ts +24 -4
  103. package/lib/typescript/commonjs/src/modules/data-sync/utils/hourly-series.d.ts.map +1 -1
  104. package/lib/typescript/commonjs/src/modules/data-sync/utils/identify-imported-observations.d.ts +3 -1
  105. package/lib/typescript/commonjs/src/modules/data-sync/utils/identify-imported-observations.d.ts.map +1 -1
  106. package/lib/typescript/commonjs/src/modules/next/bluetooth/{families/finicare/crc.d.ts → codec/crc8-maxim.d.ts} +1 -1
  107. package/lib/typescript/commonjs/src/modules/next/bluetooth/codec/crc8-maxim.d.ts.map +1 -0
  108. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/built-in.d.ts.map +1 -1
  109. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/famidoc-hearing-aid.d.ts +6 -0
  110. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/famidoc-hearing-aid.d.ts.map +1 -0
  111. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/frame.d.ts +38 -0
  112. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/frame.d.ts.map +1 -0
  113. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/models.d.ts +5 -0
  114. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/models.d.ts.map +1 -0
  115. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/protocol.d.ts +6 -0
  116. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/protocol.d.ts.map +1 -0
  117. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/replies.d.ts +20 -0
  118. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/replies.d.ts.map +1 -0
  119. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/session.d.ts +19 -0
  120. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/session.d.ts.map +1 -0
  121. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/finicare/frame.d.ts.map +1 -1
  122. package/lib/typescript/module/src/modules/data-sync/components/android/android-health-connect-authorization-provider.d.ts.map +1 -1
  123. package/lib/typescript/module/src/modules/data-sync/services/base-health-sync-service.d.ts.map +1 -1
  124. package/lib/typescript/module/src/modules/data-sync/services/managers/data-processor.d.ts +19 -16
  125. package/lib/typescript/module/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
  126. package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts +8 -1
  127. package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
  128. package/lib/typescript/module/src/modules/data-sync/utils/get-health-record-sync-id.d.ts +6 -1
  129. package/lib/typescript/module/src/modules/data-sync/utils/get-health-record-sync-id.d.ts.map +1 -1
  130. package/lib/typescript/module/src/modules/data-sync/utils/get-records-from-health-connect.d.ts.map +1 -1
  131. package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts +5 -1
  132. package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts.map +1 -1
  133. package/lib/typescript/module/src/modules/data-sync/utils/get-total-records-count.d.ts.map +1 -1
  134. package/lib/typescript/module/src/modules/data-sync/utils/get-total-samples-count.d.ts.map +1 -1
  135. package/lib/typescript/module/src/modules/data-sync/utils/health-connect-series.d.ts +9 -5
  136. package/lib/typescript/module/src/modules/data-sync/utils/health-connect-series.d.ts.map +1 -1
  137. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-series.d.ts +10 -6
  138. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-series.d.ts.map +1 -1
  139. package/lib/typescript/module/src/modules/data-sync/utils/hourly-series.d.ts +24 -4
  140. package/lib/typescript/module/src/modules/data-sync/utils/hourly-series.d.ts.map +1 -1
  141. package/lib/typescript/module/src/modules/data-sync/utils/identify-imported-observations.d.ts +3 -1
  142. package/lib/typescript/module/src/modules/data-sync/utils/identify-imported-observations.d.ts.map +1 -1
  143. package/lib/typescript/module/src/modules/next/bluetooth/{families/finicare/crc.d.ts → codec/crc8-maxim.d.ts} +1 -1
  144. package/lib/typescript/module/src/modules/next/bluetooth/codec/crc8-maxim.d.ts.map +1 -0
  145. package/lib/typescript/module/src/modules/next/bluetooth/families/built-in.d.ts.map +1 -1
  146. package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/famidoc-hearing-aid.d.ts +6 -0
  147. package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/famidoc-hearing-aid.d.ts.map +1 -0
  148. package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/frame.d.ts +38 -0
  149. package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/frame.d.ts.map +1 -0
  150. package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/models.d.ts +5 -0
  151. package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/models.d.ts.map +1 -0
  152. package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/protocol.d.ts +6 -0
  153. package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/protocol.d.ts.map +1 -0
  154. package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/replies.d.ts +20 -0
  155. package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/replies.d.ts.map +1 -0
  156. package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/session.d.ts +19 -0
  157. package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/session.d.ts.map +1 -0
  158. package/lib/typescript/module/src/modules/next/bluetooth/families/finicare/frame.d.ts.map +1 -1
  159. package/package.json +1 -1
  160. package/lib/commonjs/modules/next/bluetooth/families/finicare/crc.js.map +0 -1
  161. package/lib/module/modules/next/bluetooth/families/finicare/crc.js.map +0 -1
  162. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/finicare/crc.d.ts.map +0 -1
  163. package/lib/typescript/module/src/modules/next/bluetooth/families/finicare/crc.d.ts.map +0 -1
@@ -0,0 +1,38 @@
1
+ import { Framing } from "../frame-tools/frame-stream";
2
+ /** The ear a frame talks to sits in the type byte's top two bits; the protocol version below them is 0. */
3
+ declare const EAR: {
4
+ readonly main: 128;
5
+ readonly left: 64;
6
+ readonly right: 0;
7
+ };
8
+ /** Which ear a frame talks to. */
9
+ type Ear = (typeof EAR)[keyof typeof EAR];
10
+ /** The number byte's six low bits count requests, so a reply names the request it answers. */
11
+ declare const COUNT_MASK = 63;
12
+ /** The reads the phone sends; the aid answers each with the same command. */
13
+ declare const COMMAND: {
14
+ readonly connection: 129;
15
+ readonly deviceInformation: 193;
16
+ readonly battery: 194;
17
+ };
18
+ /** One frame from the aid. */
19
+ type HearingAidFrame = {
20
+ /** The ear it came from. */
21
+ ear: number;
22
+ /** The count of the request it answers, 0 for a report. */
23
+ count: number;
24
+ /** The command it answers or reports. */
25
+ command: number;
26
+ /** What follows the command, without the checksum. */
27
+ data: Uint8Array;
28
+ };
29
+ /** A read: `ab`, the length big endian, the ear, the count, the command, and the CRC-8/MAXIM of all of it. */
30
+ declare const encodeRead: (ear: Ear, count: number, command: number) => Uint8Array;
31
+ /** Cuts the aid's notifications into frames that start with `ab` and hold their checksum. */
32
+ declare const AID_FRAMING: Framing;
33
+ /** Reads a whole frame the framing accepted. */
34
+ declare const decodeFrame: (frame: Uint8Array) => HearingAidFrame;
35
+ declare const isReply: ({ command }: HearingAidFrame) => boolean;
36
+ export { AID_FRAMING, COMMAND, COUNT_MASK, decodeFrame, EAR, encodeRead, isReply };
37
+ export type { Ear, HearingAidFrame };
38
+ //# sourceMappingURL=frame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frame.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/famidoc-hearing-aid/frame.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAa,MAAM,6BAA6B,CAAC;AAoBjE,2GAA2G;AAC3G,QAAA,MAAM,GAAG;;;;CAAmD,CAAC;AAG7D,kCAAkC;AAClC,KAAK,GAAG,GAAG,CAAC,OAAO,GAAG,CAAC,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC;AAE1C,8FAA8F;AAC9F,QAAA,MAAM,UAAU,KAAO,CAAC;AAKxB,6EAA6E;AAC7E,QAAA,MAAM,OAAO;;;;CAAwE,CAAC;AAEtF,8BAA8B;AAC9B,KAAK,eAAe,GAAG;IAErB,4BAA4B;IAC5B,GAAG,EAAE,MAAM,CAAC;IAEZ,2DAA2D;IAC3D,KAAK,EAAE,MAAM,CAAC;IAEd,yCAAyC;IACzC,OAAO,EAAE,MAAM,CAAC;IAEhB,sDAAsD;IACtD,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,8GAA8G;AAC9G,QAAA,MAAM,UAAU,GAAI,KAAK,GAAG,EAAE,OAAO,MAAM,EAAE,SAAS,MAAM,KAAG,UAI9D,CAAC;AAiBF,6FAA6F;AAC7F,QAAA,MAAM,WAAW,EAAE,OAAkF,CAAC;AAEtG,gDAAgD;AAChD,QAAA,MAAM,WAAW,GAAI,OAAO,UAAU,KAAG,eAKvC,CAAC;AAEH,QAAA,MAAM,OAAO,GAAI,aAAa,eAAe,KAAG,OAAsC,CAAC;AAEvF,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC;AACnF,YAAY,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { DeviceModel } from "../../core/catalog";
2
+ /** The Famidoc hearing aids, found by the name they advertise. */
3
+ declare const FAMIDOC_HEARING_AID_MODELS: readonly DeviceModel[];
4
+ export { FAMIDOC_HEARING_AID_MODELS };
5
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/famidoc-hearing-aid/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAQjD,kEAAkE;AAClE,QAAA,MAAM,0BAA0B,EAAE,SAAS,WAAW,EAAsD,CAAC;AAE7G,OAAO,EAAE,0BAA0B,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { DeviceProtocol } from "../../core/protocol";
2
+ import { HearingAidConnection } from "./session";
3
+ /** The Famidoc hearing aids: the pair's identity and battery; they keep no readings to sync. */
4
+ declare const FAMIDOC_HEARING_AID: DeviceProtocol<HearingAidConnection>;
5
+ export { FAMIDOC_HEARING_AID };
6
+ //# sourceMappingURL=protocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/famidoc-hearing-aid/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAIrD,OAAO,EAAe,oBAAoB,EAAe,MAAM,WAAW,CAAC;AAE3E,gGAAgG;AAChG,QAAA,MAAM,mBAAmB,EAAE,cAAc,CAAC,oBAAoB,CAW7D,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { Battery, DeviceIdentity } from "../../core/paired-device";
2
+ import { Ear } from "./frame";
3
+ /** The linked ears: the one that speaks for the pair, and the other when both are linked. */
4
+ type Ears = {
5
+ main: Ear;
6
+ other: Ear | null;
7
+ };
8
+ /** The connection reply: bit 1 says the main ear is the right one, bit 0 that both ears are linked. */
9
+ declare const earsOf: (data: Uint8Array) => Ears;
10
+ /** The ears to read a per-ear value from. */
11
+ declare const linkedEars: ({ main, other }: Ears) => Ear[];
12
+ /** The battery reply: bit 7 says it charges, the seven low bits are the percentage. */
13
+ declare const batteryOf: (data: Uint8Array) => Omit<Battery, "at">;
14
+ /** The pair runs as long as its emptiest ear, so that ear's battery stands for the pair. */
15
+ declare const emptiestOf: (batteries: readonly Omit<Battery, "at">[]) => Omit<Battery, "at">;
16
+ /** The device information reply: hardware revision, software version and serial; the aid names no maker or model. */
17
+ declare const identityOf: (data: Uint8Array) => Omit<DeviceIdentity, "at">;
18
+ export { batteryOf, earsOf, emptiestOf, identityOf, linkedEars };
19
+ export type { Ears };
20
+ //# sourceMappingURL=replies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replies.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/famidoc-hearing-aid/replies.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAEnE,OAAO,EAAE,GAAG,EAAO,MAAM,SAAS,CAAC;AAoBnC,6FAA6F;AAC7F,KAAK,IAAI,GAAG;IAAE,IAAI,EAAE,GAAG,CAAC;IAAC,KAAK,EAAE,GAAG,GAAG,IAAI,CAAA;CAAE,CAAC;AAE7C,uGAAuG;AACvG,QAAA,MAAM,MAAM,GAAI,MAAM,UAAU,KAAG,IAKlC,CAAC;AAEF,6CAA6C;AAC7C,QAAA,MAAM,UAAU,GAAI,iBAAiB,IAAI,KAAG,GAAG,EAA+C,CAAC;AAE/F,uFAAuF;AACvF,QAAA,MAAM,SAAS,GAAI,MAAM,UAAU,KAAG,IAAI,CAAC,OAAO,EAAE,IAAI,CAIvD,CAAC;AAEF,4FAA4F;AAC5F,QAAA,MAAM,UAAU,GAAI,WAAW,SAAS,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,KAAG,IAAI,CAAC,OAAO,EAAE,IAAI,CACkB,CAAC;AA+BrG,qHAAqH;AACrH,QAAA,MAAM,UAAU,GAAI,MAAM,UAAU,KAAG,IAAI,CAAC,cAAc,EAAE,IAAI,CAM9D,CAAC;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AACjE,YAAY,EAAE,IAAI,EAAE,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { ProtocolContext } from "../../core/protocol";
2
+ import { Ear } from "./frame";
3
+ import { Ears } from "./replies";
4
+ /** The service the phone talks to the aid through; the OTA and audio services are left alone. */
5
+ declare const AID_SERVICE: string;
6
+ /** One open link: which ears are linked, and how to read from one. */
7
+ type HearingAidConnection = {
8
+ /** The ears the connection reply named. */
9
+ ears: Ears;
10
+ /** Sends a read to one ear and resolves with the data of its reply. */
11
+ read: (ear: Ear, command: number) => Promise<Uint8Array>;
12
+ /** Stops listening to the aid. */
13
+ stop: () => void;
14
+ };
15
+ /** Listens to the aid, then asks which ears are linked. */
16
+ declare const openSession: ({ link, logger }: ProtocolContext) => Promise<HearingAidConnection>;
17
+ export { AID_SERVICE, openSession };
18
+ export type { HearingAidConnection };
19
+ //# sourceMappingURL=session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/famidoc-hearing-aid/session.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EAAsD,GAAG,EAAwC,MAAM,SAAS,CAAC;AACxH,OAAO,EAAE,IAAI,EAAU,MAAM,WAAW,CAAC;AAEzC,iGAAiG;AACjG,QAAA,MAAM,WAAW,QAAmB,CAAC;AAOrC,sEAAsE;AACtE,KAAK,oBAAoB,GAAG;IAE1B,2CAA2C;IAC3C,IAAI,EAAE,IAAI,CAAC;IAEX,uEAAuE;IACvE,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;IAEzD,kCAAkC;IAClC,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAaF,2DAA2D;AAC3D,QAAA,MAAM,WAAW,GAAU,kBAAkB,eAAe,KAAG,OAAO,CAAC,oBAAoB,CA+B1F,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;AACpC,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"frame.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/finicare/frame.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAa,MAAM,6BAA6B,CAAC;AAgBjE,uDAAuD;AACvD,QAAA,MAAM,OAAO;;;;CAA6D,CAAC;AAE3E,4EAA4E;AAC5E,QAAA,MAAM,MAAM;;;CAAwC,CAAC;AAErD,kDAAkD;AAClD,QAAA,MAAM,kBAAkB,MAAO,CAAC;AAEhC,4HAA4H;AAC5H,QAAA,MAAM,WAAW,GAAI,SAAS,MAAM,EAAE,UAAS,SAAS,MAAM,EAAO,KAAG,UAIvE,CAAC;AAIF,oGAAoG;AACpG,QAAA,MAAM,eAAe,EAAE,OAIrB,CAAC;AAEH,sEAAsE;AACtE,QAAA,MAAM,MAAM,GAAI,OAAO,UAAU,KAAG,UAAoE,CAAC;AAEzG,6FAA6F;AAC7F,QAAA,MAAM,QAAQ,GAAI,MAAM,UAAU,KAAG,MAAM,GAAG,SAAwE,CAAC;AAEvH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"frame.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/finicare/frame.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAa,MAAM,6BAA6B,CAAC;AAejE,uDAAuD;AACvD,QAAA,MAAM,OAAO;;;;CAA6D,CAAC;AAE3E,4EAA4E;AAC5E,QAAA,MAAM,MAAM;;;CAAwC,CAAC;AAErD,kDAAkD;AAClD,QAAA,MAAM,kBAAkB,MAAO,CAAC;AAEhC,4HAA4H;AAC5H,QAAA,MAAM,WAAW,GAAI,SAAS,MAAM,EAAE,UAAS,SAAS,MAAM,EAAO,KAAG,UAIvE,CAAC;AAIF,oGAAoG;AACpG,QAAA,MAAM,eAAe,EAAE,OAIrB,CAAC;AAEH,sEAAsE;AACtE,QAAA,MAAM,MAAM,GAAI,OAAO,UAAU,KAAG,UAAoE,CAAC;AAEzG,6FAA6F;AAC7F,QAAA,MAAM,QAAQ,GAAI,MAAM,UAAU,KAAG,MAAM,GAAG,SAAwE,CAAC;AAEvH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ovok/native",
3
- "version": "1.17.0-dev.2287+e958fca",
3
+ "version": "1.17.0-dev.2295+f2b5465",
4
4
  "description": "React native component sdk for OVOK",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -1 +0,0 @@
1
- {"version":3,"names":["REFLECTED_POLYNOMIAL","BITS_PER_BYTE","crc8Maxim","bytes","Array","from","reduce","crc","byte","value","bit","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/next/bluetooth/families/finicare/crc.ts"],"mappings":";;;;;;AAAA,MAAMA,oBAAoB,GAAG,IAAI;AACjC,MAAMC,aAAa,GAAG,CAAC;;AAEvB;AACA,MAAMC,SAAS,GAAIC,KAAwB,IACzCC,KAAK,CAACC,IAAI,CAACF,KAAK,CAAC,CAACG,MAAM,CAAC,CAACC,GAAG,EAAEC,IAAI,KAAK;EACtC,IAAIC,KAAK,GAAGF,GAAG,GAAGC,IAAI;EAEtB,KAAK,IAAIE,GAAG,GAAG,CAAC,EAAEA,GAAG,GAAGT,aAAa,EAAES,GAAG,IAAI,CAAC,EAAE;IAC/CD,KAAK,GAAGA,KAAK,GAAG,CAAC,GAAIA,KAAK,IAAI,CAAC,GAAIT,oBAAoB,GAAGS,KAAK,IAAI,CAAC;EACtE;EAEA,OAAOA,KAAK;AACd,CAAC,EAAE,CAAC,CAAC;AAACE,OAAA,CAAAT,SAAA,GAAAA,SAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["REFLECTED_POLYNOMIAL","BITS_PER_BYTE","crc8Maxim","bytes","Array","from","reduce","crc","byte","value","bit"],"sourceRoot":"../../../../../../../src","sources":["modules/next/bluetooth/families/finicare/crc.ts"],"mappings":";;AAAA,MAAMA,oBAAoB,GAAG,IAAI;AACjC,MAAMC,aAAa,GAAG,CAAC;;AAEvB;AACA,MAAMC,SAAS,GAAIC,KAAwB,IACzCC,KAAK,CAACC,IAAI,CAACF,KAAK,CAAC,CAACG,MAAM,CAAC,CAACC,GAAG,EAAEC,IAAI,KAAK;EACtC,IAAIC,KAAK,GAAGF,GAAG,GAAGC,IAAI;EAEtB,KAAK,IAAIE,GAAG,GAAG,CAAC,EAAEA,GAAG,GAAGT,aAAa,EAAES,GAAG,IAAI,CAAC,EAAE;IAC/CD,KAAK,GAAGA,KAAK,GAAG,CAAC,GAAIA,KAAK,IAAI,CAAC,GAAIT,oBAAoB,GAAGS,KAAK,IAAI,CAAC;EACtE;EAEA,OAAOA,KAAK;AACd,CAAC,EAAE,CAAC,CAAC;AAEP,SAASP,SAAS","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"crc.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/finicare/crc.ts"],"names":[],"mappings":"AAGA,gFAAgF;AAChF,QAAA,MAAM,SAAS,GAAI,OAAO,SAAS,CAAC,MAAM,CAAC,KAAG,MASvC,CAAC;AAER,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"crc.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/finicare/crc.ts"],"names":[],"mappings":"AAGA,gFAAgF;AAChF,QAAA,MAAM,SAAS,GAAI,OAAO,SAAS,CAAC,MAAM,CAAC,KAAG,MASvC,CAAC;AAER,OAAO,EAAE,SAAS,EAAE,CAAC"}