@revisium/schema-toolkit 0.19.1 → 0.19.3
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/{types-EHdxfQpd.d.cts → FormulaPathBuilder-8gmUFlgu.d.cts} +27 -2
- package/dist/{types-Dw9ba_YE.d.ts → FormulaPathBuilder-B6RyUFN7.d.ts} +27 -2
- package/dist/chunk-3FJZMVWA.js +3 -0
- package/dist/{chunk-Y2GYABV7.js.map → chunk-3FJZMVWA.js.map} +1 -1
- package/dist/{chunk-MKDGOOBV.cjs → chunk-CN74KAMA.cjs} +373 -66
- package/dist/chunk-CN74KAMA.cjs.map +1 -0
- package/dist/{chunk-R6VYCHY2.js → chunk-K7XZT2M4.js} +49 -310
- package/dist/chunk-K7XZT2M4.js.map +1 -0
- package/dist/chunk-L6HE7QPU.cjs +4 -0
- package/dist/{chunk-MLNKM67U.cjs.map → chunk-L6HE7QPU.cjs.map} +1 -1
- package/dist/{chunk-45UZ3CJN.js → chunk-T2JUOWMX.js} +313 -10
- package/dist/chunk-T2JUOWMX.js.map +1 -0
- package/dist/{chunk-U7N3EEQX.cjs → chunk-X2KLCGJ6.cjs} +51 -315
- package/dist/chunk-X2KLCGJ6.cjs.map +1 -0
- package/dist/core/index.cjs +70 -58
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +2 -2
- package/dist/index.cjs +115 -115
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/model/index.cjs +58 -58
- package/dist/model/index.d.cts +4 -28
- package/dist/model/index.d.ts +4 -28
- package/dist/model/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-45UZ3CJN.js.map +0 -1
- package/dist/chunk-MKDGOOBV.cjs.map +0 -1
- package/dist/chunk-MLNKM67U.cjs +0 -4
- package/dist/chunk-R6VYCHY2.js.map +0 -1
- package/dist/chunk-U7N3EEQX.cjs.map +0 -1
- package/dist/chunk-Y2GYABV7.js +0 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ASTNode } from '@revisium/formula';
|
|
2
1
|
import { h as JsonPatch } from './json-patch.types-Cu0Medki.cjs';
|
|
2
|
+
import { ASTNode } from '@revisium/formula';
|
|
3
|
+
import { X as XFormula } from './schema.types-B5OgKLpV.cjs';
|
|
3
4
|
|
|
4
5
|
interface FormulaDependency {
|
|
5
6
|
targetNodeId(): string;
|
|
@@ -172,4 +173,28 @@ interface ValidatorRule {
|
|
|
172
173
|
}
|
|
173
174
|
type ValidatorFactoryFn = () => Validator;
|
|
174
175
|
|
|
175
|
-
|
|
176
|
+
interface SerializeOptions {
|
|
177
|
+
readonly strict?: boolean;
|
|
178
|
+
}
|
|
179
|
+
declare class FormulaSerializer {
|
|
180
|
+
private readonly tree;
|
|
181
|
+
private readonly formulaNodeId;
|
|
182
|
+
private readonly formula;
|
|
183
|
+
private readonly pathBuilder;
|
|
184
|
+
constructor(tree: SchemaTree, formulaNodeId: string, formula: Formula$1);
|
|
185
|
+
static toXFormula(tree: SchemaTree, formulaNodeId: string, formula: Formula$1): XFormula;
|
|
186
|
+
static serializeExpression(tree: SchemaTree, formulaNodeId: string, formula: Formula$1, options?: SerializeOptions): string;
|
|
187
|
+
serialize(options?: SerializeOptions): string;
|
|
188
|
+
private buildPathReplacements;
|
|
189
|
+
private needsReplacement;
|
|
190
|
+
private normalizeArrayNotation;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
declare class FormulaPathBuilder {
|
|
194
|
+
buildWithArrayNotation(fromPath: Path, toPath: Path): string;
|
|
195
|
+
private findCommonPrefixLength;
|
|
196
|
+
private buildPartsWithArrayNotation;
|
|
197
|
+
private formatPartsWithArrayNotation;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export { type Diagnostic as D, EMPTY_METADATA as E, type FormulaDependency as F, type NodeType as N, type Path as P, ResolvedDependency as R, type SchemaLike as S, type TreeFormulaValidationError as T, type ValidationContext as V, FormulaSerializer as a, FormulaPathBuilder as b, type PathSegment as c, type DiagnosticSeverity as d, type Validator as e, type ValidatorRule as f, type ValidatorFactoryFn as g, type SchemaValidationError as h, type SchemaValidationErrorType as i, type NodeMetadata as j, type Formula as k, type SchemaNode as l, type SchemaTree as m, type SchemaPatch as n, type DefaultValueType as o, type PropertyChange as p, type PropertyName as q, type Formula$1 as r };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ASTNode } from '@revisium/formula';
|
|
2
1
|
import { h as JsonPatch } from './json-patch.types-DY7k9hxy.js';
|
|
2
|
+
import { ASTNode } from '@revisium/formula';
|
|
3
|
+
import { X as XFormula } from './schema.types-B5OgKLpV.js';
|
|
3
4
|
|
|
4
5
|
interface FormulaDependency {
|
|
5
6
|
targetNodeId(): string;
|
|
@@ -172,4 +173,28 @@ interface ValidatorRule {
|
|
|
172
173
|
}
|
|
173
174
|
type ValidatorFactoryFn = () => Validator;
|
|
174
175
|
|
|
175
|
-
|
|
176
|
+
interface SerializeOptions {
|
|
177
|
+
readonly strict?: boolean;
|
|
178
|
+
}
|
|
179
|
+
declare class FormulaSerializer {
|
|
180
|
+
private readonly tree;
|
|
181
|
+
private readonly formulaNodeId;
|
|
182
|
+
private readonly formula;
|
|
183
|
+
private readonly pathBuilder;
|
|
184
|
+
constructor(tree: SchemaTree, formulaNodeId: string, formula: Formula$1);
|
|
185
|
+
static toXFormula(tree: SchemaTree, formulaNodeId: string, formula: Formula$1): XFormula;
|
|
186
|
+
static serializeExpression(tree: SchemaTree, formulaNodeId: string, formula: Formula$1, options?: SerializeOptions): string;
|
|
187
|
+
serialize(options?: SerializeOptions): string;
|
|
188
|
+
private buildPathReplacements;
|
|
189
|
+
private needsReplacement;
|
|
190
|
+
private normalizeArrayNotation;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
declare class FormulaPathBuilder {
|
|
194
|
+
buildWithArrayNotation(fromPath: Path, toPath: Path): string;
|
|
195
|
+
private findCommonPrefixLength;
|
|
196
|
+
private buildPartsWithArrayNotation;
|
|
197
|
+
private formatPartsWithArrayNotation;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export { type Diagnostic as D, EMPTY_METADATA as E, type FormulaDependency as F, type NodeType as N, type Path as P, ResolvedDependency as R, type SchemaLike as S, type TreeFormulaValidationError as T, type ValidationContext as V, FormulaSerializer as a, FormulaPathBuilder as b, type PathSegment as c, type DiagnosticSeverity as d, type Validator as e, type ValidatorRule as f, type ValidatorFactoryFn as g, type SchemaValidationError as h, type SchemaValidationErrorType as i, type NodeMetadata as j, type Formula as k, type SchemaNode as l, type SchemaTree as m, type SchemaPatch as n, type DefaultValueType as o, type PropertyChange as p, type PropertyName as q, type Formula$1 as r };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-3FJZMVWA.js"}
|