@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
@@ -0,0 +1,304 @@
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
+ * The nested series index's declaration (#1434): one a record,
7
+ * `index.nested({ collections, tile, summary })` among its indexes, whose
8
+ * `collections` declares every collection the record's rows nest, each
9
+ * field with a builder saying what it holds — things people drag (`items`), a
10
+ * value per instant (`values`), child rows (`rows`), or more rows of the row's
11
+ * own type (`recursive`).
12
+ *
13
+ * This module holds the builders, what TypeScript checks of a declaration from
14
+ * the record's type alone, and the declaration checked at run time into its
15
+ * groups of nodes ({@link NestedDeclaration}), refusing in words what does not
16
+ * fit. The East programs a checked declaration builds are
17
+ * `record-nested-programs.ts`'s.
18
+ *
19
+ * @packageDocumentation
20
+ */
21
+ import { DateTimeType, VariantType, isTypeEqual, printType, printTypeSummary, variant, } from '@elaraai/east';
22
+ import { optionField } from './record-keys.js';
23
+ // ── The builders ──────────────────────────────────────────────────────────────
24
+ /** Marks a {@link SeriesItems} declaration. */
25
+ const ITEMS = Symbol('SeriesItems');
26
+ /** Marks a {@link SeriesValues} declaration. */
27
+ const VALUES = Symbol('SeriesValues');
28
+ /** Marks a {@link SeriesRows} declaration. */
29
+ const ROWS = Symbol('SeriesRows');
30
+ /** Marks a {@link SeriesRecursive} declaration. */
31
+ const RECURSIVE = Symbol('SeriesRecursive');
32
+ /** Marks a {@link Misfit}, which no value carries. */
33
+ const MISFIT = Symbol('SeriesMisfit');
34
+ /**
35
+ * Declares a collection of things people drag: a Dict keyed by an id, its
36
+ * items' times the fields named.
37
+ *
38
+ * @typeParam T - The times, as written, their field names kept as literal types
39
+ * @typeParam O - The options, as written
40
+ * @param times - `{ from, to }`: its items' start and end fields, each a DateTime or an Option of one — an item with
41
+ * no start is filed nowhere; one with no end, or an end at or before its start, is an instant. `{ at }`: its items'
42
+ * instant field.
43
+ * @param options - `rollup: true`: each item is filed under every ancestor row too, so a parent reads its subtree's items
44
+ * in one range a level (its bands), and e3 keeps each subtree's totals a summary tile at a time
45
+ * @returns The declaration, for its field in `collections`
46
+ */
47
+ export function items(times, options) {
48
+ return { [ITEMS]: { times, options: options ?? {} } };
49
+ }
50
+ /**
51
+ * Declares a collection of values, one per instant: a Dict keyed by a
52
+ * DateTime, its key the instant.
53
+ *
54
+ * @typeParam O - The options, as written
55
+ * @param options - `rollup`: how a parent's subtotal of it is composed — e3 keeps every parent's, at every level from
56
+ * the index's tile up; one rollup, or several where several series aggregate it differently
57
+ * @returns The declaration, for its field in `collections`
58
+ */
59
+ export function values(options) {
60
+ return { [VALUES]: { options: options ?? {} } };
61
+ }
62
+ /**
63
+ * Declares a collection of child rows: a Dict keyed by an id, holding rows
64
+ * whose own collections are declared the same way.
65
+ *
66
+ * @typeParam C - The child rows' collections, as written
67
+ * @param collections - Each collection field of the child row, declared with a builder of `index.nested`
68
+ * @returns The declaration, for its field in `collections`
69
+ */
70
+ export function rows(collections) {
71
+ return { [ROWS]: { collections } };
72
+ }
73
+ /**
74
+ * Declares a collection of more rows of the listing row's own type, to any
75
+ * depth: they hold what it holds, declared once.
76
+ *
77
+ * @returns The declaration, for its field in `collections`
78
+ */
79
+ export function recursive() {
80
+ return { [RECURSIVE]: true };
81
+ }
82
+ /** A node's struct: the type itself, or a recursive node's struct. */
83
+ function nodeStruct(type) {
84
+ const node = type.type === 'Recursive' ? type.node : type;
85
+ return node.type === 'Struct' ? node : undefined;
86
+ }
87
+ /** Each fold a rollup may name, as an index keeps it. */
88
+ const FOLDS = {
89
+ sum: variant('sum', null), mean: variant('mean', null), min: variant('min', null),
90
+ max: variant('max', null), last: variant('last', null), count: variant('count', null),
91
+ };
92
+ /** Each aggregate a rollup may name, as an index keeps it; `count` is written as the rollup `"count"` alone. */
93
+ const AGGREGATES = {
94
+ sum: variant('sum', null), mean: variant('mean', null), min: variant('min', null), max: variant('max', null),
95
+ };
96
+ /** Whether a name is a key of a table. */
97
+ function isKeyOf(table, name) {
98
+ return typeof name === 'string' && Object.hasOwn(table, name);
99
+ }
100
+ /** A rollup's words, as a refusal names it: one name where the fold is the aggregate, else both. */
101
+ function rollupWords(rollup) {
102
+ const fold = rollup.fold.type;
103
+ const aggregate = rollup.aggregate.type;
104
+ return fold === aggregate ? fold : `{ fold: '${fold}', aggregate: '${aggregate}' }`;
105
+ }
106
+ /** A value as written, as a refusal names it. */
107
+ function writtenWords(input) {
108
+ if (typeof input === 'string')
109
+ return `"${input}"`;
110
+ if (typeof input === 'object' && input !== null && !Array.isArray(input)) {
111
+ return `{ ${Object.entries(input).map(([key, value]) => `${key}: ${writtenWords(value)}`).join(', ')} }`;
112
+ }
113
+ return String(input);
114
+ }
115
+ /** A rollup as an index keeps it, from one as written, refused in words where it is none. */
116
+ function rollupOf(where, input) {
117
+ if (input === 'count')
118
+ return { fold: FOLDS.count, aggregate: variant('count', null) };
119
+ if (isKeyOf(AGGREGATES, input))
120
+ return { fold: FOLDS[input], aggregate: AGGREGATES[input] };
121
+ if (typeof input === 'object' && input !== null && !Array.isArray(input)) {
122
+ const { fold, aggregate } = input;
123
+ if (aggregate === 'count' && isKeyOf(FOLDS, fold)) {
124
+ throw new Error(`${where} rolls up by { fold: '${fold}', aggregate: 'count' } — a count counts the leaf rows with a value, ` +
125
+ 'whatever they fold to: write rollup: "count"');
126
+ }
127
+ if (isKeyOf(FOLDS, fold) && isKeyOf(AGGREGATES, aggregate))
128
+ return { fold: FOLDS[fold], aggregate: AGGREGATES[aggregate] };
129
+ }
130
+ throw new Error(`${where} rolls up by ${writtenWords(input)}, which is no rollup — a rollup is "sum", "mean", "min", "max", ` +
131
+ '"count", or { fold, aggregate }');
132
+ }
133
+ /** What a refusal says of a rollup declared where no row is a parent of the collection's rows. */
134
+ const NO_PARENT = 'no row of the index is a parent of its rows — a rollup is a parent\'s subtotal of its children\'s: ' +
135
+ 'declare it on a collection under rows(…) or beside recursive()';
136
+ /** A declaration's builder, by its brand; undefined for a value no builder made. */
137
+ function builderOf(given) {
138
+ if (typeof given !== 'object' || given === null)
139
+ return undefined;
140
+ if (ITEMS in given)
141
+ return 'items';
142
+ if (VALUES in given)
143
+ return 'values';
144
+ if (ROWS in given)
145
+ return 'rows';
146
+ if (RECURSIVE in given)
147
+ return 'recursive';
148
+ return undefined;
149
+ }
150
+ /**
151
+ * Checks a declaration against the record's row and builds its groups,
152
+ * refusing in words what TypeScript refuses as it is written — for a
153
+ * declaration TypeScript could not see, such as plain JavaScript or a spec
154
+ * built at run time.
155
+ *
156
+ * @param constructor - The declaration, for the refusals
157
+ * @param name - The index, for the refusals
158
+ * @param rowType - The record's row type
159
+ * @param collections - The `collections` as written
160
+ * @returns The groups, their collections, the declaration as an East value, and the places
161
+ * @throws {Error} Naming the collection and what to write
162
+ */
163
+ export function checkNested(constructor, name, rowType, collections) {
164
+ const prefix = `${constructor} '${name}'`;
165
+ const groups = [];
166
+ // How many groups have taken their place: a group takes its own before its child groups take theirs.
167
+ let placed = 0;
168
+ // A group: its nodes' type, the group above it, and its declaration as written; its child groups follow it.
169
+ const groupOf = (where, place, type, parent, declared) => {
170
+ const struct = nodeStruct(type);
171
+ if (struct === undefined)
172
+ throw new Error(`${prefix} indexes a record with Struct rows`);
173
+ if (typeof declared !== 'object' || declared === null || Array.isArray(declared) || Object.keys(declared).length === 0) {
174
+ throw new Error(`${prefix} ${where} declares no collection`);
175
+ }
176
+ const index = placed++;
177
+ const root = parent === undefined;
178
+ const own = [];
179
+ const childRows = [];
180
+ const recursiveFields = [];
181
+ const declaration = new Map();
182
+ const caseTypes = {};
183
+ for (const field of Object.keys(declared).sort()) {
184
+ const at = `${where}.${field}`;
185
+ const given = declared[field];
186
+ const fieldType = struct.fields[field];
187
+ if (fieldType === undefined)
188
+ throw new Error(`${prefix} ${where} names unknown row field '${field}'`);
189
+ const builder = builderOf(given);
190
+ if (builder === undefined) {
191
+ throw new Error(`${prefix} ${at} is no declaration — declare it with index.nested.items(times), values(), rows(collections) or recursive()`);
192
+ }
193
+ if (fieldType.type !== 'Dict') {
194
+ throw new Error(`${prefix} ${at} is '${field}', of type ${printType(fieldType)} — a collection is a Dict: Dict<String, Item> keyed by an id, ` +
195
+ 'or Dict<DateTime, V> keyed by its instant');
196
+ }
197
+ const keyType = fieldType.key;
198
+ const held = fieldType.value;
199
+ if (builder === 'recursive') {
200
+ if (type.type !== 'Recursive' || !isTypeEqual(held, type)) {
201
+ throw new Error(`${prefix} ${at} is recursive(), and holds ${printTypeSummary(held)}, not ${printTypeSummary(type)} — ` +
202
+ 'a recursive field holds more rows like the one listing it');
203
+ }
204
+ recursiveFields.push(field);
205
+ declaration.set(field, variant('recursive', null));
206
+ continue;
207
+ }
208
+ if (builder === 'values') {
209
+ if (keyType.type !== 'DateTime') {
210
+ throw new Error(`${prefix} ${at} is values(), and '${field}' is keyed by ${printType(keyType)} — values are keyed by their instant: ` +
211
+ 'declare it with items({ from, to }) or items({ at })');
212
+ }
213
+ const written = given[VALUES].options.rollup;
214
+ const rollups = [];
215
+ for (const input of written === undefined ? [] : Array.isArray(written) ? written : [written]) {
216
+ const rollup = rollupOf(`${prefix} ${at}`, input);
217
+ if (rollups.some((r) => rollupWords(r) === rollupWords(rollup))) {
218
+ throw new Error(`${prefix} ${at} rolls up by ${rollupWords(rollup)} twice — name each rollup once`);
219
+ }
220
+ rollups.push(rollup);
221
+ }
222
+ const numeric = held.type === 'Float' || held.type === 'Integer' ? held.type : undefined;
223
+ if (rollups.length > 0 && root)
224
+ throw new Error(`${prefix} ${at} rolls up, and ${NO_PARENT}`);
225
+ if (rollups.length > 0 && numeric === undefined) {
226
+ throw new Error(`${prefix} ${at} rolls up, and '${field}' holds ${printType(held)} — a rollup folds Float or Integer values`);
227
+ }
228
+ own.push({ kind: 'values', field, place: [...place, field], group: index, valueType: held, numeric, rollups });
229
+ declaration.set(field, variant('values', { rollups }));
230
+ caseTypes[field] = held;
231
+ continue;
232
+ }
233
+ const words = builder === 'items' ? 'items(…)' : 'rows(…)';
234
+ if (keyType.type === 'DateTime') {
235
+ throw new Error(`${prefix} ${at} is ${words}, and '${field}' is keyed by ${printType(keyType)} — a collection keyed by its instant ` +
236
+ 'holds values: declare it with values()');
237
+ }
238
+ const heldStruct = nodeStruct(held);
239
+ if (keyType.type !== 'String' || heldStruct === undefined) {
240
+ const what = keyType.type !== 'String' ? `is keyed by ${printType(keyType)}` : `holds ${printType(held)}`;
241
+ throw new Error(`${prefix} ${at} is ${words}, and '${field}' ${what} — items and child rows are a Dict<String, Struct>`);
242
+ }
243
+ if (builder === 'rows') {
244
+ const child = groupOf(at, [...place, field], held, { group: index, field }, given[ROWS].collections);
245
+ childRows.push({ field, group: child.group.index });
246
+ declaration.set(field, variant('rows', child.declaration));
247
+ caseTypes[field] = child.group.places;
248
+ continue;
249
+ }
250
+ // Things people drag: an item's struct, read for its times.
251
+ if (held.type !== 'Struct') {
252
+ throw new Error(`${prefix} ${at} is items(…), and '${field}' holds ${printType(held)} — items and child rows are a Dict<String, Struct>`);
253
+ }
254
+ const { times, options } = given[ITEMS];
255
+ const timeOf = (role) => {
256
+ const named = times[role];
257
+ if (typeof named !== 'string')
258
+ throw new Error(`${prefix} ${at} times names no ${role}`);
259
+ const fieldOfItem = held.fields[named];
260
+ if (fieldOfItem === undefined)
261
+ throw new Error(`${prefix} ${at} times ${role} '${named}', which is no field of the ${field}`);
262
+ const time = optionField(held, named, DateTimeType);
263
+ if (time === undefined) {
264
+ throw new Error(`${prefix} ${at} times ${role} '${named}', of type ${printType(fieldOfItem)} — a time is a DateTime or an Option<DateTime> field of the item`);
265
+ }
266
+ return time;
267
+ };
268
+ const span = 'from' in times || 'to' in times;
269
+ const start = timeOf(span ? 'from' : 'at');
270
+ const end = span ? timeOf('to') : start;
271
+ if (options.rollup !== undefined && options.rollup !== true) {
272
+ throw new Error(`${prefix} ${at} rolls up by ${writtenWords(options.rollup)} — items roll up with rollup: true`);
273
+ }
274
+ const rollup = options.rollup === true;
275
+ if (rollup && root)
276
+ throw new Error(`${prefix} ${at} rolls up, and ${NO_PARENT}`);
277
+ own.push({ kind: 'items', field, place: [...place, field], group: index, itemType: held, start, end, rollup });
278
+ declaration.set(field, variant('items', {
279
+ times: span ? variant('span', { from: start.field, to: end.field }) : variant('at', start.field),
280
+ rollup,
281
+ }));
282
+ caseTypes[field] = held;
283
+ }
284
+ if (recursiveFields.length > 1) {
285
+ throw new Error(`${prefix} ${where} declares recursive() on '${recursiveFields[0]}' and '${recursiveFields[1]}' — ` +
286
+ 'a row\'s rows recurse through one field, so each holds one path');
287
+ }
288
+ if (Object.keys(caseTypes).length === 0)
289
+ throw new Error(`${prefix} ${where} declares no collection`);
290
+ const group = {
291
+ index, type, parent, through: recursiveFields[0], collections: own, rows: childRows, places: VariantType(caseTypes),
292
+ };
293
+ groups[index] = group;
294
+ return { group, declaration };
295
+ };
296
+ const root = groupOf('collections', [], rowType, undefined, collections);
297
+ return {
298
+ groups,
299
+ collections: groups.flatMap((group) => group.collections),
300
+ declaration: root.declaration,
301
+ places: root.group.places,
302
+ };
303
+ }
304
+ //# sourceMappingURL=record-nested.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record-nested.js","sourceRoot":"","sources":["../../src/record-nested.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EACL,YAAY,EAAc,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,gBAAgB,EAAE,OAAO,GAGzF,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,WAAW,EAAkC,MAAM,kBAAkB,CAAC;AAG/E,iFAAiF;AAEjF,+CAA+C;AAC/C,MAAM,KAAK,GAAkB,MAAM,CAAC,aAAa,CAAC,CAAC;AACnD,gDAAgD;AAChD,MAAM,MAAM,GAAkB,MAAM,CAAC,cAAc,CAAC,CAAC;AACrD,8CAA8C;AAC9C,MAAM,IAAI,GAAkB,MAAM,CAAC,YAAY,CAAC,CAAC;AACjD,mDAAmD;AACnD,MAAM,SAAS,GAAkB,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAC3D,sDAAsD;AACtD,MAAM,MAAM,GAAkB,MAAM,CAAC,cAAc,CAAC,CAAC;AAkDrD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,KAAK,CAGnB,KAAQ,EAAE,OAAW;IACrB,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,IAAK,EAAQ,EAAE,EAAE,CAAC;AAC/D,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,MAAM,CAAwE,OAAW;IACvG,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,OAAO,IAAK,EAAQ,EAAE,EAAE,CAAC;AACzD,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,IAAI,CAAU,WAAc;IAC1C,OAAO,EAAE,CAA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AC,CAAC;IACzE,OAAO;QACL,MAAM;QACN,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC;QACzD,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM;KAC1B,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
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
+ export {};
6
+ //# sourceMappingURL=record-nested.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record-nested.spec.d.ts","sourceRoot":"","sources":["../../src/record-nested.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG"}