@nfdi4plants/arctrl 3.2.2 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (470) hide show
  1. package/README.md +0 -64
  2. package/dist/ts/index.d.ts +44 -7
  3. package/dist/ts/index.d.ts.map +1 -1
  4. package/dist/ts/index.js +45 -8
  5. package/dist/ts/node_modules/@fable-org/fable-library-ts/Array.js +195 -92
  6. package/dist/ts/node_modules/@fable-org/fable-library-ts/Async.js +251 -30
  7. package/dist/ts/node_modules/@fable-org/fable-library-ts/AsyncBuilder.js +61 -11
  8. package/dist/ts/node_modules/@fable-org/fable-library-ts/BigInt.js +15 -5
  9. package/dist/ts/node_modules/@fable-org/fable-library-ts/BitConverter.js +139 -0
  10. package/dist/ts/node_modules/@fable-org/fable-library-ts/Date.js +1 -1
  11. package/dist/ts/node_modules/@fable-org/fable-library-ts/Decimal.js +68 -12
  12. package/dist/ts/node_modules/@fable-org/fable-library-ts/Double.js +24 -10
  13. package/dist/ts/node_modules/@fable-org/fable-library-ts/FSharp.Core.js +8 -2
  14. package/dist/ts/node_modules/@fable-org/fable-library-ts/Global.js +1 -1
  15. package/dist/ts/node_modules/@fable-org/fable-library-ts/Int32.js +11 -2
  16. package/dist/ts/node_modules/@fable-org/fable-library-ts/List.js +220 -155
  17. package/dist/ts/node_modules/@fable-org/fable-library-ts/Long.js +7 -2
  18. package/dist/ts/node_modules/@fable-org/fable-library-ts/Map.js +46 -39
  19. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableMap.js +75 -92
  20. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableSet.js +56 -76
  21. package/dist/ts/node_modules/@fable-org/fable-library-ts/NumberStyles.js +54 -0
  22. package/dist/ts/node_modules/@fable-org/fable-library-ts/Numeric.js +10 -5
  23. package/dist/ts/node_modules/@fable-org/fable-library-ts/Random.js +3 -4
  24. package/dist/ts/node_modules/@fable-org/fable-library-ts/Range.js +4 -3
  25. package/dist/ts/node_modules/@fable-org/fable-library-ts/RegExp.js +2 -2
  26. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq.js +128 -64
  27. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq2.js +4 -8
  28. package/dist/ts/node_modules/@fable-org/fable-library-ts/Set.js +64 -57
  29. package/dist/ts/node_modules/@fable-org/fable-library-ts/String.js +68 -21
  30. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Collections.Generic.js +3 -2
  31. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Text.js +2 -2
  32. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.js +5 -5
  33. package/dist/ts/node_modules/@fable-org/fable-library-ts/Types.js +23 -12
  34. package/dist/ts/node_modules/@fable-org/fable-library-ts/Util.js +88 -49
  35. package/dist/ts/node_modules/@fable-org/fable-library-ts/lib/big.js +121 -74
  36. package/dist/ts/ts/ARC.d.ts +22 -5
  37. package/dist/ts/ts/ARC.d.ts.map +1 -1
  38. package/dist/ts/ts/ARC.js +282 -185
  39. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts +0 -2
  40. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts.map +1 -1
  41. package/dist/ts/ts/CWL/CWLKnownFieldNames.js +1 -7
  42. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +46 -27
  43. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -1
  44. package/dist/ts/ts/CWL/CWLProcessingUnit.js +312 -123
  45. package/dist/ts/ts/CWL/CWLTypes.d.ts +481 -148
  46. package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
  47. package/dist/ts/ts/CWL/CWLTypes.js +887 -201
  48. package/dist/ts/ts/CWL/Decode.d.ts +480 -211
  49. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
  50. package/dist/ts/ts/CWL/Decode.js +3614 -2462
  51. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts +9 -0
  52. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts.map +1 -1
  53. package/dist/ts/ts/CWL/DynamicObjHelpers.js +55 -5
  54. package/dist/ts/ts/CWL/Encode.d.ts +225 -85
  55. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
  56. package/dist/ts/ts/CWL/Encode.js +1858 -970
  57. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +42 -28
  58. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
  59. package/dist/ts/ts/CWL/ExpressionToolDescription.js +34 -13
  60. package/dist/ts/ts/CWL/HashHelpers.d.ts +38 -0
  61. package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -1
  62. package/dist/ts/ts/CWL/HashHelpers.js +255 -6
  63. package/dist/ts/ts/CWL/Inputs.d.ts +127 -56
  64. package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -1
  65. package/dist/ts/ts/CWL/Inputs.js +107 -16
  66. package/dist/ts/ts/CWL/OperationDescription.d.ts +41 -21
  67. package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
  68. package/dist/ts/ts/CWL/OperationDescription.js +35 -9
  69. package/dist/ts/ts/CWL/Outputs.d.ts +93 -42
  70. package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -1
  71. package/dist/ts/ts/CWL/Outputs.js +101 -19
  72. package/dist/ts/ts/CWL/ParameterReference.d.ts +11 -8
  73. package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -1
  74. package/dist/ts/ts/CWL/ParameterReference.js +18 -25
  75. package/dist/ts/ts/CWL/ParameterValue.d.ts +15 -1
  76. package/dist/ts/ts/CWL/ParameterValue.d.ts.map +1 -1
  77. package/dist/ts/ts/CWL/ParameterValue.js +59 -35
  78. package/dist/ts/ts/CWL/Requirements.d.ts +240 -98
  79. package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
  80. package/dist/ts/ts/CWL/Requirements.js +462 -89
  81. package/dist/ts/ts/CWL/ScalarQuoting.d.ts +51 -0
  82. package/dist/ts/ts/CWL/ScalarQuoting.d.ts.map +1 -0
  83. package/dist/ts/ts/CWL/ScalarQuoting.js +250 -0
  84. package/dist/ts/ts/CWL/ToolDescription.d.ts +63 -50
  85. package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
  86. package/dist/ts/ts/CWL/ToolDescription.js +34 -13
  87. package/dist/ts/ts/CWL/WorkflowDescription.d.ts +45 -26
  88. package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
  89. package/dist/ts/ts/CWL/WorkflowDescription.js +38 -11
  90. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +248 -65
  91. package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
  92. package/dist/ts/ts/CWL/WorkflowSteps.js +413 -43
  93. package/dist/ts/ts/CWLRunResolver.d.ts +30 -12
  94. package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -1
  95. package/dist/ts/ts/CWLRunResolver.js +221 -86
  96. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  97. package/dist/ts/ts/Contract/ARC.js +13 -14
  98. package/dist/ts/ts/Contract/ArcAssay.d.ts.map +1 -1
  99. package/dist/ts/ts/Contract/ArcAssay.js +4 -4
  100. package/dist/ts/ts/Contract/ArcInvestigation.d.ts.map +1 -1
  101. package/dist/ts/ts/Contract/ArcInvestigation.js +3 -4
  102. package/dist/ts/ts/Contract/ArcRun.d.ts +12 -2
  103. package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
  104. package/dist/ts/ts/Contract/ArcRun.js +47 -20
  105. package/dist/ts/ts/Contract/ArcStudy.d.ts.map +1 -1
  106. package/dist/ts/ts/Contract/ArcStudy.js +4 -4
  107. package/dist/ts/ts/Contract/ArcWorkflow.d.ts +18 -4
  108. package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
  109. package/dist/ts/ts/Contract/ArcWorkflow.js +55 -17
  110. package/dist/ts/ts/Contract/Datamap.d.ts.map +1 -1
  111. package/dist/ts/ts/Contract/Datamap.js +16 -17
  112. package/dist/ts/ts/Contract/Git.js +1 -1
  113. package/dist/ts/ts/Contract/ValidationPackagesConfig.d.ts.map +1 -1
  114. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +4 -5
  115. package/dist/ts/ts/ContractIO/ContractIO.d.ts +7 -0
  116. package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
  117. package/dist/ts/ts/ContractIO/ContractIO.js +95 -18
  118. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -0
  119. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
  120. package/dist/ts/ts/ContractIO/FileSystemHelper.js +12 -5
  121. package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -1
  122. package/dist/ts/ts/Conversion/Assay.js +26 -18
  123. package/dist/ts/ts/Conversion/Basic.d.ts +4 -0
  124. package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
  125. package/dist/ts/ts/Conversion/Basic.js +55 -31
  126. package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -1
  127. package/dist/ts/ts/Conversion/ColumnIndex.js +2 -4
  128. package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -1
  129. package/dist/ts/ts/Conversion/DateTime.js +1 -2
  130. package/dist/ts/ts/Conversion/Investigation.d.ts.map +1 -1
  131. package/dist/ts/ts/Conversion/Investigation.js +15 -14
  132. package/dist/ts/ts/Conversion/Person.js +11 -11
  133. package/dist/ts/ts/Conversion/Process.d.ts +4 -2
  134. package/dist/ts/ts/Conversion/Process.d.ts.map +1 -1
  135. package/dist/ts/ts/Conversion/Process.js +134 -97
  136. package/dist/ts/ts/Conversion/Run.d.ts +36 -6
  137. package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
  138. package/dist/ts/ts/Conversion/Run.js +320 -136
  139. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -1
  140. package/dist/ts/ts/Conversion/ScholarlyArticle.js +75 -9
  141. package/dist/ts/ts/Conversion/Study.d.ts.map +1 -1
  142. package/dist/ts/ts/Conversion/Study.js +23 -12
  143. package/dist/ts/ts/Conversion/Table.d.ts +3 -2
  144. package/dist/ts/ts/Conversion/Table.d.ts.map +1 -1
  145. package/dist/ts/ts/Conversion/Table.js +8 -8
  146. package/dist/ts/ts/Conversion/Workflow.d.ts +48 -9
  147. package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
  148. package/dist/ts/ts/Conversion/Workflow.js +655 -163
  149. package/dist/ts/ts/Conversion.js +6 -6
  150. package/dist/ts/ts/Core/ArcTypes.d.ts +73 -28
  151. package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
  152. package/dist/ts/ts/Core/ArcTypes.js +219 -129
  153. package/dist/ts/ts/Core/Comment.d.ts.map +1 -1
  154. package/dist/ts/ts/Core/Comment.js +2 -2
  155. package/dist/ts/ts/Core/CommentList.js +7 -7
  156. package/dist/ts/ts/Core/Conversion.d.ts.map +1 -1
  157. package/dist/ts/ts/Core/Conversion.js +68 -59
  158. package/dist/ts/ts/Core/Data.d.ts +6 -0
  159. package/dist/ts/ts/Core/Data.d.ts.map +1 -1
  160. package/dist/ts/ts/Core/Data.js +32 -12
  161. package/dist/ts/ts/Core/DataContext.d.ts +1 -1
  162. package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
  163. package/dist/ts/ts/Core/DataContext.js +4 -4
  164. package/dist/ts/ts/Core/DataFile.d.ts +11 -8
  165. package/dist/ts/ts/Core/DataFile.d.ts.map +1 -1
  166. package/dist/ts/ts/Core/DataFile.js +55 -61
  167. package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
  168. package/dist/ts/ts/Core/Datamap.js +2 -3
  169. package/dist/ts/ts/Core/Helper/Collections.d.ts.map +1 -1
  170. package/dist/ts/ts/Core/Helper/Collections.js +2 -4
  171. package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
  172. package/dist/ts/ts/Core/Helper/Identifier.js +12 -15
  173. package/dist/ts/ts/Core/Helper/ORCID.d.ts.map +1 -1
  174. package/dist/ts/ts/Core/Helper/ORCID.js +2 -3
  175. package/dist/ts/ts/Core/Helper/Regex.d.ts.map +1 -1
  176. package/dist/ts/ts/Core/Helper/Regex.js +52 -53
  177. package/dist/ts/ts/Core/Helper/SemVer.d.ts +13 -3
  178. package/dist/ts/ts/Core/Helper/SemVer.d.ts.map +1 -1
  179. package/dist/ts/ts/Core/Helper/SemVer.js +96 -6
  180. package/dist/ts/ts/Core/Helper/Url.d.ts.map +1 -1
  181. package/dist/ts/ts/Core/Helper/Url.js +1 -1
  182. package/dist/ts/ts/Core/OntologyAnnotation.js +22 -22
  183. package/dist/ts/ts/Core/Person.d.ts.map +1 -1
  184. package/dist/ts/ts/Core/Person.js +2 -2
  185. package/dist/ts/ts/Core/Process/ColumnIndex.d.ts.map +1 -1
  186. package/dist/ts/ts/Core/Process/ColumnIndex.js +10 -12
  187. package/dist/ts/ts/Core/Process/Component.d.ts.map +1 -1
  188. package/dist/ts/ts/Core/Process/Component.js +22 -22
  189. package/dist/ts/ts/Core/Process/Factor.d.ts.map +1 -1
  190. package/dist/ts/ts/Core/Process/Factor.js +7 -7
  191. package/dist/ts/ts/Core/Process/FactorValue.d.ts.map +1 -1
  192. package/dist/ts/ts/Core/Process/FactorValue.js +15 -15
  193. package/dist/ts/ts/Core/Process/Material.d.ts.map +1 -1
  194. package/dist/ts/ts/Core/Process/Material.js +2 -2
  195. package/dist/ts/ts/Core/Process/MaterialAttribute.d.ts.map +1 -1
  196. package/dist/ts/ts/Core/Process/MaterialAttribute.js +6 -6
  197. package/dist/ts/ts/Core/Process/MaterialAttributeValue.d.ts.map +1 -1
  198. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +16 -16
  199. package/dist/ts/ts/Core/Process/Process.js +21 -21
  200. package/dist/ts/ts/Core/Process/ProcessInput.d.ts.map +1 -1
  201. package/dist/ts/ts/Core/Process/ProcessInput.js +2 -2
  202. package/dist/ts/ts/Core/Process/ProcessOutput.d.ts.map +1 -1
  203. package/dist/ts/ts/Core/Process/ProcessOutput.js +2 -2
  204. package/dist/ts/ts/Core/Process/ProcessParameterValue.d.ts.map +1 -1
  205. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +17 -17
  206. package/dist/ts/ts/Core/Process/ProcessSequence.js +4 -4
  207. package/dist/ts/ts/Core/Process/Protocol.d.ts.map +1 -1
  208. package/dist/ts/ts/Core/Process/Protocol.js +9 -9
  209. package/dist/ts/ts/Core/Process/ProtocolParameter.d.ts.map +1 -1
  210. package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -6
  211. package/dist/ts/ts/Core/Publication.d.ts.map +1 -1
  212. package/dist/ts/ts/Core/Publication.js +3 -3
  213. package/dist/ts/ts/Core/ScalarValue.d.ts.map +1 -1
  214. package/dist/ts/ts/Core/ScalarValue.js +9 -13
  215. package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
  216. package/dist/ts/ts/Core/Table/ArcTable.js +18 -18
  217. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts +1 -1
  218. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
  219. package/dist/ts/ts/Core/Table/ArcTableAux.js +59 -70
  220. package/dist/ts/ts/Core/Table/ArcTables.js +16 -16
  221. package/dist/ts/ts/Core/Table/CompositeCell.d.ts +4 -0
  222. package/dist/ts/ts/Core/Table/CompositeCell.d.ts.map +1 -1
  223. package/dist/ts/ts/Core/Table/CompositeCell.js +39 -2
  224. package/dist/ts/ts/Core/Table/CompositeHeader.d.ts.map +1 -1
  225. package/dist/ts/ts/Core/Table/CompositeHeader.js +5 -6
  226. package/dist/ts/ts/Core/Templates.d.ts.map +1 -1
  227. package/dist/ts/ts/Core/Templates.js +2 -2
  228. package/dist/ts/ts/FileSystem/Path.d.ts +13 -2
  229. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  230. package/dist/ts/ts/FileSystem/Path.js +37 -19
  231. package/dist/ts/ts/Json/Assay.js +22 -22
  232. package/dist/ts/ts/Json/Comment.js +9 -9
  233. package/dist/ts/ts/Json/Data.d.ts.map +1 -1
  234. package/dist/ts/ts/Json/Data.js +11 -11
  235. package/dist/ts/ts/Json/Datamap/DataContext.js +2 -2
  236. package/dist/ts/ts/Json/Decode.d.ts.map +1 -1
  237. package/dist/ts/ts/Json/Decode.js +3 -5
  238. package/dist/ts/ts/Json/Encode.js +2 -2
  239. package/dist/ts/ts/Json/Investigation.d.ts.map +1 -1
  240. package/dist/ts/ts/Json/Investigation.js +20 -20
  241. package/dist/ts/ts/Json/OntologyAnnotation.d.ts.map +1 -1
  242. package/dist/ts/ts/Json/OntologyAnnotation.js +18 -18
  243. package/dist/ts/ts/Json/OntologySourceReference.d.ts.map +1 -1
  244. package/dist/ts/ts/Json/OntologySourceReference.js +9 -9
  245. package/dist/ts/ts/Json/Person.d.ts.map +1 -1
  246. package/dist/ts/ts/Json/Person.js +20 -20
  247. package/dist/ts/ts/Json/Process/AssayMaterials.d.ts.map +1 -1
  248. package/dist/ts/ts/Json/Process/AssayMaterials.js +1 -2
  249. package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
  250. package/dist/ts/ts/Json/Process/Component.js +5 -6
  251. package/dist/ts/ts/Json/Process/Factor.d.ts.map +1 -1
  252. package/dist/ts/ts/Json/Process/Factor.js +7 -7
  253. package/dist/ts/ts/Json/Process/FactorValue.d.ts.map +1 -1
  254. package/dist/ts/ts/Json/Process/FactorValue.js +2 -3
  255. package/dist/ts/ts/Json/Process/Material.d.ts.map +1 -1
  256. package/dist/ts/ts/Json/Process/Material.js +9 -10
  257. package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts.map +1 -1
  258. package/dist/ts/ts/Json/Process/MaterialAttribute.js +5 -6
  259. package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts.map +1 -1
  260. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +2 -3
  261. package/dist/ts/ts/Json/Process/Process.d.ts.map +1 -1
  262. package/dist/ts/ts/Json/Process/Process.js +8 -9
  263. package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts.map +1 -1
  264. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +1 -2
  265. package/dist/ts/ts/Json/Process/Protocol.d.ts.map +1 -1
  266. package/dist/ts/ts/Json/Process/Protocol.js +17 -17
  267. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
  268. package/dist/ts/ts/Json/Process/ProtocolParameter.js +6 -6
  269. package/dist/ts/ts/Json/Process/Sample.d.ts.map +1 -1
  270. package/dist/ts/ts/Json/Process/Sample.js +9 -9
  271. package/dist/ts/ts/Json/Process/Source.d.ts.map +1 -1
  272. package/dist/ts/ts/Json/Process/Source.js +10 -11
  273. package/dist/ts/ts/Json/Process/StudyMaterials.d.ts.map +1 -1
  274. package/dist/ts/ts/Json/Process/StudyMaterials.js +1 -2
  275. package/dist/ts/ts/Json/PropertyValue.d.ts.map +1 -1
  276. package/dist/ts/ts/Json/PropertyValue.js +24 -24
  277. package/dist/ts/ts/Json/Publication.d.ts.map +1 -1
  278. package/dist/ts/ts/Json/Publication.js +10 -10
  279. package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -2
  280. package/dist/ts/ts/Json/ROCrate/LDGraph.js +2 -2
  281. package/dist/ts/ts/Json/ROCrate/LDNode.js +5 -5
  282. package/dist/ts/ts/Json/Run.js +9 -9
  283. package/dist/ts/ts/Json/StringTable.d.ts.map +1 -1
  284. package/dist/ts/ts/Json/StringTable.js +4 -7
  285. package/dist/ts/ts/Json/Study.js +20 -20
  286. package/dist/ts/ts/Json/Table/CellTable.js +1 -2
  287. package/dist/ts/ts/Json/Table/OATable.js +1 -2
  288. package/dist/ts/ts/Json/Workflow.js +9 -9
  289. package/dist/ts/ts/Json.d.ts +121 -1
  290. package/dist/ts/ts/Json.d.ts.map +1 -1
  291. package/dist/ts/ts/Json.js +310 -2
  292. package/dist/ts/ts/JsonIO/Comment.d.ts +15 -0
  293. package/dist/ts/ts/JsonIO/Comment.d.ts.map +1 -0
  294. package/dist/ts/ts/JsonIO/Comment.js +67 -0
  295. package/dist/ts/ts/JsonIO/Data.d.ts +9 -0
  296. package/dist/ts/ts/JsonIO/Data.d.ts.map +1 -0
  297. package/dist/ts/ts/JsonIO/Data.js +49 -0
  298. package/dist/ts/ts/JsonIO/DataFile.d.ts +9 -0
  299. package/dist/ts/ts/JsonIO/DataFile.d.ts.map +1 -0
  300. package/dist/ts/ts/JsonIO/DataFile.js +48 -0
  301. package/dist/ts/ts/JsonIO/LDObject.d.ts +6 -0
  302. package/dist/ts/ts/JsonIO/LDObject.d.ts.map +1 -1
  303. package/dist/ts/ts/JsonIO/LDObject.js +173 -17
  304. package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts +15 -0
  305. package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts.map +1 -0
  306. package/dist/ts/ts/JsonIO/OntologySourceReference.js +67 -0
  307. package/dist/ts/ts/JsonIO/Publication.d.ts +15 -0
  308. package/dist/ts/ts/JsonIO/Publication.d.ts.map +1 -0
  309. package/dist/ts/ts/JsonIO/Publication.js +68 -0
  310. package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts +9 -0
  311. package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts.map +1 -0
  312. package/dist/ts/ts/JsonIO/Table/ArcTable.js +74 -0
  313. package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts +6 -0
  314. package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts.map +1 -0
  315. package/dist/ts/ts/JsonIO/Table/CompositeCell.js +29 -0
  316. package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts +6 -0
  317. package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts.map +1 -0
  318. package/dist/ts/ts/JsonIO/Table/CompositeHeader.js +29 -0
  319. package/dist/ts/ts/JsonIO/Table/IOType.d.ts +6 -0
  320. package/dist/ts/ts/JsonIO/Table/IOType.d.ts.map +1 -0
  321. package/dist/ts/ts/JsonIO/Table/IOType.js +29 -0
  322. package/dist/ts/ts/License.d.ts.map +1 -1
  323. package/dist/ts/ts/License.js +6 -6
  324. package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
  325. package/dist/ts/ts/ROCrate/LDContext.js +31 -39
  326. package/dist/ts/ts/ROCrate/LDObject.d.ts.map +1 -1
  327. package/dist/ts/ts/ROCrate/LDObject.js +56 -49
  328. package/dist/ts/ts/ROCrate/LDTypes/Comment.js +2 -2
  329. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +3 -3
  330. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +2 -2
  331. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +5 -5
  332. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts +1 -0
  333. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts.map +1 -1
  334. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.js +3 -0
  335. package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -1
  336. package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +22 -17
  337. package/dist/ts/ts/ROCrate/LDTypes/DefinedTerm.js +2 -2
  338. package/dist/ts/ts/ROCrate/LDTypes/File.js +5 -5
  339. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +2 -2
  340. package/dist/ts/ts/ROCrate/LDTypes/LabProcess.js +9 -9
  341. package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.js +4 -4
  342. package/dist/ts/ts/ROCrate/LDTypes/Organization.js +1 -1
  343. package/dist/ts/ts/ROCrate/LDTypes/Person.js +7 -7
  344. package/dist/ts/ts/ROCrate/LDTypes/PostalAddress.js +1 -1
  345. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -1
  346. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.js +45 -48
  347. package/dist/ts/ts/ROCrate/LDTypes/Sample.js +3 -3
  348. package/dist/ts/ts/ROCrate/LDTypes/ScholarlyArticle.js +4 -4
  349. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +3 -3
  350. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +3 -3
  351. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +2 -2
  352. package/dist/ts/ts/ROCrateIO.d.ts +18 -4
  353. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  354. package/dist/ts/ts/ROCrateIO.js +49 -38
  355. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
  356. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +9 -10
  357. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.d.ts.map +1 -1
  358. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +7 -7
  359. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
  360. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +6 -8
  361. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +20 -20
  362. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
  363. package/dist/ts/ts/Spreadsheet/ArcAssay.js +7 -7
  364. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
  365. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +10 -12
  366. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
  367. package/dist/ts/ts/Spreadsheet/ArcRun.js +5 -6
  368. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
  369. package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
  370. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
  371. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +5 -6
  372. package/dist/ts/ts/Spreadsheet/CollectionAux.d.ts.map +1 -1
  373. package/dist/ts/ts/Spreadsheet/CollectionAux.js +10 -14
  374. package/dist/ts/ts/Spreadsheet/Datamap.js +1 -2
  375. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +3 -3
  376. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +10 -10
  377. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
  378. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +9 -10
  379. package/dist/ts/ts/Spreadsheet/Metadata/Assays.d.ts.map +1 -1
  380. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +8 -10
  381. package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts +8 -0
  382. package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts.map +1 -1
  383. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +18 -7
  384. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts.map +1 -1
  385. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +4 -6
  386. package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts.map +1 -1
  387. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -8
  388. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts.map +1 -1
  389. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +5 -7
  390. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.d.ts.map +1 -1
  391. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +2 -4
  392. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts.map +1 -1
  393. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +7 -9
  394. package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts.map +1 -1
  395. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +6 -8
  396. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts +1 -1
  397. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts.map +1 -1
  398. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +9 -11
  399. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
  400. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +17 -17
  401. package/dist/ts/ts/Spreadsheet/Metadata/Study.d.ts.map +1 -1
  402. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +10 -12
  403. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
  404. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +7 -9
  405. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +1 -1
  406. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -1
  407. package/dist/ts/ts/WorkflowGraph/Adapters.js +5 -6
  408. package/dist/ts/ts/WorkflowGraph/Builder.d.ts +25 -6
  409. package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -1
  410. package/dist/ts/ts/WorkflowGraph/Builder.js +264 -138
  411. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +6 -0
  412. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -1
  413. package/dist/ts/ts/WorkflowGraph/GraphTypes.js +4 -1
  414. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +8 -5
  415. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -1
  416. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +27 -10
  417. package/dist/ts/ts/Xlsx.js +3 -3
  418. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +3 -3
  419. package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
  420. package/dist/ts/ts/Yaml/ValidationPackage.js +11 -23
  421. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +3 -3
  422. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
  423. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +11 -23
  424. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/DynamicObj.fs.js +16 -20
  425. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/FableJS.fs.js +1 -1
  426. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/ReflectionUtils.fs.js +8 -8
  427. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +1 -2
  428. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.6.0/Http.fs.js +4 -4
  429. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCell.fs.js +8 -8
  430. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCellsCollection.fs.js +18 -18
  431. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsAddress.fs.js +3 -3
  432. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorkbook.fs.js +1 -1
  433. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorksheet.fs.js +7 -7
  434. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Value.fs.js +3 -5
  435. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Worksheet.fs.js +7 -7
  436. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Ranges/FsRangeBase.fs.js +1 -2
  437. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Tables/FsTable.fs.js +7 -7
  438. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Cell.fs.js +2 -2
  439. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Table.fs.js +1 -2
  440. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Decode.fs.js +49 -71
  441. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Encode.fs.js +1 -1
  442. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.5.0/Decode.fs.js +1 -2
  443. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Compare.fs.js +857 -0
  444. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/CoreSchema.fs.js +725 -0
  445. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Decode.fs.js +1175 -0
  446. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Encode.fs.js +123 -0
  447. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Layout.fs.js +282 -0
  448. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexeme.fs.js +203 -0
  449. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexer.fs.js +1502 -0
  450. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Model.fs.js +564 -0
  451. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Node.fs.js +453 -0
  452. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Parser.fs.js +2622 -0
  453. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Reader.fs.js +108 -0
  454. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Source.fs.js +649 -0
  455. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Tag.fs.js +32 -0
  456. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Validate.fs.js +1084 -0
  457. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Writer.fs.js +2927 -0
  458. package/package.json +5 -4
  459. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Decode.fs.js +0 -1669
  460. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Encode.fs.js +0 -57
  461. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Escapes.fs.js +0 -320
  462. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Interop/JsInterop.fs.js +0 -10
  463. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Persil.fs.js +0 -414
  464. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Preprocessing.fs.js +0 -319
  465. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Reader.fs.js +0 -1884
  466. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Regex.fs.js +0 -23
  467. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/RegexActivePatterns.fs.js +0 -313
  468. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Syntax.fs.js +0 -840
  469. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Writer.fs.js +0 -689
  470. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/YAMLiciousTypes.fs.js +0 -359
package/dist/ts/ts/ARC.js CHANGED
@@ -1,23 +1,24 @@
1
1
  import { FileSystem } from './FileSystem/FileSystem.js';
2
- import { unwrap, defaultArg, value } from '../node_modules/@fable-org/fable-library-ts/Option.js';
2
+ import { unwrap, defaultArg, value, toArray as toArray$1 } from '../node_modules/@fable-org/fable-library-ts/Option.js';
3
3
  import { License } from './License.js';
4
4
  import { ArcInvestigation, ArcInvestigation_$reflection } from './Core/ArcTypes.js';
5
+ import { append, map, choose, item, fold, concat, contains as contains$2, tryPick, equalsWith } from '../node_modules/@fable-org/fable-library-ts/Array.js';
5
6
  import { defaultOf, stringHash, Exception, comparePrimitives, curry2, safeHash, getEnumerator, disposeSafe, equals } from '../node_modules/@fable-org/fable-library-ts/Util.js';
6
7
  import { Contract } from './Contract/Contract.js';
7
- import { fullFillContractBatchAsync } from './ContractIO/ContractIO.js';
8
+ import { fullFillContractBatchAsync, tryFulfillEmptyEntityContractAsync } from './ContractIO/ContractIO.js';
8
9
  import { FSharpResult$2_Error$, FSharpResult$2_Ok } from '../node_modules/@fable-org/fable-library-ts/Result.js';
9
10
  import { PromiseBuilder__Run_212F1D4B, PromiseBuilder__Delay_62FBFDE1 } from './fable_modules/Fable.Promise.3.2.0/Promise.fs.js';
10
11
  import { promise } from './fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js';
11
12
  import { getAllFilePathsAsync } from './ContractIO/FileSystemHelper.js';
12
- import { toArray, contains, delay, append, singleton, iterate, tryFind, find, collect, empty, toList } from '../node_modules/@fable-org/fable-library-ts/Seq.js';
13
- import { getAssayFolderPath, getRunFolderPath, getWorkflowFolderPath, getStudyFolderPath, combine, normalizePathKey } from './FileSystem/Path.js';
13
+ import { toArray, contains, delay, append as append$1, singleton, iterate, tryFind, find, collect, empty, toList } from '../node_modules/@fable-org/fable-library-ts/Seq.js';
14
+ import { all } from './CrossAsync.js';
15
+ import { split, getAssayFolderPath, getRunFolderPath, getWorkflowFolderPath, getStudyFolderPath, combine, normalizePathKey } from './FileSystem/Path.js';
14
16
  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 { ARCtrl_ArcRun__ArcRun_ToDeleteContract, ARCtrl_ArcRun__ArcRun_ToCreateContract_6FCE9E49, ARCtrl_ArcRun__ArcRun_ToUpdateContract, ARCtrl_ArcRun__ArcRun_TryToCWLContract_Z2D283928, ARCtrl_ArcRun__ArcRun_TryToYMLContract_Z2D283928, ARCtrl_ArcRun__ArcRun_tryFromReadContract_Static_7570923F, ARCtrl_ArcRun__ArcRun_tryCWLFromReadContract_Static, ARCtrl_ArcRun__ArcRun_tryYMLFromReadContract_Static } from './Contract/ArcRun.js';
18
+ import { ARCtrl_ArcWorkflow__ArcWorkflow_ToDeleteContract, ARCtrl_ArcWorkflow__ArcWorkflow_ToCreateContract_6FCE9E49, ARCtrl_ArcWorkflow__ArcWorkflow_ToUpdateContract, ARCtrl_ArcWorkflow__ArcWorkflow_TryToCWLContract_Z2D283928, ARCtrl_ArcWorkflow__ArcWorkflow_tryFromReadContract_Static_7570923F, ARCtrl_ArcWorkflow__ArcWorkflow_tryCWLFromReadContract_Static, CWLFileReading_decodeCWLFile } from './Contract/ArcWorkflow.js';
17
19
  import { join, toFail, printf, replace, concat as concat$1, toText } from '../node_modules/@fable-org/fable-library-ts/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-ts/Array.js';
19
20
  import { ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract, ARCtrl_ArcInvestigation__ArcInvestigation_ToCreateContract, ARCtrl_ArcInvestigation__ArcInvestigation_tryFromReadContract_Static_7570923F } from './Contract/ArcInvestigation.js';
20
- import { createMissingIdentifier, Workflow_cwlFileNameFromIdentifier, Run_cwlFileNameFromIdentifier } from './Core/Helper/Identifier.js';
21
+ import { createMissingIdentifier, Workflow_cwlFileNameFromIdentifier, Run_cwlFileNameFromIdentifier, Run_ymlFileNameFromIdentifier } from './Core/Helper/Identifier.js';
21
22
  import { ofSeq, contains as contains$1, unionMany, FSharpSet__Contains } from '../node_modules/@fable-org/fable-library-ts/Set.js';
22
23
  import { ResizeArray_iter, ResizeArray_map } from './Core/Helper/Collections.js';
23
24
  import { FileSystemTree_Folder, FileSystemTree, FileSystemTree_File } from './FileSystem/FileSystemTree.js';
@@ -37,7 +38,6 @@ import { ValidationPackagesConfigHelper_ConfigFilePath, ARCtrl_ValidationPackage
37
38
  import { ofInvestigation } from './WorkflowGraph/Adapters.js';
38
39
  import { FSharpRef } from '../node_modules/@fable-org/fable-library-ts/Types.js';
39
40
  import { class_type } from '../node_modules/@fable-org/fable-library-ts/Reflection.js';
40
- import { Decode_decodeCWLProcessingUnit } from './CWL/Decode.js';
41
41
 
42
42
  class ARC extends ArcInvestigation {
43
43
  constructor(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, workflows, runs, registeredStudyIdentifiers, comments, remarks, fs, license) {
@@ -49,7 +49,7 @@ class ARC extends ArcInvestigation {
49
49
  this._fs = (fs_1 = defaultArg(fs, FileSystem.create({
50
50
  tree: FileSystemTree_Folder("", [])
51
51
  })), ARCAux_updateFSByARC(this$.contents, license, fs_1));
52
- this["init@145"] = 1;
52
+ this["init@179"] = 1;
53
53
  }
54
54
  get FileSystem() {
55
55
  const this$ = this;
@@ -70,9 +70,9 @@ class ARC extends ArcInvestigation {
70
70
  static fromArcInvestigation(isa, fs, license) {
71
71
  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));
72
72
  }
73
- TryWriteAsync(arcPath, forceOverwrite) {
73
+ TryWriteAsync(arcPath, forceOverwrite, additionalContracts) {
74
74
  const this$ = this;
75
- const cs = this$.GetWriteContracts();
75
+ const cs = append(this$.GetWriteContracts(), defaultArg(additionalContracts, []));
76
76
  return fullFillContractBatchAsync(defaultArg(forceOverwrite, false), arcPath, cs);
77
77
  }
78
78
  TryUpdateAsync(arcPath, forceOverwrite) {
@@ -90,7 +90,7 @@ class ARC extends ArcInvestigation {
90
90
  license_1.Path = value(path);
91
91
  }
92
92
  } else {
93
- const license = value(matchValue);
93
+ const license = matchValue;
94
94
  license.Type = "fulltext";
95
95
  license.Content = fulltext;
96
96
  if (path != null) {
@@ -102,17 +102,75 @@ class ARC extends ArcInvestigation {
102
102
  return PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => getAllFilePathsAsync(arcPath).then((_arg) => {
103
103
  const arc = ARC.fromFilePaths(toArray(_arg));
104
104
  const contracts = arc.GetReadContracts();
105
- return fullFillContractBatchAsync(false, arcPath, contracts).then((_arg_1) => {
106
- const fulFilledContracts = _arg_1;
107
- if (fulFilledContracts.tag === /* Error */
108
- 1) {
109
- const e = fulFilledContracts.fields[0];
110
- return Promise.resolve(FSharpResult$2_Error$(e));
111
- } else {
112
- const c = fulFilledContracts.fields[0];
113
- arc.SetISAFromContracts(c);
114
- return Promise.resolve(FSharpResult$2_Ok(arc));
115
- }
105
+ return all(map((c) => tryFulfillEmptyEntityContractAsync(arcPath, c), contracts)).then((_arg_1) => {
106
+ const recoveredContracts_1 = choose((x) => x, _arg_1);
107
+ const contracts_1 = contracts.filter((c_1) => !recoveredContracts_1.some((rc) => rc.Path === c_1.Path));
108
+ return fullFillContractBatchAsync(false, arcPath, contracts_1).then((_arg_2) => {
109
+ const fulFilledContracts = _arg_2;
110
+ if (fulFilledContracts.tag === /* Error */
111
+ 1) {
112
+ const e = fulFilledContracts.fields[0];
113
+ return Promise.resolve(FSharpResult$2_Error$(e));
114
+ } else {
115
+ const c_2 = fulFilledContracts.fields[0];
116
+ arc.SetISAFromContracts(append(c_2, recoveredContracts_1));
117
+ recoveredContracts_1.forEach((rc_1) => {
118
+ const identifier = item(1, split(rc_1.Path));
119
+ const matchValue = rc_1.DTOType;
120
+ let matchResult = void 0;
121
+ if (matchValue != null) {
122
+ switch (matchValue) {
123
+ case "ISA_Assay": {
124
+ matchResult = 0;
125
+ break;
126
+ }
127
+ case "ISA_Study": {
128
+ matchResult = 1;
129
+ break;
130
+ }
131
+ case "ISA_Workflow": {
132
+ matchResult = 2;
133
+ break;
134
+ }
135
+ case "ISA_Run": {
136
+ matchResult = 3;
137
+ break;
138
+ }
139
+ default:
140
+ matchResult = 4;
141
+ }
142
+ } else {
143
+ matchResult = 4;
144
+ }
145
+ switch (matchResult) {
146
+ case 0: {
147
+ const a = arc.GetAssay(identifier);
148
+ a.StaticHash = a.GetLightHashCode() + 1 | 0;
149
+ break;
150
+ }
151
+ case 1: {
152
+ const s = arc.GetStudy(identifier);
153
+ s.StaticHash = s.GetLightHashCode() + 1 | 0;
154
+ break;
155
+ }
156
+ case 2: {
157
+ const w = arc.GetWorkflow(identifier);
158
+ w.StaticHash = w.GetLightHashCode() + 1 | 0;
159
+ break;
160
+ }
161
+ case 3: {
162
+ const r = arc.GetRun(identifier);
163
+ r.StaticHash = r.GetLightHashCode() + 1 | 0;
164
+ break;
165
+ }
166
+ case 4: {
167
+ break;
168
+ }
169
+ }
170
+ });
171
+ return Promise.resolve(FSharpResult$2_Ok(arc));
172
+ }
173
+ });
116
174
  });
117
175
  })));
118
176
  }
@@ -131,7 +189,7 @@ class ARC extends ArcInvestigation {
131
189
  const assayFolderPath = getAssayFolderPath(assayIdentifier);
132
190
  const filteredPaths = paths.filter((p) => !p.startsWith(assayFolderPath));
133
191
  this$.SetFilePaths(filteredPaths);
134
- return toArray(delay(() => append(singleton(ARCtrl_ArcAssay__ArcAssay_ToDeleteContract(assay)), delay(() => this$.GetUpdateContracts()))));
192
+ return toArray(delay(() => append$1(singleton(ARCtrl_ArcAssay__ArcAssay_ToDeleteContract(assay)), delay(() => this$.GetUpdateContracts()))));
135
193
  }
136
194
  GetRunRemoveContracts(runIdentifier) {
137
195
  const this$ = this;
@@ -147,7 +205,7 @@ class ARC extends ArcInvestigation {
147
205
  const runFolderPath = getRunFolderPath(runIdentifier);
148
206
  const filteredPaths = paths.filter((p) => !p.startsWith(runFolderPath));
149
207
  this$.SetFilePaths(filteredPaths);
150
- return toArray(delay(() => append(singleton(ARCtrl_ArcRun__ArcRun_ToDeleteContract(run)), delay(() => this$.GetUpdateContracts()))));
208
+ return toArray(delay(() => append$1(singleton(ARCtrl_ArcRun__ArcRun_ToDeleteContract(run)), delay(() => this$.GetUpdateContracts()))));
151
209
  }
152
210
  GetWorkflowRemoveContracts(workflowIdentifier) {
153
211
  const this$ = this;
@@ -163,7 +221,7 @@ class ARC extends ArcInvestigation {
163
221
  const workflowFolderPath = getWorkflowFolderPath(workflowIdentifier);
164
222
  const filteredPaths = paths.filter((p) => !p.startsWith(workflowFolderPath));
165
223
  this$.SetFilePaths(filteredPaths);
166
- return toArray(delay(() => append(singleton(ARCtrl_ArcWorkflow__ArcWorkflow_ToDeleteContract(workflow)), delay(() => this$.GetUpdateContracts()))));
224
+ return toArray(delay(() => append$1(singleton(ARCtrl_ArcWorkflow__ArcWorkflow_ToDeleteContract(workflow)), delay(() => this$.GetUpdateContracts()))));
167
225
  }
168
226
  TryRemoveAssayAsync(arcPath, assayIdentifier) {
169
227
  const this$ = this;
@@ -255,7 +313,7 @@ class ARC extends ArcInvestigation {
255
313
  const newAssayFolderPath = getAssayFolderPath(newAssayIdentifier);
256
314
  const renamedPaths = map((p) => replace(p, oldAssayFolderPath, newAssayFolderPath), paths);
257
315
  this$.SetFilePaths(renamedPaths);
258
- return toArray(delay(() => append(singleton(Contract.createRename(oldAssayFolderPath, newAssayFolderPath)), delay(() => this$.GetUpdateContracts()))));
316
+ return toArray(delay(() => append$1(singleton(Contract.createRename(oldAssayFolderPath, newAssayFolderPath)), delay(() => this$.GetUpdateContracts()))));
259
317
  }
260
318
  GetRunRenameContracts(oldRunIdentifier, newRunIdentifier) {
261
319
  const this$ = this;
@@ -271,7 +329,7 @@ class ARC extends ArcInvestigation {
271
329
  const newPath = getRunFolderPath(newRunIdentifier);
272
330
  const renamedPaths = map((p) => replace(p, oldPath, newPath), paths);
273
331
  this$.SetFilePaths(renamedPaths);
274
- return toArray(delay(() => append(singleton(Contract.createRename(oldPath, newPath)), delay(() => this$.GetUpdateContracts()))));
332
+ return toArray(delay(() => append$1(singleton(Contract.createRename(oldPath, newPath)), delay(() => this$.GetUpdateContracts()))));
275
333
  }
276
334
  GetWorkflowRenameContracts(oldWorkflowIdentifier, newWorkflowIdentifier) {
277
335
  const this$ = this;
@@ -287,7 +345,7 @@ class ARC extends ArcInvestigation {
287
345
  const newPath = getWorkflowFolderPath(newWorkflowIdentifier);
288
346
  const renamedPaths = map((p) => replace(p, oldPath, newPath), paths);
289
347
  this$.SetFilePaths(renamedPaths);
290
- return toArray(delay(() => append(singleton(Contract.createRename(oldPath, newPath)), delay(() => this$.GetUpdateContracts()))));
348
+ return toArray(delay(() => append$1(singleton(Contract.createRename(oldPath, newPath)), delay(() => this$.GetUpdateContracts()))));
291
349
  }
292
350
  TryRenameAssayAsync(arcPath, oldAssayIdentifier, newAssayIdentifier) {
293
351
  const this$ = this;
@@ -320,15 +378,15 @@ class ARC extends ArcInvestigation {
320
378
  const newStudyFolderPath = getStudyFolderPath(newStudyIdentifier);
321
379
  const renamedPaths = map((p) => replace(p, oldStudyFolderPath, newStudyFolderPath), paths);
322
380
  this$.SetFilePaths(renamedPaths);
323
- return toArray(delay(() => append(singleton(Contract.createRename(oldStudyFolderPath, newStudyFolderPath)), delay(() => this$.GetUpdateContracts()))));
381
+ return toArray(delay(() => append$1(singleton(Contract.createRename(oldStudyFolderPath, newStudyFolderPath)), delay(() => this$.GetUpdateContracts()))));
324
382
  }
325
383
  TryRenameStudyAsync(arcPath, oldStudyIdentifier, newStudyIdentifier) {
326
384
  const this$ = this;
327
385
  return fullFillContractBatchAsync(false, arcPath, this$.GetStudyRenameContracts(oldStudyIdentifier, newStudyIdentifier));
328
386
  }
329
- WriteAsync(arcPath) {
387
+ WriteAsync(arcPath, additionalContracts) {
330
388
  const this$ = this;
331
- return PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => this$.TryWriteAsync(arcPath).then((_arg) => {
389
+ return PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => this$.TryWriteAsync(arcPath, void 0, unwrap(additionalContracts)).then((_arg) => {
332
390
  const result = _arg;
333
391
  if (result.tag === /* Error */
334
392
  1) {
@@ -434,9 +492,9 @@ class ARC extends ArcInvestigation {
434
492
  let col_1 = void 0;
435
493
  let matchResult = void 0, col_2 = void 0;
436
494
  if (col != null) {
437
- if (col_1 = value(col), col_1.Header.IsDataColumn) {
495
+ if (col_1 = col, col_1.Header.IsDataColumn) {
438
496
  matchResult = 0;
439
- col_2 = value(col);
497
+ col_2 = col;
440
498
  } else {
441
499
  matchResult = 1;
442
500
  }
@@ -544,7 +602,7 @@ class ARC extends ArcInvestigation {
544
602
  if (registeredStudyOpt == null) {
545
603
  this$.AddStudy(study);
546
604
  } else {
547
- const registeredStudy = value(registeredStudyOpt);
605
+ const registeredStudy = registeredStudyOpt;
548
606
  registeredStudy.UpdateReferenceByStudyFile(study, true);
549
607
  }
550
608
  const datamap = ARCAux_getStudyDatamapFromContracts(study.Identifier, contracts);
@@ -558,7 +616,7 @@ class ARC extends ArcInvestigation {
558
616
  if (registeredAssayOpt == null) {
559
617
  this$.AddAssay(assay);
560
618
  } else {
561
- const registeredAssay = value(registeredAssayOpt);
619
+ const registeredAssay = registeredAssayOpt;
562
620
  registeredAssay.UpdateReferenceByAssayFile(assay, true);
563
621
  }
564
622
  const assay_1 = find((a_2) => a_2.Identifier === assay.Identifier, this$.Assays);
@@ -577,13 +635,14 @@ class ARC extends ArcInvestigation {
577
635
  const cwlFilePath = Workflow_cwlFileNameFromIdentifier(workflow.Identifier);
578
636
  let resolvedCwl;
579
637
  const option_1 = cwl;
580
- resolvedCwl = option_1 != null ? resolveRunReferencesFromLookup(cwlFilePath, value(option_1), tryGetCWLByPath) : void 0;
638
+ resolvedCwl = option_1 != null ? resolveRunReferencesFromLookup(cwlFilePath, option_1, tryGetCWLByPath) : void 0;
581
639
  if (workflow.Datamap == null) {
582
640
  workflow.Datamap = datamap_2;
583
641
  }
584
642
  workflow.CWLDescription = resolvedCwl;
585
643
  this$.AddWorkflow(workflow);
586
644
  workflow.StaticHash = workflow.GetLightHashCode() | 0;
645
+ workflow.CWLStaticHash = workflow.GetCWLHashCode() | 0;
587
646
  });
588
647
  runs.forEach((run) => {
589
648
  const datamap_3 = ARCAux_getRunDatamapFromContracts(run.Identifier, contracts);
@@ -592,7 +651,7 @@ class ARC extends ArcInvestigation {
592
651
  const cwlFilePath_1 = Run_cwlFileNameFromIdentifier(run.Identifier);
593
652
  let resolvedCwl_1;
594
653
  const option_3 = cwl_1;
595
- resolvedCwl_1 = option_3 != null ? resolveRunReferencesFromLookup(cwlFilePath_1, value(option_3), tryGetCWLByPath) : void 0;
654
+ resolvedCwl_1 = option_3 != null ? resolveRunReferencesFromLookup(cwlFilePath_1, option_3, tryGetCWLByPath) : void 0;
596
655
  if (run.Datamap == null) {
597
656
  run.Datamap = datamap_3;
598
657
  }
@@ -600,6 +659,8 @@ class ARC extends ArcInvestigation {
600
659
  run.CWLDescription = resolvedCwl_1;
601
660
  this$.AddRun(run);
602
661
  run.StaticHash = run.GetLightHashCode() | 0;
662
+ run.CWLStaticHash = run.GetCWLHashCode() | 0;
663
+ run.CWLInputStaticHash = run.GetCWLInputHashCode() | 0;
603
664
  });
604
665
  iterate((a_3) => {
605
666
  a_3.StaticHash = a_3.GetLightHashCode() | 0;
@@ -625,57 +686,59 @@ class ARC extends ArcInvestigation {
625
686
  if (!defaultArg(skipUpdateFS, false)) {
626
687
  this$.UpdateFileSystem();
627
688
  }
628
- return toArray(delay(() => {
629
- this$.StaticHash = this$.GetLightHashCode() | 0;
630
- return append(singleton(ARCtrl_ArcInvestigation__ArcInvestigation_ToCreateContract(this$)), delay(() => append(collect((s) => {
631
- s.StaticHash = s.GetLightHashCode() | 0;
632
- return append(ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(s, true), delay(() => {
633
- if (s.Datamap != null) {
634
- const dm = value(s.Datamap);
635
- dm.StaticHash = safeHash(dm) | 0;
636
- return singleton(ARCtrl_Datamap__Datamap_ToCreateContractForStudy_Z721C83C5(dm, s.Identifier));
637
- } else {
638
- return empty();
639
- }
640
- }));
641
- }, this$.Studies), delay(() => append(collect((a) => {
642
- a.StaticHash = a.GetLightHashCode() | 0;
643
- return append(ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(a, true), delay(() => {
644
- if (a.Datamap != null) {
645
- const dm_1 = value(a.Datamap);
646
- dm_1.StaticHash = safeHash(dm_1) | 0;
647
- return singleton(ARCtrl_Datamap__Datamap_ToCreateContractForAssay_Z721C83C5(dm_1, a.Identifier));
648
- } else {
649
- return empty();
650
- }
651
- }));
652
- }, this$.Assays), delay(() => append(collect((w) => {
653
- w.StaticHash = w.GetLightHashCode() | 0;
654
- return append(ARCtrl_ArcWorkflow__ArcWorkflow_ToCreateContract_6FCE9E49(w, true), delay(() => {
655
- if (w.Datamap != null) {
656
- const dm_2 = value(w.Datamap);
657
- dm_2.StaticHash = safeHash(dm_2) | 0;
658
- return singleton(ARCtrl_Datamap__Datamap_ToCreateContractForWorkflow_Z721C83C5(dm_2, w.Identifier));
659
- } else {
660
- return empty();
661
- }
662
- }));
663
- }, this$.Workflows), delay(() => append(collect((r) => {
664
- r.StaticHash = r.GetLightHashCode() | 0;
665
- return append(ARCtrl_ArcRun__ArcRun_ToCreateContract_6FCE9E49(r, true), delay(() => {
666
- if (r.Datamap != null) {
667
- const dm_3 = value(r.Datamap);
668
- dm_3.StaticHash = safeHash(dm_3) | 0;
669
- return singleton(ARCtrl_Datamap__Datamap_ToCreateContractForRun_Z721C83C5(dm_3, r.Identifier));
670
- } else {
671
- return empty();
672
- }
673
- }));
674
- }, this$.Runs), delay(() => {
675
- let l = void 0;
676
- return append(this$.License != null ? (l = value(this$.License), l.StaticHash = safeHash(l) | 0, singleton(l.ToCreateContract())) : empty(), delay(() => append(singleton(Contract.createCreate(combine("assays", ".gitkeep"), "PlainText")), delay(() => append(singleton(Contract.createCreate(combine("studies", ".gitkeep"), "PlainText")), delay(() => append(singleton(Contract.createCreate(combine("workflows", ".gitkeep"), "PlainText")), delay(() => singleton(Contract.createCreate(combine("runs", ".gitkeep"), "PlainText"))))))))));
677
- }))))))))));
678
- }));
689
+ this$.StaticHash = this$.GetLightHashCode() | 0;
690
+ const investigationContract = ARCtrl_ArcInvestigation__ArcInvestigation_ToCreateContract(this$);
691
+ return toArray(delay(() => append$1(singleton(investigationContract), delay(() => append$1(collect((s) => {
692
+ s.StaticHash = s.GetLightHashCode() | 0;
693
+ return append$1(ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(s, true), delay(() => {
694
+ if (s.Datamap != null) {
695
+ const dm = value(s.Datamap);
696
+ dm.StaticHash = safeHash(dm) | 0;
697
+ return singleton(ARCtrl_Datamap__Datamap_ToCreateContractForStudy_Z721C83C5(dm, s.Identifier));
698
+ } else {
699
+ return empty();
700
+ }
701
+ }));
702
+ }, this$.Studies), delay(() => append$1(collect((a) => {
703
+ a.StaticHash = a.GetLightHashCode() | 0;
704
+ return append$1(ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(a, true), delay(() => {
705
+ if (a.Datamap != null) {
706
+ const dm_1 = value(a.Datamap);
707
+ dm_1.StaticHash = safeHash(dm_1) | 0;
708
+ return singleton(ARCtrl_Datamap__Datamap_ToCreateContractForAssay_Z721C83C5(dm_1, a.Identifier));
709
+ } else {
710
+ return empty();
711
+ }
712
+ }));
713
+ }, this$.Assays), delay(() => append$1(collect((w) => {
714
+ w.StaticHash = w.GetLightHashCode() | 0;
715
+ w.CWLStaticHash = w.GetCWLHashCode() | 0;
716
+ return append$1(ARCtrl_ArcWorkflow__ArcWorkflow_ToCreateContract_6FCE9E49(w, true), delay(() => {
717
+ if (w.Datamap != null) {
718
+ const dm_2 = value(w.Datamap);
719
+ dm_2.StaticHash = safeHash(dm_2) | 0;
720
+ return singleton(ARCtrl_Datamap__Datamap_ToCreateContractForWorkflow_Z721C83C5(dm_2, w.Identifier));
721
+ } else {
722
+ return empty();
723
+ }
724
+ }));
725
+ }, this$.Workflows), delay(() => append$1(collect((r) => {
726
+ r.StaticHash = r.GetLightHashCode() | 0;
727
+ r.CWLStaticHash = r.GetCWLHashCode() | 0;
728
+ r.CWLInputStaticHash = r.GetCWLInputHashCode() | 0;
729
+ return append$1(ARCtrl_ArcRun__ArcRun_ToCreateContract_6FCE9E49(r, true), delay(() => {
730
+ if (r.Datamap != null) {
731
+ const dm_3 = value(r.Datamap);
732
+ dm_3.StaticHash = safeHash(dm_3) | 0;
733
+ return singleton(ARCtrl_Datamap__Datamap_ToCreateContractForRun_Z721C83C5(dm_3, r.Identifier));
734
+ } else {
735
+ return empty();
736
+ }
737
+ }));
738
+ }, this$.Runs), delay(() => {
739
+ let l = void 0;
740
+ return append$1(this$.License != null ? (l = value(this$.License), l.StaticHash = safeHash(l) | 0, singleton(l.ToCreateContract())) : empty(), delay(() => append$1(singleton(Contract.createCreate(combine("assays", ".gitkeep"), "PlainText")), delay(() => append$1(singleton(Contract.createCreate(combine("studies", ".gitkeep"), "PlainText")), delay(() => append$1(singleton(Contract.createCreate(combine("workflows", ".gitkeep"), "PlainText")), delay(() => singleton(Contract.createCreate(combine("runs", ".gitkeep"), "PlainText"))))))))));
741
+ }))))))))))));
679
742
  }
680
743
  /**
681
744
  * This function returns the all update Contracts for the current state of the ARC. Only update contracts for those ISA objects that have been changed will be returned.
@@ -693,22 +756,22 @@ class ARC extends ArcInvestigation {
693
756
  } else {
694
757
  return toArray(delay(() => {
695
758
  const hash = this$.GetLightHashCode() | 0;
696
- return append(this$.StaticHash !== hash ? singleton(ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract(this$)) : empty(), delay(() => {
759
+ return append$1(this$.StaticHash !== hash ? singleton(ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract(this$)) : empty(), delay(() => {
697
760
  this$.StaticHash = hash | 0;
698
- return append(collect((s) => {
761
+ return append$1(collect((s) => {
699
762
  const hash_1 = s.GetLightHashCode() | 0;
700
- return append(s.StaticHash === 0 ? ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(s, true) : s.StaticHash !== hash_1 ? singleton(ARCtrl_ArcStudy__ArcStudy_ToUpdateContract(s)) : empty(), delay(() => {
763
+ return append$1(s.StaticHash === 0 ? ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(s, true) : s.StaticHash !== hash_1 ? singleton(ARCtrl_ArcStudy__ArcStudy_ToUpdateContract(s)) : empty(), delay(() => {
701
764
  let dm = void 0, dm_1 = void 0;
702
765
  s.StaticHash = hash_1 | 0;
703
766
  const matchValue = s.Datamap;
704
767
  let matchResult = void 0, dm_2 = void 0, dm_3 = void 0;
705
768
  if (matchValue != null) {
706
- if (dm = value(matchValue), dm.StaticHash === 0) {
769
+ if (dm = matchValue, dm.StaticHash === 0) {
707
770
  matchResult = 0;
708
- dm_2 = value(matchValue);
709
- } else if (dm_1 = value(matchValue), dm_1.StaticHash !== safeHash(dm_1)) {
771
+ dm_2 = matchValue;
772
+ } else if (dm_1 = matchValue, dm_1.StaticHash !== safeHash(dm_1)) {
710
773
  matchResult = 1;
711
- dm_3 = value(matchValue);
774
+ dm_3 = matchValue;
712
775
  } else {
713
776
  matchResult = 2;
714
777
  }
@@ -717,12 +780,12 @@ class ARC extends ArcInvestigation {
717
780
  }
718
781
  switch (matchResult) {
719
782
  case 0:
720
- return append(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForStudy_Z721C83C5(dm_2, s.Identifier)), delay(() => {
783
+ return append$1(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForStudy_Z721C83C5(dm_2, s.Identifier)), delay(() => {
721
784
  dm_2.StaticHash = safeHash(dm_2) | 0;
722
785
  return empty();
723
786
  }));
724
787
  case 1:
725
- return append(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForStudy_Z721C83C5(dm_3, s.Identifier)), delay(() => {
788
+ return append$1(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForStudy_Z721C83C5(dm_3, s.Identifier)), delay(() => {
726
789
  dm_3.StaticHash = safeHash(dm_3) | 0;
727
790
  return empty();
728
791
  }));
@@ -731,20 +794,20 @@ class ARC extends ArcInvestigation {
731
794
  }
732
795
  }
733
796
  }));
734
- }, this$.Studies), delay(() => append(collect((a) => {
797
+ }, this$.Studies), delay(() => append$1(collect((a) => {
735
798
  const hash_2 = a.GetLightHashCode() | 0;
736
- return append(a.StaticHash === 0 ? ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(a, true) : a.StaticHash !== hash_2 ? singleton(ARCtrl_ArcAssay__ArcAssay_ToUpdateContract(a)) : empty(), delay(() => {
799
+ return append$1(a.StaticHash === 0 ? ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(a, true) : a.StaticHash !== hash_2 ? singleton(ARCtrl_ArcAssay__ArcAssay_ToUpdateContract(a)) : empty(), delay(() => {
737
800
  let dm_4 = void 0, dm_5 = void 0;
738
801
  a.StaticHash = hash_2 | 0;
739
802
  const matchValue_1 = a.Datamap;
740
803
  let matchResult_1 = void 0, dm_6 = void 0, dm_7 = void 0;
741
804
  if (matchValue_1 != null) {
742
- if (dm_4 = value(matchValue_1), dm_4.StaticHash === 0) {
805
+ if (dm_4 = matchValue_1, dm_4.StaticHash === 0) {
743
806
  matchResult_1 = 0;
744
- dm_6 = value(matchValue_1);
745
- } else if (dm_5 = value(matchValue_1), dm_5.StaticHash !== safeHash(dm_5)) {
807
+ dm_6 = matchValue_1;
808
+ } else if (dm_5 = matchValue_1, dm_5.StaticHash !== safeHash(dm_5)) {
746
809
  matchResult_1 = 1;
747
- dm_7 = value(matchValue_1);
810
+ dm_7 = matchValue_1;
748
811
  } else {
749
812
  matchResult_1 = 2;
750
813
  }
@@ -753,12 +816,12 @@ class ARC extends ArcInvestigation {
753
816
  }
754
817
  switch (matchResult_1) {
755
818
  case 0:
756
- return append(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForAssay_Z721C83C5(dm_6, a.Identifier)), delay(() => {
819
+ return append$1(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForAssay_Z721C83C5(dm_6, a.Identifier)), delay(() => {
757
820
  dm_6.StaticHash = safeHash(dm_6) | 0;
758
821
  return empty();
759
822
  }));
760
823
  case 1:
761
- return append(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForAssay_Z721C83C5(dm_7, a.Identifier)), delay(() => {
824
+ return append$1(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForAssay_Z721C83C5(dm_7, a.Identifier)), delay(() => {
762
825
  dm_7.StaticHash = safeHash(dm_7) | 0;
763
826
  return empty();
764
827
  }));
@@ -767,86 +830,97 @@ class ARC extends ArcInvestigation {
767
830
  }
768
831
  }
769
832
  }));
770
- }, this$.Assays), delay(() => append(collect((w) => {
833
+ }, this$.Assays), delay(() => append$1(collect((w) => {
771
834
  const hash_3 = w.GetLightHashCode() | 0;
772
- return append(w.StaticHash === 0 ? ARCtrl_ArcWorkflow__ArcWorkflow_ToCreateContract_6FCE9E49(w, true) : w.StaticHash !== hash_3 ? singleton(ARCtrl_ArcWorkflow__ArcWorkflow_ToUpdateContract(w)) : empty(), delay(() => {
773
- let dm_8 = void 0, dm_9 = void 0;
835
+ return append$1(w.StaticHash === 0 ? append$1(ARCtrl_ArcWorkflow__ArcWorkflow_ToCreateContract_6FCE9E49(w, true), delay(() => {
836
+ w.CWLStaticHash = w.GetCWLHashCode() | 0;
837
+ return empty();
838
+ })) : w.StaticHash !== hash_3 ? singleton(ARCtrl_ArcWorkflow__ArcWorkflow_ToUpdateContract(w)) : empty(), delay(() => {
774
839
  w.StaticHash = hash_3 | 0;
775
- const matchValue_2 = w.Datamap;
776
- let matchResult_2 = void 0, dm_10 = void 0, dm_11 = void 0;
777
- if (matchValue_2 != null) {
778
- if (dm_8 = value(matchValue_2), dm_8.StaticHash === 0) {
779
- matchResult_2 = 0;
780
- dm_10 = value(matchValue_2);
781
- } else if (dm_9 = value(matchValue_2), dm_9.StaticHash !== safeHash(dm_9)) {
782
- matchResult_2 = 1;
783
- dm_11 = value(matchValue_2);
840
+ return append$1(ARCAux_workflowFileContracts(w), delay(() => {
841
+ let dm_8 = void 0, dm_9 = void 0;
842
+ const matchValue_2 = w.Datamap;
843
+ let matchResult_2 = void 0, dm_10 = void 0, dm_11 = void 0;
844
+ if (matchValue_2 != null) {
845
+ if (dm_8 = matchValue_2, dm_8.StaticHash === 0) {
846
+ matchResult_2 = 0;
847
+ dm_10 = matchValue_2;
848
+ } else if (dm_9 = matchValue_2, dm_9.StaticHash !== safeHash(dm_9)) {
849
+ matchResult_2 = 1;
850
+ dm_11 = matchValue_2;
851
+ } else {
852
+ matchResult_2 = 2;
853
+ }
784
854
  } else {
785
855
  matchResult_2 = 2;
786
856
  }
787
- } else {
788
- matchResult_2 = 2;
789
- }
790
- switch (matchResult_2) {
791
- case 0:
792
- return append(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForWorkflow_Z721C83C5(dm_10, w.Identifier)), delay(() => {
793
- dm_10.StaticHash = safeHash(dm_10) | 0;
857
+ switch (matchResult_2) {
858
+ case 0:
859
+ return append$1(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForWorkflow_Z721C83C5(dm_10, w.Identifier)), delay(() => {
860
+ dm_10.StaticHash = safeHash(dm_10) | 0;
861
+ return empty();
862
+ }));
863
+ case 1:
864
+ return append$1(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForWorkflow_Z721C83C5(dm_11, w.Identifier)), delay(() => {
865
+ dm_11.StaticHash = safeHash(dm_11) | 0;
866
+ return empty();
867
+ }));
868
+ default: {
794
869
  return empty();
795
- }));
796
- case 1:
797
- return append(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForWorkflow_Z721C83C5(dm_11, w.Identifier)), delay(() => {
798
- dm_11.StaticHash = safeHash(dm_11) | 0;
799
- return empty();
800
- }));
801
- default: {
802
- return empty();
870
+ }
803
871
  }
804
- }
872
+ }));
805
873
  }));
806
- }, this$.Workflows), delay(() => append(collect((r) => {
874
+ }, this$.Workflows), delay(() => append$1(collect((r) => {
807
875
  const hash_4 = r.GetLightHashCode() | 0;
808
- return append(r.StaticHash === 0 ? ARCtrl_ArcRun__ArcRun_ToCreateContract_6FCE9E49(r, true) : r.StaticHash !== hash_4 ? singleton(ARCtrl_ArcRun__ArcRun_ToUpdateContract(r)) : empty(), delay(() => {
809
- let dm_12 = void 0, dm_13 = void 0;
876
+ return append$1(r.StaticHash === 0 ? append$1(ARCtrl_ArcRun__ArcRun_ToCreateContract_6FCE9E49(r, true), delay(() => {
877
+ r.CWLStaticHash = r.GetCWLHashCode() | 0;
878
+ r.CWLInputStaticHash = r.GetCWLInputHashCode() | 0;
879
+ return empty();
880
+ })) : r.StaticHash !== hash_4 ? singleton(ARCtrl_ArcRun__ArcRun_ToUpdateContract(r)) : empty(), delay(() => {
810
881
  r.StaticHash = hash_4 | 0;
811
- const matchValue_3 = r.Datamap;
812
- let matchResult_3 = void 0, dm_14 = void 0, dm_15 = void 0;
813
- if (matchValue_3 != null) {
814
- if (dm_12 = value(matchValue_3), dm_12.StaticHash === 0) {
815
- matchResult_3 = 0;
816
- dm_14 = value(matchValue_3);
817
- } else if (dm_13 = value(matchValue_3), dm_13.StaticHash !== safeHash(dm_13)) {
818
- matchResult_3 = 1;
819
- dm_15 = value(matchValue_3);
882
+ return append$1(ARCAux_runFileContracts(r), delay(() => {
883
+ let dm_12 = void 0, dm_13 = void 0;
884
+ const matchValue_3 = r.Datamap;
885
+ let matchResult_3 = void 0, dm_14 = void 0, dm_15 = void 0;
886
+ if (matchValue_3 != null) {
887
+ if (dm_12 = matchValue_3, dm_12.StaticHash === 0) {
888
+ matchResult_3 = 0;
889
+ dm_14 = matchValue_3;
890
+ } else if (dm_13 = matchValue_3, dm_13.StaticHash !== safeHash(dm_13)) {
891
+ matchResult_3 = 1;
892
+ dm_15 = matchValue_3;
893
+ } else {
894
+ matchResult_3 = 2;
895
+ }
820
896
  } else {
821
897
  matchResult_3 = 2;
822
898
  }
823
- } else {
824
- matchResult_3 = 2;
825
- }
826
- switch (matchResult_3) {
827
- case 0:
828
- return append(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForRun_Z721C83C5(dm_14, r.Identifier)), delay(() => {
829
- dm_14.StaticHash = safeHash(dm_14) | 0;
899
+ switch (matchResult_3) {
900
+ case 0:
901
+ return append$1(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForRun_Z721C83C5(dm_14, r.Identifier)), delay(() => {
902
+ dm_14.StaticHash = safeHash(dm_14) | 0;
903
+ return empty();
904
+ }));
905
+ case 1:
906
+ return append$1(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForRun_Z721C83C5(dm_15, r.Identifier)), delay(() => {
907
+ dm_15.StaticHash = safeHash(dm_15) | 0;
908
+ return empty();
909
+ }));
910
+ default: {
830
911
  return empty();
831
- }));
832
- case 1:
833
- return append(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForRun_Z721C83C5(dm_15, r.Identifier)), delay(() => {
834
- dm_15.StaticHash = safeHash(dm_15) | 0;
835
- return empty();
836
- }));
837
- default: {
838
- return empty();
912
+ }
839
913
  }
840
- }
914
+ }));
841
915
  }));
842
916
  }, this$.Runs), delay(() => {
843
917
  const matchValue_4 = this$.License;
844
918
  if (matchValue_4 == null) {
845
919
  return empty();
846
920
  } else {
847
- const l = value(matchValue_4);
921
+ const l = matchValue_4;
848
922
  const hash_5 = safeHash(l) | 0;
849
- return append(l.StaticHash === 0 ? singleton(l.ToCreateContract()) : l.StaticHash !== hash_5 ? singleton(l.ToUpdateContract()) : empty(), delay(() => {
923
+ return append$1(l.StaticHash === 0 ? singleton(l.ToCreateContract()) : l.StaticHash !== hash_5 ? singleton(l.ToUpdateContract()) : empty(), delay(() => {
850
924
  l.StaticHash = hash_5 | 0;
851
925
  return empty();
852
926
  }));
@@ -859,7 +933,7 @@ class ARC extends ArcInvestigation {
859
933
  GetGitInitContracts(branch, repositoryAddress, defaultGitignore, defaultGitattributes) {
860
934
  const defaultGitignore_1 = defaultArg(defaultGitignore, false);
861
935
  const defaultGitattributes_1 = defaultArg(defaultGitattributes, false);
862
- return toArray(delay(() => append(singleton(Init_createInitContract_6DFDD678(unwrap(branch))), delay(() => append(defaultGitignore_1 ? singleton(gitignoreContract) : empty(), delay(() => append(defaultGitattributes_1 ? singleton(gitattributesContract) : empty(), delay(() => repositoryAddress != null ? singleton(Init_createAddRemoteContract_Z721C83C5(value(repositoryAddress))) : empty()))))))));
936
+ return toArray(delay(() => append$1(singleton(Init_createInitContract_6DFDD678(unwrap(branch))), delay(() => append$1(defaultGitignore_1 ? singleton(gitignoreContract) : empty(), delay(() => append$1(defaultGitattributes_1 ? singleton(gitattributesContract) : empty(), delay(() => repositoryAddress != null ? singleton(Init_createAddRemoteContract_Z721C83C5(value(repositoryAddress))) : empty()))))))));
863
937
  }
864
938
  static getCloneContract(remoteUrl, merge, branch, token, nolfs) {
865
939
  return Clone_createCloneContract_5000466F(remoteUrl, unwrap(merge), unwrap(branch), unwrap(token), unwrap(nolfs));
@@ -919,7 +993,7 @@ class ARC extends ArcInvestigation {
919
993
  const nextStudyIdentifiers = Array.from(this$.RegisteredStudyIdentifiers);
920
994
  let nextLicense;
921
995
  const option_1 = this$.License;
922
- nextLicense = option_1 != null ? (_arg = value(option_1), _arg.Copy()) : void 0;
996
+ nextLicense = option_1 != null ? (_arg = option_1, _arg.Copy()) : void 0;
923
997
  const fsCopy = this$._fs.Copy();
924
998
  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));
925
999
  }
@@ -932,13 +1006,13 @@ class ARC extends ArcInvestigation {
932
1006
  const copy = this$.Copy();
933
1007
  const registeredStudies = copy.Studies.slice();
934
1008
  const registeredAssays = concat(map((s) => s.RegisteredAssays.slice(), registeredStudies));
935
- 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())))))), {
1009
+ const includeFiles = unionMany([ofSeq(toList(delay(() => append$1(singleton("isa.investigation.xlsx"), delay(() => append$1(singleton("README.md"), delay(() => this$.License != null ? singleton(value(this$.License).Path) : empty())))))), {
936
1010
  Compare: (x, y) => comparePrimitives(x, y) | 0
937
1011
  }), unionMany(map((s_1) => {
938
1012
  const studyFoldername = concat$1("studies", "/", s_1.Identifier);
939
- return ofSeq(toList(delay(() => append(singleton(concat$1(studyFoldername, "/", "isa.study.xlsx")), delay(() => append(singleton(concat$1(studyFoldername, "/", "README.md")), delay(() => collect((table) => collect((kv) => {
1013
+ return ofSeq(toList(delay(() => append$1(singleton(concat$1(studyFoldername, "/", "isa.study.xlsx")), delay(() => append$1(singleton(concat$1(studyFoldername, "/", "README.md")), delay(() => collect((table) => collect((kv) => {
940
1014
  const textValue = kv[1].ToFreeTextCell().AsFreeText;
941
- return append(singleton(textValue), delay(() => append(singleton(`${studyFoldername}/${"resources"}/${textValue}`), delay(() => singleton(`${studyFoldername}/${"protocols"}/${textValue}`)))));
1015
+ return append$1(singleton(textValue), delay(() => append$1(singleton(`${studyFoldername}/${"resources"}/${textValue}`), delay(() => singleton(`${studyFoldername}/${"protocols"}/${textValue}`)))));
942
1016
  }, table.Values), s_1.Tables))))))), {
943
1017
  Compare: (x_1, y_1) => comparePrimitives(x_1, y_1) | 0
944
1018
  });
@@ -946,9 +1020,9 @@ class ARC extends ArcInvestigation {
946
1020
  Compare: (x_2, y_2) => comparePrimitives(x_2, y_2) | 0
947
1021
  }), unionMany(map((a) => {
948
1022
  const assayFoldername = concat$1("assays", "/", a.Identifier);
949
- return ofSeq(toList(delay(() => append(singleton(concat$1(assayFoldername, "/", "isa.assay.xlsx")), delay(() => append(singleton(concat$1(assayFoldername, "/", "README.md")), delay(() => collect((table_1) => collect((kv_1) => {
1023
+ return ofSeq(toList(delay(() => append$1(singleton(concat$1(assayFoldername, "/", "isa.assay.xlsx")), delay(() => append$1(singleton(concat$1(assayFoldername, "/", "README.md")), delay(() => collect((table_1) => collect((kv_1) => {
950
1024
  const textValue_1 = kv_1[1].ToFreeTextCell().AsFreeText;
951
- return append(singleton(textValue_1), delay(() => append(singleton(`${assayFoldername}/${"dataset"}/${textValue_1}`), delay(() => singleton(`${assayFoldername}/${"protocols"}/${textValue_1}`)))));
1025
+ return append$1(singleton(textValue_1), delay(() => append$1(singleton(`${assayFoldername}/${"dataset"}/${textValue_1}`), delay(() => singleton(`${assayFoldername}/${"protocols"}/${textValue_1}`)))));
952
1026
  }, table_1.Values), a.Tables))))))), {
953
1027
  Compare: (x_3, y_3) => comparePrimitives(x_3, y_3) | 0
954
1028
  });
@@ -965,7 +1039,7 @@ class ARC extends ArcInvestigation {
965
1039
  } else {
966
1040
  return FSharpSet__Contains(includeFiles, p);
967
1041
  }
968
- })), FileSystemTree.fromFilePaths(paths)), ignoreHidden ? FileSystemTree.filterFiles((n) => !n.startsWith("."))(tree) : tree), option_1 != null ? (tree_1 = value(option_1), ignoreHidden ? FileSystemTree.filterFolders((n_1) => !n_1.startsWith("."))(tree_1) : tree_1) : void 0), FileSystemTree.fromFilePaths([]));
1042
+ })), FileSystemTree.fromFilePaths(paths)), ignoreHidden ? FileSystemTree.filterFiles((n) => !n.startsWith("."))(tree) : tree), option_1 != null ? (tree_1 = option_1, ignoreHidden ? FileSystemTree.filterFolders((n_1) => !n_1.startsWith("."))(tree_1) : tree_1) : void 0), FileSystemTree.fromFilePaths([]));
969
1043
  }
970
1044
  /**
971
1045
  * Returns the FileSystemTree of the ARC with only and folders included that are considered additional payload.
@@ -977,7 +1051,7 @@ class ARC extends ArcInvestigation {
977
1051
  const registeredPayload = ofSeq(FileSystemTree.toFilePaths()(this$.GetRegisteredPayload()), {
978
1052
  Compare: (x, y) => comparePrimitives(x, y) | 0
979
1053
  });
980
- return defaultArg((option_1 = (tree = (paths = (array = FileSystemTree.toFilePaths()(this$._fs.Copy().Tree), array.filter((p) => !FSharpSet__Contains(registeredPayload, p))), FileSystemTree.fromFilePaths(paths)), ignoreHidden ? FileSystemTree.filterFiles((n) => !n.startsWith("."))(tree) : tree), option_1 != null ? (tree_1 = value(option_1), ignoreHidden ? FileSystemTree.filterFolders((n_1) => !n_1.startsWith("."))(tree_1) : tree_1) : void 0), FileSystemTree.fromFilePaths([]));
1054
+ return defaultArg((option_1 = (tree = (paths = (array = FileSystemTree.toFilePaths()(this$._fs.Copy().Tree), array.filter((p) => !FSharpSet__Contains(registeredPayload, p))), FileSystemTree.fromFilePaths(paths)), ignoreHidden ? FileSystemTree.filterFiles((n) => !n.startsWith("."))(tree) : tree), option_1 != null ? (tree_1 = option_1, ignoreHidden ? FileSystemTree.filterFolders((n_1) => !n_1.startsWith("."))(tree_1) : tree_1) : void 0), FileSystemTree.fromFilePaths([]));
981
1055
  }
982
1056
  static get DefaultContracts() {
983
1057
  return ARCAux_defaultContracts;
@@ -1036,7 +1110,7 @@ class ARC extends ArcInvestigation {
1036
1110
  const this$ = this;
1037
1111
  let _arg;
1038
1112
  const option_1 = this$.License;
1039
- _arg = option_1 != null ? value(option_1) : License.GetDefaultLicense();
1113
+ _arg = option_1 != null ? option_1 : License.GetDefaultLicense();
1040
1114
  return _arg.ToCreateContract();
1041
1115
  }
1042
1116
  /**
@@ -1051,7 +1125,7 @@ class ARC extends ArcInvestigation {
1051
1125
  Equals: (x, y) => x === y,
1052
1126
  GetHashCode: (x) => stringHash(x) | 0
1053
1127
  })) {
1054
- const filePaths = append$1([ValidationPackagesConfigHelper_ConfigFilePath], paths);
1128
+ const filePaths = append([ValidationPackagesConfigHelper_ConfigFilePath], paths);
1055
1129
  this$.SetFilePaths(filePaths);
1056
1130
  }
1057
1131
  return ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toCreateContract_Static_724DAE55(vpc);
@@ -1125,6 +1199,31 @@ function ARC_$reflection() {
1125
1199
  function ARC_$ctor_Z443FB9BF(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, workflows, runs, registeredStudyIdentifiers, comments, remarks, fs, license) {
1126
1200
  return new ARC(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, workflows, runs, registeredStudyIdentifiers, comments, remarks, fs, license);
1127
1201
  }
1202
+ function ARCAux_fileContract(path, staticHash, hash, contractOf) {
1203
+ if (staticHash === hash) {
1204
+ return void 0;
1205
+ } else if (hash === 0) {
1206
+ return Contract.createDelete(path);
1207
+ } else if (staticHash === 0) {
1208
+ return contractOf("CREATE");
1209
+ } else {
1210
+ return contractOf("UPDATE");
1211
+ }
1212
+ }
1213
+ function ARCAux_runFileContracts(run) {
1214
+ const cwlHash = run.GetCWLHashCode() | 0;
1215
+ const ymlHash = run.GetCWLInputHashCode() | 0;
1216
+ const contracts = choose((x) => x, [ARCAux_fileContract(Run_cwlFileNameFromIdentifier(run.Identifier), run.CWLStaticHash, cwlHash, (operation) => ARCtrl_ArcRun__ArcRun_TryToCWLContract_Z2D283928(run, operation)), ARCAux_fileContract(Run_ymlFileNameFromIdentifier(run.Identifier), run.CWLInputStaticHash, ymlHash, (operation_1) => ARCtrl_ArcRun__ArcRun_TryToYMLContract_Z2D283928(run, operation_1))]);
1217
+ run.CWLStaticHash = cwlHash | 0;
1218
+ run.CWLInputStaticHash = ymlHash | 0;
1219
+ return contracts;
1220
+ }
1221
+ function ARCAux_workflowFileContracts(workflow) {
1222
+ const cwlHash = workflow.GetCWLHashCode() | 0;
1223
+ const contracts = toArray$1(ARCAux_fileContract(Workflow_cwlFileNameFromIdentifier(workflow.Identifier), workflow.CWLStaticHash, cwlHash, (operation) => ARCtrl_ArcWorkflow__ArcWorkflow_TryToCWLContract_Z2D283928(workflow, operation)));
1224
+ workflow.CWLStaticHash = cwlHash | 0;
1225
+ return contracts;
1226
+ }
1128
1227
  function ARCAux_getArcAssaysFromContracts(contracts) {
1129
1228
  return choose(ARCtrl_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F, contracts);
1130
1229
  }
@@ -1163,11 +1262,11 @@ function ARCAux_getCWLByPathFromContracts(contracts) {
1163
1262
  let matchResult = void 0, text = void 0;
1164
1263
  if (c.Operation === "READ") {
1165
1264
  if (c.DTOType != null) {
1166
- if (value(c.DTOType) === "CWL") {
1265
+ if (c.DTOType === "CWL") {
1167
1266
  if (c.DTO != null) {
1168
- if (typeof value(c.DTO) === "string") {
1267
+ if (typeof c.DTO === "string") {
1169
1268
  matchResult = 0;
1170
- text = value(c.DTO);
1269
+ text = c.DTO;
1171
1270
  } else {
1172
1271
  matchResult = 1;
1173
1272
  }
@@ -1184,10 +1283,8 @@ function ARCAux_getCWLByPathFromContracts(contracts) {
1184
1283
  matchResult = 1;
1185
1284
  }
1186
1285
  switch (matchResult) {
1187
- case 0: {
1188
- const cwl = Decode_decodeCWLProcessingUnit(text);
1189
- return [normalizePathKey(c.Path), cwl];
1190
- }
1286
+ case 0:
1287
+ return [normalizePathKey(c.Path), CWLFileReading_decodeCWLFile(c.Path, text)];
1191
1288
  default:
1192
1289
  return void 0;
1193
1290
  }
@@ -1225,7 +1322,7 @@ function ARCAux_updateFSByARC(isa, license, fs) {
1225
1322
  runsFolder = FileSystemTree.createRunsFolder(runs);
1226
1323
  const investigation = FileSystemTree.createInvestigationFile();
1227
1324
  let tree_1;
1228
- const tree = FileSystemTree.createRootFolder(toArray(delay(() => append(singleton(investigation), delay(() => append(singleton(assaysFolder), delay(() => append(singleton(studiesFolder), delay(() => append(singleton(workflowsFolder), delay(() => append(singleton(runsFolder), delay(() => license != null ? singleton(FileSystemTree_File(value(license).Path)) : empty())))))))))))));
1325
+ const tree = FileSystemTree.createRootFolder(toArray(delay(() => append$1(singleton(investigation), delay(() => append$1(singleton(assaysFolder), delay(() => append$1(singleton(studiesFolder), delay(() => append$1(singleton(workflowsFolder), delay(() => append$1(singleton(runsFolder), delay(() => license != null ? singleton(FileSystemTree_File(value(license).Path)) : empty())))))))))))));
1229
1326
  tree_1 = FileSystem.create({
1230
1327
  tree
1231
1328
  });
@@ -1235,4 +1332,4 @@ const ARCAux_defaultContracts = ofSeq$1([[".gitignore", gitignoreContract], [".g
1235
1332
  Compare: (x, y) => comparePrimitives(x, y) | 0
1236
1333
  });
1237
1334
 
1238
- export { ARC, ARCAux_defaultContracts, 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 };
1335
+ export { ARC, ARCAux_defaultContracts, ARCAux_fileContract, 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_runFileContracts, ARCAux_tryGetCWLByPath, ARCAux_updateFSByARC, ARCAux_workflowFileContracts, ARC_$ctor_Z443FB9BF, ARC_$reflection };