@revisium/schema-toolkit 0.12.0 → 0.13.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.
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+
3
+ var chunkHZW3UZAB_cjs = require('../chunk-HZW3UZAB.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "collectFormulaNodes", {
8
+ enumerable: true,
9
+ get: function () { return chunkHZW3UZAB_cjs.collectFormulaNodes; }
10
+ });
11
+ Object.defineProperty(exports, "evaluateFormulas", {
12
+ enumerable: true,
13
+ get: function () { return chunkHZW3UZAB_cjs.evaluateFormulas; }
14
+ });
15
+ Object.defineProperty(exports, "extractSchemaFormulas", {
16
+ enumerable: true,
17
+ get: function () { return chunkHZW3UZAB_cjs.extractSchemaFormulas; }
18
+ });
19
+ Object.defineProperty(exports, "formulaSpec", {
20
+ enumerable: true,
21
+ get: function () { return chunkHZW3UZAB_cjs.formulaSpec; }
22
+ });
23
+ Object.defineProperty(exports, "validateFormulaAgainstSchema", {
24
+ enumerable: true,
25
+ get: function () { return chunkHZW3UZAB_cjs.validateFormulaAgainstSchema; }
26
+ });
27
+ Object.defineProperty(exports, "validateSchemaFormulas", {
28
+ enumerable: true,
29
+ get: function () { return chunkHZW3UZAB_cjs.validateSchemaFormulas; }
30
+ });
31
+ //# sourceMappingURL=index.cjs.map
32
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,76 @@
1
+ import { i as JsonSchema } from '../schema.types-CLHMJmkJ.cjs';
2
+ export { formulaSpec } from '@revisium/formula/spec';
3
+
4
+ interface XFormulaInput {
5
+ version: number;
6
+ expression: string;
7
+ }
8
+ interface SchemaProperty$1 {
9
+ type?: string;
10
+ 'x-formula'?: XFormulaInput;
11
+ properties?: Record<string, SchemaProperty$1>;
12
+ items?: SchemaProperty$1;
13
+ [key: string]: unknown;
14
+ }
15
+ interface JsonSchemaInput$1 {
16
+ type?: string;
17
+ properties?: Record<string, SchemaProperty$1>;
18
+ items?: SchemaProperty$1;
19
+ [key: string]: unknown;
20
+ }
21
+ interface ExtractedFormula {
22
+ fieldName: string;
23
+ expression: string;
24
+ fieldType: string;
25
+ }
26
+ declare function extractSchemaFormulas(schema: JsonSchemaInput$1): ExtractedFormula[];
27
+
28
+ interface SchemaProperty {
29
+ type?: string;
30
+ properties?: Record<string, SchemaProperty>;
31
+ items?: SchemaProperty;
32
+ [key: string]: unknown;
33
+ }
34
+ interface JsonSchemaInput {
35
+ type?: string;
36
+ properties?: Record<string, SchemaProperty>;
37
+ items?: SchemaProperty;
38
+ [key: string]: unknown;
39
+ }
40
+ interface FormulaValidationError {
41
+ field: string;
42
+ error: string;
43
+ position?: number;
44
+ }
45
+ interface SchemaValidationResult {
46
+ isValid: boolean;
47
+ errors: FormulaValidationError[];
48
+ }
49
+ declare function validateSchemaFormulas(schema: JsonSchemaInput): SchemaValidationResult;
50
+ declare function validateFormulaAgainstSchema(expression: string, fieldName: string, schema: JsonSchemaInput): FormulaValidationError | null;
51
+
52
+ interface FormulaNode {
53
+ path: string;
54
+ expression: string;
55
+ fieldType: 'number' | 'string' | 'boolean';
56
+ currentPath: string;
57
+ dependencies: string[];
58
+ }
59
+ interface FormulaError {
60
+ field: string;
61
+ expression: string;
62
+ error: string;
63
+ defaultUsed: boolean;
64
+ }
65
+ interface EvaluateFormulasResult {
66
+ values: Record<string, unknown>;
67
+ errors: FormulaError[];
68
+ }
69
+ interface EvaluateFormulasOptions {
70
+ useDefaults?: boolean;
71
+ defaults?: Record<string, unknown>;
72
+ }
73
+ declare function collectFormulaNodes(schema: JsonSchema, data: Record<string, unknown>): FormulaNode[];
74
+ declare function evaluateFormulas(schema: JsonSchema, data: Record<string, unknown>, options?: EvaluateFormulasOptions): EvaluateFormulasResult;
75
+
76
+ export { type EvaluateFormulasOptions, type EvaluateFormulasResult, type ExtractedFormula, type FormulaError, type FormulaNode, type FormulaValidationError, type SchemaValidationResult, collectFormulaNodes, evaluateFormulas, extractSchemaFormulas, validateFormulaAgainstSchema, validateSchemaFormulas };
@@ -0,0 +1,76 @@
1
+ import { i as JsonSchema } from '../schema.types-CLHMJmkJ.js';
2
+ export { formulaSpec } from '@revisium/formula/spec';
3
+
4
+ interface XFormulaInput {
5
+ version: number;
6
+ expression: string;
7
+ }
8
+ interface SchemaProperty$1 {
9
+ type?: string;
10
+ 'x-formula'?: XFormulaInput;
11
+ properties?: Record<string, SchemaProperty$1>;
12
+ items?: SchemaProperty$1;
13
+ [key: string]: unknown;
14
+ }
15
+ interface JsonSchemaInput$1 {
16
+ type?: string;
17
+ properties?: Record<string, SchemaProperty$1>;
18
+ items?: SchemaProperty$1;
19
+ [key: string]: unknown;
20
+ }
21
+ interface ExtractedFormula {
22
+ fieldName: string;
23
+ expression: string;
24
+ fieldType: string;
25
+ }
26
+ declare function extractSchemaFormulas(schema: JsonSchemaInput$1): ExtractedFormula[];
27
+
28
+ interface SchemaProperty {
29
+ type?: string;
30
+ properties?: Record<string, SchemaProperty>;
31
+ items?: SchemaProperty;
32
+ [key: string]: unknown;
33
+ }
34
+ interface JsonSchemaInput {
35
+ type?: string;
36
+ properties?: Record<string, SchemaProperty>;
37
+ items?: SchemaProperty;
38
+ [key: string]: unknown;
39
+ }
40
+ interface FormulaValidationError {
41
+ field: string;
42
+ error: string;
43
+ position?: number;
44
+ }
45
+ interface SchemaValidationResult {
46
+ isValid: boolean;
47
+ errors: FormulaValidationError[];
48
+ }
49
+ declare function validateSchemaFormulas(schema: JsonSchemaInput): SchemaValidationResult;
50
+ declare function validateFormulaAgainstSchema(expression: string, fieldName: string, schema: JsonSchemaInput): FormulaValidationError | null;
51
+
52
+ interface FormulaNode {
53
+ path: string;
54
+ expression: string;
55
+ fieldType: 'number' | 'string' | 'boolean';
56
+ currentPath: string;
57
+ dependencies: string[];
58
+ }
59
+ interface FormulaError {
60
+ field: string;
61
+ expression: string;
62
+ error: string;
63
+ defaultUsed: boolean;
64
+ }
65
+ interface EvaluateFormulasResult {
66
+ values: Record<string, unknown>;
67
+ errors: FormulaError[];
68
+ }
69
+ interface EvaluateFormulasOptions {
70
+ useDefaults?: boolean;
71
+ defaults?: Record<string, unknown>;
72
+ }
73
+ declare function collectFormulaNodes(schema: JsonSchema, data: Record<string, unknown>): FormulaNode[];
74
+ declare function evaluateFormulas(schema: JsonSchema, data: Record<string, unknown>, options?: EvaluateFormulasOptions): EvaluateFormulasResult;
75
+
76
+ export { type EvaluateFormulasOptions, type EvaluateFormulasResult, type ExtractedFormula, type FormulaError, type FormulaNode, type FormulaValidationError, type SchemaValidationResult, collectFormulaNodes, evaluateFormulas, extractSchemaFormulas, validateFormulaAgainstSchema, validateSchemaFormulas };
@@ -0,0 +1,3 @@
1
+ export { collectFormulaNodes, evaluateFormulas, extractSchemaFormulas, formulaSpec, validateFormulaAgainstSchema, validateSchemaFormulas } from '../chunk-I2ECBDBM.js';
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
package/dist/index.cjs CHANGED
@@ -4,7 +4,8 @@ require('./chunk-XAFOMEOK.cjs');
4
4
  var chunkEJYILFAK_cjs = require('./chunk-EJYILFAK.cjs');
5
5
  var chunkIPL2CGVA_cjs = require('./chunk-IPL2CGVA.cjs');
6
6
  require('./chunk-ODCH3PP2.cjs');
7
- var chunk3P7MTWNL_cjs = require('./chunk-3P7MTWNL.cjs');
7
+ var chunkVX5C5YMF_cjs = require('./chunk-VX5C5YMF.cjs');
8
+ var chunkHZW3UZAB_cjs = require('./chunk-HZW3UZAB.cjs');
8
9
  var chunkGF3XXYOS_cjs = require('./chunk-GF3XXYOS.cjs');
9
10
  var chunkEGC32GPY_cjs = require('./chunk-EGC32GPY.cjs');
10
11
  var chunkXNFSFT7T_cjs = require('./chunk-XNFSFT7T.cjs');
@@ -60,159 +61,159 @@ Object.defineProperty(exports, "CustomSchemeKeywords", {
60
61
  });
61
62
  Object.defineProperty(exports, "SchemaTable", {
62
63
  enumerable: true,
63
- get: function () { return chunk3P7MTWNL_cjs.SchemaTable; }
64
+ get: function () { return chunkVX5C5YMF_cjs.SchemaTable; }
64
65
  });
65
66
  Object.defineProperty(exports, "VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE", {
66
67
  enumerable: true,
67
- get: function () { return chunk3P7MTWNL_cjs.VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE; }
68
+ get: function () { return chunkVX5C5YMF_cjs.VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE; }
68
69
  });
69
70
  Object.defineProperty(exports, "applyAddPatch", {
70
71
  enumerable: true,
71
- get: function () { return chunk3P7MTWNL_cjs.applyAddPatch; }
72
+ get: function () { return chunkVX5C5YMF_cjs.applyAddPatch; }
72
73
  });
73
74
  Object.defineProperty(exports, "applyMovePatch", {
74
75
  enumerable: true,
75
- get: function () { return chunk3P7MTWNL_cjs.applyMovePatch; }
76
+ get: function () { return chunkVX5C5YMF_cjs.applyMovePatch; }
76
77
  });
77
78
  Object.defineProperty(exports, "applyRemovePatch", {
78
79
  enumerable: true,
79
- get: function () { return chunk3P7MTWNL_cjs.applyRemovePatch; }
80
+ get: function () { return chunkVX5C5YMF_cjs.applyRemovePatch; }
80
81
  });
81
82
  Object.defineProperty(exports, "applyReplacePatch", {
82
83
  enumerable: true,
83
- get: function () { return chunk3P7MTWNL_cjs.applyReplacePatch; }
84
+ get: function () { return chunkVX5C5YMF_cjs.applyReplacePatch; }
84
85
  });
85
86
  Object.defineProperty(exports, "computeValueDiff", {
86
87
  enumerable: true,
87
- get: function () { return chunk3P7MTWNL_cjs.computeValueDiff; }
88
+ get: function () { return chunkVX5C5YMF_cjs.computeValueDiff; }
88
89
  });
89
90
  Object.defineProperty(exports, "convertJsonPathToSchemaPath", {
90
91
  enumerable: true,
91
- get: function () { return chunk3P7MTWNL_cjs.convertJsonPathToSchemaPath; }
92
+ get: function () { return chunkVX5C5YMF_cjs.convertJsonPathToSchemaPath; }
92
93
  });
93
94
  Object.defineProperty(exports, "convertSchemaPathToJsonPath", {
94
95
  enumerable: true,
95
- get: function () { return chunk3P7MTWNL_cjs.convertSchemaPathToJsonPath; }
96
+ get: function () { return chunkVX5C5YMF_cjs.convertSchemaPathToJsonPath; }
96
97
  });
97
98
  Object.defineProperty(exports, "createJsonObjectSchemaStore", {
98
99
  enumerable: true,
99
- get: function () { return chunk3P7MTWNL_cjs.createJsonObjectSchemaStore; }
100
+ get: function () { return chunkVX5C5YMF_cjs.createJsonObjectSchemaStore; }
100
101
  });
101
102
  Object.defineProperty(exports, "createJsonSchemaStore", {
102
103
  enumerable: true,
103
- get: function () { return chunk3P7MTWNL_cjs.createJsonSchemaStore; }
104
+ get: function () { return chunkVX5C5YMF_cjs.createJsonSchemaStore; }
104
105
  });
105
106
  Object.defineProperty(exports, "createPrimitiveStoreBySchema", {
106
107
  enumerable: true,
107
- get: function () { return chunk3P7MTWNL_cjs.createPrimitiveStoreBySchema; }
108
+ get: function () { return chunkVX5C5YMF_cjs.createPrimitiveStoreBySchema; }
108
109
  });
109
110
  Object.defineProperty(exports, "deepEqual", {
110
111
  enumerable: true,
111
- get: function () { return chunk3P7MTWNL_cjs.deepEqual; }
112
- });
113
- Object.defineProperty(exports, "evaluateFormulas", {
114
- enumerable: true,
115
- get: function () { return chunk3P7MTWNL_cjs.evaluateFormulas; }
116
- });
117
- Object.defineProperty(exports, "extractSchemaFormulas", {
118
- enumerable: true,
119
- get: function () { return chunk3P7MTWNL_cjs.extractSchemaFormulas; }
120
- });
121
- Object.defineProperty(exports, "formulaSpec", {
122
- enumerable: true,
123
- get: function () { return chunk3P7MTWNL_cjs.formulaSpec; }
112
+ get: function () { return chunkVX5C5YMF_cjs.deepEqual; }
124
113
  });
125
114
  Object.defineProperty(exports, "getDBJsonPathByJsonSchemaStore", {
126
115
  enumerable: true,
127
- get: function () { return chunk3P7MTWNL_cjs.getDBJsonPathByJsonSchemaStore; }
116
+ get: function () { return chunkVX5C5YMF_cjs.getDBJsonPathByJsonSchemaStore; }
128
117
  });
129
118
  Object.defineProperty(exports, "getForeignKeyPatchesFromSchema", {
130
119
  enumerable: true,
131
- get: function () { return chunk3P7MTWNL_cjs.getForeignKeyPatchesFromSchema; }
120
+ get: function () { return chunkVX5C5YMF_cjs.getForeignKeyPatchesFromSchema; }
132
121
  });
133
122
  Object.defineProperty(exports, "getForeignKeysFromSchema", {
134
123
  enumerable: true,
135
- get: function () { return chunk3P7MTWNL_cjs.getForeignKeysFromSchema; }
124
+ get: function () { return chunkVX5C5YMF_cjs.getForeignKeysFromSchema; }
136
125
  });
137
126
  Object.defineProperty(exports, "getForeignKeysFromValue", {
138
127
  enumerable: true,
139
- get: function () { return chunk3P7MTWNL_cjs.getForeignKeysFromValue; }
128
+ get: function () { return chunkVX5C5YMF_cjs.getForeignKeysFromValue; }
140
129
  });
141
130
  Object.defineProperty(exports, "getInvalidFieldNamesInSchema", {
142
131
  enumerable: true,
143
- get: function () { return chunk3P7MTWNL_cjs.getInvalidFieldNamesInSchema; }
132
+ get: function () { return chunkVX5C5YMF_cjs.getInvalidFieldNamesInSchema; }
144
133
  });
145
134
  Object.defineProperty(exports, "getJsonSchemaStoreByPath", {
146
135
  enumerable: true,
147
- get: function () { return chunk3P7MTWNL_cjs.getJsonSchemaStoreByPath; }
136
+ get: function () { return chunkVX5C5YMF_cjs.getJsonSchemaStoreByPath; }
148
137
  });
149
138
  Object.defineProperty(exports, "getJsonValueStoreByPath", {
150
139
  enumerable: true,
151
- get: function () { return chunk3P7MTWNL_cjs.getJsonValueStoreByPath; }
140
+ get: function () { return chunkVX5C5YMF_cjs.getJsonValueStoreByPath; }
152
141
  });
153
142
  Object.defineProperty(exports, "getParentForPath", {
154
143
  enumerable: true,
155
- get: function () { return chunk3P7MTWNL_cjs.getParentForPath; }
144
+ get: function () { return chunkVX5C5YMF_cjs.getParentForPath; }
156
145
  });
157
146
  Object.defineProperty(exports, "getPathByStore", {
158
147
  enumerable: true,
159
- get: function () { return chunk3P7MTWNL_cjs.getPathByStore; }
148
+ get: function () { return chunkVX5C5YMF_cjs.getPathByStore; }
160
149
  });
161
150
  Object.defineProperty(exports, "getValueByPath", {
162
151
  enumerable: true,
163
- get: function () { return chunk3P7MTWNL_cjs.getValueByPath; }
152
+ get: function () { return chunkVX5C5YMF_cjs.getValueByPath; }
164
153
  });
165
154
  Object.defineProperty(exports, "hasPath", {
166
155
  enumerable: true,
167
- get: function () { return chunk3P7MTWNL_cjs.hasPath; }
156
+ get: function () { return chunkVX5C5YMF_cjs.hasPath; }
168
157
  });
169
158
  Object.defineProperty(exports, "parsePath", {
170
159
  enumerable: true,
171
- get: function () { return chunk3P7MTWNL_cjs.parsePath; }
160
+ get: function () { return chunkVX5C5YMF_cjs.parsePath; }
172
161
  });
173
162
  Object.defineProperty(exports, "pluginRefs", {
174
163
  enumerable: true,
175
- get: function () { return chunk3P7MTWNL_cjs.pluginRefs; }
176
- });
177
- Object.defineProperty(exports, "prepareFormulas", {
178
- enumerable: true,
179
- get: function () { return chunk3P7MTWNL_cjs.prepareFormulas; }
164
+ get: function () { return chunkVX5C5YMF_cjs.pluginRefs; }
180
165
  });
181
166
  Object.defineProperty(exports, "replaceForeignKeyValue", {
182
167
  enumerable: true,
183
- get: function () { return chunk3P7MTWNL_cjs.replaceForeignKeyValue; }
168
+ get: function () { return chunkVX5C5YMF_cjs.replaceForeignKeyValue; }
184
169
  });
185
170
  Object.defineProperty(exports, "resolveRefs", {
186
171
  enumerable: true,
187
- get: function () { return chunk3P7MTWNL_cjs.resolveRefs; }
172
+ get: function () { return chunkVX5C5YMF_cjs.resolveRefs; }
188
173
  });
189
174
  Object.defineProperty(exports, "saveSharedFields", {
190
175
  enumerable: true,
191
- get: function () { return chunk3P7MTWNL_cjs.saveSharedFields; }
176
+ get: function () { return chunkVX5C5YMF_cjs.saveSharedFields; }
192
177
  });
193
178
  Object.defineProperty(exports, "setValueByPath", {
194
179
  enumerable: true,
195
- get: function () { return chunk3P7MTWNL_cjs.setValueByPath; }
180
+ get: function () { return chunkVX5C5YMF_cjs.setValueByPath; }
196
181
  });
197
182
  Object.defineProperty(exports, "traverseStore", {
198
183
  enumerable: true,
199
- get: function () { return chunk3P7MTWNL_cjs.traverseStore; }
184
+ get: function () { return chunkVX5C5YMF_cjs.traverseStore; }
200
185
  });
201
186
  Object.defineProperty(exports, "traverseValue", {
202
187
  enumerable: true,
203
- get: function () { return chunk3P7MTWNL_cjs.traverseValue; }
188
+ get: function () { return chunkVX5C5YMF_cjs.traverseValue; }
204
189
  });
205
- Object.defineProperty(exports, "validateFormulaAgainstSchema", {
190
+ Object.defineProperty(exports, "validateJsonFieldName", {
206
191
  enumerable: true,
207
- get: function () { return chunk3P7MTWNL_cjs.validateFormulaAgainstSchema; }
192
+ get: function () { return chunkVX5C5YMF_cjs.validateJsonFieldName; }
208
193
  });
209
- Object.defineProperty(exports, "validateJsonFieldName", {
194
+ Object.defineProperty(exports, "collectFormulaNodes", {
195
+ enumerable: true,
196
+ get: function () { return chunkHZW3UZAB_cjs.collectFormulaNodes; }
197
+ });
198
+ Object.defineProperty(exports, "evaluateFormulas", {
199
+ enumerable: true,
200
+ get: function () { return chunkHZW3UZAB_cjs.evaluateFormulas; }
201
+ });
202
+ Object.defineProperty(exports, "extractSchemaFormulas", {
203
+ enumerable: true,
204
+ get: function () { return chunkHZW3UZAB_cjs.extractSchemaFormulas; }
205
+ });
206
+ Object.defineProperty(exports, "formulaSpec", {
207
+ enumerable: true,
208
+ get: function () { return chunkHZW3UZAB_cjs.formulaSpec; }
209
+ });
210
+ Object.defineProperty(exports, "validateFormulaAgainstSchema", {
210
211
  enumerable: true,
211
- get: function () { return chunk3P7MTWNL_cjs.validateJsonFieldName; }
212
+ get: function () { return chunkHZW3UZAB_cjs.validateFormulaAgainstSchema; }
212
213
  });
213
214
  Object.defineProperty(exports, "validateSchemaFormulas", {
214
215
  enumerable: true,
215
- get: function () { return chunk3P7MTWNL_cjs.validateSchemaFormulas; }
216
+ get: function () { return chunkHZW3UZAB_cjs.validateSchemaFormulas; }
216
217
  });
217
218
  Object.defineProperty(exports, "FieldChangeType", {
218
219
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -8,7 +8,8 @@ export { getAddPatch, getArraySchema, getBooleanSchema, getMovePatch, getNumberS
8
8
  export { CustomSchemeKeywords } from './consts/index.cjs';
9
9
  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, h as JsonSchemaStore, 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-CcZ197KO.cjs';
10
10
  export { equal, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, getTransformation, toArrayTransformation } from './model/index.cjs';
11
- export { EvaluateFormulasOptions, EvaluateFormulasResult, ExtractedFormula, FormulaError, FormulaValidationError, GetForeignKeysFromValueType, PreparedFormula, RefsType, ReplaceForeignKeyValueOptions, SchemaTable, SchemaValidationResult, VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE, addSharedFieldsFromState, applyAddPatch, applyMovePatch, applyRemovePatch, applyReplacePatch, computeValueDiff, convertJsonPathToSchemaPath, convertSchemaPathToJsonPath, createJsonArrayValueStore, createJsonObjectSchemaStore, createJsonObjectValueStore, createJsonSchemaStore, createJsonValueStore, createPrimitiveStoreBySchema, createPrimitiveValueStore, deepEqual, evaluateFormulas, extractSchemaFormulas, getDBJsonPathByJsonSchemaStore, getForeignKeyPatchesFromSchema, getForeignKeysFromSchema, getForeignKeysFromValue, getInvalidFieldNamesInSchema, getJsonSchemaStoreByPath, getJsonValueStoreByPath, getParentForPath, getPathByStore, getValueByPath, hasPath, parsePath, pluginRefs, prepareFormulas, replaceForeignKeyValue, resolveRefs, saveSharedFields, setValueByPath, traverseStore, traverseValue, validateFormulaAgainstSchema, validateJsonFieldName, validateSchemaFormulas } from './lib/index.cjs';
11
+ export { GetForeignKeysFromValueType, RefsType, ReplaceForeignKeyValueOptions, SchemaTable, VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE, addSharedFieldsFromState, applyAddPatch, applyMovePatch, applyRemovePatch, applyReplacePatch, computeValueDiff, convertJsonPathToSchemaPath, convertSchemaPathToJsonPath, createJsonArrayValueStore, createJsonObjectSchemaStore, createJsonObjectValueStore, createJsonSchemaStore, createJsonValueStore, createPrimitiveStoreBySchema, createPrimitiveValueStore, deepEqual, getDBJsonPathByJsonSchemaStore, getForeignKeyPatchesFromSchema, getForeignKeysFromSchema, getForeignKeysFromValue, getInvalidFieldNamesInSchema, getJsonSchemaStoreByPath, getJsonValueStoreByPath, getParentForPath, getPathByStore, getValueByPath, hasPath, parsePath, pluginRefs, replaceForeignKeyValue, resolveRefs, saveSharedFields, setValueByPath, traverseStore, traverseValue, validateJsonFieldName } from './lib/index.cjs';
12
+ export { EvaluateFormulasOptions, EvaluateFormulasResult, ExtractedFormula, FormulaError, FormulaNode, FormulaValidationError, SchemaValidationResult, collectFormulaNodes, evaluateFormulas, extractSchemaFormulas, validateFormulaAgainstSchema, validateSchemaFormulas } from './formula/index.cjs';
12
13
  export { arrayMetaSchema, baseStringFields, booleanMetaSchema, foreignKeyExcludesFormula, historyPatchesSchema, jsonPatchSchema, metaSchema, noForeignKeyStringMetaSchema, notForeignKeyMetaSchema, numberMetaSchema, objectMetaSchema, refMetaSchema, sharedFields, stringMetaSchema, tableMigrationsSchema, xFormulaRequiresReadOnly, xFormulaSchema } from './validation-schemas/index.cjs';
13
14
  export { S as SystemSchemaIds } from './system-schema-ids-B-2xMN-1.cjs';
14
15
  export { formulaSpec } from '@revisium/formula/spec';
package/dist/index.d.ts CHANGED
@@ -8,7 +8,8 @@ export { getAddPatch, getArraySchema, getBooleanSchema, getMovePatch, getNumberS
8
8
  export { CustomSchemeKeywords } from './consts/index.js';
9
9
  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, h as JsonSchemaStore, 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-DckDcMVN.js';
10
10
  export { equal, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, getTransformation, toArrayTransformation } from './model/index.js';
11
- export { EvaluateFormulasOptions, EvaluateFormulasResult, ExtractedFormula, FormulaError, FormulaValidationError, GetForeignKeysFromValueType, PreparedFormula, RefsType, ReplaceForeignKeyValueOptions, SchemaTable, SchemaValidationResult, VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE, addSharedFieldsFromState, applyAddPatch, applyMovePatch, applyRemovePatch, applyReplacePatch, computeValueDiff, convertJsonPathToSchemaPath, convertSchemaPathToJsonPath, createJsonArrayValueStore, createJsonObjectSchemaStore, createJsonObjectValueStore, createJsonSchemaStore, createJsonValueStore, createPrimitiveStoreBySchema, createPrimitiveValueStore, deepEqual, evaluateFormulas, extractSchemaFormulas, getDBJsonPathByJsonSchemaStore, getForeignKeyPatchesFromSchema, getForeignKeysFromSchema, getForeignKeysFromValue, getInvalidFieldNamesInSchema, getJsonSchemaStoreByPath, getJsonValueStoreByPath, getParentForPath, getPathByStore, getValueByPath, hasPath, parsePath, pluginRefs, prepareFormulas, replaceForeignKeyValue, resolveRefs, saveSharedFields, setValueByPath, traverseStore, traverseValue, validateFormulaAgainstSchema, validateJsonFieldName, validateSchemaFormulas } from './lib/index.js';
11
+ export { GetForeignKeysFromValueType, RefsType, ReplaceForeignKeyValueOptions, SchemaTable, VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE, addSharedFieldsFromState, applyAddPatch, applyMovePatch, applyRemovePatch, applyReplacePatch, computeValueDiff, convertJsonPathToSchemaPath, convertSchemaPathToJsonPath, createJsonArrayValueStore, createJsonObjectSchemaStore, createJsonObjectValueStore, createJsonSchemaStore, createJsonValueStore, createPrimitiveStoreBySchema, createPrimitiveValueStore, deepEqual, getDBJsonPathByJsonSchemaStore, getForeignKeyPatchesFromSchema, getForeignKeysFromSchema, getForeignKeysFromValue, getInvalidFieldNamesInSchema, getJsonSchemaStoreByPath, getJsonValueStoreByPath, getParentForPath, getPathByStore, getValueByPath, hasPath, parsePath, pluginRefs, replaceForeignKeyValue, resolveRefs, saveSharedFields, setValueByPath, traverseStore, traverseValue, validateJsonFieldName } from './lib/index.js';
12
+ export { EvaluateFormulasOptions, EvaluateFormulasResult, ExtractedFormula, FormulaError, FormulaNode, FormulaValidationError, SchemaValidationResult, collectFormulaNodes, evaluateFormulas, extractSchemaFormulas, validateFormulaAgainstSchema, validateSchemaFormulas } from './formula/index.js';
12
13
  export { arrayMetaSchema, baseStringFields, booleanMetaSchema, foreignKeyExcludesFormula, historyPatchesSchema, jsonPatchSchema, metaSchema, noForeignKeyStringMetaSchema, notForeignKeyMetaSchema, numberMetaSchema, objectMetaSchema, refMetaSchema, sharedFields, stringMetaSchema, tableMigrationsSchema, xFormulaRequiresReadOnly, xFormulaSchema } from './validation-schemas/index.js';
13
14
  export { S as SystemSchemaIds } from './system-schema-ids-B-2xMN-1.js';
14
15
  export { formulaSpec } from '@revisium/formula/spec';
package/dist/index.js CHANGED
@@ -2,7 +2,8 @@ import './chunk-SBJFTOWW.js';
2
2
  export { getAddPatch, getArraySchema, getBooleanSchema, getMovePatch, getNumberSchema, getObjectSchema, getRefSchema, getRemovePatch, getReplacePatch, getStringSchema } from './chunk-AORPUIKD.js';
3
3
  export { CustomSchemeKeywords } from './chunk-5VDDLW7U.js';
4
4
  import './chunk-H7W4QNMA.js';
5
- export { SchemaTable, VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE, applyAddPatch, applyMovePatch, applyRemovePatch, applyReplacePatch, computeValueDiff, convertJsonPathToSchemaPath, convertSchemaPathToJsonPath, createJsonObjectSchemaStore, createJsonSchemaStore, createPrimitiveStoreBySchema, deepEqual, evaluateFormulas, extractSchemaFormulas, formulaSpec, getDBJsonPathByJsonSchemaStore, getForeignKeyPatchesFromSchema, getForeignKeysFromSchema, getForeignKeysFromValue, getInvalidFieldNamesInSchema, getJsonSchemaStoreByPath, getJsonValueStoreByPath, getParentForPath, getPathByStore, getValueByPath, hasPath, parsePath, pluginRefs, prepareFormulas, replaceForeignKeyValue, resolveRefs, saveSharedFields, setValueByPath, traverseStore, traverseValue, validateFormulaAgainstSchema, validateJsonFieldName, validateSchemaFormulas } from './chunk-4Q7K6CHX.js';
5
+ export { SchemaTable, VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE, applyAddPatch, applyMovePatch, applyRemovePatch, applyReplacePatch, computeValueDiff, convertJsonPathToSchemaPath, convertSchemaPathToJsonPath, createJsonObjectSchemaStore, createJsonSchemaStore, createPrimitiveStoreBySchema, deepEqual, getDBJsonPathByJsonSchemaStore, getForeignKeyPatchesFromSchema, getForeignKeysFromSchema, getForeignKeysFromValue, getInvalidFieldNamesInSchema, getJsonSchemaStoreByPath, getJsonValueStoreByPath, getParentForPath, getPathByStore, getValueByPath, hasPath, parsePath, pluginRefs, replaceForeignKeyValue, resolveRefs, saveSharedFields, setValueByPath, traverseStore, traverseValue, validateJsonFieldName } from './chunk-DJ4JPKI4.js';
6
+ export { collectFormulaNodes, evaluateFormulas, extractSchemaFormulas, formulaSpec, validateFormulaAgainstSchema, validateSchemaFormulas } from './chunk-I2ECBDBM.js';
6
7
  export { FieldChangeType } from './chunk-KJCURW4D.js';
7
8
  export { ajvFileSchema, ajvRowCreatedAtSchema, ajvRowCreatedIdSchema, ajvRowHashSchema, ajvRowIdSchema, ajvRowPublishedAtSchema, ajvRowSchemaHashSchema, ajvRowUpdatedAtSchema, ajvRowVersionIdSchema, fileSchema, rowCreatedAtSchema, rowCreatedIdSchema, rowHashSchema, rowIdSchema, rowPublishedAtSchema, rowSchemaHashSchema, rowUpdatedAtSchema, rowVersionIdSchema } from './chunk-LLHQWDAR.js';
8
9
  export { SystemSchemaIds } from './chunk-Q2UOTIMG.js';