@ovok/native 1.16.1-dev.2173 → 1.16.1-dev.2177
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/services/devices/bp2/bp2.device.js +16 -6
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.frame-reader.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.frame-reader.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom-lepu-sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js +20 -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.advertisement.js +19 -2
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.advertisement.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.js +103 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.frame-reader.js +4 -2
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.frame-reader.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.session.js +49 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.session.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.transports.js +4 -4
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp-monitors.js +0 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp-monitors.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-provider.js +15 -8
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-utils.js +1 -1
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-utils.js.map +1 -1
- package/lib/commonjs/modules/data-sync/constants.js +4 -1
- package/lib/commonjs/modules/data-sync/constants.js.map +1 -1
- package/lib/commonjs/modules/data-sync/hooks/use-listen-changes.js +6 -9
- package/lib/commonjs/modules/data-sync/hooks/use-listen-changes.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/convert-ecg-samples-to-observation.js +47 -0
- package/lib/commonjs/modules/data-sync/utils/convert-ecg-samples-to-observation.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js +7 -15
- package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/default-health-coding.js +1 -0
- package/lib/commonjs/modules/data-sync/utils/default-health-coding.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-samples-from-health.js +43 -86
- package/lib/commonjs/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-total-samples-count.js +6 -5
- package/lib/commonjs/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/health-data-catalog.js +15 -15
- package/lib/commonjs/modules/data-sync/utils/health-data-catalog.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/healthkit-daily-statistics.js +64 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-daily-statistics.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-data-types.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/healthkit-query-options.js +20 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-query-options.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-sample-source.js +21 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-sample-source.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-samples.js +59 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-samples.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-series.js +20 -11
- package/lib/commonjs/modules/data-sync/utils/healthkit-series.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js +16 -6
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.frame-reader.js +2 -3
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.frame-reader.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/custom/custom-lepu-sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js +20 -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.advertisement.js +17 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.advertisement.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.js +99 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.frame-reader.js +4 -2
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.frame-reader.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.session.js +45 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.session.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.transports.js +4 -4
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-monitors.js +0 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-monitors.js.map +1 -1
- package/lib/module/modules/data-sync/components/apple/apple-health-authorization-provider.js +16 -9
- package/lib/module/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
- package/lib/module/modules/data-sync/components/apple/apple-health-authorization-utils.js +2 -2
- package/lib/module/modules/data-sync/components/apple/apple-health-authorization-utils.js.map +1 -1
- package/lib/module/modules/data-sync/constants.js +4 -1
- package/lib/module/modules/data-sync/constants.js.map +1 -1
- package/lib/module/modules/data-sync/hooks/use-listen-changes.js +7 -10
- package/lib/module/modules/data-sync/hooks/use-listen-changes.js.map +1 -1
- package/lib/module/modules/data-sync/utils/convert-ecg-samples-to-observation.js +43 -0
- package/lib/module/modules/data-sync/utils/convert-ecg-samples-to-observation.js.map +1 -0
- package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js +7 -15
- package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
- package/lib/module/modules/data-sync/utils/default-health-coding.js +1 -0
- package/lib/module/modules/data-sync/utils/default-health-coding.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-samples-from-health.js +44 -87
- package/lib/module/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-total-samples-count.js +5 -4
- package/lib/module/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
- package/lib/module/modules/data-sync/utils/health-data-catalog.js +15 -15
- package/lib/module/modules/data-sync/utils/health-data-catalog.js.map +1 -1
- package/lib/module/modules/data-sync/utils/healthkit-daily-statistics.js +59 -0
- package/lib/module/modules/data-sync/utils/healthkit-daily-statistics.js.map +1 -0
- package/lib/module/modules/data-sync/utils/healthkit-data-types.js.map +1 -1
- package/lib/module/modules/data-sync/utils/healthkit-query-options.js +16 -0
- package/lib/module/modules/data-sync/utils/healthkit-query-options.js.map +1 -0
- package/lib/module/modules/data-sync/utils/healthkit-sample-source.js +17 -0
- package/lib/module/modules/data-sync/utils/healthkit-sample-source.js.map +1 -0
- package/lib/module/modules/data-sync/utils/healthkit-samples.js +52 -0
- package/lib/module/modules/data-sync/utils/healthkit-samples.js.map +1 -0
- package/lib/module/modules/data-sync/utils/healthkit-series.js +19 -10
- package/lib/module/modules/data-sync/utils/healthkit-series.js.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.frame-reader.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.frame-reader.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom-lepu-sequencer.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom-lepu-sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts +3 -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.advertisement.d.ts +8 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.advertisement.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.d.ts +20 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.frame-reader.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.frame-reader.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.session.d.ts +17 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.session.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bp-monitors.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-lepu-spec.d.ts +4 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-lepu-spec.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/constants.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/data-sync/constants.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/hooks/use-listen-changes.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-sync-props.d.ts +4 -7
- package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-sync-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts +2 -2
- 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/convert-ecg-samples-to-observation.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-ecg-samples-to-observation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-samples-to-observation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/default-health-coding.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts +12 -46
- 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-samples-count.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-data-catalog.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-units.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-units.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-daily-statistics.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-daily-statistics.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-data-types.d.ts +5 -5
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-data-types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-query-options.d.ts +7 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-query-options.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-sample-source.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-sample-source.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-samples.d.ts +30 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-samples.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-series.d.ts +2 -2
- 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/to-core-health-observations.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/to-core-health-observations.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.frame-reader.d.ts +2 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.frame-reader.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom-lepu-sequencer.d.ts +2 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom-lepu-sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts +3 -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.advertisement.d.ts +8 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.advertisement.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.d.ts +20 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.frame-reader.d.ts +3 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.frame-reader.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.session.d.ts +17 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.session.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bp-monitors.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/custom-lepu-spec.d.ts +4 -1
- package/lib/typescript/module/src/modules/bt-management/types/custom-lepu-spec.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts +2 -2
- package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/constants.d.ts +3 -1
- package/lib/typescript/module/src/modules/data-sync/constants.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/hooks/use-listen-changes.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts +2 -2
- package/lib/typescript/module/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/apple-health-sync-props.d.ts +4 -7
- package/lib/typescript/module/src/modules/data-sync/types/apple-health-sync-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts +2 -2
- 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/convert-ecg-samples-to-observation.d.ts +6 -0
- package/lib/typescript/module/src/modules/data-sync/utils/convert-ecg-samples-to-observation.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/convert-samples-to-observation.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/default-health-coding.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts +12 -46
- 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-samples-count.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/health-data-catalog.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/health-units.d.ts +2 -2
- package/lib/typescript/module/src/modules/data-sync/utils/health-units.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-daily-statistics.d.ts +10 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-daily-statistics.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-data-types.d.ts +5 -5
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-data-types.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-query-options.d.ts +7 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-query-options.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-sample-source.d.ts +8 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-sample-source.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-samples.d.ts +30 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-samples.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-series.d.ts +2 -2
- 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/to-core-health-observations.d.ts +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/to-core-health-observations.d.ts.map +1 -1
- package/package.json +8 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-lepu-sequencer.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/custom/custom-lepu-sequencer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"custom-lepu-sequencer.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/custom/custom-lepu-sequencer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAGxD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAM9D,UAAU,cAAc;IACtB,YAAY,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;IAC7C,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAED;;;;;;GAMG;AACH,QAAA,MAAM,kBAAkB,GACtB,YAAY,UAAU,EACtB,MAAM,cAAc,KACnB,IAOF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,mBAAmB,GACvB,MAAM,cAAc,EACpB,QAAQ,cAAc,EACtB,YAAY,gBAAgB,EAC5B,mBAAmB,MAAM,KACxB,gBA6BF,CAAC;AAEF,QAAA,MAAM,UAAU,GACd,MAAM,cAAc,EACpB,mBAAmB,MAAM,KACxB,cAuBF,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC"}
|
package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export declare class CustomDevice extends BTManagedDevice<CustomDeviceId> {
|
|
|
28
28
|
private readonly validators;
|
|
29
29
|
private readonly sessionPolicy;
|
|
30
30
|
private readonly sessionAggregates;
|
|
31
|
+
private readonly lepuSession;
|
|
31
32
|
private sessionStartedAt;
|
|
32
33
|
constructor(device: Device, params: CreateDeviceParams<CustomDeviceId>, definition: CustomDeviceDefinition);
|
|
33
34
|
/** Gives a declaration that computes its commands at connect time the context it needs to do so. */
|
|
@@ -42,6 +43,8 @@ export declare class CustomDevice extends BTManagedDevice<CustomDeviceId> {
|
|
|
42
43
|
* gate would poll hardware it had not identified, which is the case the gate exists for.
|
|
43
44
|
*/
|
|
44
45
|
private declareLepuProtocol;
|
|
46
|
+
/** The standard family runs the vendor's encryption handshake first when it advertises one. */
|
|
47
|
+
private withEncryption;
|
|
45
48
|
private reportViatomEcgFile;
|
|
46
49
|
private reportViatomBp2File;
|
|
47
50
|
private reportViatomBp3File;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom.device.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/custom/custom.device.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"custom.device.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/custom/custom.device.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAI9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EACL,sBAAsB,EAEvB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAGjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAC9F,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAElF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAEpF,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAQvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAuBvD,KAAK,mBAAmB,GAAG,yBAAyB,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;AACvE,KAAK,YAAY,GAAG,uBAAuB,CAAC,mBAAmB,CAAC,CAAC;AAQjE;;;;;;;;GAQG;AACH,qBAAa,YAAa,SAAQ,eAAe,CAAC,cAAc,CAAC;IAC/D,SAAS,CAAC,YAAY,EAAE,QAAQ,EAAE,CAAC;IACnC,SAAS,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAEnC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAyB;IACpD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAiC;IAC9D,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAsB;IACzD,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkD;IAC7E,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAkC;IAChE,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAuC;IACzE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAqB;IACjD,OAAO,CAAC,gBAAgB,CAAmB;gBAGzC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,kBAAkB,CAAC,cAAc,CAAC,EAC1C,UAAU,EAAE,sBAAsB;IA4CpC,oGAAoG;IACpG,OAAO,CAAC,uBAAuB;IAiB/B,uFAAuF;IACvF,OAAO,CAAC,kBAAkB;IAkB1B;;;;;;OAMG;IACH,OAAO,CAAC,mBAAmB;IAwF3B,+FAA+F;IAC/F,OAAO,CAAC,cAAc,CAeN;IAEhB,OAAO,CAAC,mBAAmB,CAqBzB;IAEF,OAAO,CAAC,mBAAmB,CAMzB;IAEF,OAAO,CAAC,mBAAmB,CAMzB;IAEF,iFAAiF;IACjF,OAAO,CAAC,iBAAiB,CAUvB;IAEF,OAAO,CAAC,YAAY,CACwB;IAE5C,OAAO,CAAC,iBAAiB,CAMvB;IAEF,SAAS,CAAC,eAAe,GAAI,KAAK,MAAM,EAAE,EAAE,MAAM,MAAM,KAAG,OAAO,CAQhE;IAEF;;;;OAIG;IACH,SAAS,CAAC,qBAAqB,GAC7B,MAAM,4BAA4B,CAAC,mBAAmB,CAAC,KACtD,4BAA4B,CAAC,mBAAmB,CAAC,CA2ClD;IAEF,4FAA4F;IAC5F,SAAS,CAAC,2BAA2B,GACnC,OAAO,4BAA4B,CAAC,mBAAmB,CAAC,KACvD,OAAO,CAAS;IAEnB;;;OAGG;IACH,SAAS,CAAC,mBAAmB,CAC3B,aAAa,EAAE,YAAY,EAC3B,eAAe,EAAE,MAAM,EAAE,GACxB,IAAI,GAAG,OAAO;IAMjB,OAAO,CAAC,WAAW;IAmBnB,+EAA+E;IAC/E,SAAS,CAAC,oBAAoB,IAAI,IAAI;IA2CtC,OAAO,CAAC,cAAc;IActB,kFAAkF;IAClF,OAAO,CAAC,oBAAoB;IA6C5B,mFAAmF;IACnF,SAAS,CAAC,eAAe,GACvB,SAAS,YAAY,EACrB,QAAQ,SAAS,MAAM,EAAE,EACzB,eAAe,MAAM,KACpB,YAAY,GAAG,IAAI,CAMpB;IAEF,OAAO,CAAC,IAAI;IAMZ;;;;;;;OAOG;IACH,OAAO,CAAC,WAAW;IA2BnB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,MAAM;IAmBd,OAAO,CAAC,OAAO;IAMf,OAAO,CAAC,iBAAiB;IAkBzB,OAAO,CAAC,iBAAiB;IAmBzB,OAAO,CAAC,oBAAoB;CAe7B"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
declare const manufacturerBytes: (manufacturerData?: string) => number[];
|
|
2
2
|
/** Returns true when the advertised byte says that only encrypted traffic is accepted. */
|
|
3
3
|
declare const advertisementRequiresEncryption: (manufacturerData: string | undefined, byteIndexes?: readonly number[]) => boolean;
|
|
4
|
+
/**
|
|
5
|
+
* True when the advertisement offers or requires the encryption handshake.
|
|
6
|
+
*
|
|
7
|
+
* Byte 4 describes the second service and wins when it names a protocol; otherwise byte 3
|
|
8
|
+
* does. A level of 1 (optional) or 2 (required) is a handshake for the vendor's own client.
|
|
9
|
+
*/
|
|
10
|
+
declare const advertisesLepuEncryption: (manufacturerData?: string) => boolean;
|
|
4
11
|
/** The vendor uses the low nibble of byte 3 or 4 to select the OxyII service. */
|
|
5
12
|
declare const viatomOxygenUsesV2: (manufacturerData?: string) => boolean;
|
|
6
|
-
export { advertisementRequiresEncryption, manufacturerBytes, viatomOxygenUsesV2, };
|
|
13
|
+
export { advertisementRequiresEncryption, advertisesLepuEncryption, manufacturerBytes, viatomOxygenUsesV2, };
|
|
7
14
|
//# sourceMappingURL=lepu.advertisement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lepu.advertisement.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.advertisement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lepu.advertisement.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.advertisement.ts"],"names":[],"mappings":"AAYA,QAAA,MAAM,iBAAiB,GAAI,mBAAmB,MAAM,KAAG,MAAM,EAU5D,CAAC;AAOF,0FAA0F;AAC1F,QAAA,MAAM,+BAA+B,GACnC,kBAAkB,MAAM,GAAG,SAAS,EACpC,cAAa,SAAS,MAAM,EAAO,KAClC,OAKA,CAAC;AAEJ;;;;;GAKG;AACH,QAAA,MAAM,wBAAwB,GAAI,mBAAmB,MAAM,KAAG,OAQ7D,CAAC;AAEF,iFAAiF;AACjF,QAAA,MAAM,kBAAkB,GAAI,mBAAmB,MAAM,KAAG,OAIrD,CAAC;AAEJ,OAAO,EACL,+BAA+B,EAC/B,wBAAwB,EACxB,iBAAiB,EACjB,kBAAkB,GACnB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CommandSequencer } from "../../../types/command-sequencer";
|
|
2
|
+
import { DeviceCommand } from "../../../types/device-command";
|
|
3
|
+
import { LepuSession } from "./lepu.session";
|
|
4
|
+
type SyncCommandSequencer = Omit<CommandSequencer, "initialCommands"> & {
|
|
5
|
+
initialCommands(): readonly DeviceCommand[];
|
|
6
|
+
};
|
|
7
|
+
interface LepuEncryptionParams {
|
|
8
|
+
write: Omit<DeviceCommand, "frame">;
|
|
9
|
+
session: LepuSession;
|
|
10
|
+
manufacturerData?: string;
|
|
11
|
+
startByte?: string;
|
|
12
|
+
onRefused: (reason: string) => void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The sequencer for one connection: wrapped in the handshake when the advertisement asks
|
|
16
|
+
* for encryption, unchanged otherwise. Either way the session starts without a key.
|
|
17
|
+
*/
|
|
18
|
+
declare const withLepuEncryption: (inner: SyncCommandSequencer, params: LepuEncryptionParams) => CommandSequencer;
|
|
19
|
+
export { withLepuEncryption };
|
|
20
|
+
//# sourceMappingURL=lepu.encryption-handshake.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lepu.encryption-handshake.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAEjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAa9D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAI7C,KAAK,oBAAoB,GAAG,IAAI,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,GAAG;IACtE,eAAe,IAAI,SAAS,aAAa,EAAE,CAAC;CAC7C,CAAC;AAEF,UAAU,oBAAoB;IAC5B,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IACpC,OAAO,EAAE,WAAW,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AA4HD;;;GAGG;AACH,QAAA,MAAM,kBAAkB,GACtB,OAAO,oBAAoB,EAC3B,QAAQ,oBAAoB,KAC3B,gBAMF,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FrameReadResult } from "../../../types/frame-read-result";
|
|
2
2
|
import { FrameReader } from "../../../types/frame-reader";
|
|
3
|
+
import { LepuSession } from "./lepu.session";
|
|
3
4
|
/**
|
|
4
5
|
* Reads the frame every Lepu device shares.
|
|
5
6
|
*
|
|
@@ -14,7 +15,8 @@ import { FrameReader } from "../../../types/frame-reader";
|
|
|
14
15
|
*/
|
|
15
16
|
export declare class LepuFrameReader implements FrameReader {
|
|
16
17
|
private readonly startBytes;
|
|
17
|
-
|
|
18
|
+
private readonly session?;
|
|
19
|
+
constructor(startBytes: readonly string[], session?: LepuSession | undefined);
|
|
18
20
|
readFrame(buffer: readonly string[]): FrameReadResult;
|
|
19
21
|
private isFrameStart;
|
|
20
22
|
private findFrameStart;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lepu.frame-reader.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.frame-reader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"lepu.frame-reader.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.frame-reader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAM1D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAY7C;;;;;;;;;;;GAWG;AACH,qBAAa,eAAgB,YAAW,WAAW;IAE/C,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;gBADR,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,OAAO,CAAC,EAAE,WAAW,YAAA;IAGjC,SAAS,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,eAAe;IA2B5D,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,cAAc;IAYtB;;;OAGG;IACH,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,gBAAgB;CAMzB"}
|
package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.session.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One connection's AES key, from the moment the device hands it over in the handshake.
|
|
3
|
+
*
|
|
4
|
+
* Requests leave encrypted and replies reach every parser in plain text. Without a key, and
|
|
5
|
+
* for an empty payload, frames pass through unchanged, as the vendor's own client does.
|
|
6
|
+
*/
|
|
7
|
+
declare class LepuSession {
|
|
8
|
+
private key;
|
|
9
|
+
begin: (key: readonly number[]) => void;
|
|
10
|
+
end: () => void;
|
|
11
|
+
encryptFrame: (frame: readonly string[]) => string[];
|
|
12
|
+
/** The frame in plain text, or `undefined` when its payload does not decrypt. */
|
|
13
|
+
decryptFrame: (frame: readonly string[]) => string[] | undefined;
|
|
14
|
+
private withPayload;
|
|
15
|
+
}
|
|
16
|
+
export { LepuSession };
|
|
17
|
+
//# sourceMappingURL=lepu.session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lepu.session.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.session.ts"],"names":[],"mappings":"AAcA;;;;;GAKG;AACH,cAAM,WAAW;IACf,OAAO,CAAC,GAAG,CAAgC;IAEpC,KAAK,GAAI,KAAK,SAAS,MAAM,EAAE,KAAG,IAAI,CAE3C;IAEK,GAAG,QAAO,IAAI,CAEnB;IAEK,YAAY,GAAI,OAAO,SAAS,MAAM,EAAE,KAAG,MAAM,EAAE,CACE;IAE5D,iFAAiF;IAC1E,YAAY,GAAI,OAAO,SAAS,MAAM,EAAE,KAAG,MAAM,EAAE,GAAG,SAAS,CACxB;IAE9C,OAAO,CAAC,WAAW,CAajB;CACH;AAiBD,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viatom.bp-monitors.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.bp-monitors.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EAEvB,MAAM,yCAAyC,CAAC;AAgEjD,UAAU,cAAc;IACtB,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;AAED;;;;;;GAMG;AACH,QAAA,MAAM,eAAe,GACnB,gBAAgB,MAAM,EACtB,QAAQ,cAAc,KACrB,
|
|
1
|
+
{"version":3,"file":"viatom.bp-monitors.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.bp-monitors.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EAEvB,MAAM,yCAAyC,CAAC;AAgEjD,UAAU,cAAc;IACtB,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;AAED;;;;;;GAMG;AACH,QAAA,MAAM,eAAe,GACnB,gBAAgB,MAAM,EACtB,QAAQ,cAAc,KACrB,sBAiCF,CAAC;AAEF,gDAAgD;AAChD,QAAA,MAAM,WAAW,GAAI,QAAQ,cAAc,KAAG,sBACb,CAAC;AAElC,kFAAkF;AAClF,QAAA,MAAM,WAAW,GAAI,QAAQ,cAAc,KAAG,sBACb,CAAC;AAElC,kFAAkF;AAClF,QAAA,MAAM,WAAW,GAAI,QAAQ,cAAc,KAAG,sBACb,CAAC;AAElC,mFAAmF;AACnF,QAAA,MAAM,WAAW,GAAI,QAAQ,cAAc,KAAG,sBACb,CAAC;AAElC,gEAAgE;AAChE,QAAA,MAAM,aAAa,GAAI,QAAQ,cAAc,KAAG,sBACZ,CAAC;AAQrC,gGAAgG;AAChG,QAAA,MAAM,YAAY,GAChB,gBAAgB,MAAM,EACtB,QAAQ,cAAc,KACrB,sBAoCA,CAAC;AAEJ;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,eAAe,EAAE,SAAS,MAAM,EAkBrC,CAAC;AAEF,2DAA2D;AAC3D,QAAA,MAAM,eAAe,EAAE,SAAS,MAAM,EAQrC,CAAC;AAEF,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,eAAe,EACf,aAAa,EACb,eAAe,EACf,YAAY,EACZ,eAAe,GAChB,CAAC"}
|
|
@@ -33,7 +33,10 @@ export interface CustomLepuSpec {
|
|
|
33
33
|
requestStartByte?: string;
|
|
34
34
|
/** Selects the OxyII service and framing when the advertisement says protocol V2. */
|
|
35
35
|
manufacturerDataProtocol?: "viatom-oxygen";
|
|
36
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* Manufacturer-data byte indexes whose high nibble of 2 means encryption is required, for
|
|
38
|
+
* protocols without the handshake; the standard protocol runs the handshake instead.
|
|
39
|
+
*/
|
|
37
40
|
rejectEncryptionAtBytes?: number[];
|
|
38
41
|
/** Where commands are written. The service must be one this declaration also monitors. */
|
|
39
42
|
write: {
|
|
@@ -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
|
|
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,2EAA2E;IAC3E,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B,8EAA8E;IAC9E,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-health-authorization-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-authorization-provider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apple-health-authorization-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-authorization-provider.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,qCAAqC,EAAE,MAAM,uDAAuD,CAAC;AAM9G,eAAO,MAAM,gCAAgC,sKAUxC,KAAK,CAAC,iBAAiB,CAAC,qCAAqC,CAAC,uBAqNlE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const getNotRequestedIdentifiers: <T>(identifiers: T[], getStatus: (identifier: T) => Promise<
|
|
1
|
+
import { AuthorizationRequestStatus } from "@kingstinct/react-native-healthkit";
|
|
2
|
+
declare const getNotRequestedIdentifiers: <T>(identifiers: T[], getStatus: (identifier: T) => Promise<AuthorizationRequestStatus>) => Promise<T[]>;
|
|
3
3
|
export { getNotRequestedIdentifiers };
|
|
4
4
|
//# sourceMappingURL=apple-health-authorization-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-health-authorization-utils.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-authorization-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"apple-health-authorization-utils.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-authorization-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAEhF,QAAA,MAAM,0BAA0B,GAAU,CAAC,EACzC,aAAa,CAAC,EAAE,EAChB,WAAW,CAAC,UAAU,EAAE,CAAC,KAAK,OAAO,CAAC,0BAA0B,CAAC,KAChE,OAAO,CAAC,CAAC,EAAE,CAWb,CAAC;AAEF,OAAO,EAAE,0BAA0B,EAAE,CAAC"}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* is not constant.
|
|
5
5
|
*/
|
|
6
6
|
declare const DEFAULT_HEALTH_SYNC_CHUNK_SIZE = 250;
|
|
7
|
+
/** Each ECG recording holds about 15,000 voltages, so a page of them stays small whatever the chunk size. */
|
|
8
|
+
declare const ECG_PAGE_SIZE = 10;
|
|
7
9
|
/** How far back the first import of a type reaches when no watermark exists yet. */
|
|
8
10
|
declare const DEFAULT_SYNC_LOOKBACK_DAYS = 30;
|
|
9
11
|
/**
|
|
@@ -16,5 +18,5 @@ declare const DAILY_REREAD_DAYS = 7;
|
|
|
16
18
|
declare const SERIES_SLOT_MS = 60000;
|
|
17
19
|
/** How many already-imported hours a `series` type reads again, for a watch that syncs a little late. */
|
|
18
20
|
declare const SERIES_REREAD_HOURS = 3;
|
|
19
|
-
export { DAILY_REREAD_DAYS, SERIES_REREAD_HOURS, SERIES_SLOT_MS, DEFAULT_HEALTH_SYNC_CHUNK_SIZE, DEFAULT_SYNC_LOOKBACK_DAYS, };
|
|
21
|
+
export { DAILY_REREAD_DAYS, ECG_PAGE_SIZE, SERIES_REREAD_HOURS, SERIES_SLOT_MS, DEFAULT_HEALTH_SYNC_CHUNK_SIZE, DEFAULT_SYNC_LOOKBACK_DAYS, };
|
|
20
22
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/data-sync/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,QAAA,MAAM,8BAA8B,MAAM,CAAC;AAE3C,oFAAoF;AACpF,QAAA,MAAM,0BAA0B,KAAK,CAAC;AAEtC;;;;GAIG;AACH,QAAA,MAAM,iBAAiB,IAAI,CAAC;AAE5B,gFAAgF;AAChF,QAAA,MAAM,cAAc,QAAS,CAAC;AAE9B,yGAAyG;AACzG,QAAA,MAAM,mBAAmB,IAAI,CAAC;AAE9B,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,8BAA8B,EAC9B,0BAA0B,GAC3B,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/data-sync/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,QAAA,MAAM,8BAA8B,MAAM,CAAC;AAE3C,6GAA6G;AAC7G,QAAA,MAAM,aAAa,KAAK,CAAC;AAEzB,oFAAoF;AACpF,QAAA,MAAM,0BAA0B,KAAK,CAAC;AAEtC;;;;GAIG;AACH,QAAA,MAAM,iBAAiB,IAAI,CAAC;AAE5B,gFAAgF;AAChF,QAAA,MAAM,cAAc,QAAS,CAAC;AAE9B,yGAAyG;AACzG,QAAA,MAAM,mBAAmB,IAAI,CAAC;AAE9B,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,8BAA8B,EAC9B,0BAA0B,GAC3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-listen-changes.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/hooks/use-listen-changes.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,gBAAgB,GAC3B,YAAY,oBAAoB,CAAC,YAAY,CAAC,EAC9C,UAAU,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,EACzD,qBAAqB,oBAAoB,CAAC,oBAAoB,CAAC,EAC/D,UAAU,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,
|
|
1
|
+
{"version":3,"file":"use-listen-changes.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/hooks/use-listen-changes.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,gBAAgB,GAC3B,YAAY,oBAAoB,CAAC,YAAY,CAAC,EAC9C,UAAU,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,EACzD,qBAAqB,oBAAoB,CAAC,oBAAoB,CAAC,EAC/D,UAAU,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,SAiGjC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SampleTypeIdentifierWriteable } from "@kingstinct/react-native-healthkit";
|
|
2
2
|
import { AppleHealthDataTypeIdentifier, AppleHealthSyncProps } from "./apple-health-sync-props";
|
|
3
3
|
import { HealthAuthorizationProviderProps } from "./health-authorization-provider-props";
|
|
4
4
|
import { AppleHealthAuthorizationStatus } from "./health-authorization-status";
|
|
5
5
|
export type AppleHealthAuthorizationProviderProps = HealthAuthorizationProviderProps<AppleHealthDataTypeIdentifier> & {
|
|
6
6
|
/** HealthKit types the app may write; sleep apnea events are read-only. */
|
|
7
|
-
writeIdentifiers?:
|
|
7
|
+
writeIdentifiers?: SampleTypeIdentifierWriteable[];
|
|
8
8
|
/** Maps HealthKit identifiers back to the app's configured measurement types. */
|
|
9
9
|
dataToSync?: AppleHealthSyncProps["dataToSync"];
|
|
10
10
|
/** Receives the authorization state and any HealthKit types still unanswered. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-health-authorization-provider-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/apple-health-authorization-provider-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"apple-health-authorization-provider-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/apple-health-authorization-provider-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAExF,OAAO,EACL,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAE/E,MAAM,MAAM,qCAAqC,GAC/C,gCAAgC,CAAC,6BAA6B,CAAC,GAAG;IAEhE,2EAA2E;IAC3E,gBAAgB,CAAC,EAAE,6BAA6B,EAAE,CAAC;IAEnD,iFAAiF;IACjF,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAEhD,iFAAiF;IACjF,2BAA2B,CAAC,EAAE,CAC5B,MAAM,EAAE,8BAA8B,KACnC,IAAI,CAAC;CACX,CAAC"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SampleTypeIdentifier, UpdateFrequency } from "@kingstinct/react-native-healthkit";
|
|
2
2
|
import { HealthSyncProps } from "./health-sync-props";
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
* arbitrary category identifiers at runtime, even before its enum adds them.
|
|
6
|
-
*/
|
|
7
|
-
type AppleHealthDataTypeIdentifier = HKSampleTypeIdentifier | "HKCategoryTypeIdentifierSleepApneaEvent";
|
|
3
|
+
/** HealthKit sample type identifiers supported by the SDK. */
|
|
4
|
+
type AppleHealthDataTypeIdentifier = SampleTypeIdentifier;
|
|
8
5
|
/** Props of `AppleHealthSync`. */
|
|
9
6
|
type AppleHealthSyncProps = HealthSyncProps<AppleHealthDataTypeIdentifier> & {
|
|
10
7
|
/** Enables HealthKit observer delivery while the app is in the background. */
|
|
11
8
|
backgroundDelivery?: {
|
|
12
9
|
/** How often HealthKit delivers updates in the background. */
|
|
13
|
-
frequency?:
|
|
10
|
+
frequency?: UpdateFrequency;
|
|
14
11
|
};
|
|
15
12
|
};
|
|
16
13
|
export { AppleHealthDataTypeIdentifier, AppleHealthSyncProps };
|
package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-sync-props.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-health-sync-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/apple-health-sync-props.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"apple-health-sync-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/apple-health-sync-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,eAAe,EAChB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,8DAA8D;AAC9D,KAAK,6BAA6B,GAAG,oBAAoB,CAAC;AAE1D,kCAAkC;AAClC,KAAK,oBAAoB,GAAG,eAAe,CAAC,6BAA6B,CAAC,GAAG;IAE3E,8EAA8E;IAC9E,kBAAkB,CAAC,EAAE;QAEnB,8DAA8D;QAC9D,SAAS,CAAC,EAAE,eAAe,CAAC;KAC7B,CAAC;CACH,CAAC;AAEF,OAAO,EAAE,6BAA6B,EAAE,oBAAoB,EAAE,CAAC"}
|
package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SampleTypeIdentifierWriteable } from "@kingstinct/react-native-healthkit";
|
|
2
2
|
import { AppleHealthDataTypeIdentifier } from "./apple-health-sync-props";
|
|
3
3
|
import { HealthSyncKey } from "./health-sync-keys";
|
|
4
4
|
/** Apple Health authorization state. */
|
|
@@ -8,7 +8,7 @@ type AppleHealthAuthorizationStatus = {
|
|
|
8
8
|
/** HealthKit types that still need to be answered in Settings. */
|
|
9
9
|
notRequestedReadIdentifiers: AppleHealthDataTypeIdentifier[];
|
|
10
10
|
/** HealthKit write types that still need to be answered in Settings. */
|
|
11
|
-
notRequestedWriteIdentifiers:
|
|
11
|
+
notRequestedWriteIdentifiers: SampleTypeIdentifierWriteable[];
|
|
12
12
|
/** Configured measurement types with at least one unanswered read identifier. */
|
|
13
13
|
notRequestedMeasurementTypes: HealthSyncKey[];
|
|
14
14
|
/** Error of the last authorization attempt. */
|
package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health-authorization-status.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/health-authorization-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"health-authorization-status.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/health-authorization-status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAExF,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,wCAAwC;AACxC,KAAK,8BAA8B,GAAG;IAEpC,mCAAmC;IACnC,KAAK,EAAE,SAAS,GAAG,eAAe,GAAG,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC;IAEtE,kEAAkE;IAClE,2BAA2B,EAAE,6BAA6B,EAAE,CAAC;IAE7D,wEAAwE;IACxE,4BAA4B,EAAE,6BAA6B,EAAE,CAAC;IAE9D,iFAAiF;IACjF,4BAA4B,EAAE,aAAa,EAAE,CAAC;IAE9C,+CAA+C;IAC/C,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,0CAA0C;AAC1C,KAAK,uCAAuC,GAAG;IAE7C,mCAAmC;IACnC,KAAK,EACD,SAAS,GACT,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,OAAO,CAAC;IAEZ,+CAA+C;IAC/C,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd,kDAAkD;IAClD,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAEjC,sFAAsF;IACtF,gBAAgB,CAAC,EAAE,YAAY,GAAG,eAAe,GAAG,SAAS,GAAG,aAAa,CAAC;CAC/E,CAAC;AAEF,YAAY,EACV,uCAAuC,EACvC,8BAA8B,GAC/B,CAAC"}
|
package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-ecg-samples-to-observation.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Observation } from "@medplum/fhirtypes";
|
|
2
|
+
import { ConvertDataProps } from "../types/convert-data-props";
|
|
3
|
+
/** Core's own ECG service cannot convert a sample, so the recording is built into a measurement here. */
|
|
4
|
+
declare const convertEcgSamplesToObservation: (props: ConvertDataProps<unknown>) => Promise<Observation[]>;
|
|
5
|
+
export { convertEcgSamplesToObservation };
|
|
6
|
+
//# sourceMappingURL=convert-ecg-samples-to-observation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convert-ecg-samples-to-observation.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/convert-ecg-samples-to-observation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAqC/D,yGAAyG;AACzG,QAAA,MAAM,8BAA8B,GAClC,OAAO,gBAAgB,CAAC,OAAO,CAAC,KAC/B,OAAO,CAAC,WAAW,EAAE,CAsBvB,CAAC;AAEF,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
|
package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-samples-to-observation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert-samples-to-observation.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/convert-samples-to-observation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"convert-samples-to-observation.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/convert-samples-to-observation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAMjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAc/D,eAAO,MAAM,2BAA2B,GACtC,OAAO,gBAAgB,CAAC,OAAO,CAAC,KAC/B,OAAO,CAAC,WAAW,EAAE,CA0CvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-health-coding.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/default-health-coding.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAkB,aAAa,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"default-health-coding.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/default-health-coding.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAkB,aAAa,EAAE,MAAM,2BAA2B,CAAC;AA2C1F,4HAA4H;AAC5H,QAAA,MAAM,sBAAsB,GAC1B,UAAU,cAAc,EACxB,KAAK,aAAa,EAClB,YAAY,MAAM,EAClB,MAAM,cAAc,KACnB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAWlD,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -1,75 +1,41 @@
|
|
|
1
|
-
import { HKCorrelationTypeIdentifier, HKCategoryTypeIdentifier, HKQuantityTypeIdentifier, UnitOfEnergy } from "@kingstinct/react-native-healthkit";
|
|
2
1
|
import { AppleHealthDataTypeIdentifier } from "../types/apple-health-sync-props";
|
|
3
2
|
import { GetDataFromProviderProps } from "../types/get-data-from-provider-props";
|
|
4
|
-
import { AggregatedHealthData } from "../types/health-data";
|
|
5
3
|
declare const getSamplesFromHealth: ({ startDate: _startDate, typeIdentifier, anchor, chunkSize, mode, }: GetDataFromProviderProps<AppleHealthDataTypeIdentifier>) => Promise<{
|
|
6
|
-
data: import("../types/health-data").
|
|
4
|
+
data: import("../types/health-data").AggregatedHealthData[];
|
|
7
5
|
anchor: undefined;
|
|
8
6
|
} | {
|
|
9
|
-
data:
|
|
7
|
+
data: import("../types/health-data").SeriesHealthData[];
|
|
10
8
|
anchor: undefined;
|
|
11
9
|
} | {
|
|
12
10
|
anchor: {
|
|
13
|
-
typeIdentifier:
|
|
14
|
-
anchor: string;
|
|
15
|
-
} | undefined;
|
|
16
|
-
deletedRecordIds: string[];
|
|
17
|
-
data: import("@kingstinct/react-native-healthkit").HKWorkout<UnitOfEnergy.Kilocalories, "km">[];
|
|
18
|
-
} | {
|
|
19
|
-
anchor: {
|
|
20
|
-
typeIdentifier: AppleHealthDataTypeIdentifier;
|
|
21
|
-
anchor: string;
|
|
22
|
-
} | undefined;
|
|
23
|
-
deletedRecordIds?: undefined;
|
|
24
|
-
data: import("@kingstinct/react-native-healthkit").HKWorkout<UnitOfEnergy.Kilocalories, "km">[];
|
|
25
|
-
} | {
|
|
26
|
-
anchor: {
|
|
27
|
-
typeIdentifier: AppleHealthDataTypeIdentifier;
|
|
28
|
-
anchor: string;
|
|
29
|
-
} | undefined;
|
|
30
|
-
deletedRecordIds: string[];
|
|
31
|
-
data: import("@kingstinct/react-native-healthkit").HKHeartbeatSeriesSample[];
|
|
32
|
-
} | {
|
|
33
|
-
anchor: {
|
|
34
|
-
typeIdentifier: AppleHealthDataTypeIdentifier;
|
|
35
|
-
anchor: string;
|
|
36
|
-
} | undefined;
|
|
37
|
-
deletedRecordIds?: undefined;
|
|
38
|
-
data: import("@kingstinct/react-native-healthkit").HKHeartbeatSeriesSample[];
|
|
39
|
-
} | {
|
|
40
|
-
anchor: {
|
|
41
|
-
typeIdentifier: AppleHealthDataTypeIdentifier;
|
|
11
|
+
typeIdentifier: import("@kingstinct/react-native-healthkit").SampleTypeIdentifier;
|
|
42
12
|
anchor: string;
|
|
43
13
|
} | undefined;
|
|
44
14
|
deletedRecordIds: string[];
|
|
45
|
-
data:
|
|
15
|
+
data: unknown[];
|
|
46
16
|
} | {
|
|
47
17
|
anchor: {
|
|
48
|
-
typeIdentifier:
|
|
18
|
+
typeIdentifier: import("@kingstinct/react-native-healthkit").SampleTypeIdentifier;
|
|
49
19
|
anchor: string;
|
|
50
20
|
} | undefined;
|
|
51
21
|
deletedRecordIds?: undefined;
|
|
52
|
-
data:
|
|
22
|
+
data: unknown[];
|
|
53
23
|
} | {
|
|
24
|
+
hasMore: boolean;
|
|
54
25
|
anchor: {
|
|
55
|
-
typeIdentifier:
|
|
26
|
+
typeIdentifier: import("@kingstinct/react-native-healthkit").SampleTypeIdentifier;
|
|
56
27
|
anchor: string;
|
|
57
28
|
} | undefined;
|
|
58
29
|
deletedRecordIds: string[];
|
|
59
|
-
data:
|
|
30
|
+
data: unknown[];
|
|
60
31
|
} | {
|
|
32
|
+
hasMore: boolean;
|
|
61
33
|
anchor: {
|
|
62
|
-
typeIdentifier:
|
|
34
|
+
typeIdentifier: import("@kingstinct/react-native-healthkit").SampleTypeIdentifier;
|
|
63
35
|
anchor: string;
|
|
64
36
|
} | undefined;
|
|
65
37
|
deletedRecordIds?: undefined;
|
|
66
|
-
data:
|
|
67
|
-
} | {
|
|
68
|
-
data: import("@kingstinct/react-native-healthkit").HKCorrelation<HKCorrelationTypeIdentifier>[];
|
|
69
|
-
anchor: undefined;
|
|
70
|
-
} | {
|
|
71
|
-
data: import("@kingstinct/react-native-healthkit").HKStateOfMindSampleRaw[];
|
|
72
|
-
anchor: undefined;
|
|
38
|
+
data: unknown[];
|
|
73
39
|
}>;
|
|
74
40
|
export { getSamplesFromHealth };
|
|
75
41
|
//# sourceMappingURL=get-samples-from-health.d.ts.map
|
package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-samples-from-health.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/get-samples-from-health.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-samples-from-health.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/get-samples-from-health.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AA2BjF,QAAA,MAAM,oBAAoB,GAAU,qEAMjC,wBAAwB,CAAC,6BAA6B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8GzD,CAAC;AAmBF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
package/lib/typescript/commonjs/src/modules/data-sync/utils/get-total-samples-count.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-total-samples-count.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/get-total-samples-count.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-total-samples-count.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/get-total-samples-count.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAOpE,eAAO,MAAM,oBAAoB,GAC/B,OAAO,kBAAkB,CAAC,6BAA6B,CAAC,KACvD,OAAO,CAAC,MAAM,CA8BhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health-data-catalog.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/health-data-catalog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAU/D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAiC3D,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,QAAQ,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,SAAS,cAAc,EAAE,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,cAAc,GAAG,gBAAgB,CAAC;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EACD,eAAe,GACf,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,gBAAgB,GAChB,UAAU,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,aAAa,GAAG,SAAS,GAAG,eAAe,CAAC;IAC1D,gBAAgB,EAAE,MAAM,CAAC;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;
|
|
1
|
+
{"version":3,"file":"health-data-catalog.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/health-data-catalog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAU/D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAiC3D,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,QAAQ,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,SAAS,cAAc,EAAE,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,cAAc,GAAG,gBAAgB,CAAC;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EACD,eAAe,GACf,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,gBAAgB,GAChB,UAAU,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,aAAa,GAAG,SAAS,GAAG,eAAe,CAAC;IAC1D,gBAAgB,EAAE,MAAM,CAAC;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAq1BF,sFAAsF;AACtF,QAAA,MAAM,mBAAmB,EAAE,SAAS,sBAAsB,EAYtD,CAAC;AAEL,yEAAyE;AACzE,QAAA,MAAM,mBAAmB,GACvB,UAAU,cAAc,EACxB,YAAY,MAAM,EAClB,MAAM,cAAc,KACnB;IAED,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IAEb,iCAAiC;IACjC,MAAM,EAAE,MAAM,CAAC;IAEf,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;CA2BlB,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const healthUnitFor: <T extends
|
|
1
|
+
import type { QuantityTypeIdentifier, UnitForIdentifier } from "@kingstinct/react-native-healthkit";
|
|
2
|
+
export declare const healthUnitFor: <T extends QuantityTypeIdentifier>(typeIdentifier: T) => UnitForIdentifier<T> | undefined;
|
|
3
3
|
//# sourceMappingURL=health-units.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health-units.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/health-units.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"health-units.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/health-units.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,oCAAoC,CAAC;AA6B5C,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,sBAAsB,EAC5D,gBAAgB,CAAC,KAChB,iBAAiB,CAAC,CAAC,CAAC,GAAG,SACwC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { QuantityTypeIdentifier } from "@kingstinct/react-native-healthkit";
|
|
2
|
+
import { AggregatedHealthData } from "../types/health-data";
|
|
3
|
+
import { HealthDataMode } from "../types/health-sync-keys";
|
|
4
|
+
/** The finished days from `startDate`, one item a day, from HealthKit's own total or average. */
|
|
5
|
+
declare const getDailyStatistics: (typeIdentifier: QuantityTypeIdentifier, mode: Extract<HealthDataMode, "daily-total" | "daily-summary">, startDate: Date, endDate: Date) => Promise<{
|
|
6
|
+
data: AggregatedHealthData[];
|
|
7
|
+
anchor: undefined;
|
|
8
|
+
}>;
|
|
9
|
+
export { getDailyStatistics };
|
|
10
|
+
//# sourceMappingURL=healthkit-daily-statistics.d.ts.map
|
package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-daily-statistics.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"healthkit-daily-statistics.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/healthkit-daily-statistics.ts"],"names":[],"mappings":"AAAA,OAAkB,EAChB,sBAAsB,EAEvB,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAY3D,iGAAiG;AACjG,QAAA,MAAM,kBAAkB,GACtB,gBAAgB,sBAAsB,EACtC,MAAM,OAAO,CAAC,cAAc,EAAE,aAAa,GAAG,eAAe,CAAC,EAC9D,WAAW,IAAI,EACf,SAAS,IAAI,KACZ,OAAO,CAAC;IAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;IAAC,MAAM,EAAE,SAAS,CAAA;CAAE,CAoD7D,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CategoryTypeIdentifier, CorrelationTypeIdentifier, QuantityTypeIdentifier } from "@kingstinct/react-native-healthkit";
|
|
2
2
|
import { AppleHealthDataTypeIdentifier } from "../types/apple-health-sync-props";
|
|
3
|
-
declare const isCategoryIdentifier: (typeIdentifier: AppleHealthDataTypeIdentifier) => typeIdentifier is
|
|
4
|
-
declare const isQuantityIdentifier: (typeIdentifier: AppleHealthDataTypeIdentifier) => typeIdentifier is
|
|
5
|
-
declare const isCorrelationIdentifier: (typeIdentifier: AppleHealthDataTypeIdentifier) => typeIdentifier is
|
|
6
|
-
declare const unsupportedHealthKitTypeReason: (typeIdentifier:
|
|
3
|
+
declare const isCategoryIdentifier: (typeIdentifier: AppleHealthDataTypeIdentifier) => typeIdentifier is CategoryTypeIdentifier;
|
|
4
|
+
declare const isQuantityIdentifier: (typeIdentifier: AppleHealthDataTypeIdentifier) => typeIdentifier is QuantityTypeIdentifier;
|
|
5
|
+
declare const isCorrelationIdentifier: (typeIdentifier: AppleHealthDataTypeIdentifier) => typeIdentifier is CorrelationTypeIdentifier;
|
|
6
|
+
declare const unsupportedHealthKitTypeReason: (typeIdentifier: string) => string;
|
|
7
7
|
declare class UnsupportedHealthKitDataError extends Error {
|
|
8
8
|
readonly typeIdentifier: string;
|
|
9
9
|
constructor(typeIdentifier: string, reason: string);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"healthkit-data-types.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/healthkit-data-types.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"healthkit-data-types.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/healthkit-data-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAEjF,QAAA,MAAM,oBAAoB,GACxB,gBAAgB,6BAA6B,KAC5C,cAAc,IAAI,sBAEkC,CAAC;AAExD,QAAA,MAAM,oBAAoB,GACxB,gBAAgB,6BAA6B,KAC5C,cAAc,IAAI,sBAEkC,CAAC;AAExD,QAAA,MAAM,uBAAuB,GAC3B,gBAAgB,6BAA6B,KAC5C,cAAc,IAAI,yBAEqC,CAAC;AAE3D,QAAA,MAAM,8BAA8B,GAAI,gBAAgB,MAAM,KAAG,MAWhE,CAAC;AAEF,cAAM,6BAA8B,SAAQ,KAAK;IAE7C,QAAQ,CAAC,cAAc,EAAE,MAAM;gBAAtB,cAAc,EAAE,MAAM,EAC/B,MAAM,EAAE,MAAM;CAKjB;AAED,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,6BAA6B,EAC7B,8BAA8B,GAC/B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FilterForSamples } from "@kingstinct/react-native-healthkit";
|
|
2
|
+
/** HealthKit takes any limit that is not positive as "no limit". */
|
|
3
|
+
declare const ALL_SAMPLES = 0;
|
|
4
|
+
/** Only samples that start and end inside the window; HealthKit also returns the ones that overlap it by default. */
|
|
5
|
+
declare const strictDateWindow: (startDate: Date | undefined, endDate: Date) => FilterForSamples;
|
|
6
|
+
export { ALL_SAMPLES, strictDateWindow };
|
|
7
|
+
//# sourceMappingURL=healthkit-query-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"healthkit-query-options.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/healthkit-query-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAE3E,oEAAoE;AACpE,QAAA,MAAM,WAAW,IAAI,CAAC;AAEtB,qHAAqH;AACrH,QAAA,MAAM,gBAAgB,GACpB,WAAW,IAAI,GAAG,SAAS,EAC3B,SAAS,IAAI,KACZ,gBAED,CAAC;AAEH,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { QuantitySample } from "@kingstinct/react-native-healthkit";
|
|
2
|
+
import { ObservationSource } from "./to-core-health-observations";
|
|
3
|
+
type HealthKitSampleSource = Pick<QuantitySample, "device" | "sourceRevision" | "startDate" | "endDate">;
|
|
4
|
+
/** The device a HealthKit sample came from, and the interval it was recorded over. */
|
|
5
|
+
declare const getHealthKitSampleSource: (sample: HealthKitSampleSource | undefined) => ObservationSource;
|
|
6
|
+
export { getHealthKitSampleSource };
|
|
7
|
+
export type { HealthKitSampleSource };
|
|
8
|
+
//# sourceMappingURL=healthkit-sample-source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"healthkit-sample-source.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/healthkit-sample-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAGzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,KAAK,qBAAqB,GAAG,IAAI,CAC/B,cAAc,EACd,QAAQ,GAAG,gBAAgB,GAAG,WAAW,GAAG,SAAS,CACtD,CAAC;AAEF,sFAAsF;AACtF,QAAA,MAAM,wBAAwB,GAC5B,QAAQ,qBAAqB,GAAG,SAAS,KACxC,iBASD,CAAC;AAEH,OAAO,EAAE,wBAAwB,EAAE,CAAC;AACpC,YAAY,EAAE,qBAAqB,EAAE,CAAC"}
|