@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
@@ -3,22 +3,24 @@ import { LDLabProtocol } from '../ROCrate/LDTypes/LabProtocol.js';
3
3
  import { unwrap, value, defaultArg } from '../../node_modules/@fable-org/fable-library-ts/Option.js';
4
4
  import { OntologyAnnotation } from '../Core/OntologyAnnotation.js';
5
5
  import { BaseTypes_decomposeDefinedTerm_Z2F770004, BaseTypes_composeComponent, BaseTypes_composeParameterValue, BaseTypes_composeFactorValue, BaseTypes_composeCharacteristicValue, BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_composeProcessInput, BaseTypes_composeProcessOutput, BaseTypes_decomposeParameterValue_Z2F770004, BaseTypes_decomposeComponent_Z2F770004, BaseTypes_decomposeCharacteristicValue_Z2F770004, BaseTypes_decomposeFactorValue_Z2F770004, BaseTypes_decomposeProcessInput_Z2F770004, BaseTypes_decomposeProcessOutput_Z2F770004 } from './Basic.js';
6
- import { parse } from '../../node_modules/@fable-org/fable-library-ts/Int32.js';
7
- import { ActivePatterns_$007CRegex$007C_$007C } from '../Core/Helper/Regex.js';
6
+ import { tryParse } from '../../node_modules/@fable-org/fable-library-ts/Int32.js';
7
+ import { match, create } from '../../node_modules/@fable-org/fable-library-ts/RegExp.js';
8
+ import { Pattern_handleGroupPatterns } from '../Core/Helper/Regex.js';
9
+ import { FSharpRef, toString } from '../../node_modules/@fable-org/fable-library-ts/Types.js';
8
10
  import { Unchecked_tryGetCellAt, getEmptyCellForHeader } from '../Core/Table/ArcTableAux.js';
9
- import { ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4, tryGetIndex } from './ColumnIndex.js';
10
11
  import { CompositeCell_FreeText, CompositeCell_Term } from '../Core/Table/CompositeCell.js';
12
+ import { ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4, tryGetIndex } from './ColumnIndex.js';
11
13
  import { CompositeHeader, CompositeHeader_Comment$ } from '../Core/Table/CompositeHeader.js';
12
- import { toString } from '../../node_modules/@fable-org/fable-library-ts/Types.js';
13
14
  import { Comment$ } from '../Core/Comment.js';
14
15
  import { LDPerson } from '../ROCrate/LDTypes/Person.js';
15
16
  import { indexed, toList, filter, tryPick, choose as choose$1, map, delay, append, empty as empty$1, singleton } from '../../node_modules/@fable-org/fable-library-ts/Seq.js';
16
- import { choose, length, empty, map as map$1, sortBy } from '../../node_modules/@fable-org/fable-library-ts/List.js';
17
+ import { choose, ofSeq, forAll, length, empty, map as map$1, sortBy } from '../../node_modules/@fable-org/fable-library-ts/List.js';
17
18
  import { ResizeArray_singleton, Option_fromValueWithDefault, ResizeArray_map, ResizeArray_create, ResizeArray_zip } from '../Core/Helper/Collections.js';
18
19
  import { LDSample } from '../ROCrate/LDTypes/Sample.js';
19
20
  import { LDLabProcess } from '../ROCrate/LDTypes/LabProcess.js';
20
21
  import { List_groupBy } from '../../node_modules/@fable-org/fable-library-ts/Seq2.js';
21
22
  import { createMissingIdentifier } from '../Core/Helper/Identifier.js';
23
+ import { isNullOrWhiteSpace } from '../../node_modules/@fable-org/fable-library-ts/String.js';
22
24
  import { stringHash, comparePrimitives } from '../../node_modules/@fable-org/fable-library-ts/Util.js';
23
25
 
24
26
  class ProcessConversion {
@@ -35,21 +37,29 @@ function ProcessConversion_tryGetProtocolType_Z6839B9E8(pv, graph, context) {
35
37
  if (matchValue_1 == null) {
36
38
  return void 0;
37
39
  } else {
38
- const s = value(matchValue_1);
40
+ const s = matchValue_1;
39
41
  return OntologyAnnotation.create(s);
40
42
  }
41
43
  } else {
42
- return BaseTypes_decomposeDefinedTerm_Z2F770004(value(matchValue), unwrap(context));
44
+ return BaseTypes_decomposeDefinedTerm_Z2F770004(matchValue, unwrap(context));
43
45
  }
44
46
  }
45
47
  function ProcessConversion_composeProcessName(processNameRoot, i) {
46
48
  return `${processNameRoot}_${i}`;
47
49
  }
48
50
  function ProcessConversion_decomposeProcessName_Z721C83C5(name) {
49
- const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("(?<name>.+)_(?<num>\\d+)", name);
50
- if (activePatternResult != null) {
51
- const r = value(activePatternResult);
52
- return [r.groups && r.groups.name || "", parse(r.groups && r.groups.num || "", 511, false, 32)];
51
+ const m = match(create(Pattern_handleGroupPatterns("^(?<name>.*)_(?<num>\\d+)$")), name);
52
+ if (m != null) {
53
+ const nameGroup = m.groups && m.groups.name || "";
54
+ const numGroup = m.groups && m.groups.num || "";
55
+ let matchValue;
56
+ const cell = new FSharpRef(0);
57
+ matchValue = [tryParse(numGroup, 511, false, 32, cell), cell.contents];
58
+ if (matchValue[0]) {
59
+ return [nameGroup, matchValue[1]];
60
+ } else {
61
+ return [name, void 0];
62
+ }
53
63
  } else {
54
64
  return [name, void 0];
55
65
  }
@@ -60,7 +70,7 @@ function ProcessConversion_tryComponentGetter(generalI, valueI, valueHeader) {
60
70
  valueHeader.fields[0];
61
71
  return (table) => (i) => {
62
72
  let matchValue = void 0;
63
- const c = BaseTypes_composeComponent(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
73
+ const c = BaseTypes_composeComponent(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : matchValue));
64
74
  ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(c, valueI);
65
75
  return c;
66
76
  };
@@ -74,7 +84,7 @@ function ProcessConversion_tryParameterGetter(generalI, valueI, valueHeader) {
74
84
  valueHeader.fields[0];
75
85
  return (table) => (i) => {
76
86
  let matchValue = void 0;
77
- const p = BaseTypes_composeParameterValue(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
87
+ const p = BaseTypes_composeParameterValue(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : matchValue));
78
88
  ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(p, valueI);
79
89
  return p;
80
90
  };
@@ -88,7 +98,7 @@ function ProcessConversion_tryFactorGetter(generalI, valueI, valueHeader) {
88
98
  valueHeader.fields[0];
89
99
  return (table) => (i) => {
90
100
  let matchValue = void 0;
91
- const f = BaseTypes_composeFactorValue(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
101
+ const f = BaseTypes_composeFactorValue(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : matchValue));
92
102
  ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(f, valueI);
93
103
  return f;
94
104
  };
@@ -102,7 +112,7 @@ function ProcessConversion_tryCharacteristicGetter(generalI, valueI, valueHeader
102
112
  valueHeader.fields[0];
103
113
  return (table) => (i) => {
104
114
  let matchValue = void 0;
105
- const c = BaseTypes_composeCharacteristicValue(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
115
+ const c = BaseTypes_composeCharacteristicValue(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : matchValue));
106
116
  ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(c, valueI);
107
117
  return c;
108
118
  };
@@ -115,7 +125,7 @@ function ProcessConversion_tryGetProtocolTypeGetter(generalI, header) {
115
125
  4) {
116
126
  return (table) => (i) => {
117
127
  let matchValue = void 0, cell = void 0;
118
- return BaseTypes_composeDefinedTerm_ZDED3A0F((matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? new OntologyAnnotation() : (cell = value(matchValue), cell.AsTerm)));
128
+ return BaseTypes_composeDefinedTerm_ZDED3A0F((matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? new OntologyAnnotation() : (cell = matchValue, cell.AsTerm)));
119
129
  };
120
130
  } else {
121
131
  return void 0;
@@ -129,7 +139,7 @@ function ProcessConversion_tryGetProtocolREFGetter(generalI, header) {
129
139
  if (matchValue == null) {
130
140
  return "";
131
141
  } else {
132
- const cell = value(matchValue);
142
+ const cell = matchValue;
133
143
  return cell.AsFreeText;
134
144
  }
135
145
  };
@@ -145,7 +155,7 @@ function ProcessConversion_tryGetProtocolDescriptionGetter(generalI, header) {
145
155
  if (matchValue == null) {
146
156
  return "";
147
157
  } else {
148
- const cell = value(matchValue);
158
+ const cell = matchValue;
149
159
  return cell.AsFreeText;
150
160
  }
151
161
  };
@@ -161,7 +171,7 @@ function ProcessConversion_tryGetProtocolURIGetter(generalI, header) {
161
171
  if (matchValue == null) {
162
172
  return "";
163
173
  } else {
164
- const cell = value(matchValue);
174
+ const cell = matchValue;
165
175
  return cell.AsFreeText;
166
176
  }
167
177
  };
@@ -177,7 +187,7 @@ function ProcessConversion_tryGetProtocolVersionGetter(generalI, header) {
177
187
  if (matchValue == null) {
178
188
  return "";
179
189
  } else {
180
- const cell = value(matchValue);
190
+ const cell = matchValue;
181
191
  return cell.AsFreeText;
182
192
  }
183
193
  };
@@ -191,7 +201,7 @@ function ProcessConversion_tryGetInputGetter(generalI, header, fs) {
191
201
  header.fields[0];
192
202
  return (table) => (i) => {
193
203
  let matchValue = void 0;
194
- return BaseTypes_composeProcessInput(header, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(header, void 0) : value(matchValue)), fs);
204
+ return BaseTypes_composeProcessInput(header, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(header, void 0) : matchValue), fs);
195
205
  };
196
206
  } else {
197
207
  return void 0;
@@ -203,7 +213,7 @@ function ProcessConversion_tryGetOutputGetter(generalI, header, fs) {
203
213
  header.fields[0];
204
214
  return (table) => (i) => {
205
215
  let matchValue = void 0;
206
- return BaseTypes_composeProcessOutput(header, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(header, void 0) : value(matchValue)), fs);
216
+ return BaseTypes_composeProcessOutput(header, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(header, void 0) : matchValue), fs);
207
217
  };
208
218
  } else {
209
219
  return void 0;
@@ -215,7 +225,7 @@ function ProcessConversion_tryGetCommentGetter(generalI, header) {
215
225
  const c = header.fields[0];
216
226
  return (table) => (i) => {
217
227
  let matchValue = void 0, cell = void 0;
218
- return toString((matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? new Comment$(c) : (cell = value(matchValue), new Comment$(c, cell.AsFreeText))));
228
+ return toString((matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? new Comment$(c) : (cell = matchValue, new Comment$(c, cell.AsFreeText))));
219
229
  };
220
230
  } else {
221
231
  return void 0;
@@ -230,7 +240,7 @@ function ProcessConversion_tryGetPerformerGetter(generalI, header) {
230
240
  if (matchValue == null) {
231
241
  performer = "";
232
242
  } else {
233
- const cell = value(matchValue);
243
+ const cell = matchValue;
234
244
  performer = cell.AsFreeText;
235
245
  }
236
246
  return LDPerson.create(performer);
@@ -265,75 +275,97 @@ function ProcessConversion_getProcessGetter(assayName, studyName, processNameRoo
265
275
  const protocolVersionGetter = tryPick((tupledArg_8) => ProcessConversion_tryGetProtocolVersionGetter(tupledArg_8[0], tupledArg_8[1]), headers_1);
266
276
  const performerGetter = tryPick((tupledArg_9) => ProcessConversion_tryGetPerformerGetter(tupledArg_9[0], tupledArg_9[1]), headers_1);
267
277
  const commentGetters = toList(choose$1((tupledArg_10) => ProcessConversion_tryGetCommentGetter(tupledArg_10[0], tupledArg_10[1]), headers_1));
278
+ const areCellsEmpty = (isColumn) => {
279
+ const columnIndices = ofSeq(map((tuple_2) => tuple_2[0] | 0, filter((arg_1) => isColumn(arg_1[1]), headers_1)));
280
+ return (table) => (i) => forAll((generalI_22) => {
281
+ const matchValue = Unchecked_tryGetCellAt(generalI_22, i, table.Values);
282
+ if (matchValue == null) {
283
+ return true;
284
+ } else {
285
+ const cell = matchValue;
286
+ return cell.isEmpty();
287
+ }
288
+ }, columnIndices);
289
+ };
290
+ const isInputEmpty = areCellsEmpty((h_1) => h_1.isInput ? true : h_1.isCharacteristic);
291
+ const isOutputEmpty = areCellsEmpty((h_2) => h_2.isOutput ? true : h_2.isFactor);
268
292
  let inputGetter_1;
269
- const matchValue = tryPick((tupledArg_11) => ProcessConversion_tryGetInputGetter(tupledArg_11[0], tupledArg_11[1], fs), headers_1);
270
- if (matchValue == null) {
271
- inputGetter_1 = length(charGetters) !== 0 ? (table_1) => (i_1) => {
293
+ const matchValue_1 = tryPick((tupledArg_11) => ProcessConversion_tryGetInputGetter(tupledArg_11[0], tupledArg_11[1], fs), headers_1);
294
+ if (matchValue_1 == null) {
295
+ inputGetter_1 = length(charGetters) !== 0 ? (table_2) => (i_2) => {
272
296
  let chars_1;
273
- const collection_1 = map((f_1) => f_1(table_1)(i_1), charGetters);
297
+ const collection_1 = map((f_1) => f_1(table_2)(i_2), charGetters);
274
298
  chars_1 = Array.from(collection_1);
275
- return ResizeArray_singleton(LDSample.createSample(`${processNameRoot}_Input_${i_1}`, void 0, chars_1));
276
- } : (table_2) => (i_2) => [];
299
+ return ResizeArray_singleton(LDSample.createSample(`${processNameRoot}_Input_${i_2}`, void 0, chars_1));
300
+ } : (table_3) => (i_3) => [];
277
301
  } else {
278
- const inputGetter = value(matchValue);
279
- inputGetter_1 = (table) => (i) => {
280
- let chars;
281
- const collection = map((f) => f(table)(i), charGetters);
282
- chars = Array.from(collection);
283
- const input = inputGetter(table)(i);
284
- if (chars.length > 0) {
285
- LDSample.setAdditionalProperties(input, chars);
302
+ const inputGetter = value(matchValue_1);
303
+ inputGetter_1 = (table_1) => (i_1) => {
304
+ if (isInputEmpty(table_1)(i_1)) {
305
+ return [];
306
+ } else {
307
+ let chars;
308
+ const collection = map((f) => f(table_1)(i_1), charGetters);
309
+ chars = Array.from(collection);
310
+ const input = inputGetter(table_1)(i_1);
311
+ if (chars.length > 0) {
312
+ LDSample.setAdditionalProperties(input, chars);
313
+ }
314
+ return ResizeArray_singleton(input);
286
315
  }
287
- return ResizeArray_singleton(input);
288
316
  };
289
317
  }
290
318
  let outputGetter_1;
291
- const matchValue_1 = tryPick((tupledArg_12) => ProcessConversion_tryGetOutputGetter(tupledArg_12[0], tupledArg_12[1], fs), headers_1);
292
- if (matchValue_1 == null) {
293
- outputGetter_1 = length(factorValueGetters) !== 0 ? (table_4) => (i_4) => {
319
+ const matchValue_2 = tryPick((tupledArg_12) => ProcessConversion_tryGetOutputGetter(tupledArg_12[0], tupledArg_12[1], fs), headers_1);
320
+ if (matchValue_2 == null) {
321
+ outputGetter_1 = length(factorValueGetters) !== 0 ? (table_5) => (i_5) => {
294
322
  let factors_1;
295
- const collection_3 = map((f_3) => f_3(table_4)(i_4), factorValueGetters);
323
+ const collection_3 = map((f_3) => f_3(table_5)(i_5), factorValueGetters);
296
324
  factors_1 = Array.from(collection_3);
297
- return ResizeArray_singleton(LDSample.createSample(`${processNameRoot}_Output_${i_4}`, void 0, factors_1));
298
- } : (table_5) => (i_5) => [];
325
+ return ResizeArray_singleton(LDSample.createSample(`${processNameRoot}_Output_${i_5}`, void 0, factors_1));
326
+ } : (table_6) => (i_6) => [];
299
327
  } else {
300
- const outputGetter = value(matchValue_1);
301
- outputGetter_1 = (table_3) => (i_3) => {
302
- let factors;
303
- const collection_2 = map((f_2) => f_2(table_3)(i_3), factorValueGetters);
304
- factors = Array.from(collection_2);
305
- const output = outputGetter(table_3)(i_3);
306
- if (factors.length > 0) {
307
- LDSample.setAdditionalProperties(output, factors);
328
+ const outputGetter = value(matchValue_2);
329
+ outputGetter_1 = (table_4) => (i_4) => {
330
+ if (isOutputEmpty(table_4)(i_4)) {
331
+ return [];
332
+ } else {
333
+ let factors;
334
+ const collection_2 = map((f_2) => f_2(table_4)(i_4), factorValueGetters);
335
+ factors = Array.from(collection_2);
336
+ const output = outputGetter(table_4)(i_4);
337
+ if (factors.length > 0) {
338
+ LDSample.setAdditionalProperties(output, factors);
339
+ }
340
+ return ResizeArray_singleton(output);
308
341
  }
309
- return ResizeArray_singleton(output);
310
342
  };
311
343
  }
312
- return (table_6) => (i_6) => {
344
+ return (table_7) => (i_7) => {
313
345
  let collection_4 = void 0, collection_5 = void 0, collection_6 = void 0, option_9 = void 0, option_11 = void 0, option_13 = void 0, option_15 = void 0;
314
- const pn = table_6.RowCount === 1 ? processNameRoot : ProcessConversion_composeProcessName(processNameRoot, i_6);
346
+ const pn = ProcessConversion_composeProcessName(processNameRoot, i_7);
315
347
  let paramvalues;
316
- const option_1 = Option_fromValueWithDefault(empty(), map$1((f_4) => f_4(table_6)(i_6), parameterValueGetters));
317
- paramvalues = option_1 != null ? (collection_4 = value(option_1), Array.from(collection_4)) : void 0;
348
+ const option_1 = Option_fromValueWithDefault(empty(), map$1((f_4) => f_4(table_7)(i_7), parameterValueGetters));
349
+ paramvalues = option_1 != null ? (collection_4 = option_1, Array.from(collection_4)) : void 0;
318
350
  let comments;
319
- const option_3 = Option_fromValueWithDefault(empty(), map$1((f_5) => f_5(table_6)(i_6), commentGetters));
320
- comments = option_3 != null ? (collection_5 = value(option_3), Array.from(collection_5)) : void 0;
351
+ const option_3 = Option_fromValueWithDefault(empty(), map$1((f_5) => f_5(table_7)(i_7), commentGetters));
352
+ comments = option_3 != null ? (collection_5 = option_3, Array.from(collection_5)) : void 0;
321
353
  let components;
322
- const option_5 = Option_fromValueWithDefault(empty(), map$1((f_6) => f_6(table_6)(i_6), componentGetters));
323
- components = option_5 != null ? (collection_6 = value(option_5), Array.from(collection_6)) : void 0;
324
- const id = LDLabProcess.genId(processNameRoot, unwrap(assayName), unwrap(studyName)) + `_${i_6}`;
354
+ const option_5 = Option_fromValueWithDefault(empty(), map$1((f_6) => f_6(table_7)(i_7), componentGetters));
355
+ components = option_5 != null ? (collection_6 = option_5, Array.from(collection_6)) : void 0;
356
+ const id = LDLabProcess.genId(processNameRoot, unwrap(assayName), unwrap(studyName)) + `_${i_7}`;
325
357
  let protocol;
326
358
  let name;
327
359
  const option_7 = protocolREFGetter;
328
- name = option_7 != null ? value(option_7)(table_6)(i_6) : void 0;
360
+ name = option_7 != null ? value(option_7)(table_7)(i_7) : void 0;
329
361
  const protocolId = LDLabProtocol.genId(unwrap(name), processNameRoot);
330
- protocol = LDLabProtocol.create(protocolId, unwrap(name), unwrap((option_9 = protocolDescriptionGetter, option_9 != null ? value(option_9)(table_6)(i_6) : void 0)), unwrap((option_11 = protocolTypeGetter, option_11 != null ? value(option_11)(table_6)(i_6) : void 0)), void 0, void 0, unwrap(components), void 0, unwrap((option_13 = protocolURIGetter, option_13 != null ? value(option_13)(table_6)(i_6) : void 0)), unwrap((option_15 = protocolVersionGetter, option_15 != null ? value(option_15)(table_6)(i_6) : void 0)));
331
- const matchValue_2 = inputGetter_1(table_6)(i_6);
332
- const matchValue_3 = outputGetter_1(table_6)(i_6);
362
+ protocol = LDLabProtocol.create(protocolId, unwrap(name), unwrap((option_9 = protocolDescriptionGetter, option_9 != null ? value(option_9)(table_7)(i_7) : void 0)), unwrap((option_11 = protocolTypeGetter, option_11 != null ? value(option_11)(table_7)(i_7) : void 0)), void 0, void 0, unwrap(components), void 0, unwrap((option_13 = protocolURIGetter, option_13 != null ? value(option_13)(table_7)(i_7) : void 0)), unwrap((option_15 = protocolVersionGetter, option_15 != null ? value(option_15)(table_7)(i_7) : void 0)));
363
+ const matchValue_3 = inputGetter_1(table_7)(i_7);
364
+ const matchValue_4 = outputGetter_1(table_7)(i_7);
333
365
  let agent;
334
366
  const option_17 = performerGetter;
335
- agent = option_17 != null ? value(option_17)(table_6)(i_6) : void 0;
336
- return LDLabProcess.create(pn, matchValue_2, matchValue_3, id, unwrap(agent), unwrap(protocol), unwrap(paramvalues), void 0, unwrap(comments));
367
+ agent = option_17 != null ? value(option_17)(table_7)(i_7) : void 0;
368
+ return LDLabProcess.create(pn, matchValue_3, matchValue_4, id, unwrap(agent), unwrap(protocol), unwrap(paramvalues), void 0, unwrap(comments));
337
369
  };
338
370
  }
339
371
  function ProcessConversion_groupProcesses_Z27F0B586(processes, graph, context) {
@@ -341,42 +373,47 @@ function ProcessConversion_groupProcesses_Z27F0B586(processes, graph, context) {
341
373
  let protocol = void 0, protocol_1 = void 0;
342
374
  const matchValue = LDLabProcess.tryGetNameAsString(p, unwrap(context));
343
375
  const matchValue_1 = LDLabProcess.tryGetExecutesLabProtocol(p, unwrap(graph), unwrap(context));
344
- let matchResult = void 0, name_1 = void 0, protocol_2 = void 0, name_2 = void 0, protocol_3 = void 0;
376
+ let matchResult = void 0, name_2 = void 0, name_3 = void 0, protocol_2 = void 0, name_4 = void 0, protocol_3 = void 0;
345
377
  if (matchValue != null) {
346
- if (ProcessConversion_decomposeProcessName_Z721C83C5(value(matchValue))[1] != null) {
378
+ if (ProcessConversion_decomposeProcessName_Z721C83C5(matchValue)[1] != null) {
347
379
  matchResult = 0;
348
- name_1 = value(matchValue);
380
+ name_2 = matchValue;
381
+ } else if (!isNullOrWhiteSpace(matchValue)) {
382
+ matchResult = 1;
383
+ name_3 = matchValue;
349
384
  } else if (matchValue_1 != null) {
350
- if (protocol = value(matchValue_1), LDLabProtocol.tryGetNameAsString(protocol, unwrap(context)) != null) {
351
- matchResult = 1;
352
- protocol_2 = value(matchValue_1);
353
- } else {
385
+ if (protocol = matchValue_1, LDLabProtocol.tryGetNameAsString(protocol, unwrap(context)) != null) {
354
386
  matchResult = 2;
355
- name_2 = value(matchValue);
387
+ protocol_2 = matchValue_1;
388
+ } else {
389
+ matchResult = 3;
390
+ name_4 = matchValue;
356
391
  }
357
392
  } else {
358
- matchResult = 2;
359
- name_2 = value(matchValue);
393
+ matchResult = 3;
394
+ name_4 = matchValue;
360
395
  }
361
396
  } else if (matchValue_1 != null) {
362
- if (protocol_1 = value(matchValue_1), LDLabProtocol.tryGetNameAsString(protocol_1, unwrap(context)) != null) {
363
- matchResult = 1;
364
- protocol_2 = value(matchValue_1);
397
+ if (protocol_1 = matchValue_1, LDLabProtocol.tryGetNameAsString(protocol_1, unwrap(context)) != null) {
398
+ matchResult = 2;
399
+ protocol_2 = matchValue_1;
365
400
  } else {
366
- matchResult = 3;
367
- protocol_3 = value(matchValue_1);
401
+ matchResult = 4;
402
+ protocol_3 = matchValue_1;
368
403
  }
369
404
  } else {
370
- matchResult = 4;
405
+ matchResult = 5;
371
406
  }
372
407
  switch (matchResult) {
373
408
  case 0:
374
- return ProcessConversion_decomposeProcessName_Z721C83C5(name_1)[0];
409
+ return ProcessConversion_decomposeProcessName_Z721C83C5(name_2)[0];
375
410
  case 1:
376
- return defaultArg(LDLabProtocol.tryGetNameAsString(protocol_2, unwrap(context)), "");
411
+ return name_3;
377
412
  case 2:
378
- return name_2;
413
+ return defaultArg(LDLabProtocol.tryGetNameAsString(protocol_2, unwrap(context)), "");
379
414
  case 3:
415
+ return name_4;
416
+ case 4:
380
417
  return protocol_3.Id;
381
418
  default:
382
419
  return createMissingIdentifier();
@@ -393,7 +430,7 @@ function ProcessConversion_processToRows_Z6839B9E8(p, graph, context) {
393
430
  if (matchValue == null) {
394
431
  components = [];
395
432
  } else {
396
- const prot = value(matchValue);
433
+ const prot = matchValue;
397
434
  components = ResizeArray_map((ppv_1) => [BaseTypes_decomposeComponent_Z2F770004(ppv_1, unwrap(context)), tryGetIndex(ppv_1)], LDLabProtocol.getComponents(prot, unwrap(graph), unwrap(context)));
398
435
  }
399
436
  let protVals;
@@ -401,21 +438,21 @@ function ProcessConversion_processToRows_Z6839B9E8(p, graph, context) {
401
438
  if (matchValue_1 == null) {
402
439
  protVals = empty();
403
440
  } else {
404
- const prot_1 = value(matchValue_1);
441
+ const prot_1 = matchValue_1;
405
442
  protVals = toList(delay(() => {
406
443
  let matchValue_2 = void 0;
407
- return append((matchValue_2 = LDLabProtocol.tryGetNameAsString(prot_1, unwrap(context)), matchValue_2 == null ? empty$1() : singleton([CompositeHeader.ProtocolREF, CompositeCell_FreeText(value(matchValue_2))])), delay(() => {
444
+ return append((matchValue_2 = LDLabProtocol.tryGetNameAsString(prot_1, unwrap(context)), matchValue_2 == null ? empty$1() : singleton([CompositeHeader.ProtocolREF, CompositeCell_FreeText(matchValue_2)])), delay(() => {
408
445
  let matchValue_3 = void 0;
409
- return append((matchValue_3 = LDLabProtocol.tryGetDescriptionAsString(prot_1, unwrap(context)), matchValue_3 == null ? empty$1() : singleton([CompositeHeader.ProtocolDescription, CompositeCell_FreeText(value(matchValue_3))])), delay(() => {
446
+ return append((matchValue_3 = LDLabProtocol.tryGetDescriptionAsString(prot_1, unwrap(context)), matchValue_3 == null ? empty$1() : singleton([CompositeHeader.ProtocolDescription, CompositeCell_FreeText(matchValue_3)])), delay(() => {
410
447
  let matchValue_4 = void 0;
411
- return append((matchValue_4 = LDLabProtocol.tryGetUrl(prot_1, unwrap(context)), matchValue_4 == null ? empty$1() : singleton([CompositeHeader.ProtocolUri, CompositeCell_FreeText(value(matchValue_4))])), delay(() => {
448
+ return append((matchValue_4 = LDLabProtocol.tryGetUrl(prot_1, unwrap(context)), matchValue_4 == null ? empty$1() : singleton([CompositeHeader.ProtocolUri, CompositeCell_FreeText(matchValue_4)])), delay(() => {
412
449
  let matchValue_5 = void 0;
413
- return append((matchValue_5 = LDLabProtocol.tryGetVersionAsString(prot_1, unwrap(context)), matchValue_5 == null ? empty$1() : singleton([CompositeHeader.ProtocolVersion, CompositeCell_FreeText(value(matchValue_5))])), delay(() => {
450
+ return append((matchValue_5 = LDLabProtocol.tryGetVersionAsString(prot_1, unwrap(context)), matchValue_5 == null ? empty$1() : singleton([CompositeHeader.ProtocolVersion, CompositeCell_FreeText(matchValue_5)])), delay(() => {
414
451
  const matchValue_6 = ProcessConversion_tryGetProtocolType_Z6839B9E8(prot_1, unwrap(graph), unwrap(context));
415
452
  if (matchValue_6 == null) {
416
453
  return empty$1();
417
454
  } else {
418
- return singleton([CompositeHeader.ProtocolType, CompositeCell_Term(value(matchValue_6))]);
455
+ return singleton([CompositeHeader.ProtocolType, CompositeCell_Term(matchValue_6)]);
419
456
  }
420
457
  }));
421
458
  }));
@@ -445,14 +482,14 @@ function ProcessConversion_processToRows_Z6839B9E8(p, graph, context) {
445
482
  if (i == null) {
446
483
  chars = [];
447
484
  } else {
448
- const i_1 = value(i);
485
+ const i_1 = i;
449
486
  chars = ResizeArray_map((cv) => [BaseTypes_decomposeCharacteristicValue_Z2F770004(cv, unwrap(context)), tryGetIndex(cv)], LDSample.getCharacteristics(i_1, unwrap(graph), unwrap(context)));
450
487
  }
451
488
  let factors;
452
489
  if (o == null) {
453
490
  factors = [];
454
491
  } else {
455
- const o_1 = value(o);
492
+ const o_1 = o;
456
493
  factors = ResizeArray_map((fv) => [BaseTypes_decomposeFactorValue_Z2F770004(fv, unwrap(context)), tryGetIndex(fv)], LDSample.getFactors(o_1, unwrap(graph), unwrap(context)));
457
494
  }
458
495
  const vals_1 = map$1((tuple_3) => tuple_3[0], sortBy((arg_1) => defaultArg(arg_1[1], 1e4) | 0, toList(delay(() => append(chars, delay(() => append(components, delay(() => append(pvs, delay(() => factors)))))))), {
@@ -1,13 +1,13 @@
1
1
  import { TypeInfo } from '@fable-org/fable-library-ts/Reflection.ts';
2
+ import { LDGraph, LDNode } from '../ROCrate/LDObject.ts';
3
+ import { FileSystem } from '../FileSystem/FileSystem.ts';
4
+ import { LDContext } from '../ROCrate/LDContext.ts';
2
5
  import { CWLType_$union } from '../CWL/CWLTypes.ts';
3
6
  import { CWLParameterValue_$union } from '../CWL/ParameterValue.ts';
4
- import { LDContext } from '../ROCrate/LDContext.ts';
5
7
  import { CWLParameterReference } from '../CWL/ParameterReference.ts';
6
- import { LDGraph, LDNode } from '../ROCrate/LDObject.ts';
7
8
  import { CWLInput } from '../CWL/Inputs.ts';
8
9
  import { CWLProcessingUnit_$union } from '../CWL/CWLProcessingUnit.ts';
9
10
  import { ArcRun } from '../Core/ArcTypes.ts';
10
- import { FileSystem } from '../FileSystem/FileSystem.ts';
11
11
  export declare class RunConversion {
12
12
  constructor();
13
13
  }
@@ -16,15 +16,45 @@ export declare function RunConversion_$reflection(): TypeInfo;
16
16
  * File paths in CWL files are relative to the file itself. In RO-Crate, we use relative paths from the root of the crate.
17
17
  *
18
18
  * This function replaces the relative paths in the CWL input file with paths relative to the root of the crate.
19
+ * The path is joined to the run folder, and its "." and ".." segments are resolved. A path that names the root of
20
+ * the ARC is ".". A path with a URI scheme is a URL and stays as it is.
19
21
  */
20
22
  export declare function RunConversion_composeCWLInputFilePath_Z384F8060(path: string, runName: string): string;
23
+ /**
24
+ * Turns the id of a file in the crate back into a path relative to the run folder. The run folder is compared by
25
+ * whole segments, so runs/R does not contain runs/R2, and the run folder itself is ".". An id with a URI scheme is a
26
+ * URL and stays as it is.
27
+ */
21
28
  export declare function RunConversion_decomposeCWLInputFilePath_Z384F8060(path: string, runName: string): string;
22
- export declare function RunConversion_composeCWLParameterValue_6CF93391(value: CWLParameterValue_$union, runName: string, context?: LDContext): any;
23
- export declare function RunConversion_composeCWLInputValue_70DD9184(inputValue: CWLParameterReference, exampleOfWork: LDNode, inputParam: CWLInput, runName: string): LDNode;
29
+ /**
30
+ * The Dataset entity of a directory that a job value names. The id of a local directory ends with "/", and its
31
+ * files in the file system are its parts. A directory with a URI scheme keeps the URL as its id.
32
+ */
33
+ export declare function RunConversion_composeDirectoryDataset_111D9870(path: string, fs?: FileSystem, context?: LDContext): LDNode;
34
+ export declare function RunConversion_composeCWLParameterValue_1A8A78ED(value: CWLParameterValue_$union, runName: string, context?: LDContext, fs?: FileSystem): any;
35
+ /**
36
+ * The entity of the value of a job file for an input. A File or a Directory, alone or in a list, has to fit the type
37
+ * of the input, and the error names the run.
38
+ */
39
+ export declare function RunConversion_composeCWLInputValue_Z65E5E0A8(inputValue: CWLParameterReference, exampleOfWork: LDNode, inputParam: CWLInput, runName: string, fs?: FileSystem): LDNode;
24
40
  export declare function RunConversion_decomposeCWLParameterValue_Z3524B680(value: any, runName: string, expectedType?: CWLType_$union, graph?: LDGraph): CWLParameterValue_$union;
25
41
  export declare function RunConversion_decomposeCWLInputValue_Z1346FE9D(inputValue: LDNode, runName: string, context?: LDContext, graph?: LDGraph): CWLParameterReference;
42
+ /**
43
+ * The invocations of a run. An input without a value or with a null value in the job file takes its CWL default.
44
+ */
26
45
  export declare function RunConversion_composeWorkflowInvocationFromArcRun_Z8CC08AC(run: ArcRun, fs?: FileSystem): LDNode[];
27
46
  export declare function RunConversion_decomposeMainWorkflowInvocation_Z1346FE9D(workflowInvocation: LDNode, runName: string, context?: LDContext, graph?: LDGraph): [CWLProcessingUnit_$union, CWLParameterReference[]];
28
- export declare function RunConversion_composeRun_Z8CC08AC(run: ArcRun, fs?: FileSystem): LDNode;
47
+ /**
48
+ * The dataset of a run. Its workflow is created at the given time, in UTC, and now when none is given. A time of kind
49
+ * Unspecified counts as local time, as in .NET. An input without a value or with a null value in the job file takes
50
+ * its CWL default. With a file system, the local files that the CWL file of the run needs are parts of the dataset.
51
+ * When the run is the root of its crate, its folder is a part like any other folder.
52
+ */
53
+ export declare function RunConversion_composeRun_3F79BD1(run: ArcRun, fs?: FileSystem, dateCreated?: Date, isCrateRoot?: boolean): LDNode;
54
+ /**
55
+ * Reads a run from its dataset. The crate holds neither the CWL file nor the job file of the run, so the run comes
56
+ * back with no CWL description and no job values. The tables skip the main workflow invocation, which stands for
57
+ * the CWL run.
58
+ */
29
59
  export declare function RunConversion_decomposeRun_Z6839B9E8(run: LDNode, graph?: LDGraph, context?: LDContext): ArcRun;
30
60
  //# sourceMappingURL=Run.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Run.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Run.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAIjF,OAAO,EAAkM,cAAc,EAA8G,MAAM,oBAAoB,CAAC;AAIhW,OAAO,EAA4U,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAM9Y,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAGrE,OAAO,EAAE,OAAO,EAAS,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAQ5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAOvE,OAAO,EAAoB,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAczD,qBAAa,aAAa;;CAGzB;AAED,wBAAgB,yBAAyB,IAAI,QAAQ,CAEpD;AAED;;;;GAIG;AACH,wBAAgB,+CAA+C,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAOrG;AAED,wBAAgB,iDAAiD,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAQvG;AAED,wBAAgB,+CAA+C,CAAC,KAAK,EAAE,wBAAwB,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,GAAG,CAiC1I;AAaD,wBAAgB,2CAA2C,CAAC,UAAU,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAwEnK;AAyBD,wBAAgB,kDAAkD,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,cAAc,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,wBAAwB,CA4RxK;AAYD,wBAAgB,8CAA8C,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,qBAAqB,CAqB/J;AAED,wBAAgB,0DAA0D,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,EAAE,CAoDjH;AAED,wBAAgB,uDAAuD,CAAC,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,CAAC,wBAAwB,EAAE,qBAAqB,EAAE,CAAC,CAK9M;AAED,wBAAgB,iCAAiC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,CA2CtF;AAED,wBAAgB,oCAAoC,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CA0C9G"}
1
+ {"version":3,"file":"Run.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Run.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAQjF,OAAO,EAAE,OAAO,EAAS,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAoN,cAAc,EAA4K,MAAM,oBAAoB,CAAC;AAChb,OAAO,EAA4U,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAK9Y,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAGrE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAQ5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAQvE,OAAO,EAAoB,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAc/D,qBAAa,aAAa;;CAGzB;AAED,wBAAgB,yBAAyB,IAAI,QAAQ,CAEpD;AAED;;;;;;GAMG;AACH,wBAAgB,+CAA+C,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAOrG;AAED;;;;GAIG;AACH,wBAAgB,iDAAiD,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAyBvG;AAED;;;GAGG;AACH,wBAAgB,8CAA8C,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAwCzH;AAED,wBAAgB,+CAA+C,CAAC,KAAK,EAAE,wBAAwB,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,GAAG,CAwC3J;AAaD;;;GAGG;AACH,wBAAgB,4CAA4C,CAAC,UAAU,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,CA4ErL;AAyBD,wBAAgB,kDAAkD,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,cAAc,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,wBAAwB,CAkTxK;AAYD,wBAAgB,8CAA8C,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,qBAAqB,CAqB/J;AAED;;GAEG;AACH,wBAAgB,0DAA0D,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,EAAE,CA4DjH;AAED,wBAAgB,uDAAuD,CAAC,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,CAAC,wBAAwB,EAAE,qBAAqB,EAAE,CAAC,CAK9M;AAiGD;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,WAAW,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAqDhI;AAED;;;;GAIG;AACH,wBAAgB,oCAAoC,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAwC9G"}