@nfdi4plants/arctrl 3.2.2 → 3.3.0

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 (470) hide show
  1. package/README.md +0 -64
  2. package/dist/ts/index.d.ts +44 -7
  3. package/dist/ts/index.d.ts.map +1 -1
  4. package/dist/ts/index.js +45 -8
  5. package/dist/ts/node_modules/@fable-org/fable-library-ts/Array.js +195 -92
  6. package/dist/ts/node_modules/@fable-org/fable-library-ts/Async.js +251 -30
  7. package/dist/ts/node_modules/@fable-org/fable-library-ts/AsyncBuilder.js +61 -11
  8. package/dist/ts/node_modules/@fable-org/fable-library-ts/BigInt.js +15 -5
  9. package/dist/ts/node_modules/@fable-org/fable-library-ts/BitConverter.js +139 -0
  10. package/dist/ts/node_modules/@fable-org/fable-library-ts/Date.js +1 -1
  11. package/dist/ts/node_modules/@fable-org/fable-library-ts/Decimal.js +68 -12
  12. package/dist/ts/node_modules/@fable-org/fable-library-ts/Double.js +24 -10
  13. package/dist/ts/node_modules/@fable-org/fable-library-ts/FSharp.Core.js +8 -2
  14. package/dist/ts/node_modules/@fable-org/fable-library-ts/Global.js +1 -1
  15. package/dist/ts/node_modules/@fable-org/fable-library-ts/Int32.js +11 -2
  16. package/dist/ts/node_modules/@fable-org/fable-library-ts/List.js +220 -155
  17. package/dist/ts/node_modules/@fable-org/fable-library-ts/Long.js +7 -2
  18. package/dist/ts/node_modules/@fable-org/fable-library-ts/Map.js +46 -39
  19. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableMap.js +75 -92
  20. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableSet.js +56 -76
  21. package/dist/ts/node_modules/@fable-org/fable-library-ts/NumberStyles.js +54 -0
  22. package/dist/ts/node_modules/@fable-org/fable-library-ts/Numeric.js +10 -5
  23. package/dist/ts/node_modules/@fable-org/fable-library-ts/Random.js +3 -4
  24. package/dist/ts/node_modules/@fable-org/fable-library-ts/Range.js +4 -3
  25. package/dist/ts/node_modules/@fable-org/fable-library-ts/RegExp.js +2 -2
  26. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq.js +128 -64
  27. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq2.js +4 -8
  28. package/dist/ts/node_modules/@fable-org/fable-library-ts/Set.js +64 -57
  29. package/dist/ts/node_modules/@fable-org/fable-library-ts/String.js +68 -21
  30. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Collections.Generic.js +3 -2
  31. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Text.js +2 -2
  32. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.js +5 -5
  33. package/dist/ts/node_modules/@fable-org/fable-library-ts/Types.js +23 -12
  34. package/dist/ts/node_modules/@fable-org/fable-library-ts/Util.js +88 -49
  35. package/dist/ts/node_modules/@fable-org/fable-library-ts/lib/big.js +121 -74
  36. package/dist/ts/ts/ARC.d.ts +22 -5
  37. package/dist/ts/ts/ARC.d.ts.map +1 -1
  38. package/dist/ts/ts/ARC.js +282 -185
  39. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts +0 -2
  40. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts.map +1 -1
  41. package/dist/ts/ts/CWL/CWLKnownFieldNames.js +1 -7
  42. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +46 -27
  43. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -1
  44. package/dist/ts/ts/CWL/CWLProcessingUnit.js +312 -123
  45. package/dist/ts/ts/CWL/CWLTypes.d.ts +481 -148
  46. package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
  47. package/dist/ts/ts/CWL/CWLTypes.js +887 -201
  48. package/dist/ts/ts/CWL/Decode.d.ts +480 -211
  49. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
  50. package/dist/ts/ts/CWL/Decode.js +3614 -2462
  51. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts +9 -0
  52. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts.map +1 -1
  53. package/dist/ts/ts/CWL/DynamicObjHelpers.js +55 -5
  54. package/dist/ts/ts/CWL/Encode.d.ts +225 -85
  55. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
  56. package/dist/ts/ts/CWL/Encode.js +1858 -970
  57. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +42 -28
  58. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
  59. package/dist/ts/ts/CWL/ExpressionToolDescription.js +34 -13
  60. package/dist/ts/ts/CWL/HashHelpers.d.ts +38 -0
  61. package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -1
  62. package/dist/ts/ts/CWL/HashHelpers.js +255 -6
  63. package/dist/ts/ts/CWL/Inputs.d.ts +127 -56
  64. package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -1
  65. package/dist/ts/ts/CWL/Inputs.js +107 -16
  66. package/dist/ts/ts/CWL/OperationDescription.d.ts +41 -21
  67. package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
  68. package/dist/ts/ts/CWL/OperationDescription.js +35 -9
  69. package/dist/ts/ts/CWL/Outputs.d.ts +93 -42
  70. package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -1
  71. package/dist/ts/ts/CWL/Outputs.js +101 -19
  72. package/dist/ts/ts/CWL/ParameterReference.d.ts +11 -8
  73. package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -1
  74. package/dist/ts/ts/CWL/ParameterReference.js +18 -25
  75. package/dist/ts/ts/CWL/ParameterValue.d.ts +15 -1
  76. package/dist/ts/ts/CWL/ParameterValue.d.ts.map +1 -1
  77. package/dist/ts/ts/CWL/ParameterValue.js +59 -35
  78. package/dist/ts/ts/CWL/Requirements.d.ts +240 -98
  79. package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
  80. package/dist/ts/ts/CWL/Requirements.js +462 -89
  81. package/dist/ts/ts/CWL/ScalarQuoting.d.ts +51 -0
  82. package/dist/ts/ts/CWL/ScalarQuoting.d.ts.map +1 -0
  83. package/dist/ts/ts/CWL/ScalarQuoting.js +250 -0
  84. package/dist/ts/ts/CWL/ToolDescription.d.ts +63 -50
  85. package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
  86. package/dist/ts/ts/CWL/ToolDescription.js +34 -13
  87. package/dist/ts/ts/CWL/WorkflowDescription.d.ts +45 -26
  88. package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
  89. package/dist/ts/ts/CWL/WorkflowDescription.js +38 -11
  90. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +248 -65
  91. package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
  92. package/dist/ts/ts/CWL/WorkflowSteps.js +413 -43
  93. package/dist/ts/ts/CWLRunResolver.d.ts +30 -12
  94. package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -1
  95. package/dist/ts/ts/CWLRunResolver.js +221 -86
  96. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  97. package/dist/ts/ts/Contract/ARC.js +13 -14
  98. package/dist/ts/ts/Contract/ArcAssay.d.ts.map +1 -1
  99. package/dist/ts/ts/Contract/ArcAssay.js +4 -4
  100. package/dist/ts/ts/Contract/ArcInvestigation.d.ts.map +1 -1
  101. package/dist/ts/ts/Contract/ArcInvestigation.js +3 -4
  102. package/dist/ts/ts/Contract/ArcRun.d.ts +12 -2
  103. package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
  104. package/dist/ts/ts/Contract/ArcRun.js +47 -20
  105. package/dist/ts/ts/Contract/ArcStudy.d.ts.map +1 -1
  106. package/dist/ts/ts/Contract/ArcStudy.js +4 -4
  107. package/dist/ts/ts/Contract/ArcWorkflow.d.ts +18 -4
  108. package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
  109. package/dist/ts/ts/Contract/ArcWorkflow.js +55 -17
  110. package/dist/ts/ts/Contract/Datamap.d.ts.map +1 -1
  111. package/dist/ts/ts/Contract/Datamap.js +16 -17
  112. package/dist/ts/ts/Contract/Git.js +1 -1
  113. package/dist/ts/ts/Contract/ValidationPackagesConfig.d.ts.map +1 -1
  114. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +4 -5
  115. package/dist/ts/ts/ContractIO/ContractIO.d.ts +7 -0
  116. package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
  117. package/dist/ts/ts/ContractIO/ContractIO.js +95 -18
  118. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -0
  119. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
  120. package/dist/ts/ts/ContractIO/FileSystemHelper.js +12 -5
  121. package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -1
  122. package/dist/ts/ts/Conversion/Assay.js +26 -18
  123. package/dist/ts/ts/Conversion/Basic.d.ts +4 -0
  124. package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
  125. package/dist/ts/ts/Conversion/Basic.js +55 -31
  126. package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -1
  127. package/dist/ts/ts/Conversion/ColumnIndex.js +2 -4
  128. package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -1
  129. package/dist/ts/ts/Conversion/DateTime.js +1 -2
  130. package/dist/ts/ts/Conversion/Investigation.d.ts.map +1 -1
  131. package/dist/ts/ts/Conversion/Investigation.js +15 -14
  132. package/dist/ts/ts/Conversion/Person.js +11 -11
  133. package/dist/ts/ts/Conversion/Process.d.ts +4 -2
  134. package/dist/ts/ts/Conversion/Process.d.ts.map +1 -1
  135. package/dist/ts/ts/Conversion/Process.js +134 -97
  136. package/dist/ts/ts/Conversion/Run.d.ts +36 -6
  137. package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
  138. package/dist/ts/ts/Conversion/Run.js +320 -136
  139. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -1
  140. package/dist/ts/ts/Conversion/ScholarlyArticle.js +75 -9
  141. package/dist/ts/ts/Conversion/Study.d.ts.map +1 -1
  142. package/dist/ts/ts/Conversion/Study.js +23 -12
  143. package/dist/ts/ts/Conversion/Table.d.ts +3 -2
  144. package/dist/ts/ts/Conversion/Table.d.ts.map +1 -1
  145. package/dist/ts/ts/Conversion/Table.js +8 -8
  146. package/dist/ts/ts/Conversion/Workflow.d.ts +48 -9
  147. package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
  148. package/dist/ts/ts/Conversion/Workflow.js +655 -163
  149. package/dist/ts/ts/Conversion.js +6 -6
  150. package/dist/ts/ts/Core/ArcTypes.d.ts +73 -28
  151. package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
  152. package/dist/ts/ts/Core/ArcTypes.js +219 -129
  153. package/dist/ts/ts/Core/Comment.d.ts.map +1 -1
  154. package/dist/ts/ts/Core/Comment.js +2 -2
  155. package/dist/ts/ts/Core/CommentList.js +7 -7
  156. package/dist/ts/ts/Core/Conversion.d.ts.map +1 -1
  157. package/dist/ts/ts/Core/Conversion.js +68 -59
  158. package/dist/ts/ts/Core/Data.d.ts +6 -0
  159. package/dist/ts/ts/Core/Data.d.ts.map +1 -1
  160. package/dist/ts/ts/Core/Data.js +32 -12
  161. package/dist/ts/ts/Core/DataContext.d.ts +1 -1
  162. package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
  163. package/dist/ts/ts/Core/DataContext.js +4 -4
  164. package/dist/ts/ts/Core/DataFile.d.ts +11 -8
  165. package/dist/ts/ts/Core/DataFile.d.ts.map +1 -1
  166. package/dist/ts/ts/Core/DataFile.js +55 -61
  167. package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
  168. package/dist/ts/ts/Core/Datamap.js +2 -3
  169. package/dist/ts/ts/Core/Helper/Collections.d.ts.map +1 -1
  170. package/dist/ts/ts/Core/Helper/Collections.js +2 -4
  171. package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
  172. package/dist/ts/ts/Core/Helper/Identifier.js +12 -15
  173. package/dist/ts/ts/Core/Helper/ORCID.d.ts.map +1 -1
  174. package/dist/ts/ts/Core/Helper/ORCID.js +2 -3
  175. package/dist/ts/ts/Core/Helper/Regex.d.ts.map +1 -1
  176. package/dist/ts/ts/Core/Helper/Regex.js +52 -53
  177. package/dist/ts/ts/Core/Helper/SemVer.d.ts +13 -3
  178. package/dist/ts/ts/Core/Helper/SemVer.d.ts.map +1 -1
  179. package/dist/ts/ts/Core/Helper/SemVer.js +96 -6
  180. package/dist/ts/ts/Core/Helper/Url.d.ts.map +1 -1
  181. package/dist/ts/ts/Core/Helper/Url.js +1 -1
  182. package/dist/ts/ts/Core/OntologyAnnotation.js +22 -22
  183. package/dist/ts/ts/Core/Person.d.ts.map +1 -1
  184. package/dist/ts/ts/Core/Person.js +2 -2
  185. package/dist/ts/ts/Core/Process/ColumnIndex.d.ts.map +1 -1
  186. package/dist/ts/ts/Core/Process/ColumnIndex.js +10 -12
  187. package/dist/ts/ts/Core/Process/Component.d.ts.map +1 -1
  188. package/dist/ts/ts/Core/Process/Component.js +22 -22
  189. package/dist/ts/ts/Core/Process/Factor.d.ts.map +1 -1
  190. package/dist/ts/ts/Core/Process/Factor.js +7 -7
  191. package/dist/ts/ts/Core/Process/FactorValue.d.ts.map +1 -1
  192. package/dist/ts/ts/Core/Process/FactorValue.js +15 -15
  193. package/dist/ts/ts/Core/Process/Material.d.ts.map +1 -1
  194. package/dist/ts/ts/Core/Process/Material.js +2 -2
  195. package/dist/ts/ts/Core/Process/MaterialAttribute.d.ts.map +1 -1
  196. package/dist/ts/ts/Core/Process/MaterialAttribute.js +6 -6
  197. package/dist/ts/ts/Core/Process/MaterialAttributeValue.d.ts.map +1 -1
  198. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +16 -16
  199. package/dist/ts/ts/Core/Process/Process.js +21 -21
  200. package/dist/ts/ts/Core/Process/ProcessInput.d.ts.map +1 -1
  201. package/dist/ts/ts/Core/Process/ProcessInput.js +2 -2
  202. package/dist/ts/ts/Core/Process/ProcessOutput.d.ts.map +1 -1
  203. package/dist/ts/ts/Core/Process/ProcessOutput.js +2 -2
  204. package/dist/ts/ts/Core/Process/ProcessParameterValue.d.ts.map +1 -1
  205. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +17 -17
  206. package/dist/ts/ts/Core/Process/ProcessSequence.js +4 -4
  207. package/dist/ts/ts/Core/Process/Protocol.d.ts.map +1 -1
  208. package/dist/ts/ts/Core/Process/Protocol.js +9 -9
  209. package/dist/ts/ts/Core/Process/ProtocolParameter.d.ts.map +1 -1
  210. package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -6
  211. package/dist/ts/ts/Core/Publication.d.ts.map +1 -1
  212. package/dist/ts/ts/Core/Publication.js +3 -3
  213. package/dist/ts/ts/Core/ScalarValue.d.ts.map +1 -1
  214. package/dist/ts/ts/Core/ScalarValue.js +9 -13
  215. package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
  216. package/dist/ts/ts/Core/Table/ArcTable.js +18 -18
  217. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts +1 -1
  218. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
  219. package/dist/ts/ts/Core/Table/ArcTableAux.js +59 -70
  220. package/dist/ts/ts/Core/Table/ArcTables.js +16 -16
  221. package/dist/ts/ts/Core/Table/CompositeCell.d.ts +4 -0
  222. package/dist/ts/ts/Core/Table/CompositeCell.d.ts.map +1 -1
  223. package/dist/ts/ts/Core/Table/CompositeCell.js +39 -2
  224. package/dist/ts/ts/Core/Table/CompositeHeader.d.ts.map +1 -1
  225. package/dist/ts/ts/Core/Table/CompositeHeader.js +5 -6
  226. package/dist/ts/ts/Core/Templates.d.ts.map +1 -1
  227. package/dist/ts/ts/Core/Templates.js +2 -2
  228. package/dist/ts/ts/FileSystem/Path.d.ts +13 -2
  229. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  230. package/dist/ts/ts/FileSystem/Path.js +37 -19
  231. package/dist/ts/ts/Json/Assay.js +22 -22
  232. package/dist/ts/ts/Json/Comment.js +9 -9
  233. package/dist/ts/ts/Json/Data.d.ts.map +1 -1
  234. package/dist/ts/ts/Json/Data.js +11 -11
  235. package/dist/ts/ts/Json/Datamap/DataContext.js +2 -2
  236. package/dist/ts/ts/Json/Decode.d.ts.map +1 -1
  237. package/dist/ts/ts/Json/Decode.js +3 -5
  238. package/dist/ts/ts/Json/Encode.js +2 -2
  239. package/dist/ts/ts/Json/Investigation.d.ts.map +1 -1
  240. package/dist/ts/ts/Json/Investigation.js +20 -20
  241. package/dist/ts/ts/Json/OntologyAnnotation.d.ts.map +1 -1
  242. package/dist/ts/ts/Json/OntologyAnnotation.js +18 -18
  243. package/dist/ts/ts/Json/OntologySourceReference.d.ts.map +1 -1
  244. package/dist/ts/ts/Json/OntologySourceReference.js +9 -9
  245. package/dist/ts/ts/Json/Person.d.ts.map +1 -1
  246. package/dist/ts/ts/Json/Person.js +20 -20
  247. package/dist/ts/ts/Json/Process/AssayMaterials.d.ts.map +1 -1
  248. package/dist/ts/ts/Json/Process/AssayMaterials.js +1 -2
  249. package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
  250. package/dist/ts/ts/Json/Process/Component.js +5 -6
  251. package/dist/ts/ts/Json/Process/Factor.d.ts.map +1 -1
  252. package/dist/ts/ts/Json/Process/Factor.js +7 -7
  253. package/dist/ts/ts/Json/Process/FactorValue.d.ts.map +1 -1
  254. package/dist/ts/ts/Json/Process/FactorValue.js +2 -3
  255. package/dist/ts/ts/Json/Process/Material.d.ts.map +1 -1
  256. package/dist/ts/ts/Json/Process/Material.js +9 -10
  257. package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts.map +1 -1
  258. package/dist/ts/ts/Json/Process/MaterialAttribute.js +5 -6
  259. package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts.map +1 -1
  260. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +2 -3
  261. package/dist/ts/ts/Json/Process/Process.d.ts.map +1 -1
  262. package/dist/ts/ts/Json/Process/Process.js +8 -9
  263. package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts.map +1 -1
  264. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +1 -2
  265. package/dist/ts/ts/Json/Process/Protocol.d.ts.map +1 -1
  266. package/dist/ts/ts/Json/Process/Protocol.js +17 -17
  267. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
  268. package/dist/ts/ts/Json/Process/ProtocolParameter.js +6 -6
  269. package/dist/ts/ts/Json/Process/Sample.d.ts.map +1 -1
  270. package/dist/ts/ts/Json/Process/Sample.js +9 -9
  271. package/dist/ts/ts/Json/Process/Source.d.ts.map +1 -1
  272. package/dist/ts/ts/Json/Process/Source.js +10 -11
  273. package/dist/ts/ts/Json/Process/StudyMaterials.d.ts.map +1 -1
  274. package/dist/ts/ts/Json/Process/StudyMaterials.js +1 -2
  275. package/dist/ts/ts/Json/PropertyValue.d.ts.map +1 -1
  276. package/dist/ts/ts/Json/PropertyValue.js +24 -24
  277. package/dist/ts/ts/Json/Publication.d.ts.map +1 -1
  278. package/dist/ts/ts/Json/Publication.js +10 -10
  279. package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -2
  280. package/dist/ts/ts/Json/ROCrate/LDGraph.js +2 -2
  281. package/dist/ts/ts/Json/ROCrate/LDNode.js +5 -5
  282. package/dist/ts/ts/Json/Run.js +9 -9
  283. package/dist/ts/ts/Json/StringTable.d.ts.map +1 -1
  284. package/dist/ts/ts/Json/StringTable.js +4 -7
  285. package/dist/ts/ts/Json/Study.js +20 -20
  286. package/dist/ts/ts/Json/Table/CellTable.js +1 -2
  287. package/dist/ts/ts/Json/Table/OATable.js +1 -2
  288. package/dist/ts/ts/Json/Workflow.js +9 -9
  289. package/dist/ts/ts/Json.d.ts +121 -1
  290. package/dist/ts/ts/Json.d.ts.map +1 -1
  291. package/dist/ts/ts/Json.js +310 -2
  292. package/dist/ts/ts/JsonIO/Comment.d.ts +15 -0
  293. package/dist/ts/ts/JsonIO/Comment.d.ts.map +1 -0
  294. package/dist/ts/ts/JsonIO/Comment.js +67 -0
  295. package/dist/ts/ts/JsonIO/Data.d.ts +9 -0
  296. package/dist/ts/ts/JsonIO/Data.d.ts.map +1 -0
  297. package/dist/ts/ts/JsonIO/Data.js +49 -0
  298. package/dist/ts/ts/JsonIO/DataFile.d.ts +9 -0
  299. package/dist/ts/ts/JsonIO/DataFile.d.ts.map +1 -0
  300. package/dist/ts/ts/JsonIO/DataFile.js +48 -0
  301. package/dist/ts/ts/JsonIO/LDObject.d.ts +6 -0
  302. package/dist/ts/ts/JsonIO/LDObject.d.ts.map +1 -1
  303. package/dist/ts/ts/JsonIO/LDObject.js +173 -17
  304. package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts +15 -0
  305. package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts.map +1 -0
  306. package/dist/ts/ts/JsonIO/OntologySourceReference.js +67 -0
  307. package/dist/ts/ts/JsonIO/Publication.d.ts +15 -0
  308. package/dist/ts/ts/JsonIO/Publication.d.ts.map +1 -0
  309. package/dist/ts/ts/JsonIO/Publication.js +68 -0
  310. package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts +9 -0
  311. package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts.map +1 -0
  312. package/dist/ts/ts/JsonIO/Table/ArcTable.js +74 -0
  313. package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts +6 -0
  314. package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts.map +1 -0
  315. package/dist/ts/ts/JsonIO/Table/CompositeCell.js +29 -0
  316. package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts +6 -0
  317. package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts.map +1 -0
  318. package/dist/ts/ts/JsonIO/Table/CompositeHeader.js +29 -0
  319. package/dist/ts/ts/JsonIO/Table/IOType.d.ts +6 -0
  320. package/dist/ts/ts/JsonIO/Table/IOType.d.ts.map +1 -0
  321. package/dist/ts/ts/JsonIO/Table/IOType.js +29 -0
  322. package/dist/ts/ts/License.d.ts.map +1 -1
  323. package/dist/ts/ts/License.js +6 -6
  324. package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
  325. package/dist/ts/ts/ROCrate/LDContext.js +31 -39
  326. package/dist/ts/ts/ROCrate/LDObject.d.ts.map +1 -1
  327. package/dist/ts/ts/ROCrate/LDObject.js +56 -49
  328. package/dist/ts/ts/ROCrate/LDTypes/Comment.js +2 -2
  329. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +3 -3
  330. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +2 -2
  331. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +5 -5
  332. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts +1 -0
  333. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts.map +1 -1
  334. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.js +3 -0
  335. package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -1
  336. package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +22 -17
  337. package/dist/ts/ts/ROCrate/LDTypes/DefinedTerm.js +2 -2
  338. package/dist/ts/ts/ROCrate/LDTypes/File.js +5 -5
  339. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +2 -2
  340. package/dist/ts/ts/ROCrate/LDTypes/LabProcess.js +9 -9
  341. package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.js +4 -4
  342. package/dist/ts/ts/ROCrate/LDTypes/Organization.js +1 -1
  343. package/dist/ts/ts/ROCrate/LDTypes/Person.js +7 -7
  344. package/dist/ts/ts/ROCrate/LDTypes/PostalAddress.js +1 -1
  345. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -1
  346. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.js +45 -48
  347. package/dist/ts/ts/ROCrate/LDTypes/Sample.js +3 -3
  348. package/dist/ts/ts/ROCrate/LDTypes/ScholarlyArticle.js +4 -4
  349. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +3 -3
  350. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +3 -3
  351. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +2 -2
  352. package/dist/ts/ts/ROCrateIO.d.ts +18 -4
  353. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  354. package/dist/ts/ts/ROCrateIO.js +49 -38
  355. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
  356. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +9 -10
  357. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.d.ts.map +1 -1
  358. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +7 -7
  359. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
  360. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +6 -8
  361. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +20 -20
  362. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
  363. package/dist/ts/ts/Spreadsheet/ArcAssay.js +7 -7
  364. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
  365. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +10 -12
  366. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
  367. package/dist/ts/ts/Spreadsheet/ArcRun.js +5 -6
  368. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
  369. package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
  370. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
  371. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +5 -6
  372. package/dist/ts/ts/Spreadsheet/CollectionAux.d.ts.map +1 -1
  373. package/dist/ts/ts/Spreadsheet/CollectionAux.js +10 -14
  374. package/dist/ts/ts/Spreadsheet/Datamap.js +1 -2
  375. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +3 -3
  376. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +10 -10
  377. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
  378. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +9 -10
  379. package/dist/ts/ts/Spreadsheet/Metadata/Assays.d.ts.map +1 -1
  380. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +8 -10
  381. package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts +8 -0
  382. package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts.map +1 -1
  383. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +18 -7
  384. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts.map +1 -1
  385. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +4 -6
  386. package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts.map +1 -1
  387. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -8
  388. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts.map +1 -1
  389. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +5 -7
  390. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.d.ts.map +1 -1
  391. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +2 -4
  392. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts.map +1 -1
  393. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +7 -9
  394. package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts.map +1 -1
  395. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +6 -8
  396. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts +1 -1
  397. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts.map +1 -1
  398. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +9 -11
  399. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
  400. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +17 -17
  401. package/dist/ts/ts/Spreadsheet/Metadata/Study.d.ts.map +1 -1
  402. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +10 -12
  403. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
  404. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +7 -9
  405. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +1 -1
  406. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -1
  407. package/dist/ts/ts/WorkflowGraph/Adapters.js +5 -6
  408. package/dist/ts/ts/WorkflowGraph/Builder.d.ts +25 -6
  409. package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -1
  410. package/dist/ts/ts/WorkflowGraph/Builder.js +264 -138
  411. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +6 -0
  412. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -1
  413. package/dist/ts/ts/WorkflowGraph/GraphTypes.js +4 -1
  414. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +8 -5
  415. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -1
  416. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +27 -10
  417. package/dist/ts/ts/Xlsx.js +3 -3
  418. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +3 -3
  419. package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
  420. package/dist/ts/ts/Yaml/ValidationPackage.js +11 -23
  421. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +3 -3
  422. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
  423. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +11 -23
  424. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/DynamicObj.fs.js +16 -20
  425. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/FableJS.fs.js +1 -1
  426. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/ReflectionUtils.fs.js +8 -8
  427. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +1 -2
  428. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.6.0/Http.fs.js +4 -4
  429. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCell.fs.js +8 -8
  430. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCellsCollection.fs.js +18 -18
  431. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsAddress.fs.js +3 -3
  432. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorkbook.fs.js +1 -1
  433. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorksheet.fs.js +7 -7
  434. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Value.fs.js +3 -5
  435. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Worksheet.fs.js +7 -7
  436. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Ranges/FsRangeBase.fs.js +1 -2
  437. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Tables/FsTable.fs.js +7 -7
  438. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Cell.fs.js +2 -2
  439. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Table.fs.js +1 -2
  440. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Decode.fs.js +49 -71
  441. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Encode.fs.js +1 -1
  442. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.5.0/Decode.fs.js +1 -2
  443. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Compare.fs.js +857 -0
  444. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/CoreSchema.fs.js +725 -0
  445. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Decode.fs.js +1175 -0
  446. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Encode.fs.js +123 -0
  447. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Layout.fs.js +282 -0
  448. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexeme.fs.js +203 -0
  449. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexer.fs.js +1502 -0
  450. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Model.fs.js +564 -0
  451. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Node.fs.js +453 -0
  452. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Parser.fs.js +2622 -0
  453. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Reader.fs.js +108 -0
  454. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Source.fs.js +649 -0
  455. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Tag.fs.js +32 -0
  456. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Validate.fs.js +1084 -0
  457. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Writer.fs.js +2927 -0
  458. package/package.json +5 -4
  459. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Decode.fs.js +0 -1669
  460. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Encode.fs.js +0 -57
  461. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Escapes.fs.js +0 -320
  462. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Interop/JsInterop.fs.js +0 -10
  463. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Persil.fs.js +0 -414
  464. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Preprocessing.fs.js +0 -319
  465. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Reader.fs.js +0 -1884
  466. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Regex.fs.js +0 -23
  467. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/RegexActivePatterns.fs.js +0 -313
  468. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Syntax.fs.js +0 -840
  469. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Writer.fs.js +0 -689
  470. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/YAMLiciousTypes.fs.js +0 -359
@@ -5,11 +5,15 @@ import { Contract } from '../Contract/Contract.js';
5
5
  import { curry2 } from '../../node_modules/@fable-org/fable-library-ts/Util.js';
6
6
  import { PromiseBuilder__Run_212F1D4B, PromiseBuilder__Delay_62FBFDE1 } from '../fable_modules/Fable.Promise.3.2.0/Promise.fs.js';
7
7
  import { promise } from '../fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js';
8
- import { value } from '../../node_modules/@fable-org/fable-library-ts/Option.js';
9
- import { combine } from '../FileSystem/Path.js';
10
- import { readFileTextAsync, readFileXlsxAsync, fileExistsAsync, ensureDirectoryOfFileAsync, writeFileTextAsync, writeFileXlsxAsync, renameFileOrDirectoryAsync, deleteFileOrDirectoryAsync } from './FileSystemHelper.js';
8
+ import { combine, split } from '../FileSystem/Path.js';
9
+ import { readFileTextAsync, readFileXlsxAsync, isEmptyFileAsync, fileExistsAsync, ensureDirectoryOfFileAsync, writeFileTextAsync, writeFileXlsxAsync, renameFileOrDirectoryAsync, deleteFileOrDirectoryAsync } from './FileSystemHelper.js';
11
10
  import { FsWorkbook } from '../fable_modules/FsSpreadsheet.7.0.1/FsWorkbook.fs.js';
12
- import { fold, append } from '../../node_modules/@fable-org/fable-library-ts/Array.js';
11
+ import { item, fold, append } from '../../node_modules/@fable-org/fable-library-ts/Array.js';
12
+ import { ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F } from '../Spreadsheet/ArcAssay.js';
13
+ import { ArcRun, ArcWorkflow, ArcStudy, ArcAssay } from '../Core/ArcTypes.js';
14
+ import { ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522 } from '../Spreadsheet/ArcStudy.js';
15
+ import { ARCtrl_ArcWorkflow__ArcWorkflow_toFsWorkbook_Static_Z1C75CB0E } from '../Spreadsheet/ArcWorkflow.js';
16
+ import { ARCtrl_ArcRun__ArcRun_toFsWorkbook_Static_Z3EFAF6F8 } from '../Spreadsheet/ArcRun.js';
13
17
 
14
18
  function fulfillReadContractAsync(basePath, c) {
15
19
  return catchWith((e_1) => {
@@ -19,7 +23,7 @@ function fulfillReadContractAsync(basePath, c) {
19
23
  const matchValue = c.DTOType;
20
24
  let matchResult = void 0;
21
25
  if (matchValue != null) {
22
- switch (value(matchValue)) {
26
+ switch (matchValue) {
23
27
  case "ISA_Assay":
24
28
  case "ISA_Investigation":
25
29
  case "ISA_Study":
@@ -58,6 +62,79 @@ function fulfillReadContractAsync(basePath, c) {
58
62
  return Promise.resolve(FSharpResult$2_Error$((arg_2 = _arg_2.message, toText(printf("Error reading contract %s: %s"))(c.Path)(arg_2))));
59
63
  }))));
60
64
  }
65
+ function tryFulfillEmptyEntityContractAsync(basePath, c) {
66
+ return PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => {
67
+ const matchValue = c.DTOType;
68
+ let matchResult = void 0;
69
+ if (matchValue != null) {
70
+ switch (matchValue) {
71
+ case "ISA_Assay":
72
+ case "ISA_Study":
73
+ case "ISA_Workflow":
74
+ case "ISA_Run": {
75
+ matchResult = 0;
76
+ break;
77
+ }
78
+ default:
79
+ matchResult = 1;
80
+ }
81
+ } else {
82
+ matchResult = 1;
83
+ }
84
+ switch (matchResult) {
85
+ case 0:
86
+ return isEmptyFileAsync(combine(basePath, c.Path)).then((_arg) => {
87
+ if (_arg) {
88
+ const identifier = item(1, split(c.Path));
89
+ let wb;
90
+ const matchValue_1 = c.DTOType;
91
+ let matchResult_1 = void 0;
92
+ if (matchValue_1 != null) {
93
+ switch (matchValue_1) {
94
+ case "ISA_Assay": {
95
+ matchResult_1 = 0;
96
+ break;
97
+ }
98
+ case "ISA_Study": {
99
+ matchResult_1 = 1;
100
+ break;
101
+ }
102
+ case "ISA_Workflow": {
103
+ matchResult_1 = 2;
104
+ break;
105
+ }
106
+ default:
107
+ matchResult_1 = 3;
108
+ }
109
+ } else {
110
+ matchResult_1 = 3;
111
+ }
112
+ switch (matchResult_1) {
113
+ case 0: {
114
+ wb = ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F(new ArcAssay(identifier));
115
+ break;
116
+ }
117
+ case 1: {
118
+ wb = ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522(new ArcStudy(identifier));
119
+ break;
120
+ }
121
+ case 2: {
122
+ wb = ARCtrl_ArcWorkflow__ArcWorkflow_toFsWorkbook_Static_Z1C75CB0E(new ArcWorkflow(identifier));
123
+ break;
124
+ }
125
+ default:
126
+ wb = ARCtrl_ArcRun__ArcRun_toFsWorkbook_Static_Z3EFAF6F8(new ArcRun(identifier));
127
+ }
128
+ return Promise.resolve(new Contract(c.Operation, c.Path, c.DTOType, wb));
129
+ } else {
130
+ return Promise.resolve(void 0);
131
+ }
132
+ });
133
+ default:
134
+ return Promise.resolve(void 0);
135
+ }
136
+ }));
137
+ }
61
138
  function fullfillContractBatchAsyncBy(contractF, basePath, cs) {
62
139
  return PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => startSequential(curry2(contractF)(basePath), cs).then((_arg) => {
63
140
  const res = fold((acc, cr) => {
@@ -105,12 +182,12 @@ function fulfillWriteContractAsync(forceOverwrite, basePath, c) {
105
182
  if (matchValue == null) {
106
183
  const path_2 = combine(basePath, c.Path);
107
184
  return ensureDirectoryOfFileAsync(path_2).then(() => writeFileTextAsync(path_2, "").then(() => Promise.resolve(FSharpResult$2_Ok(c))));
108
- } else if (typeof value(matchValue) === "string") {
109
- const t = value(matchValue);
185
+ } else if (typeof matchValue === "string") {
186
+ const t = matchValue;
110
187
  const path = combine(basePath, c.Path);
111
188
  return ensureDirectoryOfFileAsync(path).then(() => writeFileTextAsync(path, t).then(() => Promise.resolve(FSharpResult$2_Ok(c))));
112
- } else if (value(matchValue) instanceof FsWorkbook) {
113
- const wb = value(matchValue);
189
+ } else if (matchValue instanceof FsWorkbook) {
190
+ const wb = matchValue;
114
191
  const path_1 = combine(basePath, c.Path);
115
192
  return ensureDirectoryOfFileAsync(path_1).then(() => writeFileXlsxAsync(path_1, wb).then(() => Promise.resolve(FSharpResult$2_Ok(c))));
116
193
  } else {
@@ -131,12 +208,12 @@ function fulfillUpdateContractAsync(basePath, c) {
131
208
  if (matchValue == null) {
132
209
  const path_2 = combine(basePath, c.Path);
133
210
  return ensureDirectoryOfFileAsync(path_2).then(() => writeFileTextAsync(path_2, "").then(() => Promise.resolve(FSharpResult$2_Ok(c))));
134
- } else if (typeof value(matchValue) === "string") {
135
- const t = value(matchValue);
211
+ } else if (typeof matchValue === "string") {
212
+ const t = matchValue;
136
213
  const path = combine(basePath, c.Path);
137
214
  return ensureDirectoryOfFileAsync(path).then(() => writeFileTextAsync(path, t).then(() => Promise.resolve(FSharpResult$2_Ok(c))));
138
- } else if (value(matchValue) instanceof FsWorkbook) {
139
- const wb = value(matchValue);
215
+ } else if (matchValue instanceof FsWorkbook) {
216
+ const wb = matchValue;
140
217
  const path_1 = combine(basePath, c.Path);
141
218
  return ensureDirectoryOfFileAsync(path_1).then(() => writeFileXlsxAsync(path_1, wb).then(() => Promise.resolve(FSharpResult$2_Ok(c))));
142
219
  } else {
@@ -155,13 +232,13 @@ function fullfillRenameContractAsync(basePath, c) {
155
232
  const matchValue = c.DTO;
156
233
  let matchResult = void 0, t_1 = void 0, t_2 = void 0;
157
234
  if (matchValue != null) {
158
- if (typeof value(matchValue) === "string") {
159
- if (value(matchValue) === c.Path) {
235
+ if (typeof matchValue === "string") {
236
+ if (matchValue === c.Path) {
160
237
  matchResult = 0;
161
- t_1 = value(matchValue);
238
+ t_1 = matchValue;
162
239
  } else {
163
240
  matchResult = 1;
164
- t_2 = value(matchValue);
241
+ t_2 = matchValue;
165
242
  }
166
243
  } else {
167
244
  matchResult = 2;
@@ -210,4 +287,4 @@ function fullFillContractBatchAsync(forceOverwrite, basePath, cs) {
210
287
  return fullfillContractBatchAsyncBy((basePath_1, c) => fullFillContract(forceOverwrite, basePath_1, c), basePath, cs);
211
288
  }
212
289
 
213
- export { fulfillReadContractAsync, fulfillUpdateContractAsync, fulfillWriteContractAsync, fullFillContract, fullFillContractBatchAsync, fullfillContractBatchAsyncBy, fullfillDeleteContractAsync, fullfillRenameContractAsync };
290
+ export { fulfillReadContractAsync, fulfillUpdateContractAsync, fulfillWriteContractAsync, fullFillContract, fullFillContractBatchAsync, fullfillContractBatchAsyncBy, fullfillDeleteContractAsync, fullfillRenameContractAsync, tryFulfillEmptyEntityContractAsync };
@@ -21,6 +21,7 @@ export declare function createDirectoryAsync(path: string): Promise<void>;
21
21
  export declare function ensureDirectoryAsync(path: string): Promise<void>;
22
22
  export declare function ensureDirectoryOfFileAsync(filePath: string): Promise<void>;
23
23
  export declare function fileExistsAsync(path: string): Promise<boolean>;
24
+ export declare function isEmptyFileAsync(path: string): Promise<boolean>;
24
25
  export declare function readFileTextAsync(path: string): Promise<string>;
25
26
  export declare function readFileBinaryAsync(path: string): Promise<MutableArray<uint8>>;
26
27
  export declare function readFileXlsxAsync(path: string): Promise<FsWorkbook>;
@@ -1 +1 @@
1
- {"version":3,"file":"FileSystemHelper.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/ContractIO/FileSystemHelper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAa,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAI7D,OAAO,EAAE,UAAU,E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GAAG,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAkBzF;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAY1F;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAYtE"}
@@ -5,6 +5,7 @@ import { trim as trim$1, replace, substring } from '../../node_modules/@fable-or
5
5
  import { choose, map } from '../../node_modules/@fable-org/fable-library-ts/Array.js';
6
6
  import { isEmpty, empty, map as map$1, concat, append, toArray } from '../../node_modules/@fable-org/fable-library-ts/Seq.js';
7
7
  import { all } from '../CrossAsync.js';
8
+ import { getFileName } from '../FileSystem/Path.js';
8
9
 
9
10
  function FS_stat_Z721C83C5(path) {
10
11
  const props = path;
@@ -159,6 +160,9 @@ function fileExistsAsync(path) {
159
160
  const pr = PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => FS_stat_Z721C83C5(path).then((_arg) => Promise.resolve(_arg.isFile()))));
160
161
  return pr.catch((_arg_1) => false);
161
162
  }
163
+ function isEmptyFileAsync(path) {
164
+ return PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => FS_stat_Z721C83C5(path).then((_arg) => Promise.resolve(_arg.size === 0))));
165
+ }
162
166
  function readFileTextAsync(path) {
163
167
  return FS_readFileText_Z721C83C5(path);
164
168
  }
@@ -248,10 +252,13 @@ function getAllFilePathsAsync(directoryPath) {
248
252
  return PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => {
249
253
  const allFiles = (dirs) => PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => isEmpty(dirs) ? Promise.resolve(empty()) : all(map$1(getSubFilesAsync, dirs)).then((_arg) => {
250
254
  const subFiles_1 = concat(_arg);
251
- return all(map$1(getSubDirectoriesAsync, dirs)).then((_arg_1) => all(map$1(allFiles, _arg_1)).then((_arg_2) => {
252
- const subDirContents_1 = concat(_arg_2);
253
- return Promise.resolve(append(subDirContents_1, subFiles_1));
254
- }));
255
+ return all(map$1(getSubDirectoriesAsync, dirs)).then((_arg_1) => {
256
+ const subDirs_1 = map$1((array) => array.filter((d) => getFileName(d) !== ".git"), _arg_1);
257
+ return all(map$1(allFiles, subDirs_1)).then((_arg_2) => {
258
+ const subDirContents_1 = concat(_arg_2);
259
+ return Promise.resolve(append(subDirContents_1, subFiles_1));
260
+ });
261
+ });
255
262
  })));
256
263
  return allFiles([directoryPath_1]).then((_arg_3) => {
257
264
  const allFilesRelative = map((arg_2) => standardizeSlashes(makeRelative(directoryPath_1, arg_2)), toArray(_arg_3));
@@ -282,4 +289,4 @@ function deleteFileOrDirectoryAsync(path) {
282
289
  }))));
283
290
  }
284
291
 
285
- export { FS_mkdir, FS_readFile, FS_readFileBinary_Z721C83C5, FS_readFileText_Z721C83C5, FS_readdir, FS_rename, FS_rm, FS_stat_Z721C83C5, FS_unlink_Z721C83C5, FS_writeFile, FS_writeFileBinary, FS_writeFileText, PathModule_dirname_Z721C83C5, PathModule_join_Z35CD86D0, createDirectoryAsync, deleteDirectoryAsync, deleteFileAsync, deleteFileOrDirectoryAsync, directoryExistsAsync, ensureDirectoryAsync, ensureDirectoryOfFileAsync, fileExistsAsync, getAllFilePathsAsync, getSubDirectoriesAsync, getSubFilesAsync, makeRelative, moveDirectoryAsync, moveFileAsync, readFileBinaryAsync, readFileTextAsync, readFileXlsxAsync, renameFileOrDirectoryAsync, standardizeSlashes, trim, writeFileBinaryAsync, writeFileTextAsync, writeFileXlsxAsync };
292
+ export { FS_mkdir, FS_readFile, FS_readFileBinary_Z721C83C5, FS_readFileText_Z721C83C5, FS_readdir, FS_rename, FS_rm, FS_stat_Z721C83C5, FS_unlink_Z721C83C5, FS_writeFile, FS_writeFileBinary, FS_writeFileText, PathModule_dirname_Z721C83C5, PathModule_join_Z35CD86D0, createDirectoryAsync, deleteDirectoryAsync, deleteFileAsync, deleteFileOrDirectoryAsync, directoryExistsAsync, ensureDirectoryAsync, ensureDirectoryOfFileAsync, fileExistsAsync, getAllFilePathsAsync, getSubDirectoriesAsync, getSubFilesAsync, isEmptyFileAsync, makeRelative, moveDirectoryAsync, moveFileAsync, readFileBinaryAsync, readFileTextAsync, readFileXlsxAsync, renameFileOrDirectoryAsync, standardizeSlashes, trim, writeFileBinaryAsync, writeFileTextAsync, writeFileXlsxAsync };
@@ -1 +1 @@
1
- {"version":3,"file":"Assay.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Assay.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAIjF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAMzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,EAAE,QAAQ,EAAoB,MAAM,qBAAqB,CAAC;AAQjE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,qBAAa,eAAe;;CAG3B;AAED,wBAAgB,2BAA2B,IAAI,QAAQ,CAEtD;AAED,wBAAgB,kDAAkD,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,mBAAmB,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,EAAE,CAkBtK;AAED,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,CAyB/F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAiBtH"}
1
+ {"version":3,"file":"Assay.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Assay.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAYzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,EAAE,QAAQ,EAAoB,MAAM,qBAAqB,CAAC;AAQjE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,qBAAa,eAAe;;CAG3B;AAED,wBAAgB,2BAA2B,IAAI,QAAQ,CAEtD;AAED,wBAAgB,kDAAkD,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,mBAAmB,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,EAAE,CAuBtK;AAED,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,CA0B/F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAiBtH"}
@@ -1,13 +1,15 @@
1
1
  import { class_type } from '../../node_modules/@fable-org/fable-library-ts/Reflection.js';
2
- import { ResizeArray_distinct, ResizeArray_append, ResizeArray_choose, ResizeArray_collect, ResizeArray_filter, ResizeArray_map, ResizeArray_tryFind, Option_fromSeq, ResizeArray_groupBy, ResizeArray_singleton, ResizeArray_appendSingleton, Option_fromValueWithDefault } from '../Core/Helper/Collections.js';
2
+ import { distinctBy } from '../../node_modules/@fable-org/fable-library-ts/Seq2.js';
3
+ import { ResizeArray_append, ResizeArray_choose, ResizeArray_collect, ResizeArray_filter, ResizeArray_map, ResizeArray_tryFind, Option_fromSeq, ResizeArray_groupBy, ResizeArray_singleton, ResizeArray_appendSingleton, Option_fromValueWithDefault } from '../Core/Helper/Collections.js';
3
4
  import { LDPropertyValue } from '../ROCrate/LDTypes/PropertyValue.js';
4
- import { unwrap, defaultArg, value } from '../../node_modules/@fable-org/fable-library-ts/Option.js';
5
+ import { unwrap, defaultArg } from '../../node_modules/@fable-org/fable-library-ts/Option.js';
5
6
  import { LDLabProcess } from '../ROCrate/LDTypes/LabProcess.js';
7
+ import { stringHash } from '../../node_modules/@fable-org/fable-library-ts/Util.js';
6
8
  import { DataAux_pathAndSelectorFromName } from '../Core/Data.js';
7
9
  import { LDFile } from '../ROCrate/LDTypes/File.js';
8
10
  import { item } from '../../node_modules/@fable-org/fable-library-ts/Array.js';
9
11
  import { LDDataset } from '../ROCrate/LDTypes/Dataset.js';
10
- import { BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_composePropertyValueFromOA_ZDED3A0F, BaseTypes_composeComment_Z13201A7E, BaseTypes_decomposeDefinedTerm_Z2F770004, BaseTypes_decomposePropertyValueToOA_Z2F770004, BaseTypes_decomposeComment_Z2F770004 } from './Basic.js';
12
+ import { BaseTypes_warnIfTitleEmpty_Z2FC25A28, BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_composePropertyValueFromOA_ZDED3A0F, BaseTypes_composeComment_Z13201A7E, BaseTypes_decomposeDefinedTerm_Z2F770004, BaseTypes_decomposePropertyValueToOA_Z2F770004, BaseTypes_decomposeComment_Z2F770004 } from './Basic.js';
11
13
  import { ArcAssay } from '../Core/ArcTypes.js';
12
14
  import { PersonConversion_composePerson_2B0BECCC, PersonConversion_decomposePerson_Z6839B9E8 } from './Person.js';
13
15
  import { ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C, ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586 } from './Table.js';
@@ -24,59 +26,65 @@ function AssayConversion_$reflection() {
24
26
  return class_type("ARCtrl.Conversion.AssayConversion", void 0, AssayConversion);
25
27
  }
26
28
  function AssayConversion_getDataFilesFromProcesses_6BABD1B0(processes, fragmentDescriptors, graph, context) {
27
- const data = ResizeArray_distinct(ResizeArray_append(ResizeArray_choose((df) => LDPropertyValue.tryGetSubjectOf(df, unwrap(graph), unwrap(context)), defaultArg(fragmentDescriptors, [])), ResizeArray_collect((p) => ResizeArray_append(LDLabProcess.getObjectsAsData(p, unwrap(graph), unwrap(context)), LDLabProcess.getResultsAsData(p, unwrap(graph), unwrap(context))), processes)));
28
- const files = ResizeArray_filter((d) => DataAux_pathAndSelectorFromName(d.Id)[1] == null, data);
29
+ let data;
30
+ const collection = distinctBy((d) => d.Id, ResizeArray_append(ResizeArray_choose((df) => LDPropertyValue.tryGetSubjectOf(df, unwrap(graph), unwrap(context)), defaultArg(fragmentDescriptors, [])), ResizeArray_collect((p) => ResizeArray_append(LDLabProcess.getObjectsAsData(p, unwrap(graph), unwrap(context)), LDLabProcess.getResultsAsData(p, unwrap(graph), unwrap(context))), processes)), {
31
+ Equals: (x, y) => x === y,
32
+ GetHashCode: (x) => stringHash(x) | 0
33
+ });
34
+ data = Array.from(collection);
35
+ const files = ResizeArray_filter((d_1) => DataAux_pathAndSelectorFromName(d_1.Id)[1] == null, data);
29
36
  return ResizeArray_append(files, ResizeArray_map((tupledArg) => {
30
37
  const path = tupledArg[0];
31
38
  const fragments = tupledArg[1];
32
39
  let file;
33
- const matchValue = ResizeArray_tryFind((d_3) => d_3.Id === path, files);
40
+ const matchValue = ResizeArray_tryFind((d_4) => d_4.Id === path, files);
34
41
  if (matchValue == null) {
35
42
  const comments = Option_fromSeq(LDFile.getComments(item(0, fragments), unwrap(graph), unwrap(context)));
36
43
  file = LDFile.create(path, path, unwrap(comments), unwrap(LDFile.tryGetDisambiguatingDescriptionAsString(item(0, fragments), unwrap(context))), unwrap(LDFile.tryGetEncodingFormatAsString(item(0, fragments), unwrap(context))), void 0, unwrap(item(0, fragments).TryGetContext()));
37
44
  } else {
38
- file = value(matchValue);
45
+ file = matchValue;
39
46
  }
40
47
  LDDataset.setHasParts(file, fragments, unwrap(context));
41
48
  return file;
42
- }, ResizeArray_groupBy((d_2) => DataAux_pathAndSelectorFromName(d_2.Id)[0], ResizeArray_filter((d_1) => DataAux_pathAndSelectorFromName(d_1.Id)[1] != null, data))));
49
+ }, ResizeArray_groupBy((d_3) => DataAux_pathAndSelectorFromName(d_3.Id)[0], ResizeArray_filter((d_2) => DataAux_pathAndSelectorFromName(d_2.Id)[1] != null, data))));
43
50
  }
44
51
  function AssayConversion_composeAssay_Z5C53FD5C(assay, fs) {
45
52
  let i = void 0, collection = void 0, fds_1 = void 0, vm_1 = void 0, fds = void 0, vm = void 0;
53
+ BaseTypes_warnIfTitleEmpty_Z2FC25A28("Assay", assay.Identifier, assay.Title);
46
54
  let measurementMethod;
47
55
  const option_1 = assay.TechnologyType;
48
- measurementMethod = option_1 != null ? BaseTypes_composeDefinedTerm_ZDED3A0F(value(option_1)) : void 0;
56
+ measurementMethod = option_1 != null ? BaseTypes_composeDefinedTerm_ZDED3A0F(option_1) : void 0;
49
57
  let measurementTechnique;
50
58
  const option_3 = assay.TechnologyPlatform;
51
- measurementTechnique = option_3 != null ? BaseTypes_composeDefinedTerm_ZDED3A0F(value(option_3)) : void 0;
59
+ measurementTechnique = option_3 != null ? BaseTypes_composeDefinedTerm_ZDED3A0F(option_3) : void 0;
52
60
  let variableMeasured;
53
61
  const option_5 = assay.MeasurementType;
54
- variableMeasured = option_5 != null ? BaseTypes_composePropertyValueFromOA_ZDED3A0F(value(option_5)) : void 0;
62
+ variableMeasured = option_5 != null ? BaseTypes_composePropertyValueFromOA_ZDED3A0F(option_5) : void 0;
55
63
  let persons;
56
64
  const option_7 = assay.Investigation;
57
- persons = option_7 != null ? (i = value(option_7), i.GetAllPersons()) : void 0;
65
+ persons = option_7 != null ? (i = option_7, i.GetAllPersons()) : void 0;
58
66
  const creators = Option_fromSeq(ResizeArray_map((c) => PersonConversion_composePerson_2B0BECCC(c, unwrap(persons)), assay.Performers));
59
67
  const processSequence = Option_fromSeq((collection = ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C(new ArcTables(assay.Tables), assay.Identifier, void 0, unwrap(fs)), Array.from(collection)));
60
68
  let fragmentDescriptors;
61
69
  const option_9 = assay.Datamap;
62
- fragmentDescriptors = option_9 != null ? DatamapConversion_composeFragmentDescriptors_Z892BFC3(value(option_9)) : void 0;
70
+ fragmentDescriptors = option_9 != null ? DatamapConversion_composeFragmentDescriptors_Z892BFC3(option_9) : void 0;
63
71
  let dataFiles;
64
72
  const option_11 = processSequence;
65
- dataFiles = option_11 != null ? AssayConversion_getDataFilesFromProcesses_6BABD1B0(value(option_11), unwrap(fragmentDescriptors)) : void 0;
66
- const variableMeasureds = variableMeasured == null ? fragmentDescriptors == null ? void 0 : (fds_1 = value(fragmentDescriptors), fds_1) : fragmentDescriptors == null ? (vm_1 = value(variableMeasured), ResizeArray_singleton(vm_1)) : (fds = value(fragmentDescriptors), vm = value(variableMeasured), ResizeArray_appendSingleton(vm, fds));
73
+ dataFiles = option_11 != null ? AssayConversion_getDataFilesFromProcesses_6BABD1B0(option_11, unwrap(fragmentDescriptors)) : void 0;
74
+ const variableMeasureds = variableMeasured == null ? fragmentDescriptors == null ? void 0 : (fds_1 = fragmentDescriptors, fds_1) : fragmentDescriptors == null ? (vm_1 = variableMeasured, ResizeArray_singleton(vm_1)) : (fds = fragmentDescriptors, vm = variableMeasured, ResizeArray_appendSingleton(vm, fds));
67
75
  const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, assay.Comments));
68
76
  return LDDataset.createAssay(assay.Identifier, void 0, unwrap(assay.Title), unwrap(assay.Description), unwrap(creators), unwrap(dataFiles), unwrap(measurementMethod), unwrap(measurementTechnique), unwrap(variableMeasureds), unwrap(processSequence), unwrap(comments));
69
77
  }
70
78
  function AssayConversion_decomposeAssay_Z6839B9E8(assay, graph, context) {
71
79
  let measurementMethod;
72
80
  const option_1 = LDDataset.tryGetMeasurementMethodAsDefinedTerm(assay, unwrap(graph), unwrap(context));
73
- measurementMethod = option_1 != null ? BaseTypes_decomposeDefinedTerm_Z2F770004(value(option_1), unwrap(context)) : void 0;
81
+ measurementMethod = option_1 != null ? BaseTypes_decomposeDefinedTerm_Z2F770004(option_1, unwrap(context)) : void 0;
74
82
  let measurementTechnique;
75
83
  const option_3 = LDDataset.tryGetMeasurementTechniqueAsDefinedTerm(assay, unwrap(graph), unwrap(context));
76
- measurementTechnique = option_3 != null ? BaseTypes_decomposeDefinedTerm_Z2F770004(value(option_3), unwrap(context)) : void 0;
84
+ measurementTechnique = option_3 != null ? BaseTypes_decomposeDefinedTerm_Z2F770004(option_3, unwrap(context)) : void 0;
77
85
  let variableMeasured;
78
86
  const option_5 = LDDataset.tryGetVariableMeasuredAsMeasurementType(assay, unwrap(graph), unwrap(context));
79
- variableMeasured = option_5 != null ? BaseTypes_decomposePropertyValueToOA_Z2F770004(value(option_5), unwrap(context)) : void 0;
87
+ variableMeasured = option_5 != null ? BaseTypes_decomposePropertyValueToOA_Z2F770004(option_5, unwrap(context)) : void 0;
80
88
  const perfomers = ResizeArray_map((c) => PersonConversion_decomposePerson_Z6839B9E8(c, unwrap(graph), unwrap(context)), LDDataset.getCreators(assay, unwrap(graph), unwrap(context)));
81
89
  let datamap;
82
90
  const v_1 = DatamapConversion_decomposeFragmentDescriptors_Z6E59645F(LDDataset.getVariableMeasuredAsFragmentDescriptors(assay, unwrap(graph), unwrap(context)), unwrap(graph), unwrap(context));
@@ -17,6 +17,10 @@ export declare class BaseTypes {
17
17
  constructor();
18
18
  }
19
19
  export declare function BaseTypes_$reflection(): TypeInfo;
20
+ /**
21
+ * Prints a warning if the title is empty, as the ISA RO-Crate profile requires a non-empty name
22
+ */
23
+ export declare function BaseTypes_warnIfTitleEmpty_Z2FC25A28(entityType: string, identifier: string, title: Option<string>): void;
20
24
  export declare function BaseTypes_composeComment_Z13201A7E(comment: Comment$): LDNode;
21
25
  export declare function BaseTypes_decomposeComment_Z2F770004(comment: LDNode, context?: LDContext): Comment$;
22
26
  export declare function BaseTypes_ontologyTermFromNameAndID_40457300(name?: string, id?: string): OntologyAnnotation;
@@ -1 +1 @@
1
- {"version":3,"file":"Basic.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Basic.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAwC,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAGrG,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAS,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAKnE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAA0F,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAE9J,OAAO,EAAuM,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAG/Q,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAMzD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,EAAE,kBAAkB,EAA0C,MAAM,wBAAwB,CAAC;AAGpG;;GAEG;AACH,qBAAa,SAAS;;CAGrB;AAED,wBAAgB,qBAAqB,IAAI,QAAQ,CAEhD;AAED,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,QAAQ,GAAG,MAAM,CAU5E;AAED,wBAAgB,oCAAoC,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAEnG;AAED,wBAAgB,4CAA4C,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAQ3G;AAED,wBAAgB,+CAA+C,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,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yC,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,CAiBzI;AAED,wBAAgB,0CAA0C,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,CAc1I;AAED;;;;;;GAMG;AACH,wBAAgB,4CAA4C,CAAC,EAAE,EAAE,kBAAkB,GAAG,MAAM,CAQ3F;AAED;;;;;;GAMG;AACH,wBAAgB,+CAA+C,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,CAahG"}
@@ -1,5 +1,6 @@
1
1
  import { class_type } from '../../node_modules/@fable-org/fable-library-ts/Reflection.js';
2
- import { value, unwrap, defaultArg } from '../../node_modules/@fable-org/fable-library-ts/Option.js';
2
+ import { isNullOrWhiteSpace, toConsole, printf, toFail, concat } from '../../node_modules/@fable-org/fable-library-ts/String.js';
3
+ import { unwrap, defaultArg } from '../../node_modules/@fable-org/fable-library-ts/Option.js';
3
4
  import { Exception } from '../../node_modules/@fable-org/fable-library-ts/Util.js';
4
5
  import { LDComment } from '../ROCrate/LDTypes/Comment.js';
5
6
  import { Comment$ } from '../Core/Comment.js';
@@ -10,9 +11,8 @@ import { LDDefinedTerm } from '../ROCrate/LDTypes/DefinedTerm.js';
10
11
  import { LDPropertyValue } from '../ROCrate/LDTypes/PropertyValue.js';
11
12
  import { Data } from '../Core/Data.js';
12
13
  import { CompositeCell_Term, CompositeCell_Unitized, CompositeCell_FreeText, CompositeCell_Data } from '../Core/Table/CompositeCell.js';
13
- import { toFail, printf, concat } from '../../node_modules/@fable-org/fable-library-ts/String.js';
14
14
  import { CompositeHeader_Component, CompositeHeader_Parameter, CompositeHeader_Factor, CompositeHeader_Characteristic, CompositeHeader_Input, IOType, IOType_FreeText, CompositeHeader_Output } from '../Core/Table/CompositeHeader.js';
15
- import { DataFile__get_AsString, DataFile_fromString_Z721C83C5 } from '../Core/DataFile.js';
15
+ import { DataFile } from '../Core/DataFile.js';
16
16
  import { LDFile } from '../ROCrate/LDTypes/File.js';
17
17
  import { LDDataset } from '../ROCrate/LDTypes/Dataset.js';
18
18
  import { map, item } from '../../node_modules/@fable-org/fable-library-ts/Array.js';
@@ -30,13 +30,35 @@ class BaseTypes {
30
30
  function BaseTypes_$reflection() {
31
31
  return class_type("ARCtrl.Conversion.BaseTypes", void 0, BaseTypes);
32
32
  }
33
+ function BaseTypes_warnIfTitleEmpty_Z2FC25A28(entityType, identifier, title) {
34
+ let matchResult = void 0, t_1 = void 0;
35
+ if (title != null) {
36
+ if (!isNullOrWhiteSpace(title)) {
37
+ matchResult = 0;
38
+ t_1 = title;
39
+ } else {
40
+ matchResult = 1;
41
+ }
42
+ } else {
43
+ matchResult = 1;
44
+ }
45
+ switch (matchResult) {
46
+ case 0: {
47
+ break;
48
+ }
49
+ case 1: {
50
+ toConsole(printf('Warning: %s "%s" has no title, but RO-Crate requires a non-empty name.'))(entityType)(identifier);
51
+ break;
52
+ }
53
+ }
54
+ }
33
55
  function BaseTypes_composeComment_Z13201A7E(comment) {
34
56
  let name;
35
57
  const matchValue = comment.Name;
36
58
  if (matchValue == null) {
37
59
  throw new Exception("Comment must have a name");
38
60
  } else {
39
- name = value(matchValue);
61
+ name = matchValue;
40
62
  }
41
63
  return LDComment.create(name, void 0, unwrap(comment.Value));
42
64
  }
@@ -47,7 +69,7 @@ function BaseTypes_ontologyTermFromNameAndID_40457300(name, id) {
47
69
  if (id == null) {
48
70
  return OntologyAnnotation.create(unwrap(name));
49
71
  } else {
50
- const t = value(id);
72
+ const t = id;
51
73
  return OntologyAnnotation.fromTermAnnotation(t, unwrap(name));
52
74
  }
53
75
  }
@@ -170,20 +192,21 @@ function BaseTypes_composeFreetextMaterialName(headerFT, name) {
170
192
  }
171
193
  function BaseTypes_composeFile_6CE21C7D(d, fs) {
172
194
  const createFile = () => {
195
+ let dt = void 0;
173
196
  let dataType;
174
197
  const option_1 = d.DataType;
175
- dataType = option_1 != null ? DataFile__get_AsString(value(option_1)) : void 0;
198
+ dataType = option_1 != null ? (dt = option_1, dt.AsString) : void 0;
176
199
  return LDFile.create(d.NameText, d.NameText, void 0, unwrap(dataType), unwrap(d.Format), unwrap(d.SelectorFormat));
177
200
  };
178
201
  if (fs == null) {
179
202
  return createFile();
180
203
  } else {
181
- const fs_1 = value(fs);
204
+ const fs_1 = fs;
182
205
  const matchValue = fs_1.Tree.TryGetPath(d.NameText);
183
206
  if (matchValue != null) {
184
- if (value(matchValue).tag === /* Folder */
207
+ if (matchValue.tag === /* Folder */
185
208
  1) {
186
- const fs_2 = value(matchValue);
209
+ const fs_2 = matchValue;
187
210
  const file = createFile();
188
211
  file.SchemaType = [LDFile.schemaType, LDDataset.schemaType];
189
212
  let subFiles;
@@ -203,9 +226,10 @@ function BaseTypes_composeFile_6CE21C7D(d, fs) {
203
226
  }
204
227
  }
205
228
  function BaseTypes_decomposeFile_Z2F770004(f, context) {
229
+ let dt = void 0;
206
230
  let dataType;
207
231
  const option_1 = LDFile.tryGetDisambiguatingDescriptionAsString(f, unwrap(context));
208
- dataType = option_1 != null ? DataFile_fromString_Z721C83C5(value(option_1)) : void 0;
232
+ dataType = option_1 != null ? (dt = option_1, DataFile.fromString(dt)) : void 0;
209
233
  const format = LDFile.tryGetEncodingFormatAsString(f, unwrap(context));
210
234
  const selectorFormat = LDFile.tryGetUsageInfoAsString(f, unwrap(context));
211
235
  return new Data(void 0, LDFile.getNameAsString(f, unwrap(context)), unwrap(dataType), unwrap(format), unwrap(selectorFormat));
@@ -216,13 +240,13 @@ function BaseTypes_composeFragmentDescriptor_Z4C0BEF62(dc) {
216
240
  throw new Exception("RO-Crate parsing of DataContext failed: Cannot create a fragment descriptor without a name.");
217
241
  }
218
242
  const id = LDPropertyValue.genIdFragmentDescriptor(dc.NameText);
219
- const patternInput = defaultArg((option_1 = dc.Explication, option_1 != null ? (e = value(option_1), [e.Name, Option_fromValueWithDefault("", e.TermAccessionAndOntobeeUrlIfShort)]) : void 0), [void 0, void 0]);
220
- const patternInput_1 = defaultArg((option_4 = dc.Unit, option_4 != null ? (u = value(option_4), [u.Name, Option_fromValueWithDefault("", u.TermAccessionAndOntobeeUrlIfShort)]) : void 0), [void 0, void 0]);
243
+ const patternInput = defaultArg((option_1 = dc.Explication, option_1 != null ? (e = option_1, [e.Name, Option_fromValueWithDefault("", e.TermAccessionAndOntobeeUrlIfShort)]) : void 0), [void 0, void 0]);
244
+ const patternInput_1 = defaultArg((option_4 = dc.Unit, option_4 != null ? (u = option_4, [u.Name, Option_fromValueWithDefault("", u.TermAccessionAndOntobeeUrlIfShort)]) : void 0), [void 0, void 0]);
221
245
  const disambiguatingDescriptions = Option_fromSeq(ResizeArray_map(toString, dc.Comments));
222
246
  const dataFragment = BaseTypes_composeFile_6CE21C7D(dc);
223
247
  let pattern;
224
248
  const option_7 = dc.ObjectType;
225
- pattern = option_7 != null ? BaseTypes_composeDefinedTerm_ZDED3A0F(value(option_7)) : void 0;
249
+ pattern = option_7 != null ? BaseTypes_composeDefinedTerm_ZDED3A0F(option_7) : void 0;
226
250
  dataFragment.SetProperty(LDFile.about, new LDRef(id));
227
251
  dataFragment.SetOptionalProperty(LDFile.pattern, pattern);
228
252
  return LDPropertyValue.createFragmentDescriptor(dc.NameText, unwrap(patternInput[0]), void 0, unwrap(patternInput_1[1]), unwrap(patternInput_1[0]), unwrap(patternInput[1]), unwrap(dc.GeneratedBy), unwrap(dc.Description), unwrap(dc.Label), unwrap(disambiguatingDescriptions), dataFragment);
@@ -233,23 +257,23 @@ function BaseTypes_decomposeFragmentDescriptor_Z6839B9E8(fd, graph, context) {
233
257
  if (file == null) {
234
258
  throw new Exception("RO-Crate parsing of DataContext failed: Cannot decompose a fragment descriptor without a name.");
235
259
  } else {
236
- const f = value(file);
260
+ const f = file;
237
261
  name = LDFile.getNameAsString(f, unwrap(context));
238
262
  }
239
263
  let objectType;
240
264
  let option_3;
241
265
  const option_1 = file;
242
266
  if (option_1 != null) {
243
- const f_1 = value(option_1);
267
+ const f_1 = option_1;
244
268
  option_3 = LDFile.tryGetPatternAsDefinedTerm(f_1, unwrap(graph), unwrap(context));
245
269
  } else {
246
270
  option_3 = void 0;
247
271
  }
248
- objectType = option_3 != null ? BaseTypes_decomposeDefinedTerm_Z2F770004(value(option_3), unwrap(context)) : void 0;
272
+ objectType = option_3 != null ? BaseTypes_decomposeDefinedTerm_Z2F770004(option_3, unwrap(context)) : void 0;
249
273
  let format;
250
274
  const option_5 = file;
251
275
  if (option_5 != null) {
252
- const f_2 = value(option_5);
276
+ const f_2 = option_5;
253
277
  format = LDFile.tryGetEncodingFormatAsString(f_2, unwrap(context));
254
278
  } else {
255
279
  format = void 0;
@@ -257,16 +281,16 @@ function BaseTypes_decomposeFragmentDescriptor_Z6839B9E8(fd, graph, context) {
257
281
  let selectorFormat;
258
282
  const option_7 = file;
259
283
  if (option_7 != null) {
260
- const f_3 = value(option_7);
284
+ const f_3 = option_7;
261
285
  selectorFormat = LDFile.tryGetUsageInfoAsString(f_3, unwrap(context));
262
286
  } else {
263
287
  selectorFormat = void 0;
264
288
  }
265
- const explication = BaseTypes_tryOntologyTermFromNameAndID_40457300(unwrap(LDPropertyValue.tryGetValueAsString(fd)), unwrap(LDPropertyValue.tryGetValueReferenceAsString(fd)));
266
- const unit = BaseTypes_tryOntologyTermFromNameAndID_40457300(unwrap(LDPropertyValue.tryGetUnitTextAsString(fd)), unwrap(LDPropertyValue.tryGetUnitCodeAsString(fd)));
267
- const generatedBy = LDPropertyValue.tryGetMeasurementMethodAsString(fd);
268
- const description = LDPropertyValue.tryGetDescriptionAsString(fd);
269
- return new DataContext(void 0, name, void 0, unwrap(format), unwrap(selectorFormat), unwrap(explication), unwrap(unit), unwrap(objectType), unwrap(LDPropertyValue.tryGetAlternateNameAsString(fd)), unwrap(description), unwrap(generatedBy), ResizeArray_map((s) => Comment$.fromString(s), LDPropertyValue.getDisambiguatingDescriptionsAsString(fd)));
289
+ const explication = BaseTypes_tryOntologyTermFromNameAndID_40457300(unwrap(LDPropertyValue.tryGetValueAsString(fd, unwrap(context))), unwrap(LDPropertyValue.tryGetValueReferenceAsString(fd, unwrap(context))));
290
+ const unit = BaseTypes_tryOntologyTermFromNameAndID_40457300(unwrap(LDPropertyValue.tryGetUnitTextAsString(fd, unwrap(context))), unwrap(LDPropertyValue.tryGetUnitCodeAsString(fd, unwrap(context))));
291
+ const generatedBy = LDPropertyValue.tryGetMeasurementMethodAsString(fd, unwrap(context));
292
+ const description = LDPropertyValue.tryGetDescriptionAsString(fd, unwrap(context));
293
+ return new DataContext(void 0, name, void 0, unwrap(format), unwrap(selectorFormat), unwrap(explication), unwrap(unit), unwrap(objectType), unwrap(LDPropertyValue.tryGetAlternateNameAsString(fd, unwrap(context))), unwrap(description), unwrap(generatedBy), ResizeArray_map((s) => Comment$.fromString(s), LDPropertyValue.getDisambiguatingDescriptionsAsString(fd, unwrap(context))));
270
294
  }
271
295
  function BaseTypes_composeProcessInput(header, value, fs) {
272
296
  if (header.tag === /* Input */
@@ -366,7 +390,7 @@ function BaseTypes_headerOntologyOfPropertyValue_Z2F770004(pv, context) {
366
390
  if (matchValue == null) {
367
391
  return new OntologyAnnotation(n);
368
392
  } else {
369
- const nRef = value(matchValue);
393
+ const nRef = matchValue;
370
394
  return OntologyAnnotation.fromTermAnnotation(nRef, n);
371
395
  }
372
396
  }
@@ -382,19 +406,19 @@ function BaseTypes_cellOfPropertyValue_Z2F770004(pv, context) {
382
406
  matchResult = 3;
383
407
  } else {
384
408
  matchResult = 2;
385
- uRef_1 = value(uRef);
409
+ uRef_1 = uRef;
386
410
  }
387
411
  } else if (uRef != null) {
388
412
  matchResult = 2;
389
- uRef_1 = value(uRef);
413
+ uRef_1 = uRef;
390
414
  } else {
391
415
  matchResult = 1;
392
- u_1 = value(u);
416
+ u_1 = u;
393
417
  }
394
418
  } else if (u == null) {
395
419
  if (uRef == null) {
396
420
  matchResult = 0;
397
- vr = value(vRef);
421
+ vr = vRef;
398
422
  } else {
399
423
  matchResult = 4;
400
424
  }
@@ -418,7 +442,7 @@ function BaseTypes_cellOfPropertyValue_Z2F770004(pv, context) {
418
442
  }
419
443
  function BaseTypes_decomposePropertyValue_Z2F770004(pv, context) {
420
444
  let v = void 0, vRef = void 0, vr = void 0, u = void 0, uRef = void 0, uRef_1 = void 0, u_1 = void 0;
421
- return [BaseTypes_headerOntologyOfPropertyValue_Z2F770004(pv, unwrap(context)), (v = LDPropertyValue.tryGetValueAsString(pv, unwrap(context)), vRef = LDPropertyValue.tryGetValueReferenceAsString(pv, unwrap(context)), vRef == null ? v == null ? void 0 : ScalarValue_Name(value(v)) : (vr = value(vRef), ScalarValue_Ontology(OntologyAnnotation.fromTermAnnotation(vr, unwrap(v))))), (u = LDPropertyValue.tryGetUnitTextAsString(pv, unwrap(context)), uRef = LDPropertyValue.tryGetUnitCodeAsString(pv, unwrap(context)), u == null ? uRef == null ? void 0 : (uRef_1 = value(uRef), OntologyAnnotation.fromTermAnnotation(uRef_1, unwrap(u))) : uRef != null ? (uRef_1 = value(uRef), OntologyAnnotation.fromTermAnnotation(uRef_1, unwrap(u))) : (u_1 = value(u), new OntologyAnnotation(u_1)))];
445
+ return [BaseTypes_headerOntologyOfPropertyValue_Z2F770004(pv, unwrap(context)), (v = LDPropertyValue.tryGetValueAsString(pv, unwrap(context)), vRef = LDPropertyValue.tryGetValueReferenceAsString(pv, unwrap(context)), vRef == null ? v == null ? void 0 : ScalarValue_Name(v) : (vr = vRef, ScalarValue_Ontology(OntologyAnnotation.fromTermAnnotation(vr, unwrap(v))))), (u = LDPropertyValue.tryGetUnitTextAsString(pv, unwrap(context)), uRef = LDPropertyValue.tryGetUnitCodeAsString(pv, unwrap(context)), u == null ? uRef == null ? void 0 : (uRef_1 = uRef, OntologyAnnotation.fromTermAnnotation(uRef_1, unwrap(u))) : uRef != null ? (uRef_1 = uRef, OntologyAnnotation.fromTermAnnotation(uRef_1, unwrap(u))) : (u_1 = u, new OntologyAnnotation(u_1)))];
422
446
  }
423
447
  function BaseTypes_decomposeComponent_Z2F770004(c, context) {
424
448
  return [CompositeHeader_Component(BaseTypes_headerOntologyOfPropertyValue_Z2F770004(c, unwrap(context))), BaseTypes_cellOfPropertyValue_Z2F770004(c, unwrap(context))];
@@ -469,7 +493,7 @@ function BaseTypes_composeTechnologyPlatform_ZDED3A0F(tp) {
469
493
  function BaseTypes_decomposeTechnologyPlatform_Z721C83C5(name) {
470
494
  const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("^(?<value>.+) \\((?<ontology>[^(]*:[^)]*)\\)$", name);
471
495
  if (activePatternResult != null) {
472
- const r = value(activePatternResult);
496
+ const r = activePatternResult;
473
497
  let oa;
474
498
  const tan = r.groups && r.groups.ontology || "";
475
499
  oa = OntologyAnnotation.fromTermAnnotation(tan);
@@ -480,4 +504,4 @@ function BaseTypes_decomposeTechnologyPlatform_Z721C83C5(name) {
480
504
  }
481
505
  }
482
506
 
483
- export { BaseTypes, BaseTypes_$reflection, BaseTypes_cellOfPropertyValue_Z2F770004, BaseTypes_composeCharacteristicValue, BaseTypes_composeComment_Z13201A7E, BaseTypes_composeComponent, BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_composeFactorValue, BaseTypes_composeFile_6CE21C7D, BaseTypes_composeFragmentDescriptor_Z4C0BEF62, BaseTypes_composeFreetextMaterialName, BaseTypes_composeParameterValue, BaseTypes_composeProcessInput, BaseTypes_composeProcessOutput, BaseTypes_composePropertyValueFromOA_ZDED3A0F, BaseTypes_composeTechnologyPlatform_ZDED3A0F, BaseTypes_decomposeCharacteristicValue_Z2F770004, BaseTypes_decomposeComment_Z2F770004, BaseTypes_decomposeComponent_Z2F770004, BaseTypes_decomposeDefinedTerm_Z2F770004, BaseTypes_decomposeFactorValue_Z2F770004, BaseTypes_decomposeFile_Z2F770004, BaseTypes_decomposeFragmentDescriptor_Z6839B9E8, BaseTypes_decomposeParameterValue_Z2F770004, BaseTypes_decomposeProcessInput_Z2F770004, BaseTypes_decomposeProcessOutput_Z2F770004, BaseTypes_decomposePropertyValueToOA_Z2F770004, BaseTypes_decomposePropertyValue_Z2F770004, BaseTypes_decomposeTechnologyPlatform_Z721C83C5, BaseTypes_headerOntologyOfPropertyValue_Z2F770004, BaseTypes_ontologyTermFromNameAndID_40457300, BaseTypes_termOfHeader_6CAF647B, BaseTypes_tryOntologyTermFromNameAndID_40457300, BaseTypes_valuesOfCell_Z436420FE };
507
+ export { BaseTypes, BaseTypes_$reflection, BaseTypes_cellOfPropertyValue_Z2F770004, BaseTypes_composeCharacteristicValue, BaseTypes_composeComment_Z13201A7E, BaseTypes_composeComponent, BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_composeFactorValue, BaseTypes_composeFile_6CE21C7D, BaseTypes_composeFragmentDescriptor_Z4C0BEF62, BaseTypes_composeFreetextMaterialName, BaseTypes_composeParameterValue, BaseTypes_composeProcessInput, BaseTypes_composeProcessOutput, BaseTypes_composePropertyValueFromOA_ZDED3A0F, BaseTypes_composeTechnologyPlatform_ZDED3A0F, BaseTypes_decomposeCharacteristicValue_Z2F770004, BaseTypes_decomposeComment_Z2F770004, BaseTypes_decomposeComponent_Z2F770004, BaseTypes_decomposeDefinedTerm_Z2F770004, BaseTypes_decomposeFactorValue_Z2F770004, BaseTypes_decomposeFile_Z2F770004, BaseTypes_decomposeFragmentDescriptor_Z6839B9E8, BaseTypes_decomposeParameterValue_Z2F770004, BaseTypes_decomposeProcessInput_Z2F770004, BaseTypes_decomposeProcessOutput_Z2F770004, BaseTypes_decomposePropertyValueToOA_Z2F770004, BaseTypes_decomposePropertyValue_Z2F770004, BaseTypes_decomposeTechnologyPlatform_Z721C83C5, BaseTypes_headerOntologyOfPropertyValue_Z2F770004, BaseTypes_ontologyTermFromNameAndID_40457300, BaseTypes_termOfHeader_6CAF647B, BaseTypes_tryOntologyTermFromNameAndID_40457300, BaseTypes_valuesOfCell_Z436420FE, BaseTypes_warnIfTitleEmpty_Z2FC25A28 };
@@ -1 +1 @@
1
- {"version":3,"file":"ColumnIndex.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/ColumnIndex.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAS,MAAM,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAiBhD,eAAO,MAAM,SAAS,gBAAgB,CAAC;AAEvC,eAAO,MAAM,oBAAoB,8CAA8C,CAAC;AAEhF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAyCvD;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAEzD;AAED,wBAAgB,4CAA4C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAEjF;AAED,wBAAgB,+CAA+C,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAE5F;AAED,wBAAgB,sDAAsD,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAExG"}
1
+ {"version":3,"file":"ColumnIndex.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/ColumnIndex.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAS,MAAM,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAehD,eAAO,MAAM,SAAS,gBAAgB,CAAC;AAEvC,eAAO,MAAM,oBAAoB,8CAA8C,CAAC;AAEhF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAyCvD;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KA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