@revisium/schema-toolkit 0.16.4 → 0.17.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/dist/{chunk-YCJJVI3Z.js → chunk-6EAIJMZV.js} +238 -28
- package/dist/chunk-6EAIJMZV.js.map +1 -0
- package/dist/chunk-G6ZKEVVU.cjs +4 -0
- package/dist/chunk-G6ZKEVVU.cjs.map +1 -0
- package/dist/chunk-NY3H6C7K.js +3 -0
- package/dist/chunk-NY3H6C7K.js.map +1 -0
- package/dist/{chunk-YGTMLR3D.js → chunk-R4CFU33U.js} +2 -2
- package/dist/{chunk-YGTMLR3D.js.map → chunk-R4CFU33U.js.map} +1 -1
- package/dist/{chunk-PGR2S2BR.js → chunk-RTBMPBPC.js} +87 -42
- package/dist/chunk-RTBMPBPC.js.map +1 -0
- package/dist/{chunk-JJ2KGTZX.cjs → chunk-VGADCIBG.cjs} +2 -2
- package/dist/{chunk-JJ2KGTZX.cjs.map → chunk-VGADCIBG.cjs.map} +1 -1
- package/dist/{chunk-MAEGAVK4.cjs → chunk-YRKXZTRZ.cjs} +288 -71
- package/dist/chunk-YRKXZTRZ.cjs.map +1 -0
- package/dist/{chunk-VGB4YCGF.cjs → chunk-ZG7QX4I3.cjs} +87 -42
- package/dist/chunk-ZG7QX4I3.cjs.map +1 -0
- package/dist/core/index.cjs +57 -57
- package/dist/core/index.d.cts +15 -4
- package/dist/core/index.d.ts +15 -4
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +189 -160
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -3
- package/dist/mocks/index.cjs +18 -17
- package/dist/mocks/index.js +2 -1
- package/dist/model/index.cjs +68 -39
- package/dist/model/index.d.cts +80 -5
- package/dist/model/index.d.ts +80 -5
- package/dist/model/index.js +3 -2
- package/dist/{types-bBnnfNxC.d.ts → types-6S07rMdY.d.ts} +1 -0
- package/dist/{types-BUiNI0oL.d.cts → types-DHlnrQKG.d.cts} +1 -0
- package/package.json +1 -1
- package/dist/chunk-MAEGAVK4.cjs.map +0 -1
- package/dist/chunk-PGR2S2BR.js.map +0 -1
- package/dist/chunk-VGB4YCGF.cjs.map +0 -1
- package/dist/chunk-YCJJVI3Z.js.map +0 -1
package/dist/core/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-MLNKM67U.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkZG7QX4I3_cjs = require('../chunk-ZG7QX4I3.cjs');
|
|
5
5
|
require('../chunk-TBFTADML.cjs');
|
|
6
6
|
var chunkWSPFHUHU_cjs = require('../chunk-WSPFHUHU.cjs');
|
|
7
7
|
var chunkZRNFSUOV_cjs = require('../chunk-ZRNFSUOV.cjs');
|
|
@@ -11,227 +11,227 @@ require('../chunk-J6SCHJKG.cjs');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "ChangeCoalescer", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkZG7QX4I3_cjs.ChangeCoalescer; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "ChangeCollector", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkZG7QX4I3_cjs.ChangeCollector; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "CompositeRule", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkZG7QX4I3_cjs.CompositeRule; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "EMPTY_METADATA", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkZG7QX4I3_cjs.EMPTY_METADATA; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "EMPTY_PATH", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkZG7QX4I3_cjs.EMPTY_PATH; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "EnumValidator", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkZG7QX4I3_cjs.EnumValidator; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "FIELD_NAME_ERROR_MESSAGE", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkZG7QX4I3_cjs.FIELD_NAME_ERROR_MESSAGE; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "ForeignKeyValidator", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkZG7QX4I3_cjs.ForeignKeyValidator; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "ItemsSegment", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkZG7QX4I3_cjs.ItemsSegment; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "MaxLengthValidator", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkZG7QX4I3_cjs.MaxLengthValidator; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "MaximumValidator", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkZG7QX4I3_cjs.MaximumValidator; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "MinLengthValidator", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkZG7QX4I3_cjs.MinLengthValidator; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "MinimumValidator", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkZG7QX4I3_cjs.MinimumValidator; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "NULL_NODE", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkZG7QX4I3_cjs.NULL_NODE; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "NodePathIndex", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkZG7QX4I3_cjs.NodePathIndex; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "PatchBuilder", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkZG7QX4I3_cjs.PatchBuilder; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "PatchEnricher", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkZG7QX4I3_cjs.PatchEnricher; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "PatchGenerator", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkZG7QX4I3_cjs.PatchGenerator; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "PatternValidator", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkZG7QX4I3_cjs.PatternValidator; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "PropertySegment", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkZG7QX4I3_cjs.PropertySegment; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "RequiredValidator", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkZG7QX4I3_cjs.RequiredValidator; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "SchemaDiff", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkZG7QX4I3_cjs.SchemaDiff; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "SchemaPropertyRule", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkZG7QX4I3_cjs.SchemaPropertyRule; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "SchemaSerializer", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkZG7QX4I3_cjs.SchemaSerializer; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "SchemaTruthyRule", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkZG7QX4I3_cjs.SchemaTruthyRule; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "ValidationEngine", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkZG7QX4I3_cjs.ValidationEngine; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "ValidatorRegistry", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkZG7QX4I3_cjs.ValidatorRegistry; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "ValidatorResolver", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkZG7QX4I3_cjs.ValidatorResolver; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "areNodesContentEqual", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkZG7QX4I3_cjs.areNodesContentEqual; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "areNodesEqual", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkZG7QX4I3_cjs.areNodesEqual; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "coalesceChanges", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkZG7QX4I3_cjs.coalesceChanges; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "collectChanges", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkZG7QX4I3_cjs.collectChanges; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "createArrayNode", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkZG7QX4I3_cjs.createArrayNode; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "createBooleanNode", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkZG7QX4I3_cjs.createBooleanNode; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "createDefaultValidatorRegistry", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkZG7QX4I3_cjs.createDefaultValidatorRegistry; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "createMobxProvider", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkZG7QX4I3_cjs.createMobxProvider; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "createNumberNode", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkZG7QX4I3_cjs.createNumberNode; }
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "createObjectNode", {
|
|
161
161
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkZG7QX4I3_cjs.createObjectNode; }
|
|
163
163
|
});
|
|
164
164
|
Object.defineProperty(exports, "createPath", {
|
|
165
165
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunkZG7QX4I3_cjs.createPath; }
|
|
167
167
|
});
|
|
168
168
|
Object.defineProperty(exports, "createRefNode", {
|
|
169
169
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkZG7QX4I3_cjs.createRefNode; }
|
|
171
171
|
});
|
|
172
172
|
Object.defineProperty(exports, "createSchemaTree", {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunkZG7QX4I3_cjs.createSchemaTree; }
|
|
175
175
|
});
|
|
176
176
|
Object.defineProperty(exports, "createStringNode", {
|
|
177
177
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunkZG7QX4I3_cjs.createStringNode; }
|
|
179
179
|
});
|
|
180
180
|
Object.defineProperty(exports, "createValidationEngine", {
|
|
181
181
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunkZG7QX4I3_cjs.createValidationEngine; }
|
|
183
183
|
});
|
|
184
184
|
Object.defineProperty(exports, "isValidFieldName", {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkZG7QX4I3_cjs.isValidFieldName; }
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "jsonPointerToPath", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkZG7QX4I3_cjs.jsonPointerToPath; }
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "jsonPointerToSegments", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkZG7QX4I3_cjs.jsonPointerToSegments; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "jsonPointerToSimplePath", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkZG7QX4I3_cjs.jsonPointerToSimplePath; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "makeAutoObservable", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkZG7QX4I3_cjs.makeAutoObservable; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "makeObservable", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkZG7QX4I3_cjs.makeObservable; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "observable", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkZG7QX4I3_cjs.observable; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "reaction", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkZG7QX4I3_cjs.reaction; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "resetReactivityProvider", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkZG7QX4I3_cjs.resetReactivityProvider; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "runInAction", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkZG7QX4I3_cjs.runInAction; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "setReactivityProvider", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkZG7QX4I3_cjs.setReactivityProvider; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "validateFormulas", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkZG7QX4I3_cjs.validateFormulas; }
|
|
231
231
|
});
|
|
232
232
|
Object.defineProperty(exports, "validateSchema", {
|
|
233
233
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunkZG7QX4I3_cjs.validateSchema; }
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "computeValueDiff", {
|
|
237
237
|
enumerable: true,
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as SchemaNode, h as NodeMetadata, i as Formula, P as Path, a as PathSegment, k as SchemaTree, l as SchemaPatch, e as ValidatorFactoryFn, d as ValidatorRule, c as Validator, V as ValidationContext, D as Diagnostic, S as SchemaLike, f as SchemaValidationError, T as TreeFormulaValidationError } from '../types-
|
|
2
|
-
export { m as DefaultValueType, b as DiagnosticSeverity, E as EMPTY_METADATA, M as MetadataChangeType, N as NodeType, g as SchemaValidationErrorType } from '../types-
|
|
1
|
+
import { j as SchemaNode, h as NodeMetadata, i as Formula, P as Path, a as PathSegment, k as SchemaTree, l as SchemaPatch, e as ValidatorFactoryFn, d as ValidatorRule, c as Validator, V as ValidationContext, D as Diagnostic, S as SchemaLike, f as SchemaValidationError, T as TreeFormulaValidationError } from '../types-DHlnrQKG.cjs';
|
|
2
|
+
export { m as DefaultValueType, b as DiagnosticSeverity, E as EMPTY_METADATA, M as MetadataChangeType, N as NodeType, g as SchemaValidationErrorType } from '../types-DHlnrQKG.cjs';
|
|
3
3
|
import { C as ContentMediaType, i as JsonSchema, f as JsonObjectSchema } from '../schema.types-B5OgKLpV.cjs';
|
|
4
4
|
export { a as FieldChange, F as FieldChangeType } from '../types-C_GxaUve.cjs';
|
|
5
5
|
export { c as computeValueDiff } from '../computeValueDiff-CNT84rwK.cjs';
|
|
@@ -8,9 +8,17 @@ import '@revisium/formula';
|
|
|
8
8
|
|
|
9
9
|
declare const NULL_NODE: SchemaNode;
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
interface ObjectNodeOptions {
|
|
12
|
+
metadata?: NodeMetadata;
|
|
13
|
+
ref?: string;
|
|
14
|
+
}
|
|
15
|
+
declare function createObjectNode(id: string, name: string, children?: readonly SchemaNode[], options?: ObjectNodeOptions | NodeMetadata): SchemaNode;
|
|
12
16
|
|
|
13
|
-
|
|
17
|
+
interface ArrayNodeOptions {
|
|
18
|
+
metadata?: NodeMetadata;
|
|
19
|
+
ref?: string;
|
|
20
|
+
}
|
|
21
|
+
declare function createArrayNode(id: string, name: string, items: SchemaNode, options?: ArrayNodeOptions | NodeMetadata): SchemaNode;
|
|
14
22
|
|
|
15
23
|
interface StringNodeOptions {
|
|
16
24
|
readonly defaultValue?: string;
|
|
@@ -18,6 +26,7 @@ interface StringNodeOptions {
|
|
|
18
26
|
readonly formula?: Formula;
|
|
19
27
|
readonly metadata?: NodeMetadata;
|
|
20
28
|
readonly contentMediaType?: ContentMediaType;
|
|
29
|
+
readonly ref?: string;
|
|
21
30
|
}
|
|
22
31
|
declare function createStringNode(id: string, name: string, options?: StringNodeOptions): SchemaNode;
|
|
23
32
|
|
|
@@ -25,6 +34,7 @@ interface NumberNodeOptions {
|
|
|
25
34
|
readonly defaultValue?: number;
|
|
26
35
|
readonly formula?: Formula;
|
|
27
36
|
readonly metadata?: NodeMetadata;
|
|
37
|
+
readonly ref?: string;
|
|
28
38
|
}
|
|
29
39
|
declare function createNumberNode(id: string, name: string, options?: NumberNodeOptions): SchemaNode;
|
|
30
40
|
|
|
@@ -32,6 +42,7 @@ interface BooleanNodeOptions {
|
|
|
32
42
|
readonly defaultValue?: boolean;
|
|
33
43
|
readonly formula?: Formula;
|
|
34
44
|
readonly metadata?: NodeMetadata;
|
|
45
|
+
readonly ref?: string;
|
|
35
46
|
}
|
|
36
47
|
declare function createBooleanNode(id: string, name: string, options?: BooleanNodeOptions): SchemaNode;
|
|
37
48
|
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as SchemaNode, h as NodeMetadata, i as Formula, P as Path, a as PathSegment, k as SchemaTree, l as SchemaPatch, e as ValidatorFactoryFn, d as ValidatorRule, c as Validator, V as ValidationContext, D as Diagnostic, S as SchemaLike, f as SchemaValidationError, T as TreeFormulaValidationError } from '../types-
|
|
2
|
-
export { m as DefaultValueType, b as DiagnosticSeverity, E as EMPTY_METADATA, M as MetadataChangeType, N as NodeType, g as SchemaValidationErrorType } from '../types-
|
|
1
|
+
import { j as SchemaNode, h as NodeMetadata, i as Formula, P as Path, a as PathSegment, k as SchemaTree, l as SchemaPatch, e as ValidatorFactoryFn, d as ValidatorRule, c as Validator, V as ValidationContext, D as Diagnostic, S as SchemaLike, f as SchemaValidationError, T as TreeFormulaValidationError } from '../types-6S07rMdY.js';
|
|
2
|
+
export { m as DefaultValueType, b as DiagnosticSeverity, E as EMPTY_METADATA, M as MetadataChangeType, N as NodeType, g as SchemaValidationErrorType } from '../types-6S07rMdY.js';
|
|
3
3
|
import { C as ContentMediaType, i as JsonSchema, f as JsonObjectSchema } from '../schema.types-B5OgKLpV.js';
|
|
4
4
|
export { a as FieldChange, F as FieldChangeType } from '../types-C_GxaUve.js';
|
|
5
5
|
export { c as computeValueDiff } from '../computeValueDiff-CDwbNw8F.js';
|
|
@@ -8,9 +8,17 @@ import '@revisium/formula';
|
|
|
8
8
|
|
|
9
9
|
declare const NULL_NODE: SchemaNode;
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
interface ObjectNodeOptions {
|
|
12
|
+
metadata?: NodeMetadata;
|
|
13
|
+
ref?: string;
|
|
14
|
+
}
|
|
15
|
+
declare function createObjectNode(id: string, name: string, children?: readonly SchemaNode[], options?: ObjectNodeOptions | NodeMetadata): SchemaNode;
|
|
12
16
|
|
|
13
|
-
|
|
17
|
+
interface ArrayNodeOptions {
|
|
18
|
+
metadata?: NodeMetadata;
|
|
19
|
+
ref?: string;
|
|
20
|
+
}
|
|
21
|
+
declare function createArrayNode(id: string, name: string, items: SchemaNode, options?: ArrayNodeOptions | NodeMetadata): SchemaNode;
|
|
14
22
|
|
|
15
23
|
interface StringNodeOptions {
|
|
16
24
|
readonly defaultValue?: string;
|
|
@@ -18,6 +26,7 @@ interface StringNodeOptions {
|
|
|
18
26
|
readonly formula?: Formula;
|
|
19
27
|
readonly metadata?: NodeMetadata;
|
|
20
28
|
readonly contentMediaType?: ContentMediaType;
|
|
29
|
+
readonly ref?: string;
|
|
21
30
|
}
|
|
22
31
|
declare function createStringNode(id: string, name: string, options?: StringNodeOptions): SchemaNode;
|
|
23
32
|
|
|
@@ -25,6 +34,7 @@ interface NumberNodeOptions {
|
|
|
25
34
|
readonly defaultValue?: number;
|
|
26
35
|
readonly formula?: Formula;
|
|
27
36
|
readonly metadata?: NodeMetadata;
|
|
37
|
+
readonly ref?: string;
|
|
28
38
|
}
|
|
29
39
|
declare function createNumberNode(id: string, name: string, options?: NumberNodeOptions): SchemaNode;
|
|
30
40
|
|
|
@@ -32,6 +42,7 @@ interface BooleanNodeOptions {
|
|
|
32
42
|
readonly defaultValue?: boolean;
|
|
33
43
|
readonly formula?: Formula;
|
|
34
44
|
readonly metadata?: NodeMetadata;
|
|
45
|
+
readonly ref?: string;
|
|
35
46
|
}
|
|
36
47
|
declare function createBooleanNode(id: string, name: string, options?: BooleanNodeOptions): SchemaNode;
|
|
37
48
|
|
package/dist/core/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../chunk-Y2GYABV7.js';
|
|
2
|
-
export { ChangeCoalescer, ChangeCollector, CompositeRule, EMPTY_METADATA, EMPTY_PATH, EnumValidator, FIELD_NAME_ERROR_MESSAGE, ForeignKeyValidator, ItemsSegment, MaxLengthValidator, MaximumValidator, MinLengthValidator, MinimumValidator, NULL_NODE, NodePathIndex, PatchBuilder, PatchEnricher, PatchGenerator, PatternValidator, PropertySegment, RequiredValidator, SchemaDiff, SchemaPropertyRule, SchemaSerializer, SchemaTruthyRule, ValidationEngine, ValidatorRegistry, ValidatorResolver, areNodesContentEqual, areNodesEqual, coalesceChanges, collectChanges, createArrayNode, createBooleanNode, createDefaultValidatorRegistry, createMobxProvider, createNumberNode, createObjectNode, createPath, createRefNode, createSchemaTree, createStringNode, createValidationEngine, isValidFieldName, jsonPointerToPath, jsonPointerToSegments, jsonPointerToSimplePath, makeAutoObservable, makeObservable, observable, reaction, resetReactivityProvider, runInAction, setReactivityProvider, validateFormulas, validateSchema } from '../chunk-
|
|
2
|
+
export { ChangeCoalescer, ChangeCollector, CompositeRule, EMPTY_METADATA, EMPTY_PATH, EnumValidator, FIELD_NAME_ERROR_MESSAGE, ForeignKeyValidator, ItemsSegment, MaxLengthValidator, MaximumValidator, MinLengthValidator, MinimumValidator, NULL_NODE, NodePathIndex, PatchBuilder, PatchEnricher, PatchGenerator, PatternValidator, PropertySegment, RequiredValidator, SchemaDiff, SchemaPropertyRule, SchemaSerializer, SchemaTruthyRule, ValidationEngine, ValidatorRegistry, ValidatorResolver, areNodesContentEqual, areNodesEqual, coalesceChanges, collectChanges, createArrayNode, createBooleanNode, createDefaultValidatorRegistry, createMobxProvider, createNumberNode, createObjectNode, createPath, createRefNode, createSchemaTree, createStringNode, createValidationEngine, isValidFieldName, jsonPointerToPath, jsonPointerToSegments, jsonPointerToSimplePath, makeAutoObservable, makeObservable, observable, reaction, resetReactivityProvider, runInAction, setReactivityProvider, validateFormulas, validateSchema } from '../chunk-RTBMPBPC.js';
|
|
3
3
|
import '../chunk-3IKI64T2.js';
|
|
4
4
|
export { computeValueDiff } from '../chunk-YFWOURZL.js';
|
|
5
5
|
export { FieldChangeType } from '../chunk-ZBPUTF3Q.js';
|