@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,126 +1,167 @@
1
- import { toString, tuple2, map as map_1, list, object } from "../../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
2
- import { iterate, toArray, collect, empty, map, singleton, append, delay, toList } from "../../../fable_modules/fable-library.4.5.0/Seq.js";
1
+ import { toArray, collect, empty, map, singleton, append, delay, toList } from "../../../fable_modules/fable-library-js.4.13.0/Seq.js";
2
+ import { ErrorReason$1, Json } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
3
+ import { tuple2, map as map_1, list } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
3
4
  import { CompositeHeader_decoder, CompositeHeader_encoder } from "./CompositeHeader.js";
4
5
  import { CompositeCell_decoder, CompositeCell_encoder } from "./CompositeCell.js";
5
- import { empty as empty_2, ofSeq } from "../../../fable_modules/fable-library.4.5.0/Map.js";
6
- import { safeHash, equals, arrayHash, equalArrays, uncurry2, compareArrays } from "../../../fable_modules/fable-library.4.5.0/Util.js";
7
- import { fromString, value as value_5, array as array_1, string, int, tuple2 as tuple2_1, map$0027, list as list_1, object as object_1 } from "../../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
8
- import { toArray as toArray_1, defaultArg } from "../../../fable_modules/fable-library.4.5.0/Option.js";
9
- import { empty as empty_1 } from "../../../fable_modules/fable-library.4.5.0/List.js";
10
- import { Dictionary } from "../../../fable_modules/fable-library.4.5.0/MutableMap.js";
6
+ import { empty as empty_2, ofSeq } from "../../../fable_modules/fable-library-js.4.13.0/Map.js";
7
+ import { safeHash, int32ToString, equals, arrayHash, equalArrays, compareArrays } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
8
+ import { Helpers_prependPath, array as array_1, string, int, tuple2 as tuple2_1, map$0027, list as list_1, object } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
9
+ import { defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
10
+ import { empty as empty_1 } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
11
+ import { Dictionary } from "../../../fable_modules/fable-library-js.4.13.0/MutableMap.js";
11
12
  import { ArcTable } from "../../ISA/ArcTypes/ArcTable.js";
12
13
  import { CellTable_arrayFromMap, CellTable_encoder, CellTable_decoder, CellTable_decodeCell, CellTable_encodeCell } from "./CellTable.js";
13
- import { addToDict, getItemFromDict } from "../../../fable_modules/fable-library.4.5.0/MapUtil.js";
14
- import { rangeDouble } from "../../../fable_modules/fable-library.4.5.0/Range.js";
15
- import { iterateIndexed } from "../../../fable_modules/fable-library.4.5.0/Array.js";
14
+ import { addToDict, getItemFromDict } from "../../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
15
+ import { rangeDouble } from "../../../fable_modules/fable-library-js.4.13.0/Range.js";
16
+ import { FSharpResult$2 } from "../../../fable_modules/fable-library-js.4.13.0/Result.js";
17
+ import { fill, setItem, fold, iterateIndexed } from "../../../fable_modules/fable-library-js.4.13.0/Array.js";
16
18
  import { StringTable_arrayFromMap, StringTable_encoder, StringTable_decoder, StringTable_decodeString, StringTable_encodeString } from "../StringTable.js";
17
- import { printf, toFail } from "../../../fable_modules/fable-library.4.5.0/String.js";
19
+ import { fromString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
20
+ import { printf, toText } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
21
+ import { toString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
18
22
  import { OATable_arrayFromMap, OATable_encoder, OATable_decoder } from "./OATable.js";
19
23
 
20
24
  export function ArcTable_encoder(table) {
21
- return object(toList(delay(() => append(singleton(["name", table.Name]), delay(() => append((table.Headers.length !== 0) ? singleton(["header", list(toList(delay(() => map(CompositeHeader_encoder, table.Headers))))]) : empty(), delay(() => ((table.Values.size !== 0) ? singleton(["values", map_1((tupledArg) => tuple2((value) => value, (value_2) => value_2, tupledArg[0], tupledArg[1]), CompositeCell_encoder, ofSeq(toList(delay(() => collect((matchValue) => {
25
+ return new Json(5, [toList(delay(() => append(singleton(["name", new Json(0, [table.Name])]), delay(() => append((table.Headers.length !== 0) ? singleton(["header", list(toList(delay(() => map(CompositeHeader_encoder, table.Headers))))]) : empty(), delay(() => ((table.Values.size !== 0) ? singleton(["values", map_1((tupledArg) => tuple2((value) => (new Json(7, [value >>> 0])), (value_2) => (new Json(7, [value_2 >>> 0])), tupledArg[0], tupledArg[1]), CompositeCell_encoder, ofSeq(toList(delay(() => collect((matchValue) => {
22
26
  const activePatternResult = matchValue;
23
27
  return singleton([activePatternResult[0], activePatternResult[1]]);
24
28
  }, table.Values))), {
25
29
  Compare: compareArrays,
26
- }))]) : empty()))))))));
30
+ }))]) : empty())))))))]);
27
31
  }
28
32
 
29
- export const ArcTable_decoder = (path_2) => ((v) => object_1((get$) => {
30
- let objectArg, arg_5, objectArg_1, objectArg_2;
33
+ export const ArcTable_decoder = object((get$) => {
34
+ let arg_1, objectArg, arg_3, objectArg_1, objectArg_2;
31
35
  let decodedHeader;
32
- const collection = defaultArg((objectArg = get$.Optional, objectArg.Field("header", (path, value) => list_1(uncurry2(CompositeHeader_decoder), path, value))), empty_1());
36
+ const collection = defaultArg((arg_1 = list_1(CompositeHeader_decoder), (objectArg = get$.Optional, objectArg.Field("header", arg_1))), empty_1());
33
37
  decodedHeader = Array.from(collection);
34
- const decodedValues = new Dictionary(defaultArg((arg_5 = map$0027(uncurry2(tuple2_1(uncurry2(int), uncurry2(int))), uncurry2((arg_2) => {
35
- const clo = CompositeCell_decoder(arg_2);
36
- return clo;
37
- })), (objectArg_1 = get$.Optional, objectArg_1.Field("values", uncurry2(arg_5)))), empty_2({
38
+ const decodedValues = new Dictionary(defaultArg((arg_3 = map$0027(tuple2_1(int, int), CompositeCell_decoder), (objectArg_1 = get$.Optional, objectArg_1.Field("values", arg_3))), empty_2({
38
39
  Compare: compareArrays,
39
40
  })), {
40
41
  Equals: equalArrays,
41
42
  GetHashCode: arrayHash,
42
43
  });
43
44
  return ArcTable.create((objectArg_2 = get$.Required, objectArg_2.Field("name", string)), decodedHeader, decodedValues);
44
- }, path_2, v));
45
+ });
45
46
 
46
47
  export function ArcTable_compressedColumnEncoder(columnIndex, rowCount, cellTable, table) {
47
48
  if (table.Headers[columnIndex].IsIOType ? true : (rowCount < 100)) {
48
- return toArray(delay(() => map((r) => CellTable_encodeCell(cellTable, getItemFromDict(table.Values, [columnIndex, r])), rangeDouble(0, 1, rowCount - 1))));
49
+ return new Json(6, [toArray(delay(() => map((r) => CellTable_encodeCell(cellTable, getItemFromDict(table.Values, [columnIndex, r])), rangeDouble(0, 1, rowCount - 1))))]);
49
50
  }
50
51
  else {
51
52
  let current = getItemFromDict(table.Values, [columnIndex, 0]);
52
53
  let from = 0;
53
- return toArray(delay(() => append(collect((i) => {
54
+ return new Json(6, [toArray(delay(() => append(collect((i) => {
55
+ let value, value_1;
54
56
  const next = getItemFromDict(table.Values, [columnIndex, i]);
55
- return !equals(next, current) ? append(singleton(object([["f", from], ["t", i - 1], ["v", CellTable_encodeCell(cellTable, current)]])), delay(() => {
57
+ return !equals(next, current) ? append(singleton(new Json(5, [[["f", (value = (from | 0), new Json(7, [value >>> 0]))], ["t", (value_1 = ((i - 1) | 0), new Json(7, [value_1 >>> 0]))], ["v", CellTable_encodeCell(cellTable, current)]]])), delay(() => {
56
58
  current = next;
57
59
  from = (i | 0);
58
60
  return empty();
59
61
  })) : empty();
60
- }, rangeDouble(1, 1, rowCount - 1)), delay(() => singleton(object([["f", from], ["t", rowCount - 1], ["v", CellTable_encodeCell(cellTable, current)]]))))));
62
+ }, rangeDouble(1, 1, rowCount - 1)), delay(() => {
63
+ let value_2, value_3;
64
+ return singleton(new Json(5, [[["f", (value_2 = (from | 0), new Json(7, [value_2 >>> 0]))], ["t", (value_3 = ((rowCount - 1) | 0), new Json(7, [value_3 >>> 0]))], ["v", CellTable_encodeCell(cellTable, current)]]]));
65
+ }))))]);
61
66
  }
62
67
  }
63
68
 
64
- export function ArcTable_compressedColumnDecoder(columnIndex, cellTable, table, column) {
65
- const matchValue = array_1((s, o) => CellTable_decodeCell(cellTable, s, o), "", column);
66
- if (matchValue.tag === 1) {
67
- array_1((s_1, jv) => object_1((get$) => {
68
- let from;
69
- const objectArg = get$.Required;
70
- from = objectArg.Field("f", uncurry2(int));
71
- let to_;
72
- const objectArg_1 = get$.Required;
73
- to_ = objectArg_1.Field("t", uncurry2(int));
74
- let value;
75
- const objectArg_2 = get$.Required;
76
- value = objectArg_2.Field("v", (s_2, o_1) => CellTable_decodeCell(cellTable, s_2, o_1));
77
- for (let i = from; i <= to_; i++) {
78
- addToDict(table.Values, [columnIndex, i], value);
69
+ export function ArcTable_compressedColumnDecoder(cellTable, table, columnIndex) {
70
+ return {
71
+ Decode(helper, column) {
72
+ const matchValue = array_1(CellTable_decodeCell(cellTable)).Decode(helper, column);
73
+ if (matchValue.tag === 1) {
74
+ const rangeDecoder = object((get$) => {
75
+ let from;
76
+ const objectArg = get$.Required;
77
+ from = objectArg.Field("f", int);
78
+ let to_;
79
+ const objectArg_1 = get$.Required;
80
+ to_ = objectArg_1.Field("t", int);
81
+ let value;
82
+ const arg_5 = CellTable_decodeCell(cellTable);
83
+ const objectArg_2 = get$.Required;
84
+ value = objectArg_2.Field("v", arg_5);
85
+ for (let i = from; i <= to_; i++) {
86
+ addToDict(table.Values, [columnIndex, i], value);
87
+ }
88
+ });
89
+ const matchValue_1 = array_1(rangeDecoder).Decode(helper, column);
90
+ return (matchValue_1.tag === 1) ? (new FSharpResult$2(1, [matchValue_1.fields[0]])) : (new FSharpResult$2(0, [void 0]));
79
91
  }
80
- }, s_1, jv), "", column);
81
- }
82
- else {
83
- iterateIndexed((r, cell) => {
84
- addToDict(table.Values, [columnIndex, r], cell);
85
- }, matchValue.fields[0]);
86
- }
92
+ else {
93
+ iterateIndexed((r, cell) => {
94
+ addToDict(table.Values, [columnIndex, r], cell);
95
+ }, matchValue.fields[0]);
96
+ return new FSharpResult$2(0, [void 0]);
97
+ }
98
+ },
99
+ };
100
+ }
101
+
102
+ export function ArcTable_arrayi(decoderi) {
103
+ return {
104
+ Decode(helpers, value) {
105
+ if (helpers.isArray(value)) {
106
+ let i = -1;
107
+ const tokens = helpers.asArray(value);
108
+ return fold((acc, value_1) => {
109
+ let tupledArg;
110
+ i = ((i + 1) | 0);
111
+ if (acc.tag === 0) {
112
+ const acc_1 = acc.fields[0];
113
+ const matchValue = decoderi(i).Decode(helpers, value_1);
114
+ if (matchValue.tag === 0) {
115
+ setItem(acc_1, i, matchValue.fields[0]);
116
+ return new FSharpResult$2(0, [acc_1]);
117
+ }
118
+ else {
119
+ return new FSharpResult$2(1, [(tupledArg = matchValue.fields[0], Helpers_prependPath((".[" + int32ToString(i)) + "]", tupledArg[0], tupledArg[1]))]);
120
+ }
121
+ }
122
+ else {
123
+ return acc;
124
+ }
125
+ }, new FSharpResult$2(0, [fill(new Array(tokens.length), 0, tokens.length, null)]), tokens);
126
+ }
127
+ else {
128
+ return new FSharpResult$2(1, [["", new ErrorReason$1(0, ["an array", value])]]);
129
+ }
130
+ },
131
+ };
87
132
  }
88
133
 
89
134
  export function ArcTable_compressedEncoder(stringTable, oaTable, cellTable, table) {
90
- return object(toList(delay(() => append(singleton(["n", StringTable_encodeString(stringTable, table.Name)]), delay(() => append((table.Headers.length !== 0) ? singleton(["h", list(toList(delay(() => map(CompositeHeader_encoder, table.Headers))))]) : empty(), delay(() => {
135
+ return new Json(5, [toList(delay(() => append(singleton(["n", StringTable_encodeString(stringTable, table.Name)]), delay(() => append((table.Headers.length !== 0) ? singleton(["h", list(toList(delay(() => map(CompositeHeader_encoder, table.Headers))))]) : empty(), delay(() => {
91
136
  if (table.Values.size !== 0) {
92
137
  const rowCount = table.RowCount | 0;
93
- return singleton(["c", toArray(delay(() => map((c) => ArcTable_compressedColumnEncoder(c, rowCount, cellTable, table), rangeDouble(0, 1, table.ColumnCount - 1))))]);
138
+ return singleton(["c", new Json(6, [toArray(delay(() => map((c) => ArcTable_compressedColumnEncoder(c, rowCount, cellTable, table), rangeDouble(0, 1, table.ColumnCount - 1))))])]);
94
139
  }
95
140
  else {
96
141
  return empty();
97
142
  }
98
- })))))));
143
+ }))))))]);
99
144
  }
100
145
 
101
146
  export function ArcTable_compressedDecoder(stringTable, oaTable, cellTable) {
102
- return (path_2) => ((v_1) => object_1((get$) => {
103
- let objectArg, objectArg_1, objectArg_2;
147
+ return object((get$) => {
148
+ let arg_1, objectArg, arg_3, objectArg_1, arg_5, objectArg_2;
104
149
  let decodedHeader;
105
- const collection = defaultArg((objectArg = get$.Optional, objectArg.Field("h", (path, value) => list_1(uncurry2(CompositeHeader_decoder), path, value))), empty_1());
150
+ const collection = defaultArg((arg_1 = list_1(CompositeHeader_decoder), (objectArg = get$.Optional, objectArg.Field("h", arg_1))), empty_1());
106
151
  decodedHeader = Array.from(collection);
107
- const table = ArcTable.create((objectArg_1 = get$.Required, objectArg_1.Field("n", (s, o) => StringTable_decodeString(stringTable, s, o))), decodedHeader, new Dictionary([], {
152
+ const table = ArcTable.create((arg_3 = StringTable_decodeString(stringTable), (objectArg_1 = get$.Required, objectArg_1.Field("n", arg_3))), decodedHeader, new Dictionary([], {
108
153
  Equals: equalArrays,
109
154
  GetHashCode: arrayHash,
110
155
  }));
111
- iterate((array) => {
112
- iterateIndexed((c, col) => {
113
- ArcTable_compressedColumnDecoder(c, cellTable, table, col);
114
- }, array);
115
- }, toArray_1((objectArg_2 = get$.Optional, objectArg_2.Field("c", (path_1, value_2) => array_1(value_5, path_1, value_2)))));
156
+ (arg_5 = ArcTable_arrayi((columnIndex) => ArcTable_compressedColumnDecoder(cellTable, table, columnIndex)), (objectArg_2 = get$.Optional, objectArg_2.Field("c", arg_5)));
116
157
  return table;
117
- }, path_2, v_1));
158
+ });
118
159
  }
119
160
 
120
161
  export function ARCtrl_ISA_ArcTable__ArcTable_fromJsonString_Static_Z721C83C5(jsonString) {
121
- const matchValue = fromString(uncurry2(ArcTable_decoder), jsonString);
162
+ const matchValue = fromString(ArcTable_decoder, jsonString);
122
163
  if (matchValue.tag === 1) {
123
- return toFail(printf("Error. Unable to parse json string to ArcTable: %s"))(matchValue.fields[0]);
164
+ throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
124
165
  }
125
166
  else {
126
167
  return matchValue.fields[0];
@@ -136,21 +177,21 @@ export function ARCtrl_ISA_ArcTable__ArcTable_toJsonString_Static_1B2566EA(a) {
136
177
  }
137
178
 
138
179
  export function ARCtrl_ISA_ArcTable__ArcTable_fromCompressedJsonString_Static_Z721C83C5(jsonString) {
139
- const matchValue = fromString((path, v) => object_1((get$) => {
180
+ const matchValue = fromString(object((get$) => {
140
181
  let arg_5, objectArg_2;
141
182
  let stringTable;
142
183
  const objectArg = get$.Required;
143
- stringTable = objectArg.Field("stringTable", uncurry2(StringTable_decoder));
184
+ stringTable = objectArg.Field("stringTable", StringTable_decoder);
144
185
  let oaTable;
145
186
  const arg_3 = OATable_decoder(stringTable);
146
187
  const objectArg_1 = get$.Required;
147
- oaTable = objectArg_1.Field("oaTable", uncurry2(arg_3));
148
- const arg_7 = ArcTable_compressedDecoder(stringTable, oaTable, (arg_5 = CellTable_decoder(stringTable, oaTable), (objectArg_2 = get$.Required, objectArg_2.Field("cellTable", uncurry2(arg_5)))));
188
+ oaTable = objectArg_1.Field("oaTable", arg_3);
189
+ const arg_7 = ArcTable_compressedDecoder(stringTable, oaTable, (arg_5 = CellTable_decoder(stringTable, oaTable), (objectArg_2 = get$.Required, objectArg_2.Field("cellTable", arg_5))));
149
190
  const objectArg_3 = get$.Required;
150
- return objectArg_3.Field("table", uncurry2(arg_7));
151
- }, path, v), jsonString);
191
+ return objectArg_3.Field("table", arg_7);
192
+ }), jsonString);
152
193
  if (matchValue.tag === 1) {
153
- return toFail(printf("Error. Unable to parse json string to ArcTable: %s"))(matchValue.fields[0]);
194
+ throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
154
195
  }
155
196
  else {
156
197
  return matchValue.fields[0];
@@ -169,7 +210,7 @@ export function ARCtrl_ISA_ArcTable__ArcTable_ToCompressedJsonString_71136F3F(th
169
210
  GetHashCode: safeHash,
170
211
  });
171
212
  const arcTable = ArcTable_compressedEncoder(stringTable, oaTable, cellTable, this$);
172
- 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))], ["table", arcTable]]));
213
+ 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))], ["table", arcTable]]]));
173
214
  }
174
215
 
175
216
  export function ARCtrl_ISA_ArcTable__ArcTable_toCompressedJsonString_Static_1B2566EA(a) {
@@ -1,11 +1,11 @@
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 { CompositeCell_compressedDecoder, CompositeCell_compressedEncoder } from "./CompositeCell.js";
5
- import { int, array as array_1 } from "../../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
5
+ import { Json } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
6
+ import { int, object, array as array_1 } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
6
7
  import { Dict_tryFind } from "../../ISA/Helper.js";
7
- import { addToDict } from "../../../fable_modules/fable-library.4.5.0/MapUtil.js";
8
- import { FSharpResult$2 } from "../../../fable_modules/fable-library.4.5.0/Choice.js";
8
+ import { addToDict } from "../../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
9
9
 
10
10
  export function CellTable_arrayFromMap(otm) {
11
11
  return toArray(map((kv_1) => kv_1[0], sortBy((kv) => kv[1], otm, {
@@ -14,12 +14,11 @@ export function CellTable_arrayFromMap(otm) {
14
14
  }
15
15
 
16
16
  export function CellTable_encoder(stringTable, oaTable, ot) {
17
- return map_1((cc) => CompositeCell_compressedEncoder(stringTable, oaTable, cc), ot);
17
+ return new Json(6, [map_1((cc) => CompositeCell_compressedEncoder(stringTable, oaTable, cc), ot)]);
18
18
  }
19
19
 
20
20
  export function CellTable_decoder(stringTable, oaTable) {
21
- const decoder = CompositeCell_compressedDecoder(stringTable, oaTable);
22
- return (path) => ((value) => array_1(uncurry2(decoder), path, value));
21
+ return array_1(CompositeCell_compressedDecoder(stringTable, oaTable));
23
22
  }
24
23
 
25
24
  export function CellTable_encodeCell(otm, cc) {
@@ -27,20 +26,15 @@ export function CellTable_encodeCell(otm, cc) {
27
26
  if (matchValue == null) {
28
27
  const i_1 = otm.size | 0;
29
28
  addToDict(otm, cc, i_1);
30
- return i_1;
29
+ return new Json(7, [i_1 >>> 0]);
31
30
  }
32
31
  else {
33
- return matchValue;
32
+ const i = matchValue | 0;
33
+ return new Json(7, [i >>> 0]);
34
34
  }
35
35
  }
36
36
 
37
- export function CellTable_decodeCell(ot, s, o) {
38
- const matchValue = int(s)(o);
39
- if (matchValue.tag === 1) {
40
- return new FSharpResult$2(1, [matchValue.fields[0]]);
41
- }
42
- else {
43
- return new FSharpResult$2(0, [ot[matchValue.fields[0]]]);
44
- }
37
+ export function CellTable_decodeCell(ot) {
38
+ return object((get$) => item(get$.Required.Raw(int), ot));
45
39
  }
46
40
 
@@ -1,66 +1,51 @@
1
1
  import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "../Ontology.js";
2
2
  import { ConverterOptions_$ctor } from "../ConverterOptions.js";
3
- import { ofArray, singleton } from "../../../fable_modules/fable-library.4.5.0/List.js";
4
- import { toString, list, object } from "../../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
5
- import { fromString, index, string, object as object_1 } from "../../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
3
+ import { ofArray, singleton } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
4
+ import { Json } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
5
+ import { list } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
6
+ import { index, string, object } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
6
7
  import { CompositeCell } from "../../ISA/ArcTypes/CompositeCell.js";
7
- import { uncurry2 } from "../../../fable_modules/fable-library.4.5.0/Util.js";
8
- import { printf, toFail } from "../../../fable_modules/fable-library.4.5.0/String.js";
8
+ import { toText, printf, toFail } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
9
9
  import { OATable_decodeOA, OATable_encodeOA } from "./OATable.js";
10
10
  import { StringTable_decodeString, StringTable_encodeString } from "../StringTable.js";
11
- import { defaultArg } from "../../../fable_modules/fable-library.4.5.0/Option.js";
11
+ import { fromString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
12
+ import { toString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
13
+ import { defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
12
14
 
13
15
  export function CompositeCell_encoder(cc) {
14
16
  const oaToJsonString = (oa) => OntologyAnnotation_encoder(ConverterOptions_$ctor(), oa);
15
- const patternInput = (cc.tag === 0) ? ["Term", singleton(oaToJsonString(cc.fields[0]))] : ((cc.tag === 2) ? ["Unitized", ofArray([cc.fields[0], oaToJsonString(cc.fields[1])])] : ["FreeText", singleton(cc.fields[0])]);
16
- return object([["celltype", patternInput[0]], ["values", list(patternInput[1])]]);
17
+ const patternInput = (cc.tag === 0) ? ["Term", singleton(oaToJsonString(cc.fields[0]))] : ((cc.tag === 2) ? ["Unitized", ofArray([new Json(0, [cc.fields[0]]), oaToJsonString(cc.fields[1])])] : ["FreeText", singleton(new Json(0, [cc.fields[0]]))]);
18
+ return new Json(5, [[["celltype", new Json(0, [patternInput[0]])], ["values", list(patternInput[1])]]]);
17
19
  }
18
20
 
19
- export const CompositeCell_decoder = (path_7) => ((v_1) => object_1((get$) => {
20
- let objectArg_1, arg_5, decoder_1, objectArg_2, objectArg_3, arg_9, decoder_3, objectArg_4;
21
+ export const CompositeCell_decoder = object((get$) => {
22
+ let arg_3, objectArg_1, arg_5, objectArg_2, arg_7, objectArg_3, arg_9, objectArg_4;
21
23
  let matchValue;
22
24
  const objectArg = get$.Required;
23
25
  matchValue = objectArg.Field("celltype", string);
24
- switch (matchValue) {
25
- case "FreeText":
26
- return new CompositeCell(1, [(objectArg_1 = get$.Required, objectArg_1.Field("values", (path_2, value_2) => index(0, string, path_2, value_2)))]);
27
- case "Term":
28
- return new CompositeCell(0, [(arg_5 = ((decoder_1 = OntologyAnnotation_decoder(ConverterOptions_$ctor()), (path_3) => ((value_3) => index(0, uncurry2(decoder_1), path_3, value_3)))), (objectArg_2 = get$.Required, objectArg_2.Field("values", uncurry2(arg_5))))]);
29
- case "Unitized":
30
- return new CompositeCell(2, [(objectArg_3 = get$.Required, objectArg_3.Field("values", (path_4, value_4) => index(0, string, path_4, value_4))), (arg_9 = ((decoder_3 = OntologyAnnotation_decoder(ConverterOptions_$ctor()), (path_6) => ((value_6) => index(1, uncurry2(decoder_3), path_6, value_6)))), (objectArg_4 = get$.Required, objectArg_4.Field("values", uncurry2(arg_9))))]);
31
- default:
32
- return toFail(printf("Error reading CompositeCell from json string: %A"))(matchValue);
33
- }
34
- }, path_7, v_1));
26
+ return (matchValue === "FreeText") ? (new CompositeCell(1, [(arg_3 = index(0, string), (objectArg_1 = get$.Required, objectArg_1.Field("values", arg_3)))])) : ((matchValue === "Term") ? (new CompositeCell(0, [(arg_5 = index(0, OntologyAnnotation_decoder(ConverterOptions_$ctor())), (objectArg_2 = get$.Required, objectArg_2.Field("values", arg_5)))])) : ((matchValue === "Unitized") ? (new CompositeCell(2, [(arg_7 = index(0, string), (objectArg_3 = get$.Required, objectArg_3.Field("values", arg_7))), (arg_9 = index(1, OntologyAnnotation_decoder(ConverterOptions_$ctor())), (objectArg_4 = get$.Required, objectArg_4.Field("values", arg_9)))])) : toFail(printf("Error reading CompositeCell from json string: %A"))(matchValue)));
27
+ });
35
28
 
36
29
  export function CompositeCell_compressedEncoder(stringTable, oaTable, cc) {
37
30
  const patternInput = (cc.tag === 0) ? ["Term", singleton(OATable_encodeOA(oaTable, cc.fields[0]))] : ((cc.tag === 2) ? ["Unitized", ofArray([StringTable_encodeString(stringTable, cc.fields[0]), OATable_encodeOA(oaTable, cc.fields[1])])] : ["FreeText", singleton(StringTable_encodeString(stringTable, cc.fields[0]))]);
38
- return object([["t", StringTable_encodeString(stringTable, patternInput[0])], ["v", list(patternInput[1])]]);
31
+ return new Json(5, [[["t", StringTable_encodeString(stringTable, patternInput[0])], ["v", list(patternInput[1])]]]);
39
32
  }
40
33
 
41
34
  export function CompositeCell_compressedDecoder(stringTable, oaTable) {
42
- return (path_4) => ((v_1) => object_1((get$) => {
43
- let objectArg_1, objectArg_2, objectArg_3, objectArg_4;
35
+ return object((get$) => {
36
+ let arg_3, objectArg_1, arg_5, objectArg_2, arg_7, objectArg_3, arg_9, objectArg_4;
44
37
  let matchValue;
38
+ const arg_1 = StringTable_decodeString(stringTable);
45
39
  const objectArg = get$.Required;
46
- matchValue = objectArg.Field("t", (s, o) => StringTable_decodeString(stringTable, s, o));
47
- switch (matchValue) {
48
- case "FreeText":
49
- return new CompositeCell(1, [(objectArg_1 = get$.Required, objectArg_1.Field("v", (path, value) => index(0, (s_1, o_1) => StringTable_decodeString(stringTable, s_1, o_1), path, value)))]);
50
- case "Term":
51
- return new CompositeCell(0, [(objectArg_2 = get$.Required, objectArg_2.Field("v", (path_1, value_1) => index(0, (s_3, o_2) => OATable_decodeOA(oaTable, s_3, o_2), path_1, value_1)))]);
52
- case "Unitized":
53
- return new CompositeCell(2, [(objectArg_3 = get$.Required, objectArg_3.Field("v", (path_2, value_2) => index(0, (s_4, o_3) => StringTable_decodeString(stringTable, s_4, o_3), path_2, value_2))), (objectArg_4 = get$.Required, objectArg_4.Field("v", (path_3, value_3) => index(1, (s_5, o_4) => OATable_decodeOA(oaTable, s_5, o_4), path_3, value_3)))]);
54
- default:
55
- return toFail(printf("Error reading CompositeCell from json string: %A"))(matchValue);
56
- }
57
- }, path_4, v_1));
40
+ matchValue = objectArg.Field("t", arg_1);
41
+ return (matchValue === "FreeText") ? (new CompositeCell(1, [(arg_3 = index(0, StringTable_decodeString(stringTable)), (objectArg_1 = get$.Required, objectArg_1.Field("v", arg_3)))])) : ((matchValue === "Term") ? (new CompositeCell(0, [(arg_5 = index(0, OATable_decodeOA(oaTable)), (objectArg_2 = get$.Required, objectArg_2.Field("v", arg_5)))])) : ((matchValue === "Unitized") ? (new CompositeCell(2, [(arg_7 = index(0, StringTable_decodeString(stringTable)), (objectArg_3 = get$.Required, objectArg_3.Field("v", arg_7))), (arg_9 = index(1, OATable_decodeOA(oaTable)), (objectArg_4 = get$.Required, objectArg_4.Field("v", arg_9)))])) : toFail(printf("Error reading CompositeCell from json string: %A"))(matchValue)));
42
+ });
58
43
  }
59
44
 
60
45
  export function ARCtrl_ISA_CompositeCell__CompositeCell_fromJsonString_Static_Z721C83C5(jsonString) {
61
- const matchValue = fromString(uncurry2(CompositeCell_decoder), jsonString);
46
+ const matchValue = fromString(CompositeCell_decoder, jsonString);
62
47
  if (matchValue.tag === 1) {
63
- return toFail(printf("Error. Unable to parse json string to CompositeCell: %s"))(matchValue.fields[0]);
48
+ throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
64
49
  }
65
50
  else {
66
51
  return matchValue.fields[0];
@@ -1,71 +1,43 @@
1
1
  import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "../Ontology.js";
2
2
  import { ConverterOptions_$ctor } from "../ConverterOptions.js";
3
- import { empty, singleton } from "../../../fable_modules/fable-library.4.5.0/List.js";
3
+ import { empty, singleton } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
4
4
  import { IOType_decoder, IOType_encoder } from "./IOType.js";
5
- import { toString, list, object } from "../../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
6
- import { fromString, index, 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";
5
+ import { Json } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
6
+ import { list } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
7
+ import { index, string, object } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
8
8
  import { CompositeHeader } from "../../ISA/ArcTypes/CompositeHeader.js";
9
- import { printf, toFail } from "../../../fable_modules/fable-library.4.5.0/String.js";
10
- import { defaultArg } from "../../../fable_modules/fable-library.4.5.0/Option.js";
9
+ import { fromString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
10
+ import { printf, toText } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
11
+ import { toString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
12
+ import { defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
11
13
 
12
14
  export function CompositeHeader_encoder(ch) {
13
15
  const oaToJsonString = (oa) => OntologyAnnotation_encoder(ConverterOptions_$ctor(), oa);
14
16
  const patternInput = (ch.tag === 3) ? ["Parameter", singleton(oaToJsonString(ch.fields[0]))] : ((ch.tag === 2) ? ["Factor", singleton(oaToJsonString(ch.fields[0]))] : ((ch.tag === 1) ? ["Characteristic", singleton(oaToJsonString(ch.fields[0]))] : ((ch.tag === 0) ? ["Component", singleton(oaToJsonString(ch.fields[0]))] : ((ch.tag === 4) ? ["ProtocolType", empty()] : ((ch.tag === 8) ? ["ProtocolREF", empty()] : ((ch.tag === 5) ? ["ProtocolDescription", empty()] : ((ch.tag === 6) ? ["ProtocolUri", empty()] : ((ch.tag === 7) ? ["ProtocolVersion", empty()] : ((ch.tag === 9) ? ["Performer", empty()] : ((ch.tag === 10) ? ["Date", empty()] : ((ch.tag === 11) ? ["Input", singleton(IOType_encoder(ch.fields[0]))] : ((ch.tag === 12) ? ["Output", singleton(IOType_encoder(ch.fields[0]))] : [ch.fields[0], empty()]))))))))))));
15
- return object([["headertype", patternInput[0]], ["values", list(patternInput[1])]]);
17
+ return new Json(5, [[["headertype", new Json(0, [patternInput[0]])], ["values", list(patternInput[1])]]]);
16
18
  }
17
19
 
18
- export const CompositeHeader_decoder = (path_3) => ((v) => object_1((get$) => {
20
+ export const CompositeHeader_decoder = object((get$) => {
19
21
  let headerType;
20
22
  const objectArg = get$.Required;
21
23
  headerType = objectArg.Field("headertype", string);
22
24
  const oa = () => {
23
- let arg_3;
24
- const decoder = OntologyAnnotation_decoder(ConverterOptions_$ctor());
25
- arg_3 = ((path_1) => ((value_1) => index(0, uncurry2(decoder), path_1, value_1)));
25
+ const arg_3 = index(0, OntologyAnnotation_decoder(ConverterOptions_$ctor()));
26
26
  const objectArg_1 = get$.Required;
27
- return objectArg_1.Field("values", uncurry2(arg_3));
27
+ return objectArg_1.Field("values", arg_3);
28
28
  };
29
29
  const io = () => {
30
+ const arg_5 = index(0, IOType_decoder);
30
31
  const objectArg_2 = get$.Required;
31
- return objectArg_2.Field("values", (path_2, value_2) => index(0, uncurry2(IOType_decoder), path_2, value_2));
32
+ return objectArg_2.Field("values", arg_5);
32
33
  };
33
- switch (headerType) {
34
- case "Characteristic":
35
- return new CompositeHeader(1, [oa()]);
36
- case "Parameter":
37
- return new CompositeHeader(3, [oa()]);
38
- case "Component":
39
- return new CompositeHeader(0, [oa()]);
40
- case "Factor":
41
- return new CompositeHeader(2, [oa()]);
42
- case "Input":
43
- return new CompositeHeader(11, [io()]);
44
- case "Output":
45
- return new CompositeHeader(12, [io()]);
46
- case "ProtocolType":
47
- return new CompositeHeader(4, []);
48
- case "ProtocolREF":
49
- return new CompositeHeader(8, []);
50
- case "ProtocolDescription":
51
- return new CompositeHeader(5, []);
52
- case "ProtocolUri":
53
- return new CompositeHeader(6, []);
54
- case "ProtocolVersion":
55
- return new CompositeHeader(7, []);
56
- case "Performer":
57
- return new CompositeHeader(9, []);
58
- case "Date":
59
- return new CompositeHeader(10, []);
60
- default:
61
- return new CompositeHeader(13, [headerType]);
62
- }
63
- }, path_3, v));
34
+ return (headerType === "Characteristic") ? (new CompositeHeader(1, [oa()])) : ((headerType === "Parameter") ? (new CompositeHeader(3, [oa()])) : ((headerType === "Component") ? (new CompositeHeader(0, [oa()])) : ((headerType === "Factor") ? (new CompositeHeader(2, [oa()])) : ((headerType === "Input") ? (new CompositeHeader(11, [io()])) : ((headerType === "Output") ? (new CompositeHeader(12, [io()])) : ((headerType === "ProtocolType") ? (new CompositeHeader(4, [])) : ((headerType === "ProtocolREF") ? (new CompositeHeader(8, [])) : ((headerType === "ProtocolDescription") ? (new CompositeHeader(5, [])) : ((headerType === "ProtocolUri") ? (new CompositeHeader(6, [])) : ((headerType === "ProtocolVersion") ? (new CompositeHeader(7, [])) : ((headerType === "Performer") ? (new CompositeHeader(9, [])) : ((headerType === "Date") ? (new CompositeHeader(10, [])) : (new CompositeHeader(13, [headerType]))))))))))))));
35
+ });
64
36
 
65
37
  export function ARCtrl_ISA_CompositeHeader__CompositeHeader_fromJsonString_Static_Z721C83C5(jsonString) {
66
- const matchValue = fromString(uncurry2(CompositeHeader_decoder), jsonString);
38
+ const matchValue = fromString(CompositeHeader_decoder, jsonString);
67
39
  if (matchValue.tag === 1) {
68
- return toFail(printf("Error. Unable to parse json string to CompositeHeader: %s"))(matchValue.fields[0]);
40
+ throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
69
41
  }
70
42
  else {
71
43
  return matchValue.fields[0];
@@ -1,24 +1,22 @@
1
- import { toString } from "../../../fable_modules/fable-library.4.5.0/Types.js";
2
- import { fromString, string, succeed, andThen } from "../../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
3
- import { uncurry2, uncurry3 } from "../../../fable_modules/fable-library.4.5.0/Util.js";
1
+ import { toString } from "../../../fable_modules/fable-library-js.4.13.0/Types.js";
2
+ import { Json } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
3
+ import { string, succeed, andThen } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
4
4
  import { IOType } from "../../ISA/ArcTypes/CompositeHeader.js";
5
- import { printf, toFail } from "../../../fable_modules/fable-library.4.5.0/String.js";
6
- import { toString as toString_1 } from "../../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
7
- import { defaultArg } from "../../../fable_modules/fable-library.4.5.0/Option.js";
5
+ import { fromString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
6
+ import { printf, toText } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
7
+ import { toString as toString_1 } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
8
+ import { defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
8
9
 
9
10
  export function IOType_encoder(io) {
10
- return toString(io);
11
+ return new Json(0, [toString(io)]);
11
12
  }
12
13
 
13
- export const IOType_decoder = (path_1) => ((value_1) => andThen(uncurry3((s) => {
14
- const output = IOType.ofString(s);
15
- return (arg10$0040) => ((arg20$0040) => succeed(output, arg10$0040, arg20$0040));
16
- }), string, path_1, value_1));
14
+ export const IOType_decoder = andThen((s) => succeed(IOType.ofString(s)), string);
17
15
 
18
16
  export function ARCtrl_ISA_IOType__IOType_fromJsonString_Static_Z721C83C5(jsonString) {
19
- const matchValue = fromString(uncurry2(IOType_decoder), jsonString);
17
+ const matchValue = fromString(IOType_decoder, jsonString);
20
18
  if (matchValue.tag === 1) {
21
- return toFail(printf("Error. Unable to parse json string to IOType: %s"))(matchValue.fields[0]);
19
+ throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
22
20
  }
23
21
  else {
24
22
  return matchValue.fields[0];