@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.
- package/README.md +4 -5
- package/dist/src/browser.d.ts +2 -0
- package/dist/src/browser.d.ts.map +1 -1
- package/dist/src/browser.js +6 -0
- package/dist/src/browser.js.map +1 -1
- package/dist/src/environment-capture.d.ts +21 -0
- package/dist/src/environment-capture.d.ts.map +1 -1
- package/dist/src/environment-capture.js +48 -0
- package/dist/src/environment-capture.js.map +1 -1
- package/dist/src/export.d.ts +10 -5
- package/dist/src/export.d.ts.map +1 -1
- package/dist/src/export.js +31 -47
- package/dist/src/export.js.map +1 -1
- package/dist/src/export.spec.js +27 -16
- package/dist/src/export.spec.js.map +1 -1
- package/dist/src/function.d.ts.map +1 -1
- package/dist/src/function.js.map +1 -1
- package/dist/src/functions-cache.d.ts +60 -0
- package/dist/src/functions-cache.d.ts.map +1 -0
- package/dist/src/functions-cache.js +165 -0
- package/dist/src/functions-cache.js.map +1 -0
- package/dist/src/functions-link.spec.js +191 -12
- package/dist/src/functions-link.spec.js.map +1 -1
- package/dist/src/functions-resolve.d.ts +52 -23
- package/dist/src/functions-resolve.d.ts.map +1 -1
- package/dist/src/functions-resolve.js +244 -96
- package/dist/src/functions-resolve.js.map +1 -1
- package/dist/src/index.d.ts +8 -61
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +3 -8
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +53 -0
- package/dist/src/internal.d.ts.map +1 -0
- package/dist/src/internal.js +29 -0
- package/dist/src/internal.js.map +1 -0
- package/dist/src/lazy-build.d.ts +25 -0
- package/dist/src/lazy-build.d.ts.map +1 -0
- package/dist/src/lazy-build.js +56 -0
- package/dist/src/lazy-build.js.map +1 -0
- package/dist/src/lazy-build.spec.d.ts +6 -0
- package/dist/src/lazy-build.spec.d.ts.map +1 -0
- package/dist/src/lazy-build.spec.js +153 -0
- package/dist/src/lazy-build.spec.js.map +1 -0
- package/dist/src/migration.d.ts +20 -163
- package/dist/src/migration.d.ts.map +1 -1
- package/dist/src/migration.js +37 -34
- package/dist/src/migration.js.map +1 -1
- package/dist/src/migration.spec.js +83 -78
- package/dist/src/migration.spec.js.map +1 -1
- package/dist/src/mutation-programs.spec.js +211 -118
- package/dist/src/mutation-programs.spec.js.map +1 -1
- package/dist/src/mutation.d.ts +37 -141
- package/dist/src/mutation.d.ts.map +1 -1
- package/dist/src/mutation.js +66 -28
- package/dist/src/mutation.js.map +1 -1
- package/dist/src/open-beast-link.spec.js +1 -1
- package/dist/src/open-beast-link.spec.js.map +1 -1
- package/dist/src/output.js.map +1 -1
- package/dist/src/package.d.ts +2 -38
- package/dist/src/package.d.ts.map +1 -1
- package/dist/src/package.js +42 -175
- package/dist/src/package.js.map +1 -1
- package/dist/src/record-area.d.ts +49 -37
- package/dist/src/record-area.d.ts.map +1 -1
- package/dist/src/record-area.js +211 -131
- package/dist/src/record-area.js.map +1 -1
- package/dist/src/record-area.spec.js +79 -62
- package/dist/src/record-area.spec.js.map +1 -1
- package/dist/src/record-arguments.d.ts +55 -0
- package/dist/src/record-arguments.d.ts.map +1 -0
- package/dist/src/record-arguments.js +72 -0
- package/dist/src/record-arguments.js.map +1 -0
- package/dist/src/record-builders.d.ts +547 -0
- package/dist/src/record-builders.d.ts.map +1 -0
- package/dist/src/record-builders.js +112 -0
- package/dist/src/record-builders.js.map +1 -0
- package/dist/src/record-declared.spec.d.ts +6 -0
- package/dist/src/record-declared.spec.d.ts.map +1 -0
- package/dist/src/record-declared.spec.js +251 -0
- package/dist/src/record-declared.spec.js.map +1 -0
- package/dist/src/record-guards.d.ts +114 -1
- package/dist/src/record-guards.d.ts.map +1 -1
- package/dist/src/record-guards.js +153 -2
- package/dist/src/record-guards.js.map +1 -1
- package/dist/src/record-index.d.ts +128 -350
- package/dist/src/record-index.d.ts.map +1 -1
- package/dist/src/record-index.js +44 -481
- package/dist/src/record-index.js.map +1 -1
- package/dist/src/record-index.spec.js +124 -90
- package/dist/src/record-index.spec.js.map +1 -1
- package/dist/src/record-interval.d.ts +57 -36
- package/dist/src/record-interval.d.ts.map +1 -1
- package/dist/src/record-interval.js +136 -94
- package/dist/src/record-interval.js.map +1 -1
- package/dist/src/record-interval.spec.js +48 -27
- package/dist/src/record-interval.spec.js.map +1 -1
- package/dist/src/record-keys.d.ts +146 -0
- package/dist/src/record-keys.d.ts.map +1 -0
- package/dist/src/record-keys.js +178 -0
- package/dist/src/record-keys.js.map +1 -0
- package/dist/src/record-nested-programs.d.ts +1457 -0
- package/dist/src/record-nested-programs.d.ts.map +1 -0
- package/dist/src/record-nested-programs.js +1974 -0
- package/dist/src/record-nested-programs.js.map +1 -0
- package/dist/src/record-nested.d.ts +284 -0
- package/dist/src/record-nested.d.ts.map +1 -0
- package/dist/src/record-nested.js +304 -0
- package/dist/src/record-nested.js.map +1 -0
- package/dist/src/record-nested.spec.d.ts +6 -0
- package/dist/src/record-nested.spec.d.ts.map +1 -0
- package/dist/src/record-nested.spec.js +1032 -0
- package/dist/src/record-nested.spec.js.map +1 -0
- package/dist/src/record-patches.d.ts +25 -0
- package/dist/src/record-patches.d.ts.map +1 -0
- package/dist/src/record-patches.js +27 -0
- package/dist/src/record-patches.js.map +1 -0
- package/dist/src/record-programs.d.ts +192 -26
- package/dist/src/record-programs.d.ts.map +1 -1
- package/dist/src/record-programs.js +858 -350
- package/dist/src/record-programs.js.map +1 -1
- package/dist/src/record-programs.spec.d.ts +6 -0
- package/dist/src/record-programs.spec.d.ts.map +1 -0
- package/dist/src/record-programs.spec.js +242 -0
- package/dist/src/record-programs.spec.js.map +1 -0
- package/dist/src/record-series.d.ts +101 -97
- package/dist/src/record-series.d.ts.map +1 -1
- package/dist/src/record-series.js +198 -149
- package/dist/src/record-series.js.map +1 -1
- package/dist/src/record-series.spec.js +241 -120
- package/dist/src/record-series.spec.js.map +1 -1
- package/dist/src/record-tiles.d.ts +328 -37
- package/dist/src/record-tiles.d.ts.map +1 -1
- package/dist/src/record-tiles.js +289 -100
- package/dist/src/record-tiles.js.map +1 -1
- package/dist/src/record.d.ts +66 -12
- package/dist/src/record.d.ts.map +1 -1
- package/dist/src/record.js +103 -34
- package/dist/src/record.js.map +1 -1
- package/dist/src/record.spec.js +48 -63
- package/dist/src/record.spec.js.map +1 -1
- package/dist/src/task.d.ts.map +1 -1
- package/dist/src/task.js +4 -1
- package/dist/src/task.js.map +1 -1
- package/dist/src/types.d.ts +103 -37
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +7 -3
|
@@ -0,0 +1,178 @@
|
|
|
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
|
+
* Reading a record's row by the names a declaration gives.
|
|
7
|
+
*
|
|
8
|
+
* East names a struct's fields where its code is written; a generated index
|
|
9
|
+
* reads the fields its declaration names — its leading fields, an event's
|
|
10
|
+
* start and end, a box's place — which it holds as values. So every generated
|
|
11
|
+
* program reads its row through East's own builders for names held as values
|
|
12
|
+
* (`East.field`, `East.fields`, `East.struct`), which check each name against
|
|
13
|
+
* the row's type as the program is built: a reader a field, the leading
|
|
14
|
+
* values as the key's `on`, and their combinations where a Set field fans a
|
|
15
|
+
* row out.
|
|
16
|
+
*
|
|
17
|
+
* @packageDocumentation
|
|
18
|
+
*/
|
|
19
|
+
import { ArrayType, DateTimeType, East, OptionType, SetType, StructType, isTypeEqual, printType, some, } from '@elaraai/east';
|
|
20
|
+
import { functionAt } from './record-guards.js';
|
|
21
|
+
/**
|
|
22
|
+
* Checks an index's leading fields against the record's row.
|
|
23
|
+
*
|
|
24
|
+
* @param constructor - The declaration, for the refusals
|
|
25
|
+
* @param name - The index, for the refusals
|
|
26
|
+
* @param rowType - The record's row type
|
|
27
|
+
* @param on - The leading fields, in key order; none for an index led by none
|
|
28
|
+
* @returns The fields, the key's `on`, and whether a row fans out
|
|
29
|
+
* @throws {Error} When a field is named twice, or is not one of the row's
|
|
30
|
+
*/
|
|
31
|
+
export function checkLeading(constructor, name, rowType, on) {
|
|
32
|
+
if (new Set(on).size !== on.length)
|
|
33
|
+
throw new Error(`${constructor} '${name}' on must not repeat a field`);
|
|
34
|
+
const fields = on.map((field) => {
|
|
35
|
+
const type = rowType.fields[field];
|
|
36
|
+
if (type === undefined)
|
|
37
|
+
throw new Error(`${constructor} '${name}' on names unknown row field '${field}'`);
|
|
38
|
+
return type.type === 'Set' ? { field, type: type.key, set: true } : { field, type, set: false };
|
|
39
|
+
});
|
|
40
|
+
return {
|
|
41
|
+
fields,
|
|
42
|
+
onType: StructType(Object.fromEntries(fields.map((f) => [f.field, f.type]))),
|
|
43
|
+
multi: fields.some((f) => f.set),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Checks a field read as an Option of a type: the type itself, or an Option of
|
|
48
|
+
* it.
|
|
49
|
+
*
|
|
50
|
+
* @param rowType - The record's row type
|
|
51
|
+
* @param field - The field
|
|
52
|
+
* @param type - The type inside the Option
|
|
53
|
+
* @returns The field, and whether it is an Option; `undefined` for a field of another type, or none
|
|
54
|
+
*/
|
|
55
|
+
export function optionField(rowType, field, type) {
|
|
56
|
+
const held = rowType.fields[field];
|
|
57
|
+
if (held === undefined)
|
|
58
|
+
return undefined;
|
|
59
|
+
if (isTypeEqual(held, type))
|
|
60
|
+
return { field, optional: false, type };
|
|
61
|
+
if (isTypeEqual(held, OptionType(type)))
|
|
62
|
+
return { field, optional: true, type };
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Checks a field an event starts or ends at: a DateTime, or an Option of one.
|
|
67
|
+
*
|
|
68
|
+
* @param constructor - The constructor, as a refusal names it
|
|
69
|
+
* @param name - The index
|
|
70
|
+
* @param rowType - The record's row type
|
|
71
|
+
* @param option - The option naming the field, as a refusal names it
|
|
72
|
+
* @param field - The field
|
|
73
|
+
* @returns The field, and whether it is an Option
|
|
74
|
+
* @throws {Error} When the row has no such field, or it is of another type, naming the option, the field and its type
|
|
75
|
+
*/
|
|
76
|
+
export function checkTimeField(constructor, name, rowType, option, field) {
|
|
77
|
+
const type = rowType.fields[field];
|
|
78
|
+
if (type === undefined)
|
|
79
|
+
throw new Error(`${constructor} '${name}' ${option} names unknown row field '${field}'`);
|
|
80
|
+
const time = optionField(rowType, field, DateTimeType);
|
|
81
|
+
if (time === undefined) {
|
|
82
|
+
throw new Error(`${constructor} '${name}' ${option} names '${field}', of type ${printType(type)}: ${option} is a DateTime or an Option<DateTime> field`);
|
|
83
|
+
}
|
|
84
|
+
return time;
|
|
85
|
+
}
|
|
86
|
+
export function fieldReader(keyType, rowType, read) {
|
|
87
|
+
if (!('option' in read)) {
|
|
88
|
+
const type = read.type;
|
|
89
|
+
return East.function([keyType, rowType], type, (_$, _key, row) => East.field(row, read.field, type));
|
|
90
|
+
}
|
|
91
|
+
const { field, optional, type } = read.option;
|
|
92
|
+
const option = OptionType(type);
|
|
93
|
+
if (optional)
|
|
94
|
+
return East.function([keyType, rowType], option, (_$, _key, row) => East.field(row, field, option));
|
|
95
|
+
return East.function([keyType, rowType], option, (_$, _key, row) => some(East.field(row, field, type)));
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* A row's leading values where no Set among them fans it out: `(K, V) -> On`,
|
|
99
|
+
* its leading fields' values as the key's `on` — the empty struct where none
|
|
100
|
+
* lead.
|
|
101
|
+
*
|
|
102
|
+
* @param keyType - The record's key type
|
|
103
|
+
* @param rowType - The record's row type
|
|
104
|
+
* @param leading - The checked leading fields, no Set among them
|
|
105
|
+
* @returns The function
|
|
106
|
+
* @throws {Error} When a Set field leads: its row has a combination per element ({@link leadingValues})
|
|
107
|
+
*/
|
|
108
|
+
export function leadingValue(keyType, rowType, leading) {
|
|
109
|
+
if (leading.multi)
|
|
110
|
+
throw new Error('a Set field fans a row out: read its combinations with leadingValues');
|
|
111
|
+
const names = leading.fields.map((f) => f.field);
|
|
112
|
+
return East.function([keyType, rowType], leading.onType, (_$, _key, row) => East.struct(leading.onType, East.fields(row, names)));
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* A row's leading values: `(K, V) -> Set<On>`, every combination of its
|
|
116
|
+
* leading fields' values as the key's `on` — each Set field fanned out over
|
|
117
|
+
* its elements — and the one combination where no Set leads, the empty struct
|
|
118
|
+
* where none do.
|
|
119
|
+
*
|
|
120
|
+
* @remarks
|
|
121
|
+
* The leading fields are read as one struct, each Set field still a Set; then
|
|
122
|
+
* each Set field in turn is fanned out over its elements, a step each, each
|
|
123
|
+
* step calling the one before it — so the combinations are built by ordinary
|
|
124
|
+
* East, whatever the fields.
|
|
125
|
+
*
|
|
126
|
+
* @param keyType - The record's key type
|
|
127
|
+
* @param rowType - The record's row type
|
|
128
|
+
* @param leading - The checked leading fields
|
|
129
|
+
* @returns The function
|
|
130
|
+
*/
|
|
131
|
+
export function leadingValues(keyType, rowType, leading) {
|
|
132
|
+
const names = leading.fields.map((f) => f.field);
|
|
133
|
+
const read = StructType(Object.fromEntries(leading.fields.map((f) => [f.field, f.set ? SetType(f.type) : f.type])));
|
|
134
|
+
const first = {
|
|
135
|
+
fn: East.function([keyType, rowType], ArrayType(read), (_$, _key, row) => [East.struct(read, East.fields(row, names))]),
|
|
136
|
+
type: read,
|
|
137
|
+
};
|
|
138
|
+
const fanned = leading.fields.filter((f) => f.set).reduce((before, f) => {
|
|
139
|
+
// This Set field's element in its place; the fields before and after it as they are.
|
|
140
|
+
const type = StructType({ ...before.type.fields, [f.field]: f.type });
|
|
141
|
+
const at = names.indexOf(f.field);
|
|
142
|
+
const ahead = names.slice(0, at);
|
|
143
|
+
const behind = names.slice(at + 1);
|
|
144
|
+
const elements = SetType(f.type);
|
|
145
|
+
return {
|
|
146
|
+
fn: East.function([keyType, rowType], ArrayType(type), ($, key, row) => {
|
|
147
|
+
const earlier = $.const(before.fn);
|
|
148
|
+
return earlier(key, row).flatMap((_$, partial) => East.field(partial, f.field, elements).toArray((_$, element) => East.struct(type, [...East.fields(partial, ahead), element, ...East.fields(partial, behind)])));
|
|
149
|
+
}),
|
|
150
|
+
type,
|
|
151
|
+
};
|
|
152
|
+
}, first);
|
|
153
|
+
// Every Set fanned out: the combinations, each once.
|
|
154
|
+
const combinations = East.function([keyType, rowType], SetType(fanned.type), ($, key, row) => {
|
|
155
|
+
const all = $.const(fanned.fn);
|
|
156
|
+
return all(key, row).toSet((_$, combination) => combination);
|
|
157
|
+
});
|
|
158
|
+
return functionAt(combinations, [keyType, rowType], SetType(leading.onType));
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* A plain index's key, `on` its row fields: `(K, V) -> IK` — the one field's
|
|
162
|
+
* value, or a struct of several — or `(K, V) -> Set<IK>` where a Set among
|
|
163
|
+
* them fans a row out: the one field's elements, or the struct's combinations.
|
|
164
|
+
*
|
|
165
|
+
* @param keyType - The record's key type
|
|
166
|
+
* @param rowType - The record's row type
|
|
167
|
+
* @param leading - The checked fields
|
|
168
|
+
* @returns The key function
|
|
169
|
+
*/
|
|
170
|
+
export function fieldKeyOf(keyType, rowType, leading) {
|
|
171
|
+
const only = leading.fields.length === 1 ? leading.fields[0] : undefined;
|
|
172
|
+
if (only === undefined)
|
|
173
|
+
return leading.multi ? leadingValues(keyType, rowType, leading) : leadingValue(keyType, rowType, leading);
|
|
174
|
+
// The one field: its value, or a Set field's elements, as they are.
|
|
175
|
+
const type = only.set ? SetType(only.type) : only.type;
|
|
176
|
+
return East.function([keyType, rowType], type, (_$, _key, row) => East.field(row, only.field, type));
|
|
177
|
+
}
|
|
178
|
+
//# sourceMappingURL=record-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-keys.js","sourceRoot":"","sources":["../../src/record-keys.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AACH,OAAO,EACL,SAAS,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