@nfdi4plants/arctrl 3.0.0-beta.8 → 3.0.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 (296) 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 +38 -15
  6. package/dist/ts/ts/ARC.d.ts.map +1 -1
  7. package/dist/ts/ts/ARC.js +285 -140
  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 +210 -0
  15. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -0
  16. package/dist/ts/ts/CWL/Decode.js +2617 -0
  17. package/dist/ts/ts/CWL/Encode.d.ts +96 -0
  18. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -0
  19. package/dist/ts/ts/CWL/Encode.js +1509 -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.d.ts.map +1 -1
  63. package/dist/ts/ts/Contract/Datamap.js +61 -42
  64. package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
  65. package/dist/ts/ts/ContractIO/ContractIO.js +3 -1
  66. package/dist/ts/ts/Conversion/Assay.d.ts +13 -0
  67. package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -0
  68. package/dist/ts/ts/Conversion/Assay.js +69 -0
  69. package/dist/ts/ts/Conversion/Basic.d.ts +105 -0
  70. package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -0
  71. package/dist/ts/ts/Conversion/Basic.js +452 -0
  72. package/dist/ts/ts/Conversion/ColumnIndex.d.ts +11 -0
  73. package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -0
  74. package/dist/ts/ts/Conversion/ColumnIndex.js +71 -0
  75. package/dist/ts/ts/Conversion/Datamap.d.ts +11 -0
  76. package/dist/ts/ts/Conversion/Datamap.d.ts.map +1 -0
  77. package/dist/ts/ts/Conversion/Datamap.js +21 -0
  78. package/dist/ts/ts/Conversion/DateTime.d.ts +4 -0
  79. package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -0
  80. package/dist/ts/ts/Conversion/DateTime.js +23 -0
  81. package/dist/ts/ts/Conversion/Investigation.d.ts +12 -0
  82. package/dist/ts/ts/Conversion/Investigation.d.ts.map +1 -0
  83. package/dist/ts/ts/Conversion/Investigation.js +79 -0
  84. package/dist/ts/ts/Conversion/Person.d.ts +16 -0
  85. package/dist/ts/ts/Conversion/Person.d.ts.map +1 -0
  86. package/dist/ts/ts/Conversion/Person.js +100 -0
  87. package/dist/ts/ts/Conversion/Process.d.ts +84 -0
  88. package/dist/ts/ts/Conversion/Process.d.ts.map +1 -0
  89. package/dist/ts/ts/Conversion/Process.js +455 -0
  90. package/dist/ts/ts/Conversion/Run.d.ts +35 -0
  91. package/dist/ts/ts/Conversion/Run.d.ts.map +1 -0
  92. package/dist/ts/ts/Conversion/Run.js +254 -0
  93. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts +16 -0
  94. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -0
  95. package/dist/ts/ts/Conversion/ScholarlyArticle.js +116 -0
  96. package/dist/ts/ts/Conversion/Study.d.ts +12 -0
  97. package/dist/ts/ts/Conversion/Study.d.ts.map +1 -0
  98. package/dist/ts/ts/Conversion/Study.js +51 -0
  99. package/dist/ts/ts/Conversion/Table.d.ts +45 -0
  100. package/dist/ts/ts/Conversion/Table.d.ts.map +1 -0
  101. package/dist/ts/ts/Conversion/Table.js +203 -0
  102. package/dist/ts/ts/Conversion/Workflow.d.ts +91 -0
  103. package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -0
  104. package/dist/ts/ts/Conversion/Workflow.js +455 -0
  105. package/dist/ts/ts/Conversion.d.ts +25 -276
  106. package/dist/ts/ts/Conversion.d.ts.map +1 -1
  107. package/dist/ts/ts/Conversion.js +64 -1477
  108. package/dist/ts/ts/Core/ArcTypes.d.ts +69 -59
  109. package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
  110. package/dist/ts/ts/Core/ArcTypes.js +251 -146
  111. package/dist/ts/ts/Core/Datamap.d.ts +53 -0
  112. package/dist/ts/ts/Core/{DataMap.d.ts.map → Datamap.d.ts.map} +1 -1
  113. package/dist/ts/ts/Core/Datamap.js +177 -0
  114. package/dist/ts/ts/Core/Helper/Identifier.d.ts +24 -0
  115. package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
  116. package/dist/ts/ts/Core/Helper/Identifier.js +35 -2
  117. package/dist/ts/ts/Core/Table/ArcTable.d.ts +8 -8
  118. package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
  119. package/dist/ts/ts/Core/Table/ArcTable.js +20 -20
  120. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +4 -4
  121. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
  122. package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -27
  123. package/dist/ts/ts/FileSystem/Path.d.ts +22 -0
  124. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  125. package/dist/ts/ts/FileSystem/Path.js +173 -3
  126. package/dist/ts/ts/Json/Assay.js +5 -5
  127. package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.d.ts.map +1 -1
  128. package/dist/ts/ts/Json/{DataMap/DataMap.d.ts → Datamap/Datamap.d.ts} +6 -6
  129. package/dist/ts/ts/Json/Datamap/Datamap.d.ts.map +1 -0
  130. package/dist/ts/ts/Json/{DataMap/DataMap.js → Datamap/Datamap.js} +3 -3
  131. package/dist/ts/ts/Json/ROCrate/LDContext.d.ts.map +1 -1
  132. package/dist/ts/ts/Json/ROCrate/LDContext.js +21 -11
  133. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -0
  134. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts.map +1 -1
  135. package/dist/ts/ts/Json/ROCrate/LDNode.js +18 -7
  136. package/dist/ts/ts/Json/Run.js +5 -5
  137. package/dist/ts/ts/Json/Study.js +5 -5
  138. package/dist/ts/ts/Json/Workflow.d.ts.map +1 -1
  139. package/dist/ts/ts/Json/Workflow.js +10 -11
  140. package/dist/ts/ts/Json.d.ts +3 -5
  141. package/dist/ts/ts/Json.d.ts.map +1 -1
  142. package/dist/ts/ts/Json.js +4 -10
  143. package/dist/ts/ts/JsonIO/Datamap.d.ts +4 -4
  144. package/dist/ts/ts/JsonIO/Datamap.js +6 -6
  145. package/dist/ts/ts/JsonIO/Investigation.d.ts +0 -6
  146. package/dist/ts/ts/JsonIO/Investigation.d.ts.map +1 -1
  147. package/dist/ts/ts/JsonIO/Investigation.js +2 -21
  148. package/dist/ts/ts/License.js +1 -1
  149. package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
  150. package/dist/ts/ts/ROCrate/LDContext.js +35 -31
  151. package/dist/ts/ts/ROCrate/LDObject.d.ts +2 -2
  152. package/dist/ts/ts/ROCrate/LDObject.js +2 -2
  153. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.d.ts.map +1 -1
  154. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts +63 -0
  155. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts.map +1 -0
  156. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +361 -0
  157. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.d.ts +39 -0
  158. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.d.ts.map +1 -0
  159. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +219 -0
  160. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.d.ts +43 -0
  161. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.d.ts.map +1 -0
  162. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +224 -0
  163. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.d.ts.map +1 -1
  164. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.js +1 -1
  165. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Dataset.d.ts +34 -22
  166. package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -0
  167. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Dataset.js +59 -2
  168. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.d.ts.map +1 -1
  169. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/File.d.ts +10 -4
  170. package/dist/ts/ts/ROCrate/LDTypes/File.d.ts.map +1 -0
  171. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/File.js +34 -1
  172. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.d.ts +59 -0
  173. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.d.ts.map +1 -0
  174. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +344 -0
  175. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProcess.d.ts +2 -0
  176. package/dist/ts/ts/ROCrate/LDTypes/LabProcess.d.ts.map +1 -0
  177. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProcess.js +31 -5
  178. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProtocol.d.ts +6 -2
  179. package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.d.ts.map +1 -0
  180. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProtocol.js +66 -15
  181. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.d.ts.map +1 -1
  182. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.d.ts.map +1 -1
  183. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.d.ts.map +1 -1
  184. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PropertyValue.d.ts +35 -11
  185. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -0
  186. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PropertyValue.js +191 -1
  187. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.d.ts.map +1 -1
  188. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.d.ts.map +1 -1
  189. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.d.ts +46 -0
  190. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.d.ts.map +1 -0
  191. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +247 -0
  192. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.d.ts +12 -0
  193. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.d.ts.map +1 -0
  194. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +40 -0
  195. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.d.ts +11 -0
  196. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.d.ts.map +1 -0
  197. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +46 -0
  198. package/dist/ts/ts/ROCrate/ROCrateContext.d.ts +2 -2
  199. package/dist/ts/ts/ROCrate/ROCrateContext.d.ts.map +1 -1
  200. package/dist/ts/ts/ROCrate/ROCrateContext.js +6 -6
  201. package/dist/ts/ts/ROCrateIO.d.ts +7 -3
  202. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  203. package/dist/ts/ts/ROCrateIO.js +82 -13
  204. package/dist/ts/ts/Spreadsheet/ArcAssay.js +3 -3
  205. package/dist/ts/ts/Spreadsheet/ArcRun.js +2 -2
  206. package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
  207. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +2 -2
  208. package/dist/ts/ts/Spreadsheet/Datamap.d.ts +8 -0
  209. package/dist/ts/ts/Spreadsheet/Datamap.d.ts.map +1 -0
  210. package/dist/ts/ts/Spreadsheet/{DataMap.js → Datamap.js} +9 -9
  211. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.d.ts → DatamapTable/DatamapColumn.d.ts} +1 -1
  212. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.d.ts.map → DatamapTable/DatamapColumn.d.ts.map} +1 -1
  213. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.js → DatamapTable/DatamapColumn.js} +1 -1
  214. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.d.ts → DatamapTable/DatamapHeader.d.ts} +1 -1
  215. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.d.ts.map → DatamapTable/DatamapHeader.d.ts.map} +1 -1
  216. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.d.ts → DatamapTable/DatamapTable.d.ts} +5 -5
  217. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -0
  218. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.js → DatamapTable/DatamapTable.js} +8 -8
  219. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +1 -1
  220. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
  221. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +4 -4
  222. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +36 -0
  223. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -0
  224. package/dist/ts/ts/WorkflowGraph/Adapters.js +94 -0
  225. package/dist/ts/ts/WorkflowGraph/BuildOptions.d.ts +37 -0
  226. package/dist/ts/ts/WorkflowGraph/BuildOptions.d.ts.map +1 -0
  227. package/dist/ts/ts/WorkflowGraph/BuildOptions.js +35 -0
  228. package/dist/ts/ts/WorkflowGraph/Builder.d.ts +160 -0
  229. package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -0
  230. package/dist/ts/ts/WorkflowGraph/Builder.js +556 -0
  231. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +182 -0
  232. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -0
  233. package/dist/ts/ts/WorkflowGraph/GraphTypes.js +281 -0
  234. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +27 -0
  235. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -0
  236. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +49 -0
  237. package/dist/ts/ts/Xlsx.d.ts +5 -5
  238. package/dist/ts/ts/Xlsx.js +1 -1
  239. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +1 -1
  240. package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
  241. package/dist/ts/ts/Yaml/ValidationPackage.js +5 -5
  242. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +1 -1
  243. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
  244. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -5
  245. package/dist/ts/ts/Yaml.d.ts +24 -0
  246. package/dist/ts/ts/Yaml.d.ts.map +1 -0
  247. package/dist/ts/ts/Yaml.js +56 -0
  248. package/dist/ts/ts/fable_modules/DynamicObj.7.1.0/DynObj.fs.js +109 -0
  249. package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Encode.fs.js +1 -1
  250. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/FlowToBlock.fs.js +954 -0
  251. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Interop/JsInterop.fs.js +10 -0
  252. package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Persil.fs.js +1 -1
  253. package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Reader.fs.js +208 -152
  254. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Regex.fs.js +15 -0
  255. package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/RegexActivePatterns.fs.js +14 -10
  256. package/package.json +1 -1
  257. package/dist/ts/ts/Core/DataMap.d.ts +0 -52
  258. package/dist/ts/ts/Core/DataMap.js +0 -159
  259. package/dist/ts/ts/Json/DataMap/DataMap.d.ts.map +0 -1
  260. package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +0 -1
  261. package/dist/ts/ts/ROCrate/Generic/File.d.ts.map +0 -1
  262. package/dist/ts/ts/ROCrate/Generic/LabProcess.d.ts.map +0 -1
  263. package/dist/ts/ts/ROCrate/Generic/LabProtocol.d.ts.map +0 -1
  264. package/dist/ts/ts/ROCrate/Generic/PropertyValue.d.ts.map +0 -1
  265. package/dist/ts/ts/Spreadsheet/DataMap.d.ts +0 -8
  266. package/dist/ts/ts/Spreadsheet/DataMap.d.ts.map +0 -1
  267. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts.map +0 -1
  268. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +0 -10
  269. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +0 -11
  270. /package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.d.ts +0 -0
  271. /package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.js +0 -0
  272. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.d.ts +0 -0
  273. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.js +0 -0
  274. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.d.ts +0 -0
  275. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.d.ts +0 -0
  276. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.js +0 -0
  277. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.d.ts +0 -0
  278. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.js +0 -0
  279. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.d.ts +0 -0
  280. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.js +0 -0
  281. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.d.ts +0 -0
  282. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.js +0 -0
  283. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.d.ts +0 -0
  284. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.js +0 -0
  285. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.d.ts +0 -0
  286. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.js +0 -0
  287. /package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.js → DatamapTable/DatamapHeader.js} +0 -0
  288. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/DynamicObj.fs.js +0 -0
  289. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/FableJS.fs.js +0 -0
  290. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/HashCodes.fs.js +0 -0
  291. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/PropertyHelper.fs.js +0 -0
  292. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/ReflectionUtils.fs.js +0 -0
  293. /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Decode.fs.js +0 -0
  294. /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Preprocessing.fs.js +0 -0
  295. /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Writer.fs.js +0 -0
  296. /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/YAMLiciousTypes.fs.js +0 -0
package/dist/ts/ts/ARC.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { FileSystem } from './FileSystem/FileSystem.js';
2
- import { unwrap, defaultArg, value, map as map$2, bind, defaultArgWith } from '../node_modules/@fable-org/fable-library-js/Option.js';
2
+ import { unwrap, defaultArg, value, map as map$1, bind, defaultArgWith } from '../node_modules/@fable-org/fable-library-js/Option.js';
3
3
  import { License } from './License.js';
4
4
  import { ArcInvestigation, ArcInvestigation_$reflection } from './Core/ArcTypes.js';
5
5
  import { fullFillContractBatchAsync } from './ContractIO/ContractIO.js';
@@ -8,55 +8,56 @@ import { Contract } from './Contract/Contract.js';
8
8
  import { PromiseBuilder__Run_212F1D4B, PromiseBuilder__Delay_62FBFDE1 } from './fable_modules/Fable.Promise.3.2.0/Promise.fs.js';
9
9
  import { promise } from './fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js';
10
10
  import { getAllFilePathsAsync } from './ContractIO/FileSystemHelper.js';
11
- import { toArray, contains, delay, append, singleton, map, iterate, tryFind, find, empty, collect, toList } from '../node_modules/@fable-org/fable-library-js/Seq.js';
11
+ import { toArray, contains, delay, append, singleton, iterate, tryFind, find, empty, collect, toList } from '../node_modules/@fable-org/fable-library-js/Seq.js';
12
12
  import { defaultOf, stringHash, comparePrimitives, curry2, safeHash, getEnumerator, disposeSafe, equals } from '../node_modules/@fable-org/fable-library-js/Util.js';
13
- import { getAssayFolderPath, getRunFolderPath, getWorkflowFolderPath, getStudyFolderPath } from './FileSystem/Path.js';
13
+ import { getAssayFolderPath, getRunFolderPath, getWorkflowFolderPath, getStudyFolderPath, normalizePathKey } from './FileSystem/Path.js';
14
14
  import { ARCtrl_ArcAssay__ArcAssay_ToDeleteContract, ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49, ARCtrl_ArcAssay__ArcAssay_ToUpdateContract, ARCtrl_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F } from './Contract/ArcAssay.js';
15
+ import { ARCtrl_ArcRun__ArcRun_ToDeleteContract, ARCtrl_ArcRun__ArcRun_ToCreateContract_6FCE9E49, ARCtrl_ArcRun__ArcRun_ToUpdateContract, ARCtrl_ArcRun__ArcRun_tryFromReadContract_Static_7570923F, ARCtrl_ArcRun__ArcRun_tryCWLFromReadContract_Static, ARCtrl_ArcRun__ArcRun_tryYMLFromReadContract_Static } from './Contract/ArcRun.js';
16
+ import { ARCtrl_ArcWorkflow__ArcWorkflow_ToDeleteContract, ARCtrl_ArcWorkflow__ArcWorkflow_ToCreateContract_6FCE9E49, ARCtrl_ArcWorkflow__ArcWorkflow_ToUpdateContract, ARCtrl_ArcWorkflow__ArcWorkflow_tryFromReadContract_Static_7570923F, ARCtrl_ArcWorkflow__ArcWorkflow_tryCWLFromReadContract_Static } from './Contract/ArcWorkflow.js';
17
+ import { join, toFail, printf, replace, toText } from '../node_modules/@fable-org/fable-library-js/String.js';
18
+ import { map, choose, fold, concat, contains as contains$2, append as append$1, tryPick, equalsWith, item } from '../node_modules/@fable-org/fable-library-js/Array.js';
15
19
  import { ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract, ARCtrl_ArcInvestigation__ArcInvestigation_tryFromReadContract_Static_7570923F } from './Contract/ArcInvestigation.js';
16
- import { ARCtrl_ArcStudy__ArcStudy_ToUpdateContract, ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49, ARCtrl_ArcStudy__ArcStudy_tryFromReadContract_Static_7570923F } from './Contract/ArcStudy.js';
17
- import { ARCtrl_ArcRun__ArcRun_ToDeleteContract, ARCtrl_ArcRun__ArcRun_ToCreateContract_6FCE9E49, ARCtrl_ArcRun__ArcRun_ToUpdateContract, ARCtrl_ArcRun__ArcRun_tryFromReadContract_Static_7570923F } from './Contract/ArcRun.js';
18
- import { ARCtrl_ArcWorkflow__ArcWorkflow_ToDeleteContract, ARCtrl_ArcWorkflow__ArcWorkflow_ToCreateContract_6FCE9E49, ARCtrl_ArcWorkflow__ArcWorkflow_ToUpdateContract, ARCtrl_ArcWorkflow__ArcWorkflow_tryFromReadContract_Static_7570923F } from './Contract/ArcWorkflow.js';
19
- import { map as map$1, choose, fold, concat, contains as contains$2, append as append$1, tryPick, equalsWith, item } from '../node_modules/@fable-org/fable-library-js/Array.js';
20
- import { replace, join, toFail, printf, toText } from '../node_modules/@fable-org/fable-library-js/String.js';
21
- import { createMissingIdentifier, Study_fileNameFromIdentifier, Study_datamapFileNameFromIdentifier, Assay_fileNameFromIdentifier, Assay_datamapFileNameFromIdentifier, Workflow_fileNameFromIdentifier, Workflow_datamapFileNameFromIdentifier, Run_fileNameFromIdentifier, Run_datamapFileNameFromIdentifier } from './Core/Helper/Identifier.js';
20
+ import { createMissingIdentifier, Workflow_cwlFileNameFromIdentifier, Run_cwlFileNameFromIdentifier, Study_fileNameFromIdentifier, Study_datamapFileNameFromIdentifier, Assay_fileNameFromIdentifier, Assay_datamapFileNameFromIdentifier, Workflow_fileNameFromIdentifier, Workflow_datamapFileNameFromIdentifier, Run_fileNameFromIdentifier, Run_datamapFileNameFromIdentifier } from './Core/Helper/Identifier.js';
22
21
  import { ofSeq, contains as contains$1, unionMany, FSharpSet__Contains } from '../node_modules/@fable-org/fable-library-js/Set.js';
23
22
  import { ResizeArray_iter, ResizeArray_map } from './Core/Helper/Collections.js';
24
- import { DataMap__get_DataContexts, DataMap__set_StaticHash_Z524259A4, DataMap__get_StaticHash } from './Core/DataMap.js';
25
23
  import { FileSystemTree_Folder, FileSystemTree, FileSystemTree_File } from './FileSystem/FileSystemTree.js';
26
24
  import { tryISAReadContractFromPath } from './Contract/ARC.js';
27
25
  import { setInvestigationIdentifier } from './Core/IdentifierSetters.js';
26
+ import { ofSeq as ofSeq$1, ofArray, tryFind as tryFind$1 } from '../node_modules/@fable-org/fable-library-js/Map.js';
28
27
  import { ArcTables } from './Core/Table/ArcTables.js';
28
+ import { resolveRunReferencesFromLookup } from './CWLRunResolver.js';
29
29
  import { addToDict } from '../node_modules/@fable-org/fable-library-js/MapUtil.js';
30
30
  import { ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF } from './Spreadsheet/ArcInvestigation.js';
31
31
  import { ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522 } from './Spreadsheet/ArcStudy.js';
32
- import { toFsWorkbook } from './Spreadsheet/DataMap.js';
32
+ import { toFsWorkbook } from './Spreadsheet/Datamap.js';
33
33
  import { ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F } from './Spreadsheet/ArcAssay.js';
34
34
  import { ARCtrl_ArcWorkflow__ArcWorkflow_toFsWorkbook_Static_Z1C75CB0E } from './Spreadsheet/ArcWorkflow.js';
35
35
  import { ARCtrl_ArcRun__ArcRun_toFsWorkbook_Static_Z3EFAF6F8 } from './Spreadsheet/ArcRun.js';
36
36
  import { Dictionary_tryGet } from './fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js';
37
- import { ARCtrl_DataMap__DataMap_ToUpdateContractForStudy_Z721C83C5, ARCtrl_DataMap__DataMap_ToCreateContractForStudy_Z721C83C5, ARCtrl_DataMap__DataMap_ToUpdateContractForAssay_Z721C83C5, ARCtrl_DataMap__DataMap_ToCreateContractForAssay_Z721C83C5, ARCtrl_DataMap__DataMap_ToUpdateContractForWorkflow_Z721C83C5, ARCtrl_DataMap__DataMap_ToCreateContractForWorkflow_Z721C83C5, ARCtrl_DataMap__DataMap_ToUpdateContractForRun_Z721C83C5, ARCtrl_DataMap__DataMap_ToCreateContractForRun_Z721C83C5, ARCtrl_DataMap__DataMap_tryFromReadContractForAssay_Static, ARCtrl_DataMap__DataMap_tryFromReadContractForStudy_Static, ARCtrl_DataMap__DataMap_tryFromReadContractForWorkflow_Static, ARCtrl_DataMap__DataMap_tryFromReadContractForRun_Static } from './Contract/Datamap.js';
37
+ import { ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49, ARCtrl_ArcStudy__ArcStudy_ToUpdateContract, ARCtrl_ArcStudy__ArcStudy_tryFromReadContract_Static_7570923F } from './Contract/ArcStudy.js';
38
+ import { ARCtrl_Datamap__Datamap_ToUpdateContractForStudy_Z721C83C5, ARCtrl_Datamap__Datamap_ToCreateContractForStudy_Z721C83C5, ARCtrl_Datamap__Datamap_ToUpdateContractForAssay_Z721C83C5, ARCtrl_Datamap__Datamap_ToCreateContractForAssay_Z721C83C5, ARCtrl_Datamap__Datamap_ToUpdateContractForWorkflow_Z721C83C5, ARCtrl_Datamap__Datamap_ToCreateContractForWorkflow_Z721C83C5, ARCtrl_Datamap__Datamap_ToUpdateContractForRun_Z721C83C5, ARCtrl_Datamap__Datamap_ToCreateContractForRun_Z721C83C5, ARCtrl_Datamap__Datamap_tryFromReadContractForAssay_Static, ARCtrl_Datamap__Datamap_tryFromReadContractForStudy_Static, ARCtrl_Datamap__Datamap_tryFromReadContractForWorkflow_Static, ARCtrl_Datamap__Datamap_tryFromReadContractForRun_Static } from './Contract/Datamap.js';
38
39
  import { Init_createInitContract_6DFDD678, gitignoreContract, gitattributesContract, Init_createAddRemoteContract_Z721C83C5, Clone_createCloneContract_5000466F } from './Contract/Git.js';
39
- import { ofSeq as ofSeq$1 } from '../node_modules/@fable-org/fable-library-js/Map.js';
40
40
  import { fromString } from './fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js';
41
- import { ROCrate_get_decoderDeprecated, ROCrate_get_decoder, ROCrate_encoder_1E8A3F74 } from './ROCrateIO.js';
41
+ import { ROCrate_get_decoderDeprecated, ROCrate_get_decoder, ROCrate_encoder_Z7FE34C43 } from './ROCrateIO.js';
42
42
  import { toString } from './fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js';
43
43
  import { defaultSpaces } from './Json/Encode.js';
44
44
  import { ValidationPackagesConfigHelper_ConfigFilePath, ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toCreateContract_Static_724DAE55, ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toDeleteContract_Static_724DAE55, ValidationPackagesConfigHelper_ReadContract, ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_tryFromReadContract_Static_7570923F } from './Contract/ValidationPackagesConfig.js';
45
+ import { ofInvestigation } from './WorkflowGraph/Adapters.js';
45
46
  import { FSharpRef } from '../node_modules/@fable-org/fable-library-js/Types.js';
46
47
  import { class_type } from '../node_modules/@fable-org/fable-library-js/Reflection.js';
48
+ import { Decode_decodeCWLProcessingUnit } from './CWL/Decode.js';
47
49
 
48
50
  class ARC extends ArcInvestigation {
49
- constructor(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, workflows, runs, registeredStudyIdentifiers, comments, remarks, cwl, fs, license) {
51
+ constructor(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, workflows, runs, registeredStudyIdentifiers, comments, remarks, fs, license) {
50
52
  super(identifier, unwrap(title), unwrap(description), unwrap(submissionDate), unwrap(publicReleaseDate), unwrap(ontologySourceReferences), unwrap(publications), unwrap(contacts), unwrap(assays), unwrap(studies), unwrap(workflows), unwrap(runs), unwrap(registeredStudyIdentifiers), unwrap(comments), unwrap(remarks));
51
53
  let fs_1;
52
54
  const this$ = new FSharpRef(defaultOf());
53
55
  this$.contents = this;
54
- this._cwl = cwl;
55
56
  this._license = license;
56
57
  this._fs = (fs_1 = defaultArg(fs, FileSystem.create({
57
58
  tree: FileSystemTree_Folder("", [])
58
59
  })), ARCAux_updateFSByARC(this$.contents, license, fs_1));
59
- this["init@104"] = 1;
60
+ this["init@133"] = 1;
60
61
  }
61
62
  get FileSystem() {
62
63
  const this$ = this;
@@ -74,8 +75,8 @@ class ARC extends ArcInvestigation {
74
75
  const this$ = this;
75
76
  this$._license = license;
76
77
  }
77
- static fromArcInvestigation(isa, cwl, fs, license) {
78
- return new ARC(isa.Identifier, unwrap(isa.Title), unwrap(isa.Description), unwrap(isa.SubmissionDate), unwrap(isa.PublicReleaseDate), isa.OntologySourceReferences, isa.Publications, isa.Contacts, isa.Assays, isa.Studies, isa.Workflows, isa.Runs, isa.RegisteredStudyIdentifiers, isa.Comments, isa.Remarks, cwl, unwrap(fs), unwrap(license));
78
+ static fromArcInvestigation(isa, fs, license) {
79
+ return new ARC(isa.Identifier, unwrap(isa.Title), unwrap(isa.Description), unwrap(isa.SubmissionDate), unwrap(isa.PublicReleaseDate), isa.OntologySourceReferences, isa.Publications, isa.Contacts, isa.Assays, isa.Studies, isa.Workflows, isa.Runs, isa.RegisteredStudyIdentifiers, isa.Comments, isa.Remarks, unwrap(fs), unwrap(license));
79
80
  }
80
81
  TryWriteAsync(arcPath) {
81
82
  const this$ = this;
@@ -136,7 +137,7 @@ class ARC extends ArcInvestigation {
136
137
  const assayFolderPath = getAssayFolderPath(assayIdentifier);
137
138
  const filteredPaths = paths.filter((p) => !p.startsWith(assayFolderPath));
138
139
  this$.SetFilePaths(filteredPaths);
139
- return toArray(delay(() => append(singleton(ARCtrl_ArcAssay__ArcAssay_ToDeleteContract(assay)), delay(() => append(singleton(ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract(this$)), delay(() => map(ARCtrl_ArcStudy__ArcStudy_ToUpdateContract, studies)))))));
140
+ return toArray(delay(() => append(singleton(ARCtrl_ArcAssay__ArcAssay_ToDeleteContract(assay)), delay(() => this$.GetUpdateContracts()))));
140
141
  }
141
142
  GetRunRemoveContracts(runIdentifier) {
142
143
  const this$ = this;
@@ -152,7 +153,7 @@ class ARC extends ArcInvestigation {
152
153
  const runFolderPath = getRunFolderPath(runIdentifier);
153
154
  const filteredPaths = paths.filter((p) => !p.startsWith(runFolderPath));
154
155
  this$.SetFilePaths(filteredPaths);
155
- return [ARCtrl_ArcRun__ArcRun_ToDeleteContract(run), ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract(this$)];
156
+ return toArray(delay(() => append(singleton(ARCtrl_ArcRun__ArcRun_ToDeleteContract(run)), delay(() => this$.GetUpdateContracts()))));
156
157
  }
157
158
  GetWorkflowRemoveContracts(workflowIdentifier) {
158
159
  const this$ = this;
@@ -168,12 +169,84 @@ class ARC extends ArcInvestigation {
168
169
  const workflowFolderPath = getWorkflowFolderPath(workflowIdentifier);
169
170
  const filteredPaths = paths.filter((p) => !p.startsWith(workflowFolderPath));
170
171
  this$.SetFilePaths(filteredPaths);
171
- return [ARCtrl_ArcWorkflow__ArcWorkflow_ToDeleteContract(workflow), ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract(this$)];
172
+ return toArray(delay(() => append(singleton(ARCtrl_ArcWorkflow__ArcWorkflow_ToDeleteContract(workflow)), delay(() => this$.GetUpdateContracts()))));
172
173
  }
173
174
  TryRemoveAssayAsync(arcPath, assayIdentifier) {
174
175
  const this$ = this;
175
176
  return fullFillContractBatchAsync(arcPath, this$.GetAssayRemoveContracts(assayIdentifier));
176
177
  }
178
+ TryRemoveRunAsync(arcPath, runIdentifier) {
179
+ const this$ = this;
180
+ return fullFillContractBatchAsync(arcPath, this$.GetRunRemoveContracts(runIdentifier));
181
+ }
182
+ TryRemoveWorkflowAsync(arcPath, workflowIdentifier) {
183
+ const this$ = this;
184
+ return fullFillContractBatchAsync(arcPath, this$.GetWorkflowRemoveContracts(workflowIdentifier));
185
+ }
186
+ RemoveRunAsync(arcPath, runIdentifier) {
187
+ const this$ = this;
188
+ return PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => this$.TryRemoveRunAsync(arcPath, runIdentifier).then((_arg) => {
189
+ const result = _arg;
190
+ if (result.tag === /* Error */
191
+ 1) {
192
+ const appended = join("\n", map((e) => e, result.fields[0]));
193
+ toFail(printf("Could not remove run, failed with the following errors %s"))(appended);
194
+ return Promise.resolve();
195
+ } else {
196
+ return Promise.resolve();
197
+ }
198
+ })));
199
+ }
200
+ RemoveWorkflowAsync(arcPath, workflowIdentifier) {
201
+ const this$ = this;
202
+ return PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => this$.TryRemoveWorkflowAsync(arcPath, workflowIdentifier).then((_arg) => {
203
+ const result = _arg;
204
+ if (result.tag === /* Error */
205
+ 1) {
206
+ const appended = join("\n", map((e) => e, result.fields[0]));
207
+ toFail(printf("Could not remove workflow, failed with the following errors %s"))(appended);
208
+ return Promise.resolve();
209
+ } else {
210
+ return Promise.resolve();
211
+ }
212
+ })));
213
+ }
214
+ TryRenameRunAsync(arcPath, oldRunIdentifier, newRunIdentifier) {
215
+ const this$ = this;
216
+ return fullFillContractBatchAsync(arcPath, this$.GetRunRenameContracts(oldRunIdentifier, newRunIdentifier));
217
+ }
218
+ TryRenameWorkflowAsync(arcPath, oldWorkflowIdentifier, newWorkflowIdentifier) {
219
+ const this$ = this;
220
+ return fullFillContractBatchAsync(arcPath, this$.GetWorkflowRenameContracts(oldWorkflowIdentifier, newWorkflowIdentifier));
221
+ }
222
+ RenameRunAsync(arcPath, oldRunIdentifier, newRunIdentifier) {
223
+ const this$ = this;
224
+ return PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => this$.TryRenameRunAsync(arcPath, oldRunIdentifier, newRunIdentifier).then((_arg) => {
225
+ const result = _arg;
226
+ if (result.tag === /* Error */
227
+ 1) {
228
+ const appended = join("\n", map((e) => e, result.fields[0]));
229
+ toFail(printf("Could not rename run, failed with the following errors %s"))(appended);
230
+ return Promise.resolve();
231
+ } else {
232
+ return Promise.resolve();
233
+ }
234
+ })));
235
+ }
236
+ RenameWorkflowAsync(arcPath, oldWorkflowIdentifier, newWorkflowIdentifier) {
237
+ const this$ = this;
238
+ return PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => this$.TryRenameWorkflowAsync(arcPath, oldWorkflowIdentifier, newWorkflowIdentifier).then((_arg) => {
239
+ const result = _arg;
240
+ if (result.tag === /* Error */
241
+ 1) {
242
+ const appended = join("\n", map((e) => e, result.fields[0]));
243
+ toFail(printf("Could not rename workflow, failed with the following errors %s"))(appended);
244
+ return Promise.resolve();
245
+ } else {
246
+ return Promise.resolve();
247
+ }
248
+ })));
249
+ }
177
250
  GetAssayRenameContracts(oldAssayIdentifier, newAssayIdentifier) {
178
251
  const this$ = this;
179
252
  if (!contains(oldAssayIdentifier, this$.AssayIdentifiers, {
@@ -186,7 +259,7 @@ class ARC extends ArcInvestigation {
186
259
  const paths = this$.FileSystem.Tree.ToFilePaths();
187
260
  const oldAssayFolderPath = getAssayFolderPath(oldAssayIdentifier);
188
261
  const newAssayFolderPath = getAssayFolderPath(newAssayIdentifier);
189
- const renamedPaths = map$1((p) => replace(p, oldAssayFolderPath, newAssayFolderPath), paths);
262
+ const renamedPaths = map((p) => replace(p, oldAssayFolderPath, newAssayFolderPath), paths);
190
263
  this$.SetFilePaths(renamedPaths);
191
264
  return toArray(delay(() => append(singleton(Contract.createRename(oldAssayFolderPath, newAssayFolderPath)), delay(() => this$.GetUpdateContracts()))));
192
265
  }
@@ -198,27 +271,27 @@ class ARC extends ArcInvestigation {
198
271
  })) {
199
272
  throw new Error("ARC does not contain run with given name");
200
273
  }
201
- this$.RenameRun(oldRunIdentifier, newRunIdentifier);
274
+ super.RenameRun(oldRunIdentifier, newRunIdentifier);
202
275
  const paths = this$.FileSystem.Tree.ToFilePaths();
203
276
  const oldPath = getRunFolderPath(oldRunIdentifier);
204
277
  const newPath = getRunFolderPath(newRunIdentifier);
205
- const renamedPaths = map$1((p) => replace(p, oldPath, newPath), paths);
278
+ const renamedPaths = map((p) => replace(p, oldPath, newPath), paths);
206
279
  this$.SetFilePaths(renamedPaths);
207
280
  return toArray(delay(() => append(singleton(Contract.createRename(oldPath, newPath)), delay(() => this$.GetUpdateContracts()))));
208
281
  }
209
- GetWorkflowRenameContracts(oldRunIdentifier, newRunIdentifier) {
282
+ GetWorkflowRenameContracts(oldWorkflowIdentifier, newWorkflowIdentifier) {
210
283
  const this$ = this;
211
- if (!contains(oldRunIdentifier, this$.WorkflowIdentifiers, {
284
+ if (!contains(oldWorkflowIdentifier, this$.WorkflowIdentifiers, {
212
285
  Equals: (x, y) => x === y,
213
286
  GetHashCode: stringHash
214
287
  })) {
215
- throw new Error("ARC does not contain run with given name");
288
+ throw new Error("ARC does not contain workflow with given name");
216
289
  }
217
- this$.RenameWorkflow(oldRunIdentifier, newRunIdentifier);
290
+ super.RenameWorkflow(oldWorkflowIdentifier, newWorkflowIdentifier);
218
291
  const paths = this$.FileSystem.Tree.ToFilePaths();
219
- const oldPath = getWorkflowFolderPath(oldRunIdentifier);
220
- const newPath = getWorkflowFolderPath(newRunIdentifier);
221
- const renamedPaths = map$1((p) => replace(p, oldPath, newPath), paths);
292
+ const oldPath = getWorkflowFolderPath(oldWorkflowIdentifier);
293
+ const newPath = getWorkflowFolderPath(newWorkflowIdentifier);
294
+ const renamedPaths = map((p) => replace(p, oldPath, newPath), paths);
222
295
  this$.SetFilePaths(renamedPaths);
223
296
  return toArray(delay(() => append(singleton(Contract.createRename(oldPath, newPath)), delay(() => this$.GetUpdateContracts()))));
224
297
  }
@@ -251,7 +324,7 @@ class ARC extends ArcInvestigation {
251
324
  const paths = this$.FileSystem.Tree.ToFilePaths();
252
325
  const oldStudyFolderPath = getStudyFolderPath(oldStudyIdentifier);
253
326
  const newStudyFolderPath = getStudyFolderPath(newStudyIdentifier);
254
- const renamedPaths = map$1((p) => replace(p, oldStudyFolderPath, newStudyFolderPath), paths);
327
+ const renamedPaths = map((p) => replace(p, oldStudyFolderPath, newStudyFolderPath), paths);
255
328
  this$.SetFilePaths(renamedPaths);
256
329
  return toArray(delay(() => append(singleton(Contract.createRename(oldStudyFolderPath, newStudyFolderPath)), delay(() => this$.GetUpdateContracts()))));
257
330
  }
@@ -265,7 +338,7 @@ class ARC extends ArcInvestigation {
265
338
  const result = _arg;
266
339
  if (result.tag === /* Error */
267
340
  1) {
268
- const appended = join("\n", map$1((e) => e, result.fields[0]));
341
+ const appended = join("\n", map((e) => e, result.fields[0]));
269
342
  toFail(printf("Could not write ARC, failed with the following errors %s"))(appended);
270
343
  return Promise.resolve();
271
344
  } else {
@@ -279,7 +352,7 @@ class ARC extends ArcInvestigation {
279
352
  const result = _arg;
280
353
  if (result.tag === /* Error */
281
354
  1) {
282
- const appended = join("\n", map$1((e) => e, result.fields[0]));
355
+ const appended = join("\n", map((e) => e, result.fields[0]));
283
356
  toFail(printf("Could not update ARC, failed with the following errors %s"))(appended);
284
357
  return Promise.resolve();
285
358
  } else {
@@ -293,7 +366,7 @@ class ARC extends ArcInvestigation {
293
366
  const result = _arg;
294
367
  if (result.tag === /* Error */
295
368
  1) {
296
- const appended = join("\n", map$1((e) => e, result.fields[0]));
369
+ const appended = join("\n", map((e) => e, result.fields[0]));
297
370
  toFail(printf("Could not remove assay, failed with the following errors %s"))(appended);
298
371
  return Promise.resolve();
299
372
  } else {
@@ -307,7 +380,7 @@ class ARC extends ArcInvestigation {
307
380
  const result = _arg;
308
381
  if (result.tag === /* Error */
309
382
  1) {
310
- const appended = join("\n", map$1((e) => e, result.fields[0]));
383
+ const appended = join("\n", map((e) => e, result.fields[0]));
311
384
  toFail(printf("Could not rename assay, failed with the following errors %s"))(appended);
312
385
  return Promise.resolve();
313
386
  } else {
@@ -321,7 +394,7 @@ class ARC extends ArcInvestigation {
321
394
  const result = _arg;
322
395
  if (result.tag === /* Error */
323
396
  1) {
324
- const appended = join("\n", map$1((e) => e, result.fields[0]));
397
+ const appended = join("\n", map((e) => e, result.fields[0]));
325
398
  toFail(printf("Could not remove study, failed with the following errors %s"))(appended);
326
399
  return Promise.resolve();
327
400
  } else {
@@ -335,7 +408,7 @@ class ARC extends ArcInvestigation {
335
408
  const result = _arg;
336
409
  if (result.tag === /* Error */
337
410
  1) {
338
- const appended = join("\n", map$1((e) => e, result.fields[0]));
411
+ const appended = join("\n", map((e) => e, result.fields[0]));
339
412
  toFail(printf("Could not rename study, failed with the following errors %s"))(appended);
340
413
  return Promise.resolve();
341
414
  } else {
@@ -348,7 +421,7 @@ class ARC extends ArcInvestigation {
348
421
  const result = _arg;
349
422
  if (result.tag === /* Error */
350
423
  1) {
351
- const appended = join("\n", map$1((e) => e, result.fields[0]));
424
+ const appended = join("\n", map((e) => e, result.fields[0]));
352
425
  toFail(printf("Could not load ARC, failed with the following errors %s"))(appended);
353
426
  return Promise.resolve(new ARC(createMissingIdentifier()));
354
427
  } else {
@@ -395,34 +468,34 @@ class ARC extends ArcInvestigation {
395
468
  updateColumnOption(dataNameFunction_1, t.TryGetInputColumn());
396
469
  updateColumnOption(dataNameFunction_1, t.TryGetOutputColumn());
397
470
  };
398
- const updateDataMap = (dataNameFunction_2, dm) => {
471
+ const updateDatamap = (dataNameFunction_2, dm) => {
399
472
  iterate((c_1) => {
400
473
  if (c_1.FilePath != null) {
401
474
  const newFilePath_1 = dataNameFunction_2(c_1);
402
475
  c_1.FilePath = newFilePath_1;
403
476
  }
404
- }, DataMap__get_DataContexts(dm));
477
+ }, dm.DataContexts);
405
478
  };
406
479
  iterate((s) => {
407
480
  const f_1 = (d) => d.GetAbsolutePathForStudy(s.Identifier, checkExistenceFromRoot);
408
481
  const source_1 = s.Tables;
409
482
  iterate(curry2(updateTable)(f_1), source_1);
410
- if (s.DataMap != null) {
411
- updateDataMap(f_1, value(s.DataMap));
483
+ if (s.Datamap != null) {
484
+ updateDatamap(f_1, value(s.Datamap));
412
485
  }
413
486
  }, this$.Studies);
414
487
  iterate((a_1) => {
415
488
  const f_2 = (d_1) => d_1.GetAbsolutePathForAssay(a_1.Identifier, checkExistenceFromRoot);
416
489
  const source_3 = a_1.Tables;
417
490
  iterate(curry2(updateTable)(f_2), source_3);
418
- if (a_1.DataMap != null) {
419
- updateDataMap(f_2, value(a_1.DataMap));
491
+ if (a_1.Datamap != null) {
492
+ updateDatamap(f_2, value(a_1.Datamap));
420
493
  }
421
494
  }, this$.Assays);
422
495
  }
423
496
  static fromFilePaths(filePaths) {
424
497
  const fs = FileSystem.fromFilePaths(filePaths);
425
- return new ARC(createMissingIdentifier(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, fs);
498
+ return new ARC(createMissingIdentifier(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, fs);
426
499
  }
427
500
  SetFilePaths(filePaths) {
428
501
  const this$ = this;
@@ -447,11 +520,13 @@ class ARC extends ArcInvestigation {
447
520
  this$.Comments = investigation.Comments;
448
521
  this$.Remarks = investigation.Remarks;
449
522
  this$.RegisteredStudyIdentifiers = investigation.RegisteredStudyIdentifiers;
450
- const studies = map$1((tuple) => tuple[0], ARCAux_getArcStudiesFromContracts(contracts));
523
+ const studies = map((tuple) => tuple[0], ARCAux_getArcStudiesFromContracts(contracts));
451
524
  const assays = ARCAux_getArcAssaysFromContracts(contracts);
452
525
  const workflows = ARCAux_getArcWorkflowsFromContracts(contracts);
453
526
  const runs = ARCAux_getArcRunsFromContracts(contracts);
454
527
  const license = ARCAux_getLicenseFromContracts(contracts);
528
+ const cwlByPath = ARCAux_getCWLByPathFromContracts(contracts);
529
+ const tryGetCWLByPath = (path) => ARCAux_tryGetCWLByPath(cwlByPath, path);
455
530
  const array_2 = this$.AssayIdentifiers;
456
531
  array_2.forEach((ai) => {
457
532
  if (!assays.some((a) => a.Identifier === ai)) {
@@ -472,9 +547,9 @@ class ARC extends ArcInvestigation {
472
547
  const registeredStudy = value(registeredStudyOpt);
473
548
  registeredStudy.UpdateReferenceByStudyFile(study, true);
474
549
  }
475
- const datamap = ARCAux_getStudyDataMapFromContracts(study.Identifier, contracts);
476
- if (study.DataMap == null) {
477
- study.DataMap = datamap;
550
+ const datamap = ARCAux_getStudyDatamapFromContracts(study.Identifier, contracts);
551
+ if (study.Datamap == null) {
552
+ study.Datamap = datamap;
478
553
  }
479
554
  study.StaticHash = study.GetLightHashCode() | 0;
480
555
  });
@@ -490,25 +565,35 @@ class ARC extends ArcInvestigation {
490
565
  let updatedTables;
491
566
  const array_6 = assay_1.StudiesRegisteredIn;
492
567
  updatedTables = fold((tables, study_1) => ArcTables.updateReferenceTablesBySheets(new ArcTables(study_1.Tables), tables, false), new ArcTables(assay_1.Tables), array_6);
493
- const datamap_1 = ARCAux_getAssayDataMapFromContracts(assay_1.Identifier, contracts);
494
- if (assay_1.DataMap == null) {
495
- assay_1.DataMap = datamap_1;
568
+ const datamap_1 = ARCAux_getAssayDatamapFromContracts(assay_1.Identifier, contracts);
569
+ if (assay_1.Datamap == null) {
570
+ assay_1.Datamap = datamap_1;
496
571
  }
497
572
  assay_1.Tables = updatedTables.Tables;
498
573
  });
499
574
  workflows.forEach((workflow) => {
500
- const datamap_2 = ARCAux_getWorkflowDataMapFromContracts(workflow.Identifier, contracts);
501
- if (workflow.DataMap == null) {
502
- workflow.DataMap = datamap_2;
575
+ const datamap_2 = ARCAux_getWorkflowDatamapFromContracts(workflow.Identifier, contracts);
576
+ const cwl = ARCAux_getWorkflowCWLFromContracts(workflow.Identifier, contracts);
577
+ const cwlFilePath = Workflow_cwlFileNameFromIdentifier(workflow.Identifier);
578
+ const resolvedCwl = map$1((processingUnit) => resolveRunReferencesFromLookup(cwlFilePath, processingUnit, tryGetCWLByPath), cwl);
579
+ if (workflow.Datamap == null) {
580
+ workflow.Datamap = datamap_2;
503
581
  }
582
+ workflow.CWLDescription = resolvedCwl;
504
583
  this$.AddWorkflow(workflow);
505
584
  workflow.StaticHash = workflow.GetLightHashCode() | 0;
506
585
  });
507
586
  runs.forEach((run) => {
508
- const datamap_3 = ARCAux_getRunDataMapFromContracts(run.Identifier, contracts);
509
- if (run.DataMap == null) {
510
- run.DataMap = datamap_3;
587
+ const datamap_3 = ARCAux_getRunDatamapFromContracts(run.Identifier, contracts);
588
+ const cwl_1 = ARCAux_getRunCWLFromContracts(run.Identifier, contracts);
589
+ const yml = ARCAux_getRunYMLFromContracts(run.Identifier, contracts);
590
+ const cwlFilePath_1 = Run_cwlFileNameFromIdentifier(run.Identifier);
591
+ const resolvedCwl_1 = map$1((processingUnit_1) => resolveRunReferencesFromLookup(cwlFilePath_1, processingUnit_1, tryGetCWLByPath), cwl_1);
592
+ if (run.Datamap == null) {
593
+ run.Datamap = datamap_3;
511
594
  }
595
+ run.CWLInput = defaultArg(yml, []);
596
+ run.CWLDescription = resolvedCwl_1;
512
597
  this$.AddRun(run);
513
598
  run.StaticHash = run.GetLightHashCode() | 0;
514
599
  });
@@ -537,36 +622,45 @@ class ARC extends ArcInvestigation {
537
622
  iterate((s) => {
538
623
  s.StaticHash = s.GetLightHashCode() | 0;
539
624
  addToDict(filemap, Study_fileNameFromIdentifier(s.Identifier), ["ISA_Study", ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522(s)]);
540
- if (s.DataMap != null) {
541
- const dm = value(s.DataMap);
542
- DataMap__set_StaticHash_Z524259A4(dm, safeHash(dm));
625
+ if (s.Datamap != null) {
626
+ const dm = value(s.Datamap);
627
+ dm.StaticHash = safeHash(dm) | 0;
543
628
  addToDict(filemap, Study_datamapFileNameFromIdentifier(s.Identifier), ["ISA_Datamap", toFsWorkbook(dm)]);
544
629
  }
545
630
  }, this$.Studies);
546
631
  iterate((a) => {
547
632
  a.StaticHash = a.GetLightHashCode() | 0;
548
633
  addToDict(filemap, Assay_fileNameFromIdentifier(a.Identifier), ["ISA_Assay", ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F(a)]);
549
- if (a.DataMap != null) {
550
- const dm_1 = value(a.DataMap);
551
- DataMap__set_StaticHash_Z524259A4(dm_1, safeHash(dm_1));
634
+ if (a.Datamap != null) {
635
+ const dm_1 = value(a.Datamap);
636
+ dm_1.StaticHash = safeHash(dm_1) | 0;
552
637
  addToDict(filemap, Assay_datamapFileNameFromIdentifier(a.Identifier), ["ISA_Datamap", toFsWorkbook(dm_1)]);
553
638
  }
554
639
  }, this$.Assays);
555
640
  iterate((w) => {
556
641
  w.StaticHash = w.GetLightHashCode() | 0;
557
642
  addToDict(filemap, Workflow_fileNameFromIdentifier(w.Identifier), ["ISA_Workflow", ARCtrl_ArcWorkflow__ArcWorkflow_toFsWorkbook_Static_Z1C75CB0E(w)]);
558
- if (w.DataMap != null) {
559
- const dm_2 = value(w.DataMap);
560
- DataMap__set_StaticHash_Z524259A4(dm_2, safeHash(dm_2));
643
+ if (w.CWLDescription != null) {
644
+ throw new Error("Not implemented yet: CWL description in ARC.GetWriteContracts");
645
+ }
646
+ if (w.Datamap != null) {
647
+ const dm_2 = value(w.Datamap);
648
+ dm_2.StaticHash = safeHash(dm_2) | 0;
561
649
  addToDict(filemap, Workflow_datamapFileNameFromIdentifier(w.Identifier), ["ISA_Datamap", toFsWorkbook(dm_2)]);
562
650
  }
563
651
  }, this$.Workflows);
564
652
  iterate((r) => {
565
653
  r.StaticHash = r.GetLightHashCode() | 0;
566
654
  addToDict(filemap, Run_fileNameFromIdentifier(r.Identifier), ["ISA_Run", ARCtrl_ArcRun__ArcRun_toFsWorkbook_Static_Z3EFAF6F8(r)]);
567
- if (r.DataMap != null) {
568
- const dm_3 = value(r.DataMap);
569
- DataMap__set_StaticHash_Z524259A4(dm_3, safeHash(dm_3));
655
+ if (r.CWLDescription != null) {
656
+ throw new Error("Not implemented yet: CWL description in ARC.GetWriteContracts");
657
+ }
658
+ if (r.CWLInput.length > 0) {
659
+ throw new Error("Not implemented yet: CWL YAML input in ARC.GetWriteContracts");
660
+ }
661
+ if (r.Datamap != null) {
662
+ const dm_3 = value(r.Datamap);
663
+ dm_3.StaticHash = safeHash(dm_3) | 0;
570
664
  addToDict(filemap, Run_datamapFileNameFromIdentifier(r.Identifier), ["ISA_Datamap", toFsWorkbook(dm_3)]);
571
665
  }
572
666
  }, this$.Runs);
@@ -578,7 +672,7 @@ class ARC extends ArcInvestigation {
578
672
  l.StaticHash = safeHash(l) | 0;
579
673
  addToDict(filemap, l.Path, ["PlainText", l.Content]);
580
674
  }
581
- return map$1((fp) => {
675
+ return map((fp) => {
582
676
  const matchValue_2 = Dictionary_tryGet(fp, filemap);
583
677
  if (matchValue_2 == null) {
584
678
  return Contract.createCreate(fp, "PlainText");
@@ -602,15 +696,15 @@ class ARC extends ArcInvestigation {
602
696
  return append(collect((s) => {
603
697
  const hash_1 = s.GetLightHashCode() | 0;
604
698
  return append(s.StaticHash === 0 ? ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(s, true) : s.StaticHash !== hash_1 ? singleton(ARCtrl_ArcStudy__ArcStudy_ToUpdateContract(s)) : empty(), delay(() => {
605
- let dm_1;
699
+ let dm, dm_1;
606
700
  s.StaticHash = hash_1 | 0;
607
- const matchValue = s.DataMap;
701
+ const matchValue = s.Datamap;
608
702
  let matchResult, dm_2, dm_3;
609
703
  if (matchValue != null) {
610
- if (DataMap__get_StaticHash(value(matchValue)) === 0) {
704
+ if (dm = value(matchValue), dm.StaticHash === 0) {
611
705
  matchResult = 0;
612
706
  dm_2 = value(matchValue);
613
- } else if (dm_1 = value(matchValue), DataMap__get_StaticHash(dm_1) !== safeHash(dm_1)) {
707
+ } else if (dm_1 = value(matchValue), dm_1.StaticHash !== safeHash(dm_1)) {
614
708
  matchResult = 1;
615
709
  dm_3 = value(matchValue);
616
710
  } else {
@@ -621,13 +715,13 @@ class ARC extends ArcInvestigation {
621
715
  }
622
716
  switch (matchResult) {
623
717
  case 0:
624
- return append(singleton(ARCtrl_DataMap__DataMap_ToCreateContractForStudy_Z721C83C5(dm_2, s.Identifier)), delay(() => {
625
- DataMap__set_StaticHash_Z524259A4(dm_2, safeHash(dm_2));
718
+ return append(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForStudy_Z721C83C5(dm_2, s.Identifier)), delay(() => {
719
+ dm_2.StaticHash = safeHash(dm_2) | 0;
626
720
  return empty();
627
721
  }));
628
722
  case 1:
629
- return append(singleton(ARCtrl_DataMap__DataMap_ToUpdateContractForStudy_Z721C83C5(dm_3, s.Identifier)), delay(() => {
630
- DataMap__set_StaticHash_Z524259A4(dm_3, safeHash(dm_3));
723
+ return append(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForStudy_Z721C83C5(dm_3, s.Identifier)), delay(() => {
724
+ dm_3.StaticHash = safeHash(dm_3) | 0;
631
725
  return empty();
632
726
  }));
633
727
  default: {
@@ -638,15 +732,15 @@ class ARC extends ArcInvestigation {
638
732
  }, this$.Studies), delay(() => append(collect((a) => {
639
733
  const hash_2 = a.GetLightHashCode() | 0;
640
734
  return append(a.StaticHash === 0 ? ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(a, true) : a.StaticHash !== hash_2 ? singleton(ARCtrl_ArcAssay__ArcAssay_ToUpdateContract(a)) : empty(), delay(() => {
641
- let dm_5;
735
+ let dm_4, dm_5;
642
736
  a.StaticHash = hash_2 | 0;
643
- const matchValue_1 = a.DataMap;
737
+ const matchValue_1 = a.Datamap;
644
738
  let matchResult_1, dm_6, dm_7;
645
739
  if (matchValue_1 != null) {
646
- if (DataMap__get_StaticHash(value(matchValue_1)) === 0) {
740
+ if (dm_4 = value(matchValue_1), dm_4.StaticHash === 0) {
647
741
  matchResult_1 = 0;
648
742
  dm_6 = value(matchValue_1);
649
- } else if (dm_5 = value(matchValue_1), DataMap__get_StaticHash(dm_5) !== safeHash(dm_5)) {
743
+ } else if (dm_5 = value(matchValue_1), dm_5.StaticHash !== safeHash(dm_5)) {
650
744
  matchResult_1 = 1;
651
745
  dm_7 = value(matchValue_1);
652
746
  } else {
@@ -657,13 +751,13 @@ class ARC extends ArcInvestigation {
657
751
  }
658
752
  switch (matchResult_1) {
659
753
  case 0:
660
- return append(singleton(ARCtrl_DataMap__DataMap_ToCreateContractForAssay_Z721C83C5(dm_6, a.Identifier)), delay(() => {
661
- DataMap__set_StaticHash_Z524259A4(dm_6, safeHash(dm_6));
754
+ return append(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForAssay_Z721C83C5(dm_6, a.Identifier)), delay(() => {
755
+ dm_6.StaticHash = safeHash(dm_6) | 0;
662
756
  return empty();
663
757
  }));
664
758
  case 1:
665
- return append(singleton(ARCtrl_DataMap__DataMap_ToUpdateContractForAssay_Z721C83C5(dm_7, a.Identifier)), delay(() => {
666
- DataMap__set_StaticHash_Z524259A4(dm_7, safeHash(dm_7));
759
+ return append(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForAssay_Z721C83C5(dm_7, a.Identifier)), delay(() => {
760
+ dm_7.StaticHash = safeHash(dm_7) | 0;
667
761
  return empty();
668
762
  }));
669
763
  default: {
@@ -674,15 +768,15 @@ class ARC extends ArcInvestigation {
674
768
  }, this$.Assays), delay(() => append(collect((w) => {
675
769
  const hash_3 = w.GetLightHashCode() | 0;
676
770
  return append(w.StaticHash === 0 ? ARCtrl_ArcWorkflow__ArcWorkflow_ToCreateContract_6FCE9E49(w, true) : w.StaticHash !== hash_3 ? singleton(ARCtrl_ArcWorkflow__ArcWorkflow_ToUpdateContract(w)) : empty(), delay(() => {
677
- let dm_9;
771
+ let dm_8, dm_9;
678
772
  w.StaticHash = hash_3 | 0;
679
- const matchValue_2 = w.DataMap;
773
+ const matchValue_2 = w.Datamap;
680
774
  let matchResult_2, dm_10, dm_11;
681
775
  if (matchValue_2 != null) {
682
- if (DataMap__get_StaticHash(value(matchValue_2)) === 0) {
776
+ if (dm_8 = value(matchValue_2), dm_8.StaticHash === 0) {
683
777
  matchResult_2 = 0;
684
778
  dm_10 = value(matchValue_2);
685
- } else if (dm_9 = value(matchValue_2), DataMap__get_StaticHash(dm_9) !== safeHash(dm_9)) {
779
+ } else if (dm_9 = value(matchValue_2), dm_9.StaticHash !== safeHash(dm_9)) {
686
780
  matchResult_2 = 1;
687
781
  dm_11 = value(matchValue_2);
688
782
  } else {
@@ -693,13 +787,13 @@ class ARC extends ArcInvestigation {
693
787
  }
694
788
  switch (matchResult_2) {
695
789
  case 0:
696
- return append(singleton(ARCtrl_DataMap__DataMap_ToCreateContractForWorkflow_Z721C83C5(dm_10, w.Identifier)), delay(() => {
697
- DataMap__set_StaticHash_Z524259A4(dm_10, safeHash(dm_10));
790
+ return append(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForWorkflow_Z721C83C5(dm_10, w.Identifier)), delay(() => {
791
+ dm_10.StaticHash = safeHash(dm_10) | 0;
698
792
  return empty();
699
793
  }));
700
794
  case 1:
701
- return append(singleton(ARCtrl_DataMap__DataMap_ToUpdateContractForWorkflow_Z721C83C5(dm_11, w.Identifier)), delay(() => {
702
- DataMap__set_StaticHash_Z524259A4(dm_11, safeHash(dm_11));
795
+ return append(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForWorkflow_Z721C83C5(dm_11, w.Identifier)), delay(() => {
796
+ dm_11.StaticHash = safeHash(dm_11) | 0;
703
797
  return empty();
704
798
  }));
705
799
  default: {
@@ -710,15 +804,15 @@ class ARC extends ArcInvestigation {
710
804
  }, this$.Workflows), delay(() => append(collect((r) => {
711
805
  const hash_4 = r.GetLightHashCode() | 0;
712
806
  return append(r.StaticHash === 0 ? ARCtrl_ArcRun__ArcRun_ToCreateContract_6FCE9E49(r, true) : r.StaticHash !== hash_4 ? singleton(ARCtrl_ArcRun__ArcRun_ToUpdateContract(r)) : empty(), delay(() => {
713
- let dm_13;
807
+ let dm_12, dm_13;
714
808
  r.StaticHash = hash_4 | 0;
715
- const matchValue_3 = r.DataMap;
809
+ const matchValue_3 = r.Datamap;
716
810
  let matchResult_3, dm_14, dm_15;
717
811
  if (matchValue_3 != null) {
718
- if (DataMap__get_StaticHash(value(matchValue_3)) === 0) {
812
+ if (dm_12 = value(matchValue_3), dm_12.StaticHash === 0) {
719
813
  matchResult_3 = 0;
720
814
  dm_14 = value(matchValue_3);
721
- } else if (dm_13 = value(matchValue_3), DataMap__get_StaticHash(dm_13) !== safeHash(dm_13)) {
815
+ } else if (dm_13 = value(matchValue_3), dm_13.StaticHash !== safeHash(dm_13)) {
722
816
  matchResult_3 = 1;
723
817
  dm_15 = value(matchValue_3);
724
818
  } else {
@@ -729,13 +823,13 @@ class ARC extends ArcInvestigation {
729
823
  }
730
824
  switch (matchResult_3) {
731
825
  case 0:
732
- return append(singleton(ARCtrl_DataMap__DataMap_ToCreateContractForRun_Z721C83C5(dm_14, r.Identifier)), delay(() => {
733
- DataMap__set_StaticHash_Z524259A4(dm_14, safeHash(dm_14));
826
+ return append(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForRun_Z721C83C5(dm_14, r.Identifier)), delay(() => {
827
+ dm_14.StaticHash = safeHash(dm_14) | 0;
734
828
  return empty();
735
829
  }));
736
830
  case 1:
737
- return append(singleton(ARCtrl_DataMap__DataMap_ToUpdateContractForRun_Z721C83C5(dm_15, r.Identifier)), delay(() => {
738
- DataMap__set_StaticHash_Z524259A4(dm_15, safeHash(dm_15));
831
+ return append(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForRun_Z721C83C5(dm_15, r.Identifier)), delay(() => {
832
+ dm_15.StaticHash = safeHash(dm_15) | 0;
739
833
  return empty();
740
834
  }));
741
835
  default: {
@@ -820,19 +914,19 @@ class ARC extends ArcInvestigation {
820
914
  const nextPublications = ResizeArray_map((c_3) => c_3.Copy(), this$.Publications);
821
915
  const nextOntologySourceReferences = ResizeArray_map((c_4) => c_4.Copy(), this$.OntologySourceReferences);
822
916
  const nextStudyIdentifiers = Array.from(this$.RegisteredStudyIdentifiers);
823
- const nextLicense = map$2((_arg) => _arg.Copy(), this$.License);
917
+ const nextLicense = map$1((_arg) => _arg.Copy(), this$.License);
824
918
  const fsCopy = this$._fs.Copy();
825
- return new ARC(this$.Identifier, unwrap(this$.Title), unwrap(this$.Description), unwrap(this$.SubmissionDate), unwrap(this$.PublicReleaseDate), nextOntologySourceReferences, nextPublications, nextContacts, nextAssays, nextStudies, nextWorkflows, nextRuns, nextStudyIdentifiers, nextComments, nextRemarks, this$._cwl, fsCopy, unwrap(nextLicense));
919
+ return new ARC(this$.Identifier, unwrap(this$.Title), unwrap(this$.Description), unwrap(this$.SubmissionDate), unwrap(this$.PublicReleaseDate), nextOntologySourceReferences, nextPublications, nextContacts, nextAssays, nextStudies, nextWorkflows, nextRuns, nextStudyIdentifiers, nextComments, nextRemarks, fsCopy, unwrap(nextLicense));
826
920
  }
827
921
  GetRegisteredPayload(IgnoreHidden) {
828
922
  let tree, paths, array_3;
829
923
  const this$ = this;
830
924
  const copy = this$.Copy();
831
925
  const registeredStudies = copy.Studies.slice();
832
- const registeredAssays = concat(map$1((s) => s.RegisteredAssays.slice(), registeredStudies));
926
+ const registeredAssays = concat(map((s) => s.RegisteredAssays.slice(), registeredStudies));
833
927
  const includeFiles = unionMany([ofSeq(toList(delay(() => append(singleton("isa.investigation.xlsx"), delay(() => append(singleton("README.md"), delay(() => this$.License != null ? singleton(value(this$.License).Path) : empty())))))), {
834
928
  Compare: comparePrimitives
835
- }), unionMany(map$1((s_1) => {
929
+ }), unionMany(map((s_1) => {
836
930
  const studyFoldername = `${"studies"}/${s_1.Identifier}`;
837
931
  return ofSeq(toList(delay(() => append(singleton(`${studyFoldername}/${"isa.study.xlsx"}`), delay(() => append(singleton(`${studyFoldername}/${"README.md"}`), delay(() => collect((table) => collect((kv) => {
838
932
  const textValue = kv[1].ToFreeTextCell().AsFreeText;
@@ -842,7 +936,7 @@ class ARC extends ArcInvestigation {
842
936
  });
843
937
  }, registeredStudies), {
844
938
  Compare: comparePrimitives
845
- }), unionMany(map$1((a) => {
939
+ }), unionMany(map((a) => {
846
940
  const assayFoldername = `${"assays"}/${a.Identifier}`;
847
941
  return ofSeq(toList(delay(() => append(singleton(`${assayFoldername}/${"isa.assay.xlsx"}`), delay(() => append(singleton(`${assayFoldername}/${"README.md"}`), delay(() => collect((table_1) => collect((kv_1) => {
848
942
  const textValue_1 = kv_1[1].ToFreeTextCell().AsFreeText;
@@ -923,20 +1017,20 @@ class ARC extends ArcInvestigation {
923
1017
  let fileSystem;
924
1018
  const paths = Array.from(patternInput[1]);
925
1019
  fileSystem = FileSystem.fromFilePaths(paths);
926
- return ARC.fromArcInvestigation(patternInput[0], void 0, fileSystem, unwrap(patternInput[2]));
1020
+ return ARC.fromArcInvestigation(patternInput[0], fileSystem, unwrap(patternInput[2]));
927
1021
  } catch (ex) {
928
1022
  const arg_1 = ex.message;
929
1023
  return toFail(printf("Could not parse ARC-RO-Crate metadata: \n%s"))(arg_1);
930
1024
  }
931
1025
  }
932
- ToROCrateJsonString(spaces) {
1026
+ ToROCrateJsonString(spaces, ignoreBrokenWR) {
933
1027
  const this$ = this;
934
1028
  this$.MakeDataFilesAbsolute();
935
- const value = ROCrate_encoder_1E8A3F74(this$, unwrap(this$._license), this$._fs);
1029
+ const value = ROCrate_encoder_Z7FE34C43(this$, unwrap(this$._license), this$._fs, unwrap(ignoreBrokenWR));
936
1030
  return toString(defaultSpaces(spaces), value);
937
1031
  }
938
- static toROCrateJsonString(spaces) {
939
- return (obj) => obj.ToROCrateJsonString(unwrap(spaces));
1032
+ static toROCrateJsonString(spaces, ignoreBrokenWR) {
1033
+ return (obj) => obj.ToROCrateJsonString(unwrap(spaces), unwrap(ignoreBrokenWR));
940
1034
  }
941
1035
  GetLicenseWriteContract() {
942
1036
  const this$ = this;
@@ -980,12 +1074,24 @@ class ARC extends ArcInvestigation {
980
1074
  }
981
1075
  return this$.FileSystem.Tree.ToFilePaths(unwrap(removeRoot));
982
1076
  }
1077
+ BuildWorkflowGraphs() {
1078
+ const this$ = this;
1079
+ return ofInvestigation(this$).WorkflowGraphs;
1080
+ }
1081
+ BuildRunGraphs() {
1082
+ const this$ = this;
1083
+ return ofInvestigation(this$).RunGraphs;
1084
+ }
1085
+ BuildAllProcessingUnitGraphs() {
1086
+ const this$ = this;
1087
+ return ofInvestigation(this$);
1088
+ }
983
1089
  }
984
1090
  function ARC_$reflection() {
985
1091
  return class_type("ARCtrl.ARC", void 0, ARC, ArcInvestigation_$reflection());
986
1092
  }
987
- function ARC_$ctor_Z4D7EB22(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, workflows, runs, registeredStudyIdentifiers, comments, remarks, cwl, fs, license) {
988
- return new ARC(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, workflows, runs, registeredStudyIdentifiers, comments, remarks, cwl, fs, license);
1093
+ function ARC_$ctor_Z443FB9BF(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, workflows, runs, registeredStudyIdentifiers, comments, remarks, fs, license) {
1094
+ return new ARC(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, workflows, runs, registeredStudyIdentifiers, comments, remarks, fs, license);
989
1095
  }
990
1096
  function ARCAux_getArcAssaysFromContracts(contracts) {
991
1097
  return choose(ARCtrl_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F, contracts);
@@ -999,17 +1105,66 @@ function ARCAux_getArcWorkflowsFromContracts(contracts) {
999
1105
  function ARCAux_getArcRunsFromContracts(contracts) {
1000
1106
  return choose(ARCtrl_ArcRun__ArcRun_tryFromReadContract_Static_7570923F, contracts);
1001
1107
  }
1002
- function ARCAux_getAssayDataMapFromContracts(assayIdentifier, contracts) {
1003
- return tryPick((c) => ARCtrl_DataMap__DataMap_tryFromReadContractForAssay_Static(assayIdentifier, c), contracts);
1108
+ function ARCAux_getAssayDatamapFromContracts(assayIdentifier, contracts) {
1109
+ return tryPick((c) => ARCtrl_Datamap__Datamap_tryFromReadContractForAssay_Static(assayIdentifier, c), contracts);
1110
+ }
1111
+ function ARCAux_getStudyDatamapFromContracts(studyIdentifier, contracts) {
1112
+ return tryPick((c) => ARCtrl_Datamap__Datamap_tryFromReadContractForStudy_Static(studyIdentifier, c), contracts);
1113
+ }
1114
+ function ARCAux_getWorkflowDatamapFromContracts(workflowIdentifier, contracts) {
1115
+ return tryPick((c) => ARCtrl_Datamap__Datamap_tryFromReadContractForWorkflow_Static(workflowIdentifier, c), contracts);
1004
1116
  }
1005
- function ARCAux_getStudyDataMapFromContracts(studyIdentifier, contracts) {
1006
- return tryPick((c) => ARCtrl_DataMap__DataMap_tryFromReadContractForStudy_Static(studyIdentifier, c), contracts);
1117
+ function ARCAux_getRunDatamapFromContracts(runIdentifier, contracts) {
1118
+ return tryPick((c) => ARCtrl_Datamap__Datamap_tryFromReadContractForRun_Static(runIdentifier, c), contracts);
1007
1119
  }
1008
- function ARCAux_getWorkflowDataMapFromContracts(workflowIdentifier, contracts) {
1009
- return tryPick((c) => ARCtrl_DataMap__DataMap_tryFromReadContractForWorkflow_Static(workflowIdentifier, c), contracts);
1120
+ function ARCAux_getWorkflowCWLFromContracts(workflowIdentifier, contracts) {
1121
+ return tryPick((c) => ARCtrl_ArcWorkflow__ArcWorkflow_tryCWLFromReadContract_Static(workflowIdentifier, c), contracts);
1010
1122
  }
1011
- function ARCAux_getRunDataMapFromContracts(runIdentifier, contracts) {
1012
- return tryPick((c) => ARCtrl_DataMap__DataMap_tryFromReadContractForRun_Static(runIdentifier, c), contracts);
1123
+ function ARCAux_getRunCWLFromContracts(runIdentifier, contracts) {
1124
+ return tryPick((c) => ARCtrl_ArcRun__ArcRun_tryCWLFromReadContract_Static(runIdentifier, c), contracts);
1125
+ }
1126
+ function ARCAux_getRunYMLFromContracts(runIdentifier, contracts) {
1127
+ return tryPick((c) => ARCtrl_ArcRun__ArcRun_tryYMLFromReadContract_Static(runIdentifier, c), contracts);
1128
+ }
1129
+ function ARCAux_getCWLByPathFromContracts(contracts) {
1130
+ return ofArray(choose((c) => {
1131
+ let matchResult, text;
1132
+ if (c.Operation === "READ") {
1133
+ if (c.DTOType != null) {
1134
+ if (value(c.DTOType) === "CWL") {
1135
+ if (c.DTO != null) {
1136
+ if (typeof value(c.DTO) === "string") {
1137
+ matchResult = 0;
1138
+ text = value(c.DTO);
1139
+ } else {
1140
+ matchResult = 1;
1141
+ }
1142
+ } else {
1143
+ matchResult = 1;
1144
+ }
1145
+ } else {
1146
+ matchResult = 1;
1147
+ }
1148
+ } else {
1149
+ matchResult = 1;
1150
+ }
1151
+ } else {
1152
+ matchResult = 1;
1153
+ }
1154
+ switch (matchResult) {
1155
+ case 0: {
1156
+ const cwl = Decode_decodeCWLProcessingUnit(text);
1157
+ return [normalizePathKey(c.Path), cwl];
1158
+ }
1159
+ default:
1160
+ return void 0;
1161
+ }
1162
+ }, contracts), {
1163
+ Compare: comparePrimitives
1164
+ });
1165
+ }
1166
+ function ARCAux_tryGetCWLByPath(cwlByPath, path) {
1167
+ return tryFind$1(normalizePathKey(path), cwlByPath);
1013
1168
  }
1014
1169
  function ARCAux_getArcInvestigationFromContracts(contracts) {
1015
1170
  const matchValue = choose(ARCtrl_ArcInvestigation__ArcInvestigation_tryFromReadContract_Static_7570923F, contracts);
@@ -1025,16 +1180,16 @@ function ARCAux_getLicenseFromContracts(contracts) {
1025
1180
  }
1026
1181
  function ARCAux_updateFSByARC(isa, license, fs) {
1027
1182
  let assaysFolder;
1028
- const assays = map$1((a) => FileSystemTree.createAssayFolder(a.Identifier, a.DataMap != null), toArray(isa.Assays));
1183
+ const assays = map((a) => FileSystemTree.createAssayFolder(a.Identifier, a.Datamap != null), toArray(isa.Assays));
1029
1184
  assaysFolder = FileSystemTree.createAssaysFolder(assays);
1030
1185
  let studiesFolder;
1031
- const studies = map$1((s) => FileSystemTree.createStudyFolder(s.Identifier, s.DataMap != null), toArray(isa.Studies));
1186
+ const studies = map((s) => FileSystemTree.createStudyFolder(s.Identifier, s.Datamap != null), toArray(isa.Studies));
1032
1187
  studiesFolder = FileSystemTree.createStudiesFolder(studies);
1033
1188
  let workflowsFolder;
1034
- const workflows = map$1((w) => FileSystemTree.createWorkflowFolder(w.Identifier, w.DataMap != null), toArray(isa.Workflows));
1189
+ const workflows = map((w) => FileSystemTree.createWorkflowFolder(w.Identifier, w.CWLDescription != null, w.Datamap != null), toArray(isa.Workflows));
1035
1190
  workflowsFolder = FileSystemTree.createWorkflowsFolder(workflows);
1036
1191
  let runsFolder;
1037
- const runs = map$1((r) => FileSystemTree.createRunFolder(r.Identifier, r.DataMap != null), toArray(isa.Runs));
1192
+ const runs = map((r) => FileSystemTree.createRunFolder(r.Identifier, r.CWLDescription != null, r.CWLInput.length > 0, r.Datamap != null), toArray(isa.Runs));
1038
1193
  runsFolder = FileSystemTree.createRunsFolder(runs);
1039
1194
  const investigation = FileSystemTree.createInvestigationFile();
1040
1195
  let tree_1;
@@ -1044,15 +1199,5 @@ function ARCAux_updateFSByARC(isa, license, fs) {
1044
1199
  });
1045
1200
  return fs.Union(tree_1);
1046
1201
  }
1047
- function ARCAux_updateFSByCWL(cwl, fs) {
1048
- const workflows = FileSystemTree.createWorkflowsFolder([]);
1049
- const runs = FileSystemTree.createRunsFolder([]);
1050
- let tree_1;
1051
- const tree = FileSystemTree.createRootFolder([workflows, runs]);
1052
- tree_1 = FileSystem.create({
1053
- tree
1054
- });
1055
- return fs.Union(tree_1);
1056
- }
1057
1202
 
1058
- export { ARC, ARCAux_getArcAssaysFromContracts, ARCAux_getArcInvestigationFromContracts, ARCAux_getArcRunsFromContracts, ARCAux_getArcStudiesFromContracts, ARCAux_getArcWorkflowsFromContracts, ARCAux_getAssayDataMapFromContracts, ARCAux_getLicenseFromContracts, ARCAux_getRunDataMapFromContracts, ARCAux_getStudyDataMapFromContracts, ARCAux_getWorkflowDataMapFromContracts, ARCAux_updateFSByARC, ARCAux_updateFSByCWL, ARC_$ctor_Z4D7EB22, ARC_$reflection };
1203
+ export { ARC, ARCAux_getArcAssaysFromContracts, ARCAux_getArcInvestigationFromContracts, ARCAux_getArcRunsFromContracts, ARCAux_getArcStudiesFromContracts, ARCAux_getArcWorkflowsFromContracts, ARCAux_getAssayDatamapFromContracts, ARCAux_getCWLByPathFromContracts, ARCAux_getLicenseFromContracts, ARCAux_getRunCWLFromContracts, ARCAux_getRunDatamapFromContracts, ARCAux_getRunYMLFromContracts, ARCAux_getStudyDatamapFromContracts, ARCAux_getWorkflowCWLFromContracts, ARCAux_getWorkflowDatamapFromContracts, ARCAux_tryGetCWLByPath, ARCAux_updateFSByARC, ARC_$ctor_Z443FB9BF, ARC_$reflection };