@revisium/schema-toolkit 0.16.3 → 0.16.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-PGR2S2BR.js → chunk-7XIWS4W6.js} +54 -42
- package/dist/chunk-7XIWS4W6.js.map +1 -0
- package/dist/{chunk-VGB4YCGF.cjs → chunk-HLGT7PCU.cjs} +54 -42
- package/dist/chunk-HLGT7PCU.cjs.map +1 -0
- package/dist/{chunk-62TO7J76.cjs → chunk-I6ZH7HZ7.cjs} +106 -74
- package/dist/chunk-I6ZH7HZ7.cjs.map +1 -0
- package/dist/{chunk-R66AFTGQ.js → chunk-JHMO5NLL.js} +62 -30
- package/dist/chunk-JHMO5NLL.js.map +1 -0
- package/dist/core/index.cjs +57 -57
- package/dist/core/index.d.cts +13 -2
- package/dist/core/index.d.ts +13 -2
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +95 -95
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/model/index.cjs +39 -39
- package/dist/model/index.d.cts +13 -3
- package/dist/model/index.d.ts +13 -3
- package/dist/model/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-62TO7J76.cjs.map +0 -1
- package/dist/chunk-PGR2S2BR.js.map +0 -1
- package/dist/chunk-R66AFTGQ.js.map +0 -1
- package/dist/chunk-VGB4YCGF.cjs.map +0 -1
package/dist/model/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkI6ZH7HZ7_cjs = require('../chunk-I6ZH7HZ7.cjs');
|
|
4
|
+
var chunkHLGT7PCU_cjs = require('../chunk-HLGT7PCU.cjs');
|
|
5
5
|
require('../chunk-TBFTADML.cjs');
|
|
6
6
|
var chunkB3T6YB2D_cjs = require('../chunk-B3T6YB2D.cjs');
|
|
7
7
|
require('../chunk-ZRNFSUOV.cjs');
|
|
@@ -11,151 +11,151 @@ require('../chunk-J6SCHJKG.cjs');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "ArrayValueNode", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkI6ZH7HZ7_cjs.ArrayValueNode; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "BasePrimitiveValueNode", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkI6ZH7HZ7_cjs.BasePrimitiveValueNode; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "BaseValueNode", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkI6ZH7HZ7_cjs.BaseValueNode; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "BooleanValueNode", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkI6ZH7HZ7_cjs.BooleanValueNode; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "DataModelImpl", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkI6ZH7HZ7_cjs.DataModelImpl; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "ForeignKeyNotFoundError", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkI6ZH7HZ7_cjs.ForeignKeyNotFoundError; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "ForeignKeyResolverImpl", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkI6ZH7HZ7_cjs.ForeignKeyResolverImpl; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "ForeignKeyResolverNotConfiguredError", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkI6ZH7HZ7_cjs.ForeignKeyResolverNotConfiguredError; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "ForeignKeyValueNodeImpl", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkI6ZH7HZ7_cjs.ForeignKeyValueNodeImpl; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "NodeFactory", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkI6ZH7HZ7_cjs.NodeFactory; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "NodeFactoryRegistry", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkI6ZH7HZ7_cjs.NodeFactoryRegistry; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "NumberValueNode", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkI6ZH7HZ7_cjs.NumberValueNode; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "ObjectValueNode", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkI6ZH7HZ7_cjs.ObjectValueNode; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "RowModelImpl", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkI6ZH7HZ7_cjs.RowModelImpl; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "SchemaParser", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkI6ZH7HZ7_cjs.SchemaParser; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "StringValueNode", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkI6ZH7HZ7_cjs.StringValueNode; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "TableModelImpl", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkI6ZH7HZ7_cjs.TableModelImpl; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "ValueNodeFactory", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkI6ZH7HZ7_cjs.NodeFactory2; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "ValueType", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkI6ZH7HZ7_cjs.ValueType; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "createDataModel", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkI6ZH7HZ7_cjs.createDataModel; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "createDefaultRegistry", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkI6ZH7HZ7_cjs.createDefaultRegistry; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "createForeignKeyResolver", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkI6ZH7HZ7_cjs.createForeignKeyResolver; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "createNodeFactory", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkI6ZH7HZ7_cjs.createNodeFactory; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "createSchemaModel", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkI6ZH7HZ7_cjs.createSchemaModel; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "createTableModel", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkI6ZH7HZ7_cjs.createTableModel; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "extractFormulaDefinition", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkI6ZH7HZ7_cjs.extractFormulaDefinition; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "generateDefaultValue", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkI6ZH7HZ7_cjs.generateDefaultValue; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "generateNodeId", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkI6ZH7HZ7_cjs.generateNodeId; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "isForeignKeyValueNode", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkI6ZH7HZ7_cjs.isForeignKeyValueNode; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "resetNodeIdCounter", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkI6ZH7HZ7_cjs.resetNodeIdCounter; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "FormulaChangeDetector", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkHLGT7PCU_cjs.FormulaChangeDetector; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "FormulaDependencyIndex", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkHLGT7PCU_cjs.FormulaDependencyIndex; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "FormulaPath", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkHLGT7PCU_cjs.FormulaPath; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "FormulaPathBuilder", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkHLGT7PCU_cjs.FormulaPathBuilder; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "FormulaSerializer", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkHLGT7PCU_cjs.FormulaSerializer; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "ParsedFormula", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkHLGT7PCU_cjs.ParsedFormula; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "ResolvedDependency", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkHLGT7PCU_cjs.ResolvedDependency; }
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "JsonArrayStore", {
|
|
161
161
|
enumerable: true,
|
package/dist/model/index.d.cts
CHANGED
|
@@ -25,6 +25,10 @@ declare const fromArrayToObject: (_value: unknown, defaultValue: unknown) => unk
|
|
|
25
25
|
declare const getTransformation: (from: JsonSchemaStore, to: JsonSchemaStore) => Transformation | undefined;
|
|
26
26
|
type Transformation = (value: unknown, defaultValue?: unknown) => unknown;
|
|
27
27
|
|
|
28
|
+
type RefSchemas$1 = Record<string, JsonSchema>;
|
|
29
|
+
interface SchemaModelOptions {
|
|
30
|
+
refSchemas?: RefSchemas$1;
|
|
31
|
+
}
|
|
28
32
|
type FieldType = 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
29
33
|
interface ReplaceResult {
|
|
30
34
|
replacedNodeId: string;
|
|
@@ -61,17 +65,19 @@ interface SchemaModel {
|
|
|
61
65
|
revert(): void;
|
|
62
66
|
readonly plainSchema: JsonObjectSchema;
|
|
63
67
|
readonly nodeCount: number;
|
|
68
|
+
readonly refSchemas: RefSchemas$1 | undefined;
|
|
64
69
|
generateDefaultValue(options?: {
|
|
65
70
|
arrayItemCount?: number;
|
|
66
71
|
}): unknown;
|
|
67
72
|
}
|
|
68
73
|
|
|
69
|
-
declare function createSchemaModel(schema: JsonObjectSchema): SchemaModel;
|
|
74
|
+
declare function createSchemaModel(schema: JsonObjectSchema, options?: SchemaModelOptions): SchemaModel;
|
|
70
75
|
|
|
71
76
|
declare class SchemaParser {
|
|
72
77
|
private pendingFormulas;
|
|
73
78
|
private _parseErrors;
|
|
74
|
-
|
|
79
|
+
private _refSchemas;
|
|
80
|
+
parse(schema: JsonObjectSchema, refSchemas?: RefSchemas$1): SchemaNode;
|
|
75
81
|
parseFormulas(tree: SchemaTree): void;
|
|
76
82
|
get parseErrors(): TreeFormulaValidationError[];
|
|
77
83
|
private parseNode;
|
|
@@ -99,9 +105,11 @@ interface TableModelOptions {
|
|
|
99
105
|
schema: JsonObjectSchema;
|
|
100
106
|
rows?: RowData[];
|
|
101
107
|
fkResolver?: ForeignKeyResolver;
|
|
108
|
+
refSchemas?: RefSchemas;
|
|
102
109
|
}
|
|
103
110
|
interface TableModel {
|
|
104
111
|
readonly fk: ForeignKeyResolver | undefined;
|
|
112
|
+
readonly refSchemas: RefSchemas | undefined;
|
|
105
113
|
readonly tableId: string;
|
|
106
114
|
readonly baseTableId: string;
|
|
107
115
|
readonly isRenamed: boolean;
|
|
@@ -337,11 +345,13 @@ declare class TableModelImpl implements TableModel {
|
|
|
337
345
|
private readonly _rows;
|
|
338
346
|
private readonly _jsonSchema;
|
|
339
347
|
private readonly _fkResolver;
|
|
348
|
+
private readonly _refSchemas;
|
|
340
349
|
constructor(options: TableModelOptions);
|
|
341
350
|
get tableId(): string;
|
|
342
351
|
get baseTableId(): string;
|
|
343
352
|
get isRenamed(): boolean;
|
|
344
353
|
get fk(): ForeignKeyResolver | undefined;
|
|
354
|
+
get refSchemas(): RefSchemas | undefined;
|
|
345
355
|
get schema(): SchemaModel;
|
|
346
356
|
get rows(): readonly RowModel[];
|
|
347
357
|
get rowCount(): number;
|
|
@@ -681,4 +691,4 @@ declare class ForeignKeyValueNodeImpl extends StringValueNode implements Foreign
|
|
|
681
691
|
getSchema(): Promise<JsonObjectSchema>;
|
|
682
692
|
}
|
|
683
693
|
|
|
684
|
-
export { type ArrayNodeOptions, ArrayValueNode, type ArrayValueNode$1 as ArrayValueNodeInterface, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, type DataModel, DataModelImpl, type DataModelOptions, type DirtyTrackable, type FieldType, type ForeignKeyLoader, type ForeignKeyLoaderResult, ForeignKeyNotFoundError, type ForeignKeyResolver, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, type ForeignKeyResolverOptions, type ForeignKeyRowLoaderResult, type ForeignKeyValueNode, ForeignKeyValueNodeImpl, FormulaChangeDetector, type FormulaDefinition, FormulaDependency, FormulaDependencyIndex, FormulaPath, FormulaPathBuilder, FormulaSerializer, type FormulaWarning, type GenerateDefaultValueOptions, type IndirectFormulaChange, JsonSchemaStore, NodeFactory$1 as NodeFactory, type NodeFactoryFn, type NodeFactoryOptions, NodeFactoryRegistry, NumberValueNode, type ObjectNodeOptions, ObjectValueNode, type ObjectValueNode$1 as ObjectValueNodeInterface, ParsedFormula, type PrimitiveNodeOptions, type PrimitiveValueNode, type RefSchemas, type ReplaceResult, type RowData, type RowModel, RowModelImpl, type SchemaModel, SchemaParser, StringValueNode, type TableModel, TableModelImpl, type TableModelLike, type TableModelOptions, type ValueNode, NodeFactory as ValueNodeFactory, type ValueNodeOptions, type ValueTreeLike, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createSchemaModel, createTableModel, equal, extractFormulaDefinition, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, generateDefaultValue, generateNodeId, getTransformation, isForeignKeyValueNode, resetNodeIdCounter, toArrayTransformation };
|
|
694
|
+
export { type ArrayNodeOptions, ArrayValueNode, type ArrayValueNode$1 as ArrayValueNodeInterface, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, type DataModel, DataModelImpl, type DataModelOptions, type DirtyTrackable, type FieldType, type ForeignKeyLoader, type ForeignKeyLoaderResult, ForeignKeyNotFoundError, type ForeignKeyResolver, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, type ForeignKeyResolverOptions, type ForeignKeyRowLoaderResult, type ForeignKeyValueNode, ForeignKeyValueNodeImpl, FormulaChangeDetector, type FormulaDefinition, FormulaDependency, FormulaDependencyIndex, FormulaPath, FormulaPathBuilder, FormulaSerializer, type FormulaWarning, type GenerateDefaultValueOptions, type IndirectFormulaChange, JsonSchemaStore, NodeFactory$1 as NodeFactory, type NodeFactoryFn, type NodeFactoryOptions, NodeFactoryRegistry, NumberValueNode, type ObjectNodeOptions, ObjectValueNode, type ObjectValueNode$1 as ObjectValueNodeInterface, ParsedFormula, type PrimitiveNodeOptions, type PrimitiveValueNode, type RefSchemas, type ReplaceResult, type RowData, type RowModel, RowModelImpl, type SchemaModel, type SchemaModelOptions, SchemaParser, StringValueNode, type TableModel, TableModelImpl, type TableModelLike, type TableModelOptions, type ValueNode, NodeFactory as ValueNodeFactory, type ValueNodeOptions, type ValueTreeLike, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createSchemaModel, createTableModel, equal, extractFormulaDefinition, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, generateDefaultValue, generateNodeId, getTransformation, isForeignKeyValueNode, resetNodeIdCounter, toArrayTransformation };
|
package/dist/model/index.d.ts
CHANGED
|
@@ -25,6 +25,10 @@ declare const fromArrayToObject: (_value: unknown, defaultValue: unknown) => unk
|
|
|
25
25
|
declare const getTransformation: (from: JsonSchemaStore, to: JsonSchemaStore) => Transformation | undefined;
|
|
26
26
|
type Transformation = (value: unknown, defaultValue?: unknown) => unknown;
|
|
27
27
|
|
|
28
|
+
type RefSchemas$1 = Record<string, JsonSchema>;
|
|
29
|
+
interface SchemaModelOptions {
|
|
30
|
+
refSchemas?: RefSchemas$1;
|
|
31
|
+
}
|
|
28
32
|
type FieldType = 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
29
33
|
interface ReplaceResult {
|
|
30
34
|
replacedNodeId: string;
|
|
@@ -61,17 +65,19 @@ interface SchemaModel {
|
|
|
61
65
|
revert(): void;
|
|
62
66
|
readonly plainSchema: JsonObjectSchema;
|
|
63
67
|
readonly nodeCount: number;
|
|
68
|
+
readonly refSchemas: RefSchemas$1 | undefined;
|
|
64
69
|
generateDefaultValue(options?: {
|
|
65
70
|
arrayItemCount?: number;
|
|
66
71
|
}): unknown;
|
|
67
72
|
}
|
|
68
73
|
|
|
69
|
-
declare function createSchemaModel(schema: JsonObjectSchema): SchemaModel;
|
|
74
|
+
declare function createSchemaModel(schema: JsonObjectSchema, options?: SchemaModelOptions): SchemaModel;
|
|
70
75
|
|
|
71
76
|
declare class SchemaParser {
|
|
72
77
|
private pendingFormulas;
|
|
73
78
|
private _parseErrors;
|
|
74
|
-
|
|
79
|
+
private _refSchemas;
|
|
80
|
+
parse(schema: JsonObjectSchema, refSchemas?: RefSchemas$1): SchemaNode;
|
|
75
81
|
parseFormulas(tree: SchemaTree): void;
|
|
76
82
|
get parseErrors(): TreeFormulaValidationError[];
|
|
77
83
|
private parseNode;
|
|
@@ -99,9 +105,11 @@ interface TableModelOptions {
|
|
|
99
105
|
schema: JsonObjectSchema;
|
|
100
106
|
rows?: RowData[];
|
|
101
107
|
fkResolver?: ForeignKeyResolver;
|
|
108
|
+
refSchemas?: RefSchemas;
|
|
102
109
|
}
|
|
103
110
|
interface TableModel {
|
|
104
111
|
readonly fk: ForeignKeyResolver | undefined;
|
|
112
|
+
readonly refSchemas: RefSchemas | undefined;
|
|
105
113
|
readonly tableId: string;
|
|
106
114
|
readonly baseTableId: string;
|
|
107
115
|
readonly isRenamed: boolean;
|
|
@@ -337,11 +345,13 @@ declare class TableModelImpl implements TableModel {
|
|
|
337
345
|
private readonly _rows;
|
|
338
346
|
private readonly _jsonSchema;
|
|
339
347
|
private readonly _fkResolver;
|
|
348
|
+
private readonly _refSchemas;
|
|
340
349
|
constructor(options: TableModelOptions);
|
|
341
350
|
get tableId(): string;
|
|
342
351
|
get baseTableId(): string;
|
|
343
352
|
get isRenamed(): boolean;
|
|
344
353
|
get fk(): ForeignKeyResolver | undefined;
|
|
354
|
+
get refSchemas(): RefSchemas | undefined;
|
|
345
355
|
get schema(): SchemaModel;
|
|
346
356
|
get rows(): readonly RowModel[];
|
|
347
357
|
get rowCount(): number;
|
|
@@ -681,4 +691,4 @@ declare class ForeignKeyValueNodeImpl extends StringValueNode implements Foreign
|
|
|
681
691
|
getSchema(): Promise<JsonObjectSchema>;
|
|
682
692
|
}
|
|
683
693
|
|
|
684
|
-
export { type ArrayNodeOptions, ArrayValueNode, type ArrayValueNode$1 as ArrayValueNodeInterface, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, type DataModel, DataModelImpl, type DataModelOptions, type DirtyTrackable, type FieldType, type ForeignKeyLoader, type ForeignKeyLoaderResult, ForeignKeyNotFoundError, type ForeignKeyResolver, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, type ForeignKeyResolverOptions, type ForeignKeyRowLoaderResult, type ForeignKeyValueNode, ForeignKeyValueNodeImpl, FormulaChangeDetector, type FormulaDefinition, FormulaDependency, FormulaDependencyIndex, FormulaPath, FormulaPathBuilder, FormulaSerializer, type FormulaWarning, type GenerateDefaultValueOptions, type IndirectFormulaChange, JsonSchemaStore, NodeFactory$1 as NodeFactory, type NodeFactoryFn, type NodeFactoryOptions, NodeFactoryRegistry, NumberValueNode, type ObjectNodeOptions, ObjectValueNode, type ObjectValueNode$1 as ObjectValueNodeInterface, ParsedFormula, type PrimitiveNodeOptions, type PrimitiveValueNode, type RefSchemas, type ReplaceResult, type RowData, type RowModel, RowModelImpl, type SchemaModel, SchemaParser, StringValueNode, type TableModel, TableModelImpl, type TableModelLike, type TableModelOptions, type ValueNode, NodeFactory as ValueNodeFactory, type ValueNodeOptions, type ValueTreeLike, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createSchemaModel, createTableModel, equal, extractFormulaDefinition, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, generateDefaultValue, generateNodeId, getTransformation, isForeignKeyValueNode, resetNodeIdCounter, toArrayTransformation };
|
|
694
|
+
export { type ArrayNodeOptions, ArrayValueNode, type ArrayValueNode$1 as ArrayValueNodeInterface, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, type DataModel, DataModelImpl, type DataModelOptions, type DirtyTrackable, type FieldType, type ForeignKeyLoader, type ForeignKeyLoaderResult, ForeignKeyNotFoundError, type ForeignKeyResolver, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, type ForeignKeyResolverOptions, type ForeignKeyRowLoaderResult, type ForeignKeyValueNode, ForeignKeyValueNodeImpl, FormulaChangeDetector, type FormulaDefinition, FormulaDependency, FormulaDependencyIndex, FormulaPath, FormulaPathBuilder, FormulaSerializer, type FormulaWarning, type GenerateDefaultValueOptions, type IndirectFormulaChange, JsonSchemaStore, NodeFactory$1 as NodeFactory, type NodeFactoryFn, type NodeFactoryOptions, NodeFactoryRegistry, NumberValueNode, type ObjectNodeOptions, ObjectValueNode, type ObjectValueNode$1 as ObjectValueNodeInterface, ParsedFormula, type PrimitiveNodeOptions, type PrimitiveValueNode, type RefSchemas, type ReplaceResult, type RowData, type RowModel, RowModelImpl, type SchemaModel, type SchemaModelOptions, SchemaParser, StringValueNode, type TableModel, TableModelImpl, type TableModelLike, type TableModelOptions, type ValueNode, NodeFactory as ValueNodeFactory, type ValueNodeOptions, type ValueTreeLike, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createSchemaModel, createTableModel, equal, extractFormulaDefinition, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, generateDefaultValue, generateNodeId, getTransformation, isForeignKeyValueNode, resetNodeIdCounter, toArrayTransformation };
|
package/dist/model/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ArrayValueNode, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, DataModelImpl, ForeignKeyNotFoundError, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, ForeignKeyValueNodeImpl, NodeFactory, NodeFactoryRegistry, NumberValueNode, ObjectValueNode, RowModelImpl, SchemaParser, StringValueNode, TableModelImpl, NodeFactory2 as ValueNodeFactory, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createSchemaModel, createTableModel, extractFormulaDefinition, generateDefaultValue, generateNodeId, isForeignKeyValueNode, resetNodeIdCounter } from '../chunk-
|
|
2
|
-
export { FormulaChangeDetector, FormulaDependencyIndex, FormulaPath, FormulaPathBuilder, FormulaSerializer, ParsedFormula, ResolvedDependency } from '../chunk-
|
|
1
|
+
export { ArrayValueNode, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, DataModelImpl, ForeignKeyNotFoundError, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, ForeignKeyValueNodeImpl, NodeFactory, NodeFactoryRegistry, NumberValueNode, ObjectValueNode, RowModelImpl, SchemaParser, StringValueNode, TableModelImpl, NodeFactory2 as ValueNodeFactory, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createSchemaModel, createTableModel, extractFormulaDefinition, generateDefaultValue, generateNodeId, isForeignKeyValueNode, resetNodeIdCounter } from '../chunk-JHMO5NLL.js';
|
|
2
|
+
export { FormulaChangeDetector, FormulaDependencyIndex, FormulaPath, FormulaPathBuilder, FormulaSerializer, ParsedFormula, ResolvedDependency } from '../chunk-7XIWS4W6.js';
|
|
3
3
|
import '../chunk-3IKI64T2.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-55AMH44G.js';
|
|
5
5
|
import '../chunk-ZBPUTF3Q.js';
|