@revisium/schema-toolkit 0.20.2 → 0.21.1
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 +216 -0
- package/dist/FormulaPathBuilder-BUJRR0Am.d.cts +48 -0
- package/dist/FormulaPathBuilder-QR0htn-e.d.ts +48 -0
- package/dist/{chunk-VGADCIBG.cjs → chunk-2PIMJSWJ.cjs} +12 -8
- package/dist/chunk-3MJP73IJ.js +1 -0
- package/dist/{chunk-LLHQWDAR.js → chunk-4U2RZHMX.js} +19 -21
- package/dist/{chunk-Q2UOTIMG.js → chunk-5DUMJHCA.js} +0 -2
- package/dist/{chunk-V6JTSET2.cjs → chunk-7JWCZZPJ.cjs} +49 -51
- package/dist/{chunk-YFWOURZL.js → chunk-7PEC6ZYY.js} +0 -2
- package/dist/chunk-AV5EZUMZ.cjs +2 -0
- package/dist/{chunk-3JZKQWQH.js → chunk-AWFMSOHM.js} +5 -7
- package/dist/{chunk-X2VRR7V7.cjs → chunk-ERW5XVED.cjs} +0 -2
- package/dist/{chunk-XNFSFT7T.cjs → chunk-EVD5ZI55.cjs} +0 -2
- package/dist/{chunk-ZRNFSUOV.cjs → chunk-FL6PWPVJ.cjs} +0 -2
- package/dist/{chunk-55AMH44G.js → chunk-FTBRJODD.js} +28 -30
- package/dist/{chunk-R3MS2N4A.js → chunk-GJM63Q4K.js} +0 -2
- package/dist/{chunk-U5YDA3LA.js → chunk-HFMZITNE.js} +238 -31
- package/dist/{chunk-EGC32GPY.cjs → chunk-ITYABUR5.cjs} +19 -21
- package/dist/{chunk-R4CFU33U.js → chunk-IZMBM36H.js} +10 -9
- package/dist/chunk-J4RVO37K.cjs +2 -0
- package/dist/{chunk-QEV4Q4TR.js → chunk-JLXX3SGF.js} +30 -32
- package/dist/{chunk-MPF6VCB5.js → chunk-NO655UI5.js} +0 -2
- package/dist/chunk-OAUVP6CU.js +1 -0
- package/dist/{chunk-B3T6YB2D.cjs → chunk-ONW2OVNQ.cjs} +28 -30
- package/dist/{chunk-32FZHFIO.cjs → chunk-QKA7DJDN.cjs} +0 -2
- package/dist/{chunk-46ME2TAU.cjs → chunk-RCCBUOGY.cjs} +5 -7
- package/dist/{chunk-IPL2CGVA.cjs → chunk-RQBW7ATZ.cjs} +0 -2
- package/dist/{chunk-FZ2MS4Q5.cjs → chunk-S5SRXND6.cjs} +307 -97
- package/dist/{chunk-WSPFHUHU.cjs → chunk-T3QQSHAC.cjs} +0 -2
- package/dist/{chunk-J6SCHJKG.cjs → chunk-VMELKZXD.cjs} +0 -2
- package/dist/{chunk-5VDDLW7U.js → chunk-WE4OLW5U.js} +0 -2
- package/dist/{chunk-JUOGJFTL.js → chunk-XKWWCXGB.js} +0 -2
- package/dist/{chunk-ZBPUTF3Q.js → chunk-ZPRBA4AQ.js} +0 -2
- package/dist/consts/index.cjs +4 -6
- package/dist/consts/index.js +2 -4
- package/dist/core/index.cjs +65 -69
- package/dist/core/index.d.cts +6 -4
- package/dist/core/index.d.ts +6 -4
- package/dist/core/index.js +4 -8
- package/dist/formula/index.cjs +7 -9
- package/dist/formula/index.d.cts +1 -1
- package/dist/formula/index.d.ts +1 -1
- package/dist/formula/index.js +1 -3
- package/dist/index.cjs +269 -248
- package/dist/index.d.cts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.js +15 -18
- package/dist/{json-patch.types-DY7k9hxy.d.ts → json-patch.types-BpVnp08Z.d.ts} +1 -1
- package/dist/{json-patch.types-Cu0Medki.d.cts → json-patch.types-eM6pYC2P.d.cts} +1 -1
- package/dist/{json-string.store-C58zbl31.d.ts → json-string.store-DfdLcgnM.d.ts} +11 -11
- package/dist/{json-string.store-DuI--IL2.d.cts → json-string.store-cAOADo23.d.cts} +11 -11
- package/dist/lib/index.cjs +51 -54
- package/dist/lib/index.d.cts +3 -3
- package/dist/lib/index.d.ts +3 -3
- package/dist/lib/index.js +7 -10
- package/dist/mocks/index.cjs +30 -21
- package/dist/mocks/index.d.cts +22 -8
- package/dist/mocks/index.d.ts +22 -8
- package/dist/mocks/index.js +2 -5
- package/dist/model/index.cjs +85 -78
- package/dist/model/index.d.cts +171 -346
- package/dist/model/index.d.ts +171 -346
- package/dist/model/index.js +4 -9
- package/dist/plugins/index.cjs +20 -23
- package/dist/plugins/index.d.cts +10 -10
- package/dist/plugins/index.d.ts +10 -10
- package/dist/plugins/index.js +2 -5
- package/dist/{schema.types-B5OgKLpV.d.cts → schema.types-On_VGw2m.d.cts} +7 -6
- package/dist/{schema.types-B5OgKLpV.d.ts → schema.types-On_VGw2m.d.ts} +7 -6
- package/dist/typed-BRZhUqGG.d.ts +502 -0
- package/dist/typed-Cri0IYAn.d.cts +502 -0
- package/dist/types/index.cjs +6 -9
- package/dist/types/index.d.cts +7 -5
- package/dist/types/index.d.ts +7 -5
- package/dist/types/index.js +2 -5
- package/dist/{FormulaPathBuilder-DwlKOvVB.d.ts → types-BIvIURgy.d.cts} +37 -82
- package/dist/{FormulaPathBuilder-D9LkBcSv.d.cts → types-C_pTFtSY.d.ts} +37 -82
- package/dist/validation-schemas/index.cjs +18 -20
- package/dist/validation-schemas/index.js +1 -3
- package/package.json +1 -1
- package/dist/chunk-32FZHFIO.cjs.map +0 -1
- package/dist/chunk-3FJZMVWA.js +0 -3
- package/dist/chunk-3FJZMVWA.js.map +0 -1
- package/dist/chunk-3IKI64T2.js +0 -3
- package/dist/chunk-3IKI64T2.js.map +0 -1
- package/dist/chunk-3JZKQWQH.js.map +0 -1
- package/dist/chunk-46ME2TAU.cjs.map +0 -1
- package/dist/chunk-55AMH44G.js.map +0 -1
- package/dist/chunk-5VDDLW7U.js.map +0 -1
- package/dist/chunk-B3T6YB2D.cjs.map +0 -1
- package/dist/chunk-EGC32GPY.cjs.map +0 -1
- package/dist/chunk-FZ2MS4Q5.cjs.map +0 -1
- package/dist/chunk-G6ZKEVVU.cjs +0 -4
- package/dist/chunk-G6ZKEVVU.cjs.map +0 -1
- package/dist/chunk-IPL2CGVA.cjs.map +0 -1
- package/dist/chunk-J6SCHJKG.cjs.map +0 -1
- package/dist/chunk-JUOGJFTL.js.map +0 -1
- package/dist/chunk-L6HE7QPU.cjs +0 -4
- package/dist/chunk-L6HE7QPU.cjs.map +0 -1
- package/dist/chunk-LLHQWDAR.js.map +0 -1
- package/dist/chunk-MPF6VCB5.js.map +0 -1
- package/dist/chunk-NY3H6C7K.js +0 -3
- package/dist/chunk-NY3H6C7K.js.map +0 -1
- package/dist/chunk-Q2UOTIMG.js.map +0 -1
- package/dist/chunk-QEV4Q4TR.js.map +0 -1
- package/dist/chunk-R3MS2N4A.js.map +0 -1
- package/dist/chunk-R4CFU33U.js.map +0 -1
- package/dist/chunk-TBFTADML.cjs +0 -4
- package/dist/chunk-TBFTADML.cjs.map +0 -1
- package/dist/chunk-U5YDA3LA.js.map +0 -1
- package/dist/chunk-V6JTSET2.cjs.map +0 -1
- package/dist/chunk-VGADCIBG.cjs.map +0 -1
- package/dist/chunk-WSPFHUHU.cjs.map +0 -1
- package/dist/chunk-X2VRR7V7.cjs.map +0 -1
- package/dist/chunk-XNFSFT7T.cjs.map +0 -1
- package/dist/chunk-YFWOURZL.js.map +0 -1
- package/dist/chunk-ZBPUTF3Q.js.map +0 -1
- package/dist/chunk-ZRNFSUOV.cjs.map +0 -1
- package/dist/consts/index.cjs.map +0 -1
- package/dist/consts/index.js.map +0 -1
- package/dist/core/index.cjs.map +0 -1
- package/dist/core/index.js.map +0 -1
- package/dist/formula/index.cjs.map +0 -1
- package/dist/formula/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/json-value-patch.types-CgiEpchp.d.ts +0 -24
- package/dist/json-value-patch.types-LEJxcIWR.d.cts +0 -24
- package/dist/lib/index.cjs.map +0 -1
- package/dist/lib/index.js.map +0 -1
- package/dist/mocks/index.cjs.map +0 -1
- package/dist/mocks/index.js.map +0 -1
- package/dist/model/index.cjs.map +0 -1
- package/dist/model/index.js.map +0 -1
- package/dist/plugins/index.cjs.map +0 -1
- package/dist/plugins/index.js.map +0 -1
- package/dist/types/index.cjs.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/validation-schemas/index.cjs.map +0 -1
- package/dist/validation-schemas/index.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
export { b as JsonArray, J as JsonObject, a as JsonPrimitives, c as JsonValue } from './json.types-PrMmLhba.cjs';
|
|
2
|
-
export { h as JsonPatch, 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-
|
|
3
|
-
export { d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace } from './
|
|
2
|
+
export { h as JsonPatch, 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';
|
|
3
|
+
export { v as ArrayNodeOptions, A as ArrayValueNodeInterface, a2 as CompositeTypeName, D as DirtyTrackable, $ as FieldSchemaSpec, C as FieldType, E as FieldTypeSpec, X as ForeignKeyResolver, F as FormulaDefinition, r as FormulaWarning, g as InferNode, I as InferValue, d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace, N as NodeAtPath, w as NodeFactoryFn, x as NodeFactoryOptions, n as NodeFactoryRegistry, j as NodeFromValue, u as ObjectNodeOptions, O as ObjectValueNodeInterface, t as PrimitiveNodeOptions, a1 as PrimitiveTypeName, P as PrimitiveValueNode, R as RefSchemas, G as ReplaceResult, M as RowData, Q as RowModel, U as RowModelOptions, h as SchemaAtPath, i as SchemaFromValue, B as SchemaModel, H as SchemaModelOptions, S as SchemaPaths, a0 as SimpleFieldType, K as TableModel, W as TableModelLike, L as TableModelOptions, Z as TransformContext, _ as TransformResult, Y as TypeTransformer, f as TypedArrayValueNode, e as TypedObjectValueNode, T as TypedPrimitiveValueNode, V as ValueAtPath, q as ValueNode, y as ValueNodeFactory, s as ValueNodeOptions, k as ValuePaths, z as ValueTreeLike, l as ValueType, p as createDefaultRegistry, o as createNodeFactory, m as extractFormulaDefinition } from './typed-Cri0IYAn.cjs';
|
|
4
4
|
export { InitMigration, Migration, RemoveMigration, RenameMigration, UpdateMigration } from './types/index.cjs';
|
|
5
|
-
export { C as ContentMediaType,
|
|
5
|
+
export { C as ContentMediaType, h as JsonArraySchema, e as JsonBooleanSchema, d as JsonNumberSchema, g as JsonObjectSchema, i as JsonRefSchema, j as JsonSchema, 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';
|
|
6
6
|
export { a as FieldChange, F as FieldChangeType } from './types-C_GxaUve.cjs';
|
|
7
7
|
export { ajvFileSchema, ajvRowCreatedAtSchema, ajvRowCreatedIdSchema, ajvRowHashSchema, ajvRowIdSchema, ajvRowPublishedAtSchema, ajvRowSchemaHashSchema, ajvRowUpdatedAtSchema, ajvRowVersionIdSchema, fileSchema, rowCreatedAtSchema, rowCreatedIdSchema, rowHashSchema, rowIdSchema, rowPublishedAtSchema, rowSchemaHashSchema, rowUpdatedAtSchema, rowVersionIdSchema } from './plugins/index.cjs';
|
|
8
|
-
export { ArraySchemaOptions, BooleanSchemaOptions, NumberSchemaOptions, ObjectSchemaOptions, RefSchemaOptions, StringSchemaOptions, arr, bool, getAddPatch, getArraySchema, getBooleanSchema, getMovePatch, getNumberSchema, getObjectSchema, getRefSchema, getRemovePatch, getReplacePatch, getStringSchema, num, obj, ref, str } from './mocks/index.cjs';
|
|
8
|
+
export { ArraySchemaOptions, BooleanFormulaOptions, BooleanSchemaOptions, NumberFormulaOptions, NumberSchemaOptions, ObjectSchemaOptions, RefSchemaOptions, StringFormulaOptions, StringSchemaOptions, arr, bool, boolFormula, getAddPatch, getArraySchema, getBooleanSchema, getMovePatch, getNumberSchema, getObjectSchema, getRefSchema, getRemovePatch, getReplacePatch, getStringSchema, num, numFormula, obj, ref, str, strFormula } from './mocks/index.cjs';
|
|
9
9
|
export { CustomSchemeKeywords } from './consts/index.cjs';
|
|
10
|
-
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-
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
10
|
+
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-cAOADo23.cjs';
|
|
11
|
+
export { ArrayToItemsTypeTransformer, ArrayValueNode, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, DataModel, DataModelImpl, DataModelOptions, DefaultTransformer, ForeignKeyLoader, ForeignKeyNotFoundError, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, ForeignKeyResolverOptions, ForeignKeyRowLoaderResult, ForeignKeyValueNode, ForeignKeyValueNodeImpl, FormulaChangeDetector, FormulaDependencyIndex, FormulaPath, GenerateDefaultValueOptions, IndirectFormulaChange, NodeFactory, NumberValueNode, ObjectToArrayTransformer, ObjectValueNode, ParsedFormula, PrimitiveToArrayTransformer, RefTransformer, RowModelImpl, SchemaParser, StringValueNode, TableModelImpl, TypeTransformChain, TypeTransformChainOptions, TypedRowData, TypedRowModel, TypedRowModelOptions, TypedTableModel, TypedTableModelOptions, TypedValueTree, ValueTree, createDataModel, createForeignKeyResolver, createRowModel, createSchemaModel, createTableModel, createTypeTransformChain, createTypedTree, equal, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, generateDefaultValue, generateNodeId, getTransformation, isForeignKeyValueNode, resetNodeIdCounter, toArrayTransformation, typedNode } from './model/index.cjs';
|
|
12
|
+
export { l as DefaultValueType, D as Diagnostic, b as DiagnosticSeverity, E as EMPTY_METADATA, i as Formula, F as FormulaDependency, h as NodeMetadata, N as NodeType, P as Path, a as PathSegment, m as PropertyChange, n as PropertyName, R as ResolvedDependency, S as SchemaLike, j as SchemaNode, k as SchemaPatch, f as SchemaValidationError, g as SchemaValidationErrorType, T as TreeFormulaValidationError, V as ValidationContext, c as Validator, e as ValidatorFactoryFn, d as ValidatorRule } from './types-BIvIURgy.cjs';
|
|
13
|
+
export { a as FormulaPathBuilder, F as FormulaSerializer, S as SchemaTree } from './FormulaPathBuilder-BUJRR0Am.cjs';
|
|
13
14
|
export { GetForeignKeysFromValueType, RefsType, ReplaceForeignKeyValueOptions, SchemaTable, VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE, addSharedFieldsFromState, applyAddPatch, applyMovePatch, applyRemovePatch, applyReplacePatch, 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';
|
|
14
15
|
export { c as computeValueDiff } from './computeValueDiff-CNT84rwK.cjs';
|
|
15
16
|
export { EvaluateFormulasOptions, EvaluateFormulasResult, ExtractedFormula, FormulaError, FormulaNode, FormulaValidationError, SchemaValidationResult, collectFormulaNodes, evaluateFormulas, extractSchemaFormulas, validateFormulaAgainstSchema, validateSchemaFormulas } from './formula/index.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
export { b as JsonArray, J as JsonObject, a as JsonPrimitives, c as JsonValue } from './json.types-PrMmLhba.js';
|
|
2
|
-
export { h as JsonPatch, 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-
|
|
3
|
-
export { d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace } from './
|
|
2
|
+
export { h as JsonPatch, 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';
|
|
3
|
+
export { v as ArrayNodeOptions, A as ArrayValueNodeInterface, a2 as CompositeTypeName, D as DirtyTrackable, $ as FieldSchemaSpec, C as FieldType, E as FieldTypeSpec, X as ForeignKeyResolver, F as FormulaDefinition, r as FormulaWarning, g as InferNode, I as InferValue, d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace, N as NodeAtPath, w as NodeFactoryFn, x as NodeFactoryOptions, n as NodeFactoryRegistry, j as NodeFromValue, u as ObjectNodeOptions, O as ObjectValueNodeInterface, t as PrimitiveNodeOptions, a1 as PrimitiveTypeName, P as PrimitiveValueNode, R as RefSchemas, G as ReplaceResult, M as RowData, Q as RowModel, U as RowModelOptions, h as SchemaAtPath, i as SchemaFromValue, B as SchemaModel, H as SchemaModelOptions, S as SchemaPaths, a0 as SimpleFieldType, K as TableModel, W as TableModelLike, L as TableModelOptions, Z as TransformContext, _ as TransformResult, Y as TypeTransformer, f as TypedArrayValueNode, e as TypedObjectValueNode, T as TypedPrimitiveValueNode, V as ValueAtPath, q as ValueNode, y as ValueNodeFactory, s as ValueNodeOptions, k as ValuePaths, z as ValueTreeLike, l as ValueType, p as createDefaultRegistry, o as createNodeFactory, m as extractFormulaDefinition } from './typed-BRZhUqGG.js';
|
|
4
4
|
export { InitMigration, Migration, RemoveMigration, RenameMigration, UpdateMigration } from './types/index.js';
|
|
5
|
-
export { C as ContentMediaType,
|
|
5
|
+
export { C as ContentMediaType, h as JsonArraySchema, e as JsonBooleanSchema, d as JsonNumberSchema, g as JsonObjectSchema, i as JsonRefSchema, j as JsonSchema, 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';
|
|
6
6
|
export { a as FieldChange, F as FieldChangeType } from './types-C_GxaUve.js';
|
|
7
7
|
export { ajvFileSchema, ajvRowCreatedAtSchema, ajvRowCreatedIdSchema, ajvRowHashSchema, ajvRowIdSchema, ajvRowPublishedAtSchema, ajvRowSchemaHashSchema, ajvRowUpdatedAtSchema, ajvRowVersionIdSchema, fileSchema, rowCreatedAtSchema, rowCreatedIdSchema, rowHashSchema, rowIdSchema, rowPublishedAtSchema, rowSchemaHashSchema, rowUpdatedAtSchema, rowVersionIdSchema } from './plugins/index.js';
|
|
8
|
-
export { ArraySchemaOptions, BooleanSchemaOptions, NumberSchemaOptions, ObjectSchemaOptions, RefSchemaOptions, StringSchemaOptions, arr, bool, getAddPatch, getArraySchema, getBooleanSchema, getMovePatch, getNumberSchema, getObjectSchema, getRefSchema, getRemovePatch, getReplacePatch, getStringSchema, num, obj, ref, str } from './mocks/index.js';
|
|
8
|
+
export { ArraySchemaOptions, BooleanFormulaOptions, BooleanSchemaOptions, NumberFormulaOptions, NumberSchemaOptions, ObjectSchemaOptions, RefSchemaOptions, StringFormulaOptions, StringSchemaOptions, arr, bool, boolFormula, getAddPatch, getArraySchema, getBooleanSchema, getMovePatch, getNumberSchema, getObjectSchema, getRefSchema, getRemovePatch, getReplacePatch, getStringSchema, num, numFormula, obj, ref, str, strFormula } from './mocks/index.js';
|
|
9
9
|
export { CustomSchemeKeywords } from './consts/index.js';
|
|
10
|
-
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-
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
10
|
+
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-DfdLcgnM.js';
|
|
11
|
+
export { ArrayToItemsTypeTransformer, ArrayValueNode, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, DataModel, DataModelImpl, DataModelOptions, DefaultTransformer, ForeignKeyLoader, ForeignKeyNotFoundError, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, ForeignKeyResolverOptions, ForeignKeyRowLoaderResult, ForeignKeyValueNode, ForeignKeyValueNodeImpl, FormulaChangeDetector, FormulaDependencyIndex, FormulaPath, GenerateDefaultValueOptions, IndirectFormulaChange, NodeFactory, NumberValueNode, ObjectToArrayTransformer, ObjectValueNode, ParsedFormula, PrimitiveToArrayTransformer, RefTransformer, RowModelImpl, SchemaParser, StringValueNode, TableModelImpl, TypeTransformChain, TypeTransformChainOptions, TypedRowData, TypedRowModel, TypedRowModelOptions, TypedTableModel, TypedTableModelOptions, TypedValueTree, ValueTree, createDataModel, createForeignKeyResolver, createRowModel, createSchemaModel, createTableModel, createTypeTransformChain, createTypedTree, equal, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, generateDefaultValue, generateNodeId, getTransformation, isForeignKeyValueNode, resetNodeIdCounter, toArrayTransformation, typedNode } from './model/index.js';
|
|
12
|
+
export { l as DefaultValueType, D as Diagnostic, b as DiagnosticSeverity, E as EMPTY_METADATA, i as Formula, F as FormulaDependency, h as NodeMetadata, N as NodeType, P as Path, a as PathSegment, m as PropertyChange, n as PropertyName, R as ResolvedDependency, S as SchemaLike, j as SchemaNode, k as SchemaPatch, f as SchemaValidationError, g as SchemaValidationErrorType, T as TreeFormulaValidationError, V as ValidationContext, c as Validator, e as ValidatorFactoryFn, d as ValidatorRule } from './types-C_pTFtSY.js';
|
|
13
|
+
export { a as FormulaPathBuilder, F as FormulaSerializer, S as SchemaTree } from './FormulaPathBuilder-QR0htn-e.js';
|
|
13
14
|
export { GetForeignKeysFromValueType, RefsType, ReplaceForeignKeyValueOptions, SchemaTable, VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE, addSharedFieldsFromState, applyAddPatch, applyMovePatch, applyRemovePatch, applyReplacePatch, 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';
|
|
14
15
|
export { c as computeValueDiff } from './computeValueDiff-CDwbNw8F.js';
|
|
15
16
|
export { EvaluateFormulasOptions, EvaluateFormulasResult, ExtractedFormula, FormulaError, FormulaNode, FormulaValidationError, SchemaValidationResult, collectFormulaNodes, evaluateFormulas, extractSchemaFormulas, validateFormulaAgainstSchema, validateSchemaFormulas } from './formula/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import './chunk-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
|
|
7
|
-
export { arr, bool, getAddPatch, getArraySchema, getBooleanSchema, getMovePatch, getNumberSchema, getObjectSchema, getRefSchema, getRemovePatch, getReplacePatch, getStringSchema, num, obj, ref, str } from './chunk-
|
|
8
|
-
export { SchemaTable, VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE, applyAddPatch, applyMovePatch, applyRemovePatch, applyReplacePatch, 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-
|
|
9
|
-
export { collectFormulaNodes, evaluateFormulas, extractSchemaFormulas, formulaSpec, validateFormulaAgainstSchema, validateSchemaFormulas } from './chunk-
|
|
10
|
-
export { computeValueDiff } from './chunk-
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export { arrayMetaSchema, baseStringFields, booleanMetaSchema, foreignKeyExcludesFormula, historyPatchesSchema, jsonPatchSchema, metaSchema, noForeignKeyStringMetaSchema, notForeignKeyMetaSchema, numberMetaSchema, objectMetaSchema, refMetaSchema, sharedFields, stringMetaSchema, tableMigrationsSchema, xFormulaRequiresReadOnly, xFormulaSchema } from './chunk-JUOGJFTL.js';
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import './chunk-OAUVP6CU.js';
|
|
2
|
+
export { JsonSchemaTypeName } from './chunk-NO655UI5.js';
|
|
3
|
+
import './chunk-3MJP73IJ.js';
|
|
4
|
+
export { CustomSchemeKeywords } from './chunk-WE4OLW5U.js';
|
|
5
|
+
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-HFMZITNE.js';
|
|
6
|
+
export { ChangeCoalescer, ChangeCollector, CompositeRule, EMPTY_METADATA, EMPTY_PATH, EnumValidator, FIELD_NAME_ERROR_MESSAGE, ForeignKeyValidator, FormulaPathBuilder, FormulaSerializer, ItemsSegment, MaxLengthValidator, MaximumValidator, MinLengthValidator, MinimumValidator, NULL_NODE, NodePathIndex, PatchBuilder, PatchEnricher, PatchGenerator, PatternValidator, PropertySegment, RequiredValidator, ResolvedDependency, 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-AWFMSOHM.js';
|
|
7
|
+
export { arr, bool, boolFormula, getAddPatch, getArraySchema, getBooleanSchema, getMovePatch, getNumberSchema, getObjectSchema, getRefSchema, getRemovePatch, getReplacePatch, getStringSchema, num, numFormula, obj, ref, str, strFormula } from './chunk-IZMBM36H.js';
|
|
8
|
+
export { SchemaTable, VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE, applyAddPatch, applyMovePatch, applyRemovePatch, applyReplacePatch, 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-JLXX3SGF.js';
|
|
9
|
+
export { collectFormulaNodes, evaluateFormulas, extractSchemaFormulas, formulaSpec, validateFormulaAgainstSchema, validateSchemaFormulas } from './chunk-GJM63Q4K.js';
|
|
10
|
+
export { computeValueDiff } from './chunk-7PEC6ZYY.js';
|
|
11
|
+
export { FieldChangeType } from './chunk-ZPRBA4AQ.js';
|
|
12
|
+
export { ajvFileSchema, ajvRowCreatedAtSchema, ajvRowCreatedIdSchema, ajvRowHashSchema, ajvRowIdSchema, ajvRowPublishedAtSchema, ajvRowSchemaHashSchema, ajvRowUpdatedAtSchema, ajvRowVersionIdSchema, fileSchema, rowCreatedAtSchema, rowCreatedIdSchema, rowHashSchema, rowIdSchema, rowPublishedAtSchema, rowSchemaHashSchema, rowUpdatedAtSchema, rowVersionIdSchema } from './chunk-4U2RZHMX.js';
|
|
13
|
+
export { SystemSchemaIds } from './chunk-5DUMJHCA.js';
|
|
14
|
+
export { JsonArrayStore, JsonArrayValueStore, JsonBooleanStore, JsonBooleanValueStore, JsonNumberStore, JsonNumberValueStore, JsonObjectStore, JsonObjectValueStore, JsonStringStore, JsonStringValueStore, addSharedFieldsFromState, createJsonArrayValueStore, createJsonObjectValueStore, createJsonValueStore, createPrimitiveValueStore, equal, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, getTransformation, toArrayTransformation } from './chunk-FTBRJODD.js';
|
|
15
|
+
export { arrayMetaSchema, baseStringFields, booleanMetaSchema, foreignKeyExcludesFormula, historyPatchesSchema, jsonPatchSchema, metaSchema, noForeignKeyStringMetaSchema, notForeignKeyMetaSchema, numberMetaSchema, objectMetaSchema, refMetaSchema, sharedFields, stringMetaSchema, tableMigrationsSchema, xFormulaRequiresReadOnly, xFormulaSchema } from './chunk-XKWWCXGB.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EventEmitter } from 'eventemitter3';
|
|
2
|
-
import {
|
|
2
|
+
import { e as JsonBooleanSchema, X as XFormula, i as JsonRefSchema, d as JsonNumberSchema, g as JsonObjectSchema, h as JsonArraySchema, c as JsonStringSchema } from './schema.types-On_VGw2m.js';
|
|
3
3
|
import { J as JsonObject, b as JsonArray } from './json.types-PrMmLhba.js';
|
|
4
4
|
|
|
5
5
|
declare class JsonBooleanStore extends EventEmitter implements JsonBooleanSchema {
|
|
6
6
|
readonly nodeId: string;
|
|
7
|
-
readonly type
|
|
7
|
+
readonly type: "boolean";
|
|
8
8
|
$ref: string;
|
|
9
9
|
name: string;
|
|
10
10
|
parent: JsonSchemaStore | null;
|
|
@@ -28,7 +28,7 @@ declare class JsonBooleanValueStore {
|
|
|
28
28
|
readonly schema: JsonBooleanStore;
|
|
29
29
|
readonly rowId: string;
|
|
30
30
|
value: boolean | null;
|
|
31
|
-
readonly type
|
|
31
|
+
readonly type: "boolean";
|
|
32
32
|
readonly index: number;
|
|
33
33
|
parent: JsonValueStoreParent | null;
|
|
34
34
|
constructor(schema: JsonBooleanStore, rowId: string, value?: boolean | null);
|
|
@@ -37,7 +37,7 @@ declare class JsonBooleanValueStore {
|
|
|
37
37
|
|
|
38
38
|
declare class JsonNumberStore extends EventEmitter implements JsonNumberSchema {
|
|
39
39
|
readonly nodeId: string;
|
|
40
|
-
readonly type
|
|
40
|
+
readonly type: "number";
|
|
41
41
|
$ref: string;
|
|
42
42
|
name: string;
|
|
43
43
|
parent: JsonSchemaStore | null;
|
|
@@ -61,7 +61,7 @@ declare class JsonNumberValueStore {
|
|
|
61
61
|
readonly schema: JsonNumberStore;
|
|
62
62
|
readonly rowId: string;
|
|
63
63
|
value: number | null;
|
|
64
|
-
readonly type
|
|
64
|
+
readonly type: "number";
|
|
65
65
|
readonly index: number;
|
|
66
66
|
parent: JsonValueStoreParent | null;
|
|
67
67
|
constructor(schema: JsonNumberStore, rowId: string, value?: number | null);
|
|
@@ -88,7 +88,7 @@ type ChangeNameEvent = {
|
|
|
88
88
|
};
|
|
89
89
|
declare class JsonObjectStore implements JsonObjectSchema {
|
|
90
90
|
readonly nodeId: string;
|
|
91
|
-
readonly type
|
|
91
|
+
readonly type: "object";
|
|
92
92
|
$ref: string;
|
|
93
93
|
name: string;
|
|
94
94
|
parent: JsonSchemaStore | null;
|
|
@@ -120,7 +120,7 @@ declare class JsonObjectValueStore {
|
|
|
120
120
|
readonly schema: JsonObjectStore;
|
|
121
121
|
readonly rowId: string;
|
|
122
122
|
value: Record<string, JsonValueStore>;
|
|
123
|
-
readonly type
|
|
123
|
+
readonly type: "object";
|
|
124
124
|
index: number;
|
|
125
125
|
parent: JsonValueStoreParent | null;
|
|
126
126
|
constructor(schema: JsonObjectStore, rowId: string, value: Record<string, JsonValueStore>);
|
|
@@ -139,7 +139,7 @@ declare class JsonStringValueStore {
|
|
|
139
139
|
readonly schema: JsonStringStore;
|
|
140
140
|
readonly rowId: string;
|
|
141
141
|
value: string | null;
|
|
142
|
-
readonly type
|
|
142
|
+
readonly type: "string";
|
|
143
143
|
readonly index: number;
|
|
144
144
|
parent: JsonValueStoreParent | null;
|
|
145
145
|
constructor(schema: JsonStringStore, rowId: string, value?: string | null);
|
|
@@ -155,7 +155,7 @@ declare class JsonArrayValueStore {
|
|
|
155
155
|
readonly schema: JsonArrayStore;
|
|
156
156
|
readonly rowId: string;
|
|
157
157
|
value: JsonValueStore[];
|
|
158
|
-
readonly type
|
|
158
|
+
readonly type: "array";
|
|
159
159
|
index: number;
|
|
160
160
|
parent: JsonValueStoreParent | null;
|
|
161
161
|
constructor(schema: JsonArrayStore, rowId: string, value: JsonValueStore[]);
|
|
@@ -177,7 +177,7 @@ type ReplaceItemsEvent = {
|
|
|
177
177
|
declare class JsonArrayStore implements JsonArraySchema {
|
|
178
178
|
private _items;
|
|
179
179
|
readonly nodeId: string;
|
|
180
|
-
readonly type
|
|
180
|
+
readonly type: "array";
|
|
181
181
|
$ref: string;
|
|
182
182
|
name: string;
|
|
183
183
|
parent: JsonSchemaStore | null;
|
|
@@ -204,7 +204,7 @@ type JsonSchemaStore = JsonObjectStore | JsonArrayStore | JsonSchemaStorePrimiti
|
|
|
204
204
|
|
|
205
205
|
declare class JsonStringStore extends EventEmitter implements JsonStringSchema {
|
|
206
206
|
readonly nodeId: string;
|
|
207
|
-
readonly type
|
|
207
|
+
readonly type: "string";
|
|
208
208
|
$ref: string;
|
|
209
209
|
name: string;
|
|
210
210
|
parent: JsonSchemaStore | null;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EventEmitter } from 'eventemitter3';
|
|
2
|
-
import {
|
|
2
|
+
import { e as JsonBooleanSchema, X as XFormula, i as JsonRefSchema, d as JsonNumberSchema, g as JsonObjectSchema, h as JsonArraySchema, c as JsonStringSchema } from './schema.types-On_VGw2m.cjs';
|
|
3
3
|
import { J as JsonObject, b as JsonArray } from './json.types-PrMmLhba.cjs';
|
|
4
4
|
|
|
5
5
|
declare class JsonBooleanStore extends EventEmitter implements JsonBooleanSchema {
|
|
6
6
|
readonly nodeId: string;
|
|
7
|
-
readonly type
|
|
7
|
+
readonly type: "boolean";
|
|
8
8
|
$ref: string;
|
|
9
9
|
name: string;
|
|
10
10
|
parent: JsonSchemaStore | null;
|
|
@@ -28,7 +28,7 @@ declare class JsonBooleanValueStore {
|
|
|
28
28
|
readonly schema: JsonBooleanStore;
|
|
29
29
|
readonly rowId: string;
|
|
30
30
|
value: boolean | null;
|
|
31
|
-
readonly type
|
|
31
|
+
readonly type: "boolean";
|
|
32
32
|
readonly index: number;
|
|
33
33
|
parent: JsonValueStoreParent | null;
|
|
34
34
|
constructor(schema: JsonBooleanStore, rowId: string, value?: boolean | null);
|
|
@@ -37,7 +37,7 @@ declare class JsonBooleanValueStore {
|
|
|
37
37
|
|
|
38
38
|
declare class JsonNumberStore extends EventEmitter implements JsonNumberSchema {
|
|
39
39
|
readonly nodeId: string;
|
|
40
|
-
readonly type
|
|
40
|
+
readonly type: "number";
|
|
41
41
|
$ref: string;
|
|
42
42
|
name: string;
|
|
43
43
|
parent: JsonSchemaStore | null;
|
|
@@ -61,7 +61,7 @@ declare class JsonNumberValueStore {
|
|
|
61
61
|
readonly schema: JsonNumberStore;
|
|
62
62
|
readonly rowId: string;
|
|
63
63
|
value: number | null;
|
|
64
|
-
readonly type
|
|
64
|
+
readonly type: "number";
|
|
65
65
|
readonly index: number;
|
|
66
66
|
parent: JsonValueStoreParent | null;
|
|
67
67
|
constructor(schema: JsonNumberStore, rowId: string, value?: number | null);
|
|
@@ -88,7 +88,7 @@ type ChangeNameEvent = {
|
|
|
88
88
|
};
|
|
89
89
|
declare class JsonObjectStore implements JsonObjectSchema {
|
|
90
90
|
readonly nodeId: string;
|
|
91
|
-
readonly type
|
|
91
|
+
readonly type: "object";
|
|
92
92
|
$ref: string;
|
|
93
93
|
name: string;
|
|
94
94
|
parent: JsonSchemaStore | null;
|
|
@@ -120,7 +120,7 @@ declare class JsonObjectValueStore {
|
|
|
120
120
|
readonly schema: JsonObjectStore;
|
|
121
121
|
readonly rowId: string;
|
|
122
122
|
value: Record<string, JsonValueStore>;
|
|
123
|
-
readonly type
|
|
123
|
+
readonly type: "object";
|
|
124
124
|
index: number;
|
|
125
125
|
parent: JsonValueStoreParent | null;
|
|
126
126
|
constructor(schema: JsonObjectStore, rowId: string, value: Record<string, JsonValueStore>);
|
|
@@ -139,7 +139,7 @@ declare class JsonStringValueStore {
|
|
|
139
139
|
readonly schema: JsonStringStore;
|
|
140
140
|
readonly rowId: string;
|
|
141
141
|
value: string | null;
|
|
142
|
-
readonly type
|
|
142
|
+
readonly type: "string";
|
|
143
143
|
readonly index: number;
|
|
144
144
|
parent: JsonValueStoreParent | null;
|
|
145
145
|
constructor(schema: JsonStringStore, rowId: string, value?: string | null);
|
|
@@ -155,7 +155,7 @@ declare class JsonArrayValueStore {
|
|
|
155
155
|
readonly schema: JsonArrayStore;
|
|
156
156
|
readonly rowId: string;
|
|
157
157
|
value: JsonValueStore[];
|
|
158
|
-
readonly type
|
|
158
|
+
readonly type: "array";
|
|
159
159
|
index: number;
|
|
160
160
|
parent: JsonValueStoreParent | null;
|
|
161
161
|
constructor(schema: JsonArrayStore, rowId: string, value: JsonValueStore[]);
|
|
@@ -177,7 +177,7 @@ type ReplaceItemsEvent = {
|
|
|
177
177
|
declare class JsonArrayStore implements JsonArraySchema {
|
|
178
178
|
private _items;
|
|
179
179
|
readonly nodeId: string;
|
|
180
|
-
readonly type
|
|
180
|
+
readonly type: "array";
|
|
181
181
|
$ref: string;
|
|
182
182
|
name: string;
|
|
183
183
|
parent: JsonSchemaStore | null;
|
|
@@ -204,7 +204,7 @@ type JsonSchemaStore = JsonObjectStore | JsonArrayStore | JsonSchemaStorePrimiti
|
|
|
204
204
|
|
|
205
205
|
declare class JsonStringStore extends EventEmitter implements JsonStringSchema {
|
|
206
206
|
readonly nodeId: string;
|
|
207
|
-
readonly type
|
|
207
|
+
readonly type: "string";
|
|
208
208
|
$ref: string;
|
|
209
209
|
name: string;
|
|
210
210
|
parent: JsonSchemaStore | null;
|
package/dist/lib/index.cjs
CHANGED
|
@@ -1,191 +1,188 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-J6SCHJKG.cjs');
|
|
3
|
+
var chunk7JWCZZPJ_cjs = require('../chunk-7JWCZZPJ.cjs');
|
|
4
|
+
var chunkERW5XVED_cjs = require('../chunk-ERW5XVED.cjs');
|
|
5
|
+
var chunkT3QQSHAC_cjs = require('../chunk-T3QQSHAC.cjs');
|
|
6
|
+
require('../chunk-FL6PWPVJ.cjs');
|
|
7
|
+
require('../chunk-ITYABUR5.cjs');
|
|
8
|
+
require('../chunk-EVD5ZI55.cjs');
|
|
9
|
+
var chunkONW2OVNQ_cjs = require('../chunk-ONW2OVNQ.cjs');
|
|
11
10
|
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
Object.defineProperty(exports, "SchemaTable", {
|
|
15
14
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk7JWCZZPJ_cjs.SchemaTable; }
|
|
17
16
|
});
|
|
18
17
|
Object.defineProperty(exports, "VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE", {
|
|
19
18
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk7JWCZZPJ_cjs.VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE; }
|
|
21
20
|
});
|
|
22
21
|
Object.defineProperty(exports, "applyAddPatch", {
|
|
23
22
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk7JWCZZPJ_cjs.applyAddPatch; }
|
|
25
24
|
});
|
|
26
25
|
Object.defineProperty(exports, "applyMovePatch", {
|
|
27
26
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk7JWCZZPJ_cjs.applyMovePatch; }
|
|
29
28
|
});
|
|
30
29
|
Object.defineProperty(exports, "applyRemovePatch", {
|
|
31
30
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunk7JWCZZPJ_cjs.applyRemovePatch; }
|
|
33
32
|
});
|
|
34
33
|
Object.defineProperty(exports, "applyReplacePatch", {
|
|
35
34
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunk7JWCZZPJ_cjs.applyReplacePatch; }
|
|
37
36
|
});
|
|
38
37
|
Object.defineProperty(exports, "convertJsonPathToSchemaPath", {
|
|
39
38
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunk7JWCZZPJ_cjs.convertJsonPathToSchemaPath; }
|
|
41
40
|
});
|
|
42
41
|
Object.defineProperty(exports, "convertSchemaPathToJsonPath", {
|
|
43
42
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunk7JWCZZPJ_cjs.convertSchemaPathToJsonPath; }
|
|
45
44
|
});
|
|
46
45
|
Object.defineProperty(exports, "createJsonObjectSchemaStore", {
|
|
47
46
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunk7JWCZZPJ_cjs.createJsonObjectSchemaStore; }
|
|
49
48
|
});
|
|
50
49
|
Object.defineProperty(exports, "createJsonSchemaStore", {
|
|
51
50
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunk7JWCZZPJ_cjs.createJsonSchemaStore; }
|
|
53
52
|
});
|
|
54
53
|
Object.defineProperty(exports, "createPrimitiveStoreBySchema", {
|
|
55
54
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunk7JWCZZPJ_cjs.createPrimitiveStoreBySchema; }
|
|
57
56
|
});
|
|
58
57
|
Object.defineProperty(exports, "deepEqual", {
|
|
59
58
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunk7JWCZZPJ_cjs.deepEqual; }
|
|
61
60
|
});
|
|
62
61
|
Object.defineProperty(exports, "getDBJsonPathByJsonSchemaStore", {
|
|
63
62
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunk7JWCZZPJ_cjs.getDBJsonPathByJsonSchemaStore; }
|
|
65
64
|
});
|
|
66
65
|
Object.defineProperty(exports, "getForeignKeyPatchesFromSchema", {
|
|
67
66
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunk7JWCZZPJ_cjs.getForeignKeyPatchesFromSchema; }
|
|
69
68
|
});
|
|
70
69
|
Object.defineProperty(exports, "getForeignKeysFromSchema", {
|
|
71
70
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunk7JWCZZPJ_cjs.getForeignKeysFromSchema; }
|
|
73
72
|
});
|
|
74
73
|
Object.defineProperty(exports, "getForeignKeysFromValue", {
|
|
75
74
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunk7JWCZZPJ_cjs.getForeignKeysFromValue; }
|
|
77
76
|
});
|
|
78
77
|
Object.defineProperty(exports, "getInvalidFieldNamesInSchema", {
|
|
79
78
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunk7JWCZZPJ_cjs.getInvalidFieldNamesInSchema; }
|
|
81
80
|
});
|
|
82
81
|
Object.defineProperty(exports, "getJsonSchemaStoreByPath", {
|
|
83
82
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunk7JWCZZPJ_cjs.getJsonSchemaStoreByPath; }
|
|
85
84
|
});
|
|
86
85
|
Object.defineProperty(exports, "getJsonValueStoreByPath", {
|
|
87
86
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunk7JWCZZPJ_cjs.getJsonValueStoreByPath; }
|
|
89
88
|
});
|
|
90
89
|
Object.defineProperty(exports, "getParentForPath", {
|
|
91
90
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunk7JWCZZPJ_cjs.getParentForPath; }
|
|
93
92
|
});
|
|
94
93
|
Object.defineProperty(exports, "getPathByStore", {
|
|
95
94
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunk7JWCZZPJ_cjs.getPathByStore; }
|
|
97
96
|
});
|
|
98
97
|
Object.defineProperty(exports, "getValueByPath", {
|
|
99
98
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunk7JWCZZPJ_cjs.getValueByPath; }
|
|
101
100
|
});
|
|
102
101
|
Object.defineProperty(exports, "hasPath", {
|
|
103
102
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunk7JWCZZPJ_cjs.hasPath; }
|
|
105
104
|
});
|
|
106
105
|
Object.defineProperty(exports, "parsePath", {
|
|
107
106
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunk7JWCZZPJ_cjs.parsePath; }
|
|
109
108
|
});
|
|
110
109
|
Object.defineProperty(exports, "pluginRefs", {
|
|
111
110
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunk7JWCZZPJ_cjs.pluginRefs; }
|
|
113
112
|
});
|
|
114
113
|
Object.defineProperty(exports, "replaceForeignKeyValue", {
|
|
115
114
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunk7JWCZZPJ_cjs.replaceForeignKeyValue; }
|
|
117
116
|
});
|
|
118
117
|
Object.defineProperty(exports, "resolveRefs", {
|
|
119
118
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunk7JWCZZPJ_cjs.resolveRefs; }
|
|
121
120
|
});
|
|
122
121
|
Object.defineProperty(exports, "saveSharedFields", {
|
|
123
122
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunk7JWCZZPJ_cjs.saveSharedFields; }
|
|
125
124
|
});
|
|
126
125
|
Object.defineProperty(exports, "setValueByPath", {
|
|
127
126
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunk7JWCZZPJ_cjs.setValueByPath; }
|
|
129
128
|
});
|
|
130
129
|
Object.defineProperty(exports, "traverseStore", {
|
|
131
130
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunk7JWCZZPJ_cjs.traverseStore; }
|
|
133
132
|
});
|
|
134
133
|
Object.defineProperty(exports, "traverseValue", {
|
|
135
134
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunk7JWCZZPJ_cjs.traverseValue; }
|
|
137
136
|
});
|
|
138
137
|
Object.defineProperty(exports, "validateJsonFieldName", {
|
|
139
138
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunk7JWCZZPJ_cjs.validateJsonFieldName; }
|
|
141
140
|
});
|
|
142
141
|
Object.defineProperty(exports, "collectFormulaNodes", {
|
|
143
142
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkERW5XVED_cjs.collectFormulaNodes; }
|
|
145
144
|
});
|
|
146
145
|
Object.defineProperty(exports, "evaluateFormulas", {
|
|
147
146
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkERW5XVED_cjs.evaluateFormulas; }
|
|
149
148
|
});
|
|
150
149
|
Object.defineProperty(exports, "extractSchemaFormulas", {
|
|
151
150
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkERW5XVED_cjs.extractSchemaFormulas; }
|
|
153
152
|
});
|
|
154
153
|
Object.defineProperty(exports, "formulaSpec", {
|
|
155
154
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkERW5XVED_cjs.formulaSpec; }
|
|
157
156
|
});
|
|
158
157
|
Object.defineProperty(exports, "validateFormulaAgainstSchema", {
|
|
159
158
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkERW5XVED_cjs.validateFormulaAgainstSchema; }
|
|
161
160
|
});
|
|
162
161
|
Object.defineProperty(exports, "validateSchemaFormulas", {
|
|
163
162
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkERW5XVED_cjs.validateSchemaFormulas; }
|
|
165
164
|
});
|
|
166
165
|
Object.defineProperty(exports, "computeValueDiff", {
|
|
167
166
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkT3QQSHAC_cjs.computeValueDiff; }
|
|
169
168
|
});
|
|
170
169
|
Object.defineProperty(exports, "addSharedFieldsFromState", {
|
|
171
170
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkONW2OVNQ_cjs.addSharedFieldsFromState; }
|
|
173
172
|
});
|
|
174
173
|
Object.defineProperty(exports, "createJsonArrayValueStore", {
|
|
175
174
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkONW2OVNQ_cjs.createJsonArrayValueStore; }
|
|
177
176
|
});
|
|
178
177
|
Object.defineProperty(exports, "createJsonObjectValueStore", {
|
|
179
178
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkONW2OVNQ_cjs.createJsonObjectValueStore; }
|
|
181
180
|
});
|
|
182
181
|
Object.defineProperty(exports, "createJsonValueStore", {
|
|
183
182
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkONW2OVNQ_cjs.createJsonValueStore; }
|
|
185
184
|
});
|
|
186
185
|
Object.defineProperty(exports, "createPrimitiveValueStore", {
|
|
187
186
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkONW2OVNQ_cjs.createPrimitiveValueStore; }
|
|
189
188
|
});
|
|
190
|
-
//# sourceMappingURL=index.cjs.map
|
|
191
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/lib/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { e as JsonPatchReplace, f as JsonPatchRemove, g as JsonPatchAdd, d as JsonPatchMove, h as JsonPatch } from '../json-patch.types-
|
|
3
|
-
import { h as JsonSchemaStore, c as JsonObjectStore, g as JsonSchemaStorePrimitives, p as JsonValueStore, l as JsonObjectValueStore, f as JsonArrayStore, m as JsonArrayValueStore, n as JsonValueStorePrimitives } from '../json-string.store-
|
|
1
|
+
import { j as JsonSchema, g as JsonObjectSchema, f as JsonSchemaPrimitives, c as JsonStringSchema, d as JsonNumberSchema, e as JsonBooleanSchema, h as JsonArraySchema, i as JsonRefSchema } from '../schema.types-On_VGw2m.cjs';
|
|
2
|
+
import { e as JsonPatchReplace, f as JsonPatchRemove, g as JsonPatchAdd, d as JsonPatchMove, h as JsonPatch } from '../json-patch.types-eM6pYC2P.cjs';
|
|
3
|
+
import { h as JsonSchemaStore, c as JsonObjectStore, g as JsonSchemaStorePrimitives, p as JsonValueStore, l as JsonObjectValueStore, f as JsonArrayStore, m as JsonArrayValueStore, n as JsonValueStorePrimitives } from '../json-string.store-cAOADo23.cjs';
|
|
4
4
|
export { c as computeValueDiff } from '../computeValueDiff-CNT84rwK.cjs';
|
|
5
5
|
import { c as JsonValue, J as JsonObject, b as JsonArray, a as JsonPrimitives } from '../json.types-PrMmLhba.cjs';
|
|
6
6
|
export { EvaluateFormulasOptions, EvaluateFormulasResult, ExtractedFormula, FormulaError, FormulaNode, FormulaValidationError, SchemaValidationResult, collectFormulaNodes, evaluateFormulas, extractSchemaFormulas, validateFormulaAgainstSchema, validateSchemaFormulas } from '../formula/index.cjs';
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { e as JsonPatchReplace, f as JsonPatchRemove, g as JsonPatchAdd, d as JsonPatchMove, h as JsonPatch } from '../json-patch.types-
|
|
3
|
-
import { h as JsonSchemaStore, c as JsonObjectStore, g as JsonSchemaStorePrimitives, p as JsonValueStore, l as JsonObjectValueStore, f as JsonArrayStore, m as JsonArrayValueStore, n as JsonValueStorePrimitives } from '../json-string.store-
|
|
1
|
+
import { j as JsonSchema, g as JsonObjectSchema, f as JsonSchemaPrimitives, c as JsonStringSchema, d as JsonNumberSchema, e as JsonBooleanSchema, h as JsonArraySchema, i as JsonRefSchema } from '../schema.types-On_VGw2m.js';
|
|
2
|
+
import { e as JsonPatchReplace, f as JsonPatchRemove, g as JsonPatchAdd, d as JsonPatchMove, h as JsonPatch } from '../json-patch.types-BpVnp08Z.js';
|
|
3
|
+
import { h as JsonSchemaStore, c as JsonObjectStore, g as JsonSchemaStorePrimitives, p as JsonValueStore, l as JsonObjectValueStore, f as JsonArrayStore, m as JsonArrayValueStore, n as JsonValueStorePrimitives } from '../json-string.store-DfdLcgnM.js';
|
|
4
4
|
export { c as computeValueDiff } from '../computeValueDiff-CDwbNw8F.js';
|
|
5
5
|
import { c as JsonValue, J as JsonObject, b as JsonArray, a as JsonPrimitives } from '../json.types-PrMmLhba.js';
|
|
6
6
|
export { EvaluateFormulasOptions, EvaluateFormulasResult, ExtractedFormula, FormulaError, FormulaNode, FormulaValidationError, SchemaValidationResult, collectFormulaNodes, evaluateFormulas, extractSchemaFormulas, validateFormulaAgainstSchema, validateSchemaFormulas } from '../formula/index.js';
|