@revisium/schema-toolkit 0.21.4 → 0.22.0
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 +63 -2
- package/dist/{chunk-MXEQ5CBK.js → chunk-2GZ3M3RV.js} +3 -0
- package/dist/chunk-5G3AVY57.js +1 -0
- package/dist/chunk-5M74TGFQ.cjs +2 -0
- package/dist/{chunk-3MXYXTNF.js → chunk-B3W5BASK.js} +22 -3
- package/dist/{chunk-JLXX3SGF.js → chunk-GAP5KNWN.js} +229 -2
- package/dist/{chunk-XKWWCXGB.js → chunk-HOMXBUQB.js} +143 -20
- package/dist/{chunk-URMXJ6FH.cjs → chunk-JHNATNUI.cjs} +90 -71
- package/dist/{chunk-T46TZYJL.cjs → chunk-PJ5OFCLO.cjs} +3 -0
- package/dist/{chunk-QKA7DJDN.cjs → chunk-WY3CL7KH.cjs} +143 -19
- package/dist/{chunk-7JWCZZPJ.cjs → chunk-YZEJKK4O.cjs} +236 -0
- package/dist/core/index.cjs +60 -60
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +182 -157
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -4
- package/dist/lib/index.cjs +54 -33
- package/dist/lib/index.d.cts +49 -1
- package/dist/lib/index.d.ts +49 -1
- package/dist/lib/index.js +2 -1
- package/dist/model/index.cjs +50 -50
- package/dist/model/index.d.cts +11 -3
- package/dist/model/index.d.ts +11 -3
- package/dist/model/index.js +2 -2
- package/dist/{typed-DjSH_5Vh.d.cts → typed-C0YM-ar9.d.cts} +6 -0
- package/dist/{typed-KUia-LYN.d.ts → typed-CkirI6bH.d.ts} +6 -0
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/validation-schemas/index.cjs +23 -18
- package/dist/validation-schemas/index.d.cts +3 -1
- package/dist/validation-schemas/index.d.ts +3 -1
- package/dist/validation-schemas/index.js +2 -1
- package/package.json +2 -2
package/dist/model/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkJHNATNUI_cjs = require('../chunk-JHNATNUI.cjs');
|
|
4
|
+
var chunkPJ5OFCLO_cjs = require('../chunk-PJ5OFCLO.cjs');
|
|
5
5
|
require('../chunk-2PIMJSWJ.cjs');
|
|
6
6
|
var chunkONW2OVNQ_cjs = require('../chunk-ONW2OVNQ.cjs');
|
|
7
7
|
|
|
@@ -9,195 +9,195 @@ var chunkONW2OVNQ_cjs = require('../chunk-ONW2OVNQ.cjs');
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "ArrayToItemsTypeTransformer", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkJHNATNUI_cjs.ArrayToItemsTypeTransformer; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "ArrayValueNode", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkJHNATNUI_cjs.ArrayValueNode; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "BasePrimitiveValueNode", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkJHNATNUI_cjs.BasePrimitiveValueNode; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "BaseValueNode", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkJHNATNUI_cjs.BaseValueNode; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "BooleanValueNode", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkJHNATNUI_cjs.BooleanValueNode; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "DataModelImpl", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkJHNATNUI_cjs.DataModelImpl; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "DefaultTransformer", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkJHNATNUI_cjs.DefaultTransformer; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "ForeignKeyNotFoundError", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkJHNATNUI_cjs.ForeignKeyNotFoundError; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "ForeignKeyResolverImpl", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkJHNATNUI_cjs.ForeignKeyResolverImpl; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "ForeignKeyResolverNotConfiguredError", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkJHNATNUI_cjs.ForeignKeyResolverNotConfiguredError; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "ForeignKeyValueNodeImpl", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkJHNATNUI_cjs.ForeignKeyValueNodeImpl; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "FormulaChangeDetector", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkJHNATNUI_cjs.FormulaChangeDetector; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "FormulaDependencyIndex", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkJHNATNUI_cjs.FormulaDependencyIndex; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "FormulaPath", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkJHNATNUI_cjs.FormulaPath; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "NodeFactory", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkJHNATNUI_cjs.NodeFactory; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "NodeFactoryRegistry", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkJHNATNUI_cjs.NodeFactoryRegistry; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "NumberValueNode", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkJHNATNUI_cjs.NumberValueNode; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "ObjectToArrayTransformer", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkJHNATNUI_cjs.ObjectToArrayTransformer; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "ObjectValueNode", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkJHNATNUI_cjs.ObjectValueNode; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "ParsedFormula", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkJHNATNUI_cjs.ParsedFormula; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "PrimitiveToArrayTransformer", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkJHNATNUI_cjs.PrimitiveToArrayTransformer; }
|
|
93
93
|
});
|
|
94
94
|
Object.defineProperty(exports, "RefTransformer", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkJHNATNUI_cjs.RefTransformer; }
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "RowModelImpl", {
|
|
99
99
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkJHNATNUI_cjs.RowModelImpl; }
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "SchemaParser", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkJHNATNUI_cjs.SchemaParser; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "StringValueNode", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkJHNATNUI_cjs.StringValueNode; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "TableModelImpl", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkJHNATNUI_cjs.TableModelImpl; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "TypeTransformChain", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkJHNATNUI_cjs.TypeTransformChain; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "ValueNodeFactory", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkJHNATNUI_cjs.NodeFactory2; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "ValueTree", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkJHNATNUI_cjs.ValueTree; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "ValueType", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkJHNATNUI_cjs.ValueType; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "createDataModel", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkJHNATNUI_cjs.createDataModel; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "createDefaultRegistry", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkJHNATNUI_cjs.createDefaultRegistry; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "createForeignKeyResolver", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkJHNATNUI_cjs.createForeignKeyResolver; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "createNodeFactory", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkJHNATNUI_cjs.createNodeFactory; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "createRowModel", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkJHNATNUI_cjs.createRowModel; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "createSchemaModel", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkJHNATNUI_cjs.createSchemaModel; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "createTableModel", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkJHNATNUI_cjs.createTableModel; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "createTypeTransformChain", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkJHNATNUI_cjs.createTypeTransformChain; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "createTypedTree", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkJHNATNUI_cjs.createTypedTree; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "extractFormulaDefinition", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkJHNATNUI_cjs.extractFormulaDefinition; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "generateDefaultValue", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkJHNATNUI_cjs.generateDefaultValue; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "generateNodeId", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkJHNATNUI_cjs.generateNodeId; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "isForeignKeyValueNode", {
|
|
179
179
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkJHNATNUI_cjs.isForeignKeyValueNode; }
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "resetNodeIdCounter", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkJHNATNUI_cjs.resetNodeIdCounter; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "typedNode", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkJHNATNUI_cjs.typedNode; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "FormulaPathBuilder", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkPJ5OFCLO_cjs.FormulaPathBuilder; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "FormulaSerializer", {
|
|
195
195
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkPJ5OFCLO_cjs.FormulaSerializer; }
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(exports, "ResolvedDependency", {
|
|
199
199
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkPJ5OFCLO_cjs.ResolvedDependency; }
|
|
201
201
|
});
|
|
202
202
|
Object.defineProperty(exports, "JsonArrayStore", {
|
|
203
203
|
enumerable: true,
|
package/dist/model/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h as JsonSchemaStore } from '../json-string.store-cAOADo23.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-cAOADo23.cjs';
|
|
3
|
-
import { a3 as RefSchemas, Y as TypeTransformer, E as FieldTypeSpec, _ as TransformResult, Z as TransformContext, M as RowData, H as SchemaModelOptions, B as SchemaModel, C as FieldType, Q as RowModel, S as SchemaPaths, N as NodeAtPath, V as ValueAtPath, I as InferValue, U as RowModelOptions, z as ValueTreeLike, W as TableModelLike, q as ValueNode, d as JsonValuePatch, L as TableModelOptions, K as TableModel, X as ForeignKeyResolver,
|
|
4
|
-
export { v as ArrayNodeOptions, a2 as CompositeTypeName, D as DirtyTrackable, $ as FieldSchemaSpec, w as NodeFactoryFn, n as NodeFactoryRegistry, u as ObjectNodeOptions, t as PrimitiveNodeOptions, a1 as PrimitiveTypeName, G as ReplaceResult, a0 as SimpleFieldType, s as ValueNodeOptions, p as createDefaultRegistry, o as createNodeFactory, m as extractFormulaDefinition } from '../typed-
|
|
3
|
+
import { a3 as RefSchemas, Y as TypeTransformer, E as FieldTypeSpec, _ as TransformResult, Z as TransformContext, M as RowData, H as SchemaModelOptions, B as SchemaModel, C as FieldType, Q as RowModel, g as InferNode, S as SchemaPaths, N as NodeAtPath, V as ValueAtPath, I as InferValue, U as RowModelOptions, z as ValueTreeLike, R as RefSchemas$1, W as TableModelLike, q as ValueNode, d as JsonValuePatch, L as TableModelOptions, K as TableModel, X as ForeignKeyResolver, l as ValueType, a4 as NodeChangeListener, a5 as NodeChangeEvent, O as ObjectValueNode$1, A as ArrayValueNode$1, P as PrimitiveValueNode, r as FormulaWarning, F as FormulaDefinition, y as NodeFactory$1, a6 as ValuePath, a7 as Change, x as NodeFactoryOptions } from '../typed-C0YM-ar9.cjs';
|
|
4
|
+
export { v as ArrayNodeOptions, a2 as CompositeTypeName, D as DirtyTrackable, $ as FieldSchemaSpec, w as NodeFactoryFn, n as NodeFactoryRegistry, u as ObjectNodeOptions, t as PrimitiveNodeOptions, a1 as PrimitiveTypeName, G as ReplaceResult, a0 as SimpleFieldType, s as ValueNodeOptions, p as createDefaultRegistry, o as createNodeFactory, m as extractFormulaDefinition } from '../typed-C0YM-ar9.cjs';
|
|
5
5
|
import { g as JsonObjectSchema, j as JsonSchema } from '../schema.types-On_VGw2m.cjs';
|
|
6
6
|
import { j as SchemaNode, T as TreeFormulaValidationError, D as Diagnostic, o as Formula, F as FormulaDependency, P as Path } from '../types-BIvIURgy.cjs';
|
|
7
7
|
export { R as ResolvedDependency } from '../types-BIvIURgy.cjs';
|
|
@@ -112,10 +112,12 @@ declare class NodeFactory {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
interface TypedRowModel<S> extends RowModel {
|
|
115
|
+
readonly root: InferNode<S>;
|
|
115
116
|
get<P extends SchemaPaths<S>>(path: P): NodeAtPath<S, P>;
|
|
116
117
|
getValue<P extends SchemaPaths<S>>(path: P): ValueAtPath<S, P>;
|
|
117
118
|
setValue<P extends SchemaPaths<S>>(path: P, value: ValueAtPath<S, P>): void;
|
|
118
119
|
getPlainValue(): InferValue<S>;
|
|
120
|
+
reset(data?: InferValue<S>): void;
|
|
119
121
|
}
|
|
120
122
|
interface TypedRowModelOptions<S extends JsonSchema> extends Omit<RowModelOptions, 'schema' | 'data'> {
|
|
121
123
|
schema: S;
|
|
@@ -125,11 +127,14 @@ interface TypedRowModelOptions<S extends JsonSchema> extends Omit<RowModelOption
|
|
|
125
127
|
declare class RowModelImpl implements RowModel {
|
|
126
128
|
private readonly _rowId;
|
|
127
129
|
private readonly _tree;
|
|
130
|
+
private readonly _schema;
|
|
131
|
+
private readonly _refSchemas?;
|
|
128
132
|
private _tableModel;
|
|
129
|
-
constructor(_rowId: string, _tree: ValueTreeLike);
|
|
133
|
+
constructor(_rowId: string, _tree: ValueTreeLike, _schema: JsonSchema, _refSchemas?: RefSchemas$1 | undefined);
|
|
130
134
|
get rowId(): string;
|
|
131
135
|
get tableModel(): TableModelLike | null;
|
|
132
136
|
get tree(): ValueTreeLike;
|
|
137
|
+
get root(): ValueNode;
|
|
133
138
|
get index(): number;
|
|
134
139
|
get prev(): RowModel | null;
|
|
135
140
|
get next(): RowModel | null;
|
|
@@ -144,6 +149,7 @@ declare class RowModelImpl implements RowModel {
|
|
|
144
149
|
get patches(): readonly JsonValuePatch[];
|
|
145
150
|
commit(): void;
|
|
146
151
|
revert(): void;
|
|
152
|
+
reset(data?: unknown): void;
|
|
147
153
|
dispose(): void;
|
|
148
154
|
setTableModel(tableModel: TableModelLike | null): void;
|
|
149
155
|
}
|
|
@@ -466,6 +472,8 @@ declare class ArrayValueNode extends BaseValueNode implements ArrayValueNode$1 {
|
|
|
466
472
|
get length(): number;
|
|
467
473
|
getPlainValue(): unknown[];
|
|
468
474
|
at(index: number): ValueNode | undefined;
|
|
475
|
+
find(predicate: (node: ValueNode, index: number) => boolean): ValueNode | undefined;
|
|
476
|
+
findIndex(predicate: (node: ValueNode, index: number) => boolean): number;
|
|
469
477
|
push(node: ValueNode): void;
|
|
470
478
|
insertAt(index: number, node: ValueNode): void;
|
|
471
479
|
removeAt(index: number): void;
|
package/dist/model/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h as JsonSchemaStore } from '../json-string.store-DfdLcgnM.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-DfdLcgnM.js';
|
|
3
|
-
import { a3 as RefSchemas, Y as TypeTransformer, E as FieldTypeSpec, _ as TransformResult, Z as TransformContext, M as RowData, H as SchemaModelOptions, B as SchemaModel, C as FieldType, Q as RowModel, S as SchemaPaths, N as NodeAtPath, V as ValueAtPath, I as InferValue, U as RowModelOptions, z as ValueTreeLike, W as TableModelLike, q as ValueNode, d as JsonValuePatch, L as TableModelOptions, K as TableModel, X as ForeignKeyResolver,
|
|
4
|
-
export { v as ArrayNodeOptions, a2 as CompositeTypeName, D as DirtyTrackable, $ as FieldSchemaSpec, w as NodeFactoryFn, n as NodeFactoryRegistry, u as ObjectNodeOptions, t as PrimitiveNodeOptions, a1 as PrimitiveTypeName, G as ReplaceResult, a0 as SimpleFieldType, s as ValueNodeOptions, p as createDefaultRegistry, o as createNodeFactory, m as extractFormulaDefinition } from '../typed-
|
|
3
|
+
import { a3 as RefSchemas, Y as TypeTransformer, E as FieldTypeSpec, _ as TransformResult, Z as TransformContext, M as RowData, H as SchemaModelOptions, B as SchemaModel, C as FieldType, Q as RowModel, g as InferNode, S as SchemaPaths, N as NodeAtPath, V as ValueAtPath, I as InferValue, U as RowModelOptions, z as ValueTreeLike, R as RefSchemas$1, W as TableModelLike, q as ValueNode, d as JsonValuePatch, L as TableModelOptions, K as TableModel, X as ForeignKeyResolver, l as ValueType, a4 as NodeChangeListener, a5 as NodeChangeEvent, O as ObjectValueNode$1, A as ArrayValueNode$1, P as PrimitiveValueNode, r as FormulaWarning, F as FormulaDefinition, y as NodeFactory$1, a6 as ValuePath, a7 as Change, x as NodeFactoryOptions } from '../typed-CkirI6bH.js';
|
|
4
|
+
export { v as ArrayNodeOptions, a2 as CompositeTypeName, D as DirtyTrackable, $ as FieldSchemaSpec, w as NodeFactoryFn, n as NodeFactoryRegistry, u as ObjectNodeOptions, t as PrimitiveNodeOptions, a1 as PrimitiveTypeName, G as ReplaceResult, a0 as SimpleFieldType, s as ValueNodeOptions, p as createDefaultRegistry, o as createNodeFactory, m as extractFormulaDefinition } from '../typed-CkirI6bH.js';
|
|
5
5
|
import { g as JsonObjectSchema, j as JsonSchema } from '../schema.types-On_VGw2m.js';
|
|
6
6
|
import { j as SchemaNode, T as TreeFormulaValidationError, D as Diagnostic, o as Formula, F as FormulaDependency, P as Path } from '../types-C_pTFtSY.js';
|
|
7
7
|
export { R as ResolvedDependency } from '../types-C_pTFtSY.js';
|
|
@@ -112,10 +112,12 @@ declare class NodeFactory {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
interface TypedRowModel<S> extends RowModel {
|
|
115
|
+
readonly root: InferNode<S>;
|
|
115
116
|
get<P extends SchemaPaths<S>>(path: P): NodeAtPath<S, P>;
|
|
116
117
|
getValue<P extends SchemaPaths<S>>(path: P): ValueAtPath<S, P>;
|
|
117
118
|
setValue<P extends SchemaPaths<S>>(path: P, value: ValueAtPath<S, P>): void;
|
|
118
119
|
getPlainValue(): InferValue<S>;
|
|
120
|
+
reset(data?: InferValue<S>): void;
|
|
119
121
|
}
|
|
120
122
|
interface TypedRowModelOptions<S extends JsonSchema> extends Omit<RowModelOptions, 'schema' | 'data'> {
|
|
121
123
|
schema: S;
|
|
@@ -125,11 +127,14 @@ interface TypedRowModelOptions<S extends JsonSchema> extends Omit<RowModelOption
|
|
|
125
127
|
declare class RowModelImpl implements RowModel {
|
|
126
128
|
private readonly _rowId;
|
|
127
129
|
private readonly _tree;
|
|
130
|
+
private readonly _schema;
|
|
131
|
+
private readonly _refSchemas?;
|
|
128
132
|
private _tableModel;
|
|
129
|
-
constructor(_rowId: string, _tree: ValueTreeLike);
|
|
133
|
+
constructor(_rowId: string, _tree: ValueTreeLike, _schema: JsonSchema, _refSchemas?: RefSchemas$1 | undefined);
|
|
130
134
|
get rowId(): string;
|
|
131
135
|
get tableModel(): TableModelLike | null;
|
|
132
136
|
get tree(): ValueTreeLike;
|
|
137
|
+
get root(): ValueNode;
|
|
133
138
|
get index(): number;
|
|
134
139
|
get prev(): RowModel | null;
|
|
135
140
|
get next(): RowModel | null;
|
|
@@ -144,6 +149,7 @@ declare class RowModelImpl implements RowModel {
|
|
|
144
149
|
get patches(): readonly JsonValuePatch[];
|
|
145
150
|
commit(): void;
|
|
146
151
|
revert(): void;
|
|
152
|
+
reset(data?: unknown): void;
|
|
147
153
|
dispose(): void;
|
|
148
154
|
setTableModel(tableModel: TableModelLike | null): void;
|
|
149
155
|
}
|
|
@@ -466,6 +472,8 @@ declare class ArrayValueNode extends BaseValueNode implements ArrayValueNode$1 {
|
|
|
466
472
|
get length(): number;
|
|
467
473
|
getPlainValue(): unknown[];
|
|
468
474
|
at(index: number): ValueNode | undefined;
|
|
475
|
+
find(predicate: (node: ValueNode, index: number) => boolean): ValueNode | undefined;
|
|
476
|
+
findIndex(predicate: (node: ValueNode, index: number) => boolean): number;
|
|
469
477
|
push(node: ValueNode): void;
|
|
470
478
|
insertAt(index: number, node: ValueNode): void;
|
|
471
479
|
removeAt(index: number): void;
|
package/dist/model/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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, ValueTree, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createRowModel, createSchemaModel, createTableModel, createTypeTransformChain, createTypedTree, extractFormulaDefinition, generateDefaultValue, generateNodeId, isForeignKeyValueNode, resetNodeIdCounter, typedNode } from '../chunk-
|
|
2
|
-
export { FormulaPathBuilder, FormulaSerializer, ResolvedDependency } from '../chunk-
|
|
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, ValueTree, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createRowModel, createSchemaModel, createTableModel, createTypeTransformChain, createTypedTree, extractFormulaDefinition, generateDefaultValue, generateNodeId, isForeignKeyValueNode, resetNodeIdCounter, typedNode } from '../chunk-B3W5BASK.js';
|
|
2
|
+
export { FormulaPathBuilder, FormulaSerializer, ResolvedDependency } from '../chunk-2GZ3M3RV.js';
|
|
3
3
|
import '../chunk-IZMBM36H.js';
|
|
4
4
|
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-FTBRJODD.js';
|
|
@@ -193,6 +193,7 @@ interface RowModel {
|
|
|
193
193
|
readonly rowId: string;
|
|
194
194
|
readonly tableModel: TableModelLike | null;
|
|
195
195
|
readonly tree: ValueTreeLike;
|
|
196
|
+
readonly root: ValueNode;
|
|
196
197
|
readonly index: number;
|
|
197
198
|
readonly prev: RowModel | null;
|
|
198
199
|
readonly next: RowModel | null;
|
|
@@ -207,6 +208,7 @@ interface RowModel {
|
|
|
207
208
|
readonly patches: readonly JsonValuePatch[];
|
|
208
209
|
commit(): void;
|
|
209
210
|
revert(): void;
|
|
211
|
+
reset(data?: unknown): void;
|
|
210
212
|
dispose(): void;
|
|
211
213
|
}
|
|
212
214
|
|
|
@@ -395,6 +397,8 @@ interface ArrayValueNode extends ValueNode, DirtyTrackable {
|
|
|
395
397
|
readonly value: readonly ValueNode[];
|
|
396
398
|
readonly length: number;
|
|
397
399
|
at(index: number): ValueNode | undefined;
|
|
400
|
+
find(predicate: (node: ValueNode, index: number) => boolean): ValueNode | undefined;
|
|
401
|
+
findIndex(predicate: (node: ValueNode, index: number) => boolean): number;
|
|
398
402
|
push(node: ValueNode): void;
|
|
399
403
|
insertAt(index: number, node: ValueNode): void;
|
|
400
404
|
removeAt(index: number): void;
|
|
@@ -467,6 +471,8 @@ interface TypedObjectValueNode<P> extends ObjectValueNode {
|
|
|
467
471
|
}
|
|
468
472
|
interface TypedArrayValueNode<I> extends ArrayValueNode {
|
|
469
473
|
at(index: number): InferNode<I> | undefined;
|
|
474
|
+
find(predicate: (node: InferNode<I>, index: number) => boolean): InferNode<I> | undefined;
|
|
475
|
+
findIndex(predicate: (node: InferNode<I>, index: number) => boolean): number;
|
|
470
476
|
getPlainValue(): InferValue<I>[];
|
|
471
477
|
setValue(value: InferValue<I>[], options?: {
|
|
472
478
|
internal?: boolean;
|
|
@@ -193,6 +193,7 @@ interface RowModel {
|
|
|
193
193
|
readonly rowId: string;
|
|
194
194
|
readonly tableModel: TableModelLike | null;
|
|
195
195
|
readonly tree: ValueTreeLike;
|
|
196
|
+
readonly root: ValueNode;
|
|
196
197
|
readonly index: number;
|
|
197
198
|
readonly prev: RowModel | null;
|
|
198
199
|
readonly next: RowModel | null;
|
|
@@ -207,6 +208,7 @@ interface RowModel {
|
|
|
207
208
|
readonly patches: readonly JsonValuePatch[];
|
|
208
209
|
commit(): void;
|
|
209
210
|
revert(): void;
|
|
211
|
+
reset(data?: unknown): void;
|
|
210
212
|
dispose(): void;
|
|
211
213
|
}
|
|
212
214
|
|
|
@@ -395,6 +397,8 @@ interface ArrayValueNode extends ValueNode, DirtyTrackable {
|
|
|
395
397
|
readonly value: readonly ValueNode[];
|
|
396
398
|
readonly length: number;
|
|
397
399
|
at(index: number): ValueNode | undefined;
|
|
400
|
+
find(predicate: (node: ValueNode, index: number) => boolean): ValueNode | undefined;
|
|
401
|
+
findIndex(predicate: (node: ValueNode, index: number) => boolean): number;
|
|
398
402
|
push(node: ValueNode): void;
|
|
399
403
|
insertAt(index: number, node: ValueNode): void;
|
|
400
404
|
removeAt(index: number): void;
|
|
@@ -467,6 +471,8 @@ interface TypedObjectValueNode<P> extends ObjectValueNode {
|
|
|
467
471
|
}
|
|
468
472
|
interface TypedArrayValueNode<I> extends ArrayValueNode {
|
|
469
473
|
at(index: number): InferNode<I> | undefined;
|
|
474
|
+
find(predicate: (node: InferNode<I>, index: number) => boolean): InferNode<I> | undefined;
|
|
475
|
+
findIndex(predicate: (node: InferNode<I>, index: number) => boolean): number;
|
|
470
476
|
getPlainValue(): InferValue<I>[];
|
|
471
477
|
setValue(value: InferValue<I>[], options?: {
|
|
472
478
|
internal?: boolean;
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { b as JsonArray, J as JsonObject, a as JsonPrimitives, c as JsonValue } from '../json.types-PrMmLhba.cjs';
|
|
2
2
|
import { h as JsonPatch } from '../json-patch.types-eM6pYC2P.cjs';
|
|
3
3
|
export { g as JsonPatchAdd, c as JsonPatchAddOperation, d as JsonPatchMove, J as JsonPatchMoveOperation, f as JsonPatchRemove, b as JsonPatchRemoveOperation, e as JsonPatchReplace, a as JsonPatchReplaceOperation } from '../json-patch.types-eM6pYC2P.cjs';
|
|
4
|
-
export { g as InferNode, I as InferValue, d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace, N as NodeAtPath, j as NodeFromValue, h as SchemaAtPath, i as SchemaFromValue, S as SchemaPaths, f as TypedArrayValueNode, e as TypedObjectValueNode, T as TypedPrimitiveValueNode, V as ValueAtPath, k as ValuePaths } from '../typed-
|
|
4
|
+
export { g as InferNode, I as InferValue, d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace, N as NodeAtPath, j as NodeFromValue, h as SchemaAtPath, i as SchemaFromValue, S as SchemaPaths, f as TypedArrayValueNode, e as TypedObjectValueNode, T as TypedPrimitiveValueNode, V as ValueAtPath, k as ValuePaths } from '../typed-C0YM-ar9.cjs';
|
|
5
5
|
import { j as JsonSchema } from '../schema.types-On_VGw2m.cjs';
|
|
6
6
|
export { C as ContentMediaType, h as JsonArraySchema, e as JsonBooleanSchema, d as JsonNumberSchema, g as JsonObjectSchema, i as JsonRefSchema, f as JsonSchemaPrimitives, b as JsonSchemaSharedFields, a as JsonSchemaType, J as JsonSchemaTypeName, k as JsonSchemaWithoutRef, c as JsonStringSchema, X as XFormula } from '../schema.types-On_VGw2m.cjs';
|
|
7
7
|
export { a as FieldChange, F as FieldChangeType } from '../types-C_GxaUve.cjs';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { b as JsonArray, J as JsonObject, a as JsonPrimitives, c as JsonValue } from '../json.types-PrMmLhba.js';
|
|
2
2
|
import { h as JsonPatch } from '../json-patch.types-BpVnp08Z.js';
|
|
3
3
|
export { g as JsonPatchAdd, c as JsonPatchAddOperation, d as JsonPatchMove, J as JsonPatchMoveOperation, f as JsonPatchRemove, b as JsonPatchRemoveOperation, e as JsonPatchReplace, a as JsonPatchReplaceOperation } from '../json-patch.types-BpVnp08Z.js';
|
|
4
|
-
export { g as InferNode, I as InferValue, d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace, N as NodeAtPath, j as NodeFromValue, h as SchemaAtPath, i as SchemaFromValue, S as SchemaPaths, f as TypedArrayValueNode, e as TypedObjectValueNode, T as TypedPrimitiveValueNode, V as ValueAtPath, k as ValuePaths } from '../typed-
|
|
4
|
+
export { g as InferNode, I as InferValue, d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace, N as NodeAtPath, j as NodeFromValue, h as SchemaAtPath, i as SchemaFromValue, S as SchemaPaths, f as TypedArrayValueNode, e as TypedObjectValueNode, T as TypedPrimitiveValueNode, V as ValueAtPath, k as ValuePaths } from '../typed-CkirI6bH.js';
|
|
5
5
|
import { j as JsonSchema } from '../schema.types-On_VGw2m.js';
|
|
6
6
|
export { C as ContentMediaType, h as JsonArraySchema, e as JsonBooleanSchema, d as JsonNumberSchema, g as JsonObjectSchema, i as JsonRefSchema, f as JsonSchemaPrimitives, b as JsonSchemaSharedFields, a as JsonSchemaType, J as JsonSchemaTypeName, k as JsonSchemaWithoutRef, c as JsonStringSchema, X as XFormula } from '../schema.types-On_VGw2m.js';
|
|
7
7
|
export { a as FieldChange, F as FieldChangeType } from '../types-C_GxaUve.js';
|
|
@@ -1,74 +1,79 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
require('../chunk-5M74TGFQ.cjs');
|
|
4
|
+
var chunkWY3CL7KH_cjs = require('../chunk-WY3CL7KH.cjs');
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
Object.defineProperty(exports, "arrayMetaSchema", {
|
|
8
9
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkWY3CL7KH_cjs.arrayMetaSchema; }
|
|
10
11
|
});
|
|
11
12
|
Object.defineProperty(exports, "baseStringFields", {
|
|
12
13
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkWY3CL7KH_cjs.baseStringFields; }
|
|
14
15
|
});
|
|
15
16
|
Object.defineProperty(exports, "booleanMetaSchema", {
|
|
16
17
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkWY3CL7KH_cjs.booleanMetaSchema; }
|
|
18
19
|
});
|
|
19
20
|
Object.defineProperty(exports, "foreignKeyExcludesFormula", {
|
|
20
21
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkWY3CL7KH_cjs.foreignKeyExcludesFormula; }
|
|
22
23
|
});
|
|
23
24
|
Object.defineProperty(exports, "historyPatchesSchema", {
|
|
24
25
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkWY3CL7KH_cjs.historyPatchesSchema; }
|
|
26
27
|
});
|
|
27
28
|
Object.defineProperty(exports, "jsonPatchSchema", {
|
|
28
29
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkWY3CL7KH_cjs.jsonPatchSchema; }
|
|
30
31
|
});
|
|
31
32
|
Object.defineProperty(exports, "metaSchema", {
|
|
32
33
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkWY3CL7KH_cjs.metaSchema; }
|
|
34
35
|
});
|
|
35
36
|
Object.defineProperty(exports, "noForeignKeyStringMetaSchema", {
|
|
36
37
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkWY3CL7KH_cjs.noForeignKeyStringMetaSchema; }
|
|
38
39
|
});
|
|
39
40
|
Object.defineProperty(exports, "notForeignKeyMetaSchema", {
|
|
40
41
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkWY3CL7KH_cjs.notForeignKeyMetaSchema; }
|
|
42
43
|
});
|
|
43
44
|
Object.defineProperty(exports, "numberMetaSchema", {
|
|
44
45
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkWY3CL7KH_cjs.numberMetaSchema; }
|
|
46
47
|
});
|
|
47
48
|
Object.defineProperty(exports, "objectMetaSchema", {
|
|
48
49
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkWY3CL7KH_cjs.objectMetaSchema; }
|
|
50
51
|
});
|
|
51
52
|
Object.defineProperty(exports, "refMetaSchema", {
|
|
52
53
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkWY3CL7KH_cjs.refMetaSchema; }
|
|
54
55
|
});
|
|
55
56
|
Object.defineProperty(exports, "sharedFields", {
|
|
56
57
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkWY3CL7KH_cjs.sharedFields; }
|
|
58
59
|
});
|
|
59
60
|
Object.defineProperty(exports, "stringMetaSchema", {
|
|
60
61
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkWY3CL7KH_cjs.stringMetaSchema; }
|
|
62
63
|
});
|
|
63
64
|
Object.defineProperty(exports, "tableMigrationsSchema", {
|
|
64
65
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkWY3CL7KH_cjs.tableMigrationsSchema; }
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "tableViewsSchema", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function () { return chunkWY3CL7KH_cjs.tableViewsSchema; }
|
|
66
71
|
});
|
|
67
72
|
Object.defineProperty(exports, "xFormulaRequiresReadOnly", {
|
|
68
73
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkWY3CL7KH_cjs.xFormulaRequiresReadOnly; }
|
|
70
75
|
});
|
|
71
76
|
Object.defineProperty(exports, "xFormulaSchema", {
|
|
72
77
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkWY3CL7KH_cjs.xFormulaSchema; }
|
|
74
79
|
});
|
|
@@ -20,6 +20,8 @@ declare const historyPatchesSchema: Schema;
|
|
|
20
20
|
|
|
21
21
|
declare const tableMigrationsSchema: Schema;
|
|
22
22
|
|
|
23
|
+
declare const tableViewsSchema: Schema;
|
|
24
|
+
|
|
23
25
|
declare const sharedFields: {
|
|
24
26
|
deprecated: {
|
|
25
27
|
type: string;
|
|
@@ -32,4 +34,4 @@ declare const sharedFields: {
|
|
|
32
34
|
};
|
|
33
35
|
};
|
|
34
36
|
|
|
35
|
-
export { arrayMetaSchema, baseStringFields, booleanMetaSchema, foreignKeyExcludesFormula, historyPatchesSchema, jsonPatchSchema, metaSchema, noForeignKeyStringMetaSchema, notForeignKeyMetaSchema, numberMetaSchema, objectMetaSchema, refMetaSchema, sharedFields, stringMetaSchema, tableMigrationsSchema, xFormulaRequiresReadOnly, xFormulaSchema };
|
|
37
|
+
export { arrayMetaSchema, baseStringFields, booleanMetaSchema, foreignKeyExcludesFormula, historyPatchesSchema, jsonPatchSchema, metaSchema, noForeignKeyStringMetaSchema, notForeignKeyMetaSchema, numberMetaSchema, objectMetaSchema, refMetaSchema, sharedFields, stringMetaSchema, tableMigrationsSchema, tableViewsSchema, xFormulaRequiresReadOnly, xFormulaSchema };
|
|
@@ -20,6 +20,8 @@ declare const historyPatchesSchema: Schema;
|
|
|
20
20
|
|
|
21
21
|
declare const tableMigrationsSchema: Schema;
|
|
22
22
|
|
|
23
|
+
declare const tableViewsSchema: Schema;
|
|
24
|
+
|
|
23
25
|
declare const sharedFields: {
|
|
24
26
|
deprecated: {
|
|
25
27
|
type: string;
|
|
@@ -32,4 +34,4 @@ declare const sharedFields: {
|
|
|
32
34
|
};
|
|
33
35
|
};
|
|
34
36
|
|
|
35
|
-
export { arrayMetaSchema, baseStringFields, booleanMetaSchema, foreignKeyExcludesFormula, historyPatchesSchema, jsonPatchSchema, metaSchema, noForeignKeyStringMetaSchema, notForeignKeyMetaSchema, numberMetaSchema, objectMetaSchema, refMetaSchema, sharedFields, stringMetaSchema, tableMigrationsSchema, xFormulaRequiresReadOnly, xFormulaSchema };
|
|
37
|
+
export { arrayMetaSchema, baseStringFields, booleanMetaSchema, foreignKeyExcludesFormula, historyPatchesSchema, jsonPatchSchema, metaSchema, noForeignKeyStringMetaSchema, notForeignKeyMetaSchema, numberMetaSchema, objectMetaSchema, refMetaSchema, sharedFields, stringMetaSchema, tableMigrationsSchema, tableViewsSchema, xFormulaRequiresReadOnly, xFormulaSchema };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import '../chunk-5G3AVY57.js';
|
|
2
|
+
export { arrayMetaSchema, baseStringFields, booleanMetaSchema, foreignKeyExcludesFormula, historyPatchesSchema, jsonPatchSchema, metaSchema, noForeignKeyStringMetaSchema, notForeignKeyMetaSchema, numberMetaSchema, objectMetaSchema, refMetaSchema, sharedFields, stringMetaSchema, tableMigrationsSchema, tableViewsSchema, xFormulaRequiresReadOnly, xFormulaSchema } from '../chunk-HOMXBUQB.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revisium/schema-toolkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Universal schema toolkit with TypeScript types and utilities for JSON Schema manipulation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"json-schema",
|
|
@@ -172,7 +172,6 @@
|
|
|
172
172
|
"@jest/globals": "^29.7.0",
|
|
173
173
|
"@types/jest": "^29.5.14",
|
|
174
174
|
"@types/node": "^24.10.7",
|
|
175
|
-
"ajv": "^8.17.1",
|
|
176
175
|
"ajv-formats": "^3.0.1",
|
|
177
176
|
"eslint": "^9.15.0",
|
|
178
177
|
"globals": "^15.12.0",
|
|
@@ -187,6 +186,7 @@
|
|
|
187
186
|
},
|
|
188
187
|
"dependencies": {
|
|
189
188
|
"@revisium/formula": "^0.10.0",
|
|
189
|
+
"ajv": "^8.18.0",
|
|
190
190
|
"eventemitter3": "^5.0.4",
|
|
191
191
|
"nanoid": "^3.3.7"
|
|
192
192
|
},
|