@nfdi4plants/arctrl 3.0.0-beta.4 → 3.0.0-beta.6

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 (323) hide show
  1. package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +894 -4
  2. package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +121 -3
  3. package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +279 -1
  4. package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +101 -2
  5. package/dist/ts/node_modules/@fable-org/fable-library-js/Choice.js +187 -0
  6. package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +156 -2
  7. package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +183 -7
  8. package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +217 -5
  9. package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +154 -5
  10. package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +20 -1
  11. package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Collections.js +30 -0
  12. package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +68 -1
  13. package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +6 -1
  14. package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +98 -1
  15. package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +18 -1
  16. package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +601 -5
  17. package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +10 -1
  18. package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +760 -16
  19. package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +26 -1
  20. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +18 -8
  21. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +36 -4
  22. package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +35 -1
  23. package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +26 -1
  24. package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +355 -1
  25. package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +21 -2
  26. package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +133 -1
  27. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +543 -8
  28. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +53 -4
  29. package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +673 -41
  30. package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +197 -4
  31. package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +128 -3
  32. package/dist/ts/node_modules/@fable-org/fable-library-js/SystemException.js +8 -0
  33. package/dist/ts/node_modules/@fable-org/fable-library-js/TimeSpan.js +180 -0
  34. package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +20 -2
  35. package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +406 -2
  36. package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +2 -2
  37. package/dist/ts/ts/ARC.d.ts +12 -5
  38. package/dist/ts/ts/ARC.d.ts.map +1 -1
  39. package/dist/ts/ts/ARC.js +172 -93
  40. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  41. package/dist/ts/ts/Contract/ARC.js +8 -1
  42. package/dist/ts/ts/Contract/ArcAssay.js +14 -5
  43. package/dist/ts/ts/Contract/ArcInvestigation.js +10 -1
  44. package/dist/ts/ts/Contract/ArcRun.js +19 -6
  45. package/dist/ts/ts/Contract/ArcStudy.js +19 -6
  46. package/dist/ts/ts/Contract/ArcWorkflow.js +19 -6
  47. package/dist/ts/ts/Contract/Contract.js +42 -1
  48. package/dist/ts/ts/Contract/Datamap.js +61 -17
  49. package/dist/ts/ts/Contract/Git.d.ts.map +1 -1
  50. package/dist/ts/ts/Contract/Git.js +22 -6
  51. package/dist/ts/ts/Contract/License.d.ts +5 -0
  52. package/dist/ts/ts/Contract/License.d.ts.map +1 -0
  53. package/dist/ts/ts/Contract/License.js +34 -0
  54. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +31 -6
  55. package/dist/ts/ts/ContractIO/ContractIO.js +5 -5
  56. package/dist/ts/ts/ContractIO/FileSystemHelper.js +16 -4
  57. package/dist/ts/ts/Conversion.js +321 -48
  58. package/dist/ts/ts/Core/ArcTypes.js +216 -15
  59. package/dist/ts/ts/Core/Comment.js +11 -1
  60. package/dist/ts/ts/Core/CommentList.js +77 -2
  61. package/dist/ts/ts/Core/Conversion.js +123 -43
  62. package/dist/ts/ts/Core/Data.js +9 -2
  63. package/dist/ts/ts/Core/DataContext.js +19 -4
  64. package/dist/ts/ts/Core/DataFile.js +38 -1
  65. package/dist/ts/ts/Core/DataMap.js +111 -5
  66. package/dist/ts/ts/Core/Helper/Collections.js +106 -5
  67. package/dist/ts/ts/Core/Helper/HashCodes.js +4 -4
  68. package/dist/ts/ts/Core/Helper/Identifier.js +100 -2
  69. package/dist/ts/ts/Core/Helper/Regex.js +134 -2
  70. package/dist/ts/ts/Core/Helper/SemVer.js +23 -2
  71. package/dist/ts/ts/Core/IdentifierSetters.d.ts +3 -1
  72. package/dist/ts/ts/Core/IdentifierSetters.d.ts.map +1 -1
  73. package/dist/ts/ts/Core/IdentifierSetters.js +27 -1
  74. package/dist/ts/ts/Core/OntologyAnnotation.js +4 -1
  75. package/dist/ts/ts/Core/OntologySourceReference.js +8 -1
  76. package/dist/ts/ts/Core/Person.js +8 -1
  77. package/dist/ts/ts/Core/Process/ColumnIndex.js +121 -4
  78. package/dist/ts/ts/Core/Process/Component.js +37 -4
  79. package/dist/ts/ts/Core/Process/Factor.js +9 -4
  80. package/dist/ts/ts/Core/Process/FactorValue.js +61 -4
  81. package/dist/ts/ts/Core/Process/Material.js +14 -4
  82. package/dist/ts/ts/Core/Process/MaterialAttribute.js +41 -3
  83. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +67 -4
  84. package/dist/ts/ts/Core/Process/MaterialType.js +15 -1
  85. package/dist/ts/ts/Core/Process/Process.js +150 -7
  86. package/dist/ts/ts/Core/Process/ProcessInput.js +48 -8
  87. package/dist/ts/ts/Core/Process/ProcessOutput.js +44 -7
  88. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +10 -5
  89. package/dist/ts/ts/Core/Process/ProcessSequence.js +127 -6
  90. package/dist/ts/ts/Core/Process/Protocol.js +78 -4
  91. package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -2
  92. package/dist/ts/ts/Core/Process/Sample.js +21 -3
  93. package/dist/ts/ts/Core/Process/Source.js +13 -3
  94. package/dist/ts/ts/Core/Publication.js +8 -1
  95. package/dist/ts/ts/Core/Table/ArcTable.js +34 -25
  96. package/dist/ts/ts/Core/Table/ArcTableAux.js +150 -23
  97. package/dist/ts/ts/Core/Table/ArcTables.js +24 -15
  98. package/dist/ts/ts/Core/Table/CompositeCell.js +7 -3
  99. package/dist/ts/ts/Core/Table/CompositeColumn.js +8 -4
  100. package/dist/ts/ts/Core/Table/CompositeHeader.js +18 -15
  101. package/dist/ts/ts/Core/Template.js +12 -2
  102. package/dist/ts/ts/Core/Templates.js +8 -4
  103. package/dist/ts/ts/Core/Value.js +7 -3
  104. package/dist/ts/ts/CrossAsync.js +11 -1
  105. package/dist/ts/ts/FileSystem/Commit.js +18 -0
  106. package/dist/ts/ts/FileSystem/FileSystem.js +8 -3
  107. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +1 -0
  108. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
  109. package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -13
  110. package/dist/ts/ts/FileSystem/Path.d.ts +2 -0
  111. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  112. package/dist/ts/ts/FileSystem/Path.js +17 -3
  113. package/dist/ts/ts/Json/Assay.d.ts +1 -1
  114. package/dist/ts/ts/Json/Assay.js +28 -28
  115. package/dist/ts/ts/Json/Comment.js +10 -10
  116. package/dist/ts/ts/Json/Data.js +6 -6
  117. package/dist/ts/ts/Json/DataMap/DataContext.js +4 -4
  118. package/dist/ts/ts/Json/DataMap/DataMap.js +2 -2
  119. package/dist/ts/ts/Json/Decode.js +14 -9
  120. package/dist/ts/ts/Json/Encode.js +43 -11
  121. package/dist/ts/ts/Json/Investigation.js +40 -22
  122. package/dist/ts/ts/Json/OntologyAnnotation.js +5 -5
  123. package/dist/ts/ts/Json/OntologySourceReference.js +2 -2
  124. package/dist/ts/ts/Json/Person.js +26 -26
  125. package/dist/ts/ts/Json/Process/Component.d.ts +6 -4
  126. package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
  127. package/dist/ts/ts/Json/Process/Component.js +27 -7
  128. package/dist/ts/ts/Json/Process/Factor.js +3 -3
  129. package/dist/ts/ts/Json/Process/FactorValue.js +8 -8
  130. package/dist/ts/ts/Json/Process/Material.js +9 -9
  131. package/dist/ts/ts/Json/Process/MaterialAttribute.js +1 -1
  132. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +8 -8
  133. package/dist/ts/ts/Json/Process/Process.js +12 -12
  134. package/dist/ts/ts/Json/Process/ProcessInput.js +4 -4
  135. package/dist/ts/ts/Json/Process/ProcessOutput.js +3 -3
  136. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +11 -8
  137. package/dist/ts/ts/Json/Process/Protocol.js +13 -13
  138. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +4 -2
  139. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
  140. package/dist/ts/ts/Json/Process/ProtocolParameter.js +21 -12
  141. package/dist/ts/ts/Json/Process/Sample.js +14 -14
  142. package/dist/ts/ts/Json/Process/Source.js +9 -9
  143. package/dist/ts/ts/Json/Process/Value.js +1 -1
  144. package/dist/ts/ts/Json/PropertyValue.js +1 -1
  145. package/dist/ts/ts/Json/Publication.js +6 -6
  146. package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -0
  147. package/dist/ts/ts/Json/ROCrate/LDGraph.js +3 -3
  148. package/dist/ts/ts/Json/ROCrate/LDNode.js +19 -19
  149. package/dist/ts/ts/Json/Run.d.ts +11 -0
  150. package/dist/ts/ts/Json/Run.d.ts.map +1 -0
  151. package/dist/ts/ts/Json/Run.js +76 -0
  152. package/dist/ts/ts/Json/StringTable.js +1 -1
  153. package/dist/ts/ts/Json/Study.js +34 -34
  154. package/dist/ts/ts/Json/Table/ArcTable.js +29 -29
  155. package/dist/ts/ts/Json/Table/CellTable.js +6 -6
  156. package/dist/ts/ts/Json/Table/CompositeCell.js +4 -4
  157. package/dist/ts/ts/Json/Table/CompositeHeader.js +2 -2
  158. package/dist/ts/ts/Json/Table/IOType.js +1 -1
  159. package/dist/ts/ts/Json/Table/OATable.js +7 -7
  160. package/dist/ts/ts/Json/Table/Templates.js +92 -6
  161. package/dist/ts/ts/Json/Workflow.d.ts +11 -0
  162. package/dist/ts/ts/Json/Workflow.d.ts.map +1 -0
  163. package/dist/ts/ts/Json/Workflow.js +93 -0
  164. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +27 -1
  165. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +17 -1
  166. package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +19 -1
  167. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +27 -1
  168. package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +20 -1
  169. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +18 -1
  170. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +20 -1
  171. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +16 -1
  172. package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +25 -1
  173. package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +24 -1
  174. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +23 -1
  175. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +20 -1
  176. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +19 -1
  177. package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +19 -1
  178. package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +35 -1
  179. package/dist/ts/ts/Json/context/rocrate/rocrate_context.js +61 -0
  180. package/dist/ts/ts/Json.d.ts +34 -2
  181. package/dist/ts/ts/Json.d.ts.map +1 -1
  182. package/dist/ts/ts/Json.js +129 -2
  183. package/dist/ts/ts/JsonIO/Assay.js +15 -3
  184. package/dist/ts/ts/JsonIO/Investigation.js +15 -3
  185. package/dist/ts/ts/JsonIO/LDObject.js +17 -3
  186. package/dist/ts/ts/JsonIO/OntologyAnnotation.js +12 -2
  187. package/dist/ts/ts/JsonIO/Person.d.ts +16 -0
  188. package/dist/ts/ts/JsonIO/Person.d.ts.map +1 -0
  189. package/dist/ts/ts/JsonIO/Person.js +67 -0
  190. package/dist/ts/ts/JsonIO/Run.d.ts +10 -0
  191. package/dist/ts/ts/JsonIO/Run.d.ts.map +1 -0
  192. package/dist/ts/ts/JsonIO/Run.js +50 -0
  193. package/dist/ts/ts/JsonIO/Study.js +15 -3
  194. package/dist/ts/ts/JsonIO/Table/Compression.js +3 -3
  195. package/dist/ts/ts/JsonIO/Table/Templates.js +60 -5
  196. package/dist/ts/ts/JsonIO/Workflow.d.ts +10 -0
  197. package/dist/ts/ts/JsonIO/Workflow.d.ts.map +1 -0
  198. package/dist/ts/ts/JsonIO/Workflow.js +50 -0
  199. package/dist/ts/ts/License.d.ts +39 -0
  200. package/dist/ts/ts/License.d.ts.map +1 -0
  201. package/dist/ts/ts/License.js +123 -0
  202. package/dist/ts/ts/ROCrate/Generic/Comment.js +5 -1
  203. package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts +69 -0
  204. package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts.map +1 -0
  205. package/dist/ts/ts/ROCrate/Generic/CreativeWork.js +450 -0
  206. package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts +1 -0
  207. package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +1 -1
  208. package/dist/ts/ts/ROCrate/Generic/Dataset.js +27 -1
  209. package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +5 -1
  210. package/dist/ts/ts/ROCrate/Generic/File.js +5 -1
  211. package/dist/ts/ts/ROCrate/Generic/LabProcess.js +5 -1
  212. package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +5 -1
  213. package/dist/ts/ts/ROCrate/Generic/Organization.js +5 -1
  214. package/dist/ts/ts/ROCrate/Generic/Person.js +7 -2
  215. package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +5 -1
  216. package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +19 -15
  217. package/dist/ts/ts/ROCrate/Generic/Sample.js +5 -1
  218. package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +5 -1
  219. package/dist/ts/ts/ROCrate/LDContext.js +15 -6
  220. package/dist/ts/ts/ROCrate/LDObject.js +53 -17
  221. package/dist/ts/ts/ROCrateIO.d.ts +9 -3
  222. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  223. package/dist/ts/ts/ROCrateIO.js +67 -14
  224. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +18 -15
  225. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +5 -4
  226. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +40 -17
  227. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +4 -4
  228. package/dist/ts/ts/Spreadsheet/ArcAssay.js +30 -15
  229. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +32 -18
  230. package/dist/ts/ts/Spreadsheet/ArcRun.js +23 -8
  231. package/dist/ts/ts/Spreadsheet/ArcStudy.js +22 -7
  232. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +23 -8
  233. package/dist/ts/ts/Spreadsheet/CollectionAux.js +75 -5
  234. package/dist/ts/ts/Spreadsheet/DataMap.js +1 -1
  235. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +4 -4
  236. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +8 -8
  237. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +4 -4
  238. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
  239. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +1 -1
  240. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
  241. package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +6 -3
  242. package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +9 -3
  243. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -4
  244. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +7 -5
  245. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +1 -1
  246. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +10 -8
  247. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +5 -5
  248. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +6 -6
  249. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +246 -10
  250. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +19 -13
  251. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
  252. package/dist/ts/ts/Template.Web.js +5 -1
  253. package/dist/ts/ts/ValidationPackages/ValidationPackage.js +8 -1
  254. package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +10 -3
  255. package/dist/ts/ts/WebRequest/WebRequest.Node.js +1 -0
  256. package/dist/ts/ts/Xlsx.d.ts +21 -1
  257. package/dist/ts/ts/Xlsx.d.ts.map +1 -1
  258. package/dist/ts/ts/Xlsx.js +81 -1
  259. package/dist/ts/ts/Yaml/ValidationPackage.js +18 -2
  260. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -2
  261. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +27 -4
  262. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +14 -3
  263. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +30 -4
  264. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +5 -1
  265. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +65 -2
  266. package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +257 -1
  267. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +71 -1
  268. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +11 -1
  269. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +188 -11
  270. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +80 -2
  271. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +63 -4
  272. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +17 -7
  273. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/CellBuilder.fs.js +198 -0
  274. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Expression.fs.js +46 -0
  275. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/RowBuilder.fs.js +131 -0
  276. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Types.fs.js +307 -0
  277. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +38 -2
  278. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +11 -4
  279. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +12 -5
  280. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +9 -2
  281. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +14 -7
  282. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +31 -1
  283. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Cell.fs.js +65 -0
  284. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Column.fs.js +38 -0
  285. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Row.fs.js +38 -0
  286. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Table.fs.js +34 -0
  287. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +49 -3
  288. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Workbook.fs.js +44 -0
  289. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Worksheet.fs.js +129 -0
  290. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +9 -2
  291. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -3
  292. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +12 -3
  293. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +17 -2
  294. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +9 -2
  295. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +12 -5
  296. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +12 -3
  297. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +2 -2
  298. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +42 -3
  299. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Json.fs.js +53 -0
  300. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +9 -9
  301. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +1 -1
  302. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +2 -2
  303. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +5 -1
  304. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +730 -23
  305. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +192 -7
  306. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +45 -1
  307. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +15 -2
  308. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +1383 -15
  309. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +45 -4
  310. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +10 -0
  311. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +5 -5
  312. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +16 -6
  313. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +26 -23
  314. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +1 -1
  315. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +8 -8
  316. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +18 -2
  317. package/package.json +1 -1
  318. package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts +0 -2
  319. package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts.map +0 -1
  320. package/dist/ts/ts/FileSystem/DefaultGitattributes.js +0 -3
  321. package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts +0 -2
  322. package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts.map +0 -1
  323. package/dist/ts/ts/FileSystem/DefaultGitignore.js +0 -3
@@ -1,10 +1,11 @@
1
1
  import { tryParse } from '../../node_modules/@fable-org/fable-library-js/Int32.js';
2
2
  import { Union, FSharpRef, toString } from '../../node_modules/@fable-org/fable-library-js/Types.js';
3
3
  import { tryParse as tryParse$1 } from '../../node_modules/@fable-org/fable-library-js/Double.js';
4
- import { OntologyAnnotation } from './OntologyAnnotation.js';
4
+ import { OntologyAnnotation, OntologyAnnotation_$reflection } from './OntologyAnnotation.js';
5
5
  import { defaultArg, unwrap, value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
6
6
  import { int32ToString } from '../../node_modules/@fable-org/fable-library-js/Util.js';
7
7
  import { toText, printf } from '../../node_modules/@fable-org/fable-library-js/String.js';
8
+ import { union_type, int32_type, float64_type, string_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
8
9
 
9
10
  function Value_Ontology(Item) {
10
11
  return new Value(0, [Item]);
@@ -127,7 +128,7 @@ class Value extends Union {
127
128
  const this$ = this;
128
129
  if (this$.tag === /* Ontology */
129
130
  0) {
130
- this$.fields[0];
131
+ const oa = this$.fields[0];
131
132
  return true;
132
133
  } else {
133
134
  return false;
@@ -190,5 +191,8 @@ class Value extends Union {
190
191
  }
191
192
  }
192
193
  }
194
+ function Value_$reflection() {
195
+ return union_type("ARCtrl.Value", [], Value, () => [[["Item", OntologyAnnotation_$reflection()]], [["Item", int32_type]], [["Item", float64_type]], [["Item", string_type]]]);
196
+ }
193
197
 
194
- export { Value, Value_Float, Value_Int, Value_Name, Value_Ontology };
198
+ export { Value, Value_$reflection, Value_Float, Value_Int, Value_Name, Value_Ontology };
@@ -2,6 +2,9 @@ import { PromiseBuilder__Run_212F1D4B, PromiseBuilder__Delay_62FBFDE1 } from './
2
2
  import { promise } from './fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js';
3
3
  import { append } from '../node_modules/@fable-org/fable-library-js/Array.js';
4
4
  import { getEnumerator } from '../node_modules/@fable-org/fable-library-js/Util.js';
5
+ import { awaitPromise } from '../node_modules/@fable-org/fable-library-js/Async.js';
6
+ import { FSharpResult$2_Ok, FSharpResult$2_Error } from '../node_modules/@fable-org/fable-library-js/Result.js';
7
+ import { toString } from '../node_modules/@fable-org/fable-library-js/Types.js';
5
8
 
6
9
  function startSequential(starterF, tasks) {
7
10
  const loop = (en) => PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => en["System.Collections.IEnumerator.MoveNext"]() ? starterF(en["System.Collections.Generic.IEnumerator`1.get_Current"]()).then((_arg) => loop(en).then((_arg_1) => Promise.resolve(append([_arg], _arg_1)))) : Promise.resolve([])));
@@ -13,8 +16,15 @@ function all(tasks) {
13
16
  function map(f, v) {
14
17
  return PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => v.then((_arg) => Promise.resolve(f(_arg)))));
15
18
  }
19
+ function asAsync(v) {
20
+ return awaitPromise(v);
21
+ }
16
22
  function catchWith(f, p) {
17
23
  return p.catch(f);
18
24
  }
25
+ function catchAsResult(p) {
26
+ const pr_1 = p.then(FSharpResult$2_Ok);
27
+ return pr_1.catch((e) => FSharpResult$2_Error(toString(e)));
28
+ }
19
29
 
20
- export { all, catchWith, map, startSequential };
30
+ export { all, asAsync, catchAsResult, catchWith, map, startSequential };
@@ -0,0 +1,18 @@
1
+ import { Record } from '../../node_modules/@fable-org/fable-library-js/Types.js';
2
+ import { record_type, string_type, class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
3
+
4
+ class Commit extends Record {
5
+ constructor(Hash, UserName, UserEmail, Date$, Message) {
6
+ super();
7
+ this.Hash = Hash;
8
+ this.UserName = UserName;
9
+ this.UserEmail = UserEmail;
10
+ this.Date = Date$;
11
+ this.Message = Message;
12
+ }
13
+ }
14
+ function Commit_$reflection() {
15
+ return record_type("ARCtrl.FileSystem.Commit", [], Commit, () => [["Hash", string_type], ["UserName", string_type], ["UserEmail", string_type], ["Date", class_type("System.DateTime")], ["Message", string_type]]);
16
+ }
17
+
18
+ export { Commit, Commit_$reflection };
@@ -1,7 +1,9 @@
1
1
  import { defaultArg } from '../../node_modules/@fable-org/fable-library-js/Option.js';
2
- import { Record } from '../../node_modules/@fable-org/fable-library-js/Types.js';
3
- import { FileSystemTree } from './FileSystemTree.js';
2
+ import { Commit_$reflection } from './Commit.js';
3
+ import { FileSystemTree, FileSystemTree_$reflection } from './FileSystemTree.js';
4
4
  import { append, map } from '../../node_modules/@fable-org/fable-library-js/Array.js';
5
+ import { Record } from '../../node_modules/@fable-org/fable-library-js/Types.js';
6
+ import { record_type, array_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
5
7
 
6
8
  class FileSystem extends Record {
7
9
  constructor(Tree, History) {
@@ -44,5 +46,8 @@ class FileSystem extends Record {
44
46
  });
45
47
  }
46
48
  }
49
+ function FileSystem_$reflection() {
50
+ return record_type("ARCtrl.FileSystem.FileSystem", [], FileSystem, () => [["Tree", FileSystemTree_$reflection()], ["History", array_type(Commit_$reflection())]]);
51
+ }
47
52
 
48
- export { FileSystem };
53
+ export { FileSystem, FileSystem_$reflection };
@@ -46,6 +46,7 @@ export declare class FileSystemTree<Tag extends keyof FileSystemTree_$cases> ext
46
46
  static createWorkflowFolder(workflowName: string, hasDataMap?: boolean): FileSystemTree_$union;
47
47
  static createRunFolder(runName: string, hasDataMap?: boolean): FileSystemTree_$union;
48
48
  static createInvestigationFile(): FileSystemTree_$union;
49
+ static createLicenseFile(): FileSystemTree_$union;
49
50
  static createAssaysFolder(assays: FileSystemTree_$union[]): FileSystemTree_$union;
50
51
  static createStudiesFolder(studies: FileSystemTree_$union[]): FileSystemTree_$union;
51
52
  static createWorkflowsFolder(workflows: FileSystemTree_$union[]): FileSystemTree_$union;
@@ -1 +1 @@
1
- {"version":3,"file":"FileSystemTree.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/FileSystem/FileSystemTree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,MAAM,EAAc,MAAM,uCAAuC,CAAC;AAQnF,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAuC,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAE1G,MAAM,MAAM,qBAAqB,GAC3B,cAAc,CAAC,CAAC,CAAC,GACjB,cAAc,CAAC,CAAC,CAAC,CAAA;AAEvB,MAAM,MAAM,qBAAqB,GAAG;IAChC,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACtB,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,qBAAqB,EAAE,CAAC,CAAC,CAAA;CACnD,CAAA;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,qBAE/C;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,qBAAqB,EAAE,qBAEpF;AAED,qBAAa,cAAc,CAAC,GAAG,SAAS,MAAM,qBAAqB,CAAE,SAAQ,KAAK,CAAC,GAAG,EAAE,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACtG,QAAQ,CAAC,GAAG,EAAE,GAAG;IAAE,QAAQ,CAAC,MAAM,EAAE,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;gBAAxD,GAAG,EAAE,GAAG,EAAW,MAAM,EAAE,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAG7E,KAAK;IA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AI,EAAE,qBAAqB,KAAK,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAGvH,KAAK,CAAC,QAAQ,EAAE,qBAAqB,GAAG,qBAAqB;IAS7D,IAAI,IAAI,qBAAqB;IAI7B,MAAM,CAAC,iBAAiB,IAAI,qBAAqB;IAGjD,MAAM,CAAC,gBAAgB,IAAI,qBAAqB;IAGhD,MAAM,CAAC,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,qBAAqB;IAG7D,MAAM,CAAC,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,qBAAqB;IAcxF,MAAM,CAAC,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,qBAAqB;IAcxF,MAAM,CAAC,oBAAoB,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,qBAAqB;IAY9F,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,qBAAqB;IAYpF,MAAM,CAAC,uBAAuB,IAAI,qBAAqB;IAGvD,MAAM,CAAC,iBAAiB,IAAI,qBAAqB;IAGjD,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,qBAAqB,EAAE,GAAG,qBAAqB;IAGjF,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,qBAAqB;IAGnF,MAAM,CAAC,qBAAqB,CAAC,SAAS,EAAE,qBAAqB,EAAE,GAAG,qBAAqB;IAGvF,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,qBAAqB,EAAE,GAAG,qBAAqB;CAGhF;AAED,wBAAgB,0BAA0B,IAAI,QAAQ,CAErD"}
@@ -1,11 +1,12 @@
1
1
  import { defaultArg, unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
2
- import { tryFind, map, append, item, tryPick, head, tail, choose, equalsWith } from '../../node_modules/@fable-org/fable-library-js/Array.js';
2
+ import { tryFind, item, tryPick, head, tail, map, equalsWith, choose, append as append$1 } from '../../node_modules/@fable-org/fable-library-js/Array.js';
3
3
  import { split, combineMany } from './Path.js';
4
- import { toArray, delay, append as append$1, singleton } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
5
- import { Array_distinct, Array_groupBy } from '../../node_modules/@fable-org/fable-library-js/Seq2.js';
6
- import { curry2, arrayHash, stringHash } from '../../node_modules/@fable-org/fable-library-js/Util.js';
7
- import { empty, cons, toArray as toArray$1, reverse } from '../../node_modules/@fable-org/fable-library-js/List.js';
4
+ import { toArray, delay, append, singleton } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
5
+ import { Array_groupBy, Array_distinct } from '../../node_modules/@fable-org/fable-library-js/Seq2.js';
6
+ import { stringHash, arrayHash, curry2 } from '../../node_modules/@fable-org/fable-library-js/Util.js';
7
+ import { cons, toArray as toArray$1, reverse, empty } from '../../node_modules/@fable-org/fable-library-js/List.js';
8
8
  import { Union } from '../../node_modules/@fable-org/fable-library-js/Types.js';
9
+ import { union_type, string_type, array_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
9
10
 
10
11
  function FileSystemTree_File(name) {
11
12
  return new FileSystemTree(0, [name]);
@@ -110,7 +111,7 @@ class FileSystemTree extends Union {
110
111
  AddFile(path) {
111
112
  const this$ = this;
112
113
  const existingPaths = this$.ToFilePaths();
113
- const filePaths = toArray(delay(() => append$1(singleton(path), delay(() => existingPaths))));
114
+ const filePaths = toArray(delay(() => append(singleton(path), delay(() => existingPaths))));
114
115
  return FileSystemTree.fromFilePaths(filePaths);
115
116
  }
116
117
  static addFile(path) {
@@ -132,7 +133,7 @@ class FileSystemTree extends Union {
132
133
  if (parent.tag === /* Folder */
133
134
  1) {
134
135
  const name_1 = parent.fields[0];
135
- return FileSystemTree.createFolder(name_1, toArray(delay(() => append$1(files, delay(() => folders)))));
136
+ return FileSystemTree.createFolder(name_1, toArray(delay(() => append(files, delay(() => folders)))));
136
137
  } else {
137
138
  return parent;
138
139
  }
@@ -251,7 +252,7 @@ class FileSystemTree extends Union {
251
252
  Union(otherFST) {
252
253
  let array_1;
253
254
  const this$ = this;
254
- const paths = Array_distinct((array_1 = this$.ToFilePaths(), append(otherFST.ToFilePaths(), array_1)), {
255
+ const paths = Array_distinct((array_1 = this$.ToFilePaths(), append$1(otherFST.ToFilePaths(), array_1)), {
255
256
  Equals: (x, y) => x === y,
256
257
  GetHashCode: stringHash
257
258
  });
@@ -322,18 +323,24 @@ class FileSystemTree extends Union {
322
323
  static createInvestigationFile() {
323
324
  return FileSystemTree.createFile("isa.investigation.xlsx");
324
325
  }
326
+ static createLicenseFile() {
327
+ return FileSystemTree.createFile("LICENSE");
328
+ }
325
329
  static createAssaysFolder(assays) {
326
- return FileSystemTree.createFolder("assays", append([FileSystemTree.createGitKeepFile()], assays));
330
+ return FileSystemTree.createFolder("assays", append$1([FileSystemTree.createGitKeepFile()], assays));
327
331
  }
328
332
  static createStudiesFolder(studies) {
329
- return FileSystemTree.createFolder("studies", append([FileSystemTree.createGitKeepFile()], studies));
333
+ return FileSystemTree.createFolder("studies", append$1([FileSystemTree.createGitKeepFile()], studies));
330
334
  }
331
335
  static createWorkflowsFolder(workflows) {
332
- return FileSystemTree.createFolder("workflows", append([FileSystemTree.createGitKeepFile()], workflows));
336
+ return FileSystemTree.createFolder("workflows", append$1([FileSystemTree.createGitKeepFile()], workflows));
333
337
  }
334
338
  static createRunsFolder(runs) {
335
- return FileSystemTree.createFolder("runs", append([FileSystemTree.createGitKeepFile()], runs));
339
+ return FileSystemTree.createFolder("runs", append$1([FileSystemTree.createGitKeepFile()], runs));
336
340
  }
337
341
  }
342
+ function FileSystemTree_$reflection() {
343
+ return union_type("ARCtrl.FileSystem.FileSystemTree", [], FileSystemTree, () => [[["name", string_type]], [["name", string_type], ["children", array_type(FileSystemTree_$reflection())]]]);
344
+ }
338
345
 
339
- export { FileSystemTree, FileSystemTree_File, FileSystemTree_Folder };
346
+ export { FileSystemTree, FileSystemTree_$reflection, FileSystemTree_File, FileSystemTree_Folder };
@@ -1,4 +1,6 @@
1
+ import { FSharpList } from '@fable-org/fable-library-js/List.js';
1
2
  export declare const seperators: string[];
3
+ export declare const alternativeLICENSEFileNames: FSharpList<string>;
2
4
  export declare function split(path: string): string[];
3
5
  export declare function combine(path1: string, path2: string): string;
4
6
  export declare function combineMany(paths: string[]): string;
@@ -1 +1 @@
1
- {"version":3,"file":"Path.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/FileSystem/Path.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU,EAAE,MAAM,EAAgB,CAAC;AAEhD,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAU5C;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAYnD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAE9D;AAED,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,wBAAgB,qBAAqB,CAAC,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAExE;AAED,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAE9D"}
1
+ {"version":3,"file":"Path.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/FileSystem/Path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAW,MAAM,qCAAqC,CAAC;AAK1E,eAAO,MAAM,UAAU,EAAE,MAAM,EAAgB,CAAC;AAEhD,eAAO,MAAM,2BAA2B,EAAE,UAAU,CAAC,MAAM,CAAyD,CAAC;AAErH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAU5C;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAYnD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAE9D;AAED,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,wBAAgB,qBAAqB,CAAC,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAExE;AAED,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAE9D"}
@@ -1,7 +1,9 @@
1
- import { join, split as split$1, trimEnd, trimStart, trim } from '../../node_modules/@fable-org/fable-library-js/String.js';
2
- import { mapIndexed } from '../../node_modules/@fable-org/fable-library-js/Array.js';
1
+ import { ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
2
+ import { split as split$1, trimEnd, trimStart, join, trim } from '../../node_modules/@fable-org/fable-library-js/String.js';
3
+ import { mapIndexed, last } from '../../node_modules/@fable-org/fable-library-js/Array.js';
3
4
 
4
5
  const seperators = ["/", "\\"];
6
+ const alternativeLICENSEFileNames = ofArray(["LICENSE.txt", "LICENSE.md", "LICENSE.rst"]);
5
7
  function split(path) {
6
8
  const array = split$1(path, seperators, void 0, 3);
7
9
  return array.filter((p) => {
@@ -26,11 +28,23 @@ function combineMany(paths) {
26
28
  }
27
29
  }, paths));
28
30
  }
31
+ function getFileName(path) {
32
+ return last(split(path));
33
+ }
34
+ function isFile(fileName, path) {
35
+ return getFileName(path) === fileName;
36
+ }
29
37
  function getAssayFolderPath(assayIdentifier) {
30
38
  return combine("assays", assayIdentifier);
31
39
  }
32
40
  function getStudyFolderPath(studyIdentifier) {
33
41
  return combine("studies", studyIdentifier);
34
42
  }
43
+ function getWorkflowFolderPath(workflowIdentifier) {
44
+ return combine("workflows", workflowIdentifier);
45
+ }
46
+ function getRunFolderPath(runIdentifier) {
47
+ return combine("runs", runIdentifier);
48
+ }
35
49
 
36
- export { combine, combineMany, getAssayFolderPath, getStudyFolderPath, seperators, split };
50
+ export { alternativeLICENSEFileNames, combine, combineMany, getAssayFolderPath, getFileName, getRunFolderPath, getStudyFolderPath, getWorkflowFolderPath, isFile, seperators, split };
@@ -11,7 +11,7 @@ export declare const decoder: Decoder$1<ArcAssay>;
11
11
  export declare function encoderCompressed(stringTable: IMap<string, int32>, oaTable: IMap<OntologyAnnotation, int32>, cellTable: IMap<CompositeCell_$union, int32>, assay: ArcAssay): IEncodable;
12
12
  export declare function decoderCompressed(stringTable: string[], oaTable: OntologyAnnotation[], cellTable: CompositeCell_$union[]): Decoder$1<ArcAssay>;
13
13
  export declare function ROCrate_genID(a: ArcAssay): string;
14
- export declare function ROCrate_encoder(studyName: Option<string>, a: ArcAssay): IEncodable;
14
+ export declare function ROCrate_encoder(assayName: Option<string>, a: ArcAssay): IEncodable;
15
15
  export declare const ROCrate_decoder: Decoder$1<ArcAssay>;
16
16
  export declare function ISAJson_encoder(studyName: Option<string>, idMap: Option<IMap<string, IEncodable>>, a: ArcAssay): IEncodable;
17
17
  export declare const ISAJson_allowedFields: FSharpList<string>;
@@ -1,26 +1,26 @@
1
- import { ofArray, choose, singleton, empty } from '../../node_modules/@fable-org/fable-library-js/List.js';
2
- import { defaultArg, bind, map, value, unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
1
+ import { choose, ofArray, singleton, empty } from '../../node_modules/@fable-org/fable-library-js/List.js';
2
+ import { map, unwrap, defaultArg, value, bind } from '../../node_modules/@fable-org/fable-library-js/Option.js';
3
3
  import { tryInclude, tryIncludeSeq, tryIncludeList } from './Encode.js';
4
- import { OntologyAnnotation_ISAJson_decoder, OntologyAnnotation_decoder, OntologyAnnotation_ROCrate_decoderPropertyValue, OntologyAnnotation_ROCrate_decoderDefinedTerm, OntologyAnnotation_encoder, OntologyAnnotation_ROCrate_encoderPropertyValue, OntologyAnnotation_ROCrate_encoderDefinedTerm, OntologyAnnotation_ISAJson_encoder } from './OntologyAnnotation.js';
5
- import { decoder as decoder$2, decoderCompressed as decoderCompressed$2, encoder as encoder$1, encoderCompressed as encoderCompressed$2 } from './DataMap/DataMap.js';
6
- import { decoder as decoder$1, decoderCompressed as decoderCompressed$1, encoder as encoder$2, encoderCompressed as encoderCompressed$1 } from './Table/ArcTable.js';
7
- import { decoder as decoder$3, ROCrate_decoder as ROCrate_decoder$2, encoder as encoder$3, ROCrate_encoder as ROCrate_encoder$1 } from './Person.js';
8
- import { ISAJson_decoder as ISAJson_decoder$2, decoder as decoder$4, ROCrate_decoder as ROCrate_decoder$3, encoder as encoder$4, ROCrate_encoder as ROCrate_encoder$3, ISAJson_encoder as ISAJson_encoder$3 } from './Comment.js';
4
+ import { OntologyAnnotation_encoder, OntologyAnnotation_decoder, OntologyAnnotation_ROCrate_encoderPropertyValue, OntologyAnnotation_ROCrate_encoderDefinedTerm, OntologyAnnotation_ROCrate_decoderPropertyValue, OntologyAnnotation_ROCrate_decoderDefinedTerm, OntologyAnnotation_ISAJson_encoder, OntologyAnnotation_ISAJson_decoder } from './OntologyAnnotation.js';
5
+ import { encoder as encoder$1, decoder as decoder$2, encoderCompressed as encoderCompressed$2, decoderCompressed as decoderCompressed$2 } from './DataMap/DataMap.js';
6
+ import { encoder as encoder$2, decoder as decoder$1, encoderCompressed as encoderCompressed$1, decoderCompressed as decoderCompressed$1 } from './Table/ArcTable.js';
7
+ import { encoder as encoder$3, decoder as decoder$3, ROCrate_encoder as ROCrate_encoder$1, ROCrate_decoder as ROCrate_decoder$2 } from './Person.js';
8
+ import { encoder as encoder$4, decoder as decoder$4, ROCrate_encoder as ROCrate_encoder$4, ROCrate_decoder as ROCrate_decoder$3, ISAJson_encoder as ISAJson_encoder$3, ISAJson_decoder as ISAJson_decoder$2 } from './Comment.js';
9
9
  import { Comment$ } from '../Core/Comment.js';
10
- import { tryPick, length, map as map$2, toList, delay, append, empty as empty$1, singleton as singleton$1 } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
10
+ import { map as map$1, toList, delay, append, empty as empty$1, singleton as singleton$1, tryPick, length } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
11
11
  import { ArcAssay } from '../Core/ArcTypes.js';
12
- import { string, list, resizeArray, map as map$1, object } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
12
+ import { object, string, resizeArray, list as list$1, map as map$2 } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
13
13
  import { replace } from '../../node_modules/@fable-org/fable-library-js/String.js';
14
- import { createMissingIdentifier, Assay_tryIdentifierFromFileName, Assay_fileNameFromIdentifier } from '../Core/Helper/Identifier.js';
15
- import { ARCtrl_ArcTables__ArcTables_fromProcesses_Static_62A3309D, JsonTypes_decomposeTechnologyPlatform, ARCtrl_ArcTables__ArcTables_GetProcesses, JsonTypes_composeTechnologyPlatform } from '../Core/Conversion.js';
14
+ import { Assay_fileNameFromIdentifier, createMissingIdentifier, Assay_tryIdentifierFromFileName } from '../Core/Helper/Identifier.js';
15
+ import { ARCtrl_ArcTables__ArcTables_GetProcesses, ARCtrl_ArcTables__ArcTables_fromProcesses_Static_62A3309D, JsonTypes_composeTechnologyPlatform, JsonTypes_decomposeTechnologyPlatform } from '../Core/Conversion.js';
16
16
  import { getData, getUnits, getCharacteristics } from '../Core/Process/ProcessSequence.js';
17
- import { list as list$1 } from '../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
18
- import { ISAJson_encoder as ISAJson_encoder$1, ROCrate_encoder as ROCrate_encoder$4 } from './Data.js';
19
- import { ISAJson_decoder as ISAJson_decoder$1, ROCrate_decoder as ROCrate_decoder$1, ROCrate_encoder as ROCrate_encoder$2, ISAJson_encoder as ISAJson_encoder$2 } from './Process/Process.js';
17
+ import { list } from '../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
18
+ import { ROCrate_encoder as ROCrate_encoder$2, ISAJson_encoder as ISAJson_encoder$1 } from './Data.js';
19
+ import { ROCrate_encoder as ROCrate_encoder$3, ROCrate_decoder as ROCrate_decoder$1, ISAJson_encoder as ISAJson_encoder$2, ISAJson_decoder as ISAJson_decoder$1 } from './Process/Process.js';
20
20
  import { context_jsonvalue } from './context/rocrate/isa_assay_context.js';
21
21
  import { encoder as encoder$5 } from './Process/MaterialAttribute.js';
22
22
  import { encoder as encoder$6 } from './Process/AssayMaterials.js';
23
- import { ResizeArray_filter, Option_fromValueWithDefault } from '../Core/Helper/Collections.js';
23
+ import { Option_fromValueWithDefault, ResizeArray_filter } from '../Core/Helper/Collections.js';
24
24
  import { encode } from './IDTable.js';
25
25
  import { Decode_objectNoAdditionalProperties } from './Decode.js';
26
26
 
@@ -41,7 +41,7 @@ function encoder(assay) {
41
41
  }), assay.Description), tryInclude("MeasurementType", OntologyAnnotation_encoder, assay.MeasurementType), tryInclude("TechnologyType", OntologyAnnotation_encoder, assay.TechnologyType), tryInclude("TechnologyPlatform", OntologyAnnotation_encoder, assay.TechnologyPlatform), tryInclude("DataMap", encoder$1, assay.DataMap), tryIncludeSeq("Tables", encoder$2, assay.Tables), tryIncludeSeq("Performers", encoder$3, assay.Performers), tryIncludeSeq("Comments", encoder$4, assay.Comments)]));
42
42
  return {
43
43
  Encode(helpers_3) {
44
- const arg = map$2((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_3)], values_1);
44
+ const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_3)], values_1);
45
45
  return helpers_3.encodeObject(arg);
46
46
  }
47
47
  };
@@ -67,7 +67,7 @@ function encoderCompressed(stringTable, oaTable, cellTable, assay) {
67
67
  }), assay.Description), tryInclude("MeasurementType", OntologyAnnotation_encoder, assay.MeasurementType), tryInclude("TechnologyType", OntologyAnnotation_encoder, assay.TechnologyType), tryInclude("TechnologyPlatform", OntologyAnnotation_encoder, assay.TechnologyPlatform), tryIncludeSeq("Tables", (table) => encoderCompressed$1(stringTable, oaTable, cellTable, table), assay.Tables), tryInclude("DataMap", (dm) => encoderCompressed$2(stringTable, oaTable, cellTable, dm), assay.DataMap), tryIncludeSeq("Performers", encoder$3, assay.Performers), tryIncludeSeq("Comments", encoder$4, assay.Comments)]));
68
68
  return {
69
69
  Encode(helpers_3) {
70
- const arg = map$2((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_3)], values_1);
70
+ const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_3)], values_1);
71
71
  return helpers_3.encodeObject(arg);
72
72
  }
73
73
  };
@@ -75,7 +75,7 @@ function encoderCompressed(stringTable, oaTable, cellTable, assay) {
75
75
  function decoderCompressed(stringTable, oaTable, cellTable) {
76
76
  return object((get$) => {
77
77
  let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9;
78
- return ArcAssay.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("MeasurementType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("TechnologyType", OntologyAnnotation_decoder))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("TechnologyPlatform", OntologyAnnotation_decoder))), unwrap((arg_13 = resizeArray(decoderCompressed$1(stringTable, oaTable, cellTable)), objectArg_6 = get$.Optional, objectArg_6.Field("Tables", arg_13))), unwrap((arg_15 = decoderCompressed$2(), objectArg_7 = get$.Optional, objectArg_7.Field("DataMap", arg_15))), unwrap((arg_17 = resizeArray(decoder$3), objectArg_8 = get$.Optional, objectArg_8.Field("Performers", arg_17))), unwrap((arg_19 = resizeArray(decoder$4), objectArg_9 = get$.Optional, objectArg_9.Field("Comments", arg_19))));
78
+ return ArcAssay.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("MeasurementType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("TechnologyType", OntologyAnnotation_decoder))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("TechnologyPlatform", OntologyAnnotation_decoder))), unwrap((arg_13 = resizeArray(decoderCompressed$1(stringTable, oaTable, cellTable)), objectArg_6 = get$.Optional, objectArg_6.Field("Tables", arg_13))), unwrap((arg_15 = decoderCompressed$2(stringTable, oaTable, cellTable), objectArg_7 = get$.Optional, objectArg_7.Field("DataMap", arg_15))), unwrap((arg_17 = resizeArray(decoder$3), objectArg_8 = get$.Optional, objectArg_8.Field("Performers", arg_17))), unwrap((arg_19 = resizeArray(decoder$4), objectArg_9 = get$.Optional, objectArg_9.Field("Comments", arg_19))));
79
79
  });
80
80
  }
81
81
  function ROCrate_genID(a) {
@@ -86,8 +86,8 @@ function ROCrate_genID(a) {
86
86
  return `assays/${replace(matchValue, " ", "_")}/`;
87
87
  }
88
88
  }
89
- function ROCrate_encoder(studyName, a) {
90
- let value, value_3, assayName;
89
+ function ROCrate_encoder(assayName, a) {
90
+ let value, value_3, assayName_1;
91
91
  const fileName = Assay_fileNameFromIdentifier(a.Identifier);
92
92
  const processes = ARCtrl_ArcTables__ArcTables_GetProcesses(a);
93
93
  const dataFiles = getData(processes);
@@ -95,7 +95,7 @@ function ROCrate_encoder(studyName, a) {
95
95
  Encode(helpers) {
96
96
  return helpers.encodeString(value);
97
97
  }
98
- })], ["@type", list$1(singleton({
98
+ })], ["@type", list(singleton({
99
99
  Encode(helpers_1) {
100
100
  return helpers_1.encodeString("Assay");
101
101
  }
@@ -119,10 +119,10 @@ function ROCrate_encoder(studyName, a) {
119
119
  Encode(helpers_6) {
120
120
  return helpers_6.encodeString(value_7);
121
121
  }
122
- }), a.Description), tryInclude("measurementType", OntologyAnnotation_ROCrate_encoderPropertyValue, a.MeasurementType), tryInclude("technologyType", OntologyAnnotation_ROCrate_encoderDefinedTerm, a.TechnologyType), tryInclude("technologyPlatform", OntologyAnnotation_ROCrate_encoderDefinedTerm, a.TechnologyPlatform), tryIncludeSeq("performers", ROCrate_encoder$1, a.Performers), tryIncludeList("dataFiles", ROCrate_encoder$4, dataFiles), tryIncludeList("processSequence", (assayName = a.Identifier, (oa_5) => ROCrate_encoder$2(studyName, assayName, oa_5)), processes), tryIncludeSeq("comments", ROCrate_encoder$3, a.Comments), ["@context", context_jsonvalue]]));
122
+ }), a.Description), tryInclude("measurementType", OntologyAnnotation_ROCrate_encoderPropertyValue, a.MeasurementType), tryInclude("technologyType", OntologyAnnotation_ROCrate_encoderDefinedTerm, a.TechnologyType), tryInclude("technologyPlatform", OntologyAnnotation_ROCrate_encoderDefinedTerm, a.TechnologyPlatform), tryIncludeSeq("performers", ROCrate_encoder$1, a.Performers), tryIncludeList("dataFiles", ROCrate_encoder$2, dataFiles), tryIncludeList("processSequence", (assayName_1 = a.Identifier, (oa_5) => ROCrate_encoder$3(assayName, assayName_1, oa_5)), processes), tryIncludeSeq("comments", ROCrate_encoder$4, a.Comments), ["@context", context_jsonvalue]]));
123
123
  return {
124
124
  Encode(helpers_7) {
125
- const arg = map$2((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_7)], values_1);
125
+ const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_7)], values_1);
126
126
  return helpers_7.encodeObject(arg);
127
127
  }
128
128
  };
@@ -133,7 +133,7 @@ const ROCrate_decoder = object((get$) => {
133
133
  const tables = map((arg_4) => {
134
134
  const a = ARCtrl_ArcTables__ArcTables_fromProcesses_Static_62A3309D(arg_4);
135
135
  return a.Tables;
136
- }, (arg_3 = list(ROCrate_decoder$1), objectArg_1 = get$.Optional, objectArg_1.Field("processSequence", arg_3)));
136
+ }, (arg_3 = list$1(ROCrate_decoder$1), objectArg_1 = get$.Optional, objectArg_1.Field("processSequence", arg_3)));
137
137
  return new ArcAssay(identifier, unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("title", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("description", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("measurementType", OntologyAnnotation_ROCrate_decoderPropertyValue))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("technologyType", OntologyAnnotation_ROCrate_decoderDefinedTerm))), unwrap((objectArg_6 = get$.Optional, objectArg_6.Field("technologyPlatform", OntologyAnnotation_ROCrate_decoderDefinedTerm))), unwrap(tables), void 0, unwrap((arg_16 = resizeArray(ROCrate_decoder$2), objectArg_7 = get$.Optional, objectArg_7.Field("performers", arg_16))), unwrap((arg_18 = resizeArray(ROCrate_decoder$3), objectArg_8 = get$.Optional, objectArg_8.Field("comments", arg_18))));
138
138
  });
139
139
  function ISAJson_encoder(studyName, idMap, a) {
@@ -145,7 +145,7 @@ function ISAJson_encoder(studyName, idMap, a) {
145
145
  const encodedCharacteristics = tryIncludeList("characteristicCategories", (value_1) => encoder$5(idMap, value_1), getCharacteristics(processes));
146
146
  const encodedMaterials = tryInclude("materials", (ps) => encoder$6(idMap, ps), Option_fromValueWithDefault(empty(), processes));
147
147
  const encocedDataFiles = tryIncludeList("dataFiles", (oa_1) => ISAJson_encoder$1(idMap, oa_1), getData(processes));
148
- getUnits(processes);
148
+ const units = getUnits(processes);
149
149
  const comments = toList(delay(() => append(a_1.Comments.length > 0 ? a_1.Comments : empty$1(), delay(() => append(a_1.Title != null ? singleton$1(Comment$.create("title", value(a_1.Title))) : empty$1(), delay(() => a_1.Description != null ? singleton$1(Comment$.create("description", value(a_1.Description))) : empty$1()))))));
150
150
  const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["filename", {
151
151
  Encode(helpers) {
@@ -162,7 +162,7 @@ function ISAJson_encoder(studyName, idMap, a) {
162
162
  }), map(JsonTypes_composeTechnologyPlatform, a_1.TechnologyPlatform)), encocedDataFiles, encodedMaterials, encodedCharacteristics, encodedUnits, tryIncludeList("processSequence", (assayName = a_1.Identifier, (oa_4) => ISAJson_encoder$2(studyName, assayName, idMap, oa_4)), processes), tryIncludeSeq("comments", (comment) => ISAJson_encoder$3(idMap, comment), comments)]));
163
163
  return {
164
164
  Encode(helpers_3) {
165
- const arg = map$2((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_3)], values_1);
165
+ const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_3)], values_1);
166
166
  return helpers_3.encodeObject(arg);
167
167
  }
168
168
  };
@@ -180,7 +180,7 @@ const ISAJson_decoder = Decode_objectNoAdditionalProperties(ISAJson_allowedField
180
180
  const tables = map((arg_4) => {
181
181
  const a = ARCtrl_ArcTables__ArcTables_fromProcesses_Static_62A3309D(arg_4);
182
182
  return a.Tables;
183
- }, (arg_3 = list(ISAJson_decoder$1), objectArg_1 = get$.Optional, objectArg_1.Field("processSequence", arg_3)));
183
+ }, (arg_3 = list$1(ISAJson_decoder$1), objectArg_1 = get$.Optional, objectArg_1.Field("processSequence", arg_3)));
184
184
  let comments;
185
185
  const arg_6 = resizeArray(ISAJson_decoder$2);
186
186
  const objectArg_2 = get$.Optional;
@@ -215,7 +215,7 @@ const ISAJson_decoder = Decode_objectNoAdditionalProperties(ISAJson_allowedField
215
215
  return matchValue;
216
216
  }
217
217
  }, comments);
218
- return new ArcAssay(identifier, unwrap(title), unwrap(description), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("measurementType", OntologyAnnotation_ISAJson_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("technologyType", OntologyAnnotation_ISAJson_decoder))), unwrap((arg_12 = map$1(JsonTypes_decomposeTechnologyPlatform, string), objectArg_5 = get$.Optional, objectArg_5.Field("technologyPlatform", arg_12))), unwrap(tables), void 0, void 0, unwrap(comments_1));
218
+ return new ArcAssay(identifier, unwrap(title), unwrap(description), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("measurementType", OntologyAnnotation_ISAJson_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("technologyType", OntologyAnnotation_ISAJson_decoder))), unwrap((arg_12 = map$2(JsonTypes_decomposeTechnologyPlatform, string), objectArg_5 = get$.Optional, objectArg_5.Field("technologyPlatform", arg_12))), unwrap(tables), void 0, void 0, unwrap(comments_1));
219
219
  });
220
220
 
221
221
  export { ISAJson_allowedFields, ISAJson_decoder, ISAJson_encoder, ROCrate_decoder, ROCrate_encoder, ROCrate_genID, decoder, decoderCompressed, encoder, encoderCompressed };
@@ -1,16 +1,16 @@
1
1
  import { choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
2
- import { unwrap, map as map$1, value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
2
+ import { map, unwrap, value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
3
3
  import { tryInclude } from './Encode.js';
4
- import { map as map$2 } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
4
+ import { map as map$1 } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
5
5
  import { Comment$ } from '../Core/Comment.js';
6
- import { object, string, map } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
6
+ import { object, string, map as map$2 } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
7
7
  import { replace } from '../../node_modules/@fable-org/fable-library-js/String.js';
8
8
  import { context_jsonvalue } from './context/rocrate/isa_comment_context.js';
9
9
  import { toString } from '../../node_modules/@fable-org/fable-library-js/Types.js';
10
10
  import { encode } from './IDTable.js';
11
11
 
12
12
  function encoder(comment) {
13
- const values_1 = choose((tupledArg) => map$1((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("name", (value) => ({
13
+ const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("name", (value) => ({
14
14
  Encode(helpers) {
15
15
  return helpers.encodeString(value);
16
16
  }
@@ -21,7 +21,7 @@ function encoder(comment) {
21
21
  }), comment.Value)]));
22
22
  return {
23
23
  Encode(helpers_2) {
24
- const arg = map$2((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_2)], values_1);
24
+ const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_2)], values_1);
25
25
  return helpers_2.encodeObject(arg);
26
26
  }
27
27
  };
@@ -42,7 +42,7 @@ function ROCrate_genID(c) {
42
42
  }
43
43
  function ROCrate_encoder(comment) {
44
44
  let value;
45
- const values_1 = choose((tupledArg) => map$1((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["@id", (value = ROCrate_genID(comment), {
45
+ const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["@id", (value = ROCrate_genID(comment), {
46
46
  Encode(helpers) {
47
47
  return helpers.encodeString(value);
48
48
  }
@@ -61,7 +61,7 @@ function ROCrate_encoder(comment) {
61
61
  }), comment.Value), ["@context", context_jsonvalue]]));
62
62
  return {
63
63
  Encode(helpers_4) {
64
- const arg = map$2((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_4)], values_1);
64
+ const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_4)], values_1);
65
65
  return helpers_4.encodeObject(arg);
66
66
  }
67
67
  };
@@ -78,10 +78,10 @@ function ROCrate_encoderDisambiguatingDescription(comment) {
78
78
  }
79
79
  };
80
80
  }
81
- const ROCrate_decoderDisambiguatingDescription = map((s) => Comment$.fromString(s), string);
81
+ const ROCrate_decoderDisambiguatingDescription = map$2((s) => Comment$.fromString(s), string);
82
82
  function ISAJson_encoder(idMap, comment) {
83
83
  const f = (comment_1) => {
84
- const values_1 = choose((tupledArg) => map$1((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("@id", (value) => ({
84
+ const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("@id", (value) => ({
85
85
  Encode(helpers) {
86
86
  return helpers.encodeString(value);
87
87
  }
@@ -96,7 +96,7 @@ function ISAJson_encoder(idMap, comment) {
96
96
  }), comment_1.Value)]));
97
97
  return {
98
98
  Encode(helpers_3) {
99
- const arg = map$2((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_3)], values_1);
99
+ const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_3)], values_1);
100
100
  return helpers_3.encodeObject(arg);
101
101
  }
102
102
  };
@@ -1,13 +1,13 @@
1
- import { ofArray, choose, singleton } from '../../node_modules/@fable-org/fable-library-js/List.js';
2
- import { unwrap, map, value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
1
+ import { choose, ofArray, singleton } from '../../node_modules/@fable-org/fable-library-js/List.js';
2
+ import { map, unwrap, value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
3
3
  import { tryInclude, tryIncludeSeq } from './Encode.js';
4
- import { ROCrate_decoder as ROCrate_decoder$1, ISAJson_decoder as ISAJson_decoder$1, ROCrate_encoder as ROCrate_encoder$1, ISAJson_encoder as ISAJson_encoder$1 } from './DataFile.js';
5
- import { ROCrate_decoder as ROCrate_decoder$2, ISAJson_decoder as ISAJson_decoder$2, ROCrate_encoder as ROCrate_encoder$2, decoder as decoder$1, encoder as encoder$1, ISAJson_encoder as ISAJson_encoder$2 } from './Comment.js';
4
+ import { ISAJson_encoder as ISAJson_encoder$1, ISAJson_decoder as ISAJson_decoder$1, ROCrate_encoder as ROCrate_encoder$1, ROCrate_decoder as ROCrate_decoder$1 } from './DataFile.js';
5
+ import { encoder as encoder$1, decoder as decoder$1, ROCrate_encoder as ROCrate_encoder$2, ROCrate_decoder as ROCrate_decoder$2, ISAJson_encoder as ISAJson_encoder$2, ISAJson_decoder as ISAJson_decoder$2 } from './Comment.js';
6
6
  import { map as map$1 } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
7
7
  import { Data } from '../Core/Data.js';
8
8
  import { object, string, resizeArray } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
9
- import { Decode_objectNoAdditionalProperties, Decode_uri } from './Decode.js';
10
- import { decodeString, encodeString } from './StringTable.js';
9
+ import { Decode_uri, Decode_objectNoAdditionalProperties } from './Decode.js';
10
+ import { encodeString, decodeString } from './StringTable.js';
11
11
  import { replace } from '../../node_modules/@fable-org/fable-library-js/String.js';
12
12
  import { URIModule_toString } from '../Core/URI.js';
13
13
  import { list } from '../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
@@ -1,9 +1,9 @@
1
1
  import { choose, ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
2
- import { unwrap, map } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
3
- import { decoder as decoder$1, encoder as encoder$1 } from '../Data.js';
2
+ import { map, unwrap } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
3
+ import { encoder as encoder$1, decoder as decoder$1 } from '../Data.js';
4
4
  import { tryInclude } from '../Encode.js';
5
- import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from '../OntologyAnnotation.js';
6
- import { DataContext_$ctor_Z780A8A2A, DataContext__get_Explication, DataContext__get_Unit, DataContext__get_ObjectType, DataContext__get_Description, DataContext__get_GeneratedBy, DataContext__get_Label } from '../../Core/DataContext.js';
5
+ import { OntologyAnnotation_encoder, OntologyAnnotation_decoder } from '../OntologyAnnotation.js';
6
+ import { DataContext__get_Explication, DataContext__get_Unit, DataContext__get_ObjectType, DataContext__get_Description, DataContext__get_GeneratedBy, DataContext__get_Label, DataContext_$ctor_Z780A8A2A } from '../../Core/DataContext.js';
7
7
  import { map as map$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
8
8
  import { object, string } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
9
9
 
@@ -1,7 +1,7 @@
1
1
  import { seq } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
2
2
  import { map } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
3
- import { decoder as decoder$1, encoder as encoder$1 } from './DataContext.js';
4
- import { DataMap_$ctor_4E3220A7, DataMap__get_DataContexts } from '../../Core/DataMap.js';
3
+ import { encoder as encoder$1, decoder as decoder$1 } from './DataContext.js';
4
+ import { DataMap__get_DataContexts, DataMap_$ctor_4E3220A7 } from '../../Core/DataMap.js';
5
5
  import { object, resizeArray } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
6
6
 
7
7
  function encoder(dm) {
@@ -1,9 +1,10 @@
1
- import { ErrorReason$1_BadPrimitive, ErrorReason$1_BadOneOf, ErrorReason$1_FailMessage } from '../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
2
- import { Getters$2_$ctor_Z4BE6C149, Getters$2__get_Errors, tuple2, string, int } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
3
- import { FSharpResult$2_Ok, FSharpResult$2_Error, Result_Map } from '../../node_modules/@fable-org/fable-library-js/Result.js';
1
+ import { ErrorReason$1_FailMessage, ErrorReason$1_BadPrimitive, ErrorReason$1_BadOneOf } from '../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
2
+ import { string, Getters$2_$ctor_Z4BE6C149, Getters$2__get_Errors, tuple2, int } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
3
+ import { FSharpResult$2_Error, FSharpResult$2_Ok, Result_Map } from '../../node_modules/@fable-org/fable-library-js/Result.js';
4
+ import { toText, printf } from '../../node_modules/@fable-org/fable-library-js/String.js';
4
5
  import { exists } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
5
- import { ofSeq, contains } from '../../node_modules/@fable-org/fable-library-js/Set.js';
6
- import { int32ToString, structuralHash, equals, comparePrimitives } from '../../node_modules/@fable-org/fable-library-js/Util.js';
6
+ import { contains, ofSeq } from '../../node_modules/@fable-org/fable-library-js/Set.js';
7
+ import { comparePrimitives, int32ToString, structuralHash, equals } from '../../node_modules/@fable-org/fable-library-js/Util.js';
7
8
  import { isEmpty, length, head, empty, cons, tail } from '../../node_modules/@fable-org/fable-library-js/List.js';
8
9
  import { fold } from '../../node_modules/@fable-org/fable-library-js/Array.js';
9
10
  import { minValue, tryParse } from '../../node_modules/@fable-org/fable-library-js/Date.js';
@@ -26,7 +27,10 @@ const Decode_uri = {
26
27
  return FSharpResult$2_Error(matchValue.fields[0]);
27
28
  } else if (Decode_isURI(matchValue.fields[0])) {
28
29
  return FSharpResult$2_Ok(matchValue.fields[0]);
29
- } else ;
30
+ } else {
31
+ const s_3 = matchValue.fields[0];
32
+ return FSharpResult$2_Error([s_3, ErrorReason$1_FailMessage(toText(printf("Expected URI, got %s"))(s_3))]);
33
+ }
30
34
  }
31
35
  };
32
36
  function Decode_hasUnknownFields(helpers, knownFields, json) {
@@ -60,7 +64,7 @@ function Decode_noAdditionalProperties(allowedProperties, decoder) {
60
64
  });
61
65
  return {
62
66
  Decode(helpers, value) {
63
- Getters$2_$ctor_Z4BE6C149(helpers, value);
67
+ const getters = Getters$2_$ctor_Z4BE6C149(helpers, value);
64
68
  return Decode_hasUnknownFields(helpers, allowedProperties_1, value) ? FSharpResult$2_Error(["Unknown fields in object", ErrorReason$1_BadPrimitive("", value)]) : decoder.Decode(helpers, value);
65
69
  }
66
70
  };
@@ -113,7 +117,7 @@ function Decode_dictionary(keyDecoder, valueDecoder) {
113
117
  return {
114
118
  Decode(helpers, value) {
115
119
  if (helpers.isArray(value)) {
116
- empty();
120
+ let errors = empty();
117
121
  const tokens = helpers.asArray(value);
118
122
  const dict = new Dictionary([], {
119
123
  Equals: equals,
@@ -147,7 +151,7 @@ function Decode_intDictionary(valueDecoder) {
147
151
  return {
148
152
  Decode(helpers, value) {
149
153
  if (helpers.isArray(value)) {
150
- empty();
154
+ let errors = empty();
151
155
  const tokens = helpers.asArray(value);
152
156
  const dict = /* @__PURE__ */ new Map([]);
153
157
  const decoder = tuple2(int, valueDecoder);
@@ -199,6 +203,7 @@ function Decode_tryOneOf(decoders) {
199
203
  } else {
200
204
  return FSharpResult$2_Error(["", ErrorReason$1_BadOneOf(errors)]);
201
205
  }
206
+ break;
202
207
  }
203
208
  };
204
209
  return loop(empty(), decoders);