@d4l/collect-lib 1.3.0 → 1.3.1
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/README.md +7 -17
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,22 +8,10 @@ Build the app using `yarn build` or start development mode using `yarn start`
|
|
|
8
8
|
|
|
9
9
|
### Phoenix
|
|
10
10
|
|
|
11
|
-
For pure coding `yarn link ../collect-lib` works fine.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
yarn add ../collect-lib
|
|
16
|
-
code ./node_modules/@d4l/collect-lib
|
|
17
|
-
cd node_modules/@d4l/collect-lib
|
|
18
|
-
yarn
|
|
19
|
-
yarn start
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
React-Native does not work with `yarn link`, because of some symlink issues down the line in metro/expo/whatever.
|
|
23
|
-
To workaround we can install the dependency from local with `yarn add ../collect-lib`.
|
|
24
|
-
This will install the library from the local source as a full copy, allowing each `yarn` call to get the recent build.
|
|
25
|
-
From there we can cheat the system by opening the `collect-lib` from inside the `node_modules` of `phoenix` to then working in there.
|
|
26
|
-
Then run `yarn start` to watch changes in the lib and build each time, which should then be picked up by the running UA.
|
|
11
|
+
For pure coding `yarn link ../collect-lib` works fine, but execution will not work because of symlink issues.
|
|
12
|
+
Here we use the help of [yalc](https://github.com/wclr/yalc) (`npm -g install yalc`).
|
|
13
|
+
First run `yalc publish` in `collect-lib`, then `yalc link @d4l/collect-lib` in `phoenix`.
|
|
14
|
+
Then you can update the lib and then get it into the app with `yarn build && yalc push`
|
|
27
15
|
|
|
28
16
|
### Research Studio
|
|
29
17
|
|
|
@@ -31,7 +19,9 @@ Then run `yarn start` to watch changes in the lib and build each time, which sho
|
|
|
31
19
|
npm link ../collect-lib
|
|
32
20
|
```
|
|
33
21
|
|
|
34
|
-
This
|
|
22
|
+
This works for types and coding, even though it sometimes needs a reload.
|
|
23
|
+
For execution stencil does not seem to pick up the new code, so that needs a restart every time.
|
|
24
|
+
(`yalc` doesnt improve the behaviour either.)
|
|
35
25
|
|
|
36
26
|
## Types
|
|
37
27
|
|
package/dist/index.d.mts
CHANGED
|
@@ -363,7 +363,7 @@ type DEVICE_KEY_API = 'FITBIT' | 'DEXCOM' | 'dexcom_g4' | 'dexcom_g5' | 'dexcom_
|
|
|
363
363
|
type DEVICE_KEY_SDK = 'AppleHealth';
|
|
364
364
|
type DEVICE_KEY_INTERNAL = 'INTERNAL' | 'internal_accelerometer' | 'internal_gyroscope' | 'internal_magnetometer' | 'internal_beacon_sensing';
|
|
365
365
|
type DEVICE_MOVELLA_PAYLOAD_MODES = 'completeEuler' | 'customMode1' | 'rateQuantities';
|
|
366
|
-
type DEVICE_SIGNAL_TYPE = 'heartRate' | 'imu' | 'beacon' | 'beaconUWB' | 'beaconRemoteUWB' | 'rssiScan' | 'physicalActivityMonitoring' | 'customPassiveMonitoring' | 'activeSamsungSDKMonitoring' | 'passiveSamsungSDKMonitoring' | 'accelerometer' | 'gyroscope' | 'magnetometer' | 'egvs' | '
|
|
366
|
+
type DEVICE_SIGNAL_TYPE = 'heartRate' | 'imu' | 'beacon' | 'beaconUWB' | 'beaconRemoteUWB' | 'rssiScan' | 'physicalActivityMonitoring' | 'customPassiveMonitoring' | 'activeSamsungSDKMonitoring' | 'passiveSamsungSDKMonitoring' | 'accelerometer' | 'gyroscope' | 'magnetometer' | 'egvs' | 'hrv' | 'respiratoryRate' | 'steps' | 'calories' | 'sleep' | 'skinTemperature' | 'spo2' | 'stepCount' | 'walkingAndRunningDistance' | 'activeEnergy' | 'restingEnergy';
|
|
367
367
|
|
|
368
368
|
declare const RECORDING_SIGNAL_MODEL_CURRENT_VERSION = "1.0.0";
|
|
369
369
|
interface RecordingSignalItem {
|
package/dist/index.d.ts
CHANGED
|
@@ -363,7 +363,7 @@ type DEVICE_KEY_API = 'FITBIT' | 'DEXCOM' | 'dexcom_g4' | 'dexcom_g5' | 'dexcom_
|
|
|
363
363
|
type DEVICE_KEY_SDK = 'AppleHealth';
|
|
364
364
|
type DEVICE_KEY_INTERNAL = 'INTERNAL' | 'internal_accelerometer' | 'internal_gyroscope' | 'internal_magnetometer' | 'internal_beacon_sensing';
|
|
365
365
|
type DEVICE_MOVELLA_PAYLOAD_MODES = 'completeEuler' | 'customMode1' | 'rateQuantities';
|
|
366
|
-
type DEVICE_SIGNAL_TYPE = 'heartRate' | 'imu' | 'beacon' | 'beaconUWB' | 'beaconRemoteUWB' | 'rssiScan' | 'physicalActivityMonitoring' | 'customPassiveMonitoring' | 'activeSamsungSDKMonitoring' | 'passiveSamsungSDKMonitoring' | 'accelerometer' | 'gyroscope' | 'magnetometer' | 'egvs' | '
|
|
366
|
+
type DEVICE_SIGNAL_TYPE = 'heartRate' | 'imu' | 'beacon' | 'beaconUWB' | 'beaconRemoteUWB' | 'rssiScan' | 'physicalActivityMonitoring' | 'customPassiveMonitoring' | 'activeSamsungSDKMonitoring' | 'passiveSamsungSDKMonitoring' | 'accelerometer' | 'gyroscope' | 'magnetometer' | 'egvs' | 'hrv' | 'respiratoryRate' | 'steps' | 'calories' | 'sleep' | 'skinTemperature' | 'spo2' | 'stepCount' | 'walkingAndRunningDistance' | 'activeEnergy' | 'restingEnergy';
|
|
367
367
|
|
|
368
368
|
declare const RECORDING_SIGNAL_MODEL_CURRENT_VERSION = "1.0.0";
|
|
369
369
|
interface RecordingSignalItem {
|
package/dist/index.js
CHANGED
|
@@ -256,7 +256,7 @@ var FITBIT_SIGNAL_TYPE_ANNOTATIONS = {
|
|
|
256
256
|
calories: FITBIT_CALORIES_ANNOTATION,
|
|
257
257
|
steps: FITBIT_STEPS_ANNOTATION,
|
|
258
258
|
heartRate: FITBIT_HEART_RATE_ANNOTATION,
|
|
259
|
-
|
|
259
|
+
hrv: FITBIT_HEART_RATE_VARIABILITY_ANNOTATION,
|
|
260
260
|
respiratoryRate: FITBIT_BREATHING_RATE_ANNOTATION,
|
|
261
261
|
skinTemperature: FITBIT_SKIN_TEMPERATURE_ANNOTATION,
|
|
262
262
|
sleep: FITBIT_SLEEP_ANNOTATION,
|