@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,57 +1,74 @@
1
- import { toString, seq, object } from "../../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
2
- import { map, empty, singleton, append, delay, toList } from "../../../fable_modules/fable-library.4.5.0/Seq.js";
3
- import { map as map_1, defaultArg, value as value_9 } from "../../../fable_modules/fable-library.4.5.0/Option.js";
4
- import { JsonHelper_tryGetComments, JsonHelper_tryGetStringResizeArray, ArcAssay_decoder, JsonHelper_tryGetPersons, JsonHelper_tryGetPublications, JsonHelper_tryGetOntologySourceReferences, JsonHelper_EncoderComments, ArcAssay_encoder, JsonHelper_EncoderPersons, JsonHelper_EncoderPublications, JsonHelper_EncoderOntologySourceReferences } from "./ArcAssay.js";
1
+ import { map, empty, singleton, append, delay, toList } from "../../../fable_modules/fable-library-js.4.13.0/Seq.js";
2
+ import { Json } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
3
+ import { map as map_1, defaultArg, value as value_7 } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
4
+ import { JsonHelper_tryGetComments, JsonHelper_tryGetStringResizeArray, JsonHelper_tryGetPersons, JsonHelper_tryGetPublications, JsonHelper_tryGetOntologySourceReferences, ArcAssay_decoder, JsonHelper_EncoderComments, ArcAssay_encoder, JsonHelper_EncoderPersons, JsonHelper_EncoderPublications, JsonHelper_EncoderOntologySourceReferences } from "./ArcAssay.js";
5
+ import { seq } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
5
6
  import { ArcStudy_decoder, ArcStudy_encoder } from "./ArcStudy.js";
6
- import { fromString, list, string, object as object_1 } from "../../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
7
- import { uncurry2 } from "../../../fable_modules/fable-library.4.5.0/Util.js";
7
+ import { string, object, list } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
8
8
  import { ArcInvestigation } from "../../ISA/ArcTypes/ArcTypes.js";
9
- import { decoder as decoder_2, encoder } from "../Investigation.js";
10
- import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor } from "../ConverterOptions.js";
11
- import { fromJsonString } from "../Decode.js";
12
- import { printf, toFail } from "../../../fable_modules/fable-library.4.5.0/String.js";
9
+ import { toString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
10
+ import { decoder as decoder_1, encoder } from "../Investigation.js";
11
+ import { ConverterOptions__set_IncludeContext_Z1FBCCD16, ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor } from "../ConverterOptions.js";
12
+ import { fromString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
13
+ import { toFail, printf, toText } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
13
14
 
14
15
  export function ArcInvestigation_encoder(inv) {
15
- return object(toList(delay(() => append(singleton(["Identifier", inv.Identifier]), delay(() => append((inv.Title != null) ? singleton(["Title", value_9(inv.Title)]) : empty(), delay(() => append((inv.Description != null) ? singleton(["Description", value_9(inv.Description)]) : empty(), delay(() => append((inv.SubmissionDate != null) ? singleton(["SubmissionDate", value_9(inv.SubmissionDate)]) : empty(), delay(() => append((inv.PublicReleaseDate != null) ? singleton(["PublicReleaseDate", value_9(inv.PublicReleaseDate)]) : empty(), delay(() => append((inv.OntologySourceReferences.length !== 0) ? singleton(["OntologySourceReferences", JsonHelper_EncoderOntologySourceReferences(inv.OntologySourceReferences)]) : empty(), delay(() => append((inv.Publications.length !== 0) ? singleton(["Publications", JsonHelper_EncoderPublications(inv.Publications)]) : empty(), delay(() => append((inv.Contacts.length !== 0) ? singleton(["Contacts", JsonHelper_EncoderPersons(inv.Contacts)]) : empty(), delay(() => append((inv.Assays.length !== 0) ? singleton(["Assays", seq(map(ArcAssay_encoder, inv.Assays))]) : empty(), delay(() => append((inv.Studies.length !== 0) ? singleton(["Studies", seq(map(ArcStudy_encoder, inv.Studies))]) : empty(), delay(() => append((inv.RegisteredStudyIdentifiers.length !== 0) ? singleton(["RegisteredStudyIdentifiers", seq(map((value_5) => value_5, inv.RegisteredStudyIdentifiers))]) : empty(), delay(() => ((inv.Comments.length !== 0) ? singleton(["Comments", JsonHelper_EncoderComments(inv.Comments)]) : empty()))))))))))))))))))))))))));
16
+ return new Json(5, [toList(delay(() => append(singleton(["Identifier", new Json(0, [inv.Identifier])]), delay(() => append((inv.Title != null) ? singleton(["Title", new Json(0, [value_7(inv.Title)])]) : empty(), delay(() => append((inv.Description != null) ? singleton(["Description", new Json(0, [value_7(inv.Description)])]) : empty(), delay(() => append((inv.SubmissionDate != null) ? singleton(["SubmissionDate", new Json(0, [value_7(inv.SubmissionDate)])]) : empty(), delay(() => append((inv.PublicReleaseDate != null) ? singleton(["PublicReleaseDate", new Json(0, [value_7(inv.PublicReleaseDate)])]) : empty(), delay(() => append((inv.OntologySourceReferences.length !== 0) ? singleton(["OntologySourceReferences", JsonHelper_EncoderOntologySourceReferences(inv.OntologySourceReferences)]) : empty(), delay(() => append((inv.Publications.length !== 0) ? singleton(["Publications", JsonHelper_EncoderPublications(inv.Publications)]) : empty(), delay(() => append((inv.Contacts.length !== 0) ? singleton(["Contacts", JsonHelper_EncoderPersons(inv.Contacts)]) : empty(), delay(() => append((inv.Assays.length !== 0) ? singleton(["Assays", seq(map(ArcAssay_encoder, inv.Assays))]) : empty(), delay(() => append((inv.Studies.length !== 0) ? singleton(["Studies", seq(map(ArcStudy_encoder, inv.Studies))]) : empty(), delay(() => append((inv.RegisteredStudyIdentifiers.length !== 0) ? singleton(["RegisteredStudyIdentifiers", seq(map((value_5) => (new Json(0, [value_5])), inv.RegisteredStudyIdentifiers))]) : empty(), delay(() => ((inv.Comments.length !== 0) ? singleton(["Comments", JsonHelper_EncoderComments(inv.Comments)]) : empty())))))))))))))))))))))))))]);
16
17
  }
17
18
 
18
- export const ArcInvestigation_decoder = (path_7) => ((v) => object_1((get$_2) => {
19
- let objectArg, objectArg_1;
20
- let identifier;
21
- const objectArg_2 = get$_2.Required;
22
- identifier = objectArg_2.Field("Identifier", string);
23
- let title;
24
- const objectArg_3 = get$_2.Optional;
25
- title = objectArg_3.Field("Title", string);
26
- let description;
27
- const objectArg_4 = get$_2.Optional;
28
- description = objectArg_4.Field("Description", string);
29
- let submissionDate;
30
- const objectArg_5 = get$_2.Optional;
31
- submissionDate = objectArg_5.Field("SubmissionDate", string);
32
- let publicReleaseDate;
33
- const objectArg_6 = get$_2.Optional;
34
- publicReleaseDate = objectArg_6.Field("PublicReleaseDate", string);
35
- const ontologySourceReferences = JsonHelper_tryGetOntologySourceReferences(get$_2, "OntologySourceReferences");
36
- const publications = JsonHelper_tryGetPublications(get$_2, "Publications");
37
- const contacts = JsonHelper_tryGetPersons(get$_2, "Contacts");
38
- const assays = defaultArg(map_1((collection) => Array.from(collection), (objectArg = get$_2.Optional, objectArg.Field("Assays", (path, value) => list(uncurry2(ArcAssay_decoder), path, value)))), []);
39
- const studies = defaultArg(map_1((collection_1) => Array.from(collection_1), (objectArg_1 = get$_2.Optional, objectArg_1.Field("Studies", (path_1, value_1) => list(uncurry2(ArcStudy_decoder), path_1, value_1)))), []);
40
- const registeredStudyIdentifiers = JsonHelper_tryGetStringResizeArray(get$_2, "RegisteredStudyIdentifiers");
41
- const comments = JsonHelper_tryGetComments(get$_2, "Comments");
42
- return ArcInvestigation.make(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, registeredStudyIdentifiers, comments, []);
43
- }, path_7, v));
19
+ export const ArcInvestigation_decoder = (() => {
20
+ const DecodeAssays = list(ArcAssay_decoder);
21
+ const DecodeStudies = list(ArcStudy_decoder);
22
+ return object((get$_2) => {
23
+ let objectArg, objectArg_1;
24
+ let identifier;
25
+ const objectArg_2 = get$_2.Required;
26
+ identifier = objectArg_2.Field("Identifier", string);
27
+ let title;
28
+ const objectArg_3 = get$_2.Optional;
29
+ title = objectArg_3.Field("Title", string);
30
+ let description;
31
+ const objectArg_4 = get$_2.Optional;
32
+ description = objectArg_4.Field("Description", string);
33
+ let submissionDate;
34
+ const objectArg_5 = get$_2.Optional;
35
+ submissionDate = objectArg_5.Field("SubmissionDate", string);
36
+ let publicReleaseDate;
37
+ const objectArg_6 = get$_2.Optional;
38
+ publicReleaseDate = objectArg_6.Field("PublicReleaseDate", string);
39
+ const ontologySourceReferences = JsonHelper_tryGetOntologySourceReferences(get$_2, "OntologySourceReferences");
40
+ const publications = JsonHelper_tryGetPublications(get$_2, "Publications");
41
+ const contacts = JsonHelper_tryGetPersons(get$_2, "Contacts");
42
+ const assays = defaultArg(map_1((collection) => Array.from(collection), (objectArg = get$_2.Optional, objectArg.Field("Assays", DecodeAssays))), []);
43
+ const studies = defaultArg(map_1((collection_1) => Array.from(collection_1), (objectArg_1 = get$_2.Optional, objectArg_1.Field("Studies", DecodeStudies))), []);
44
+ const registeredStudyIdentifiers = JsonHelper_tryGetStringResizeArray(get$_2, "RegisteredStudyIdentifiers");
45
+ const comments = JsonHelper_tryGetComments(get$_2, "Comments");
46
+ return ArcInvestigation.make(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, registeredStudyIdentifiers, comments, []);
47
+ });
48
+ })();
44
49
 
45
50
  /**
46
51
  * exports in json-ld format
47
52
  */
48
- export function ArcInvestigation_toStringLD(a) {
53
+ export function ArcInvestigation_toJsonldString(a) {
49
54
  let returnVal;
50
55
  return toString(2, encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), a.ToInvestigation()));
51
56
  }
52
57
 
58
+ export function ArcInvestigation_toJsonldStringWithContext(a) {
59
+ let returnVal;
60
+ 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.ToInvestigation()));
61
+ }
62
+
53
63
  export function ArcInvestigation_fromJsonString(s) {
54
- const i = fromJsonString(uncurry2(decoder_2(ConverterOptions_$ctor())), s);
64
+ let i;
65
+ const matchValue = fromString(decoder_1(ConverterOptions_$ctor()), s);
66
+ if (matchValue.tag === 1) {
67
+ throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
68
+ }
69
+ else {
70
+ i = matchValue.fields[0];
71
+ }
55
72
  return ArcInvestigation.fromInvestigation(i);
56
73
  }
57
74
 
@@ -64,22 +81,34 @@ export function ArcInvestigation_toArcJsonString(a) {
64
81
  }
65
82
 
66
83
  export function ArcInvestigation_fromArcJsonString(jsonString) {
67
- const matchValue = fromString(uncurry2(ArcInvestigation_decoder), jsonString);
68
- if (matchValue.tag === 1) {
69
- return toFail(printf("Error. Unable to parse json string to ArcInvestigation: %s"))(matchValue.fields[0]);
84
+ try {
85
+ const matchValue = fromString(ArcInvestigation_decoder, jsonString);
86
+ if (matchValue.tag === 1) {
87
+ throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
88
+ }
89
+ else {
90
+ return matchValue.fields[0];
91
+ }
70
92
  }
71
- else {
72
- return matchValue.fields[0];
93
+ catch (e_1) {
94
+ const arg_1 = e_1.message;
95
+ return toFail(printf("Error. Unable to parse json string to ArcInvestigation: %s"))(arg_1);
73
96
  }
74
97
  }
75
98
 
76
99
  export function ARCtrl_ISA_ArcInvestigation__ArcInvestigation_fromArcJsonString_Static_Z721C83C5(jsonString) {
77
- const matchValue = fromString(uncurry2(ArcInvestigation_decoder), jsonString);
78
- if (matchValue.tag === 1) {
79
- return toFail(printf("Error. Unable to parse json string to ArcInvestigation: %s"))(matchValue.fields[0]);
100
+ try {
101
+ const matchValue = fromString(ArcInvestigation_decoder, jsonString);
102
+ if (matchValue.tag === 1) {
103
+ throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
104
+ }
105
+ else {
106
+ return matchValue.fields[0];
107
+ }
80
108
  }
81
- else {
82
- return matchValue.fields[0];
109
+ catch (e_1) {
110
+ const arg_1 = e_1.message;
111
+ return toFail(printf("Error. Unable to parse json string to ArcInvestigation: %s"))(arg_1);
83
112
  }
84
113
  }
85
114
 
@@ -1,25 +1,27 @@
1
- import { toString, seq, object } from "../../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
2
- import { map, empty, singleton, append, delay, toList } from "../../../fable_modules/fable-library.4.5.0/Seq.js";
3
- import { map as map_1, defaultArg, value as value_7 } from "../../../fable_modules/fable-library.4.5.0/Option.js";
1
+ import { map, empty, singleton, append, delay, toList } from "../../../fable_modules/fable-library-js.4.13.0/Seq.js";
2
+ import { Json } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
3
+ import { map as map_1, defaultArg, value as value_7 } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
4
4
  import { JsonHelper_tryGetComments, JsonHelper_tryGetFactors, JsonHelper_tryGetStringResizeArray, JsonHelper_tryGetTables, JsonHelper_tryGetOAs, JsonHelper_tryGetPersons, JsonHelper_tryGetPublications, JsonHelper_EncoderComments, JsonHelper_EncoderFactors, JsonHelper_EncoderTables, JsonHelper_EncoderOAs, JsonHelper_EncoderPersons, JsonHelper_EncoderPublications } from "./ArcAssay.js";
5
- import { fromString, array, string, object as object_1 } from "../../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
5
+ import { seq } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
6
+ import { array, string, object } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
6
7
  import { ArcStudy } from "../../ISA/ArcTypes/ArcTypes.js";
7
8
  import { ArcTable_compressedDecoder, ArcTable_compressedEncoder } from "./ArcTable.js";
8
- import { safeHash, equals, uncurry2 } from "../../../fable_modules/fable-library.4.5.0/Util.js";
9
+ import { toString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
9
10
  import { Study_decoder, Study_encoder } from "../Study.js";
10
- import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor } from "../ConverterOptions.js";
11
- import { fromJsonString } from "../Decode.js";
12
- import { printf, toFail } from "../../../fable_modules/fable-library.4.5.0/String.js";
11
+ import { ConverterOptions__set_IncludeContext_Z1FBCCD16, ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor } from "../ConverterOptions.js";
12
+ import { fromString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
13
+ import { toFail, printf, toText } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
13
14
  import { StringTable_arrayFromMap, StringTable_encoder, StringTable_decoder } from "../StringTable.js";
14
15
  import { OATable_arrayFromMap, OATable_encoder, OATable_decoder } from "./OATable.js";
15
16
  import { CellTable_arrayFromMap, CellTable_encoder, CellTable_decoder } from "./CellTable.js";
16
- import { Dictionary } from "../../../fable_modules/fable-library.4.5.0/MutableMap.js";
17
+ import { Dictionary } from "../../../fable_modules/fable-library-js.4.13.0/MutableMap.js";
18
+ import { safeHash, equals } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
17
19
 
18
20
  export function ArcStudy_encoder(study) {
19
- return object(toList(delay(() => append(singleton(["Identifier", study.Identifier]), delay(() => append((study.Title != null) ? singleton(["Title", value_7(study.Title)]) : empty(), delay(() => append((study.Description != null) ? singleton(["Description", value_7(study.Description)]) : empty(), delay(() => append((study.SubmissionDate != null) ? singleton(["SubmissionDate", value_7(study.SubmissionDate)]) : empty(), delay(() => append((study.PublicReleaseDate != null) ? singleton(["PublicReleaseDate", value_7(study.PublicReleaseDate)]) : empty(), delay(() => append((study.Publications.length !== 0) ? singleton(["Publications", JsonHelper_EncoderPublications(study.Publications)]) : empty(), delay(() => append((study.Contacts.length !== 0) ? singleton(["Contacts", JsonHelper_EncoderPersons(study.Contacts)]) : empty(), delay(() => append((study.StudyDesignDescriptors.length !== 0) ? singleton(["StudyDesignDescriptors", JsonHelper_EncoderOAs(study.StudyDesignDescriptors)]) : empty(), delay(() => append((study.TableCount !== 0) ? singleton(["Tables", JsonHelper_EncoderTables(study.Tables)]) : empty(), delay(() => append((study.RegisteredAssayIdentifiers.length !== 0) ? singleton(["RegisteredAssayIdentifiers", seq(map((value_5) => value_5, study.RegisteredAssayIdentifiers))]) : empty(), delay(() => append((study.Factors.length !== 0) ? singleton(["Factors", JsonHelper_EncoderFactors(study.Factors)]) : empty(), delay(() => ((study.Comments.length !== 0) ? singleton(["Comments", JsonHelper_EncoderComments(study.Comments)]) : empty()))))))))))))))))))))))))));
21
+ return new Json(5, [toList(delay(() => append(singleton(["Identifier", new Json(0, [study.Identifier])]), delay(() => append((study.Title != null) ? singleton(["Title", new Json(0, [value_7(study.Title)])]) : empty(), delay(() => append((study.Description != null) ? singleton(["Description", new Json(0, [value_7(study.Description)])]) : empty(), delay(() => append((study.SubmissionDate != null) ? singleton(["SubmissionDate", new Json(0, [value_7(study.SubmissionDate)])]) : empty(), delay(() => append((study.PublicReleaseDate != null) ? singleton(["PublicReleaseDate", new Json(0, [value_7(study.PublicReleaseDate)])]) : empty(), delay(() => append((study.Publications.length !== 0) ? singleton(["Publications", JsonHelper_EncoderPublications(study.Publications)]) : empty(), delay(() => append((study.Contacts.length !== 0) ? singleton(["Contacts", JsonHelper_EncoderPersons(study.Contacts)]) : empty(), delay(() => append((study.StudyDesignDescriptors.length !== 0) ? singleton(["StudyDesignDescriptors", JsonHelper_EncoderOAs(study.StudyDesignDescriptors)]) : empty(), delay(() => append((study.TableCount !== 0) ? singleton(["Tables", JsonHelper_EncoderTables(study.Tables)]) : empty(), delay(() => append((study.RegisteredAssayIdentifiers.length !== 0) ? singleton(["RegisteredAssayIdentifiers", seq(map((value_5) => (new Json(0, [value_5])), study.RegisteredAssayIdentifiers))]) : empty(), delay(() => append((study.Factors.length !== 0) ? singleton(["Factors", JsonHelper_EncoderFactors(study.Factors)]) : empty(), delay(() => ((study.Comments.length !== 0) ? singleton(["Comments", JsonHelper_EncoderComments(study.Comments)]) : empty())))))))))))))))))))))))))]);
20
22
  }
21
23
 
22
- export const ArcStudy_decoder = (path_5) => ((v) => object_1((get$) => {
24
+ export const ArcStudy_decoder = object((get$) => {
23
25
  let identifier;
24
26
  const objectArg = get$.Required;
25
27
  identifier = objectArg.Field("Identifier", string);
@@ -43,16 +45,16 @@ export const ArcStudy_decoder = (path_5) => ((v) => object_1((get$) => {
43
45
  const factors = JsonHelper_tryGetFactors(get$, "Factors");
44
46
  const comments = JsonHelper_tryGetComments(get$, "Comments");
45
47
  return ArcStudy.make(identifier, title, description, submissionDate, publicReleaseDate, publications, contacts, studyDesignDescriptors, tables, registeredAssayIdentifiers, factors, comments);
46
- }, path_5, v));
48
+ });
47
49
 
48
50
  export function ArcStudy_compressedEncoder(stringTable, oaTable, cellTable, study) {
49
- return object(toList(delay(() => append(singleton(["Identifier", study.Identifier]), delay(() => append((study.Title != null) ? singleton(["Title", value_7(study.Title)]) : empty(), delay(() => append((study.Description != null) ? singleton(["Description", value_7(study.Description)]) : empty(), delay(() => append((study.SubmissionDate != null) ? singleton(["SubmissionDate", value_7(study.SubmissionDate)]) : empty(), delay(() => append((study.PublicReleaseDate != null) ? singleton(["PublicReleaseDate", value_7(study.PublicReleaseDate)]) : empty(), delay(() => append((study.Publications.length !== 0) ? singleton(["Publications", JsonHelper_EncoderPublications(study.Publications)]) : empty(), delay(() => append((study.Contacts.length !== 0) ? singleton(["Contacts", JsonHelper_EncoderPersons(study.Contacts)]) : empty(), delay(() => append((study.StudyDesignDescriptors.length !== 0) ? singleton(["StudyDesignDescriptors", JsonHelper_EncoderOAs(study.StudyDesignDescriptors)]) : empty(), delay(() => append((study.TableCount !== 0) ? singleton(["Tables", seq(map((table) => ArcTable_compressedEncoder(stringTable, oaTable, cellTable, table), study.Tables))]) : empty(), delay(() => append((study.RegisteredAssayIdentifiers.length !== 0) ? singleton(["RegisteredAssayIdentifiers", seq(map((value_5) => value_5, study.RegisteredAssayIdentifiers))]) : empty(), delay(() => append((study.Factors.length !== 0) ? singleton(["Factors", JsonHelper_EncoderFactors(study.Factors)]) : empty(), delay(() => ((study.Comments.length !== 0) ? singleton(["Comments", JsonHelper_EncoderComments(study.Comments)]) : empty()))))))))))))))))))))))))));
51
+ return new Json(5, [toList(delay(() => append(singleton(["Identifier", new Json(0, [study.Identifier])]), delay(() => append((study.Title != null) ? singleton(["Title", new Json(0, [value_7(study.Title)])]) : empty(), delay(() => append((study.Description != null) ? singleton(["Description", new Json(0, [value_7(study.Description)])]) : empty(), delay(() => append((study.SubmissionDate != null) ? singleton(["SubmissionDate", new Json(0, [value_7(study.SubmissionDate)])]) : empty(), delay(() => append((study.PublicReleaseDate != null) ? singleton(["PublicReleaseDate", new Json(0, [value_7(study.PublicReleaseDate)])]) : empty(), delay(() => append((study.Publications.length !== 0) ? singleton(["Publications", JsonHelper_EncoderPublications(study.Publications)]) : empty(), delay(() => append((study.Contacts.length !== 0) ? singleton(["Contacts", JsonHelper_EncoderPersons(study.Contacts)]) : empty(), delay(() => append((study.StudyDesignDescriptors.length !== 0) ? singleton(["StudyDesignDescriptors", JsonHelper_EncoderOAs(study.StudyDesignDescriptors)]) : empty(), delay(() => append((study.TableCount !== 0) ? singleton(["Tables", seq(map((table) => ArcTable_compressedEncoder(stringTable, oaTable, cellTable, table), study.Tables))]) : empty(), delay(() => append((study.RegisteredAssayIdentifiers.length !== 0) ? singleton(["RegisteredAssayIdentifiers", seq(map((value_5) => (new Json(0, [value_5])), study.RegisteredAssayIdentifiers))]) : empty(), delay(() => append((study.Factors.length !== 0) ? singleton(["Factors", JsonHelper_EncoderFactors(study.Factors)]) : empty(), delay(() => ((study.Comments.length !== 0) ? singleton(["Comments", JsonHelper_EncoderComments(study.Comments)]) : empty())))))))))))))))))))))))))]);
50
52
  }
51
53
 
52
54
  export function ArcStudy_compressedDecoder(stringTable, oaTable, cellTable) {
53
- return (path_6) => ((v) => object_1((get$) => {
54
- let arg_1, decoder, objectArg;
55
- const tables = defaultArg(map_1((collection) => Array.from(collection), (arg_1 = ((decoder = ArcTable_compressedDecoder(stringTable, oaTable, cellTable), (path) => ((value) => array(uncurry2(decoder), path, value)))), (objectArg = get$.Optional, objectArg.Field("Tables", uncurry2(arg_1))))), []);
55
+ return object((get$) => {
56
+ let arg_1, objectArg;
57
+ const tables = defaultArg(map_1((collection) => Array.from(collection), (arg_1 = array(ArcTable_compressedDecoder(stringTable, oaTable, cellTable)), (objectArg = get$.Optional, objectArg.Field("Tables", arg_1)))), []);
56
58
  let identifier;
57
59
  const objectArg_1 = get$.Required;
58
60
  identifier = objectArg_1.Field("Identifier", string);
@@ -75,20 +77,32 @@ export function ArcStudy_compressedDecoder(stringTable, oaTable, cellTable) {
75
77
  const factors = JsonHelper_tryGetFactors(get$, "Factors");
76
78
  const comments = JsonHelper_tryGetComments(get$, "Comments");
77
79
  return ArcStudy.make(identifier, title, description, submissionDate, publicReleaseDate, publications, contacts, studyDesignDescriptors, tables, registeredAssayIdentifiers, factors, comments);
78
- }, path_6, v));
80
+ });
79
81
  }
80
82
 
81
83
  /**
82
84
  * exports in json-ld format
83
85
  */
84
- export function ArcStudy_toStringLD(a, assays) {
86
+ export function ArcStudy_toJsonldString(a, assays) {
85
87
  let returnVal;
86
88
  return toString(2, Study_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), a.ToStudy(assays)));
87
89
  }
88
90
 
91
+ export function ArcStudy_toJsonldStringWithContext(a, assays) {
92
+ let returnVal;
93
+ return toString(2, Study_encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), a.ToStudy(assays)));
94
+ }
95
+
89
96
  export function ArcStudy_fromJsonString(s) {
90
- const s_1 = fromJsonString(uncurry2(Study_decoder(ConverterOptions_$ctor())), s);
91
- return ArcStudy.fromStudy(s_1);
97
+ let s_2;
98
+ const matchValue = fromString(Study_decoder(ConverterOptions_$ctor()), s);
99
+ if (matchValue.tag === 1) {
100
+ throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
101
+ }
102
+ else {
103
+ s_2 = matchValue.fields[0];
104
+ }
105
+ return ArcStudy.fromStudy(s_2);
92
106
  }
93
107
 
94
108
  export function ArcStudy_toJsonString(a, assays) {
@@ -100,22 +114,34 @@ export function ArcStudy_toArcJsonString(a) {
100
114
  }
101
115
 
102
116
  export function ArcStudy_fromArcJsonString(jsonString) {
103
- const matchValue = fromString(uncurry2(ArcStudy_decoder), jsonString);
104
- if (matchValue.tag === 1) {
105
- return toFail(printf("Error. Unable to parse json string to ArcStudy: %s"))(matchValue.fields[0]);
117
+ try {
118
+ const matchValue = fromString(ArcStudy_decoder, jsonString);
119
+ if (matchValue.tag === 1) {
120
+ throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
121
+ }
122
+ else {
123
+ return matchValue.fields[0];
124
+ }
106
125
  }
107
- else {
108
- return matchValue.fields[0];
126
+ catch (e_1) {
127
+ const arg_1 = e_1.message;
128
+ return toFail(printf("Error. Unable to parse json string to ArcStudy: %s"))(arg_1);
109
129
  }
110
130
  }
111
131
 
112
132
  export function ARCtrl_ISA_ArcStudy__ArcStudy_fromArcJsonString_Static_Z721C83C5(jsonString) {
113
- const matchValue = fromString(uncurry2(ArcStudy_decoder), jsonString);
114
- if (matchValue.tag === 1) {
115
- return toFail(printf("Error. Unable to parse json string to ArcStudy: %s"))(matchValue.fields[0]);
133
+ try {
134
+ const matchValue = fromString(ArcStudy_decoder, jsonString);
135
+ if (matchValue.tag === 1) {
136
+ throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
137
+ }
138
+ else {
139
+ return matchValue.fields[0];
140
+ }
116
141
  }
117
- else {
118
- return matchValue.fields[0];
142
+ catch (e_1) {
143
+ const arg_1 = e_1.message;
144
+ return toFail(printf("Error. Unable to parse json string to ArcStudy: %s"))(arg_1);
119
145
  }
120
146
  }
121
147
 
@@ -128,24 +154,31 @@ export function ARCtrl_ISA_ArcStudy__ArcStudy_toArcJsonString_Static_1B3D5E9B(a)
128
154
  }
129
155
 
130
156
  export function ARCtrl_ISA_ArcStudy__ArcStudy_fromCompressedJsonString_Static_Z721C83C5(jsonString) {
131
- const matchValue = fromString((path, v) => object_1((get$) => {
157
+ const decoder = object((get$) => {
132
158
  let arg_5, objectArg_2;
133
159
  let stringTable;
134
160
  const objectArg = get$.Required;
135
- stringTable = objectArg.Field("stringTable", uncurry2(StringTable_decoder));
161
+ stringTable = objectArg.Field("stringTable", StringTable_decoder);
136
162
  let oaTable;
137
163
  const arg_3 = OATable_decoder(stringTable);
138
164
  const objectArg_1 = get$.Required;
139
- oaTable = objectArg_1.Field("oaTable", uncurry2(arg_3));
140
- const arg_7 = ArcStudy_compressedDecoder(stringTable, oaTable, (arg_5 = CellTable_decoder(stringTable, oaTable), (objectArg_2 = get$.Required, objectArg_2.Field("cellTable", uncurry2(arg_5)))));
165
+ oaTable = objectArg_1.Field("oaTable", arg_3);
166
+ const arg_7 = ArcStudy_compressedDecoder(stringTable, oaTable, (arg_5 = CellTable_decoder(stringTable, oaTable), (objectArg_2 = get$.Required, objectArg_2.Field("cellTable", arg_5))));
141
167
  const objectArg_3 = get$.Required;
142
- return objectArg_3.Field("study", uncurry2(arg_7));
143
- }, path, v), jsonString);
144
- if (matchValue.tag === 1) {
145
- return toFail(printf("Error. Unable to parse json string to ArcAssay: %s"))(matchValue.fields[0]);
168
+ return objectArg_3.Field("study", arg_7);
169
+ });
170
+ try {
171
+ const matchValue = fromString(decoder, jsonString);
172
+ if (matchValue.tag === 1) {
173
+ throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
174
+ }
175
+ else {
176
+ return matchValue.fields[0];
177
+ }
146
178
  }
147
- else {
148
- return matchValue.fields[0];
179
+ catch (e_1) {
180
+ const arg_9 = e_1.message;
181
+ return toFail(printf("Error. Unable to parse json string to ArcAssay: %s"))(arg_9);
149
182
  }
150
183
  }
151
184
 
@@ -161,7 +194,7 @@ export function ARCtrl_ISA_ArcStudy__ArcStudy_ToCompressedJsonString_71136F3F(th
161
194
  GetHashCode: safeHash,
162
195
  });
163
196
  const arcStudy = ArcStudy_compressedEncoder(stringTable, oaTable, cellTable, this$);
164
- return toString(spaces_1, object([["cellTable", CellTable_encoder(stringTable, oaTable, CellTable_arrayFromMap(cellTable))], ["oaTable", OATable_encoder(stringTable, OATable_arrayFromMap(oaTable))], ["stringTable", StringTable_encoder(StringTable_arrayFromMap(stringTable))], ["study", arcStudy]]));
197
+ return toString(spaces_1, new Json(5, [[["cellTable", CellTable_encoder(stringTable, oaTable, CellTable_arrayFromMap(cellTable))], ["oaTable", OATable_encoder(stringTable, OATable_arrayFromMap(oaTable))], ["stringTable", StringTable_encoder(StringTable_arrayFromMap(stringTable))], ["study", arcStudy]]]));
165
198
  }
166
199
 
167
200
  export function ARCtrl_ISA_ArcStudy__ArcStudy_toCompressedJsonString_Static_1B3D5E9B(s) {