@revisium/schema-toolkit 0.19.0 → 0.19.2
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/{types-EHdxfQpd.d.cts → FormulaPathBuilder-8gmUFlgu.d.cts} +27 -2
- package/dist/{types-Dw9ba_YE.d.ts → FormulaPathBuilder-B6RyUFN7.d.ts} +27 -2
- package/dist/chunk-3FJZMVWA.js +3 -0
- package/dist/{chunk-Y2GYABV7.js.map → chunk-3FJZMVWA.js.map} +1 -1
- package/dist/{chunk-OZ4ZCJXY.js → chunk-3V7AYFDS.js} +331 -25
- package/dist/chunk-3V7AYFDS.js.map +1 -0
- package/dist/{chunk-WJXVLFZN.cjs → chunk-HDZCCAWA.cjs} +125 -323
- package/dist/chunk-HDZCCAWA.cjs.map +1 -0
- package/dist/chunk-L6HE7QPU.cjs +4 -0
- package/dist/{chunk-MLNKM67U.cjs.map → chunk-L6HE7QPU.cjs.map} +1 -1
- package/dist/{chunk-HLHODANT.cjs → chunk-OMSE2HGD.cjs} +383 -73
- package/dist/chunk-OMSE2HGD.cjs.map +1 -0
- package/dist/{chunk-EPFW6FVB.js → chunk-XL4R6PSM.js} +123 -318
- package/dist/chunk-XL4R6PSM.js.map +1 -0
- package/dist/core/index.cjs +70 -58
- package/dist/core/index.d.cts +8 -2
- package/dist/core/index.d.ts +8 -2
- package/dist/core/index.js +2 -2
- package/dist/index.cjs +115 -115
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/model/index.cjs +58 -58
- package/dist/model/index.d.cts +4 -28
- package/dist/model/index.d.ts +4 -28
- package/dist/model/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-EPFW6FVB.js.map +0 -1
- package/dist/chunk-HLHODANT.cjs.map +0 -1
- package/dist/chunk-MLNKM67U.cjs +0 -4
- package/dist/chunk-OZ4ZCJXY.js.map +0 -1
- package/dist/chunk-WJXVLFZN.cjs.map +0 -1
- package/dist/chunk-Y2GYABV7.js +0 -3
package/dist/model/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkOMSE2HGD_cjs = require('../chunk-OMSE2HGD.cjs');
|
|
4
|
+
var chunkHDZCCAWA_cjs = require('../chunk-HDZCCAWA.cjs');
|
|
5
5
|
require('../chunk-TBFTADML.cjs');
|
|
6
6
|
require('../chunk-VGADCIBG.cjs');
|
|
7
7
|
var chunkB3T6YB2D_cjs = require('../chunk-B3T6YB2D.cjs');
|
|
@@ -12,179 +12,179 @@ require('../chunk-J6SCHJKG.cjs');
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, "ArrayToItemsTypeTransformer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkOMSE2HGD_cjs.ArrayToItemsTypeTransformer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "ArrayValueNode", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkOMSE2HGD_cjs.ArrayValueNode; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "BasePrimitiveValueNode", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkOMSE2HGD_cjs.BasePrimitiveValueNode; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "BaseValueNode", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkOMSE2HGD_cjs.BaseValueNode; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "BooleanValueNode", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkOMSE2HGD_cjs.BooleanValueNode; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "DataModelImpl", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkOMSE2HGD_cjs.DataModelImpl; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "DefaultTransformer", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkOMSE2HGD_cjs.DefaultTransformer; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "ForeignKeyNotFoundError", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkOMSE2HGD_cjs.ForeignKeyNotFoundError; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "ForeignKeyResolverImpl", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkOMSE2HGD_cjs.ForeignKeyResolverImpl; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "ForeignKeyResolverNotConfiguredError", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkOMSE2HGD_cjs.ForeignKeyResolverNotConfiguredError; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "ForeignKeyValueNodeImpl", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkOMSE2HGD_cjs.ForeignKeyValueNodeImpl; }
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(exports, "FormulaChangeDetector", {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function () { return chunkOMSE2HGD_cjs.FormulaChangeDetector; }
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(exports, "FormulaDependencyIndex", {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function () { return chunkOMSE2HGD_cjs.FormulaDependencyIndex; }
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(exports, "FormulaPath", {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () { return chunkOMSE2HGD_cjs.FormulaPath; }
|
|
56
68
|
});
|
|
57
69
|
Object.defineProperty(exports, "NodeFactory", {
|
|
58
70
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkOMSE2HGD_cjs.NodeFactory; }
|
|
60
72
|
});
|
|
61
73
|
Object.defineProperty(exports, "NodeFactoryRegistry", {
|
|
62
74
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkOMSE2HGD_cjs.NodeFactoryRegistry; }
|
|
64
76
|
});
|
|
65
77
|
Object.defineProperty(exports, "NumberValueNode", {
|
|
66
78
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkOMSE2HGD_cjs.NumberValueNode; }
|
|
68
80
|
});
|
|
69
81
|
Object.defineProperty(exports, "ObjectToArrayTransformer", {
|
|
70
82
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkOMSE2HGD_cjs.ObjectToArrayTransformer; }
|
|
72
84
|
});
|
|
73
85
|
Object.defineProperty(exports, "ObjectValueNode", {
|
|
74
86
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkOMSE2HGD_cjs.ObjectValueNode; }
|
|
88
|
+
});
|
|
89
|
+
Object.defineProperty(exports, "ParsedFormula", {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
get: function () { return chunkOMSE2HGD_cjs.ParsedFormula; }
|
|
76
92
|
});
|
|
77
93
|
Object.defineProperty(exports, "PrimitiveToArrayTransformer", {
|
|
78
94
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkOMSE2HGD_cjs.PrimitiveToArrayTransformer; }
|
|
80
96
|
});
|
|
81
97
|
Object.defineProperty(exports, "RefTransformer", {
|
|
82
98
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkOMSE2HGD_cjs.RefTransformer; }
|
|
84
100
|
});
|
|
85
101
|
Object.defineProperty(exports, "RowModelImpl", {
|
|
86
102
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkOMSE2HGD_cjs.RowModelImpl; }
|
|
88
104
|
});
|
|
89
105
|
Object.defineProperty(exports, "SchemaParser", {
|
|
90
106
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkOMSE2HGD_cjs.SchemaParser; }
|
|
92
108
|
});
|
|
93
109
|
Object.defineProperty(exports, "StringValueNode", {
|
|
94
110
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkOMSE2HGD_cjs.StringValueNode; }
|
|
96
112
|
});
|
|
97
113
|
Object.defineProperty(exports, "TableModelImpl", {
|
|
98
114
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkOMSE2HGD_cjs.TableModelImpl; }
|
|
100
116
|
});
|
|
101
117
|
Object.defineProperty(exports, "TypeTransformChain", {
|
|
102
118
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkOMSE2HGD_cjs.TypeTransformChain; }
|
|
104
120
|
});
|
|
105
121
|
Object.defineProperty(exports, "ValueNodeFactory", {
|
|
106
122
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkOMSE2HGD_cjs.NodeFactory2; }
|
|
108
124
|
});
|
|
109
125
|
Object.defineProperty(exports, "ValueType", {
|
|
110
126
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkOMSE2HGD_cjs.ValueType; }
|
|
112
128
|
});
|
|
113
129
|
Object.defineProperty(exports, "createDataModel", {
|
|
114
130
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkOMSE2HGD_cjs.createDataModel; }
|
|
116
132
|
});
|
|
117
133
|
Object.defineProperty(exports, "createDefaultRegistry", {
|
|
118
134
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkOMSE2HGD_cjs.createDefaultRegistry; }
|
|
120
136
|
});
|
|
121
137
|
Object.defineProperty(exports, "createForeignKeyResolver", {
|
|
122
138
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkOMSE2HGD_cjs.createForeignKeyResolver; }
|
|
124
140
|
});
|
|
125
141
|
Object.defineProperty(exports, "createNodeFactory", {
|
|
126
142
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkOMSE2HGD_cjs.createNodeFactory; }
|
|
128
144
|
});
|
|
129
145
|
Object.defineProperty(exports, "createSchemaModel", {
|
|
130
146
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkOMSE2HGD_cjs.createSchemaModel; }
|
|
132
148
|
});
|
|
133
149
|
Object.defineProperty(exports, "createTableModel", {
|
|
134
150
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkOMSE2HGD_cjs.createTableModel; }
|
|
136
152
|
});
|
|
137
153
|
Object.defineProperty(exports, "createTypeTransformChain", {
|
|
138
154
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkOMSE2HGD_cjs.createTypeTransformChain; }
|
|
140
156
|
});
|
|
141
157
|
Object.defineProperty(exports, "extractFormulaDefinition", {
|
|
142
158
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkOMSE2HGD_cjs.extractFormulaDefinition; }
|
|
144
160
|
});
|
|
145
161
|
Object.defineProperty(exports, "generateDefaultValue", {
|
|
146
162
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkOMSE2HGD_cjs.generateDefaultValue; }
|
|
148
164
|
});
|
|
149
165
|
Object.defineProperty(exports, "generateNodeId", {
|
|
150
166
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkOMSE2HGD_cjs.generateNodeId; }
|
|
152
168
|
});
|
|
153
169
|
Object.defineProperty(exports, "isForeignKeyValueNode", {
|
|
154
170
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkOMSE2HGD_cjs.isForeignKeyValueNode; }
|
|
156
172
|
});
|
|
157
173
|
Object.defineProperty(exports, "resetNodeIdCounter", {
|
|
158
174
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
160
|
-
});
|
|
161
|
-
Object.defineProperty(exports, "FormulaChangeDetector", {
|
|
162
|
-
enumerable: true,
|
|
163
|
-
get: function () { return chunkWJXVLFZN_cjs.FormulaChangeDetector; }
|
|
164
|
-
});
|
|
165
|
-
Object.defineProperty(exports, "FormulaDependencyIndex", {
|
|
166
|
-
enumerable: true,
|
|
167
|
-
get: function () { return chunkWJXVLFZN_cjs.FormulaDependencyIndex; }
|
|
168
|
-
});
|
|
169
|
-
Object.defineProperty(exports, "FormulaPath", {
|
|
170
|
-
enumerable: true,
|
|
171
|
-
get: function () { return chunkWJXVLFZN_cjs.FormulaPath; }
|
|
175
|
+
get: function () { return chunkOMSE2HGD_cjs.resetNodeIdCounter; }
|
|
172
176
|
});
|
|
173
177
|
Object.defineProperty(exports, "FormulaPathBuilder", {
|
|
174
178
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkHDZCCAWA_cjs.FormulaPathBuilder; }
|
|
176
180
|
});
|
|
177
181
|
Object.defineProperty(exports, "FormulaSerializer", {
|
|
178
182
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
180
|
-
});
|
|
181
|
-
Object.defineProperty(exports, "ParsedFormula", {
|
|
182
|
-
enumerable: true,
|
|
183
|
-
get: function () { return chunkWJXVLFZN_cjs.ParsedFormula; }
|
|
183
|
+
get: function () { return chunkHDZCCAWA_cjs.FormulaSerializer; }
|
|
184
184
|
});
|
|
185
185
|
Object.defineProperty(exports, "ResolvedDependency", {
|
|
186
186
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkHDZCCAWA_cjs.ResolvedDependency; }
|
|
188
188
|
});
|
|
189
189
|
Object.defineProperty(exports, "JsonArrayStore", {
|
|
190
190
|
enumerable: true,
|
package/dist/model/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h as JsonSchemaStore } from '../json-string.store-DOZn38CI.cjs';
|
|
2
2
|
export { A as AddedPropertyEvent, C as ChangeNameEvent, f as JsonArrayStore, m as JsonArrayValueStore, b as JsonBooleanStore, k as JsonBooleanValueStore, a as JsonNumberStore, j as JsonNumberValueStore, c as JsonObjectStore, l as JsonObjectValueStore, g as JsonSchemaStorePrimitives, J as JsonStringStore, i as JsonStringValueStore, p as JsonValueStore, o as JsonValueStoreParent, n as JsonValueStorePrimitives, d as MigrateItemsEvent, M as MigratePropertyEvent, R as RemovedPropertyEvent, e as ReplaceItemsEvent } from '../json-string.store-DOZn38CI.cjs';
|
|
3
|
-
import {
|
|
4
|
-
export { R as ResolvedDependency } from '../
|
|
3
|
+
import { l as SchemaNode, P as Path, j as NodeMetadata, h as SchemaValidationError, T as TreeFormulaValidationError, n as SchemaPatch, m as SchemaTree, D as Diagnostic, r as Formula, F as FormulaDependency } from '../FormulaPathBuilder-8gmUFlgu.cjs';
|
|
4
|
+
export { b as FormulaPathBuilder, a as FormulaSerializer, R as ResolvedDependency } from '../FormulaPathBuilder-8gmUFlgu.cjs';
|
|
5
5
|
import { h as JsonPatch } from '../json-patch.types-Cu0Medki.cjs';
|
|
6
|
-
import { f as JsonObjectSchema, i as JsonSchema
|
|
6
|
+
import { f as JsonObjectSchema, i as JsonSchema } from '../schema.types-B5OgKLpV.cjs';
|
|
7
7
|
import { d as JsonValuePatch } from '../json-value-patch.types-CjBpq5VF.cjs';
|
|
8
8
|
import { ASTNode } from '@revisium/formula';
|
|
9
9
|
import 'eventemitter3';
|
|
@@ -565,30 +565,6 @@ declare class FormulaPath {
|
|
|
565
565
|
private parseFormulaPath;
|
|
566
566
|
}
|
|
567
567
|
|
|
568
|
-
interface SerializeOptions {
|
|
569
|
-
readonly strict?: boolean;
|
|
570
|
-
}
|
|
571
|
-
declare class FormulaSerializer {
|
|
572
|
-
private readonly tree;
|
|
573
|
-
private readonly formulaNodeId;
|
|
574
|
-
private readonly formula;
|
|
575
|
-
private readonly pathBuilder;
|
|
576
|
-
constructor(tree: SchemaTree, formulaNodeId: string, formula: Formula);
|
|
577
|
-
static toXFormula(tree: SchemaTree, formulaNodeId: string, formula: Formula): XFormula;
|
|
578
|
-
static serializeExpression(tree: SchemaTree, formulaNodeId: string, formula: Formula, options?: SerializeOptions): string;
|
|
579
|
-
serialize(options?: SerializeOptions): string;
|
|
580
|
-
private buildPathReplacements;
|
|
581
|
-
private needsReplacement;
|
|
582
|
-
private normalizeArrayNotation;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
declare class FormulaPathBuilder {
|
|
586
|
-
buildWithArrayNotation(fromPath: Path, toPath: Path): string;
|
|
587
|
-
private findCommonPrefixLength;
|
|
588
|
-
private buildPartsWithArrayNotation;
|
|
589
|
-
private formatPartsWithArrayNotation;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
568
|
declare class FormulaDependencyIndex {
|
|
593
569
|
private readonly dependentsMap;
|
|
594
570
|
private readonly formulasByNodeId;
|
|
@@ -766,4 +742,4 @@ declare class ForeignKeyValueNodeImpl extends StringValueNode implements Foreign
|
|
|
766
742
|
getSchema(): Promise<JsonObjectSchema>;
|
|
767
743
|
}
|
|
768
744
|
|
|
769
|
-
export { type ArrayNodeOptions, ArrayToItemsTypeTransformer, ArrayValueNode, type ArrayValueNode$1 as ArrayValueNodeInterface, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, type CompositeTypeName, type DataModel, DataModelImpl, type DataModelOptions, DefaultTransformer, type DirtyTrackable, type FieldSchemaSpec, type FieldType, type FieldTypeSpec, type ForeignKeyLoader, type ForeignKeyLoaderResult, ForeignKeyNotFoundError, type ForeignKeyResolver, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, type ForeignKeyResolverOptions, type ForeignKeyRowLoaderResult, type ForeignKeyValueNode, ForeignKeyValueNodeImpl, FormulaChangeDetector, type FormulaDefinition, FormulaDependency, FormulaDependencyIndex, FormulaPath,
|
|
745
|
+
export { type ArrayNodeOptions, ArrayToItemsTypeTransformer, ArrayValueNode, type ArrayValueNode$1 as ArrayValueNodeInterface, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, type CompositeTypeName, type DataModel, DataModelImpl, type DataModelOptions, DefaultTransformer, type DirtyTrackable, type FieldSchemaSpec, type FieldType, type FieldTypeSpec, type ForeignKeyLoader, type ForeignKeyLoaderResult, ForeignKeyNotFoundError, type ForeignKeyResolver, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, type ForeignKeyResolverOptions, type ForeignKeyRowLoaderResult, type ForeignKeyValueNode, ForeignKeyValueNodeImpl, FormulaChangeDetector, type FormulaDefinition, FormulaDependency, FormulaDependencyIndex, FormulaPath, type FormulaWarning, type GenerateDefaultValueOptions, type IndirectFormulaChange, JsonSchemaStore, NodeFactory$1 as NodeFactory, type NodeFactoryFn, type NodeFactoryOptions, NodeFactoryRegistry, NumberValueNode, type ObjectNodeOptions, ObjectToArrayTransformer, ObjectValueNode, type ObjectValueNode$1 as ObjectValueNodeInterface, ParsedFormula, type PrimitiveNodeOptions, PrimitiveToArrayTransformer, type PrimitiveTypeName, type PrimitiveValueNode, type RefSchemas, RefTransformer, type ReplaceResult, type RowData, type RowModel, RowModelImpl, type SchemaModel, type SchemaModelOptions, SchemaParser, type SimpleFieldType, StringValueNode, type TableModel, TableModelImpl, type TableModelLike, type TableModelOptions, type TransformContext, type TransformResult, TypeTransformChain, type TypeTransformChainOptions, type TypeTransformer, type ValueNode, NodeFactory as ValueNodeFactory, type ValueNodeOptions, type ValueTreeLike, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createSchemaModel, createTableModel, createTypeTransformChain, equal, extractFormulaDefinition, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, generateDefaultValue, generateNodeId, getTransformation, isForeignKeyValueNode, resetNodeIdCounter, toArrayTransformation };
|
package/dist/model/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h as JsonSchemaStore } from '../json-string.store-DRmQFKrp.js';
|
|
2
2
|
export { A as AddedPropertyEvent, C as ChangeNameEvent, f as JsonArrayStore, m as JsonArrayValueStore, b as JsonBooleanStore, k as JsonBooleanValueStore, a as JsonNumberStore, j as JsonNumberValueStore, c as JsonObjectStore, l as JsonObjectValueStore, g as JsonSchemaStorePrimitives, J as JsonStringStore, i as JsonStringValueStore, p as JsonValueStore, o as JsonValueStoreParent, n as JsonValueStorePrimitives, d as MigrateItemsEvent, M as MigratePropertyEvent, R as RemovedPropertyEvent, e as ReplaceItemsEvent } from '../json-string.store-DRmQFKrp.js';
|
|
3
|
-
import {
|
|
4
|
-
export { R as ResolvedDependency } from '../
|
|
3
|
+
import { l as SchemaNode, P as Path, j as NodeMetadata, h as SchemaValidationError, T as TreeFormulaValidationError, n as SchemaPatch, m as SchemaTree, D as Diagnostic, r as Formula, F as FormulaDependency } from '../FormulaPathBuilder-B6RyUFN7.js';
|
|
4
|
+
export { b as FormulaPathBuilder, a as FormulaSerializer, R as ResolvedDependency } from '../FormulaPathBuilder-B6RyUFN7.js';
|
|
5
5
|
import { h as JsonPatch } from '../json-patch.types-DY7k9hxy.js';
|
|
6
|
-
import { f as JsonObjectSchema, i as JsonSchema
|
|
6
|
+
import { f as JsonObjectSchema, i as JsonSchema } from '../schema.types-B5OgKLpV.js';
|
|
7
7
|
import { d as JsonValuePatch } from '../json-value-patch.types-U2y_ugm1.js';
|
|
8
8
|
import { ASTNode } from '@revisium/formula';
|
|
9
9
|
import 'eventemitter3';
|
|
@@ -565,30 +565,6 @@ declare class FormulaPath {
|
|
|
565
565
|
private parseFormulaPath;
|
|
566
566
|
}
|
|
567
567
|
|
|
568
|
-
interface SerializeOptions {
|
|
569
|
-
readonly strict?: boolean;
|
|
570
|
-
}
|
|
571
|
-
declare class FormulaSerializer {
|
|
572
|
-
private readonly tree;
|
|
573
|
-
private readonly formulaNodeId;
|
|
574
|
-
private readonly formula;
|
|
575
|
-
private readonly pathBuilder;
|
|
576
|
-
constructor(tree: SchemaTree, formulaNodeId: string, formula: Formula);
|
|
577
|
-
static toXFormula(tree: SchemaTree, formulaNodeId: string, formula: Formula): XFormula;
|
|
578
|
-
static serializeExpression(tree: SchemaTree, formulaNodeId: string, formula: Formula, options?: SerializeOptions): string;
|
|
579
|
-
serialize(options?: SerializeOptions): string;
|
|
580
|
-
private buildPathReplacements;
|
|
581
|
-
private needsReplacement;
|
|
582
|
-
private normalizeArrayNotation;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
declare class FormulaPathBuilder {
|
|
586
|
-
buildWithArrayNotation(fromPath: Path, toPath: Path): string;
|
|
587
|
-
private findCommonPrefixLength;
|
|
588
|
-
private buildPartsWithArrayNotation;
|
|
589
|
-
private formatPartsWithArrayNotation;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
568
|
declare class FormulaDependencyIndex {
|
|
593
569
|
private readonly dependentsMap;
|
|
594
570
|
private readonly formulasByNodeId;
|
|
@@ -766,4 +742,4 @@ declare class ForeignKeyValueNodeImpl extends StringValueNode implements Foreign
|
|
|
766
742
|
getSchema(): Promise<JsonObjectSchema>;
|
|
767
743
|
}
|
|
768
744
|
|
|
769
|
-
export { type ArrayNodeOptions, ArrayToItemsTypeTransformer, ArrayValueNode, type ArrayValueNode$1 as ArrayValueNodeInterface, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, type CompositeTypeName, type DataModel, DataModelImpl, type DataModelOptions, DefaultTransformer, type DirtyTrackable, type FieldSchemaSpec, type FieldType, type FieldTypeSpec, type ForeignKeyLoader, type ForeignKeyLoaderResult, ForeignKeyNotFoundError, type ForeignKeyResolver, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, type ForeignKeyResolverOptions, type ForeignKeyRowLoaderResult, type ForeignKeyValueNode, ForeignKeyValueNodeImpl, FormulaChangeDetector, type FormulaDefinition, FormulaDependency, FormulaDependencyIndex, FormulaPath,
|
|
745
|
+
export { type ArrayNodeOptions, ArrayToItemsTypeTransformer, ArrayValueNode, type ArrayValueNode$1 as ArrayValueNodeInterface, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, type CompositeTypeName, type DataModel, DataModelImpl, type DataModelOptions, DefaultTransformer, type DirtyTrackable, type FieldSchemaSpec, type FieldType, type FieldTypeSpec, type ForeignKeyLoader, type ForeignKeyLoaderResult, ForeignKeyNotFoundError, type ForeignKeyResolver, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, type ForeignKeyResolverOptions, type ForeignKeyRowLoaderResult, type ForeignKeyValueNode, ForeignKeyValueNodeImpl, FormulaChangeDetector, type FormulaDefinition, FormulaDependency, FormulaDependencyIndex, FormulaPath, type FormulaWarning, type GenerateDefaultValueOptions, type IndirectFormulaChange, JsonSchemaStore, NodeFactory$1 as NodeFactory, type NodeFactoryFn, type NodeFactoryOptions, NodeFactoryRegistry, NumberValueNode, type ObjectNodeOptions, ObjectToArrayTransformer, ObjectValueNode, type ObjectValueNode$1 as ObjectValueNodeInterface, ParsedFormula, type PrimitiveNodeOptions, PrimitiveToArrayTransformer, type PrimitiveTypeName, type PrimitiveValueNode, type RefSchemas, RefTransformer, type ReplaceResult, type RowData, type RowModel, RowModelImpl, type SchemaModel, type SchemaModelOptions, SchemaParser, type SimpleFieldType, StringValueNode, type TableModel, TableModelImpl, type TableModelLike, type TableModelOptions, type TransformContext, type TransformResult, TypeTransformChain, type TypeTransformChainOptions, type TypeTransformer, type ValueNode, NodeFactory as ValueNodeFactory, type ValueNodeOptions, type ValueTreeLike, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createSchemaModel, createTableModel, createTypeTransformChain, equal, extractFormulaDefinition, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, generateDefaultValue, generateNodeId, getTransformation, isForeignKeyValueNode, resetNodeIdCounter, toArrayTransformation };
|
package/dist/model/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ArrayToItemsTypeTransformer, ArrayValueNode, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, DataModelImpl, DefaultTransformer, ForeignKeyNotFoundError, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, ForeignKeyValueNodeImpl, NodeFactory, NodeFactoryRegistry, NumberValueNode, ObjectToArrayTransformer, ObjectValueNode, PrimitiveToArrayTransformer, RefTransformer, RowModelImpl, SchemaParser, StringValueNode, TableModelImpl, TypeTransformChain, NodeFactory2 as ValueNodeFactory, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createSchemaModel, createTableModel, createTypeTransformChain, extractFormulaDefinition, generateDefaultValue, generateNodeId, isForeignKeyValueNode, resetNodeIdCounter } from '../chunk-
|
|
2
|
-
export {
|
|
1
|
+
export { ArrayToItemsTypeTransformer, ArrayValueNode, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, DataModelImpl, DefaultTransformer, ForeignKeyNotFoundError, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, ForeignKeyValueNodeImpl, FormulaChangeDetector, FormulaDependencyIndex, FormulaPath, NodeFactory, NodeFactoryRegistry, NumberValueNode, ObjectToArrayTransformer, ObjectValueNode, ParsedFormula, PrimitiveToArrayTransformer, RefTransformer, RowModelImpl, SchemaParser, StringValueNode, TableModelImpl, TypeTransformChain, NodeFactory2 as ValueNodeFactory, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createSchemaModel, createTableModel, createTypeTransformChain, extractFormulaDefinition, generateDefaultValue, generateNodeId, isForeignKeyValueNode, resetNodeIdCounter } from '../chunk-3V7AYFDS.js';
|
|
2
|
+
export { FormulaPathBuilder, FormulaSerializer, ResolvedDependency } from '../chunk-XL4R6PSM.js';
|
|
3
3
|
import '../chunk-3IKI64T2.js';
|
|
4
4
|
import '../chunk-R4CFU33U.js';
|
|
5
5
|
export { JsonArrayStore, JsonArrayValueStore, JsonBooleanStore, JsonBooleanValueStore, JsonNumberStore, JsonNumberValueStore, JsonObjectStore, JsonObjectValueStore, JsonStringStore, JsonStringValueStore, equal, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, getTransformation, toArrayTransformation } from '../chunk-55AMH44G.js';
|