@shaclmate/compiler 4.0.94 → 4.0.95
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/Eithers.d.ts +2 -1
- package/dist/Eithers.js +15 -0
- package/dist/ShapesGraphToAstTransformer.js +10 -0
- package/dist/_ShapesGraphToAstTransformer/ShapeStack.d.ts +2 -2
- package/dist/_ShapesGraphToAstTransformer/ShapeStack.js +2 -1
- package/dist/_ShapesGraphToAstTransformer/isNodeShape.d.ts +3 -0
- package/dist/_ShapesGraphToAstTransformer/isNodeShape.js +4 -0
- package/dist/_ShapesGraphToAstTransformer/isPropertyShape.d.ts +3 -0
- package/dist/_ShapesGraphToAstTransformer/isPropertyShape.js +4 -0
- package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.d.ts +2 -1
- package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.js +4 -3
- package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.d.ts +1 -1
- package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.js +7 -3
- package/dist/_ShapesGraphToAstTransformer/shapeOntology.d.ts +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.d.ts +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.js +34 -16
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.d.ts +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.js +3 -2
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.d.ts +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.js +3 -3
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstStructType.d.ts +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstStructType.js +86 -65
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.d.ts +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.js +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.d.ts +1 -1
- package/dist/ast/AbstractCollectionType.d.ts +2 -2
- package/dist/ast/AbstractConstruct.d.ts +25 -0
- package/dist/ast/AbstractConstruct.js +38 -0
- package/dist/ast/AbstractContainerType.d.ts +2 -2
- package/dist/ast/AbstractLazyType.d.ts +14 -36
- package/dist/ast/AbstractTermType.d.ts +2 -2
- package/dist/ast/AbstractType.d.ts +7 -17
- package/dist/ast/AbstractType.js +6 -22
- package/dist/ast/Ast.d.ts +2 -0
- package/dist/ast/DefaultValueType.d.ts +2 -2
- package/dist/ast/DiscriminatedUnionType.d.ts +2 -2
- package/dist/ast/DiscriminatedUnionType.js +3 -1
- package/dist/ast/LiteralType.d.ts +2 -2
- package/dist/ast/Operation.d.ts +67 -0
- package/dist/ast/Operation.js +32 -0
- package/dist/ast/Service.d.ts +17 -0
- package/dist/ast/Service.js +17 -0
- package/dist/ast/SetType.d.ts +2 -2
- package/dist/ast/StructCompoundType.d.ts +1 -1
- package/dist/ast/StructCompoundType.js +5 -5
- package/dist/ast/StructType.d.ts +64 -32
- package/dist/ast/StructType.js +62 -29
- package/dist/ast/index.d.ts +2 -0
- package/dist/ast/index.js +2 -0
- package/dist/generators/transformAstToLabeledPropertyGraph.js +13 -10
- package/dist/generators/ts/AbstractCallable.d.ts +20 -0
- package/dist/generators/ts/AbstractCallable.js +9 -0
- package/dist/generators/ts/AbstractCollectionType.d.ts +7 -9
- package/dist/generators/ts/AbstractCollectionType.js +11 -11
- package/dist/generators/ts/AbstractCompoundType.d.ts +18 -0
- package/dist/generators/ts/AbstractCompoundType.js +33 -0
- package/dist/generators/ts/AbstractConstruct.d.ts +31 -0
- package/dist/generators/ts/AbstractConstruct.js +31 -0
- package/dist/generators/ts/AbstractContainerType.d.ts +7 -4
- package/dist/generators/ts/AbstractContainerType.js +5 -2
- package/dist/generators/ts/AbstractDateType.d.ts +8 -5
- package/dist/generators/ts/AbstractDateType.js +22 -8
- package/dist/generators/ts/AbstractDiscriminatedUnionType.d.ts +43 -45
- package/dist/generators/ts/AbstractDiscriminatedUnionType.js +100 -258
- package/dist/generators/ts/AbstractIdentifierType.d.ts +8 -3
- package/dist/generators/ts/AbstractIdentifierType.js +34 -5
- package/dist/generators/ts/AbstractIntersectionType.d.ts +48 -0
- package/dist/generators/ts/AbstractIntersectionType.js +80 -0
- package/dist/generators/ts/AbstractLazyType.d.ts +28 -17
- package/dist/generators/ts/AbstractLazyType.js +61 -23
- package/dist/generators/ts/AbstractLiteralType.d.ts +2 -2
- package/dist/generators/ts/AbstractLiteralType.js +15 -1
- package/dist/generators/ts/AbstractNumericType.d.ts +5 -4
- package/dist/generators/ts/AbstractNumericType.js +4 -6
- package/dist/generators/ts/AbstractObjectSetType.d.ts +5 -6
- package/dist/generators/ts/AbstractObjectSetType.js +10 -13
- package/dist/generators/ts/AbstractPrimitiveType.d.ts +7 -7
- package/dist/generators/ts/AbstractPrimitiveType.js +18 -36
- package/dist/generators/ts/AbstractStructuredType.d.ts +71 -0
- package/dist/generators/ts/AbstractStructuredType.js +273 -0
- package/dist/generators/ts/AbstractTermType.d.ts +8 -10
- package/dist/generators/ts/AbstractTermType.js +6 -18
- package/dist/generators/ts/AbstractType.d.ts +54 -78
- package/dist/generators/ts/AbstractType.js +25 -29
- package/dist/generators/ts/AbstractTypedLiteralType.d.ts +5 -4
- package/dist/generators/ts/AbstractTypedLiteralType.js +14 -3
- package/dist/generators/ts/BigDecimalType.d.ts +15 -13
- package/dist/generators/ts/BigDecimalType.js +13 -29
- package/dist/generators/ts/BigIntType.d.ts +10 -8
- package/dist/generators/ts/BigIntType.js +26 -51
- package/dist/generators/ts/BlankNodeType.d.ts +12 -12
- package/dist/generators/ts/BlankNodeType.js +9 -35
- package/dist/generators/ts/BooleanType.d.ts +12 -6
- package/dist/generators/ts/BooleanType.js +21 -11
- package/dist/generators/ts/Callable.d.ts +5 -0
- package/dist/generators/ts/Callable.js +2 -0
- package/dist/generators/ts/CodeThunk.d.ts +6 -0
- package/dist/generators/ts/CodeThunk.js +8 -0
- package/dist/generators/ts/DateTimeType.d.ts +7 -4
- package/dist/generators/ts/DateTimeType.js +8 -21
- package/dist/generators/ts/DateType.d.ts +7 -4
- package/dist/generators/ts/DateType.js +8 -21
- package/dist/generators/ts/DeclaredCallable.d.ts +23 -0
- package/dist/generators/ts/DeclaredCallable.js +59 -0
- package/dist/generators/ts/DefaultValueType.d.ts +24 -23
- package/dist/generators/ts/DefaultValueType.js +29 -59
- package/dist/generators/ts/FloatType.d.ts +7 -2
- package/dist/generators/ts/FloatType.js +16 -6
- package/dist/generators/ts/GraphqlSchema.js +1 -1
- package/dist/generators/ts/IdentifierType.d.ts +13 -13
- package/dist/generators/ts/IdentifierType.js +10 -39
- package/dist/generators/ts/Imports.d.ts +8 -0
- package/dist/generators/ts/Imports.js +15 -7
- package/dist/generators/ts/InlineCallable.d.ts +18 -0
- package/dist/generators/ts/InlineCallable.js +51 -0
- package/dist/generators/ts/IntType.d.ts +6 -1
- package/dist/generators/ts/IntType.js +16 -1
- package/dist/generators/ts/IriType.d.ts +12 -8
- package/dist/generators/ts/IriType.js +56 -43
- package/dist/generators/ts/LangStringType.d.ts +12 -7
- package/dist/generators/ts/LangStringType.js +37 -20
- package/dist/generators/ts/LazyOptionType.d.ts +10 -24
- package/dist/generators/ts/LazyOptionType.js +5 -26
- package/dist/generators/ts/LazySetType.d.ts +7 -2
- package/dist/generators/ts/LazySetType.js +5 -25
- package/dist/generators/ts/LazyType.d.ts +7 -2
- package/dist/generators/ts/LazyType.js +5 -21
- package/dist/generators/ts/ListType.d.ts +12 -7
- package/dist/generators/ts/ListType.js +45 -22
- package/dist/generators/ts/LiteralType.d.ts +11 -7
- package/dist/generators/ts/LiteralType.js +31 -21
- package/dist/generators/ts/ObjectDiscriminatedUnionType.d.ts +19 -2
- package/dist/generators/ts/ObjectDiscriminatedUnionType.js +105 -41
- package/dist/generators/ts/ObjectIntersectionType.d.ts +44 -0
- package/dist/generators/ts/ObjectIntersectionType.js +204 -0
- package/dist/generators/ts/ObjectSetType.js +0 -1
- package/dist/generators/ts/ObjectType.d.ts +78 -49
- package/dist/generators/ts/ObjectType.js +235 -362
- package/dist/generators/ts/Operation.d.ts +54 -0
- package/dist/generators/ts/Operation.js +206 -0
- package/dist/generators/ts/OptionType.d.ts +15 -13
- package/dist/generators/ts/OptionType.js +43 -33
- package/dist/generators/ts/RdfjsDatasetObjectSetType.js +14 -7
- package/dist/generators/ts/ReferenceCallable.d.ts +14 -0
- package/dist/generators/ts/ReferenceCallable.js +16 -0
- package/dist/generators/ts/Service.d.ts +15 -0
- package/dist/generators/ts/Service.js +53 -0
- package/dist/generators/ts/SetType.d.ts +11 -8
- package/dist/generators/ts/SetType.js +35 -35
- package/dist/generators/ts/SnippetFactory.d.ts +1 -1
- package/dist/generators/ts/Snippets.d.ts +80 -2
- package/dist/generators/ts/Snippets.js +622 -74
- package/dist/generators/ts/SparqlObjectSetType.js +1 -4
- package/dist/generators/ts/StringType.d.ts +10 -5
- package/dist/generators/ts/StringType.js +25 -17
- package/dist/generators/ts/TermType.d.ts +13 -7
- package/dist/generators/ts/TermType.js +61 -71
- package/dist/generators/ts/TsFeature.d.ts +4 -1
- package/dist/generators/ts/TsFeature.js +51 -0
- package/dist/generators/ts/TsGenerator.d.ts +2 -1
- package/dist/generators/ts/TsGenerator.js +98 -54
- package/dist/generators/ts/Type.d.ts +2 -1
- package/dist/generators/ts/TypeFactory.d.ts +10 -7
- package/dist/generators/ts/TypeFactory.js +193 -140
- package/dist/generators/ts/UberObjectDiscriminatedUnionType.d.ts +6 -2
- package/dist/generators/ts/UberObjectDiscriminatedUnionType.js +18 -12
- package/dist/generators/ts/ZodGenerator.js +6 -14
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_Discriminant.d.ts +3 -6
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_conversionFunctionExpression.d.ts → AbstractDiscriminatedUnionType_conversionFunction.d.ts} +1 -1
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_conversionFunctionExpression.js → AbstractDiscriminatedUnionType_conversionFunction.js} +2 -2
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_equalsFunctionExpression.d.ts → AbstractDiscriminatedUnionType_equalsFunction.d.ts} +1 -1
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_equalsFunctionExpression.js → AbstractDiscriminatedUnionType_equalsFunction.js} +4 -4
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_filterFunctionExpression.d.ts → AbstractDiscriminatedUnionType_filterFunction.d.ts} +1 -1
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_filterFunctionExpression.js → AbstractDiscriminatedUnionType_filterFunction.js} +7 -8
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_filterTypeExpression.js +1 -2
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_fromJsonObjectFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_fromJsonObjectFunction.js +18 -0
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_fromRdfResourceValuesFunctionExpression.d.ts → AbstractDiscriminatedUnionType_fromRdfResourceValuesFunction.d.ts} +1 -1
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_fromRdfResourceValuesFunctionExpression.js → AbstractDiscriminatedUnionType_fromRdfResourceValuesFunction.js} +5 -5
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_hashFunctionExpression.d.ts → AbstractDiscriminatedUnionType_hashFunction.d.ts} +1 -1
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_hashFunctionExpression.js → AbstractDiscriminatedUnionType_hashFunction.js} +4 -5
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_inferDiscriminant.js +6 -9
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_inlineExpression.js +5 -5
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toJsonObjectFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toJsonObjectFunction.js +16 -0
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toLoggableFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toLoggableFunction.js +20 -0
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_toRdfResourceValuesFunctionExpression.d.ts → AbstractDiscriminatedUnionType_toRdfResourceValuesFunction.d.ts} +1 -1
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toRdfResourceValuesFunction.js +18 -0
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_toStringFunctionExpression.d.ts → AbstractDiscriminatedUnionType_toStringFunction.d.ts} +1 -1
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_toStringFunctionExpression.js → AbstractDiscriminatedUnionType_toStringFunction.js} +3 -3
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_valueSparqlConstructTriplesFunctionExpression.d.ts → AbstractDiscriminatedUnionType_valueSparqlConstructTriplesFunction.d.ts} +1 -1
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_valueSparqlConstructTriplesFunctionExpression.js → AbstractDiscriminatedUnionType_valueSparqlConstructTriplesFunction.js} +4 -4
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_valueSparqlWherePatternsFunctionExpression.d.ts → AbstractDiscriminatedUnionType_valueSparqlWherePatternsFunction.d.ts} +1 -1
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_valueSparqlWherePatternsFunctionExpression.js → AbstractDiscriminatedUnionType_valueSparqlWherePatternsFunction.js} +4 -4
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_equalsFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_equalsFunction.js +7 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_filterFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_filterFunction.js +7 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_hashFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_hashFunction.js +8 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_toLoggableFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_toLoggableFunction.js +14 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_toStringFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_toStringFunction.js +17 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_valueSparqlConstructTriplesFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_valueSparqlConstructTriplesFunction.js +13 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_valueSparqlWherePatternsFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_valueSparqlWherePatternsFunction.js +13 -0
- package/dist/generators/ts/_AbstractType/AbstractType_DiscriminatedType.d.ts +9 -0
- package/dist/generators/ts/_AbstractType/AbstractType_DiscriminatedType.js +2 -0
- package/dist/generators/ts/_AbstractType/AbstractType_JsonType.d.ts +196 -11
- package/dist/generators/ts/_AbstractType/AbstractType_JsonType.js +411 -17
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_focusSparqlConstructTriplesFunctionDeclaration.d.ts → ObjectDiscriminatedUnionType_focusSparqlConstructTriplesFunction.d.ts} +3 -3
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_focusSparqlConstructTriplesFunction.js +12 -0
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_focusSparqlWherePatternsFunctionDeclaration.d.ts → ObjectDiscriminatedUnionType_focusSparqlWherePatternsFunction.d.ts} +3 -3
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_focusSparqlWherePatternsFunction.js +32 -0
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_fromRdfResourceFunctionDeclaration.d.ts → ObjectDiscriminatedUnionType_fromRdfResourceFunction.d.ts} +3 -3
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_fromRdfResourceFunction.js +16 -0
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_graphqlTypeVariableStatement.d.ts → ObjectDiscriminatedUnionType_graphqlTypeExpression.d.ts} +2 -2
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_graphqlTypeExpression.js +11 -0
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_schemaExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_schemaVariableStatement.js → ObjectDiscriminatedUnionType_schemaExpression.js} +3 -8
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_toRdfResourceFunctionDeclaration.d.ts → ObjectDiscriminatedUnionType_toRdfResourceFunction.d.ts} +3 -3
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_toRdfResourceFunction.js +17 -0
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_typeGuardFunctionDeclaration.d.ts → ObjectDiscriminatedUnionType_typeGuardFunction.d.ts} +4 -3
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_typeGuardFunction.js +14 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType__fromRdfResourceFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType__fromRdfResourceFunction.js +16 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType__toRdfResourceFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType__toRdfResourceFunction.js +18 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_createFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_createFunction.js +30 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_createFunctionParameters.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_createFunctionParameters.js +25 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_createUnsafeFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_createUnsafeFunction.js +10 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_focusSparqlConstructTriplesFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_focusSparqlConstructTriplesFunction.js +19 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_focusSparqlWherePatternsFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_focusSparqlWherePatternsFunction.js +19 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_fromJsonObjectFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_fromJsonObjectFunction.js +15 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_fromRdfResourceFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_fromRdfResourceFunction.js +9 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_fromRdfResourceValuesFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_fromRdfResourceValuesFunction.js +8 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_toJsonObjectFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_toJsonObjectFunction.js +7 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_toRdfResourceFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_toRdfResourceFunction.js +12 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_toRdfResourceValuesFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_toRdfResourceValuesFunction.js +5 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_typeGuardFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_typeGuardFunction.js +18 -0
- package/dist/generators/ts/_ObjectType/ObjectType_AbstractProperty.d.ts +37 -23
- package/dist/generators/ts/_ObjectType/ObjectType_AbstractProperty.js +19 -1
- package/dist/generators/ts/_ObjectType/ObjectType_DiscriminantProperty.d.ts +15 -15
- package/dist/generators/ts/_ObjectType/ObjectType_DiscriminantProperty.js +22 -56
- package/dist/generators/ts/_ObjectType/ObjectType_IdentifierProperty.d.ts +9 -10
- package/dist/generators/ts/_ObjectType/ObjectType_IdentifierProperty.js +40 -49
- package/dist/generators/ts/_ObjectType/ObjectType_RdfTypeProperty.d.ts +8 -9
- package/dist/generators/ts/_ObjectType/ObjectType_RdfTypeProperty.js +47 -14
- package/dist/generators/ts/_ObjectType/ObjectType_ShaclProperty.d.ts +10 -10
- package/dist/generators/ts/_ObjectType/ObjectType_ShaclProperty.js +41 -57
- package/dist/generators/ts/_ObjectType/ObjectType__fromRdfResourceFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_fromRdfResourceFunctionExpression.js → ObjectType__fromRdfResourceFunction.js} +14 -11
- package/dist/generators/ts/_ObjectType/ObjectType__toRdfResourceFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType__toRdfResourceFunction.js +32 -0
- package/dist/generators/ts/_ObjectType/ObjectType_conversionFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectType/ObjectType_conversionFunction.js +28 -0
- package/dist/generators/ts/_ObjectType/ObjectType_createFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_createFunction.js +31 -0
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionParameters.d.ts +3 -0
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionParameters.js +29 -0
- package/dist/generators/ts/_ObjectType/ObjectType_createUnsafeFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_createUnsafeFunction.js +10 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_equalsFunctionExpression.d.ts → ObjectType_equalsFunction.d.ts} +2 -1
- package/dist/generators/ts/_ObjectType/{ObjectType_equalsFunctionExpression.js → ObjectType_equalsFunction.js} +6 -4
- package/dist/generators/ts/_ObjectType/{ObjectType_filterFunctionExpression.d.ts → ObjectType_filterFunction.d.ts} +2 -1
- package/dist/generators/ts/_ObjectType/{ObjectType_filterFunctionExpression.js → ObjectType_filterFunction.js} +5 -2
- package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlConstructTriplesFunctionExpression.d.ts → ObjectType_focusSparqlConstructTriplesFunction.d.ts} +3 -3
- package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlConstructTriplesFunctionExpression.js → ObjectType_focusSparqlConstructTriplesFunction.js} +11 -4
- package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlWherePatternsFunctionExpression.d.ts → ObjectType_focusSparqlWherePatternsFunction.d.ts} +3 -3
- package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlWherePatternsFunctionExpression.js → ObjectType_focusSparqlWherePatternsFunction.js} +11 -4
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonObjectFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonObjectFunction.js +19 -0
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunction.js +9 -0
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceValuesFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceValuesFunction.js +8 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_hashFunctionExpression.d.ts → ObjectType_hashFunction.d.ts} +2 -1
- package/dist/generators/ts/_ObjectType/{ObjectType_hashFunctionExpression.js → ObjectType_hashFunction.js} +10 -14
- package/dist/generators/ts/_ObjectType/ObjectType_identifierTypeDeclarations.d.ts +6 -2
- package/dist/generators/ts/_ObjectType/ObjectType_identifierTypeDeclarations.js +1 -2
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunction.d.ts +20 -0
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunction.js +39 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_sparqlConstructQueryStringFunctionDeclaration.d.ts → ObjectType_sparqlConstructQueryStringFunction.d.ts} +11 -4
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunction.js +11 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonObjectFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonObjectFunction.js +16 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toLoggableFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toLoggableFunction.js +11 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunction.js +12 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceValuesFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceValuesFunction.js +8 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_toStringFunctionExpression.d.ts → ObjectType_toStringFunction.d.ts} +2 -1
- package/dist/generators/ts/_ObjectType/ObjectType_toStringFunction.js +10 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunction.js +17 -0
- package/dist/generators/ts/_ObjectType/ObjectType_typeGuardFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectType/ObjectType_typeGuardFunction.js +18 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_valueSparqlConstructTriplesFunctionExpression.d.ts → ObjectType_valueSparqlConstructTriplesFunction.d.ts} +1 -1
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunction.js +7 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_valueSparqlWherePatternsFunctionExpression.d.ts → ObjectType_valueSparqlWherePatternsFunction.d.ts} +1 -1
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunction.js +9 -0
- package/dist/generators/ts/_snippets/snippets_BooleanSchema.js +1 -0
- package/dist/generators/ts/_snippets/snippets_DateSchema.js +1 -0
- package/dist/generators/ts/_snippets/snippets_FilterFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_FilterFunction.js +3 -0
- package/dist/generators/ts/_snippets/snippets_FromJsonObjectFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_FromJsonObjectFunction.js +21 -0
- package/dist/generators/ts/_snippets/snippets_FromJsonValueFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_FromJsonValueFunction.js +21 -0
- package/dist/generators/ts/_snippets/snippets_HashFunction.js +1 -1
- package/dist/generators/ts/_snippets/snippets_Hasher.js +1 -1
- package/dist/generators/ts/_snippets/snippets_IdentifierJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_IdentifierJsonObject.js +12 -0
- package/dist/generators/ts/_snippets/snippets_LangStringJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_LangStringJsonObject.js +14 -0
- package/dist/generators/ts/_snippets/snippets_Lazy.js +8 -1
- package/dist/generators/ts/_snippets/snippets_LazyOption.js +17 -1
- package/dist/generators/ts/_snippets/snippets_LazySet.js +8 -1
- package/dist/generators/ts/_snippets/snippets_LiteralJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_LiteralJsonObject.js +16 -0
- package/dist/generators/ts/_snippets/snippets_NumericSchema.js +1 -0
- package/dist/generators/ts/_snippets/snippets_ObjectTypeGuardFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ObjectTypeGuardFunction.js +4 -0
- package/dist/generators/ts/_snippets/snippets_Primitive.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_Primitive.js +4 -0
- package/dist/generators/ts/_snippets/snippets_ProblemDetailsJson.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ProblemDetailsJson.js +41 -0
- package/dist/generators/ts/_snippets/snippets_PropertyPath.js +11 -6
- package/dist/generators/ts/_snippets/snippets_SparqlConstructQueryFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_SparqlConstructQueryFunction.js +12 -0
- package/dist/generators/ts/_snippets/snippets_SparqlConstructQueryStringFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_SparqlConstructQueryStringFunction.js +13 -0
- package/dist/generators/ts/_snippets/snippets_StringSchema.js +1 -0
- package/dist/generators/ts/_snippets/snippets_TermJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_TermJsonObject.js +8 -0
- package/dist/generators/ts/_snippets/snippets_ToJsonObjectFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ToJsonObjectFunction.js +3 -0
- package/dist/generators/ts/_snippets/snippets_ToJsonValueFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ToJsonValueFunction.js +3 -0
- package/dist/generators/ts/_snippets/snippets_ToLoggableFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ToLoggableFunction.js +3 -0
- package/dist/generators/ts/_snippets/snippets_ToRdfResourceFunction.js +1 -1
- package/dist/generators/ts/_snippets/snippets_ToStringFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ToStringFunction.js +3 -0
- package/dist/generators/ts/_snippets/snippets_ToStringRecordFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ToStringRecordFunction.js +3 -0
- package/dist/generators/ts/_snippets/snippets_TypedLiteralJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_TypedLiteralJsonObject.js +14 -0
- package/dist/generators/ts/_snippets/snippets__ToRdfResourceFunction.js +1 -1
- package/dist/generators/ts/_snippets/snippets_arrayFromJsonArray.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_arrayFromJsonArray.js +13 -0
- package/dist/generators/ts/_snippets/snippets_arrayToJsonArray.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_arrayToJsonArray.js +6 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromRdfResourceValues.js +3 -3
- package/dist/generators/ts/_snippets/snippets_bigDecimalLiteral.js +3 -2
- package/dist/generators/ts/_snippets/snippets_bigDecimalToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalToJsonObject.js +6 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalToJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalToJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_bigIntFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigIntFromJsonObject.js +9 -0
- package/dist/generators/ts/_snippets/snippets_bigIntFromJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigIntFromJsonString.js +8 -0
- package/dist/generators/ts/_snippets/snippets_bigIntFromRdfResourceValues.js +2 -2
- package/dist/generators/ts/_snippets/snippets_bigIntToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigIntToJsonObject.js +6 -0
- package/dist/generators/ts/_snippets/snippets_bigIntToJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigIntToJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeFromJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeFromJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeFromJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeFromRdfResourceValues.js +2 -3
- package/dist/generators/ts/_snippets/snippets_blankNodeToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeToJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeToJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeToJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_booleanFromJsonBoolean.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_booleanFromJsonBoolean.js +6 -0
- package/dist/generators/ts/_snippets/snippets_booleanFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_booleanFromJsonObject.js +9 -0
- package/dist/generators/ts/_snippets/snippets_constrainPrimitive.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_constrainPrimitive.js +12 -0
- package/dist/generators/ts/_snippets/snippets_convertToLazy.js +2 -13
- package/dist/generators/ts/_snippets/snippets_convertToLazyOption.js +2 -13
- package/dist/generators/ts/_snippets/snippets_convertToLazySet.js +2 -15
- package/dist/generators/ts/_snippets/snippets_dateFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_dateFromJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_dateFromJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_dateFromJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_dateFromRdfResourceValues.js +3 -4
- package/dist/generators/ts/_snippets/snippets_dateSparqlWherePatterns.js +7 -6
- package/dist/generators/ts/_snippets/snippets_dateTimeFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_dateTimeFromJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_dateTimeFromRdfResourceValues.js +3 -4
- package/dist/generators/ts/_snippets/snippets_dateTimeToJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_dateTimeToJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_dateToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_dateToJsonObject.js +6 -0
- package/dist/generators/ts/_snippets/snippets_dateToJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_dateToJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_defaultValueFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_defaultValueFromJsonObject.js +9 -0
- package/dist/generators/ts/_snippets/snippets_defaultValueFromJsonValue.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_defaultValueFromJsonValue.js +9 -0
- package/dist/generators/ts/_snippets/snippets_errorToProblemDetailsJson.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_errorToProblemDetailsJson.js +27 -0
- package/dist/generators/ts/_snippets/snippets_filterBigDecimal.js +1 -1
- package/dist/generators/ts/_snippets/snippets_filterBlankNode.js +1 -3
- package/dist/generators/ts/_snippets/snippets_filterBoolean.js +1 -1
- package/dist/generators/ts/_snippets/snippets_filterDate.js +1 -1
- package/dist/generators/ts/_snippets/snippets_filterIdentifier.js +1 -1
- package/dist/generators/ts/_snippets/snippets_filterIri.js +1 -1
- package/dist/generators/ts/_snippets/snippets_filterLiteral.js +1 -3
- package/dist/generators/ts/_snippets/snippets_filterString.js +1 -1
- package/dist/generators/ts/_snippets/snippets_filterTerm.js +17 -17
- package/dist/generators/ts/_snippets/snippets_floatFromJsonNumber.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_floatFromJsonNumber.js +6 -0
- package/dist/generators/ts/_snippets/snippets_floatFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_floatFromJsonObject.js +9 -0
- package/dist/generators/ts/_snippets/snippets_hashArray.js +1 -2
- package/dist/generators/ts/_snippets/snippets_hashBigDecimal.js +1 -2
- package/dist/generators/ts/_snippets/snippets_hashBoolean.js +1 -2
- package/dist/generators/ts/_snippets/snippets_hashDate.js +1 -2
- package/dist/generators/ts/_snippets/snippets_hashDateTime.js +1 -2
- package/dist/generators/ts/_snippets/snippets_hashMaybe.js +1 -2
- package/dist/generators/ts/_snippets/snippets_hashNumeric.js +1 -2
- package/dist/generators/ts/_snippets/snippets_hashString.js +1 -2
- package/dist/generators/ts/_snippets/snippets_hashTerm.js +1 -2
- package/dist/generators/ts/_snippets/snippets_identifierFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_identifierFromJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_identifierFromJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_identifierFromJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_identifierFromRdfResourceValues.js +2 -3
- package/dist/generators/ts/_snippets/snippets_identifierToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_identifierToJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_identifierToJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_identifierToJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_intFromJsonNumber.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_intFromJsonNumber.js +6 -0
- package/dist/generators/ts/_snippets/snippets_intFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_intFromJsonObject.js +9 -0
- package/dist/generators/ts/_snippets/snippets_iriFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_iriFromJsonObject.js +6 -0
- package/dist/generators/ts/_snippets/snippets_iriFromJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_iriFromJsonString.js +6 -0
- package/dist/generators/ts/_snippets/snippets_iriToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_iriToJsonObject.js +6 -0
- package/dist/generators/ts/_snippets/snippets_iriToJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_iriToJsonString.js +6 -0
- package/dist/generators/ts/_snippets/snippets_langStringFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_langStringFromJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_langStringFromRdfResourceValues.js +2 -3
- package/dist/generators/ts/_snippets/snippets_langStringToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_langStringToJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_listFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_listFromJsonObject.js +10 -0
- package/dist/generators/ts/_snippets/snippets_listSparqlConstructTriples.js +6 -5
- package/dist/generators/ts/_snippets/snippets_listToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_listToJsonObject.js +6 -0
- package/dist/generators/ts/_snippets/snippets_literalFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_literalFromJsonObject.js +16 -0
- package/dist/generators/ts/_snippets/snippets_literalFromRdfResourceValues.js +2 -3
- package/dist/generators/ts/_snippets/snippets_literalToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_literalToJsonObject.js +15 -0
- package/dist/generators/ts/_snippets/snippets_maybeFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_maybeFromJsonObject.js +12 -0
- package/dist/generators/ts/_snippets/snippets_maybeFromJsonValue.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_maybeFromJsonValue.js +12 -0
- package/dist/generators/ts/_snippets/snippets_maybeToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_maybeToJsonObject.js +6 -0
- package/dist/generators/ts/_snippets/snippets_maybeToJsonValue.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_maybeToJsonValue.js +6 -0
- package/dist/generators/ts/_snippets/snippets_missingResolver.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_missingResolver.js +3 -0
- package/dist/generators/ts/_snippets/snippets_primitiveToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_primitiveToJsonObject.js +6 -0
- package/dist/generators/ts/_snippets/snippets_primitiveToJsonValue.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_primitiveToJsonValue.js +6 -0
- package/dist/generators/ts/_snippets/snippets_sparqlInstancesOfPattern.js +4 -3
- package/dist/generators/ts/_snippets/snippets_stringFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_stringFromJsonObject.js +9 -0
- package/dist/generators/ts/_snippets/snippets_stringFromJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_stringFromJsonString.js +6 -0
- package/dist/generators/ts/_snippets/snippets_termFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_termFromJsonObject.js +31 -0
- package/dist/generators/ts/_snippets/snippets_termToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_termToJsonObject.js +14 -0
- package/dist/generators/ts/_snippets/snippets_typedLiteralToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_typedLiteralToJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_wrap_ToRdfResourceFunction.js +23 -3
- package/dist/generators/ts/_snippets/snippets_zValidator.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_zValidator.js +16 -0
- package/dist/generators/ts/rdfjsTermExpression.d.ts +1 -1
- package/dist/generators/ts/rdfjsTermExpression.js +5 -54
- package/dist/input/ShapesGraph.d.ts +7 -3
- package/dist/input/ShapesGraph.js +74 -3
- package/dist/input/index.d.ts +3 -1
- package/dist/input/index.js +1 -1
- package/dist/input/input.shaclmate.d.ts +1494 -240
- package/dist/input/input.shaclmate.js +1159 -387
- package/dist/input/input.shaclmate.ttl +245 -0
- package/package.json +331 -98
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_fromJsonFunctionExpression.d.ts +0 -5
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_fromJsonFunctionExpression.js +0 -14
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_jsonSchemaExpression.d.ts +0 -5
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_jsonSchemaExpression.js +0 -32
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_jsonTypeLiteral.d.ts +0 -5
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_jsonTypeLiteral.js +0 -26
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toJsonFunctionExpression.d.ts +0 -5
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toJsonFunctionExpression.js +0 -10
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toRdfResourceValuesFunctionExpression.js +0 -30
- package/dist/generators/ts/_AbstractType/AbstractType_DiscriminantProperty.d.ts +0 -9
- package/dist/generators/ts/_AbstractType/AbstractType_DiscriminantProperty.js +0 -2
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_focusSparqlConstructTriplesFunctionDeclaration.js +0 -13
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_focusSparqlWherePatternsFunctionDeclaration.js +0 -32
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_fromRdfResourceFunctionDeclaration.js +0 -17
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_graphqlTypeVariableStatement.js +0 -16
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_identifierTypeDeclarations.d.ts +0 -4
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_identifierTypeDeclarations.js +0 -14
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_schemaVariableStatement.d.ts +0 -4
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_toRdfResourceFunctionDeclaration.js +0 -15
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_typeGuardFunctionDeclaration.js +0 -16
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.js +0 -29
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionExpression.js +0 -12
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_jsonParseFunctionDeclaration.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_jsonParseFunctionDeclaration.js +0 -10
- package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaExpression.js +0 -22
- package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeExpression.js +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionExpression.js +0 -17
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.d.ts +0 -10
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.js +0 -35
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunctionDeclaration.js +0 -8
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionExpression.js +0 -12
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionExpression.js +0 -26
- package/dist/generators/ts/_ObjectType/ObjectType_toStringFunctionExpression.js +0 -7
- package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunctionExpression.js +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_typeGuardFunctionExpression.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_typeGuardFunctionExpression.js +0 -14
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionExpression.js +0 -8
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionExpression.js +0 -10
- package/dist/generators/ts/_snippets/snippets_RdfVocabularies.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_RdfVocabularies.js +0 -42
|
@@ -8,14 +8,31 @@ import { Maybe } from "purify-ts";
|
|
|
8
8
|
import { invariant } from "ts-invariant";
|
|
9
9
|
import { Memoize } from "typescript-memoize";
|
|
10
10
|
import { AbstractContainerType } from "./AbstractContainerType.js";
|
|
11
|
+
import { InlineCallable } from "./InlineCallable.js";
|
|
12
|
+
import { ReferenceCallable } from "./ReferenceCallable.js";
|
|
11
13
|
import { code } from "./ts-poet-wrapper.js";
|
|
12
14
|
export class DefaultValueType extends AbstractContainerType {
|
|
13
15
|
defaultValue;
|
|
14
|
-
|
|
16
|
+
equalsFunction = this.itemType.equalsFunction;
|
|
17
|
+
filterFunction = this.itemType.filterFunction;
|
|
18
|
+
filterType = this.itemType.filterType;
|
|
19
|
+
schemaType = code `${this.reusables.snippets.DefaultValueSchema}<${this.itemType.schemaType}>`;
|
|
20
|
+
fromRdfResourceValuesFunction = new InlineCallable(code `${this.reusables.snippets.defaultValueFromRdfResourceValues}<${this.itemType.expression}, ${this.itemType.schemaType}>(${this.itemType.fromRdfResourceValuesFunction.unannotatedUsage})`);
|
|
15
21
|
graphqlArgs = Maybe.empty();
|
|
22
|
+
graphqlType = this.itemType.graphqlType;
|
|
23
|
+
hashFunction = this.itemType.hashFunction;
|
|
24
|
+
inlineExpression = this.itemType.expression;
|
|
16
25
|
jsTypes = this.itemType.jsTypes;
|
|
26
|
+
jsonObjectType = this.itemType.jsonObjectType;
|
|
27
|
+
jsonValueType = this.itemType.jsonValueType;
|
|
17
28
|
kind = "DefaultValue";
|
|
29
|
+
mutable = this.itemType.mutable;
|
|
30
|
+
toJsonObjectFunction = this.itemType.toJsonObjectFunction;
|
|
31
|
+
toJsonValueFunction = this.itemType.toJsonValueFunction;
|
|
32
|
+
toRdfResourceValueTypes = this.itemType.toRdfResourceValueTypes;
|
|
18
33
|
validationFunction = this.itemType.validationFunction;
|
|
34
|
+
valueSparqlConstructTriplesFunction = this.itemType.valueSparqlConstructTriplesFunction;
|
|
35
|
+
valueSparqlWherePatternsFunction = new InlineCallable(code `${this.reusables.snippets.defaultValueSparqlWherePatterns}<${this.itemType.filterType}, ${this.itemType.schemaType}>(${this.itemType.valueSparqlWherePatternsFunction.unannotatedUsage})`);
|
|
19
36
|
constructor({ defaultValue, ...superParameters }) {
|
|
20
37
|
super(superParameters);
|
|
21
38
|
this.defaultValue = defaultValue;
|
|
@@ -32,41 +49,11 @@ export class DefaultValueType extends AbstractContainerType {
|
|
|
32
49
|
}),
|
|
33
50
|
});
|
|
34
51
|
}
|
|
35
|
-
get
|
|
36
|
-
return this.itemType.
|
|
52
|
+
get fromJsonObjectFunction() {
|
|
53
|
+
return new ReferenceCallable(code `${this.reusables.snippets.defaultValueFromJsonObject}(${this.itemType.fromJsonObjectFunction.annotatedUsage})`);
|
|
37
54
|
}
|
|
38
|
-
get
|
|
39
|
-
return this.itemType.
|
|
40
|
-
}
|
|
41
|
-
get filterType() {
|
|
42
|
-
return this.itemType.filterType;
|
|
43
|
-
}
|
|
44
|
-
get fromRdfResourceValuesFunction() {
|
|
45
|
-
return code `${this.reusables.snippets.defaultValueFromRdfResourceValues}<${this.itemType.expression}, ${this.itemType.schemaType}>(${this.itemType.fromRdfResourceValuesFunction})`;
|
|
46
|
-
}
|
|
47
|
-
get graphqlType() {
|
|
48
|
-
return this.itemType.graphqlType;
|
|
49
|
-
}
|
|
50
|
-
get hashFunction() {
|
|
51
|
-
return this.itemType.hashFunction;
|
|
52
|
-
}
|
|
53
|
-
get mutable() {
|
|
54
|
-
return this.itemType.mutable;
|
|
55
|
-
}
|
|
56
|
-
get schemaType() {
|
|
57
|
-
return code `${this.reusables.snippets.DefaultValueSchema}<${this.itemType.schemaType}>`;
|
|
58
|
-
}
|
|
59
|
-
get toRdfResourceValueTypes() {
|
|
60
|
-
return this.itemType.toRdfResourceValueTypes;
|
|
61
|
-
}
|
|
62
|
-
get valueSparqlConstructTriplesFunction() {
|
|
63
|
-
return this.itemType.valueSparqlConstructTriplesFunction;
|
|
64
|
-
}
|
|
65
|
-
get valueSparqlWherePatternsFunction() {
|
|
66
|
-
return code `${this.reusables.snippets.defaultValueSparqlWherePatterns}<${this.itemType.filterType}, ${this.itemType.schemaType}>(${this.itemType.valueSparqlWherePatternsFunction})`;
|
|
67
|
-
}
|
|
68
|
-
get inlineExpression() {
|
|
69
|
-
return this.itemType.expression;
|
|
55
|
+
get fromJsonValueFunction() {
|
|
56
|
+
return new ReferenceCallable(code `${this.reusables.snippets.defaultValueFromJsonValue}(${this.itemType.fromJsonValueFunction.annotatedUsage})`);
|
|
70
57
|
}
|
|
71
58
|
get schemaInitializers() {
|
|
72
59
|
return super.schemaInitializers.concat(code `defaultValue: ${this.rdfjsTermExpression(this.defaultValue)}`);
|
|
@@ -78,36 +65,25 @@ export class DefaultValueType extends AbstractContainerType {
|
|
|
78
65
|
case "Literal":
|
|
79
66
|
case "Term":
|
|
80
67
|
return this.rdfjsTermExpression(this.defaultValue);
|
|
68
|
+
case "DiscriminatedUnion":
|
|
81
69
|
case "List":
|
|
82
70
|
case "Object":
|
|
83
71
|
case "ObjectDiscriminatedUnion":
|
|
84
|
-
case "
|
|
72
|
+
case "ObjectIntersection":
|
|
85
73
|
throw new RangeError(`not implemented ${this.itemType.kind}`);
|
|
86
74
|
}
|
|
87
75
|
invariant(this.defaultValue.termType === "Literal");
|
|
88
76
|
return this.itemType.valueExpression(this.defaultValue);
|
|
89
77
|
}
|
|
90
|
-
fromJsonExpression(parameters) {
|
|
91
|
-
return this.itemType.fromJsonExpression(parameters);
|
|
92
|
-
}
|
|
93
78
|
graphqlResolveExpression(parameters) {
|
|
94
79
|
return this.itemType.graphqlResolveExpression(parameters);
|
|
95
80
|
}
|
|
96
|
-
|
|
97
|
-
return this.itemType.
|
|
98
|
-
}
|
|
99
|
-
jsonType(parameters) {
|
|
100
|
-
return this.itemType.jsonType(parameters);
|
|
101
|
-
}
|
|
102
|
-
jsonUiSchemaElement(parameters) {
|
|
103
|
-
return this.itemType.jsonUiSchemaElement(parameters);
|
|
104
|
-
}
|
|
105
|
-
toJsonExpression(parameters) {
|
|
106
|
-
return this.itemType.toJsonExpression(parameters);
|
|
81
|
+
toLoggableExpression(parameters) {
|
|
82
|
+
return this.itemType.toLoggableExpression(parameters);
|
|
107
83
|
}
|
|
108
84
|
toRdfResourceValuesExpression(parameters) {
|
|
109
85
|
const { variables } = parameters;
|
|
110
|
-
return code `${this.itemType.equalsFunction}(${variables.value}, ${this.defaultValueExpression}).isLeft() ? ${this.itemType.toRdfResourceValuesExpression(parameters)} : []`;
|
|
86
|
+
return code `${this.itemType.equalsFunction.annotatedUsage}(${variables.value}, ${this.defaultValueExpression}).isLeft() ? ${this.itemType.toRdfResourceValuesExpression(parameters)} : []`;
|
|
111
87
|
}
|
|
112
88
|
toStringExpression(parameters) {
|
|
113
89
|
return this.itemType.toStringExpression(parameters);
|
|
@@ -118,16 +94,10 @@ __decorate([
|
|
|
118
94
|
], DefaultValueType.prototype, "conversionFunction", null);
|
|
119
95
|
__decorate([
|
|
120
96
|
Memoize()
|
|
121
|
-
], DefaultValueType.prototype, "
|
|
122
|
-
__decorate([
|
|
123
|
-
Memoize()
|
|
124
|
-
], DefaultValueType.prototype, "schemaType", null);
|
|
125
|
-
__decorate([
|
|
126
|
-
Memoize()
|
|
127
|
-
], DefaultValueType.prototype, "valueSparqlConstructTriplesFunction", null);
|
|
97
|
+
], DefaultValueType.prototype, "fromJsonObjectFunction", null);
|
|
128
98
|
__decorate([
|
|
129
99
|
Memoize()
|
|
130
|
-
], DefaultValueType.prototype, "
|
|
100
|
+
], DefaultValueType.prototype, "fromJsonValueFunction", null);
|
|
131
101
|
__decorate([
|
|
132
102
|
Memoize()
|
|
133
103
|
], DefaultValueType.prototype, "defaultValueExpression", null);
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import type { Literal } from "@rdfjs/types";
|
|
2
2
|
import { Maybe } from "purify-ts";
|
|
3
3
|
import { AbstractNumericType } from "./AbstractNumericType.js";
|
|
4
|
+
import type { Callable } from "./Callable.js";
|
|
4
5
|
import { type Code } from "./ts-poet-wrapper.js";
|
|
5
6
|
export declare class FloatType extends AbstractNumericType<number> {
|
|
7
|
+
protected readonly decodedIn: number[];
|
|
6
8
|
readonly conversionFunction: Maybe<AbstractNumericType.ConversionFunction>;
|
|
9
|
+
readonly graphqlType: import("./_AbstractType/AbstractType_GraphqlType.js").AbstractType_GraphqlType;
|
|
7
10
|
readonly jsTypes: readonly [{
|
|
8
11
|
readonly typeof: "number";
|
|
9
12
|
}];
|
|
13
|
+
readonly jsonValueType: AbstractNumericType.JsonType;
|
|
10
14
|
readonly kind = "Float";
|
|
11
|
-
get
|
|
12
|
-
get
|
|
15
|
+
get fromJsonObjectFunction(): Callable;
|
|
16
|
+
get fromJsonValueFunction(): Callable;
|
|
17
|
+
get fromRdfResourceValuesFunction(): Callable;
|
|
13
18
|
valueExpression(literal: Literal | number): Code;
|
|
14
19
|
}
|
|
15
20
|
//# sourceMappingURL=FloatType.d.ts.map
|
|
@@ -8,16 +8,23 @@ import { LiteralDecoder } from "@rdfx/literal";
|
|
|
8
8
|
import { Maybe } from "purify-ts";
|
|
9
9
|
import { Memoize } from "typescript-memoize";
|
|
10
10
|
import { AbstractNumericType } from "./AbstractNumericType.js";
|
|
11
|
+
import { ReferenceCallable } from "./ReferenceCallable.js";
|
|
11
12
|
import { code } from "./ts-poet-wrapper.js";
|
|
12
13
|
export class FloatType extends AbstractNumericType {
|
|
14
|
+
decodedIn = this.in_.map((in_) => LiteralDecoder.decodeFloatLiteral(in_).unsafeCoerce());
|
|
13
15
|
conversionFunction = Maybe.empty();
|
|
16
|
+
graphqlType = new AbstractNumericType.GraphqlType(code `${this.reusables.imports.GraphQLFloat}`, this.reusables);
|
|
14
17
|
jsTypes = [{ typeof: "number" }];
|
|
18
|
+
jsonValueType = this.jsonTypeFactory.createJsonNumberType({ in_: this.decodedIn });
|
|
15
19
|
kind = "Float";
|
|
16
|
-
get
|
|
17
|
-
return code `${this.reusables.snippets.
|
|
20
|
+
get fromJsonObjectFunction() {
|
|
21
|
+
return new ReferenceCallable(code `${this.reusables.snippets.floatFromJsonObject}<${this.expression}>`);
|
|
22
|
+
}
|
|
23
|
+
get fromJsonValueFunction() {
|
|
24
|
+
return new ReferenceCallable(code `${this.reusables.snippets.floatFromJsonNumber}<${this.expression}>`);
|
|
18
25
|
}
|
|
19
|
-
get
|
|
20
|
-
return new
|
|
26
|
+
get fromRdfResourceValuesFunction() {
|
|
27
|
+
return new ReferenceCallable(code `${this.reusables.snippets.floatFromRdfResourceValues}<${this.expression}>`);
|
|
21
28
|
}
|
|
22
29
|
valueExpression(literal) {
|
|
23
30
|
return code `${typeof literal === "number" ? literal : LiteralDecoder.decodeFloatLiteral(literal).unsafeCoerce()}`;
|
|
@@ -25,8 +32,11 @@ export class FloatType extends AbstractNumericType {
|
|
|
25
32
|
}
|
|
26
33
|
__decorate([
|
|
27
34
|
Memoize()
|
|
28
|
-
], FloatType.prototype, "
|
|
35
|
+
], FloatType.prototype, "fromJsonObjectFunction", null);
|
|
29
36
|
__decorate([
|
|
30
37
|
Memoize()
|
|
31
|
-
], FloatType.prototype, "
|
|
38
|
+
], FloatType.prototype, "fromJsonValueFunction", null);
|
|
39
|
+
__decorate([
|
|
40
|
+
Memoize()
|
|
41
|
+
], FloatType.prototype, "fromRdfResourceValuesFunction", null);
|
|
32
42
|
//# sourceMappingURL=FloatType.js.map
|
|
@@ -46,7 +46,7 @@ export const graphqlSchema = new ${this.reusables.imports.GraphQLSchema}({ query
|
|
|
46
46
|
},
|
|
47
47
|
resolve: code `\
|
|
48
48
|
async (_source, args: { limit: number | null; offset: number | null; }, { objectSet }): Promise<readonly string[]> =>
|
|
49
|
-
(await objectSet.${namedObjectType.objectSetMethodNames.objectIdentifiers}({ limit: args.limit !== null ? args.limit : undefined, offset: args.offset !== null ? args.offset : undefined })).unsafeCoerce().map(${
|
|
49
|
+
(await objectSet.${namedObjectType.objectSetMethodNames.objectIdentifiers}({ limit: args.limit !== null ? args.limit : undefined, offset: args.offset !== null ? args.offset : undefined })).unsafeCoerce().map(${this.reusables.imports.NTriplesIdentifier}.stringify)`,
|
|
50
50
|
type: code `new ${this.reusables.imports.GraphQLNonNull}(new ${this.reusables.imports.GraphQLList}(${this.reusables.imports.GraphQLString}))`,
|
|
51
51
|
};
|
|
52
52
|
fields[namedObjectType.objectSetMethodNames.objects] = {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import type { BlankNode, NamedNode } from "@rdfjs/types";
|
|
2
|
-
import {
|
|
2
|
+
import type { IdentifierNodeKind } from "@shaclmate/shacl-ast";
|
|
3
3
|
import { Maybe } from "purify-ts";
|
|
4
4
|
import { AbstractIdentifierType } from "./AbstractIdentifierType.js";
|
|
5
|
-
import {
|
|
5
|
+
import { ReferenceCallable } from "./ReferenceCallable.js";
|
|
6
6
|
export declare class IdentifierType extends AbstractIdentifierType<BlankNode | NamedNode> {
|
|
7
|
-
protected readonly inlineExpression: Code;
|
|
7
|
+
protected readonly inlineExpression: import("ts-poet/build/Code.js").Code;
|
|
8
8
|
readonly conversionFunction: Maybe<AbstractIdentifierType.ConversionFunction>;
|
|
9
|
-
readonly filterFunction:
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
9
|
+
readonly filterFunction: ReferenceCallable;
|
|
10
|
+
readonly fromJsonValueFunction: ReferenceCallable;
|
|
11
|
+
readonly fromJsonObjectFunction: ReferenceCallable;
|
|
12
|
+
readonly filterType: import("ts-poet/build/Code.js").Code;
|
|
13
|
+
readonly fromRdfResourceValuesFunction: ReferenceCallable;
|
|
12
14
|
readonly kind = "Identifier";
|
|
13
15
|
readonly nodeKinds: ReadonlySet<IdentifierNodeKind>;
|
|
14
|
-
readonly parseFunction:
|
|
15
|
-
readonly schemaType: Code;
|
|
16
|
-
readonly
|
|
16
|
+
readonly parseFunction: ReferenceCallable;
|
|
17
|
+
readonly schemaType: import("ts-poet/build/Code.js").Code;
|
|
18
|
+
readonly toJsonValueFunction: ReferenceCallable;
|
|
19
|
+
readonly toJsonObjectFunction: ReferenceCallable;
|
|
20
|
+
readonly valueSparqlWherePatternsFunction: ReferenceCallable;
|
|
17
21
|
constructor(parameters: Omit<ConstructorParameters<typeof AbstractIdentifierType<BlankNode | NamedNode>>[0], "hasValues" | "in_">);
|
|
18
|
-
fromJsonExpression({ variables, }: Parameters<AbstractIdentifierType<BlankNode | NamedNode>["fromJsonExpression"]>[0]): Code;
|
|
19
|
-
jsonSchema({ includeDiscriminantProperty, }: Parameters<AbstractIdentifierType<BlankNode | NamedNode>["jsonSchema"]>[0]): Code;
|
|
20
|
-
jsonType(parameters?: Parameters<AbstractIdentifierType<BlankNode | NamedNode>["jsonType"]>[0]): AbstractIdentifierType.JsonType;
|
|
21
|
-
toJsonExpression({ includeDiscriminantProperty, variables, }: Parameters<AbstractIdentifierType<BlankNode | NamedNode>["toJsonExpression"]>[0]): Code;
|
|
22
22
|
}
|
|
23
23
|
//# sourceMappingURL=IdentifierType.d.ts.map
|
|
@@ -1,14 +1,7 @@
|
|
|
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 { NodeKind } from "@shaclmate/shacl-ast";
|
|
8
1
|
import { Maybe } from "purify-ts";
|
|
9
|
-
import { Memoize } from "typescript-memoize";
|
|
10
2
|
import { AbstractIdentifierType } from "./AbstractIdentifierType.js";
|
|
11
|
-
import {
|
|
3
|
+
import { ReferenceCallable } from "./ReferenceCallable.js";
|
|
4
|
+
import { code } from "./ts-poet-wrapper.js";
|
|
12
5
|
export class IdentifierType extends AbstractIdentifierType {
|
|
13
6
|
inlineExpression = code `(${this.reusables.imports.BlankNode} | ${this.reusables.imports.NamedNode})`;
|
|
14
7
|
conversionFunction = Maybe.of({
|
|
@@ -34,14 +27,18 @@ export class IdentifierType extends AbstractIdentifierType {
|
|
|
34
27
|
},
|
|
35
28
|
],
|
|
36
29
|
});
|
|
37
|
-
filterFunction =
|
|
30
|
+
filterFunction = new ReferenceCallable(this.reusables.snippets.filterIdentifier);
|
|
31
|
+
fromJsonValueFunction = new ReferenceCallable(this.reusables.snippets.identifierFromJsonString);
|
|
32
|
+
fromJsonObjectFunction = new ReferenceCallable(this.reusables.snippets.identifierFromJsonObject);
|
|
38
33
|
filterType = code `${this.reusables.snippets.IdentifierFilter}`;
|
|
39
|
-
fromRdfResourceValuesFunction =
|
|
34
|
+
fromRdfResourceValuesFunction = new ReferenceCallable(this.reusables.snippets.identifierFromRdfResourceValues);
|
|
40
35
|
kind = "Identifier";
|
|
41
36
|
nodeKinds = nodeKinds;
|
|
42
|
-
parseFunction =
|
|
37
|
+
parseFunction = new ReferenceCallable(this.reusables.snippets.parseIdentifier);
|
|
43
38
|
schemaType = code `${this.reusables.snippets.IdentifierSchema}`;
|
|
44
|
-
|
|
39
|
+
toJsonValueFunction = new ReferenceCallable(this.reusables.snippets.identifierToJsonString);
|
|
40
|
+
toJsonObjectFunction = new ReferenceCallable(this.reusables.snippets.identifierToJsonObject);
|
|
41
|
+
valueSparqlWherePatternsFunction = new ReferenceCallable(this.reusables.snippets.identifierSparqlWherePatterns);
|
|
45
42
|
constructor(parameters) {
|
|
46
43
|
super({
|
|
47
44
|
...parameters,
|
|
@@ -49,33 +46,7 @@ export class IdentifierType extends AbstractIdentifierType {
|
|
|
49
46
|
in_: [],
|
|
50
47
|
});
|
|
51
48
|
}
|
|
52
|
-
fromJsonExpression({ variables, }) {
|
|
53
|
-
return code `${this.reusables.imports.Either}.of<Error, ${this.expression}>((${variables.value}["@id"].startsWith("_:") ? ${this.reusables.imports.dataFactory}.blankNode(${variables.value}["@id"].substring(2)) : ${this.reusables.imports.dataFactory}.namedNode(${variables.value}["@id"])))`;
|
|
54
|
-
}
|
|
55
|
-
jsonSchema({ includeDiscriminantProperty, }) {
|
|
56
|
-
const discriminantProperty = includeDiscriminantProperty
|
|
57
|
-
? code `, termType: ${this.reusables.imports.z}.enum(${arrayOf(...[...this.nodeKinds].map(NodeKind.toTermType))})`
|
|
58
|
-
: "";
|
|
59
|
-
return code `${this.reusables.imports.z}.object({ "@id": ${this.reusables.imports.z}.string().min(1)${discriminantProperty} })`;
|
|
60
|
-
}
|
|
61
|
-
jsonType(parameters) {
|
|
62
|
-
const discriminantProperty = parameters?.includeDiscriminantProperty
|
|
63
|
-
? `, readonly termType: "BlankNode" | "NamedNode"`
|
|
64
|
-
: "";
|
|
65
|
-
return new AbstractIdentifierType.JsonType(code `{ readonly "@id": string${discriminantProperty} }`);
|
|
66
|
-
}
|
|
67
|
-
toJsonExpression({ includeDiscriminantProperty, variables, }) {
|
|
68
|
-
const discriminantProperty = includeDiscriminantProperty
|
|
69
|
-
? code `, termType: ${variables.value}.termType as ${[...this.nodeKinds].map((nodeKind) => `"${NodeKind.toTermType(nodeKind)}"`).join(" | ")}`
|
|
70
|
-
: "";
|
|
71
|
-
const valueToBlankNode = code `{ "@id": \`_:\${${variables.value}.value}\`${discriminantProperty} }`;
|
|
72
|
-
const valueToNamedNode = code `{ "@id": ${variables.value}.value${discriminantProperty} }`;
|
|
73
|
-
return code `(${variables.value}.termType === "BlankNode" ? ${valueToBlankNode} : ${valueToNamedNode})`;
|
|
74
|
-
}
|
|
75
49
|
}
|
|
76
|
-
__decorate([
|
|
77
|
-
Memoize()
|
|
78
|
-
], IdentifierType.prototype, "jsonType", null);
|
|
79
50
|
const nodeKinds = new Set([
|
|
80
51
|
"BlankNode",
|
|
81
52
|
"IRI",
|
|
@@ -19,12 +19,19 @@ export declare class Imports {
|
|
|
19
19
|
readonly GraphQLSchema: import("ts-poet/build/Import.js").Import;
|
|
20
20
|
readonly GraphQLString: import("ts-poet/build/Import.js").Import;
|
|
21
21
|
readonly GraphQLUnionType: import("ts-poet/build/Import.js").Import;
|
|
22
|
+
readonly Hono: import("ts-poet/build/Import.js").Import;
|
|
23
|
+
readonly HonoEnv: import("ts-poet/build/Import.js").Import;
|
|
24
|
+
readonly HonoValidationTargets: import("ts-poet/build/Import.js").Import;
|
|
25
|
+
readonly honoZodValidator: import("ts-poet/build/Import.js").Import;
|
|
22
26
|
readonly Left: import("ts-poet/build/Import.js").Import;
|
|
23
27
|
readonly Literal: import("ts-poet/build/Import.js").Import;
|
|
28
|
+
readonly LiteralDecoder: import("ts-poet/build/Import.js").Import;
|
|
24
29
|
readonly LiteralFactory: import("ts-poet/build/Import.js").Import;
|
|
30
|
+
readonly Logger: import("ts-poet/build/Import.js").Import;
|
|
25
31
|
readonly Maybe: import("ts-poet/build/Import.js").Import;
|
|
26
32
|
readonly NamedNode: import("ts-poet/build/Import.js").Import;
|
|
27
33
|
readonly NonEmptyList: import("ts-poet/build/Import.js").Import;
|
|
34
|
+
readonly nopLogger: import("ts-poet/build/Import.js").Import;
|
|
28
35
|
readonly NTriplesIdentifier: import("ts-poet/build/Import.js").Import;
|
|
29
36
|
readonly NTriplesTerm: import("ts-poet/build/Import.js").Import;
|
|
30
37
|
readonly Quad: import("ts-poet/build/Import.js").Import;
|
|
@@ -36,5 +43,6 @@ export declare class Imports {
|
|
|
36
43
|
readonly sparqljs: import("ts-poet/build/Import.js").Import;
|
|
37
44
|
readonly Variable: import("ts-poet/build/Import.js").Import;
|
|
38
45
|
readonly z: import("ts-poet/build/Import.js").Import;
|
|
46
|
+
readonly ZodType: import("ts-poet/build/Import.js").Import;
|
|
39
47
|
}
|
|
40
48
|
//# sourceMappingURL=Imports.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { imp } from "./ts-poet-wrapper.js";
|
|
2
2
|
export class Imports {
|
|
3
3
|
BigDecimal = imp("Decimal:BigDecimal@decimal.js");
|
|
4
|
-
BlankNode = imp("BlankNode@@rdfjs/types");
|
|
4
|
+
BlankNode = imp("t:BlankNode@@rdfjs/types");
|
|
5
5
|
dataFactory = imp("dataFactory=@rdfx/data-factory");
|
|
6
|
-
DatasetCore = imp("DatasetCore@@rdfjs/types");
|
|
6
|
+
DatasetCore = imp("t:DatasetCore@@rdfjs/types");
|
|
7
7
|
datasetFactory = imp("datasetFactory@@rdfx/collection");
|
|
8
8
|
Either = imp("Either@purify-ts");
|
|
9
9
|
EitherAsync = imp("EitherAsync@purify-ts");
|
|
@@ -20,22 +20,30 @@ export class Imports {
|
|
|
20
20
|
GraphQLSchema = imp("GraphQLSchema@graphql");
|
|
21
21
|
GraphQLString = imp("GraphQLString@graphql");
|
|
22
22
|
GraphQLUnionType = imp("GraphQLUnionType@graphql");
|
|
23
|
+
Hono = imp("Hono@hono");
|
|
24
|
+
HonoEnv = imp("t:Env@hono");
|
|
25
|
+
HonoValidationTargets = imp("t:ValidationTargets:HonoValidationTargets@hono");
|
|
26
|
+
honoZodValidator = imp("zValidator:honoZodValidator@@hono/zod-validator");
|
|
23
27
|
Left = imp("Left@purify-ts");
|
|
24
|
-
Literal = imp("Literal@@rdfjs/types");
|
|
28
|
+
Literal = imp("t:Literal@@rdfjs/types");
|
|
29
|
+
LiteralDecoder = imp("LiteralDecoder@@rdfx/literal");
|
|
25
30
|
LiteralFactory = imp("LiteralFactory@@rdfx/literal");
|
|
31
|
+
Logger = imp("t:Logger@@rdfx/logger");
|
|
26
32
|
Maybe = imp("Maybe@purify-ts");
|
|
27
|
-
NamedNode = imp("NamedNode@@rdfjs/types");
|
|
33
|
+
NamedNode = imp("t:NamedNode@@rdfjs/types");
|
|
28
34
|
NonEmptyList = imp("NonEmptyList@purify-ts");
|
|
35
|
+
nopLogger = imp("nopLogger@@rdfx/logger");
|
|
29
36
|
NTriplesIdentifier = imp("NTriplesIdentifier@@rdfx/string");
|
|
30
37
|
NTriplesTerm = imp("NTriplesTerm@@rdfx/string");
|
|
31
|
-
Quad = imp("Quad@@rdfjs/types");
|
|
32
|
-
Quad_Graph = imp("Quad_Graph@@rdfjs/types");
|
|
38
|
+
Quad = imp("t:Quad@@rdfjs/types");
|
|
39
|
+
Quad_Graph = imp("t:Quad_Graph@@rdfjs/types");
|
|
33
40
|
RdfxResourcePropertyPath = imp("PropertyPath:RdfxResourcePropertyPath@@rdfx/resource");
|
|
34
41
|
Resource = imp("Resource@@rdfx/resource");
|
|
35
42
|
ResourceSet = imp("ResourceSet@@rdfx/resource");
|
|
36
43
|
Right = imp("Right@purify-ts");
|
|
37
44
|
sparqljs = imp("sparqljs*sparqljs");
|
|
38
|
-
Variable = imp("Variable@@rdfjs/types");
|
|
45
|
+
Variable = imp("t:Variable@@rdfjs/types");
|
|
39
46
|
z = imp("z@zod");
|
|
47
|
+
ZodType = imp("t:ZodType@zod");
|
|
40
48
|
}
|
|
41
49
|
//# sourceMappingURL=Imports.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AbstractCallable } from "./AbstractCallable.js";
|
|
2
|
+
import { CodeThunk } from "./CodeThunk.js";
|
|
3
|
+
import { type Code } from "./ts-poet-wrapper.js";
|
|
4
|
+
/**
|
|
5
|
+
* A callable that isn't bound to a variable but always used inline. Annotated and unannotated usage differ in the inclusion of
|
|
6
|
+
* an optional "satisfies" type annotation on the unannotated expression.
|
|
7
|
+
*/
|
|
8
|
+
export declare class InlineCallable extends AbstractCallable {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(unannotatedExpression: CodeThunk, options?: {
|
|
11
|
+
type?: CodeThunk;
|
|
12
|
+
});
|
|
13
|
+
get annotatedUsage(): Code;
|
|
14
|
+
private get type();
|
|
15
|
+
get unannotatedUsage(): Code;
|
|
16
|
+
private get unannotatedExpression();
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=InlineCallable.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { Maybe } from "purify-ts";
|
|
8
|
+
import { Memoize } from "typescript-memoize";
|
|
9
|
+
import { AbstractCallable } from "./AbstractCallable.js";
|
|
10
|
+
import { CodeThunk } from "./CodeThunk.js";
|
|
11
|
+
import { code } from "./ts-poet-wrapper.js";
|
|
12
|
+
/**
|
|
13
|
+
* A callable that isn't bound to a variable but always used inline. Annotated and unannotated usage differ in the inclusion of
|
|
14
|
+
* an optional "satisfies" type annotation on the unannotated expression.
|
|
15
|
+
*/
|
|
16
|
+
export class InlineCallable extends AbstractCallable {
|
|
17
|
+
#unannotatedExpression;
|
|
18
|
+
#type;
|
|
19
|
+
constructor(unannotatedExpression, options) {
|
|
20
|
+
super();
|
|
21
|
+
this.#unannotatedExpression = unannotatedExpression;
|
|
22
|
+
this.#type = Maybe.fromNullable(options?.type);
|
|
23
|
+
}
|
|
24
|
+
get annotatedUsage() {
|
|
25
|
+
return this.type
|
|
26
|
+
.map((type) => code `((${this.unannotatedExpression}) satisfies ${type})`)
|
|
27
|
+
.orDefault(this.unannotatedUsage);
|
|
28
|
+
}
|
|
29
|
+
get type() {
|
|
30
|
+
return this.#type.map(CodeThunk.evaluate);
|
|
31
|
+
}
|
|
32
|
+
get unannotatedUsage() {
|
|
33
|
+
return code `(${this.unannotatedExpression})`;
|
|
34
|
+
}
|
|
35
|
+
get unannotatedExpression() {
|
|
36
|
+
return CodeThunk.evaluate(this.#unannotatedExpression);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
__decorate([
|
|
40
|
+
Memoize()
|
|
41
|
+
], InlineCallable.prototype, "annotatedUsage", null);
|
|
42
|
+
__decorate([
|
|
43
|
+
Memoize()
|
|
44
|
+
], InlineCallable.prototype, "type", null);
|
|
45
|
+
__decorate([
|
|
46
|
+
Memoize()
|
|
47
|
+
], InlineCallable.prototype, "unannotatedUsage", null);
|
|
48
|
+
__decorate([
|
|
49
|
+
Memoize()
|
|
50
|
+
], InlineCallable.prototype, "unannotatedExpression", null);
|
|
51
|
+
//# sourceMappingURL=InlineCallable.js.map
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import type { Literal } from "@rdfjs/types";
|
|
2
2
|
import { Maybe } from "purify-ts";
|
|
3
3
|
import { AbstractNumericType } from "./AbstractNumericType.js";
|
|
4
|
+
import type { Callable } from "./Callable.js";
|
|
4
5
|
import { type Code } from "./ts-poet-wrapper.js";
|
|
5
6
|
export declare class IntType extends AbstractNumericType<number> {
|
|
7
|
+
protected readonly decodedIn: number[];
|
|
6
8
|
readonly conversionFunction: Maybe<AbstractNumericType.ConversionFunction>;
|
|
7
9
|
readonly jsTypes: readonly [{
|
|
8
10
|
readonly typeof: "number";
|
|
9
11
|
}];
|
|
12
|
+
readonly jsonValueType: AbstractNumericType.JsonType;
|
|
10
13
|
readonly kind = "Int";
|
|
11
|
-
get
|
|
14
|
+
get fromJsonObjectFunction(): Callable;
|
|
15
|
+
get fromJsonValueFunction(): Callable;
|
|
16
|
+
get fromRdfResourceValuesFunction(): Callable;
|
|
12
17
|
get graphqlType(): import("./_AbstractType/AbstractType_GraphqlType.js").AbstractType_GraphqlType;
|
|
13
18
|
valueExpression(literal: Literal | number): Code;
|
|
14
19
|
}
|
|
@@ -8,13 +8,22 @@ import { LiteralDecoder } from "@rdfx/literal";
|
|
|
8
8
|
import { Maybe } from "purify-ts";
|
|
9
9
|
import { Memoize } from "typescript-memoize";
|
|
10
10
|
import { AbstractNumericType } from "./AbstractNumericType.js";
|
|
11
|
+
import { ReferenceCallable } from "./ReferenceCallable.js";
|
|
11
12
|
import { code } from "./ts-poet-wrapper.js";
|
|
12
13
|
export class IntType extends AbstractNumericType {
|
|
14
|
+
decodedIn = this.in_.map((in_) => LiteralDecoder.decodeFloatLiteral(in_).unsafeCoerce());
|
|
13
15
|
conversionFunction = Maybe.empty();
|
|
14
16
|
jsTypes = [{ typeof: "number" }];
|
|
17
|
+
jsonValueType = this.jsonTypeFactory.createJsonNumberType({ in_: this.decodedIn });
|
|
15
18
|
kind = "Int";
|
|
19
|
+
get fromJsonObjectFunction() {
|
|
20
|
+
return new ReferenceCallable(code `${this.reusables.snippets.intFromJsonObject}<${this.expression}>`);
|
|
21
|
+
}
|
|
22
|
+
get fromJsonValueFunction() {
|
|
23
|
+
return new ReferenceCallable(code `${this.reusables.snippets.intFromJsonNumber}<${this.expression}>`);
|
|
24
|
+
}
|
|
16
25
|
get fromRdfResourceValuesFunction() {
|
|
17
|
-
return code `${this.reusables.snippets.intFromRdfResourceValues}<${this.expression}
|
|
26
|
+
return new ReferenceCallable(code `${this.reusables.snippets.intFromRdfResourceValues}<${this.expression}>`);
|
|
18
27
|
}
|
|
19
28
|
get graphqlType() {
|
|
20
29
|
return new AbstractNumericType.GraphqlType(code `${this.reusables.imports.GraphQLInt}`, this.reusables);
|
|
@@ -23,6 +32,12 @@ export class IntType extends AbstractNumericType {
|
|
|
23
32
|
return code `${typeof literal === "number" ? literal : LiteralDecoder.decodeIntLiteral(literal).unsafeCoerce()}`;
|
|
24
33
|
}
|
|
25
34
|
}
|
|
35
|
+
__decorate([
|
|
36
|
+
Memoize()
|
|
37
|
+
], IntType.prototype, "fromJsonObjectFunction", null);
|
|
38
|
+
__decorate([
|
|
39
|
+
Memoize()
|
|
40
|
+
], IntType.prototype, "fromJsonValueFunction", null);
|
|
26
41
|
__decorate([
|
|
27
42
|
Memoize()
|
|
28
43
|
], IntType.prototype, "fromRdfResourceValuesFunction", null);
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
import type { NamedNode } from "@rdfjs/types";
|
|
2
2
|
import { Maybe } from "purify-ts";
|
|
3
3
|
import { AbstractIdentifierType } from "./AbstractIdentifierType.js";
|
|
4
|
+
import type { Callable } from "./Callable.js";
|
|
5
|
+
import { ReferenceCallable } from "./ReferenceCallable.js";
|
|
4
6
|
import { type Code } from "./ts-poet-wrapper.js";
|
|
5
7
|
export declare class IriType extends AbstractIdentifierType<NamedNode> {
|
|
6
|
-
readonly filterFunction:
|
|
8
|
+
readonly filterFunction: ReferenceCallable;
|
|
7
9
|
readonly filterType: Code;
|
|
8
10
|
readonly kind = "Iri";
|
|
9
11
|
readonly nodeKinds: ReadonlySet<"IRI">;
|
|
10
12
|
readonly schemaType: Code;
|
|
11
|
-
readonly valueSparqlWherePatternsFunction:
|
|
13
|
+
readonly valueSparqlWherePatternsFunction: ReferenceCallable;
|
|
14
|
+
get fromJsonValueFunction(): AbstractIdentifierType<NamedNode>["fromJsonValueFunction"];
|
|
15
|
+
get fromJsonObjectFunction(): AbstractIdentifierType<NamedNode>["fromJsonObjectFunction"];
|
|
16
|
+
get toJsonValueFunction(): AbstractIdentifierType<NamedNode>["toJsonValueFunction"];
|
|
17
|
+
get toJsonObjectFunction(): AbstractIdentifierType<NamedNode>["toJsonObjectFunction"];
|
|
18
|
+
get jsonValueType(): AbstractIdentifierType<NamedNode>["jsonValueType"];
|
|
19
|
+
get jsonObjectType(): AbstractIdentifierType<NamedNode>["jsonObjectType"];
|
|
12
20
|
get conversionFunction(): Maybe<AbstractIdentifierType.ConversionFunction>;
|
|
13
|
-
get fromRdfResourceValuesFunction():
|
|
14
|
-
get parseFunction():
|
|
21
|
+
get fromRdfResourceValuesFunction(): Callable;
|
|
22
|
+
get parseFunction(): Callable;
|
|
15
23
|
protected get inlineExpression(): Code;
|
|
16
24
|
protected staticModuleDeclarations(name: string): Record<string, Code>;
|
|
17
25
|
protected get schemaInitializers(): readonly Code[];
|
|
18
26
|
protected get inlineValueTypeExpression(): Code;
|
|
19
27
|
private get valueTypeExpression();
|
|
20
|
-
fromJsonExpression({ variables, }: Parameters<AbstractIdentifierType<NamedNode>["fromJsonExpression"]>[0]): Code;
|
|
21
|
-
jsonSchema({ includeDiscriminantProperty, }: Parameters<AbstractIdentifierType<NamedNode>["jsonSchema"]>[0]): Code;
|
|
22
|
-
jsonType(parameters?: Parameters<AbstractIdentifierType<NamedNode>["jsonType"]>[0]): AbstractIdentifierType.JsonType;
|
|
23
|
-
toJsonExpression({ includeDiscriminantProperty, variables, }: Parameters<AbstractIdentifierType<NamedNode>["toJsonExpression"]>[0]): Code;
|
|
24
28
|
}
|
|
25
29
|
//# sourceMappingURL=IriType.d.ts.map
|