@nfdi4plants/arctrl 1.1.0 → 1.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 (302) hide show
  1. package/ARC.js +9 -9
  2. package/Contract/Contract.js +3 -3
  3. package/Contracts/Contracts.ArcTypes.js +11 -11
  4. package/Contracts/Contracts.Git.js +4 -4
  5. package/FileSystem/Commit.js +2 -2
  6. package/FileSystem/FileSystem.js +4 -4
  7. package/FileSystem/FileSystemTree.js +8 -8
  8. package/FileSystem/Path.js +2 -2
  9. package/FileSystemTree.js +1 -1
  10. package/ISA/ISA/ArcTypes/ArcTable.js +19 -19
  11. package/ISA/ISA/ArcTypes/ArcTableAux.js +16 -16
  12. package/ISA/ISA/ArcTypes/ArcTables.js +11 -11
  13. package/ISA/ISA/ArcTypes/ArcTypes.js +10 -10
  14. package/ISA/ISA/ArcTypes/CompositeCell.js +4 -4
  15. package/ISA/ISA/ArcTypes/CompositeColumn.js +8 -7
  16. package/ISA/ISA/ArcTypes/CompositeHeader.js +5 -5
  17. package/ISA/ISA/ArcTypes/CompositeRow.js +1 -1
  18. package/ISA/ISA/Builder/Types.js +5 -5
  19. package/ISA/ISA/Fable.js +6 -6
  20. package/ISA/ISA/Helper.js +15 -13
  21. package/ISA/ISA/Identifier.js +1 -1
  22. package/ISA/ISA/JsonTypes/Assay.js +8 -8
  23. package/ISA/ISA/JsonTypes/AssayMaterials.js +4 -4
  24. package/ISA/ISA/JsonTypes/ColumnIndex.js +5 -5
  25. package/ISA/ISA/JsonTypes/Comment.js +3 -3
  26. package/ISA/ISA/JsonTypes/CommentList.js +4 -4
  27. package/ISA/ISA/JsonTypes/Component.js +4 -4
  28. package/ISA/ISA/JsonTypes/Data.js +4 -4
  29. package/ISA/ISA/JsonTypes/DataFile.js +2 -2
  30. package/ISA/ISA/JsonTypes/Factor.js +6 -6
  31. package/ISA/ISA/JsonTypes/FactorValue.js +5 -5
  32. package/ISA/ISA/JsonTypes/Investigation.js +6 -6
  33. package/ISA/ISA/JsonTypes/Material.js +5 -5
  34. package/ISA/ISA/JsonTypes/MaterialAttribute.js +3 -3
  35. package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +5 -5
  36. package/ISA/ISA/JsonTypes/MaterialType.js +2 -2
  37. package/ISA/ISA/JsonTypes/OntologyAnnotation.js +6 -6
  38. package/ISA/ISA/JsonTypes/OntologySourceReference.js +6 -6
  39. package/ISA/ISA/JsonTypes/Person.js +23 -8
  40. package/ISA/ISA/JsonTypes/Process.js +13 -13
  41. package/ISA/ISA/JsonTypes/ProcessInput.js +5 -5
  42. package/ISA/ISA/JsonTypes/ProcessOutput.js +5 -5
  43. package/ISA/ISA/JsonTypes/ProcessParameterValue.js +5 -5
  44. package/ISA/ISA/JsonTypes/ProcessSequence.js +6 -6
  45. package/ISA/ISA/JsonTypes/Protocol.js +6 -6
  46. package/ISA/ISA/JsonTypes/ProtocolParameter.js +3 -3
  47. package/ISA/ISA/JsonTypes/Publication.js +6 -6
  48. package/ISA/ISA/JsonTypes/Sample.js +5 -5
  49. package/ISA/ISA/JsonTypes/Source.js +5 -5
  50. package/ISA/ISA/JsonTypes/Study.js +8 -8
  51. package/ISA/ISA/JsonTypes/StudyMaterials.js +4 -4
  52. package/ISA/ISA/JsonTypes/Value.js +22 -29
  53. package/ISA/ISA/Regex.js +3 -3
  54. package/ISA/ISA.Json/ArcTypes/ArcAssay.js +105 -84
  55. package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +78 -49
  56. package/ISA/ISA.Json/ArcTypes/ArcStudy.js +74 -41
  57. package/ISA/ISA.Json/ArcTypes/ArcTable.js +112 -71
  58. package/ISA/ISA.Json/ArcTypes/CellTable.js +13 -19
  59. package/ISA/ISA.Json/ArcTypes/CompositeCell.js +23 -38
  60. package/ISA/ISA.Json/ArcTypes/CompositeHeader.js +18 -46
  61. package/ISA/ISA.Json/ArcTypes/IOType.js +11 -13
  62. package/ISA/ISA.Json/ArcTypes/OATable.js +13 -19
  63. package/ISA/ISA.Json/Assay.js +71 -47
  64. package/ISA/ISA.Json/Comment.js +31 -35
  65. package/ISA/ISA.Json/ConverterOptions.js +19 -1
  66. package/ISA/ISA.Json/Data.js +119 -137
  67. package/ISA/ISA.Json/Decode.js +51 -36
  68. package/ISA/ISA.Json/Factor.js +90 -90
  69. package/ISA/ISA.Json/GEncode.js +31 -6
  70. package/ISA/ISA.Json/Investigation.js +54 -79
  71. package/ISA/ISA.Json/Material.js +103 -104
  72. package/ISA/ISA.Json/Ontology.js +86 -109
  73. package/ISA/ISA.Json/Person.js +47 -65
  74. package/ISA/ISA.Json/Process.js +144 -130
  75. package/ISA/ISA.Json/Protocol.js +144 -105
  76. package/ISA/ISA.Json/Publication.js +34 -40
  77. package/ISA/ISA.Json/StringTable.js +25 -24
  78. package/ISA/ISA.Json/Study.js +70 -96
  79. package/ISA/ISA.Json/context/rocrate/isa_assay_context.js +34 -0
  80. package/ISA/ISA.Json/context/rocrate/isa_comment_context.js +23 -0
  81. package/ISA/ISA.Json/context/rocrate/isa_component_context.js +24 -0
  82. package/ISA/ISA.Json/context/rocrate/isa_data_context.js +25 -0
  83. package/ISA/ISA.Json/context/rocrate/isa_factor_context.js +25 -0
  84. package/ISA/ISA.Json/context/rocrate/isa_factor_value_context.js +25 -0
  85. package/ISA/ISA.Json/context/rocrate/isa_investigation_context.js +33 -0
  86. package/ISA/ISA.Json/context/rocrate/isa_material_attribute_context.js +23 -0
  87. package/ISA/ISA.Json/context/rocrate/isa_material_attribute_value_context.js +25 -0
  88. package/ISA/ISA.Json/context/rocrate/isa_material_context.js +26 -0
  89. package/ISA/ISA.Json/context/rocrate/isa_ontology_annotation_context.js +25 -0
  90. package/ISA/ISA.Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
  91. package/ISA/ISA.Json/context/rocrate/isa_organization_context.js +22 -0
  92. package/ISA/ISA.Json/context/rocrate/isa_person_context.js +31 -0
  93. package/ISA/ISA.Json/context/rocrate/isa_process_context.js +31 -0
  94. package/ISA/ISA.Json/context/rocrate/isa_process_parameter_value_context.js +25 -0
  95. package/ISA/ISA.Json/context/rocrate/isa_protocol_context.js +30 -0
  96. package/ISA/ISA.Json/context/rocrate/isa_protocol_parameter_context.js +23 -0
  97. package/ISA/ISA.Json/context/rocrate/isa_publication_context.js +27 -0
  98. package/ISA/ISA.Json/context/rocrate/isa_sample_context.js +26 -0
  99. package/ISA/ISA.Json/context/rocrate/isa_source_context.js +25 -0
  100. package/ISA/ISA.Json/context/rocrate/isa_study_context.js +42 -0
  101. package/ISA/ISA.Json/context/rocrate/rocrate_context.js +25 -0
  102. package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +5 -5
  103. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +2 -2
  104. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +8 -8
  105. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +4 -4
  106. package/ISA/ISA.Spreadsheet/ArcAssay.js +5 -5
  107. package/ISA/ISA.Spreadsheet/ArcInvestigation.js +10 -10
  108. package/ISA/ISA.Spreadsheet/ArcStudy.js +5 -5
  109. package/ISA/ISA.Spreadsheet/CollectionAux.js +8 -8
  110. package/ISA/ISA.Spreadsheet/Metadata/Assays.js +5 -5
  111. package/ISA/ISA.Spreadsheet/Metadata/Comment.js +31 -20
  112. package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +5 -5
  113. package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +5 -5
  114. package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +1 -1
  115. package/ISA/ISA.Spreadsheet/Metadata/Factors.js +5 -5
  116. package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +5 -5
  117. package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +5 -5
  118. package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +5 -5
  119. package/ISA/ISA.Spreadsheet/Metadata/Publication.js +5 -5
  120. package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +21 -16
  121. package/ISA/ISA.Spreadsheet/Metadata/Study.js +8 -8
  122. package/README.md +20 -3
  123. package/SemVer.js +6 -6
  124. package/Templates/Template.Json.js +43 -36
  125. package/Templates/Template.Spreadsheet.js +10 -10
  126. package/Templates/Template.Web.js +4 -4
  127. package/Templates/Template.js +7 -7
  128. package/Templates/Templates.js +7 -7
  129. package/WebRequest/WebRequest.Node.js +15 -0
  130. package/WebRequest/WebRequest.js +10 -29
  131. package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
  132. package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
  133. package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
  134. package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
  135. package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCell.fs.js +14 -14
  136. package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js +6 -6
  137. package/fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js +4 -4
  138. package/fable_modules/FsSpreadsheet.5.1.3/DSL/ColumnBuilder.fs.js +3 -3
  139. package/fable_modules/FsSpreadsheet.5.1.3/DSL/DSL.fs.js +2 -2
  140. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Expression.fs.js +1 -1
  141. package/fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js +3 -3
  142. package/fable_modules/FsSpreadsheet.5.1.3/DSL/SheetBuilder.fs.js +3 -3
  143. package/fable_modules/FsSpreadsheet.5.1.3/DSL/TableBuilder.fs.js +3 -3
  144. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Transform.fs.js +6 -6
  145. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js +4 -4
  146. package/fable_modules/FsSpreadsheet.5.1.3/DSL/WorkbookBuilder.fs.js +3 -3
  147. package/fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js +8 -8
  148. package/fable_modules/FsSpreadsheet.5.1.3/FsColumn.fs.js +3 -3
  149. package/fable_modules/FsSpreadsheet.5.1.3/FsRow.fs.js +3 -3
  150. package/fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js +6 -6
  151. package/fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js +9 -9
  152. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRange.fs.js +3 -3
  153. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js +4 -3
  154. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeBase.fs.js +3 -3
  155. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeColumn.fs.js +3 -3
  156. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeRow.fs.js +1 -1
  157. package/fable_modules/FsSpreadsheet.5.1.3/SheetBuilder.fs.js +8 -8
  158. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTable.fs.js +7 -7
  159. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableField.fs.js +4 -4
  160. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableRow.fs.js +1 -1
  161. package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs +1390 -0
  162. package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +1230 -0
  163. package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs +233 -0
  164. package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +113 -0
  165. package/fable_modules/Thoth.Json.Core.0.2.1/Thoth.Json.Core.fableproj +28 -0
  166. package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs +76 -0
  167. package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +33 -0
  168. package/fable_modules/Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  169. package/fable_modules/{Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs → Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/Thoth.Json.Core.AssemblyInfo.fs} +8 -7
  170. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs +79 -0
  171. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +85 -0
  172. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs +32 -0
  173. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +45 -0
  174. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Thoth.Json.JavaScript.fableproj +21 -0
  175. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  176. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +18 -0
  177. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  178. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +19 -0
  179. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Array.d.ts +4 -1
  180. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Array.js +124 -86
  181. package/fable_modules/fable-library-js.4.13.0/CHANGELOG.md +29 -0
  182. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Choice.d.ts +0 -17
  183. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Choice.js +0 -43
  184. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Date.js +3 -2
  185. package/fable_modules/fable-library-js.4.13.0/FSharp.Core.CompilerServices.d.ts +12 -0
  186. package/fable_modules/fable-library-js.4.13.0/FSharp.Core.CompilerServices.js +27 -0
  187. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/List.js +3 -3
  188. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Map.js +3 -3
  189. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableMap.js +2 -1
  190. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableSet.js +2 -1
  191. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Random.js +7 -7
  192. package/fable_modules/fable-library-js.4.13.0/Result.d.ts +37 -0
  193. package/fable_modules/fable-library-js.4.13.0/Result.js +165 -0
  194. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Set.js +2 -2
  195. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/String.d.ts +1 -0
  196. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/String.js +8 -5
  197. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Collections.Generic.d.ts +15 -7
  198. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Collections.Generic.js +46 -36
  199. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Text.d.ts +9 -1
  200. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Text.js +60 -8
  201. package/fable_modules/fable-library-js.4.13.0/big.d.ts +338 -0
  202. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/package.json +4 -3
  203. package/fable_modules/project_cracked.json +1 -1
  204. package/package.json +1 -1
  205. package/ISA/ISA.Json/Validation/Fable.js +0 -69
  206. package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +0 -88
  207. package/ISA/ISA.Json/Validation/ValidationResult.js +0 -45
  208. package/fable_modules/Thoth.Json.10.1.0/Decode.fs +0 -1366
  209. package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +0 -1798
  210. package/fable_modules/Thoth.Json.10.1.0/Encode.fs +0 -621
  211. package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +0 -472
  212. package/fable_modules/Thoth.Json.10.1.0/Extra.fs +0 -31
  213. package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +0 -8
  214. package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +0 -30
  215. package/fable_modules/Thoth.Json.10.1.0/Types.fs +0 -59
  216. package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +0 -98
  217. package/fable_modules/Thoth.Json.10.1.0/package.json +0 -5
  218. package/fable_modules/fable-library.4.5.0/CHANGELOG.md +0 -11
  219. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Async.d.ts +0 -0
  220. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Async.js +0 -0
  221. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/AsyncBuilder.d.ts +0 -0
  222. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/AsyncBuilder.js +0 -0
  223. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BigInt.d.ts +0 -0
  224. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BigInt.js +0 -0
  225. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BitConverter.d.ts +0 -0
  226. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BitConverter.js +0 -0
  227. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Boolean.d.ts +0 -0
  228. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Boolean.js +0 -0
  229. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Char.d.ts +0 -0
  230. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Char.js +0 -0
  231. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Date.d.ts +0 -0
  232. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOffset.d.ts +0 -0
  233. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOffset.js +0 -0
  234. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOnly.d.ts +0 -0
  235. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOnly.js +0 -0
  236. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Decimal.d.ts +0 -0
  237. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Decimal.js +0 -0
  238. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Double.d.ts +0 -0
  239. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Double.js +0 -0
  240. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Encoding.d.ts +0 -0
  241. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Encoding.js +0 -0
  242. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Event.d.ts +0 -0
  243. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Event.js +0 -0
  244. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Collections.d.ts +0 -0
  245. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Collections.js +0 -0
  246. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Core.d.ts +0 -0
  247. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Core.js +0 -0
  248. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Global.d.ts +0 -0
  249. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Global.js +0 -0
  250. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Guid.d.ts +0 -0
  251. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Guid.js +0 -0
  252. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Int32.d.ts +0 -0
  253. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Int32.js +0 -0
  254. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/List.d.ts +0 -0
  255. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Long.d.ts +0 -0
  256. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Long.js +0 -0
  257. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MailboxProcessor.d.ts +0 -0
  258. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MailboxProcessor.js +0 -0
  259. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Map.d.ts +0 -0
  260. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MapUtil.d.ts +0 -0
  261. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MapUtil.js +0 -0
  262. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableMap.d.ts +0 -0
  263. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableSet.d.ts +0 -0
  264. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Native.d.ts +0 -0
  265. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Native.js +0 -0
  266. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Numeric.d.ts +0 -0
  267. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Numeric.js +0 -0
  268. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Observable.d.ts +0 -0
  269. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Observable.js +0 -0
  270. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Option.d.ts +0 -0
  271. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Option.js +0 -0
  272. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/README.md +0 -0
  273. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Random.d.ts +0 -0
  274. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Range.d.ts +0 -0
  275. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Range.js +0 -0
  276. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Reflection.d.ts +0 -0
  277. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Reflection.js +0 -0
  278. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/RegExp.d.ts +0 -0
  279. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/RegExp.js +0 -0
  280. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq.d.ts +0 -0
  281. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq.js +0 -0
  282. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq2.d.ts +0 -0
  283. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq2.js +0 -0
  284. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Set.d.ts +0 -0
  285. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/SystemException.d.ts +0 -0
  286. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/SystemException.js +0 -0
  287. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeOnly.d.ts +0 -0
  288. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeOnly.js +0 -0
  289. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeSpan.d.ts +0 -0
  290. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeSpan.js +0 -0
  291. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Timer.d.ts +0 -0
  292. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Timer.js +0 -0
  293. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Types.d.ts +0 -0
  294. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Types.js +0 -0
  295. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Unicode.13.0.0.d.ts +0 -0
  296. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Unicode.13.0.0.js +0 -0
  297. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Uri.d.ts +0 -0
  298. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Uri.js +0 -0
  299. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Util.d.ts +0 -0
  300. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Util.js +0 -0
  301. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/lib/big.d.ts +0 -0
  302. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/lib/big.js +0 -0
@@ -1,12 +1,12 @@
1
- import { sortBy, map, toArray } from "../../../fable_modules/fable-library.4.5.0/Seq.js";
2
- import { uncurry2, comparePrimitives } from "../../../fable_modules/fable-library.4.5.0/Util.js";
3
- import { map as map_1 } from "../../../fable_modules/fable-library.4.5.0/Array.js";
1
+ import { sortBy, map, toArray } from "../../../fable_modules/fable-library-js.4.13.0/Seq.js";
2
+ import { comparePrimitives } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
3
+ import { item, map as map_1 } from "../../../fable_modules/fable-library-js.4.13.0/Array.js";
4
4
  import { ConverterOptions_$ctor } from "../ConverterOptions.js";
5
5
  import { OntologyAnnotation_compressedDecoder, OntologyAnnotation_compressedEncoder } from "../Ontology.js";
6
- import { int, array as array_1 } from "../../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
6
+ import { Json } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
7
+ import { int, object, array as array_1 } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
7
8
  import { Dict_tryFind } from "../../ISA/Helper.js";
8
- import { addToDict } from "../../../fable_modules/fable-library.4.5.0/MapUtil.js";
9
- import { FSharpResult$2 } from "../../../fable_modules/fable-library.4.5.0/Choice.js";
9
+ import { addToDict } from "../../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
10
10
 
11
11
  export function OATable_arrayFromMap(otm) {
12
12
  return toArray(map((kv_1) => kv_1[0], sortBy((kv) => kv[1], otm, {
@@ -16,12 +16,11 @@ export function OATable_arrayFromMap(otm) {
16
16
 
17
17
  export function OATable_encoder(stringTable, ot) {
18
18
  let options;
19
- return map_1((options = ConverterOptions_$ctor(), (oa) => OntologyAnnotation_compressedEncoder(stringTable, options, oa)), ot);
19
+ return new Json(6, [map_1((options = ConverterOptions_$ctor(), (oa) => OntologyAnnotation_compressedEncoder(stringTable, options, oa)), ot)]);
20
20
  }
21
21
 
22
22
  export function OATable_decoder(stringTable) {
23
- const decoder = OntologyAnnotation_compressedDecoder(stringTable, ConverterOptions_$ctor());
24
- return (path) => ((value) => array_1(uncurry2(decoder), path, value));
23
+ return array_1(OntologyAnnotation_compressedDecoder(stringTable, ConverterOptions_$ctor()));
25
24
  }
26
25
 
27
26
  export function OATable_encodeOA(otm, oa) {
@@ -29,20 +28,15 @@ export function OATable_encodeOA(otm, oa) {
29
28
  if (matchValue == null) {
30
29
  const i_1 = otm.size | 0;
31
30
  addToDict(otm, oa, i_1);
32
- return i_1;
31
+ return new Json(7, [i_1 >>> 0]);
33
32
  }
34
33
  else {
35
- return matchValue;
34
+ const i = matchValue | 0;
35
+ return new Json(7, [i >>> 0]);
36
36
  }
37
37
  }
38
38
 
39
- export function OATable_decodeOA(ot, s, o) {
40
- const matchValue = int(s)(o);
41
- if (matchValue.tag === 1) {
42
- return new FSharpResult$2(1, [matchValue.fields[0]]);
43
- }
44
- else {
45
- return new FSharpResult$2(0, [ot[matchValue.fields[0]]]);
46
- }
39
+ export function OATable_decodeOA(ot) {
40
+ return object((get$) => item(get$.Required.Raw(int), ot));
47
41
  }
48
42
 
@@ -1,37 +1,47 @@
1
- import { toString, nil, object as object_22 } from "../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
2
- import { ofArray, choose } from "../../fable_modules/fable-library.4.5.0/List.js";
3
- import { uncurry2, equals } from "../../fable_modules/fable-library.4.5.0/Util.js";
4
- import { tryInclude } from "./GEncode.js";
1
+ import { ofArray, choose } from "../../fable_modules/fable-library-js.4.13.0/List.js";
2
+ import { equals } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
3
+ import { Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
4
+ import { tryInclude, tryIncludeList } from "./GEncode.js";
5
5
  import { Data_decoder, Data_encoder, Sample_decoder, Sample_encoder } from "./Data.js";
6
6
  import { MaterialAttribute_decoder, MaterialAttribute_encoder, Material_decoder, Material_encoder } from "./Material.js";
7
- import { string, list as list_1, object as object_23 } from "../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
7
+ import { uri, object } from "./Decode.js";
8
+ import { string, list as list_1 } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
8
9
  import { AssayMaterials } from "../ISA/JsonTypes/AssayMaterials.js";
10
+ import { printf, toText, replace, remove } from "../../fable_modules/fable-library-js.4.13.0/String.js";
11
+ import { max } from "../../fable_modules/fable-library-js.4.13.0/Double.js";
9
12
  import { URIModule_toString } from "../ISA/JsonTypes/URI.js";
10
- import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library.4.5.0/Seq.js";
11
- import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
13
+ import { Operators_FailurePattern } from "../../fable_modules/fable-library-js.4.13.0/FSharp.Core.js";
14
+ import { Assay_identifierFromFileName } from "../ISA/Identifier.js";
15
+ import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
16
+ import { ConverterOptions__set_IncludeContext_Z1FBCCD16, ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeContext, ConverterOptions__get_IsRoCrate, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
17
+ import { list as list_2 } from "../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
12
18
  import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "./Ontology.js";
13
19
  import { Process_decoder, Process_encoder } from "./Process.js";
14
- import { decoder as decoder_5, encoder } from "./Comment.js";
15
- import { fromJsonString, uri } from "./Decode.js";
20
+ import { decoder as decoder_1, encoder } from "./Comment.js";
21
+ import { context_jsonvalue } from "./context/rocrate/isa_assay_context.js";
16
22
  import { Assay } from "../ISA/JsonTypes/Assay.js";
23
+ import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
24
+ import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
17
25
 
18
26
  export function AssayMaterials_encoder(options, oa) {
19
- return object_22(choose((tupledArg) => {
27
+ return new Json(5, [choose((tupledArg) => {
20
28
  const v = tupledArg[1];
21
- if (equals(v, nil)) {
29
+ if (equals(v, new Json(3, []))) {
22
30
  return void 0;
23
31
  }
24
32
  else {
25
33
  return [tupledArg[0], v];
26
34
  }
27
- }, ofArray([tryInclude("samples", (oa_1) => Sample_encoder(options, oa_1), oa["Samples"]), tryInclude("otherMaterials", (oa_2) => Material_encoder(options, oa_2), oa["OtherMaterials"])])));
35
+ }, ofArray([tryIncludeList("samples", (oa_1) => Sample_encoder(options, oa_1), oa.Samples), tryIncludeList("otherMaterials", (oa_2) => Material_encoder(options, oa_2), oa.OtherMaterials)]))]);
28
36
  }
29
37
 
38
+ export const AssayMaterials_allowedFields = ofArray(["samples", "otherMaterials"]);
39
+
30
40
  export function AssayMaterials_decoder(options) {
31
- return (path_2) => ((v) => object_23((get$) => {
32
- let objectArg, objectArg_1;
33
- return new AssayMaterials((objectArg = get$.Optional, objectArg.Field("samples", (path, value) => list_1((s, json) => Sample_decoder(options, s, json), path, value))), (objectArg_1 = get$.Optional, objectArg_1.Field("otherMaterials", (path_1, value_1) => list_1((s_1, json_1) => Material_decoder(options, s_1, json_1), path_1, value_1))));
34
- }, path_2, v));
41
+ return object(AssayMaterials_allowedFields, (get$) => {
42
+ let arg_1, objectArg, arg_3, objectArg_1;
43
+ return new AssayMaterials((arg_1 = list_1(Sample_decoder(options)), (objectArg = get$.Optional, objectArg.Field("samples", arg_1))), (arg_3 = list_1(Material_decoder(options)), (objectArg_1 = get$.Optional, objectArg_1.Field("otherMaterials", arg_3))));
44
+ });
35
45
  }
36
46
 
37
47
  export function Assay_genID(a) {
@@ -42,7 +52,8 @@ export function Assay_genID(a) {
42
52
  return "#EmptyAssay";
43
53
  }
44
54
  else {
45
- return matchValue_1;
55
+ const n = matchValue_1;
56
+ return remove(replace(n, " ", "_"), 0, 1 + max(n.lastIndexOf("/"), n.lastIndexOf("\\")));
46
57
  }
47
58
  }
48
59
  else {
@@ -50,56 +61,69 @@ export function Assay_genID(a) {
50
61
  }
51
62
  }
52
63
 
53
- export function Assay_encoder(options, oa) {
54
- return object_22(choose((tupledArg) => {
64
+ export function Assay_encoder(options, studyName, oa) {
65
+ let assayName;
66
+ try {
67
+ const matchValue = oa.FileName;
68
+ assayName = ((matchValue == null) ? void 0 : Assay_identifierFromFileName(matchValue));
69
+ }
70
+ catch (matchValue_1) {
71
+ const activePatternResult = Operators_FailurePattern(matchValue_1);
72
+ if (activePatternResult != null) {
73
+ const msg = activePatternResult;
74
+ assayName = void 0;
75
+ }
76
+ else {
77
+ throw matchValue_1;
78
+ }
79
+ }
80
+ return new Json(5, [choose((tupledArg) => {
55
81
  const v = tupledArg[1];
56
- if (equals(v, nil)) {
82
+ if (equals(v, new Json(3, []))) {
57
83
  return void 0;
58
84
  }
59
85
  else {
60
86
  return [tupledArg[0], v];
61
87
  }
62
- }, toList(delay(() => {
63
- let value, s;
64
- return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = Assay_genID(oa), (typeof value === "string") ? ((s = value, s)) : nil)]) : singleton(tryInclude("@id", (value_2) => {
65
- let s_1;
66
- const value_3 = value_2;
67
- return (typeof value_3 === "string") ? ((s_1 = value_3, s_1)) : nil;
68
- }, oa["ID"])), delay(() => {
69
- let value_5, s_2;
70
- return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_5 = "Assay", (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("filename", (value_7) => {
71
- let s_3;
72
- const value_8 = value_7;
73
- return (typeof value_8 === "string") ? ((s_3 = value_8, s_3)) : nil;
74
- }, oa["FileName"])), delay(() => append(singleton(tryInclude("measurementType", (oa_1) => OntologyAnnotation_encoder(options, oa_1), oa["MeasurementType"])), delay(() => append(singleton(tryInclude("technologyType", (oa_2) => OntologyAnnotation_encoder(options, oa_2), oa["TechnologyType"])), delay(() => append(singleton(tryInclude("technologyPlatform", (value_10) => {
75
- let s_4;
76
- const value_11 = value_10;
77
- return (typeof value_11 === "string") ? ((s_4 = value_11, s_4)) : nil;
78
- }, oa["TechnologyPlatform"])), delay(() => append(singleton(tryInclude("dataFiles", (oa_3) => Data_encoder(options, oa_3), oa["DataFiles"])), delay(() => append(singleton(tryInclude("materials", (oa_4) => AssayMaterials_encoder(options, oa_4), oa["Materials"])), delay(() => append(singleton(tryInclude("characteristicCategories", (oa_5) => MaterialAttribute_encoder(options, oa_5), oa["CharacteristicCategories"])), delay(() => append(singleton(tryInclude("unitCategories", (oa_6) => OntologyAnnotation_encoder(options, oa_6), oa["UnitCategories"])), delay(() => append(singleton(tryInclude("processSequence", (oa_7) => Process_encoder(options, oa_7), oa["ProcessSequence"])), delay(() => singleton(tryInclude("comments", (comment) => encoder(options, comment), oa["Comments"]))))))))))))))))))))));
79
- }));
80
- }))));
88
+ }, toList(delay(() => append(ConverterOptions__get_SetID(options) ? singleton(["@id", new Json(0, [Assay_genID(oa)])]) : singleton(tryInclude("@id", (value_1) => (new Json(0, [value_1])), oa.ID)), delay(() => append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", list_2(ofArray([new Json(0, ["Assay"]), new Json(0, ["ArcAssay"])]))]) : empty(), delay(() => append(singleton(tryInclude("filename", (value_5) => (new Json(0, [value_5])), oa.FileName)), delay(() => append(singleton(tryInclude("measurementType", (oa_1) => OntologyAnnotation_encoder(options, oa_1), oa.MeasurementType)), delay(() => append(singleton(tryInclude("technologyType", (oa_2) => OntologyAnnotation_encoder(options, oa_2), oa.TechnologyType)), delay(() => append(singleton(tryInclude("technologyPlatform", (value_7) => (new Json(0, [value_7])), oa.TechnologyPlatform)), delay(() => append(singleton(tryIncludeList("dataFiles", (oa_3) => Data_encoder(options, oa_3), oa.DataFiles)), delay(() => {
89
+ let matchValue_2, m;
90
+ return append(ConverterOptions__get_IsRoCrate(options) ? ((matchValue_2 = oa.Materials, (matchValue_2 == null) ? (empty()) : ((m = matchValue_2, append(singleton(tryIncludeList("samples", (oa_4) => Sample_encoder(options, oa_4), m.Samples)), delay(() => singleton(tryIncludeList("materials", (oa_5) => Material_encoder(options, oa_5), m.OtherMaterials)))))))) : empty(), delay(() => append(!ConverterOptions__get_IsRoCrate(options) ? singleton(tryInclude("materials", (oa_6) => AssayMaterials_encoder(options, oa_6), oa.Materials)) : empty(), delay(() => append(singleton(tryIncludeList("characteristicCategories", (oa_7) => MaterialAttribute_encoder(options, oa_7), oa.CharacteristicCategories)), delay(() => append(singleton(tryIncludeList("unitCategories", (oa_8) => OntologyAnnotation_encoder(options, oa_8), oa.UnitCategories)), delay(() => append(singleton(tryIncludeList("processSequence", (oa_9) => Process_encoder(options, studyName, assayName, oa_9), oa.ProcessSequence)), delay(() => append(singleton(tryIncludeList("comments", (comment) => encoder(options, comment), oa.Comments)), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue]) : empty())))))))))))));
91
+ })))))))))))))))))]);
81
92
  }
82
93
 
94
+ export const Assay_allowedFields = ofArray(["@id", "filename", "measurementType", "technologyType", "technologyPlatform", "dataFiles", "materials", "characteristicCategories", "unitCategories", "processSequence", "comments", "@type", "@context"]);
95
+
83
96
  export function Assay_decoder(options) {
84
- return (path_7) => ((v) => object_23((get$) => {
85
- let objectArg, objectArg_1, arg_5, objectArg_2, arg_7, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, decoder_1, objectArg_7, arg_17, decoder_2, objectArg_8, arg_19, decoder_3, objectArg_9, arg_21, decoder_4, objectArg_10;
86
- return new Assay((objectArg = get$.Optional, objectArg.Field("@id", uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("filename", string)), (arg_5 = OntologyAnnotation_decoder(options), (objectArg_2 = get$.Optional, objectArg_2.Field("measurementType", uncurry2(arg_5)))), (arg_7 = OntologyAnnotation_decoder(options), (objectArg_3 = get$.Optional, objectArg_3.Field("technologyType", uncurry2(arg_7)))), (objectArg_4 = get$.Optional, objectArg_4.Field("technologyPlatform", string)), (objectArg_5 = get$.Optional, objectArg_5.Field("dataFiles", (path_2, value_2) => list_1((s_1, json_1) => Data_decoder(options, s_1, json_1), path_2, value_2))), (arg_13 = AssayMaterials_decoder(options), (objectArg_6 = get$.Optional, objectArg_6.Field("materials", uncurry2(arg_13)))), (arg_15 = ((decoder_1 = MaterialAttribute_decoder(options), (path_3) => ((value_3) => list_1(uncurry2(decoder_1), path_3, value_3)))), (objectArg_7 = get$.Optional, objectArg_7.Field("characteristicCategories", uncurry2(arg_15)))), (arg_17 = ((decoder_2 = OntologyAnnotation_decoder(options), (path_4) => ((value_4) => list_1(uncurry2(decoder_2), path_4, value_4)))), (objectArg_8 = get$.Optional, objectArg_8.Field("unitCategories", uncurry2(arg_17)))), (arg_19 = ((decoder_3 = Process_decoder(options), (path_5) => ((value_5) => list_1(uncurry2(decoder_3), path_5, value_5)))), (objectArg_9 = get$.Optional, objectArg_9.Field("processSequence", uncurry2(arg_19)))), (arg_21 = ((decoder_4 = decoder_5(options), (path_6) => ((value_6) => list_1(uncurry2(decoder_4), path_6, value_6)))), (objectArg_10 = get$.Optional, objectArg_10.Field("comments", uncurry2(arg_21)))));
87
- }, path_7, v));
97
+ return object(Assay_allowedFields, (get$) => {
98
+ let objectArg, objectArg_1, arg_5, objectArg_2, arg_7, objectArg_3, objectArg_4, arg_11, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10;
99
+ return new Assay((objectArg = get$.Optional, objectArg.Field("@id", uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("filename", string)), (arg_5 = OntologyAnnotation_decoder(options), (objectArg_2 = get$.Optional, objectArg_2.Field("measurementType", arg_5))), (arg_7 = OntologyAnnotation_decoder(options), (objectArg_3 = get$.Optional, objectArg_3.Field("technologyType", arg_7))), (objectArg_4 = get$.Optional, objectArg_4.Field("technologyPlatform", string)), (arg_11 = list_1(Data_decoder(options)), (objectArg_5 = get$.Optional, objectArg_5.Field("dataFiles", arg_11))), (arg_13 = AssayMaterials_decoder(options), (objectArg_6 = get$.Optional, objectArg_6.Field("materials", arg_13))), (arg_15 = list_1(MaterialAttribute_decoder(options)), (objectArg_7 = get$.Optional, objectArg_7.Field("characteristicCategories", arg_15))), (arg_17 = list_1(OntologyAnnotation_decoder(options)), (objectArg_8 = get$.Optional, objectArg_8.Field("unitCategories", arg_17))), (arg_19 = list_1(Process_decoder(options)), (objectArg_9 = get$.Optional, objectArg_9.Field("processSequence", arg_19))), (arg_21 = list_1(decoder_1(options)), (objectArg_10 = get$.Optional, objectArg_10.Field("comments", arg_21))));
100
+ });
88
101
  }
89
102
 
90
103
  export function Assay_fromJsonString(s) {
91
- return fromJsonString(uncurry2(Assay_decoder(ConverterOptions_$ctor())), s);
104
+ const matchValue = fromString(Assay_decoder(ConverterOptions_$ctor()), s);
105
+ if (matchValue.tag === 1) {
106
+ throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
107
+ }
108
+ else {
109
+ return matchValue.fields[0];
110
+ }
92
111
  }
93
112
 
94
113
  export function Assay_toJsonString(p) {
95
- return toString(2, Assay_encoder(ConverterOptions_$ctor(), p));
114
+ return toString(2, Assay_encoder(ConverterOptions_$ctor(), void 0, p));
96
115
  }
97
116
 
98
117
  /**
99
118
  * exports in json-ld format
100
119
  */
101
- export function Assay_toStringLD(a) {
120
+ export function Assay_toJsonldString(a) {
121
+ let returnVal;
122
+ return toString(2, Assay_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), void 0, a));
123
+ }
124
+
125
+ export function Assay_toJsonldStringWithContext(a) {
102
126
  let returnVal;
103
- return toString(2, Assay_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), a));
127
+ return toString(2, Assay_encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), void 0, a));
104
128
  }
105
129
 
@@ -1,15 +1,18 @@
1
- import { replace } from "../../fable_modules/fable-library.4.5.0/String.js";
2
- import { value as value_13 } from "../../fable_modules/fable-library.4.5.0/Option.js";
1
+ import { printf, toText, replace } from "../../fable_modules/fable-library-js.4.13.0/String.js";
2
+ import { value as value_8 } from "../../fable_modules/fable-library-js.4.13.0/Option.js";
3
3
  import { URIModule_toString } from "../ISA/JsonTypes/URI.js";
4
- import { toString, nil, object as object_6 } from "../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
5
- import { choose } from "../../fable_modules/fable-library.4.5.0/List.js";
6
- import { uncurry2, equals } from "../../fable_modules/fable-library.4.5.0/Util.js";
7
- import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library.4.5.0/Seq.js";
8
- import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
4
+ import { choose } from "../../fable_modules/fable-library-js.4.13.0/List.js";
5
+ import { equals } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
6
+ import { Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
7
+ import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
8
+ import { ConverterOptions__set_IncludeContext_Z1FBCCD16, ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeContext, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
9
9
  import { tryInclude } from "./GEncode.js";
10
- import { string, object as object_7 } from "../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
11
- import { fromJsonString as fromJsonString_1, uri } from "./Decode.js";
10
+ import { context_jsonvalue } from "./context/rocrate/isa_comment_context.js";
11
+ import { string, object } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
12
+ import { uri } from "./Decode.js";
12
13
  import { Comment$ } from "../ISA/JsonTypes/Comment.js";
14
+ import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
15
+ import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
13
16
 
14
17
  export function genID(c) {
15
18
  const matchValue = c.ID;
@@ -20,7 +23,7 @@ export function genID(c) {
20
23
  }
21
24
  else {
22
25
  const n = matchValue_1;
23
- const v = (c.Value != null) ? ("_" + replace(value_13(c.Value), " ", "_")) : "";
26
+ const v = (c.Value != null) ? ("_" + replace(value_8(c.Value), " ", "_")) : "";
24
27
  return ("#Comment_" + replace(n, " ", "_")) + v;
25
28
  }
26
29
  }
@@ -30,44 +33,32 @@ export function genID(c) {
30
33
  }
31
34
 
32
35
  export function encoder(options, comment) {
33
- return object_6(choose((tupledArg) => {
36
+ return new Json(5, [choose((tupledArg) => {
34
37
  const v = tupledArg[1];
35
- if (equals(v, nil)) {
38
+ if (equals(v, new Json(3, []))) {
36
39
  return void 0;
37
40
  }
38
41
  else {
39
42
  return [tupledArg[0], v];
40
43
  }
41
- }, toList(delay(() => {
42
- let value, s;
43
- return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = genID(comment), (typeof value === "string") ? ((s = value, s)) : nil)]) : singleton(tryInclude("@id", (value_2) => {
44
- let s_1;
45
- const value_3 = value_2;
46
- return (typeof value_3 === "string") ? ((s_1 = value_3, s_1)) : nil;
47
- }, comment["ID"])), delay(() => {
48
- let value_5, s_2;
49
- return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_5 = "Comment", (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("name", (value_7) => {
50
- let s_3;
51
- const value_8 = value_7;
52
- return (typeof value_8 === "string") ? ((s_3 = value_8, s_3)) : nil;
53
- }, comment["Name"])), delay(() => singleton(tryInclude("value", (value_10) => {
54
- let s_4;
55
- const value_11 = value_10;
56
- return (typeof value_11 === "string") ? ((s_4 = value_11, s_4)) : nil;
57
- }, comment["Value"]))))));
58
- }));
59
- }))));
44
+ }, toList(delay(() => append(ConverterOptions__get_SetID(options) ? singleton(["@id", new Json(0, [genID(comment)])]) : singleton(tryInclude("@id", (value_1) => (new Json(0, [value_1])), comment.ID)), delay(() => append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", new Json(0, ["Comment"])]) : empty(), delay(() => append(singleton(tryInclude("name", (value_4) => (new Json(0, [value_4])), comment.Name)), delay(() => append(singleton(tryInclude("value", (value_6) => (new Json(0, [value_6])), comment.Value)), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue]) : empty()))))))))))))]);
60
45
  }
61
46
 
62
47
  export function decoder(options) {
63
- return (path_2) => ((v) => object_7((get$) => {
48
+ return object((get$) => {
64
49
  let objectArg, objectArg_1, objectArg_2;
65
50
  return new Comment$((objectArg = get$.Optional, objectArg.Field("@id", uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("value", string)));
66
- }, path_2, v));
51
+ });
67
52
  }
68
53
 
69
54
  export function fromJsonString(s) {
70
- return fromJsonString_1(uncurry2(decoder(ConverterOptions_$ctor())), s);
55
+ const matchValue = fromString(decoder(ConverterOptions_$ctor()), s);
56
+ if (matchValue.tag === 1) {
57
+ throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
58
+ }
59
+ else {
60
+ return matchValue.fields[0];
61
+ }
71
62
  }
72
63
 
73
64
  export function toJsonString(c) {
@@ -77,8 +68,13 @@ export function toJsonString(c) {
77
68
  /**
78
69
  * exports in json-ld format
79
70
  */
80
- export function toStringLD(c) {
71
+ export function toJsonldString(c) {
81
72
  let returnVal;
82
73
  return toString(2, encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), c));
83
74
  }
84
75
 
76
+ export function toJsonldStringWithContext(a) {
77
+ let returnVal;
78
+ return toString(2, encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), a));
79
+ }
80
+
@@ -1,9 +1,11 @@
1
- import { class_type } from "../../fable_modules/fable-library.4.5.0/Reflection.js";
1
+ import { class_type } from "../../fable_modules/fable-library-js.4.13.0/Reflection.js";
2
2
 
3
3
  export class ConverterOptions {
4
4
  constructor() {
5
5
  this.setID = false;
6
6
  this.includeType = false;
7
+ this.includeContext = false;
8
+ this.isRoCrate = false;
7
9
  }
8
10
  }
9
11
 
@@ -31,3 +33,19 @@ export function ConverterOptions__set_IncludeType_Z1FBCCD16(this$, iT) {
31
33
  this$.includeType = iT;
32
34
  }
33
35
 
36
+ export function ConverterOptions__get_IncludeContext(this$) {
37
+ return this$.includeContext;
38
+ }
39
+
40
+ export function ConverterOptions__set_IncludeContext_Z1FBCCD16(this$, iC) {
41
+ this$.includeContext = iC;
42
+ }
43
+
44
+ export function ConverterOptions__get_IsRoCrate(this$) {
45
+ return this$.isRoCrate;
46
+ }
47
+
48
+ export function ConverterOptions__set_IsRoCrate_Z1FBCCD16(this$, iR) {
49
+ this$.isRoCrate = iR;
50
+ }
51
+