@ovok/native 1.16.1-dev.2181 → 1.16.1-dev.2185
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/bt-management/hooks/runtime-context.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/bt-manager.js +13 -0
- package/lib/commonjs/modules/bt-management/services/bt-manager.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/custom/compile-custom-lepu.js +13 -6
- package/lib/commonjs/modules/bt-management/services/custom/compile-custom-lepu.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js +5 -0
- package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js +31 -5
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.js +42 -4
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.recording-watch.js +55 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.recording-watch.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.transports.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.transports.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +5 -12
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.js +35 -0
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.js.map +1 -0
- package/lib/commonjs/modules/bt-management/utils/le-32-from-hex.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/runtime-context.js.map +1 -1
- package/lib/module/modules/bt-management/services/bt-manager.js +13 -0
- package/lib/module/modules/bt-management/services/bt-manager.js.map +1 -1
- package/lib/module/modules/bt-management/services/custom/compile-custom-lepu.js +13 -6
- package/lib/module/modules/bt-management/services/custom/compile-custom-lepu.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bt-managed-device.js +5 -0
- package/lib/module/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js +31 -5
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.js +41 -4
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.recording-watch.js +51 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.recording-watch.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.transports.js +2 -2
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.transports.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +3 -10
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.js +31 -0
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.js.map +1 -0
- package/lib/module/modules/bt-management/utils/le-32-from-hex.js.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/runtime-context.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/runtime-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/bt-manager.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/bt-manager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/custom/compile-custom-lepu.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.recording-watch.d.ts +23 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.recording-watch.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-lepu-spec.d.ts +16 -6
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-lepu-spec.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-connection-event.d.ts +17 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-connection-event.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/le-32-from-hex.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/le-32-from-hex.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/runtime-context.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/runtime-context.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/bt-manager.d.ts +6 -0
- package/lib/typescript/module/src/modules/bt-management/services/bt-manager.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/custom/compile-custom-lepu.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts +2 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts +8 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.d.ts +6 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.recording-watch.d.ts +23 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.recording-watch.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts +2 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.d.ts +8 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/types/custom-lepu-spec.d.ts +16 -6
- package/lib/typescript/module/src/modules/bt-management/types/custom-lepu-spec.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/device-connection-event.d.ts +17 -1
- package/lib/typescript/module/src/modules/bt-management/types/device-connection-event.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/le-32-from-hex.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/le-32-from-hex.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.record-saved-watch.js +0 -26
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.record-saved-watch.js.map +0 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.record-saved-watch.js +0 -22
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.record-saved-watch.js.map +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.record-saved-watch.d.ts +0 -12
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.record-saved-watch.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.record-saved-watch.d.ts +0 -12
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.record-saved-watch.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lepu.ecg-transfer.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lepu.ecg-transfer.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAGjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAoB,MAAM,sBAAsB,CAAC;AAKlE,UAAU,qBAAqB;IAC7B,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IACpC,OAAO,EAAE,kB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CAAmB;gBAER,MAAM,EAAE,qBAAqB;IAa1D,eAAe,QAAO,SAAS,aAAa,EAAE,CACnB;IAE3B,iBAAiB,QAAO,OAAO,CAAS;IAExC,gBAAgB,QAAO,MAAM,GAAG,SAAS,CAc9C;IAEF,2FAA2F;IACpF,gBAAgB,QAAO,oBAAoB,CAsBhD;IAEK,eAAe,GAAI,OAAO,SAAS,MAAM,EAAE,KAAG,SAAS,GAAG,UAAU,CAczE;IAEK,WAAW,GAChB,OAAO,SAAS,MAAM,EAAE,KACvB,SAAS,aAAa,EAAE,GAAG,SAAS,CA2BrC;IAEF,OAAO,CAAC,eAAe,CAWrB;IAEF,OAAO,CAAC,eAAe,CAcrB;IAEF,OAAO,CAAC,aAAa,CAKnB;IAEF,OAAO,CAAC,oBAAoB,CAS1B;IAEF,OAAO,CAAC,cAAc,CAMnB;IAEH,OAAO,CAAC,WAAW,CAcjB;IAEF,OAAO,CAAC,aAAa,CAgBnB;IAEF,OAAO,CAAC,cAAc,CAUpB;IAEF,OAAO,CAAC,WAAW,CAMhB;CACJ;AAED,QAAA,MAAM,YAAY,GAAI,YAAY,gBAAgB,KAAG,MAAM,EAe1D,CAAC;AAEF,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,CAAC;AAClD,YAAY,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CustomLepuSpec } from "../../../types/custom-lepu-spec";
|
|
2
|
+
import { DeviceConnectionEvent } from "../../../types/device-connection-event";
|
|
3
|
+
type RecordingStatus = NonNullable<CustomLepuSpec["recordingStatus"]>;
|
|
4
|
+
type Recording = NonNullable<DeviceConnectionEvent["recording"]>;
|
|
5
|
+
/** Follows a recorder's open recording through its poll answers. */
|
|
6
|
+
declare class LepuRecordingWatch {
|
|
7
|
+
private readonly status;
|
|
8
|
+
private readonly onRecordingChanged;
|
|
9
|
+
private state;
|
|
10
|
+
private leadOffSince;
|
|
11
|
+
private reported;
|
|
12
|
+
constructor(status: RecordingStatus, onRecordingChanged: (recording: Recording | undefined) => void);
|
|
13
|
+
/** Reads one poll answer; true when it is the first in the saved state, so the files are read. */
|
|
14
|
+
observe: (pollAnswer: readonly string[]) => boolean;
|
|
15
|
+
/** Whether a recording is open, so that stopping it means something. */
|
|
16
|
+
isOpen: () => boolean;
|
|
17
|
+
private recordingIn;
|
|
18
|
+
private isLeadOff;
|
|
19
|
+
/** Reports a change in what the app would act on, not every tick of the seconds. */
|
|
20
|
+
private report;
|
|
21
|
+
}
|
|
22
|
+
export { LepuRecordingWatch };
|
|
23
|
+
//# sourceMappingURL=lepu.recording-watch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lepu.recording-watch.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.recording-watch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAO/E,KAAK,eAAe,GAAG,WAAW,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAEtE,KAAK,SAAS,GAAG,WAAW,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC,CAAC;AAEjE,oEAAoE;AACpE,cAAM,kBAAkB;IAMpB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IANrC,OAAO,CAAC,KAAK,CAAqB;IAClC,OAAO,CAAC,YAAY,CAAmB;IACvC,OAAO,CAAC,QAAQ,CAAqB;gBAGlB,MAAM,EAAE,eAAe,EACvB,kBAAkB,EAAE,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,KAAK,IAAI;IAGjF,kGAAkG;IAC3F,OAAO,GAAI,YAAY,SAAS,MAAM,EAAE,KAAG,OAAO,CAQvD;IAEF,wEAAwE;IACjE,MAAM,QAAO,OAAO,CACqC;IAEhE,OAAO,CAAC,WAAW,CAYjB;IAEF,OAAO,CAAC,SAAS,CAA0D;IAE3E,oFAAoF;IACpF,OAAO,CAAC,MAAM,CAYZ;CACH;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts
CHANGED
|
@@ -129,8 +129,8 @@ interface LepuDeviceParams {
|
|
|
129
129
|
pollCommand?: number;
|
|
130
130
|
/** Delay before each realtime poll, for devices with a fixed polling cadence. */
|
|
131
131
|
pollIntervalMs?: number;
|
|
132
|
-
/**
|
|
133
|
-
|
|
132
|
+
/** How a recorder reports its open recording; see `CustomLepuSpec`. */
|
|
133
|
+
recordingStatus?: CustomLepuSpec["recordingStatus"];
|
|
134
134
|
/**
|
|
135
135
|
* Shortest frame any declared case may be read from. The seven-byte header and the
|
|
136
136
|
* trailing checksum are part of it, so a one-byte payload is nine.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lepu.transports.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.transports.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AA4E3E;;;;;;;GAOG;AACH,QAAA,MAAM,cAAc;IAClB,sEAAsE;;QAEpE,yBAAyB;;QAGzB,wDAAwD;;QAGxD,wDAAwD;;QAGxD,qCAAqC;;;IAIvC,8EAA8E;;QAE5E,yBAAyB;;QAGzB,wDAAwD;;QAGxD,wDAAwD;;QAGxD,qCAAqC;;;IAIvC,+EAA+E;;QAE7E,yBAA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,CAAC;IAE/B,sDAAsD;IACtD,YAAY,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAErC,oFAAoF;IACpF,cAAc,CAAC,EAAE,cAAc,CAAC,gBAAgB,CAAC,CAAC;IAElD,gFAAgF;IAChF,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAEhC;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE/B;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,iFAAiF;IACjF,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,
|
|
1
|
+
{"version":3,"file":"lepu.transports.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.transports.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AA4E3E;;;;;;;GAOG;AACH,QAAA,MAAM,cAAc;IAClB,sEAAsE;;QAEpE,yBAAyB;;QAGzB,wDAAwD;;QAGxD,wDAAwD;;QAGxD,qCAAqC;;;IAIvC,8EAA8E;;QAE5E,yBAAyB;;QAGzB,wDAAwD;;QAGxD,wDAAwD;;QAGxD,qCAAqC;;;IAIvC,+EAA+E;;QAE7E,yBAAyB;;QAGzB,wDAAwD;;QAGxD,wDAAwD;;QAGxD,qCAAqC;;;IAIvC,mEAAmE;;QAEjE,yBAAyB;;QAGzB,wDAAwD;;QAGxD,wDAAwD;;QAGxD,qCAAqC;;;IAIvC,mEAAmE;;QAEjE,yBAAyB;;QAGzB,wDAAwD;;QAGxD,wDAAw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;IAEhC;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE/B;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,iFAAiF;IACjF,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,uEAAuE;IACvE,eAAe,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAC;IAEpD;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE7B,sDAAsD;IACtD,KAAK,EAAE,cAAc,EAAE,CAAC;IAExB,2GAA2G;IAC3G,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAID,0FAA0F;AAC1F,QAAA,MAAM,UAAU,GAAI,QAAQ,gBAAgB,KAAG,sBAgI9C,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC;AACtC,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viatom.ecg-recorders.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"viatom.ecg-recorders.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAiEjF,UAAU,eAAe;IAEvB,qFAAqF;IACrF,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AA2DD,uFAAuF;AACvF,QAAA,MAAM,WAAW,GACf,gBAAgB,MAAM,EACtB,QAAQ,eAAe,KACtB,sBAUA,CAAC;AAEJ;;;;;GAKG;AACH,QAAA,MAAM,WAAW,GACf,gBAAgB,MAAM,EACtB,QAAQ,eAAe,KACtB,sBAUA,CAAC;AAEJ,6EAA6E;AAC7E,QAAA,MAAM,WAAW,GACf,gBAAgB,MAAM,EACtB,QAAQ,eAAe,KACtB,sBAUA,CAAC;AAEJ,6CAA6C;AAC7C,QAAA,MAAM,eAAe,EAAE,SAAS,MAAM,EAWrC,CAAC;AAEF,gFAAgF;AAChF,QAAA,MAAM,eAAe,EAAE,SAAS,MAAM,EAUrC,CAAC;AAKF,8EAA8E;AAC9E,QAAA,MAAM,eAAe,EAAE,SAAS,MAAM,EAAyB,CAAC;AAEhE,OAAO,EACL,WAAW,EACX,eAAe,EACf,WAAW,EACX,eAAe,EACf,eAAe,EACf,WAAW,GACZ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CustomLepuSpec } from "../../../types/custom-lepu-spec";
|
|
2
|
+
/** The run status, with the current state in its low nibble. */
|
|
3
|
+
declare const RUN_STATUS_BYTE = 15;
|
|
4
|
+
declare const RECORDING_STATE = 2;
|
|
5
|
+
/** How an ER recorder reports its open recording in the realtime answer. */
|
|
6
|
+
declare const viatomRecordingStatus: (advertisedName: string) => NonNullable<CustomLepuSpec["recordingStatus"]>;
|
|
7
|
+
export { RECORDING_STATE, RUN_STATUS_BYTE, viatomRecordingStatus };
|
|
8
|
+
//# sourceMappingURL=viatom.ecg-recording-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viatom.ecg-recording-status.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEjE,gEAAgE;AAChE,QAAA,MAAM,eAAe,KAAK,CAAC;AAC3B,QAAA,MAAM,eAAe,IAAI,CAAC;AAe1B,4EAA4E;AAC5E,QAAA,MAAM,qBAAqB,GACzB,gBAAgB,MAAM,KACrB,WAAW,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAU9C,CAAC;AAEH,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -65,14 +65,24 @@ export interface CustomLepuSpec {
|
|
|
65
65
|
/** Delay before each realtime poll, for devices with a fixed polling cadence. */
|
|
66
66
|
pollIntervalMs?: number;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
69
|
-
*
|
|
68
|
+
* How a recorder reports its open recording in each poll answer. Entering the saved state
|
|
69
|
+
* reads the stored ECG files again, and the recording can be stopped on request.
|
|
70
70
|
*/
|
|
71
|
-
|
|
72
|
-
/** The run-status byte's index in the poll answer, header included. */
|
|
71
|
+
recordingStatus?: {
|
|
72
|
+
/** The run-status byte's index in the poll answer, header included; its low nibble is the state. */
|
|
73
73
|
byteIndex: number;
|
|
74
|
-
/**
|
|
75
|
-
|
|
74
|
+
/** Where the seconds recorded so far sit in the poll answer, u32 little-endian. */
|
|
75
|
+
secondsByteIndex: number;
|
|
76
|
+
/** Low-nibble state while recording. */
|
|
77
|
+
recordingState: number;
|
|
78
|
+
/** Low-nibble state while the electrodes have no contact and the recording stays open. */
|
|
79
|
+
leadOffState: number;
|
|
80
|
+
/** Low-nibble state once the recording has been stored. */
|
|
81
|
+
savedState: number;
|
|
82
|
+
/** The shortest recording the device stores when it is stopped. */
|
|
83
|
+
minimumStoredSeconds: number;
|
|
84
|
+
/** The opcode that stops the recording, storing it when it is long enough. */
|
|
85
|
+
stopCommand: number;
|
|
76
86
|
};
|
|
77
87
|
/** Sends the command through the write-without-response characteristic. */
|
|
78
88
|
writeWithoutResponse?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-lepu-spec.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/custom-lepu-spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,cAAc;IAE7B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,IAAI,GAAG,eAAe,CAAC;IAElC,oFAAoF;IACpF,iBAAiB,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAElC,8FAA8F;IAC9F,YAAY,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAErC;;;OAGG;IACH,cAAc,CAAC,EAAE,mBAAmB,GAAG,WAAW,CAAC;IAEnD;;;OAGG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;IAErB,uFAAuF;IACvF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,qFAAqF;IACrF,wBAAwB,CAAC,EAAE,eAAe,CAAC;IAE3C;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnC,0FAA0F;IAC1F,KAAK,EAAE;QAEL,4DAA4D;QAC5D,WAAW,EAAE,MAAM,CAAC;QAEpB,0DAA0D;QAC1D,kBAAkB,EAAE,MAAM,CAAC;KAC5B,CAAC;IAEF;;;;;;;OAOG;IACH,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAE9B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,iFAAiF;IACjF,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,
|
|
1
|
+
{"version":3,"file":"custom-lepu-spec.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/custom-lepu-spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,cAAc;IAE7B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,IAAI,GAAG,eAAe,CAAC;IAElC,oFAAoF;IACpF,iBAAiB,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAElC,8FAA8F;IAC9F,YAAY,CA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viceConnectionEventKind = "pairing" | "connected" | "bonded" | "history-download" | "battery" | "device-identified" | "clock-synchronized";
|
|
3
|
+
export type DeviceConnectionEventKind = "pairing" | "connected" | "bonded" | "history-download" | "battery" | "device-identified" | "clock-synchronized" | "recording";
|
|
4
4
|
/** Connection lifecycle event of a device. */
|
|
5
5
|
export interface DeviceConnectionEvent {
|
|
6
6
|
/** Device the event relates to. */
|
|
@@ -22,5 +22,21 @@ export interface DeviceConnectionEvent {
|
|
|
22
22
|
clockAt?: Date;
|
|
23
23
|
/** Phone's UTC offset in minutes east of UTC at the clock write. */
|
|
24
24
|
phoneUtcOffsetMinutes?: number;
|
|
25
|
+
/**
|
|
26
|
+
* A recorder's open recording, on a `recording` event; absent once the recording has ended.
|
|
27
|
+
* Sent when it starts, when the electrodes lose or regain contact, and when it becomes long
|
|
28
|
+
* enough to be stored.
|
|
29
|
+
*/
|
|
30
|
+
recording?: {
|
|
31
|
+
/** Seconds recorded so far. */
|
|
32
|
+
seconds: number;
|
|
33
|
+
/**
|
|
34
|
+
* When the electrodes lost contact, while they have none; the recording stays open until it
|
|
35
|
+
* is stopped. An app can offer to stop it once this is old enough, as the vendor app does.
|
|
36
|
+
*/
|
|
37
|
+
leadOffSince?: Date;
|
|
38
|
+
/** Stopping now stores the recording; a shorter one is discarded by the device. */
|
|
39
|
+
storesOnStop: boolean;
|
|
40
|
+
};
|
|
25
41
|
}
|
|
26
42
|
//# sourceMappingURL=device-connection-event.d.ts.map
|
package/lib/typescript/module/src/modules/bt-management/types/device-connection-event.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-connection-event.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/device-connection-event.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,0CAA0C;AAC1C,MAAM,MAAM,yBAAyB,GACjC,SAAS,GACT,WAAW,GACX,QAAQ,GACR,kBAAkB,GAClB,SAAS,GACT,mBAAmB,GACnB,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"device-connection-event.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/device-connection-event.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,0CAA0C;AAC1C,MAAM,MAAM,yBAAyB,GACjC,SAAS,GACT,WAAW,GACX,QAAQ,GACR,kBAAkB,GAClB,SAAS,GACT,mBAAmB,GACnB,oBAAoB,GACpB,WAAW,CAAC;AAEhB,8CAA8C;AAC9C,MAAM,WAAW,qBAAqB;IAEpC,mCAAmC;IACnC,UAAU,EAAE,UAAU,CAAC;IAEvB,qBAAqB;IACrB,IAAI,EAAE,yBAAyB,CAAC;IAEhC,yFAAyF;IACzF,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B,+EAA+E;IAC/E,QAAQ,CAAC,EAAE;QAET,kCAAkC;QAClC,OAAO,EAAE,MAAM,CAAC;QAEhB,iCAAiC;QACjC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF,+EAA+E;IAC/E,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,0FAA0F;IAC1F,OAAO,CAAC,EAAE,IAAI,CAAC;IAEf,oEAAoE;IACpE,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;;;OAIG;IACH,SAAS,CAAC,EAAE;QAEV,+BAA+B;QAC/B,OAAO,EAAE,MAAM,CAAC;QAEhB;;;WAGG;QACH,YAAY,CAAC,EAAE,IAAI,CAAC;QAEpB,mFAAmF;QACnF,YAAY,EAAE,OAAO,CAAC;KACvB,CAAC;CACH"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const le32FromHex: (hex: string[], i: number) => number;
|
|
1
|
+
export declare const le32FromHex: (hex: readonly string[], i: number) => number;
|
|
2
2
|
//# sourceMappingURL=le-32-from-hex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"le-32-from-hex.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/utils/le-32-from-hex.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,EAAE,EAAE,GAAG,MAAM,KAAG,
|
|
1
|
+
{"version":3,"file":"le-32-from-hex.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/utils/le-32-from-hex.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GAAI,KAAK,SAAS,MAAM,EAAE,EAAE,GAAG,MAAM,KAAG,MAO/D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.LepuRecordSavedWatch = void 0;
|
|
7
|
-
var _hexToByte = require("../../../utils/hex-to-byte.js");
|
|
8
|
-
const LOW_NIBBLE = 0x0f;
|
|
9
|
-
/** Spots the poll answer on which a recorder enters its record-saved state. */
|
|
10
|
-
class LepuRecordSavedWatch {
|
|
11
|
-
wasSaved = false;
|
|
12
|
-
constructor(status) {
|
|
13
|
-
this.status = status;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/** True on the first answer in the saved state, false on those that follow it. */
|
|
17
|
-
hasJustSaved = pollAnswer => {
|
|
18
|
-
const runStatus = (0, _hexToByte.hexToByte)(pollAnswer[this.status.byteIndex] ?? "00");
|
|
19
|
-
const isSaved = (runStatus & LOW_NIBBLE) === this.status.state;
|
|
20
|
-
const justSaved = isSaved && !this.wasSaved;
|
|
21
|
-
this.wasSaved = isSaved;
|
|
22
|
-
return justSaved;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
exports.LepuRecordSavedWatch = LepuRecordSavedWatch;
|
|
26
|
-
//# sourceMappingURL=lepu.record-saved-watch.js.map
|
package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.record-saved-watch.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_hexToByte","require","LOW_NIBBLE","LepuRecordSavedWatch","wasSaved","constructor","status","hasJustSaved","pollAnswer","runStatus","hexToByte","byteIndex","isSaved","state","justSaved","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/lepu/lepu.record-saved-watch.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAEA,MAAMC,UAAU,GAAG,IAAI;AAIvB;AACA,MAAMC,oBAAoB,CAAC;EACjBC,QAAQ,GAAG,KAAK;EAEjBC,WAAWA,CAAkBC,MAAyB,EAAE;IAAA,KAA3BA,MAAyB,GAAzBA,MAAyB;EAAG;;EAEhE;EACOC,YAAY,GAAIC,UAA6B,IAAc;IAChE,MAAMC,SAAS,GAAG,IAAAC,oBAAS,EAACF,UAAU,CAAC,IAAI,CAACF,MAAM,CAACK,SAAS,CAAC,IAAI,IAAI,CAAC;IACtE,MAAMC,OAAO,GAAG,CAACH,SAAS,GAAGP,UAAU,MAAM,IAAI,CAACI,MAAM,CAACO,KAAK;IAC9D,MAAMC,SAAS,GAAGF,OAAO,IAAI,CAAC,IAAI,CAACR,QAAQ;IAE3C,IAAI,CAACA,QAAQ,GAAGQ,OAAO;IAEvB,OAAOE,SAAS;EAClB,CAAC;AACH;AAACC,OAAA,CAAAZ,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { hexToByte } from "../../../utils/hex-to-byte.js";
|
|
4
|
-
const LOW_NIBBLE = 0x0f;
|
|
5
|
-
/** Spots the poll answer on which a recorder enters its record-saved state. */
|
|
6
|
-
class LepuRecordSavedWatch {
|
|
7
|
-
wasSaved = false;
|
|
8
|
-
constructor(status) {
|
|
9
|
-
this.status = status;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/** True on the first answer in the saved state, false on those that follow it. */
|
|
13
|
-
hasJustSaved = pollAnswer => {
|
|
14
|
-
const runStatus = hexToByte(pollAnswer[this.status.byteIndex] ?? "00");
|
|
15
|
-
const isSaved = (runStatus & LOW_NIBBLE) === this.status.state;
|
|
16
|
-
const justSaved = isSaved && !this.wasSaved;
|
|
17
|
-
this.wasSaved = isSaved;
|
|
18
|
-
return justSaved;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export { LepuRecordSavedWatch };
|
|
22
|
-
//# sourceMappingURL=lepu.record-saved-watch.js.map
|
package/lib/module/modules/bt-management/services/devices/lepu/lepu.record-saved-watch.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["hexToByte","LOW_NIBBLE","LepuRecordSavedWatch","wasSaved","constructor","status","hasJustSaved","pollAnswer","runStatus","byteIndex","isSaved","state","justSaved"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/lepu/lepu.record-saved-watch.ts"],"mappings":";;AACA,SAASA,SAAS,QAAQ,+BAA4B;AAEtD,MAAMC,UAAU,GAAG,IAAI;AAIvB;AACA,MAAMC,oBAAoB,CAAC;EACjBC,QAAQ,GAAG,KAAK;EAEjBC,WAAWA,CAAkBC,MAAyB,EAAE;IAAA,KAA3BA,MAAyB,GAAzBA,MAAyB;EAAG;;EAEhE;EACOC,YAAY,GAAIC,UAA6B,IAAc;IAChE,MAAMC,SAAS,GAAGR,SAAS,CAACO,UAAU,CAAC,IAAI,CAACF,MAAM,CAACI,SAAS,CAAC,IAAI,IAAI,CAAC;IACtE,MAAMC,OAAO,GAAG,CAACF,SAAS,GAAGP,UAAU,MAAM,IAAI,CAACI,MAAM,CAACM,KAAK;IAC9D,MAAMC,SAAS,GAAGF,OAAO,IAAI,CAAC,IAAI,CAACP,QAAQ;IAE3C,IAAI,CAACA,QAAQ,GAAGO,OAAO;IAEvB,OAAOE,SAAS;EAClB,CAAC;AACH;AAEA,SAASV,oBAAoB","ignoreList":[]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CustomLepuSpec } from "../../../types/custom-lepu-spec";
|
|
2
|
-
type RecordSavedStatus = NonNullable<CustomLepuSpec["recordSavedStatus"]>;
|
|
3
|
-
/** Spots the poll answer on which a recorder enters its record-saved state. */
|
|
4
|
-
declare class LepuRecordSavedWatch {
|
|
5
|
-
private readonly status;
|
|
6
|
-
private wasSaved;
|
|
7
|
-
constructor(status: RecordSavedStatus);
|
|
8
|
-
/** True on the first answer in the saved state, false on those that follow it. */
|
|
9
|
-
hasJustSaved: (pollAnswer: readonly string[]) => boolean;
|
|
10
|
-
}
|
|
11
|
-
export { LepuRecordSavedWatch };
|
|
12
|
-
//# sourceMappingURL=lepu.record-saved-watch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lepu.record-saved-watch.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.record-saved-watch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAKjE,KAAK,iBAAiB,GAAG,WAAW,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAE1E,+EAA+E;AAC/E,cAAM,oBAAoB;IAGL,OAAO,CAAC,QAAQ,CAAC,MAAM;IAF1C,OAAO,CAAC,QAAQ,CAAS;gBAEW,MAAM,EAAE,iBAAiB;IAE7D,kFAAkF;IAC3E,YAAY,GAAI,YAAY,SAAS,MAAM,EAAE,KAAG,OAAO,CAQ5D;CACH;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CustomLepuSpec } from "../../../types/custom-lepu-spec";
|
|
2
|
-
type RecordSavedStatus = NonNullable<CustomLepuSpec["recordSavedStatus"]>;
|
|
3
|
-
/** Spots the poll answer on which a recorder enters its record-saved state. */
|
|
4
|
-
declare class LepuRecordSavedWatch {
|
|
5
|
-
private readonly status;
|
|
6
|
-
private wasSaved;
|
|
7
|
-
constructor(status: RecordSavedStatus);
|
|
8
|
-
/** True on the first answer in the saved state, false on those that follow it. */
|
|
9
|
-
hasJustSaved: (pollAnswer: readonly string[]) => boolean;
|
|
10
|
-
}
|
|
11
|
-
export { LepuRecordSavedWatch };
|
|
12
|
-
//# sourceMappingURL=lepu.record-saved-watch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lepu.record-saved-watch.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.record-saved-watch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAKjE,KAAK,iBAAiB,GAAG,WAAW,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAE1E,+EAA+E;AAC/E,cAAM,oBAAoB;IAGL,OAAO,CAAC,QAAQ,CAAC,MAAM;IAF1C,OAAO,CAAC,QAAQ,CAAS;gBAEW,MAAM,EAAE,iBAAiB;IAE7D,kFAAkF;IAC3E,YAAY,GAAI,YAAY,SAAS,MAAM,EAAE,KAAG,OAAO,CAQ5D;CACH;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|