@shaclmate/compiler 2.0.12 → 2.0.14
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/Compiler.d.ts +15 -0
- package/Compiler.js +20 -0
- package/ShapesGraphToAstTransformer.d.ts +18 -23
- package/ShapesGraphToAstTransformer.js +21 -447
- package/_ShapesGraphToAstTransformer/NodeShapeAstType.d.ts +3 -0
- package/_ShapesGraphToAstTransformer/NodeShapeAstType.js +2 -0
- package/_ShapesGraphToAstTransformer/index.d.ts +10 -0
- package/_ShapesGraphToAstTransformer/index.js +10 -0
- package/_ShapesGraphToAstTransformer/pickLiteral.d.ts +4 -0
- package/_ShapesGraphToAstTransformer/pickLiteral.js +18 -0
- package/_ShapesGraphToAstTransformer/propertyShapeNodeKinds.d.ts +4 -0
- package/_ShapesGraphToAstTransformer/propertyShapeNodeKinds.js +26 -0
- package/_ShapesGraphToAstTransformer/shapeAstName.d.ts +5 -0
- package/_ShapesGraphToAstTransformer/shapeAstName.js +28 -0
- package/_ShapesGraphToAstTransformer/transformNodeShapeToAstType.d.ts +6 -0
- package/_ShapesGraphToAstTransformer/transformNodeShapeToAstType.js +165 -0
- package/_ShapesGraphToAstTransformer/transformPropertyShapeToAstCompositeType.d.ts +13 -0
- package/_ShapesGraphToAstTransformer/transformPropertyShapeToAstCompositeType.js +198 -0
- package/_ShapesGraphToAstTransformer/transformPropertyShapeToAstIdentifierType.d.ts +12 -0
- package/_ShapesGraphToAstTransformer/transformPropertyShapeToAstIdentifierType.js +29 -0
- package/_ShapesGraphToAstTransformer/transformPropertyShapeToAstLiteralType.d.ts +12 -0
- package/_ShapesGraphToAstTransformer/transformPropertyShapeToAstLiteralType.js +43 -0
- package/_ShapesGraphToAstTransformer/transformPropertyShapeToAstObjectTypeProperty.d.ts +6 -0
- package/_ShapesGraphToAstTransformer/transformPropertyShapeToAstObjectTypeProperty.js +31 -0
- package/_ShapesGraphToAstTransformer/transformPropertyShapeToAstTermType.d.ts +14 -0
- package/_ShapesGraphToAstTransformer/transformPropertyShapeToAstTermType.js +21 -0
- package/_ShapesGraphToAstTransformer/transformPropertyShapeToAstType.d.ts +16 -0
- package/_ShapesGraphToAstTransformer/transformPropertyShapeToAstType.js +58 -0
- package/ast/Ast.d.ts +5 -0
- package/ast/CompositeType.d.ts +13 -0
- package/ast/CompositeType.js +2 -0
- package/ast/IdentifierType.d.ts +3 -6
- package/ast/IntersectionType.d.ts +2 -2
- package/ast/ListType.d.ts +53 -0
- package/ast/ListType.js +2 -0
- package/ast/LiteralType.d.ts +4 -3
- package/ast/Name.d.ts +1 -0
- package/ast/ObjectCompositeType.d.ts +22 -0
- package/ast/ObjectCompositeType.js +2 -0
- package/ast/ObjectIntersectionType.d.ts +8 -0
- package/ast/ObjectIntersectionType.js +2 -0
- package/ast/ObjectType.d.ts +92 -20
- package/ast/ObjectType.js +26 -1
- package/ast/ObjectUnionType.d.ts +19 -0
- package/ast/ObjectUnionType.js +2 -0
- package/ast/PlaceholderType.d.ts +7 -0
- package/ast/PlaceholderType.js +2 -0
- package/ast/SetType.d.ts +1 -1
- package/ast/TermType.d.ts +11 -0
- package/ast/TermType.js +2 -0
- package/ast/Type.d.ts +11 -3
- package/ast/UnionType.d.ts +3 -3
- package/ast/index.d.ts +6 -3
- package/ast/index.js +6 -3
- package/enums/MintingStrategy.d.ts +5 -0
- package/enums/MintingStrategy.js +2 -0
- package/enums/PropertyVisibility.d.ts +2 -0
- package/enums/PropertyVisibility.js +2 -0
- package/enums/TsFeature.d.ts +5 -0
- package/enums/TsFeature.js +16 -0
- package/enums/TsObjectDeclarationType.d.ts +5 -0
- package/enums/TsObjectDeclarationType.js +2 -0
- package/enums/index.d.ts +5 -0
- package/enums/index.js +5 -0
- package/generators/Generator.d.ts +5 -0
- package/generators/Generator.js +2 -0
- package/generators/index.d.ts +2 -2
- package/generators/index.js +2 -2
- package/generators/json/AstJsonGenerator.d.ts +4 -5
- package/generators/json/AstJsonGenerator.js +31 -22
- package/generators/ts/BooleanType.d.ts +7 -3
- package/generators/ts/BooleanType.js +58 -4
- package/generators/ts/DateTimeType.d.ts +17 -0
- package/generators/ts/DateTimeType.js +58 -0
- package/generators/ts/DeclaredType.d.ts +17 -0
- package/generators/ts/DeclaredType.js +10 -0
- package/generators/ts/IdentifierType.d.ts +7 -17
- package/generators/ts/IdentifierType.js +69 -60
- package/generators/ts/Import.d.ts +18 -0
- package/generators/ts/Import.js +59 -0
- package/generators/ts/ListType.d.ts +18 -8
- package/generators/ts/ListType.js +197 -43
- package/generators/ts/LiteralType.d.ts +13 -11
- package/generators/ts/LiteralType.js +36 -51
- package/generators/ts/NumberType.d.ts +7 -3
- package/generators/ts/NumberType.js +55 -4
- package/generators/ts/ObjectType.d.ts +47 -25
- package/generators/ts/ObjectType.js +222 -49
- package/generators/ts/ObjectUnionType.d.ts +58 -0
- package/generators/ts/ObjectUnionType.js +481 -0
- package/generators/ts/OptionType.d.ts +12 -4
- package/generators/ts/OptionType.js +65 -16
- package/generators/ts/PrimitiveType.d.ts +15 -5
- package/generators/ts/PrimitiveType.js +20 -29
- package/generators/ts/SetType.d.ts +12 -4
- package/generators/ts/SetType.js +103 -29
- package/generators/ts/StringType.d.ts +8 -3
- package/generators/ts/StringType.js +57 -3
- package/generators/ts/TermType.d.ts +52 -0
- package/generators/ts/TermType.js +234 -0
- package/generators/ts/TsGenerator.d.ts +4 -12
- package/generators/ts/TsGenerator.js +44 -100
- package/generators/ts/Type.d.ts +107 -46
- package/generators/ts/Type.js +78 -61
- package/generators/ts/TypeFactory.d.ts +4 -5
- package/generators/ts/TypeFactory.js +212 -89
- package/generators/ts/UnionType.d.ts +19 -6
- package/generators/ts/UnionType.js +230 -120
- package/generators/ts/_ObjectType/IdentifierProperty.d.ts +27 -7
- package/generators/ts/_ObjectType/IdentifierProperty.js +143 -31
- package/generators/ts/_ObjectType/Property.d.ts +125 -9
- package/generators/ts/_ObjectType/Property.js +25 -3
- package/generators/ts/_ObjectType/ShaclProperty.d.ts +23 -5
- package/generators/ts/_ObjectType/ShaclProperty.js +100 -26
- package/generators/ts/_ObjectType/TypeDiscriminatorProperty.d.ts +24 -6
- package/generators/ts/_ObjectType/TypeDiscriminatorProperty.js +75 -13
- package/generators/ts/_ObjectType/classDeclaration.d.ts +2 -1
- package/generators/ts/_ObjectType/classDeclaration.js +79 -111
- package/generators/ts/_ObjectType/createFunctionDeclaration.d.ts +5 -0
- package/generators/ts/_ObjectType/createFunctionDeclaration.js +60 -0
- package/generators/ts/_ObjectType/equalsFunctionDeclaration.d.ts +2 -1
- package/generators/ts/_ObjectType/equalsFunctionDeclaration.js +12 -20
- package/generators/ts/_ObjectType/equalsFunctionOrMethodDeclaration.d.ts +11 -0
- package/generators/ts/_ObjectType/equalsFunctionOrMethodDeclaration.js +70 -0
- package/generators/ts/_ObjectType/fromJsonFunctionDeclarations.d.ts +4 -0
- package/generators/ts/_ObjectType/fromJsonFunctionDeclarations.js +78 -0
- package/generators/ts/_ObjectType/fromRdfFunctionDeclarations.d.ts +4 -0
- package/generators/ts/_ObjectType/fromRdfFunctionDeclarations.js +91 -0
- package/generators/ts/_ObjectType/hashFunctionDeclaration.d.ts +3 -3
- package/generators/ts/_ObjectType/hashFunctionDeclaration.js +11 -55
- package/generators/ts/_ObjectType/hashFunctionOrMethodDeclaration.d.ts +11 -0
- package/generators/ts/_ObjectType/hashFunctionOrMethodDeclaration.js +64 -0
- package/generators/ts/_ObjectType/index.d.ts +8 -2
- package/generators/ts/_ObjectType/index.js +8 -2
- package/generators/ts/_ObjectType/interfaceDeclaration.d.ts +3 -2
- package/generators/ts/_ObjectType/interfaceDeclaration.js +11 -2
- package/generators/ts/_ObjectType/jsonSchemaFunctionDeclaration.d.ts +5 -0
- package/generators/ts/_ObjectType/jsonSchemaFunctionDeclaration.js +19 -0
- package/generators/ts/_ObjectType/jsonUiSchemaFunctionDeclaration.d.ts +5 -0
- package/generators/ts/_ObjectType/jsonUiSchemaFunctionDeclaration.js +31 -0
- package/generators/ts/_ObjectType/jsonZodSchemaFunctionDeclaration.d.ts +5 -0
- package/generators/ts/_ObjectType/jsonZodSchemaFunctionDeclaration.js +37 -0
- package/generators/ts/_ObjectType/rdfjsTermExpression.d.ts +6 -0
- package/generators/ts/{rdfjsTermExpression.js → _ObjectType/rdfjsTermExpression.js} +3 -1
- package/generators/ts/_ObjectType/sparqlFunctionDeclarations.d.ts +4 -0
- package/generators/ts/_ObjectType/sparqlFunctionDeclarations.js +101 -0
- package/generators/ts/_ObjectType/toJsonFunctionDeclaration.d.ts +5 -0
- package/generators/ts/_ObjectType/toJsonFunctionDeclaration.js +19 -0
- package/generators/ts/_ObjectType/toJsonFunctionOrMethodDeclaration.d.ts +10 -0
- package/generators/ts/_ObjectType/toJsonFunctionOrMethodDeclaration.js +59 -0
- package/generators/ts/_ObjectType/toJsonReturnType.d.ts +3 -0
- package/generators/ts/_ObjectType/toJsonReturnType.js +19 -0
- package/generators/ts/_ObjectType/toRdfFunctionDeclaration.d.ts +3 -2
- package/generators/ts/_ObjectType/toRdfFunctionDeclaration.js +11 -45
- package/generators/ts/_ObjectType/toRdfFunctionOrMethodDeclaration.d.ts +10 -0
- package/generators/ts/_ObjectType/toRdfFunctionOrMethodDeclaration.js +67 -0
- package/generators/ts/objectInitializer.d.ts +2 -0
- package/generators/ts/objectInitializer.js +14 -0
- package/generators/ts/tsComment.d.ts +5 -0
- package/generators/ts/tsComment.js +11 -0
- package/generators/ts/tsName.d.ts +1 -1
- package/generators/ts/tsName.js +1 -0
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/input/NodeShape.d.ts +46 -0
- package/input/NodeShape.js +165 -0
- package/input/Ontology.d.ts +13 -0
- package/input/Ontology.js +30 -0
- package/input/PropertyShape.d.ts +15 -0
- package/input/PropertyShape.js +34 -0
- package/input/Shape.d.ts +4 -0
- package/input/Shape.js +2 -0
- package/input/ShapesGraph.d.ts +9 -0
- package/input/ShapesGraph.js +50 -0
- package/input/ancestorClassIris.d.ts +4 -0
- package/input/ancestorClassIris.js +21 -0
- package/input/descendantClassIris.d.ts +4 -0
- package/input/descendantClassIris.js +21 -0
- package/input/generated.d.ts +274 -0
- package/input/generated.js +1420 -0
- package/input/index.d.ts +7 -0
- package/input/index.js +7 -0
- package/input/tsFeatures.d.ts +10 -0
- package/input/tsFeatures.js +42 -0
- package/package.json +14 -8
- package/ast/MintingStrategy.d.ts +0 -8
- package/ast/MintingStrategy.js +0 -9
- package/generators/ts/Configuration.d.ts +0 -29
- package/generators/ts/Configuration.js +0 -40
- package/generators/ts/IntersectionType.d.ts +0 -14
- package/generators/ts/IntersectionType.js +0 -26
- package/generators/ts/RdfjsTermType.d.ts +0 -25
- package/generators/ts/RdfjsTermType.js +0 -46
- package/generators/ts/_ObjectType/fromRdfFunctionDeclaration.d.ts +0 -4
- package/generators/ts/_ObjectType/fromRdfFunctionDeclaration.js +0 -72
- package/generators/ts/_ObjectType/sparqlGraphPatternsClassDeclaration.d.ts +0 -4
- package/generators/ts/_ObjectType/sparqlGraphPatternsClassDeclaration.js +0 -46
- package/generators/ts/rdfjsTermExpression.d.ts +0 -5
- package/vocabularies/dashDataset.d.ts +0 -3
- package/vocabularies/dashDataset.js +0 -2370
- package/vocabularies/index.d.ts +0 -2
- package/vocabularies/index.js +0 -2
- package/vocabularies/shaclmate.d.ts +0 -15
- package/vocabularies/shaclmate.js +0 -6
package/enums/index.js
ADDED
package/generators/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * as json from "./json";
|
|
2
|
-
export * as ts from "./ts";
|
|
1
|
+
export * as json from "./json/index.js";
|
|
2
|
+
export * as ts from "./ts/index.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/generators/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * as json from "./json";
|
|
2
|
-
export * as ts from "./ts";
|
|
1
|
+
export * as json from "./json/index.js";
|
|
2
|
+
export * as ts from "./ts/index.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type * as ast from "../../ast";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
generate(): string;
|
|
1
|
+
import type * as ast from "../../ast/index.js";
|
|
2
|
+
import type { Generator } from "../Generator.js";
|
|
3
|
+
export declare class AstJsonGenerator implements Generator {
|
|
4
|
+
generate(ast: ast.Ast): string;
|
|
6
5
|
}
|
|
7
6
|
//# sourceMappingURL=AstJsonGenerator.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as shaclAst from "shacl-ast";
|
|
2
1
|
function nameToJson(name) {
|
|
3
2
|
return {
|
|
4
3
|
curie: name.curie.extract(),
|
|
@@ -7,16 +6,6 @@ function nameToJson(name) {
|
|
|
7
6
|
shaclmateName: name.shaclmateName.extract(),
|
|
8
7
|
};
|
|
9
8
|
}
|
|
10
|
-
function nodeKindToJson(nodeKind) {
|
|
11
|
-
switch (nodeKind) {
|
|
12
|
-
case shaclAst.NodeKind.BLANK_NODE:
|
|
13
|
-
return "BlankNode";
|
|
14
|
-
case shaclAst.NodeKind.IRI:
|
|
15
|
-
return "NamedNode";
|
|
16
|
-
case shaclAst.NodeKind.LITERAL:
|
|
17
|
-
return "Literal";
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
9
|
function termToJson(term) {
|
|
21
10
|
switch (term.termType) {
|
|
22
11
|
case "BlankNode":
|
|
@@ -38,9 +27,9 @@ function typeToJson(type) {
|
|
|
38
27
|
switch (type.kind) {
|
|
39
28
|
case "IdentifierType":
|
|
40
29
|
return {
|
|
41
|
-
hasValue: type.
|
|
30
|
+
hasValue: type.hasValues.map(termToJson),
|
|
42
31
|
kind: type.kind,
|
|
43
|
-
nodeKinds: [...type.nodeKinds]
|
|
32
|
+
nodeKinds: [...type.nodeKinds],
|
|
44
33
|
};
|
|
45
34
|
case "IntersectionType":
|
|
46
35
|
case "UnionType":
|
|
@@ -48,10 +37,17 @@ function typeToJson(type) {
|
|
|
48
37
|
kind: type.kind,
|
|
49
38
|
types: type.memberTypes.map((type) => typeToJson(type)),
|
|
50
39
|
};
|
|
40
|
+
case "ListType": {
|
|
41
|
+
return {
|
|
42
|
+
itemType: typeToJson(type.itemType),
|
|
43
|
+
kind: type.kind,
|
|
44
|
+
mutable: type.mutable.extract(),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
51
47
|
case "LiteralType": {
|
|
52
48
|
return {
|
|
53
49
|
datatype: type.datatype.extract(),
|
|
54
|
-
hasValue: type.
|
|
50
|
+
hasValue: type.hasValues.map(termToJson),
|
|
55
51
|
kind: type.kind,
|
|
56
52
|
maxExclusive: type.maxExclusive.map(termToJson).extract(),
|
|
57
53
|
maxInclusive: type.maxInclusive.map(termToJson).extract(),
|
|
@@ -59,40 +55,53 @@ function typeToJson(type) {
|
|
|
59
55
|
minInclusive: type.minInclusive.map(termToJson).extract(),
|
|
60
56
|
};
|
|
61
57
|
}
|
|
58
|
+
case "ObjectIntersectionType":
|
|
59
|
+
case "ObjectUnionType":
|
|
60
|
+
return {
|
|
61
|
+
kind: type.kind,
|
|
62
|
+
name: nameToJson(type.name),
|
|
63
|
+
types: type.memberTypes.map((type) => typeToJson(type)),
|
|
64
|
+
};
|
|
62
65
|
case "ObjectType":
|
|
63
66
|
return {
|
|
67
|
+
fromRdfType: type.fromRdfType.map(termToJson).extract(),
|
|
64
68
|
kind: type.kind,
|
|
65
|
-
listItemType: type.listItemType.map(typeToJson).extract(),
|
|
66
69
|
name: nameToJson(type.name),
|
|
67
70
|
parentObjectTypes: type.parentObjectTypes.length > 0
|
|
68
71
|
? type.parentObjectTypes.map((type) => nameToJson(type.name))
|
|
69
72
|
: undefined,
|
|
70
|
-
nodeKinds: [...type.nodeKinds]
|
|
71
|
-
|
|
73
|
+
nodeKinds: [...type.nodeKinds],
|
|
74
|
+
toRdfTypes: type.toRdfTypes.length > 0
|
|
75
|
+
? type.toRdfTypes.map(termToJson)
|
|
76
|
+
: undefined,
|
|
72
77
|
};
|
|
73
78
|
case "OptionType":
|
|
74
79
|
return {
|
|
75
80
|
itemType: typeToJson(type.itemType),
|
|
76
81
|
kind: type.kind,
|
|
77
82
|
};
|
|
83
|
+
case "PlaceholderType":
|
|
84
|
+
throw new Error(type.kind);
|
|
78
85
|
case "SetType":
|
|
79
86
|
return {
|
|
80
87
|
itemType: typeToJson(type.itemType),
|
|
81
88
|
kind: type.kind,
|
|
82
89
|
};
|
|
90
|
+
case "TermType":
|
|
91
|
+
return {
|
|
92
|
+
kind: type.kind,
|
|
93
|
+
};
|
|
83
94
|
}
|
|
84
95
|
}
|
|
85
96
|
export class AstJsonGenerator {
|
|
86
|
-
|
|
87
|
-
this.ast = ast;
|
|
88
|
-
}
|
|
89
|
-
generate() {
|
|
97
|
+
generate(ast) {
|
|
90
98
|
return JSON.stringify({
|
|
91
|
-
objectTypes:
|
|
99
|
+
objectTypes: ast.objectTypes.map((objectType) => ({
|
|
92
100
|
kind: objectType.kind,
|
|
93
101
|
name: nameToJson(objectType.name),
|
|
94
102
|
properties: objectType.properties.map((property) => ({
|
|
95
103
|
name: nameToJson(property.name),
|
|
104
|
+
mutable: property.mutable.extract(),
|
|
96
105
|
path: property.path.iri.value,
|
|
97
106
|
type: typeToJson(property.type),
|
|
98
107
|
})),
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { PrimitiveType } from "./PrimitiveType.js";
|
|
2
|
-
|
|
2
|
+
import type { Type } from "./Type.js";
|
|
3
|
+
export declare class BooleanType extends PrimitiveType<boolean> {
|
|
4
|
+
readonly kind = "BooleanType";
|
|
5
|
+
get conversions(): readonly Type.Conversion[];
|
|
3
6
|
get name(): string;
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
jsonZodSchema({ variables, }: Parameters<Type["jsonZodSchema"]>[0]): ReturnType<Type["jsonZodSchema"]>;
|
|
8
|
+
propertyFromRdfResourceValueExpression({ variables, }: Parameters<PrimitiveType<boolean>["propertyFromRdfResourceValueExpression"]>[0]): string;
|
|
9
|
+
toRdfExpression({ variables, }: Parameters<PrimitiveType<string>["toRdfExpression"]>[0]): string;
|
|
6
10
|
}
|
|
7
11
|
//# sourceMappingURL=BooleanType.d.ts.map
|
|
@@ -1,13 +1,67 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Memoize } from "typescript-memoize";
|
|
1
8
|
import { PrimitiveType } from "./PrimitiveType.js";
|
|
9
|
+
import { objectInitializer } from "./objectInitializer.js";
|
|
2
10
|
export class BooleanType extends PrimitiveType {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.kind = "BooleanType";
|
|
14
|
+
}
|
|
15
|
+
get conversions() {
|
|
16
|
+
const conversions = [
|
|
17
|
+
{
|
|
18
|
+
conversionExpression: (value) => value,
|
|
19
|
+
sourceTypeCheckExpression: (value) => `typeof ${value} === "boolean"`,
|
|
20
|
+
sourceTypeName: this.name,
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
this.primitiveDefaultValue.ifJust((defaultValue) => {
|
|
24
|
+
conversions.push({
|
|
25
|
+
conversionExpression: () => defaultValue.toString(),
|
|
26
|
+
sourceTypeCheckExpression: (value) => `typeof ${value} === "undefined"`,
|
|
27
|
+
sourceTypeName: "undefined",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
return conversions;
|
|
31
|
+
}
|
|
3
32
|
get name() {
|
|
33
|
+
if (this.primitiveIn.length > 0) {
|
|
34
|
+
return this.primitiveIn.map((value) => value.toString()).join(" | ");
|
|
35
|
+
}
|
|
4
36
|
return "boolean";
|
|
5
37
|
}
|
|
6
|
-
|
|
7
|
-
|
|
38
|
+
jsonZodSchema({ variables, }) {
|
|
39
|
+
if (this.primitiveIn.length === 1) {
|
|
40
|
+
return `${variables.zod}.literal(${this.primitiveIn[0]})`;
|
|
41
|
+
}
|
|
42
|
+
return `${variables.zod}.boolean()`;
|
|
43
|
+
}
|
|
44
|
+
propertyFromRdfResourceValueExpression({ variables, }) {
|
|
45
|
+
let expression = `${variables.resourceValue}.toBoolean()`;
|
|
46
|
+
if (this.primitiveIn.length === 1) {
|
|
47
|
+
expression = `${expression}.chain(value => value === ${this.primitiveIn[0]} ? purify.Either.of(value) : purify.Left(new rdfjsResource.Resource.MistypedValueError(${objectInitializer({ actualValue: "rdfLiteral.toRdf(value)", expectedValueType: JSON.stringify(this.name), focusResource: variables.resource, predicate: variables.predicate })})))`;
|
|
48
|
+
}
|
|
49
|
+
return expression;
|
|
8
50
|
}
|
|
9
|
-
|
|
10
|
-
return
|
|
51
|
+
toRdfExpression({ variables, }) {
|
|
52
|
+
return this.primitiveDefaultValue
|
|
53
|
+
.map((defaultValue) => {
|
|
54
|
+
if (defaultValue) {
|
|
55
|
+
// If the default is true, only serialize the value if it's false
|
|
56
|
+
return `!${variables.value} ? false : undefined`;
|
|
57
|
+
}
|
|
58
|
+
// If the default is false, only serialize the value if it's true
|
|
59
|
+
return `${variables.value} ? true : undefined`;
|
|
60
|
+
})
|
|
61
|
+
.orDefault(variables.value);
|
|
11
62
|
}
|
|
12
63
|
}
|
|
64
|
+
__decorate([
|
|
65
|
+
Memoize()
|
|
66
|
+
], BooleanType.prototype, "name", null);
|
|
13
67
|
//# sourceMappingURL=BooleanType.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PrimitiveType } from "./PrimitiveType.js";
|
|
2
|
+
import type { Type } from "./Type.js";
|
|
3
|
+
export declare class DateTimeType extends PrimitiveType<Date> {
|
|
4
|
+
readonly equalsFunction = "(left, right) => purifyHelpers.Equatable.EqualsResult.fromBooleanEqualsResult(left, right, left.getTime() === right.getTime())";
|
|
5
|
+
readonly kind = "DateTimeType";
|
|
6
|
+
readonly mutable = true;
|
|
7
|
+
get conversions(): readonly Type.Conversion[];
|
|
8
|
+
get jsonName(): string;
|
|
9
|
+
get name(): string;
|
|
10
|
+
fromJsonExpression({ variables, }: Parameters<Type["fromJsonExpression"]>[0]): string;
|
|
11
|
+
hashStatements({ variables, }: Parameters<Type["hashStatements"]>[0]): readonly string[];
|
|
12
|
+
jsonZodSchema({ variables, }: Parameters<Type["jsonZodSchema"]>[0]): ReturnType<Type["jsonZodSchema"]>;
|
|
13
|
+
propertyFromRdfResourceValueExpression({ variables, }: Parameters<PrimitiveType<number>["propertyFromRdfResourceValueExpression"]>[0]): string;
|
|
14
|
+
toJsonExpression({ variables, }: Parameters<PrimitiveType<Date>["toJsonExpression"]>[0]): string;
|
|
15
|
+
toRdfExpression({ variables, }: Parameters<PrimitiveType<Date>["toRdfExpression"]>[0]): string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=DateTimeType.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { PrimitiveType } from "./PrimitiveType.js";
|
|
2
|
+
import { objectInitializer } from "./objectInitializer.js";
|
|
3
|
+
export class DateTimeType extends PrimitiveType {
|
|
4
|
+
constructor() {
|
|
5
|
+
super(...arguments);
|
|
6
|
+
this.equalsFunction = "(left, right) => purifyHelpers.Equatable.EqualsResult.fromBooleanEqualsResult(left, right, left.getTime() === right.getTime())";
|
|
7
|
+
this.kind = "DateTimeType";
|
|
8
|
+
this.mutable = true;
|
|
9
|
+
}
|
|
10
|
+
get conversions() {
|
|
11
|
+
const conversions = [
|
|
12
|
+
{
|
|
13
|
+
conversionExpression: (value) => value,
|
|
14
|
+
sourceTypeCheckExpression: (value) => `typeof ${value} === "object" && ${value} instanceof Date`,
|
|
15
|
+
sourceTypeName: this.name,
|
|
16
|
+
},
|
|
17
|
+
];
|
|
18
|
+
this.primitiveDefaultValue.ifJust((defaultValue) => {
|
|
19
|
+
conversions.push({
|
|
20
|
+
conversionExpression: () => `new Date("${defaultValue.toISOString()}")`,
|
|
21
|
+
sourceTypeCheckExpression: (value) => `typeof ${value} === "undefined"`,
|
|
22
|
+
sourceTypeName: "undefined",
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
return conversions;
|
|
26
|
+
}
|
|
27
|
+
get jsonName() {
|
|
28
|
+
return "string";
|
|
29
|
+
}
|
|
30
|
+
get name() {
|
|
31
|
+
return "Date";
|
|
32
|
+
}
|
|
33
|
+
fromJsonExpression({ variables, }) {
|
|
34
|
+
return `new Date(${variables.value})`;
|
|
35
|
+
}
|
|
36
|
+
hashStatements({ variables, }) {
|
|
37
|
+
return [`${variables.hasher}.update(${variables.value}.toISOString());`];
|
|
38
|
+
}
|
|
39
|
+
jsonZodSchema({ variables, }) {
|
|
40
|
+
return `${variables.zod}.string().datetime()`;
|
|
41
|
+
}
|
|
42
|
+
propertyFromRdfResourceValueExpression({ variables, }) {
|
|
43
|
+
let expression = `${variables.resourceValue}.toDate()`;
|
|
44
|
+
if (this.primitiveIn.length > 0) {
|
|
45
|
+
expression = `${expression}.chain(value => { ${this.primitiveIn.map((value) => `if (value.getTime() === ${value.getTime()}) { return purify.Either.of(value); }`).join(" ")} return purify.Left(new rdfjsResource.Resource.MistypedValueError(${objectInitializer({ actualValue: "rdfLiteral.toRdf(value)", expectedValueType: JSON.stringify(this.name), focusResource: variables.resource, predicate: variables.predicate })})); })`;
|
|
46
|
+
}
|
|
47
|
+
return expression;
|
|
48
|
+
}
|
|
49
|
+
toJsonExpression({ variables, }) {
|
|
50
|
+
return `${variables.value}.toISOString()`;
|
|
51
|
+
}
|
|
52
|
+
toRdfExpression({ variables, }) {
|
|
53
|
+
return this.primitiveDefaultValue
|
|
54
|
+
.map((defaultValue) => `${variables.value}.getTime() !== ${defaultValue.getTime()} ? ${variables.value} : undefined`)
|
|
55
|
+
.orDefault(variables.value);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=DateTimeType.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ClassDeclarationStructure, InterfaceDeclarationStructure, ModuleDeclarationStructure, TypeAliasDeclarationStructure } from "ts-morph";
|
|
2
|
+
import type { TsFeature } from "../../enums/index.js";
|
|
3
|
+
import type { Import } from "./Import.js";
|
|
4
|
+
import { Type } from "./Type.js";
|
|
5
|
+
export declare abstract class DeclaredType extends Type {
|
|
6
|
+
abstract readonly declarationImports: readonly Import[];
|
|
7
|
+
abstract readonly declarations: readonly (ClassDeclarationStructure | InterfaceDeclarationStructure | ModuleDeclarationStructure | TypeAliasDeclarationStructure)[];
|
|
8
|
+
readonly export: boolean;
|
|
9
|
+
readonly features: Set<TsFeature>;
|
|
10
|
+
readonly name: string;
|
|
11
|
+
constructor({ export_, features, name, ...superParameters }: {
|
|
12
|
+
export_: boolean;
|
|
13
|
+
features: Set<TsFeature>;
|
|
14
|
+
name: string;
|
|
15
|
+
} & ConstructorParameters<typeof Type>[0]);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=DeclaredType.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Type } from "./Type.js";
|
|
2
|
+
export class DeclaredType extends Type {
|
|
3
|
+
constructor({ export_, features, name, ...superParameters }) {
|
|
4
|
+
super(superParameters);
|
|
5
|
+
this.export = export_;
|
|
6
|
+
this.features = features;
|
|
7
|
+
this.name = name;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=DeclaredType.js.map
|
|
@@ -1,23 +1,13 @@
|
|
|
1
1
|
import type { BlankNode, NamedNode } from "@rdfjs/types";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { RdfjsTermType } from "./RdfjsTermType.js";
|
|
5
|
-
import type { Type } from "./Type";
|
|
6
|
-
export declare class IdentifierType extends RdfjsTermType<BlankNode | NamedNode> {
|
|
2
|
+
import { TermType } from "./TermType.js";
|
|
3
|
+
export declare class IdentifierType extends TermType<BlankNode | NamedNode> {
|
|
7
4
|
readonly kind = "IdentifierType";
|
|
8
|
-
private readonly nodeKinds;
|
|
9
|
-
constructor({ nodeKinds, ...superParameters }: {
|
|
10
|
-
nodeKinds: Set<NodeKind.BLANK_NODE | NodeKind.IRI>;
|
|
11
|
-
} & ConstructorParameters<typeof RdfjsTermType<BlankNode | NamedNode>>[0]);
|
|
12
|
-
get conversions(): readonly Type.Conversion[];
|
|
13
|
-
get discriminatorProperty(): Maybe<Type.DiscriminatorProperty>;
|
|
14
5
|
get isNamedNodeKind(): boolean;
|
|
6
|
+
get jsonName(): string;
|
|
15
7
|
get name(): string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
}): string;
|
|
8
|
+
fromJsonExpression({ variables, }: Parameters<TermType<BlankNode | NamedNode>["fromJsonExpression"]>[0]): string;
|
|
9
|
+
jsonZodSchema({ variables, }: Parameters<TermType<BlankNode | NamedNode>["jsonZodSchema"]>[0]): ReturnType<TermType<BlankNode | NamedNode>["jsonZodSchema"]>;
|
|
10
|
+
toJsonExpression({ variables, }: Parameters<TermType<BlankNode | NamedNode>["toJsonExpression"]>[0]): string;
|
|
11
|
+
protected propertyFromRdfResourceValueExpression({ variables, }: Parameters<TermType<BlankNode | NamedNode>["propertyFromRdfResourceValueExpression"]>[0]): string;
|
|
22
12
|
}
|
|
23
13
|
//# sourceMappingURL=IdentifierType.d.ts.map
|
|
@@ -4,77 +4,86 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { Maybe } from "purify-ts";
|
|
8
|
-
import { NodeKind } from "shacl-ast";
|
|
9
|
-
import { invariant } from "ts-invariant";
|
|
10
7
|
import { Memoize } from "typescript-memoize";
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
super(superParameters);
|
|
8
|
+
import { TermType } from "./TermType.js";
|
|
9
|
+
export class IdentifierType extends TermType {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
16
12
|
this.kind = "IdentifierType";
|
|
17
|
-
this.nodeKinds = new Set([...nodeKinds]);
|
|
18
|
-
invariant(this.nodeKinds.size > 0);
|
|
19
|
-
}
|
|
20
|
-
get conversions() {
|
|
21
|
-
return this.defaultValue
|
|
22
|
-
.map((defaultValue) => [
|
|
23
|
-
{
|
|
24
|
-
conversionExpression: () => rdfjsTermExpression(defaultValue, this.configuration),
|
|
25
|
-
sourceTypeName: "undefined",
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
conversionExpression: (value) => value,
|
|
29
|
-
sourceTypeCheck: (value) => `typeof ${value} === "object"`,
|
|
30
|
-
sourceTypeName: this.name,
|
|
31
|
-
},
|
|
32
|
-
])
|
|
33
|
-
.orDefault(super.conversions);
|
|
34
|
-
}
|
|
35
|
-
get discriminatorProperty() {
|
|
36
|
-
return Maybe.of({
|
|
37
|
-
name: "termType",
|
|
38
|
-
type: "string",
|
|
39
|
-
values: [...this.nodeKinds].map((nodeKind) => {
|
|
40
|
-
switch (nodeKind) {
|
|
41
|
-
case NodeKind.BLANK_NODE:
|
|
42
|
-
return "BlankNode";
|
|
43
|
-
case NodeKind.IRI:
|
|
44
|
-
return "NamedNode";
|
|
45
|
-
}
|
|
46
|
-
}),
|
|
47
|
-
});
|
|
48
13
|
}
|
|
49
14
|
get isNamedNodeKind() {
|
|
50
|
-
return this.nodeKinds.size === 1 && this.nodeKinds.has(
|
|
15
|
+
return this.nodeKinds.size === 1 && this.nodeKinds.has("NamedNode");
|
|
16
|
+
}
|
|
17
|
+
get jsonName() {
|
|
18
|
+
if (this.in_.length > 0 && this.isNamedNodeKind) {
|
|
19
|
+
// Treat sh:in as a union of the IRIs
|
|
20
|
+
// rdfjs.NamedNode<"http://example.com/1" | "http://example.com/2">
|
|
21
|
+
return `{ readonly "@id": ${this.in_.map((iri) => `"${iri.value}"`).join(" | ")} }`;
|
|
22
|
+
}
|
|
23
|
+
return `{ readonly "@id": string }`;
|
|
51
24
|
}
|
|
52
25
|
get name() {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
26
|
+
if (this.in_.length > 0 && this.isNamedNodeKind) {
|
|
27
|
+
// Treat sh:in as a union of the IRIs
|
|
28
|
+
// rdfjs.NamedNode<"http://example.com/1" | "http://example.com/2">
|
|
29
|
+
return `rdfjs.NamedNode<${this.in_
|
|
30
|
+
.map((iri) => `"${iri.value}"`)
|
|
31
|
+
.join(" | ")}>`;
|
|
32
|
+
}
|
|
33
|
+
return `(${[...this.nodeKinds]
|
|
34
|
+
.map((nodeKind) => `rdfjs.${nodeKind}`)
|
|
35
|
+
.join(" | ")})`;
|
|
36
|
+
}
|
|
37
|
+
fromJsonExpression({ variables, }) {
|
|
38
|
+
const valueToBlankNode = `${this.dataFactoryVariable}.blankNode(${variables.value}["@id"].substring(2))`;
|
|
39
|
+
const valueToNamedNode = `${this.dataFactoryVariable}.namedNode(${variables.value}["@id"])`;
|
|
40
|
+
if (this.nodeKinds.size === 2) {
|
|
41
|
+
return `(${variables.value}["@id"].startsWith("_:") ? ${valueToBlankNode} : ${valueToNamedNode})`;
|
|
56
42
|
}
|
|
57
|
-
|
|
58
|
-
|
|
43
|
+
switch ([...this.nodeKinds][0]) {
|
|
44
|
+
case "BlankNode":
|
|
45
|
+
return valueToBlankNode;
|
|
46
|
+
case "NamedNode":
|
|
47
|
+
return valueToNamedNode;
|
|
59
48
|
}
|
|
60
|
-
return names.join(" | ");
|
|
61
49
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
50
|
+
jsonZodSchema({ variables, }) {
|
|
51
|
+
let idSchema;
|
|
52
|
+
if (this.in_.length > 0 && this.isNamedNodeKind) {
|
|
53
|
+
// Treat sh:in as a union of the IRIs
|
|
54
|
+
// rdfjs.NamedNode<"http://example.com/1" | "http://example.com/2">
|
|
55
|
+
idSchema = `${variables.zod}.enum(${JSON.stringify(this.in_.map((iri) => iri.value))})`;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
idSchema = `${variables.zod}.string().min(1)`;
|
|
59
|
+
}
|
|
60
|
+
return `${variables.zod}.object({ "@id": ${idSchema} })`;
|
|
61
|
+
}
|
|
62
|
+
toJsonExpression({ variables, }) {
|
|
63
|
+
const valueToBlankNode = `{ "@id": \`_:\${${variables.value}.value}\` }`;
|
|
64
|
+
const valueToNamedNode = `{ "@id": ${variables.value}.value }`;
|
|
65
|
+
if (this.nodeKinds.size === 2) {
|
|
66
|
+
return `(${variables.value}.termType === "BlankNode" ? ${valueToBlankNode} : ${valueToNamedNode})`;
|
|
67
|
+
}
|
|
68
|
+
switch ([...this.nodeKinds][0]) {
|
|
69
|
+
case "BlankNode":
|
|
70
|
+
return valueToBlankNode;
|
|
71
|
+
case "NamedNode":
|
|
72
|
+
return valueToNamedNode;
|
|
73
|
+
}
|
|
66
74
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
propertyFromRdfResourceValueExpression({ variables, }) {
|
|
76
|
+
if (this.nodeKinds.size === 2) {
|
|
77
|
+
return `${variables.resourceValue}.toIdentifier()`;
|
|
78
|
+
}
|
|
79
|
+
if (this.isNamedNodeKind) {
|
|
80
|
+
let expression = `${variables.resourceValue}.toIri()`;
|
|
81
|
+
if (this.in_.length > 0) {
|
|
82
|
+
expression = `${expression}.chain(iri => { switch (iri.value) { ${this.in_.map((iri) => `case "${iri.value}": return purify.Either.of<rdfjsResource.Resource.ValueError, ${this.name}>(iri as rdfjs.NamedNode<"${iri.value}">);`).join(" ")} default: return purify.Left(new rdfjsResource.Resource.MistypedValueError({ actualValue: iri, expectedValueType: ${JSON.stringify(this.name)}, focusResource: ${variables.resource}, predicate: ${variables.predicate} })); } } )`;
|
|
83
|
+
}
|
|
84
|
+
return expression;
|
|
77
85
|
}
|
|
86
|
+
throw new Error(`not implemented: ${this.name}`);
|
|
78
87
|
}
|
|
79
88
|
}
|
|
80
89
|
__decorate([
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ImportDeclarationStructure } from "ts-morph";
|
|
2
|
+
export type Import = ImportDeclarationStructure | string;
|
|
3
|
+
/**
|
|
4
|
+
* Singleton values for common imports.
|
|
5
|
+
*/
|
|
6
|
+
export declare namespace Import {
|
|
7
|
+
const PURIFY: Import;
|
|
8
|
+
const PURIFY_HELPERS: Import;
|
|
9
|
+
const RDF_LITERAL: Import;
|
|
10
|
+
const RDFJS_RESOURCE: Import;
|
|
11
|
+
const RDFJS_TYPES: Import;
|
|
12
|
+
const SHA256: Import;
|
|
13
|
+
const SPARQLJS: Import;
|
|
14
|
+
const UUID: Import;
|
|
15
|
+
const ZOD: Import;
|
|
16
|
+
const ZOD_TO_JSON_SCHEMA: Import;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=Import.d.ts.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { StructureKind } from "ts-morph";
|
|
2
|
+
/**
|
|
3
|
+
* Singleton values for common imports.
|
|
4
|
+
*/
|
|
5
|
+
export var Import;
|
|
6
|
+
(function (Import) {
|
|
7
|
+
Import.PURIFY = {
|
|
8
|
+
kind: StructureKind.ImportDeclaration,
|
|
9
|
+
moduleSpecifier: "purify-ts",
|
|
10
|
+
namespaceImport: "purify",
|
|
11
|
+
};
|
|
12
|
+
Import.PURIFY_HELPERS = {
|
|
13
|
+
kind: StructureKind.ImportDeclaration,
|
|
14
|
+
moduleSpecifier: "purify-ts-helpers",
|
|
15
|
+
namespaceImport: "purifyHelpers",
|
|
16
|
+
};
|
|
17
|
+
Import.RDF_LITERAL = {
|
|
18
|
+
kind: StructureKind.ImportDeclaration,
|
|
19
|
+
moduleSpecifier: "rdf-literal",
|
|
20
|
+
namespaceImport: "rdfLiteral",
|
|
21
|
+
};
|
|
22
|
+
Import.RDFJS_RESOURCE = {
|
|
23
|
+
kind: StructureKind.ImportDeclaration,
|
|
24
|
+
moduleSpecifier: "rdfjs-resource",
|
|
25
|
+
namespaceImport: "rdfjsResource",
|
|
26
|
+
};
|
|
27
|
+
Import.RDFJS_TYPES = {
|
|
28
|
+
isTypeOnly: true,
|
|
29
|
+
kind: StructureKind.ImportDeclaration,
|
|
30
|
+
moduleSpecifier: "@rdfjs/types",
|
|
31
|
+
namespaceImport: "rdfjs",
|
|
32
|
+
};
|
|
33
|
+
Import.SHA256 = {
|
|
34
|
+
kind: StructureKind.ImportDeclaration,
|
|
35
|
+
moduleSpecifier: "js-sha256",
|
|
36
|
+
namedImports: ["sha256"],
|
|
37
|
+
};
|
|
38
|
+
Import.SPARQLJS = {
|
|
39
|
+
kind: StructureKind.ImportDeclaration,
|
|
40
|
+
moduleSpecifier: "sparqljs",
|
|
41
|
+
namespaceImport: "sparqljs",
|
|
42
|
+
};
|
|
43
|
+
Import.UUID = {
|
|
44
|
+
kind: StructureKind.ImportDeclaration,
|
|
45
|
+
moduleSpecifier: "uuid",
|
|
46
|
+
namespaceImport: "uuid",
|
|
47
|
+
};
|
|
48
|
+
Import.ZOD = {
|
|
49
|
+
kind: StructureKind.ImportDeclaration,
|
|
50
|
+
moduleSpecifier: "zod",
|
|
51
|
+
namedImports: [{ alias: "zod", name: "z" }],
|
|
52
|
+
};
|
|
53
|
+
Import.ZOD_TO_JSON_SCHEMA = {
|
|
54
|
+
kind: StructureKind.ImportDeclaration,
|
|
55
|
+
moduleSpecifier: "zod-to-json-schema",
|
|
56
|
+
namedImports: [{ name: "zodToJsonSchema" }],
|
|
57
|
+
};
|
|
58
|
+
})(Import || (Import = {}));
|
|
59
|
+
//# sourceMappingURL=Import.js.map
|