@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,455 @@
1
+ import { class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
2
+ import { LDLabProtocol } from '../ROCrate/LDTypes/LabProtocol.js';
3
+ import { unwrap, value, map as map$1, defaultArg } from '../../node_modules/@fable-org/fable-library-js/Option.js';
4
+ import { OntologyAnnotation } from '../Core/OntologyAnnotation.js';
5
+ import { BaseTypes_decomposeDefinedTerm_Z2F770004, BaseTypes_composeComponent, BaseTypes_composeParameterValue, BaseTypes_composeFactorValue, BaseTypes_composeCharacteristicValue, BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_composeProcessInput, BaseTypes_composeProcessOutput, BaseTypes_decomposeParameterValue_Z2F770004, BaseTypes_decomposeComponent_Z2F770004, BaseTypes_decomposeCharacteristicValue_Z2F770004, BaseTypes_decomposeFactorValue_Z2F770004, BaseTypes_decomposeProcessInput_Z2F770004, BaseTypes_decomposeProcessOutput_Z2F770004 } from './Basic.js';
6
+ import { parse } from '../../node_modules/@fable-org/fable-library-js/Int32.js';
7
+ import { ActivePatterns_$007CRegex$007C_$007C } from '../Core/Helper/Regex.js';
8
+ import { Unchecked_tryGetCellAt, getEmptyCellForHeader } from '../Core/Table/ArcTableAux.js';
9
+ import { ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4, tryGetIndex } from './ColumnIndex.js';
10
+ import { CompositeCell_FreeText, CompositeCell_Term } from '../Core/Table/CompositeCell.js';
11
+ import { CompositeHeader_ProtocolREF, CompositeHeader_ProtocolDescription, CompositeHeader_ProtocolUri, CompositeHeader_ProtocolVersion, CompositeHeader_ProtocolType, CompositeHeader_Comment } from '../Core/Table/CompositeHeader.js';
12
+ import { toString } from '../../node_modules/@fable-org/fable-library-js/Types.js';
13
+ import { Comment$ } from '../Core/Comment.js';
14
+ import { LDPerson } from '../ROCrate/LDTypes/Person.js';
15
+ import { indexed, toList, filter, tryPick, choose as choose$1, map, delay, append, empty as empty$1, singleton } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
16
+ import { choose, length, empty, map as map$2, sortBy } from '../../node_modules/@fable-org/fable-library-js/List.js';
17
+ import { ResizeArray_singleton, Option_fromValueWithDefault, ResizeArray_map, ResizeArray_create, ResizeArray_zip } from '../Core/Helper/Collections.js';
18
+ import { LDSample } from '../ROCrate/LDTypes/Sample.js';
19
+ import { LDLabProcess } from '../ROCrate/LDTypes/LabProcess.js';
20
+ import { List_groupBy } from '../../node_modules/@fable-org/fable-library-js/Seq2.js';
21
+ import { createMissingIdentifier } from '../Core/Helper/Identifier.js';
22
+ import { stringHash, comparePrimitives } from '../../node_modules/@fable-org/fable-library-js/Util.js';
23
+
24
+ class ProcessConversion {
25
+ constructor() {
26
+ }
27
+ }
28
+ function ProcessConversion_$reflection() {
29
+ return class_type("ARCtrl.Conversion.ProcessConversion", void 0, ProcessConversion);
30
+ }
31
+ function ProcessConversion_tryGetProtocolType_Z6839B9E8(pv, graph, context) {
32
+ const matchValue = LDLabProtocol.tryGetIntendedUseAsDefinedTerm(pv, unwrap(graph), unwrap(context));
33
+ if (matchValue == null) {
34
+ const matchValue_1 = LDLabProtocol.tryGetIntendedUseAsString(pv, unwrap(context));
35
+ if (matchValue_1 == null) {
36
+ return void 0;
37
+ } else {
38
+ const s = value(matchValue_1);
39
+ return OntologyAnnotation.create(s);
40
+ }
41
+ } else {
42
+ return BaseTypes_decomposeDefinedTerm_Z2F770004(value(matchValue), unwrap(context));
43
+ }
44
+ }
45
+ function ProcessConversion_composeProcessName(processNameRoot, i) {
46
+ return `${processNameRoot}_${i}`;
47
+ }
48
+ function ProcessConversion_decomposeProcessName_Z721C83C5(name) {
49
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("(?<name>.+)_(?<num>\\d+)", name);
50
+ if (activePatternResult != null) {
51
+ const r = value(activePatternResult);
52
+ return [r.groups && r.groups.name || "", parse(r.groups && r.groups.num || "", 511, false, 32)];
53
+ } else {
54
+ return [name, void 0];
55
+ }
56
+ }
57
+ function ProcessConversion_tryComponentGetter(generalI, valueI, valueHeader) {
58
+ if (valueHeader.tag === /* Component */
59
+ 0) {
60
+ const oa = valueHeader.fields[0];
61
+ return (table) => (i) => {
62
+ let matchValue;
63
+ const c = BaseTypes_composeComponent(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
64
+ ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(c, valueI);
65
+ return c;
66
+ };
67
+ } else {
68
+ return void 0;
69
+ }
70
+ }
71
+ function ProcessConversion_tryParameterGetter(generalI, valueI, valueHeader) {
72
+ if (valueHeader.tag === /* Parameter */
73
+ 3) {
74
+ const oa = valueHeader.fields[0];
75
+ return (table) => (i) => {
76
+ let matchValue;
77
+ const p = BaseTypes_composeParameterValue(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
78
+ ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(p, valueI);
79
+ return p;
80
+ };
81
+ } else {
82
+ return void 0;
83
+ }
84
+ }
85
+ function ProcessConversion_tryFactorGetter(generalI, valueI, valueHeader) {
86
+ if (valueHeader.tag === /* Factor */
87
+ 2) {
88
+ const oa = valueHeader.fields[0];
89
+ return (table) => (i) => {
90
+ let matchValue;
91
+ const f = BaseTypes_composeFactorValue(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
92
+ ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(f, valueI);
93
+ return f;
94
+ };
95
+ } else {
96
+ return void 0;
97
+ }
98
+ }
99
+ function ProcessConversion_tryCharacteristicGetter(generalI, valueI, valueHeader) {
100
+ if (valueHeader.tag === /* Characteristic */
101
+ 1) {
102
+ const oa = valueHeader.fields[0];
103
+ return (table) => (i) => {
104
+ let matchValue;
105
+ const c = BaseTypes_composeCharacteristicValue(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
106
+ ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(c, valueI);
107
+ return c;
108
+ };
109
+ } else {
110
+ return void 0;
111
+ }
112
+ }
113
+ function ProcessConversion_tryGetProtocolTypeGetter(generalI, header) {
114
+ if (header.tag === /* ProtocolType */
115
+ 4) {
116
+ return (table) => (i) => {
117
+ let matchValue, cell;
118
+ return BaseTypes_composeDefinedTerm_ZDED3A0F((matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? new OntologyAnnotation() : (cell = value(matchValue), cell.AsTerm)));
119
+ };
120
+ } else {
121
+ return void 0;
122
+ }
123
+ }
124
+ function ProcessConversion_tryGetProtocolREFGetter(generalI, header) {
125
+ if (header.tag === /* ProtocolREF */
126
+ 8) {
127
+ return (table) => (i) => {
128
+ const matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values);
129
+ if (matchValue == null) {
130
+ return "";
131
+ } else {
132
+ const cell = value(matchValue);
133
+ return cell.AsFreeText;
134
+ }
135
+ };
136
+ } else {
137
+ return void 0;
138
+ }
139
+ }
140
+ function ProcessConversion_tryGetProtocolDescriptionGetter(generalI, header) {
141
+ if (header.tag === /* ProtocolDescription */
142
+ 5) {
143
+ return (table) => (i) => {
144
+ const matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values);
145
+ if (matchValue == null) {
146
+ return "";
147
+ } else {
148
+ const cell = value(matchValue);
149
+ return cell.AsFreeText;
150
+ }
151
+ };
152
+ } else {
153
+ return void 0;
154
+ }
155
+ }
156
+ function ProcessConversion_tryGetProtocolURIGetter(generalI, header) {
157
+ if (header.tag === /* ProtocolUri */
158
+ 6) {
159
+ return (table) => (i) => {
160
+ const matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values);
161
+ if (matchValue == null) {
162
+ return "";
163
+ } else {
164
+ const cell = value(matchValue);
165
+ return cell.AsFreeText;
166
+ }
167
+ };
168
+ } else {
169
+ return void 0;
170
+ }
171
+ }
172
+ function ProcessConversion_tryGetProtocolVersionGetter(generalI, header) {
173
+ if (header.tag === /* ProtocolVersion */
174
+ 7) {
175
+ return (table) => (i) => {
176
+ const matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values);
177
+ if (matchValue == null) {
178
+ return "";
179
+ } else {
180
+ const cell = value(matchValue);
181
+ return cell.AsFreeText;
182
+ }
183
+ };
184
+ } else {
185
+ return void 0;
186
+ }
187
+ }
188
+ function ProcessConversion_tryGetInputGetter(generalI, header, fs) {
189
+ if (header.tag === /* Input */
190
+ 11) {
191
+ const io = header.fields[0];
192
+ return (table) => (i) => {
193
+ let matchValue;
194
+ return BaseTypes_composeProcessInput(header, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(header, void 0) : value(matchValue)), fs);
195
+ };
196
+ } else {
197
+ return void 0;
198
+ }
199
+ }
200
+ function ProcessConversion_tryGetOutputGetter(generalI, header, fs) {
201
+ if (header.tag === /* Output */
202
+ 12) {
203
+ const io = header.fields[0];
204
+ return (table) => (i) => {
205
+ let matchValue;
206
+ return BaseTypes_composeProcessOutput(header, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(header, void 0) : value(matchValue)), fs);
207
+ };
208
+ } else {
209
+ return void 0;
210
+ }
211
+ }
212
+ function ProcessConversion_tryGetCommentGetter(generalI, header) {
213
+ if (header.tag === /* Comment */
214
+ 14) {
215
+ const c = header.fields[0];
216
+ return (table) => (i) => {
217
+ let matchValue, cell;
218
+ return toString((matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? new Comment$(c) : (cell = value(matchValue), new Comment$(c, cell.AsFreeText))));
219
+ };
220
+ } else {
221
+ return void 0;
222
+ }
223
+ }
224
+ function ProcessConversion_tryGetPerformerGetter(generalI, header) {
225
+ if (header.tag === /* Performer */
226
+ 9) {
227
+ return (table) => (i) => {
228
+ let performer;
229
+ const matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values);
230
+ if (matchValue == null) {
231
+ performer = "";
232
+ } else {
233
+ const cell = value(matchValue);
234
+ performer = cell.AsFreeText;
235
+ }
236
+ return LDPerson.create(performer);
237
+ };
238
+ } else {
239
+ return void 0;
240
+ }
241
+ }
242
+ function ProcessConversion_getProcessGetter(assayName, studyName, processNameRoot, headers, fs) {
243
+ const headers_1 = indexed(headers);
244
+ const valueHeaders = toList(indexed(filter((arg) => arg[1].IsCvParamColumn, headers_1)));
245
+ const charGetters = choose((tupledArg) => {
246
+ const _arg = tupledArg[1];
247
+ return ProcessConversion_tryCharacteristicGetter(_arg[0], tupledArg[0], _arg[1]);
248
+ }, valueHeaders);
249
+ const factorValueGetters = choose((tupledArg_1) => {
250
+ const _arg_1 = tupledArg_1[1];
251
+ return ProcessConversion_tryFactorGetter(_arg_1[0], tupledArg_1[0], _arg_1[1]);
252
+ }, valueHeaders);
253
+ const parameterValueGetters = choose((tupledArg_2) => {
254
+ const _arg_2 = tupledArg_2[1];
255
+ return ProcessConversion_tryParameterGetter(_arg_2[0], tupledArg_2[0], _arg_2[1]);
256
+ }, valueHeaders);
257
+ const componentGetters = choose((tupledArg_3) => {
258
+ const _arg_3 = tupledArg_3[1];
259
+ return ProcessConversion_tryComponentGetter(_arg_3[0], tupledArg_3[0], _arg_3[1]);
260
+ }, valueHeaders);
261
+ const protocolTypeGetter = tryPick((tupledArg_4) => ProcessConversion_tryGetProtocolTypeGetter(tupledArg_4[0], tupledArg_4[1]), headers_1);
262
+ const protocolREFGetter = tryPick((tupledArg_5) => ProcessConversion_tryGetProtocolREFGetter(tupledArg_5[0], tupledArg_5[1]), headers_1);
263
+ const protocolDescriptionGetter = tryPick((tupledArg_6) => ProcessConversion_tryGetProtocolDescriptionGetter(tupledArg_6[0], tupledArg_6[1]), headers_1);
264
+ const protocolURIGetter = tryPick((tupledArg_7) => ProcessConversion_tryGetProtocolURIGetter(tupledArg_7[0], tupledArg_7[1]), headers_1);
265
+ const protocolVersionGetter = tryPick((tupledArg_8) => ProcessConversion_tryGetProtocolVersionGetter(tupledArg_8[0], tupledArg_8[1]), headers_1);
266
+ const performerGetter = tryPick((tupledArg_9) => ProcessConversion_tryGetPerformerGetter(tupledArg_9[0], tupledArg_9[1]), headers_1);
267
+ const commentGetters = toList(choose$1((tupledArg_10) => ProcessConversion_tryGetCommentGetter(tupledArg_10[0], tupledArg_10[1]), headers_1));
268
+ let inputGetter_1;
269
+ const matchValue = tryPick((tupledArg_11) => ProcessConversion_tryGetInputGetter(tupledArg_11[0], tupledArg_11[1], fs), headers_1);
270
+ if (matchValue == null) {
271
+ inputGetter_1 = length(charGetters) !== 0 ? (table_1) => (i_1) => {
272
+ let chars_1;
273
+ const collection_1 = map((f_1) => f_1(table_1)(i_1), charGetters);
274
+ chars_1 = Array.from(collection_1);
275
+ return ResizeArray_singleton(LDSample.createSample(`${processNameRoot}_Input_${i_1}`, void 0, chars_1));
276
+ } : (table_2) => (i_2) => [];
277
+ } else {
278
+ const inputGetter = value(matchValue);
279
+ inputGetter_1 = (table) => (i) => {
280
+ let chars;
281
+ const collection = map((f) => f(table)(i), charGetters);
282
+ chars = Array.from(collection);
283
+ const input = inputGetter(table)(i);
284
+ if (chars.length > 0) {
285
+ LDSample.setAdditionalProperties(input, chars);
286
+ }
287
+ return ResizeArray_singleton(input);
288
+ };
289
+ }
290
+ let outputGetter_1;
291
+ const matchValue_1 = tryPick((tupledArg_12) => ProcessConversion_tryGetOutputGetter(tupledArg_12[0], tupledArg_12[1], fs), headers_1);
292
+ if (matchValue_1 == null) {
293
+ outputGetter_1 = length(factorValueGetters) !== 0 ? (table_4) => (i_4) => {
294
+ let factors_1;
295
+ const collection_3 = map((f_3) => f_3(table_4)(i_4), factorValueGetters);
296
+ factors_1 = Array.from(collection_3);
297
+ return ResizeArray_singleton(LDSample.createSample(`${processNameRoot}_Output_${i_4}`, void 0, factors_1));
298
+ } : (table_5) => (i_5) => [];
299
+ } else {
300
+ const outputGetter = value(matchValue_1);
301
+ outputGetter_1 = (table_3) => (i_3) => {
302
+ let factors;
303
+ const collection_2 = map((f_2) => f_2(table_3)(i_3), factorValueGetters);
304
+ factors = Array.from(collection_2);
305
+ const output = outputGetter(table_3)(i_3);
306
+ if (factors.length > 0) {
307
+ LDSample.setAdditionalProperties(output, factors);
308
+ }
309
+ return ResizeArray_singleton(output);
310
+ };
311
+ }
312
+ return (table_6) => (i_6) => {
313
+ const pn = table_6.RowCount === 1 ? processNameRoot : ProcessConversion_composeProcessName(processNameRoot, i_6);
314
+ const paramvalues = map$1((collection_4) => Array.from(collection_4), Option_fromValueWithDefault(empty(), map$2((f_4) => f_4(table_6)(i_6), parameterValueGetters)));
315
+ const comments = map$1((collection_5) => Array.from(collection_5), Option_fromValueWithDefault(empty(), map$2((f_5) => f_5(table_6)(i_6), commentGetters)));
316
+ const components = map$1((collection_6) => Array.from(collection_6), Option_fromValueWithDefault(empty(), map$2((f_6) => f_6(table_6)(i_6), componentGetters)));
317
+ const id = LDLabProcess.genId(processNameRoot, unwrap(assayName), unwrap(studyName)) + `_${i_6}`;
318
+ let protocol;
319
+ const name = map$1((f_7) => f_7(table_6)(i_6), protocolREFGetter);
320
+ const protocolId = LDLabProtocol.genId(unwrap(name), processNameRoot);
321
+ protocol = LDLabProtocol.create(protocolId, unwrap(name), unwrap(map$1((f_8) => f_8(table_6)(i_6), protocolDescriptionGetter)), unwrap(map$1((f_9) => f_9(table_6)(i_6), protocolTypeGetter)), void 0, void 0, unwrap(components), void 0, unwrap(map$1((f_10) => f_10(table_6)(i_6), protocolURIGetter)), unwrap(map$1((f_11) => f_11(table_6)(i_6), protocolVersionGetter)));
322
+ const matchValue_2 = inputGetter_1(table_6)(i_6);
323
+ const matchValue_3 = outputGetter_1(table_6)(i_6);
324
+ const agent = map$1((f_12) => f_12(table_6)(i_6), performerGetter);
325
+ return LDLabProcess.create(pn, matchValue_2, matchValue_3, id, unwrap(agent), unwrap(protocol), unwrap(paramvalues), void 0, unwrap(comments));
326
+ };
327
+ }
328
+ function ProcessConversion_groupProcesses_Z27F0B586(processes, graph, context) {
329
+ return List_groupBy((p) => {
330
+ let protocol, protocol_1;
331
+ const matchValue = LDLabProcess.tryGetNameAsString(p, unwrap(context));
332
+ const matchValue_1 = LDLabProcess.tryGetExecutesLabProtocol(p, unwrap(graph), unwrap(context));
333
+ let matchResult, name_1, protocol_2, name_2, protocol_3;
334
+ if (matchValue != null) {
335
+ if (ProcessConversion_decomposeProcessName_Z721C83C5(value(matchValue))[1] != null) {
336
+ matchResult = 0;
337
+ name_1 = value(matchValue);
338
+ } else if (matchValue_1 != null) {
339
+ if (protocol = value(matchValue_1), LDLabProtocol.tryGetNameAsString(protocol, unwrap(context)) != null) {
340
+ matchResult = 1;
341
+ protocol_2 = value(matchValue_1);
342
+ } else {
343
+ matchResult = 2;
344
+ name_2 = value(matchValue);
345
+ }
346
+ } else {
347
+ matchResult = 2;
348
+ name_2 = value(matchValue);
349
+ }
350
+ } else if (matchValue_1 != null) {
351
+ if (protocol_1 = value(matchValue_1), LDLabProtocol.tryGetNameAsString(protocol_1, unwrap(context)) != null) {
352
+ matchResult = 1;
353
+ protocol_2 = value(matchValue_1);
354
+ } else {
355
+ matchResult = 3;
356
+ protocol_3 = value(matchValue_1);
357
+ }
358
+ } else {
359
+ matchResult = 4;
360
+ }
361
+ switch (matchResult) {
362
+ case 0:
363
+ return ProcessConversion_decomposeProcessName_Z721C83C5(name_1)[0];
364
+ case 1:
365
+ return defaultArg(LDLabProtocol.tryGetNameAsString(protocol_2, unwrap(context)), "");
366
+ case 2:
367
+ return name_2;
368
+ case 3:
369
+ return protocol_3.Id;
370
+ default:
371
+ return createMissingIdentifier();
372
+ }
373
+ }, processes, {
374
+ Equals: (x, y) => x === y,
375
+ GetHashCode: stringHash
376
+ });
377
+ }
378
+ function ProcessConversion_processToRows_Z6839B9E8(p, graph, context) {
379
+ const pvs = ResizeArray_map((ppv) => [BaseTypes_decomposeParameterValue_Z2F770004(ppv, unwrap(context)), tryGetIndex(ppv)], LDLabProcess.getParameterValues(p, unwrap(graph), unwrap(context)));
380
+ let components;
381
+ const matchValue = LDLabProcess.tryGetExecutesLabProtocol(p, unwrap(graph), unwrap(context));
382
+ if (matchValue == null) {
383
+ components = [];
384
+ } else {
385
+ const prot = value(matchValue);
386
+ components = ResizeArray_map((ppv_1) => [BaseTypes_decomposeComponent_Z2F770004(ppv_1, unwrap(context)), tryGetIndex(ppv_1)], LDLabProtocol.getComponents(prot, unwrap(graph), unwrap(context)));
387
+ }
388
+ let protVals;
389
+ const matchValue_1 = LDLabProcess.tryGetExecutesLabProtocol(p, unwrap(graph), unwrap(context));
390
+ if (matchValue_1 == null) {
391
+ protVals = empty();
392
+ } else {
393
+ const prot_1 = value(matchValue_1);
394
+ protVals = toList(delay(() => {
395
+ let matchValue_2;
396
+ return append((matchValue_2 = LDLabProtocol.tryGetNameAsString(prot_1, unwrap(context)), matchValue_2 == null ? empty$1() : singleton([CompositeHeader_ProtocolREF(), CompositeCell_FreeText(value(matchValue_2))])), delay(() => {
397
+ let matchValue_3;
398
+ return append((matchValue_3 = LDLabProtocol.tryGetDescriptionAsString(prot_1, unwrap(context)), matchValue_3 == null ? empty$1() : singleton([CompositeHeader_ProtocolDescription(), CompositeCell_FreeText(value(matchValue_3))])), delay(() => {
399
+ let matchValue_4;
400
+ return append((matchValue_4 = LDLabProtocol.tryGetUrl(prot_1, unwrap(context)), matchValue_4 == null ? empty$1() : singleton([CompositeHeader_ProtocolUri(), CompositeCell_FreeText(value(matchValue_4))])), delay(() => {
401
+ let matchValue_5;
402
+ return append((matchValue_5 = LDLabProtocol.tryGetVersionAsString(prot_1, unwrap(context)), matchValue_5 == null ? empty$1() : singleton([CompositeHeader_ProtocolVersion(), CompositeCell_FreeText(value(matchValue_5))])), delay(() => {
403
+ const matchValue_6 = ProcessConversion_tryGetProtocolType_Z6839B9E8(prot_1, unwrap(graph), unwrap(context));
404
+ if (matchValue_6 == null) {
405
+ return empty$1();
406
+ } else {
407
+ return singleton([CompositeHeader_ProtocolType(), CompositeCell_Term(value(matchValue_6))]);
408
+ }
409
+ }));
410
+ }));
411
+ }));
412
+ }));
413
+ }));
414
+ }
415
+ const comments = ResizeArray_map((c) => {
416
+ const c_1 = Comment$.fromString(c);
417
+ return [CompositeHeader_Comment(defaultArg(c_1.Name, "")), CompositeCell_FreeText(defaultArg(c_1.Value, ""))];
418
+ }, LDLabProcess.getDisambiguatingDescriptionsAsString(p, unwrap(context)));
419
+ const inputs = LDLabProcess.getObjects(p, unwrap(graph), unwrap(context));
420
+ const outputs = LDLabProcess.getResults(p, unwrap(graph), unwrap(context));
421
+ const patternInput = inputs.length === 0 && outputs.length !== 0 ? [ResizeArray_create(outputs.length, void 0), ResizeArray_map((Value) => Value, outputs)] : inputs.length !== 0 && outputs.length === 0 ? [ResizeArray_map((Value_1) => Value_1, inputs), ResizeArray_create(inputs.length, void 0)] : [ResizeArray_map((Value_2) => Value_2, inputs), ResizeArray_map((Value_3) => Value_3, outputs)];
422
+ const outputs_1 = patternInput[1];
423
+ const inputs_1 = patternInput[0];
424
+ if (inputs_1.length === 0 && outputs_1.length === 0) {
425
+ const vals = map$2((tuple_1) => tuple_1[0], sortBy((arg) => defaultArg(arg[1], 1e4), toList(delay(() => append(components, delay(() => pvs)))), {
426
+ Compare: comparePrimitives
427
+ }));
428
+ return ResizeArray_singleton(toList(delay(() => append(protVals, delay(() => append(vals, delay(() => comments)))))));
429
+ } else {
430
+ return ResizeArray_map((tupledArg) => {
431
+ const i = tupledArg[0];
432
+ const o = tupledArg[1];
433
+ let chars;
434
+ if (i == null) {
435
+ chars = [];
436
+ } else {
437
+ const i_1 = value(i);
438
+ chars = ResizeArray_map((cv) => [BaseTypes_decomposeCharacteristicValue_Z2F770004(cv, unwrap(context)), tryGetIndex(cv)], LDSample.getCharacteristics(i_1, unwrap(graph), unwrap(context)));
439
+ }
440
+ let factors;
441
+ if (o == null) {
442
+ factors = [];
443
+ } else {
444
+ const o_1 = value(o);
445
+ factors = ResizeArray_map((fv) => [BaseTypes_decomposeFactorValue_Z2F770004(fv, unwrap(context)), tryGetIndex(fv)], LDSample.getFactors(o_1, unwrap(graph), unwrap(context)));
446
+ }
447
+ const vals_1 = map$2((tuple_3) => tuple_3[0], sortBy((arg_1) => defaultArg(arg_1[1], 1e4), toList(delay(() => append(chars, delay(() => append(components, delay(() => append(pvs, delay(() => factors)))))))), {
448
+ Compare: comparePrimitives
449
+ }));
450
+ return toList(delay(() => append(i != null ? singleton(BaseTypes_decomposeProcessInput_Z2F770004(value(i), unwrap(context))) : empty$1(), delay(() => append(protVals, delay(() => append(vals_1, delay(() => append(comments, delay(() => o != null ? singleton(BaseTypes_decomposeProcessOutput_Z2F770004(value(o), unwrap(context))) : empty$1()))))))))));
451
+ }, ResizeArray_zip(inputs_1, outputs_1));
452
+ }
453
+ }
454
+
455
+ export { ProcessConversion, ProcessConversion_$reflection, ProcessConversion_composeProcessName, ProcessConversion_decomposeProcessName_Z721C83C5, ProcessConversion_getProcessGetter, ProcessConversion_groupProcesses_Z27F0B586, ProcessConversion_processToRows_Z6839B9E8, ProcessConversion_tryCharacteristicGetter, ProcessConversion_tryComponentGetter, ProcessConversion_tryFactorGetter, ProcessConversion_tryGetCommentGetter, ProcessConversion_tryGetInputGetter, ProcessConversion_tryGetOutputGetter, ProcessConversion_tryGetPerformerGetter, ProcessConversion_tryGetProtocolDescriptionGetter, ProcessConversion_tryGetProtocolREFGetter, ProcessConversion_tryGetProtocolTypeGetter, ProcessConversion_tryGetProtocolType_Z6839B9E8, ProcessConversion_tryGetProtocolURIGetter, ProcessConversion_tryGetProtocolVersionGetter, ProcessConversion_tryParameterGetter };
@@ -0,0 +1,35 @@
1
+ import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
2
+ import { CWLType_$union } from '../CWL/CWLTypes.js';
3
+ import { CWLInput } from '../CWL/Inputs.js';
4
+ import { CWLParameterReference } from '../CWL/ParameterReference.js';
5
+ import { LDGraph, LDNode } from '../ROCrate/LDObject.js';
6
+ import { LDContext } from '../ROCrate/LDContext.js';
7
+ import { CWLProcessingUnit_$union } from '../CWL/CWLProcessingUnit.js';
8
+ import { ArcRun } from '../Core/ArcTypes.js';
9
+ import { FileSystem } from '../FileSystem/FileSystem.js';
10
+ export declare class RunConversion {
11
+ constructor();
12
+ }
13
+ export declare function RunConversion_$reflection(): TypeInfo;
14
+ /**
15
+ * Helper function to format CWLType for display in error messages
16
+ */
17
+ export declare function RunConversion_formatCWLType_Z5C31A0F9(type_: CWLType_$union): string;
18
+ /**
19
+ * Helper function to check if a CWLType is or contains an Array type
20
+ */
21
+ export declare function RunConversion_isArrayType_Z5C31A0F9(type_: CWLType_$union): boolean;
22
+ /**
23
+ * File paths in CWL files are relative to the file itself. In RO-Crate, we use relative paths from the root of the crate.
24
+ *
25
+ * This function replaces the relative paths in the CWL input file with paths relative to the root of the crate.
26
+ */
27
+ export declare function RunConversion_composeCWLInputFilePath_Z384F8060(path: string, runName: string): string;
28
+ export declare function RunConversion_decomposeCWLInputFilePath_Z384F8060(path: string, runName: string): string;
29
+ export declare function RunConversion_composeCWLInputValue_70DD9184(inputValue: CWLParameterReference, exampleOfWork: LDNode, inputParam: CWLInput, runName: string): LDNode;
30
+ export declare function RunConversion_decomposeCWLInputValue_Z1346FE9D(inputValue: LDNode, runName: string, context?: LDContext, graph?: LDGraph): CWLParameterReference;
31
+ export declare function RunConversion_composeWorkflowInvocationFromArcRun_Z8CC08AC(run: ArcRun, fs?: FileSystem): LDNode[];
32
+ export declare function RunConversion_decomposeMainWorkflowInvocation_Z1346FE9D(workflowInvocation: LDNode, runName: string, context?: LDContext, graph?: LDGraph): [CWLProcessingUnit_$union, CWLParameterReference[]];
33
+ export declare function RunConversion_composeRun_Z8CC08AC(run: ArcRun, fs?: FileSystem): LDNode;
34
+ export declare function RunConversion_decomposeRun_Z6839B9E8(run: LDNode, graph?: LDGraph, context?: LDContext): ArcRun;
35
+ //# sourceMappingURL=Run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Run.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAgB,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAOlE,OAAO,EAAE,QAAQ,EAAgB,MAAM,kBAAkB,CAAC;AAI1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAQvE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAczD,qBAAa,aAAa;;CAGzB;AAED,wBAAgB,yBAAyB,IAAI,QAAQ,CAEpD;AAED;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CAGnF;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAgBlF;AAED;;;;GAIG;AACH,wBAAgB,+CAA+C,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAOrG;AAED,wBAAgB,iDAAiD,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAQvG;AAED,wBAAgB,2CAA2C,CAAC,UAAU,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAwCnK;AAED,wBAAgB,8CAA8C,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,qBAAqB,CAqB/J;AAED,wBAAgB,0DAA0D,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,EAAE,CAkDjH;AAED,wBAAgB,uDAAuD,CAAC,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,CAAC,wBAAwB,EAAE,qBAAqB,EAAE,CAAC,CAK9M;AAED,wBAAgB,iCAAiC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,CA8BtF;AAED,wBAAgB,oCAAoC,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAoC9G"}