@elaraai/e3 1.0.98 → 1.0.100

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.
Files changed (146) hide show
  1. package/README.md +4 -5
  2. package/dist/src/browser.d.ts +2 -0
  3. package/dist/src/browser.d.ts.map +1 -1
  4. package/dist/src/browser.js +6 -0
  5. package/dist/src/browser.js.map +1 -1
  6. package/dist/src/environment-capture.d.ts +21 -0
  7. package/dist/src/environment-capture.d.ts.map +1 -1
  8. package/dist/src/environment-capture.js +48 -0
  9. package/dist/src/environment-capture.js.map +1 -1
  10. package/dist/src/export.d.ts +10 -5
  11. package/dist/src/export.d.ts.map +1 -1
  12. package/dist/src/export.js +31 -47
  13. package/dist/src/export.js.map +1 -1
  14. package/dist/src/export.spec.js +27 -16
  15. package/dist/src/export.spec.js.map +1 -1
  16. package/dist/src/function.d.ts.map +1 -1
  17. package/dist/src/function.js.map +1 -1
  18. package/dist/src/functions-cache.d.ts +60 -0
  19. package/dist/src/functions-cache.d.ts.map +1 -0
  20. package/dist/src/functions-cache.js +165 -0
  21. package/dist/src/functions-cache.js.map +1 -0
  22. package/dist/src/functions-link.spec.js +191 -12
  23. package/dist/src/functions-link.spec.js.map +1 -1
  24. package/dist/src/functions-resolve.d.ts +52 -23
  25. package/dist/src/functions-resolve.d.ts.map +1 -1
  26. package/dist/src/functions-resolve.js +244 -96
  27. package/dist/src/functions-resolve.js.map +1 -1
  28. package/dist/src/index.d.ts +8 -61
  29. package/dist/src/index.d.ts.map +1 -1
  30. package/dist/src/index.js +3 -8
  31. package/dist/src/index.js.map +1 -1
  32. package/dist/src/internal.d.ts +53 -0
  33. package/dist/src/internal.d.ts.map +1 -0
  34. package/dist/src/internal.js +29 -0
  35. package/dist/src/internal.js.map +1 -0
  36. package/dist/src/lazy-build.d.ts +25 -0
  37. package/dist/src/lazy-build.d.ts.map +1 -0
  38. package/dist/src/lazy-build.js +56 -0
  39. package/dist/src/lazy-build.js.map +1 -0
  40. package/dist/src/lazy-build.spec.d.ts +6 -0
  41. package/dist/src/lazy-build.spec.d.ts.map +1 -0
  42. package/dist/src/lazy-build.spec.js +153 -0
  43. package/dist/src/lazy-build.spec.js.map +1 -0
  44. package/dist/src/migration.d.ts +20 -163
  45. package/dist/src/migration.d.ts.map +1 -1
  46. package/dist/src/migration.js +37 -34
  47. package/dist/src/migration.js.map +1 -1
  48. package/dist/src/migration.spec.js +83 -78
  49. package/dist/src/migration.spec.js.map +1 -1
  50. package/dist/src/mutation-programs.spec.js +211 -118
  51. package/dist/src/mutation-programs.spec.js.map +1 -1
  52. package/dist/src/mutation.d.ts +37 -141
  53. package/dist/src/mutation.d.ts.map +1 -1
  54. package/dist/src/mutation.js +66 -28
  55. package/dist/src/mutation.js.map +1 -1
  56. package/dist/src/open-beast-link.spec.js +1 -1
  57. package/dist/src/open-beast-link.spec.js.map +1 -1
  58. package/dist/src/output.js.map +1 -1
  59. package/dist/src/package.d.ts +2 -38
  60. package/dist/src/package.d.ts.map +1 -1
  61. package/dist/src/package.js +42 -175
  62. package/dist/src/package.js.map +1 -1
  63. package/dist/src/record-area.d.ts +49 -37
  64. package/dist/src/record-area.d.ts.map +1 -1
  65. package/dist/src/record-area.js +211 -131
  66. package/dist/src/record-area.js.map +1 -1
  67. package/dist/src/record-area.spec.js +79 -62
  68. package/dist/src/record-area.spec.js.map +1 -1
  69. package/dist/src/record-arguments.d.ts +55 -0
  70. package/dist/src/record-arguments.d.ts.map +1 -0
  71. package/dist/src/record-arguments.js +72 -0
  72. package/dist/src/record-arguments.js.map +1 -0
  73. package/dist/src/record-builders.d.ts +547 -0
  74. package/dist/src/record-builders.d.ts.map +1 -0
  75. package/dist/src/record-builders.js +112 -0
  76. package/dist/src/record-builders.js.map +1 -0
  77. package/dist/src/record-declared.spec.d.ts +6 -0
  78. package/dist/src/record-declared.spec.d.ts.map +1 -0
  79. package/dist/src/record-declared.spec.js +251 -0
  80. package/dist/src/record-declared.spec.js.map +1 -0
  81. package/dist/src/record-guards.d.ts +114 -1
  82. package/dist/src/record-guards.d.ts.map +1 -1
  83. package/dist/src/record-guards.js +153 -2
  84. package/dist/src/record-guards.js.map +1 -1
  85. package/dist/src/record-index.d.ts +128 -350
  86. package/dist/src/record-index.d.ts.map +1 -1
  87. package/dist/src/record-index.js +44 -481
  88. package/dist/src/record-index.js.map +1 -1
  89. package/dist/src/record-index.spec.js +124 -90
  90. package/dist/src/record-index.spec.js.map +1 -1
  91. package/dist/src/record-interval.d.ts +57 -36
  92. package/dist/src/record-interval.d.ts.map +1 -1
  93. package/dist/src/record-interval.js +136 -94
  94. package/dist/src/record-interval.js.map +1 -1
  95. package/dist/src/record-interval.spec.js +48 -27
  96. package/dist/src/record-interval.spec.js.map +1 -1
  97. package/dist/src/record-keys.d.ts +146 -0
  98. package/dist/src/record-keys.d.ts.map +1 -0
  99. package/dist/src/record-keys.js +178 -0
  100. package/dist/src/record-keys.js.map +1 -0
  101. package/dist/src/record-nested-programs.d.ts +1457 -0
  102. package/dist/src/record-nested-programs.d.ts.map +1 -0
  103. package/dist/src/record-nested-programs.js +1974 -0
  104. package/dist/src/record-nested-programs.js.map +1 -0
  105. package/dist/src/record-nested.d.ts +284 -0
  106. package/dist/src/record-nested.d.ts.map +1 -0
  107. package/dist/src/record-nested.js +304 -0
  108. package/dist/src/record-nested.js.map +1 -0
  109. package/dist/src/record-nested.spec.d.ts +6 -0
  110. package/dist/src/record-nested.spec.d.ts.map +1 -0
  111. package/dist/src/record-nested.spec.js +1032 -0
  112. package/dist/src/record-nested.spec.js.map +1 -0
  113. package/dist/src/record-patches.d.ts +25 -0
  114. package/dist/src/record-patches.d.ts.map +1 -0
  115. package/dist/src/record-patches.js +27 -0
  116. package/dist/src/record-patches.js.map +1 -0
  117. package/dist/src/record-programs.d.ts +192 -26
  118. package/dist/src/record-programs.d.ts.map +1 -1
  119. package/dist/src/record-programs.js +858 -350
  120. package/dist/src/record-programs.js.map +1 -1
  121. package/dist/src/record-programs.spec.d.ts +6 -0
  122. package/dist/src/record-programs.spec.d.ts.map +1 -0
  123. package/dist/src/record-programs.spec.js +242 -0
  124. package/dist/src/record-programs.spec.js.map +1 -0
  125. package/dist/src/record-series.d.ts +101 -97
  126. package/dist/src/record-series.d.ts.map +1 -1
  127. package/dist/src/record-series.js +198 -149
  128. package/dist/src/record-series.js.map +1 -1
  129. package/dist/src/record-series.spec.js +241 -120
  130. package/dist/src/record-series.spec.js.map +1 -1
  131. package/dist/src/record-tiles.d.ts +328 -37
  132. package/dist/src/record-tiles.d.ts.map +1 -1
  133. package/dist/src/record-tiles.js +289 -100
  134. package/dist/src/record-tiles.js.map +1 -1
  135. package/dist/src/record.d.ts +66 -12
  136. package/dist/src/record.d.ts.map +1 -1
  137. package/dist/src/record.js +103 -34
  138. package/dist/src/record.js.map +1 -1
  139. package/dist/src/record.spec.js +48 -63
  140. package/dist/src/record.spec.js.map +1 -1
  141. package/dist/src/task.d.ts.map +1 -1
  142. package/dist/src/task.js +4 -1
  143. package/dist/src/task.js.map +1 -1
  144. package/dist/src/types.d.ts +103 -37
  145. package/dist/src/types.d.ts.map +1 -1
  146. package/package.json +7 -3
@@ -18,63 +18,42 @@
18
18
  * commit and in every bulk build, and a maintained index must equal a rebuilt
19
19
  * one to the byte.
20
20
  */
21
- import type { DateTimeType, DictType, EastType, FloatType, FunctionExpr, IntegerType, OptionType } from '@elaraai/east';
22
- import { NullType, SetType, StructType } from '@elaraai/east';
23
- import { RecordSummaryTotalsType } from '@elaraai/e3-types';
21
+ import type { DateTimeType, DictType, EastType, Expr, FloatType, FunctionType, IntegerType, OptionType, SetType, StructType, VariantType } from '@elaraai/east';
22
+ import { NullType } from '@elaraai/east';
23
+ import type { NestedEntryKeyType, RecordLevelType, RecordNestedTotalsType } from '@elaraai/e3-types';
24
24
  import type { RecordDef, RecordIndexDef } from './types.js';
25
- import { type RecordTile } from './record-tiles.js';
26
- import { type FunctionRunner } from './runner.js';
27
- /**
28
- * What an index declaration needs of a function: a way to reach its IR, and
29
- * through that its signature.
30
- *
31
- * @remarks
32
- * Deliberately the weakest shape that works, because a stronger one silently
33
- * breaks the authored surface. An index reads
34
- * `key: East.function([K, V], IK, ($, k, v) => …)` written INLINE in the spec,
35
- * and `East.function` infers its callback's parameters from its own first
36
- * argument — but only if nothing is imposed on it from outside. Both a
37
- * callable contextual type (`FunctionExpr<any, any>`) and a generic return
38
- * type here (`toIR(): EastIR<any, any>`) make TypeScript infer against the
39
- * expected type instead, and the body's `k` and `v` come out as the union of
40
- * every expression class. `unknown` imposes nothing; the guards below read the
41
- * signature at run time regardless.
42
- */
43
- export interface IndexFunction {
44
- /** The function's IR bundle, as `EastIR` or `AsyncEastIR`. */
45
- toIR(): unknown;
46
- }
25
+ import type { PlacesOf, SeriesCollections } from './record-nested.js';
26
+ import type { RecordTile } from './record-tiles.js';
27
+ import type { IndexConstructor, IndexFunction } from './record-guards.js';
28
+ import type { FunctionRunner } from './runner.js';
29
+ export type { IndexFunction } from './record-guards.js';
47
30
  /** The own fields of a Dict record's struct row. */
48
- type RowFields<T> = T extends DictType<any, StructType<infer F>> ? F : Record<never, never>;
31
+ type RowFields<T> = T extends DictType<unknown, StructType<infer F>> ? F : Record<never, never>;
49
32
  /** A Dict record's row type. */
50
- type RowOf<T> = T extends DictType<any, infer V extends EastType> ? V : EastType;
33
+ type RowOf<T> = T extends DictType<unknown, infer V extends EastType> ? V : EastType;
34
+ /** A Dict record's key type. */
35
+ type KeyOf<T> = T extends DictType<infer K extends EastType, unknown> ? K : EastType;
51
36
  /** A Set field indexes its elements; every other field indexes its value. */
52
37
  type FieldKey<T> = T extends SetType<infer K extends EastType> ? K : T extends EastType ? T : never;
53
38
  /**
54
- * The field names an index declaration orders by: its `on` fields, an interval
55
- * index's leading fields then its start, an area index's leading fields then
56
- * `__area`, a series or summary index's leading fields then `__tile` and its
57
- * key; undefined for a computed key.
39
+ * The row fields an index declaration is led by: its `on` fields — a plain
40
+ * index's, or a generated index's leading fields, its key's `on` (#1432) — and
41
+ * none for a generated index that lists none; undefined for a computed key.
42
+ * A generated index's own parts are the definition's `interval`, `area`,
43
+ * `series` or `summary`, never names among these.
58
44
  *
59
45
  * @typeParam S - The index spec as written
60
46
  */
61
47
  export type IndexOn<S> = S extends {
62
- cell: number;
63
- } ? S extends {
64
48
  on: infer On extends readonly string[];
65
- } ? readonly [...On, '__area'] : readonly ['__area'] : S extends {
49
+ } ? On : S extends {
50
+ cell: number;
51
+ } | {
66
52
  tile: string;
67
- key: infer K extends string;
68
- } ? S extends {
69
- on: infer On extends readonly string[];
70
- } ? readonly [...On, '__tile', K] : readonly ['__tile', K] : S extends {
71
- from: infer F extends string;
53
+ } | {
54
+ from: string;
72
55
  to: string;
73
- } ? S extends {
74
- on: infer On extends readonly string[];
75
- } ? readonly [...On, F] : readonly [F] : S extends {
76
- on: infer On extends readonly string[];
77
- } ? On : undefined;
56
+ } ? readonly [] : undefined;
78
57
  /** A row field an interval index may start or end at: a DateTime, or an Option of one. */
79
58
  type IntervalField<T> = {
80
59
  [F in keyof RowFields<T>]: RowFields<T>[F] extends DateTimeType | OptionType<DateTimeType> ? F : never;
@@ -89,39 +68,21 @@ type FloatField<T> = {
89
68
  }[keyof RowFields<T>] & string;
90
69
  /** A row field a series or summary index files events under: any but a Set. */
91
70
  type KeyField<T> = {
92
- [F in keyof RowFields<T>]: RowFields<T>[F] extends SetType<any> ? never : F;
71
+ [F in keyof RowFields<T>]: RowFields<T>[F] extends SetType<unknown> ? never : F;
93
72
  }[keyof RowFields<T>] & string;
94
- /** A generated index's exact leading fields, by name, as its key holds them. */
95
- type LeadingKey<S, T> = S extends {
73
+ /**
74
+ * A generated index's leading fields, by name, at their key types: the fields
75
+ * of its key's `on` (#1432). The fields, never the struct, so a definition's
76
+ * declared type names `StructType` of them, which a package's declarations
77
+ * can print.
78
+ */
79
+ type LeadingFields<S, T> = S extends {
96
80
  on: infer On extends readonly (keyof RowFields<T> & string)[];
97
81
  } ? {
98
82
  [F in On[number]]: FieldKey<RowFields<T>[F]>;
99
83
  } : Record<never, never>;
100
- /** What a plain index keys on: `on` (row fields), `key` (one computed entry
101
- * per row), or `keys` (one per Set element), and an optional covering
102
- * projection. An index that answers more than an order has a constructor of
103
- * its own: {@link IntervalIndexSpec}, {@link AreaIndexSpec}.
104
- * @typeParam T - The owning record's state type
105
- */
106
- export type RecordIndexSpec<T extends EastType = EastType> = {
107
- /** Row fields in index order. One field uses its value as the key; several
108
- * use a struct in this order. Set fields fan out over their elements. */
109
- on?: readonly (keyof RowFields<T> & string)[];
110
- /** `(K, V) -> IK` — one index entry per row. */
111
- key?: IndexFunction;
112
- /** `(K, V) -> Set<IK>` — one index entry per element, so a row that names
113
- * five resources appears under five keys. An empty set is a row the index
114
- * does not carry, which is how a partial index is written. */
115
- keys?: IndexFunction;
116
- /** `(K, V) -> P` — the fields a view renders from the index alone, so it
117
- * never touches the primary's segments. */
118
- value?: IndexFunction;
119
- /** Refused: an interval index has a constructor of its own,
120
- * `e3.recordIndex.interval(name, record, { on?, from, to })`. */
121
- interval?: never;
122
- };
123
84
  /**
124
- * What an interval index keys on (`e3.recordIndex.interval`): the events
85
+ * What an interval index keys on (`index.interval`): the events
125
86
  * overlapping a half-open time window, carry-in events among them, without
126
87
  * day fan-out or duration lookbacks.
127
88
  *
@@ -139,7 +100,7 @@ export interface IntervalIndexSpec<T extends EastType = EastType> {
139
100
  value?: never;
140
101
  }
141
102
  /**
142
- * What an area index keys on (`e3.recordIndex.area`): the rows whose box meets
103
+ * What an area index keys on (`index.area`): the rows whose box meets
143
104
  * a window, each filed once, by a box its fields name. It carries the whole row
144
105
  * as its projection, so a window reads the index alone.
145
106
  *
@@ -167,15 +128,15 @@ export interface AreaIndexSpec<T extends EastType = EastType> {
167
128
  value?: never;
168
129
  }
169
130
  /**
170
- * What a series index files a record's events by (`e3.recordIndex.series`,
171
- * #1039): the key an event is on — a Plan's resource — and the time tiles it
172
- * touches, so the events of a block of keys over a span of tiles are a few
173
- * contiguous ranges, a range a tile.
131
+ * What a series index files a record's events by (`index.series`,
132
+ * #1039): the key an event is on — a Plan's resource — and its time, each
133
+ * event filed once at the level its length fits (#1433), so a key's events
134
+ * over any span are one range a level.
174
135
  *
175
136
  * @typeParam T - The owning record's state type
176
137
  */
177
138
  export interface SeriesIndexSpec<T extends EastType = EastType> {
178
- /** Exact leading fields before the tile. Set fields fan out. */
139
+ /** Exact leading fields before the key. Set fields fan out. */
179
140
  on?: readonly (keyof RowFields<T> & string)[];
180
141
  /** The field naming what an event is on — a Plan's resource: any field but a Set. */
181
142
  key: KeyField<T>;
@@ -184,20 +145,55 @@ export interface SeriesIndexSpec<T extends EastType = EastType> {
184
145
  from: IntervalField<T>;
185
146
  /** The field it ends at; a missing one, or one at or before the start, is an instant. */
186
147
  to: IntervalField<T>;
187
- /** The tile: `day`, `week` (ISO, from Monday), `month`, `quarter` or `year`, in UTC. */
148
+ /** The finest level an event is filed at: `day`, `week` (ISO, from Monday), `month`, `quarter` or `year`, in UTC.
149
+ * An event is filed at it, or at the coarser level its length fits. */
188
150
  tile: RecordTile;
189
151
  /** Refused: a series index carries the whole row as its projection. */
190
152
  value?: never;
191
153
  }
192
154
  /**
193
- * What a summary index totals a record's events by (`e3.recordIndex.summary`,
155
+ * What the nested form of a series index files (#1434): every collection a
156
+ * record's rows nest, each declared with a builder of `index.nested`,
157
+ * typed against its field from the record's type alone.
158
+ *
159
+ * @typeParam T - The owning record's state type (a Dict of Struct rows)
160
+ */
161
+ export interface NestedSeriesIndexSpec<T extends EastType = EastType> {
162
+ /** The collections a row nests, each by its field ({@link SeriesCollections}). */
163
+ collections: SeriesCollections<RowOf<T>>;
164
+ /** The finest level an item is filed at, and the finest a parent's subtotals are kept at: `day`, `week` (ISO, from
165
+ * Monday), `month`, `quarter` or `year`, in UTC. */
166
+ tile: RecordTile;
167
+ /** The tile each node's totals are kept by; omitted, none are kept. */
168
+ summary?: RecordTile;
169
+ /** Refused: the key form's fields, beside `collections`. */
170
+ key?: never;
171
+ /** Refused: the key form's fields, beside `collections`. */
172
+ from?: never;
173
+ /** Refused: the key form's fields, beside `collections`. */
174
+ to?: never;
175
+ /** Refused: no field leads a nested index. */
176
+ on?: never;
177
+ /** Refused: each entry carries its own item, totals or subtotal. */
178
+ value?: never;
179
+ }
180
+ /** A nested series index's entry key, at the record's key type (e3-types' `NestedEntryKeyType`). */
181
+ export type NestedKeyOf<T extends EastType> = ReturnType<typeof NestedEntryKeyType<KeyOf<T>>>;
182
+ /** A nested series index's entry value (e3-types' `NestedEntryType`), its items' variant nesting as `S` declares. */
183
+ export type NestedValueOf<T extends EastType, S extends NestedSeriesIndexSpec<T>> = VariantType<{
184
+ item: PlacesOf<RowOf<T>, S['collections']>;
185
+ totals: typeof RecordNestedTotalsType;
186
+ subtotal: FloatType;
187
+ }>;
188
+ /**
189
+ * What a summary index totals a record's events by (`index.summary`,
194
190
  * #1039): the same key and tiles as a series index, and under each key how
195
191
  * many rows touch its tile and the milliseconds of it they cover.
196
192
  *
197
193
  * @typeParam T - The owning record's state type
198
194
  */
199
195
  export interface SummaryIndexSpec<T extends EastType = EastType> {
200
- /** Exact leading fields before the tile. Set fields fan out. */
196
+ /** Exact leading fields before the key. Set fields fan out. */
201
197
  on?: readonly (keyof RowFields<T> & string)[];
202
198
  /** The field naming what an event is on — a Plan's resource: any field but a Set. */
203
199
  key: KeyField<T>;
@@ -212,12 +208,14 @@ export interface SummaryIndexSpec<T extends EastType = EastType> {
212
208
  value?: never;
213
209
  }
214
210
  /** The type an East function returns, read off the expression itself. */
215
- type OutputOf<F> = F extends FunctionExpr<any, infer O> ? (O extends EastType ? O : EastType) : EastType;
211
+ type OutputOf<F> = F extends Expr<FunctionType<unknown[], infer O>> ? (O extends EastType ? O : EastType) : EastType;
216
212
  /**
217
- * The index key a spec declares: an area index's leading fields and `__area`,
218
- * an interval index's leading fields, `__interval` and its start, a plain
219
- * index's row fields, `key`'s return, or the element of the Set `keys`
220
- * returns.
213
+ * The index key a spec declares (#1432): a generated index's row fields under
214
+ * `on` and e3's own parts beside them — an area index's `{ on, area }`, a
215
+ * series index's `{ on, key, level, tile }` (#1433), an interval index's
216
+ * `{ on, node, at }` — or a plain index's row fields, `key`'s return, or the
217
+ * element of the Set `keys` returns. A summary index's spec is a series
218
+ * index's; its key is {@link SummaryKeyOf}.
221
219
  *
222
220
  * @typeParam S - The index spec as written
223
221
  * @typeParam T - The owning record's state type, for field indexes
@@ -230,22 +228,24 @@ type OutputOf<F> = F extends FunctionExpr<any, infer O> ? (O extends EastType ?
230
228
  */
231
229
  export type IndexKeyOf<S, T extends EastType = EastType> = S extends {
232
230
  cell: number;
233
- } ? StructType<LeadingKey<S, T> & {
234
- __area: IntegerType;
231
+ } ? StructType<{
232
+ on: StructType<LeadingFields<S, T>>;
233
+ area: IntegerType;
235
234
  }> : S extends {
236
235
  tile: string;
237
236
  key: infer KF extends keyof RowFields<T> & string;
238
- } ? StructType<LeadingKey<S, T> & {
239
- __tile: DateTimeType;
240
- } & {
241
- [K in KF]: RowFields<T>[K];
237
+ } ? StructType<{
238
+ on: StructType<LeadingFields<S, T>>;
239
+ key: RowFields<T>[KF];
240
+ level: RecordLevelType;
241
+ tile: DateTimeType;
242
242
  }> : S extends {
243
243
  from: infer F extends keyof RowFields<T> & string;
244
244
  to: string;
245
- } ? StructType<LeadingKey<S, T> & {
246
- __interval: IntegerType;
247
- } & {
248
- [K in F]: RowFields<T>[K];
245
+ } ? StructType<{
246
+ on: StructType<LeadingFields<S, T>>;
247
+ node: IntegerType;
248
+ at: RowFields<T>[F];
249
249
  }> : S extends {
250
250
  on: readonly [infer F extends keyof RowFields<T>];
251
251
  } ? FieldKey<RowFields<T>[F]> : S extends {
@@ -256,112 +256,47 @@ export type IndexKeyOf<S, T extends EastType = EastType> = S extends {
256
256
  key: infer F;
257
257
  } ? OutputOf<F> : S extends {
258
258
  keys: infer F;
259
- } ? (OutputOf<F> extends SetType<infer IK> ? IK : EastType) : EastType;
259
+ } ? (OutputOf<F> extends SetType<infer IK extends EastType> ? IK : EastType) : EastType;
260
+ /**
261
+ * A summary index's key (#1433): `{ on, key, tile }`, its leading fields under
262
+ * `on`, then the key's value and the start of the tile it totals — the key
263
+ * before the tile, so a key's totals over a span of tiles are one range.
264
+ *
265
+ * @typeParam S - The summary's spec as written
266
+ * @typeParam T - The owning record's state type
267
+ */
268
+ export type SummaryKeyOf<S, T extends EastType = EastType> = S extends {
269
+ key: infer KF extends keyof RowFields<T> & string;
270
+ } ? StructType<{
271
+ on: StructType<LeadingFields<S, T>>;
272
+ key: RowFields<T>[KF];
273
+ tile: DateTimeType;
274
+ }> : EastType;
260
275
  /** The covering projection a spec declares: `value`'s return, Null when the
261
276
  * spec has no `value`, and any type when it only might. */
262
277
  export type ProjectionOf<S> = S extends {
263
278
  value: infer F;
264
279
  } ? OutputOf<F> : 'value' extends keyof S ? EastType : NullType;
265
280
  /**
266
- * Defines a secondary index over a record.
267
- *
268
- * The index is a collection `Dict<{ik, k}, P>` — the index key first, the
269
- * primary key second — so every entry sharing an index key is one contiguous
270
- * run ordered by primary key inside it, and a RANGE of index keys is one
271
- * contiguous run too. Pages and key searches take the index by name; a view
272
- * that renders from the index alone declares its fields as `value` and never
273
- * reads the primary at all.
274
- *
275
- * An index that answers more than an order has a constructor of its own:
276
- * {@link intervalIndex | e3.recordIndex.interval}, the events overlapping a time
277
- * window, and {@link areaIndex | e3.recordIndex.area}, the boxes meeting a
278
- * window. This one refuses `interval`, naming its constructor.
279
- *
280
- * Every guard here is a definition-time error rather than a deploy failure.
281
- *
282
- * @typeParam Name - Index name (literal type)
283
- * @typeParam T - The owning record's state type (a Dict)
284
- * @typeParam S - The spec as written, from which the index key and covering
285
- * projection types are read
286
- * @param name - Index name: never `primary`, and one declaration per name on
287
- * the record, which `e3.package` enforces when it folds indexes onto it
288
- * @param rec - The record to index
289
- * @param spec - `on`, `key` or `keys`; optional covering `value`
290
- * @param config - Optional runner selection (known runtimes only)
291
- * @returns A RecordIndexDef to pass to `e3.package`
292
- *
293
- * @example
294
- * ```ts
295
- * const plans = e3.record('plans', DictType(PlanKeyType, PlanRowType), new Map());
296
- *
297
- * // One key per row, with a covering projection: a queue renders from the
298
- * // index alone.
299
- * const byStatus = e3.recordIndex('by_status', plans, {
300
- * key: East.function([PlanKeyType, PlanRowType], StatusKeyType,
301
- * ($, k, v) => ({ status: v.status, due: v.due })),
302
- * value: East.function([PlanKeyType, PlanRowType], QueueCardType,
303
- * ($, k, v) => ({ title: v.title, owner: v.owner })),
304
- * });
305
- *
306
- * // A row field supplies its own key type.
307
- * const byDue = e3.recordIndex('by_due', plans, { on: ['due'] });
308
- *
309
- * // Many keys per row: a Set return.
310
- * const byResource = e3.recordIndex('by_resource', plans, {
311
- * keys: East.function([PlanKeyType, PlanRowType], SetType(ResourceRefType),
312
- * ($, k, v) => v.resources),
313
- * });
314
- *
315
- * const pkg = e3.package('planning', '1.0.0', plans, byStatus, byDue, byResource);
316
- * ```
281
+ * Builds a plain index's definition: its key from `on`, `key` or `keys`, and
282
+ * its projection from `value`, each checked as every index's functions are.
283
+ *
284
+ * @param constructor - The declaration, as a refusal names it
285
+ * @param name - The index
286
+ * @param rec - Its record
287
+ * @param spec - Exactly one of `on`, `key` and `keys`, and an optional `value`
288
+ * @param config - Its runner selection
289
+ * @returns The definition
290
+ * @throws {Error} When the spec gives none of `on`, `key` and `keys` or more than one, or on any guard every index applies
317
291
  */
318
- declare function plainIndex<Name extends string, T extends EastType, const S extends RecordIndexSpec<T>>(name: Name, rec: RecordDef<T>, spec: S, config?: {
292
+ export declare function plainDefinition(constructor: IndexConstructor, name: string, rec: RecordDef, spec: {
293
+ readonly on?: readonly string[];
294
+ readonly key?: IndexFunction;
295
+ readonly keys?: IndexFunction;
296
+ readonly value?: IndexFunction;
297
+ }, config: {
319
298
  runner?: FunctionRunner;
320
- }): RecordIndexDef<Name, T, IndexKeyOf<S, T>, ProjectionOf<S>, IndexOn<S>>;
321
- /**
322
- * Defines an interval index over a record: the events overlapping a half-open
323
- * time window `[from, to)`, carry-in events and those spanning the whole window
324
- * among them, each once, without day fan-out or a guessed lookback.
325
- *
326
- * It is an ordinary maintained index whose keys the SDK generates: each event
327
- * is filed under at most three entries a combination of its leading fields,
328
- * independent of its duration — a centred interval tree laid along the index's
329
- * key order. A record Slice reads a window through it as one start range and
330
- * at most 54 carry-in ranges a combination. A missing start is the backlog,
331
- * selectable as Unset; a missing or non-positive end is an instant.
332
- *
333
- * @typeParam Name - Index name (literal type)
334
- * @typeParam T - The owning record's state type (a Dict of Struct rows)
335
- * @typeParam S - The spec as written, from which the index key type is read
336
- * @param name - Index name: an identifier, never `primary`, declared once on the record
337
- * @param rec - The record to index
338
- * @param spec - `from` and `to`, the row's DateTime (or Option<DateTime>)
339
- * fields an event starts and ends at, and optional exact leading `on` fields
340
- * @param config - Optional runner selection (known runtimes only)
341
- * @returns A RecordIndexDef to pass to `e3.package`, its key `{ …on, __interval, [from] }`
342
- * @throws {Error} When `from` or `to` is not a DateTime field, when the start or
343
- * the reserved `__interval` is a leading field, or on any guard
344
- * `e3.recordIndex` applies to a name and a record
345
- *
346
- * @example
347
- * ```ts
348
- * const events = e3.record('events', DictType(StringType, EventRow), new Map());
349
- * // The events of a window, whatever their status:
350
- * const byTime = e3.recordIndex.interval('by_time', events, { from: 'start', to: 'end' });
351
- * // A choice of statuses and the window, in one read:
352
- * const byStatusTime = e3.recordIndex.interval('by_status_time', events, {
353
- * on: ['status'], from: 'start', to: 'end',
354
- * });
355
- * ```
356
- */
357
- declare function intervalIndex<Name extends string, T extends EastType, const S extends IntervalIndexSpec<T>>(name: Name, rec: RecordDef<T>, spec: S, config?: {
358
- runner?: FunctionRunner;
359
- }): RecordIndexDef<Name, T, IndexKeyOf<S, T>, NullType, IndexOn<S>> & {
360
- interval: {
361
- readonly from: S['from'];
362
- readonly to: S['to'];
363
- };
364
- };
299
+ } | undefined): RecordIndexDef;
365
300
  /** The box an area index declares, as its definition carries it, `cell` rounded to its power of two. */
366
301
  export interface AreaIndexOf<S> {
367
302
  /** The field holding the box's `x`. */
@@ -381,60 +316,6 @@ export interface AreaIndexOf<S> {
381
316
  /** The finest cell's side in world units: the declared `cell`, rounded down to a power of two. */
382
317
  readonly cell: number;
383
318
  }
384
- /**
385
- * Defines an area index over a record: the rows whose box meets a window, each
386
- * once, the 2D twin of {@link intervalIndex | the interval index}.
387
- *
388
- * It is an ordinary maintained index whose keys the SDK generates: a loose
389
- * quadtree laid along a Z-order curve. The domain is the square
390
- * `[−cell·2²⁷, cell·2²⁷)` world units in 29 levels; each row is filed once,
391
- * under the deepest level whose cell is at least twice its box's larger side,
392
- * in the cell holding its box's centre, its key `{ …on, __area }`. A row whose
393
- * `x` or `y` is `none` is unplaced, `__area` −1; one outside the domain, not
394
- * finite, or larger than half the domain is filed under the root. A record Slice
395
- * reads a window through it as at most 266 disjoint searches a combination of
396
- * its leading fields, every row whose box meets the window among their rows.
397
- *
398
- * It carries its rows: each entry's projection is the whole row, so a window
399
- * reads the index alone and no record segment. It takes no `value`.
400
- *
401
- * @typeParam Name - Index name (literal type)
402
- * @typeParam T - The owning record's state type (a Dict of Struct rows)
403
- * @typeParam S - The spec as written, from which the index key type is read
404
- * @param name - Index name: an identifier, never `primary`, declared once on the record
405
- * @param rec - The record to index
406
- * @param spec - The box's fields — `x`, `y` (Float, or Option<Float> for a row
407
- * that may be unplaced), `width` and `height` (Float, or neither for a point)
408
- * — `at` (`"corner"`, the default, or `"centre"`), `cell` (the finest cell's
409
- * side in world units, rounded down to a power of two) and optional exact
410
- * leading `on` fields
411
- * @param config - Optional runner selection (known runtimes only)
412
- * @returns A RecordIndexDef to pass to `e3.package`, its key `{ …on, __area }`,
413
- * its projection the row
414
- * @throws {Error} When a field is not of its option's type, naming the option,
415
- * the field and its type; when `x` and `y` are not both Options or neither,
416
- * or `width` and `height` are not given together; when `cell` is not a
417
- * positive number; when the row has a field named `__area`; or on any guard
418
- * `e3.recordIndex` applies to a name and a record
419
- *
420
- * @example
421
- * ```ts
422
- * const racks = e3.record('racks', DictType(StringType, RackRow), new Map());
423
- * // The window, whatever the rail chooses:
424
- * const racksByArea = e3.recordIndex.area('racks_by_area', racks, {
425
- * x: 'x', y: 'y', width: 'w', height: 'h', at: 'centre', cell: 0.01,
426
- * });
427
- * // Beside it, a choice of halls and the window in one read:
428
- * const racksByHallArea = e3.recordIndex.area('racks_by_hall_area', racks, {
429
- * on: ['hall'], x: 'x', y: 'y', width: 'w', height: 'h', at: 'centre', cell: 0.01,
430
- * });
431
- * ```
432
- */
433
- declare function areaIndex<Name extends string, T extends EastType, const S extends AreaIndexSpec<T>>(name: Name, rec: RecordDef<T>, spec: S, config?: {
434
- runner?: FunctionRunner;
435
- }): RecordIndexDef<Name, T, IndexKeyOf<S, T>, RowOf<T>, IndexOn<S>> & {
436
- area: AreaIndexOf<S>;
437
- };
438
319
  /** The fields and tile a series or summary index files by, as its definition carries them. */
439
320
  export interface TimeTileOf<S> {
440
321
  /** The field naming what an event is on. */
@@ -452,107 +333,4 @@ export interface TimeTileOf<S> {
452
333
  /** The tile. */
453
334
  readonly tile: RecordTile;
454
335
  }
455
- /**
456
- * Defines a series index over a record (#1039): its events filed by the key
457
- * they are on — a Plan's resource — and by each time tile they touch, so the
458
- * events of a block of keys over a tile are one contiguous range, a cell.
459
- *
460
- * It is an ordinary maintained index whose keys the SDK generates: an entry per
461
- * tile an event `[from, to)` overlaps, `{ …on, __tile, <key> }`, the tile its
462
- * start in UTC. An instant — no end, or one at or before its start — is under
463
- * the one tile holding it; a row with no start is under none. An event touching
464
- * more than 4,096 tiles is refused where it is written, naming it and the tile.
465
- *
466
- * It carries its rows: each entry's projection is the whole row, so a cell
467
- * reads the index alone and no record segment. It takes no `value`.
468
- *
469
- * @typeParam Name - Index name (literal type)
470
- * @typeParam T - The owning record's state type (a Dict of Struct rows)
471
- * @typeParam S - The spec as written, from which the index key type is read
472
- * @param name - Index name: an identifier, never `primary`, declared once on the record
473
- * @param rec - The record to index
474
- * @param spec - `key`, the field naming what an event is on (any but a Set);
475
- * `from` and `to`, its DateTime (or Option<DateTime>) start and end fields;
476
- * `tile`, `day`, `week`, `month`, `quarter` or `year`; and optional exact
477
- * leading `on` fields
478
- * @param config - Optional runner selection (known runtimes only)
479
- * @returns A RecordIndexDef to pass to `e3.package`, its key `{ …on, __tile, <key> }`, its projection the row
480
- * @throws {Error} When a field is not of its option's type, naming the option,
481
- * the field and its type; when the tile is not one of the five; when the row
482
- * has a field named `__tile`; or on any guard `e3.recordIndex` applies to a
483
- * name and a record
484
- *
485
- * @example
486
- * ```ts
487
- * const jobs = e3.record('jobs', DictType(StringType, JobRow), new Map());
488
- * // The jobs on each press, a week at a time:
489
- * const jobsByPressWeek = e3.recordIndex.series('jobs_by_press_week', jobs, {
490
- * key: 'press', from: 'start', to: 'end', tile: 'week',
491
- * });
492
- * ```
493
- */
494
- declare function seriesIndex<Name extends string, T extends EastType, const S extends SeriesIndexSpec<T>>(name: Name, rec: RecordDef<T>, spec: S, config?: {
495
- runner?: FunctionRunner;
496
- }): RecordIndexDef<Name, T, IndexKeyOf<S, T>, RowOf<T>, IndexOn<S>> & {
497
- series: TimeTileOf<S>;
498
- };
499
- /**
500
- * Defines a summary index over a record (#1039): under each key and time tile
501
- * of a series index, how many rows touch the tile and the milliseconds of it
502
- * they cover — what a zoomed-out view draws where its events are too many to
503
- * read.
504
- *
505
- * Its entries are `{ ik: { …on, __tile, <key> }, k: Null }` → `{ count, ms }`,
506
- * one per key a row touches, standing for every row that does. A write changes
507
- * them by adding what its rows took away and gave, summed — its program reads
508
- * the record, never the summary — and the apply drops a total whose count
509
- * reaches zero, so a maintained summary equals the one a reindex sums, byte for
510
- * byte. The totals are Integers, so the sum is exact in any order.
511
- *
512
- * An event's share of a tile is the milliseconds of it the event overlaps, and
513
- * its shares add up to its length; an instant counts in the tile holding it and
514
- * covers none of it. A row with no start counts in no tile. An event touching
515
- * more than 4,096 tiles is refused where it is written, naming it and the tile.
516
- *
517
- * @typeParam Name - Index name (literal type)
518
- * @typeParam T - The owning record's state type (a Dict of Struct rows)
519
- * @typeParam S - The spec as written, from which the index key type is read
520
- * @param name - Index name: an identifier, never `primary`, declared once on the record
521
- * @param rec - The record to total
522
- * @param spec - `key`, `from`, `to` and `tile`, as a series index takes them,
523
- * and optional exact leading `on` fields
524
- * @param config - Optional runner selection (known runtimes only)
525
- * @returns A RecordIndexDef to pass to `e3.package`, its key `{ …on, __tile, <key> }`, its value the totals
526
- * @throws {Error} As {@link seriesIndex} does
527
- *
528
- * @example
529
- * ```ts
530
- * const jobs = e3.record('jobs', DictType(StringType, JobRow), new Map());
531
- * // How busy each press is, a month at a time:
532
- * const jobsByPressMonth = e3.recordIndex.summary('jobs_by_press_month', jobs, {
533
- * key: 'press', from: 'start', to: 'end', tile: 'month',
534
- * });
535
- * ```
536
- */
537
- declare function summaryIndex<Name extends string, T extends EastType, const S extends SummaryIndexSpec<T>>(name: Name, rec: RecordDef<T>, spec: S, config?: {
538
- runner?: FunctionRunner;
539
- }): RecordIndexDef<Name, T, IndexKeyOf<S, T>, typeof RecordSummaryTotalsType, IndexOn<S>> & {
540
- summary: TimeTileOf<S>;
541
- };
542
- /**
543
- * Defines a secondary index over a record — `e3.recordIndex(name, record, {
544
- * on | key | keys, value? })`, an order to page in — and, as its own
545
- * constructors, the indexes that answer more than an order:
546
- * `e3.recordIndex.interval` (the events overlapping a time window),
547
- * `e3.recordIndex.area` (the boxes meeting a window), `e3.recordIndex.series`
548
- * (the events of a block of keys over a span of time tiles) and
549
- * `e3.recordIndex.summary` (their totals per key and tile).
550
- */
551
- export declare const recordIndex: typeof plainIndex & {
552
- interval: typeof intervalIndex;
553
- area: typeof areaIndex;
554
- series: typeof seriesIndex;
555
- summary: typeof summaryIndex;
556
- };
557
- export {};
558
336
  //# sourceMappingURL=record-index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"record-index.d.ts","sourceRoot":"","sources":["../../src/record-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;GAeG;AAE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