@shaclmate/compiler 4.0.7 → 4.0.9

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.
Files changed (306) hide show
  1. package/dist/Compiler.d.ts +1 -4
  2. package/dist/Compiler.js +1 -5
  3. package/dist/ShapesGraphToAstTransformer.d.ts +2 -11
  4. package/dist/ShapesGraphToAstTransformer.js +25 -27
  5. package/dist/_ShapesGraphToAstTransformer/defaultNodeShapeNodeKinds.d.ts +3 -0
  6. package/dist/_ShapesGraphToAstTransformer/defaultNodeShapeNodeKinds.js +5 -0
  7. package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.d.ts +4 -0
  8. package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.js +27 -0
  9. package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstObjectTypeProperty.js +74 -19
  10. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.d.ts +1 -1
  11. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.js +45 -91
  12. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.d.ts +11 -0
  13. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.js +146 -0
  14. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstObjectType.d.ts +7 -0
  15. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstObjectType.js +182 -0
  16. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.js +9 -7
  17. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.d.ts +3 -5
  18. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.js +33 -10
  19. package/dist/ast/AbstractCompoundType.d.ts +26 -8
  20. package/dist/ast/AbstractCompoundType.js +84 -16
  21. package/dist/ast/AbstractContainerType.d.ts +2 -4
  22. package/dist/ast/AbstractContainerType.js +3 -4
  23. package/dist/ast/AbstractLazyObjectType.d.ts +1 -0
  24. package/dist/ast/AbstractLazyObjectType.js +3 -0
  25. package/dist/ast/AbstractTermType.d.ts +1 -0
  26. package/dist/ast/AbstractTermType.js +1 -0
  27. package/dist/ast/AbstractType.d.ts +16 -1
  28. package/dist/ast/AbstractType.js +11 -1
  29. package/dist/ast/Ast.d.ts +4 -4
  30. package/dist/ast/BlankNodeType.d.ts +1 -1
  31. package/dist/ast/DefaultValueType.d.ts +1 -2
  32. package/dist/ast/DefaultValueType.js +2 -0
  33. package/dist/ast/IdentifierType.d.ts +1 -1
  34. package/dist/ast/IntersectionType.d.ts +7 -2
  35. package/dist/ast/IntersectionType.js +8 -0
  36. package/dist/ast/ListType.d.ts +2 -9
  37. package/dist/ast/ListType.js +1 -9
  38. package/dist/ast/LiteralType.d.ts +1 -0
  39. package/dist/ast/LiteralType.js +26 -0
  40. package/dist/ast/ObjectCompoundType.d.ts +12 -0
  41. package/dist/ast/ObjectCompoundType.js +88 -0
  42. package/dist/ast/ObjectIntersectionType.d.ts +3 -7
  43. package/dist/ast/ObjectIntersectionType.js +1 -7
  44. package/dist/ast/ObjectType.d.ts +14 -31
  45. package/dist/ast/ObjectType.js +41 -73
  46. package/dist/ast/ObjectUnionType.d.ts +3 -7
  47. package/dist/ast/ObjectUnionType.js +1 -7
  48. package/dist/ast/OptionType.d.ts +1 -2
  49. package/dist/ast/OptionType.js +2 -0
  50. package/dist/ast/SetType.d.ts +1 -2
  51. package/dist/ast/SetType.js +2 -0
  52. package/dist/ast/Type.d.ts +1 -4
  53. package/dist/ast/Type.js +0 -6
  54. package/dist/ast/UnionType.d.ts +11 -6
  55. package/dist/ast/UnionType.js +6 -4
  56. package/dist/ast/index.d.ts +1 -2
  57. package/dist/ast/index.js +1 -2
  58. package/dist/generators/json/AstJsonGenerator.js +16 -14
  59. package/dist/generators/ts/AbstractCollectionType.js +8 -10
  60. package/dist/generators/ts/AbstractContainerType.d.ts +8 -3
  61. package/dist/generators/ts/AbstractContainerType.js +9 -2
  62. package/dist/generators/ts/AbstractDateType.d.ts +2 -2
  63. package/dist/generators/ts/AbstractDateType.js +2 -2
  64. package/dist/generators/ts/AbstractIdentifierType.d.ts +1 -1
  65. package/dist/generators/ts/AbstractIdentifierType.js +1 -1
  66. package/dist/generators/ts/AbstractLazyObjectType.d.ts +11 -8
  67. package/dist/generators/ts/AbstractLazyObjectType.js +19 -14
  68. package/dist/generators/ts/AbstractNamedUnionType.d.ts +33 -0
  69. package/dist/generators/ts/AbstractNamedUnionType.js +193 -0
  70. package/dist/generators/ts/AbstractNumericType.d.ts +2 -2
  71. package/dist/generators/ts/AbstractNumericType.js +3 -3
  72. package/dist/generators/ts/AbstractTermType.d.ts +7 -4
  73. package/dist/generators/ts/AbstractTermType.js +7 -4
  74. package/dist/generators/ts/AbstractType.d.ts +29 -14
  75. package/dist/generators/ts/AbstractUnionType.d.ts +80 -0
  76. package/dist/generators/ts/AbstractUnionType.js +514 -0
  77. package/dist/generators/ts/AnonymousUnionType.d.ts +26 -0
  78. package/dist/generators/ts/AnonymousUnionType.js +56 -0
  79. package/dist/generators/ts/BigDecimalType.d.ts +3 -3
  80. package/dist/generators/ts/BigDecimalType.js +3 -3
  81. package/dist/generators/ts/BlankNodeType.d.ts +1 -1
  82. package/dist/generators/ts/BlankNodeType.js +1 -1
  83. package/dist/generators/ts/BooleanType.d.ts +2 -2
  84. package/dist/generators/ts/BooleanType.js +2 -2
  85. package/dist/generators/ts/DefaultValueType.d.ts +4 -4
  86. package/dist/generators/ts/DefaultValueType.js +14 -13
  87. package/dist/generators/ts/IdentifierType.d.ts +1 -1
  88. package/dist/generators/ts/IdentifierType.js +1 -1
  89. package/dist/generators/ts/IriType.d.ts +1 -1
  90. package/dist/generators/ts/IriType.js +1 -1
  91. package/dist/generators/ts/LazyObjectOptionType.d.ts +1 -1
  92. package/dist/generators/ts/LazyObjectOptionType.js +9 -9
  93. package/dist/generators/ts/LazyObjectSetType.d.ts +1 -1
  94. package/dist/generators/ts/LazyObjectSetType.js +7 -7
  95. package/dist/generators/ts/LazyObjectType.d.ts +1 -1
  96. package/dist/generators/ts/LazyObjectType.js +7 -8
  97. package/dist/generators/ts/ListType.d.ts +8 -7
  98. package/dist/generators/ts/ListType.js +14 -13
  99. package/dist/generators/ts/LiteralType.d.ts +1 -1
  100. package/dist/generators/ts/LiteralType.js +2 -2
  101. package/dist/generators/ts/NamedObjectUnionType.d.ts +35 -0
  102. package/dist/generators/ts/NamedObjectUnionType.js +221 -0
  103. package/dist/generators/ts/NamedUnionType.d.ts +11 -0
  104. package/dist/generators/ts/NamedUnionType.js +13 -0
  105. package/dist/generators/ts/ObjectType.d.ts +34 -25
  106. package/dist/generators/ts/ObjectType.js +62 -52
  107. package/dist/generators/ts/OptionType.d.ts +4 -4
  108. package/dist/generators/ts/OptionType.js +10 -10
  109. package/dist/generators/ts/SetType.d.ts +4 -4
  110. package/dist/generators/ts/SetType.js +13 -11
  111. package/dist/generators/ts/StringType.d.ts +2 -2
  112. package/dist/generators/ts/StringType.js +2 -2
  113. package/dist/generators/ts/TermType.d.ts +1 -1
  114. package/dist/generators/ts/TermType.js +2 -2
  115. package/dist/generators/ts/TsGenerator.js +23 -15
  116. package/dist/generators/ts/Type.d.ts +4 -3
  117. package/dist/generators/ts/TypeFactory.d.ts +7 -5
  118. package/dist/generators/ts/TypeFactory.js +117 -90
  119. package/dist/generators/ts/ZodGenerator.js +6 -6
  120. package/dist/generators/ts/_ObjectType/AbstractProperty.d.ts +3 -3
  121. package/dist/generators/ts/_ObjectType/{TypeDiscriminantProperty.d.ts → DiscriminantProperty.d.ts} +14 -14
  122. package/dist/generators/ts/_ObjectType/{TypeDiscriminantProperty.js → DiscriminantProperty.js} +10 -10
  123. package/dist/generators/ts/_ObjectType/IdentifierPrefixProperty.d.ts +2 -2
  124. package/dist/generators/ts/_ObjectType/IdentifierPrefixProperty.js +2 -2
  125. package/dist/generators/ts/_ObjectType/IdentifierProperty.d.ts +2 -2
  126. package/dist/generators/ts/_ObjectType/IdentifierProperty.js +7 -4
  127. package/dist/generators/ts/_ObjectType/ObjectType_classDeclaration.js +8 -8
  128. package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlConstructTriplesFunctionDeclaration.d.ts +5 -0
  129. package/dist/generators/ts/_ObjectType/{ObjectType_sparqlConstructTriplesFunctionDeclaration.js → ObjectType_focusSparqlConstructTriplesFunctionDeclaration.js} +6 -5
  130. package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlWherePatternsFunctionDeclaration.d.ts +5 -0
  131. package/dist/generators/ts/_ObjectType/{ObjectType_sparqlWherePatternsFunctionDeclarations.js → ObjectType_focusSparqlWherePatternsFunctionDeclaration.js} +5 -5
  132. package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionDeclaration.d.ts +5 -0
  133. package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionDeclaration.js +20 -0
  134. package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionDeclaration.d.ts +5 -0
  135. package/dist/generators/ts/_ObjectType/{ObjectType_fromRdfFunctionDeclaration.js → ObjectType_fromRdfResourceFunctionDeclaration.js} +6 -7
  136. package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceValuesFunctionDeclaration.d.ts +5 -0
  137. package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceValuesFunctionDeclaration.js +20 -0
  138. package/dist/generators/ts/_ObjectType/ObjectType_isTypeFunctionDeclaration.js +2 -2
  139. package/dist/generators/ts/_ObjectType/ObjectType_parseJsonFunctionDeclaration.d.ts +5 -0
  140. package/dist/generators/ts/_ObjectType/ObjectType_parseJsonFunctionDeclaration.js +19 -0
  141. package/dist/generators/ts/_ObjectType/ObjectType_propertiesFromJsonFunctionDeclaration.d.ts +5 -0
  142. package/dist/generators/ts/_ObjectType/ObjectType_propertiesFromJsonFunctionDeclaration.js +38 -0
  143. package/dist/generators/ts/_ObjectType/ObjectType_propertiesFromRdfResourceFunctionDeclaration.d.ts +5 -0
  144. package/dist/generators/ts/_ObjectType/{ObjectType_propertiesFromRdfFunctionDeclaration.js → ObjectType_propertiesFromRdfResourceFunctionDeclaration.js} +16 -15
  145. package/dist/generators/ts/_ObjectType/ObjectType_schemaVariableStatement.js +1 -2
  146. package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.js +2 -2
  147. package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionOrMethodDeclaration.d.ts +5 -0
  148. package/dist/generators/ts/_ObjectType/{ObjectType_toRdfFunctionOrMethodDeclaration.js → ObjectType_toRdfResourceFunctionOrMethodDeclaration.js} +10 -8
  149. package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionDeclaration.d.ts +5 -0
  150. package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionDeclaration.js +13 -0
  151. package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionDeclaration.d.ts +5 -0
  152. package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionDeclaration.js +15 -0
  153. package/dist/generators/ts/_ObjectType/Property.d.ts +2 -2
  154. package/dist/generators/ts/_ObjectType/ShaclProperty.d.ts +2 -2
  155. package/dist/generators/ts/_ObjectType/ShaclProperty.js +6 -6
  156. package/dist/generators/ts/_snippets/snippets_FocusSparqlConstructTriplesFunction.d.ts +2 -0
  157. package/dist/generators/ts/_snippets/snippets_FocusSparqlConstructTriplesFunction.js +12 -0
  158. package/dist/generators/ts/_snippets/snippets_FocusSparqlWherePatternsFunction.d.ts +2 -0
  159. package/dist/generators/ts/_snippets/snippets_FocusSparqlWherePatternsFunction.js +14 -0
  160. package/dist/generators/ts/_snippets/snippets_FromRdfResourceFunction.d.ts +2 -0
  161. package/dist/generators/ts/_snippets/snippets_FromRdfResourceFunction.js +15 -0
  162. package/dist/generators/ts/_snippets/snippets_FromRdfResourceValuesFunction.d.ts +2 -0
  163. package/dist/generators/ts/_snippets/snippets_FromRdfResourceValuesFunction.js +17 -0
  164. package/dist/generators/ts/_snippets/snippets_PropertiesFromRdfResourceFunction.d.ts +2 -0
  165. package/dist/generators/ts/_snippets/snippets_PropertiesFromRdfResourceFunction.js +15 -0
  166. package/dist/generators/ts/_snippets/snippets_PropertyPath.d.ts +5 -0
  167. package/dist/generators/ts/_snippets/snippets_PropertyPath.js +35 -0
  168. package/dist/generators/ts/_snippets/snippets_ShaclPropertySchema.js +2 -2
  169. package/dist/generators/ts/_snippets/snippets_ToRdfResourceFunction.d.ts +2 -0
  170. package/dist/generators/ts/_snippets/snippets_ToRdfResourceFunction.js +7 -0
  171. package/dist/generators/ts/_snippets/snippets_ToRdfResourceValuesFunction.d.ts +2 -0
  172. package/dist/generators/ts/_snippets/snippets_ToRdfResourceValuesFunction.js +16 -0
  173. package/dist/generators/ts/_snippets/snippets_ValueSparqlConstructTriplesFunction.d.ts +2 -0
  174. package/dist/generators/ts/_snippets/snippets_ValueSparqlConstructTriplesFunction.js +13 -0
  175. package/dist/generators/ts/_snippets/snippets_ValueSparqlWherePatternsFunction.d.ts +2 -0
  176. package/dist/generators/ts/_snippets/snippets_ValueSparqlWherePatternsFunction.js +16 -0
  177. package/dist/generators/ts/_snippets/snippets_bigDecimalSparqlWherePatterns.js +2 -2
  178. package/dist/generators/ts/_snippets/snippets_blankNodeSparqlWherePatterns.js +2 -2
  179. package/dist/generators/ts/_snippets/snippets_booleanEquals.js +1 -1
  180. package/dist/generators/ts/_snippets/snippets_booleanSparqlWherePatterns.js +2 -2
  181. package/dist/generators/ts/_snippets/snippets_dateSparqlWherePatterns.js +2 -2
  182. package/dist/generators/ts/_snippets/snippets_defaultValueSparqlWherePatterns.js +2 -2
  183. package/dist/generators/ts/_snippets/snippets_fromRdfLanguageIn.js +1 -1
  184. package/dist/generators/ts/_snippets/snippets_identifierSparqlWherePatterns.js +2 -2
  185. package/dist/generators/ts/_snippets/snippets_iriSparqlWherePatterns.js +2 -2
  186. package/dist/generators/ts/_snippets/snippets_listSparqlConstructTriples.js +2 -2
  187. package/dist/generators/ts/_snippets/snippets_listSparqlWherePatterns.js +2 -2
  188. package/dist/generators/ts/_snippets/snippets_literalSparqlWherePatterns.js +2 -2
  189. package/dist/generators/ts/_snippets/snippets_maybeSparqlConstructTriples.js +2 -2
  190. package/dist/generators/ts/_snippets/snippets_maybeSparqlWherePatterns.js +2 -2
  191. package/dist/generators/ts/_snippets/snippets_numericSparqlWherePatterns.js +2 -3
  192. package/dist/generators/ts/_snippets/snippets_setSparqlConstructTriples.js +2 -2
  193. package/dist/generators/ts/_snippets/snippets_setSparqlWherePatterns.js +2 -2
  194. package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlConstructTriples.js +4 -3
  195. package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlWherePatterns.js +4 -3
  196. package/dist/generators/ts/_snippets/snippets_sparqlPropertyPath.js +3 -2
  197. package/dist/generators/ts/_snippets/snippets_stringSparqlWherePatterns.js +2 -2
  198. package/dist/generators/ts/_snippets/snippets_termSparqlWherePatterns.js +2 -2
  199. package/dist/generators/ts/graphqlSchemaVariableStatement.d.ts +2 -2
  200. package/dist/generators/ts/graphqlSchemaVariableStatement.js +4 -4
  201. package/dist/generators/ts/imports.d.ts +1 -1
  202. package/dist/generators/ts/imports.js +1 -1
  203. package/dist/generators/ts/objectSetDeclarations.d.ts +3 -3
  204. package/dist/generators/ts/objectSetDeclarations.js +15 -15
  205. package/dist/generators/ts/objectSetInterfaceDeclaration.d.ts +3 -3
  206. package/dist/generators/ts/objectSetInterfaceDeclaration.js +2 -2
  207. package/dist/generators/ts/rdfjsDatasetObjectSetClassDeclaration.d.ts +3 -3
  208. package/dist/generators/ts/rdfjsDatasetObjectSetClassDeclaration.js +16 -17
  209. package/dist/generators/ts/snippets.d.ts +10 -6
  210. package/dist/generators/ts/snippets.js +20 -12
  211. package/dist/generators/ts/sparqlObjectSetClassDeclaration.d.ts +3 -3
  212. package/dist/generators/ts/sparqlObjectSetClassDeclaration.js +7 -8
  213. package/dist/generators/ts/synthesizeUberObjectUnionType.d.ts +2 -2
  214. package/dist/generators/ts/synthesizeUberObjectUnionType.js +9 -4
  215. package/dist/input/NodeShape.d.ts +5 -6
  216. package/dist/input/NodeShape.js +19 -22
  217. package/dist/input/Ontology.d.ts +4 -4
  218. package/dist/input/Ontology.js +10 -10
  219. package/dist/input/PropertyShape.d.ts +4 -4
  220. package/dist/input/PropertyShape.js +10 -10
  221. package/dist/input/ShapesGraph.d.ts +3 -2
  222. package/dist/input/ShapesGraph.js +13 -8
  223. package/dist/input/generated.d.ts +2551 -2040
  224. package/dist/input/generated.js +2806 -2346
  225. package/package.json +3 -5
  226. package/dist/_ShapesGraphToAstTransformer/CurieFactory.d.ts +0 -16
  227. package/dist/_ShapesGraphToAstTransformer/CurieFactory.js +0 -45
  228. package/dist/_ShapesGraphToAstTransformer/NodeShapeAstType.d.ts +0 -3
  229. package/dist/_ShapesGraphToAstTransformer/NodeShapeAstType.js +0 -2
  230. package/dist/_ShapesGraphToAstTransformer/index.d.ts +0 -6
  231. package/dist/_ShapesGraphToAstTransformer/index.js +0 -6
  232. package/dist/_ShapesGraphToAstTransformer/shapeIdentifier.d.ts +0 -5
  233. package/dist/_ShapesGraphToAstTransformer/shapeIdentifier.js +0 -9
  234. package/dist/_ShapesGraphToAstTransformer/transformNodeShapeToAstType.d.ts +0 -11
  235. package/dist/_ShapesGraphToAstTransformer/transformNodeShapeToAstType.js +0 -338
  236. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstAbstractTypeProperties.d.ts +0 -12
  237. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstAbstractTypeProperties.js +0 -31
  238. package/dist/ast/AbstractObjectCompoundType.d.ts +0 -45
  239. package/dist/ast/AbstractObjectCompoundType.js +0 -180
  240. package/dist/ast/Curie.d.ts +0 -21
  241. package/dist/ast/Curie.js +0 -29
  242. package/dist/ast/PlaceholderType.d.ts +0 -15
  243. package/dist/ast/PlaceholderType.js +0 -19
  244. package/dist/generators/codeName.d.ts +0 -6
  245. package/dist/generators/codeName.js +0 -66
  246. package/dist/generators/ts/AbstractDeclaredType.d.ts +0 -23
  247. package/dist/generators/ts/AbstractDeclaredType.js +0 -17
  248. package/dist/generators/ts/ObjectUnionType.d.ts +0 -65
  249. package/dist/generators/ts/ObjectUnionType.js +0 -257
  250. package/dist/generators/ts/UnionType.d.ts +0 -40
  251. package/dist/generators/ts/UnionType.js +0 -527
  252. package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionDeclarations.d.ts +0 -4
  253. package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionDeclarations.js +0 -66
  254. package/dist/generators/ts/_ObjectType/ObjectType_fromRdfFunctionDeclaration.d.ts +0 -5
  255. package/dist/generators/ts/_ObjectType/ObjectType_propertiesFromRdfFunctionDeclaration.d.ts +0 -5
  256. package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructTriplesFunctionDeclaration.d.ts +0 -5
  257. package/dist/generators/ts/_ObjectType/ObjectType_sparqlWherePatternsFunctionDeclarations.d.ts +0 -5
  258. package/dist/generators/ts/_ObjectType/ObjectType_toRdfFunctionOrMethodDeclaration.d.ts +0 -5
  259. package/dist/generators/ts/_ObjectUnionType/MemberType.d.ts +0 -34
  260. package/dist/generators/ts/_ObjectUnionType/MemberType.js +0 -105
  261. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_equalsFunctionDeclaration.d.ts +0 -5
  262. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_equalsFunctionDeclaration.js +0 -29
  263. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_filterFunctionDeclaration.d.ts +0 -4
  264. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_filterFunctionDeclaration.js +0 -19
  265. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_filterTypeDeclaration.d.ts +0 -4
  266. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_filterTypeDeclaration.js +0 -10
  267. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_fromJsonFunctionDeclaration.d.ts +0 -5
  268. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_fromJsonFunctionDeclaration.js +0 -19
  269. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_fromRdfFunctionDeclarations.d.ts +0 -5
  270. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_fromRdfFunctionDeclarations.js +0 -20
  271. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_graphqlTypeVariableStatement.d.ts +0 -5
  272. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_graphqlTypeVariableStatement.js +0 -18
  273. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_hashFunctionDeclaration.d.ts +0 -5
  274. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_hashFunctionDeclaration.js +0 -28
  275. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_identifierTypeDeclarations.d.ts +0 -4
  276. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_identifierTypeDeclarations.js +0 -9
  277. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_isTypeFunctionDeclaration.d.ts +0 -5
  278. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_isTypeFunctionDeclaration.js +0 -13
  279. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_jsonTypeAliasDeclaration.d.ts +0 -5
  280. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_jsonTypeAliasDeclaration.js +0 -10
  281. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_jsonZodSchemaFunctionDeclaration.d.ts +0 -5
  282. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_jsonZodSchemaFunctionDeclaration.js +0 -14
  283. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_schemaVariableStatement.d.ts +0 -4
  284. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_schemaVariableStatement.js +0 -37
  285. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_sparqlConstructTriplesFunctionDeclaration.d.ts +0 -5
  286. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_sparqlConstructTriplesFunctionDeclaration.js +0 -15
  287. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_sparqlWherePatternsFunctionDeclaration.d.ts +0 -5
  288. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_sparqlWherePatternsFunctionDeclaration.js +0 -35
  289. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_toJsonFunctionDeclaration.d.ts +0 -5
  290. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_toJsonFunctionDeclaration.js +0 -26
  291. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_toRdfFunctionDeclarations.d.ts +0 -5
  292. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_toRdfFunctionDeclarations.js +0 -43
  293. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_typeAliasDeclaration.d.ts +0 -4
  294. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_typeAliasDeclaration.js +0 -10
  295. package/dist/generators/ts/_snippets/snippets_FromRdfOptions.d.ts +0 -2
  296. package/dist/generators/ts/_snippets/snippets_FromRdfOptions.js +0 -5
  297. package/dist/generators/ts/_snippets/snippets_PropertiesFromRdfParameters.d.ts +0 -2
  298. package/dist/generators/ts/_snippets/snippets_PropertiesFromRdfParameters.js +0 -5
  299. package/dist/generators/ts/_snippets/snippets_SparqlConstructTriplesFunction.d.ts +0 -2
  300. package/dist/generators/ts/_snippets/snippets_SparqlConstructTriplesFunction.js +0 -6
  301. package/dist/generators/ts/_snippets/snippets_SparqlConstructTriplesFunctionParameters.d.ts +0 -2
  302. package/dist/generators/ts/_snippets/snippets_SparqlConstructTriplesFunctionParameters.js +0 -12
  303. package/dist/generators/ts/_snippets/snippets_SparqlWherePatternsFunction.d.ts +0 -2
  304. package/dist/generators/ts/_snippets/snippets_SparqlWherePatternsFunction.js +0 -6
  305. package/dist/generators/ts/_snippets/snippets_SparqlWherePatternsFunctionParameters.d.ts +0 -2
  306. package/dist/generators/ts/_snippets/snippets_SparqlWherePatternsFunctionParameters.js +0 -15
@@ -1,5 +1,5 @@
1
- import { type Code } from "ts-poet";
2
1
  import { AbstractLiteralType } from "./AbstractLiteralType.js";
2
+ import { type Code } from "./ts-poet-wrapper.js";
3
3
  export declare class BigDecimalType extends AbstractLiteralType {
4
4
  readonly filterFunction: Code;
5
5
  readonly filterType: Code;
@@ -7,7 +7,7 @@ export declare class BigDecimalType extends AbstractLiteralType {
7
7
  readonly kind = "BigDecimalType";
8
8
  readonly name: Code;
9
9
  readonly schemaType: Code;
10
- readonly sparqlWherePatternsFunction: Code;
10
+ readonly valueSparqlWherePatternsFunction: Code;
11
11
  get conversions(): readonly AbstractLiteralType.Conversion[];
12
12
  fromJsonExpression({ variables, }: Parameters<AbstractLiteralType["fromJsonExpression"]>[0]): Code;
13
13
  graphqlResolveExpression({ variables, }: Parameters<AbstractLiteralType["graphqlResolveExpression"]>[0]): Code;
@@ -16,6 +16,6 @@ export declare class BigDecimalType extends AbstractLiteralType {
16
16
  jsonZodSchema(): Code;
17
17
  toJsonExpression({ variables, }: Parameters<AbstractLiteralType["toJsonExpression"]>[0]): Code;
18
18
  protected fromRdfExpressionChain({ variables, }: Parameters<AbstractLiteralType["fromRdfExpressionChain"]>[0]): ReturnType<AbstractLiteralType["fromRdfExpressionChain"]>;
19
- toRdfExpression({ variables, }: Parameters<AbstractLiteralType["toRdfExpression"]>[0]): Code;
19
+ toRdfResourceValuesExpression({ variables, }: Parameters<AbstractLiteralType["toRdfResourceValuesExpression"]>[0]): Code;
20
20
  }
21
21
  //# sourceMappingURL=BigDecimalType.d.ts.map
@@ -4,11 +4,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { code } from "ts-poet";
8
7
  import { Memoize } from "typescript-memoize";
9
8
  import { AbstractLiteralType } from "./AbstractLiteralType.js";
10
9
  import { imports } from "./imports.js";
11
10
  import { snippets } from "./snippets.js";
11
+ import { code } from "./ts-poet-wrapper.js";
12
12
  export class BigDecimalType extends AbstractLiteralType {
13
13
  filterFunction = code `${snippets.filterBigDecimal}`;
14
14
  filterType = code `${snippets.NumericFilter}<${imports.BigDecimal}>`;
@@ -16,7 +16,7 @@ export class BigDecimalType extends AbstractLiteralType {
16
16
  kind = "BigDecimalType";
17
17
  name = code `${imports.BigDecimal}`;
18
18
  schemaType = code `${snippets.NumericSchema}<${imports.BigDecimal}>`;
19
- sparqlWherePatternsFunction = code `${snippets.bigDecimalSparqlWherePatterns}`;
19
+ valueSparqlWherePatternsFunction = code `${snippets.bigDecimalSparqlWherePatterns}`;
20
20
  get conversions() {
21
21
  return [
22
22
  // {
@@ -75,7 +75,7 @@ export class BigDecimalType extends AbstractLiteralType {
75
75
  valueTo: code `chain(values => values.chainMap(value => value.toLiteral().chain(${snippets.decodeBigDecimalLiteral})))`,
76
76
  };
77
77
  }
78
- toRdfExpression({ variables, }) {
78
+ toRdfResourceValuesExpression({ variables, }) {
79
79
  return code `[${snippets.bigDecimalLiteral}(${variables.value})]`;
80
80
  }
81
81
  }
@@ -10,7 +10,7 @@ export declare class BlankNodeType extends AbstractIdentifierType<BlankNode> {
10
10
  readonly name: Code;
11
11
  readonly nodeKinds: ReadonlySet<"BlankNode">;
12
12
  readonly schemaType: Code;
13
- readonly sparqlWherePatternsFunction: Code;
13
+ readonly valueSparqlWherePatternsFunction: Code;
14
14
  constructor(superParameters: Pick<ConstructorParameters<typeof AbstractIdentifierType<BlankNode>>[0], "comment" | "label">);
15
15
  fromJsonExpression({ variables, }: Parameters<AbstractTermType<NamedNode, BlankNode | NamedNode>["fromJsonExpression"]>[0]): Code;
16
16
  jsonType(parameters?: Parameters<AbstractTermType["jsonType"]>[0]): AbstractTermType.JsonType;
@@ -18,7 +18,7 @@ export class BlankNodeType extends AbstractIdentifierType {
18
18
  name = code `${imports.BlankNode}`;
19
19
  nodeKinds = nodeKinds;
20
20
  schemaType = code `${snippets.BlankNodeSchema}`;
21
- sparqlWherePatternsFunction = code `${snippets.blankNodeSparqlWherePatterns}`;
21
+ valueSparqlWherePatternsFunction = code `${snippets.blankNodeSparqlWherePatterns}`;
22
22
  constructor(superParameters) {
23
23
  super({
24
24
  ...superParameters,
@@ -7,7 +7,7 @@ export declare class BooleanType extends AbstractPrimitiveType<boolean> {
7
7
  readonly graphqlType: import("./AbstractType.js").AbstractType.GraphqlType;
8
8
  readonly kind = "BooleanType";
9
9
  readonly schemaType: Code;
10
- readonly sparqlWherePatternsFunction: Code;
10
+ readonly valueSparqlWherePatternsFunction: Code;
11
11
  readonly typeofs: NonEmptyList<"boolean">;
12
12
  get name(): string;
13
13
  protected get schemaObject(): {
@@ -16,7 +16,7 @@ export declare class BooleanType extends AbstractPrimitiveType<boolean> {
16
16
  kind: Code;
17
17
  };
18
18
  jsonZodSchema(_parameters: Parameters<AbstractPrimitiveType<number>["jsonZodSchema"]>[0]): Code;
19
- toRdfExpression({ variables, }: Parameters<AbstractPrimitiveType<boolean>["toRdfExpression"]>[0]): Code;
19
+ toRdfResourceValuesExpression({ variables, }: Parameters<AbstractPrimitiveType<boolean>["toRdfResourceValuesExpression"]>[0]): Code;
20
20
  protected fromRdfExpressionChain({ variables, }: Parameters<AbstractPrimitiveType<boolean>["fromRdfExpressionChain"]>[0]): ReturnType<AbstractPrimitiveType<boolean>["fromRdfExpressionChain"]>;
21
21
  }
22
22
  //# sourceMappingURL=BooleanType.d.ts.map
@@ -17,7 +17,7 @@ export class BooleanType extends AbstractPrimitiveType {
17
17
  graphqlType = new AbstractPrimitiveType.GraphqlType(code `${imports.GraphQLBoolean}`);
18
18
  kind = "BooleanType";
19
19
  schemaType = code `${snippets.BooleanSchema}`;
20
- sparqlWherePatternsFunction = code `${snippets.booleanSparqlWherePatterns}`;
20
+ valueSparqlWherePatternsFunction = code `${snippets.booleanSparqlWherePatterns}`;
21
21
  typeofs = NonEmptyList(["boolean"]);
22
22
  get name() {
23
23
  if (this.primitiveIn.length > 0) {
@@ -37,7 +37,7 @@ export class BooleanType extends AbstractPrimitiveType {
37
37
  }
38
38
  return code `${imports.z}.boolean()`;
39
39
  }
40
- toRdfExpression({ variables, }) {
40
+ toRdfResourceValuesExpression({ variables, }) {
41
41
  return code `[${snippets.literalFactory}.boolean(${variables.value}, ${rdfjsTermExpression(this.datatype)})]`;
42
42
  }
43
43
  fromRdfExpressionChain({ variables, }) {
@@ -22,8 +22,8 @@ export declare class DefaultValueType<ItemTypeT extends DefaultValueType.ItemTyp
22
22
  get mutable(): boolean;
23
23
  get name(): Code | string;
24
24
  get schemaType(): Code;
25
- get sparqlConstructTriplesFunction(): Code;
26
- get sparqlWherePatternsFunction(): Code;
25
+ get valueSparqlConstructTriplesFunction(): Code;
26
+ get valueSparqlWherePatternsFunction(): Code;
27
27
  protected get schemaObject(): {
28
28
  defaultValue: Code;
29
29
  item: Code;
@@ -32,14 +32,14 @@ export declare class DefaultValueType<ItemTypeT extends DefaultValueType.ItemTyp
32
32
  private get defaultValuePrimitiveExpression();
33
33
  private get defaultValueTermExpression();
34
34
  fromJsonExpression(parameters: Parameters<AbstractType["fromJsonExpression"]>[0]): Code;
35
- fromRdfExpression({ variables, }: Parameters<AbstractContainerType<ItemTypeT>["fromRdfExpression"]>[0]): Code;
35
+ fromRdfResourceValuesExpression({ variables, }: Parameters<AbstractContainerType<ItemTypeT>["fromRdfResourceValuesExpression"]>[0]): Code;
36
36
  graphqlResolveExpression(parameters: Parameters<AbstractContainerType<ItemTypeT>["graphqlResolveExpression"]>[0]): Code;
37
37
  hashStatements(parameters: Parameters<AbstractContainerType<ItemTypeT>["hashStatements"]>[0]): readonly Code[];
38
38
  jsonType(parameters?: Parameters<AbstractContainerType<ItemTypeT>["jsonType"]>[0]): AbstractType.JsonType;
39
39
  jsonUiSchemaElement(parameters: Parameters<AbstractContainerType<ItemTypeT>["jsonUiSchemaElement"]>[0]): Maybe<Code>;
40
40
  jsonZodSchema(parameters: Parameters<AbstractContainerType<ItemTypeT>["jsonZodSchema"]>[0]): Code;
41
41
  toJsonExpression(parameters: Parameters<AbstractType["toJsonExpression"]>[0]): Code;
42
- toRdfExpression(parameters: Parameters<AbstractType["toRdfExpression"]>[0]): Code;
42
+ toRdfResourceValuesExpression(parameters: Parameters<AbstractType["toRdfResourceValuesExpression"]>[0]): Code;
43
43
  }
44
44
  export declare namespace DefaultValueType {
45
45
  type ItemType = Exclude<AbstractContainerType.ItemType, BlankNodeType>;
@@ -56,11 +56,11 @@ export class DefaultValueType extends AbstractContainerType {
56
56
  get schemaType() {
57
57
  return code `${snippets.DefaultValueSchema}`;
58
58
  }
59
- get sparqlConstructTriplesFunction() {
60
- return this.itemType.sparqlConstructTriplesFunction;
59
+ get valueSparqlConstructTriplesFunction() {
60
+ return this.itemType.valueSparqlConstructTriplesFunction;
61
61
  }
62
- get sparqlWherePatternsFunction() {
63
- return code `${snippets.defaultValueSparqlWherePatterns}<${this.itemType.filterType}, ${this.itemType.schemaType}>(${this.itemType.sparqlWherePatternsFunction})`;
62
+ get valueSparqlWherePatternsFunction() {
63
+ return code `${snippets.defaultValueSparqlWherePatterns}<${this.itemType.filterType}, ${this.itemType.schemaType}>(${this.itemType.valueSparqlWherePatternsFunction})`;
64
64
  }
65
65
  get schemaObject() {
66
66
  return {
@@ -102,10 +102,11 @@ export class DefaultValueType extends AbstractContainerType {
102
102
  case "TermType":
103
103
  invariant(this.defaultValue.termType === "Literal");
104
104
  return Maybe.of(this.defaultValueTermExpression);
105
+ case "AnonymousUnionType":
105
106
  case "ListType":
106
107
  case "ObjectType":
107
- case "ObjectUnionType":
108
- case "UnionType":
108
+ case "NamedObjectUnionType":
109
+ case "NamedUnionType":
109
110
  return Maybe.empty();
110
111
  default:
111
112
  this.itemType;
@@ -118,8 +119,8 @@ export class DefaultValueType extends AbstractContainerType {
118
119
  fromJsonExpression(parameters) {
119
120
  return this.itemType.fromJsonExpression(parameters);
120
121
  }
121
- fromRdfExpression({ variables, }) {
122
- return this.itemType.fromRdfExpression({
122
+ fromRdfResourceValuesExpression({ variables, }) {
123
+ return this.itemType.fromRdfResourceValuesExpression({
123
124
  variables: {
124
125
  ...variables,
125
126
  resourceValues: code `${variables.resourceValues}.map(values => values.length > 0 ? values : new ${imports.Resource}.Value(${{ dataFactory: imports.dataFactory, focusResource: variables.resource, propertyPath: variables.propertyPath, term: this.defaultValueTermExpression }}).toValues())`,
@@ -144,11 +145,11 @@ export class DefaultValueType extends AbstractContainerType {
144
145
  toJsonExpression(parameters) {
145
146
  return this.itemType.toJsonExpression(parameters);
146
147
  }
147
- toRdfExpression(parameters) {
148
+ toRdfResourceValuesExpression(parameters) {
148
149
  const { variables } = parameters;
149
150
  return this.defaultValuePrimitiveExpression
150
- .map((defaultValuePrimitiveExpression) => code `${this.itemType.equalsFunction}(${variables.value}, ${defaultValuePrimitiveExpression}).isLeft() ? ${this.itemType.toRdfExpression(parameters)} : []`)
151
- .orDefault(code `${this.itemType.toRdfExpression(parameters)}.filter(value => !value.equals(${this.defaultValueTermExpression}))`);
151
+ .map((defaultValuePrimitiveExpression) => code `${this.itemType.equalsFunction}(${variables.value}, ${defaultValuePrimitiveExpression}).isLeft() ? ${this.itemType.toRdfResourceValuesExpression(parameters)} : []`)
152
+ .orDefault(code `${this.itemType.toRdfResourceValuesExpression(parameters)}.filter(value => !value.equals(${this.defaultValueTermExpression}))`);
152
153
  }
153
154
  }
154
155
  __decorate([
@@ -156,10 +157,10 @@ __decorate([
156
157
  ], DefaultValueType.prototype, "schemaType", null);
157
158
  __decorate([
158
159
  Memoize()
159
- ], DefaultValueType.prototype, "sparqlConstructTriplesFunction", null);
160
+ ], DefaultValueType.prototype, "valueSparqlConstructTriplesFunction", null);
160
161
  __decorate([
161
162
  Memoize()
162
- ], DefaultValueType.prototype, "sparqlWherePatternsFunction", null);
163
+ ], DefaultValueType.prototype, "valueSparqlWherePatternsFunction", null);
163
164
  __decorate([
164
165
  Memoize()
165
166
  ], DefaultValueType.prototype, "defaultValuePrimitiveExpression", null);
@@ -11,7 +11,7 @@ export declare class IdentifierType extends AbstractIdentifierType<BlankNode | N
11
11
  readonly name: Code;
12
12
  readonly nodeKinds: ReadonlySet<IdentifierNodeKind>;
13
13
  readonly schemaType: Code;
14
- readonly sparqlWherePatternsFunction: Code;
14
+ readonly valueSparqlWherePatternsFunction: Code;
15
15
  constructor(parameters: Pick<ConstructorParameters<typeof AbstractIdentifierType<BlankNode | NamedNode>>[0], "comment" | "label">);
16
16
  fromJsonExpression({ variables, }: Parameters<AbstractTermType<NamedNode, BlankNode | NamedNode>["fromJsonExpression"]>[0]): Code;
17
17
  jsonType(parameters?: Parameters<AbstractTermType["jsonType"]>[0]): AbstractTermType.JsonType;
@@ -19,7 +19,7 @@ export class IdentifierType extends AbstractIdentifierType {
19
19
  name = code `(${imports.BlankNode} | ${imports.NamedNode})`;
20
20
  nodeKinds = nodeKinds;
21
21
  schemaType = code `${snippets.IdentifierSchema}`;
22
- sparqlWherePatternsFunction = code `${snippets.identifierSparqlWherePatterns}`;
22
+ valueSparqlWherePatternsFunction = code `${snippets.identifierSparqlWherePatterns}`;
23
23
  constructor(parameters) {
24
24
  super({
25
25
  ...parameters,
@@ -8,7 +8,7 @@ export declare class IriType extends AbstractIdentifierType<NamedNode> {
8
8
  readonly kind = "IriType";
9
9
  readonly nodeKinds: ReadonlySet<"IRI">;
10
10
  readonly schemaType: Code;
11
- readonly sparqlWherePatternsFunction: Code;
11
+ readonly valueSparqlWherePatternsFunction: Code;
12
12
  get fromStringFunction(): Code;
13
13
  get name(): Code;
14
14
  protected get schemaObject(): {
@@ -17,7 +17,7 @@ export class IriType extends AbstractIdentifierType {
17
17
  kind = "IriType";
18
18
  nodeKinds = nodeKinds;
19
19
  schemaType = code `${snippets.IriSchema}`;
20
- sparqlWherePatternsFunction = code `${snippets.iriSparqlWherePatterns}`;
20
+ valueSparqlWherePatternsFunction = code `${snippets.iriSparqlWherePatterns}`;
21
21
  get fromStringFunction() {
22
22
  const expressions = [
23
23
  code `${imports.Either}.encase(() => ${imports.Resource}.Identifier.fromString({ ${imports.dataFactory}, identifier }))`,
@@ -24,7 +24,7 @@ export declare class LazyObjectOptionType extends Super {
24
24
  constructor({ partialType, resolveType, ...superParameters }: Omit<ConstructorParameters<typeof AbstractLazyObjectType<OptionType<AbstractLazyObjectType.ObjectTypeConstraint>, OptionType<AbstractLazyObjectType.ObjectTypeConstraint>>>[0], "runtimeClass">);
25
25
  get conversions(): readonly AbstractLazyObjectType.Conversion[];
26
26
  fromJsonExpression(parameters: Parameters<Super["fromJsonExpression"]>[0]): Code;
27
- fromRdfExpression(parameters: Parameters<Super["fromRdfExpression"]>[0]): Code;
27
+ fromRdfResourceValuesExpression(parameters: Parameters<Super["fromRdfResourceValuesExpression"]>[0]): Code;
28
28
  graphqlResolveExpression({ variables, }: Parameters<Super["graphqlResolveExpression"]>[0]): Code;
29
29
  }
30
30
  export {};
@@ -36,18 +36,18 @@ export class LazyObjectOptionType extends Super {
36
36
  sourceTypeof: "object",
37
37
  }, {
38
38
  conversionExpression: (value) => code `new ${this.runtimeClass.name}({ ${this.runtimeClass.partialPropertyName}: ${imports.Maybe}.of(${this.partialType.itemType.newExpression({ parameters: value })}), resolver: async () => ${imports.Right}(${value} as ${this.resolveType.itemType.name}) })`,
39
- // Don't check instanceof value since the ObjectUnionType may be an interface
39
+ // Don't check instanceof value since the NamedObjectUnionType may be an interface
40
40
  // Rely on the fact that this will be the last type check on an object
41
41
  sourceTypeCheckExpression: (value) => code `typeof ${value} === "object"`,
42
42
  sourceTypeName: this.resolveType.itemType.name,
43
43
  sourceTypeof: "object",
44
44
  });
45
45
  }
46
- else if (this.resolveType.itemType.kind === "ObjectUnionType" &&
47
- this.partialType.itemType.kind === "ObjectUnionType" &&
48
- this.resolveType.itemType.memberTypes.length ===
49
- this.partialType.itemType.memberTypes.length) {
50
- const maybeMap = code `.map(object => { ${this.resolvedObjectUnionTypeToPartialObjectUnionTypeConversion({ resolvedObjectUnionType: this.resolveType.itemType, partialObjectUnionType: this.partialType.itemType, variables: { resolvedObjectUnion: code `object` } })} })`;
46
+ else if (this.resolveType.itemType.kind === "NamedObjectUnionType" &&
47
+ this.partialType.itemType.kind === "NamedObjectUnionType" &&
48
+ this.resolveType.itemType.members.length ===
49
+ this.partialType.itemType.members.length) {
50
+ const maybeMap = code `.map(object => { ${this.resolvedNamedObjectUnionTypeToPartialNamedObjectUnionTypeConversion({ resolvedNamedObjectUnionType: this.resolveType.itemType, partialNamedObjectUnionType: this.partialType.itemType, variables: { resolvedObjectUnion: code `object` } })} })`;
51
51
  conversions.push({
52
52
  conversionExpression: (value) => code `new ${this.runtimeClass.name}({ ${this.runtimeClass.partialPropertyName}: ${value}${maybeMap}, resolver: async () => ${imports.Right}((${value} as ${imports.Maybe}<${this.resolveType.itemType.name}>).unsafeCoerce()) })`,
53
53
  sourceTypeCheckExpression: (value) => code `${imports.Maybe}.isMaybe(${value})`,
@@ -55,7 +55,7 @@ export class LazyObjectOptionType extends Super {
55
55
  sourceTypeof: "object",
56
56
  }, {
57
57
  conversionExpression: (value) => code `new ${this.runtimeClass.name}({ ${this.runtimeClass.partialPropertyName}: ${imports.Maybe}.of(${value})${maybeMap}, resolver: async () => ${imports.Right}(${value} as ${this.resolveType.itemType.name}) })`,
58
- // Don't check instanceof value since the ObjectUnionType may be an interface
58
+ // Don't check instanceof value since the NamedObjectUnionType may be an interface
59
59
  // Rely on the fact that this will be the last type check on an object
60
60
  sourceTypeCheckExpression: (value) => code `typeof ${value} === "object"`,
61
61
  sourceTypeName: this.resolveType.itemType.name,
@@ -73,9 +73,9 @@ export class LazyObjectOptionType extends Super {
73
73
  fromJsonExpression(parameters) {
74
74
  return code `new ${this.runtimeClass.name}({ ${this.runtimeClass.partialPropertyName}: ${this.partialType.fromJsonExpression(parameters)}, resolver: (identifier) => Promise.resolve(${imports.Left}(new Error(\`unable to resolve identifier \${${imports.Resource}.Identifier.toString(identifier)} deserialized from JSON\`))) })`;
75
75
  }
76
- fromRdfExpression(parameters) {
76
+ fromRdfResourceValuesExpression(parameters) {
77
77
  const { variables } = parameters;
78
- return code `${this.partialType.fromRdfExpression(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) })))`;
78
+ 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) })))`;
79
79
  }
80
80
  graphqlResolveExpression({ variables, }) {
81
81
  return code `${variables.value}.resolve().then(either => either.unsafeCoerce().extractNullable())`;
@@ -7,7 +7,7 @@ export declare class LazyObjectSetType extends AbstractLazyObjectType<SetType<Ab
7
7
  constructor({ partialType, resolveType, ...superParameters }: Omit<ConstructorParameters<typeof AbstractLazyObjectType<SetType<AbstractLazyObjectType.ObjectTypeConstraint>, SetType<AbstractLazyObjectType.ObjectTypeConstraint>>>[0], "runtimeClass">);
8
8
  get conversions(): readonly AbstractLazyObjectType.Conversion[];
9
9
  fromJsonExpression(parameters: Parameters<Super["fromJsonExpression"]>[0]): Code;
10
- fromRdfExpression(parameters: Parameters<Super["fromRdfExpression"]>[0]): Code;
10
+ fromRdfResourceValuesExpression(parameters: Parameters<Super["fromRdfResourceValuesExpression"]>[0]): Code;
11
11
  graphqlResolveExpression({ variables, }: Parameters<Super["graphqlResolveExpression"]>[0]): Code;
12
12
  }
13
13
  type Super = AbstractLazyObjectType<SetType<AbstractLazyObjectType.ObjectTypeConstraint>, SetType<AbstractLazyObjectType.ObjectTypeConstraint>>;
@@ -42,12 +42,12 @@ export class LazyObjectSetType extends AbstractLazyObjectType {
42
42
  sourceTypeof: "object",
43
43
  });
44
44
  }
45
- else if (this.resolveType.itemType.kind === "ObjectUnionType" &&
46
- this.partialType.itemType.kind === "ObjectUnionType" &&
47
- this.resolveType.itemType.memberTypes.length ===
48
- this.partialType.itemType.memberTypes.length) {
45
+ else if (this.resolveType.itemType.kind === "NamedObjectUnionType" &&
46
+ this.partialType.itemType.kind === "NamedObjectUnionType" &&
47
+ this.resolveType.itemType.members.length ===
48
+ this.partialType.itemType.members.length) {
49
49
  conversions.push({
50
- conversionExpression: (value) => code `new ${this.runtimeClass.name}({ ${this.runtimeClass.partialPropertyName}: ${value}.map(object => { ${this.resolvedObjectUnionTypeToPartialObjectUnionTypeConversion({ resolvedObjectUnionType: this.resolveType.itemType, partialObjectUnionType: this.partialType.itemType, variables: { resolvedObjectUnion: code `object` } })} }), resolver: async () => ${imports.Right}(${value} as readonly ${this.resolveType.itemType.name}[]) })`,
50
+ conversionExpression: (value) => code `new ${this.runtimeClass.name}({ ${this.runtimeClass.partialPropertyName}: ${value}.map(object => { ${this.resolvedNamedObjectUnionTypeToPartialNamedObjectUnionTypeConversion({ resolvedNamedObjectUnionType: this.resolveType.itemType, partialNamedObjectUnionType: this.partialType.itemType, variables: { resolvedObjectUnion: code `object` } })} }), resolver: async () => ${imports.Right}(${value} as readonly ${this.resolveType.itemType.name}[]) })`,
51
51
  sourceTypeCheckExpression: (value) => code `typeof ${value} === "object"`,
52
52
  sourceTypeName: code `readonly ${this.resolveType.itemType.name}[]`,
53
53
  sourceTypeof: "object",
@@ -64,9 +64,9 @@ export class LazyObjectSetType extends AbstractLazyObjectType {
64
64
  fromJsonExpression(parameters) {
65
65
  return code `new ${this.runtimeClass.name}({ ${this.runtimeClass.partialPropertyName}: ${this.partialType.fromJsonExpression(parameters)}, resolver: () => Promise.resolve(${imports.Left}(new Error("unable to resolve identifiers deserialized from JSON"))) })`;
66
66
  }
67
- fromRdfExpression(parameters) {
67
+ fromRdfResourceValuesExpression(parameters) {
68
68
  const { variables } = parameters;
69
- return code `${this.partialType.fromRdfExpression(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 }) })))`;
69
+ 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 }) })))`;
70
70
  }
71
71
  graphqlResolveExpression({ variables, }) {
72
72
  return code `(${variables.value}.resolve({ limit: ${variables.args}.limit, offset: ${variables.args}.offset })).then(either => either.unsafeCoerce())`;
@@ -6,7 +6,7 @@ export declare class LazyObjectType extends AbstractLazyObjectType<AbstractLazyO
6
6
  constructor({ partialType, resolveType, ...superParameters }: Omit<ConstructorParameters<typeof AbstractLazyObjectType<AbstractLazyObjectType.ObjectTypeConstraint, AbstractLazyObjectType.ObjectTypeConstraint>>[0], "runtimeClass">);
7
7
  get conversions(): readonly AbstractLazyObjectType.Conversion[];
8
8
  fromJsonExpression(parameters: Parameters<Super["fromJsonExpression"]>[0]): Code;
9
- fromRdfExpression(parameters: Parameters<Super["fromRdfExpression"]>[0]): Code;
9
+ fromRdfResourceValuesExpression(parameters: Parameters<Super["fromRdfResourceValuesExpression"]>[0]): Code;
10
10
  graphqlResolveExpression({ variables, }: Parameters<Super["graphqlResolveExpression"]>[0]): Code;
11
11
  }
12
12
  type Super = AbstractLazyObjectType<AbstractLazyObjectType.ObjectTypeConstraint, AbstractLazyObjectType.ObjectTypeConstraint>;
@@ -30,13 +30,12 @@ export class LazyObjectType extends AbstractLazyObjectType {
30
30
  sourceTypeof: "object",
31
31
  });
32
32
  }
33
- else if (this.resolveType.kind === "ObjectUnionType" &&
34
- this.partialType.kind === "ObjectUnionType" &&
35
- this.resolveType.memberTypes.length ===
36
- this.partialType.memberTypes.length) {
33
+ else if (this.resolveType.kind === "NamedObjectUnionType" &&
34
+ this.partialType.kind === "NamedObjectUnionType" &&
35
+ this.resolveType.members.length === this.partialType.members.length) {
37
36
  conversions.push({
38
- conversionExpression: (value) => code `new ${this.runtimeClass.name}({ ${this.runtimeClass.partialPropertyName}: ((object: ${this.resolveType.name}) => { ${this.resolvedObjectUnionTypeToPartialObjectUnionTypeConversion({ resolvedObjectUnionType: this.resolveType, partialObjectUnionType: this.partialType, variables: { resolvedObjectUnion: code `object` } })} })(${value}), resolver: async () => ${imports.Right}(${value} as ${this.resolveType.name}) })`,
39
- // Don't check instanceof value since the ObjectUnionType may be an interface
37
+ conversionExpression: (value) => code `new ${this.runtimeClass.name}({ ${this.runtimeClass.partialPropertyName}: ((object: ${this.resolveType.name}) => { ${this.resolvedNamedObjectUnionTypeToPartialNamedObjectUnionTypeConversion({ resolvedNamedObjectUnionType: this.resolveType, partialNamedObjectUnionType: this.partialType, variables: { resolvedObjectUnion: code `object` } })} })(${value}), resolver: async () => ${imports.Right}(${value} as ${this.resolveType.name}) })`,
38
+ // Don't check instanceof value since the NamedObjectUnionType may be an interface
40
39
  // Rely on the fact that this will be the last type check on an object
41
40
  sourceTypeCheckExpression: (value) => code `typeof ${value} === "object"`,
42
41
  sourceTypeName: this.resolveType.name,
@@ -48,9 +47,9 @@ export class LazyObjectType extends AbstractLazyObjectType {
48
47
  fromJsonExpression(parameters) {
49
48
  return code `new ${this.runtimeClass.name}({ ${this.runtimeClass.partialPropertyName}: ${this.partialType.fromJsonExpression(parameters)}, resolver: (identifier) => Promise.resolve(${imports.Left}(new Error(\`unable to resolve identifier \${${imports.Resource}.Identifier.toString(identifier)} deserialized from JSON\`))) })`;
50
49
  }
51
- fromRdfExpression(parameters) {
50
+ fromRdfResourceValuesExpression(parameters) {
52
51
  const { variables } = parameters;
53
- return code `${this.partialType.fromRdfExpression(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) })))`;
52
+ 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) })))`;
54
53
  }
55
54
  graphqlResolveExpression({ variables, }) {
56
55
  return code `${variables.value}.resolve().then(either => either.unsafeCoerce())`;
@@ -2,6 +2,7 @@ import type { NamedNode } from "@rdfjs/types";
2
2
  import type { Maybe } from "purify-ts";
3
3
  import type { IdentifierMintingStrategy } from "../../enums/IdentifierMintingStrategy.js";
4
4
  import { AbstractCollectionType } from "./AbstractCollectionType.js";
5
+ import type { AnonymousUnionType } from "./AnonymousUnionType.js";
5
6
  import type { BigDecimalType } from "./BigDecimalType.js";
6
7
  import type { BigIntType } from "./BigIntType.js";
7
8
  import type { BlankNodeType } from "./BlankNodeType.js";
@@ -13,13 +14,13 @@ import type { IdentifierType } from "./IdentifierType.js";
13
14
  import type { IntType } from "./IntType.js";
14
15
  import type { IriType } from "./IriType.js";
15
16
  import type { LiteralType } from "./LiteralType.js";
17
+ import type { NamedObjectUnionType } from "./NamedObjectUnionType.js";
18
+ import type { NamedUnionType } from "./NamedUnionType.js";
16
19
  import type { ObjectType } from "./ObjectType.js";
17
- import type { ObjectUnionType } from "./ObjectUnionType.js";
18
20
  import type { StringType } from "./StringType.js";
19
21
  import type { TermType } from "./TermType.js";
20
22
  import type { Type } from "./Type.js";
21
23
  import { type Code } from "./ts-poet-wrapper.js";
22
- import type { UnionType } from "./UnionType.js";
23
24
  export declare class ListType<ItemTypeT extends ListType.ItemType> extends AbstractCollectionType<ItemTypeT> {
24
25
  private readonly identifierMintingStrategy;
25
26
  private readonly identifierNodeKind;
@@ -30,14 +31,14 @@ export declare class ListType<ItemTypeT extends ListType.ItemType> extends Abstr
30
31
  identifierMintingStrategy: Maybe<IdentifierMintingStrategy>;
31
32
  toRdfTypes: readonly NamedNode[];
32
33
  } & ConstructorParameters<typeof AbstractCollectionType<ItemTypeT>>[0]);
33
- get sparqlConstructTriplesFunction(): Code;
34
- get sparqlWherePatternsFunction(): Code;
35
- fromRdfExpression({ variables, }: Parameters<AbstractCollectionType<ItemTypeT>["fromRdfExpression"]>[0]): Code;
34
+ get valueSparqlConstructTriplesFunction(): Code;
35
+ get valueSparqlWherePatternsFunction(): Code;
36
+ fromRdfResourceValuesExpression({ variables, }: Parameters<AbstractCollectionType<ItemTypeT>["fromRdfResourceValuesExpression"]>[0]): Code;
36
37
  jsonType(): AbstractCollectionType.JsonType;
37
- toRdfExpression({ variables, }: Parameters<AbstractCollectionType<ItemTypeT>["toRdfExpression"]>[0]): Code;
38
+ toRdfResourceValuesExpression({ variables, }: Parameters<AbstractCollectionType<ItemTypeT>["toRdfResourceValuesExpression"]>[0]): Code;
38
39
  }
39
40
  export declare namespace ListType {
40
- type ItemType = BigDecimalType | BigIntType | BlankNodeType | BooleanType | DateTimeType | DateType | FloatType | IdentifierType | IntType | IriType | LiteralType | ObjectType | ObjectUnionType | StringType | TermType | UnionType;
41
+ type ItemType = AnonymousUnionType | BigDecimalType | BigIntType | BlankNodeType | BooleanType | DateTimeType | DateType | FloatType | IdentifierType | IntType | IriType | LiteralType | NamedObjectUnionType | NamedUnionType | ObjectType | StringType | TermType;
41
42
  function isItemType(type: Type): type is ItemType;
42
43
  }
43
44
  //# sourceMappingURL=ListType.d.ts.map
@@ -22,19 +22,19 @@ export class ListType extends AbstractCollectionType {
22
22
  this.identifierMintingStrategy = identifierMintingStrategy.orDefault(identifierNodeKind === "BlankNode" ? "blankNode" : "sha256");
23
23
  this.toRdfTypes = toRdfTypes;
24
24
  }
25
- get sparqlConstructTriplesFunction() {
26
- return code `${snippets.listSparqlConstructTriples}<${this.itemType.filterType}, ${this.itemType.schemaType}>(${this.itemType.sparqlConstructTriplesFunction})`;
25
+ get valueSparqlConstructTriplesFunction() {
26
+ return code `${snippets.listSparqlConstructTriples}<${this.itemType.filterType}, ${this.itemType.schemaType}>(${this.itemType.valueSparqlConstructTriplesFunction})`;
27
27
  }
28
- get sparqlWherePatternsFunction() {
29
- return code `${snippets.listSparqlWherePatterns}<${this.itemType.filterType}, ${this.itemType.schemaType}>(${this.itemType.sparqlWherePatternsFunction})`;
28
+ get valueSparqlWherePatternsFunction() {
29
+ return code `${snippets.listSparqlWherePatterns}<${this.itemType.filterType}, ${this.itemType.schemaType}>(${this.itemType.valueSparqlWherePatternsFunction})`;
30
30
  }
31
- fromRdfExpression({ variables, }) {
31
+ fromRdfResourceValuesExpression({ variables, }) {
32
32
  return joinCode([
33
33
  variables.resourceValues,
34
34
  code `chain(values => values.chainMap(value => value.toList(${{ graph: variables.graph }})))`, // Resource.Values<Resource.Value> to Resource.Values<Resource.Values>
35
35
  code `chain(valueLists =>
36
36
  valueLists.chainMap(
37
- valueList => ${this.itemType.fromRdfExpression({
37
+ valueList => ${this.itemType.fromRdfResourceValuesExpression({
38
38
  variables: {
39
39
  ...variables,
40
40
  resourceValues: code `${imports.Right}(${imports.Resource}.Values.fromArray({ focusResource: ${variables.resource}, propertyPath: ${variables.propertyPath}, values: valueList.toArray() }))`,
@@ -45,9 +45,9 @@ export class ListType extends AbstractCollectionType {
45
45
  ], { on: "." });
46
46
  }
47
47
  jsonType() {
48
- return new AbstractCollectionType.JsonType(code `readonly (${this.itemType.jsonType().name})[]`);
48
+ return new AbstractCollectionType.JsonType(code `${!this.mutable ? "readonly " : ""}(${this.itemType.jsonType().name})[]`);
49
49
  }
50
- toRdfExpression({ variables, }) {
50
+ toRdfResourceValuesExpression({ variables, }) {
51
51
  let listIdentifier;
52
52
  let resourceTypeName;
53
53
  let subListIdentifier;
@@ -91,7 +91,7 @@ export class ListType extends AbstractCollectionType {
91
91
 
92
92
  ${joinCode(this.toRdfTypes.map((rdfType) => code `currentSubListResource.add(${rdfjsTermExpression(rdf.type)}, ${imports.dataFactory}.namedNode("${rdfType.value}"), ${variables.graph})`))}
93
93
 
94
- currentSubListResource.add(${rdfjsTermExpression(rdf.first)}, ${this.itemType.toRdfExpression({ variables: { graph: variables.graph, propertyPath: rdfjsTermExpression(rdf.first), resource: code `currentSubListResource`, resourceSet: variables.resourceSet, value: code `item` } })}, ${variables.graph});
94
+ currentSubListResource.add(${rdfjsTermExpression(rdf.first)}, ${this.itemType.toRdfResourceValuesExpression({ variables: { graph: variables.graph, propertyPath: rdfjsTermExpression(rdf.first), resource: code `currentSubListResource`, resourceSet: variables.resourceSet, value: code `item` } })}, ${variables.graph});
95
95
 
96
96
  if (itemIndex + 1 === list.length) {
97
97
  currentSubListResource.add(${rdfjsTermExpression(rdf.rest)}, ${rdfjsTermExpression(rdf.nil)}, ${variables.graph});
@@ -111,16 +111,17 @@ export class ListType extends AbstractCollectionType {
111
111
  }
112
112
  __decorate([
113
113
  Memoize()
114
- ], ListType.prototype, "sparqlConstructTriplesFunction", null);
114
+ ], ListType.prototype, "valueSparqlConstructTriplesFunction", null);
115
115
  __decorate([
116
116
  Memoize()
117
- ], ListType.prototype, "sparqlWherePatternsFunction", null);
117
+ ], ListType.prototype, "valueSparqlWherePatternsFunction", null);
118
118
  __decorate([
119
119
  Memoize()
120
120
  ], ListType.prototype, "jsonType", null);
121
121
  (function (ListType) {
122
122
  function isItemType(type) {
123
123
  switch (type.kind) {
124
+ case "AnonymousUnionType":
124
125
  case "BigDecimalType":
125
126
  case "BigIntType":
126
127
  case "BlankNodeType":
@@ -132,11 +133,11 @@ __decorate([
132
133
  case "IriType":
133
134
  case "IntType":
134
135
  case "LiteralType":
136
+ case "NamedObjectUnionType":
137
+ case "NamedUnionType":
135
138
  case "ObjectType":
136
- case "ObjectUnionType":
137
139
  case "StringType":
138
140
  case "TermType":
139
- case "UnionType":
140
141
  return true;
141
142
  case "DefaultValueType":
142
143
  case "LazyObjectOptionType":
@@ -6,7 +6,7 @@ export declare class LiteralType extends AbstractLiteralType {
6
6
  readonly kind = "LiteralType";
7
7
  readonly name: Code;
8
8
  readonly schemaType: Code;
9
- readonly sparqlWherePatternsFunction: Code;
9
+ readonly valueSparqlWherePatternsFunction: Code;
10
10
  get graphqlType(): AbstractLiteralType.GraphqlType;
11
11
  fromJsonExpression({ variables, }: Parameters<AbstractLiteralType["fromJsonExpression"]>[0]): Code;
12
12
  graphqlResolveExpression(_parameters: Parameters<AbstractLiteralType["graphqlResolveExpression"]>[0]): Code;
@@ -9,12 +9,12 @@ export class LiteralType extends AbstractLiteralType {
9
9
  kind = "LiteralType";
10
10
  name = code `${imports.Literal}`;
11
11
  schemaType = code `${snippets.LiteralSchema}`;
12
- sparqlWherePatternsFunction = code `${snippets.literalSparqlWherePatterns}`;
12
+ valueSparqlWherePatternsFunction = code `${snippets.literalSparqlWherePatterns}`;
13
13
  get graphqlType() {
14
14
  throw new Error("not implemented");
15
15
  }
16
16
  fromJsonExpression({ variables, }) {
17
- return code `${imports.dataFactory}.literal(${variables.value}["@value"], ${variables.value}["@language"] !== undefined ? ${variables.value}["@language"] : (${variables.value}["@type"] !== undefined ? ${imports.dataFactory}.namedNode(${variables.value}["@type"]) : undefined))`;
17
+ return code `${imports.dataFactory}.literal(${variables.value}["@value"], ${variables.value}["@language"] !== undefined ? ${variables.value}["@language"] : (${variables.value}["@type"] !== undefined ? ${imports.dataFactory}.namedNode(${variables.value}["@type"]!) : undefined))`;
18
18
  }
19
19
  graphqlResolveExpression(_parameters) {
20
20
  throw new Error("not implemented");
@@ -0,0 +1,35 @@
1
+ import { AbstractNamedUnionType } from "./AbstractNamedUnionType.js";
2
+ import { AbstractType } from "./AbstractType.js";
3
+ import type { BlankNodeType } from "./BlankNodeType.js";
4
+ import type { IdentifierType } from "./IdentifierType.js";
5
+ import type { IriType } from "./IriType.js";
6
+ import type { ObjectType } from "./ObjectType.js";
7
+ import { type Code } from "./ts-poet-wrapper.js";
8
+ export declare class NamedObjectUnionType extends AbstractNamedUnionType<ObjectType> {
9
+ #private;
10
+ readonly graphqlArgs: AbstractType["graphqlArgs"];
11
+ readonly kind = "NamedObjectUnionType";
12
+ constructor({ identifierType, ...superParameters }: {
13
+ identifierType: BlankNodeType | IdentifierType | IriType;
14
+ } & Omit<ConstructorParameters<typeof AbstractNamedUnionType<ObjectType>>[0], "identifierType">);
15
+ get graphqlType(): AbstractType.GraphqlType;
16
+ get identifierTypeAlias(): Code;
17
+ get objectSetMethodNames(): ObjectType.ObjectSetMethodNames;
18
+ get schema(): Code;
19
+ get schemaType(): Code;
20
+ protected get staticModuleDeclarations(): Record<string, Code>;
21
+ private get focusSparqlConstructTriplesFunctionDeclaration();
22
+ private get focusSparqlWherePatternsFunctionDeclaration();
23
+ private get fromRdfResourceFunctionDeclaration();
24
+ private get graphqlTypeVariableStatement();
25
+ private get identifierTypeDeclarations();
26
+ private get isTypeFunctionDeclaration();
27
+ private get schemaVariableStatement();
28
+ private get toRdfResourceFunctionDeclaration();
29
+ graphqlResolveExpression({ variables, }: {
30
+ variables: {
31
+ value: Code;
32
+ };
33
+ }): Code;
34
+ }
35
+ //# sourceMappingURL=NamedObjectUnionType.d.ts.map