@nfdi4plants/arctrl 3.0.0-beta.9 → 3.0.1

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 (297) hide show
  1. package/README.md +30 -3
  2. package/dist/ts/index.d.ts +54 -16
  3. package/dist/ts/index.d.ts.map +1 -1
  4. package/dist/ts/index.js +56 -18
  5. package/dist/ts/ts/ARC.d.ts +26 -9
  6. package/dist/ts/ts/ARC.d.ts.map +1 -1
  7. package/dist/ts/ts/ARC.js +148 -63
  8. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +62 -0
  9. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -0
  10. package/dist/ts/ts/CWL/CWLProcessingUnit.js +250 -0
  11. package/dist/ts/ts/CWL/CWLTypes.d.ts +148 -0
  12. package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -0
  13. package/dist/ts/ts/CWL/CWLTypes.js +384 -0
  14. package/dist/ts/ts/CWL/Decode.d.ts +214 -0
  15. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -0
  16. package/dist/ts/ts/CWL/Decode.js +2667 -0
  17. package/dist/ts/ts/CWL/Encode.d.ts +103 -0
  18. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -0
  19. package/dist/ts/ts/CWL/Encode.js +1513 -0
  20. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +50 -0
  21. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -0
  22. package/dist/ts/ts/CWL/ExpressionToolDescription.js +152 -0
  23. package/dist/ts/ts/CWL/HashHelpers.d.ts +9 -0
  24. package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -0
  25. package/dist/ts/ts/CWL/HashHelpers.js +35 -0
  26. package/dist/ts/ts/CWL/Inputs.d.ts +31 -0
  27. package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -0
  28. package/dist/ts/ts/CWL/Inputs.js +86 -0
  29. package/dist/ts/ts/CWL/OperationDescription.d.ts +46 -0
  30. package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -0
  31. package/dist/ts/ts/CWL/OperationDescription.js +133 -0
  32. package/dist/ts/ts/CWL/Outputs.d.ts +44 -0
  33. package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -0
  34. package/dist/ts/ts/CWL/Outputs.js +143 -0
  35. package/dist/ts/ts/CWL/ParameterReference.d.ts +23 -0
  36. package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -0
  37. package/dist/ts/ts/CWL/ParameterReference.js +60 -0
  38. package/dist/ts/ts/CWL/Requirements.d.ts +206 -0
  39. package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -0
  40. package/dist/ts/ts/CWL/Requirements.js +384 -0
  41. package/dist/ts/ts/CWL/ToolDescription.d.ts +50 -0
  42. package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -0
  43. package/dist/ts/ts/CWL/ToolDescription.js +152 -0
  44. package/dist/ts/ts/CWL/WorkflowDescription.d.ts +50 -0
  45. package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -0
  46. package/dist/ts/ts/CWL/WorkflowDescription.js +142 -0
  47. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +160 -0
  48. package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -0
  49. package/dist/ts/ts/CWL/WorkflowSteps.js +317 -0
  50. package/dist/ts/ts/CWLRunResolver.d.ts +45 -0
  51. package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -0
  52. package/dist/ts/ts/CWLRunResolver.js +181 -0
  53. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  54. package/dist/ts/ts/Contract/ARC.js +27 -9
  55. package/dist/ts/ts/Contract/ArcRun.d.ts +6 -0
  56. package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
  57. package/dist/ts/ts/Contract/ArcRun.js +131 -4
  58. package/dist/ts/ts/Contract/ArcWorkflow.d.ts +3 -0
  59. package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
  60. package/dist/ts/ts/Contract/ArcWorkflow.js +70 -4
  61. package/dist/ts/ts/Contract/Datamap.d.ts +25 -25
  62. package/dist/ts/ts/Contract/Datamap.js +34 -34
  63. package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
  64. package/dist/ts/ts/ContractIO/ContractIO.js +3 -1
  65. package/dist/ts/ts/Conversion/Assay.d.ts +13 -0
  66. package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -0
  67. package/dist/ts/ts/Conversion/Assay.js +69 -0
  68. package/dist/ts/ts/Conversion/Basic.d.ts +105 -0
  69. package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -0
  70. package/dist/ts/ts/Conversion/Basic.js +452 -0
  71. package/dist/ts/ts/Conversion/ColumnIndex.d.ts +11 -0
  72. package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -0
  73. package/dist/ts/ts/Conversion/ColumnIndex.js +71 -0
  74. package/dist/ts/ts/Conversion/Datamap.d.ts +11 -0
  75. package/dist/ts/ts/Conversion/Datamap.d.ts.map +1 -0
  76. package/dist/ts/ts/Conversion/Datamap.js +21 -0
  77. package/dist/ts/ts/Conversion/DateTime.d.ts +4 -0
  78. package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -0
  79. package/dist/ts/ts/Conversion/DateTime.js +23 -0
  80. package/dist/ts/ts/Conversion/Investigation.d.ts +12 -0
  81. package/dist/ts/ts/Conversion/Investigation.d.ts.map +1 -0
  82. package/dist/ts/ts/Conversion/Investigation.js +79 -0
  83. package/dist/ts/ts/Conversion/Person.d.ts +16 -0
  84. package/dist/ts/ts/Conversion/Person.d.ts.map +1 -0
  85. package/dist/ts/ts/Conversion/Person.js +100 -0
  86. package/dist/ts/ts/Conversion/Process.d.ts +84 -0
  87. package/dist/ts/ts/Conversion/Process.d.ts.map +1 -0
  88. package/dist/ts/ts/Conversion/Process.js +455 -0
  89. package/dist/ts/ts/Conversion/Run.d.ts +35 -0
  90. package/dist/ts/ts/Conversion/Run.d.ts.map +1 -0
  91. package/dist/ts/ts/Conversion/Run.js +254 -0
  92. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts +16 -0
  93. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -0
  94. package/dist/ts/ts/Conversion/ScholarlyArticle.js +116 -0
  95. package/dist/ts/ts/Conversion/Study.d.ts +12 -0
  96. package/dist/ts/ts/Conversion/Study.d.ts.map +1 -0
  97. package/dist/ts/ts/Conversion/Study.js +51 -0
  98. package/dist/ts/ts/Conversion/Table.d.ts +45 -0
  99. package/dist/ts/ts/Conversion/Table.d.ts.map +1 -0
  100. package/dist/ts/ts/Conversion/Table.js +203 -0
  101. package/dist/ts/ts/Conversion/Workflow.d.ts +91 -0
  102. package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -0
  103. package/dist/ts/ts/Conversion/Workflow.js +455 -0
  104. package/dist/ts/ts/Conversion.d.ts +25 -276
  105. package/dist/ts/ts/Conversion.d.ts.map +1 -1
  106. package/dist/ts/ts/Conversion.js +64 -1477
  107. package/dist/ts/ts/Core/ArcTypes.d.ts +69 -59
  108. package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
  109. package/dist/ts/ts/Core/ArcTypes.js +222 -142
  110. package/dist/ts/ts/Core/{DataMap.d.ts → Datamap.d.ts} +24 -24
  111. package/dist/ts/ts/Core/{DataMap.d.ts.map → Datamap.d.ts.map} +1 -1
  112. package/dist/ts/ts/Core/{DataMap.js → Datamap.js} +36 -36
  113. package/dist/ts/ts/Core/Helper/Identifier.d.ts +24 -0
  114. package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
  115. package/dist/ts/ts/Core/Helper/Identifier.js +35 -2
  116. package/dist/ts/ts/Core/Table/ArcTable.d.ts +8 -8
  117. package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
  118. package/dist/ts/ts/Core/Table/ArcTable.js +20 -20
  119. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +4 -4
  120. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
  121. package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -27
  122. package/dist/ts/ts/FileSystem/Path.d.ts +22 -0
  123. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  124. package/dist/ts/ts/FileSystem/Path.js +173 -3
  125. package/dist/ts/ts/Json/Assay.js +5 -5
  126. package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.d.ts.map +1 -1
  127. package/dist/ts/ts/Json/{DataMap/DataMap.d.ts → Datamap/Datamap.d.ts} +6 -6
  128. package/dist/ts/ts/Json/{DataMap/DataMap.d.ts.map → Datamap/Datamap.d.ts.map} +1 -1
  129. package/dist/ts/ts/Json/{DataMap/DataMap.js → Datamap/Datamap.js} +2 -2
  130. package/dist/ts/ts/Json/ROCrate/LDContext.d.ts.map +1 -1
  131. package/dist/ts/ts/Json/ROCrate/LDContext.js +21 -11
  132. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -0
  133. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts.map +1 -1
  134. package/dist/ts/ts/Json/ROCrate/LDNode.js +18 -7
  135. package/dist/ts/ts/Json/Run.js +5 -5
  136. package/dist/ts/ts/Json/Study.js +5 -5
  137. package/dist/ts/ts/Json/Workflow.d.ts.map +1 -1
  138. package/dist/ts/ts/Json/Workflow.js +10 -11
  139. package/dist/ts/ts/Json.d.ts +3 -5
  140. package/dist/ts/ts/Json.d.ts.map +1 -1
  141. package/dist/ts/ts/Json.js +4 -10
  142. package/dist/ts/ts/JsonIO/Datamap.d.ts +4 -4
  143. package/dist/ts/ts/JsonIO/Datamap.js +6 -6
  144. package/dist/ts/ts/JsonIO/Investigation.d.ts +0 -6
  145. package/dist/ts/ts/JsonIO/Investigation.d.ts.map +1 -1
  146. package/dist/ts/ts/JsonIO/Investigation.js +2 -21
  147. package/dist/ts/ts/License.js +1 -1
  148. package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
  149. package/dist/ts/ts/ROCrate/LDContext.js +35 -31
  150. package/dist/ts/ts/ROCrate/LDObject.d.ts +2 -2
  151. package/dist/ts/ts/ROCrate/LDObject.js +2 -2
  152. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.d.ts.map +1 -1
  153. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts +63 -0
  154. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts.map +1 -0
  155. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +361 -0
  156. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.d.ts +39 -0
  157. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.d.ts.map +1 -0
  158. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +219 -0
  159. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.d.ts +43 -0
  160. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.d.ts.map +1 -0
  161. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +224 -0
  162. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.d.ts.map +1 -1
  163. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.js +1 -1
  164. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Dataset.d.ts +34 -22
  165. package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -0
  166. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Dataset.js +59 -2
  167. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.d.ts.map +1 -1
  168. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/File.d.ts +10 -4
  169. package/dist/ts/ts/ROCrate/LDTypes/File.d.ts.map +1 -0
  170. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/File.js +34 -1
  171. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.d.ts +59 -0
  172. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.d.ts.map +1 -0
  173. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +344 -0
  174. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProcess.d.ts +2 -0
  175. package/dist/ts/ts/ROCrate/LDTypes/LabProcess.d.ts.map +1 -0
  176. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProcess.js +31 -5
  177. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProtocol.d.ts +6 -2
  178. package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.d.ts.map +1 -0
  179. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProtocol.js +66 -15
  180. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.d.ts.map +1 -1
  181. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.d.ts.map +1 -1
  182. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.d.ts.map +1 -1
  183. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PropertyValue.d.ts +35 -11
  184. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -0
  185. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PropertyValue.js +191 -1
  186. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.d.ts.map +1 -1
  187. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.d.ts.map +1 -1
  188. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.d.ts +46 -0
  189. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.d.ts.map +1 -0
  190. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +247 -0
  191. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.d.ts +12 -0
  192. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.d.ts.map +1 -0
  193. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +40 -0
  194. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.d.ts +11 -0
  195. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.d.ts.map +1 -0
  196. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +46 -0
  197. package/dist/ts/ts/ROCrate/ROCrateContext.d.ts +2 -2
  198. package/dist/ts/ts/ROCrate/ROCrateContext.d.ts.map +1 -1
  199. package/dist/ts/ts/ROCrate/ROCrateContext.js +6 -6
  200. package/dist/ts/ts/ROCrateIO.d.ts +7 -3
  201. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  202. package/dist/ts/ts/ROCrateIO.js +82 -13
  203. package/dist/ts/ts/Spreadsheet/ArcAssay.js +3 -3
  204. package/dist/ts/ts/Spreadsheet/ArcRun.js +2 -2
  205. package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
  206. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +2 -2
  207. package/dist/ts/ts/Spreadsheet/Datamap.d.ts +8 -0
  208. package/dist/ts/ts/Spreadsheet/{DataMap.d.ts.map → Datamap.d.ts.map} +1 -1
  209. package/dist/ts/ts/Spreadsheet/{DataMap.js → Datamap.js} +9 -9
  210. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.d.ts → DatamapTable/DatamapColumn.d.ts} +1 -1
  211. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.d.ts.map → DatamapTable/DatamapColumn.d.ts.map} +1 -1
  212. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.js → DatamapTable/DatamapColumn.js} +1 -1
  213. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.d.ts → DatamapTable/DatamapHeader.d.ts} +1 -1
  214. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.d.ts.map → DatamapTable/DatamapHeader.d.ts.map} +1 -1
  215. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.d.ts → DatamapTable/DatamapTable.d.ts} +5 -5
  216. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.d.ts.map → DatamapTable/DatamapTable.d.ts.map} +1 -1
  217. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.js → DatamapTable/DatamapTable.js} +6 -6
  218. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +1 -1
  219. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
  220. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +4 -4
  221. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +36 -0
  222. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -0
  223. package/dist/ts/ts/WorkflowGraph/Adapters.js +94 -0
  224. package/dist/ts/ts/WorkflowGraph/BuildOptions.d.ts +37 -0
  225. package/dist/ts/ts/WorkflowGraph/BuildOptions.d.ts.map +1 -0
  226. package/dist/ts/ts/WorkflowGraph/BuildOptions.js +35 -0
  227. package/dist/ts/ts/WorkflowGraph/Builder.d.ts +160 -0
  228. package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -0
  229. package/dist/ts/ts/WorkflowGraph/Builder.js +556 -0
  230. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +182 -0
  231. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -0
  232. package/dist/ts/ts/WorkflowGraph/GraphTypes.js +281 -0
  233. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +27 -0
  234. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -0
  235. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +49 -0
  236. package/dist/ts/ts/Xlsx.d.ts +5 -5
  237. package/dist/ts/ts/Xlsx.js +1 -1
  238. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +1 -1
  239. package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
  240. package/dist/ts/ts/Yaml/ValidationPackage.js +6 -6
  241. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +1 -1
  242. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
  243. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +6 -6
  244. package/dist/ts/ts/Yaml.d.ts +24 -0
  245. package/dist/ts/ts/Yaml.d.ts.map +1 -0
  246. package/dist/ts/ts/Yaml.js +56 -0
  247. package/dist/ts/ts/fable_modules/DynamicObj.7.1.0/DynObj.fs.js +109 -0
  248. package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.4}/Encode.fs.js +9 -9
  249. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Escapes.fs.js +313 -0
  250. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/FlowToBlock.fs.js +956 -0
  251. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Interop/JsInterop.fs.js +10 -0
  252. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Persil.fs.js +562 -0
  253. package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.4}/Preprocessing.fs.js +52 -12
  254. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Reader.fs.js +1314 -0
  255. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Regex.fs.js +21 -0
  256. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/RegexActivePatterns.fs.js +313 -0
  257. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/StringBuffer.fs.js +60 -0
  258. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Writer.fs.js +391 -0
  259. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/YAMLiciousTypes.fs.js +317 -0
  260. package/package.json +1 -1
  261. package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +0 -1
  262. package/dist/ts/ts/ROCrate/Generic/File.d.ts.map +0 -1
  263. package/dist/ts/ts/ROCrate/Generic/LabProcess.d.ts.map +0 -1
  264. package/dist/ts/ts/ROCrate/Generic/LabProtocol.d.ts.map +0 -1
  265. package/dist/ts/ts/ROCrate/Generic/PropertyValue.d.ts.map +0 -1
  266. package/dist/ts/ts/Spreadsheet/DataMap.d.ts +0 -8
  267. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +0 -10
  268. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +0 -45
  269. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +0 -483
  270. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +0 -11
  271. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +0 -212
  272. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +0 -164
  273. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +0 -152
  274. /package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.d.ts +0 -0
  275. /package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.js +0 -0
  276. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.d.ts +0 -0
  277. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.js +0 -0
  278. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.d.ts +0 -0
  279. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.d.ts +0 -0
  280. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.js +0 -0
  281. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.d.ts +0 -0
  282. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.js +0 -0
  283. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.d.ts +0 -0
  284. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.js +0 -0
  285. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.d.ts +0 -0
  286. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.js +0 -0
  287. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.d.ts +0 -0
  288. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.js +0 -0
  289. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.d.ts +0 -0
  290. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.js +0 -0
  291. /package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.js → DatamapTable/DatamapHeader.js} +0 -0
  292. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/DynamicObj.fs.js +0 -0
  293. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/FableJS.fs.js +0 -0
  294. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/HashCodes.fs.js +0 -0
  295. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/PropertyHelper.fs.js +0 -0
  296. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/ReflectionUtils.fs.js +0 -0
  297. /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.4}/Decode.fs.js +0 -0
@@ -0,0 +1,94 @@
1
+ import { value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
2
+ import { ofSeq, empty as empty$1, isEmpty, tryFind } from '../../node_modules/@fable-org/fable-library-js/Map.js';
3
+ import { map, delay, append, collect, empty, singleton } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
4
+ import { normalizePathKey } from '../FileSystem/Path.js';
5
+ import { Workflow_cwlFileNameFromIdentifier, Run_cwlFileNameFromIdentifier } from '../Core/Helper/Identifier.js';
6
+ import { comparePrimitives, getEnumerator, disposeSafe } from '../../node_modules/@fable-org/fable-library-js/Util.js';
7
+ import { GraphBuildIssue_create_Z2F3B511A, GraphIssueKind_MissingCwlDescription, WorkflowGraphIndex_create_56E060E0 } from './GraphTypes.js';
8
+ import { buildWith } from './Builder.js';
9
+ import { WorkflowGraphBuildOptionsModule_withRootWorkflowFilePath, WorkflowGraphBuildOptionsModule_withRootScope, WorkflowGraphBuildOptionsModule_defaultOptions, WorkflowGraphBuildOptionsModule_withTryResolveRunPath } from './BuildOptions.js';
10
+ import { FSharpResult$2_Ok, FSharpResult$2_Error } from '../../node_modules/@fable-org/fable-library-js/Result.js';
11
+
12
+ function createCwlLookupFromInvestigation(investigation) {
13
+ if (investigation != null) {
14
+ const inv = value(investigation);
15
+ return ofSeq(map((tupledArg) => [normalizePathKey(tupledArg[0]), tupledArg[1]], delay(() => append(collect((workflow) => {
16
+ const matchValue = workflow.CWLDescription;
17
+ if (matchValue == null) {
18
+ return empty();
19
+ } else {
20
+ const cwl = value(matchValue);
21
+ return singleton([Workflow_cwlFileNameFromIdentifier(workflow.Identifier), cwl]);
22
+ }
23
+ }, inv.Workflows), delay(() => collect((run) => {
24
+ const matchValue_1 = run.CWLDescription;
25
+ if (matchValue_1 == null) {
26
+ return empty();
27
+ } else {
28
+ const cwl_1 = value(matchValue_1);
29
+ return singleton([Run_cwlFileNameFromIdentifier(run.Identifier), cwl_1]);
30
+ }
31
+ }, inv.Runs))))), {
32
+ Compare: comparePrimitives
33
+ });
34
+ } else {
35
+ return empty$1({
36
+ Compare: comparePrimitives
37
+ });
38
+ }
39
+ }
40
+ function createResolver(lookup) {
41
+ if (isEmpty(lookup)) {
42
+ return void 0;
43
+ } else {
44
+ return (path) => tryFind(normalizePathKey(path), lookup);
45
+ }
46
+ }
47
+ function createMissingDescriptionError(identifier, scopeType) {
48
+ return GraphBuildIssue_create_Z2F3B511A(GraphIssueKind_MissingCwlDescription(), `No CWLDescription available for ${scopeType} '${identifier}'.`, identifier);
49
+ }
50
+ function ofWorkflow(workflow) {
51
+ let options_2, options_1;
52
+ const matchValue = workflow.CWLDescription;
53
+ if (matchValue != null) {
54
+ const processingUnit = value(matchValue);
55
+ return FSharpResult$2_Ok(buildWith((options_2 = (options_1 = WorkflowGraphBuildOptionsModule_withRootScope(workflow.Identifier, WorkflowGraphBuildOptionsModule_defaultOptions), WorkflowGraphBuildOptionsModule_withRootWorkflowFilePath(Workflow_cwlFileNameFromIdentifier(workflow.Identifier), options_1)), WorkflowGraphBuildOptionsModule_withTryResolveRunPath(createResolver(createCwlLookupFromInvestigation(workflow.Investigation)), options_2)), processingUnit));
56
+ } else {
57
+ return FSharpResult$2_Error(createMissingDescriptionError(workflow.Identifier, "workflow"));
58
+ }
59
+ }
60
+ function ofRun(run) {
61
+ let options_2, options_1;
62
+ const matchValue = run.CWLDescription;
63
+ if (matchValue != null) {
64
+ const processingUnit = value(matchValue);
65
+ return FSharpResult$2_Ok(buildWith((options_2 = (options_1 = WorkflowGraphBuildOptionsModule_withRootScope(run.Identifier, WorkflowGraphBuildOptionsModule_defaultOptions), WorkflowGraphBuildOptionsModule_withRootWorkflowFilePath(Run_cwlFileNameFromIdentifier(run.Identifier), options_1)), WorkflowGraphBuildOptionsModule_withTryResolveRunPath(createResolver(createCwlLookupFromInvestigation(run.Investigation)), options_2)), processingUnit));
66
+ } else {
67
+ return FSharpResult$2_Error(createMissingDescriptionError(run.Identifier, "run"));
68
+ }
69
+ }
70
+ function ofInvestigation(investigation) {
71
+ const workflowGraphs = [];
72
+ const runGraphs = [];
73
+ let enumerator = getEnumerator(investigation.Workflows);
74
+ try {
75
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
76
+ const workflow = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
77
+ void workflowGraphs.push([workflow.Identifier, ofWorkflow(workflow)]);
78
+ }
79
+ } finally {
80
+ disposeSafe(enumerator);
81
+ }
82
+ let enumerator_1 = getEnumerator(investigation.Runs);
83
+ try {
84
+ while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
85
+ const run = enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
86
+ void runGraphs.push([run.Identifier, ofRun(run)]);
87
+ }
88
+ } finally {
89
+ disposeSafe(enumerator_1);
90
+ }
91
+ return WorkflowGraphIndex_create_56E060E0(workflowGraphs, runGraphs);
92
+ }
93
+
94
+ export { createCwlLookupFromInvestigation, createMissingDescriptionError, createResolver, ofInvestigation, ofRun, ofWorkflow };
@@ -0,0 +1,37 @@
1
+ import { Record } from '@fable-org/fable-library-js/Types.js';
2
+ import { Option } from '@fable-org/fable-library-js/Option.js';
3
+ import { CWLProcessingUnit_$union } from '../CWL/CWLProcessingUnit.js';
4
+ import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
5
+ export declare class WorkflowGraphBuildOptions extends Record {
6
+ readonly RootScope: string;
7
+ readonly RootWorkflowFilePath: Option<string>;
8
+ readonly TryResolveRunPath: Option<((arg0: string) => Option<CWLProcessingUnit_$union>)>;
9
+ readonly StrictUnresolvedRunReferences: boolean;
10
+ readonly ExpandNestedWorkflows: boolean;
11
+ constructor(RootScope: string, RootWorkflowFilePath: Option<string>, TryResolveRunPath: Option<((arg0: string) => Option<CWLProcessingUnit_$union>)>, StrictUnresolvedRunReferences: boolean, ExpandNestedWorkflows: boolean);
12
+ }
13
+ export declare function WorkflowGraphBuildOptions_$reflection(): TypeInfo;
14
+ export declare const WorkflowGraphBuildOptionsModule_defaultOptions: WorkflowGraphBuildOptions;
15
+ /**
16
+ * Sets the root scope name used as the top-level graph identifier.
17
+ */
18
+ export declare function WorkflowGraphBuildOptionsModule_withRootScope(rootScope: string, options: WorkflowGraphBuildOptions): WorkflowGraphBuildOptions;
19
+ /**
20
+ * Sets the file path of the root workflow CWL file, used for resolving relative run references.
21
+ */
22
+ export declare function WorkflowGraphBuildOptionsModule_withRootWorkflowFilePath(rootWorkflowFilePath: Option<string>, options: WorkflowGraphBuildOptions): WorkflowGraphBuildOptions;
23
+ /**
24
+ * Sets the optional function used to resolve CWL run path references to CWLProcessingUnit instances.
25
+ */
26
+ export declare function WorkflowGraphBuildOptionsModule_withTryResolveRunPath(tryResolveRunPath: Option<((arg0: string) => Option<CWLProcessingUnit_$union>)>, options: WorkflowGraphBuildOptions): WorkflowGraphBuildOptions;
27
+ /**
28
+ * Sets whether unresolved run references should produce diagnostic warnings.
29
+ * When true, a missing resolver or unresolvable path generates a diagnostic issue.
30
+ */
31
+ export declare function WorkflowGraphBuildOptionsModule_withStrictUnresolvedRunReferences(strict: boolean, options: WorkflowGraphBuildOptions): WorkflowGraphBuildOptions;
32
+ /**
33
+ * Sets whether nested workflows should be fully expanded in the graph.
34
+ * When true, steps in nested workflows are recursively built.
35
+ */
36
+ export declare function WorkflowGraphBuildOptionsModule_withExpandNestedWorkflows(expandNestedWorkflows: boolean, options: WorkflowGraphBuildOptions): WorkflowGraphBuildOptions;
37
+ //# sourceMappingURL=BuildOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuildOptions.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/WorkflowGraph/BuildOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAiC,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACtG,OAAO,EAAiE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAEpI,qBAAa,yBAA0B,SAAQ,MAAM;IACjD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IAC9C,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;IACzF,QAAQ,CAAC,6BAA6B,EAAE,OAAO,CAAC;IAChD,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAC;gBAC5B,SAAS,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,iBAAiB,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,6BAA6B,EAAE,OAAO,EAAE,qBAAqB,EAAE,OAAO;CAQ/N;AAED,wBAAgB,qCAAqC,IAAI,QAAQ,CAEhE;AAED,eAAO,MAAM,8CAA8C,EAAE,yBAAoG,CAAC;AAElK;;GAEG;AACH,wBAAgB,6CAA6C,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,yBAAyB,GAAG,yBAAyB,CAE9I;AAED;;GAEG;AACH,wBAAgB,wDAAwD,CAAC,oBAAoB,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,yBAAyB,GAAG,yBAAyB,CAE5K;AAED;;GAEG;AACH,wBAAgB,qDAAqD,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,yBAAyB,GAAG,yBAAyB,CAEpN;AAED;;;GAGG;AACH,wBAAgB,iEAAiE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,yBAAyB,GAAG,yBAAyB,CAEhK;AAED;;;GAGG;AACH,wBAAgB,yDAAyD,CAAC,qBAAqB,EAAE,OAAO,EAAE,OAAO,EAAE,yBAAyB,GAAG,yBAAyB,CAEvK"}
@@ -0,0 +1,35 @@
1
+ import { Record } from '../../node_modules/@fable-org/fable-library-js/Types.js';
2
+ import { CWLProcessingUnit_$reflection } from '../CWL/CWLProcessingUnit.js';
3
+ import { record_type, string_type, option_type, bool_type, lambda_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
4
+
5
+ class WorkflowGraphBuildOptions extends Record {
6
+ constructor(RootScope, RootWorkflowFilePath, TryResolveRunPath, StrictUnresolvedRunReferences, ExpandNestedWorkflows) {
7
+ super();
8
+ this.RootScope = RootScope;
9
+ this.RootWorkflowFilePath = RootWorkflowFilePath;
10
+ this.TryResolveRunPath = TryResolveRunPath;
11
+ this.StrictUnresolvedRunReferences = StrictUnresolvedRunReferences;
12
+ this.ExpandNestedWorkflows = ExpandNestedWorkflows;
13
+ }
14
+ }
15
+ function WorkflowGraphBuildOptions_$reflection() {
16
+ return record_type("ARCtrl.WorkflowGraph.WorkflowGraphBuildOptions", [], WorkflowGraphBuildOptions, () => [["RootScope", string_type], ["RootWorkflowFilePath", option_type(string_type)], ["TryResolveRunPath", option_type(lambda_type(string_type, option_type(CWLProcessingUnit_$reflection())))], ["StrictUnresolvedRunReferences", bool_type], ["ExpandNestedWorkflows", bool_type]]);
17
+ }
18
+ const WorkflowGraphBuildOptionsModule_defaultOptions = new WorkflowGraphBuildOptions("root", void 0, void 0, false, true);
19
+ function WorkflowGraphBuildOptionsModule_withRootScope(rootScope, options) {
20
+ return new WorkflowGraphBuildOptions(rootScope, options.RootWorkflowFilePath, options.TryResolveRunPath, options.StrictUnresolvedRunReferences, options.ExpandNestedWorkflows);
21
+ }
22
+ function WorkflowGraphBuildOptionsModule_withRootWorkflowFilePath(rootWorkflowFilePath, options) {
23
+ return new WorkflowGraphBuildOptions(options.RootScope, rootWorkflowFilePath, options.TryResolveRunPath, options.StrictUnresolvedRunReferences, options.ExpandNestedWorkflows);
24
+ }
25
+ function WorkflowGraphBuildOptionsModule_withTryResolveRunPath(tryResolveRunPath, options) {
26
+ return new WorkflowGraphBuildOptions(options.RootScope, options.RootWorkflowFilePath, tryResolveRunPath, options.StrictUnresolvedRunReferences, options.ExpandNestedWorkflows);
27
+ }
28
+ function WorkflowGraphBuildOptionsModule_withStrictUnresolvedRunReferences(strict, options) {
29
+ return new WorkflowGraphBuildOptions(options.RootScope, options.RootWorkflowFilePath, options.TryResolveRunPath, strict, options.ExpandNestedWorkflows);
30
+ }
31
+ function WorkflowGraphBuildOptionsModule_withExpandNestedWorkflows(expandNestedWorkflows, options) {
32
+ return new WorkflowGraphBuildOptions(options.RootScope, options.RootWorkflowFilePath, options.TryResolveRunPath, options.StrictUnresolvedRunReferences, expandNestedWorkflows);
33
+ }
34
+
35
+ export { WorkflowGraphBuildOptions, WorkflowGraphBuildOptionsModule_defaultOptions, WorkflowGraphBuildOptionsModule_withExpandNestedWorkflows, WorkflowGraphBuildOptionsModule_withRootScope, WorkflowGraphBuildOptionsModule_withRootWorkflowFilePath, WorkflowGraphBuildOptionsModule_withStrictUnresolvedRunReferences, WorkflowGraphBuildOptionsModule_withTryResolveRunPath, WorkflowGraphBuildOptions_$reflection };
@@ -0,0 +1,160 @@
1
+ import { Record } from '@fable-org/fable-library-js/Types.js';
2
+ import { PortDirection_$union, ProcessingUnitKind_$union, EdgeKind_$union, WorkflowGraphEdge, WorkflowGraphNode, GraphIssueKind_$union, WorkflowGraph } from './GraphTypes.js';
3
+ import { FSharpSet } from '@fable-org/fable-library-js/Set.js';
4
+ import { FSharpMap } from '@fable-org/fable-library-js/Map.js';
5
+ import { WorkflowStep, WorkflowStepRun_$union } from '../CWL/WorkflowSteps.js';
6
+ import { WorkflowGraphBuildOptions } from './BuildOptions.js';
7
+ import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
8
+ import { Option } from '@fable-org/fable-library-js/Option.js';
9
+ import { IEquatable } from '@fable-org/fable-library-js/Util.js';
10
+ import { DynamicObj } from '../fable_modules/DynamicObj.7.1.0/DynamicObj.fs.js';
11
+ import { FSharpList } from '@fable-org/fable-library-js/List.js';
12
+ import { CWLWorkflowDescription } from '../CWL/WorkflowDescription.js';
13
+ import { CWLToolDescription } from '../CWL/ToolDescription.js';
14
+ import { CWLExpressionToolDescription } from '../CWL/ExpressionToolDescription.js';
15
+ import { CWLOperationDescription } from '../CWL/OperationDescription.js';
16
+ import { CWLProcessingUnit_$union } from '../CWL/CWLProcessingUnit.js';
17
+ export declare class BuildState extends Record {
18
+ readonly Graph: WorkflowGraph;
19
+ NodeIds: FSharpSet<string>;
20
+ EdgeIds: FSharpSet<string>;
21
+ RunResolutionStack: FSharpSet<string>;
22
+ RunResolutionCache: FSharpMap<string, WorkflowStepRun_$union>;
23
+ RunNodeCache: FSharpMap<string, string>;
24
+ readonly Options: WorkflowGraphBuildOptions;
25
+ constructor(Graph: WorkflowGraph, NodeIds: FSharpSet<string>, EdgeIds: FSharpSet<string>, RunResolutionStack: FSharpSet<string>, RunResolutionCache: FSharpMap<string, WorkflowStepRun_$union>, RunNodeCache: FSharpMap<string, string>, Options: WorkflowGraphBuildOptions);
26
+ }
27
+ export declare function BuildState_$reflection(): TypeInfo;
28
+ export declare class RunResolutionResult extends Record implements IEquatable<RunResolutionResult> {
29
+ readonly ResolvedRun: WorkflowStepRun_$union;
30
+ readonly ResolvedFromPath: Option<string>;
31
+ readonly AttemptedLookup: boolean;
32
+ readonly ResolutionPathKeys: string[];
33
+ constructor(ResolvedRun: WorkflowStepRun_$union, ResolvedFromPath: Option<string>, AttemptedLookup: boolean, ResolutionPathKeys: string[]);
34
+ }
35
+ export declare function RunResolutionResult_$reflection(): TypeInfo;
36
+ /**
37
+ * Creates an empty WorkflowGraph with the given root node ID.
38
+ */
39
+ export declare function createGraph(rootNodeId: string): WorkflowGraph;
40
+ /**
41
+ * Creates initial build state from options and root node ID.
42
+ */
43
+ export declare function createState(options: WorkflowGraphBuildOptions, rootNodeId: string): BuildState;
44
+ /**
45
+ * Appends a diagnostic issue to the graph's diagnostics list.
46
+ */
47
+ export declare function addDiagnostic(state: BuildState, kind: GraphIssueKind_$union, message: string, scope: Option<string>, reference: Option<string>): void;
48
+ /**
49
+ * Checks if a node ID is already registered in the build state.
50
+ */
51
+ export declare function hasNode(state: BuildState, nodeId: string): boolean;
52
+ /**
53
+ * Adds a node to the graph if not already present.
54
+ */
55
+ export declare function addNode(state: BuildState, node: WorkflowGraphNode): void;
56
+ /**
57
+ * Adds an edge to the graph if not already present.
58
+ */
59
+ export declare function addEdge(state: BuildState, edge: WorkflowGraphEdge): void;
60
+ /**
61
+ * Creates and adds an edge with a given kind, source, target, and optional label.
62
+ */
63
+ export declare function addEdgeByType(state: BuildState, kind: EdgeKind_$union, sourceNodeId: string, targetNodeId: string, label: Option<string>): void;
64
+ /**
65
+ * Builds a DynamicObj metadata instance from key-value pairs where values are present.
66
+ */
67
+ export declare function createMetadata(pairs: FSharpList<[string, Option<any>]>): Option<DynamicObj>;
68
+ /**
69
+ * Creates and adds a processing unit node to the graph. Returns the node ID.
70
+ */
71
+ export declare function addProcessingUnitNode(state: BuildState, scope: string, kind: ProcessingUnitKind_$union, label: string, ownerNodeId: Option<string>, reference: Option<string>, metadata: Option<DynamicObj>): string;
72
+ /**
73
+ * Creates and adds a port node (input or output) owned by a given node. Returns the node ID.
74
+ */
75
+ export declare function addPortNode(state: BuildState, ownerNodeId: string, direction: PortDirection_$union, portId: string, label: string): string;
76
+ /**
77
+ * Creates a step node for a CWL workflow step, adds a Contains edge from the workflow. Returns the step node ID.
78
+ */
79
+ export declare function addStepNode(state: BuildState, scope: string, workflowNodeId: string, step: WorkflowStep): string;
80
+ /**
81
+ * Adds all input and output port nodes for a CWL workflow.
82
+ */
83
+ export declare function addWorkflowPorts(state: BuildState, workflowNodeId: string, workflow: CWLWorkflowDescription): void;
84
+ /**
85
+ * Adds all input and output port nodes for a CWL CommandLineTool.
86
+ */
87
+ export declare function addToolPorts(state: BuildState, toolNodeId: string, tool: CWLToolDescription): void;
88
+ /**
89
+ * Adds all input and output port nodes for a CWL ExpressionTool.
90
+ */
91
+ export declare function addExpressionToolPorts(state: BuildState, toolNodeId: string, tool: CWLExpressionToolDescription): void;
92
+ /**
93
+ * Adds all input and output port nodes for a CWL Operation.
94
+ */
95
+ export declare function addOperationPorts(state: BuildState, operationNodeId: string, operation: CWLOperationDescription): void;
96
+ /**
97
+ * Adds all input and output port nodes for a workflow step.
98
+ */
99
+ export declare function addStepPorts(state: BuildState, stepNodeId: string, step: WorkflowStep): void;
100
+ /**
101
+ * Strips '#' prefixes, query strings, and fragment identifiers from a reference string.
102
+ */
103
+ export declare function trimToNameCandidate(value: string): string;
104
+ /**
105
+ * Returns true if a run path ends in '.cwl'.
106
+ */
107
+ export declare function isCwlReference(runPath: string): boolean;
108
+ /**
109
+ * Extracts the basename of a path and strips the '.cwl' extension.
110
+ */
111
+ export declare function tryBasenameNoCwlExtension(value: string): Option<string>;
112
+ /**
113
+ * Selects the first available processing unit display name from dynamic metadata:
114
+ * `name` first, then `id`; each value is normalized to a CWL basename.
115
+ */
116
+ export declare function tryGetProcessingUnitName<$a extends DynamicObj>(processingUnit: $a): Option<string>;
117
+ /**
118
+ * Picks the first non-None candidate label, or falls back to a default.
119
+ */
120
+ export declare function chooseLabel(fallback: string, candidates: FSharpList<Option<string>>): string;
121
+ /**
122
+ * Generates multiple path candidates to try when resolving a run reference.
123
+ */
124
+ export declare function getRunPathCandidates(workflowFilePath: Option<string>, runPath: string): string[];
125
+ /**
126
+ * Attempts to resolve a CWL run string reference to an actual CWLProcessingUnit via the configured resolver.
127
+ */
128
+ export declare function resolveRunString(state: BuildState, workflowFilePath: Option<string>, runPath: string): RunResolutionResult;
129
+ /**
130
+ * Recursively builds graph nodes and edges for a CWLProcessingUnit (CommandLineTool, ExpressionTool, Operation, or Workflow).
131
+ */
132
+ export declare function buildProcessingUnit(state: BuildState, scope: string, workflowFilePath: Option<string>, ownerNodeId: Option<string>, isRoot: boolean, processingUnit: CWLProcessingUnit_$union): string;
133
+ /**
134
+ * Resolves and builds the graph representation of a workflow step's run field.
135
+ */
136
+ export declare function buildRunNode(state: BuildState, runScope: string, stepNodeId: string, workflowFilePath: Option<string>, run: WorkflowStepRun_$union): [WorkflowStepRun_$union, string];
137
+ /**
138
+ * Connects step input ports to their sources (workflow inputs or other step outputs).
139
+ */
140
+ export declare function wireStepInputs(state: BuildState, scope: string, workflowNodeId: string, step: WorkflowStep): void;
141
+ /**
142
+ * Connects workflow output ports to their sources (step outputs or workflow inputs).
143
+ */
144
+ export declare function wireWorkflowOutputs(state: BuildState, scope: string, workflowNodeId: string, workflow: CWLWorkflowDescription): void;
145
+ /**
146
+ * Iterates over all workflow steps, creating nodes, resolving run targets, and wiring data flows.
147
+ */
148
+ export declare function buildWorkflowSteps(state: BuildState, scope: string, workflowFilePath: Option<string>, workflowNodeId: string, workflow: CWLWorkflowDescription): void;
149
+ /**
150
+ * Builds a WorkflowGraph from a CWLProcessingUnit using the specified build options.
151
+ * This is the primary entry point for graph construction with full control over scope,
152
+ * run resolution, nested workflow expansion, and strictness.
153
+ */
154
+ export declare function buildWith(options: WorkflowGraphBuildOptions, processingUnit: CWLProcessingUnit_$union): WorkflowGraph;
155
+ /**
156
+ * Builds a WorkflowGraph from a CWLProcessingUnit using default build options.
157
+ * Convenience wrapper around buildWith with WorkflowGraphBuildOptions.defaultOptions.
158
+ */
159
+ export declare function build(processingUnit: CWLProcessingUnit_$union): WorkflowGraph;
160
+ //# sourceMappingURL=Builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Builder.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/WorkflowGraph/Builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAA0mB,oBAAoB,EAAyC,yBAAyB,EAAsF,eAAe,EAAqD,iBAAiB,EAAE,iBAAiB,EAAE,qBAAqB,EAA6F,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChiC,OAAO,EAA8C,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC3G,OAAO,EAA0F,SAAS,EAAE,MAAM,oCAAoC,CAAC;AACvJ,OAAO,EAA2D,YAAY,EAAqD,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAC3L,OAAO,EAAyF,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AACrJ,OAAO,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