pond-ts 0.11.2 → 0.11.3
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.
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type-only entry point at `pond-ts/types`.
|
|
3
|
+
*
|
|
4
|
+
* Lets schema-as-contract consumers — packages whose only job is to
|
|
5
|
+
* declare the `as const` schema that flows through producer /
|
|
6
|
+
* aggregator / web — constrain literals via `satisfies SeriesSchema`
|
|
7
|
+
* without taking a runtime dependency on `pond-ts`. The emitted JS
|
|
8
|
+
* for this entry is `export {};` (zero runtime); the .d.ts is a
|
|
9
|
+
* curated re-export of `types.ts`, so the source of truth doesn't
|
|
10
|
+
* drift.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* import type { SeriesSchema } from 'pond-ts/types';
|
|
15
|
+
*
|
|
16
|
+
* export const schema = [
|
|
17
|
+
* { name: 'time', kind: 'time' },
|
|
18
|
+
* { name: 'cpu', kind: 'number' },
|
|
19
|
+
* { name: 'host', kind: 'string' },
|
|
20
|
+
* ] as const satisfies SeriesSchema;
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* **What's included:** schema-shape types (`SeriesSchema`,
|
|
24
|
+
* `ColumnDef`, `FirstColumn`, `ValueColumn`, `ScalarKind`,
|
|
25
|
+
* `ColumnValue`, `ArrayValue`, ...), row-shape types (`RowForSchema`,
|
|
26
|
+
* `EventDataForSchema`, `EventForSchema`, `EventKeyForKind`,
|
|
27
|
+
* `EventKeyForSchema`), and wire (JSON-shape) types
|
|
28
|
+
* (`TimeSeriesJsonInput`, `JsonRowForSchema`,
|
|
29
|
+
* `JsonObjectRowForSchema`, `JsonValueForKind`, `JsonRowFormat`,
|
|
30
|
+
* `JsonTimestampInput`, `JsonTimeRangeInput`, `JsonIntervalInput`).
|
|
31
|
+
*
|
|
32
|
+
* **What's deliberately not included:**
|
|
33
|
+
* - **Operator-derived schema types** (`RollingSchema`,
|
|
34
|
+
* `AggregateSchema`, etc.) — if you're using rolling, you're using
|
|
35
|
+
* the runtime, and the main entry already covers you.
|
|
36
|
+
* - **`LiveSource` and other source interfaces** — they describe a
|
|
37
|
+
* runtime contract (event subscription, dispatch). Schema-as-
|
|
38
|
+
* contract consumers don't implement sources; if you're writing
|
|
39
|
+
* one, import from the main entry.
|
|
40
|
+
*
|
|
41
|
+
* Existing `import { SeriesSchema } from 'pond-ts'` calls keep
|
|
42
|
+
* working unchanged.
|
|
43
|
+
*/
|
|
44
|
+
export type { ArrayValue, ColumnDef, ColumnValue, EventDataForSchema, EventForSchema, EventKeyForKind, EventKeyForSchema, FirstColKind, FirstColumn, JsonIntervalInput, JsonObjectRowForSchema, JsonRowForSchema, JsonRowFormat, JsonTimeRangeInput, JsonTimestampInput, JsonValueForKind, RowForSchema, ScalarKind, ScalarValue, SeriesSchema, TimeSeriesInput, TimeSeriesJsonInput, ValueColumn, ValueForKind, } from './types.js';
|
|
45
|
+
//# sourceMappingURL=types-public.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-public.d.ts","sourceRoot":"","sources":["../src/types-public.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,YAAY,EACV,UAAU,EACV,SAAS,EACT,WAAW,EACX,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,WAAW,EACX,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,YAAY,GACb,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-public.js","sourceRoot":"","sources":["../src/types-public.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pond-ts",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
4
4
|
"description": "TypeScript-first time series primitives",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
".": {
|
|
16
16
|
"types": "./dist/index.d.ts",
|
|
17
17
|
"import": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./types": {
|
|
20
|
+
"types": "./dist/types-public.d.ts",
|
|
21
|
+
"import": "./dist/types-public.js"
|
|
18
22
|
}
|
|
19
23
|
},
|
|
20
24
|
"engines": {
|