@nfdi4plants/arctrl 3.2.3 → 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 (453) hide show
  1. package/dist/ts/index.d.ts +44 -7
  2. package/dist/ts/index.d.ts.map +1 -1
  3. package/dist/ts/index.js +45 -8
  4. package/dist/ts/node_modules/@fable-org/fable-library-ts/Array.js +195 -92
  5. package/dist/ts/node_modules/@fable-org/fable-library-ts/Async.js +251 -30
  6. package/dist/ts/node_modules/@fable-org/fable-library-ts/AsyncBuilder.js +61 -11
  7. package/dist/ts/node_modules/@fable-org/fable-library-ts/BigInt.js +15 -5
  8. package/dist/ts/node_modules/@fable-org/fable-library-ts/BitConverter.js +139 -0
  9. package/dist/ts/node_modules/@fable-org/fable-library-ts/Date.js +1 -1
  10. package/dist/ts/node_modules/@fable-org/fable-library-ts/Decimal.js +68 -12
  11. package/dist/ts/node_modules/@fable-org/fable-library-ts/Double.js +24 -10
  12. package/dist/ts/node_modules/@fable-org/fable-library-ts/FSharp.Core.js +8 -2
  13. package/dist/ts/node_modules/@fable-org/fable-library-ts/Global.js +1 -1
  14. package/dist/ts/node_modules/@fable-org/fable-library-ts/Int32.js +11 -2
  15. package/dist/ts/node_modules/@fable-org/fable-library-ts/List.js +220 -155
  16. package/dist/ts/node_modules/@fable-org/fable-library-ts/Long.js +7 -2
  17. package/dist/ts/node_modules/@fable-org/fable-library-ts/Map.js +46 -39
  18. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableMap.js +75 -92
  19. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableSet.js +56 -76
  20. package/dist/ts/node_modules/@fable-org/fable-library-ts/NumberStyles.js +54 -0
  21. package/dist/ts/node_modules/@fable-org/fable-library-ts/Numeric.js +10 -5
  22. package/dist/ts/node_modules/@fable-org/fable-library-ts/Random.js +3 -4
  23. package/dist/ts/node_modules/@fable-org/fable-library-ts/Range.js +4 -3
  24. package/dist/ts/node_modules/@fable-org/fable-library-ts/RegExp.js +2 -2
  25. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq.js +128 -64
  26. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq2.js +4 -8
  27. package/dist/ts/node_modules/@fable-org/fable-library-ts/Set.js +64 -57
  28. package/dist/ts/node_modules/@fable-org/fable-library-ts/String.js +68 -21
  29. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Collections.Generic.js +3 -2
  30. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Text.js +2 -2
  31. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.js +5 -5
  32. package/dist/ts/node_modules/@fable-org/fable-library-ts/Types.js +23 -12
  33. package/dist/ts/node_modules/@fable-org/fable-library-ts/Util.js +88 -49
  34. package/dist/ts/node_modules/@fable-org/fable-library-ts/lib/big.js +121 -74
  35. package/dist/ts/ts/ARC.d.ts +19 -2
  36. package/dist/ts/ts/ARC.d.ts.map +1 -1
  37. package/dist/ts/ts/ARC.js +128 -89
  38. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts +0 -2
  39. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts.map +1 -1
  40. package/dist/ts/ts/CWL/CWLKnownFieldNames.js +1 -7
  41. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +46 -27
  42. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -1
  43. package/dist/ts/ts/CWL/CWLProcessingUnit.js +312 -123
  44. package/dist/ts/ts/CWL/CWLTypes.d.ts +481 -148
  45. package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
  46. package/dist/ts/ts/CWL/CWLTypes.js +887 -201
  47. package/dist/ts/ts/CWL/Decode.d.ts +480 -211
  48. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
  49. package/dist/ts/ts/CWL/Decode.js +3614 -2462
  50. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts +9 -0
  51. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts.map +1 -1
  52. package/dist/ts/ts/CWL/DynamicObjHelpers.js +55 -5
  53. package/dist/ts/ts/CWL/Encode.d.ts +225 -85
  54. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
  55. package/dist/ts/ts/CWL/Encode.js +1858 -970
  56. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +42 -28
  57. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
  58. package/dist/ts/ts/CWL/ExpressionToolDescription.js +34 -13
  59. package/dist/ts/ts/CWL/HashHelpers.d.ts +38 -0
  60. package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -1
  61. package/dist/ts/ts/CWL/HashHelpers.js +255 -6
  62. package/dist/ts/ts/CWL/Inputs.d.ts +127 -56
  63. package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -1
  64. package/dist/ts/ts/CWL/Inputs.js +107 -16
  65. package/dist/ts/ts/CWL/OperationDescription.d.ts +41 -21
  66. package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
  67. package/dist/ts/ts/CWL/OperationDescription.js +35 -9
  68. package/dist/ts/ts/CWL/Outputs.d.ts +93 -42
  69. package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -1
  70. package/dist/ts/ts/CWL/Outputs.js +101 -19
  71. package/dist/ts/ts/CWL/ParameterReference.d.ts +11 -8
  72. package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -1
  73. package/dist/ts/ts/CWL/ParameterReference.js +18 -25
  74. package/dist/ts/ts/CWL/ParameterValue.d.ts +15 -1
  75. package/dist/ts/ts/CWL/ParameterValue.d.ts.map +1 -1
  76. package/dist/ts/ts/CWL/ParameterValue.js +59 -35
  77. package/dist/ts/ts/CWL/Requirements.d.ts +240 -98
  78. package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
  79. package/dist/ts/ts/CWL/Requirements.js +462 -89
  80. package/dist/ts/ts/CWL/ScalarQuoting.d.ts +51 -0
  81. package/dist/ts/ts/CWL/ScalarQuoting.d.ts.map +1 -0
  82. package/dist/ts/ts/CWL/ScalarQuoting.js +250 -0
  83. package/dist/ts/ts/CWL/ToolDescription.d.ts +63 -50
  84. package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
  85. package/dist/ts/ts/CWL/ToolDescription.js +34 -13
  86. package/dist/ts/ts/CWL/WorkflowDescription.d.ts +45 -26
  87. package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
  88. package/dist/ts/ts/CWL/WorkflowDescription.js +38 -11
  89. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +248 -65
  90. package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
  91. package/dist/ts/ts/CWL/WorkflowSteps.js +413 -43
  92. package/dist/ts/ts/CWLRunResolver.d.ts +30 -12
  93. package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -1
  94. package/dist/ts/ts/CWLRunResolver.js +221 -86
  95. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  96. package/dist/ts/ts/Contract/ARC.js +13 -14
  97. package/dist/ts/ts/Contract/ArcAssay.d.ts.map +1 -1
  98. package/dist/ts/ts/Contract/ArcAssay.js +4 -4
  99. package/dist/ts/ts/Contract/ArcInvestigation.d.ts.map +1 -1
  100. package/dist/ts/ts/Contract/ArcInvestigation.js +3 -4
  101. package/dist/ts/ts/Contract/ArcRun.d.ts +12 -2
  102. package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
  103. package/dist/ts/ts/Contract/ArcRun.js +47 -20
  104. package/dist/ts/ts/Contract/ArcStudy.d.ts.map +1 -1
  105. package/dist/ts/ts/Contract/ArcStudy.js +4 -4
  106. package/dist/ts/ts/Contract/ArcWorkflow.d.ts +18 -4
  107. package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
  108. package/dist/ts/ts/Contract/ArcWorkflow.js +55 -17
  109. package/dist/ts/ts/Contract/Datamap.d.ts.map +1 -1
  110. package/dist/ts/ts/Contract/Datamap.js +16 -17
  111. package/dist/ts/ts/Contract/Git.js +1 -1
  112. package/dist/ts/ts/Contract/ValidationPackagesConfig.d.ts.map +1 -1
  113. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +4 -5
  114. package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
  115. package/dist/ts/ts/ContractIO/ContractIO.js +15 -16
  116. package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -1
  117. package/dist/ts/ts/Conversion/Assay.js +26 -18
  118. package/dist/ts/ts/Conversion/Basic.d.ts +4 -0
  119. package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
  120. package/dist/ts/ts/Conversion/Basic.js +55 -31
  121. package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -1
  122. package/dist/ts/ts/Conversion/ColumnIndex.js +2 -4
  123. package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -1
  124. package/dist/ts/ts/Conversion/DateTime.js +1 -2
  125. package/dist/ts/ts/Conversion/Investigation.js +11 -11
  126. package/dist/ts/ts/Conversion/Person.js +11 -11
  127. package/dist/ts/ts/Conversion/Process.d.ts.map +1 -1
  128. package/dist/ts/ts/Conversion/Process.js +107 -86
  129. package/dist/ts/ts/Conversion/Run.d.ts +36 -6
  130. package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
  131. package/dist/ts/ts/Conversion/Run.js +320 -136
  132. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -1
  133. package/dist/ts/ts/Conversion/ScholarlyArticle.js +75 -9
  134. package/dist/ts/ts/Conversion/Study.d.ts.map +1 -1
  135. package/dist/ts/ts/Conversion/Study.js +23 -12
  136. package/dist/ts/ts/Conversion/Table.js +5 -5
  137. package/dist/ts/ts/Conversion/Workflow.d.ts +48 -9
  138. package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
  139. package/dist/ts/ts/Conversion/Workflow.js +655 -163
  140. package/dist/ts/ts/Conversion.js +6 -6
  141. package/dist/ts/ts/Core/ArcTypes.d.ts +73 -28
  142. package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
  143. package/dist/ts/ts/Core/ArcTypes.js +219 -129
  144. package/dist/ts/ts/Core/Comment.d.ts.map +1 -1
  145. package/dist/ts/ts/Core/Comment.js +2 -2
  146. package/dist/ts/ts/Core/CommentList.js +7 -7
  147. package/dist/ts/ts/Core/Conversion.d.ts.map +1 -1
  148. package/dist/ts/ts/Core/Conversion.js +41 -41
  149. package/dist/ts/ts/Core/Data.d.ts.map +1 -1
  150. package/dist/ts/ts/Core/Data.js +14 -11
  151. package/dist/ts/ts/Core/DataContext.d.ts +1 -1
  152. package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
  153. package/dist/ts/ts/Core/DataContext.js +4 -4
  154. package/dist/ts/ts/Core/DataFile.d.ts +11 -8
  155. package/dist/ts/ts/Core/DataFile.d.ts.map +1 -1
  156. package/dist/ts/ts/Core/DataFile.js +55 -61
  157. package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
  158. package/dist/ts/ts/Core/Datamap.js +2 -3
  159. package/dist/ts/ts/Core/Helper/Collections.d.ts.map +1 -1
  160. package/dist/ts/ts/Core/Helper/Collections.js +2 -4
  161. package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
  162. package/dist/ts/ts/Core/Helper/Identifier.js +12 -15
  163. package/dist/ts/ts/Core/Helper/ORCID.d.ts.map +1 -1
  164. package/dist/ts/ts/Core/Helper/ORCID.js +2 -3
  165. package/dist/ts/ts/Core/Helper/Regex.d.ts.map +1 -1
  166. package/dist/ts/ts/Core/Helper/Regex.js +52 -53
  167. package/dist/ts/ts/Core/Helper/SemVer.d.ts +13 -3
  168. package/dist/ts/ts/Core/Helper/SemVer.d.ts.map +1 -1
  169. package/dist/ts/ts/Core/Helper/SemVer.js +96 -6
  170. package/dist/ts/ts/Core/Helper/Url.d.ts.map +1 -1
  171. package/dist/ts/ts/Core/Helper/Url.js +1 -1
  172. package/dist/ts/ts/Core/OntologyAnnotation.js +22 -22
  173. package/dist/ts/ts/Core/Person.d.ts.map +1 -1
  174. package/dist/ts/ts/Core/Person.js +2 -2
  175. package/dist/ts/ts/Core/Process/ColumnIndex.d.ts.map +1 -1
  176. package/dist/ts/ts/Core/Process/ColumnIndex.js +10 -12
  177. package/dist/ts/ts/Core/Process/Component.d.ts.map +1 -1
  178. package/dist/ts/ts/Core/Process/Component.js +22 -22
  179. package/dist/ts/ts/Core/Process/Factor.d.ts.map +1 -1
  180. package/dist/ts/ts/Core/Process/Factor.js +7 -7
  181. package/dist/ts/ts/Core/Process/FactorValue.d.ts.map +1 -1
  182. package/dist/ts/ts/Core/Process/FactorValue.js +15 -15
  183. package/dist/ts/ts/Core/Process/Material.d.ts.map +1 -1
  184. package/dist/ts/ts/Core/Process/Material.js +2 -2
  185. package/dist/ts/ts/Core/Process/MaterialAttribute.d.ts.map +1 -1
  186. package/dist/ts/ts/Core/Process/MaterialAttribute.js +6 -6
  187. package/dist/ts/ts/Core/Process/MaterialAttributeValue.d.ts.map +1 -1
  188. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +16 -16
  189. package/dist/ts/ts/Core/Process/Process.js +21 -21
  190. package/dist/ts/ts/Core/Process/ProcessInput.d.ts.map +1 -1
  191. package/dist/ts/ts/Core/Process/ProcessInput.js +2 -2
  192. package/dist/ts/ts/Core/Process/ProcessOutput.d.ts.map +1 -1
  193. package/dist/ts/ts/Core/Process/ProcessOutput.js +2 -2
  194. package/dist/ts/ts/Core/Process/ProcessParameterValue.d.ts.map +1 -1
  195. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +17 -17
  196. package/dist/ts/ts/Core/Process/ProcessSequence.js +4 -4
  197. package/dist/ts/ts/Core/Process/Protocol.d.ts.map +1 -1
  198. package/dist/ts/ts/Core/Process/Protocol.js +9 -9
  199. package/dist/ts/ts/Core/Process/ProtocolParameter.d.ts.map +1 -1
  200. package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -6
  201. package/dist/ts/ts/Core/Publication.d.ts.map +1 -1
  202. package/dist/ts/ts/Core/Publication.js +3 -3
  203. package/dist/ts/ts/Core/ScalarValue.d.ts.map +1 -1
  204. package/dist/ts/ts/Core/ScalarValue.js +9 -13
  205. package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
  206. package/dist/ts/ts/Core/Table/ArcTable.js +18 -18
  207. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts +1 -1
  208. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
  209. package/dist/ts/ts/Core/Table/ArcTableAux.js +50 -70
  210. package/dist/ts/ts/Core/Table/ArcTables.js +16 -16
  211. package/dist/ts/ts/Core/Table/CompositeHeader.d.ts.map +1 -1
  212. package/dist/ts/ts/Core/Table/CompositeHeader.js +5 -6
  213. package/dist/ts/ts/Core/Templates.d.ts.map +1 -1
  214. package/dist/ts/ts/Core/Templates.js +2 -2
  215. package/dist/ts/ts/FileSystem/Path.d.ts +13 -2
  216. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  217. package/dist/ts/ts/FileSystem/Path.js +37 -19
  218. package/dist/ts/ts/Json/Assay.js +22 -22
  219. package/dist/ts/ts/Json/Comment.js +9 -9
  220. package/dist/ts/ts/Json/Data.d.ts.map +1 -1
  221. package/dist/ts/ts/Json/Data.js +11 -11
  222. package/dist/ts/ts/Json/Datamap/DataContext.js +2 -2
  223. package/dist/ts/ts/Json/Decode.d.ts.map +1 -1
  224. package/dist/ts/ts/Json/Decode.js +3 -5
  225. package/dist/ts/ts/Json/Encode.js +2 -2
  226. package/dist/ts/ts/Json/Investigation.d.ts.map +1 -1
  227. package/dist/ts/ts/Json/Investigation.js +20 -20
  228. package/dist/ts/ts/Json/OntologyAnnotation.d.ts.map +1 -1
  229. package/dist/ts/ts/Json/OntologyAnnotation.js +18 -18
  230. package/dist/ts/ts/Json/OntologySourceReference.d.ts.map +1 -1
  231. package/dist/ts/ts/Json/OntologySourceReference.js +9 -9
  232. package/dist/ts/ts/Json/Person.d.ts.map +1 -1
  233. package/dist/ts/ts/Json/Person.js +20 -20
  234. package/dist/ts/ts/Json/Process/AssayMaterials.d.ts.map +1 -1
  235. package/dist/ts/ts/Json/Process/AssayMaterials.js +1 -2
  236. package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
  237. package/dist/ts/ts/Json/Process/Component.js +5 -6
  238. package/dist/ts/ts/Json/Process/Factor.d.ts.map +1 -1
  239. package/dist/ts/ts/Json/Process/Factor.js +7 -7
  240. package/dist/ts/ts/Json/Process/FactorValue.d.ts.map +1 -1
  241. package/dist/ts/ts/Json/Process/FactorValue.js +2 -3
  242. package/dist/ts/ts/Json/Process/Material.d.ts.map +1 -1
  243. package/dist/ts/ts/Json/Process/Material.js +9 -10
  244. package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts.map +1 -1
  245. package/dist/ts/ts/Json/Process/MaterialAttribute.js +5 -6
  246. package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts.map +1 -1
  247. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +2 -3
  248. package/dist/ts/ts/Json/Process/Process.d.ts.map +1 -1
  249. package/dist/ts/ts/Json/Process/Process.js +8 -9
  250. package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts.map +1 -1
  251. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +1 -2
  252. package/dist/ts/ts/Json/Process/Protocol.d.ts.map +1 -1
  253. package/dist/ts/ts/Json/Process/Protocol.js +17 -17
  254. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
  255. package/dist/ts/ts/Json/Process/ProtocolParameter.js +6 -6
  256. package/dist/ts/ts/Json/Process/Sample.d.ts.map +1 -1
  257. package/dist/ts/ts/Json/Process/Sample.js +9 -9
  258. package/dist/ts/ts/Json/Process/Source.d.ts.map +1 -1
  259. package/dist/ts/ts/Json/Process/Source.js +10 -11
  260. package/dist/ts/ts/Json/Process/StudyMaterials.d.ts.map +1 -1
  261. package/dist/ts/ts/Json/Process/StudyMaterials.js +1 -2
  262. package/dist/ts/ts/Json/PropertyValue.d.ts.map +1 -1
  263. package/dist/ts/ts/Json/PropertyValue.js +24 -24
  264. package/dist/ts/ts/Json/Publication.d.ts.map +1 -1
  265. package/dist/ts/ts/Json/Publication.js +10 -10
  266. package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -2
  267. package/dist/ts/ts/Json/ROCrate/LDGraph.js +2 -2
  268. package/dist/ts/ts/Json/ROCrate/LDNode.js +5 -5
  269. package/dist/ts/ts/Json/Run.js +9 -9
  270. package/dist/ts/ts/Json/StringTable.d.ts.map +1 -1
  271. package/dist/ts/ts/Json/StringTable.js +4 -7
  272. package/dist/ts/ts/Json/Study.js +20 -20
  273. package/dist/ts/ts/Json/Table/CellTable.js +1 -2
  274. package/dist/ts/ts/Json/Table/OATable.js +1 -2
  275. package/dist/ts/ts/Json/Workflow.js +9 -9
  276. package/dist/ts/ts/Json.d.ts +121 -1
  277. package/dist/ts/ts/Json.d.ts.map +1 -1
  278. package/dist/ts/ts/Json.js +310 -2
  279. package/dist/ts/ts/JsonIO/Comment.d.ts +15 -0
  280. package/dist/ts/ts/JsonIO/Comment.d.ts.map +1 -0
  281. package/dist/ts/ts/JsonIO/Comment.js +67 -0
  282. package/dist/ts/ts/JsonIO/Data.d.ts +9 -0
  283. package/dist/ts/ts/JsonIO/Data.d.ts.map +1 -0
  284. package/dist/ts/ts/JsonIO/Data.js +49 -0
  285. package/dist/ts/ts/JsonIO/DataFile.d.ts +9 -0
  286. package/dist/ts/ts/JsonIO/DataFile.d.ts.map +1 -0
  287. package/dist/ts/ts/JsonIO/DataFile.js +48 -0
  288. package/dist/ts/ts/JsonIO/LDObject.d.ts +6 -0
  289. package/dist/ts/ts/JsonIO/LDObject.d.ts.map +1 -1
  290. package/dist/ts/ts/JsonIO/LDObject.js +173 -17
  291. package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts +15 -0
  292. package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts.map +1 -0
  293. package/dist/ts/ts/JsonIO/OntologySourceReference.js +67 -0
  294. package/dist/ts/ts/JsonIO/Publication.d.ts +15 -0
  295. package/dist/ts/ts/JsonIO/Publication.d.ts.map +1 -0
  296. package/dist/ts/ts/JsonIO/Publication.js +68 -0
  297. package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts +9 -0
  298. package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts.map +1 -0
  299. package/dist/ts/ts/JsonIO/Table/ArcTable.js +74 -0
  300. package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts +6 -0
  301. package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts.map +1 -0
  302. package/dist/ts/ts/JsonIO/Table/CompositeCell.js +29 -0
  303. package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts +6 -0
  304. package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts.map +1 -0
  305. package/dist/ts/ts/JsonIO/Table/CompositeHeader.js +29 -0
  306. package/dist/ts/ts/JsonIO/Table/IOType.d.ts +6 -0
  307. package/dist/ts/ts/JsonIO/Table/IOType.d.ts.map +1 -0
  308. package/dist/ts/ts/JsonIO/Table/IOType.js +29 -0
  309. package/dist/ts/ts/License.d.ts.map +1 -1
  310. package/dist/ts/ts/License.js +6 -6
  311. package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
  312. package/dist/ts/ts/ROCrate/LDContext.js +31 -39
  313. package/dist/ts/ts/ROCrate/LDObject.d.ts.map +1 -1
  314. package/dist/ts/ts/ROCrate/LDObject.js +56 -49
  315. package/dist/ts/ts/ROCrate/LDTypes/Comment.js +2 -2
  316. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +3 -3
  317. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +2 -2
  318. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +5 -5
  319. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts +1 -0
  320. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts.map +1 -1
  321. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.js +3 -0
  322. package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -1
  323. package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +22 -17
  324. package/dist/ts/ts/ROCrate/LDTypes/DefinedTerm.js +2 -2
  325. package/dist/ts/ts/ROCrate/LDTypes/File.js +5 -5
  326. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +2 -2
  327. package/dist/ts/ts/ROCrate/LDTypes/LabProcess.js +9 -9
  328. package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.js +4 -4
  329. package/dist/ts/ts/ROCrate/LDTypes/Organization.js +1 -1
  330. package/dist/ts/ts/ROCrate/LDTypes/Person.js +7 -7
  331. package/dist/ts/ts/ROCrate/LDTypes/PostalAddress.js +1 -1
  332. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -1
  333. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.js +45 -48
  334. package/dist/ts/ts/ROCrate/LDTypes/Sample.js +3 -3
  335. package/dist/ts/ts/ROCrate/LDTypes/ScholarlyArticle.js +4 -4
  336. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +3 -3
  337. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +3 -3
  338. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +2 -2
  339. package/dist/ts/ts/ROCrateIO.d.ts +18 -4
  340. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  341. package/dist/ts/ts/ROCrateIO.js +49 -38
  342. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
  343. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +9 -10
  344. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.d.ts.map +1 -1
  345. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +7 -7
  346. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
  347. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +6 -8
  348. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +20 -20
  349. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
  350. package/dist/ts/ts/Spreadsheet/ArcAssay.js +7 -7
  351. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +8 -8
  352. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
  353. package/dist/ts/ts/Spreadsheet/ArcRun.js +5 -6
  354. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
  355. package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
  356. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
  357. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +5 -6
  358. package/dist/ts/ts/Spreadsheet/CollectionAux.d.ts.map +1 -1
  359. package/dist/ts/ts/Spreadsheet/CollectionAux.js +10 -14
  360. package/dist/ts/ts/Spreadsheet/Datamap.js +1 -2
  361. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +3 -3
  362. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +10 -10
  363. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
  364. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +9 -10
  365. package/dist/ts/ts/Spreadsheet/Metadata/Assays.d.ts.map +1 -1
  366. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
  367. package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts.map +1 -1
  368. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +5 -5
  369. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts.map +1 -1
  370. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
  371. package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts.map +1 -1
  372. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +4 -4
  373. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts.map +1 -1
  374. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +3 -3
  375. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts.map +1 -1
  376. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +5 -5
  377. package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts.map +1 -1
  378. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +4 -4
  379. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts +1 -1
  380. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts.map +1 -1
  381. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +7 -7
  382. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
  383. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +17 -17
  384. package/dist/ts/ts/Spreadsheet/Metadata/Study.d.ts.map +1 -1
  385. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +8 -8
  386. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
  387. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
  388. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +1 -1
  389. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -1
  390. package/dist/ts/ts/WorkflowGraph/Adapters.js +5 -6
  391. package/dist/ts/ts/WorkflowGraph/Builder.d.ts +25 -6
  392. package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -1
  393. package/dist/ts/ts/WorkflowGraph/Builder.js +264 -138
  394. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +6 -0
  395. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -1
  396. package/dist/ts/ts/WorkflowGraph/GraphTypes.js +4 -1
  397. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +8 -5
  398. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -1
  399. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +27 -10
  400. package/dist/ts/ts/Xlsx.js +3 -3
  401. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +3 -3
  402. package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
  403. package/dist/ts/ts/Yaml/ValidationPackage.js +11 -23
  404. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +3 -3
  405. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
  406. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +11 -23
  407. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/DynamicObj.fs.js +16 -20
  408. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/FableJS.fs.js +1 -1
  409. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/ReflectionUtils.fs.js +8 -8
  410. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +1 -2
  411. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.6.0/Http.fs.js +4 -4
  412. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCell.fs.js +8 -8
  413. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCellsCollection.fs.js +18 -18
  414. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsAddress.fs.js +3 -3
  415. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorkbook.fs.js +1 -1
  416. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorksheet.fs.js +7 -7
  417. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Value.fs.js +3 -5
  418. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Worksheet.fs.js +7 -7
  419. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Ranges/FsRangeBase.fs.js +1 -2
  420. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Tables/FsTable.fs.js +7 -7
  421. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Cell.fs.js +2 -2
  422. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Table.fs.js +1 -2
  423. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Decode.fs.js +49 -71
  424. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Encode.fs.js +1 -1
  425. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.5.0/Decode.fs.js +1 -2
  426. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Compare.fs.js +857 -0
  427. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/CoreSchema.fs.js +725 -0
  428. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Decode.fs.js +1175 -0
  429. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Encode.fs.js +123 -0
  430. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Layout.fs.js +282 -0
  431. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexeme.fs.js +203 -0
  432. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexer.fs.js +1502 -0
  433. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Model.fs.js +564 -0
  434. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Node.fs.js +453 -0
  435. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Parser.fs.js +2622 -0
  436. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Reader.fs.js +108 -0
  437. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Source.fs.js +649 -0
  438. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Tag.fs.js +32 -0
  439. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Validate.fs.js +1084 -0
  440. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Writer.fs.js +2927 -0
  441. package/package.json +5 -4
  442. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Decode.fs.js +0 -1669
  443. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Encode.fs.js +0 -57
  444. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Escapes.fs.js +0 -320
  445. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Interop/JsInterop.fs.js +0 -10
  446. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Persil.fs.js +0 -414
  447. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Preprocessing.fs.js +0 -319
  448. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Reader.fs.js +0 -1884
  449. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Regex.fs.js +0 -23
  450. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/RegexActivePatterns.fs.js +0 -313
  451. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Syntax.fs.js +0 -840
  452. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Writer.fs.js +0 -689
  453. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/YAMLiciousTypes.fs.js +0 -359
@@ -1,43 +1,44 @@
1
1
  import { class_type } from '../../node_modules/@fable-org/fable-library-ts/Reflection.js';
2
- import { isComplexType, cwlTypeToYamlString, writeYaml, encodeCWLType } from '../CWL/Encode.js';
3
- import { read } from '../fable_modules/YAMLicious.1.0.0/Reader.fs.js';
4
- import { YAMLElement_Sequence, YAMLElement_Comment$ } from '../fable_modules/YAMLicious.1.0.0/YAMLiciousTypes.fs.js';
5
- import { object } from '../fable_modules/YAMLicious.1.0.0/Decode.fs.js';
6
- import { Decode_cwlTypeDecoder$0027, Decode_cwlTypeStringMatcher } from '../CWL/Decode.js';
7
- import { isEmpty, head, tail } from '../../node_modules/@fable-org/fable-library-ts/List.js';
8
- import { value, defaultArg, unwrap } from '../../node_modules/@fable-org/fable-library-ts/Option.js';
2
+ import { isComplexType, cwlTypeToYamlString, writeYaml, encodeCWLTypeShorthand, encodeProcessingUnitElement } from '../CWL/Encode.js';
3
+ import { ListEntry$1, SchemaSaladStringModule_tryLiteral, SchemaSaladString_Literal, CWLTypeModule_makeOptional, ListEntry$1_Value, RawYaml__get_MixinPath } from '../CWL/CWLTypes.js';
4
+ import { Decode_cwlTypeFromAdditionalType } from '../CWL/Decode.js';
9
5
  import { LDPropertyValue } from '../ROCrate/LDTypes/PropertyValue.js';
10
- import { Exception, int32ToString, stringHash } from '../../node_modules/@fable-org/fable-library-ts/Util.js';
6
+ import { unwrap, value, orElse, defaultArg } from '../../node_modules/@fable-org/fable-library-ts/Option.js';
7
+ import { Exception, equals, int32ToString, stringHash, getEnumerator, disposeSafe } from '../../node_modules/@fable-org/fable-library-ts/Util.js';
11
8
  import { LDFormalParameter } from '../ROCrate/LDTypes/FormalParameter.js';
12
- import { InputBinding, CWLInput } from '../CWL/Inputs.js';
13
- import { tryPick, exactlyOne, toArray, find } from '../../node_modules/@fable-org/fable-library-ts/Seq.js';
14
- import { OutputBinding, CWLOutput } from '../CWL/Outputs.js';
9
+ import { InputBinding, BindingPosition_Number$, CWLInput } from '../CWL/Inputs.js';
10
+ import { tryPick, exactlyOne, map, choose, toArray, exists, mapIndexed, filter, find } from '../../node_modules/@fable-org/fable-library-ts/Seq.js';
11
+ import { OutputBinding, OutputGlob_Multiple, OutputGlob_Single, CWLOutput } from '../CWL/Outputs.js';
12
+ import { item, tryPick as tryPick$1, append } from '../../node_modules/@fable-org/fable-library-ts/Array.js';
13
+ import { ResizeArray_map, ResizeArray_filter, ResizeArray_singleton, Option_fromSeq, ResizeArray_choose, ResizeArray_appendSingleton, ResizeArray_append, Option_fromValueWithDefault } from '../Core/Helper/Collections.js';
15
14
  import { Component_create_Z7A4FC9 } from '../Core/Process/Component.js';
16
- import { BaseTypes_decomposePropertyValue_Z2F770004, BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_composeComment_Z13201A7E, BaseTypes_decomposeDefinedTerm_Z2F770004, BaseTypes_decomposeComment_Z2F770004 } from './Basic.js';
17
- import { CWLProcessingUnit_getInputs_30922B92, CWLProcessingUnit_Workflow, CWLProcessingUnit_ExpressionTool, CWLProcessingUnit_Operation, CWLProcessingUnit_CommandLineTool } from '../CWL/CWLProcessingUnit.js';
15
+ import { BaseTypes_decomposePropertyValue_Z2F770004, BaseTypes_warnIfTitleEmpty_Z2FC25A28, BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_composeComment_Z13201A7E, BaseTypes_decomposeDefinedTerm_Z2F770004, BaseTypes_decomposeComment_Z2F770004 } from './Basic.js';
16
+ import { CWLProcessingUnit, WorkflowStepRunOps_tryGetWorkflow, WorkflowStepRunOps_tryGetProcessingUnit, CWLProcessingUnit_Workflow, CWLProcessingUnit_ExpressionTool, CWLProcessingUnit_Operation, CWLProcessingUnit_CommandLineTool } from '../CWL/CWLProcessingUnit.js';
17
+ import { split, getRelativePathFromFile, normalize, hasUriScheme, splitWithPrefix, normalizeSegments, combine } from '../FileSystem/Path.js';
18
18
  import { WorkflowStep, WorkflowStepRun_RunString } from '../CWL/WorkflowSteps.js';
19
- import { normalize } from '../FileSystem/Path.js';
20
- import { tryPick as tryPick$1 } from '../../node_modules/@fable-org/fable-library-ts/Array.js';
21
19
  import { distinct } from '../../node_modules/@fable-org/fable-library-ts/Seq2.js';
22
- import { concat, toFail, printf } from '../../node_modules/@fable-org/fable-library-ts/String.js';
20
+ import { concat, isNullOrWhiteSpace, join, toFail, printf } from '../../node_modules/@fable-org/fable-library-ts/String.js';
23
21
  import { LDDataset } from '../ROCrate/LDTypes/Dataset.js';
24
22
  import { LDWorkflowProtocol } from '../ROCrate/LDTypes/WorkflowProtocol.js';
25
- import { ResizeArray_map, ResizeArray_singleton, Option_fromSeq, ResizeArray_choose, ResizeArray_appendSingleton, Option_fromValueWithDefault } from '../Core/Helper/Collections.js';
23
+ import { YamlNodeModule_isMissingValue } from '../fable_modules/YAMLicious.2.0.0/Node.fs.js';
24
+ import { tryPick as tryPick$2 } from '../../node_modules/@fable-org/fable-library-ts/List.js';
25
+ import { CWLWorkflowDescription } from '../CWL/WorkflowDescription.js';
26
+ import { addToSet } from '../../node_modules/@fable-org/fable-library-ts/MapUtil.js';
27
+ import { LDFile } from '../ROCrate/LDTypes/File.js';
26
28
  import { LDComputerLanguage } from '../ROCrate/LDTypes/ComputerLanguage.js';
27
29
  import { CWLToolDescription } from '../CWL/ToolDescription.js';
28
30
  import { LDComputationalWorkflow } from '../ROCrate/LDTypes/ComputationalWorkflow.js';
29
31
  import { LDLabProtocol } from '../ROCrate/LDTypes/LabProtocol.js';
30
32
  import { CWLExpressionToolDescription } from '../CWL/ExpressionToolDescription.js';
31
33
  import { CWLOperationDescription } from '../CWL/OperationDescription.js';
32
- import { CWLWorkflowDescription } from '../CWL/WorkflowDescription.js';
33
- import { resolveWorkflowStepRunFromLookup } from '../CWLRunResolver.js';
34
+ import { resolveWorkflowStepFromLookup } from '../CWLRunResolver.js';
34
35
  import { Workflow_cwlFileNameFromIdentifier } from '../Core/Helper/Identifier.js';
35
36
  import { LDOrganization } from '../ROCrate/LDTypes/Organization.js';
36
37
  import { ArcWorkflow } from '../Core/ArcTypes.js';
37
38
  import { PersonConversion_composePerson_2B0BECCC, PersonConversion_decomposePerson_Z6839B9E8 } from './Person.js';
38
- import { utcNow } from '../../node_modules/@fable-org/fable-library-ts/Date.js';
39
- import { DatamapConversion_composeFragmentDescriptors_Z892BFC3, DatamapConversion_decomposeFragmentDescriptors_Z6E59645F } from './Datamap.js';
39
+ import { utcNow, toUniversalTime } from '../../node_modules/@fable-org/fable-library-ts/Date.js';
40
40
  import { Datamap } from '../Core/Datamap.js';
41
+ import { DatamapConversion_composeFragmentDescriptors_Z892BFC3, DatamapConversion_decomposeFragmentDescriptors_Z6E59645F } from './Datamap.js';
41
42
 
42
43
  class WorkflowConversion {
43
44
  constructor() {
@@ -50,88 +51,82 @@ function WorkflowConversion_composeAdditionalType_Z5C31A0F9(t) {
50
51
  if (isComplexType(t)) {
51
52
  return cwlTypeToYamlString(t);
52
53
  } else {
53
- const s = writeYaml(encodeCWLType(t));
54
+ const s = writeYaml(encodeCWLTypeShorthand(t));
54
55
  return s.trim();
55
56
  }
56
57
  }
57
58
  function WorkflowConversion_decomposeAdditionalType_Z721C83C5(t) {
58
- const yamlElement = read(t);
59
- let matchResult = void 0, items = void 0;
60
- switch (yamlElement.tag) {
61
- case /* Value */
62
- 1: {
63
- matchResult = 0;
64
- break;
65
- }
66
- case /* Object */
67
- 3: {
68
- if (!isEmpty(yamlElement.fields[0])) {
69
- if (head(yamlElement.fields[0]).tag === /* Sequence */
70
- 2) {
71
- if (isEmpty(tail(yamlElement.fields[0]))) {
72
- matchResult = 1;
73
- items = head(yamlElement.fields[0]).fields[0];
74
- } else {
75
- matchResult = 2;
76
- }
77
- } else {
78
- matchResult = 2;
79
- }
80
- } else {
81
- matchResult = 2;
82
- }
83
- break;
84
- }
85
- default:
86
- matchResult = 2;
87
- }
88
- switch (matchResult) {
89
- case 0:
90
- return object((get$) => Decode_cwlTypeStringMatcher(t, get$), YAMLElement_Comment$("unused-shorthand-context"))[0];
91
- case 1:
92
- return Decode_cwlTypeDecoder$0027(YAMLElement_Sequence(items));
93
- default:
94
- return Decode_cwlTypeDecoder$0027(yamlElement);
95
- }
59
+ return Decode_cwlTypeFromAdditionalType(t);
96
60
  }
97
61
  function WorkflowConversion_composeFormalParamInputIdentifiers(prefix, position) {
98
62
  if (prefix == null) {
99
63
  if (position == null) {
100
64
  return void 0;
101
65
  } else {
102
- const po_1 = value(position) | 0;
66
+ const po_1 = position | 0;
103
67
  return [LDPropertyValue.createPosition(po_1)];
104
68
  }
105
69
  } else if (position == null) {
106
- const pr_1 = value(prefix);
70
+ const pr_1 = prefix;
107
71
  return [LDPropertyValue.createPrefix(pr_1)];
108
72
  } else {
109
- const po = value(position) | 0;
110
- const pr = value(prefix);
73
+ const po = position | 0;
74
+ const pr = prefix;
111
75
  return [LDPropertyValue.createPosition(po), LDPropertyValue.createPrefix(pr)];
112
76
  }
113
77
  }
114
78
  function WorkflowConversion_composeFormalParameterFromInput_Z7A02DED7(inp, workflowName, runName) {
79
+ let option_5 = void 0;
115
80
  let additionalType;
116
81
  const matchValue = inp.Type_;
117
82
  if (matchValue == null) {
118
83
  throw new Exception("Input must have a type");
119
84
  } else {
120
- additionalType = WorkflowConversion_composeAdditionalType_Z5C31A0F9(value(matchValue));
85
+ additionalType = WorkflowConversion_composeAdditionalType_Z5C31A0F9(matchValue);
121
86
  }
122
- const valueRequired = !defaultArg(inp.Optional, false);
87
+ const valueRequired = !inp.Optional;
123
88
  const id = LDFormalParameter.genID(inp.Name, unwrap(workflowName), unwrap(runName));
124
89
  let identifiers;
125
- const option_2 = inp.InputBinding;
126
- if (option_2 != null) {
127
- const ib = value(option_2);
128
- identifiers = WorkflowConversion_composeFormalParamInputIdentifiers(ib.Prefix, ib._position);
90
+ let option_7;
91
+ const option_1 = inp.InputBinding;
92
+ if (option_1 != null) {
93
+ const entry = option_1;
94
+ option_7 = ListEntry$1.tryValue(entry);
95
+ } else {
96
+ option_7 = void 0;
97
+ }
98
+ if (option_7 != null) {
99
+ const ib = option_7;
100
+ let position;
101
+ const option_3 = ib._position;
102
+ if (option_3 != null) {
103
+ const _arg = option_3;
104
+ switch (_arg.tag) {
105
+ case /* Expression */
106
+ 1:
107
+ case /* Imported */
108
+ 2:
109
+ case /* Included */
110
+ 3:
111
+ case /* Mixed */
112
+ 4: {
113
+ position = void 0;
114
+ break;
115
+ }
116
+ default:
117
+ position = _arg.fields[0];
118
+ }
119
+ } else {
120
+ position = void 0;
121
+ }
122
+ identifiers = WorkflowConversion_composeFormalParamInputIdentifiers((option_5 = ib.Prefix, option_5 != null ? SchemaSaladStringModule_tryLiteral(option_5) : void 0), position);
129
123
  } else {
130
124
  identifiers = void 0;
131
125
  }
132
126
  return LDFormalParameter.create(additionalType, id, void 0, inp.Name, void 0, void 0, void 0, void 0, valueRequired, unwrap(identifiers));
133
127
  }
134
128
  function WorkflowConversion_decomposeInputBindings_1AAAE9A5(identifiers, context) {
129
+ let option_1 = void 0, option_3 = void 0;
135
130
  const prefix = tryPick((n) => LDPropertyValue.tryGetAsPrefix(n, unwrap(context)), identifiers);
136
131
  const position = tryPick((n_1) => LDPropertyValue.tryGetAsPosition(n_1, unwrap(context)), identifiers);
137
132
  let matchResult = void 0;
@@ -148,40 +143,23 @@ function WorkflowConversion_decomposeInputBindings_1AAAE9A5(identifiers, context
148
143
  case 0:
149
144
  return void 0;
150
145
  default:
151
- return InputBinding.create(unwrap(prefix), unwrap(position));
146
+ return InputBinding.create(unwrap((option_1 = prefix, option_1 != null ? SchemaSaladString_Literal(option_1) : void 0)), unwrap((option_3 = position, option_3 != null ? BindingPosition_Number$(option_3) : void 0)));
152
147
  }
153
148
  }
154
149
  function WorkflowConversion_decomposeInputFromFormalParameter_2664C4B8(inp, context, graph) {
150
+ let option_1 = void 0;
155
151
  const t_1 = WorkflowConversion_decomposeAdditionalType_Z721C83C5(exactlyOne(inp.AdditionalType));
156
152
  const binding = WorkflowConversion_decomposeInputBindings_1AAAE9A5(LDFormalParameter.getIdentifiers(inp, unwrap(graph), unwrap(context)), unwrap(context));
157
- let optional;
158
- const matchValue = LDFormalParameter.tryGetValueRequiredAsBoolean(inp, unwrap(context));
159
- let matchResult = void 0;
160
- if (matchValue != null) {
161
- if (value(matchValue)) {
162
- matchResult = 0;
163
- } else {
164
- matchResult = 1;
165
- }
166
- } else {
167
- matchResult = 1;
168
- }
169
- switch (matchResult) {
170
- case 0: {
171
- optional = void 0;
172
- break;
173
- }
174
- default:
175
- optional = true;
176
- }
177
- return new CWLInput(LDFormalParameter.getNameAsString(inp, unwrap(context)), t_1, unwrap(binding), unwrap(optional));
153
+ const required = equals(LDFormalParameter.tryGetValueRequiredAsBoolean(inp, unwrap(context)), true);
154
+ return new CWLInput(LDFormalParameter.getNameAsString(inp, unwrap(context)), required ? t_1 : CWLTypeModule_makeOptional(t_1), unwrap((option_1 = binding, option_1 != null ? ListEntry$1_Value(option_1) : void 0)));
178
155
  }
179
- function WorkflowConversion_composeFormalParameterOutputIdentifiers_6DFDD678(glob) {
156
+ function WorkflowConversion_composeFormalParameterOutputIdentifiers_A254C9D(glob) {
157
+ let collection = void 0;
180
158
  if (glob == null) {
181
159
  return void 0;
182
160
  } else {
183
- const g = value(glob);
184
- return [LDPropertyValue.createGlob(g)];
161
+ const globs = glob;
162
+ return collection = map((g) => LDPropertyValue.createGlob(g), choose(SchemaSaladStringModule_tryLiteral, globs.AsValues())), Array.from(collection);
185
163
  }
186
164
  }
187
165
  function WorkflowConversion_composeFormalParameterFromOutput_Z25C7EC80(out, workflowName, runName) {
@@ -190,30 +168,48 @@ function WorkflowConversion_composeFormalParameterFromOutput_Z25C7EC80(out, work
190
168
  if (matchValue == null) {
191
169
  throw new Exception("Output must have a type");
192
170
  } else {
193
- additionalType = WorkflowConversion_composeAdditionalType_Z5C31A0F9(value(matchValue));
171
+ additionalType = WorkflowConversion_composeAdditionalType_Z5C31A0F9(matchValue);
194
172
  }
195
173
  const id = LDFormalParameter.genID(out.Name, unwrap(workflowName), unwrap(runName));
196
174
  let identifiers;
175
+ let option_3;
197
176
  const option_1 = out.OutputBinding;
198
177
  if (option_1 != null) {
199
- const ob = value(option_1);
200
- identifiers = WorkflowConversion_composeFormalParameterOutputIdentifiers_6DFDD678(ob.Glob);
178
+ const entry = option_1;
179
+ option_3 = ListEntry$1.tryValue(entry);
180
+ } else {
181
+ option_3 = void 0;
182
+ }
183
+ if (option_3 != null) {
184
+ const ob = option_3;
185
+ identifiers = WorkflowConversion_composeFormalParameterOutputIdentifiers_A254C9D(ob.Glob);
201
186
  } else {
202
187
  identifiers = void 0;
203
188
  }
204
189
  return LDFormalParameter.create(additionalType, id, void 0, out.Name, void 0, void 0, void 0, void 0, true, unwrap(identifiers));
205
190
  }
206
191
  function WorkflowConversion_decomposeOutputBindings_1AAAE9A5(identifiers, context) {
207
- return OutputBinding.create(unwrap(tryPick((n) => LDPropertyValue.tryGetAsGlob(n, unwrap(context)), identifiers)));
192
+ let globs;
193
+ const collection = choose((n) => LDPropertyValue.tryGetAsGlob(n, unwrap(context)), identifiers);
194
+ globs = Array.from(collection);
195
+ const matchValue = globs.length | 0;
196
+ switch (matchValue) {
197
+ case 0:
198
+ return OutputBinding.create();
199
+ case 1:
200
+ return OutputBinding.create(OutputGlob_Single(SchemaSaladString_Literal(item(0, globs))));
201
+ default:
202
+ return OutputBinding.create(OutputGlob_Multiple(ResizeArray_map(SchemaSaladString_Literal, globs)));
203
+ }
208
204
  }
209
205
  function WorkflowConversion_decomposeOutputFromFormalParameter_2664C4B8(outp, context, graph) {
210
206
  const t_1 = WorkflowConversion_decomposeAdditionalType_Z721C83C5(exactlyOne(outp.AdditionalType));
211
207
  const binding = WorkflowConversion_decomposeOutputBindings_1AAAE9A5(LDFormalParameter.getIdentifiers(outp, unwrap(graph), unwrap(context)), unwrap(context));
212
208
  const option_1 = LDFormalParameter.tryGetValueRequiredAsBoolean(outp, unwrap(context));
213
209
  if (option_1 != null) {
214
- !value(option_1);
210
+ !option_1;
215
211
  }
216
- return new CWLOutput(LDFormalParameter.getNameAsString(outp, unwrap(context)), t_1, binding);
212
+ return new CWLOutput(LDFormalParameter.getNameAsString(outp, unwrap(context)), t_1, ListEntry$1_Value(binding));
217
213
  }
218
214
  function WorkflowConversion_composeComputationalTool_Z685B8F25(tool) {
219
215
  let c = void 0, f = void 0, i = void 0, oa = void 0, s = void 0;
@@ -221,9 +217,9 @@ function WorkflowConversion_composeComputationalTool_Z685B8F25(tool) {
221
217
  const matchValue = tool.ComponentType;
222
218
  let matchResult = void 0, c_1 = void 0;
223
219
  if (matchValue != null) {
224
- if (c = value(matchValue), c.Name != null) {
220
+ if (c = matchValue, c.Name != null) {
225
221
  matchResult = 0;
226
- c_1 = value(matchValue);
222
+ c_1 = matchValue;
227
223
  } else {
228
224
  matchResult = 1;
229
225
  }
@@ -240,16 +236,16 @@ function WorkflowConversion_composeComputationalTool_Z685B8F25(tool) {
240
236
  }
241
237
  let patternInput_1;
242
238
  const matchValue_1 = tool.ComponentValue;
243
- patternInput_1 = matchValue_1 == null ? [void 0, void 0] : value(matchValue_1).tag === /* Float */
244
- 2 ? (f = value(matchValue_1).fields[0], [f.toString(), void 0]) : value(matchValue_1).tag === /* Int */
245
- 1 ? (i = value(matchValue_1).fields[0] | 0, [int32ToString(i), void 0]) : value(matchValue_1).tag === /* Ontology */
246
- 0 ? (oa = value(matchValue_1).fields[0], [oa.Name, oa.TermAccessionNumber]) : (s = value(matchValue_1).fields[0], [s, void 0]);
239
+ patternInput_1 = matchValue_1 == null ? [void 0, void 0] : matchValue_1.tag === /* Float */
240
+ 2 ? (f = matchValue_1.fields[0], [f.toString(), void 0]) : matchValue_1.tag === /* Int */
241
+ 1 ? (i = matchValue_1.fields[0] | 0, [int32ToString(i), void 0]) : matchValue_1.tag === /* Ontology */
242
+ 0 ? (oa = matchValue_1.fields[0], [oa.Name, oa.TermAccessionNumber]) : (s = matchValue_1.fields[0], [s, void 0]);
247
243
  let patternInput_2;
248
244
  const matchValue_2 = tool.ComponentUnit;
249
245
  if (matchValue_2 == null) {
250
246
  patternInput_2 = [void 0, void 0];
251
247
  } else {
252
- const oa_1 = value(matchValue_2);
248
+ const oa_1 = matchValue_2;
253
249
  patternInput_2 = [oa_1.Name, oa_1.TermAccessionNumber];
254
250
  }
255
251
  return LDPropertyValue.createComponent(patternInput[0], unwrap(patternInput_1[0]), void 0, unwrap(patternInput[1]), unwrap(patternInput_2[1]), unwrap(patternInput_2[0]), unwrap(patternInput_1[1]));
@@ -259,7 +255,7 @@ function WorkflowConversion_decomposeComputationalTool_Z6839B9E8(tool, graph, co
259
255
  return Component_create_Z7A4FC9(unwrap(patternInput[1]), unwrap(patternInput[2]), patternInput[0]);
260
256
  }
261
257
  function WorkflowConversion_getInputParametersFromProcessingUnit_30922B92(pu) {
262
- return CWLProcessingUnit_getInputs_30922B92(pu);
258
+ return CWLProcessingUnit.getInputValues(pu);
263
259
  }
264
260
  function WorkflowConversion_get_toolDescriptionTypeName() {
265
261
  return "ToolDescription";
@@ -273,22 +269,104 @@ function WorkflowConversion_get_expressionToolDescriptionTypeName() {
273
269
  function WorkflowConversion_get_operationDescriptionTypeName() {
274
270
  return "OperationDescription";
275
271
  }
276
- function WorkflowConversion_runToIdentifier_Z4EBA8CB1(run) {
272
+ function WorkflowConversion_isInArcFolder_Z721C83C5(path) {
273
+ const segments = split(path);
274
+ if (segments.length > 1) {
275
+ if ((item(0, segments) === "assays" ? true : item(0, segments) === "studies") ? true : item(0, segments) === "workflows") {
276
+ return true;
277
+ } else {
278
+ return item(0, segments) === "runs";
279
+ }
280
+ } else {
281
+ return false;
282
+ }
283
+ }
284
+ function WorkflowConversion_runToIdentifier_Z4E98F2C(cwlFilePath, run) {
285
+ const ofPath = (runPath) => {
286
+ const matchValue = WorkflowConversion_tryResolveFileReference(cwlFilePath, runPath);
287
+ let matchResult = void 0, path_1 = void 0;
288
+ if (matchValue != null) {
289
+ if (WorkflowConversion_isInArcFolder_Z721C83C5(matchValue)) {
290
+ matchResult = 0;
291
+ path_1 = matchValue;
292
+ } else {
293
+ matchResult = 1;
294
+ }
295
+ } else {
296
+ matchResult = 1;
297
+ }
298
+ switch (matchResult) {
299
+ case 0:
300
+ return "./" + path_1;
301
+ default:
302
+ return runPath;
303
+ }
304
+ };
305
+ let matchResult_1 = void 0, runPath_1 = void 0;
277
306
  switch (run.tag) {
307
+ case /* RunImport */
308
+ 1: {
309
+ matchResult_1 = 0;
310
+ runPath_1 = run.fields[0];
311
+ break;
312
+ }
313
+ case /* RunMixed */
314
+ 2: {
315
+ matchResult_1 = 1;
316
+ break;
317
+ }
318
+ case /* RunRaw */
319
+ 3: {
320
+ matchResult_1 = 2;
321
+ break;
322
+ }
278
323
  case /* RunCommandLineTool */
279
- 1:
280
- return "inline:CommandLineTool";
324
+ 4: {
325
+ matchResult_1 = 3;
326
+ break;
327
+ }
281
328
  case /* RunWorkflow */
282
- 2:
283
- return "inline:Workflow";
329
+ 5: {
330
+ matchResult_1 = 4;
331
+ break;
332
+ }
284
333
  case /* RunExpressionTool */
285
- 3:
286
- return "inline:ExpressionTool";
334
+ 6: {
335
+ matchResult_1 = 5;
336
+ break;
337
+ }
287
338
  case /* RunOperation */
288
- 4:
289
- return "inline:Operation";
339
+ 7: {
340
+ matchResult_1 = 6;
341
+ break;
342
+ }
343
+ default: {
344
+ matchResult_1 = 0;
345
+ runPath_1 = run.fields[0];
346
+ }
347
+ }
348
+ switch (matchResult_1) {
349
+ case 0:
350
+ return ofPath(runPath_1);
351
+ case 1:
352
+ return ofPath(RawYaml__get_MixinPath(run.fields[0]));
353
+ case 2:
354
+ return void 0;
355
+ case 3:
356
+ return "inline:CommandLineTool";
357
+ case 4:
358
+ return "inline:Workflow";
359
+ case 5:
360
+ return "inline:ExpressionTool";
290
361
  default:
291
- return run.fields[0];
362
+ return "inline:Operation";
363
+ }
364
+ }
365
+ function WorkflowConversion_identifierToRun_Z384F8060(cwlFilePath, identifier) {
366
+ if (identifier.startsWith("./") && WorkflowConversion_isInArcFolder_Z721C83C5(identifier)) {
367
+ return getRelativePathFromFile(cwlFilePath, identifier);
368
+ } else {
369
+ return identifier;
292
370
  }
293
371
  }
294
372
  function WorkflowConversion_tryDecodeProcessingUnitFromGraph_Z5AC69418(resolvedRunPath, graph, context) {
@@ -301,7 +379,7 @@ function WorkflowConversion_tryDecodeProcessingUnitFromGraph_Z5AC69418(resolvedR
301
379
  }
302
380
  };
303
381
  if (graph != null) {
304
- const graph_1 = value(graph);
382
+ const graph_1 = graph;
305
383
  const normalizedResolvedRunPath = normalize(resolvedRunPath);
306
384
  const candidateNode = tryPick$1((id) => graph_1.TryGetNode(id), toArray(distinct([resolvedRunPath, normalizedResolvedRunPath, concat("./", normalizedResolvedRunPath)], {
307
385
  Equals: (x, y) => x === y,
@@ -309,15 +387,15 @@ function WorkflowConversion_tryDecodeProcessingUnitFromGraph_Z5AC69418(resolvedR
309
387
  })));
310
388
  let matchResult = void 0, node_3 = void 0, node_4 = void 0, node_5 = void 0;
311
389
  if (candidateNode != null) {
312
- if (node = value(candidateNode), LDWorkflowProtocol.validate(node, unwrap(context))) {
390
+ if (node = candidateNode, LDWorkflowProtocol.validate(node, unwrap(context))) {
313
391
  matchResult = 0;
314
- node_3 = value(candidateNode);
315
- } else if (node_1 = value(candidateNode), LDDataset.validateARCWorkflow(node_1, graph_1, unwrap(context))) {
392
+ node_3 = candidateNode;
393
+ } else if (node_1 = candidateNode, LDDataset.validateARCWorkflow(node_1, graph_1, unwrap(context))) {
316
394
  matchResult = 1;
317
- node_4 = value(candidateNode);
318
- } else if (node_2 = value(candidateNode), LDDataset.validateARCRun(node_2, unwrap(context))) {
395
+ node_4 = candidateNode;
396
+ } else if (node_2 = candidateNode, LDDataset.validateARCRun(node_2, unwrap(context))) {
319
397
  matchResult = 2;
320
- node_5 = value(candidateNode);
398
+ node_5 = candidateNode;
321
399
  } else {
322
400
  matchResult = 3;
323
401
  }
@@ -330,7 +408,7 @@ function WorkflowConversion_tryDecodeProcessingUnitFromGraph_Z5AC69418(resolvedR
330
408
  case 1: {
331
409
  const option_1 = LDDataset.tryGetMainEntityAsWorkflowProtocol(node_4, graph_1, unwrap(context));
332
410
  if (option_1 != null) {
333
- return tryDecodeWorkflowProtocol(value(option_1));
411
+ return tryDecodeWorkflowProtocol(option_1);
334
412
  } else {
335
413
  return void 0;
336
414
  }
@@ -338,7 +416,7 @@ function WorkflowConversion_tryDecodeProcessingUnitFromGraph_Z5AC69418(resolvedR
338
416
  case 2: {
339
417
  const option_3 = LDDataset.tryGetMainEntityAsWorkflowProtocol(node_5, graph_1, unwrap(context));
340
418
  if (option_3 != null) {
341
- return tryDecodeWorkflowProtocol(value(option_3));
419
+ return tryDecodeWorkflowProtocol(option_3);
342
420
  } else {
343
421
  return void 0;
344
422
  }
@@ -350,60 +428,459 @@ function WorkflowConversion_tryDecodeProcessingUnitFromGraph_Z5AC69418(resolvedR
350
428
  return void 0;
351
429
  }
352
430
  }
431
+ function WorkflowConversion_isRelativeFileReference_Z721C83C5(reference) {
432
+ if (!isNullOrWhiteSpace(reference) && !hasUriScheme(reference)) {
433
+ return splitWithPrefix(reference)[0] == null;
434
+ } else {
435
+ return false;
436
+ }
437
+ }
438
+ function WorkflowConversion_tryResolveFileReference(cwlFilePath, reference) {
439
+ if (WorkflowConversion_isRelativeFileReference_Z721C83C5(reference)) {
440
+ const fileSegments = split(cwlFilePath);
441
+ const segments_1 = normalizeSegments(append(fileSegments.slice(void 0, fileSegments.length - 2 + 1), split(reference)));
442
+ if (segments_1.length === 0 ? true : item(0, segments_1) === "..") {
443
+ return void 0;
444
+ } else {
445
+ return join("/", segments_1);
446
+ }
447
+ } else {
448
+ return void 0;
449
+ }
450
+ }
451
+ function WorkflowConversion_fileReferencesOfYaml_51084C1(root) {
452
+ const references = [];
453
+ const tryScalarText = (node) => {
454
+ const matchValue = node.Kind;
455
+ let matchResult = void 0, scalar_1 = void 0;
456
+ if (matchValue.tag === /* Scalar */
457
+ 0) {
458
+ if (matchValue.fields[0], !YamlNodeModule_isMissingValue(node)) {
459
+ matchResult = 0;
460
+ scalar_1 = matchValue.fields[0];
461
+ } else {
462
+ matchResult = 1;
463
+ }
464
+ } else {
465
+ matchResult = 1;
466
+ }
467
+ switch (matchResult) {
468
+ case 0:
469
+ return scalar_1.Value;
470
+ default:
471
+ return void 0;
472
+ }
473
+ };
474
+ const isDirective = (key) => {
475
+ if (key === "$import" ? true : key === "$include") {
476
+ return true;
477
+ } else {
478
+ return key === "$mixin";
479
+ }
480
+ };
481
+ const visit = (isStep) => (node_1) => {
482
+ let literalClass = void 0;
483
+ const matchValue_1 = node_1.Kind;
484
+ switch (matchValue_1.tag) {
485
+ case /* Mapping */
486
+ 1: {
487
+ const collection = matchValue_1.fields[0];
488
+ const fieldText = (name) => tryPick$2((entry) => {
489
+ if (equals(tryScalarText(entry.Key), name)) {
490
+ return tryScalarText(entry.Value);
491
+ } else {
492
+ return void 0;
493
+ }
494
+ }, collection.Items);
495
+ const matchValue_2 = fieldText("class");
496
+ let matchResult_1 = void 0, literalClass_1 = void 0;
497
+ if (matchValue_2 != null) {
498
+ if (literalClass = matchValue_2, literalClass === "File" ? true : literalClass === "Directory") {
499
+ matchResult_1 = 0;
500
+ literalClass_1 = matchValue_2;
501
+ } else {
502
+ matchResult_1 = 1;
503
+ }
504
+ } else {
505
+ matchResult_1 = 1;
506
+ }
507
+ switch (matchResult_1) {
508
+ case 0: {
509
+ const option_2 = orElse(fieldText("location"), fieldText("path"));
510
+ if (option_2 != null) {
511
+ const path = option_2;
512
+ void references.push([path, literalClass_1 === "Directory"]);
513
+ }
514
+ break;
515
+ }
516
+ }
517
+ const isWorkflow = equals(fieldText("class"), "Workflow");
518
+ const enumerator = getEnumerator(collection.Items);
519
+ try {
520
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
521
+ const entry_1 = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
522
+ const key_1 = defaultArg(tryScalarText(entry_1.Key), "");
523
+ const matchValue_3 = tryScalarText(entry_1.Value);
524
+ let matchResult_2 = void 0, path_2 = void 0;
525
+ if (matchValue_3 != null) {
526
+ if (matchValue_3, isDirective(key_1) ? true : isStep && key_1 === "run") {
527
+ matchResult_2 = 0;
528
+ path_2 = matchValue_3;
529
+ } else if (isWorkflow && key_1 === "steps") {
530
+ matchResult_2 = 1;
531
+ } else {
532
+ matchResult_2 = 2;
533
+ }
534
+ } else if (isWorkflow && key_1 === "steps") {
535
+ matchResult_2 = 1;
536
+ } else {
537
+ matchResult_2 = 2;
538
+ }
539
+ switch (matchResult_2) {
540
+ case 0: {
541
+ void references.push([path_2, false]);
542
+ break;
543
+ }
544
+ case 1: {
545
+ visitSteps(entry_1.Value);
546
+ break;
547
+ }
548
+ case 2: {
549
+ visit(false)(entry_1.Value);
550
+ break;
551
+ }
552
+ }
553
+ }
554
+ } finally {
555
+ disposeSafe(enumerator);
556
+ }
557
+ break;
558
+ }
559
+ case /* Sequence */
560
+ 2: {
561
+ const enumerator_1 = getEnumerator(matchValue_1.fields[0].Items);
562
+ try {
563
+ while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
564
+ visit(false)(enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]().Node);
565
+ }
566
+ } finally {
567
+ disposeSafe(enumerator_1);
568
+ }
569
+ break;
570
+ }
571
+ default:
572
+ }
573
+ };
574
+ const visitSteps = (node_2) => {
575
+ const matchValue_4 = node_2.Kind;
576
+ switch (matchValue_4.tag) {
577
+ case /* Mapping */
578
+ 1: {
579
+ const enumerator_2 = getEnumerator(matchValue_4.fields[0].Items);
580
+ try {
581
+ while (enumerator_2["System.Collections.IEnumerator.MoveNext"]()) {
582
+ const entry_2 = enumerator_2["System.Collections.Generic.IEnumerator`1.get_Current"]();
583
+ const key_2 = defaultArg(tryScalarText(entry_2.Key), "");
584
+ const matchValue_5 = tryScalarText(entry_2.Value);
585
+ let matchResult_3 = void 0, path_4 = void 0;
586
+ if (matchValue_5 != null) {
587
+ if (matchValue_5, isDirective(key_2)) {
588
+ matchResult_3 = 0;
589
+ path_4 = matchValue_5;
590
+ } else {
591
+ matchResult_3 = 1;
592
+ }
593
+ } else {
594
+ matchResult_3 = 1;
595
+ }
596
+ switch (matchResult_3) {
597
+ case 0: {
598
+ void references.push([path_4, false]);
599
+ break;
600
+ }
601
+ case 1: {
602
+ visit(true)(entry_2.Value);
603
+ break;
604
+ }
605
+ }
606
+ }
607
+ } finally {
608
+ disposeSafe(enumerator_2);
609
+ }
610
+ break;
611
+ }
612
+ case /* Sequence */
613
+ 2: {
614
+ const enumerator_3 = getEnumerator(matchValue_4.fields[0].Items);
615
+ try {
616
+ while (enumerator_3["System.Collections.IEnumerator.MoveNext"]()) {
617
+ visit(true)(enumerator_3["System.Collections.Generic.IEnumerator`1.get_Current"]().Node);
618
+ }
619
+ } finally {
620
+ disposeSafe(enumerator_3);
621
+ }
622
+ break;
623
+ }
624
+ default:
625
+ }
626
+ };
627
+ visit(false)(root);
628
+ return references;
629
+ }
630
+ function WorkflowConversion_resolvedRunsOf_30922B92(processingUnit) {
631
+ const resolved = [];
632
+ const entered = [];
633
+ const visit = (workflow) => {
634
+ if (!exists((other) => other === workflow, entered)) {
635
+ void entered.push(workflow);
636
+ let enumerator = getEnumerator(CWLWorkflowDescription.getStepValues(workflow));
637
+ try {
638
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
639
+ const step = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
640
+ const matchValue = step.Run;
641
+ let matchResult = void 0, runPath = void 0;
642
+ switch (matchValue.tag) {
643
+ case /* RunString */
644
+ 0: {
645
+ matchResult = 0;
646
+ runPath = matchValue.fields[0];
647
+ break;
648
+ }
649
+ case /* RunImport */
650
+ 1: {
651
+ matchResult = 0;
652
+ runPath = matchValue.fields[0];
653
+ break;
654
+ }
655
+ case /* RunWorkflow */
656
+ 5: {
657
+ matchResult = 1;
658
+ break;
659
+ }
660
+ default:
661
+ matchResult = 2;
662
+ }
663
+ switch (matchResult) {
664
+ case 0: {
665
+ let option_3;
666
+ const option_1 = step.ResolvedRun.Run;
667
+ option_3 = option_1 != null ? WorkflowStepRunOps_tryGetProcessingUnit(option_1) : void 0;
668
+ if (option_3 != null) {
669
+ const target = option_3;
670
+ void resolved.push([runPath, target]);
671
+ }
672
+ break;
673
+ }
674
+ case 1: {
675
+ const option_5 = WorkflowStepRunOps_tryGetWorkflow(step.Run);
676
+ if (option_5 != null) {
677
+ visit(option_5);
678
+ }
679
+ break;
680
+ }
681
+ }
682
+ }
683
+ } finally {
684
+ disposeSafe(enumerator);
685
+ }
686
+ }
687
+ };
688
+ if (processingUnit.tag === /* Workflow */
689
+ 1) {
690
+ visit(processingUnit.fields[0]);
691
+ }
692
+ return resolved;
693
+ }
694
+ function WorkflowConversion_getReferencedFilePaths_589B7F6(cwlFilePath, processingUnit, fs) {
695
+ const mainPath = normalize(cwlFilePath);
696
+ const paths = [];
697
+ const added = /* @__PURE__ */ new Set([]);
698
+ const visited = /* @__PURE__ */ new Set([]);
699
+ const add = (path_1) => {
700
+ if (path_1 !== mainPath && addToSet(path_1, added)) {
701
+ void paths.push(path_1);
702
+ }
703
+ };
704
+ const visit = (filePath, processingUnit_1) => {
705
+ if (addToSet(filePath, visited)) {
706
+ let enumerator = getEnumerator(WorkflowConversion_fileReferencesOfYaml_51084C1(encodeProcessingUnitElement(processingUnit_1)));
707
+ try {
708
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
709
+ let path = void 0, matchValue = void 0;
710
+ const forLoopVar = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
711
+ const matchValue_1 = WorkflowConversion_tryResolveFileReference(filePath, forLoopVar[0]);
712
+ let matchResult = void 0, path_4 = void 0, path_5 = void 0;
713
+ if (matchValue_1 != null) {
714
+ if (matchValue_1, forLoopVar[1]) {
715
+ matchResult = 0;
716
+ path_4 = matchValue_1;
717
+ } else if (path = matchValue_1, matchValue = fs.Tree.TryGetPath(path), matchValue != null && matchValue.tag === /* File */
718
+ 0) {
719
+ matchResult = 1;
720
+ path_5 = matchValue_1;
721
+ } else {
722
+ matchResult = 2;
723
+ }
724
+ } else {
725
+ matchResult = 2;
726
+ }
727
+ switch (matchResult) {
728
+ case 0: {
729
+ const matchValue_2 = fs.Tree.TryGetPath(path_4);
730
+ let matchResult_1 = void 0, folder = void 0;
731
+ if (matchValue_2 != null) {
732
+ if (matchValue_2.tag === /* Folder */
733
+ 1) {
734
+ matchResult_1 = 0;
735
+ folder = matchValue_2;
736
+ } else {
737
+ matchResult_1 = 1;
738
+ }
739
+ } else {
740
+ matchResult_1 = 1;
741
+ }
742
+ switch (matchResult_1) {
743
+ case 0: {
744
+ const arr = folder.ToFilePaths(true);
745
+ for (let idx = 0; idx <= arr.length - 1; idx++) {
746
+ add(combine(path_4, item(idx, arr)));
747
+ }
748
+ break;
749
+ }
750
+ }
751
+ break;
752
+ }
753
+ case 1: {
754
+ add(path_5);
755
+ break;
756
+ }
757
+ }
758
+ }
759
+ } finally {
760
+ disposeSafe(enumerator);
761
+ }
762
+ let enumerator_1 = getEnumerator(WorkflowConversion_resolvedRunsOf_30922B92(processingUnit_1));
763
+ try {
764
+ while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
765
+ const forLoopVar_1 = enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
766
+ const option_1 = WorkflowConversion_tryResolveFileReference(filePath, forLoopVar_1[0]);
767
+ if (option_1 != null) {
768
+ visit(option_1, forLoopVar_1[1]);
769
+ }
770
+ }
771
+ } finally {
772
+ disposeSafe(enumerator_1);
773
+ }
774
+ }
775
+ };
776
+ visit(mainPath, processingUnit);
777
+ return paths;
778
+ }
779
+ function WorkflowConversion_composeReferencedFiles_Z7F3BB4EE(cwlFilePath, processingUnit, fs, parts) {
780
+ const partPaths = /* @__PURE__ */ new Set([]);
781
+ const enumerator = getEnumerator(parts);
782
+ try {
783
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
784
+ const part = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
785
+ addToSet(normalize(part.Id), partPaths);
786
+ }
787
+ } finally {
788
+ disposeSafe(enumerator);
789
+ }
790
+ return ResizeArray_map((path_1) => LDFile.create(path_1), ResizeArray_filter((path) => !partPaths.has(path), WorkflowConversion_getReferencedFilePaths_589B7F6(cwlFilePath, processingUnit, fs)));
791
+ }
353
792
  function WorkflowConversion_composeWorkflowProtocolFromToolDescription_7B8357DA(filePath, workflow, workflowName, runName) {
793
+ let arg = void 0;
354
794
  let inputs;
355
795
  const option_1 = workflow.Inputs;
356
- inputs = option_1 != null ? ResizeArray_map((i) => WorkflowConversion_composeFormalParameterFromInput_Z7A02DED7(i, unwrap(workflowName), unwrap(runName)), value(option_1)) : void 0;
357
- const outputs = ResizeArray_map((o) => WorkflowConversion_composeFormalParameterFromOutput_Z25C7EC80(o, unwrap(workflowName), unwrap(runName)), workflow.Outputs);
796
+ inputs = option_1 != null ? (arg = option_1, ResizeArray_map((i) => WorkflowConversion_composeFormalParameterFromInput_Z7A02DED7(i, unwrap(workflowName), unwrap(runName)), ListEntry$1.values(arg))) : void 0;
797
+ const outputs = ResizeArray_map((o) => WorkflowConversion_composeFormalParameterFromOutput_Z25C7EC80(o, unwrap(workflowName), unwrap(runName)), ListEntry$1.values(workflow.Outputs));
358
798
  return LDWorkflowProtocol.create(filePath, unwrap(inputs), outputs, void 0, void 0, void 0, filePath, ResizeArray_singleton(LDComputerLanguage.createCWL()), void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, [WorkflowConversion_get_toolDescriptionTypeName()]);
359
799
  }
360
800
  function WorkflowConversion_decomposeWorkflowProtocolToToolDescription_2664C4B8(protocol, context, graph) {
361
801
  const inputs = ResizeArray_map((i) => WorkflowConversion_decomposeInputFromFormalParameter_2664C4B8(i, unwrap(context), unwrap(graph)), LDComputationalWorkflow.getInputsAsFormalParameters(protocol, unwrap(graph), unwrap(context)));
362
- return new CWLToolDescription(ResizeArray_map((o) => WorkflowConversion_decomposeOutputFromFormalParameter_2664C4B8(o, unwrap(context), unwrap(graph)), LDComputationalWorkflow.getOutputsAsFormalParameter(protocol, unwrap(graph), unwrap(context))), void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, inputs);
802
+ const outputs = ResizeArray_map((o) => WorkflowConversion_decomposeOutputFromFormalParameter_2664C4B8(o, unwrap(context), unwrap(graph)), LDComputationalWorkflow.getOutputsAsFormalParameter(protocol, unwrap(graph), unwrap(context)));
803
+ return new CWLToolDescription(ListEntry$1.ofValues(outputs), void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ListEntry$1.ofValues(inputs));
363
804
  }
364
805
  function WorkflowConversion_composeWorkflowProtocolFromExpressionToolDescription_Z7BEB6658(filePath, expressionTool, workflowName, runName) {
806
+ let arg = void 0;
365
807
  let inputs;
366
808
  const option_1 = expressionTool.Inputs;
367
- inputs = option_1 != null ? ResizeArray_map((i) => WorkflowConversion_composeFormalParameterFromInput_Z7A02DED7(i, unwrap(workflowName), unwrap(runName)), value(option_1)) : void 0;
368
- const outputs = ResizeArray_map((o) => WorkflowConversion_composeFormalParameterFromOutput_Z25C7EC80(o, unwrap(workflowName), unwrap(runName)), expressionTool.Outputs);
809
+ inputs = option_1 != null ? (arg = option_1, ResizeArray_map((i) => WorkflowConversion_composeFormalParameterFromInput_Z7A02DED7(i, unwrap(workflowName), unwrap(runName)), ListEntry$1.values(arg))) : void 0;
810
+ const outputs = ResizeArray_map((o) => WorkflowConversion_composeFormalParameterFromOutput_Z25C7EC80(o, unwrap(workflowName), unwrap(runName)), ListEntry$1.values(expressionTool.Outputs));
369
811
  const protocol = LDWorkflowProtocol.create(filePath, unwrap(inputs), outputs, void 0, void 0, void 0, filePath, ResizeArray_singleton(LDComputerLanguage.createCWL()), void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, [WorkflowConversion_get_expressionToolDescriptionTypeName()]);
370
- LDLabProtocol.setDescriptionAsString(protocol, expressionTool.Expression);
812
+ LDLabProtocol.setDescriptionAsString(protocol, expressionTool.Expression.AsDirectiveString);
371
813
  return protocol;
372
814
  }
373
815
  function WorkflowConversion_decomposeWorkflowProtocolToExpressionToolDescription_2664C4B8(protocol, context, graph) {
374
816
  const inputs = ResizeArray_map((i) => WorkflowConversion_decomposeInputFromFormalParameter_2664C4B8(i, unwrap(context), unwrap(graph)), LDComputationalWorkflow.getInputsAsFormalParameters(protocol, unwrap(graph), unwrap(context)));
375
- return new CWLExpressionToolDescription(ResizeArray_map((o) => WorkflowConversion_decomposeOutputFromFormalParameter_2664C4B8(o, unwrap(context), unwrap(graph)), LDComputationalWorkflow.getOutputsAsFormalParameter(protocol, unwrap(graph), unwrap(context))), defaultArg(LDLabProtocol.tryGetDescriptionAsString(protocol, unwrap(context)), "$(null)"), void 0, void 0, void 0, void 0, inputs);
817
+ const outputs = ResizeArray_map((o) => WorkflowConversion_decomposeOutputFromFormalParameter_2664C4B8(o, unwrap(context), unwrap(graph)), LDComputationalWorkflow.getOutputsAsFormalParameter(protocol, unwrap(graph), unwrap(context)));
818
+ const expression = defaultArg(LDLabProtocol.tryGetDescriptionAsString(protocol, unwrap(context)), "$(null)");
819
+ return new CWLExpressionToolDescription(ListEntry$1.ofValues(outputs), SchemaSaladString_Literal(expression), void 0, void 0, void 0, void 0, ListEntry$1.ofValues(inputs));
376
820
  }
377
821
  function WorkflowConversion_composeWorkflowProtocolFromOperationDescription_Z75DE0D49(filePath, operation, workflowName, runName) {
378
- const inputs = ResizeArray_map((i) => WorkflowConversion_composeFormalParameterFromInput_Z7A02DED7(i, unwrap(workflowName), unwrap(runName)), operation.Inputs);
379
- const outputs = ResizeArray_map((o) => WorkflowConversion_composeFormalParameterFromOutput_Z25C7EC80(o, unwrap(workflowName), unwrap(runName)), operation.Outputs);
822
+ const inputs = ResizeArray_map((i) => WorkflowConversion_composeFormalParameterFromInput_Z7A02DED7(i, unwrap(workflowName), unwrap(runName)), ListEntry$1.values(operation.Inputs));
823
+ const outputs = ResizeArray_map((o) => WorkflowConversion_composeFormalParameterFromOutput_Z25C7EC80(o, unwrap(workflowName), unwrap(runName)), ListEntry$1.values(operation.Outputs));
380
824
  return LDWorkflowProtocol.create(filePath, inputs, outputs, void 0, void 0, void 0, filePath, ResizeArray_singleton(LDComputerLanguage.createCWL()), void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, [WorkflowConversion_get_operationDescriptionTypeName()]);
381
825
  }
382
826
  function WorkflowConversion_decomposeWorkflowProtocolToOperationDescription_2664C4B8(protocol, context, graph) {
383
- return new CWLOperationDescription(ResizeArray_map((i) => WorkflowConversion_decomposeInputFromFormalParameter_2664C4B8(i, unwrap(context), unwrap(graph)), LDComputationalWorkflow.getInputsAsFormalParameters(protocol, unwrap(graph), unwrap(context))), ResizeArray_map((o) => WorkflowConversion_decomposeOutputFromFormalParameter_2664C4B8(o, unwrap(context), unwrap(graph)), LDComputationalWorkflow.getOutputsAsFormalParameter(protocol, unwrap(graph), unwrap(context))));
384
- }
385
- function WorkflowConversion_composeWorkflowStep_Z35AB9E5D(step, workflowID) {
386
- const id = `WorkflowStep_${workflowID}_${step.Id}`;
387
- const cw = LDComputationalWorkflow.create(id, void 0, void 0, void 0, void 0, void 0, step.Id);
388
- LDDataset.setIdentifierAsString(cw, WorkflowConversion_runToIdentifier_Z4EBA8CB1(step.Run));
827
+ const inputs = ResizeArray_map((i) => WorkflowConversion_decomposeInputFromFormalParameter_2664C4B8(i, unwrap(context), unwrap(graph)), LDComputationalWorkflow.getInputsAsFormalParameters(protocol, unwrap(graph), unwrap(context)));
828
+ const outputs = ResizeArray_map((o) => WorkflowConversion_decomposeOutputFromFormalParameter_2664C4B8(o, unwrap(context), unwrap(graph)), LDComputationalWorkflow.getOutputsAsFormalParameter(protocol, unwrap(graph), unwrap(context)));
829
+ return new CWLOperationDescription(ListEntry$1.ofValues(inputs), ListEntry$1.ofValues(outputs));
830
+ }
831
+ function WorkflowConversion_composeWorkflowStep_4F8B7302(step, filePath, position) {
832
+ let id;
833
+ const matchValue = step.Id;
834
+ id = matchValue == null ? position == null ? void 0 : `WorkflowStep_${filePath}?position=${position}` : concat("WorkflowStep_", filePath, "_", matchValue);
835
+ const cw = LDComputationalWorkflow.create(unwrap(id), void 0, void 0, void 0, void 0, void 0, unwrap(step.Id));
836
+ const option_1 = WorkflowConversion_runToIdentifier_Z4E98F2C(filePath, step.Run);
837
+ if (option_1 != null) {
838
+ const identifier = option_1;
839
+ LDDataset.setIdentifierAsString(cw, identifier);
840
+ }
389
841
  return cw;
390
842
  }
391
843
  function WorkflowConversion_composeWorkflowProtocolFromWorkflow_Z6FBB852F(filePath, workflow, workflowName, runName) {
392
- const inputs = ResizeArray_map((i) => WorkflowConversion_composeFormalParameterFromInput_Z7A02DED7(i, unwrap(workflowName), unwrap(runName)), workflow.Inputs);
393
- const outputs = ResizeArray_map((o) => WorkflowConversion_composeFormalParameterFromOutput_Z25C7EC80(o, unwrap(workflowName), unwrap(runName)), workflow.Outputs);
394
- const steps = ResizeArray_map((s) => WorkflowConversion_composeWorkflowStep_Z35AB9E5D(s, filePath), workflow.Steps);
844
+ const inputs = ResizeArray_map((i) => WorkflowConversion_composeFormalParameterFromInput_Z7A02DED7(i, unwrap(workflowName), unwrap(runName)), ListEntry$1.values(workflow.Inputs));
845
+ const outputs = ResizeArray_map((o) => WorkflowConversion_composeFormalParameterFromOutput_Z25C7EC80(o, unwrap(workflowName), unwrap(runName)), ListEntry$1.values(workflow.Outputs));
846
+ let steps;
847
+ const collection = mapIndexed((position, s) => WorkflowConversion_composeWorkflowStep_4F8B7302(s, filePath, position), ListEntry$1.values(workflow.Steps));
848
+ steps = Array.from(collection);
395
849
  return LDWorkflowProtocol.create(filePath, inputs, outputs, void 0, void 0, void 0, filePath, ResizeArray_singleton(LDComputerLanguage.createCWL()), void 0, void 0, void 0, void 0, steps, void 0, void 0, void 0, [WorkflowConversion_get_workflowDescriptionTypeName()]);
396
850
  }
397
851
  function WorkflowConversion_decomposeWorkflowStep_77DD0449(step, workflowFilePath, resolveRunReferences, context, graph) {
398
- let initialRun = void 0;
399
- return new WorkflowStep(LDComputationalWorkflow.getNameAsString(step, unwrap(context)), [], [], (initialRun = WorkflowStepRun_RunString(LDDataset.getIdentifierAsString(step, unwrap(context))), !defaultArg(resolveRunReferences, true) ? initialRun : workflowFilePath == null ? initialRun : resolveWorkflowStepRunFromLookup(value(workflowFilePath), initialRun, (runPath) => WorkflowConversion_tryDecodeProcessingUnitFromGraph_Z5AC69418(runPath, unwrap(graph), unwrap(context)))));
852
+ const name = LDComputationalWorkflow.tryGetNameAsString(step, unwrap(context));
853
+ const identifier = LDDataset.getIdentifierAsString(step, unwrap(context));
854
+ const runString = workflowFilePath == null ? identifier : WorkflowConversion_identifierToRun_Z384F8060(workflowFilePath, identifier);
855
+ const shouldResolveRunReferences = defaultArg(resolveRunReferences, true);
856
+ const workflowStep = new WorkflowStep(name, [], [], WorkflowStepRun_RunString(runString));
857
+ let matchResult = void 0, path_2 = void 0;
858
+ if (workflowFilePath != null) {
859
+ if (workflowFilePath, shouldResolveRunReferences) {
860
+ matchResult = 0;
861
+ path_2 = workflowFilePath;
862
+ } else {
863
+ matchResult = 1;
864
+ }
865
+ } else {
866
+ matchResult = 1;
867
+ }
868
+ switch (matchResult) {
869
+ case 0: {
870
+ resolveWorkflowStepFromLookup(path_2, workflowStep, (runPath) => WorkflowConversion_tryDecodeProcessingUnitFromGraph_Z5AC69418(runPath, unwrap(graph), unwrap(context)));
871
+ break;
872
+ }
873
+ }
874
+ return workflowStep;
400
875
  }
401
876
  function WorkflowConversion_decomposeWorkflowProtocolToWorkflow_ZB11202F(protocol, resolveRunReferences, context, graph) {
877
+ let collection = void 0;
402
878
  const workflowFilePath = defaultArg(LDDataset.tryGetIdentifierAsString(protocol, unwrap(context)), protocol.Id);
403
879
  const shouldResolveRunReferences = defaultArg(resolveRunReferences, true);
404
880
  const inputs = ResizeArray_map((i) => WorkflowConversion_decomposeInputFromFormalParameter_2664C4B8(i, unwrap(context), unwrap(graph)), LDComputationalWorkflow.getInputsAsFormalParameters(protocol, unwrap(graph), unwrap(context)));
405
881
  const outputs = ResizeArray_map((o) => WorkflowConversion_decomposeOutputFromFormalParameter_2664C4B8(o, unwrap(context), unwrap(graph)), LDComputationalWorkflow.getOutputsAsFormalParameter(protocol, unwrap(graph), unwrap(context)));
406
- return new CWLWorkflowDescription(ResizeArray_map((s) => WorkflowConversion_decomposeWorkflowStep_77DD0449(s, workflowFilePath, shouldResolveRunReferences, unwrap(context), unwrap(graph)), LDComputationalWorkflow.getHasPart(protocol, unwrap(graph), unwrap(context))), inputs, outputs);
882
+ const steps = ResizeArray_map((s_1) => WorkflowConversion_decomposeWorkflowStep_77DD0449(s_1, workflowFilePath, shouldResolveRunReferences, unwrap(context), unwrap(graph)), (collection = filter((s) => LDDataset.tryGetIdentifierAsString(s, unwrap(context)) != null, LDComputationalWorkflow.getHasPart(protocol, unwrap(graph), unwrap(context))), Array.from(collection)));
883
+ return new CWLWorkflowDescription(ListEntry$1.ofValues(steps), ListEntry$1.ofValues(inputs), ListEntry$1.ofValues(outputs));
407
884
  }
408
885
  function WorkflowConversion_composeWorkflowProtocolFromProcessingUnit_Z3099C0F7(filePath, pu, workflowName, runName) {
409
886
  switch (pu.tag) {
@@ -416,6 +893,9 @@ function WorkflowConversion_composeWorkflowProtocolFromProcessingUnit_Z3099C0F7(
416
893
  case /* Operation */
417
894
  3:
418
895
  return WorkflowConversion_composeWorkflowProtocolFromOperationDescription_Z75DE0D49(filePath, pu.fields[0], unwrap(workflowName), unwrap(runName));
896
+ case /* RawProcess */
897
+ 4:
898
+ return WorkflowConversion_composeWorkflowProtocolFromToolDescription_7B8357DA(filePath, new CWLToolDescription([]), unwrap(workflowName), unwrap(runName));
419
899
  default:
420
900
  return WorkflowConversion_composeWorkflowProtocolFromToolDescription_7B8357DA(filePath, pu.fields[0], unwrap(workflowName), unwrap(runName));
421
901
  }
@@ -433,28 +913,31 @@ function WorkflowConversion_decomposeWorkflowProtocolToProcessingUnit_ZB11202F(p
433
913
  return CWLProcessingUnit_CommandLineTool(WorkflowConversion_decomposeWorkflowProtocolToToolDescription_2664C4B8(protocol, unwrap(context), unwrap(graph)));
434
914
  }
435
915
  }
436
- function WorkflowConversion_composeWorkflow_42450E6E(workflow, fs) {
437
- let inv = void 0, option_3 = void 0;
438
- let workflowProtocol;
916
+ function WorkflowConversion_composeWorkflow_38B68F62(workflow, fs, dateCreated) {
917
+ let inv = void 0, option_6 = void 0, fs_1 = void 0;
918
+ BaseTypes_warnIfTitleEmpty_Z2FC25A28("Workflow", workflow.Identifier, workflow.Title);
439
919
  const workflowFilePath = Workflow_cwlFileNameFromIdentifier(workflow.Identifier);
920
+ let workflowProtocol;
440
921
  const matchValue = workflow.CWLDescription;
441
922
  if (matchValue == null) {
442
923
  const arg = workflow.Identifier;
443
924
  workflowProtocol = toFail(printf("Workflow %s must have a CWL description"))(arg);
444
925
  } else {
445
- workflowProtocol = WorkflowConversion_composeWorkflowProtocolFromProcessingUnit_Z3099C0F7(workflowFilePath, value(matchValue), workflow.Identifier);
926
+ workflowProtocol = WorkflowConversion_composeWorkflowProtocolFromProcessingUnit_Z3099C0F7(workflowFilePath, matchValue, workflow.Identifier);
446
927
  }
447
928
  const publisher = LDOrganization.create("DataPLANT");
448
929
  let persons;
449
930
  const option_1 = workflow.Investigation;
450
- persons = option_1 != null ? (inv = value(option_1), inv.GetAllPersons()) : void 0;
931
+ persons = option_1 != null ? (inv = option_1, inv.GetAllPersons()) : void 0;
451
932
  const creators = Option_fromSeq(ResizeArray_map((c) => PersonConversion_composePerson_2B0BECCC(c, unwrap(persons)), workflow.Contacts));
452
- const dateCreated = utcNow();
933
+ let dateCreated_1;
934
+ let copyOfStruct = defaultArg(dateCreated, utcNow());
935
+ dateCreated_1 = toUniversalTime(copyOfStruct);
453
936
  if (creators != null) {
454
937
  LDComputationalWorkflow.setCreators(workflowProtocol, value(creators));
455
938
  }
456
939
  LDComputationalWorkflow.setSdPublisher(workflowProtocol, publisher);
457
- LDComputationalWorkflow.setDateCreatedAsDateTime(workflowProtocol, dateCreated);
940
+ LDComputationalWorkflow.setDateCreatedAsDateTime(workflowProtocol, dateCreated_1);
458
941
  if (workflow.Version != null) {
459
942
  LDLabProtocol.setVersionAsString(workflowProtocol, value(workflow.Version));
460
943
  }
@@ -465,30 +948,39 @@ function WorkflowConversion_composeWorkflow_42450E6E(workflow, fs) {
465
948
  const intendedUse = BaseTypes_composeDefinedTerm_ZDED3A0F(value(workflow.WorkflowType));
466
949
  LDLabProtocol.setIntendedUseAsDefinedTerm(workflowProtocol, intendedUse);
467
950
  }
468
- const dataFiles = ResizeArray_choose((df) => LDPropertyValue.tryGetSubjectOf(df), defaultArg((option_3 = workflow.Datamap, option_3 != null ? DatamapConversion_composeFragmentDescriptors_Z892BFC3(value(option_3)) : void 0), []));
951
+ let fragmentDescriptors;
952
+ const option_3 = workflow.Datamap;
953
+ fragmentDescriptors = option_3 != null ? DatamapConversion_composeFragmentDescriptors_Z892BFC3(option_3) : void 0;
954
+ const dataFiles = ResizeArray_choose((df) => LDPropertyValue.tryGetSubjectOf(df), defaultArg(fragmentDescriptors, []));
469
955
  if (workflow.Components.length > 0) {
470
956
  const softwareTools = ResizeArray_map(WorkflowConversion_composeComputationalTool_Z685B8F25, workflow.Components);
471
957
  LDLabProtocol.setComputationalTools(workflowProtocol, softwareTools);
472
958
  }
473
- const hasParts = dataFiles.length === 0 ? ResizeArray_singleton(workflowProtocol) : ResizeArray_appendSingleton(workflowProtocol, dataFiles);
959
+ const ownParts = dataFiles.length === 0 ? ResizeArray_singleton(workflowProtocol) : ResizeArray_appendSingleton(workflowProtocol, dataFiles);
960
+ const hasParts = ResizeArray_append(ownParts, defaultArg((option_6 = fs, option_6 != null ? (fs_1 = option_6, WorkflowConversion_composeReferencedFiles_Z7F3BB4EE(workflowFilePath, value(workflow.CWLDescription), fs_1, ownParts)) : void 0), []));
474
961
  const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, workflow.Comments));
475
- return LDDataset.createARCWorkflow(workflow.Identifier, ResizeArray_singleton(workflowProtocol), void 0, unwrap(workflow.Title), unwrap(workflow.Description), unwrap(creators), unwrap(hasParts), unwrap(comments));
962
+ const arcWorkflow = LDDataset.createARCWorkflow(workflow.Identifier, ResizeArray_singleton(workflowProtocol), void 0, unwrap(workflow.Title), unwrap(workflow.Description), unwrap(creators), unwrap(hasParts), unwrap(comments));
963
+ const option_9 = fragmentDescriptors;
964
+ if (option_9 != null) {
965
+ const fds = option_9;
966
+ LDDataset.setVariableMeasuredAsPropertyValues(arcWorkflow, fds);
967
+ }
968
+ return arcWorkflow;
476
969
  }
477
970
  function WorkflowConversion_decomposeWorkflow_Z6839B9E8(workflow, graph, context) {
478
971
  const workflowProtocol = find((me) => LDComputationalWorkflow.validate(me, unwrap(context)), LDDataset.getMainEntities(workflow, unwrap(graph), unwrap(context)));
479
- const cwlDescription = WorkflowConversion_decomposeWorkflowProtocolToProcessingUnit_ZB11202F(workflowProtocol, void 0, unwrap(context), unwrap(graph));
480
972
  const version = LDLabProtocol.tryGetVersionAsString(workflowProtocol, unwrap(context));
481
973
  const uri = LDLabProtocol.tryGetUrl(workflowProtocol, unwrap(context));
482
974
  let workflowType;
483
975
  const option_1 = LDLabProtocol.tryGetIntendedUseAsDefinedTerm(workflowProtocol, unwrap(graph), unwrap(context));
484
- workflowType = option_1 != null ? BaseTypes_decomposeDefinedTerm_Z2F770004(value(option_1), unwrap(context)) : void 0;
976
+ workflowType = option_1 != null ? BaseTypes_decomposeDefinedTerm_Z2F770004(option_1, unwrap(context)) : void 0;
485
977
  const components = ResizeArray_map((ct) => WorkflowConversion_decomposeComputationalTool_Z6839B9E8(ct, unwrap(graph), unwrap(context)), LDLabProtocol.getComputationalTools(workflowProtocol, unwrap(graph), unwrap(context)));
486
978
  const contacts = ResizeArray_map((c) => PersonConversion_decomposePerson_Z6839B9E8(c, unwrap(graph), unwrap(context)), LDDataset.getCreators(workflow, unwrap(graph), unwrap(context)));
487
979
  const comments = ResizeArray_map((c_1) => BaseTypes_decomposeComment_Z2F770004(c_1, unwrap(context)), LDDataset.getComments(workflow, unwrap(graph), unwrap(context)));
488
980
  let datamap;
489
981
  const v = DatamapConversion_decomposeFragmentDescriptors_Z6E59645F(LDDataset.getVariableMeasuredAsFragmentDescriptors(workflow, unwrap(graph), unwrap(context)), unwrap(graph), unwrap(context));
490
982
  datamap = Option_fromValueWithDefault(Datamap.init(), v);
491
- return ArcWorkflow.create(LDDataset.getIdentifierAsString(workflow, unwrap(context)), unwrap(LDDataset.tryGetNameAsString(workflow, unwrap(context))), unwrap(LDDataset.tryGetDescriptionAsString(workflow, unwrap(context))), unwrap(workflowType), unwrap(uri), unwrap(version), void 0, void 0, components, unwrap(datamap), contacts, cwlDescription, comments);
983
+ return ArcWorkflow.create(LDDataset.getIdentifierAsString(workflow, unwrap(context)), unwrap(LDDataset.tryGetNameAsString(workflow, unwrap(context))), unwrap(LDDataset.tryGetDescriptionAsString(workflow, unwrap(context))), unwrap(workflowType), unwrap(uri), unwrap(version), void 0, void 0, components, unwrap(datamap), contacts, void 0, comments);
492
984
  }
493
985
 
494
- export { WorkflowConversion, WorkflowConversion_$reflection, WorkflowConversion_composeAdditionalType_Z5C31A0F9, WorkflowConversion_composeComputationalTool_Z685B8F25, WorkflowConversion_composeFormalParamInputIdentifiers, WorkflowConversion_composeFormalParameterFromInput_Z7A02DED7, WorkflowConversion_composeFormalParameterFromOutput_Z25C7EC80, WorkflowConversion_composeFormalParameterOutputIdentifiers_6DFDD678, WorkflowConversion_composeWorkflowProtocolFromExpressionToolDescription_Z7BEB6658, WorkflowConversion_composeWorkflowProtocolFromOperationDescription_Z75DE0D49, WorkflowConversion_composeWorkflowProtocolFromProcessingUnit_Z3099C0F7, WorkflowConversion_composeWorkflowProtocolFromToolDescription_7B8357DA, WorkflowConversion_composeWorkflowProtocolFromWorkflow_Z6FBB852F, WorkflowConversion_composeWorkflowStep_Z35AB9E5D, WorkflowConversion_composeWorkflow_42450E6E, WorkflowConversion_decomposeAdditionalType_Z721C83C5, WorkflowConversion_decomposeComputationalTool_Z6839B9E8, WorkflowConversion_decomposeInputBindings_1AAAE9A5, WorkflowConversion_decomposeInputFromFormalParameter_2664C4B8, WorkflowConversion_decomposeOutputBindings_1AAAE9A5, WorkflowConversion_decomposeOutputFromFormalParameter_2664C4B8, WorkflowConversion_decomposeWorkflowProtocolToExpressionToolDescription_2664C4B8, WorkflowConversion_decomposeWorkflowProtocolToOperationDescription_2664C4B8, WorkflowConversion_decomposeWorkflowProtocolToProcessingUnit_ZB11202F, WorkflowConversion_decomposeWorkflowProtocolToToolDescription_2664C4B8, WorkflowConversion_decomposeWorkflowProtocolToWorkflow_ZB11202F, WorkflowConversion_decomposeWorkflowStep_77DD0449, WorkflowConversion_decomposeWorkflow_Z6839B9E8, WorkflowConversion_getInputParametersFromProcessingUnit_30922B92, WorkflowConversion_get_expressionToolDescriptionTypeName, WorkflowConversion_get_operationDescriptionTypeName, WorkflowConversion_get_toolDescriptionTypeName, WorkflowConversion_get_workflowDescriptionTypeName, WorkflowConversion_runToIdentifier_Z4EBA8CB1, WorkflowConversion_tryDecodeProcessingUnitFromGraph_Z5AC69418 };
986
+ export { WorkflowConversion, WorkflowConversion_$reflection, WorkflowConversion_composeAdditionalType_Z5C31A0F9, WorkflowConversion_composeComputationalTool_Z685B8F25, WorkflowConversion_composeFormalParamInputIdentifiers, WorkflowConversion_composeFormalParameterFromInput_Z7A02DED7, WorkflowConversion_composeFormalParameterFromOutput_Z25C7EC80, WorkflowConversion_composeFormalParameterOutputIdentifiers_A254C9D, WorkflowConversion_composeReferencedFiles_Z7F3BB4EE, WorkflowConversion_composeWorkflowProtocolFromExpressionToolDescription_Z7BEB6658, WorkflowConversion_composeWorkflowProtocolFromOperationDescription_Z75DE0D49, WorkflowConversion_composeWorkflowProtocolFromProcessingUnit_Z3099C0F7, WorkflowConversion_composeWorkflowProtocolFromToolDescription_7B8357DA, WorkflowConversion_composeWorkflowProtocolFromWorkflow_Z6FBB852F, WorkflowConversion_composeWorkflowStep_4F8B7302, WorkflowConversion_composeWorkflow_38B68F62, WorkflowConversion_decomposeAdditionalType_Z721C83C5, WorkflowConversion_decomposeComputationalTool_Z6839B9E8, WorkflowConversion_decomposeInputBindings_1AAAE9A5, WorkflowConversion_decomposeInputFromFormalParameter_2664C4B8, WorkflowConversion_decomposeOutputBindings_1AAAE9A5, WorkflowConversion_decomposeOutputFromFormalParameter_2664C4B8, WorkflowConversion_decomposeWorkflowProtocolToExpressionToolDescription_2664C4B8, WorkflowConversion_decomposeWorkflowProtocolToOperationDescription_2664C4B8, WorkflowConversion_decomposeWorkflowProtocolToProcessingUnit_ZB11202F, WorkflowConversion_decomposeWorkflowProtocolToToolDescription_2664C4B8, WorkflowConversion_decomposeWorkflowProtocolToWorkflow_ZB11202F, WorkflowConversion_decomposeWorkflowStep_77DD0449, WorkflowConversion_decomposeWorkflow_Z6839B9E8, WorkflowConversion_getInputParametersFromProcessingUnit_30922B92, WorkflowConversion_getReferencedFilePaths_589B7F6, WorkflowConversion_get_expressionToolDescriptionTypeName, WorkflowConversion_get_operationDescriptionTypeName, WorkflowConversion_get_toolDescriptionTypeName, WorkflowConversion_get_workflowDescriptionTypeName, WorkflowConversion_identifierToRun_Z384F8060, WorkflowConversion_runToIdentifier_Z4E98F2C, WorkflowConversion_tryDecodeProcessingUnitFromGraph_Z5AC69418 };