@revisium/schema-toolkit 0.21.5 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -2
- package/dist/chunk-5G3AVY57.js +1 -0
- package/dist/chunk-5M74TGFQ.cjs +2 -0
- package/dist/{chunk-RXPIMS7W.js → chunk-B3W5BASK.js} +20 -2
- package/dist/{chunk-JLXX3SGF.js → chunk-GAP5KNWN.js} +229 -2
- package/dist/{chunk-XKWWCXGB.js → chunk-HOMXBUQB.js} +143 -20
- package/dist/{chunk-DN2C3T5D.cjs → chunk-JHNATNUI.cjs} +20 -2
- package/dist/{chunk-QKA7DJDN.cjs → chunk-WY3CL7KH.cjs} +143 -19
- package/dist/{chunk-7JWCZZPJ.cjs → chunk-YZEJKK4O.cjs} +236 -0
- package/dist/index.cjs +122 -97
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -3
- package/dist/lib/index.cjs +54 -33
- package/dist/lib/index.d.cts +49 -1
- package/dist/lib/index.d.ts +49 -1
- package/dist/lib/index.js +2 -1
- package/dist/model/index.cjs +46 -46
- package/dist/model/index.d.cts +11 -3
- package/dist/model/index.d.ts +11 -3
- package/dist/model/index.js +1 -1
- package/dist/{typed-DjSH_5Vh.d.cts → typed-C0YM-ar9.d.cts} +6 -0
- package/dist/{typed-KUia-LYN.d.ts → typed-CkirI6bH.d.ts} +6 -0
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/validation-schemas/index.cjs +23 -18
- package/dist/validation-schemas/index.d.cts +3 -1
- package/dist/validation-schemas/index.d.ts +3 -1
- package/dist/validation-schemas/index.js +2 -1
- package/package.json +2 -2
package/dist/model/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h as JsonSchemaStore } from '../json-string.store-DfdLcgnM.js';
|
|
2
2
|
export { A as AddedPropertyEvent, C as ChangeNameEvent, f as JsonArrayStore, m as JsonArrayValueStore, b as JsonBooleanStore, k as JsonBooleanValueStore, a as JsonNumberStore, j as JsonNumberValueStore, c as JsonObjectStore, l as JsonObjectValueStore, g as JsonSchemaStorePrimitives, J as JsonStringStore, i as JsonStringValueStore, p as JsonValueStore, o as JsonValueStoreParent, n as JsonValueStorePrimitives, d as MigrateItemsEvent, M as MigratePropertyEvent, R as RemovedPropertyEvent, e as ReplaceItemsEvent } from '../json-string.store-DfdLcgnM.js';
|
|
3
|
-
import { a3 as RefSchemas, Y as TypeTransformer, E as FieldTypeSpec, _ as TransformResult, Z as TransformContext, M as RowData, H as SchemaModelOptions, B as SchemaModel, C as FieldType, Q as RowModel, S as SchemaPaths, N as NodeAtPath, V as ValueAtPath, I as InferValue, U as RowModelOptions, z as ValueTreeLike, W as TableModelLike, q as ValueNode, d as JsonValuePatch, L as TableModelOptions, K as TableModel, X as ForeignKeyResolver,
|
|
4
|
-
export { v as ArrayNodeOptions, a2 as CompositeTypeName, D as DirtyTrackable, $ as FieldSchemaSpec, w as NodeFactoryFn, n as NodeFactoryRegistry, u as ObjectNodeOptions, t as PrimitiveNodeOptions, a1 as PrimitiveTypeName, G as ReplaceResult, a0 as SimpleFieldType, s as ValueNodeOptions, p as createDefaultRegistry, o as createNodeFactory, m as extractFormulaDefinition } from '../typed-
|
|
3
|
+
import { a3 as RefSchemas, Y as TypeTransformer, E as FieldTypeSpec, _ as TransformResult, Z as TransformContext, M as RowData, H as SchemaModelOptions, B as SchemaModel, C as FieldType, Q as RowModel, g as InferNode, S as SchemaPaths, N as NodeAtPath, V as ValueAtPath, I as InferValue, U as RowModelOptions, z as ValueTreeLike, R as RefSchemas$1, W as TableModelLike, q as ValueNode, d as JsonValuePatch, L as TableModelOptions, K as TableModel, X as ForeignKeyResolver, l as ValueType, a4 as NodeChangeListener, a5 as NodeChangeEvent, O as ObjectValueNode$1, A as ArrayValueNode$1, P as PrimitiveValueNode, r as FormulaWarning, F as FormulaDefinition, y as NodeFactory$1, a6 as ValuePath, a7 as Change, x as NodeFactoryOptions } from '../typed-CkirI6bH.js';
|
|
4
|
+
export { v as ArrayNodeOptions, a2 as CompositeTypeName, D as DirtyTrackable, $ as FieldSchemaSpec, w as NodeFactoryFn, n as NodeFactoryRegistry, u as ObjectNodeOptions, t as PrimitiveNodeOptions, a1 as PrimitiveTypeName, G as ReplaceResult, a0 as SimpleFieldType, s as ValueNodeOptions, p as createDefaultRegistry, o as createNodeFactory, m as extractFormulaDefinition } from '../typed-CkirI6bH.js';
|
|
5
5
|
import { g as JsonObjectSchema, j as JsonSchema } from '../schema.types-On_VGw2m.js';
|
|
6
6
|
import { j as SchemaNode, T as TreeFormulaValidationError, D as Diagnostic, o as Formula, F as FormulaDependency, P as Path } from '../types-C_pTFtSY.js';
|
|
7
7
|
export { R as ResolvedDependency } from '../types-C_pTFtSY.js';
|
|
@@ -112,10 +112,12 @@ declare class NodeFactory {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
interface TypedRowModel<S> extends RowModel {
|
|
115
|
+
readonly root: InferNode<S>;
|
|
115
116
|
get<P extends SchemaPaths<S>>(path: P): NodeAtPath<S, P>;
|
|
116
117
|
getValue<P extends SchemaPaths<S>>(path: P): ValueAtPath<S, P>;
|
|
117
118
|
setValue<P extends SchemaPaths<S>>(path: P, value: ValueAtPath<S, P>): void;
|
|
118
119
|
getPlainValue(): InferValue<S>;
|
|
120
|
+
reset(data?: InferValue<S>): void;
|
|
119
121
|
}
|
|
120
122
|
interface TypedRowModelOptions<S extends JsonSchema> extends Omit<RowModelOptions, 'schema' | 'data'> {
|
|
121
123
|
schema: S;
|
|
@@ -125,11 +127,14 @@ interface TypedRowModelOptions<S extends JsonSchema> extends Omit<RowModelOption
|
|
|
125
127
|
declare class RowModelImpl implements RowModel {
|
|
126
128
|
private readonly _rowId;
|
|
127
129
|
private readonly _tree;
|
|
130
|
+
private readonly _schema;
|
|
131
|
+
private readonly _refSchemas?;
|
|
128
132
|
private _tableModel;
|
|
129
|
-
constructor(_rowId: string, _tree: ValueTreeLike);
|
|
133
|
+
constructor(_rowId: string, _tree: ValueTreeLike, _schema: JsonSchema, _refSchemas?: RefSchemas$1 | undefined);
|
|
130
134
|
get rowId(): string;
|
|
131
135
|
get tableModel(): TableModelLike | null;
|
|
132
136
|
get tree(): ValueTreeLike;
|
|
137
|
+
get root(): ValueNode;
|
|
133
138
|
get index(): number;
|
|
134
139
|
get prev(): RowModel | null;
|
|
135
140
|
get next(): RowModel | null;
|
|
@@ -144,6 +149,7 @@ declare class RowModelImpl implements RowModel {
|
|
|
144
149
|
get patches(): readonly JsonValuePatch[];
|
|
145
150
|
commit(): void;
|
|
146
151
|
revert(): void;
|
|
152
|
+
reset(data?: unknown): void;
|
|
147
153
|
dispose(): void;
|
|
148
154
|
setTableModel(tableModel: TableModelLike | null): void;
|
|
149
155
|
}
|
|
@@ -466,6 +472,8 @@ declare class ArrayValueNode extends BaseValueNode implements ArrayValueNode$1 {
|
|
|
466
472
|
get length(): number;
|
|
467
473
|
getPlainValue(): unknown[];
|
|
468
474
|
at(index: number): ValueNode | undefined;
|
|
475
|
+
find(predicate: (node: ValueNode, index: number) => boolean): ValueNode | undefined;
|
|
476
|
+
findIndex(predicate: (node: ValueNode, index: number) => boolean): number;
|
|
469
477
|
push(node: ValueNode): void;
|
|
470
478
|
insertAt(index: number, node: ValueNode): void;
|
|
471
479
|
removeAt(index: number): void;
|
package/dist/model/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ArrayToItemsTypeTransformer, ArrayValueNode, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, DataModelImpl, DefaultTransformer, ForeignKeyNotFoundError, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, ForeignKeyValueNodeImpl, FormulaChangeDetector, FormulaDependencyIndex, FormulaPath, NodeFactory, NodeFactoryRegistry, NumberValueNode, ObjectToArrayTransformer, ObjectValueNode, ParsedFormula, PrimitiveToArrayTransformer, RefTransformer, RowModelImpl, SchemaParser, StringValueNode, TableModelImpl, TypeTransformChain, NodeFactory2 as ValueNodeFactory, ValueTree, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createRowModel, createSchemaModel, createTableModel, createTypeTransformChain, createTypedTree, extractFormulaDefinition, generateDefaultValue, generateNodeId, isForeignKeyValueNode, resetNodeIdCounter, typedNode } from '../chunk-
|
|
1
|
+
export { ArrayToItemsTypeTransformer, ArrayValueNode, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, DataModelImpl, DefaultTransformer, ForeignKeyNotFoundError, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, ForeignKeyValueNodeImpl, FormulaChangeDetector, FormulaDependencyIndex, FormulaPath, NodeFactory, NodeFactoryRegistry, NumberValueNode, ObjectToArrayTransformer, ObjectValueNode, ParsedFormula, PrimitiveToArrayTransformer, RefTransformer, RowModelImpl, SchemaParser, StringValueNode, TableModelImpl, TypeTransformChain, NodeFactory2 as ValueNodeFactory, ValueTree, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createRowModel, createSchemaModel, createTableModel, createTypeTransformChain, createTypedTree, extractFormulaDefinition, generateDefaultValue, generateNodeId, isForeignKeyValueNode, resetNodeIdCounter, typedNode } from '../chunk-B3W5BASK.js';
|
|
2
2
|
export { FormulaPathBuilder, FormulaSerializer, ResolvedDependency } from '../chunk-2GZ3M3RV.js';
|
|
3
3
|
import '../chunk-IZMBM36H.js';
|
|
4
4
|
export { JsonArrayStore, JsonArrayValueStore, JsonBooleanStore, JsonBooleanValueStore, JsonNumberStore, JsonNumberValueStore, JsonObjectStore, JsonObjectValueStore, JsonStringStore, JsonStringValueStore, equal, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, getTransformation, toArrayTransformation } from '../chunk-FTBRJODD.js';
|
|
@@ -193,6 +193,7 @@ interface RowModel {
|
|
|
193
193
|
readonly rowId: string;
|
|
194
194
|
readonly tableModel: TableModelLike | null;
|
|
195
195
|
readonly tree: ValueTreeLike;
|
|
196
|
+
readonly root: ValueNode;
|
|
196
197
|
readonly index: number;
|
|
197
198
|
readonly prev: RowModel | null;
|
|
198
199
|
readonly next: RowModel | null;
|
|
@@ -207,6 +208,7 @@ interface RowModel {
|
|
|
207
208
|
readonly patches: readonly JsonValuePatch[];
|
|
208
209
|
commit(): void;
|
|
209
210
|
revert(): void;
|
|
211
|
+
reset(data?: unknown): void;
|
|
210
212
|
dispose(): void;
|
|
211
213
|
}
|
|
212
214
|
|
|
@@ -395,6 +397,8 @@ interface ArrayValueNode extends ValueNode, DirtyTrackable {
|
|
|
395
397
|
readonly value: readonly ValueNode[];
|
|
396
398
|
readonly length: number;
|
|
397
399
|
at(index: number): ValueNode | undefined;
|
|
400
|
+
find(predicate: (node: ValueNode, index: number) => boolean): ValueNode | undefined;
|
|
401
|
+
findIndex(predicate: (node: ValueNode, index: number) => boolean): number;
|
|
398
402
|
push(node: ValueNode): void;
|
|
399
403
|
insertAt(index: number, node: ValueNode): void;
|
|
400
404
|
removeAt(index: number): void;
|
|
@@ -467,6 +471,8 @@ interface TypedObjectValueNode<P> extends ObjectValueNode {
|
|
|
467
471
|
}
|
|
468
472
|
interface TypedArrayValueNode<I> extends ArrayValueNode {
|
|
469
473
|
at(index: number): InferNode<I> | undefined;
|
|
474
|
+
find(predicate: (node: InferNode<I>, index: number) => boolean): InferNode<I> | undefined;
|
|
475
|
+
findIndex(predicate: (node: InferNode<I>, index: number) => boolean): number;
|
|
470
476
|
getPlainValue(): InferValue<I>[];
|
|
471
477
|
setValue(value: InferValue<I>[], options?: {
|
|
472
478
|
internal?: boolean;
|
|
@@ -193,6 +193,7 @@ interface RowModel {
|
|
|
193
193
|
readonly rowId: string;
|
|
194
194
|
readonly tableModel: TableModelLike | null;
|
|
195
195
|
readonly tree: ValueTreeLike;
|
|
196
|
+
readonly root: ValueNode;
|
|
196
197
|
readonly index: number;
|
|
197
198
|
readonly prev: RowModel | null;
|
|
198
199
|
readonly next: RowModel | null;
|
|
@@ -207,6 +208,7 @@ interface RowModel {
|
|
|
207
208
|
readonly patches: readonly JsonValuePatch[];
|
|
208
209
|
commit(): void;
|
|
209
210
|
revert(): void;
|
|
211
|
+
reset(data?: unknown): void;
|
|
210
212
|
dispose(): void;
|
|
211
213
|
}
|
|
212
214
|
|
|
@@ -395,6 +397,8 @@ interface ArrayValueNode extends ValueNode, DirtyTrackable {
|
|
|
395
397
|
readonly value: readonly ValueNode[];
|
|
396
398
|
readonly length: number;
|
|
397
399
|
at(index: number): ValueNode | undefined;
|
|
400
|
+
find(predicate: (node: ValueNode, index: number) => boolean): ValueNode | undefined;
|
|
401
|
+
findIndex(predicate: (node: ValueNode, index: number) => boolean): number;
|
|
398
402
|
push(node: ValueNode): void;
|
|
399
403
|
insertAt(index: number, node: ValueNode): void;
|
|
400
404
|
removeAt(index: number): void;
|
|
@@ -467,6 +471,8 @@ interface TypedObjectValueNode<P> extends ObjectValueNode {
|
|
|
467
471
|
}
|
|
468
472
|
interface TypedArrayValueNode<I> extends ArrayValueNode {
|
|
469
473
|
at(index: number): InferNode<I> | undefined;
|
|
474
|
+
find(predicate: (node: InferNode<I>, index: number) => boolean): InferNode<I> | undefined;
|
|
475
|
+
findIndex(predicate: (node: InferNode<I>, index: number) => boolean): number;
|
|
470
476
|
getPlainValue(): InferValue<I>[];
|
|
471
477
|
setValue(value: InferValue<I>[], options?: {
|
|
472
478
|
internal?: boolean;
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { b as JsonArray, J as JsonObject, a as JsonPrimitives, c as JsonValue } from '../json.types-PrMmLhba.cjs';
|
|
2
2
|
import { h as JsonPatch } from '../json-patch.types-eM6pYC2P.cjs';
|
|
3
3
|
export { g as JsonPatchAdd, c as JsonPatchAddOperation, d as JsonPatchMove, J as JsonPatchMoveOperation, f as JsonPatchRemove, b as JsonPatchRemoveOperation, e as JsonPatchReplace, a as JsonPatchReplaceOperation } from '../json-patch.types-eM6pYC2P.cjs';
|
|
4
|
-
export { g as InferNode, I as InferValue, d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace, N as NodeAtPath, j as NodeFromValue, h as SchemaAtPath, i as SchemaFromValue, S as SchemaPaths, f as TypedArrayValueNode, e as TypedObjectValueNode, T as TypedPrimitiveValueNode, V as ValueAtPath, k as ValuePaths } from '../typed-
|
|
4
|
+
export { g as InferNode, I as InferValue, d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace, N as NodeAtPath, j as NodeFromValue, h as SchemaAtPath, i as SchemaFromValue, S as SchemaPaths, f as TypedArrayValueNode, e as TypedObjectValueNode, T as TypedPrimitiveValueNode, V as ValueAtPath, k as ValuePaths } from '../typed-C0YM-ar9.cjs';
|
|
5
5
|
import { j as JsonSchema } from '../schema.types-On_VGw2m.cjs';
|
|
6
6
|
export { C as ContentMediaType, h as JsonArraySchema, e as JsonBooleanSchema, d as JsonNumberSchema, g as JsonObjectSchema, i as JsonRefSchema, f as JsonSchemaPrimitives, b as JsonSchemaSharedFields, a as JsonSchemaType, J as JsonSchemaTypeName, k as JsonSchemaWithoutRef, c as JsonStringSchema, X as XFormula } from '../schema.types-On_VGw2m.cjs';
|
|
7
7
|
export { a as FieldChange, F as FieldChangeType } from '../types-C_GxaUve.cjs';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { b as JsonArray, J as JsonObject, a as JsonPrimitives, c as JsonValue } from '../json.types-PrMmLhba.js';
|
|
2
2
|
import { h as JsonPatch } from '../json-patch.types-BpVnp08Z.js';
|
|
3
3
|
export { g as JsonPatchAdd, c as JsonPatchAddOperation, d as JsonPatchMove, J as JsonPatchMoveOperation, f as JsonPatchRemove, b as JsonPatchRemoveOperation, e as JsonPatchReplace, a as JsonPatchReplaceOperation } from '../json-patch.types-BpVnp08Z.js';
|
|
4
|
-
export { g as InferNode, I as InferValue, d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace, N as NodeAtPath, j as NodeFromValue, h as SchemaAtPath, i as SchemaFromValue, S as SchemaPaths, f as TypedArrayValueNode, e as TypedObjectValueNode, T as TypedPrimitiveValueNode, V as ValueAtPath, k as ValuePaths } from '../typed-
|
|
4
|
+
export { g as InferNode, I as InferValue, d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace, N as NodeAtPath, j as NodeFromValue, h as SchemaAtPath, i as SchemaFromValue, S as SchemaPaths, f as TypedArrayValueNode, e as TypedObjectValueNode, T as TypedPrimitiveValueNode, V as ValueAtPath, k as ValuePaths } from '../typed-CkirI6bH.js';
|
|
5
5
|
import { j as JsonSchema } from '../schema.types-On_VGw2m.js';
|
|
6
6
|
export { C as ContentMediaType, h as JsonArraySchema, e as JsonBooleanSchema, d as JsonNumberSchema, g as JsonObjectSchema, i as JsonRefSchema, f as JsonSchemaPrimitives, b as JsonSchemaSharedFields, a as JsonSchemaType, J as JsonSchemaTypeName, k as JsonSchemaWithoutRef, c as JsonStringSchema, X as XFormula } from '../schema.types-On_VGw2m.js';
|
|
7
7
|
export { a as FieldChange, F as FieldChangeType } from '../types-C_GxaUve.js';
|
|
@@ -1,74 +1,79 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
require('../chunk-5M74TGFQ.cjs');
|
|
4
|
+
var chunkWY3CL7KH_cjs = require('../chunk-WY3CL7KH.cjs');
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
Object.defineProperty(exports, "arrayMetaSchema", {
|
|
8
9
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkWY3CL7KH_cjs.arrayMetaSchema; }
|
|
10
11
|
});
|
|
11
12
|
Object.defineProperty(exports, "baseStringFields", {
|
|
12
13
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkWY3CL7KH_cjs.baseStringFields; }
|
|
14
15
|
});
|
|
15
16
|
Object.defineProperty(exports, "booleanMetaSchema", {
|
|
16
17
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkWY3CL7KH_cjs.booleanMetaSchema; }
|
|
18
19
|
});
|
|
19
20
|
Object.defineProperty(exports, "foreignKeyExcludesFormula", {
|
|
20
21
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkWY3CL7KH_cjs.foreignKeyExcludesFormula; }
|
|
22
23
|
});
|
|
23
24
|
Object.defineProperty(exports, "historyPatchesSchema", {
|
|
24
25
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkWY3CL7KH_cjs.historyPatchesSchema; }
|
|
26
27
|
});
|
|
27
28
|
Object.defineProperty(exports, "jsonPatchSchema", {
|
|
28
29
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkWY3CL7KH_cjs.jsonPatchSchema; }
|
|
30
31
|
});
|
|
31
32
|
Object.defineProperty(exports, "metaSchema", {
|
|
32
33
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkWY3CL7KH_cjs.metaSchema; }
|
|
34
35
|
});
|
|
35
36
|
Object.defineProperty(exports, "noForeignKeyStringMetaSchema", {
|
|
36
37
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkWY3CL7KH_cjs.noForeignKeyStringMetaSchema; }
|
|
38
39
|
});
|
|
39
40
|
Object.defineProperty(exports, "notForeignKeyMetaSchema", {
|
|
40
41
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkWY3CL7KH_cjs.notForeignKeyMetaSchema; }
|
|
42
43
|
});
|
|
43
44
|
Object.defineProperty(exports, "numberMetaSchema", {
|
|
44
45
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkWY3CL7KH_cjs.numberMetaSchema; }
|
|
46
47
|
});
|
|
47
48
|
Object.defineProperty(exports, "objectMetaSchema", {
|
|
48
49
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkWY3CL7KH_cjs.objectMetaSchema; }
|
|
50
51
|
});
|
|
51
52
|
Object.defineProperty(exports, "refMetaSchema", {
|
|
52
53
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkWY3CL7KH_cjs.refMetaSchema; }
|
|
54
55
|
});
|
|
55
56
|
Object.defineProperty(exports, "sharedFields", {
|
|
56
57
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkWY3CL7KH_cjs.sharedFields; }
|
|
58
59
|
});
|
|
59
60
|
Object.defineProperty(exports, "stringMetaSchema", {
|
|
60
61
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkWY3CL7KH_cjs.stringMetaSchema; }
|
|
62
63
|
});
|
|
63
64
|
Object.defineProperty(exports, "tableMigrationsSchema", {
|
|
64
65
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkWY3CL7KH_cjs.tableMigrationsSchema; }
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "tableViewsSchema", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function () { return chunkWY3CL7KH_cjs.tableViewsSchema; }
|
|
66
71
|
});
|
|
67
72
|
Object.defineProperty(exports, "xFormulaRequiresReadOnly", {
|
|
68
73
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkWY3CL7KH_cjs.xFormulaRequiresReadOnly; }
|
|
70
75
|
});
|
|
71
76
|
Object.defineProperty(exports, "xFormulaSchema", {
|
|
72
77
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkWY3CL7KH_cjs.xFormulaSchema; }
|
|
74
79
|
});
|
|
@@ -20,6 +20,8 @@ declare const historyPatchesSchema: Schema;
|
|
|
20
20
|
|
|
21
21
|
declare const tableMigrationsSchema: Schema;
|
|
22
22
|
|
|
23
|
+
declare const tableViewsSchema: Schema;
|
|
24
|
+
|
|
23
25
|
declare const sharedFields: {
|
|
24
26
|
deprecated: {
|
|
25
27
|
type: string;
|
|
@@ -32,4 +34,4 @@ declare const sharedFields: {
|
|
|
32
34
|
};
|
|
33
35
|
};
|
|
34
36
|
|
|
35
|
-
export { arrayMetaSchema, baseStringFields, booleanMetaSchema, foreignKeyExcludesFormula, historyPatchesSchema, jsonPatchSchema, metaSchema, noForeignKeyStringMetaSchema, notForeignKeyMetaSchema, numberMetaSchema, objectMetaSchema, refMetaSchema, sharedFields, stringMetaSchema, tableMigrationsSchema, xFormulaRequiresReadOnly, xFormulaSchema };
|
|
37
|
+
export { arrayMetaSchema, baseStringFields, booleanMetaSchema, foreignKeyExcludesFormula, historyPatchesSchema, jsonPatchSchema, metaSchema, noForeignKeyStringMetaSchema, notForeignKeyMetaSchema, numberMetaSchema, objectMetaSchema, refMetaSchema, sharedFields, stringMetaSchema, tableMigrationsSchema, tableViewsSchema, xFormulaRequiresReadOnly, xFormulaSchema };
|
|
@@ -20,6 +20,8 @@ declare const historyPatchesSchema: Schema;
|
|
|
20
20
|
|
|
21
21
|
declare const tableMigrationsSchema: Schema;
|
|
22
22
|
|
|
23
|
+
declare const tableViewsSchema: Schema;
|
|
24
|
+
|
|
23
25
|
declare const sharedFields: {
|
|
24
26
|
deprecated: {
|
|
25
27
|
type: string;
|
|
@@ -32,4 +34,4 @@ declare const sharedFields: {
|
|
|
32
34
|
};
|
|
33
35
|
};
|
|
34
36
|
|
|
35
|
-
export { arrayMetaSchema, baseStringFields, booleanMetaSchema, foreignKeyExcludesFormula, historyPatchesSchema, jsonPatchSchema, metaSchema, noForeignKeyStringMetaSchema, notForeignKeyMetaSchema, numberMetaSchema, objectMetaSchema, refMetaSchema, sharedFields, stringMetaSchema, tableMigrationsSchema, xFormulaRequiresReadOnly, xFormulaSchema };
|
|
37
|
+
export { arrayMetaSchema, baseStringFields, booleanMetaSchema, foreignKeyExcludesFormula, historyPatchesSchema, jsonPatchSchema, metaSchema, noForeignKeyStringMetaSchema, notForeignKeyMetaSchema, numberMetaSchema, objectMetaSchema, refMetaSchema, sharedFields, stringMetaSchema, tableMigrationsSchema, tableViewsSchema, xFormulaRequiresReadOnly, xFormulaSchema };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import '../chunk-5G3AVY57.js';
|
|
2
|
+
export { arrayMetaSchema, baseStringFields, booleanMetaSchema, foreignKeyExcludesFormula, historyPatchesSchema, jsonPatchSchema, metaSchema, noForeignKeyStringMetaSchema, notForeignKeyMetaSchema, numberMetaSchema, objectMetaSchema, refMetaSchema, sharedFields, stringMetaSchema, tableMigrationsSchema, tableViewsSchema, xFormulaRequiresReadOnly, xFormulaSchema } from '../chunk-HOMXBUQB.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revisium/schema-toolkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Universal schema toolkit with TypeScript types and utilities for JSON Schema manipulation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"json-schema",
|
|
@@ -172,7 +172,6 @@
|
|
|
172
172
|
"@jest/globals": "^29.7.0",
|
|
173
173
|
"@types/jest": "^29.5.14",
|
|
174
174
|
"@types/node": "^24.10.7",
|
|
175
|
-
"ajv": "^8.17.1",
|
|
176
175
|
"ajv-formats": "^3.0.1",
|
|
177
176
|
"eslint": "^9.15.0",
|
|
178
177
|
"globals": "^15.12.0",
|
|
@@ -187,6 +186,7 @@
|
|
|
187
186
|
},
|
|
188
187
|
"dependencies": {
|
|
189
188
|
"@revisium/formula": "^0.10.0",
|
|
189
|
+
"ajv": "^8.18.0",
|
|
190
190
|
"eventemitter3": "^5.0.4",
|
|
191
191
|
"nanoid": "^3.3.7"
|
|
192
192
|
},
|