@molecule/api-wearable-fitbit 1.0.3 → 1.0.4
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 +5 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-10-
|
|
6
|
+
Generated: 2026-10-26T04:24:21.592Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/api-wearable-fitbit
|
|
@@ -544,7 +544,7 @@ type SleepStage = 'awake' | 'light' | 'deep' | 'rem' | 'restless' | 'asleep' | '
|
|
|
544
544
|
Base64url-encodes the bytes (RFC 4648 §5 with `=` padding stripped).
|
|
545
545
|
|
|
546
546
|
```typescript
|
|
547
|
-
function base64UrlEncode(bytes: Uint8Array
|
|
547
|
+
function base64UrlEncode(bytes: Uint8Array): string
|
|
548
548
|
```
|
|
549
549
|
|
|
550
550
|
- `bytes` — The bytes to encode.
|
|
@@ -571,7 +571,7 @@ normalized {@link DailyActivity} shape. Missing fields are zero-defaulted
|
|
|
571
571
|
so handlers can sum across days without null guards.
|
|
572
572
|
|
|
573
573
|
```typescript
|
|
574
|
-
function fromFitbitActivity(date:
|
|
574
|
+
function fromFitbitActivity(date: WearableDate, raw: FitbitDailyActivityResponse): DailyActivity
|
|
575
575
|
```
|
|
576
576
|
|
|
577
577
|
- `date` — The calendar day the response was requested for.
|
|
@@ -599,7 +599,7 @@ Translates a Fitbit `sleep/date` payload into a list of normalized
|
|
|
599
599
|
{@link SleepSession} records.
|
|
600
600
|
|
|
601
601
|
```typescript
|
|
602
|
-
function fromFitbitSleep(date:
|
|
602
|
+
function fromFitbitSleep(date: WearableDate, raw: FitbitSleepResponse): SleepSession[]
|
|
603
603
|
```
|
|
604
604
|
|
|
605
605
|
- `date` — Calendar day the response was requested for.
|
|
@@ -613,7 +613,7 @@ Translates a Fitbit `activities/heart/date` payload into the normalized
|
|
|
613
613
|
{@link HeartRateSummary} shape.
|
|
614
614
|
|
|
615
615
|
```typescript
|
|
616
|
-
function fromFitbitHeartRate(date:
|
|
616
|
+
function fromFitbitHeartRate(date: WearableDate, raw: FitbitHeartRateResponse): HeartRateSummary
|
|
617
617
|
```
|
|
618
618
|
|
|
619
619
|
- `date` — Calendar day the response was requested for.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/api-wearable-fitbit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Fitbit Web API bond for molecule.dev — daily activity, sleep, heart-rate, and weight ingestion via OAuth 2.0 PKCE",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@molecule/api-wearable": "^1.0.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@molecule/api-bond": "1.0.
|
|
41
|
-
"@molecule/api-http": "1.0.
|
|
40
|
+
"@molecule/api-bond": "1.0.4",
|
|
41
|
+
"@molecule/api-http": "1.0.4",
|
|
42
42
|
"@molecule/api-wearable": "1.0.3",
|
|
43
43
|
"@types/node": "26.6.5",
|
|
44
44
|
"typescript": "6.0.3",
|