@shaclmate/compiler 4.0.40 → 4.0.42
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/ShapesGraphToAstTransformer.d.ts +1 -8
- package/dist/ShapesGraphToAstTransformer.js +11 -126
- package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.js +128 -160
- package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.d.ts +17 -0
- package/dist/_ShapesGraphToAstTransformer/{transformPropertyShapeToAstObjectTypeProperty.js → transformPropertyShapeToAstStructTypeField.js} +71 -48
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.d.ts +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.js +29 -20
- package/dist/_ShapesGraphToAstTransformer/{transformShapeToAstObjectType.d.ts → transformShapeToAstStructType.d.ts} +3 -3
- package/dist/_ShapesGraphToAstTransformer/{transformShapeToAstObjectType.js → transformShapeToAstStructType.js} +35 -45
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.js +2 -1
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.d.ts +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.js +3 -3
- package/dist/ast/AbstractCompoundType.d.ts +3 -2
- package/dist/ast/AbstractCompoundType.js +5 -5
- package/dist/ast/AbstractContainerType.d.ts +2 -2
- package/dist/ast/AbstractContainerType.js +4 -4
- package/dist/ast/{AbstractLazyObjectType.d.ts → AbstractLazyType.d.ts} +10 -12
- package/dist/ast/{AbstractLazyObjectType.js → AbstractLazyType.js} +3 -3
- package/dist/ast/AbstractType.d.ts +1 -1
- package/dist/ast/AbstractType.js +3 -0
- package/dist/ast/Ast.d.ts +2 -6
- package/dist/ast/DefaultValueType.js +2 -1
- package/dist/ast/IntersectionType.d.ts +2 -2
- package/dist/ast/IntersectionType.js +3 -3
- package/dist/ast/LazyOptionType.d.ts +6 -0
- package/dist/ast/LazyOptionType.js +5 -0
- package/dist/ast/LazySetType.d.ts +6 -0
- package/dist/ast/LazySetType.js +5 -0
- package/dist/ast/LazyType.d.ts +5 -0
- package/dist/ast/LazyType.js +5 -0
- package/dist/ast/ListType.d.ts +2 -2
- package/dist/ast/ListType.js +5 -5
- package/dist/ast/OptionType.js +2 -1
- package/dist/ast/SetType.js +2 -1
- package/dist/ast/StructCompoundType.d.ts +12 -0
- package/dist/ast/{ObjectCompoundType.js → StructCompoundType.js} +18 -18
- package/dist/ast/StructIntersectionType.d.ts +4 -0
- package/dist/ast/StructIntersectionType.js +2 -0
- package/dist/ast/{ObjectType.d.ts → StructType.d.ts} +28 -39
- package/dist/ast/{ObjectType.js → StructType.js} +81 -156
- package/dist/ast/StructUnionType.d.ts +4 -0
- package/dist/ast/StructUnionType.js +2 -0
- package/dist/ast/Type.d.ts +5 -5
- package/dist/ast/Type.js +4 -4
- package/dist/ast/UnionType.d.ts +2 -2
- package/dist/ast/UnionType.js +3 -3
- package/dist/ast/index.d.ts +7 -7
- package/dist/ast/index.js +7 -7
- package/dist/generators/AstJsonGenerator.js +7 -3
- package/dist/generators/transformAstToLabeledPropertyGraph.js +59 -56
- package/dist/generators/ts/AbstractCollectionType.d.ts +4 -11
- package/dist/generators/ts/AbstractCollectionType.js +3 -62
- package/dist/generators/ts/AbstractContainerType.d.ts +1 -2
- package/dist/generators/ts/AbstractContainerType.js +7 -10
- package/dist/generators/ts/AbstractDateType.d.ts +5 -8
- package/dist/generators/ts/AbstractDateType.js +7 -12
- package/dist/generators/ts/AbstractIdentifierType.d.ts +4 -0
- package/dist/generators/ts/AbstractIdentifierType.js +3 -0
- package/dist/generators/ts/{AbstractLazyObjectType.d.ts → AbstractLazyType.d.ts} +8 -8
- package/dist/generators/ts/{AbstractLazyObjectType.js → AbstractLazyType.js} +30 -17
- package/dist/generators/ts/AbstractLiteralType.d.ts +3 -5
- package/dist/generators/ts/AbstractLiteralType.js +0 -21
- package/dist/generators/ts/AbstractNumericType.d.ts +1 -7
- package/dist/generators/ts/AbstractNumericType.js +17 -27
- package/dist/generators/ts/AbstractObjectSetType.d.ts +1 -1
- package/dist/generators/ts/AbstractObjectSetType.js +2 -2
- package/dist/generators/ts/AbstractPrimitiveType.d.ts +2 -1
- package/dist/generators/ts/AbstractPrimitiveType.js +1 -1
- package/dist/generators/ts/AbstractTermType.d.ts +7 -23
- package/dist/generators/ts/AbstractTermType.js +27 -58
- package/dist/generators/ts/AbstractType.d.ts +86 -63
- package/dist/generators/ts/AbstractType.js +48 -22
- package/dist/generators/ts/BigDecimalType.d.ts +7 -3
- package/dist/generators/ts/BigDecimalType.js +7 -9
- package/dist/generators/ts/BigIntType.d.ts +5 -3
- package/dist/generators/ts/BigIntType.js +8 -5
- package/dist/generators/ts/BlankNodeType.d.ts +2 -7
- package/dist/generators/ts/BlankNodeType.js +4 -9
- package/dist/generators/ts/BooleanType.d.ts +6 -4
- package/dist/generators/ts/BooleanType.js +13 -15
- package/dist/generators/ts/DateTimeType.d.ts +2 -2
- package/dist/generators/ts/DateTimeType.js +14 -4
- package/dist/generators/ts/DateType.d.ts +2 -2
- package/dist/generators/ts/DateType.js +14 -4
- package/dist/generators/ts/DefaultValueType.d.ts +40 -2
- package/dist/generators/ts/DefaultValueType.js +15 -14
- package/dist/generators/ts/FloatType.d.ts +5 -3
- package/dist/generators/ts/FloatType.js +8 -5
- package/dist/generators/ts/GraphqlSchema.js +2 -2
- package/dist/generators/ts/IdentifierType.d.ts +2 -2
- package/dist/generators/ts/IdentifierType.js +8 -11
- package/dist/generators/ts/IntType.d.ts +5 -3
- package/dist/generators/ts/IntType.js +8 -5
- package/dist/generators/ts/IriType.d.ts +2 -2
- package/dist/generators/ts/IriType.js +16 -16
- package/dist/generators/ts/{LazyObjectOptionType.d.ts → LazyOptionType.d.ts} +13 -11
- package/dist/generators/ts/LazyOptionType.js +75 -0
- package/dist/generators/ts/LazySetType.d.ts +20 -0
- package/dist/generators/ts/LazySetType.js +76 -0
- package/dist/generators/ts/LazyType.d.ts +19 -0
- package/dist/generators/ts/LazyType.js +65 -0
- package/dist/generators/ts/ListType.d.ts +11 -2
- package/dist/generators/ts/ListType.js +53 -26
- package/dist/generators/ts/LiteralType.d.ts +7 -2
- package/dist/generators/ts/LiteralType.js +12 -5
- package/dist/generators/ts/ObjectType.d.ts +24 -25
- package/dist/generators/ts/ObjectType.js +303 -161
- package/dist/generators/ts/ObjectUnionType.js +42 -42
- package/dist/generators/ts/OptionType.d.ts +6 -2
- package/dist/generators/ts/OptionType.js +16 -9
- package/dist/generators/ts/RdfjsDatasetObjectSetType.js +1 -4
- package/dist/generators/ts/SetType.d.ts +17 -2
- package/dist/generators/ts/SetType.js +85 -9
- package/dist/generators/ts/Snippets.d.ts +29 -9
- package/dist/generators/ts/Snippets.js +179 -39
- package/dist/generators/ts/StringType.d.ts +7 -4
- package/dist/generators/ts/StringType.js +23 -12
- package/dist/generators/ts/TermType.d.ts +9 -3
- package/dist/generators/ts/TermType.js +29 -7
- package/dist/generators/ts/TsGenerator.d.ts +1 -1
- package/dist/generators/ts/TsGenerator.js +62 -32
- package/dist/generators/ts/Type.d.ts +4 -4
- package/dist/generators/ts/TypeFactory.d.ts +5 -5
- package/dist/generators/ts/TypeFactory.js +90 -82
- package/dist/generators/ts/UnionType.d.ts +25 -23
- package/dist/generators/ts/UnionType.js +254 -261
- package/dist/generators/ts/ZodGenerator.d.ts +1 -1
- package/dist/generators/ts/ZodGenerator.js +29 -14
- package/dist/generators/ts/_ObjectType/AbstractProperty.d.ts +28 -16
- package/dist/generators/ts/_ObjectType/AbstractProperty.js +1 -24
- package/dist/generators/ts/_ObjectType/DiscriminantProperty.d.ts +15 -17
- package/dist/generators/ts/_ObjectType/DiscriminantProperty.js +24 -54
- package/dist/generators/ts/_ObjectType/IdentifierProperty.d.ts +8 -2
- package/dist/generators/ts/_ObjectType/IdentifierProperty.js +48 -20
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.js +28 -0
- package/dist/generators/ts/_ObjectType/ObjectType_equalsFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_equalsFunctionExpression.js +15 -0
- package/dist/generators/ts/_ObjectType/ObjectType_filterFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_filterFunctionExpression.js +12 -0
- package/dist/generators/ts/_ObjectType/ObjectType_filterTypeExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_filterTypeDeclaration.js → ObjectType_filterTypeExpression.js} +5 -10
- package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlConstructTriplesFunctionDeclaration.d.ts → ObjectType_focusSparqlConstructTriplesFunctionExpression.d.ts} +2 -3
- package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlConstructTriplesFunctionDeclaration.js → ObjectType_focusSparqlConstructTriplesFunctionExpression.js} +5 -13
- package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlWherePatternsFunctionDeclaration.d.ts → ObjectType_focusSparqlWherePatternsFunctionExpression.d.ts} +2 -3
- package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlWherePatternsFunctionDeclaration.js → ObjectType_focusSparqlWherePatternsFunctionExpression.js} +8 -31
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionExpression.js +12 -0
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionExpression.js +43 -0
- package/dist/generators/ts/_ObjectType/ObjectType_graphqlTypeExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_graphqlTypeVariableStatement.js → ObjectType_graphqlTypeExpression.js} +6 -13
- package/dist/generators/ts/_ObjectType/ObjectType_hashFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_hashFunctionExpression.js +30 -0
- package/dist/generators/ts/_ObjectType/ObjectType_identifierTypeDeclarations.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_identifierTypeDeclarations.js +13 -0
- package/dist/generators/ts/_ObjectType/ObjectType_isTypeFunctionDeclaration.js +11 -8
- package/dist/generators/ts/_ObjectType/ObjectType_jsonParseFunctionDeclaration.d.ts +1 -2
- package/dist/generators/ts/_ObjectType/ObjectType_jsonParseFunctionDeclaration.js +2 -6
- package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaExpression.js +18 -0
- package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeExpression.js +5 -0
- package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionExpression.js +17 -0
- package/dist/generators/ts/_ObjectType/ObjectType_objectSetMethodNames.d.ts +1 -1
- package/dist/generators/ts/_ObjectType/ObjectType_objectSetMethodNames.js +2 -2
- package/dist/generators/ts/_ObjectType/ObjectType_schemaExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_schemaExpression.js +18 -0
- package/dist/generators/ts/_ObjectType/ObjectType_schemaTypeExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_schemaTypeExpression.js +18 -0
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.d.ts +2 -3
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.js +5 -9
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunctionDeclaration.d.ts +2 -3
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunctionDeclaration.js +4 -8
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionExpression.js +14 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_toRdfResourceFunctionDeclaration.js → ObjectType_toRdfResourceFunctionExpression.js} +7 -13
- package/dist/generators/ts/_ObjectType/ObjectType_toStringFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toStringFunctionExpression.js +7 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunctionExpression.js +5 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_valueSparqlConstructTriplesFunctionDeclaration.d.ts → ObjectType_valueSparqlConstructTriplesFunctionExpression.d.ts} +2 -3
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionExpression.js +8 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_valueSparqlWherePatternsFunctionDeclaration.d.ts → ObjectType_valueSparqlWherePatternsFunctionExpression.d.ts} +2 -3
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionExpression.js +10 -0
- package/dist/generators/ts/_ObjectType/ShaclProperty.d.ts +9 -2
- package/dist/generators/ts/_ObjectType/ShaclProperty.js +70 -38
- package/dist/generators/ts/_snippets/snippets_BooleanSchema.js +4 -3
- package/dist/generators/ts/_snippets/snippets_DateSchema.js +4 -3
- package/dist/generators/ts/_snippets/snippets_DefaultValueSchema.js +3 -3
- package/dist/generators/ts/_snippets/snippets_FromRdfResourceValuesFunction.js +6 -5
- package/dist/generators/ts/_snippets/snippets_IdentifierSchema.js +2 -1
- package/dist/generators/ts/_snippets/snippets_IriSchema.js +1 -0
- package/dist/generators/ts/_snippets/snippets_Lazy.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_Lazy.js +22 -0
- package/dist/generators/ts/_snippets/snippets_LazyOption.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_LazyOption.js +25 -0
- package/dist/generators/ts/_snippets/snippets_LazySet.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_LazySet.js +40 -0
- package/dist/generators/ts/_snippets/snippets_LiteralFilter.js +1 -3
- package/dist/generators/ts/_snippets/snippets_LiteralSchema.js +1 -0
- package/dist/generators/ts/_snippets/snippets_NumericSchema.js +2 -1
- package/dist/generators/ts/_snippets/snippets_PropertyPath.js +6 -8
- package/dist/generators/ts/_snippets/snippets_RdfVocabularies.js +32 -32
- package/dist/generators/ts/_snippets/snippets_ShaclPropertySchema.js +1 -1
- package/dist/generators/ts/_snippets/snippets_StringSchema.js +5 -3
- package/dist/generators/ts/_snippets/snippets_TermFilter.js +3 -3
- package/dist/generators/ts/_snippets/snippets_TermSchema.js +4 -2
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_bigIntFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigIntFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_booleanFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_booleanFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_convertToArraySet.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToArraySet.js +8 -0
- package/dist/generators/ts/_snippets/snippets_convertToLazy.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToLazy.js +15 -0
- package/dist/generators/ts/_snippets/snippets_convertToLazyOption.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToLazyOption.js +33 -0
- package/dist/generators/ts/_snippets/snippets_convertToLazySet.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToLazySet.js +27 -0
- package/dist/generators/ts/_snippets/snippets_convertToList.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToList.js +7 -0
- package/dist/generators/ts/_snippets/snippets_convertToScalarSet.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToScalarSet.js +15 -0
- package/dist/generators/ts/_snippets/snippets_dateFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_dateFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_dateTimeFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_dateTimeFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_defaultValueFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_defaultValueFromRdfResourceValues.js +10 -0
- package/dist/generators/ts/_snippets/snippets_defaultValueSparqlWherePatterns.js +1 -1
- package/dist/generators/ts/_snippets/snippets_filterNumeric.js +1 -1
- package/dist/generators/ts/_snippets/snippets_filterTerm.js +1 -2
- package/dist/generators/ts/_snippets/snippets_floatFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_floatFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_identifierFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_identifierFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_intFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_intFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_iriFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_iriFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_listFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_listFromRdfResourceValues.js +15 -0
- package/dist/generators/ts/_snippets/snippets_literalFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_literalFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_maybeFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_maybeFromRdfResourceValues.js +11 -0
- package/dist/generators/ts/_snippets/snippets_mutableListFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_mutableListFromRdfResourceValues.js +8 -0
- package/dist/generators/ts/_snippets/snippets_mutableSetFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_mutableSetFromRdfResourceValues.js +8 -0
- package/dist/generators/ts/_snippets/snippets_numericSparqlWherePatterns.js +1 -1
- package/dist/generators/ts/_snippets/snippets_setFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_setFromRdfResourceValues.js +9 -0
- package/dist/generators/ts/_snippets/snippets_shaclPropertyFromRdf.js +13 -7
- package/dist/generators/ts/_snippets/snippets_stringFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_stringFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_termFilterSparqlPatterns.js +1 -1
- package/dist/generators/ts/_snippets/snippets_termFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_termFromRdfResourceValues.js +17 -0
- package/dist/generators/ts/_snippets/snippets_termLikeFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_termLikeFromRdfResourceValues.js +60 -0
- package/dist/generators/ts/_snippets/snippets_termSparqlWherePatterns.js +2 -2
- package/dist/input/generated.d.ts +1116 -400
- package/dist/input/generated.js +1879 -1917
- package/package.json +2 -4
- package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstObjectTypeProperty.d.ts +0 -9
- package/dist/ast/LazyObjectOptionType.d.ts +0 -6
- package/dist/ast/LazyObjectOptionType.js +0 -5
- package/dist/ast/LazyObjectSetType.d.ts +0 -6
- package/dist/ast/LazyObjectSetType.js +0 -5
- package/dist/ast/LazyObjectType.d.ts +0 -5
- package/dist/ast/LazyObjectType.js +0 -5
- package/dist/ast/ObjectCompoundType.d.ts +0 -12
- package/dist/ast/ObjectIntersectionType.d.ts +0 -4
- package/dist/ast/ObjectIntersectionType.js +0 -2
- package/dist/ast/ObjectUnionType.d.ts +0 -4
- package/dist/ast/ObjectUnionType.js +0 -2
- package/dist/generators/ts/LazyObjectOptionType.js +0 -62
- package/dist/generators/ts/LazyObjectSetType.d.ts +0 -20
- package/dist/generators/ts/LazyObjectSetType.js +0 -61
- package/dist/generators/ts/LazyObjectType.d.ts +0 -19
- package/dist/generators/ts/LazyObjectType.js +0 -53
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionDeclaration.js +0 -65
- package/dist/generators/ts/_ObjectType/ObjectType_equalsFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_equalsFunctionDeclaration.js +0 -23
- package/dist/generators/ts/_ObjectType/ObjectType_filterFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_filterFunctionDeclaration.js +0 -24
- package/dist/generators/ts/_ObjectType/ObjectType_filterTypeDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionDeclaration.js +0 -43
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionDeclaration.js +0 -80
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceValuesFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceValuesFunctionDeclaration.js +0 -15
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfTypeVariableStatement.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfTypeVariableStatement.js +0 -10
- package/dist/generators/ts/_ObjectType/ObjectType_graphqlTypeVariableStatement.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_hashFunctionDeclarations.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_hashFunctionDeclarations.js +0 -45
- package/dist/generators/ts/_ObjectType/ObjectType_interfaceDeclaration.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_interfaceDeclaration.js +0 -16
- package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaFunctionDeclaration.js +0 -31
- package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeAliasDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeAliasDeclaration.js +0 -16
- package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionDeclaration.js +0 -17
- package/dist/generators/ts/_ObjectType/ObjectType_schemaVariableStatement.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_schemaVariableStatement.js +0 -14
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionDeclaration.js +0 -41
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_toStringFunctionDeclarations.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_toStringFunctionDeclarations.js +0 -36
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionDeclaration.js +0 -11
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionDeclaration.js +0 -13
- package/dist/generators/ts/_ObjectType/identifierTypeDeclarations.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/identifierTypeDeclarations.js +0 -27
- package/dist/generators/ts/_snippets/snippets_LazyObject.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_LazyObject.js +0 -22
- package/dist/generators/ts/_snippets/snippets_LazyObjectOption.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_LazyObjectOption.js +0 -25
- package/dist/generators/ts/_snippets/snippets_LazyObjectSet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_LazyObjectSet.js +0 -40
- package/dist/generators/ts/_snippets/snippets_convertToArray.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToArray.js +0 -8
- package/dist/generators/ts/_snippets/snippets_convertToLazyObject.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToLazyObject.js +0 -15
- package/dist/generators/ts/_snippets/snippets_convertToLazyObjectOption.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToLazyObjectOption.js +0 -31
- package/dist/generators/ts/_snippets/snippets_convertToLazyObjectSet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToLazyObjectSet.js +0 -25
- package/dist/generators/ts/_snippets/snippets_fromRdfLanguageIn.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_fromRdfLanguageIn.js +0 -15
- package/dist/generators/ts/_snippets/snippets_fromRdfPreferredLanguages.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_fromRdfPreferredLanguages.js +0 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@shaclmate/shacl-ast": "4.0.
|
|
3
|
+
"@shaclmate/shacl-ast": "4.0.42",
|
|
4
4
|
"@rdfjs/dataset": "~2.0.2",
|
|
5
5
|
"@rdfjs/prefix-map": "~0.1.2",
|
|
6
6
|
"@rdfjs/term-map": "~2.0.2",
|
|
@@ -16,12 +16,10 @@
|
|
|
16
16
|
"@types/rdfjs__prefix-map": "~0.1.5",
|
|
17
17
|
"@types/rdfjs__term-map": "~2.0.10",
|
|
18
18
|
"@types/rdfjs__term-set": "~2.0.9",
|
|
19
|
-
"@types/toposort": "2.0.7",
|
|
20
19
|
"change-case": "~5.4.4",
|
|
21
20
|
"plur": "~5.1.0",
|
|
22
21
|
"purify-ts": "~2.1.4",
|
|
23
22
|
"reserved-identifiers": "~1.0.0",
|
|
24
|
-
"toposort": "2.0.2",
|
|
25
23
|
"ts-invariant": "~0.10.3",
|
|
26
24
|
"ts-poet": "~6.12.0",
|
|
27
25
|
"typescript-memoize": "~1.1.1"
|
|
@@ -68,5 +66,5 @@
|
|
|
68
66
|
},
|
|
69
67
|
"type": "module",
|
|
70
68
|
"types": "./dist/index.d.ts",
|
|
71
|
-
"version": "4.0.
|
|
69
|
+
"version": "4.0.42"
|
|
72
70
|
}
|
package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstObjectTypeProperty.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Either } from "purify-ts";
|
|
2
|
-
import * as ast from "../ast/index.js";
|
|
3
|
-
import type * as input from "../input/index.js";
|
|
4
|
-
import type { ShapesGraphToAstTransformer } from "../ShapesGraphToAstTransformer.js";
|
|
5
|
-
export declare function transformPropertyShapeToAstObjectTypeProperty(this: ShapesGraphToAstTransformer, { objectType, propertyShape, }: {
|
|
6
|
-
objectType: ast.ObjectType;
|
|
7
|
-
propertyShape: input.PropertyShape;
|
|
8
|
-
}): Either<Error, ast.ObjectType.Property>;
|
|
9
|
-
//# sourceMappingURL=transformPropertyShapeToAstObjectTypeProperty.d.ts.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AbstractLazyObjectType } from "./AbstractLazyObjectType.js";
|
|
2
|
-
import type { OptionType } from "./OptionType.js";
|
|
3
|
-
export declare class LazyObjectOptionType extends AbstractLazyObjectType<OptionType<AbstractLazyObjectType.ObjectTypeConstraint>, OptionType<AbstractLazyObjectType.ObjectTypeConstraint>> {
|
|
4
|
-
readonly kind = "LazyObjectOption";
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=LazyObjectOptionType.d.ts.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AbstractLazyObjectType } from "./AbstractLazyObjectType.js";
|
|
2
|
-
import type { SetType } from "./SetType.js";
|
|
3
|
-
export declare class LazyObjectSetType extends AbstractLazyObjectType<SetType<AbstractLazyObjectType.ObjectTypeConstraint>, SetType<AbstractLazyObjectType.ObjectTypeConstraint>> {
|
|
4
|
-
readonly kind = "LazyObjectSet";
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=LazyObjectSetType.d.ts.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { AbstractLazyObjectType } from "./AbstractLazyObjectType.js";
|
|
2
|
-
export declare class LazyObjectType extends AbstractLazyObjectType<AbstractLazyObjectType.ObjectTypeConstraint, AbstractLazyObjectType.ObjectTypeConstraint> {
|
|
3
|
-
readonly kind = "LazyObject";
|
|
4
|
-
}
|
|
5
|
-
//# sourceMappingURL=LazyObjectType.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BlankNodeType } from "./BlankNodeType.js";
|
|
2
|
-
import { IdentifierType } from "./IdentifierType.js";
|
|
3
|
-
import { IriType } from "./IriType.js";
|
|
4
|
-
import type { ObjectIntersectionType } from "./ObjectIntersectionType.js";
|
|
5
|
-
import type { ObjectType } from "./ObjectType.js";
|
|
6
|
-
import type { ObjectUnionType } from "./ObjectUnionType.js";
|
|
7
|
-
export type ObjectCompoundType = ObjectIntersectionType | ObjectUnionType;
|
|
8
|
-
export declare namespace ObjectCompoundType {
|
|
9
|
-
function identifierType(objectCompoundType: ObjectCompoundType): BlankNodeType | IdentifierType | IriType;
|
|
10
|
-
function memberObjectTypes(objectCompoundType: ObjectCompoundType): readonly ObjectType[];
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=ObjectCompoundType.d.ts.map
|
|
@@ -1,62 +0,0 @@
|
|
|
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 { AbstractLazyObjectType } from "./AbstractLazyObjectType.js";
|
|
10
|
-
import { code } from "./ts-poet-wrapper.js";
|
|
11
|
-
const Super = (AbstractLazyObjectType);
|
|
12
|
-
export class LazyObjectOptionType extends Super {
|
|
13
|
-
graphqlArgs = Maybe.empty();
|
|
14
|
-
kind = "LazyObjectOption";
|
|
15
|
-
get conversionFunction() {
|
|
16
|
-
return Maybe.of({
|
|
17
|
-
code: code `${this.reusables.snippets.convertToLazyObjectOption}<${this.resolveType.itemType.identifierTypeAlias}, ${this.partialType.itemType.expression}, ${this.resolveType.itemType.expression}>(${this.resolveToPartialFunction({ partialType: this.partialType.itemType, resolveType: this.resolveType.itemType })})`,
|
|
18
|
-
sourceTypes: [
|
|
19
|
-
{
|
|
20
|
-
expression: this.expression,
|
|
21
|
-
typeof: "object",
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
expression: this.resolveType.expression,
|
|
25
|
-
typeof: "object",
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
expression: this.resolveType.itemType.expression,
|
|
29
|
-
typeof: "object",
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
expression: code `undefined`,
|
|
33
|
-
typeof: "undefined",
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
get runtimeClass() {
|
|
39
|
-
return {
|
|
40
|
-
name: code `${this.reusables.snippets.LazyObjectOption}<${this.resolveType.itemType.identifierTypeAlias}, ${this.partialType.itemType.expression}, ${this.resolveType.itemType.expression}>`,
|
|
41
|
-
partialPropertyName: "partial",
|
|
42
|
-
rawName: code `${this.reusables.snippets.LazyObjectOption}`,
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
fromJsonExpression(parameters) {
|
|
46
|
-
return code `${this.partialType.fromJsonExpression(parameters)}.map(partial => new ${this.runtimeClass.name}({ ${this.runtimeClass.partialPropertyName}: partial, resolver: (identifier) => Promise.resolve(${this.reusables.imports.Left}(new Error(\`unable to resolve identifier \${identifier} deserialized from JSON\`))) }))`;
|
|
47
|
-
}
|
|
48
|
-
fromRdfResourceValuesExpression(parameters) {
|
|
49
|
-
const { variables } = parameters;
|
|
50
|
-
return code `${this.partialType.fromRdfResourceValuesExpression(parameters)}.map(values => values.map(${this.runtimeClass.partialPropertyName} => new ${this.runtimeClass.name}({ ${this.runtimeClass.partialPropertyName}, resolver: (identifier, options) => ${variables.objectSet}.${this.resolveType.itemType.objectSetMethodNames.object}(identifier, options) })))`;
|
|
51
|
-
}
|
|
52
|
-
graphqlResolveExpression({ variables, }) {
|
|
53
|
-
return code `${variables.value}.resolve().then(either => either.unsafeCoerce().extractNullable())`;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
__decorate([
|
|
57
|
-
Memoize()
|
|
58
|
-
], LazyObjectOptionType.prototype, "conversionFunction", null);
|
|
59
|
-
__decorate([
|
|
60
|
-
Memoize()
|
|
61
|
-
], LazyObjectOptionType.prototype, "runtimeClass", null);
|
|
62
|
-
//# sourceMappingURL=LazyObjectOptionType.js.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import { AbstractLazyObjectType } from "./AbstractLazyObjectType.js";
|
|
3
|
-
import type { SetType } from "./SetType.js";
|
|
4
|
-
import { type Code } from "./ts-poet-wrapper.js";
|
|
5
|
-
export declare class LazyObjectSetType extends AbstractLazyObjectType<SetType<AbstractLazyObjectType.ObjectTypeConstraint>, SetType<AbstractLazyObjectType.ObjectTypeConstraint>> {
|
|
6
|
-
readonly graphqlArgs: Super["graphqlArgs"];
|
|
7
|
-
readonly kind = "LazyObjectSet";
|
|
8
|
-
get conversionFunction(): Maybe<AbstractLazyObjectType.ConversionFunction>;
|
|
9
|
-
protected get runtimeClass(): {
|
|
10
|
-
name: Code;
|
|
11
|
-
partialPropertyName: string;
|
|
12
|
-
rawName: Code;
|
|
13
|
-
};
|
|
14
|
-
fromJsonExpression(parameters: Parameters<Super["fromJsonExpression"]>[0]): Code;
|
|
15
|
-
fromRdfResourceValuesExpression(parameters: Parameters<Super["fromRdfResourceValuesExpression"]>[0]): Code;
|
|
16
|
-
graphqlResolveExpression({ variables, }: Parameters<Super["graphqlResolveExpression"]>[0]): Code;
|
|
17
|
-
}
|
|
18
|
-
type Super = AbstractLazyObjectType<SetType<AbstractLazyObjectType.ObjectTypeConstraint>, SetType<AbstractLazyObjectType.ObjectTypeConstraint>>;
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=LazyObjectSetType.d.ts.map
|
|
@@ -1,61 +0,0 @@
|
|
|
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 { AbstractLazyObjectType } from "./AbstractLazyObjectType.js";
|
|
10
|
-
import { code } from "./ts-poet-wrapper.js";
|
|
11
|
-
export class LazyObjectSetType extends AbstractLazyObjectType {
|
|
12
|
-
graphqlArgs = Maybe.of({
|
|
13
|
-
limit: {
|
|
14
|
-
type: code `${this.reusables.imports.GraphQLInt}`,
|
|
15
|
-
},
|
|
16
|
-
offset: {
|
|
17
|
-
type: code `${this.reusables.imports.GraphQLInt}`,
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
kind = "LazyObjectSet";
|
|
21
|
-
get conversionFunction() {
|
|
22
|
-
return Maybe.of({
|
|
23
|
-
code: code `${this.reusables.snippets.convertToLazyObjectSet}<${this.resolveType.itemType.identifierTypeAlias}, ${this.partialType.itemType.expression}, ${this.resolveType.itemType.expression}>(${this.resolveToPartialFunction({ partialType: this.partialType.itemType, resolveType: this.resolveType.itemType })})`,
|
|
24
|
-
sourceTypes: [
|
|
25
|
-
{
|
|
26
|
-
expression: this.expression,
|
|
27
|
-
typeof: "object",
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
expression: this.resolveType.expression,
|
|
31
|
-
typeof: "object",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
expression: code `undefined`,
|
|
35
|
-
typeof: "undefined",
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
get runtimeClass() {
|
|
41
|
-
return {
|
|
42
|
-
name: code `${this.reusables.snippets.LazyObjectSet}<${this.resolveType.itemType.identifierTypeAlias}, ${this.partialType.itemType.expression}, ${this.resolveType.itemType.expression}>`,
|
|
43
|
-
partialPropertyName: "partials",
|
|
44
|
-
rawName: code `${this.reusables.snippets.LazyObjectSet}`,
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
fromJsonExpression(parameters) {
|
|
48
|
-
return code `${this.partialType.fromJsonExpression(parameters)}.map(partial => new ${this.runtimeClass.name}({ ${this.runtimeClass.partialPropertyName}: partial, resolver: () => Promise.resolve(${this.reusables.imports.Left}(new Error("unable to resolve identifiers deserialized from JSON"))) }))`;
|
|
49
|
-
}
|
|
50
|
-
fromRdfResourceValuesExpression(parameters) {
|
|
51
|
-
const { variables } = parameters;
|
|
52
|
-
return code `${this.partialType.fromRdfResourceValuesExpression(parameters)}.map(values => values.map(${this.runtimeClass.partialPropertyName} => new ${this.runtimeClass.name}({ ${this.runtimeClass.partialPropertyName}, resolver: (identifiers, options) => ${variables.objectSet}.${this.resolveType.itemType.objectSetMethodNames.objects}({ identifiers, ...options }) })))`;
|
|
53
|
-
}
|
|
54
|
-
graphqlResolveExpression({ variables, }) {
|
|
55
|
-
return code `(${variables.value}.resolve({ limit: ${variables.args}.limit, offset: ${variables.args}.offset })).then(either => either.unsafeCoerce())`;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
__decorate([
|
|
59
|
-
Memoize()
|
|
60
|
-
], LazyObjectSetType.prototype, "conversionFunction", null);
|
|
61
|
-
//# sourceMappingURL=LazyObjectSetType.js.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import { AbstractLazyObjectType } from "./AbstractLazyObjectType.js";
|
|
3
|
-
import { type Code } from "./ts-poet-wrapper.js";
|
|
4
|
-
export declare class LazyObjectType extends AbstractLazyObjectType<AbstractLazyObjectType.ObjectTypeConstraint, AbstractLazyObjectType.ObjectTypeConstraint> {
|
|
5
|
-
readonly graphqlArgs: Super["graphqlArgs"];
|
|
6
|
-
readonly kind = "LazyObject";
|
|
7
|
-
get conversionFunction(): Maybe<AbstractLazyObjectType.ConversionFunction>;
|
|
8
|
-
protected get runtimeClass(): {
|
|
9
|
-
name: Code;
|
|
10
|
-
partialPropertyName: string;
|
|
11
|
-
rawName: Code;
|
|
12
|
-
};
|
|
13
|
-
fromJsonExpression(parameters: Parameters<Super["fromJsonExpression"]>[0]): Code;
|
|
14
|
-
fromRdfResourceValuesExpression(parameters: Parameters<Super["fromRdfResourceValuesExpression"]>[0]): Code;
|
|
15
|
-
graphqlResolveExpression({ variables, }: Parameters<Super["graphqlResolveExpression"]>[0]): Code;
|
|
16
|
-
}
|
|
17
|
-
type Super = AbstractLazyObjectType<AbstractLazyObjectType.ObjectTypeConstraint, AbstractLazyObjectType.ObjectTypeConstraint>;
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=LazyObjectType.d.ts.map
|
|
@@ -1,53 +0,0 @@
|
|
|
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 { AbstractLazyObjectType } from "./AbstractLazyObjectType.js";
|
|
10
|
-
import { code } from "./ts-poet-wrapper.js";
|
|
11
|
-
export class LazyObjectType extends AbstractLazyObjectType {
|
|
12
|
-
graphqlArgs = Maybe.empty();
|
|
13
|
-
kind = "LazyObject";
|
|
14
|
-
get conversionFunction() {
|
|
15
|
-
return Maybe.of({
|
|
16
|
-
code: code `${this.reusables.snippets.convertToLazyObject}<${this.resolveType.identifierTypeAlias}, ${this.partialType.expression}, ${this.resolveType.expression}>(${this.resolveToPartialFunction({ partialType: this.partialType, resolveType: this.resolveType })})`,
|
|
17
|
-
sourceTypes: [
|
|
18
|
-
{
|
|
19
|
-
expression: this.expression,
|
|
20
|
-
typeof: "object",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
expression: this.resolveType.expression,
|
|
24
|
-
typeof: "object",
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
get runtimeClass() {
|
|
30
|
-
return {
|
|
31
|
-
name: code `${this.reusables.snippets.LazyObject}<${this.resolveType.identifierTypeAlias}, ${this.partialType.expression}, ${this.resolveType.expression}>`,
|
|
32
|
-
partialPropertyName: "partial",
|
|
33
|
-
rawName: code `${this.reusables.snippets.LazyObject}`,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
fromJsonExpression(parameters) {
|
|
37
|
-
return code `${this.partialType.fromJsonExpression(parameters)}.map(partial => new ${this.runtimeClass.name}({ ${this.runtimeClass.partialPropertyName}: partial, resolver: (identifier) => Promise.resolve(${this.reusables.imports.Left}(new Error(\`unable to resolve identifier \${identifier} deserialized from JSON\`))) }))`;
|
|
38
|
-
}
|
|
39
|
-
fromRdfResourceValuesExpression(parameters) {
|
|
40
|
-
const { variables } = parameters;
|
|
41
|
-
return code `${this.partialType.fromRdfResourceValuesExpression(parameters)}.map(values => values.map(${this.runtimeClass.partialPropertyName} => new ${this.runtimeClass.name}({ ${this.runtimeClass.partialPropertyName}, resolver: (identifier, options) => ${variables.objectSet}.${this.resolveType.objectSetMethodNames.object}(identifier, options) })))`;
|
|
42
|
-
}
|
|
43
|
-
graphqlResolveExpression({ variables, }) {
|
|
44
|
-
return code `${variables.value}.resolve().then(either => either.unsafeCoerce())`;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
__decorate([
|
|
48
|
-
Memoize()
|
|
49
|
-
], LazyObjectType.prototype, "conversionFunction", null);
|
|
50
|
-
__decorate([
|
|
51
|
-
Memoize()
|
|
52
|
-
], LazyObjectType.prototype, "runtimeClass", null);
|
|
53
|
-
//# sourceMappingURL=LazyObjectType.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import type { ObjectType } from "../ObjectType.js";
|
|
3
|
-
import { type Code } from "../ts-poet-wrapper.js";
|
|
4
|
-
export declare function ObjectType_createFunctionDeclaration(this: ObjectType): Maybe<Code>;
|
|
5
|
-
//# sourceMappingURL=ObjectType_createFunctionDeclaration.d.ts.map
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import { invariant } from "ts-invariant";
|
|
3
|
-
import { code, joinCode, literalOf } from "../ts-poet-wrapper.js";
|
|
4
|
-
export function ObjectType_createFunctionDeclaration() {
|
|
5
|
-
if (!this.configuration.features.has("Object.create")) {
|
|
6
|
-
return Maybe.empty();
|
|
7
|
-
}
|
|
8
|
-
const parametersPropertySignatures = this.properties.flatMap((property) => property.constructorParameter.toList());
|
|
9
|
-
const parametersType = [];
|
|
10
|
-
if (parametersPropertySignatures.length > 0) {
|
|
11
|
-
parametersType.push(code `{ ${joinCode(parametersPropertySignatures)} }`);
|
|
12
|
-
}
|
|
13
|
-
for (const parentObjectType of this.parentObjectTypes) {
|
|
14
|
-
parametersType.push(code `Parameters<typeof ${parentObjectType.alias.unsafeCoerce()}.create>[0]`);
|
|
15
|
-
}
|
|
16
|
-
if (parametersType.length === 0) {
|
|
17
|
-
parametersType.push(code `object`);
|
|
18
|
-
}
|
|
19
|
-
const parametersHasQuestionToken = this.parentObjectTypes.length === 0 &&
|
|
20
|
-
parametersPropertySignatures.every((propertySignature) => propertySignature.toCodeString([]).indexOf("?:") !== -1);
|
|
21
|
-
const parametersVariable = code `parameters${parametersHasQuestionToken ? "?" : ""}`;
|
|
22
|
-
const parametersSignature = code `parameters${parametersHasQuestionToken ? "?" : ""}: ${joinCode(parametersType, { on: " & " })}`;
|
|
23
|
-
const chains = [];
|
|
24
|
-
this.parentObjectTypes.forEach((parentObjectType, parentObjectTypeI) => {
|
|
25
|
-
chains.push({
|
|
26
|
-
expression: code `${parentObjectType.alias.unsafeCoerce()}.create(parameters)`,
|
|
27
|
-
variable: `super${parentObjectTypeI}`,
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
const propertyInitializers = this.properties.flatMap((property) => property
|
|
31
|
-
.constructorInitializer({
|
|
32
|
-
variables: { parameters: parametersVariable },
|
|
33
|
-
})
|
|
34
|
-
.toList());
|
|
35
|
-
invariant(propertyInitializers.length > 0);
|
|
36
|
-
chains.push({
|
|
37
|
-
expression: code `${this.reusables.snippets.sequenceRecord}({ ${joinCode(propertyInitializers, { on: "," })} })`,
|
|
38
|
-
variable: "properties",
|
|
39
|
-
});
|
|
40
|
-
let returnExpression = code `{ ${chains
|
|
41
|
-
.map((chain) => `...${chain.variable}`)
|
|
42
|
-
.join(", ")}, ${this._discriminantProperty.name}: ${literalOf(this.discriminantValue)} as const }`;
|
|
43
|
-
const monkeyPatchMethods = [];
|
|
44
|
-
if (this.configuration.features.has("Object.toJson")) {
|
|
45
|
-
monkeyPatchMethods.push("toJson");
|
|
46
|
-
}
|
|
47
|
-
if (this.configuration.features.has("Object.toString")) {
|
|
48
|
-
monkeyPatchMethods.push(`${this.configuration.syntheticNamePrefix}toString`);
|
|
49
|
-
}
|
|
50
|
-
if (monkeyPatchMethods.length > 0) {
|
|
51
|
-
returnExpression = code `${this.reusables.snippets.monkeyPatchObject}(${returnExpression}, { ${monkeyPatchMethods.join(", ")} })`;
|
|
52
|
-
}
|
|
53
|
-
returnExpression = chains
|
|
54
|
-
.toReversed()
|
|
55
|
-
.reduce((acc, { expression, variable }, chainI) => code `(${expression}).${chainI === 0 ? "map" : "chain"}(${variable} => ${acc})`, returnExpression);
|
|
56
|
-
return Maybe.of(code `\
|
|
57
|
-
export function create(${parametersSignature}): ${this.reusables.imports.Either}<Error, ${this.expression}> {
|
|
58
|
-
return ${returnExpression};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function createUnsafe(${parametersSignature}): ${this.expression} {
|
|
62
|
-
return create(parameters).unsafeCoerce();
|
|
63
|
-
}`);
|
|
64
|
-
}
|
|
65
|
-
//# sourceMappingURL=ObjectType_createFunctionDeclaration.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import type { ObjectType } from "../ObjectType.js";
|
|
3
|
-
import { type Code } from "../ts-poet-wrapper.js";
|
|
4
|
-
export declare function ObjectType_equalsFunctionDeclaration(this: ObjectType): Maybe<Code>;
|
|
5
|
-
//# sourceMappingURL=ObjectType_equalsFunctionDeclaration.d.ts.map
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import { code, joinCode } from "../ts-poet-wrapper.js";
|
|
3
|
-
export function ObjectType_equalsFunctionDeclaration() {
|
|
4
|
-
if (!this.configuration.features.has("Object.equals")) {
|
|
5
|
-
return Maybe.empty();
|
|
6
|
-
}
|
|
7
|
-
const chain = [];
|
|
8
|
-
// For every parent, find the nearest equals implementation
|
|
9
|
-
for (const parentObjectType of this.parentObjectTypes) {
|
|
10
|
-
chain.push(code `${parentObjectType.equalsFunction}(left, right)`);
|
|
11
|
-
}
|
|
12
|
-
for (const property of this.properties) {
|
|
13
|
-
if (property.kind === "Discriminant") {
|
|
14
|
-
continue;
|
|
15
|
-
}
|
|
16
|
-
chain.push(code `(${property.type.equalsFunction})(${property.accessExpression({ variables: { object: code `left` } })}, ${property.accessExpression({ variables: { object: code `right` } })}).mapLeft(propertyValuesUnequal => ({ left, right, propertyName: "${property.name}", propertyValuesUnequal, type: "property" as const }))`);
|
|
17
|
-
}
|
|
18
|
-
return Maybe.of(code `\
|
|
19
|
-
export function equals(left: ${this.expression}, right: ${this.expression}): ${this.reusables.snippets.EqualsResult} {
|
|
20
|
-
return ${joinCode(chain.map((chainPart, chainPartI) => chainPartI === 0 ? chainPart : code `chain(() => ${chainPart})`), { on: "." })}
|
|
21
|
-
}`);
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=ObjectType_equalsFunctionDeclaration.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import type { ObjectType } from "../ObjectType.js";
|
|
3
|
-
import { type Code } from "../ts-poet-wrapper.js";
|
|
4
|
-
export declare function ObjectType_filterFunctionDeclaration(this: ObjectType): Maybe<Code>;
|
|
5
|
-
//# sourceMappingURL=ObjectType_filterFunctionDeclaration.d.ts.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import { code, joinCode } from "../ts-poet-wrapper.js";
|
|
3
|
-
export function ObjectType_filterFunctionDeclaration() {
|
|
4
|
-
if (!this.configuration.features.has("Object.filter")) {
|
|
5
|
-
return Maybe.empty();
|
|
6
|
-
}
|
|
7
|
-
const statements = [];
|
|
8
|
-
for (const parentObjectType of this.parentObjectTypes) {
|
|
9
|
-
statements.push(code `if (!${parentObjectType.filterFunction}(filter, value)) { return false; }`);
|
|
10
|
-
}
|
|
11
|
-
if (this.properties.length > 0) {
|
|
12
|
-
for (const property of this.properties) {
|
|
13
|
-
property.filterProperty.ifJust(({ name }) => {
|
|
14
|
-
statements.push(code `if (filter.${name} !== undefined && !${property.type.filterFunction}(filter.${name}, ${property.accessExpression({ variables: { object: code `value` } })})) { return false; }`);
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
statements.push(code `return true;`);
|
|
19
|
-
return Maybe.of(code `\
|
|
20
|
-
export function filter(filter: ${this.filterType}, value: ${this.expression}): boolean {
|
|
21
|
-
${joinCode(statements)}
|
|
22
|
-
}`);
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=ObjectType_filterFunctionDeclaration.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import type { ObjectType } from "../ObjectType.js";
|
|
3
|
-
import { type Code } from "../ts-poet-wrapper.js";
|
|
4
|
-
export declare function ObjectType_filterTypeDeclaration(this: ObjectType): Maybe<Code>;
|
|
5
|
-
//# sourceMappingURL=ObjectType_filterTypeDeclaration.d.ts.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import type { ObjectType } from "../ObjectType.js";
|
|
3
|
-
import { type Code } from "../ts-poet-wrapper.js";
|
|
4
|
-
export declare function ObjectType_fromJsonFunctionDeclaration(this: ObjectType): Maybe<Code>;
|
|
5
|
-
//# sourceMappingURL=ObjectType_fromJsonFunctionDeclaration.d.ts.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import { code, joinCode } from "../ts-poet-wrapper.js";
|
|
3
|
-
export function ObjectType_fromJsonFunctionDeclaration() {
|
|
4
|
-
if (!this.configuration.features.has("Object.fromJson")) {
|
|
5
|
-
return Maybe.empty();
|
|
6
|
-
}
|
|
7
|
-
const variables = {
|
|
8
|
-
jsonObject: code `${this.configuration.syntheticNamePrefix}json`,
|
|
9
|
-
};
|
|
10
|
-
const chains = [];
|
|
11
|
-
this.parentObjectTypes.forEach((parentObjectType, parentObjectTypeI) => {
|
|
12
|
-
chains.push({
|
|
13
|
-
expression: code `${parentObjectType.alias.unsafeCoerce()}.fromJson(${variables.jsonObject})`,
|
|
14
|
-
variable: `super${parentObjectTypeI}`,
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
const propertyInitializers = this.properties.flatMap((property) => property.fromJsonInitializer({ variables }).toList());
|
|
18
|
-
if (propertyInitializers.length > 0) {
|
|
19
|
-
chains.push({
|
|
20
|
-
expression: code `${this.reusables.snippets.sequenceRecord}({ ${joinCode(propertyInitializers, { on: "," })} })`,
|
|
21
|
-
variable: "properties",
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
let returnExpression;
|
|
25
|
-
switch (chains.length) {
|
|
26
|
-
case 0:
|
|
27
|
-
returnExpression = code `create({})`;
|
|
28
|
-
break;
|
|
29
|
-
case 1:
|
|
30
|
-
returnExpression = code `(${chains[0].expression}).chain(create)`;
|
|
31
|
-
break;
|
|
32
|
-
default:
|
|
33
|
-
returnExpression = code `${chains
|
|
34
|
-
.reverse()
|
|
35
|
-
.reduce((acc, { expression, variable }) => code `(${expression}).chain(${variable} => ${acc})`, code `(create({ ${chains.map((chain) => `...${chain.variable}`).join(", ")} }))`)}`;
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
return Maybe.of(code `\
|
|
39
|
-
export function fromJson(${variables.jsonObject}: ${this.jsonType().name}): ${this.reusables.imports.Either}<Error, ${this.expression}> {
|
|
40
|
-
return ${returnExpression};
|
|
41
|
-
}`);
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=ObjectType_fromJsonFunctionDeclaration.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import type { ObjectType } from "../ObjectType.js";
|
|
3
|
-
import { type Code } from "../ts-poet-wrapper.js";
|
|
4
|
-
export declare function ObjectType_fromRdfResourceFunctionDeclaration(this: ObjectType): Maybe<Code>;
|
|
5
|
-
//# sourceMappingURL=ObjectType_fromRdfResourceFunctionDeclaration.d.ts.map
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import { arrayOf, code, joinCode } from "../ts-poet-wrapper.js";
|
|
3
|
-
export function ObjectType_fromRdfResourceFunctionDeclaration() {
|
|
4
|
-
if (!this.configuration.features.has("Object.fromRdf")) {
|
|
5
|
-
return Maybe.empty();
|
|
6
|
-
}
|
|
7
|
-
const syntheticNamePrefix = this.configuration.syntheticNamePrefix;
|
|
8
|
-
const optionsVariable = `_${syntheticNamePrefix}options`;
|
|
9
|
-
const variables = {
|
|
10
|
-
context: code `${optionsVariable}.context`,
|
|
11
|
-
graph: code `${optionsVariable}.graph`,
|
|
12
|
-
ignoreRdfType: code `${optionsVariable}.ignoreRdfType`,
|
|
13
|
-
objectSet: code `${optionsVariable}.objectSet`,
|
|
14
|
-
preferredLanguages: code `${optionsVariable}.preferredLanguages`,
|
|
15
|
-
resource: code `${syntheticNamePrefix}resource`,
|
|
16
|
-
};
|
|
17
|
-
const propertyFromRdfResourceValuesExpressionVariable = {
|
|
18
|
-
context: variables.context,
|
|
19
|
-
graph: variables.graph,
|
|
20
|
-
objectSet: variables.objectSet,
|
|
21
|
-
preferredLanguages: variables.preferredLanguages,
|
|
22
|
-
resource: variables.resource,
|
|
23
|
-
};
|
|
24
|
-
const chains = [];
|
|
25
|
-
const partials = [];
|
|
26
|
-
this.parentObjectTypes.forEach((parentObjectType, parentObjectTypeI) => {
|
|
27
|
-
chains.push({
|
|
28
|
-
expression: code `${parentObjectType.alias.unsafeCoerce()}._fromRdfResource(${variables.resource}, { ...${optionsVariable}, ignoreRdfType: true })`,
|
|
29
|
-
variable: `super${parentObjectTypeI}`,
|
|
30
|
-
});
|
|
31
|
-
partials.push(`super${parentObjectTypeI}`);
|
|
32
|
-
});
|
|
33
|
-
this.fromRdfTypeVariable.ifJust((fromRdfTypeVariable) => {
|
|
34
|
-
chains.push({
|
|
35
|
-
expression: code `!${variables.ignoreRdfType} ? ${this.reusables.snippets.ensureRdfResourceType}(${variables.resource}, ${arrayOf(fromRdfTypeVariable, ...this.descendantFromRdfTypeVariables)}, ${{ graph: variables.graph }}) : ${this.reusables.imports.Right}(true as const)`,
|
|
36
|
-
variable: `_rdfTypeCheck`,
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
const propertyFromRdfResourceValuesInitializers = this.properties.flatMap((property) => property
|
|
40
|
-
.fromRdfResourceValuesInitializer({
|
|
41
|
-
variables: propertyFromRdfResourceValuesExpressionVariable,
|
|
42
|
-
})
|
|
43
|
-
.toList());
|
|
44
|
-
if (Object.keys(propertyFromRdfResourceValuesInitializers).length > 0) {
|
|
45
|
-
chains.push({
|
|
46
|
-
expression: code `${this.reusables.snippets.sequenceRecord}({ ${joinCode(propertyFromRdfResourceValuesInitializers, { on: ", " })} })`,
|
|
47
|
-
variable: "properties",
|
|
48
|
-
});
|
|
49
|
-
partials.push("properties");
|
|
50
|
-
}
|
|
51
|
-
let partialsJoined;
|
|
52
|
-
switch (partials.length) {
|
|
53
|
-
case 0:
|
|
54
|
-
partialsJoined = code `{}`;
|
|
55
|
-
break;
|
|
56
|
-
case 1:
|
|
57
|
-
partialsJoined = code `${partials[0]}`;
|
|
58
|
-
break;
|
|
59
|
-
default:
|
|
60
|
-
partialsJoined = code `{ ${partials.map((partial) => `...${partial}`).join(", ")} }`;
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
let returnExpression;
|
|
64
|
-
const resultExpression = code `create(${partialsJoined})`;
|
|
65
|
-
if (chains.length === 0) {
|
|
66
|
-
returnExpression = code `${this.reusables.imports.Right}(${resultExpression})`;
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
returnExpression = code `${chains
|
|
70
|
-
.reverse()
|
|
71
|
-
.reduce((acc, { expression, variable }) => code `(${expression}).chain(${variable} => ${acc})`, code `(${resultExpression})`)}`;
|
|
72
|
-
}
|
|
73
|
-
return Maybe.of(code `\
|
|
74
|
-
export const _fromRdfResource: ${this.reusables.snippets._FromRdfResourceFunction}<${this.expression}> = (${variables.resource}, ${optionsVariable}) => {
|
|
75
|
-
return ${returnExpression};
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export const fromRdfResource = ${this.reusables.snippets.wrap_FromRdfResourceFunction}(_fromRdfResource);`);
|
|
79
|
-
}
|
|
80
|
-
//# sourceMappingURL=ObjectType_fromRdfResourceFunctionDeclaration.js.map
|
package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceValuesFunctionDeclaration.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import type { ObjectType } from "../ObjectType.js";
|
|
3
|
-
import { type Code } from "../ts-poet-wrapper.js";
|
|
4
|
-
export declare function ObjectType_fromRdfResourceValuesFunctionDeclaration(this: ObjectType): Maybe<Code>;
|
|
5
|
-
//# sourceMappingURL=ObjectType_fromRdfResourceValuesFunctionDeclaration.d.ts.map
|