@elaraai/e3 1.0.107 → 1.0.109
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/dist/src/export.d.ts.map +1 -1
- package/dist/src/export.js +13 -6
- package/dist/src/export.js.map +1 -1
- package/dist/src/export.spec.js +25 -3
- package/dist/src/export.spec.js.map +1 -1
- package/dist/src/function.d.ts +136 -57
- package/dist/src/function.d.ts.map +1 -1
- package/dist/src/function.js +47 -12
- package/dist/src/function.js.map +1 -1
- package/dist/src/function.spec.d.ts +3 -1
- package/dist/src/function.spec.d.ts.map +1 -1
- package/dist/src/function.spec.js +246 -3
- package/dist/src/function.spec.js.map +1 -1
- package/dist/src/index-input.d.ts +162 -0
- package/dist/src/index-input.d.ts.map +1 -0
- package/dist/src/index-input.js +216 -0
- package/dist/src/index-input.js.map +1 -0
- package/dist/src/index-input.spec.d.ts +6 -0
- package/dist/src/index-input.spec.d.ts.map +1 -0
- package/dist/src/index-input.spec.js +269 -0
- package/dist/src/index-input.spec.js.map +1 -0
- package/dist/src/index-read.d.ts +428 -0
- package/dist/src/index-read.d.ts.map +1 -0
- package/dist/src/index-read.js +747 -0
- package/dist/src/index-read.js.map +1 -0
- package/dist/src/index-read.spec.d.ts +6 -0
- package/dist/src/index-read.spec.d.ts.map +1 -0
- package/dist/src/index-read.spec.js +1447 -0
- package/dist/src/index-read.spec.js.map +1 -0
- package/dist/src/index.d.ts +10 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/package.d.ts.map +1 -1
- package/dist/src/package.js +3 -4
- package/dist/src/package.js.map +1 -1
- package/dist/src/record-area.d.ts +12 -0
- package/dist/src/record-area.d.ts.map +1 -1
- package/dist/src/record-area.js +26 -0
- package/dist/src/record-area.js.map +1 -1
- package/dist/src/record-area.spec.js +4 -14
- package/dist/src/record-area.spec.js.map +1 -1
- package/dist/src/record-builders.d.ts +39 -14
- package/dist/src/record-builders.d.ts.map +1 -1
- package/dist/src/record-builders.js.map +1 -1
- package/dist/src/record-entries.spec.js +2 -15
- package/dist/src/record-entries.spec.js.map +1 -1
- package/dist/src/record-index.d.ts +11 -5
- package/dist/src/record-index.d.ts.map +1 -1
- package/dist/src/record-index.js.map +1 -1
- package/dist/src/record-interval.d.ts +7 -0
- package/dist/src/record-interval.d.ts.map +1 -1
- package/dist/src/record-interval.js +7 -0
- package/dist/src/record-interval.js.map +1 -1
- package/dist/src/record-nested-programs.d.ts +63 -511
- package/dist/src/record-nested-programs.d.ts.map +1 -1
- package/dist/src/record-nested-programs.js +403 -222
- package/dist/src/record-nested-programs.js.map +1 -1
- package/dist/src/record-nested.d.ts +60 -10
- package/dist/src/record-nested.d.ts.map +1 -1
- package/dist/src/record-nested.js +65 -23
- package/dist/src/record-nested.js.map +1 -1
- package/dist/src/record-nested.spec.js +113 -34
- package/dist/src/record-nested.spec.js.map +1 -1
- package/dist/src/record-series.spec.js +6 -31
- package/dist/src/record-series.spec.js.map +1 -1
- package/dist/src/record.d.ts +9 -0
- package/dist/src/record.d.ts.map +1 -1
- package/dist/src/record.js +14 -0
- package/dist/src/record.js.map +1 -1
- package/dist/src/task.d.ts +28 -16
- package/dist/src/task.d.ts.map +1 -1
- package/dist/src/task.js +33 -5
- package/dist/src/task.js.map +1 -1
- package/dist/src/test-helpers.d.ts +35 -0
- package/dist/src/test-helpers.d.ts.map +1 -0
- package/dist/src/test-helpers.js +56 -0
- package/dist/src/test-helpers.js.map +1 -0
- package/dist/src/types.d.ts +86 -13
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* A reader for each kind of index, inside a task or a function
|
|
7
|
+
* (east-workspace#1618).
|
|
8
|
+
*
|
|
9
|
+
* With `e3.index` a body holds an index's entries, `Dict<{ ik, k }, P>`, and
|
|
10
|
+
* with a range read it reads a run of them. For a plain index that is the
|
|
11
|
+
* whole read: the rows under a key are one run. The indexes a planning board
|
|
12
|
+
* reads are not one run — a series index files each event once, at the level
|
|
13
|
+
* its length fits, so a key's events over a span are a run a level; an
|
|
14
|
+
* interval index answers a window with a run of starts and one a tree node
|
|
15
|
+
* above the window's first instant — and each files more under those runs than
|
|
16
|
+
* a window holds. A reader knows its kind's runs, and tests what they hold.
|
|
17
|
+
*
|
|
18
|
+
* A reader answers a **read** ({@link IndexRead}), which gives the rows its
|
|
19
|
+
* words say and no others, each once, in the index's own order: `each` runs a
|
|
20
|
+
* body for each, a segment in memory at a time, and `collect` gives them as a
|
|
21
|
+
* Dict by the row's key. A read of several runs reads them in the order the
|
|
22
|
+
* index holds them, so its rows come as a walk of the index would meet them.
|
|
23
|
+
*
|
|
24
|
+
* The runs are written as East, over the functions that file each index
|
|
25
|
+
* (`record-tiles.ts`, `record-interval.ts`), so they run on every runner, and
|
|
26
|
+
* are the runs a page's reader of the kind reads (east-ui's
|
|
27
|
+
* `platform/slice/record-interval.ts`, `record-series.ts`).
|
|
28
|
+
*
|
|
29
|
+
* @packageDocumentation
|
|
30
|
+
*/
|
|
31
|
+
import { ArrayType, DateTimeType, DictType, Expr, FloatType, type BlockBuilder, type EastType, type ExprType, type KeyBound, type StructType, type SubtypeExprOrValue } from '@elaraai/east';
|
|
32
|
+
import { RecordNestedTotalsType, RecordSummaryTotalsType, type NestedPathType } from '@elaraai/e3-types';
|
|
33
|
+
import { type ChildOf, type DictKeyOf, type SeriesItems, type SeriesRecursive, type SeriesRollupInput, type SeriesRows, type SeriesValues } from './record-nested.js';
|
|
34
|
+
import { type RecordTile } from './record-tiles.js';
|
|
35
|
+
import type { IndexInputDef, RecordIndexDef } from './types.js';
|
|
36
|
+
/**
|
|
37
|
+
* A read of an index: the rows a reader's words hold, each once, in the
|
|
38
|
+
* index's own order.
|
|
39
|
+
*
|
|
40
|
+
* @typeParam P - What the read gives for a row: what the index carries
|
|
41
|
+
* @typeParam K - What it gives beside it: the row's key, or a summary's tile
|
|
42
|
+
*/
|
|
43
|
+
export interface IndexRead<P extends EastType = EastType, K extends EastType = EastType> {
|
|
44
|
+
/**
|
|
45
|
+
* Runs a body once for each row the read holds, in the index's own order,
|
|
46
|
+
* a segment of the index in memory at a time.
|
|
47
|
+
*
|
|
48
|
+
* It takes no label and runs to its end: a body skips a row with `$.if`,
|
|
49
|
+
* and leaves the function with `$.return`.
|
|
50
|
+
*
|
|
51
|
+
* @typeParam Ret - The return type of the function the read is in
|
|
52
|
+
* @param $ - The block the read is in
|
|
53
|
+
* @param body - Given what the index carries for the row, and the row's key
|
|
54
|
+
*/
|
|
55
|
+
each<Ret>($: BlockBuilder<Ret>, body: ($: BlockBuilder<Ret>, carried: ExprType<P>, key: ExprType<K>) => void): void;
|
|
56
|
+
/**
|
|
57
|
+
* The rows the read holds, as a new Dict by the row's key of what the index
|
|
58
|
+
* carries for it.
|
|
59
|
+
*
|
|
60
|
+
* @typeParam Ret - The return type of the function the read is in
|
|
61
|
+
* @param $ - The block the read is in
|
|
62
|
+
* @returns The Dict, held in memory whole
|
|
63
|
+
*/
|
|
64
|
+
collect<Ret>($: BlockBuilder<Ret>): ExprType<DictType<K, P>>;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* A plain index's readers — `index.on`, `index.key`, `index.keys` — and those
|
|
68
|
+
* of the indexes e3 keeps beside one, a nested series index's span and an
|
|
69
|
+
* entries index's lean rows.
|
|
70
|
+
*
|
|
71
|
+
* @typeParam IK - The index's key type
|
|
72
|
+
* @typeParam P - What the index carries
|
|
73
|
+
* @typeParam K - The row's key type; for a span, whose entry stands for every row of its key and names none, the
|
|
74
|
+
* index key, which a read gives in a row's key's place
|
|
75
|
+
*/
|
|
76
|
+
export interface PlainReaders<IK extends EastType = EastType, P extends EastType = EastType, K extends EastType = EastType> {
|
|
77
|
+
/**
|
|
78
|
+
* The rows filed under an index key, or under a leading part of one:
|
|
79
|
+
* `{ owner }` of an index on `['owner', 'due']`. One run.
|
|
80
|
+
*
|
|
81
|
+
* @param key - The index key, or its first fields
|
|
82
|
+
* @returns The read
|
|
83
|
+
* @throws {Error} Where the function is built, when the key is no leading part of the index's
|
|
84
|
+
*/
|
|
85
|
+
of(key: KeyBound<IK>): IndexRead<P, K>;
|
|
86
|
+
/**
|
|
87
|
+
* The rows from one index key up to another: `from` and every key after it
|
|
88
|
+
* that is before `to`. One run. An end left out is that end of the index.
|
|
89
|
+
*
|
|
90
|
+
* @param bounds - The two index keys, each whole or its first fields
|
|
91
|
+
* @returns The read
|
|
92
|
+
* @throws {Error} Where the function is built, when a bound is no leading part of the index's key
|
|
93
|
+
*/
|
|
94
|
+
between(bounds: {
|
|
95
|
+
from?: KeyBound<IK>;
|
|
96
|
+
to?: KeyBound<IK>;
|
|
97
|
+
}): IndexRead<P, K>;
|
|
98
|
+
}
|
|
99
|
+
/** The leading fields a generated index's reader takes: `on`, each field exactly, where the index is led by any. */
|
|
100
|
+
export type LeadingOn<IK> = IK extends StructType<{
|
|
101
|
+
on: StructType<infer L>;
|
|
102
|
+
}> ? keyof L extends never ? {
|
|
103
|
+
on?: Record<never, never>;
|
|
104
|
+
} : {
|
|
105
|
+
on: {
|
|
106
|
+
[F in keyof L]: SubtypeExprOrValue<L[F]>;
|
|
107
|
+
};
|
|
108
|
+
} : {
|
|
109
|
+
on?: Readonly<Record<string, unknown>>;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* What a reader that takes the leading fields alone is given: `{ on }`, each
|
|
113
|
+
* field exactly, which an index led by none may leave out.
|
|
114
|
+
*/
|
|
115
|
+
export type LeadingArgs<IK> = IK extends StructType<{
|
|
116
|
+
on: StructType<infer L>;
|
|
117
|
+
}> ? keyof L extends never ? [where?: LeadingOn<IK>] : [where: LeadingOn<IK>] : [where?: LeadingOn<IK>];
|
|
118
|
+
/** A half-open window of time, `[from, to)`. */
|
|
119
|
+
export interface TimeWindow {
|
|
120
|
+
/** The window's first instant. */
|
|
121
|
+
from: SubtypeExprOrValue<DateTimeType>;
|
|
122
|
+
/** The instant it ends before. */
|
|
123
|
+
to: SubtypeExprOrValue<DateTimeType>;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* An interval index's readers (`index.interval`).
|
|
127
|
+
*
|
|
128
|
+
* @typeParam IK - The index's key type, `{ on, node, at }`
|
|
129
|
+
* @typeParam P - What the index carries
|
|
130
|
+
* @typeParam K - The row's key type
|
|
131
|
+
*/
|
|
132
|
+
export interface IntervalReaders<IK extends EastType = EastType, P extends EastType = EastType, K extends EastType = EastType> {
|
|
133
|
+
/**
|
|
134
|
+
* The rows that overlap `[from, to)`: an event that ends at `from` is
|
|
135
|
+
* outside, an instant at `from` is inside and one at `to` outside, and an
|
|
136
|
+
* event with no end, or one at or before its start, is an instant. A window
|
|
137
|
+
* that ends at or before its start holds none. At most 55 runs, in the
|
|
138
|
+
* index's order: the starts inside the window, then one a tree node above
|
|
139
|
+
* its first instant, from the root's down to its leaf's.
|
|
140
|
+
*
|
|
141
|
+
* @param window - The leading fields, each exactly, and the window
|
|
142
|
+
* @returns The read
|
|
143
|
+
* @throws {Error} Where the function is built, when a leading field is left out or of another type, naming them
|
|
144
|
+
*/
|
|
145
|
+
overlapping(window: LeadingOn<IK> & TimeWindow): IndexRead<P, K>;
|
|
146
|
+
/**
|
|
147
|
+
* The rows with no start: the backlog. One run.
|
|
148
|
+
*
|
|
149
|
+
* @param where - The leading fields, each exactly; left out for an index led by none
|
|
150
|
+
* @returns The read
|
|
151
|
+
* @throws {Error} Where the function is built, when the start is not an Option field — every row then has one — or
|
|
152
|
+
* a leading field is left out or of another type
|
|
153
|
+
*/
|
|
154
|
+
unset(...where: LeadingArgs<IK>): IndexRead<P, K>;
|
|
155
|
+
}
|
|
156
|
+
/** A window of one key's time: the key the events are on, and `[from, to)`. */
|
|
157
|
+
export type KeyWindow<IK> = TimeWindow & {
|
|
158
|
+
/** The key the events are on: a Plan's resource. */
|
|
159
|
+
key: IK extends StructType<{
|
|
160
|
+
key: infer KT extends EastType;
|
|
161
|
+
}> ? SubtypeExprOrValue<KT> : unknown;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* A series index's readers (`index.series`).
|
|
165
|
+
*
|
|
166
|
+
* @typeParam IK - The index's key type, `{ on, key, level, tile }`
|
|
167
|
+
* @typeParam P - What the index carries: the row
|
|
168
|
+
* @typeParam K - The row's key type
|
|
169
|
+
*/
|
|
170
|
+
export interface SeriesReaders<IK extends EastType = EastType, P extends EastType = EastType, K extends EastType = EastType> {
|
|
171
|
+
/**
|
|
172
|
+
* The events on `key` that overlap `[from, to)`, by the interval index's
|
|
173
|
+
* edges: an event that ends at `from` is outside, an instant at `from` is
|
|
174
|
+
* inside and one at `to` outside. A window that ends at or before its start
|
|
175
|
+
* holds none. One run a level, in the index's order of its levels — East's
|
|
176
|
+
* order of their names: day, month, quarter, week, year — so the events come
|
|
177
|
+
* in the index's order, which across levels is not time order.
|
|
178
|
+
*
|
|
179
|
+
* @param window - The leading fields, each exactly, the key, and the window
|
|
180
|
+
* @returns The read: each event's row once, and its key
|
|
181
|
+
* @throws {Error} Where the function is built, when a leading field is left out or of another type, naming them
|
|
182
|
+
*/
|
|
183
|
+
events(window: LeadingOn<IK> & KeyWindow<IK>): IndexRead<P, K>;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* A summary index's readers (`index.summary`).
|
|
187
|
+
*
|
|
188
|
+
* @typeParam IK - The index's key type, `{ on, key, tile }`
|
|
189
|
+
*/
|
|
190
|
+
export interface SummaryReaders<IK extends EastType = EastType> {
|
|
191
|
+
/**
|
|
192
|
+
* The totals of each tile of `key` that overlaps `[from, to)`: how many
|
|
193
|
+
* rows touch the tile, and the milliseconds of it they cover. A window that
|
|
194
|
+
* ends at or before its start holds none. One run.
|
|
195
|
+
*
|
|
196
|
+
* @param window - The leading fields, each exactly, the key, and the window
|
|
197
|
+
* @returns The read: each tile's totals, and the tile's start in place of a row's key
|
|
198
|
+
* @throws {Error} Where the function is built, when a leading field is left out or of another type, naming them
|
|
199
|
+
*/
|
|
200
|
+
totals(window: LeadingOn<IK> & KeyWindow<IK>): IndexRead<typeof RecordSummaryTotalsType, DateTimeType>;
|
|
201
|
+
}
|
|
202
|
+
/** A window of the plane: its minimum corner, and its width and height. */
|
|
203
|
+
export interface AreaWindow {
|
|
204
|
+
/** The window's least `x`. */
|
|
205
|
+
x: SubtypeExprOrValue<FloatType>;
|
|
206
|
+
/** Its least `y`. */
|
|
207
|
+
y: SubtypeExprOrValue<FloatType>;
|
|
208
|
+
/** Its width; a negative one holds no row. */
|
|
209
|
+
width: SubtypeExprOrValue<FloatType>;
|
|
210
|
+
/** Its height; a negative one holds no row. */
|
|
211
|
+
height: SubtypeExprOrValue<FloatType>;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* An area index's readers (`index.area`).
|
|
215
|
+
*
|
|
216
|
+
* @typeParam IK - The index's key type, `{ on, area }`
|
|
217
|
+
* @typeParam P - What the index carries: the row
|
|
218
|
+
* @typeParam K - The row's key type
|
|
219
|
+
*/
|
|
220
|
+
export interface AreaReaders<IK extends EastType = EastType, P extends EastType = EastType, K extends EastType = EastType> {
|
|
221
|
+
/**
|
|
222
|
+
* The rows whose box meets the window, its edges included: a box that
|
|
223
|
+
* touches the window is in it. A cell at each level coarser than the one
|
|
224
|
+
* whose cells are an eighth of the window's larger side, and a range of
|
|
225
|
+
* cells at that level: at most 266 runs, as a page's read of a viewport,
|
|
226
|
+
* read in the index's order, a cell before the cells inside it. A zero is
|
|
227
|
+
* one edge whatever its sign: a width of `-0.0` is a width of none.
|
|
228
|
+
*
|
|
229
|
+
* @param window - The leading fields, each exactly, and the window
|
|
230
|
+
* @returns The read: each row once, and its key
|
|
231
|
+
* @throws {Error} Where the function is built, when a leading field is left out or of another type, naming them;
|
|
232
|
+
* an East runtime error when the window is not finite
|
|
233
|
+
*/
|
|
234
|
+
within(window: LeadingOn<IK> & AreaWindow): IndexRead<P, K>;
|
|
235
|
+
/**
|
|
236
|
+
* The rows not yet placed: those whose `x` or `y` is none. One run.
|
|
237
|
+
*
|
|
238
|
+
* @param where - The leading fields, each exactly; left out for an index led by none
|
|
239
|
+
* @returns The read
|
|
240
|
+
* @throws {Error} Where the function is built, when the box's place is no Option field — every row is then
|
|
241
|
+
* placed — or a leading field is left out or of another type
|
|
242
|
+
*/
|
|
243
|
+
unplaced(...where: LeadingArgs<IK>): IndexRead<P, K>;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* An entries index's readers (`index.entries`).
|
|
247
|
+
*
|
|
248
|
+
* @typeParam IK - The index's key type: the field's key
|
|
249
|
+
* @typeParam P - What the index carries: the field's value
|
|
250
|
+
* @typeParam K - The row's key type
|
|
251
|
+
*/
|
|
252
|
+
export interface EntriesReaders<IK extends EastType = EastType, P extends EastType = EastType, K extends EastType = EastType> {
|
|
253
|
+
/**
|
|
254
|
+
* A key's entry on every row that holds one: the value the row's field
|
|
255
|
+
* holds under the key. One run.
|
|
256
|
+
*
|
|
257
|
+
* @param key - The field's key, whole
|
|
258
|
+
* @returns The read: each entry's value, and its row's key
|
|
259
|
+
* @throws {Error} Where the function is built, when the key is not of the field's key type
|
|
260
|
+
*/
|
|
261
|
+
of(key: SubtypeExprOrValue<IK>): IndexRead<P, K>;
|
|
262
|
+
}
|
|
263
|
+
/** A node of a row's tree, and a window of its time: a collection, by its place, a row, and the path down to the node. */
|
|
264
|
+
export interface NestedWindow<K extends EastType = EastType, Place extends readonly string[] = readonly string[]> extends TimeWindow {
|
|
265
|
+
/** The collection's place: its field names from the row down (`['jobs']`, `['members', 'load']`), a recursive step adding none. */
|
|
266
|
+
collection: Place;
|
|
267
|
+
/** The record row's key. */
|
|
268
|
+
row: SubtypeExprOrValue<K>;
|
|
269
|
+
/**
|
|
270
|
+
* The child rows' keys from the row down to the node the read is about; left out, the row itself. Each is an id of
|
|
271
|
+
* the index's (#1540): the key, in its own type, under the case of the child rows it is a key of — their place's
|
|
272
|
+
* field names joined, as `[variant('members', memberKey)]`, then `variant('members.tasks', taskKey)`.
|
|
273
|
+
*/
|
|
274
|
+
path?: SubtypeExprOrValue<ArrayType<EastType>>;
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* The places of the collections a declaration files: each one's field names
|
|
278
|
+
* from the row down, a recursive field adding none.
|
|
279
|
+
*/
|
|
280
|
+
export type NestedPlaceOf<C> = unknown extends C ? readonly string[] : {
|
|
281
|
+
[F in keyof C & string]: C[F] extends SeriesRows<infer Below> ? readonly [F, ...NestedPlaceOf<Below>] : C[F] extends SeriesRecursive ? never : readonly [F];
|
|
282
|
+
}[keyof C & string];
|
|
283
|
+
/** What a collection at a place holds: an item's struct, or a value. */
|
|
284
|
+
export type NestedItemAt<V, C, Place> = Place extends readonly [infer F extends string, ...infer Rest] ? F extends keyof C ? C[F] extends SeriesRows<infer Below> ? NestedItemAt<ChildOf<V, F>, Below, Rest> : ChildOf<V, F> extends EastType ? ChildOf<V, F> : EastType : EastType : EastType;
|
|
285
|
+
/** What a read names a collection's items by: a thing people drag by its id, in its collection's own key type (#1540), a value by its instant. */
|
|
286
|
+
export type NestedKeyAt<V, C, Place> = Place extends readonly [infer F extends string, ...infer Rest] ? F extends keyof C ? C[F] extends SeriesRows<infer Below> ? NestedKeyAt<ChildOf<V, F>, Below, Rest> : C[F] extends SeriesValues ? DateTimeType : C[F] extends SeriesItems ? DictKeyOf<V, F> : EastType : EastType : EastType;
|
|
287
|
+
/**
|
|
288
|
+
* An item of a subtree, as a read names it and the index's key does: the
|
|
289
|
+
* child rows' keys from the node down to the node holding it — a path, `end`
|
|
290
|
+
* or a `step` and the rest — and its id, each an id of the index's (#1540),
|
|
291
|
+
* under its collection's case.
|
|
292
|
+
*/
|
|
293
|
+
export type NestedUnderType = StructType<{
|
|
294
|
+
path: ReturnType<typeof NestedPathType<EastType>>;
|
|
295
|
+
id: EastType;
|
|
296
|
+
}>;
|
|
297
|
+
/**
|
|
298
|
+
* A nested series index's type for an item of a subtree, `{ path, id }`: what
|
|
299
|
+
* its `subtree` reader names each item by, as the index's own key holds it —
|
|
300
|
+
* the type to collect such a read under.
|
|
301
|
+
*
|
|
302
|
+
* @param index - The nested series index, as `record.indexes.<name>` gives it
|
|
303
|
+
* @returns The struct type: the child rows' keys from the node down, and the item's id, each an id of the index's
|
|
304
|
+
* @throws {Error} When the index is no nested series index
|
|
305
|
+
*/
|
|
306
|
+
export declare function NestedUnderType(index: Pick<RecordIndexDef, 'name' | 'nested' | 'keyType'>): NestedUnderType;
|
|
307
|
+
/**
|
|
308
|
+
* A nested series index's readers (`index.nested`): one for each run the
|
|
309
|
+
* index files of a node.
|
|
310
|
+
*
|
|
311
|
+
* @typeParam K - The record's key type
|
|
312
|
+
* @typeParam V - The record's row type
|
|
313
|
+
* @typeParam C - The index's collections, as declared
|
|
314
|
+
*/
|
|
315
|
+
export interface NestedReaders<K extends EastType = EastType, V = unknown, C = unknown> {
|
|
316
|
+
/**
|
|
317
|
+
* A node's own items, or values, that overlap `[from, to)`: an item timed
|
|
318
|
+
* `{ from, to }` as an interval index's row overlaps a window, a value or
|
|
319
|
+
* an instant where it is inside it. One run a level for items timed
|
|
320
|
+
* `{ from, to }`, in the index's order of its levels; one for values and
|
|
321
|
+
* instants.
|
|
322
|
+
*
|
|
323
|
+
* @param window - The collection, the row, the path to the node, and the window
|
|
324
|
+
* @returns The read: each item or value once, and its id or its instant
|
|
325
|
+
* @throws {Error} Where the function is built, when the index files no collection at the place, naming those it does
|
|
326
|
+
*/
|
|
327
|
+
items<const Place extends NestedPlaceOf<C>>(window: NestedWindow<K, Place>): IndexRead<NestedItemAt<V, C, Place>, NestedKeyAt<V, C, Place>>;
|
|
328
|
+
/**
|
|
329
|
+
* A node's totals of a collection, a summary tile at a time, for each tile
|
|
330
|
+
* that overlaps `[from, to)`: how many items touch it, the milliseconds of
|
|
331
|
+
* it they cover, and for numbers their sum, least, greatest and latest. One
|
|
332
|
+
* run.
|
|
333
|
+
*
|
|
334
|
+
* @param window - The collection, the row, the path to the node, and the window
|
|
335
|
+
* @returns The read: each tile's totals, and the tile's start
|
|
336
|
+
* @throws {Error} Where the function is built, when the index keeps no totals: it declares no `summary`
|
|
337
|
+
*/
|
|
338
|
+
totals(window: NestedWindow<K, NestedPlaceOf<C>>): IndexRead<typeof RecordNestedTotalsType, DateTimeType>;
|
|
339
|
+
/**
|
|
340
|
+
* A parent's subtotals of a collection of values by one of its rollups, at
|
|
341
|
+
* a level, for each tile that overlaps `[from, to)`. One run.
|
|
342
|
+
*
|
|
343
|
+
* @param window - The collection, the row, the path to the parent, the rollup as declared, the level — the
|
|
344
|
+
* index's tile where left out — and the window
|
|
345
|
+
* @returns The read: each tile's subtotal, and the tile's start
|
|
346
|
+
* @throws {Error} Where the function is built, when the collection keeps no subtotal by the rollup, naming those
|
|
347
|
+
* it does, or the index files at no such level
|
|
348
|
+
*/
|
|
349
|
+
subtotals(window: NestedWindow<K, NestedPlaceOf<C>> & {
|
|
350
|
+
rollup: SeriesRollupInput;
|
|
351
|
+
level?: RecordTile;
|
|
352
|
+
}): IndexRead<FloatType, DateTimeType>;
|
|
353
|
+
/**
|
|
354
|
+
* The items of every node beneath a node, of a collection rolled up, that
|
|
355
|
+
* overlap `[from, to)`. One run a level, in the index's order of its levels.
|
|
356
|
+
*
|
|
357
|
+
* @param window - The collection, the row, the path to the node, and the window
|
|
358
|
+
* @returns The read: each item once, and the keys from the node down to the one holding it with its id
|
|
359
|
+
* @throws {Error} Where the function is built, when the collection's items are not rolled up
|
|
360
|
+
*/
|
|
361
|
+
subtree<const Place extends NestedPlaceOf<C>>(window: NestedWindow<K, Place>): IndexRead<NestedItemAt<V, C, Place>, NestedUnderType>;
|
|
362
|
+
/**
|
|
363
|
+
* A node's totals of the items beneath it, of a collection rolled up, a
|
|
364
|
+
* summary tile at a time. One run.
|
|
365
|
+
*
|
|
366
|
+
* @param window - The collection, the row, the path to the node, and the window
|
|
367
|
+
* @returns The read: each tile's totals, and the tile's start
|
|
368
|
+
* @throws {Error} Where the function is built, when the collection's items are not rolled up, or the index
|
|
369
|
+
* declares no `summary`
|
|
370
|
+
*/
|
|
371
|
+
subtreeTotals(window: NestedWindow<K, NestedPlaceOf<C>>): IndexRead<typeof RecordNestedTotalsType, DateTimeType>;
|
|
372
|
+
}
|
|
373
|
+
/** A Dict record's key type. */
|
|
374
|
+
type RecordKeyOf<T> = T extends DictType<infer K extends EastType, unknown> ? K : EastType;
|
|
375
|
+
/** A Dict record's row type. */
|
|
376
|
+
type RecordRowOf<T> = T extends DictType<unknown, infer V extends EastType> ? V : EastType;
|
|
377
|
+
/**
|
|
378
|
+
* The readers of an index, by its kind: a series index's `events`, a summary
|
|
379
|
+
* index's `totals`, an interval index's `overlapping` and `unset`, an area
|
|
380
|
+
* index's `within` and `unplaced`, an entries index's `of`, a nested series
|
|
381
|
+
* index's `items`, `totals`, `subtotals`, `subtree` and `subtreeTotals`, and
|
|
382
|
+
* a plain index's `of` and `between`.
|
|
383
|
+
*
|
|
384
|
+
* What a read gives for a row is what the index carries as its record builds
|
|
385
|
+
* it (`RecordIndexDef`'s `Carried`): beside a nested series index or an
|
|
386
|
+
* entries index of the record, an index that carries nothing, or the row,
|
|
387
|
+
* carries the lean row, and its reads are typed by it.
|
|
388
|
+
*
|
|
389
|
+
* @typeParam D - The index, as `record.indexes.<name>` types it
|
|
390
|
+
*/
|
|
391
|
+
export type IndexReadersOf<D> = D extends RecordIndexDef<string, infer T, infer IK, EastType, readonly string[] | undefined, infer C> ? D extends {
|
|
392
|
+
readonly series: object;
|
|
393
|
+
} ? SeriesReaders<IK, C, RecordKeyOf<T>> : D extends {
|
|
394
|
+
readonly summary: object;
|
|
395
|
+
} ? SummaryReaders<IK> : D extends {
|
|
396
|
+
readonly interval: object;
|
|
397
|
+
} ? IntervalReaders<IK, C, RecordKeyOf<T>> : D extends {
|
|
398
|
+
readonly area: object;
|
|
399
|
+
} ? AreaReaders<IK, C, RecordKeyOf<T>> : D extends {
|
|
400
|
+
readonly entries: object;
|
|
401
|
+
} ? EntriesReaders<IK, C, RecordKeyOf<T>> : D extends {
|
|
402
|
+
readonly nested: {
|
|
403
|
+
readonly collections: infer N;
|
|
404
|
+
};
|
|
405
|
+
} ? NestedReaders<RecordKeyOf<T>, RecordRowOf<T>, N> : PlainReaders<IK, C, D extends {
|
|
406
|
+
readonly span: object;
|
|
407
|
+
} ? IK : RecordKeyOf<T>> : Record<never, never>;
|
|
408
|
+
/**
|
|
409
|
+
* An expression of an index's entries with the index's readers on it: the
|
|
410
|
+
* expression itself, still the entries.
|
|
411
|
+
*
|
|
412
|
+
* An expression carries one index's readers. One that carries this index's
|
|
413
|
+
* already — a body's parameter for it, or what `read` was given before — is
|
|
414
|
+
* given back as it is, its readers not made again; one that carries another
|
|
415
|
+
* index's is refused, naming it, which is how two indexes whose entries have
|
|
416
|
+
* one type are told apart. An expression that carries none is known by its
|
|
417
|
+
* type alone: the parameter of a task's own function for another index of the
|
|
418
|
+
* same type is read as this one's, and is the author's to keep apart.
|
|
419
|
+
*
|
|
420
|
+
* @param input - The index, as `e3.index` takes it
|
|
421
|
+
* @param entries - Its entries: the body's parameter for it, or any expression of the input's type
|
|
422
|
+
* @returns The expression, with the readers of the index's kind
|
|
423
|
+
* @throws {Error} When the expression is not of the index's entries' type, naming both, or carries another index's
|
|
424
|
+
* readers, naming that index
|
|
425
|
+
*/
|
|
426
|
+
export declare function readersOn(input: IndexInputDef, entries: unknown): Expr;
|
|
427
|
+
export {};
|
|
428
|
+
//# sourceMappingURL=index-read.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-read.d.ts","sourceRoot":"","sources":["../../src/index-read.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAC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