@molecule/api-resource-readings 1.0.8 → 1.0.10

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 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-11-25T20:13:24.167Z
6
+ Generated: 2026-12-05T17:18:45.160Z
7
7
  -->
8
8
 
9
9
  # @molecule/api-resource-readings
@@ -47,7 +47,7 @@ const hourly = await listAggregatedReadings(userId, { granularity: 'hour', metri
47
47
  ## Installation
48
48
 
49
49
  ```bash
50
- npm install @molecule/api-resource-readings @molecule/api-database @molecule/api-i18n @molecule/api-middleware-validation @molecule/api-resource express zod
50
+ npm install @molecule/api-resource-readings @molecule/api-database @molecule/api-middleware-validation @molecule/api-resource express zod
51
51
  npm install -D @types/express
52
52
  ```
53
53
 
@@ -281,7 +281,6 @@ const readingQuerySchema: z.ZodObject<
281
281
  Peer dependencies:
282
282
 
283
283
  - `@molecule/api-database` ^1.0.1
284
- - `@molecule/api-i18n` ^1.0.1
285
284
  - `@molecule/api-middleware-validation` ^1.0.1
286
285
  - `@molecule/api-resource` ^1.2.0
287
286
  - `express` ^5.0.0
@@ -290,7 +289,6 @@ Peer dependencies:
290
289
  ### Runtime Dependencies
291
290
 
292
291
  - `@molecule/api-database`
293
- - `@molecule/api-i18n`
294
292
  - `@molecule/api-middleware-validation`
295
293
  - `@molecule/api-resource`
296
294
  - `express`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-resource-readings",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Generic time-series with on-the-fly aggregation",
5
5
  "homepage": "https://www.molecule.dev/packages/api-resource-readings",
6
6
  "type": "module",
@@ -46,7 +46,6 @@
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@molecule/api-database": "^1.0.1",
49
- "@molecule/api-i18n": "^1.0.1",
50
49
  "@molecule/api-middleware-validation": "^1.0.1",
51
50
  "@molecule/api-resource": "^1.2.0",
52
51
  "express": "^5.0.0",
@@ -1,5 +1,5 @@
1
1
  CREATE TABLE IF NOT EXISTS "readings" (
2
- "id" uuid UNIQUE PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
2
+ "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
3
3
  "owner_id" uuid NOT NULL,
4
4
  "sensor_id" varchar(120) NOT NULL,
5
5
  "metric" varchar(80) NOT NULL,