@nfdi4plants/arctrl 3.1.0 → 3.2.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 (892) hide show
  1. package/dist/ts/index.d.ts +3 -0
  2. package/dist/ts/index.d.ts.map +1 -1
  3. package/dist/ts/index.js +3 -0
  4. package/dist/ts/node_modules/@fable-org/fable-library-ts/Array.js +1296 -0
  5. package/dist/ts/node_modules/@fable-org/fable-library-ts/Async.js +174 -0
  6. package/dist/ts/node_modules/@fable-org/fable-library-ts/AsyncBuilder.js +190 -0
  7. package/dist/ts/node_modules/@fable-org/fable-library-ts/BigInt.js +479 -0
  8. package/dist/ts/node_modules/@fable-org/fable-library-ts/Boolean.js +23 -0
  9. package/dist/ts/node_modules/@fable-org/fable-library-ts/Char.js +172 -0
  10. package/dist/ts/node_modules/@fable-org/fable-library-ts/Choice.js +187 -0
  11. package/dist/ts/node_modules/@fable-org/fable-library-ts/CollectionUtil.js +148 -0
  12. package/dist/ts/node_modules/@fable-org/fable-library-ts/Date.js +843 -0
  13. package/dist/ts/node_modules/@fable-org/fable-library-ts/DateOffset.js +247 -0
  14. package/dist/ts/node_modules/@fable-org/fable-library-ts/Decimal.js +279 -0
  15. package/dist/ts/node_modules/@fable-org/fable-library-ts/Double.js +53 -0
  16. package/dist/ts/node_modules/@fable-org/fable-library-ts/FSharp.Collections.js +48 -0
  17. package/dist/ts/node_modules/@fable-org/fable-library-ts/FSharp.Core.js +148 -0
  18. package/dist/ts/node_modules/@fable-org/fable-library-ts/Global.js +31 -0
  19. package/dist/ts/node_modules/@fable-org/fable-library-ts/Guid.js +140 -0
  20. package/dist/ts/node_modules/@fable-org/fable-library-ts/Int32.js +165 -0
  21. package/dist/ts/node_modules/@fable-org/fable-library-ts/List.js +1282 -0
  22. package/dist/ts/node_modules/@fable-org/fable-library-ts/Long.js +40 -0
  23. package/dist/ts/node_modules/@fable-org/fable-library-ts/Map.js +1298 -0
  24. package/dist/ts/node_modules/@fable-org/fable-library-ts/MapUtil.js +126 -0
  25. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableMap.js +323 -0
  26. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableSet.js +225 -0
  27. package/dist/ts/node_modules/@fable-org/fable-library-ts/Native.js +14 -0
  28. package/dist/ts/node_modules/@fable-org/fable-library-ts/Numeric.js +63 -0
  29. package/dist/ts/node_modules/@fable-org/fable-library-ts/Option.js +81 -0
  30. package/dist/ts/node_modules/@fable-org/fable-library-ts/Random.js +174 -0
  31. package/dist/ts/node_modules/@fable-org/fable-library-ts/Range.js +47 -0
  32. package/dist/ts/node_modules/@fable-org/fable-library-ts/Reflection.js +471 -0
  33. package/dist/ts/node_modules/@fable-org/fable-library-ts/RegExp.js +137 -0
  34. package/dist/ts/node_modules/@fable-org/fable-library-ts/Result.js +169 -0
  35. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq.js +1398 -0
  36. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq2.js +110 -0
  37. package/dist/ts/node_modules/@fable-org/fable-library-ts/Set.js +1670 -0
  38. package/dist/ts/node_modules/@fable-org/fable-library-ts/String.js +660 -0
  39. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Collections.Generic.js +328 -0
  40. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Text.js +201 -0
  41. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.js +292 -0
  42. package/dist/ts/node_modules/@fable-org/fable-library-ts/TimeSpan.js +170 -0
  43. package/dist/ts/node_modules/@fable-org/fable-library-ts/Types.js +199 -0
  44. package/dist/ts/node_modules/@fable-org/{fable-library-js → fable-library-ts}/Unicode.13.0.0.js +0 -2
  45. package/dist/ts/node_modules/@fable-org/fable-library-ts/Uri.js +154 -0
  46. package/dist/ts/node_modules/@fable-org/fable-library-ts/Util.js +747 -0
  47. package/dist/ts/node_modules/@fable-org/fable-library-ts/lib/big.js +1052 -0
  48. package/dist/ts/ts/ARC.d.ts +122 -62
  49. package/dist/ts/ts/ARC.d.ts.map +1 -1
  50. package/dist/ts/ts/ARC.js +142 -86
  51. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts +32 -0
  52. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts.map +1 -0
  53. package/dist/ts/ts/CWL/CWLKnownFieldNames.js +95 -0
  54. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +12 -12
  55. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -1
  56. package/dist/ts/ts/CWL/CWLProcessingUnit.js +7 -7
  57. package/dist/ts/ts/CWL/CWLTypes.d.ts +219 -59
  58. package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
  59. package/dist/ts/ts/CWL/CWLTypes.js +696 -124
  60. package/dist/ts/ts/CWL/Decode.d.ts +303 -61
  61. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
  62. package/dist/ts/ts/CWL/Decode.js +1162 -679
  63. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts +37 -0
  64. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts.map +1 -0
  65. package/dist/ts/ts/CWL/DynamicObjHelpers.js +57 -0
  66. package/dist/ts/ts/CWL/Encode.d.ts +138 -14
  67. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
  68. package/dist/ts/ts/CWL/Encode.js +798 -522
  69. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +32 -6
  70. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
  71. package/dist/ts/ts/CWL/ExpressionToolDescription.js +31 -3
  72. package/dist/ts/ts/CWL/HashHelpers.d.ts +4 -3
  73. package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -1
  74. package/dist/ts/ts/CWL/HashHelpers.js +9 -9
  75. package/dist/ts/ts/CWL/Inputs.d.ts +69 -18
  76. package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -1
  77. package/dist/ts/ts/CWL/Inputs.js +191 -52
  78. package/dist/ts/ts/CWL/OperationDescription.d.ts +8 -6
  79. package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
  80. package/dist/ts/ts/CWL/OperationDescription.js +7 -3
  81. package/dist/ts/ts/CWL/Outputs.d.ts +55 -16
  82. package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -1
  83. package/dist/ts/ts/CWL/Outputs.js +170 -75
  84. package/dist/ts/ts/CWL/ParameterReference.d.ts +15 -9
  85. package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -1
  86. package/dist/ts/ts/CWL/ParameterReference.js +36 -17
  87. package/dist/ts/ts/CWL/ParameterValue.d.ts +57 -0
  88. package/dist/ts/ts/CWL/ParameterValue.d.ts.map +1 -0
  89. package/dist/ts/ts/CWL/ParameterValue.js +321 -0
  90. package/dist/ts/ts/CWL/Requirements.d.ts +183 -66
  91. package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
  92. package/dist/ts/ts/CWL/Requirements.js +475 -137
  93. package/dist/ts/ts/CWL/ToolDescription.d.ts +57 -8
  94. package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
  95. package/dist/ts/ts/CWL/ToolDescription.js +98 -7
  96. package/dist/ts/ts/CWL/WorkflowDescription.d.ts +30 -7
  97. package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
  98. package/dist/ts/ts/CWL/WorkflowDescription.js +28 -3
  99. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +91 -36
  100. package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
  101. package/dist/ts/ts/CWL/WorkflowSteps.js +206 -41
  102. package/dist/ts/ts/CWLRunResolver.d.ts +11 -11
  103. package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -1
  104. package/dist/ts/ts/CWLRunResolver.js +16 -16
  105. package/dist/ts/ts/Contract/ARC.d.ts +2 -2
  106. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  107. package/dist/ts/ts/Contract/ARC.js +1 -1
  108. package/dist/ts/ts/Contract/ArcAssay.d.ts +7 -6
  109. package/dist/ts/ts/Contract/ArcAssay.d.ts.map +1 -1
  110. package/dist/ts/ts/Contract/ArcAssay.js +15 -10
  111. package/dist/ts/ts/Contract/ArcInvestigation.d.ts +5 -4
  112. package/dist/ts/ts/Contract/ArcInvestigation.d.ts.map +1 -1
  113. package/dist/ts/ts/Contract/ArcInvestigation.js +12 -7
  114. package/dist/ts/ts/Contract/ArcRun.d.ts +11 -10
  115. package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
  116. package/dist/ts/ts/Contract/ArcRun.js +24 -21
  117. package/dist/ts/ts/Contract/ArcStudy.d.ts +8 -7
  118. package/dist/ts/ts/Contract/ArcStudy.d.ts.map +1 -1
  119. package/dist/ts/ts/Contract/ArcStudy.js +15 -10
  120. package/dist/ts/ts/Contract/ArcWorkflow.d.ts +9 -8
  121. package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
  122. package/dist/ts/ts/Contract/ArcWorkflow.js +20 -16
  123. package/dist/ts/ts/Contract/Contract.d.ts +38 -8
  124. package/dist/ts/ts/Contract/Contract.d.ts.map +1 -1
  125. package/dist/ts/ts/Contract/Contract.js +46 -7
  126. package/dist/ts/ts/Contract/Datamap.d.ts +5 -4
  127. package/dist/ts/ts/Contract/Datamap.d.ts.map +1 -1
  128. package/dist/ts/ts/Contract/Datamap.js +45 -32
  129. package/dist/ts/ts/Contract/Git.d.ts +6 -5
  130. package/dist/ts/ts/Contract/Git.d.ts.map +1 -1
  131. package/dist/ts/ts/Contract/Git.js +4 -4
  132. package/dist/ts/ts/Contract/License.d.ts +4 -3
  133. package/dist/ts/ts/Contract/License.d.ts.map +1 -1
  134. package/dist/ts/ts/Contract/License.js +5 -5
  135. package/dist/ts/ts/Contract/ValidationPackagesConfig.d.ts +5 -4
  136. package/dist/ts/ts/Contract/ValidationPackagesConfig.d.ts.map +1 -1
  137. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +6 -7
  138. package/dist/ts/ts/ContractIO/ContractIO.d.ts +5 -4
  139. package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
  140. package/dist/ts/ts/ContractIO/ContractIO.js +49 -44
  141. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +13 -12
  142. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
  143. package/dist/ts/ts/ContractIO/FileSystemHelper.js +6 -6
  144. package/dist/ts/ts/Conversion/Assay.d.ts +5 -5
  145. package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -1
  146. package/dist/ts/ts/Conversion/Assay.js +38 -18
  147. package/dist/ts/ts/Conversion/Basic.d.ts +16 -13
  148. package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
  149. package/dist/ts/ts/Conversion/Basic.js +69 -38
  150. package/dist/ts/ts/Conversion/ColumnIndex.d.ts +3 -3
  151. package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -1
  152. package/dist/ts/ts/Conversion/ColumnIndex.js +8 -8
  153. package/dist/ts/ts/Conversion/Datamap.d.ts +4 -4
  154. package/dist/ts/ts/Conversion/Datamap.d.ts.map +1 -1
  155. package/dist/ts/ts/Conversion/Datamap.js +2 -2
  156. package/dist/ts/ts/Conversion/DateTime.d.ts +1 -1
  157. package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -1
  158. package/dist/ts/ts/Conversion/DateTime.js +7 -6
  159. package/dist/ts/ts/Conversion/Investigation.d.ts +5 -5
  160. package/dist/ts/ts/Conversion/Investigation.d.ts.map +1 -1
  161. package/dist/ts/ts/Conversion/Investigation.js +19 -12
  162. package/dist/ts/ts/Conversion/Person.d.ts +5 -5
  163. package/dist/ts/ts/Conversion/Person.d.ts.map +1 -1
  164. package/dist/ts/ts/Conversion/Person.js +57 -25
  165. package/dist/ts/ts/Conversion/Process.d.ts +14 -11
  166. package/dist/ts/ts/Conversion/Process.d.ts.map +1 -1
  167. package/dist/ts/ts/Conversion/Process.js +57 -46
  168. package/dist/ts/ts/Conversion/Run.d.ts +12 -17
  169. package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
  170. package/dist/ts/ts/Conversion/Run.js +452 -69
  171. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts +4 -4
  172. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -1
  173. package/dist/ts/ts/Conversion/ScholarlyArticle.js +26 -17
  174. package/dist/ts/ts/Conversion/Study.d.ts +5 -5
  175. package/dist/ts/ts/Conversion/Study.d.ts.map +1 -1
  176. package/dist/ts/ts/Conversion/Study.js +30 -15
  177. package/dist/ts/ts/Conversion/Table.d.ts +10 -11
  178. package/dist/ts/ts/Conversion/Table.d.ts.map +1 -1
  179. package/dist/ts/ts/Conversion/Table.js +17 -24
  180. package/dist/ts/ts/Conversion/Workflow.d.ts +17 -17
  181. package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
  182. package/dist/ts/ts/Conversion/Workflow.js +86 -47
  183. package/dist/ts/ts/Conversion.d.ts +24 -21
  184. package/dist/ts/ts/Conversion.d.ts.map +1 -1
  185. package/dist/ts/ts/Conversion.js +20 -13
  186. package/dist/ts/ts/Core/ArcTypes.d.ts +331 -76
  187. package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
  188. package/dist/ts/ts/Core/ArcTypes.js +585 -299
  189. package/dist/ts/ts/Core/Comment.d.ts +5 -5
  190. package/dist/ts/ts/Core/Comment.d.ts.map +1 -1
  191. package/dist/ts/ts/Core/Comment.js +17 -10
  192. package/dist/ts/ts/Core/CommentList.d.ts +3 -3
  193. package/dist/ts/ts/Core/CommentList.d.ts.map +1 -1
  194. package/dist/ts/ts/Core/CommentList.js +8 -8
  195. package/dist/ts/ts/Core/Conversion.d.ts +25 -25
  196. package/dist/ts/ts/Core/Conversion.d.ts.map +1 -1
  197. package/dist/ts/ts/Core/Conversion.js +102 -102
  198. package/dist/ts/ts/Core/Data.d.ts +6 -6
  199. package/dist/ts/ts/Core/Data.d.ts.map +1 -1
  200. package/dist/ts/ts/Core/Data.js +11 -10
  201. package/dist/ts/ts/Core/DataContext.d.ts +10 -10
  202. package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
  203. package/dist/ts/ts/Core/DataContext.js +3 -3
  204. package/dist/ts/ts/Core/DataFile.d.ts +9 -6
  205. package/dist/ts/ts/Core/DataFile.d.ts.map +1 -1
  206. package/dist/ts/ts/Core/DataFile.js +20 -9
  207. package/dist/ts/ts/Core/Datamap.d.ts +17 -16
  208. package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
  209. package/dist/ts/ts/Core/Datamap.js +16 -14
  210. package/dist/ts/ts/Core/Helper/Collections.d.ts +4 -4
  211. package/dist/ts/ts/Core/Helper/Collections.d.ts.map +1 -1
  212. package/dist/ts/ts/Core/Helper/Collections.js +30 -37
  213. package/dist/ts/ts/Core/Helper/HashCodes.d.ts +15 -4
  214. package/dist/ts/ts/Core/Helper/HashCodes.d.ts.map +1 -1
  215. package/dist/ts/ts/Core/Helper/HashCodes.js +33 -14
  216. package/dist/ts/ts/Core/Helper/Identifier.d.ts +1 -1
  217. package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
  218. package/dist/ts/ts/Core/Helper/Identifier.js +10 -8
  219. package/dist/ts/ts/Core/Helper/ORCID.d.ts +1 -1
  220. package/dist/ts/ts/Core/Helper/ORCID.d.ts.map +1 -1
  221. package/dist/ts/ts/Core/Helper/ORCID.js +4 -3
  222. package/dist/ts/ts/Core/Helper/Regex.d.ts +7 -7
  223. package/dist/ts/ts/Core/Helper/Regex.d.ts.map +1 -1
  224. package/dist/ts/ts/Core/Helper/Regex.js +20 -12
  225. package/dist/ts/ts/Core/Helper/SemVer.d.ts +5 -5
  226. package/dist/ts/ts/Core/Helper/SemVer.d.ts.map +1 -1
  227. package/dist/ts/ts/Core/Helper/SemVer.js +7 -7
  228. package/dist/ts/ts/Core/Helper/Url.d.ts +1 -1
  229. package/dist/ts/ts/Core/Helper/Url.d.ts.map +1 -1
  230. package/dist/ts/ts/Core/Helper/Url.js +8 -7
  231. package/dist/ts/ts/Core/IdentifierSetters.d.ts +2 -2
  232. package/dist/ts/ts/Core/IdentifierSetters.d.ts.map +1 -1
  233. package/dist/ts/ts/Core/OntologyAnnotation.d.ts +23 -5
  234. package/dist/ts/ts/Core/OntologyAnnotation.d.ts.map +1 -1
  235. package/dist/ts/ts/Core/OntologyAnnotation.js +116 -45
  236. package/dist/ts/ts/Core/OntologySourceReference.d.ts +4 -4
  237. package/dist/ts/ts/Core/OntologySourceReference.d.ts.map +1 -1
  238. package/dist/ts/ts/Core/OntologySourceReference.js +4 -4
  239. package/dist/ts/ts/Core/Person.d.ts +19 -9
  240. package/dist/ts/ts/Core/Person.d.ts.map +1 -1
  241. package/dist/ts/ts/Core/Person.js +27 -11
  242. package/dist/ts/ts/Core/Process/ColumnIndex.d.ts +11 -11
  243. package/dist/ts/ts/Core/Process/ColumnIndex.d.ts.map +1 -1
  244. package/dist/ts/ts/Core/Process/ColumnIndex.js +68 -29
  245. package/dist/ts/ts/Core/Process/Component.d.ts +16 -16
  246. package/dist/ts/ts/Core/Process/Component.d.ts.map +1 -1
  247. package/dist/ts/ts/Core/Process/Component.js +38 -25
  248. package/dist/ts/ts/Core/Process/Factor.d.ts +53 -8
  249. package/dist/ts/ts/Core/Process/Factor.d.ts.map +1 -1
  250. package/dist/ts/ts/Core/Process/Factor.js +62 -11
  251. package/dist/ts/ts/Core/Process/FactorValue.d.ts +15 -15
  252. package/dist/ts/ts/Core/Process/FactorValue.d.ts.map +1 -1
  253. package/dist/ts/ts/Core/Process/FactorValue.js +39 -47
  254. package/dist/ts/ts/Core/Process/Material.d.ts +9 -9
  255. package/dist/ts/ts/Core/Process/Material.d.ts.map +1 -1
  256. package/dist/ts/ts/Core/Process/Material.js +5 -5
  257. package/dist/ts/ts/Core/Process/MaterialAttribute.d.ts +7 -7
  258. package/dist/ts/ts/Core/Process/MaterialAttribute.d.ts.map +1 -1
  259. package/dist/ts/ts/Core/Process/MaterialAttribute.js +17 -8
  260. package/dist/ts/ts/Core/Process/MaterialAttributeValue.d.ts +15 -15
  261. package/dist/ts/ts/Core/Process/MaterialAttributeValue.d.ts.map +1 -1
  262. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +45 -48
  263. package/dist/ts/ts/Core/Process/MaterialType.d.ts +7 -5
  264. package/dist/ts/ts/Core/Process/MaterialType.d.ts.map +1 -1
  265. package/dist/ts/ts/Core/Process/MaterialType.js +14 -7
  266. package/dist/ts/ts/Core/Process/Process.d.ts +22 -22
  267. package/dist/ts/ts/Core/Process/Process.d.ts.map +1 -1
  268. package/dist/ts/ts/Core/Process/Process.js +42 -26
  269. package/dist/ts/ts/Core/Process/ProcessInput.d.ts +14 -14
  270. package/dist/ts/ts/Core/Process/ProcessInput.d.ts.map +1 -1
  271. package/dist/ts/ts/Core/Process/ProcessInput.js +15 -10
  272. package/dist/ts/ts/Core/Process/ProcessOutput.d.ts +14 -14
  273. package/dist/ts/ts/Core/Process/ProcessOutput.d.ts.map +1 -1
  274. package/dist/ts/ts/Core/Process/ProcessOutput.js +15 -10
  275. package/dist/ts/ts/Core/Process/ProcessParameterValue.d.ts +30 -15
  276. package/dist/ts/ts/Core/Process/ProcessParameterValue.d.ts.map +1 -1
  277. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +56 -46
  278. package/dist/ts/ts/Core/Process/ProcessSequence.d.ts +16 -16
  279. package/dist/ts/ts/Core/Process/ProcessSequence.d.ts.map +1 -1
  280. package/dist/ts/ts/Core/Process/ProcessSequence.js +33 -26
  281. package/dist/ts/ts/Core/Process/Protocol.d.ts +9 -9
  282. package/dist/ts/ts/Core/Process/Protocol.d.ts.map +1 -1
  283. package/dist/ts/ts/Core/Process/Protocol.js +21 -13
  284. package/dist/ts/ts/Core/Process/ProtocolParameter.d.ts +28 -7
  285. package/dist/ts/ts/Core/Process/ProtocolParameter.d.ts.map +1 -1
  286. package/dist/ts/ts/Core/Process/ProtocolParameter.js +33 -8
  287. package/dist/ts/ts/Core/Process/Sample.d.ts +10 -10
  288. package/dist/ts/ts/Core/Process/Sample.d.ts.map +1 -1
  289. package/dist/ts/ts/Core/Process/Sample.js +5 -5
  290. package/dist/ts/ts/Core/Process/Source.d.ts +8 -8
  291. package/dist/ts/ts/Core/Process/Source.d.ts.map +1 -1
  292. package/dist/ts/ts/Core/Process/Source.js +5 -5
  293. package/dist/ts/ts/Core/Publication.d.ts +5 -5
  294. package/dist/ts/ts/Core/Publication.d.ts.map +1 -1
  295. package/dist/ts/ts/Core/Publication.js +18 -11
  296. package/dist/ts/ts/Core/ScalarValue.d.ts +41 -0
  297. package/dist/ts/ts/Core/ScalarValue.d.ts.map +1 -0
  298. package/dist/ts/ts/Core/{Value.js → ScalarValue.js} +56 -29
  299. package/dist/ts/ts/Core/Table/ArcTable.d.ts +134 -15
  300. package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
  301. package/dist/ts/ts/Core/Table/ArcTable.js +204 -68
  302. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts +15 -10
  303. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
  304. package/dist/ts/ts/Core/Table/ArcTableAux.js +75 -71
  305. package/dist/ts/ts/Core/Table/ArcTables.d.ts +12 -9
  306. package/dist/ts/ts/Core/Table/ArcTables.d.ts.map +1 -1
  307. package/dist/ts/ts/Core/Table/ArcTables.js +42 -38
  308. package/dist/ts/ts/Core/Table/CompositeCell.d.ts +46 -7
  309. package/dist/ts/ts/Core/Table/CompositeCell.d.ts.map +1 -1
  310. package/dist/ts/ts/Core/Table/CompositeCell.js +52 -12
  311. package/dist/ts/ts/Core/Table/CompositeColumn.d.ts +20 -7
  312. package/dist/ts/ts/Core/Table/CompositeColumn.d.ts.map +1 -1
  313. package/dist/ts/ts/Core/Table/CompositeColumn.js +17 -4
  314. package/dist/ts/ts/Core/Table/CompositeHeader.d.ts +116 -22
  315. package/dist/ts/ts/Core/Table/CompositeHeader.d.ts.map +1 -1
  316. package/dist/ts/ts/Core/Table/CompositeHeader.js +219 -65
  317. package/dist/ts/ts/Core/Template.d.ts +15 -9
  318. package/dist/ts/ts/Core/Template.d.ts.map +1 -1
  319. package/dist/ts/ts/Core/Template.js +19 -11
  320. package/dist/ts/ts/Core/Templates.d.ts +24 -5
  321. package/dist/ts/ts/Core/Templates.d.ts.map +1 -1
  322. package/dist/ts/ts/Core/Templates.js +26 -8
  323. package/dist/ts/ts/Core/URI.d.ts.map +1 -1
  324. package/dist/ts/ts/CrossAsync.d.ts +6 -5
  325. package/dist/ts/ts/CrossAsync.d.ts.map +1 -1
  326. package/dist/ts/ts/CrossAsync.js +6 -6
  327. package/dist/ts/ts/FileSystem/Commit.d.ts +3 -3
  328. package/dist/ts/ts/FileSystem/Commit.d.ts.map +1 -1
  329. package/dist/ts/ts/FileSystem/Commit.js +2 -2
  330. package/dist/ts/ts/FileSystem/FileSystem.d.ts +9 -9
  331. package/dist/ts/ts/FileSystem/FileSystem.d.ts.map +1 -1
  332. package/dist/ts/ts/FileSystem/FileSystem.js +4 -4
  333. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +35 -16
  334. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
  335. package/dist/ts/ts/FileSystem/FileSystemTree.js +36 -18
  336. package/dist/ts/ts/FileSystem/Path.d.ts +9 -8
  337. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  338. package/dist/ts/ts/FileSystem/Path.js +13 -13
  339. package/dist/ts/ts/Json/Assay.d.ts +9 -9
  340. package/dist/ts/ts/Json/Assay.d.ts.map +1 -1
  341. package/dist/ts/ts/Json/Assay.js +86 -50
  342. package/dist/ts/ts/Json/Comment.d.ts +4 -4
  343. package/dist/ts/ts/Json/Comment.d.ts.map +1 -1
  344. package/dist/ts/ts/Json/Comment.js +38 -17
  345. package/dist/ts/ts/Json/Data.d.ts +7 -7
  346. package/dist/ts/ts/Json/Data.d.ts.map +1 -1
  347. package/dist/ts/ts/Json/Data.js +48 -20
  348. package/dist/ts/ts/Json/DataFile.d.ts +2 -2
  349. package/dist/ts/ts/Json/DataFile.d.ts.map +1 -1
  350. package/dist/ts/ts/Json/DataFile.js +10 -9
  351. package/dist/ts/ts/Json/Datamap/DataContext.d.ts +2 -2
  352. package/dist/ts/ts/Json/Datamap/DataContext.d.ts.map +1 -1
  353. package/dist/ts/ts/Json/Datamap/DataContext.js +14 -7
  354. package/dist/ts/ts/Json/Datamap/Datamap.d.ts +7 -7
  355. package/dist/ts/ts/Json/Datamap/Datamap.d.ts.map +1 -1
  356. package/dist/ts/ts/Json/Datamap/Datamap.js +4 -4
  357. package/dist/ts/ts/Json/Decode.d.ts +6 -6
  358. package/dist/ts/ts/Json/Decode.d.ts.map +1 -1
  359. package/dist/ts/ts/Json/Decode.js +32 -32
  360. package/dist/ts/ts/Json/Encode.d.ts +6 -5
  361. package/dist/ts/ts/Json/Encode.d.ts.map +1 -1
  362. package/dist/ts/ts/Json/Encode.js +28 -26
  363. package/dist/ts/ts/Json/IDTable.d.ts +2 -2
  364. package/dist/ts/ts/Json/IDTable.d.ts.map +1 -1
  365. package/dist/ts/ts/Json/IDTable.js +2 -2
  366. package/dist/ts/ts/Json/Investigation.d.ts +9 -9
  367. package/dist/ts/ts/Json/Investigation.d.ts.map +1 -1
  368. package/dist/ts/ts/Json/Investigation.js +68 -33
  369. package/dist/ts/ts/Json/OntologyAnnotation.d.ts +6 -6
  370. package/dist/ts/ts/Json/OntologyAnnotation.d.ts.map +1 -1
  371. package/dist/ts/ts/Json/OntologyAnnotation.js +60 -25
  372. package/dist/ts/ts/Json/OntologySourceReference.d.ts +4 -4
  373. package/dist/ts/ts/Json/OntologySourceReference.d.ts.map +1 -1
  374. package/dist/ts/ts/Json/OntologySourceReference.js +36 -15
  375. package/dist/ts/ts/Json/Person.d.ts +5 -5
  376. package/dist/ts/ts/Json/Person.d.ts.map +1 -1
  377. package/dist/ts/ts/Json/Person.js +57 -29
  378. package/dist/ts/ts/Json/Process/AssayMaterials.d.ts +5 -5
  379. package/dist/ts/ts/Json/Process/AssayMaterials.d.ts.map +1 -1
  380. package/dist/ts/ts/Json/Process/AssayMaterials.js +12 -5
  381. package/dist/ts/ts/Json/Process/Component.d.ts +5 -5
  382. package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
  383. package/dist/ts/ts/Json/Process/Component.js +25 -11
  384. package/dist/ts/ts/Json/Process/Factor.d.ts +4 -4
  385. package/dist/ts/ts/Json/Process/Factor.d.ts.map +1 -1
  386. package/dist/ts/ts/Json/Process/Factor.js +17 -9
  387. package/dist/ts/ts/Json/Process/FactorValue.d.ts +5 -5
  388. package/dist/ts/ts/Json/Process/FactorValue.d.ts.map +1 -1
  389. package/dist/ts/ts/Json/Process/FactorValue.js +14 -7
  390. package/dist/ts/ts/Json/Process/Material.d.ts +5 -5
  391. package/dist/ts/ts/Json/Process/Material.d.ts.map +1 -1
  392. package/dist/ts/ts/Json/Process/Material.js +31 -31
  393. package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts +4 -4
  394. package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts.map +1 -1
  395. package/dist/ts/ts/Json/Process/MaterialAttribute.js +16 -8
  396. package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts +5 -5
  397. package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts.map +1 -1
  398. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +14 -7
  399. package/dist/ts/ts/Json/Process/MaterialType.d.ts +2 -2
  400. package/dist/ts/ts/Json/Process/MaterialType.d.ts.map +1 -1
  401. package/dist/ts/ts/Json/Process/MaterialType.js +9 -8
  402. package/dist/ts/ts/Json/Process/Process.d.ts +4 -4
  403. package/dist/ts/ts/Json/Process/Process.d.ts.map +1 -1
  404. package/dist/ts/ts/Json/Process/Process.js +28 -14
  405. package/dist/ts/ts/Json/Process/ProcessInput.d.ts +4 -4
  406. package/dist/ts/ts/Json/Process/ProcessInput.d.ts.map +1 -1
  407. package/dist/ts/ts/Json/Process/ProcessInput.js +2 -2
  408. package/dist/ts/ts/Json/Process/ProcessOutput.d.ts +4 -4
  409. package/dist/ts/ts/Json/Process/ProcessOutput.d.ts.map +1 -1
  410. package/dist/ts/ts/Json/Process/ProcessOutput.js +2 -2
  411. package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts +5 -5
  412. package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts.map +1 -1
  413. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +16 -8
  414. package/dist/ts/ts/Json/Process/Protocol.d.ts +4 -4
  415. package/dist/ts/ts/Json/Process/Protocol.d.ts.map +1 -1
  416. package/dist/ts/ts/Json/Process/Protocol.js +30 -16
  417. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +4 -4
  418. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
  419. package/dist/ts/ts/Json/Process/ProtocolParameter.js +16 -8
  420. package/dist/ts/ts/Json/Process/Sample.d.ts +7 -7
  421. package/dist/ts/ts/Json/Process/Sample.d.ts.map +1 -1
  422. package/dist/ts/ts/Json/Process/Sample.js +37 -60
  423. package/dist/ts/ts/Json/Process/Source.d.ts +5 -5
  424. package/dist/ts/ts/Json/Process/Source.d.ts.map +1 -1
  425. package/dist/ts/ts/Json/Process/Source.js +34 -57
  426. package/dist/ts/ts/Json/Process/StudyMaterials.d.ts +5 -5
  427. package/dist/ts/ts/Json/Process/StudyMaterials.d.ts.map +1 -1
  428. package/dist/ts/ts/Json/Process/StudyMaterials.js +12 -5
  429. package/dist/ts/ts/Json/Process/Value.d.ts +6 -6
  430. package/dist/ts/ts/Json/Process/Value.d.ts.map +1 -1
  431. package/dist/ts/ts/Json/Process/Value.js +4 -4
  432. package/dist/ts/ts/Json/PropertyValue.d.ts +6 -6
  433. package/dist/ts/ts/Json/PropertyValue.d.ts.map +1 -1
  434. package/dist/ts/ts/Json/PropertyValue.js +31 -22
  435. package/dist/ts/ts/Json/Publication.d.ts +5 -5
  436. package/dist/ts/ts/Json/Publication.d.ts.map +1 -1
  437. package/dist/ts/ts/Json/Publication.js +36 -15
  438. package/dist/ts/ts/Json/ROCrate/LDContext.d.ts +2 -2
  439. package/dist/ts/ts/Json/ROCrate/LDContext.d.ts.map +1 -1
  440. package/dist/ts/ts/Json/ROCrate/LDContext.js +17 -16
  441. package/dist/ts/ts/Json/ROCrate/LDGraph.d.ts +2 -2
  442. package/dist/ts/ts/Json/ROCrate/LDGraph.d.ts.map +1 -1
  443. package/dist/ts/ts/Json/ROCrate/LDGraph.js +21 -14
  444. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +2 -2
  445. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts.map +1 -1
  446. package/dist/ts/ts/Json/ROCrate/LDNode.js +94 -29
  447. package/dist/ts/ts/Json/ROCrate/LDRef.d.ts +2 -2
  448. package/dist/ts/ts/Json/ROCrate/LDRef.d.ts.map +1 -1
  449. package/dist/ts/ts/Json/ROCrate/LDRef.js +4 -4
  450. package/dist/ts/ts/Json/ROCrate/LDValue.d.ts +2 -2
  451. package/dist/ts/ts/Json/ROCrate/LDValue.d.ts.map +1 -1
  452. package/dist/ts/ts/Json/ROCrate/LDValue.js +8 -7
  453. package/dist/ts/ts/Json/Run.d.ts +7 -7
  454. package/dist/ts/ts/Json/Run.d.ts.map +1 -1
  455. package/dist/ts/ts/Json/Run.js +28 -14
  456. package/dist/ts/ts/Json/StringTable.d.ts +7 -7
  457. package/dist/ts/ts/Json/StringTable.d.ts.map +1 -1
  458. package/dist/ts/ts/Json/StringTable.js +10 -10
  459. package/dist/ts/ts/Json/Study.d.ts +9 -9
  460. package/dist/ts/ts/Json/Study.d.ts.map +1 -1
  461. package/dist/ts/ts/Json/Study.js +79 -45
  462. package/dist/ts/ts/Json/Table/ArcTable.d.ts +10 -10
  463. package/dist/ts/ts/Json/Table/ArcTable.d.ts.map +1 -1
  464. package/dist/ts/ts/Json/Table/ArcTable.js +28 -28
  465. package/dist/ts/ts/Json/Table/CellTable.d.ts +9 -9
  466. package/dist/ts/ts/Json/Table/CellTable.d.ts.map +1 -1
  467. package/dist/ts/ts/Json/Table/CellTable.js +8 -8
  468. package/dist/ts/ts/Json/Table/CompositeCell.d.ts +6 -6
  469. package/dist/ts/ts/Json/Table/CompositeCell.d.ts.map +1 -1
  470. package/dist/ts/ts/Json/Table/CompositeCell.js +7 -7
  471. package/dist/ts/ts/Json/Table/CompositeHeader.d.ts +2 -2
  472. package/dist/ts/ts/Json/Table/CompositeHeader.d.ts.map +1 -1
  473. package/dist/ts/ts/Json/Table/CompositeHeader.js +7 -7
  474. package/dist/ts/ts/Json/Table/IOType.d.ts +2 -2
  475. package/dist/ts/ts/Json/Table/IOType.d.ts.map +1 -1
  476. package/dist/ts/ts/Json/Table/IOType.js +2 -2
  477. package/dist/ts/ts/Json/Table/OATable.d.ts +8 -8
  478. package/dist/ts/ts/Json/Table/OATable.d.ts.map +1 -1
  479. package/dist/ts/ts/Json/Table/OATable.js +8 -8
  480. package/dist/ts/ts/Json/Table/Templates.d.ts +9 -9
  481. package/dist/ts/ts/Json/Table/Templates.d.ts.map +1 -1
  482. package/dist/ts/ts/Json/Table/Templates.js +11 -11
  483. package/dist/ts/ts/Json/Workflow.d.ts +7 -7
  484. package/dist/ts/ts/Json/Workflow.d.ts.map +1 -1
  485. package/dist/ts/ts/Json/Workflow.js +28 -14
  486. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.d.ts +4 -4
  487. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.d.ts.map +1 -1
  488. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +3 -3
  489. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.d.ts +4 -4
  490. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.d.ts.map +1 -1
  491. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +3 -3
  492. package/dist/ts/ts/Json/context/rocrate/isa_data_context.d.ts +4 -4
  493. package/dist/ts/ts/Json/context/rocrate/isa_data_context.d.ts.map +1 -1
  494. package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +3 -3
  495. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.d.ts +4 -4
  496. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.d.ts.map +1 -1
  497. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +3 -3
  498. package/dist/ts/ts/Json/context/rocrate/isa_material_context.d.ts +4 -4
  499. package/dist/ts/ts/Json/context/rocrate/isa_material_context.d.ts.map +1 -1
  500. package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +3 -3
  501. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.d.ts +4 -4
  502. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.d.ts.map +1 -1
  503. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +3 -3
  504. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.d.ts +4 -4
  505. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.d.ts.map +1 -1
  506. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +3 -3
  507. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.d.ts +4 -4
  508. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.d.ts.map +1 -1
  509. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +3 -3
  510. package/dist/ts/ts/Json/context/rocrate/isa_person_context.d.ts +4 -4
  511. package/dist/ts/ts/Json/context/rocrate/isa_person_context.d.ts.map +1 -1
  512. package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +3 -3
  513. package/dist/ts/ts/Json/context/rocrate/isa_process_context.d.ts +4 -4
  514. package/dist/ts/ts/Json/context/rocrate/isa_process_context.d.ts.map +1 -1
  515. package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +3 -3
  516. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.d.ts +4 -4
  517. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.d.ts.map +1 -1
  518. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +3 -3
  519. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.d.ts +4 -4
  520. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.d.ts.map +1 -1
  521. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +3 -3
  522. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.d.ts +4 -4
  523. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.d.ts.map +1 -1
  524. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +3 -3
  525. package/dist/ts/ts/Json/context/rocrate/isa_source_context.d.ts +4 -4
  526. package/dist/ts/ts/Json/context/rocrate/isa_source_context.d.ts.map +1 -1
  527. package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +3 -3
  528. package/dist/ts/ts/Json/context/rocrate/isa_study_context.d.ts +4 -4
  529. package/dist/ts/ts/Json/context/rocrate/isa_study_context.d.ts.map +1 -1
  530. package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +3 -3
  531. package/dist/ts/ts/Json/context/rocrate/property_value_context.d.ts +1 -1
  532. package/dist/ts/ts/Json/context/rocrate/property_value_context.d.ts.map +1 -1
  533. package/dist/ts/ts/Json/context/rocrate/property_value_context.js +1 -1
  534. package/dist/ts/ts/Json/context/rocrate/rocrate_context.d.ts +4 -4
  535. package/dist/ts/ts/Json/context/rocrate/rocrate_context.d.ts.map +1 -1
  536. package/dist/ts/ts/Json/context/rocrate/rocrate_context.js +3 -3
  537. package/dist/ts/ts/Json.d.ts +10 -10
  538. package/dist/ts/ts/Json.d.ts.map +1 -1
  539. package/dist/ts/ts/Json.js +5 -5
  540. package/dist/ts/ts/JsonIO/Assay.d.ts +6 -7
  541. package/dist/ts/ts/JsonIO/Assay.d.ts.map +1 -1
  542. package/dist/ts/ts/JsonIO/Assay.js +13 -12
  543. package/dist/ts/ts/JsonIO/Datamap.d.ts +3 -4
  544. package/dist/ts/ts/JsonIO/Datamap.d.ts.map +1 -1
  545. package/dist/ts/ts/JsonIO/Datamap.js +7 -6
  546. package/dist/ts/ts/JsonIO/Investigation.d.ts +5 -6
  547. package/dist/ts/ts/JsonIO/Investigation.d.ts.map +1 -1
  548. package/dist/ts/ts/JsonIO/Investigation.js +11 -10
  549. package/dist/ts/ts/JsonIO/LDObject.d.ts +5 -6
  550. package/dist/ts/ts/JsonIO/LDObject.d.ts.map +1 -1
  551. package/dist/ts/ts/JsonIO/LDObject.js +14 -13
  552. package/dist/ts/ts/JsonIO/OntologyAnnotation.d.ts +5 -6
  553. package/dist/ts/ts/JsonIO/OntologyAnnotation.d.ts.map +1 -1
  554. package/dist/ts/ts/JsonIO/OntologyAnnotation.js +11 -10
  555. package/dist/ts/ts/JsonIO/Person.d.ts +5 -6
  556. package/dist/ts/ts/JsonIO/Person.d.ts.map +1 -1
  557. package/dist/ts/ts/JsonIO/Person.js +11 -10
  558. package/dist/ts/ts/JsonIO/Run.d.ts +4 -5
  559. package/dist/ts/ts/JsonIO/Run.d.ts.map +1 -1
  560. package/dist/ts/ts/JsonIO/Run.js +9 -8
  561. package/dist/ts/ts/JsonIO/Study.d.ts +7 -8
  562. package/dist/ts/ts/JsonIO/Study.d.ts.map +1 -1
  563. package/dist/ts/ts/JsonIO/Study.js +13 -12
  564. package/dist/ts/ts/JsonIO/Table/Compression.d.ts +6 -6
  565. package/dist/ts/ts/JsonIO/Table/Compression.d.ts.map +1 -1
  566. package/dist/ts/ts/JsonIO/Table/Compression.js +4 -4
  567. package/dist/ts/ts/JsonIO/Table/Templates.d.ts +10 -10
  568. package/dist/ts/ts/JsonIO/Table/Templates.d.ts.map +1 -1
  569. package/dist/ts/ts/JsonIO/Table/Templates.js +13 -12
  570. package/dist/ts/ts/JsonIO/Workflow.d.ts +4 -5
  571. package/dist/ts/ts/JsonIO/Workflow.d.ts.map +1 -1
  572. package/dist/ts/ts/JsonIO/Workflow.js +9 -8
  573. package/dist/ts/ts/License.d.ts +12 -6
  574. package/dist/ts/ts/License.d.ts.map +1 -1
  575. package/dist/ts/ts/License.js +49 -14
  576. package/dist/ts/ts/ROCrate/Helper.d.ts.map +1 -1
  577. package/dist/ts/ts/ROCrate/Helper.js +1 -1
  578. package/dist/ts/ts/ROCrate/LDContext.d.ts +15 -4
  579. package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
  580. package/dist/ts/ts/ROCrate/LDContext.js +27 -16
  581. package/dist/ts/ts/ROCrate/LDObject.d.ts +19 -10
  582. package/dist/ts/ts/ROCrate/LDObject.d.ts.map +1 -1
  583. package/dist/ts/ts/ROCrate/LDObject.js +76 -38
  584. package/dist/ts/ts/ROCrate/LDTypes/Comment.d.ts +4 -4
  585. package/dist/ts/ts/ROCrate/LDTypes/Comment.d.ts.map +1 -1
  586. package/dist/ts/ts/ROCrate/LDTypes/Comment.js +11 -9
  587. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts +5 -5
  588. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts.map +1 -1
  589. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +18 -16
  590. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.d.ts +4 -4
  591. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.d.ts.map +1 -1
  592. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +22 -16
  593. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.d.ts +4 -4
  594. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.d.ts.map +1 -1
  595. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +15 -13
  596. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts +4 -4
  597. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts.map +1 -1
  598. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.js +25 -23
  599. package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts +4 -4
  600. package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -1
  601. package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +48 -45
  602. package/dist/ts/ts/ROCrate/LDTypes/DefinedTerm.d.ts +4 -4
  603. package/dist/ts/ts/ROCrate/LDTypes/DefinedTerm.d.ts.map +1 -1
  604. package/dist/ts/ts/ROCrate/LDTypes/DefinedTerm.js +11 -9
  605. package/dist/ts/ts/ROCrate/LDTypes/File.d.ts +4 -4
  606. package/dist/ts/ts/ROCrate/LDTypes/File.d.ts.map +1 -1
  607. package/dist/ts/ts/ROCrate/LDTypes/File.js +15 -13
  608. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.d.ts +4 -4
  609. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.d.ts.map +1 -1
  610. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +18 -16
  611. package/dist/ts/ts/ROCrate/LDTypes/LabProcess.d.ts +4 -4
  612. package/dist/ts/ts/ROCrate/LDTypes/LabProcess.d.ts.map +1 -1
  613. package/dist/ts/ts/ROCrate/LDTypes/LabProcess.js +16 -14
  614. package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.d.ts +4 -4
  615. package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.d.ts.map +1 -1
  616. package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.js +17 -16
  617. package/dist/ts/ts/ROCrate/LDTypes/Organization.d.ts +4 -4
  618. package/dist/ts/ts/ROCrate/LDTypes/Organization.d.ts.map +1 -1
  619. package/dist/ts/ts/ROCrate/LDTypes/Organization.js +8 -6
  620. package/dist/ts/ts/ROCrate/LDTypes/Person.d.ts +4 -4
  621. package/dist/ts/ts/ROCrate/LDTypes/Person.d.ts.map +1 -1
  622. package/dist/ts/ts/ROCrate/LDTypes/Person.js +28 -25
  623. package/dist/ts/ts/ROCrate/LDTypes/PostalAddress.d.ts +4 -4
  624. package/dist/ts/ts/ROCrate/LDTypes/PostalAddress.d.ts.map +1 -1
  625. package/dist/ts/ts/ROCrate/LDTypes/PostalAddress.js +17 -16
  626. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts +10 -6
  627. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -1
  628. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.js +104 -61
  629. package/dist/ts/ts/ROCrate/LDTypes/Sample.d.ts +4 -4
  630. package/dist/ts/ts/ROCrate/LDTypes/Sample.d.ts.map +1 -1
  631. package/dist/ts/ts/ROCrate/LDTypes/Sample.js +14 -13
  632. package/dist/ts/ts/ROCrate/LDTypes/ScholarlyArticle.d.ts +4 -4
  633. package/dist/ts/ts/ROCrate/LDTypes/ScholarlyArticle.d.ts.map +1 -1
  634. package/dist/ts/ts/ROCrate/LDTypes/ScholarlyArticle.js +12 -10
  635. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.d.ts +5 -5
  636. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.d.ts.map +1 -1
  637. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +11 -10
  638. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.d.ts +3 -3
  639. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.d.ts.map +1 -1
  640. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +4 -3
  641. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.d.ts +3 -3
  642. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.d.ts.map +1 -1
  643. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +4 -3
  644. package/dist/ts/ts/ROCrate/ROCrateContext.d.ts +1 -1
  645. package/dist/ts/ts/ROCrate/ROCrateContext.d.ts.map +1 -1
  646. package/dist/ts/ts/ROCrate/ROCrateContext.js +2 -2
  647. package/dist/ts/ts/ROCrateIO.d.ts +13 -8
  648. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  649. package/dist/ts/ts/ROCrateIO.js +16 -13
  650. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts +13 -12
  651. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
  652. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +15 -15
  653. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.d.ts +9 -8
  654. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.d.ts.map +1 -1
  655. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +23 -12
  656. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts +14 -14
  657. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
  658. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +17 -18
  659. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.d.ts +18 -17
  660. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.d.ts.map +1 -1
  661. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +37 -29
  662. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts +6 -6
  663. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
  664. package/dist/ts/ts/Spreadsheet/ArcAssay.js +16 -15
  665. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts +14 -14
  666. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
  667. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +21 -21
  668. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts +5 -5
  669. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
  670. package/dist/ts/ts/Spreadsheet/ArcRun.js +9 -9
  671. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts +7 -7
  672. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
  673. package/dist/ts/ts/Spreadsheet/ArcStudy.js +13 -12
  674. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts +5 -5
  675. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
  676. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +9 -9
  677. package/dist/ts/ts/Spreadsheet/CollectionAux.d.ts +8 -8
  678. package/dist/ts/ts/Spreadsheet/CollectionAux.d.ts.map +1 -1
  679. package/dist/ts/ts/Spreadsheet/CollectionAux.js +11 -11
  680. package/dist/ts/ts/Spreadsheet/Datamap.d.ts +2 -2
  681. package/dist/ts/ts/Spreadsheet/Datamap.d.ts.map +1 -1
  682. package/dist/ts/ts/Spreadsheet/Datamap.js +6 -5
  683. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.d.ts +4 -4
  684. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.d.ts.map +1 -1
  685. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +14 -10
  686. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.d.ts +7 -7
  687. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.d.ts.map +1 -1
  688. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +30 -21
  689. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts +7 -7
  690. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
  691. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +10 -10
  692. package/dist/ts/ts/Spreadsheet/Metadata/Assays.d.ts +7 -7
  693. package/dist/ts/ts/Spreadsheet/Metadata/Assays.d.ts.map +1 -1
  694. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +12 -9
  695. package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts +5 -5
  696. package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts.map +1 -1
  697. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +11 -7
  698. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts +7 -7
  699. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts.map +1 -1
  700. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +8 -8
  701. package/dist/ts/ts/Spreadsheet/Metadata/Conversions.d.ts +9 -8
  702. package/dist/ts/ts/Spreadsheet/Metadata/Conversions.d.ts.map +1 -1
  703. package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +6 -6
  704. package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.d.ts +7 -7
  705. package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.d.ts.map +1 -1
  706. package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +1 -1
  707. package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts +7 -7
  708. package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts.map +1 -1
  709. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -6
  710. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts +7 -7
  711. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts.map +1 -1
  712. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +7 -7
  713. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.d.ts +7 -7
  714. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.d.ts.map +1 -1
  715. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +7 -7
  716. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts +7 -7
  717. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts.map +1 -1
  718. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +9 -8
  719. package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts +7 -7
  720. package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts.map +1 -1
  721. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +11 -9
  722. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts +7 -7
  723. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts.map +1 -1
  724. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +13 -10
  725. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts +10 -10
  726. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
  727. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +55 -49
  728. package/dist/ts/ts/Spreadsheet/Metadata/Study.d.ts +14 -14
  729. package/dist/ts/ts/Spreadsheet/Metadata/Study.d.ts.map +1 -1
  730. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +10 -10
  731. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts +7 -7
  732. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
  733. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +8 -8
  734. package/dist/ts/ts/Template.Web.d.ts +10 -6
  735. package/dist/ts/ts/Template.Web.d.ts.map +1 -1
  736. package/dist/ts/ts/Template.Web.js +4 -4
  737. package/dist/ts/ts/ValidationPackages/ValidationPackage.d.ts +6 -3
  738. package/dist/ts/ts/ValidationPackages/ValidationPackage.d.ts.map +1 -1
  739. package/dist/ts/ts/ValidationPackages/ValidationPackage.js +10 -7
  740. package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.d.ts +7 -4
  741. package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.d.ts.map +1 -1
  742. package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +29 -24
  743. package/dist/ts/ts/WebRequest/WebRequest.Node.d.ts +1 -1
  744. package/dist/ts/ts/WebRequest/WebRequest.Node.d.ts.map +1 -1
  745. package/dist/ts/ts/WebRequest/WebRequest.Node.js +4 -4
  746. package/dist/ts/ts/WebRequest/WebRequest.d.ts +1 -1
  747. package/dist/ts/ts/WebRequest/WebRequest.d.ts.map +1 -1
  748. package/dist/ts/ts/WebRequest/WebRequest.js +3 -3
  749. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +6 -6
  750. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -1
  751. package/dist/ts/ts/WorkflowGraph/Adapters.js +13 -13
  752. package/dist/ts/ts/WorkflowGraph/BuildOptions.d.ts +7 -4
  753. package/dist/ts/ts/WorkflowGraph/BuildOptions.d.ts.map +1 -1
  754. package/dist/ts/ts/WorkflowGraph/BuildOptions.js +2 -2
  755. package/dist/ts/ts/WorkflowGraph/Builder.d.ts +25 -19
  756. package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -1
  757. package/dist/ts/ts/WorkflowGraph/Builder.js +82 -68
  758. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +52 -32
  759. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -1
  760. package/dist/ts/ts/WorkflowGraph/GraphTypes.js +90 -30
  761. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +5 -5
  762. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -1
  763. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +6 -5
  764. package/dist/ts/ts/Xlsx.d.ts +5 -5
  765. package/dist/ts/ts/Xlsx.d.ts.map +1 -1
  766. package/dist/ts/ts/Xlsx.js +8 -6
  767. package/dist/ts/ts/Yaml/Encode.d.ts +2 -2
  768. package/dist/ts/ts/Yaml/Encode.d.ts.map +1 -1
  769. package/dist/ts/ts/Yaml/Encode.js +2 -2
  770. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +4 -5
  771. package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
  772. package/dist/ts/ts/Yaml/ValidationPackage.js +12 -12
  773. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +4 -5
  774. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
  775. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +12 -12
  776. package/dist/ts/ts/Yaml.d.ts +3 -3
  777. package/dist/ts/ts/Yaml.d.ts.map +1 -1
  778. package/dist/ts/ts/Yaml.js +3 -8
  779. package/dist/ts/ts/fable_modules/{DynamicObj.7.1.0 → DynamicObj.8.0.0}/DynObj.fs.js +6 -6
  780. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/DynamicObj.fs.js +515 -0
  781. package/dist/ts/ts/fable_modules/{DynamicObj.7.1.0 → DynamicObj.8.0.0}/FableJS.fs.js +23 -8
  782. package/dist/ts/ts/fable_modules/{DynamicObj.7.1.0 → DynamicObj.8.0.0}/HashCodes.fs.js +11 -11
  783. package/dist/ts/ts/fable_modules/{DynamicObj.7.1.0 → DynamicObj.8.0.0}/PropertyHelper.fs.js +2 -2
  784. package/dist/ts/ts/fable_modules/{DynamicObj.7.1.0 → DynamicObj.8.0.0}/ReflectionUtils.fs.js +16 -6
  785. package/dist/ts/ts/fable_modules/{Fable.Fetch.2.6.0 → Fable.Fetch.2.7.0}/Fetch.fs.js +11 -11
  786. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +8 -7
  787. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +3 -3
  788. package/dist/ts/ts/fable_modules/{Fable.SimpleHttp.3.5.0 → Fable.SimpleHttp.3.6.0}/Http.fs.js +21 -21
  789. package/dist/ts/ts/fable_modules/{Fable.SimpleHttp.3.5.0 → Fable.SimpleHttp.3.6.0}/Types.fs.js +52 -19
  790. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/Cells/FsCell.fs.js +255 -126
  791. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/Cells/FsCellsCollection.fs.js +135 -18
  792. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/DSL/CellBuilder.fs.js +9 -9
  793. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/DSL/Expression.fs.js +1 -1
  794. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/DSL/RowBuilder.fs.js +5 -5
  795. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/DSL/Types.fs.js +16 -16
  796. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/FsAddress.fs.js +41 -17
  797. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/FsColumn.fs.js +70 -7
  798. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/FsRow.fs.js +76 -8
  799. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/FsWorkbook.fs.js +77 -11
  800. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/FsWorksheet.fs.js +237 -32
  801. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/HashCodes.fs.js +9 -9
  802. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/Json/Cell.fs.js +10 -10
  803. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/Json/Column.fs.js +6 -6
  804. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/Json/Row.fs.js +6 -6
  805. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/Json/Table.fs.js +3 -3
  806. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/Json/Value.fs.js +11 -11
  807. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/Json/Workbook.fs.js +3 -3
  808. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/Json/Worksheet.fs.js +8 -8
  809. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/Ranges/FsRange.fs.js +6 -5
  810. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/Ranges/FsRangeAddress.fs.js +11 -5
  811. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/Ranges/FsRangeBase.fs.js +18 -13
  812. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/Ranges/FsRangeColumn.fs.js +9 -3
  813. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/Ranges/FsRangeRow.fs.js +1 -1
  814. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/Tables/FsTable.fs.js +185 -26
  815. package/dist/ts/ts/fable_modules/{FsSpreadsheet.7.0.0-alpha.1 → FsSpreadsheet.7.0.1}/Tables/FsTableField.fs.js +48 -5
  816. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Cell.fs.js +65 -0
  817. package/dist/ts/ts/fable_modules/{FsSpreadsheet.Js.7.0.0-alpha.1 → FsSpreadsheet.Js.7.0.1}/FsExtensions.fs.js +1 -1
  818. package/dist/ts/ts/fable_modules/{FsSpreadsheet.Js.7.0.0-alpha.1 → FsSpreadsheet.Js.7.0.1}/Json.fs.js +9 -9
  819. package/dist/ts/ts/fable_modules/{FsSpreadsheet.Js.7.0.0-alpha.1 → FsSpreadsheet.Js.7.0.1}/Table.fs.js +15 -14
  820. package/dist/ts/ts/fable_modules/{FsSpreadsheet.Js.7.0.0-alpha.1 → FsSpreadsheet.Js.7.0.1}/Workbook.fs.js +4 -4
  821. package/dist/ts/ts/fable_modules/{FsSpreadsheet.Js.7.0.0-alpha.1 → FsSpreadsheet.Js.7.0.1}/Worksheet.fs.js +4 -4
  822. package/dist/ts/ts/fable_modules/{FsSpreadsheet.Js.7.0.0-alpha.1 → FsSpreadsheet.Js.7.0.1}/Xlsx.fs.js +2 -2
  823. package/dist/ts/ts/fable_modules/{Thoth.Json.Core.0.7.0 → Thoth.Json.Core.0.9.1}/Decode.fs.js +265 -159
  824. package/dist/ts/ts/fable_modules/{Thoth.Json.Core.0.7.0 → Thoth.Json.Core.0.9.1}/Encode.fs.js +94 -36
  825. package/dist/ts/ts/fable_modules/{Thoth.Json.Core.0.7.0 → Thoth.Json.Core.0.9.1}/Types.fs.js +16 -22
  826. package/dist/ts/ts/fable_modules/{Thoth.Json.JavaScript.0.4.1 → Thoth.Json.JavaScript.0.5.0}/Decode.fs.js +9 -7
  827. package/dist/ts/ts/fable_modules/{Thoth.Json.JavaScript.0.4.1 → Thoth.Json.JavaScript.0.5.0}/Encode.fs.js +2 -3
  828. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.7 → YAMLicious.1.0.0}/Decode.fs.js +100 -134
  829. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.7 → YAMLicious.1.0.0}/Encode.fs.js +10 -10
  830. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.7 → YAMLicious.1.0.0}/Escapes.fs.js +41 -34
  831. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.7 → YAMLicious.1.0.0}/Persil.fs.js +56 -204
  832. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Preprocessing.fs.js +319 -0
  833. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Reader.fs.js +1884 -0
  834. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Regex.fs.js +23 -0
  835. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.7 → YAMLicious.1.0.0}/RegexActivePatterns.fs.js +16 -16
  836. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Syntax.fs.js +840 -0
  837. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.7 → YAMLicious.1.0.0}/Writer.fs.js +106 -76
  838. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.7 → YAMLicious.1.0.0}/YAMLiciousTypes.fs.js +74 -32
  839. package/package.json +3 -2
  840. package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +0 -1244
  841. package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +0 -146
  842. package/dist/ts/node_modules/@fable-org/fable-library-js/AsyncBuilder.js +0 -186
  843. package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +0 -286
  844. package/dist/ts/node_modules/@fable-org/fable-library-js/Boolean.js +0 -24
  845. package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +0 -172
  846. package/dist/ts/node_modules/@fable-org/fable-library-js/Choice.js +0 -187
  847. package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +0 -185
  848. package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +0 -750
  849. package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +0 -271
  850. package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +0 -214
  851. package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +0 -49
  852. package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Collections.js +0 -30
  853. package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +0 -72
  854. package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +0 -10
  855. package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +0 -145
  856. package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +0 -137
  857. package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +0 -1276
  858. package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +0 -49
  859. package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +0 -1399
  860. package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +0 -130
  861. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +0 -330
  862. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +0 -236
  863. package/dist/ts/node_modules/@fable-org/fable-library-js/Native.js +0 -10
  864. package/dist/ts/node_modules/@fable-org/fable-library-js/Numeric.js +0 -73
  865. package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +0 -99
  866. package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +0 -48
  867. package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +0 -465
  868. package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +0 -133
  869. package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +0 -168
  870. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +0 -1381
  871. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +0 -114
  872. package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +0 -1792
  873. package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +0 -557
  874. package/dist/ts/node_modules/@fable-org/fable-library-js/System.Collections.Generic.js +0 -320
  875. package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +0 -165
  876. package/dist/ts/node_modules/@fable-org/fable-library-js/SystemException.js +0 -8
  877. package/dist/ts/node_modules/@fable-org/fable-library-js/TimeSpan.js +0 -180
  878. package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +0 -211
  879. package/dist/ts/node_modules/@fable-org/fable-library-js/Uri.js +0 -160
  880. package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +0 -771
  881. package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +0 -825
  882. package/dist/ts/ts/Core/Value.d.ts +0 -41
  883. package/dist/ts/ts/Core/Value.d.ts.map +0 -1
  884. package/dist/ts/ts/fable_modules/DynamicObj.7.1.0/DynamicObj.fs.js +0 -367
  885. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +0 -68
  886. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.7/FlowToBlock.fs.js +0 -956
  887. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.7/Preprocessing.fs.js +0 -181
  888. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.7/Reader.fs.js +0 -1493
  889. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.7/Regex.fs.js +0 -21
  890. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.7/StringBuffer.fs.js +0 -60
  891. /package/dist/ts/ts/fable_modules/{Fable.Exceljs.1.6.0 → Fable.Exceljs.2.0.0_565fc3e-alpha.1}/ExcelJs.fs.js +0 -0
  892. /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.7 → YAMLicious.1.0.0}/Interop/JsInterop.fs.js +0 -0
@@ -1,16 +1,30 @@
1
- import { FSharpChoice$2_Choice1Of2, FSharpChoice$2_Choice2Of2 } from '../../node_modules/@fable-org/fable-library-js/Choice.js';
2
- import { map, value, bind, filter } from '../../node_modules/@fable-org/fable-library-js/Option.js';
3
- import { toList, map as map$2, choose as choose$1, fold, delay, append as append$1, singleton as singleton$1, empty as empty$1 } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
4
- import { isEmpty, head, tail, map as map$1, singleton, ofArray, empty, append, ofSeq, choose, exists, cons, filter as filter$1, contains, tryFind, reverse, length } from '../../node_modules/@fable-org/fable-library-js/List.js';
5
- import { YAMLElement_Value, YAMLContent_create_Z1C3A29C9, YAMLElement_Object, YAMLElement_Mapping, ScalarStyle_Block, BlockScalarStyle_Literal, ChompingMode_Clip, ScalarStyle_DoubleQuoted, YAMLElement_Sequence, YAMLElement, Config } from '../fable_modules/YAMLicious.1.0.0-alpha.7/YAMLiciousTypes.fs.js';
6
- import { trimEnd, replace, toText, interpolate, trimStart, join, split } from '../../node_modules/@fable-org/fable-library-js/String.js';
7
- import { string, int, float } from '../fable_modules/YAMLicious.1.0.0-alpha.7/Encode.fs.js';
8
- import { LoadListingEnum_get_toCwlString } from './Requirements.js';
9
- import { int64ToString, stringHash, comparePrimitives } from '../../node_modules/@fable-org/fable-library-js/Util.js';
1
+ import { FSharpChoice$2_Choice1Of2, FSharpChoice$2_Choice2Of2 } from '../../node_modules/@fable-org/fable-library-ts/Choice.js';
2
+ import { FileInstance, DirectoryInstance, DirentInstance, InputRecordField, InputRecordSchema, InputEnumSchema, InputArraySchema, SchemaDefRequirementType, SoftwarePackage } from './CWLTypes.js';
3
+ import { value, defaultArg, toArray } from '../../node_modules/@fable-org/fable-library-ts/Option.js';
4
+ import { toList, choose, fold, map as map$1, delay, append as append$1, singleton as singleton$1, empty as empty$2 } from '../../node_modules/@fable-org/fable-library-ts/Seq.js';
5
+ import { isEmpty, head, tail, map, append, singleton, ofArray, empty as empty$1, ofSeq, length, choose as choose$1, filter, contains as contains$1, tryFind, reverse, cons } from '../../node_modules/@fable-org/fable-library-ts/List.js';
6
+ import { YAMLElement_Value, YAMLContent_create_Z1C3A29C9, YAMLElement_Object$, YAMLElement_Mapping, YAMLElement, YAMLElement_Sequence, ScalarStyle_Block, BlockScalarStyle, ChompingMode, ScalarStyle, Config } from '../fable_modules/YAMLicious.1.0.0/YAMLiciousTypes.fs.js';
7
+ import { equals, defaultOf, int64ToString, isIterable, comparePrimitives, curry2, stringHash } from '../../node_modules/@fable-org/fable-library-ts/Util.js';
8
+ import { string, int } from '../fable_modules/YAMLicious.1.0.0/Encode.fs.js';
9
+ import { DynamicObj } from '../fable_modules/DynamicObj.8.0.0/DynamicObj.fs.js';
10
+ import { dynamicPropertiesExcept } from './DynamicObjHelpers.js';
11
+ import { empty, ofSeq as ofSeq$1, contains, ofList, FSharpSet__Contains } from '../../node_modules/@fable-org/fable-library-ts/Set.js';
12
+ import { trimEnd, replace, interpolate, trimStart, join, split, concat } from '../../node_modules/@fable-org/fable-library-ts/String.js';
13
+ import { Operators_IsNull } from '../../node_modules/@fable-org/fable-library-ts/FSharp.Core.js';
14
+ import { LoadListingEnum_get_toCwlString, InlineJavascriptRequirementValue, InplaceUpdateRequirementValue, NetworkAccessRequirementValue, WorkReuseRequirementValue, ResourceRequirementInstance, EnvironmentDef, LoadListingRequirementValue, DockerRequirement } from './Requirements.js';
15
+ import { OutputBinding, CWLOutput } from './Outputs.js';
16
+ import { item } from '../../node_modules/@fable-org/fable-library-ts/Array.js';
17
+ import { CWLParameterValueModule_floatToRoundTripString, CWLParameterValueModule_tryInferType } from './ParameterValue.js';
18
+ import { InputBinding, CWLInput } from './Inputs.js';
19
+ import { StepInput, StepOutputParameter, WorkflowStep } from './WorkflowSteps.js';
10
20
  import { WorkflowStepRunOps_tryGetOperation, WorkflowStepRunOps_tryGetExpressionTool, WorkflowStepRunOps_tryGetWorkflow, WorkflowStepRunOps_tryGetTool } from './CWLProcessingUnit.js';
11
- import { toString } from '../../node_modules/@fable-org/fable-library-js/Types.js';
12
- import { write } from '../fable_modules/YAMLicious.1.0.0-alpha.7/Writer.fs.js';
13
- import { ofList, FSharpSet__Contains } from '../../node_modules/@fable-org/fable-library-js/Set.js';
21
+ import { CWLToolDescription } from './ToolDescription.js';
22
+ import { ArgumentException_$ctor_Z721C83C5 } from '../../node_modules/@fable-org/fable-library-ts/System.js';
23
+ import { CWLWorkflowDescription } from './WorkflowDescription.js';
24
+ import { CWLExpressionToolDescription } from './ExpressionToolDescription.js';
25
+ import { CWLOperationDescription } from './OperationDescription.js';
26
+ import { write } from '../fable_modules/YAMLicious.1.0.0/Writer.fs.js';
27
+ import { CWLParameterReference } from './ParameterReference.js';
14
28
 
15
29
  function $007CPrimitiveType$007CComplexType$007C(t) {
16
30
  switch (t.tag) {
@@ -54,7 +68,8 @@ function $007CPrimitiveType$007CComplexType$007C(t) {
54
68
  case /* Array */
55
69
  11: {
56
70
  const arraySchema = t.fields[0];
57
- if ($007CPrimitiveType$007CComplexType$007C(arraySchema.Items).tag === /* Choice2Of2 */
71
+ const matchValue = arraySchema.Items;
72
+ if ($007CPrimitiveType$007CComplexType$007C(matchValue).tag === /* Choice2Of2 */
58
73
  1) {
59
74
  return FSharpChoice$2_Choice2Of2(void 0);
60
75
  } else {
@@ -66,7 +81,7 @@ function $007CPrimitiveType$007CComplexType$007C(t) {
66
81
  }
67
82
  }
68
83
  function tryGetArrayShorthand(cwlType) {
69
- let matchResult, name_1, arraySchema;
84
+ let matchResult = void 0, name_1 = void 0, arraySchema = void 0;
70
85
  const activePatternResult = $007CPrimitiveType$007CComplexType$007C(cwlType);
71
86
  if (activePatternResult.tag === /* Choice1Of2 */
72
87
  0) {
@@ -90,8 +105,14 @@ function tryGetArrayShorthand(cwlType) {
90
105
  switch (matchResult) {
91
106
  case 0:
92
107
  return name_1;
93
- case 1:
94
- return map((s) => s + "[]", tryGetArrayShorthand(arraySchema.Items));
108
+ case 1: {
109
+ const option_1 = tryGetArrayShorthand(arraySchema.Items);
110
+ if (option_1 != null) {
111
+ return value(option_1) + "[]";
112
+ } else {
113
+ return void 0;
114
+ }
115
+ }
95
116
  default:
96
117
  return void 0;
97
118
  }
@@ -107,12 +128,14 @@ function isComplexType(t_mut) {
107
128
  13:
108
129
  return true;
109
130
  case /* Array */
110
- 11:
111
- return tryGetArrayShorthand(t.fields[0].Items) == null;
131
+ 11: {
132
+ const arraySchema = t.fields[0];
133
+ return tryGetArrayShorthand(arraySchema.Items) == null;
134
+ }
112
135
  case /* Union */
113
136
  14: {
114
137
  const typesList = toList(t.fields[0]);
115
- let matchResult, otherType;
138
+ let matchResult = void 0, otherType = void 0;
116
139
  if (!isEmpty(typesList)) {
117
140
  if (head(typesList).tag === /* Null */
118
141
  10) {
@@ -162,21 +185,82 @@ function isComplexType(t_mut) {
162
185
  function yBool(b) {
163
186
  return YAMLElement_Value(YAMLContent_create_Z1C3A29C9(b ? "true" : "false"));
164
187
  }
188
+ function yFloat(value) {
189
+ return YAMLElement_Value(YAMLContent_create_Z1C3A29C9(value.toString()));
190
+ }
165
191
  function yMap(pairs) {
166
- return YAMLElement_Object(map$1((tupledArg) => {
167
- let _arg, single;
192
+ return YAMLElement_Object$(map((tupledArg) => {
193
+ let _arg = void 0, single = void 0;
168
194
  return YAMLElement_Mapping(YAMLContent_create_Z1C3A29C9(tupledArg[0]), (_arg = tupledArg[1], _arg.tag === /* Object */
169
195
  3 ? !isEmpty(_arg.fields[0]) ? head(_arg.fields[0]).tag === /* Value */
170
196
  1 ? isEmpty(tail(_arg.fields[0])) ? _arg : _arg : head(_arg.fields[0]).tag === /* Alias */
171
- 7 ? isEmpty(tail(_arg.fields[0])) ? _arg : _arg : isEmpty(tail(_arg.fields[0])) ? (single = head(_arg.fields[0]), single) : _arg : YAMLElement_Value(YAMLContent_create_Z1C3A29C9("{}")) : _arg));
197
+ 7 ? isEmpty(tail(_arg.fields[0])) ? _arg : _arg : isEmpty(tail(_arg.fields[0])) ? (single = head(_arg.fields[0]), single) : _arg : _arg : _arg));
172
198
  }, pairs));
173
199
  }
200
+ function encodeDynamicValue(value) {
201
+ if (equals(value, defaultOf())) {
202
+ return void 0;
203
+ } else if (typeof value === "string") {
204
+ const s = value;
205
+ return string(s);
206
+ } else if (typeof value === "boolean") {
207
+ const b = value;
208
+ return yBool(b);
209
+ } else if (typeof value === "number") {
210
+ const f = value;
211
+ return yFloat(f);
212
+ } else if (typeof value === "number") {
213
+ const i = value | 0;
214
+ return int(i);
215
+ } else if (typeof value === "bigint") {
216
+ const i_1 = value;
217
+ return string(int64ToString(i_1));
218
+ } else if (value instanceof YAMLElement) {
219
+ const y = value;
220
+ return y;
221
+ } else if (value instanceof DynamicObj) {
222
+ const dynObj = value;
223
+ return encodeDynamicObj(dynObj);
224
+ } else if (isIterable(value)) {
225
+ const values = value;
226
+ return YAMLElement_Sequence(toList(choose(encodeDynamicValue, values)));
227
+ } else {
228
+ return void 0;
229
+ }
230
+ }
231
+ function encodeDynamicObj(dynObj) {
232
+ return yMap(toList(choose((kvp) => {
233
+ const option_1 = encodeDynamicValue(kvp[1]);
234
+ if (option_1 != null) {
235
+ return [kvp[0], value(option_1)];
236
+ } else {
237
+ return void 0;
238
+ }
239
+ }, dynamicPropertiesExcept(empty({
240
+ Compare: (x, y) => comparePrimitives(x, y) | 0
241
+ }), dynObj))));
242
+ }
243
+ function appendDynamicPropertiesExcept(knownFieldNames, dynObj, acc) {
244
+ return fold((pairs, pair) => append(pairs, singleton(pair)), acc, choose((kvp) => {
245
+ const option_1 = encodeDynamicValue(kvp[1]);
246
+ if (option_1 != null) {
247
+ return [kvp[0], value(option_1)];
248
+ } else {
249
+ return void 0;
250
+ }
251
+ }, dynamicPropertiesExcept(knownFieldNames, dynObj)));
252
+ }
253
+ function appendDynamicProperties(dynObj, acc) {
254
+ return appendDynamicPropertiesExcept(empty({
255
+ Compare: (x, y) => comparePrimitives(x, y) | 0
256
+ }), dynObj, acc);
257
+ }
174
258
  function normalizeDocString(doc) {
175
259
  return trimEnd(trimEnd(replace(doc, "\r\n", "\n"), "\n"), "\r");
176
260
  }
177
261
  function encodeExpressionScalar(expression) {
178
- const normalized = expression == null ? "" : replace(replace(expression, "\r\n", "\n"), "\r", "\n");
179
- return YAMLElement_Value(YAMLContent_create_Z1C3A29C9(normalized, void 0, void 0, void 0, normalized.indexOf("\n") >= 0 ? ScalarStyle_Block(BlockScalarStyle_Literal(), ChompingMode_Clip(), void 0) : ScalarStyle_DoubleQuoted()));
262
+ const normalized = Operators_IsNull(expression) ? "" : replace(replace(expression, "\r\n", "\n"), "\r", "\n");
263
+ return YAMLElement_Value(YAMLContent_create_Z1C3A29C9(normalized, void 0, void 0, void 0, normalized.indexOf("\n") >= 0 ? ScalarStyle_Block(BlockScalarStyle.Literal, ChompingMode.Clip, void 0) : ScalarStyle.DoubleQuoted));
180
264
  }
181
265
  function encodeSchemaSaladString(value) {
182
266
  switch (value.tag) {
@@ -198,13 +282,13 @@ function normalizeEnvValueForEncode(envValue) {
198
282
  }
199
283
  }
200
284
  function encodeEnvVarRequirementCompactMap(envs) {
201
- const envDefMap = yMap(toList(map$2((env) => [env.EnvName, string(normalizeEnvValueForEncode(env.EnvValue))], envs)));
285
+ const envDefMap = yMap(toList(map$1((env) => [env.EnvName, string(normalizeEnvValueForEncode(env.EnvValue))], envs)));
202
286
  return yMap(ofArray([["class", string("EnvVarRequirement")], ["envDef", envDefMap]]));
203
287
  }
204
288
  function encodeSoftwareRequirementCompactMap(packages) {
205
- const packagesMap = yMap(toList(map$2((package$_1) => {
206
- let package$, matchValue_1, value_6, acc_3, value_3, acc_1;
207
- return [package$_1.Package, (package$ = package$_1, matchValue_1 = package$.Specs, package$.Version == null ? matchValue_1 != null ? YAMLElement_Sequence(toList(map$2(string, value(matchValue_1)))) : yMap(empty()) : yMap((value_6 = package$.Specs, acc_3 = (value_3 = package$.Version, acc_1 = empty(), value_3 == null ? acc_1 : append(acc_1, singleton(["version", YAMLElement_Sequence(toList(map$2(string, value(value_3))))]))), value_6 == null ? acc_3 : append(acc_3, singleton(["specs", YAMLElement_Sequence(toList(map$2(string, value(value_6))))])))))];
289
+ const packagesMap = yMap(toList(map$1((package$_1) => {
290
+ let package$ = void 0, matchValue = void 0, matchValue_1 = void 0, acc_2 = void 0, value_3 = void 0, acc_1 = void 0, value_6 = void 0, acc_3 = void 0;
291
+ return [package$_1.Package, (package$ = package$_1, matchValue = package$.Version, matchValue_1 = package$.Specs, matchValue == null ? matchValue_1 != null ? YAMLElement_Sequence(toList(map$1(string, value(matchValue_1)))) : yMap(empty$1()) : yMap((acc_2 = (value_3 = package$.Version, acc_1 = empty$1(), value_3 == null ? acc_1 : append(acc_1, singleton(["version", YAMLElement_Sequence(toList(map$1(string, value(value_3))))]))), value_6 = package$.Specs, acc_3 = acc_2, value_6 == null ? acc_3 : append(acc_3, singleton(["specs", YAMLElement_Sequence(toList(map$1(string, value(value_6))))])))))];
208
292
  }, packages)));
209
293
  return yMap(ofArray([["class", string("SoftwareRequirement")], ["packages", packagesMap]]));
210
294
  }
@@ -215,18 +299,91 @@ function encodeDoc(doc) {
215
299
  return ["doc", string(normalizeDocString(doc))];
216
300
  }
217
301
  function encodeIntent(intent) {
218
- return ["intent", YAMLElement_Sequence(ofSeq(map$2(string, intent)))];
302
+ return ["intent", YAMLElement_Sequence(ofSeq(map$1(string, intent)))];
303
+ }
304
+ function encodeFilePairs(discriminatorKey, discriminatorValue, file) {
305
+ let acc_22;
306
+ let acc_20;
307
+ let acc_18;
308
+ let acc_16;
309
+ let acc_14;
310
+ let acc_12;
311
+ let acc_10;
312
+ let acc_8;
313
+ let acc_6;
314
+ let acc_4;
315
+ let acc_2;
316
+ const acc = singleton([discriminatorKey, string(discriminatorValue)]);
317
+ const value_2 = file.Location;
318
+ const acc_1 = acc;
319
+ acc_2 = value_2 == null ? acc_1 : append(acc_1, singleton(["location", string(value(value_2))]));
320
+ const value_5 = file.Path;
321
+ const acc_3 = acc_2;
322
+ acc_4 = value_5 == null ? acc_3 : append(acc_3, singleton(["path", string(value(value_5))]));
323
+ const value_8 = file.Basename;
324
+ const acc_5 = acc_4;
325
+ acc_6 = value_8 == null ? acc_5 : append(acc_5, singleton(["basename", string(value(value_8))]));
326
+ const value_11 = file.Dirname;
327
+ const acc_7 = acc_6;
328
+ acc_8 = value_11 == null ? acc_7 : append(acc_7, singleton(["dirname", string(value(value_11))]));
329
+ const value_14 = file.Nameroot;
330
+ const acc_9 = acc_8;
331
+ acc_10 = value_14 == null ? acc_9 : append(acc_9, singleton(["nameroot", string(value(value_14))]));
332
+ const value_17 = file.Nameext;
333
+ const acc_11 = acc_10;
334
+ acc_12 = value_17 == null ? acc_11 : append(acc_11, singleton(["nameext", string(value(value_17))]));
335
+ const value_20 = file.Checksum;
336
+ const acc_13 = acc_12;
337
+ acc_14 = value_20 == null ? acc_13 : append(acc_13, singleton(["checksum", string(value(value_20))]));
338
+ const value_22 = file.Size;
339
+ const acc_15 = acc_14;
340
+ acc_16 = value_22 == null ? acc_15 : append(acc_15, singleton(["size", YAMLElement_Value(YAMLContent_create_Z1C3A29C9(int64ToString(value(value_22))))]));
341
+ const value_24 = file.SecondaryFiles;
342
+ const acc_17 = acc_16;
343
+ acc_18 = value_24 == null ? acc_17 : append(acc_17, singleton(["secondaryFiles", value(value_24)]));
344
+ const value_27 = file.Format;
345
+ const acc_19 = acc_18;
346
+ acc_20 = value_27 == null ? acc_19 : append(acc_19, singleton(["format", string(value(value_27))]));
347
+ const value_30 = file.Contents;
348
+ const acc_21 = acc_20;
349
+ acc_22 = value_30 == null ? acc_21 : append(acc_21, singleton(["contents", string(value(value_30))]));
350
+ return appendDynamicPropertiesExcept(FileInstance.KnownFieldNames, file, acc_22);
351
+ }
352
+ function encodeDirectoryPairs(discriminatorKey, discriminatorValue, directory) {
353
+ let acc_8;
354
+ let acc_6;
355
+ let acc_4;
356
+ let acc_2;
357
+ const acc = singleton([discriminatorKey, string(discriminatorValue)]);
358
+ const value_2 = directory.Location;
359
+ const acc_1 = acc;
360
+ acc_2 = value_2 == null ? acc_1 : append(acc_1, singleton(["location", string(value(value_2))]));
361
+ const value_5 = directory.Path;
362
+ const acc_3 = acc_2;
363
+ acc_4 = value_5 == null ? acc_3 : append(acc_3, singleton(["path", string(value(value_5))]));
364
+ const value_8 = directory.Basename;
365
+ const acc_5 = acc_4;
366
+ acc_6 = value_8 == null ? acc_5 : append(acc_5, singleton(["basename", string(value(value_8))]));
367
+ const value_10 = directory.Listing;
368
+ const acc_7 = acc_6;
369
+ acc_8 = value_10 == null ? acc_7 : append(acc_7, singleton(["listing", value(value_10)]));
370
+ return appendDynamicPropertiesExcept(DirectoryInstance.KnownFieldNames, directory, acc_8);
219
371
  }
220
372
  function encodeCWLType(t) {
221
- let value_4, acc_3, value_2, acc_1;
373
+ let acc_4 = void 0, acc_2 = void 0, acc = void 0, value_2 = void 0, acc_1 = void 0, value_4 = void 0, acc_3 = void 0;
222
374
  switch (t.tag) {
223
375
  case /* Directory */
224
376
  1:
225
- return string("Directory");
377
+ if (length(encodeDirectoryPairs("type", "Directory", t.fields[0])) > 1) {
378
+ const directory_2 = t.fields[0];
379
+ return yMap(encodeDirectoryPairs("type", "Directory", directory_2));
380
+ } else {
381
+ return string("Directory");
382
+ }
226
383
  case /* Dirent */
227
384
  2: {
228
385
  const d = t.fields[0];
229
- return yMap((value_4 = d.Writable, acc_3 = (value_2 = d.Entryname, acc_1 = singleton(["entry", encodeSchemaSaladString(d.Entry)]), value_2 == null ? acc_1 : append(acc_1, singleton(["entryname", encodeSchemaSaladString(value(value_2))]))), value_4 == null ? acc_3 : append(acc_3, singleton(["writable", yBool(value(value_4))]))));
386
+ return yMap((acc_4 = (acc_2 = (acc = singleton(["entry", encodeSchemaSaladString(d.Entry)]), value_2 = d.Entryname, acc_1 = acc, value_2 == null ? acc_1 : append(acc_1, singleton(["entryname", encodeSchemaSaladString(value(value_2))]))), value_4 = d.Writable, acc_3 = acc_2, value_4 == null ? acc_3 : append(acc_3, singleton(["writable", yBool(value(value_4))]))), appendDynamicPropertiesExcept(DirentInstance.KnownFieldNames, d, acc_4)));
230
387
  }
231
388
  case /* String */
232
389
  3:
@@ -254,8 +411,9 @@ function encodeCWLType(t) {
254
411
  return string("null");
255
412
  case /* Union */
256
413
  14: {
257
- const typesList = toList(t.fields[0]);
258
- let matchResult, otherType;
414
+ const types = t.fields[0];
415
+ const typesList = toList(types);
416
+ let matchResult = void 0, otherType = void 0;
259
417
  if (!isEmpty(typesList)) {
260
418
  if (head(typesList).tag === /* Null */
261
419
  10) {
@@ -325,10 +483,10 @@ function encodeCWLType(t) {
325
483
  }
326
484
  }
327
485
  default:
328
- return YAMLElement_Sequence(map$1(encodeCWLType, typesList));
486
+ return YAMLElement_Sequence(map(encodeCWLType, typesList));
329
487
  }
330
488
  default:
331
- return YAMLElement_Sequence(map$1(encodeCWLType, typesList));
489
+ return YAMLElement_Sequence(map(encodeCWLType, typesList));
332
490
  }
333
491
  }
334
492
  case /* Array */
@@ -342,226 +500,228 @@ function encodeCWLType(t) {
342
500
  }
343
501
  }
344
502
  case /* Record */
345
- 12:
346
- return encodeInputRecordSchema(t.fields[0]);
503
+ 12: {
504
+ const recordSchema = t.fields[0];
505
+ return encodeInputRecordSchema(recordSchema);
506
+ }
347
507
  case /* Enum */
348
- 13:
349
- return encodeInputEnumSchema(t.fields[0]);
508
+ 13: {
509
+ const enumSchema = t.fields[0];
510
+ return encodeInputEnumSchema(enumSchema);
511
+ }
350
512
  default:
351
- return string("File");
513
+ if (length(encodeFilePairs("type", "File", t.fields[0])) > 1) {
514
+ const file_2 = t.fields[0];
515
+ return yMap(encodeFilePairs("type", "File", file_2));
516
+ } else {
517
+ return string("File");
518
+ }
352
519
  }
353
520
  }
354
521
  function encodeInputRecordField(field) {
355
- return [field.Name, yMap(singleton(["type", encodeCWLType(field.Type)]))];
522
+ let pairs;
523
+ let acc_4;
524
+ let acc_2;
525
+ const acc = singleton(["type", encodeCWLType(field.Type)]);
526
+ const value_2 = field.Doc;
527
+ const acc_1 = acc;
528
+ acc_2 = value_2 == null ? acc_1 : append(acc_1, singleton(["doc", string(value(value_2))]));
529
+ const value_5 = field.Label;
530
+ const acc_3 = acc_2;
531
+ acc_4 = value_5 == null ? acc_3 : append(acc_3, singleton(["label", string(value(value_5))]));
532
+ pairs = appendDynamicPropertiesExcept(InputRecordField.KnownFieldNames, field, acc_4);
533
+ return [field.Name, yMap(pairs)];
356
534
  }
357
535
  function encodeInputRecordSchema(schema) {
536
+ let acc_6 = void 0, acc_4 = void 0, acc_2 = void 0, acc = void 0, value_2 = void 0, acc_1 = void 0, value_5 = void 0, acc_3 = void 0, value_8 = void 0, acc_5 = void 0;
358
537
  let fieldsElement;
359
538
  const matchValue = schema.Fields;
360
- fieldsElement = matchValue == null ? yMap(empty()) : yMap(toList(map$2(encodeInputRecordField, value(matchValue))));
361
- return yMap(ofArray([["type", string("record")], ["fields", fieldsElement]]));
539
+ fieldsElement = matchValue == null ? yMap(empty$1()) : yMap(toList(map$1(encodeInputRecordField, value(matchValue))));
540
+ return yMap((acc_6 = (acc_4 = (acc_2 = (acc = ofArray([["type", string("record")], ["fields", fieldsElement]]), value_2 = schema.Label, acc_1 = acc, value_2 == null ? acc_1 : append(acc_1, singleton(["label", string(value(value_2))]))), value_5 = schema.Doc, acc_3 = acc_2, value_5 == null ? acc_3 : append(acc_3, singleton(["doc", string(value(value_5))]))), value_8 = schema.Name, acc_5 = acc_4, value_8 == null ? acc_5 : append(acc_5, singleton(["name", string(value(value_8))]))), appendDynamicPropertiesExcept(InputRecordSchema.KnownFieldNames, schema, acc_6)));
362
541
  }
363
542
  function encodeInputEnumSchema(schema) {
364
- return yMap(append(singleton(["type", string("enum")]), singleton(["symbols", YAMLElement_Sequence(ofSeq(map$2(string, schema.Symbols)))])));
543
+ let acc_6 = void 0, acc_4 = void 0, acc_2 = void 0, value_3 = void 0, acc_1 = void 0, value_6 = void 0, acc_3 = void 0, value_9 = void 0, acc_5 = void 0;
544
+ const pairs = append(singleton(["type", string("enum")]), singleton(["symbols", YAMLElement_Sequence(ofSeq(map$1(string, schema.Symbols)))]));
545
+ return yMap((acc_6 = (acc_4 = (acc_2 = (value_3 = schema.Label, acc_1 = pairs, value_3 == null ? acc_1 : append(acc_1, singleton(["label", string(value(value_3))]))), value_6 = schema.Doc, acc_3 = acc_2, value_6 == null ? acc_3 : append(acc_3, singleton(["doc", string(value(value_6))]))), value_9 = schema.Name, acc_5 = acc_4, value_9 == null ? acc_5 : append(acc_5, singleton(["name", string(value(value_9))]))), appendDynamicPropertiesExcept(InputEnumSchema.KnownFieldNames, schema, acc_6)));
365
546
  }
366
547
  function encodeInputArraySchema(schema) {
367
- return yMap(ofArray([["type", string("array")], ["items", encodeCWLType(schema.Items)]]));
548
+ let acc_6 = void 0, acc_4 = void 0, acc_2 = void 0, acc = void 0, value_2 = void 0, acc_1 = void 0, value_5 = void 0, acc_3 = void 0, value_8 = void 0, acc_5 = void 0;
549
+ return yMap((acc_6 = (acc_4 = (acc_2 = (acc = ofArray([["type", string("array")], ["items", encodeCWLType(schema.Items)]]), value_2 = schema.Label, acc_1 = acc, value_2 == null ? acc_1 : append(acc_1, singleton(["label", string(value(value_2))]))), value_5 = schema.Doc, acc_3 = acc_2, value_5 == null ? acc_3 : append(acc_3, singleton(["doc", string(value(value_5))]))), value_8 = schema.Name, acc_5 = acc_4, value_8 == null ? acc_5 : append(acc_5, singleton(["name", string(value(value_8))]))), appendDynamicPropertiesExcept(InputArraySchema.KnownFieldNames, schema, acc_6)));
368
550
  }
369
551
  function encodeOutputBinding(ob) {
370
- return yMap(choose((x) => x, singleton(map((g) => ["glob", string(g)], ob.Glob))));
552
+ let acc_6 = void 0, acc_4 = void 0, acc_2 = void 0, acc = void 0, option_1 = void 0, value_1 = void 0, acc_1 = void 0, encoder_1 = void 0, f1 = void 0, value_4 = void 0, acc_3 = void 0, value_7 = void 0, acc_5 = void 0;
553
+ return yMap((acc_6 = (acc_4 = (acc_2 = (acc = choose$1((x) => x, singleton((option_1 = ob.Glob, option_1 != null ? ["glob", string(value(option_1))] : void 0))), value_1 = ob.LoadContents, acc_1 = acc, value_1 == null ? acc_1 : append(acc_1, singleton(["loadContents", yBool(value(value_1))]))), encoder_1 = (f1 = LoadListingEnum_get_toCwlString(), (arg) => string(f1(arg))), value_4 = ob.LoadListing, acc_3 = acc_2, value_4 == null ? acc_3 : append(acc_3, singleton(["loadListing", encoder_1(value(value_4))]))), value_7 = ob.OutputEval, acc_5 = acc_4, value_7 == null ? acc_5 : append(acc_5, singleton(["outputEval", string(value(value_7))]))), appendDynamicPropertiesExcept(OutputBinding.KnownFieldNames, ob, acc_6)));
371
554
  }
372
555
  function encodeStringArrayOrScalar(values) {
373
556
  if (values.length === 1) {
374
- return string(values[0]);
557
+ return string(item(0, values));
375
558
  } else {
376
- return YAMLElement_Sequence(ofSeq(map$2(string, values)));
559
+ return YAMLElement_Sequence(ofSeq(map$1(string, values)));
560
+ }
561
+ }
562
+ function encodeCWLParameterValue(value) {
563
+ switch (value.tag) {
564
+ case /* String */
565
+ 1:
566
+ return string(value.fields[0]);
567
+ case /* Int */
568
+ 2:
569
+ return YAMLElement_Value(YAMLContent_create_Z1C3A29C9(int64ToString(value.fields[0])));
570
+ case /* Float */
571
+ 3:
572
+ return YAMLElement_Value(YAMLContent_create_Z1C3A29C9(CWLParameterValueModule_floatToRoundTripString(value.fields[0])));
573
+ case /* Boolean */
574
+ 4:
575
+ return yBool(value.fields[0]);
576
+ case /* File */
577
+ 5:
578
+ return yMap(encodeFilePairs("class", "File", value.fields[0]));
579
+ case /* Directory */
580
+ 6:
581
+ return yMap(encodeDirectoryPairs("class", "Directory", value.fields[0]));
582
+ case /* Array */
583
+ 7:
584
+ return YAMLElement_Sequence(toList(map$1(encodeCWLParameterValue, value.fields[0])));
585
+ case /* Record */
586
+ 8:
587
+ return yMap(toList(map$1((field) => [field.Name, encodeCWLParameterValue(field.Value)], value.fields[0])));
588
+ default:
589
+ return YAMLElement_Value(YAMLContent_create_Z1C3A29C9("null"));
377
590
  }
378
591
  }
379
592
  function encodeCWLOutput(o) {
380
- let values;
381
- const typeElement = map((t) => {
382
- switch (t.tag) {
383
- case /* Union */
384
- 14: {
385
- const typesList = toList(t.fields[0]);
386
- let matchResult, otherType;
387
- if (!isEmpty(typesList)) {
388
- if (head(typesList).tag === /* Null */
389
- 10) {
390
- if (!isEmpty(tail(typesList))) {
391
- if (isEmpty(tail(tail(typesList)))) {
392
- matchResult = 0;
393
- otherType = head(tail(typesList));
394
- } else {
395
- matchResult = 1;
396
- }
397
- } else {
398
- matchResult = 1;
399
- }
400
- } else if (!isEmpty(tail(typesList))) {
401
- if (head(tail(typesList)).tag === /* Null */
402
- 10) {
403
- if (isEmpty(tail(tail(typesList)))) {
404
- matchResult = 0;
405
- otherType = head(typesList);
406
- } else {
407
- matchResult = 1;
408
- }
409
- } else {
410
- matchResult = 1;
411
- }
412
- } else {
413
- matchResult = 1;
414
- }
415
- } else {
416
- matchResult = 1;
417
- }
418
- switch (matchResult) {
419
- case 0:
420
- switch (otherType.tag) {
421
- case /* File */
422
- 0:
423
- case /* Directory */
424
- 1:
425
- case /* String */
426
- 3:
427
- case /* Int */
428
- 4:
429
- case /* Long */
430
- 5:
431
- case /* Float */
432
- 6:
433
- case /* Double */
434
- 7:
435
- case /* Boolean */
436
- 8:
437
- return encodeCWLType(t);
438
- case /* Array */
439
- 11: {
440
- const matchValue = otherType.fields[0].Items;
441
- switch (matchValue.tag) {
442
- case /* File */
443
- 0:
444
- case /* Directory */
445
- 1:
446
- case /* String */
447
- 3:
448
- case /* Int */
449
- 4:
450
- case /* Long */
451
- 5:
452
- case /* Float */
453
- 6:
454
- case /* Double */
455
- 7:
456
- case /* Boolean */
457
- 8:
458
- return encodeCWLType(t);
459
- default:
460
- return encodeCWLType(t);
461
- }
462
- }
463
- default:
464
- return encodeCWLType(t);
465
- }
466
- default:
467
- return encodeCWLType(t);
468
- }
469
- }
470
- case /* Array */
471
- 11: {
472
- const arraySchema_1 = t.fields[0];
473
- const matchValue_1 = arraySchema_1.Items;
474
- switch (matchValue_1.tag) {
475
- case /* File */
476
- 0:
477
- case /* Directory */
478
- 1:
479
- case /* Dirent */
480
- 2:
481
- case /* String */
482
- 3:
483
- case /* Int */
484
- 4:
485
- case /* Long */
486
- 5:
487
- case /* Float */
488
- 6:
489
- case /* Double */
490
- 7:
491
- case /* Boolean */
492
- 8:
493
- return encodeCWLType(t);
494
- default:
495
- return yMap(singleton(["type", encodeInputArraySchema(arraySchema_1)]));
496
- }
497
- }
498
- case /* Record */
499
- 12:
500
- return yMap(singleton(["type", encodeInputRecordSchema(t.fields[0])]));
501
- case /* Enum */
502
- 13:
503
- return yMap(singleton(["type", encodeInputEnumSchema(t.fields[0])]));
504
- default:
505
- return encodeCWLType(t);
506
- }
507
- }, o.Type_);
593
+ let t = void 0, typesList = void 0, arraySchema = void 0, matchValue = void 0, arraySchema_1 = void 0, matchValue_1 = void 0, values = void 0;
594
+ let typeElement;
595
+ const option_1 = o.Type_;
596
+ typeElement = option_1 != null ? (t = value(option_1), t.tag === /* Union */
597
+ 14 ? (typesList = toList(t.fields[0]), !isEmpty(typesList) ? head(typesList).tag === /* Null */
598
+ 10 ? !isEmpty(tail(typesList)) ? isEmpty(tail(tail(typesList))) ? head(tail(typesList)).tag === /* File */
599
+ 0 ? encodeCWLType(t) : head(tail(typesList)).tag === /* Directory */
600
+ 1 ? encodeCWLType(t) : head(tail(typesList)).tag === /* String */
601
+ 3 ? encodeCWLType(t) : head(tail(typesList)).tag === /* Int */
602
+ 4 ? encodeCWLType(t) : head(tail(typesList)).tag === /* Long */
603
+ 5 ? encodeCWLType(t) : head(tail(typesList)).tag === /* Float */
604
+ 6 ? encodeCWLType(t) : head(tail(typesList)).tag === /* Double */
605
+ 7 ? encodeCWLType(t) : head(tail(typesList)).tag === /* Boolean */
606
+ 8 ? encodeCWLType(t) : head(tail(typesList)).tag === /* Array */
607
+ 11 ? (arraySchema = head(tail(typesList)).fields[0], matchValue = arraySchema.Items, matchValue.tag === /* File */
608
+ 0 ? encodeCWLType(t) : matchValue.tag === /* Directory */
609
+ 1 ? encodeCWLType(t) : matchValue.tag === /* String */
610
+ 3 ? encodeCWLType(t) : matchValue.tag === /* Int */
611
+ 4 ? encodeCWLType(t) : matchValue.tag === /* Long */
612
+ 5 ? encodeCWLType(t) : matchValue.tag === /* Float */
613
+ 6 ? encodeCWLType(t) : matchValue.tag === /* Double */
614
+ 7 ? encodeCWLType(t) : matchValue.tag === /* Boolean */
615
+ 8 ? encodeCWLType(t) : encodeCWLType(t)) : encodeCWLType(t) : encodeCWLType(t) : encodeCWLType(t) : !isEmpty(tail(typesList)) ? head(tail(typesList)).tag === /* Null */
616
+ 10 ? isEmpty(tail(tail(typesList))) ? head(typesList).tag === /* File */
617
+ 0 ? encodeCWLType(t) : head(typesList).tag === /* Directory */
618
+ 1 ? encodeCWLType(t) : head(typesList).tag === /* String */
619
+ 3 ? encodeCWLType(t) : head(typesList).tag === /* Int */
620
+ 4 ? encodeCWLType(t) : head(typesList).tag === /* Long */
621
+ 5 ? encodeCWLType(t) : head(typesList).tag === /* Float */
622
+ 6 ? encodeCWLType(t) : head(typesList).tag === /* Double */
623
+ 7 ? encodeCWLType(t) : head(typesList).tag === /* Boolean */
624
+ 8 ? encodeCWLType(t) : head(typesList).tag === /* Array */
625
+ 11 ? (arraySchema = head(typesList).fields[0], matchValue = arraySchema.Items, matchValue.tag === /* File */
626
+ 0 ? encodeCWLType(t) : matchValue.tag === /* Directory */
627
+ 1 ? encodeCWLType(t) : matchValue.tag === /* String */
628
+ 3 ? encodeCWLType(t) : matchValue.tag === /* Int */
629
+ 4 ? encodeCWLType(t) : matchValue.tag === /* Long */
630
+ 5 ? encodeCWLType(t) : matchValue.tag === /* Float */
631
+ 6 ? encodeCWLType(t) : matchValue.tag === /* Double */
632
+ 7 ? encodeCWLType(t) : matchValue.tag === /* Boolean */
633
+ 8 ? encodeCWLType(t) : encodeCWLType(t)) : encodeCWLType(t) : encodeCWLType(t) : encodeCWLType(t) : encodeCWLType(t) : encodeCWLType(t)) : t.tag === /* Array */
634
+ 11 ? (arraySchema_1 = t.fields[0], matchValue_1 = arraySchema_1.Items, matchValue_1.tag === /* File */
635
+ 0 ? encodeCWLType(t) : matchValue_1.tag === /* Directory */
636
+ 1 ? encodeCWLType(t) : matchValue_1.tag === /* Dirent */
637
+ 2 ? encodeCWLType(t) : matchValue_1.tag === /* String */
638
+ 3 ? encodeCWLType(t) : matchValue_1.tag === /* Int */
639
+ 4 ? encodeCWLType(t) : matchValue_1.tag === /* Long */
640
+ 5 ? encodeCWLType(t) : matchValue_1.tag === /* Float */
641
+ 6 ? encodeCWLType(t) : matchValue_1.tag === /* Double */
642
+ 7 ? encodeCWLType(t) : matchValue_1.tag === /* Boolean */
643
+ 8 ? encodeCWLType(t) : yMap(singleton(["type", encodeInputArraySchema(arraySchema_1)]))) : t.tag === /* Record */
644
+ 12 ? yMap(singleton(["type", encodeInputRecordSchema(t.fields[0])])) : t.tag === /* Enum */
645
+ 13 ? yMap(singleton(["type", encodeInputEnumSchema(t.fields[0])])) : encodeCWLType(t)) : void 0;
508
646
  let pairs;
509
- let value_4;
647
+ let acc_16;
648
+ let value_17;
510
649
  const matchValue_2 = o.OutputSource;
511
- let matchResult_1, value$1, values_1;
650
+ let matchResult = void 0, value$1 = void 0, values_1 = void 0;
512
651
  if (matchValue_2 != null) {
513
652
  if (value(matchValue_2).tag === /* Multiple */
514
653
  1) {
515
654
  if (values = value(matchValue_2).fields[0], values.length > 0) {
516
- matchResult_1 = 1;
655
+ matchResult = 1;
517
656
  values_1 = value(matchValue_2).fields[0];
518
657
  } else {
519
- matchResult_1 = 2;
658
+ matchResult = 2;
520
659
  }
521
660
  } else {
522
- matchResult_1 = 0;
661
+ matchResult = 0;
523
662
  value$1 = value(matchValue_2).fields[0];
524
663
  }
525
664
  } else {
526
- matchResult_1 = 2;
665
+ matchResult = 2;
527
666
  }
528
- switch (matchResult_1) {
667
+ switch (matchResult) {
529
668
  case 0: {
530
- value_4 = string(value$1);
669
+ value_17 = string(value$1);
531
670
  break;
532
671
  }
533
672
  case 1: {
534
- value_4 = encodeStringArrayOrScalar(values_1);
673
+ value_17 = encodeStringArrayOrScalar(values_1);
535
674
  break;
536
675
  }
537
676
  default:
538
- value_4 = void 0;
677
+ value_17 = void 0;
539
678
  }
540
- let acc_5;
679
+ let acc_15;
680
+ let acc_12;
681
+ let acc_10;
682
+ let acc_8;
683
+ let acc_6;
684
+ let acc_4;
541
685
  let acc_2;
542
686
  const value_1 = typeElement;
543
- const acc_1 = empty();
687
+ const acc_1 = empty$1();
544
688
  acc_2 = value_1 == null ? acc_1 : append(acc_1, singleton(["type", value(value_1)]));
545
- const value_3 = o.OutputBinding;
689
+ const value_4 = o.Label;
546
690
  const acc_3 = acc_2;
547
- acc_5 = value_3 == null ? acc_3 : append(acc_3, singleton(["outputBinding", encodeOutputBinding(value(value_3))]));
548
- pairs = value_4 == null ? acc_5 : append(acc_5, singleton(["outputSource", value(value_4)]));
549
- let matchResult_2, t_1;
691
+ acc_4 = value_4 == null ? acc_3 : append(acc_3, singleton(["label", string(value(value_4))]));
692
+ const value_6 = o.SecondaryFiles;
693
+ const acc_5 = acc_4;
694
+ acc_6 = value_6 == null ? acc_5 : append(acc_5, singleton(["secondaryFiles", value(value_6)]));
695
+ const value_8 = o.Streamable;
696
+ const acc_7 = acc_6;
697
+ acc_8 = value_8 == null ? acc_7 : append(acc_7, singleton(["streamable", yBool(value(value_8))]));
698
+ const value_11 = o.Doc;
699
+ const acc_9 = acc_8;
700
+ acc_10 = value_11 == null ? acc_9 : append(acc_9, singleton(["doc", string(value(value_11))]));
701
+ const value_14 = o.Format;
702
+ const acc_11 = acc_10;
703
+ acc_12 = value_14 == null ? acc_11 : append(acc_11, singleton(["format", string(value(value_14))]));
704
+ const value_16 = o.OutputBinding;
705
+ const acc_13 = acc_12;
706
+ acc_15 = value_16 == null ? acc_13 : append(acc_13, singleton(["outputBinding", encodeOutputBinding(value(value_16))]));
707
+ acc_16 = value_17 == null ? acc_15 : append(acc_15, singleton(["outputSource", value(value_17)]));
708
+ pairs = appendDynamicPropertiesExcept(CWLOutput.KnownFieldNames, o, acc_16);
709
+ let matchResult_1 = void 0, t_1 = void 0;
550
710
  if (!isEmpty(pairs)) {
551
711
  if (head(pairs)[0] === "type") {
552
712
  if (isEmpty(tail(pairs))) {
553
- matchResult_2 = 0;
713
+ matchResult_1 = 0;
554
714
  t_1 = head(pairs)[1];
555
715
  } else {
556
- matchResult_2 = 1;
716
+ matchResult_1 = 1;
557
717
  }
558
718
  } else {
559
- matchResult_2 = 1;
719
+ matchResult_1 = 1;
560
720
  }
561
721
  } else {
562
- matchResult_2 = 1;
722
+ matchResult_1 = 1;
563
723
  }
564
- switch (matchResult_2) {
724
+ switch (matchResult_1) {
565
725
  case 0:
566
726
  return [o.Name, t_1];
567
727
  default:
@@ -569,164 +729,123 @@ function encodeCWLOutput(o) {
569
729
  }
570
730
  }
571
731
  function encodeInputBinding(ib) {
572
- let value_9, acc_7, value_7, acc_5, value_4, acc_3, value_2, acc_1;
573
- return yMap((value_9 = ib.Separate, acc_7 = (value_7 = ib.ItemSeparator, acc_5 = (value_4 = ib.Position, acc_3 = (value_2 = ib.Prefix, acc_1 = empty(), value_2 == null ? acc_1 : append(acc_1, singleton(["prefix", string(value(value_2))]))), value_4 == null ? acc_3 : append(acc_3, singleton(["position", int(value(value_4))]))), value_7 == null ? acc_5 : append(acc_5, singleton(["itemSeparator", string(value(value_7))]))), value_9 == null ? acc_7 : append(acc_7, singleton(["separate", yBool(value(value_9))]))));
732
+ let acc_14 = void 0, acc_12 = void 0, acc_10 = void 0, acc_8 = void 0, acc_6 = void 0, acc_4 = void 0, acc_2 = void 0, value_1 = void 0, acc_1 = void 0, value_4 = void 0, acc_3 = void 0, value_6 = void 0, acc_5 = void 0, value_9 = void 0, acc_7 = void 0, value_11 = void 0, acc_9 = void 0, value_14 = void 0, acc_11 = void 0, value_16 = void 0, acc_13 = void 0;
733
+ return yMap((acc_14 = (acc_12 = (acc_10 = (acc_8 = (acc_6 = (acc_4 = (acc_2 = (value_1 = ib.LoadContents, acc_1 = empty$1(), value_1 == null ? acc_1 : append(acc_1, singleton(["loadContents", yBool(value(value_1))]))), value_4 = ib.Prefix, acc_3 = acc_2, value_4 == null ? acc_3 : append(acc_3, singleton(["prefix", string(value(value_4))]))), value_6 = ib._position, acc_5 = acc_4, value_6 == null ? acc_5 : append(acc_5, singleton(["position", int(value(value_6))]))), value_9 = ib.ItemSeparator, acc_7 = acc_6, value_9 == null ? acc_7 : append(acc_7, singleton(["itemSeparator", string(value(value_9))]))), value_11 = ib.Separate, acc_9 = acc_8, value_11 == null ? acc_9 : append(acc_9, singleton(["separate", yBool(value(value_11))]))), value_14 = ib.ValueFrom, acc_11 = acc_10, value_14 == null ? acc_11 : append(acc_11, singleton(["valueFrom", string(value(value_14))]))), value_16 = ib.ShellQuote, acc_13 = acc_12, value_16 == null ? acc_13 : append(acc_13, singleton(["shellQuote", yBool(value(value_16))]))), appendDynamicPropertiesExcept(InputBinding.KnownFieldNames, ib, acc_14)));
574
734
  }
575
735
  function encodeCWLInput(i) {
736
+ let t = void 0, typesList = void 0, arraySchema = void 0, matchValue = void 0, arraySchema_1 = void 0, matchValue_1 = void 0;
576
737
  let pairs;
738
+ let acc_20;
739
+ let acc_18;
740
+ let acc_16;
741
+ let acc_14;
742
+ let acc_12;
743
+ let acc_10;
744
+ let acc_8;
745
+ let acc_6;
577
746
  let acc_4;
578
747
  let acc_2;
579
- const value$1 = map((t) => {
580
- switch (t.tag) {
581
- case /* Union */
582
- 14: {
583
- const typesList = toList(t.fields[0]);
584
- let matchResult, otherType;
585
- if (!isEmpty(typesList)) {
586
- if (head(typesList).tag === /* Null */
587
- 10) {
588
- if (!isEmpty(tail(typesList))) {
589
- if (isEmpty(tail(tail(typesList)))) {
590
- matchResult = 0;
591
- otherType = head(tail(typesList));
592
- } else {
593
- matchResult = 1;
594
- }
595
- } else {
596
- matchResult = 1;
597
- }
598
- } else if (!isEmpty(tail(typesList))) {
599
- if (head(tail(typesList)).tag === /* Null */
600
- 10) {
601
- if (isEmpty(tail(tail(typesList)))) {
602
- matchResult = 0;
603
- otherType = head(typesList);
604
- } else {
605
- matchResult = 1;
606
- }
607
- } else {
608
- matchResult = 1;
609
- }
610
- } else {
611
- matchResult = 1;
612
- }
613
- } else {
614
- matchResult = 1;
615
- }
616
- switch (matchResult) {
617
- case 0:
618
- switch (otherType.tag) {
619
- case /* File */
620
- 0:
621
- case /* Directory */
622
- 1:
623
- case /* String */
624
- 3:
625
- case /* Int */
626
- 4:
627
- case /* Long */
628
- 5:
629
- case /* Float */
630
- 6:
631
- case /* Double */
632
- 7:
633
- case /* Boolean */
634
- 8:
635
- return encodeCWLType(t);
636
- case /* Array */
637
- 11: {
638
- const matchValue = otherType.fields[0].Items;
639
- switch (matchValue.tag) {
640
- case /* File */
641
- 0:
642
- case /* Directory */
643
- 1:
644
- case /* String */
645
- 3:
646
- case /* Int */
647
- 4:
648
- case /* Long */
649
- 5:
650
- case /* Float */
651
- 6:
652
- case /* Double */
653
- 7:
654
- case /* Boolean */
655
- 8:
656
- return encodeCWLType(t);
657
- default:
658
- return encodeCWLType(t);
659
- }
660
- }
661
- default:
662
- return encodeCWLType(t);
663
- }
664
- default:
665
- return encodeCWLType(t);
666
- }
667
- }
668
- case /* Array */
669
- 11: {
670
- const arraySchema_1 = t.fields[0];
671
- const matchValue_1 = arraySchema_1.Items;
672
- switch (matchValue_1.tag) {
673
- case /* File */
674
- 0:
675
- case /* Directory */
676
- 1:
677
- case /* Dirent */
678
- 2:
679
- case /* String */
680
- 3:
681
- case /* Int */
682
- 4:
683
- case /* Long */
684
- 5:
685
- case /* Float */
686
- 6:
687
- case /* Double */
688
- 7:
689
- case /* Boolean */
690
- 8:
691
- return encodeCWLType(t);
692
- default:
693
- return yMap(singleton(["type", encodeInputArraySchema(arraySchema_1)]));
694
- }
695
- }
696
- case /* Record */
697
- 12:
698
- return yMap(singleton(["type", encodeInputRecordSchema(t.fields[0])]));
699
- case /* Enum */
700
- 13:
701
- return yMap(singleton(["type", encodeInputEnumSchema(t.fields[0])]));
702
- default:
703
- return encodeCWLType(t);
704
- }
705
- }, i.Type_);
706
- const acc_1 = empty();
748
+ let value$1;
749
+ const option_1 = i.Type_;
750
+ value$1 = option_1 != null ? (t = value(option_1), t.tag === /* Union */
751
+ 14 ? (typesList = toList(t.fields[0]), !isEmpty(typesList) ? head(typesList).tag === /* Null */
752
+ 10 ? !isEmpty(tail(typesList)) ? isEmpty(tail(tail(typesList))) ? head(tail(typesList)).tag === /* File */
753
+ 0 ? encodeCWLType(t) : head(tail(typesList)).tag === /* Directory */
754
+ 1 ? encodeCWLType(t) : head(tail(typesList)).tag === /* String */
755
+ 3 ? encodeCWLType(t) : head(tail(typesList)).tag === /* Int */
756
+ 4 ? encodeCWLType(t) : head(tail(typesList)).tag === /* Long */
757
+ 5 ? encodeCWLType(t) : head(tail(typesList)).tag === /* Float */
758
+ 6 ? encodeCWLType(t) : head(tail(typesList)).tag === /* Double */
759
+ 7 ? encodeCWLType(t) : head(tail(typesList)).tag === /* Boolean */
760
+ 8 ? encodeCWLType(t) : head(tail(typesList)).tag === /* Array */
761
+ 11 ? (arraySchema = head(tail(typesList)).fields[0], matchValue = arraySchema.Items, matchValue.tag === /* File */
762
+ 0 ? encodeCWLType(t) : matchValue.tag === /* Directory */
763
+ 1 ? encodeCWLType(t) : matchValue.tag === /* String */
764
+ 3 ? encodeCWLType(t) : matchValue.tag === /* Int */
765
+ 4 ? encodeCWLType(t) : matchValue.tag === /* Long */
766
+ 5 ? encodeCWLType(t) : matchValue.tag === /* Float */
767
+ 6 ? encodeCWLType(t) : matchValue.tag === /* Double */
768
+ 7 ? encodeCWLType(t) : matchValue.tag === /* Boolean */
769
+ 8 ? encodeCWLType(t) : encodeCWLType(t)) : encodeCWLType(t) : encodeCWLType(t) : encodeCWLType(t) : !isEmpty(tail(typesList)) ? head(tail(typesList)).tag === /* Null */
770
+ 10 ? isEmpty(tail(tail(typesList))) ? head(typesList).tag === /* File */
771
+ 0 ? encodeCWLType(t) : head(typesList).tag === /* Directory */
772
+ 1 ? encodeCWLType(t) : head(typesList).tag === /* String */
773
+ 3 ? encodeCWLType(t) : head(typesList).tag === /* Int */
774
+ 4 ? encodeCWLType(t) : head(typesList).tag === /* Long */
775
+ 5 ? encodeCWLType(t) : head(typesList).tag === /* Float */
776
+ 6 ? encodeCWLType(t) : head(typesList).tag === /* Double */
777
+ 7 ? encodeCWLType(t) : head(typesList).tag === /* Boolean */
778
+ 8 ? encodeCWLType(t) : head(typesList).tag === /* Array */
779
+ 11 ? (arraySchema = head(typesList).fields[0], matchValue = arraySchema.Items, matchValue.tag === /* File */
780
+ 0 ? encodeCWLType(t) : matchValue.tag === /* Directory */
781
+ 1 ? encodeCWLType(t) : matchValue.tag === /* String */
782
+ 3 ? encodeCWLType(t) : matchValue.tag === /* Int */
783
+ 4 ? encodeCWLType(t) : matchValue.tag === /* Long */
784
+ 5 ? encodeCWLType(t) : matchValue.tag === /* Float */
785
+ 6 ? encodeCWLType(t) : matchValue.tag === /* Double */
786
+ 7 ? encodeCWLType(t) : matchValue.tag === /* Boolean */
787
+ 8 ? encodeCWLType(t) : encodeCWLType(t)) : encodeCWLType(t) : encodeCWLType(t) : encodeCWLType(t) : encodeCWLType(t) : encodeCWLType(t)) : t.tag === /* Array */
788
+ 11 ? (arraySchema_1 = t.fields[0], matchValue_1 = arraySchema_1.Items, matchValue_1.tag === /* File */
789
+ 0 ? encodeCWLType(t) : matchValue_1.tag === /* Directory */
790
+ 1 ? encodeCWLType(t) : matchValue_1.tag === /* Dirent */
791
+ 2 ? encodeCWLType(t) : matchValue_1.tag === /* String */
792
+ 3 ? encodeCWLType(t) : matchValue_1.tag === /* Int */
793
+ 4 ? encodeCWLType(t) : matchValue_1.tag === /* Long */
794
+ 5 ? encodeCWLType(t) : matchValue_1.tag === /* Float */
795
+ 6 ? encodeCWLType(t) : matchValue_1.tag === /* Double */
796
+ 7 ? encodeCWLType(t) : matchValue_1.tag === /* Boolean */
797
+ 8 ? encodeCWLType(t) : yMap(singleton(["type", encodeInputArraySchema(arraySchema_1)]))) : t.tag === /* Record */
798
+ 12 ? yMap(singleton(["type", encodeInputRecordSchema(t.fields[0])])) : t.tag === /* Enum */
799
+ 13 ? yMap(singleton(["type", encodeInputEnumSchema(t.fields[0])])) : encodeCWLType(t)) : void 0;
800
+ const acc_1 = empty$1();
707
801
  acc_2 = value$1 == null ? acc_1 : append(acc_1, singleton(["type", value(value$1)]));
708
- const value_2 = i.InputBinding;
802
+ const value_3 = i.Label;
709
803
  const acc_3 = acc_2;
710
- acc_4 = value_2 == null ? acc_3 : append(acc_3, singleton(["inputBinding", encodeInputBinding(value(value_2))]));
711
- const value_4 = i.Optional;
804
+ acc_4 = value_3 == null ? acc_3 : append(acc_3, singleton(["label", string(value(value_3))]));
805
+ const value_5 = i.SecondaryFiles;
712
806
  const acc_5 = acc_4;
713
- pairs = value_4 == null ? acc_5 : append(acc_5, singleton(["optional", yBool(value(value_4))]));
714
- let matchResult_1, t_1;
807
+ acc_6 = value_5 == null ? acc_5 : append(acc_5, singleton(["secondaryFiles", value(value_5)]));
808
+ const value_7 = i.Streamable;
809
+ const acc_7 = acc_6;
810
+ acc_8 = value_7 == null ? acc_7 : append(acc_7, singleton(["streamable", yBool(value(value_7))]));
811
+ const value_10 = i.Doc;
812
+ const acc_9 = acc_8;
813
+ acc_10 = value_10 == null ? acc_9 : append(acc_9, singleton(["doc", string(value(value_10))]));
814
+ const value_13 = i.Format;
815
+ const acc_11 = acc_10;
816
+ acc_12 = value_13 == null ? acc_11 : append(acc_11, singleton(["format", string(value(value_13))]));
817
+ const value_15 = i.LoadContents;
818
+ const acc_13 = acc_12;
819
+ acc_14 = value_15 == null ? acc_13 : append(acc_13, singleton(["loadContents", yBool(value(value_15))]));
820
+ let encoder_9;
821
+ const f1 = LoadListingEnum_get_toCwlString();
822
+ encoder_9 = (arg) => string(f1(arg));
823
+ const value_18 = i.LoadListing;
824
+ const acc_15 = acc_14;
825
+ acc_16 = value_18 == null ? acc_15 : append(acc_15, singleton(["loadListing", encoder_9(value(value_18))]));
826
+ const value_20 = i.DefaultValue;
827
+ const acc_17 = acc_16;
828
+ acc_18 = value_20 == null ? acc_17 : append(acc_17, singleton(["default", value(value_20)]));
829
+ const value_22 = i.InputBinding;
830
+ const acc_19 = acc_18;
831
+ acc_20 = value_22 == null ? acc_19 : append(acc_19, singleton(["inputBinding", encodeInputBinding(value(value_22))]));
832
+ pairs = appendDynamicPropertiesExcept(CWLInput.KnownFieldNames, i, acc_20);
833
+ let matchResult = void 0, t_1 = void 0;
715
834
  if (!isEmpty(pairs)) {
716
835
  if (head(pairs)[0] === "type") {
717
836
  if (isEmpty(tail(pairs))) {
718
- matchResult_1 = 0;
837
+ matchResult = 0;
719
838
  t_1 = head(pairs)[1];
720
839
  } else {
721
- matchResult_1 = 1;
840
+ matchResult = 1;
722
841
  }
723
842
  } else {
724
- matchResult_1 = 1;
843
+ matchResult = 1;
725
844
  }
726
845
  } else {
727
- matchResult_1 = 1;
846
+ matchResult = 1;
728
847
  }
729
- switch (matchResult_1) {
848
+ switch (matchResult) {
730
849
  case 0:
731
850
  return [i.Name, t_1];
732
851
  default:
@@ -734,81 +853,53 @@ function encodeCWLInput(i) {
734
853
  }
735
854
  }
736
855
  function encodeSchemaDefRequirementType(s) {
737
- return yMap(ofArray([["name", string(s.Name)], ["type", encodeCWLType(s.Type_)]]));
856
+ let acc = void 0;
857
+ return yMap((acc = ofArray([["name", string(s.Name)], ["type", encodeCWLType(s.Type_)]]), appendDynamicPropertiesExcept(SchemaDefRequirementType.KnownFieldNames, s, acc)));
738
858
  }
739
859
  function encodeRequirement(r) {
740
- let value_23, acc_15, value_20, acc_13, value_17, acc_11, value_14, acc_9, value_11, acc_7, value_8, acc_5, value_5, acc_3, value_2, acc_1;
860
+ let acc_17 = void 0, acc_15 = void 0, acc_13 = void 0, acc_11 = void 0, acc_9 = void 0, acc_7 = void 0, acc_5 = void 0, acc_3 = void 0, value_5 = void 0, acc_4 = void 0, value_8 = void 0, acc_6 = void 0, value_11 = void 0, acc_8 = void 0, value_14 = void 0, acc_10 = void 0, value_17 = void 0, acc_12 = void 0, value_20 = void 0, acc_14 = void 0, value_23 = void 0, acc_16 = void 0, acc_24 = void 0, acc_32 = void 0, acc_33 = void 0, acc_34 = void 0, acc_2 = void 0, value_2 = void 0, option_1 = void 0, entries = void 0, acc_1 = void 0;
741
861
  switch (r.tag) {
742
862
  case /* SchemaDefRequirement */
743
863
  1: {
744
864
  const types = r.fields[0];
745
- return yMap(ofArray([["class", string("SchemaDefRequirement")], ["types", YAMLElement_Sequence(ofSeq(map$2(encodeSchemaDefRequirementType, types)))]]));
865
+ return yMap(ofArray([["class", string("SchemaDefRequirement")], ["types", YAMLElement_Sequence(ofSeq(map$1(encodeSchemaDefRequirementType, types)))]]));
746
866
  }
747
867
  case /* DockerRequirement */
748
868
  2: {
749
869
  const dr = r.fields[0];
750
- return yMap((value_23 = dr.DockerRunOptions, acc_15 = (value_20 = dr.DockerOutputDirectory, acc_13 = (value_17 = dr.DockerImport, acc_11 = (value_14 = dr.DockerLoad, acc_9 = (value_11 = dr.DockerImageId, acc_7 = (value_8 = dr.DockerFile, acc_5 = (value_5 = dr.DockerPull, acc_3 = singleton(["class", string("DockerRequirement")]), value_5 == null ? acc_3 : append(acc_3, singleton(["dockerPull", string(value(value_5))]))), value_8 == null ? acc_5 : append(acc_5, singleton(["dockerFile", encodeSchemaSaladString(value(value_8))]))), value_11 == null ? acc_7 : append(acc_7, singleton(["dockerImageId", string(value(value_11))]))), value_14 == null ? acc_9 : append(acc_9, singleton(["dockerLoad", string(value(value_14))]))), value_17 == null ? acc_11 : append(acc_11, singleton(["dockerImport", string(value(value_17))]))), value_20 == null ? acc_13 : append(acc_13, singleton(["dockerOutputDirectory", string(value(value_20))]))), value_23 == null ? acc_15 : append(acc_15, singleton(["cwltool:dockerRunOptions", YAMLElement_Sequence(ofSeq(map$2(string, value(value_23))))]))));
870
+ return yMap((acc_17 = (acc_15 = (acc_13 = (acc_11 = (acc_9 = (acc_7 = (acc_5 = (acc_3 = singleton(["class", string("DockerRequirement")]), value_5 = dr.DockerPull, acc_4 = acc_3, value_5 == null ? acc_4 : append(acc_4, singleton(["dockerPull", string(value(value_5))]))), value_8 = dr.DockerFile, acc_6 = acc_5, value_8 == null ? acc_6 : append(acc_6, singleton(["dockerFile", encodeSchemaSaladString(value(value_8))]))), value_11 = dr.DockerImageId, acc_8 = acc_7, value_11 == null ? acc_8 : append(acc_8, singleton(["dockerImageId", string(value(value_11))]))), value_14 = dr.DockerLoad, acc_10 = acc_9, value_14 == null ? acc_10 : append(acc_10, singleton(["dockerLoad", string(value(value_14))]))), value_17 = dr.DockerImport, acc_12 = acc_11, value_17 == null ? acc_12 : append(acc_12, singleton(["dockerImport", string(value(value_17))]))), value_20 = dr.DockerOutputDirectory, acc_14 = acc_13, value_20 == null ? acc_14 : append(acc_14, singleton(["dockerOutputDirectory", string(value(value_20))]))), value_23 = dr.DockerRunOptions, acc_16 = acc_15, value_23 == null ? acc_16 : append(acc_16, singleton(["cwltool:dockerRunOptions", YAMLElement_Sequence(ofSeq(map$1(string, value(value_23))))]))), appendDynamicPropertiesExcept(DockerRequirement.KnownFieldNames, dr, acc_17)));
751
871
  }
752
872
  case /* SoftwareRequirement */
753
873
  3: {
754
874
  const pkgs = r.fields[0];
755
- return yMap(ofArray([["class", string("SoftwareRequirement")], ["packages", YAMLElement_Sequence(ofSeq(map$2((p) => {
756
- let value_29, acc_20, value_26, acc_18;
757
- return yMap((value_29 = p.Specs, acc_20 = (value_26 = p.Version, acc_18 = append(empty(), singleton(["package", string(p.Package)])), value_26 == null ? acc_18 : append(acc_18, singleton(["version", YAMLElement_Sequence(ofSeq(map$2(string, value(value_26))))]))), value_29 == null ? acc_20 : append(acc_20, singleton(["specs", YAMLElement_Sequence(ofSeq(map$2(string, value(value_29))))]))));
875
+ return yMap(ofArray([["class", string("SoftwareRequirement")], ["packages", YAMLElement_Sequence(ofSeq(map$1((p) => {
876
+ let acc_23 = void 0, acc_21 = void 0, acc_19 = void 0, value_26 = void 0, acc_20 = void 0, value_29 = void 0, acc_22 = void 0;
877
+ return yMap((acc_23 = (acc_21 = (acc_19 = append(empty$1(), singleton(["package", string(p.Package)])), value_26 = p.Version, acc_20 = acc_19, value_26 == null ? acc_20 : append(acc_20, singleton(["version", YAMLElement_Sequence(ofSeq(map$1(string, value(value_26))))]))), value_29 = p.Specs, acc_22 = acc_21, value_29 == null ? acc_22 : append(acc_22, singleton(["specs", YAMLElement_Sequence(ofSeq(map$1(string, value(value_29))))]))), appendDynamicPropertiesExcept(SoftwarePackage.KnownFieldNames, p, acc_23)));
758
878
  }, pkgs)))]]));
759
879
  }
760
880
  case /* LoadListingRequirement */
761
881
  4: {
762
882
  const loadListing = r.fields[0];
763
- return yMap(ofArray([["class", string("LoadListingRequirement")], ["loadListing", string(LoadListingEnum_get_toCwlString()(loadListing.LoadListing))]]));
883
+ return yMap((acc_24 = ofArray([["class", string("LoadListingRequirement")], ["loadListing", string(LoadListingEnum_get_toCwlString()(loadListing.LoadListing))]]), appendDynamicPropertiesExcept(LoadListingRequirementValue.KnownFieldNames, loadListing, acc_24)));
764
884
  }
765
885
  case /* InitialWorkDirRequirement */
766
886
  5: {
767
887
  const listing = r.fields[0];
768
- const encodeDynamicObjWithClass = (className, dynObj) => {
769
- const dynamicPairs = toList(choose$1((kvp) => {
770
- const matchValue = kvp[1];
771
- if (typeof matchValue === "string") {
772
- return [kvp[0], string(matchValue)];
773
- } else if (typeof matchValue === "boolean") {
774
- return [kvp[0], yBool(matchValue)];
775
- } else if (typeof matchValue === "number") {
776
- return [kvp[0], int(matchValue)];
777
- } else if (typeof matchValue === "bigint") {
778
- return [kvp[0], string(int64ToString(matchValue))];
779
- } else if (typeof matchValue === "number") {
780
- return [kvp[0], float(matchValue)];
781
- } else if (matchValue instanceof YAMLElement) {
782
- return [kvp[0], matchValue];
783
- } else {
784
- return void 0;
785
- }
786
- }, dynObj.GetProperties(false)));
787
- if (exists((tupledArg) => tupledArg[0] === "class", dynamicPairs)) {
788
- return yMap(dynamicPairs);
789
- } else {
790
- return yMap(cons(["class", string(className)], dynamicPairs));
791
- }
792
- };
793
- return yMap(ofArray([["class", string("InitialWorkDirRequirement")], ["listing", YAMLElement_Sequence(ofSeq(map$2((_arg_1) => {
794
- let value_34, acc_25, value_32, acc_22;
795
- switch (_arg_1.tag) {
888
+ return yMap(ofArray([["class", string("InitialWorkDirRequirement")], ["listing", YAMLElement_Sequence(ofSeq(map$1((_arg) => {
889
+ let acc_30 = void 0, acc_28 = void 0, value_32 = void 0, acc_26 = void 0, value_34 = void 0, acc_29 = void 0;
890
+ switch (_arg.tag) {
796
891
  case /* StringEntry */
797
892
  1:
798
- return encodeSchemaSaladString(_arg_1.fields[0]);
893
+ return encodeSchemaSaladString(_arg.fields[0]);
799
894
  case /* FileEntry */
800
- 2: {
801
- const arg_1 = _arg_1.fields[0];
802
- return encodeDynamicObjWithClass("File", arg_1);
803
- }
895
+ 2:
896
+ return yMap(encodeFilePairs("class", "File", _arg.fields[0]));
804
897
  case /* DirectoryEntry */
805
- 3: {
806
- const arg_3 = _arg_1.fields[0];
807
- return encodeDynamicObjWithClass("Directory", arg_3);
808
- }
898
+ 3:
899
+ return yMap(encodeDirectoryPairs("class", "Directory", _arg.fields[0]));
809
900
  default: {
810
- const d = _arg_1.fields[0];
811
- return yMap((value_34 = d.Writable, acc_25 = append((value_32 = d.Entryname, acc_22 = empty(), value_32 == null ? acc_22 : append(acc_22, singleton(["entryname", encodeSchemaSaladString(value(value_32))]))), singleton(["entry", encodeSchemaSaladString(d.Entry)])), value_34 == null ? acc_25 : append(acc_25, singleton(["writable", yBool(value(value_34))]))));
901
+ const d = _arg.fields[0];
902
+ return yMap((acc_30 = (acc_28 = append((value_32 = d.Entryname, acc_26 = empty$1(), value_32 == null ? acc_26 : append(acc_26, singleton(["entryname", encodeSchemaSaladString(value(value_32))]))), singleton(["entry", encodeSchemaSaladString(d.Entry)])), value_34 = d.Writable, acc_29 = acc_28, value_34 == null ? acc_29 : append(acc_29, singleton(["writable", yBool(value(value_34))]))), appendDynamicPropertiesExcept(DirentInstance.KnownFieldNames, d, acc_30)));
812
903
  }
813
904
  }
814
905
  }, listing)))]]));
@@ -816,9 +907,10 @@ function encodeRequirement(r) {
816
907
  case /* EnvVarRequirement */
817
908
  6: {
818
909
  const envs = r.fields[0];
819
- return yMap(ofArray([["class", string("EnvVarRequirement")], ["envDef", YAMLElement_Sequence(ofSeq(map$2((e) => {
910
+ return yMap(ofArray([["class", string("EnvVarRequirement")], ["envDef", YAMLElement_Sequence(ofSeq(map$1((e) => {
911
+ let acc_31 = void 0;
820
912
  const v_12 = normalizeEnvValueForEncode(e.EnvValue);
821
- return yMap(ofArray([["envName", string(e.EnvName)], ["envValue", string(v_12)]]));
913
+ return yMap((acc_31 = ofArray([["envName", string(e.EnvName)], ["envValue", string(v_12)]]), appendDynamicPropertiesExcept(EnvironmentDef.KnownFieldNames, e, acc_31)));
822
914
  }, envs)))]]));
823
915
  }
824
916
  case /* ShellCommandRequirement */
@@ -829,11 +921,11 @@ function encodeRequirement(r) {
829
921
  const rr = r.fields[0];
830
922
  const tryEncodeScalar = (key, value_35) => {
831
923
  if (typeof value_35 === "number") {
924
+ return [key, yFloat(value_35)];
925
+ } else if (typeof value_35 === "number") {
832
926
  return [key, int(value_35)];
833
927
  } else if (typeof value_35 === "bigint") {
834
928
  return [key, YAMLElement_Value(YAMLContent_create_Z1C3A29C9(int64ToString(value_35)))];
835
- } else if (typeof value_35 === "number") {
836
- return [key, float(value_35)];
837
929
  } else if (typeof value_35 === "string") {
838
930
  return [key, string(value_35)];
839
931
  } else if (typeof value_35 === "boolean") {
@@ -842,16 +934,27 @@ function encodeRequirement(r) {
842
934
  return void 0;
843
935
  }
844
936
  };
845
- const dynamicPairs_1 = toList(choose$1((kvp_1) => {
846
- const matchValue_1 = kvp_1[1];
847
- return tryEncodeScalar(kvp_1[0], matchValue_1);
848
- }, rr.GetProperties(false)));
849
- return yMap(append(singleton(["class", string("ResourceRequirement")]), dynamicPairs_1));
937
+ const knownPairs = choose$1((tupledArg) => {
938
+ const binder_2 = curry2(tryEncodeScalar)(tupledArg[0]);
939
+ const option_3 = tupledArg[1];
940
+ if (option_3 != null) {
941
+ return binder_2(value(option_3));
942
+ } else {
943
+ return void 0;
944
+ }
945
+ }, rr.KnownFieldValues);
946
+ const dynamicPairs = toList(choose((kvp) => {
947
+ const matchValue = kvp[1];
948
+ return tryEncodeScalar(kvp[0], matchValue);
949
+ }, dynamicPropertiesExcept(ofSeq$1(map$1((x) => x, ResourceRequirementInstance.KnownFieldNames), {
950
+ Compare: (x_1, y) => comparePrimitives(x_1, y) | 0
951
+ }), rr)));
952
+ return yMap(append(singleton(["class", string("ResourceRequirement")]), append(knownPairs, dynamicPairs)));
850
953
  }
851
954
  case /* WorkReuseRequirement */
852
955
  9: {
853
956
  const workReuse = r.fields[0];
854
- return yMap(ofArray([["class", string("WorkReuse")], ["enableReuse", yBool(workReuse.EnableReuse)]]));
957
+ return yMap((acc_32 = ofArray([["class", string("WorkReuse")], ["enableReuse", yBool(workReuse.EnableReuse)]]), appendDynamicPropertiesExcept(WorkReuseRequirementValue.KnownFieldNames, workReuse, acc_32)));
855
958
  }
856
959
  case /* WorkReuseExpressionRequirement */
857
960
  10: {
@@ -861,7 +964,7 @@ function encodeRequirement(r) {
861
964
  case /* NetworkAccessRequirement */
862
965
  11: {
863
966
  const networkAccess = r.fields[0];
864
- return yMap(ofArray([["class", string("NetworkAccess")], ["networkAccess", yBool(networkAccess.NetworkAccess)]]));
967
+ return yMap((acc_33 = ofArray([["class", string("NetworkAccess")], ["networkAccess", yBool(networkAccess.NetworkAccess)]]), appendDynamicPropertiesExcept(NetworkAccessRequirementValue.KnownFieldNames, networkAccess, acc_33)));
865
968
  }
866
969
  case /* NetworkAccessExpressionRequirement */
867
970
  12: {
@@ -871,7 +974,7 @@ function encodeRequirement(r) {
871
974
  case /* InplaceUpdateRequirement */
872
975
  13: {
873
976
  const inplaceUpdate = r.fields[0];
874
- return yMap(ofArray([["class", string("InplaceUpdateRequirement")], ["inplaceUpdate", yBool(inplaceUpdate.InplaceUpdate)]]));
977
+ return yMap((acc_34 = ofArray([["class", string("InplaceUpdateRequirement")], ["inplaceUpdate", yBool(inplaceUpdate.InplaceUpdate)]]), appendDynamicPropertiesExcept(InplaceUpdateRequirementValue.KnownFieldNames, inplaceUpdate, acc_34)));
875
978
  }
876
979
  case /* ToolTimeLimitRequirement */
877
980
  14: {
@@ -892,29 +995,26 @@ function encodeRequirement(r) {
892
995
  case /* StepInputExpressionRequirement */
893
996
  18:
894
997
  return yMap(singleton(["class", string("StepInputExpressionRequirement")]));
895
- default:
896
- return yMap((value_2 = bind((entries) => {
897
- if (entries.length > 0) {
898
- return entries;
899
- } else {
900
- return void 0;
901
- }
902
- }, r.fields[0].ExpressionLib), acc_1 = singleton(["class", string("InlineJavascriptRequirement")]), value_2 == null ? acc_1 : append(acc_1, singleton(["expressionLib", YAMLElement_Sequence(ofSeq(map$2(string, value(value_2))))]))));
998
+ default: {
999
+ const value$1 = r.fields[0];
1000
+ return yMap((acc_2 = (value_2 = (option_1 = value$1.ExpressionLib, option_1 != null ? (entries = value(option_1), entries.length > 0 ? entries : void 0) : void 0), acc_1 = singleton(["class", string("InlineJavascriptRequirement")]), value_2 == null ? acc_1 : append(acc_1, singleton(["expressionLib", YAMLElement_Sequence(ofSeq(map$1(string, value(value_2))))]))), appendDynamicPropertiesExcept(InlineJavascriptRequirementValue.KnownFieldNames, value$1, acc_2)));
1001
+ }
903
1002
  }
904
1003
  }
905
1004
  function encodeHintEntry(hint) {
906
1005
  if (hint.tag === /* UnknownHint */
907
1006
  1) {
908
- return hint.fields[0].Raw;
1007
+ const unknownHint = hint.fields[0];
1008
+ return unknownHint.Raw;
909
1009
  } else {
910
1010
  return encodeRequirement(hint.fields[0]);
911
1011
  }
912
1012
  }
913
1013
  function encodeSourceArray(sources) {
914
1014
  if (sources.length === 1) {
915
- return string(sources[0]);
1015
+ return string(item(0, sources));
916
1016
  } else {
917
- return YAMLElement_Sequence(ofSeq(map$2((s) => YAMLElement_Object(singleton(YAMLElement_Value(YAMLContent_create_Z1C3A29C9(s)))), sources)));
1017
+ return YAMLElement_Sequence(ofSeq(map$1((s) => YAMLElement_Object$(singleton(YAMLElement_Value(YAMLContent_create_Z1C3A29C9(s)))), sources)));
918
1018
  }
919
1019
  }
920
1020
  function encodeLinkMergeMethod(linkMerge) {
@@ -928,34 +1028,44 @@ function encodeScatterMethod(scatterMethod) {
928
1028
  }
929
1029
  function encodeStepInput(si) {
930
1030
  let pairs;
931
- const value_21 = si.Label;
932
- let acc_17;
933
- const value_18 = si.LoadListing;
934
- let acc_15;
935
- const value_15 = si.LoadContents;
936
- let acc_13;
937
- const value_13 = si.Doc;
938
- let acc_11;
939
- const value_10 = si.PickValue;
940
- let acc_9;
941
- const value_8 = si.LinkMerge;
942
- let acc_7;
943
- const value_6 = si.ValueFrom;
944
- let acc_5;
945
- const value_3 = si.DefaultValue;
946
- let acc_3;
1031
+ let acc_18;
1032
+ let acc_16;
1033
+ let acc_14;
1034
+ let acc_12;
1035
+ let acc_10;
1036
+ let acc_8;
1037
+ let acc_6;
1038
+ let acc_4;
1039
+ let acc_2;
947
1040
  const value_1 = si.Source;
948
- const acc_1 = empty();
949
- acc_3 = value_1 == null ? acc_1 : append(acc_1, singleton(["source", encodeSourceArray(value(value_1))]));
950
- acc_5 = value_3 == null ? acc_3 : append(acc_3, singleton(["default", value(value_3)]));
951
- acc_7 = value_6 == null ? acc_5 : append(acc_5, singleton(["valueFrom", string(value(value_6))]));
952
- acc_9 = value_8 == null ? acc_7 : append(acc_7, singleton(["linkMerge", encodeLinkMergeMethod(value(value_8))]));
953
- acc_11 = value_10 == null ? acc_9 : append(acc_9, singleton(["pickValue", encodePickValueMethod(value(value_10))]));
954
- acc_13 = value_13 == null ? acc_11 : append(acc_11, singleton(["doc", string(value(value_13))]));
955
- acc_15 = value_15 == null ? acc_13 : append(acc_13, singleton(["loadContents", yBool(value(value_15))]));
956
- acc_17 = value_18 == null ? acc_15 : append(acc_15, singleton(["loadListing", string(value(value_18))]));
957
- pairs = value_21 == null ? acc_17 : append(acc_17, singleton(["label", string(value(value_21))]));
958
- let matchResult, s_1;
1041
+ const acc_1 = empty$1();
1042
+ acc_2 = value_1 == null ? acc_1 : append(acc_1, singleton(["source", encodeSourceArray(value(value_1))]));
1043
+ const value_3 = si.DefaultValue;
1044
+ const acc_3 = acc_2;
1045
+ acc_4 = value_3 == null ? acc_3 : append(acc_3, singleton(["default", value(value_3)]));
1046
+ const value_6 = si.ValueFrom;
1047
+ const acc_5 = acc_4;
1048
+ acc_6 = value_6 == null ? acc_5 : append(acc_5, singleton(["valueFrom", string(value(value_6))]));
1049
+ const value_8 = si.LinkMerge;
1050
+ const acc_7 = acc_6;
1051
+ acc_8 = value_8 == null ? acc_7 : append(acc_7, singleton(["linkMerge", encodeLinkMergeMethod(value(value_8))]));
1052
+ const value_10 = si.PickValue;
1053
+ const acc_9 = acc_8;
1054
+ acc_10 = value_10 == null ? acc_9 : append(acc_9, singleton(["pickValue", encodePickValueMethod(value(value_10))]));
1055
+ const value_13 = si.Doc;
1056
+ const acc_11 = acc_10;
1057
+ acc_12 = value_13 == null ? acc_11 : append(acc_11, singleton(["doc", string(value(value_13))]));
1058
+ const value_15 = si.LoadContents;
1059
+ const acc_13 = acc_12;
1060
+ acc_14 = value_15 == null ? acc_13 : append(acc_13, singleton(["loadContents", yBool(value(value_15))]));
1061
+ const value_18 = si.LoadListing;
1062
+ const acc_15 = acc_14;
1063
+ acc_16 = value_18 == null ? acc_15 : append(acc_15, singleton(["loadListing", string(value(value_18))]));
1064
+ const value_21 = si.Label;
1065
+ const acc_17 = acc_16;
1066
+ acc_18 = value_21 == null ? acc_17 : append(acc_17, singleton(["label", string(value(value_21))]));
1067
+ pairs = appendDynamicPropertiesExcept(StepInput.KnownFieldNames, si, acc_18);
1068
+ let matchResult = void 0, s_1 = void 0;
959
1069
  if (!isEmpty(pairs)) {
960
1070
  if (head(pairs)[0] === "source") {
961
1071
  if (isEmpty(tail(pairs))) {
@@ -982,13 +1092,14 @@ function encodeStepInput(si) {
982
1092
  }
983
1093
  }
984
1094
  function encodeStepInputs(inputs) {
985
- return yMap(toList(map$2(encodeStepInput, inputs)));
1095
+ return yMap(toList(map$1(encodeStepInput, inputs)));
986
1096
  }
987
1097
  function encodeStepOutputParameter(so) {
988
- return yMap(singleton(["id", string(so.Id)]));
1098
+ let acc = void 0;
1099
+ return yMap((acc = singleton(["id", string(so.Id)]), appendDynamicPropertiesExcept(StepOutputParameter.KnownFieldNames, so, acc)));
989
1100
  }
990
1101
  function encodeStepOutputs(outputs) {
991
- return YAMLElement_Sequence(ofSeq(map$2((output) => {
1102
+ return YAMLElement_Sequence(ofSeq(map$1((output) => {
992
1103
  if (output.tag === /* StepOutputRecord */
993
1104
  1) {
994
1105
  return encodeStepOutputParameter(output.fields[0]);
@@ -999,9 +1110,9 @@ function encodeStepOutputs(outputs) {
999
1110
  }
1000
1111
  function encodeScatter(scatter) {
1001
1112
  if (scatter.length === 1) {
1002
- return string(scatter[0]);
1113
+ return string(item(0, scatter));
1003
1114
  } else {
1004
- return YAMLElement_Sequence(ofSeq(map$2(string, scatter)));
1115
+ return YAMLElement_Sequence(ofSeq(map$1(string, scatter)));
1005
1116
  }
1006
1117
  }
1007
1118
  function encodeWorkflowStepRun(run) {
@@ -1011,7 +1122,7 @@ function encodeWorkflowStepRun(run) {
1011
1122
  const toolObj = run.fields[0];
1012
1123
  const matchValue = WorkflowStepRunOps_tryGetTool(run);
1013
1124
  if (matchValue == null) {
1014
- throw new Error(toText(interpolate("RunCommandLineTool must contain CWLToolDescription but got %A%P()", [toolObj])));
1125
+ throw ArgumentException_$ctor_Z721C83C5(`RunCommandLineTool must contain CWLToolDescription but got ${interpolate("%A%P()", [toolObj])}`);
1015
1126
  } else {
1016
1127
  return encodeToolDescriptionElement(value(matchValue));
1017
1128
  }
@@ -1021,7 +1132,7 @@ function encodeWorkflowStepRun(run) {
1021
1132
  const workflowObj = run.fields[0];
1022
1133
  const matchValue_1 = WorkflowStepRunOps_tryGetWorkflow(run);
1023
1134
  if (matchValue_1 == null) {
1024
- throw new Error(toText(interpolate("RunWorkflow must contain CWLWorkflowDescription but got %A%P()", [workflowObj])));
1135
+ throw ArgumentException_$ctor_Z721C83C5(`RunWorkflow must contain CWLWorkflowDescription but got ${interpolate("%A%P()", [workflowObj])}`);
1025
1136
  } else {
1026
1137
  return encodeWorkflowDescriptionElement(value(matchValue_1));
1027
1138
  }
@@ -1031,7 +1142,7 @@ function encodeWorkflowStepRun(run) {
1031
1142
  const expressionToolObj = run.fields[0];
1032
1143
  const matchValue_2 = WorkflowStepRunOps_tryGetExpressionTool(run);
1033
1144
  if (matchValue_2 == null) {
1034
- throw new Error(toText(interpolate("RunExpressionTool must contain CWLExpressionToolDescription but got %A%P()", [expressionToolObj])));
1145
+ throw ArgumentException_$ctor_Z721C83C5(`RunExpressionTool must contain CWLExpressionToolDescription but got ${interpolate("%A%P()", [expressionToolObj])}`);
1035
1146
  } else {
1036
1147
  return encodeExpressionToolDescriptionElement(value(matchValue_2));
1037
1148
  }
@@ -1041,7 +1152,7 @@ function encodeWorkflowStepRun(run) {
1041
1152
  const operationObj = run.fields[0];
1042
1153
  const matchValue_3 = WorkflowStepRunOps_tryGetOperation(run);
1043
1154
  if (matchValue_3 == null) {
1044
- throw new Error(toText(interpolate("RunOperation must contain CWLOperationDescription but got %A%P()", [operationObj])));
1155
+ throw ArgumentException_$ctor_Z721C83C5(`RunOperation must contain CWLOperationDescription but got ${interpolate("%A%P()", [operationObj])}`);
1045
1156
  } else {
1046
1157
  return encodeOperationDescriptionElement(value(matchValue_3));
1047
1158
  }
@@ -1051,27 +1162,37 @@ function encodeWorkflowStepRun(run) {
1051
1162
  }
1052
1163
  }
1053
1164
  function encodeToolDescriptionElement(td) {
1054
- let h, r, bc, matchValue_3, i, i_1, matchValue_4, md;
1165
+ let intent = void 0, h = void 0, r = void 0, bc = void 0, matchValue_3 = void 0, i = void 0, i_1 = void 0;
1055
1166
  let basePairs;
1056
1167
  let acc_6;
1057
1168
  let acc_4;
1058
1169
  let acc_2;
1059
1170
  const acc = ofArray([["cwlVersion", string(td.CWLVersion)], ["class", string("CommandLineTool")]]);
1060
- const pairOpt_1 = map((id) => ["id", string(id)], td.Id);
1171
+ let pairOpt_1;
1172
+ const option_1 = td.Id;
1173
+ pairOpt_1 = option_1 != null ? ["id", string(value(option_1))] : void 0;
1061
1174
  const acc_1 = acc;
1062
1175
  acc_2 = pairOpt_1 == null ? acc_1 : append(acc_1, singleton(value(pairOpt_1)));
1063
- const pairOpt_3 = map(encodeLabel, td.Label);
1176
+ let pairOpt_3;
1177
+ const option_3 = td.Label;
1178
+ pairOpt_3 = option_3 != null ? encodeLabel(value(option_3)) : void 0;
1064
1179
  const acc_3 = acc_2;
1065
1180
  acc_4 = pairOpt_3 == null ? acc_3 : append(acc_3, singleton(value(pairOpt_3)));
1066
- const pairOpt_5 = map(encodeDoc, td.Doc);
1181
+ let pairOpt_5;
1182
+ const option_5 = td.Doc;
1183
+ pairOpt_5 = option_5 != null ? encodeDoc(value(option_5)) : void 0;
1067
1184
  const acc_5 = acc_4;
1068
1185
  acc_6 = pairOpt_5 == null ? acc_5 : append(acc_5, singleton(value(pairOpt_5)));
1069
- const pairOpt_7 = map(encodeIntent, filter((intent) => intent.length > 0, td.Intent));
1186
+ let pairOpt_7;
1187
+ let option_9;
1188
+ const option_7 = td.Intent;
1189
+ option_9 = option_7 != null ? (intent = value(option_7), intent.length > 0) ? option_7 : void 0 : void 0;
1190
+ pairOpt_7 = option_9 != null ? encodeIntent(value(option_9)) : void 0;
1070
1191
  const acc_7 = acc_6;
1071
1192
  basePairs = pairOpt_7 == null ? acc_7 : append(acc_7, singleton(value(pairOpt_7)));
1072
1193
  let withHints;
1073
1194
  const matchValue = td.Hints;
1074
- let matchResult, h_1;
1195
+ let matchResult = void 0, h_1 = void 0;
1075
1196
  if (matchValue != null) {
1076
1197
  if (h = value(matchValue), h.length > 0) {
1077
1198
  matchResult = 0;
@@ -1084,7 +1205,7 @@ function encodeToolDescriptionElement(td) {
1084
1205
  }
1085
1206
  switch (matchResult) {
1086
1207
  case 0: {
1087
- withHints = append(basePairs, singleton(["hints", YAMLElement_Sequence(ofSeq(map$2(encodeHintEntry, h_1)))]));
1208
+ withHints = append(basePairs, singleton(["hints", YAMLElement_Sequence(ofSeq(map$1(encodeHintEntry, h_1)))]));
1088
1209
  break;
1089
1210
  }
1090
1211
  default:
@@ -1092,7 +1213,7 @@ function encodeToolDescriptionElement(td) {
1092
1213
  }
1093
1214
  let withRequirements;
1094
1215
  const matchValue_1 = td.Requirements;
1095
- let matchResult_1, r_1;
1216
+ let matchResult_1 = void 0, r_1 = void 0;
1096
1217
  if (matchValue_1 != null) {
1097
1218
  if (r = value(matchValue_1), r.length > 0) {
1098
1219
  matchResult_1 = 0;
@@ -1105,7 +1226,7 @@ function encodeToolDescriptionElement(td) {
1105
1226
  }
1106
1227
  switch (matchResult_1) {
1107
1228
  case 0: {
1108
- withRequirements = append(withHints, singleton(["requirements", YAMLElement_Sequence(ofSeq(map$2(encodeRequirement, r_1)))]));
1229
+ withRequirements = append(withHints, singleton(["requirements", YAMLElement_Sequence(ofSeq(map$1(encodeRequirement, r_1)))]));
1109
1230
  break;
1110
1231
  }
1111
1232
  default:
@@ -1113,7 +1234,7 @@ function encodeToolDescriptionElement(td) {
1113
1234
  }
1114
1235
  let withBaseCommand;
1115
1236
  const matchValue_2 = td.BaseCommand;
1116
- let matchResult_2, bc_1;
1237
+ let matchResult_2 = void 0, bc_1 = void 0;
1117
1238
  if (matchValue_2 != null) {
1118
1239
  if (bc = value(matchValue_2), bc.length > 0) {
1119
1240
  matchResult_2 = 0;
@@ -1126,40 +1247,78 @@ function encodeToolDescriptionElement(td) {
1126
1247
  }
1127
1248
  switch (matchResult_2) {
1128
1249
  case 0: {
1129
- withBaseCommand = append(withRequirements, singleton(["baseCommand", YAMLElement_Sequence(ofSeq(map$2(string, bc_1)))]));
1250
+ withBaseCommand = append(withRequirements, singleton(["baseCommand", YAMLElement_Sequence(ofSeq(map$1(string, bc_1)))]));
1130
1251
  break;
1131
1252
  }
1132
1253
  default:
1133
1254
  withBaseCommand = withRequirements;
1134
1255
  }
1135
- const withOutputs = append((matchValue_3 = td.Inputs, matchValue_3 != null ? (i = value(matchValue_3), i.length > 0) ? (i_1 = value(matchValue_3), append(withBaseCommand, singleton(["inputs", yMap(toList(map$2(encodeCWLInput, i_1)))]))) : withBaseCommand : withBaseCommand), singleton(["outputs", yMap(toList(map$2(encodeCWLOutput, td.Outputs)))]));
1136
- return yMap((matchValue_4 = td.Metadata, matchValue_4 == null ? withOutputs : (md = value(matchValue_4), fold((acc_8, kvp) => {
1137
- let matchValue_5;
1138
- return append(acc_8, singleton([kvp[0], (matchValue_5 = kvp[1], typeof matchValue_5 === "string" ? string(matchValue_5) : typeof matchValue_5 === "boolean" ? yBool(matchValue_5) : typeof matchValue_5 === "number" ? int(matchValue_5) : typeof matchValue_5 === "number" ? float(matchValue_5) : matchValue_5 instanceof YAMLElement ? matchValue_5 : string(toString(kvp[1])))]));
1139
- }, withOutputs, md.GetProperties(false)))));
1256
+ let withCommandFields;
1257
+ let acc_20;
1258
+ let acc_18;
1259
+ let acc_16;
1260
+ let acc_14;
1261
+ let acc_12;
1262
+ let acc_10;
1263
+ const value_2 = td.Arguments;
1264
+ const acc_9 = withBaseCommand;
1265
+ acc_10 = value_2 == null ? acc_9 : append(acc_9, singleton(["arguments", value(value_2)]));
1266
+ const value_5 = td.Stdin;
1267
+ const acc_11 = acc_10;
1268
+ acc_12 = value_5 == null ? acc_11 : append(acc_11, singleton(["stdin", string(value(value_5))]));
1269
+ const value_8 = td.Stderr;
1270
+ const acc_13 = acc_12;
1271
+ acc_14 = value_8 == null ? acc_13 : append(acc_13, singleton(["stderr", string(value(value_8))]));
1272
+ const value_11 = td.Stdout;
1273
+ const acc_15 = acc_14;
1274
+ acc_16 = value_11 == null ? acc_15 : append(acc_15, singleton(["stdout", string(value(value_11))]));
1275
+ const value_14 = td.SuccessCodes;
1276
+ const acc_17 = acc_16;
1277
+ acc_18 = value_14 == null ? acc_17 : append(acc_17, singleton(["successCodes", YAMLElement_Sequence(ofSeq(map$1(int, value(value_14))))]));
1278
+ const value_17 = td.TemporaryFailCodes;
1279
+ const acc_19 = acc_18;
1280
+ acc_20 = value_17 == null ? acc_19 : append(acc_19, singleton(["temporaryFailCodes", YAMLElement_Sequence(ofSeq(map$1(int, value(value_17))))]));
1281
+ const value_20 = td.PermanentFailCodes;
1282
+ const acc_21 = acc_20;
1283
+ withCommandFields = value_20 == null ? acc_21 : append(acc_21, singleton(["permanentFailCodes", YAMLElement_Sequence(ofSeq(map$1(int, value(value_20))))]));
1284
+ const withOutputs = append((matchValue_3 = td.Inputs, matchValue_3 != null ? (i = value(matchValue_3), i.length > 0) ? (i_1 = value(matchValue_3), append(withCommandFields, singleton(["inputs", yMap(toList(map$1(encodeCWLInput, i_1)))]))) : withCommandFields : withCommandFields), singleton(["outputs", yMap(toList(map$1(encodeCWLOutput, td.Outputs)))]));
1285
+ let withMetadata;
1286
+ const matchValue_4 = td.Metadata;
1287
+ withMetadata = matchValue_4 == null ? withOutputs : appendDynamicProperties(value(matchValue_4), withOutputs);
1288
+ return yMap(appendDynamicPropertiesExcept(CWLToolDescription.KnownFieldNames, td, withMetadata));
1140
1289
  }
1141
1290
  function encodeExpressionToolDescriptionElement(et) {
1142
- let h, r, matchValue_2, i, i_1, matchValue_3, md;
1291
+ let intent = void 0, h = void 0, r = void 0, matchValue_2 = void 0, i = void 0, i_1 = void 0;
1143
1292
  let basePairs;
1144
1293
  let acc_6;
1145
1294
  let acc_4;
1146
1295
  let acc_2;
1147
1296
  const acc = ofArray([["cwlVersion", string(et.CWLVersion)], ["class", string("ExpressionTool")]]);
1148
- const pairOpt_1 = map((id) => ["id", string(id)], et.Id);
1297
+ let pairOpt_1;
1298
+ const option_1 = et.Id;
1299
+ pairOpt_1 = option_1 != null ? ["id", string(value(option_1))] : void 0;
1149
1300
  const acc_1 = acc;
1150
1301
  acc_2 = pairOpt_1 == null ? acc_1 : append(acc_1, singleton(value(pairOpt_1)));
1151
- const pairOpt_3 = map(encodeLabel, et.Label);
1302
+ let pairOpt_3;
1303
+ const option_3 = et.Label;
1304
+ pairOpt_3 = option_3 != null ? encodeLabel(value(option_3)) : void 0;
1152
1305
  const acc_3 = acc_2;
1153
1306
  acc_4 = pairOpt_3 == null ? acc_3 : append(acc_3, singleton(value(pairOpt_3)));
1154
- const pairOpt_5 = map(encodeDoc, et.Doc);
1307
+ let pairOpt_5;
1308
+ const option_5 = et.Doc;
1309
+ pairOpt_5 = option_5 != null ? encodeDoc(value(option_5)) : void 0;
1155
1310
  const acc_5 = acc_4;
1156
1311
  acc_6 = pairOpt_5 == null ? acc_5 : append(acc_5, singleton(value(pairOpt_5)));
1157
- const pairOpt_7 = map(encodeIntent, filter((intent) => intent.length > 0, et.Intent));
1312
+ let pairOpt_7;
1313
+ let option_9;
1314
+ const option_7 = et.Intent;
1315
+ option_9 = option_7 != null ? (intent = value(option_7), intent.length > 0) ? option_7 : void 0 : void 0;
1316
+ pairOpt_7 = option_9 != null ? encodeIntent(value(option_9)) : void 0;
1158
1317
  const acc_7 = acc_6;
1159
1318
  basePairs = pairOpt_7 == null ? acc_7 : append(acc_7, singleton(value(pairOpt_7)));
1160
1319
  let withHints;
1161
1320
  const matchValue = et.Hints;
1162
- let matchResult, h_1;
1321
+ let matchResult = void 0, h_1 = void 0;
1163
1322
  if (matchValue != null) {
1164
1323
  if (h = value(matchValue), h.length > 0) {
1165
1324
  matchResult = 0;
@@ -1172,7 +1331,7 @@ function encodeExpressionToolDescriptionElement(et) {
1172
1331
  }
1173
1332
  switch (matchResult) {
1174
1333
  case 0: {
1175
- withHints = append(basePairs, singleton(["hints", YAMLElement_Sequence(ofSeq(map$2(encodeHintEntry, h_1)))]));
1334
+ withHints = append(basePairs, singleton(["hints", YAMLElement_Sequence(ofSeq(map$1(encodeHintEntry, h_1)))]));
1176
1335
  break;
1177
1336
  }
1178
1337
  default:
@@ -1180,7 +1339,7 @@ function encodeExpressionToolDescriptionElement(et) {
1180
1339
  }
1181
1340
  let withRequirements;
1182
1341
  const matchValue_1 = et.Requirements;
1183
- let matchResult_1, r_1;
1342
+ let matchResult_1 = void 0, r_1 = void 0;
1184
1343
  if (matchValue_1 != null) {
1185
1344
  if (r = value(matchValue_1), r.length > 0) {
1186
1345
  matchResult_1 = 0;
@@ -1193,40 +1352,50 @@ function encodeExpressionToolDescriptionElement(et) {
1193
1352
  }
1194
1353
  switch (matchResult_1) {
1195
1354
  case 0: {
1196
- withRequirements = append(withHints, singleton(["requirements", YAMLElement_Sequence(ofSeq(map$2(encodeRequirement, r_1)))]));
1355
+ withRequirements = append(withHints, singleton(["requirements", YAMLElement_Sequence(ofSeq(map$1(encodeRequirement, r_1)))]));
1197
1356
  break;
1198
1357
  }
1199
1358
  default:
1200
1359
  withRequirements = withHints;
1201
1360
  }
1202
- const withExpression = append(append((matchValue_2 = et.Inputs, matchValue_2 != null ? (i = value(matchValue_2), i.length > 0) ? (i_1 = value(matchValue_2), append(withRequirements, singleton(["inputs", yMap(toList(map$2(encodeCWLInput, i_1)))]))) : withRequirements : withRequirements), singleton(["outputs", yMap(toList(map$2(encodeCWLOutput, et.Outputs)))])), singleton(["expression", encodeExpressionScalar(et.Expression)]));
1203
- return yMap((matchValue_3 = et.Metadata, matchValue_3 == null ? withExpression : (md = value(matchValue_3), fold((acc_8, kvp) => {
1204
- let matchValue_4;
1205
- return append(acc_8, singleton([kvp[0], (matchValue_4 = kvp[1], typeof matchValue_4 === "string" ? string(matchValue_4) : typeof matchValue_4 === "boolean" ? yBool(matchValue_4) : typeof matchValue_4 === "number" ? int(matchValue_4) : typeof matchValue_4 === "number" ? float(matchValue_4) : matchValue_4 instanceof YAMLElement ? matchValue_4 : string(toString(kvp[1])))]));
1206
- }, withExpression, md.GetProperties(false)))));
1361
+ const withExpression = append(append((matchValue_2 = et.Inputs, matchValue_2 != null ? (i = value(matchValue_2), i.length > 0) ? (i_1 = value(matchValue_2), append(withRequirements, singleton(["inputs", yMap(toList(map$1(encodeCWLInput, i_1)))]))) : withRequirements : withRequirements), singleton(["outputs", yMap(toList(map$1(encodeCWLOutput, et.Outputs)))])), singleton(["expression", encodeExpressionScalar(et.Expression)]));
1362
+ let withMetadata;
1363
+ const matchValue_3 = et.Metadata;
1364
+ withMetadata = matchValue_3 == null ? withExpression : appendDynamicProperties(value(matchValue_3), withExpression);
1365
+ return yMap(appendDynamicPropertiesExcept(CWLExpressionToolDescription.KnownFieldNames, et, withMetadata));
1207
1366
  }
1208
1367
  function encodeOperationDescriptionElement(op) {
1209
- let h, matchValue_1, r, r_1, matchValue_2, md;
1368
+ let intent = void 0, h = void 0, matchValue_1 = void 0, r = void 0, r_1 = void 0;
1210
1369
  let basePairs;
1211
1370
  let acc_6;
1212
1371
  let acc_4;
1213
1372
  let acc_2;
1214
1373
  const acc = ofArray([["cwlVersion", string(op.CWLVersion)], ["class", string("Operation")]]);
1215
- const pairOpt_1 = map((id) => ["id", string(id)], op.Id);
1374
+ let pairOpt_1;
1375
+ const option_1 = op.Id;
1376
+ pairOpt_1 = option_1 != null ? ["id", string(value(option_1))] : void 0;
1216
1377
  const acc_1 = acc;
1217
1378
  acc_2 = pairOpt_1 == null ? acc_1 : append(acc_1, singleton(value(pairOpt_1)));
1218
- const pairOpt_3 = map(encodeLabel, op.Label);
1379
+ let pairOpt_3;
1380
+ const option_3 = op.Label;
1381
+ pairOpt_3 = option_3 != null ? encodeLabel(value(option_3)) : void 0;
1219
1382
  const acc_3 = acc_2;
1220
1383
  acc_4 = pairOpt_3 == null ? acc_3 : append(acc_3, singleton(value(pairOpt_3)));
1221
- const pairOpt_5 = map(encodeDoc, op.Doc);
1384
+ let pairOpt_5;
1385
+ const option_5 = op.Doc;
1386
+ pairOpt_5 = option_5 != null ? encodeDoc(value(option_5)) : void 0;
1222
1387
  const acc_5 = acc_4;
1223
1388
  acc_6 = pairOpt_5 == null ? acc_5 : append(acc_5, singleton(value(pairOpt_5)));
1224
- const pairOpt_7 = map(encodeIntent, filter((intent) => intent.length > 0, op.Intent));
1389
+ let pairOpt_7;
1390
+ let option_9;
1391
+ const option_7 = op.Intent;
1392
+ option_9 = option_7 != null ? (intent = value(option_7), intent.length > 0) ? option_7 : void 0 : void 0;
1393
+ pairOpt_7 = option_9 != null ? encodeIntent(value(option_9)) : void 0;
1225
1394
  const acc_7 = acc_6;
1226
1395
  basePairs = pairOpt_7 == null ? acc_7 : append(acc_7, singleton(value(pairOpt_7)));
1227
1396
  let withHints;
1228
1397
  const matchValue = op.Hints;
1229
- let matchResult, h_1;
1398
+ let matchResult = void 0, h_1 = void 0;
1230
1399
  if (matchValue != null) {
1231
1400
  if (h = value(matchValue), h.length > 0) {
1232
1401
  matchResult = 0;
@@ -1239,40 +1408,50 @@ function encodeOperationDescriptionElement(op) {
1239
1408
  }
1240
1409
  switch (matchResult) {
1241
1410
  case 0: {
1242
- withHints = append(basePairs, singleton(["hints", YAMLElement_Sequence(ofSeq(map$2(encodeHintEntry, h_1)))]));
1411
+ withHints = append(basePairs, singleton(["hints", YAMLElement_Sequence(ofSeq(map$1(encodeHintEntry, h_1)))]));
1243
1412
  break;
1244
1413
  }
1245
1414
  default:
1246
1415
  withHints = basePairs;
1247
1416
  }
1248
- const withOutputs = append(append((matchValue_1 = op.Requirements, matchValue_1 != null ? (r = value(matchValue_1), r.length > 0) ? (r_1 = value(matchValue_1), append(withHints, singleton(["requirements", YAMLElement_Sequence(ofSeq(map$2(encodeRequirement, r_1)))]))) : withHints : withHints), singleton(["inputs", yMap(toList(map$2(encodeCWLInput, op.Inputs)))])), singleton(["outputs", yMap(toList(map$2(encodeCWLOutput, op.Outputs)))]));
1249
- return yMap((matchValue_2 = op.Metadata, matchValue_2 == null ? withOutputs : (md = value(matchValue_2), fold((acc_8, kvp) => {
1250
- let matchValue_3;
1251
- return append(acc_8, singleton([kvp[0], (matchValue_3 = kvp[1], typeof matchValue_3 === "string" ? string(matchValue_3) : typeof matchValue_3 === "boolean" ? yBool(matchValue_3) : typeof matchValue_3 === "number" ? int(matchValue_3) : typeof matchValue_3 === "number" ? float(matchValue_3) : matchValue_3 instanceof YAMLElement ? matchValue_3 : string(toString(kvp[1])))]));
1252
- }, withOutputs, md.GetProperties(false)))));
1417
+ const withOutputs = append(append((matchValue_1 = op.Requirements, matchValue_1 != null ? (r = value(matchValue_1), r.length > 0) ? (r_1 = value(matchValue_1), append(withHints, singleton(["requirements", YAMLElement_Sequence(ofSeq(map$1(encodeRequirement, r_1)))]))) : withHints : withHints), singleton(["inputs", yMap(toList(map$1(encodeCWLInput, op.Inputs)))])), singleton(["outputs", yMap(toList(map$1(encodeCWLOutput, op.Outputs)))]));
1418
+ let withMetadata;
1419
+ const matchValue_2 = op.Metadata;
1420
+ withMetadata = matchValue_2 == null ? withOutputs : appendDynamicProperties(value(matchValue_2), withOutputs);
1421
+ return yMap(appendDynamicPropertiesExcept(CWLOperationDescription.KnownFieldNames, op, withMetadata));
1253
1422
  }
1254
1423
  function encodeWorkflowDescriptionElement(wd) {
1255
- let h, matchValue_1, r, r_1, matchValue_2, md;
1424
+ let intent = void 0, h = void 0, matchValue_1 = void 0, r = void 0, r_1 = void 0;
1256
1425
  let basePairs;
1257
1426
  let acc_6;
1258
1427
  let acc_4;
1259
1428
  let acc_2;
1260
1429
  const acc = ofArray([["cwlVersion", string(wd.CWLVersion)], ["class", string("Workflow")]]);
1261
- const pairOpt_1 = map((id) => ["id", string(id)], wd.Id);
1430
+ let pairOpt_1;
1431
+ const option_1 = wd.Id;
1432
+ pairOpt_1 = option_1 != null ? ["id", string(value(option_1))] : void 0;
1262
1433
  const acc_1 = acc;
1263
1434
  acc_2 = pairOpt_1 == null ? acc_1 : append(acc_1, singleton(value(pairOpt_1)));
1264
- const pairOpt_3 = map(encodeLabel, wd.Label);
1435
+ let pairOpt_3;
1436
+ const option_3 = wd.Label;
1437
+ pairOpt_3 = option_3 != null ? encodeLabel(value(option_3)) : void 0;
1265
1438
  const acc_3 = acc_2;
1266
1439
  acc_4 = pairOpt_3 == null ? acc_3 : append(acc_3, singleton(value(pairOpt_3)));
1267
- const pairOpt_5 = map(encodeDoc, wd.Doc);
1440
+ let pairOpt_5;
1441
+ const option_5 = wd.Doc;
1442
+ pairOpt_5 = option_5 != null ? encodeDoc(value(option_5)) : void 0;
1268
1443
  const acc_5 = acc_4;
1269
1444
  acc_6 = pairOpt_5 == null ? acc_5 : append(acc_5, singleton(value(pairOpt_5)));
1270
- const pairOpt_7 = map(encodeIntent, filter((intent) => intent.length > 0, wd.Intent));
1445
+ let pairOpt_7;
1446
+ let option_9;
1447
+ const option_7 = wd.Intent;
1448
+ option_9 = option_7 != null ? (intent = value(option_7), intent.length > 0) ? option_7 : void 0 : void 0;
1449
+ pairOpt_7 = option_9 != null ? encodeIntent(value(option_9)) : void 0;
1271
1450
  const acc_7 = acc_6;
1272
1451
  basePairs = pairOpt_7 == null ? acc_7 : append(acc_7, singleton(value(pairOpt_7)));
1273
1452
  let withHints;
1274
1453
  const matchValue = wd.Hints;
1275
- let matchResult, h_1;
1454
+ let matchResult = void 0, h_1 = void 0;
1276
1455
  if (matchValue != null) {
1277
1456
  if (h = value(matchValue), h.length > 0) {
1278
1457
  matchResult = 0;
@@ -1285,21 +1464,22 @@ function encodeWorkflowDescriptionElement(wd) {
1285
1464
  }
1286
1465
  switch (matchResult) {
1287
1466
  case 0: {
1288
- withHints = append(basePairs, singleton(["hints", YAMLElement_Sequence(ofSeq(map$2(encodeHintEntry, h_1)))]));
1467
+ withHints = append(basePairs, singleton(["hints", YAMLElement_Sequence(ofSeq(map$1(encodeHintEntry, h_1)))]));
1289
1468
  break;
1290
1469
  }
1291
1470
  default:
1292
1471
  withHints = basePairs;
1293
1472
  }
1294
- const withOutputs = append(append(append((matchValue_1 = wd.Requirements, matchValue_1 != null ? (r = value(matchValue_1), r.length > 0) ? (r_1 = value(matchValue_1), append(withHints, singleton(["requirements", YAMLElement_Sequence(ofSeq(map$2(encodeRequirement, r_1)))]))) : withHints : withHints), singleton(["inputs", yMap(toList(map$2(encodeCWLInput, wd.Inputs)))])), singleton(["steps", yMap(toList(map$2(encodeWorkflowStep, wd.Steps)))])), singleton(["outputs", yMap(toList(map$2(encodeCWLOutput, wd.Outputs)))]));
1295
- return yMap((matchValue_2 = wd.Metadata, matchValue_2 == null ? withOutputs : (md = value(matchValue_2), fold((acc_8, kvp) => {
1296
- let matchValue_3;
1297
- return append(acc_8, singleton([kvp[0], (matchValue_3 = kvp[1], typeof matchValue_3 === "string" ? string(matchValue_3) : typeof matchValue_3 === "boolean" ? yBool(matchValue_3) : typeof matchValue_3 === "number" ? int(matchValue_3) : typeof matchValue_3 === "number" ? float(matchValue_3) : matchValue_3 instanceof YAMLElement ? matchValue_3 : string(toString(kvp[1])))]));
1298
- }, withOutputs, md.GetProperties(false)))));
1473
+ const withOutputs = append(append(append((matchValue_1 = wd.Requirements, matchValue_1 != null ? (r = value(matchValue_1), r.length > 0) ? (r_1 = value(matchValue_1), append(withHints, singleton(["requirements", YAMLElement_Sequence(ofSeq(map$1(encodeRequirement, r_1)))]))) : withHints : withHints), singleton(["inputs", yMap(toList(map$1(encodeCWLInput, wd.Inputs)))])), singleton(["steps", yMap(toList(map$1(encodeWorkflowStep, wd.Steps)))])), singleton(["outputs", yMap(toList(map$1(encodeCWLOutput, wd.Outputs)))]));
1474
+ let withMetadata;
1475
+ const matchValue_2 = wd.Metadata;
1476
+ withMetadata = matchValue_2 == null ? withOutputs : appendDynamicProperties(value(matchValue_2), withOutputs);
1477
+ return yMap(appendDynamicPropertiesExcept(CWLWorkflowDescription.KnownFieldNames, wd, withMetadata));
1299
1478
  }
1300
1479
  function encodeWorkflowStep(ws) {
1301
- let h, r;
1480
+ let h = void 0, r = void 0;
1302
1481
  let basePairs;
1482
+ let acc_10;
1303
1483
  let acc_8;
1304
1484
  let acc_6;
1305
1485
  let acc_4;
@@ -1319,10 +1499,11 @@ function encodeWorkflowStep(ws) {
1319
1499
  acc_8 = value_9 == null ? acc_7 : append(acc_7, singleton(["scatterMethod", encodeScatterMethod(value(value_9))]));
1320
1500
  const value_12 = ws.When_;
1321
1501
  const acc_9 = acc_8;
1322
- basePairs = value_12 == null ? acc_9 : append(acc_9, singleton(["when", string(value(value_12))]));
1502
+ acc_10 = value_12 == null ? acc_9 : append(acc_9, singleton(["when", string(value(value_12))]));
1503
+ basePairs = appendDynamicPropertiesExcept(WorkflowStep.KnownFieldNames, ws, acc_10);
1323
1504
  let withHints;
1324
1505
  const matchValue = ws.Hints;
1325
- let matchResult, h_1;
1506
+ let matchResult = void 0, h_1 = void 0;
1326
1507
  if (matchValue != null) {
1327
1508
  if (h = value(matchValue), h.length > 0) {
1328
1509
  matchResult = 0;
@@ -1335,7 +1516,7 @@ function encodeWorkflowStep(ws) {
1335
1516
  }
1336
1517
  switch (matchResult) {
1337
1518
  case 0: {
1338
- withHints = append(basePairs, singleton(["hints", YAMLElement_Sequence(ofSeq(map$2(encodeHintEntry, h_1)))]));
1519
+ withHints = append(basePairs, singleton(["hints", YAMLElement_Sequence(ofSeq(map$1(encodeHintEntry, h_1)))]));
1339
1520
  break;
1340
1521
  }
1341
1522
  default:
@@ -1343,7 +1524,7 @@ function encodeWorkflowStep(ws) {
1343
1524
  }
1344
1525
  let withReq;
1345
1526
  const matchValue_1 = ws.Requirements;
1346
- let matchResult_1, r_1;
1527
+ let matchResult_1 = void 0, r_1 = void 0;
1347
1528
  if (matchValue_1 != null) {
1348
1529
  if (r = value(matchValue_1), r.length > 0) {
1349
1530
  matchResult_1 = 0;
@@ -1356,7 +1537,7 @@ function encodeWorkflowStep(ws) {
1356
1537
  }
1357
1538
  switch (matchResult_1) {
1358
1539
  case 0: {
1359
- withReq = append(withHints, singleton(["requirements", YAMLElement_Sequence(ofSeq(map$2(encodeRequirement, r_1)))]));
1540
+ withReq = append(withHints, singleton(["requirements", YAMLElement_Sequence(ofSeq(map$1(encodeRequirement, r_1)))]));
1360
1541
  break;
1361
1542
  }
1362
1543
  default:
@@ -1367,10 +1548,93 @@ function encodeWorkflowStep(ws) {
1367
1548
  function writeYaml(element) {
1368
1549
  return write(element, (c) => new Config(2, c.Level));
1369
1550
  }
1551
+ function encodeCWLParameterReference(reference) {
1552
+ let option_1 = void 0;
1553
+ const encodedValue = defaultArg((option_1 = reference.Value, option_1 != null ? encodeCWLParameterValue(value(option_1)) : void 0), YAMLElement_Sequence(empty$1()));
1554
+ const dynamicPairs = toList(choose((property) => {
1555
+ const option_4 = encodeDynamicValue(property[1]);
1556
+ if (option_4 != null) {
1557
+ return [property[0], value(option_4)];
1558
+ } else {
1559
+ return void 0;
1560
+ }
1561
+ }, dynamicPropertiesExcept(CWLParameterReference.KnownFieldNames, reference)));
1562
+ let inferredType;
1563
+ const option_6 = reference.Value;
1564
+ inferredType = option_6 != null ? CWLParameterValueModule_tryInferType(value(option_6)) : void 0;
1565
+ let explicitTypePair;
1566
+ const matchValue = reference.Type;
1567
+ let matchResult = void 0, type__1 = void 0;
1568
+ if (matchValue != null) {
1569
+ if (!equals(inferredType, value(matchValue))) {
1570
+ matchResult = 0;
1571
+ type__1 = value(matchValue);
1572
+ } else {
1573
+ matchResult = 1;
1574
+ }
1575
+ } else {
1576
+ matchResult = 1;
1577
+ }
1578
+ switch (matchResult) {
1579
+ case 0: {
1580
+ explicitTypePair = ["type", encodeCWLType(type__1)];
1581
+ break;
1582
+ }
1583
+ default:
1584
+ explicitTypePair = void 0;
1585
+ }
1586
+ let encodedReference;
1587
+ let matchResult_1 = void 0, overflow_1 = void 0, typePair = void 0, value_5 = void 0;
1588
+ if (explicitTypePair == null) {
1589
+ if (isEmpty(dynamicPairs)) {
1590
+ matchResult_1 = 0;
1591
+ } else if (encodedValue.tag === /* Object */
1592
+ 3) {
1593
+ matchResult_1 = 1;
1594
+ } else {
1595
+ matchResult_1 = 2;
1596
+ overflow_1 = dynamicPairs;
1597
+ typePair = explicitTypePair;
1598
+ value_5 = encodedValue;
1599
+ }
1600
+ } else {
1601
+ matchResult_1 = 2;
1602
+ overflow_1 = dynamicPairs;
1603
+ typePair = explicitTypePair;
1604
+ value_5 = encodedValue;
1605
+ }
1606
+ switch (matchResult_1) {
1607
+ case 0: {
1608
+ encodedReference = encodedValue;
1609
+ break;
1610
+ }
1611
+ case 1: {
1612
+ const valuePairs = choose$1((_arg) => {
1613
+ if (_arg.tag === /* Mapping */
1614
+ 0) {
1615
+ return [_arg.fields[0].Value, _arg.fields[1]];
1616
+ } else {
1617
+ return void 0;
1618
+ }
1619
+ }, encodedValue.fields[0]);
1620
+ const valueKeys = ofSeq$1(map$1((tuple) => tuple[0], valuePairs), {
1621
+ Compare: (x, y) => comparePrimitives(x, y) | 0
1622
+ });
1623
+ encodedReference = yMap(append(valuePairs, filter((tupledArg) => !contains(tupledArg[0], valueKeys), dynamicPairs)));
1624
+ break;
1625
+ }
1626
+ default:
1627
+ encodedReference = yMap(toList(delay(() => append$1(ofArray(toArray(typePair)), delay(() => append$1(singleton$1(["value", value_5]), delay(() => overflow_1)))))));
1628
+ }
1629
+ return [reference.Key, encodedReference];
1630
+ }
1631
+ function encodeYAMLParameterFile(references) {
1632
+ return writeYaml(yMap(toList(map$1(encodeCWLParameterReference, references))));
1633
+ }
1370
1634
  function getObjectPairs(element) {
1371
1635
  if (element.tag === /* Object */
1372
1636
  3) {
1373
- return choose((_arg) => {
1637
+ return choose$1((_arg) => {
1374
1638
  if (_arg.tag === /* Mapping */
1375
1639
  0) {
1376
1640
  return [_arg.fields[0].Value, _arg.fields[1]];
@@ -1379,26 +1643,33 @@ function getObjectPairs(element) {
1379
1643
  }
1380
1644
  }, element.fields[0]);
1381
1645
  } else {
1382
- return empty();
1646
+ return empty$1();
1383
1647
  }
1384
1648
  }
1385
1649
  function renderTopLevelElement(baseKeys, orderedSectionKeys, element) {
1386
1650
  const section = (pairs) => trimEnd(replace(writeYaml(yMap(pairs)), "\r\n", "\n"), "\n");
1387
1651
  const pairs_2 = getObjectPairs(element);
1388
- const basePairs = filter$1((tupledArg) => contains(tupledArg[0], baseKeys, {
1652
+ const basePairs = filter((tupledArg) => contains$1(tupledArg[0], baseKeys, {
1389
1653
  Equals: (x, y) => x === y,
1390
- GetHashCode: stringHash
1654
+ GetHashCode: (x) => stringHash(x) | 0
1391
1655
  }), pairs_2);
1392
- const knownSections = choose((sectionKey) => map(singleton, tryFind((tupledArg_1) => tupledArg_1[0] === sectionKey, pairs_2)), orderedSectionKeys);
1656
+ const knownSections = choose$1((sectionKey) => {
1657
+ const option_1 = tryFind((tupledArg_1) => tupledArg_1[0] === sectionKey, pairs_2);
1658
+ if (option_1 != null) {
1659
+ return singleton(value(option_1));
1660
+ } else {
1661
+ return void 0;
1662
+ }
1663
+ }, orderedSectionKeys);
1393
1664
  const reservedKeys = ofList(append(baseKeys, orderedSectionKeys), {
1394
- Compare: comparePrimitives
1665
+ Compare: (x_1, y_1) => comparePrimitives(x_1, y_1) | 0
1395
1666
  });
1396
- const metadataPairs = filter$1((tupledArg_2) => !FSharpSet__Contains(reservedKeys, tupledArg_2[0]), pairs_2);
1667
+ const metadataPairs = filter((tupledArg_2) => !FSharpSet__Contains(reservedKeys, tupledArg_2[0]), pairs_2);
1397
1668
  const merge = (acc_mut, remaining_mut) => {
1398
1669
  merge:
1399
1670
  while (true) {
1400
1671
  const acc = acc_mut, remaining = remaining_mut;
1401
- let matchResult, a_1, b_1, rest_1, l, rest_2;
1672
+ let matchResult = void 0, a_1 = void 0, b_1 = void 0, rest_1 = void 0, l = void 0, rest_2 = void 0;
1402
1673
  if (isEmpty(remaining)) {
1403
1674
  matchResult = 2;
1404
1675
  } else if (!isEmpty(tail(remaining))) {
@@ -1434,7 +1705,7 @@ function renderTopLevelElement(baseKeys, orderedSectionKeys, element) {
1434
1705
  break;
1435
1706
  }
1436
1707
  };
1437
- return join("\r\n", merge(empty(), ofArray(split(join("\r\n\r\n", toList(delay(() => append$1(length(basePairs) > 0 ? singleton$1(section(basePairs)) : empty$1(), delay(() => append$1(map$1(section, knownSections), delay(() => length(metadataPairs) > 0 ? singleton$1(section(metadataPairs)) : empty$1()))))))), ["\r\n"], void 0, 0))));
1708
+ return join("\r\n", merge(empty$1(), ofArray(split(join("\r\n\r\n", toList(delay(() => append$1(length(basePairs) > 0 ? singleton$1(section(basePairs)) : empty$2(), delay(() => append$1(map(section, knownSections), delay(() => length(metadataPairs) > 0 ? singleton$1(section(metadataPairs)) : empty$2()))))))), ["\r\n"], void 0, 0))));
1438
1709
  }
1439
1710
  function encodeToolDescription(td) {
1440
1711
  return renderTopLevelElement(ofArray(["cwlVersion", "class", "id", "label", "doc", "intent"]), ofArray(["hints", "requirements", "baseCommand", "inputs", "outputs"]), encodeToolDescriptionElement(td));
@@ -1467,7 +1738,7 @@ function encodeCWLTypeYaml(t) {
1467
1738
  switch (t.tag) {
1468
1739
  case /* Union */
1469
1740
  14:
1470
- return "[" + join(", ", map$2(encodeCWLTypeYaml, t.fields[0])) + "]";
1741
+ return "[" + join(", ", map$1(encodeCWLTypeYaml, t.fields[0])) + "]";
1471
1742
  case /* Array */
1472
1743
  11:
1473
1744
  return encodeInputArraySchemaYaml(t.fields[0]);
@@ -1487,13 +1758,14 @@ function encodeCWLTypeYaml(t) {
1487
1758
  }
1488
1759
  }
1489
1760
  function encodeInputRecordFieldYaml(field) {
1490
- return `{name: ${field.Name}, type: ${encodeCWLTypeYaml(field.Type)}}`;
1761
+ const typeYaml = encodeCWLTypeYaml(field.Type);
1762
+ return `{name: ${field.Name}, type: ${typeYaml}}`;
1491
1763
  }
1492
1764
  function encodeInputRecordSchemaYaml(schema) {
1493
- let fs;
1765
+ let fs = void 0;
1494
1766
  let fieldsYaml;
1495
1767
  const matchValue = schema.Fields;
1496
- let matchResult, fs_1;
1768
+ let matchResult = void 0, fs_1 = void 0;
1497
1769
  if (matchValue != null) {
1498
1770
  if (fs = value(matchValue), fs.length > 0) {
1499
1771
  matchResult = 0;
@@ -1506,7 +1778,7 @@ function encodeInputRecordSchemaYaml(schema) {
1506
1778
  }
1507
1779
  switch (matchResult) {
1508
1780
  case 0: {
1509
- fieldsYaml = join(", ", map$2(encodeInputRecordFieldYaml, fs_1));
1781
+ fieldsYaml = join(", ", map$1(encodeInputRecordFieldYaml, fs_1));
1510
1782
  break;
1511
1783
  }
1512
1784
  default:
@@ -1515,17 +1787,21 @@ function encodeInputRecordSchemaYaml(schema) {
1515
1787
  if (fieldsYaml === "") {
1516
1788
  return "{type: record, fields: []}";
1517
1789
  } else {
1518
- return `{type: record, fields: [${fieldsYaml}]}`;
1790
+ return concat("{type: record, fields: [", fieldsYaml, "]}");
1519
1791
  }
1520
1792
  }
1521
1793
  function encodeInputEnumSchemaYaml(schema) {
1522
- return `{type: enum, symbols: [${join(", ", schema.Symbols)}]}`;
1794
+ return concat("{type: enum, symbols: [", join(", ", schema.Symbols), "]}");
1523
1795
  }
1524
1796
  function encodeInputArraySchemaYaml(schema) {
1525
- return `{type: array, items: ${encodeCWLTypeYaml(schema.Items)}}`;
1797
+ return concat("{type: array, items: ", encodeCWLTypeYaml(schema.Items), "}");
1526
1798
  }
1527
1799
  function cwlTypeToYamlString(t) {
1528
1800
  return encodeCWLTypeYaml(t);
1529
1801
  }
1802
+ function formatCWLType(type_) {
1803
+ const s = writeYaml(encodeCWLType(type_));
1804
+ return s.trim();
1805
+ }
1530
1806
 
1531
- export { $007CPrimitiveType$007CComplexType$007C, cwlTypeToYamlString, encodeCWLInput, encodeCWLOutput, encodeCWLType, encodeCWLTypeYaml, encodeDoc, encodeEnvVarRequirementCompactMap, encodeExpressionScalar, encodeExpressionToolDescription, encodeExpressionToolDescriptionElement, encodeHintEntry, encodeInputArraySchema, encodeInputArraySchemaYaml, encodeInputBinding, encodeInputEnumSchema, encodeInputEnumSchemaYaml, encodeInputRecordField, encodeInputRecordFieldYaml, encodeInputRecordSchema, encodeInputRecordSchemaYaml, encodeIntent, encodeLabel, encodeLinkMergeMethod, encodeOperationDescription, encodeOperationDescriptionElement, encodeOutputBinding, encodePickValueMethod, encodeProcessingUnit, encodeRequirement, encodeScatter, encodeScatterMethod, encodeSchemaDefRequirementType, encodeSchemaSaladString, encodeSoftwareRequirementCompactMap, encodeSourceArray, encodeStepInput, encodeStepInputs, encodeStepOutputParameter, encodeStepOutputs, encodeStringArrayOrScalar, encodeToolDescription, encodeToolDescriptionElement, encodeWorkflowDescription, encodeWorkflowDescriptionElement, encodeWorkflowStep, encodeWorkflowStepRun, getObjectPairs, isComplexType, normalizeDocString, normalizeEnvValueForEncode, renderTopLevelElement, tryGetArrayShorthand, writeYaml, yBool, yMap };
1807
+ export { $007CPrimitiveType$007CComplexType$007C, appendDynamicProperties, appendDynamicPropertiesExcept, cwlTypeToYamlString, encodeCWLInput, encodeCWLOutput, encodeCWLParameterReference, encodeCWLParameterValue, encodeCWLType, encodeCWLTypeYaml, encodeDirectoryPairs, encodeDoc, encodeDynamicObj, encodeDynamicValue, encodeEnvVarRequirementCompactMap, encodeExpressionScalar, encodeExpressionToolDescription, encodeExpressionToolDescriptionElement, encodeFilePairs, encodeHintEntry, encodeInputArraySchema, encodeInputArraySchemaYaml, encodeInputBinding, encodeInputEnumSchema, encodeInputEnumSchemaYaml, encodeInputRecordField, encodeInputRecordFieldYaml, encodeInputRecordSchema, encodeInputRecordSchemaYaml, encodeIntent, encodeLabel, encodeLinkMergeMethod, encodeOperationDescription, encodeOperationDescriptionElement, encodeOutputBinding, encodePickValueMethod, encodeProcessingUnit, encodeRequirement, encodeScatter, encodeScatterMethod, encodeSchemaDefRequirementType, encodeSchemaSaladString, encodeSoftwareRequirementCompactMap, encodeSourceArray, encodeStepInput, encodeStepInputs, encodeStepOutputParameter, encodeStepOutputs, encodeStringArrayOrScalar, encodeToolDescription, encodeToolDescriptionElement, encodeWorkflowDescription, encodeWorkflowDescriptionElement, encodeWorkflowStep, encodeWorkflowStepRun, encodeYAMLParameterFile, formatCWLType, getObjectPairs, isComplexType, normalizeDocString, normalizeEnvValueForEncode, renderTopLevelElement, tryGetArrayShorthand, writeYaml, yBool, yFloat, yMap };