@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.
- package/lib/commonjs/modules/data-sync/components/android/android-health-connect-authorization-provider.js +14 -5
- package/lib/commonjs/modules/data-sync/components/android/android-health-connect-authorization-provider.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/base-health-sync-service.js +4 -7
- package/lib/commonjs/modules/data-sync/services/base-health-sync-service.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/managers/data-processor.js +22 -9
- package/lib/commonjs/modules/data-sync/services/managers/data-processor.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-health-record-sync-id.js +21 -2
- package/lib/commonjs/modules/data-sync/utils/get-health-record-sync-id.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-records-from-health-connect.js +2 -1
- package/lib/commonjs/modules/data-sync/utils/get-records-from-health-connect.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-samples-from-health.js +2 -1
- package/lib/commonjs/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-total-records-count.js +4 -0
- package/lib/commonjs/modules/data-sync/utils/get-total-records-count.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-total-samples-count.js +4 -0
- package/lib/commonjs/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/health-connect-series.js +4 -7
- package/lib/commonjs/modules/data-sync/utils/health-connect-series.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/healthkit-series.js +5 -8
- package/lib/commonjs/modules/data-sync/utils/healthkit-series.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/hourly-series.js +42 -2
- package/lib/commonjs/modules/data-sync/utils/hourly-series.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/identify-imported-observations.js +9 -1
- package/lib/commonjs/modules/data-sync/utils/identify-imported-observations.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/{families/finicare/crc.js → codec/crc8-maxim.js} +1 -1
- package/lib/commonjs/modules/next/bluetooth/codec/crc8-maxim.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/families/built-in.js +3 -2
- package/lib/commonjs/modules/next/bluetooth/families/built-in.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/famidoc-hearing-aid.js +17 -0
- package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/famidoc-hearing-aid.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/frame.js +89 -0
- package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/frame.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/models.js +14 -0
- package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/models.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/protocol.js +30 -0
- package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/protocol.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/replies.js +104 -0
- package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/replies.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/session.js +79 -0
- package/lib/commonjs/modules/next/bluetooth/families/famidoc-hearing-aid/session.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/families/finicare/frame.js +3 -3
- package/lib/commonjs/modules/next/bluetooth/families/finicare/frame.js.map +1 -1
- package/lib/module/modules/data-sync/components/android/android-health-connect-authorization-provider.js +15 -6
- package/lib/module/modules/data-sync/components/android/android-health-connect-authorization-provider.js.map +1 -1
- package/lib/module/modules/data-sync/services/base-health-sync-service.js +4 -7
- package/lib/module/modules/data-sync/services/base-health-sync-service.js.map +1 -1
- package/lib/module/modules/data-sync/services/managers/data-processor.js +23 -10
- package/lib/module/modules/data-sync/services/managers/data-processor.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-health-record-sync-id.js +19 -1
- package/lib/module/modules/data-sync/utils/get-health-record-sync-id.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-records-from-health-connect.js +2 -1
- package/lib/module/modules/data-sync/utils/get-records-from-health-connect.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-samples-from-health.js +2 -1
- package/lib/module/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-total-records-count.js +4 -0
- package/lib/module/modules/data-sync/utils/get-total-records-count.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-total-samples-count.js +4 -0
- package/lib/module/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
- package/lib/module/modules/data-sync/utils/health-connect-series.js +5 -8
- package/lib/module/modules/data-sync/utils/health-connect-series.js.map +1 -1
- package/lib/module/modules/data-sync/utils/healthkit-series.js +6 -9
- package/lib/module/modules/data-sync/utils/healthkit-series.js.map +1 -1
- package/lib/module/modules/data-sync/utils/hourly-series.js +41 -3
- package/lib/module/modules/data-sync/utils/hourly-series.js.map +1 -1
- package/lib/module/modules/data-sync/utils/identify-imported-observations.js +9 -1
- package/lib/module/modules/data-sync/utils/identify-imported-observations.js.map +1 -1
- package/lib/module/modules/next/bluetooth/{families/finicare/crc.js → codec/crc8-maxim.js} +1 -1
- package/lib/module/modules/next/bluetooth/codec/crc8-maxim.js.map +1 -0
- package/lib/module/modules/next/bluetooth/families/built-in.js +3 -2
- package/lib/module/modules/next/bluetooth/families/built-in.js.map +1 -1
- package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/famidoc-hearing-aid.js +9 -0
- package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/famidoc-hearing-aid.js.map +1 -0
- package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/frame.js +83 -0
- package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/frame.js.map +1 -0
- package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/models.js +12 -0
- package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/models.js.map +1 -0
- package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/protocol.js +28 -0
- package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/protocol.js.map +1 -0
- package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/replies.js +96 -0
- package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/replies.js.map +1 -0
- package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/session.js +76 -0
- package/lib/module/modules/next/bluetooth/families/famidoc-hearing-aid/session.js.map +1 -0
- package/lib/module/modules/next/bluetooth/families/finicare/frame.js +1 -1
- package/lib/module/modules/next/bluetooth/families/finicare/frame.js.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/android/android-health-connect-authorization-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/base-health-sync-service.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/data-processor.d.ts +19 -16
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts +8 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-health-record-sync-id.d.ts +6 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-health-record-sync-id.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-records-from-health-connect.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts +5 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-total-records-count.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-total-samples-count.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-connect-series.d.ts +9 -5
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-connect-series.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-series.d.ts +10 -6
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-series.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/hourly-series.d.ts +24 -4
- package/lib/typescript/commonjs/src/modules/data-sync/utils/hourly-series.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/identify-imported-observations.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/identify-imported-observations.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/{families/finicare/crc.d.ts → codec/crc8-maxim.d.ts} +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/codec/crc8-maxim.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/built-in.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/famidoc-hearing-aid.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/famidoc-hearing-aid.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/frame.d.ts +38 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/frame.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/models.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/models.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/protocol.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/protocol.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/replies.d.ts +20 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/replies.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/session.d.ts +19 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/famidoc-hearing-aid/session.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/finicare/frame.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/android/android-health-connect-authorization-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/base-health-sync-service.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/managers/data-processor.d.ts +19 -16
- package/lib/typescript/module/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts +8 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-health-record-sync-id.d.ts +6 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-health-record-sync-id.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-records-from-health-connect.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts +5 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-total-records-count.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-total-samples-count.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/health-connect-series.d.ts +9 -5
- package/lib/typescript/module/src/modules/data-sync/utils/health-connect-series.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-series.d.ts +10 -6
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-series.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/hourly-series.d.ts +24 -4
- package/lib/typescript/module/src/modules/data-sync/utils/hourly-series.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/identify-imported-observations.d.ts +3 -1
- package/lib/typescript/module/src/modules/data-sync/utils/identify-imported-observations.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/{families/finicare/crc.d.ts → codec/crc8-maxim.d.ts} +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/codec/crc8-maxim.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/built-in.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/famidoc-hearing-aid.d.ts +6 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/famidoc-hearing-aid.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/frame.d.ts +38 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/frame.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/models.d.ts +5 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/models.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/protocol.d.ts +6 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/protocol.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/replies.d.ts +20 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/replies.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/session.d.ts +19 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/session.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/finicare/frame.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/commonjs/modules/next/bluetooth/families/finicare/crc.js.map +0 -1
- package/lib/module/modules/next/bluetooth/families/finicare/crc.js.map +0 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/finicare/crc.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/next/bluetooth/families/finicare/crc.d.ts.map +0 -1
package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/frame.d.ts
ADDED
|
@@ -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
|
package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/frame.d.ts.map
ADDED
|
@@ -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 @@
|
|
|
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"}
|
package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/protocol.d.ts
ADDED
|
@@ -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"}
|
package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/replies.d.ts
ADDED
|
@@ -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"}
|
package/lib/typescript/module/src/modules/next/bluetooth/families/famidoc-hearing-aid/session.d.ts
ADDED
|
@@ -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":"
|
|
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 +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"}
|