@molecule/api-resource-readings 1.0.5 → 1.0.6
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 +10 -4
- package/package.json +1 -1
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:23:54.632Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/api-resource-readings
|
|
@@ -148,14 +148,14 @@ Persist multiple sensor readings in sequence, returning the number successfully
|
|
|
148
148
|
```typescript
|
|
149
149
|
function ingestBulk(
|
|
150
150
|
ownerId: string,
|
|
151
|
-
readings: {
|
|
151
|
+
readings: Array<{
|
|
152
152
|
sensor_id: string
|
|
153
153
|
metric: string
|
|
154
154
|
value: number
|
|
155
155
|
unit?: string | null
|
|
156
156
|
recorded_at?: string
|
|
157
157
|
metadata?: Record<string, unknown>
|
|
158
|
-
}
|
|
158
|
+
}>,
|
|
159
159
|
): Promise<number>
|
|
160
160
|
```
|
|
161
161
|
|
|
@@ -166,7 +166,13 @@ Fetch raw, unaggregated reading points for an owner, optionally filtered by sens
|
|
|
166
166
|
```typescript
|
|
167
167
|
function listRawReadings(
|
|
168
168
|
ownerId: string,
|
|
169
|
-
opts?: {
|
|
169
|
+
opts?: {
|
|
170
|
+
sensor_id?: string
|
|
171
|
+
metric?: string
|
|
172
|
+
from?: string
|
|
173
|
+
to?: string
|
|
174
|
+
limit?: number
|
|
175
|
+
},
|
|
170
176
|
): Promise<ReadingPoint[]>
|
|
171
177
|
```
|
|
172
178
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/api-resource-readings",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Generic time-series sensor readings with on-the-fly aggregation (raw/5min/hour/day rollups)",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/api-resource-readings",
|
|
6
6
|
"type": "module",
|