@ovok/native 1.17.0-dev.2260 → 1.17.0-dev.2264
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/next/bluetooth/adapters/chosen-patient.js +12 -5
- package/lib/commonjs/modules/next/bluetooth/adapters/chosen-patient.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/adapters/ovok-reading-sink.js +27 -119
- package/lib/commonjs/modules/next/bluetooth/adapters/ovok-reading-sink.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/adapters/reading-measurements.js +118 -0
- package/lib/commonjs/modules/next/bluetooth/adapters/reading-measurements.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/adapters/series-saving.js +14 -8
- package/lib/commonjs/modules/next/bluetooth/adapters/series-saving.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/core/bluetooth.js +2 -1
- package/lib/commonjs/modules/next/bluetooth/core/bluetooth.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/core/kept-stream.js +50 -0
- package/lib/commonjs/modules/next/bluetooth/core/kept-stream.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/core/live-ledger.js +3 -2
- package/lib/commonjs/modules/next/bluetooth/core/live-ledger.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/core/series-book.js +75 -0
- package/lib/commonjs/modules/next/bluetooth/core/series-book.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/core/series-slots.js +8 -1
- package/lib/commonjs/modules/next/bluetooth/core/series-slots.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/core/stream-recorder.js +15 -15
- package/lib/commonjs/modules/next/bluetooth/core/stream-recorder.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/index.js +9 -1
- package/lib/commonjs/modules/next/bluetooth/index.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/web/index.js +9 -1
- package/lib/commonjs/modules/next/bluetooth/web/index.js.map +1 -1
- package/lib/module/modules/next/bluetooth/adapters/chosen-patient.js +11 -5
- package/lib/module/modules/next/bluetooth/adapters/chosen-patient.js.map +1 -1
- package/lib/module/modules/next/bluetooth/adapters/ovok-reading-sink.js +28 -120
- package/lib/module/modules/next/bluetooth/adapters/ovok-reading-sink.js.map +1 -1
- package/lib/module/modules/next/bluetooth/adapters/reading-measurements.js +115 -0
- package/lib/module/modules/next/bluetooth/adapters/reading-measurements.js.map +1 -0
- package/lib/module/modules/next/bluetooth/adapters/series-saving.js +13 -8
- package/lib/module/modules/next/bluetooth/adapters/series-saving.js.map +1 -1
- package/lib/module/modules/next/bluetooth/core/bluetooth.js +2 -1
- package/lib/module/modules/next/bluetooth/core/bluetooth.js.map +1 -1
- package/lib/module/modules/next/bluetooth/core/kept-stream.js +45 -0
- package/lib/module/modules/next/bluetooth/core/kept-stream.js.map +1 -0
- package/lib/module/modules/next/bluetooth/core/live-ledger.js +3 -2
- package/lib/module/modules/next/bluetooth/core/live-ledger.js.map +1 -1
- package/lib/module/modules/next/bluetooth/core/series-book.js +72 -0
- package/lib/module/modules/next/bluetooth/core/series-book.js.map +1 -0
- package/lib/module/modules/next/bluetooth/core/series-slots.js +8 -1
- package/lib/module/modules/next/bluetooth/core/series-slots.js.map +1 -1
- package/lib/module/modules/next/bluetooth/core/stream-recorder.js +16 -16
- package/lib/module/modules/next/bluetooth/core/stream-recorder.js.map +1 -1
- package/lib/module/modules/next/bluetooth/index.js +1 -0
- package/lib/module/modules/next/bluetooth/index.js.map +1 -1
- package/lib/module/modules/next/bluetooth/web/index.js +1 -0
- package/lib/module/modules/next/bluetooth/web/index.js.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/chosen-patient.d.ts +13 -5
- package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/chosen-patient.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/ovok-reading-sink.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/ovok-reading-sink.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/reading-measurements.d.ts +7 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/reading-measurements.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/series-saving.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/series-saving.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/bluetooth.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/kept-stream.d.ts +13 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/kept-stream.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/live-ledger.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/live-ledger.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/series-book.d.ts +29 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/series-book.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/series-slots.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/series-slots.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/stream-recorder.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/stream-recorder.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/adapters/chosen-patient.d.ts +13 -5
- package/lib/typescript/module/src/modules/next/bluetooth/adapters/chosen-patient.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/adapters/ovok-reading-sink.d.ts +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/adapters/ovok-reading-sink.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/adapters/reading-measurements.d.ts +7 -0
- package/lib/typescript/module/src/modules/next/bluetooth/adapters/reading-measurements.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/adapters/series-saving.d.ts +3 -1
- package/lib/typescript/module/src/modules/next/bluetooth/adapters/series-saving.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/core/bluetooth.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/core/kept-stream.d.ts +13 -0
- package/lib/typescript/module/src/modules/next/bluetooth/core/kept-stream.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/core/live-ledger.d.ts +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/core/live-ledger.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/core/series-book.d.ts +29 -0
- package/lib/typescript/module/src/modules/next/bluetooth/core/series-book.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/core/series-slots.d.ts +3 -1
- package/lib/typescript/module/src/modules/next/bluetooth/core/series-slots.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/core/stream-recorder.d.ts +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/core/stream-recorder.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/index.d.ts +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/web/index.d.ts +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/index.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DeviceError","LiveLedger","
|
|
1
|
+
{"version":3,"names":["DeviceError","LiveLedger","SeriesBook","RECORDED_METRICS","ChannelSegment","MS_PER_SECOND","SAVE_OPEN_EVERY_MS","StreamRecorder","book","segments","Map","ledger","replacing","unsupported","Set","saving","Promise","resolve","streaming","constructor","device","sink","deps","origin","modelId","model","id","protocolId","protocol","address","recordId","follow","events","add","event","observe","kind","followStream","snapshot","live","recording","recordNumbers","values","recordWaveform","waveform","supersede","record","spans","inside","length","set","supersedes","acknowledged","replaced","get","remove","delete","forEach","span","forget","close","stopTimer","openSeries","metric","finish","segment","flush","reading","saveSettled","clear","measuringSince","at","Object","entries","quantity","type","Number","isFinite","value","has","takenAt","getTime","seriesFor","unit","put","series","ended","place","timer","setInterval","saveOpenSeries","sampleRateHz","arrivedAt","now","channels","channel","index","samples","firstAt","firstSampleAt","segmentFor","scale","key","join","isQuiet","unsaved","enqueue","undefined","markSaved","hasOpen","onSaved","then","save","error","failed","code","logger","warn","clearInterval"],"sourceRoot":"../../../../../../src","sources":["modules/next/bluetooth/core/stream-recorder.ts"],"mappings":";;AAEA,SAASA,WAAW,QAAQ,aAAU;AAEtC,SAASC,UAAU,QAAQ,kBAAe;AAI1C,SAASC,UAAU,QAAQ,kBAAe;AAC1C,SAASC,gBAAgB,QAAgC,mBAAgB;AACzE,SAASC,cAAc,QAAQ,wBAAqB;AAEpD,MAAMC,aAAa,GAAG,KAAK;AAC3B,MAAMC,kBAAkB,GAAG,MAAM;;AAEjC;;AAYA;AACA;AACA;AACA;AACA,MAAMC,cAAc,CAAC;EACFC,IAAI,GAAG,IAAIN,UAAU,CAAC,CAAC;EACvBO,QAAQ,GAAG,IAAIC,GAAG,CAAyB,CAAC;EAC5CC,MAAM,GAAG,IAAIV,UAAU,CAAC,CAAC;EACzBW,SAAS,GAAG,IAAIF,GAAG,CAA8B,CAAC;EAClDG,WAAW,GAAG,IAAIC,GAAG,CAAqB,CAAC;EACpDC,MAAM,GAAkBC,OAAO,CAACC,OAAO,CAAC,CAAC;EAEzCC,SAAS,GAAG,KAAK;EAGlBC,WAAWA,CACCC,MAAsB,EACtBC,IAAiB,EACjBC,IAAkB,EACnC;IAA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W,GAAGiH,KAAK,CAACE,IAAI,GAAG;MAAK,CAAC,CAAC;IACtI;EACF;EAEQtD,SAASA,CAAA,EAAS;IACxByD,aAAa,CAAC,IAAI,CAAC9B,KAAK,CAAC;IACzB,IAAI,CAACA,KAAK,GAAGmB,SAAS;EACxB;AACF;AAEA,SAASpG,cAAc","ignoreList":[]}
|
|
@@ -12,4 +12,5 @@ export { blePlxCentral } from "./adapters/ble-plx-central.js";
|
|
|
12
12
|
export { osBluetoothPermissions } from "./adapters/os-permissions.js";
|
|
13
13
|
export { reactNativeLifecycle } from "./adapters/react-native-lifecycle.js";
|
|
14
14
|
export { createBluetooth } from "./create-bluetooth.js";
|
|
15
|
+
export { HOLD } from "./adapters/chosen-patient.js";
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["androidForegroundService","blePlxCentral","osBluetoothPermissions","reactNativeLifecycle","createBluetooth"],"sourceRoot":"../../../../../src","sources":["modules/next/bluetooth/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,aAAU;AACxB,SAASA,wBAAwB,QAAQ,0CAAuC;AAEhF,SAASC,aAAa,QAAQ,+BAA4B;AAC1D,SAASC,sBAAsB,QAAQ,8BAA2B;AAClE,SAASC,oBAAoB,QAAQ,sCAAmC;AACxE,SAASC,eAAe,QAAQ,uBAAoB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["androidForegroundService","blePlxCentral","osBluetoothPermissions","reactNativeLifecycle","createBluetooth","HOLD"],"sourceRoot":"../../../../../src","sources":["modules/next/bluetooth/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,aAAU;AACxB,SAASA,wBAAwB,QAAQ,0CAAuC;AAEhF,SAASC,aAAa,QAAQ,+BAA4B;AAC1D,SAASC,sBAAsB,QAAQ,8BAA2B;AAClE,SAASC,oBAAoB,QAAQ,sCAAmC;AACxE,SAASC,eAAe,QAAQ,uBAAoB;AACpD,SAASC,IAAI,QAAQ,8BAA2B","ignoreList":[]}
|
|
@@ -9,4 +9,5 @@
|
|
|
9
9
|
export * from "../shared.js";
|
|
10
10
|
export { webBluetoothCentral } from "../adapters/web-bluetooth-central.js";
|
|
11
11
|
export { createWebBluetooth } from "./create-web-bluetooth.js";
|
|
12
|
+
export { HOLD } from "../adapters/chosen-patient.js";
|
|
12
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["webBluetoothCentral","createWebBluetooth"],"sourceRoot":"../../../../../../src","sources":["modules/next/bluetooth/web/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,cAAW;AACzB,SAASA,mBAAmB,QAAQ,sCAAmC;AAEvE,SAASC,kBAAkB,QAAQ,2BAAwB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["webBluetoothCentral","createWebBluetooth","HOLD"],"sourceRoot":"../../../../../../src","sources":["modules/next/bluetooth/web/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,cAAW;AACzB,SAASA,mBAAmB,QAAQ,sCAAmC;AAEvE,SAASC,kBAAkB,QAAQ,2BAAwB;AAC3D,SAASC,IAAI,QAAQ,+BAA4B","ignoreList":[]}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
import { DeviceSnapshot } from "../core/device-snapshot";
|
|
2
|
+
import { Reading } from "../core/reading";
|
|
3
|
+
/**
|
|
4
|
+
* What `savesFor` returns to keep a reading on the device, unsent, until `ovok.outbox.assign` names who was measured:
|
|
5
|
+
* for a shared monitor set to ask each time.
|
|
6
|
+
*/
|
|
7
|
+
declare const HOLD: unique symbol;
|
|
1
8
|
/**
|
|
2
9
|
* Names the patient a reading is saved for, when the person measuring isn't the patient (a clinician): read at every
|
|
3
|
-
* save, so it follows whoever is chosen now. `
|
|
10
|
+
* save, so it follows whoever is chosen now. `HOLD` keeps the reading until a patient is assigned, and `undefined`
|
|
11
|
+
* means nobody is chosen, so the reading is not saved.
|
|
4
12
|
*/
|
|
5
|
-
type SavesFor = () => string | undefined;
|
|
6
|
-
/** The patient `savesFor` names, or `undefined` for the signed-in patient or guest; throws when nobody is chosen. */
|
|
7
|
-
declare const chosenPatientOf: (savesFor: SavesFor | undefined) => string | undefined;
|
|
8
|
-
export { chosenPatientOf };
|
|
13
|
+
type SavesFor = (reading: Reading, device: DeviceSnapshot) => string | typeof HOLD | undefined;
|
|
14
|
+
/** The patient `savesFor` names, `HOLD`, or `undefined` for the signed-in patient or guest; throws when nobody is chosen. */
|
|
15
|
+
declare const chosenPatientOf: (savesFor: SavesFor | undefined, reading: Reading, device: DeviceSnapshot) => string | typeof HOLD | undefined;
|
|
16
|
+
export { chosenPatientOf, HOLD };
|
|
9
17
|
export type { SavesFor };
|
|
10
18
|
//# sourceMappingURL=chosen-patient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chosen-patient.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/adapters/chosen-patient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chosen-patient.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/adapters/chosen-patient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C;;;GAGG;AACH,QAAA,MAAM,IAAI,eAAsB,CAAC;AAEjC;;;;GAIG;AACH,KAAK,QAAQ,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,KAAK,MAAM,GAAG,OAAO,IAAI,GAAG,SAAS,CAAC;AAE/F,6HAA6H;AAC7H,QAAA,MAAM,eAAe,GAAI,UAAU,QAAQ,GAAG,SAAS,EAAE,SAAS,OAAO,EAAE,QAAQ,cAAc,KAAG,MAAM,GAAG,OAAO,IAAI,GAAG,SAY1H,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC;AACjC,YAAY,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { SupersessionClient } from "./live-supersession";
|
|
|
5
5
|
type OvokSinkClient = SupersessionClient;
|
|
6
6
|
/**
|
|
7
7
|
* Saves readings through the Ovok measurements API, queueing them offline: for the signed-in account, or for the
|
|
8
|
-
* patient `savesFor` names
|
|
8
|
+
* patient `savesFor` names, or holds them when it returns `HOLD`. A reading with a series also saves it; a stored record then removes the live recordings it
|
|
9
9
|
* replaces, once it is saved.
|
|
10
10
|
*/
|
|
11
11
|
declare const ovokReadingSink: (client: OvokSinkClient, savesFor?: SavesFor) => ReadingSink;
|
package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/ovok-reading-sink.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ovok-reading-sink.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/adapters/ovok-reading-sink.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ovok-reading-sink.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/adapters/ovok-reading-sink.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAyB,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAyB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAiBhF,uHAAuH;AACvH,KAAK,cAAc,GAAG,kBAAkB,CAAC;AA+DzC;;;;GAIG;AACH,QAAA,MAAM,eAAe,GAAI,QAAQ,cAAc,EAAE,WAAW,QAAQ,KAAG,WA2BrE,CAAC;AAEH,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Measurement } from "@ovok/core/next";
|
|
2
|
+
import { MeasurementType } from "../core/measurement-type";
|
|
3
|
+
import { Reading } from "../core/reading";
|
|
4
|
+
/** How each reading type becomes Ovok measurements, one for most and one per channel for an ECG; a type missing here cannot be saved yet. */
|
|
5
|
+
declare const MEASUREMENTS: Partial<Record<MeasurementType, (reading: Reading) => readonly Measurement[]>>;
|
|
6
|
+
export { MEASUREMENTS };
|
|
7
|
+
//# sourceMappingURL=reading-measurements.d.ts.map
|
package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/reading-measurements.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reading-measurements.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/adapters/reading-measurements.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,WAAW,EAKZ,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,eAAe,EAAc,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AA8G1C,6IAA6I;AAC7I,QAAA,MAAM,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,SAAS,WAAW,EAAE,CAAC,CAahG,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -26,6 +26,8 @@ declare const seriesObservationsOf: (field: SeriesField, { start, intervalMs, va
|
|
|
26
26
|
* saved for `patientId` when given, otherwise for the signed-in patient or the guest.
|
|
27
27
|
*/
|
|
28
28
|
declare const saveSeries: (client: SeriesClient, reading: SeriesReading, device: MeasurementDevice, patientId?: string) => Promise<SaveObservationsResult>;
|
|
29
|
-
|
|
29
|
+
/** Keeps a series on the device, naming the guest, until `ovok.outbox.assign` names the patient. */
|
|
30
|
+
declare const holdSeries: (client: SeriesClient, reading: SeriesReading, device: MeasurementDevice) => Promise<SaveObservationsResult>;
|
|
31
|
+
export { holdSeries, isSeriesReading, ownPatientId, saveSeries, seriesFieldOf, seriesObservationsOf };
|
|
30
32
|
export type { MeasurementDevice, SeriesClient };
|
|
31
33
|
//# sourceMappingURL=series-saving.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"series-saving.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/adapters/series-saving.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EAEvB,kBAAkB,EAClB,IAAI,EACJ,sBAAsB,EAEtB,uBAAuB,EACxB,MAAM,iBAAiB,CAAC;AAIzB,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAKlD,KAAK,iBAAiB,GAAG,WAAW,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC,CAAC;AAExE,2EAA2E;AAC3E,KAAK,YAAY,GAAG,IAAI,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,CAAC,CAAC;AAE3D,qCAAqC;AACrC,KAAK,aAAa,GAAG,OAAO,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAElD,yFAAyF;AACzF,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAYlE,QAAA,MAAM,eAAe,GAAI,SAAS,OAAO,KAAG,OAAO,IAAI,aAA6C,CAAC;AAErG,6FAA6F;AAC7F,QAAA,MAAM,aAAa,GAAI,QAAQ,MAAM,KAAG,WAAW,GAAG,SAAgD,CAAC;AAEvG,oGAAoG;AACpG,QAAA,MAAM,YAAY,GAAU,aAAa,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,KAAG,OAAO,CAAC,MAAM,CAI9E,CAAC;AAEF,+FAA+F;AAC/F,QAAA,MAAM,oBAAoB,GACxB,OAAO,WAAW,EAClB,+BAA+B,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,YAAY,GAAG,QAAQ,CAAC,EAC9E,MA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M,IAAI,CAAC,uBAAuB,EAAE,WAAW,GAAG,UAAU,GAAG,iBAAiB,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,iBAAiB,CAAA;CAAE,+CAKhH,CAAC;AAmBL;;;GAGG;AACH,QAAA,MAAM,UAAU,GACd,QAAQ,YAAY,EACpB,SAAS,aAAa,EACtB,QAAQ,iBAAiB,EACzB,YAAY,MAAM,KACjB,OAAO,CAAC,sBAAsB,CACsE,CAAC;AAExG,oGAAoG;AACpG,QAAA,MAAM,UAAU,GAAU,QAAQ,YAAY,EAAE,SAAS,aAAa,EAAE,QAAQ,iBAAiB,KAAG,OAAO,CAAC,sBAAsB,CACpB,CAAC;AAE/G,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,oBAAoB,EAAE,CAAC;AACtG,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bluetooth.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/bluetooth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"bluetooth.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/bluetooth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAE,OAAO,EAAE,WAAW,EA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,UAAU;IAIlB,qGAAqG;IACrG,OAAO,CAAC,OAAO,CAQb;IAEF,OAAO,CAAC,SAAS;IAKjB,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,YAAY;CAKrB;AAED,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Device } from "./device";
|
|
2
|
+
import { DeviceSnapshot } from "./device-snapshot";
|
|
3
|
+
import { Logger } from "./ports";
|
|
4
|
+
/** Kept in the background, recording what it streams, and able to stream. */
|
|
5
|
+
declare const recordsInBackground: ({ keepInBackground, record, actions }: DeviceSnapshot) => boolean;
|
|
6
|
+
/**
|
|
7
|
+
* The device, set to stream each time it connects while it is kept in the background, whether or not the app is on
|
|
8
|
+
* screen, so its stream is recorded while the app is closed. A stream started this way stops once background keeping or
|
|
9
|
+
* recording is turned off; one the user stops stays stopped until the next connection.
|
|
10
|
+
*/
|
|
11
|
+
declare const streamingWhileKept: (device: Device, logger: Logger) => Device;
|
|
12
|
+
export { recordsInBackground, streamingWhileKept };
|
|
13
|
+
//# sourceMappingURL=kept-stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kept-stream.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/kept-stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,6EAA6E;AAC7E,QAAA,MAAM,mBAAmB,GAAI,uCAAuC,cAAc,KAAG,OAC7B,CAAC;AAEzD;;;;GAIG;AACH,QAAA,MAAM,kBAAkB,GAAI,QAAQ,MAAM,EAAE,QAAQ,MAAM,KAAG,MAgC5D,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { DecodedReading, LiveSpan } from "./reading";
|
|
|
2
2
|
/** The live recordings that were saved and that a stored record of the same time may still replace. */
|
|
3
3
|
declare class LiveLedger {
|
|
4
4
|
private spans;
|
|
5
|
-
/** Remembers a recording that was saved whole. */
|
|
5
|
+
/** Remembers a recording that was saved whole; a longer save of the same recording takes the place of the shorter. */
|
|
6
6
|
add(span: LiveSpan): void;
|
|
7
7
|
/** The recordings of the same metric that lie inside what a stored record covers. */
|
|
8
8
|
inside(record: DecodedReading): LiveSpan[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-ledger.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/live-ledger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"live-ledger.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/live-ledger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAkCrD,uGAAuG;AACvG,cAAM,UAAU;IACd,OAAO,CAAC,KAAK,CAA2B;IAExC,sHAAsH;IAC/G,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;IAIhC,qFAAqF;IAC9E,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,QAAQ,EAAE;IAMjD,uDAAuD;IAChD,MAAM,CAAC,QAAQ,EAAE,SAAS,QAAQ,EAAE,GAAG,IAAI;CAGnD;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MetricCode } from "./measurement-type";
|
|
2
|
+
import { LiveSpan } from "./reading";
|
|
3
|
+
import { SeriesKind, SlotSeries } from "./series-slots";
|
|
4
|
+
/** Where a value goes: the series it is put in, and the open series of its metric that it ended, to be saved. */
|
|
5
|
+
type Placement = {
|
|
6
|
+
series: SlotSeries;
|
|
7
|
+
ended?: SlotSeries;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Each metric's open series and the one it last closed. A value that still belongs to the closed series carries it
|
|
11
|
+
* on, so screen changes, backgrounding and reconnects within the quiet window keep one recording under one name.
|
|
12
|
+
*/
|
|
13
|
+
declare class SeriesBook {
|
|
14
|
+
private readonly open;
|
|
15
|
+
private readonly closed;
|
|
16
|
+
/** The series a value of `kind` taken at `at` goes in: carried on when it still belongs there, otherwise a new one. */
|
|
17
|
+
place(kind: SeriesKind, at: number): Placement;
|
|
18
|
+
/** Closes the metric's open series and keeps it, so a value soon after carries it on; the series closed, if any. */
|
|
19
|
+
close(metric: MetricCode): SlotSeries | undefined;
|
|
20
|
+
/** The open series, by metric. */
|
|
21
|
+
openSeries(): [MetricCode, SlotSeries][];
|
|
22
|
+
/** Whether any series is open. */
|
|
23
|
+
get hasOpen(): boolean;
|
|
24
|
+
/** A stored record replaced this recording, so it is never carried on and saved again. */
|
|
25
|
+
forget(span: LiveSpan): void;
|
|
26
|
+
private carriedOn;
|
|
27
|
+
}
|
|
28
|
+
export { SeriesBook };
|
|
29
|
+
//# sourceMappingURL=series-book.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"series-book.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/series-book.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAExD,iHAAiH;AACjH,KAAK,SAAS,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,KAAK,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;AAE5D;;;GAGG;AACH,cAAM,UAAU;IACd,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAqC;IAC1D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqC;IAE5D,uHAAuH;IAChH,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS;IAkBrD,oHAAoH;IAC7G,KAAK,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS;IAWxD,kCAAkC;IAC3B,UAAU,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,EAAE;IAI/C,kCAAkC;IAClC,IAAW,OAAO,IAAI,OAAO,CAE5B;IAED,0FAA0F;IACnF,MAAM,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;IAQnC,OAAO,CAAC,SAAS;CAWlB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MeasurementType, MetricCode } from "./measurement-type";
|
|
2
|
-
import { Reading, ReadingSource } from "./reading";
|
|
2
|
+
import { LiveSpan, Reading, ReadingSource } from "./reading";
|
|
3
3
|
/** The streamed numbers worth recording as a series, each with the measurement it belongs to. */
|
|
4
4
|
declare const RECORDED_METRICS: Partial<Record<MetricCode, MeasurementType>>;
|
|
5
5
|
/** What a series measures. */
|
|
@@ -20,6 +20,8 @@ declare class SlotSeries {
|
|
|
20
20
|
takes(unit: string, at: number): boolean;
|
|
21
21
|
/** Puts a value in the second it was taken; of two values in one second the later stays. */
|
|
22
22
|
put(value: number, at: number): void;
|
|
23
|
+
/** Whether this series is the recording `span` was saved from. */
|
|
24
|
+
began(span: LiveSpan): boolean;
|
|
23
25
|
/** Whether no value arrived for as long as a series waits before it closes. */
|
|
24
26
|
isQuiet(now: number): boolean;
|
|
25
27
|
/** Whether values arrived since the last `markSaved`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"series-slots.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/series-slots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,
|
|
1
|
+
{"version":3,"file":"series-slots.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/series-slots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAQ7D,iGAAiG;AACjG,QAAA,MAAM,gBAAgB,EAAE,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,eAAe,CAAC,CAOlE,CAAC;AAEF,8BAA8B;AAC9B,KAAK,UAAU,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9E,iGAAiG;AACjG,cAAM,UAAU;IAMK,OAAO,CAAC,QAAQ,CAAC,IAAI;IALxC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAChD,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAAQ;gBAEa,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM;IAKrE,4EAA4E;IACrE,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO;IAI/C,4FAA4F;IACrF,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;IAY3C,kEAAkE;IAC3D,KAAK,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO;IAIrC,+EAA+E;IACxE,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAIpC,yDAAyD;IACzD,IAAW,OAAO,IAAI,OAAO,CAE5B;IAEM,SAAS,IAAI,IAAI;IAIxB,qDAAqD;IAC9C,OAAO,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO;IAc9C,OAAO,CAAC,IAAI;IASZ,OAAO,CAAC,MAAM;CAGf;AAED,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,CAAC;AACxC,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-recorder.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/stream-recorder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEhE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,cAAc,EAAoE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"stream-recorder.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/stream-recorder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEhE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,cAAc,EAAoE,MAAM,WAAW,CAAC;AAQ7G,iCAAiC;AACjC,KAAK,cAAc,GAAG;IAEpB,gDAAgD;IAChD,OAAO,EAAE,MAAM,CAAC;IAEhB,6EAA6E;IAC7E,QAAQ,EAAE,MAAM,cAAc,CAAC;CAChC,CAAC;AAEF,KAAK,YAAY,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,GAAG,KAAK,GAAG,QAAQ,CAAC,CAAC;A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AAC,OAAO;IAef,OAAO,CAAC,MAAM;IAYd,OAAO,CAAC,SAAS;CAIlB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -11,6 +11,7 @@ export { blePlxCentral } from "./adapters/ble-plx-central";
|
|
|
11
11
|
export { osBluetoothPermissions } from "./adapters/os-permissions";
|
|
12
12
|
export { reactNativeLifecycle } from "./adapters/react-native-lifecycle";
|
|
13
13
|
export { createBluetooth } from "./create-bluetooth";
|
|
14
|
+
export { HOLD } from "./adapters/chosen-patient";
|
|
14
15
|
export type { SavesFor } from "./adapters/chosen-patient";
|
|
15
16
|
export type { CreateBluetoothOptions } from "./create-bluetooth";
|
|
16
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/bluetooth/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,YAAY,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC7G,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,YAAY,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/bluetooth/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,YAAY,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC7G,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,YAAY,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -8,6 +8,7 @@ export * from "../shared";
|
|
|
8
8
|
export { webBluetoothCentral } from "../adapters/web-bluetooth-central";
|
|
9
9
|
export type { WebBluetooth } from "../adapters/web-bluetooth-central";
|
|
10
10
|
export { createWebBluetooth } from "./create-web-bluetooth";
|
|
11
|
+
export { HOLD } from "../adapters/chosen-patient";
|
|
11
12
|
export type { SavesFor } from "../adapters/chosen-patient";
|
|
12
13
|
export type { CreateWebBluetoothOptions } from "./create-web-bluetooth";
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/web/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,YAAY,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAC3D,YAAY,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/web/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,YAAY,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,YAAY,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAC3D,YAAY,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
import { DeviceSnapshot } from "../core/device-snapshot";
|
|
2
|
+
import { Reading } from "../core/reading";
|
|
3
|
+
/**
|
|
4
|
+
* What `savesFor` returns to keep a reading on the device, unsent, until `ovok.outbox.assign` names who was measured:
|
|
5
|
+
* for a shared monitor set to ask each time.
|
|
6
|
+
*/
|
|
7
|
+
declare const HOLD: unique symbol;
|
|
1
8
|
/**
|
|
2
9
|
* Names the patient a reading is saved for, when the person measuring isn't the patient (a clinician): read at every
|
|
3
|
-
* save, so it follows whoever is chosen now. `
|
|
10
|
+
* save, so it follows whoever is chosen now. `HOLD` keeps the reading until a patient is assigned, and `undefined`
|
|
11
|
+
* means nobody is chosen, so the reading is not saved.
|
|
4
12
|
*/
|
|
5
|
-
type SavesFor = () => string | undefined;
|
|
6
|
-
/** The patient `savesFor` names, or `undefined` for the signed-in patient or guest; throws when nobody is chosen. */
|
|
7
|
-
declare const chosenPatientOf: (savesFor: SavesFor | undefined) => string | undefined;
|
|
8
|
-
export { chosenPatientOf };
|
|
13
|
+
type SavesFor = (reading: Reading, device: DeviceSnapshot) => string | typeof HOLD | undefined;
|
|
14
|
+
/** The patient `savesFor` names, `HOLD`, or `undefined` for the signed-in patient or guest; throws when nobody is chosen. */
|
|
15
|
+
declare const chosenPatientOf: (savesFor: SavesFor | undefined, reading: Reading, device: DeviceSnapshot) => string | typeof HOLD | undefined;
|
|
16
|
+
export { chosenPatientOf, HOLD };
|
|
9
17
|
export type { SavesFor };
|
|
10
18
|
//# sourceMappingURL=chosen-patient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chosen-patient.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/adapters/chosen-patient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chosen-patient.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/adapters/chosen-patient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C;;;GAGG;AACH,QAAA,MAAM,IAAI,eAAsB,CAAC;AAEjC;;;;GAIG;AACH,KAAK,QAAQ,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,KAAK,MAAM,GAAG,OAAO,IAAI,GAAG,SAAS,CAAC;AAE/F,6HAA6H;AAC7H,QAAA,MAAM,eAAe,GAAI,UAAU,QAAQ,GAAG,SAAS,EAAE,SAAS,OAAO,EAAE,QAAQ,cAAc,KAAG,MAAM,GAAG,OAAO,IAAI,GAAG,SAY1H,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC;AACjC,YAAY,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { SupersessionClient } from "./live-supersession";
|
|
|
5
5
|
type OvokSinkClient = SupersessionClient;
|
|
6
6
|
/**
|
|
7
7
|
* Saves readings through the Ovok measurements API, queueing them offline: for the signed-in account, or for the
|
|
8
|
-
* patient `savesFor` names
|
|
8
|
+
* patient `savesFor` names, or holds them when it returns `HOLD`. A reading with a series also saves it; a stored record then removes the live recordings it
|
|
9
9
|
* replaces, once it is saved.
|
|
10
10
|
*/
|
|
11
11
|
declare const ovokReadingSink: (client: OvokSinkClient, savesFor?: SavesFor) => ReadingSink;
|
package/lib/typescript/module/src/modules/next/bluetooth/adapters/ovok-reading-sink.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ovok-reading-sink.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/adapters/ovok-reading-sink.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ovok-reading-sink.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/adapters/ovok-reading-sink.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAyB,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAyB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAiBhF,uHAAuH;AACvH,KAAK,cAAc,GAAG,kBAAkB,CAAC;AA+DzC;;;;GAIG;AACH,QAAA,MAAM,eAAe,GAAI,QAAQ,cAAc,EAAE,WAAW,QAAQ,KAAG,WA2BrE,CAAC;AAEH,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Measurement } from "@ovok/core/next";
|
|
2
|
+
import { MeasurementType } from "../core/measurement-type";
|
|
3
|
+
import { Reading } from "../core/reading";
|
|
4
|
+
/** How each reading type becomes Ovok measurements, one for most and one per channel for an ECG; a type missing here cannot be saved yet. */
|
|
5
|
+
declare const MEASUREMENTS: Partial<Record<MeasurementType, (reading: Reading) => readonly Measurement[]>>;
|
|
6
|
+
export { MEASUREMENTS };
|
|
7
|
+
//# sourceMappingURL=reading-measurements.d.ts.map
|
package/lib/typescript/module/src/modules/next/bluetooth/adapters/reading-measurements.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reading-measurements.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/adapters/reading-measurements.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,WAAW,EAKZ,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,eAAe,EAAc,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AA8G1C,6IAA6I;AAC7I,QAAA,MAAM,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,SAAS,WAAW,EAAE,CAAC,CAahG,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -26,6 +26,8 @@ declare const seriesObservationsOf: (field: SeriesField, { start, intervalMs, va
|
|
|
26
26
|
* saved for `patientId` when given, otherwise for the signed-in patient or the guest.
|
|
27
27
|
*/
|
|
28
28
|
declare const saveSeries: (client: SeriesClient, reading: SeriesReading, device: MeasurementDevice, patientId?: string) => Promise<SaveObservationsResult>;
|
|
29
|
-
|
|
29
|
+
/** Keeps a series on the device, naming the guest, until `ovok.outbox.assign` names the patient. */
|
|
30
|
+
declare const holdSeries: (client: SeriesClient, reading: SeriesReading, device: MeasurementDevice) => Promise<SaveObservationsResult>;
|
|
31
|
+
export { holdSeries, isSeriesReading, ownPatientId, saveSeries, seriesFieldOf, seriesObservationsOf };
|
|
30
32
|
export type { MeasurementDevice, SeriesClient };
|
|
31
33
|
//# sourceMappingURL=series-saving.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"series-saving.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/adapters/series-saving.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EAEvB,kBAAkB,EAClB,IAAI,EACJ,sBAAsB,EAEtB,uBAAuB,EACxB,MAAM,iBAAiB,CAAC;AA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,aAAa,EAAE,QAAQ,iBAAiB,KAAG,OAAO,CAAC,sBAAsB,CACpB,CAAC;AAE/G,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,oBAAoB,EAAE,CAAC;AACtG,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bluetooth.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/bluetooth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"bluetooth.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/bluetooth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAS/C,OAAO,EAAmC,mBAAmB,EAAiD,MAAM,SAAS,CAAC;AAE9H,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAM5D,4FAA4F;AAC5F,cAAM,SAAS;IAsBM,OAAO,CAAC,QAA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
|
|
4
|
+
/** Kept in the background, recording what it streams, and able to stream. */
|
|
5
|
+
declare const recordsInBackground: ({ keepInBackground, record, actions }: DeviceSnapshot) => boolean;
|
|
6
|
+
/**
|
|
7
|
+
* The device, set to stream each time it connects while it is kept in the background, whether or not the app is on
|
|
8
|
+
* screen, so its stream is recorded while the app is closed. A stream started this way stops once background keeping or
|
|
9
|
+
* recording is turned off; one the user stops stays stopped until the next connection.
|
|
10
|
+
*/
|
|
11
|
+
declare const streamingWhileKept: (device: Device, logger: Logger) => Device;
|
|
12
|
+
export { recordsInBackground, streamingWhileKept };
|
|
13
|
+
//# sourceMappingURL=kept-stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kept-stream.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/kept-stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,6EAA6E;AAC7E,QAAA,MAAM,mBAAmB,GAAI,uCAAuC,cAAc,KAAG,OAC7B,CAAC;AAEzD;;;;GAIG;AACH,QAAA,MAAM,kBAAkB,GAAI,QAAQ,MAAM,EAAE,QAAQ,MAAM,KAAG,MAgC5D,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { DecodedReading, LiveSpan } from "./reading";
|
|
|
2
2
|
/** The live recordings that were saved and that a stored record of the same time may still replace. */
|
|
3
3
|
declare class LiveLedger {
|
|
4
4
|
private spans;
|
|
5
|
-
/** Remembers a recording that was saved whole. */
|
|
5
|
+
/** Remembers a recording that was saved whole; a longer save of the same recording takes the place of the shorter. */
|
|
6
6
|
add(span: LiveSpan): void;
|
|
7
7
|
/** The recordings of the same metric that lie inside what a stored record covers. */
|
|
8
8
|
inside(record: DecodedReading): LiveSpan[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-ledger.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/live-ledger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"live-ledger.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/live-ledger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAkCrD,uGAAuG;AACvG,cAAM,UAAU;IACd,OAAO,CAAC,KAAK,CAA2B;IAExC,sHAAsH;IAC/G,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;IAIhC,qFAAqF;IAC9E,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,QAAQ,EAAE;IAMjD,uDAAuD;IAChD,MAAM,CAAC,QAAQ,EAAE,SAAS,QAAQ,EAAE,GAAG,IAAI;CAGnD;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MetricCode } from "./measurement-type";
|
|
2
|
+
import { LiveSpan } from "./reading";
|
|
3
|
+
import { SeriesKind, SlotSeries } from "./series-slots";
|
|
4
|
+
/** Where a value goes: the series it is put in, and the open series of its metric that it ended, to be saved. */
|
|
5
|
+
type Placement = {
|
|
6
|
+
series: SlotSeries;
|
|
7
|
+
ended?: SlotSeries;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Each metric's open series and the one it last closed. A value that still belongs to the closed series carries it
|
|
11
|
+
* on, so screen changes, backgrounding and reconnects within the quiet window keep one recording under one name.
|
|
12
|
+
*/
|
|
13
|
+
declare class SeriesBook {
|
|
14
|
+
private readonly open;
|
|
15
|
+
private readonly closed;
|
|
16
|
+
/** The series a value of `kind` taken at `at` goes in: carried on when it still belongs there, otherwise a new one. */
|
|
17
|
+
place(kind: SeriesKind, at: number): Placement;
|
|
18
|
+
/** Closes the metric's open series and keeps it, so a value soon after carries it on; the series closed, if any. */
|
|
19
|
+
close(metric: MetricCode): SlotSeries | undefined;
|
|
20
|
+
/** The open series, by metric. */
|
|
21
|
+
openSeries(): [MetricCode, SlotSeries][];
|
|
22
|
+
/** Whether any series is open. */
|
|
23
|
+
get hasOpen(): boolean;
|
|
24
|
+
/** A stored record replaced this recording, so it is never carried on and saved again. */
|
|
25
|
+
forget(span: LiveSpan): void;
|
|
26
|
+
private carriedOn;
|
|
27
|
+
}
|
|
28
|
+
export { SeriesBook };
|
|
29
|
+
//# sourceMappingURL=series-book.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"series-book.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/series-book.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAExD,iHAAiH;AACjH,KAAK,SAAS,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,KAAK,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;AAE5D;;;GAGG;AACH,cAAM,UAAU;IACd,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAqC;IAC1D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqC;IAE5D,uHAAuH;IAChH,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS;IAkBrD,oHAAoH;IAC7G,KAAK,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS;IAWxD,kCAAkC;IAC3B,UAAU,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,EAAE;IAI/C,kCAAkC;IAClC,IAAW,OAAO,IAAI,OAAO,CAE5B;IAED,0FAA0F;IACnF,MAAM,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;IAQnC,OAAO,CAAC,SAAS;CAWlB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MeasurementType, MetricCode } from "./measurement-type";
|
|
2
|
-
import { Reading, ReadingSource } from "./reading";
|
|
2
|
+
import { LiveSpan, Reading, ReadingSource } from "./reading";
|
|
3
3
|
/** The streamed numbers worth recording as a series, each with the measurement it belongs to. */
|
|
4
4
|
declare const RECORDED_METRICS: Partial<Record<MetricCode, MeasurementType>>;
|
|
5
5
|
/** What a series measures. */
|
|
@@ -20,6 +20,8 @@ declare class SlotSeries {
|
|
|
20
20
|
takes(unit: string, at: number): boolean;
|
|
21
21
|
/** Puts a value in the second it was taken; of two values in one second the later stays. */
|
|
22
22
|
put(value: number, at: number): void;
|
|
23
|
+
/** Whether this series is the recording `span` was saved from. */
|
|
24
|
+
began(span: LiveSpan): boolean;
|
|
23
25
|
/** Whether no value arrived for as long as a series waits before it closes. */
|
|
24
26
|
isQuiet(now: number): boolean;
|
|
25
27
|
/** Whether values arrived since the last `markSaved`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"series-slots.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/series-slots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,
|
|
1
|
+
{"version":3,"file":"series-slots.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/series-slots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAQ7D,iGAAiG;AACj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AAC,WAAW,CAAiC;IAC7D,OAAO,CAAC,MAAM,CAAoC;IAClD,OAAO,CAAC,KAAK,CAA6C;IAC1D,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;gBAGpB,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,WAAW,EACjB,IAAI,EAAE,YAAY;IAKrC,6FAA6F;IACtF,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,WAAW,CAAC,GAAG,IAAI;IAInD,kHAAkH;IAC3G,OAAO,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAUxC,+GAA+G;IACxG,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,GAAG,cAAc;IAY1E,6EAA6E;IACtE,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAQ3C,8EAA8E;IACvE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAS7B,wFAAwF;IACxF,OAAO,CAAC,SAAS;IAMjB,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,SAAS;IAWjB,OAAO,CAAC,cAAc;IAmBtB,OAAO,CAAC,UAAU;IAUlB,oHAAoH;IACpH,OAAO,CAAC,cAAc;IAiBtB,OAAO,CAAC,MAAM;IAQd,OAAO,CAAC,WAAW;IAQnB,wDAAwD;IACxD,OAAO,CAAC,OAAO;IAef,OAAO,CAAC,MAAM;IAYd,OAAO,CAAC,SAAS;CAIlB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -11,6 +11,7 @@ export { blePlxCentral } from "./adapters/ble-plx-central";
|
|
|
11
11
|
export { osBluetoothPermissions } from "./adapters/os-permissions";
|
|
12
12
|
export { reactNativeLifecycle } from "./adapters/react-native-lifecycle";
|
|
13
13
|
export { createBluetooth } from "./create-bluetooth";
|
|
14
|
+
export { HOLD } from "./adapters/chosen-patient";
|
|
14
15
|
export type { SavesFor } from "./adapters/chosen-patient";
|
|
15
16
|
export type { CreateBluetoothOptions } from "./create-bluetooth";
|
|
16
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/bluetooth/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,YAAY,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC7G,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,YAAY,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/bluetooth/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,YAAY,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC7G,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,YAAY,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC"}
|