@elaraai/e3-types 1.0.79 → 1.0.80
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 +1 -1
- package/dist/src/api.d.ts +569 -36
- package/dist/src/api.d.ts.map +1 -1
- package/dist/src/api.js +257 -32
- package/dist/src/api.js.map +1 -1
- package/dist/src/collection-manifest.d.ts +37 -0
- package/dist/src/collection-manifest.d.ts.map +1 -0
- package/dist/src/collection-manifest.js +37 -0
- package/dist/src/collection-manifest.js.map +1 -0
- package/dist/src/dataflow.d.ts +264 -19
- package/dist/src/dataflow.d.ts.map +1 -1
- package/dist/src/dataflow.js +156 -15
- package/dist/src/dataflow.js.map +1 -1
- package/dist/src/dataflow.spec.js +184 -27
- package/dist/src/dataflow.spec.js.map +1 -1
- package/dist/src/dataset-blob.d.ts +75 -15
- package/dist/src/dataset-blob.d.ts.map +1 -1
- package/dist/src/dataset-blob.js +95 -28
- package/dist/src/dataset-blob.js.map +1 -1
- package/dist/src/dataset-blob.spec.d.ts +6 -0
- package/dist/src/dataset-blob.spec.d.ts.map +1 -0
- package/dist/src/dataset-blob.spec.js +92 -0
- package/dist/src/dataset-blob.spec.js.map +1 -0
- package/dist/src/dataset-ref.d.ts +5 -4
- package/dist/src/dataset-ref.d.ts.map +1 -1
- package/dist/src/dataset-ref.js +5 -4
- package/dist/src/dataset-ref.js.map +1 -1
- package/dist/src/environment.d.ts +3 -2
- package/dist/src/environment.d.ts.map +1 -1
- package/dist/src/environment.js +3 -2
- package/dist/src/environment.js.map +1 -1
- package/dist/src/execution.d.ts +112 -18
- package/dist/src/execution.d.ts.map +1 -1
- package/dist/src/execution.js +174 -45
- package/dist/src/execution.js.map +1 -1
- package/dist/src/execution.spec.d.ts +6 -0
- package/dist/src/execution.spec.d.ts.map +1 -0
- package/dist/src/execution.spec.js +108 -0
- package/dist/src/execution.spec.js.map +1 -0
- package/dist/src/function.d.ts +14 -12
- package/dist/src/function.d.ts.map +1 -1
- package/dist/src/function.js +17 -32
- package/dist/src/function.js.map +1 -1
- package/dist/src/index.d.ts +16 -12
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +25 -20
- package/dist/src/index.js.map +1 -1
- package/dist/src/lock.d.ts +68 -22
- package/dist/src/lock.d.ts.map +1 -1
- package/dist/src/lock.js +33 -22
- package/dist/src/lock.js.map +1 -1
- package/dist/src/names.d.ts +21 -0
- package/dist/src/names.d.ts.map +1 -0
- package/dist/src/names.js +31 -0
- package/dist/src/names.js.map +1 -0
- package/dist/src/package.d.ts +11 -78
- package/dist/src/package.d.ts.map +1 -1
- package/dist/src/package.js +13 -66
- package/dist/src/package.js.map +1 -1
- package/dist/src/record.d.ts +582 -18
- package/dist/src/record.d.ts.map +1 -1
- package/dist/src/record.js +405 -7
- package/dist/src/record.js.map +1 -1
- package/dist/src/{stream.spec.d.ts → record.spec.d.ts} +1 -1
- package/dist/src/record.spec.d.ts.map +1 -0
- package/dist/src/record.spec.js +143 -0
- package/dist/src/record.spec.js.map +1 -0
- package/dist/src/release.d.ts +36 -0
- package/dist/src/release.d.ts.map +1 -0
- package/dist/src/release.js +71 -0
- package/dist/src/release.js.map +1 -0
- package/dist/src/release.spec.d.ts +6 -0
- package/dist/src/release.spec.d.ts.map +1 -0
- package/dist/src/release.spec.js +42 -0
- package/dist/src/release.spec.js.map +1 -0
- package/dist/src/repository.d.ts +64 -0
- package/dist/src/repository.d.ts.map +1 -0
- package/dist/src/repository.js +49 -0
- package/dist/src/repository.js.map +1 -0
- package/dist/src/runner.d.ts +16 -62
- package/dist/src/runner.d.ts.map +1 -1
- package/dist/src/runner.js +16 -79
- package/dist/src/runner.js.map +1 -1
- package/dist/src/runner.spec.js +11 -85
- package/dist/src/runner.spec.js.map +1 -1
- package/dist/src/structure.d.ts +0 -57
- package/dist/src/structure.d.ts.map +1 -1
- package/dist/src/structure.js +0 -3
- package/dist/src/structure.js.map +1 -1
- package/dist/src/task.d.ts +210 -318
- package/dist/src/task.d.ts.map +1 -1
- package/dist/src/task.js +117 -472
- package/dist/src/task.js.map +1 -1
- package/dist/src/task.spec.js +62 -154
- package/dist/src/task.spec.js.map +1 -1
- package/dist/src/transfer.d.ts +16 -22
- package/dist/src/transfer.d.ts.map +1 -1
- package/dist/src/transfer.js +16 -22
- package/dist/src/transfer.js.map +1 -1
- package/dist/src/transfer.spec.js +4 -34
- package/dist/src/transfer.spec.js.map +1 -1
- package/dist/src/unit-plan.d.ts +130 -0
- package/dist/src/unit-plan.d.ts.map +1 -0
- package/dist/src/unit-plan.js +107 -0
- package/dist/src/unit-plan.js.map +1 -0
- package/dist/src/unit-plan.spec.d.ts +6 -0
- package/dist/src/unit-plan.spec.d.ts.map +1 -0
- package/dist/src/unit-plan.spec.js +29 -0
- package/dist/src/unit-plan.spec.js.map +1 -0
- package/dist/src/workspace.d.ts +22 -11
- package/dist/src/workspace.d.ts.map +1 -1
- package/dist/src/workspace.js +10 -11
- package/dist/src/workspace.js.map +1 -1
- package/package.json +3 -3
- package/src/api.ts +276 -32
- package/src/collection-manifest.ts +53 -0
- package/src/dataflow.spec.ts +223 -31
- package/src/dataflow.ts +183 -26
- package/src/dataset-blob.spec.ts +117 -0
- package/src/dataset-blob.ts +157 -21
- package/src/dataset-ref.ts +5 -4
- package/src/environment.ts +3 -2
- package/src/execution.spec.ts +114 -0
- package/src/execution.ts +175 -51
- package/src/function.ts +19 -32
- package/src/index.ts +122 -39
- package/src/lock.ts +39 -22
- package/src/names.ts +39 -0
- package/src/package.ts +15 -71
- package/src/record.spec.ts +195 -0
- package/src/record.ts +489 -7
- package/src/release.spec.ts +47 -0
- package/src/release.ts +69 -0
- package/src/repository.ts +67 -0
- package/src/runner.spec.ts +11 -94
- package/src/runner.ts +16 -80
- package/src/structure.ts +0 -8
- package/src/task.spec.ts +67 -188
- package/src/task.ts +140 -522
- package/src/transfer.spec.ts +4 -51
- package/src/transfer.ts +16 -22
- package/src/unit-plan.spec.ts +31 -0
- package/src/unit-plan.ts +121 -0
- package/src/workspace.ts +13 -11
- package/dist/src/stream.d.ts +0 -97
- package/dist/src/stream.d.ts.map +0 -1
- package/dist/src/stream.js +0 -134
- package/dist/src/stream.js.map +0 -1
- package/dist/src/stream.spec.d.ts.map +0 -1
- package/dist/src/stream.spec.js +0 -60
- package/dist/src/stream.spec.js.map +0 -1
- package/src/stream.spec.ts +0 -88
- package/src/stream.ts +0 -170
package/dist/src/runner.spec.js
CHANGED
|
@@ -3,112 +3,38 @@
|
|
|
3
3
|
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Gating contract for {@link
|
|
6
|
+
* Gating contract for {@link withRunnerLifeline}.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
* before spawn. These tests pin the two things that
|
|
10
|
-
*
|
|
11
|
-
* never touches a `custom` runner's user-authored command.
|
|
12
|
-
* rewrites the argv (never the runner variant or any hash), it is
|
|
13
|
-
* cache-irrelevant by construction.
|
|
8
|
+
* `--exit-with-parent` is a pure runtime toggle: it is spliced into an
|
|
9
|
+
* already-built argv just before spawn. These tests pin the two things that
|
|
10
|
+
* make it safe — it reaches the known runtimes at the right argv position, and
|
|
11
|
+
* it never touches a `custom` runner's user-authored command.
|
|
14
12
|
*/
|
|
15
13
|
import { describe, it } from 'node:test';
|
|
16
14
|
import * as assert from 'node:assert';
|
|
17
15
|
import { variant } from '@elaraai/east';
|
|
18
|
-
import {
|
|
19
|
-
/** A realistic fully-built argv: runner prefix + the `-i`/`-o`/`<ir>` suffix. */
|
|
20
|
-
function fullArgv(runner) {
|
|
21
|
-
return [...runnerToArgv(runner), '-i', 'in.beast2', '-o', 'out.beast2', 'body.beast2'];
|
|
22
|
-
}
|
|
16
|
+
import { withRunnerLifeline } from './runner.js';
|
|
23
17
|
const KNOWN = [
|
|
24
18
|
['east_node', variant('east_node', { platforms: ['@elaraai/east-node-std'] }), 'east-node'],
|
|
25
19
|
['east_py', variant('east_py', { platforms: ['east-py-std'] }), 'east-py'],
|
|
26
20
|
['east_c', variant('east_c', { platforms: ['east-c-std'] }), 'east-c'],
|
|
27
21
|
];
|
|
28
|
-
describe('withRunnerVerbose', () => {
|
|
29
|
-
for (const [tag, runner, bin] of KNOWN) {
|
|
30
|
-
it(`inserts -v after the 'run' subcommand for ${tag}`, () => {
|
|
31
|
-
const args = fullArgv(runner);
|
|
32
|
-
const out = withRunnerVerbose(runner, args, true);
|
|
33
|
-
// `[<bin>, 'run', '-v', …rest]` — position 2, ahead of -p/-i/-o and the IR.
|
|
34
|
-
assert.deepStrictEqual(out.slice(0, 3), [bin, 'run', '-v']);
|
|
35
|
-
// Exactly one -v, and the rest of the argv is preserved in order.
|
|
36
|
-
assert.strictEqual(out.filter((a) => a === '-v').length, 1);
|
|
37
|
-
assert.deepStrictEqual(out.slice(3), args.slice(2));
|
|
38
|
-
// The IR path is still last.
|
|
39
|
-
assert.strictEqual(out[out.length - 1], 'body.beast2');
|
|
40
|
-
});
|
|
41
|
-
it(`leaves the argv untouched when verbose is off for ${tag}`, () => {
|
|
42
|
-
const args = fullArgv(runner);
|
|
43
|
-
assert.deepStrictEqual(withRunnerVerbose(runner, args, false), args);
|
|
44
|
-
assert.deepStrictEqual(withRunnerVerbose(runner, args, undefined), args);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
it('never splices -v into a custom runner (user-authored argv)', () => {
|
|
48
|
-
const runner = variant('custom', { command: ['uv', 'run', 'east-py', 'run'] });
|
|
49
|
-
const args = fullArgv(runner);
|
|
50
|
-
// Even with verbose requested, a custom command is passed through verbatim —
|
|
51
|
-
// we cannot know it understands `-v`.
|
|
52
|
-
assert.deepStrictEqual(withRunnerVerbose(runner, args, true), args);
|
|
53
|
-
assert.ok(!withRunnerVerbose(runner, args, true).includes('-v'));
|
|
54
|
-
});
|
|
55
|
-
it('does not mutate the input argv (returns a new array)', () => {
|
|
56
|
-
const runner = variant('east_node', { platforms: ['@elaraai/east-node-std'] });
|
|
57
|
-
const args = fullArgv(runner);
|
|
58
|
-
const before = [...args];
|
|
59
|
-
withRunnerVerbose(runner, args, true);
|
|
60
|
-
assert.deepStrictEqual(args, before, 'input array must be unchanged');
|
|
61
|
-
});
|
|
62
|
-
it('is a no-op on a degenerate (too-short) argv rather than throwing', () => {
|
|
63
|
-
const runner = variant('east_node', { platforms: [] });
|
|
64
|
-
assert.deepStrictEqual(withRunnerVerbose(runner, ['east-node'], true), ['east-node']);
|
|
65
|
-
assert.deepStrictEqual(withRunnerVerbose(runner, [], true), []);
|
|
66
|
-
});
|
|
67
|
-
it('inserts -v after the merge subcommand too', () => {
|
|
68
|
-
const runner = variant('east_c', { platforms: ['east-c-std'] });
|
|
69
|
-
const args = [...runnerToArgv(runner, 'merge'), '--union', '-i', 'p0.beast2', '-o', 'out.beast2'];
|
|
70
|
-
assert.deepStrictEqual(withRunnerVerbose(runner, args, true).slice(0, 3), ['east-c', 'merge', '-v']);
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
describe('runnerToArgv', () => {
|
|
74
|
-
for (const [tag, runner, bin] of KNOWN) {
|
|
75
|
-
it(`resolves the run and merge commands of ${tag}`, () => {
|
|
76
|
-
assert.deepStrictEqual(runnerToArgv(runner).slice(0, 2), [bin, 'run']);
|
|
77
|
-
assert.deepStrictEqual(runnerToArgv(runner, 'run'), runnerToArgv(runner));
|
|
78
|
-
const merge = runnerToArgv(runner, 'merge');
|
|
79
|
-
assert.deepStrictEqual(merge.slice(0, 2), [bin, 'merge']);
|
|
80
|
-
// The platform flags follow either command unchanged.
|
|
81
|
-
assert.deepStrictEqual(merge.slice(2), runnerToArgv(runner).slice(2));
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
it('resolves a custom runner to its own command, and has no merge command for it', () => {
|
|
85
|
-
const runner = variant('custom', { command: ['uv', 'run', 'east-py', 'run'] });
|
|
86
|
-
assert.deepStrictEqual(runnerToArgv(runner), ['uv', 'run', 'east-py', 'run']);
|
|
87
|
-
assert.throws(() => runnerToArgv(runner, 'merge'), { message: 'a custom runner has no merge command' });
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
22
|
describe('withRunnerLifeline', () => {
|
|
91
23
|
for (const [tag, runner, bin] of KNOWN) {
|
|
92
|
-
it(`inserts --exit-with-parent after the subcommand for ${tag}
|
|
93
|
-
const args =
|
|
94
|
-
|
|
95
|
-
assert.deepStrictEqual(out.slice(0, 3), [bin, 'run', '--exit-with-parent']);
|
|
96
|
-
assert.deepStrictEqual(out.slice(3), args.slice(2));
|
|
97
|
-
const merge = [...runnerToArgv(runner, 'merge'), '--union', '-i', 'p0.beast2', '-o', 'out.beast2'];
|
|
98
|
-
assert.deepStrictEqual(withRunnerLifeline(runner, merge).slice(0, 3), [bin, 'merge', '--exit-with-parent']);
|
|
99
|
-
// Composed with -v, both sit ahead of the flags, in either order.
|
|
100
|
-
assert.deepStrictEqual(withRunnerVerbose(runner, withRunnerLifeline(runner, args), true).slice(0, 4), [bin, 'run', '-v', '--exit-with-parent']);
|
|
24
|
+
it(`inserts --exit-with-parent after the subcommand for ${tag}`, () => {
|
|
25
|
+
const args = [bin, 'exec', 'unit.beast2', '-v'];
|
|
26
|
+
assert.deepStrictEqual(withRunnerLifeline(runner, args), [bin, 'exec', '--exit-with-parent', 'unit.beast2', '-v']);
|
|
101
27
|
});
|
|
102
28
|
}
|
|
103
29
|
it('never splices the flag into a custom runner, which keeps an ignored stdin', () => {
|
|
104
30
|
const runner = variant('custom', { command: ['uv', 'run', 'east-py', 'run'] });
|
|
105
|
-
const args =
|
|
31
|
+
const args = ['uv', 'run', 'east-py', 'run', '-i', 'in.beast2', '-o', 'out.beast2', 'program.beast2'];
|
|
106
32
|
assert.deepStrictEqual(withRunnerLifeline(runner, args), args);
|
|
107
33
|
});
|
|
108
34
|
it('is a no-op on a degenerate argv and does not mutate its input', () => {
|
|
109
35
|
const runner = variant('east_c', { platforms: [] });
|
|
110
36
|
assert.deepStrictEqual(withRunnerLifeline(runner, ['east-c']), ['east-c']);
|
|
111
|
-
const args =
|
|
37
|
+
const args = ['east-c', 'exec', 'unit.beast2'];
|
|
112
38
|
const before = [...args];
|
|
113
39
|
withRunnerLifeline(runner, args);
|
|
114
40
|
assert.deepStrictEqual(args, before);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.spec.js","sourceRoot":"","sources":["../../src/runner.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"runner.spec.js","sourceRoot":"","sources":["../../src/runner.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAoB,MAAM,aAAa,CAAC;AAEnE,MAAM,KAAK,GAAyC;IAClD,CAAC,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,EAAE,SAAS,EAAE,CAAC,wBAAwB,CAAC,EAAE,CAAC,EAAE,WAAW,CAAC;IAC3F,CAAC,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC;IAC1E,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC;CACvE,CAAC;AAEF,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,KAAK,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,IAAI,KAAK,EAAE,CAAC;QACvC,EAAE,CAAC,uDAAuD,GAAG,EAAE,EAAE,GAAG,EAAE;YACpE,MAAM,IAAI,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,aAA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HANGED
|
@@ -97,63 +97,6 @@ export declare const StructureType: RecursiveType<VariantType<{
|
|
|
97
97
|
}>>;
|
|
98
98
|
export type StructureType = typeof StructureType;
|
|
99
99
|
export type Structure = ValueTypeOf<typeof StructureType>;
|
|
100
|
-
/** @deprecated Use StructureType instead */
|
|
101
|
-
export declare const DatasetSchemaType: RecursiveType<VariantType<{
|
|
102
|
-
/** Dataset: East type and writable flag */
|
|
103
|
-
readonly value: StructType<{
|
|
104
|
-
/** The East type of the dataset value (homoiconic EastTypeValue) */
|
|
105
|
-
readonly type: RecursiveType<VariantType<{
|
|
106
|
-
readonly Never: import("@elaraai/east").NullType;
|
|
107
|
-
readonly Null: import("@elaraai/east").NullType;
|
|
108
|
-
readonly Boolean: import("@elaraai/east").NullType;
|
|
109
|
-
readonly Integer: import("@elaraai/east").NullType;
|
|
110
|
-
readonly Float: import("@elaraai/east").NullType;
|
|
111
|
-
readonly String: import("@elaraai/east").NullType;
|
|
112
|
-
readonly DateTime: import("@elaraai/east").NullType;
|
|
113
|
-
readonly Blob: import("@elaraai/east").NullType;
|
|
114
|
-
readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
|
|
115
|
-
readonly Array: import("@elaraai/east").RecursiveTypeMarker;
|
|
116
|
-
readonly Set: import("@elaraai/east").RecursiveTypeMarker;
|
|
117
|
-
readonly Dict: StructType<{
|
|
118
|
-
readonly key: import("@elaraai/east").RecursiveTypeMarker;
|
|
119
|
-
readonly value: import("@elaraai/east").RecursiveTypeMarker;
|
|
120
|
-
}>;
|
|
121
|
-
readonly Struct: ArrayType<StructType<{
|
|
122
|
-
readonly name: StringType;
|
|
123
|
-
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
124
|
-
}>>;
|
|
125
|
-
readonly Variant: ArrayType<StructType<{
|
|
126
|
-
readonly name: StringType;
|
|
127
|
-
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
128
|
-
}>>;
|
|
129
|
-
readonly Recursive: VariantType<{
|
|
130
|
-
readonly ref: import("@elaraai/east").IntegerType;
|
|
131
|
-
readonly wrapper: StructType<{
|
|
132
|
-
readonly id: import("@elaraai/east").IntegerType;
|
|
133
|
-
readonly inner: import("@elaraai/east").RecursiveTypeMarker;
|
|
134
|
-
}>;
|
|
135
|
-
}>;
|
|
136
|
-
readonly Function: StructType<{
|
|
137
|
-
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
138
|
-
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
139
|
-
}>;
|
|
140
|
-
readonly AsyncFunction: StructType<{
|
|
141
|
-
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
142
|
-
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
143
|
-
}>;
|
|
144
|
-
readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
|
|
145
|
-
readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
|
|
146
|
-
}>>;
|
|
147
|
-
/** Whether the dataset can be written to by users (e.g., inputs are writable, task outputs are not) */
|
|
148
|
-
readonly writable: BooleanType;
|
|
149
|
-
}>;
|
|
150
|
-
/** Struct tree: named children mapping to child structures */
|
|
151
|
-
readonly struct: DictType<StringType, import("@elaraai/east").RecursiveTypeMarker>;
|
|
152
|
-
}>>;
|
|
153
|
-
/** @deprecated Use Structure instead */
|
|
154
|
-
export type DatasetSchemaType = StructureType;
|
|
155
|
-
/** @deprecated Use Structure instead */
|
|
156
|
-
export type DatasetSchema = Structure;
|
|
157
100
|
/**
|
|
158
101
|
* Path segment for navigating data trees.
|
|
159
102
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structure.d.ts","sourceRoot":"","sources":["../../src/structure.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAA0C,UAAU,EAAE,W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Struct tree: named children mapping to child structures */
|
|
55
55
|
struct: DictType(StringType, self),
|
|
56
56
|
}));
|
|
57
|
-
// Backwards compatibility alias
|
|
58
|
-
/** @deprecated Use StructureType instead */
|
|
59
|
-
export const DatasetSchemaType = StructureType;
|
|
60
57
|
/**
|
|
61
58
|
* Path segment for navigating data trees.
|
|
62
59
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structure.js","sourceRoot":"","sources":["../../src/structure.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAe,eAAe,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE1K;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,WAAW,CAAC;IAC7D,2CAA2C;IAC3C,KAAK,EAAE,UAAU,CAAC;QAChB,oEAAoE;QACpE,IAAI,EAAE,YAAY;QAClB,uGAAuG;QACvG,QAAQ,EAAE,WAAW;KACtB,CAAC;IACF,8DAA8D;IAC9D,MAAM,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC;CACnC,CAAC,CAAC,CAAC;AAKJ
|
|
1
|
+
{"version":3,"file":"structure.js","sourceRoot":"","sources":["../../src/structure.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAe,eAAe,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE1K;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAA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