@nfdi4plants/arctrl 1.2.0 → 2.0.0-alpha.2

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 (366) hide show
  1. package/ARC.js +53 -35
  2. package/{Contracts/Contracts.ARCtrl.js → Contract/ARC.js} +4 -2
  3. package/Contract/ArcAssay.js +102 -0
  4. package/Contract/ArcInvestigation.js +78 -0
  5. package/Contract/ArcStudy.js +102 -0
  6. package/Contract/Contract.js +3 -3
  7. package/{Contracts/Contracts.Git.js → Contract/Git.js} +5 -5
  8. package/{ISA/ISA/ArcTypes → Core}/ArcTypes.js +307 -295
  9. package/Core/Comment.js +97 -0
  10. package/{ISA/ISA/JsonTypes → Core}/CommentList.js +12 -18
  11. package/Core/Conversion.js +1056 -0
  12. package/Core/Helper/Collections.js +318 -0
  13. package/Core/Helper/HashCodes.js +39 -0
  14. package/{ISA/ISA → Core/Helper}/Identifier.js +67 -2
  15. package/{ISA/ISA → Core/Helper}/Regex.js +3 -3
  16. package/{SemVer.js → Core/Helper/SemVer.js} +8 -8
  17. package/{ISA/ISA/ArcTypes → Core}/IdentifierSetters.js +1 -1
  18. package/Core/OntologyAnnotation.js +186 -0
  19. package/Core/OntologySourceReference.js +92 -0
  20. package/Core/Person.js +194 -0
  21. package/Core/Process/ColumnIndex.js +248 -0
  22. package/Core/Process/Component.js +188 -0
  23. package/{ISA/ISA/JsonTypes → Core/Process}/Data.js +8 -8
  24. package/{ISA/ISA/JsonTypes → Core/Process}/DataFile.js +3 -3
  25. package/Core/Process/Factor.js +109 -0
  26. package/{ISA/ISA/JsonTypes → Core/Process}/FactorValue.js +32 -13
  27. package/{ISA/ISA/JsonTypes → Core/Process}/Material.js +9 -9
  28. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttribute.js +17 -17
  29. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttributeValue.js +35 -16
  30. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialType.js +3 -3
  31. package/{ISA/ISA/JsonTypes → Core/Process}/Process.js +46 -79
  32. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessInput.js +42 -42
  33. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessOutput.js +36 -36
  34. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessParameterValue.js +26 -7
  35. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessSequence.js +21 -25
  36. package/{ISA/ISA/JsonTypes → Core/Process}/Protocol.js +26 -57
  37. package/{ISA/ISA/JsonTypes → Core/Process}/ProtocolParameter.js +10 -10
  38. package/{ISA/ISA/JsonTypes → Core/Process}/Sample.js +12 -12
  39. package/{ISA/ISA/JsonTypes → Core/Process}/Source.js +9 -9
  40. package/{ISA/ISA/JsonTypes → Core/Process}/Value.js +13 -13
  41. package/Core/Publication.js +116 -0
  42. package/{ISA/ISA/ArcTypes → Core/Table}/ArcTable.js +43 -149
  43. package/Core/Table/ArcTableAux.js +532 -0
  44. package/{ISA/ISA/ArcTypes → Core/Table}/ArcTables.js +20 -32
  45. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeCell.js +19 -76
  46. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeColumn.js +6 -6
  47. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeHeader.js +14 -34
  48. package/{Templates → Core}/Template.js +16 -17
  49. package/Core/Templates.js +84 -0
  50. package/FileSystem/Commit.js +2 -2
  51. package/FileSystem/FileSystem.js +4 -4
  52. package/FileSystem/FileSystemTree.js +46 -8
  53. package/FileSystem/Path.js +10 -2
  54. package/Json/ARC.js +25 -0
  55. package/Json/Assay.js +202 -0
  56. package/Json/Comment.js +130 -0
  57. package/Json/ConverterOptions.js +18 -0
  58. package/Json/Decode.js +128 -0
  59. package/Json/Encode.js +45 -0
  60. package/Json/Investigation.js +220 -0
  61. package/Json/OntologyAnnotation.js +169 -0
  62. package/Json/OntologySourceReference.js +122 -0
  63. package/Json/Person.js +250 -0
  64. package/Json/Process/AssayMaterials.js +22 -0
  65. package/Json/Process/Component.js +79 -0
  66. package/Json/Process/Data.js +102 -0
  67. package/Json/Process/DataFile.js +81 -0
  68. package/Json/Process/Factor.js +48 -0
  69. package/Json/Process/FactorValue.js +53 -0
  70. package/Json/Process/Material.js +107 -0
  71. package/Json/Process/MaterialAttribute.js +45 -0
  72. package/Json/Process/MaterialAttributeValue.js +70 -0
  73. package/Json/Process/MaterialType.js +60 -0
  74. package/Json/Process/Process.js +107 -0
  75. package/Json/Process/ProcessInput.js +59 -0
  76. package/Json/Process/ProcessOutput.js +71 -0
  77. package/Json/Process/ProcessParameterValue.js +69 -0
  78. package/Json/Process/ProcessSequence.js +53 -0
  79. package/Json/Process/PropertyValue.js +82 -0
  80. package/Json/Process/Protocol.js +147 -0
  81. package/Json/Process/ProtocolParameter.js +45 -0
  82. package/Json/Process/Sample.js +134 -0
  83. package/Json/Process/Source.js +101 -0
  84. package/Json/Process/StudyMaterials.js +24 -0
  85. package/Json/Process/Value.js +42 -0
  86. package/Json/Publication.js +142 -0
  87. package/Json/StringTable.js +44 -0
  88. package/Json/Study.js +306 -0
  89. package/{ISA/ISA.Json/ArcTypes → Json/Table}/ArcTable.js +53 -49
  90. package/Json/Table/CellTable.js +40 -0
  91. package/Json/Table/CompositeCell.js +65 -0
  92. package/{ISA/ISA.Json/ArcTypes → Json/Table}/CompositeHeader.js +22 -19
  93. package/Json/Table/Compression.js +38 -0
  94. package/Json/Table/IOType.js +37 -0
  95. package/Json/Table/OATable.js +40 -0
  96. package/Json/Table/Templates.js +107 -0
  97. package/Json/context/rocrate/isa_assay_context.js +32 -0
  98. package/Json/context/rocrate/isa_comment_context.js +23 -0
  99. package/Json/context/rocrate/isa_component_context.js +24 -0
  100. package/Json/context/rocrate/isa_data_context.js +25 -0
  101. package/Json/context/rocrate/isa_factor_context.js +25 -0
  102. package/Json/context/rocrate/isa_factor_value_context.js +23 -0
  103. package/{ISA/ISA.Json → Json}/context/rocrate/isa_investigation_context.js +5 -5
  104. package/{ISA/ISA.Json → Json}/context/rocrate/isa_material_attribute_context.js +4 -4
  105. package/Json/context/rocrate/isa_material_attribute_value_context.js +23 -0
  106. package/Json/context/rocrate/isa_material_context.js +26 -0
  107. package/Json/context/rocrate/isa_ontology_annotation_context.js +23 -0
  108. package/Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
  109. package/Json/context/rocrate/isa_organization_context.js +22 -0
  110. package/Json/context/rocrate/isa_person_context.js +33 -0
  111. package/Json/context/rocrate/isa_process_context.js +29 -0
  112. package/Json/context/rocrate/isa_process_parameter_value_context.js +23 -0
  113. package/Json/context/rocrate/isa_protocol_context.js +28 -0
  114. package/{ISA/ISA.Json → Json}/context/rocrate/isa_protocol_parameter_context.js +4 -4
  115. package/Json/context/rocrate/isa_publication_context.js +25 -0
  116. package/Json/context/rocrate/isa_sample_context.js +24 -0
  117. package/Json/context/rocrate/isa_source_context.js +25 -0
  118. package/Json/context/rocrate/isa_study_context.js +40 -0
  119. package/Json/context/rocrate/property_value_context.js +4 -0
  120. package/Json/context/rocrate/rocrate_context.js +23 -0
  121. package/Json.js +193 -0
  122. package/README.md +33 -12
  123. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/ArcTable.js +12 -12
  124. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeCell.js +8 -7
  125. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeColumn.js +10 -10
  126. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeHeader.js +10 -10
  127. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcAssay.js +11 -11
  128. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcInvestigation.js +34 -37
  129. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcStudy.js +12 -12
  130. package/{ISA/ISA.Spreadsheet → Spreadsheet}/CollectionAux.js +7 -7
  131. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Assays.js +32 -32
  132. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Comment.js +5 -5
  133. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Contacts.js +28 -30
  134. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Conversions.js +22 -16
  135. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/DesignDescriptors.js +1 -1
  136. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Factors.js +23 -22
  137. package/Spreadsheet/Metadata/OntologyAnnotation.js +64 -0
  138. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/OntologySourceReference.js +22 -24
  139. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Protocols.js +17 -17
  140. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Publication.js +29 -31
  141. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/SparseTable.js +23 -22
  142. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Study.js +38 -40
  143. package/{Templates/Template.Spreadsheet.js → Spreadsheet/Template.js} +31 -31
  144. package/Template.Web.js +27 -0
  145. package/WebRequest/WebRequest.Node.js +2 -2
  146. package/WebRequest/WebRequest.js +2 -2
  147. package/Xlsx.js +85 -0
  148. package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
  149. package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
  150. package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
  151. package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
  152. package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCell.fs.js +14 -14
  153. package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js +6 -6
  154. package/fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js +4 -4
  155. package/fable_modules/FsSpreadsheet.5.1.3/DSL/ColumnBuilder.fs.js +3 -3
  156. package/fable_modules/FsSpreadsheet.5.1.3/DSL/DSL.fs.js +2 -2
  157. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Expression.fs.js +1 -1
  158. package/fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js +3 -3
  159. package/fable_modules/FsSpreadsheet.5.1.3/DSL/SheetBuilder.fs.js +3 -3
  160. package/fable_modules/FsSpreadsheet.5.1.3/DSL/TableBuilder.fs.js +3 -3
  161. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Transform.fs.js +6 -6
  162. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js +4 -4
  163. package/fable_modules/FsSpreadsheet.5.1.3/DSL/WorkbookBuilder.fs.js +3 -3
  164. package/fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js +8 -8
  165. package/fable_modules/FsSpreadsheet.5.1.3/FsColumn.fs.js +3 -3
  166. package/fable_modules/FsSpreadsheet.5.1.3/FsRow.fs.js +3 -3
  167. package/fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js +6 -6
  168. package/fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js +9 -9
  169. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRange.fs.js +3 -3
  170. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js +3 -3
  171. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeBase.fs.js +3 -3
  172. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeColumn.fs.js +3 -3
  173. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeRow.fs.js +1 -1
  174. package/fable_modules/FsSpreadsheet.5.1.3/SheetBuilder.fs.js +8 -8
  175. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTable.fs.js +7 -7
  176. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableField.fs.js +4 -4
  177. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableRow.fs.js +1 -1
  178. package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +19 -19
  179. package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +5 -5
  180. package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +2 -2
  181. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +1 -1
  182. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +2 -2
  183. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Boolean.js +2 -2
  184. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/CHANGELOG.md +18 -0
  185. package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.d.ts +9 -0
  186. package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.js +21 -0
  187. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Date.js +337 -40
  188. package/fable_modules/fable-library-js.4.16.0/MapUtil.d.ts +12 -0
  189. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MapUtil.js +15 -0
  190. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Util.d.ts +6 -3
  191. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Util.js +2 -13
  192. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/package.json +1 -1
  193. package/fable_modules/project_cracked.json +1 -1
  194. package/index.js +14 -12
  195. package/package.json +1 -1
  196. package/Contracts/Contracts.ArcTypes.js +0 -268
  197. package/FileSystemTree.js +0 -51
  198. package/ISA/ISA/ArcTypes/ArcTableAux.js +0 -1155
  199. package/ISA/ISA/ArcTypes/CompositeRow.js +0 -111
  200. package/ISA/ISA/Builder/Types.js +0 -243
  201. package/ISA/ISA/Fable.js +0 -123
  202. package/ISA/ISA/Helper.js +0 -505
  203. package/ISA/ISA/JsonTypes/Assay.js +0 -620
  204. package/ISA/ISA/JsonTypes/AssayMaterials.js +0 -39
  205. package/ISA/ISA/JsonTypes/ColumnIndex.js +0 -246
  206. package/ISA/ISA/JsonTypes/Comment.js +0 -58
  207. package/ISA/ISA/JsonTypes/Component.js +0 -165
  208. package/ISA/ISA/JsonTypes/Factor.js +0 -128
  209. package/ISA/ISA/JsonTypes/Investigation.js +0 -204
  210. package/ISA/ISA/JsonTypes/OntologyAnnotation.js +0 -196
  211. package/ISA/ISA/JsonTypes/OntologySourceReference.js +0 -85
  212. package/ISA/ISA/JsonTypes/Person.js +0 -152
  213. package/ISA/ISA/JsonTypes/Publication.js +0 -105
  214. package/ISA/ISA/JsonTypes/Study.js +0 -942
  215. package/ISA/ISA/JsonTypes/StudyMaterials.js +0 -45
  216. package/ISA/ISA/UIHelper.js +0 -19
  217. package/ISA/ISA.Json/ArcTypes/ArcAssay.js +0 -303
  218. package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +0 -122
  219. package/ISA/ISA.Json/ArcTypes/ArcStudy.js +0 -203
  220. package/ISA/ISA.Json/ArcTypes/CellTable.js +0 -40
  221. package/ISA/ISA.Json/ArcTypes/CompositeCell.js +0 -62
  222. package/ISA/ISA.Json/ArcTypes/IOType.js +0 -33
  223. package/ISA/ISA.Json/ArcTypes/OATable.js +0 -42
  224. package/ISA/ISA.Json/Assay.js +0 -129
  225. package/ISA/ISA.Json/Comment.js +0 -80
  226. package/ISA/ISA.Json/ConverterOptions.js +0 -51
  227. package/ISA/ISA.Json/Data.js +0 -253
  228. package/ISA/ISA.Json/Decode.js +0 -61
  229. package/ISA/ISA.Json/Factor.js +0 -194
  230. package/ISA/ISA.Json/GEncode.js +0 -40
  231. package/ISA/ISA.Json/Investigation.js +0 -89
  232. package/ISA/ISA.Json/Material.js +0 -232
  233. package/ISA/ISA.Json/Ontology.js +0 -200
  234. package/ISA/ISA.Json/Person.js +0 -186
  235. package/ISA/ISA.Json/Process.js +0 -305
  236. package/ISA/ISA.Json/Protocol.js +0 -281
  237. package/ISA/ISA.Json/Publication.js +0 -86
  238. package/ISA/ISA.Json/StringTable.js +0 -44
  239. package/ISA/ISA.Json/Study.js +0 -186
  240. package/ISA/ISA.Json/context/rocrate/isa_assay_context.js +0 -34
  241. package/ISA/ISA.Json/context/rocrate/isa_comment_context.js +0 -23
  242. package/ISA/ISA.Json/context/rocrate/isa_component_context.js +0 -24
  243. package/ISA/ISA.Json/context/rocrate/isa_data_context.js +0 -25
  244. package/ISA/ISA.Json/context/rocrate/isa_factor_context.js +0 -25
  245. package/ISA/ISA.Json/context/rocrate/isa_factor_value_context.js +0 -25
  246. package/ISA/ISA.Json/context/rocrate/isa_material_attribute_value_context.js +0 -25
  247. package/ISA/ISA.Json/context/rocrate/isa_material_context.js +0 -26
  248. package/ISA/ISA.Json/context/rocrate/isa_ontology_annotation_context.js +0 -25
  249. package/ISA/ISA.Json/context/rocrate/isa_ontology_source_reference_context.js +0 -26
  250. package/ISA/ISA.Json/context/rocrate/isa_organization_context.js +0 -22
  251. package/ISA/ISA.Json/context/rocrate/isa_person_context.js +0 -31
  252. package/ISA/ISA.Json/context/rocrate/isa_process_context.js +0 -31
  253. package/ISA/ISA.Json/context/rocrate/isa_process_parameter_value_context.js +0 -25
  254. package/ISA/ISA.Json/context/rocrate/isa_protocol_context.js +0 -30
  255. package/ISA/ISA.Json/context/rocrate/isa_publication_context.js +0 -27
  256. package/ISA/ISA.Json/context/rocrate/isa_sample_context.js +0 -26
  257. package/ISA/ISA.Json/context/rocrate/isa_source_context.js +0 -25
  258. package/ISA/ISA.Json/context/rocrate/isa_study_context.js +0 -42
  259. package/ISA/ISA.Json/context/rocrate/rocrate_context.js +0 -25
  260. package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +0 -65
  261. package/Path.js +0 -10
  262. package/Templates/Template.Json.js +0 -90
  263. package/Templates/Template.Web.js +0 -27
  264. package/Templates/Templates.js +0 -82
  265. package/fable_modules/fable-library-js.4.13.0/MapUtil.d.ts +0 -10
  266. /package/{ISA/ISA/JsonTypes → Core}/URI.js +0 -0
  267. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Array.d.ts +0 -0
  268. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Array.js +0 -0
  269. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Async.d.ts +0 -0
  270. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Async.js +0 -0
  271. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/AsyncBuilder.d.ts +0 -0
  272. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/AsyncBuilder.js +0 -0
  273. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BigInt.d.ts +0 -0
  274. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BigInt.js +0 -0
  275. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BitConverter.d.ts +0 -0
  276. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BitConverter.js +0 -0
  277. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Boolean.d.ts +0 -0
  278. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Char.d.ts +0 -0
  279. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Char.js +0 -0
  280. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Choice.d.ts +0 -0
  281. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Choice.js +0 -0
  282. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Date.d.ts +0 -0
  283. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOffset.d.ts +0 -0
  284. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOffset.js +0 -0
  285. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOnly.d.ts +0 -0
  286. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOnly.js +0 -0
  287. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Decimal.d.ts +0 -0
  288. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Decimal.js +0 -0
  289. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Double.d.ts +0 -0
  290. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Double.js +0 -0
  291. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Encoding.d.ts +0 -0
  292. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Encoding.js +0 -0
  293. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Event.d.ts +0 -0
  294. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Event.js +0 -0
  295. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Collections.d.ts +0 -0
  296. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Collections.js +0 -0
  297. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.CompilerServices.d.ts +0 -0
  298. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.CompilerServices.js +0 -0
  299. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.d.ts +0 -0
  300. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.js +0 -0
  301. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Global.d.ts +0 -0
  302. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Global.js +0 -0
  303. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Guid.d.ts +0 -0
  304. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Guid.js +0 -0
  305. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Int32.d.ts +0 -0
  306. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Int32.js +0 -0
  307. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/List.d.ts +0 -0
  308. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/List.js +0 -0
  309. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Long.d.ts +0 -0
  310. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Long.js +0 -0
  311. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MailboxProcessor.d.ts +0 -0
  312. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MailboxProcessor.js +0 -0
  313. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Map.d.ts +0 -0
  314. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Map.js +0 -0
  315. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableMap.d.ts +0 -0
  316. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableMap.js +0 -0
  317. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableSet.d.ts +0 -0
  318. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableSet.js +0 -0
  319. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Native.d.ts +0 -0
  320. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Native.js +0 -0
  321. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Numeric.d.ts +0 -0
  322. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Numeric.js +0 -0
  323. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Observable.d.ts +0 -0
  324. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Observable.js +0 -0
  325. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Option.d.ts +0 -0
  326. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Option.js +0 -0
  327. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/README.md +0 -0
  328. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Random.d.ts +0 -0
  329. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Random.js +0 -0
  330. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Range.d.ts +0 -0
  331. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Range.js +0 -0
  332. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Reflection.d.ts +0 -0
  333. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Reflection.js +0 -0
  334. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/RegExp.d.ts +0 -0
  335. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/RegExp.js +0 -0
  336. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Result.d.ts +0 -0
  337. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Result.js +0 -0
  338. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq.d.ts +0 -0
  339. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq.js +0 -0
  340. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq2.d.ts +0 -0
  341. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq2.js +0 -0
  342. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Set.d.ts +0 -0
  343. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Set.js +0 -0
  344. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/String.d.ts +0 -0
  345. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/String.js +0 -0
  346. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Collections.Generic.d.ts +0 -0
  347. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Collections.Generic.js +0 -0
  348. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Text.d.ts +0 -0
  349. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Text.js +0 -0
  350. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/SystemException.d.ts +0 -0
  351. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/SystemException.js +0 -0
  352. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeOnly.d.ts +0 -0
  353. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeOnly.js +0 -0
  354. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeSpan.d.ts +0 -0
  355. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeSpan.js +0 -0
  356. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Timer.d.ts +0 -0
  357. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Timer.js +0 -0
  358. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Types.d.ts +0 -0
  359. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Types.js +0 -0
  360. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Unicode.13.0.0.d.ts +0 -0
  361. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Unicode.13.0.0.js +0 -0
  362. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Uri.d.ts +0 -0
  363. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Uri.js +0 -0
  364. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/big.d.ts +0 -0
  365. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/lib/big.d.ts +0 -0
  366. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/lib/big.js +0 -0
@@ -1,253 +0,0 @@
1
- import { ErrorReason$1, Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
2
- import { list as list_2, string } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
3
- import { FSharpResult$2 } from "../../fable_modules/fable-library-js.4.13.0/Result.js";
4
- import { DataFile } from "../ISA/JsonTypes/DataFile.js";
5
- import { printf, toText, replace } from "../../fable_modules/fable-library-js.4.13.0/String.js";
6
- import { URIModule_toString } from "../ISA/JsonTypes/URI.js";
7
- import { ofArray, choose } from "../../fable_modules/fable-library-js.4.13.0/List.js";
8
- import { equals } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
9
- import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
10
- import { ConverterOptions__set_IncludeContext_Z1FBCCD16, ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeContext, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
11
- import { tryIncludeList, tryInclude } from "./GEncode.js";
12
- import { list as list_1 } from "../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
13
- import { decoder as decoder_1, encoder } from "./Comment.js";
14
- import { context_jsonvalue } from "./context/rocrate/isa_data_context.js";
15
- import { uri, object } from "./Decode.js";
16
- import { Data } from "../ISA/JsonTypes/Data.js";
17
- import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
18
- import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
19
- import { MaterialAttributeValue_decoder, MaterialAttributeValue_encoder } from "./Material.js";
20
- import { context_jsonvalue as context_jsonvalue_1 } from "./context/rocrate/isa_source_context.js";
21
- import { Source } from "../ISA/JsonTypes/Source.js";
22
- import { FactorValue_decoder, FactorValue_encoder } from "./Factor.js";
23
- import { context_jsonvalue as context_jsonvalue_2 } from "./context/rocrate/isa_sample_context.js";
24
- import { Sample } from "../ISA/JsonTypes/Sample.js";
25
-
26
- export function DataFile_encoder(options, value) {
27
- switch (value.tag) {
28
- case 1:
29
- return new Json(0, ["Derived Data File"]);
30
- case 2:
31
- return new Json(0, ["Image File"]);
32
- default:
33
- return new Json(0, ["Raw Data File"]);
34
- }
35
- }
36
-
37
- export function DataFile_decoder(options) {
38
- return {
39
- Decode(s, json) {
40
- const matchValue = string.Decode(s, json);
41
- if (matchValue.tag === 1) {
42
- return new FSharpResult$2(1, [matchValue.fields[0]]);
43
- }
44
- else {
45
- switch (matchValue.fields[0]) {
46
- case "Raw Data File":
47
- return new FSharpResult$2(0, [new DataFile(0, [])]);
48
- case "Derived Data File":
49
- return new FSharpResult$2(0, [new DataFile(1, [])]);
50
- case "Image File":
51
- return new FSharpResult$2(0, [new DataFile(2, [])]);
52
- default: {
53
- const s_1 = matchValue.fields[0];
54
- return new FSharpResult$2(1, [[`Could not parse ${s_1}.`, new ErrorReason$1(0, [s_1, json])]]);
55
- }
56
- }
57
- }
58
- },
59
- };
60
- }
61
-
62
- export function Data_genID(d) {
63
- const matchValue = d.ID;
64
- if (matchValue == null) {
65
- const matchValue_1 = d.Name;
66
- if (matchValue_1 == null) {
67
- return "#EmptyData";
68
- }
69
- else {
70
- return replace(matchValue_1, " ", "_");
71
- }
72
- }
73
- else {
74
- return URIModule_toString(matchValue);
75
- }
76
- }
77
-
78
- export function Data_encoder(options, oa) {
79
- return new Json(5, [choose((tupledArg) => {
80
- const v = tupledArg[1];
81
- if (equals(v, new Json(3, []))) {
82
- return void 0;
83
- }
84
- else {
85
- return [tupledArg[0], v];
86
- }
87
- }, toList(delay(() => append(ConverterOptions__get_SetID(options) ? singleton(["@id", new Json(0, [Data_genID(oa)])]) : singleton(tryInclude("@id", (value_1) => (new Json(0, [value_1])), oa.ID)), delay(() => append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", list_1(ofArray([new Json(0, ["Data"]), new Json(0, ["ArcData"])]))]) : empty(), delay(() => append(singleton(tryInclude("name", (value_5) => (new Json(0, [value_5])), oa.Name)), delay(() => append(singleton(tryInclude("type", (value_7) => DataFile_encoder(options, value_7), oa.DataType)), delay(() => append(singleton(tryIncludeList("comments", (comment) => encoder(options, comment), oa.Comments)), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue]) : empty()))))))))))))))]);
88
- }
89
-
90
- export const Data_allowedFields = ofArray(["@id", "name", "type", "comments", "@type", "@context"]);
91
-
92
- export function Data_decoder(options) {
93
- return object(Data_allowedFields, (get$) => {
94
- let objectArg, objectArg_1, arg_5, objectArg_2, arg_7, objectArg_3;
95
- return new Data((objectArg = get$.Optional, objectArg.Field("@id", uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (arg_5 = DataFile_decoder(options), (objectArg_2 = get$.Optional, objectArg_2.Field("type", arg_5))), (arg_7 = list_2(decoder_1(options)), (objectArg_3 = get$.Optional, objectArg_3.Field("comments", arg_7))));
96
- });
97
- }
98
-
99
- export function Data_fromJsonString(s) {
100
- const matchValue = fromString(Data_decoder(ConverterOptions_$ctor()), s);
101
- if (matchValue.tag === 1) {
102
- throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
103
- }
104
- else {
105
- return matchValue.fields[0];
106
- }
107
- }
108
-
109
- export function Data_toJsonString(m) {
110
- return toString(2, Data_encoder(ConverterOptions_$ctor(), m));
111
- }
112
-
113
- /**
114
- * exports in json-ld format
115
- */
116
- export function Data_toJsonldString(d) {
117
- let returnVal;
118
- return toString(2, Data_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), d));
119
- }
120
-
121
- export function Data_toJsonldStringWithContext(a) {
122
- let returnVal;
123
- return toString(2, Data_encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), a));
124
- }
125
-
126
- export function Source_genID(s) {
127
- const matchValue = s.ID;
128
- if (matchValue == null) {
129
- const matchValue_1 = s.Name;
130
- if (matchValue_1 == null) {
131
- return "#EmptySource";
132
- }
133
- else {
134
- return "#Source_" + replace(matchValue_1, " ", "_");
135
- }
136
- }
137
- else {
138
- return URIModule_toString(matchValue);
139
- }
140
- }
141
-
142
- export function Source_encoder(options, oa) {
143
- return new Json(5, [choose((tupledArg) => {
144
- const v = tupledArg[1];
145
- if (equals(v, new Json(3, []))) {
146
- return void 0;
147
- }
148
- else {
149
- return [tupledArg[0], v];
150
- }
151
- }, toList(delay(() => append(ConverterOptions__get_SetID(options) ? singleton(["@id", new Json(0, [Source_genID(oa)])]) : singleton(tryInclude("@id", (value_1) => (new Json(0, [value_1])), oa.ID)), delay(() => append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", list_1(ofArray([new Json(0, ["Source"]), new Json(0, ["ArcSource"])]))]) : empty(), delay(() => append(singleton(tryInclude("name", (value_5) => (new Json(0, [value_5])), oa.Name)), delay(() => append(singleton(tryIncludeList("characteristics", (oa_1) => MaterialAttributeValue_encoder(options, oa_1), oa.Characteristics)), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue_1]) : empty()))))))))))))]);
152
- }
153
-
154
- export const Source_allowedFields = ofArray(["@id", "name", "characteristics", "@type", "@context"]);
155
-
156
- export function Source_decoder(options) {
157
- return object(Source_allowedFields, (get$) => {
158
- let objectArg, objectArg_1, arg_5, objectArg_2;
159
- return new Source((objectArg = get$.Optional, objectArg.Field("@id", uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (arg_5 = list_2(MaterialAttributeValue_decoder(options)), (objectArg_2 = get$.Optional, objectArg_2.Field("characteristics", arg_5))));
160
- });
161
- }
162
-
163
- export function Source_fromJsonString(s) {
164
- const matchValue = fromString(Source_decoder(ConverterOptions_$ctor()), s);
165
- if (matchValue.tag === 1) {
166
- throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
167
- }
168
- else {
169
- return matchValue.fields[0];
170
- }
171
- }
172
-
173
- export function Source_toJsonString(m) {
174
- return toString(2, Source_encoder(ConverterOptions_$ctor(), m));
175
- }
176
-
177
- /**
178
- * exports in json-ld format
179
- */
180
- export function Source_toJsonldString(s) {
181
- let returnVal;
182
- return toString(2, Source_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), s));
183
- }
184
-
185
- export function Source_toJsonldStringWithContext(a) {
186
- let returnVal;
187
- return toString(2, Source_encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), a));
188
- }
189
-
190
- export function Sample_genID(s) {
191
- const matchValue = s.ID;
192
- if (matchValue == null) {
193
- const matchValue_1 = s.Name;
194
- if (matchValue_1 == null) {
195
- return "#EmptySample";
196
- }
197
- else {
198
- return "#Sample_" + replace(matchValue_1, " ", "_");
199
- }
200
- }
201
- else {
202
- return matchValue;
203
- }
204
- }
205
-
206
- export function Sample_encoder(options, oa) {
207
- return new Json(5, [choose((tupledArg) => {
208
- const v = tupledArg[1];
209
- if (equals(v, new Json(3, []))) {
210
- return void 0;
211
- }
212
- else {
213
- return [tupledArg[0], v];
214
- }
215
- }, toList(delay(() => append(ConverterOptions__get_SetID(options) ? singleton(["@id", new Json(0, [Sample_genID(oa)])]) : singleton(tryInclude("@id", (value_1) => (new Json(0, [value_1])), oa.ID)), delay(() => append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", list_1(ofArray([new Json(0, ["Sample"]), new Json(0, ["ArcSample"])]))]) : empty(), delay(() => append(singleton(tryInclude("name", (value_5) => (new Json(0, [value_5])), oa.Name)), delay(() => append(singleton(tryIncludeList("characteristics", (oa_1) => MaterialAttributeValue_encoder(options, oa_1), oa.Characteristics)), delay(() => append(singleton(tryIncludeList("factorValues", (oa_2) => FactorValue_encoder(options, oa_2), oa.FactorValues)), delay(() => append(singleton(tryIncludeList("derivesFrom", (oa_3) => Source_encoder(options, oa_3), oa.DerivesFrom)), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue_2]) : empty()))))))))))))))))]);
216
- }
217
-
218
- export const Sample_allowedFields = ofArray(["@id", "name", "characteristics", "factorValues", "derivesFrom", "@type", "@context"]);
219
-
220
- export function Sample_decoder(options) {
221
- return object(Sample_allowedFields, (get$) => {
222
- let objectArg, objectArg_1, arg_5, objectArg_2, arg_7, objectArg_3, arg_9, objectArg_4;
223
- return new Sample((objectArg = get$.Optional, objectArg.Field("@id", uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (arg_5 = list_2(MaterialAttributeValue_decoder(options)), (objectArg_2 = get$.Optional, objectArg_2.Field("characteristics", arg_5))), (arg_7 = list_2(FactorValue_decoder(options)), (objectArg_3 = get$.Optional, objectArg_3.Field("factorValues", arg_7))), (arg_9 = list_2(Source_decoder(options)), (objectArg_4 = get$.Optional, objectArg_4.Field("derivesFrom", arg_9))));
224
- });
225
- }
226
-
227
- export function Sample_fromJsonString(s) {
228
- const matchValue = fromString(Sample_decoder(ConverterOptions_$ctor()), s);
229
- if (matchValue.tag === 1) {
230
- throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
231
- }
232
- else {
233
- return matchValue.fields[0];
234
- }
235
- }
236
-
237
- export function Sample_toJsonString(m) {
238
- return toString(2, Sample_encoder(ConverterOptions_$ctor(), m));
239
- }
240
-
241
- /**
242
- * exports in json-ld format
243
- */
244
- export function Sample_toJsonldString(s) {
245
- let returnVal;
246
- return toString(2, Sample_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), s));
247
- }
248
-
249
- export function Sample_toJsonldStringWithContext(a) {
250
- let returnVal;
251
- return toString(2, Sample_encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), a));
252
- }
253
-
@@ -1,61 +0,0 @@
1
- import { helpers as helpers_2 } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
2
- import { Getters$2__get_Errors, Getters$2_$ctor_Z4BE6C149, string } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
3
- import { FSharpResult$2 } from "../../fable_modules/fable-library-js.4.13.0/Result.js";
4
- import { printf, toText } from "../../fable_modules/fable-library-js.4.13.0/String.js";
5
- import { ErrorReason$1 } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
6
- import { exists } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
7
- import { ofSeq, contains } from "../../fable_modules/fable-library-js.4.13.0/Set.js";
8
- import { comparePrimitives } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
9
- import { head, length, isEmpty } from "../../fable_modules/fable-library-js.4.13.0/List.js";
10
-
11
- export const helpers = helpers_2;
12
-
13
- export function isURI(s) {
14
- return true;
15
- }
16
-
17
- export const uri = {
18
- Decode(s, json) {
19
- const matchValue = string.Decode(s, json);
20
- if (matchValue.tag === 1) {
21
- return new FSharpResult$2(1, [matchValue.fields[0]]);
22
- }
23
- else if (isURI(matchValue.fields[0])) {
24
- return new FSharpResult$2(0, [matchValue.fields[0]]);
25
- }
26
- else {
27
- const s_3 = matchValue.fields[0];
28
- return new FSharpResult$2(1, [[s_3, new ErrorReason$1(6, [toText(printf("Expected URI, got %s"))(s_3)])]]);
29
- }
30
- },
31
- };
32
-
33
- export function hasUnknownFields(helpers_1, knownFields, json) {
34
- return exists((x) => !contains(x, knownFields), helpers_1.getProperties(json));
35
- }
36
-
37
- export function object(allowedFields, builder) {
38
- const allowedFields_1 = ofSeq(allowedFields, {
39
- Compare: comparePrimitives,
40
- });
41
- return {
42
- Decode(helpers_1, value) {
43
- const getters = Getters$2_$ctor_Z4BE6C149(helpers_1, value);
44
- if (hasUnknownFields(helpers_1, allowedFields_1, value)) {
45
- return new FSharpResult$2(1, [["Unknown fields in object", new ErrorReason$1(0, ["", value])]]);
46
- }
47
- else {
48
- const result = builder(getters);
49
- const matchValue = Getters$2__get_Errors(getters);
50
- if (!isEmpty(matchValue)) {
51
- const errors = matchValue;
52
- return (length(errors) > 1) ? (new FSharpResult$2(1, [["", new ErrorReason$1(7, [errors])]])) : (new FSharpResult$2(1, [head(matchValue)]));
53
- }
54
- else {
55
- return new FSharpResult$2(0, [result]);
56
- }
57
- }
58
- },
59
- };
60
- }
61
-
@@ -1,194 +0,0 @@
1
- import { Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
2
- import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "./Ontology.js";
3
- import { array, object, string, float, int } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
4
- import { FSharpResult$2 } from "../../fable_modules/fable-library-js.4.13.0/Result.js";
5
- import { Value } from "../ISA/JsonTypes/Value.js";
6
- import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
7
- import { ConverterOptions__set_IncludeContext_Z1FBCCD16, ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions__get_IncludeContext, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID, ConverterOptions_$ctor } from "./ConverterOptions.js";
8
- import { replace, printf, toText } from "../../fable_modules/fable-library-js.4.13.0/String.js";
9
- import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
10
- import { URIModule_toString } from "../ISA/JsonTypes/URI.js";
11
- import { ofArray, choose } from "../../fable_modules/fable-library-js.4.13.0/List.js";
12
- import { equals } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
13
- import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
14
- import { tryIncludeArray, tryInclude } from "./GEncode.js";
15
- import { list as list_1 } from "../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
16
- import { decoder as decoder_1, encoder } from "./Comment.js";
17
- import { context_jsonvalue } from "./context/rocrate/isa_factor_context.js";
18
- import { uri } from "./Decode.js";
19
- import { Factor } from "../ISA/JsonTypes/Factor.js";
20
- import { context_jsonvalue as context_jsonvalue_1 } from "./context/rocrate/isa_factor_value_context.js";
21
- import { FactorValue } from "../ISA/JsonTypes/FactorValue.js";
22
-
23
- export function Value_encoder(options, value) {
24
- switch (value.tag) {
25
- case 1:
26
- return new Json(7, [value.fields[0] >>> 0]);
27
- case 3:
28
- return new Json(0, [value.fields[0]]);
29
- case 0:
30
- return OntologyAnnotation_encoder(options, value.fields[0]);
31
- default:
32
- return new Json(2, [value.fields[0]]);
33
- }
34
- }
35
-
36
- export function Value_decoder(options) {
37
- return {
38
- Decode(s, json) {
39
- const matchValue = int.Decode(s, json);
40
- if (matchValue.tag === 1) {
41
- const matchValue_1 = float.Decode(s, json);
42
- if (matchValue_1.tag === 1) {
43
- const matchValue_2 = OntologyAnnotation_decoder(options).Decode(s, json);
44
- if (matchValue_2.tag === 1) {
45
- const matchValue_3 = string.Decode(s, json);
46
- return (matchValue_3.tag === 1) ? (new FSharpResult$2(1, [matchValue_3.fields[0]])) : (new FSharpResult$2(0, [new Value(3, [matchValue_3.fields[0]])]));
47
- }
48
- else {
49
- return new FSharpResult$2(0, [new Value(0, [matchValue_2.fields[0]])]);
50
- }
51
- }
52
- else {
53
- return new FSharpResult$2(0, [new Value(2, [matchValue_1.fields[0]])]);
54
- }
55
- }
56
- else {
57
- return new FSharpResult$2(0, [new Value(1, [matchValue.fields[0]])]);
58
- }
59
- },
60
- };
61
- }
62
-
63
- export function Value_fromJsonString(s) {
64
- const matchValue = fromString(Value_decoder(ConverterOptions_$ctor()), s);
65
- if (matchValue.tag === 1) {
66
- throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
67
- }
68
- else {
69
- return matchValue.fields[0];
70
- }
71
- }
72
-
73
- export function Value_toJsonString(v) {
74
- return toString(2, Value_encoder(ConverterOptions_$ctor(), v));
75
- }
76
-
77
- export function Factor_genID(f) {
78
- const matchValue = f.ID;
79
- if (matchValue == null) {
80
- const matchValue_1 = f.Name;
81
- if (matchValue_1 == null) {
82
- return "#EmptyFactor";
83
- }
84
- else {
85
- return "#Factor_" + replace(matchValue_1, " ", "_");
86
- }
87
- }
88
- else {
89
- return URIModule_toString(matchValue);
90
- }
91
- }
92
-
93
- export function Factor_encoder(options, oa) {
94
- return new Json(5, [choose((tupledArg) => {
95
- const v = tupledArg[1];
96
- if (equals(v, new Json(3, []))) {
97
- return void 0;
98
- }
99
- else {
100
- return [tupledArg[0], v];
101
- }
102
- }, toList(delay(() => append(ConverterOptions__get_SetID(options) ? singleton(["@id", new Json(0, [Factor_genID(oa)])]) : singleton(tryInclude("@id", (value_1) => (new Json(0, [value_1])), oa.ID)), delay(() => append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", list_1(ofArray([new Json(0, ["Factor"]), new Json(0, ["ArcFactor"])]))]) : empty(), delay(() => append(singleton(tryInclude("factorName", (value_5) => (new Json(0, [value_5])), oa.Name)), delay(() => append(singleton(tryInclude("factorType", (oa_1) => OntologyAnnotation_encoder(options, oa_1), oa.FactorType)), delay(() => append(singleton(tryIncludeArray("comments", (comment) => encoder(options, comment), oa.Comments)), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue]) : empty()))))))))))))))]);
103
- }
104
-
105
- export function Factor_decoder(options) {
106
- return object((get$) => {
107
- let objectArg, objectArg_1, arg_5, objectArg_2, arg_7, objectArg_3;
108
- return new Factor((objectArg = get$.Optional, objectArg.Field("@id", uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("factorName", string)), (arg_5 = OntologyAnnotation_decoder(options), (objectArg_2 = get$.Optional, objectArg_2.Field("factorType", arg_5))), (arg_7 = array(decoder_1(options)), (objectArg_3 = get$.Optional, objectArg_3.Field("comments", arg_7))));
109
- });
110
- }
111
-
112
- export function Factor_fromJsonString(s) {
113
- const matchValue = fromString(Factor_decoder(ConverterOptions_$ctor()), s);
114
- if (matchValue.tag === 1) {
115
- throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
116
- }
117
- else {
118
- return matchValue.fields[0];
119
- }
120
- }
121
-
122
- export function Factor_toJsonString(f) {
123
- return toString(2, Factor_encoder(ConverterOptions_$ctor(), f));
124
- }
125
-
126
- /**
127
- * exports in json-ld format
128
- */
129
- export function Factor_toJsonldString(f) {
130
- let returnVal;
131
- return toString(2, Factor_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), f));
132
- }
133
-
134
- export function Factor_toJsonldStringWithContext(a) {
135
- let returnVal;
136
- return toString(2, Factor_encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), a));
137
- }
138
-
139
- export function FactorValue_genID(fv) {
140
- const matchValue = fv.ID;
141
- if (matchValue == null) {
142
- return "#EmptyFactorValue";
143
- }
144
- else {
145
- return URIModule_toString(matchValue);
146
- }
147
- }
148
-
149
- export function FactorValue_encoder(options, oa) {
150
- return new Json(5, [choose((tupledArg) => {
151
- const v = tupledArg[1];
152
- if (equals(v, new Json(3, []))) {
153
- return void 0;
154
- }
155
- else {
156
- return [tupledArg[0], v];
157
- }
158
- }, toList(delay(() => append(ConverterOptions__get_SetID(options) ? singleton(["@id", new Json(0, [FactorValue_genID(oa)])]) : singleton(tryInclude("@id", (value_1) => (new Json(0, [value_1])), oa.ID)), delay(() => append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", list_1(ofArray([new Json(0, ["FactorValue"]), new Json(0, ["ArcFactorValue"])]))]) : empty(), delay(() => append(singleton(tryInclude("category", (oa_1) => Factor_encoder(options, oa_1), oa.Category)), delay(() => append(singleton(tryInclude("value", (value_5) => Value_encoder(options, value_5), oa.Value)), delay(() => append(singleton(tryInclude("unit", (oa_2) => OntologyAnnotation_encoder(options, oa_2), oa.Unit)), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue_1]) : empty()))))))))))))))]);
159
- }
160
-
161
- export function FactorValue_decoder(options) {
162
- return object((get$) => {
163
- let objectArg, arg_3, objectArg_1, arg_5, objectArg_2, arg_7, objectArg_3;
164
- return new FactorValue((objectArg = get$.Optional, objectArg.Field("@id", uri)), (arg_3 = Factor_decoder(options), (objectArg_1 = get$.Optional, objectArg_1.Field("category", arg_3))), (arg_5 = Value_decoder(options), (objectArg_2 = get$.Optional, objectArg_2.Field("value", arg_5))), (arg_7 = OntologyAnnotation_decoder(options), (objectArg_3 = get$.Optional, objectArg_3.Field("unit", arg_7))));
165
- });
166
- }
167
-
168
- export function FactorValue_fromJsonString(s) {
169
- const matchValue = fromString(FactorValue_decoder(ConverterOptions_$ctor()), s);
170
- if (matchValue.tag === 1) {
171
- throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
172
- }
173
- else {
174
- return matchValue.fields[0];
175
- }
176
- }
177
-
178
- export function FactorValue_toJsonString(f) {
179
- return toString(2, FactorValue_encoder(ConverterOptions_$ctor(), f));
180
- }
181
-
182
- /**
183
- * exports in json-ld format
184
- */
185
- export function FactorValue_toJsonldString(f) {
186
- let returnVal;
187
- return toString(2, FactorValue_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), f));
188
- }
189
-
190
- export function FactorValue_toJsonldStringWithContext(a) {
191
- let returnVal;
192
- return toString(2, FactorValue_encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), a));
193
- }
194
-
@@ -1,40 +0,0 @@
1
- import { value as value_1 } from "../../fable_modules/fable-library-js.4.13.0/Option.js";
2
- import { isIterable } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
3
- import { list as list_1, seq } from "../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
4
- import { map } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
5
- import { Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
6
- import { map as map_1 } from "../../fable_modules/fable-library-js.4.13.0/Array.js";
7
- import { map as map_2 } from "../../fable_modules/fable-library-js.4.13.0/List.js";
8
-
9
- /**
10
- * Try to encode the given object using the given encoder, or return Encode.nil if the object is null
11
- *
12
- * If the object is a sequence, encode each element using the given encoder and return the resulting sequence
13
- */
14
- export function tryIncludeObj(name, encoder, value) {
15
- let v, o;
16
- return [name, (value != null) ? (isIterable(value_1(value)) ? ((v = value_1(value), seq(map(encoder, v)))) : ((o = value_1(value), encoder(o)))) : (new Json(3, []))];
17
- }
18
-
19
- /**
20
- * Try to encode the given object using the given encoder, or return Encode.nil if the object is null
21
- */
22
- export function tryInclude(name, encoder, value) {
23
- return [name, (value != null) ? encoder(value_1(value)) : (new Json(3, []))];
24
- }
25
-
26
- /**
27
- * Try to encode the given object using the given encoder, or return Encode.nil if the object is null
28
- */
29
- export function tryIncludeSeq(name, encoder, value) {
30
- return [name, (value != null) ? seq(map(encoder, value_1(value))) : (new Json(3, []))];
31
- }
32
-
33
- export function tryIncludeArray(name, encoder, value) {
34
- return [name, (value != null) ? (new Json(6, [map_1(encoder, value)])) : (new Json(3, []))];
35
- }
36
-
37
- export function tryIncludeList(name, encoder, value) {
38
- return [name, (value != null) ? list_1(map_2(encoder, value)) : (new Json(3, []))];
39
- }
40
-
@@ -1,89 +0,0 @@
1
- import { empty as empty_1, ofArray, choose } from "../../fable_modules/fable-library-js.4.13.0/List.js";
2
- import { equals } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
3
- import { Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
4
- import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
5
- import { ConverterOptions__set_IsRoCrate_Z1FBCCD16, ConverterOptions__set_IncludeContext_Z1FBCCD16, ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeContext, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
6
- import { tryIncludeList, tryInclude } from "./GEncode.js";
7
- import { OntologySourceReference_decoder, OntologySourceReference_encoder } from "./Ontology.js";
8
- import { decoder as decoder_2, encoder as encoder_1 } from "./Publication.js";
9
- import { decoder as decoder_3, encoder as encoder_2 } from "./Person.js";
10
- import { Study_decoder, Study_encoder } from "./Study.js";
11
- import { decoder as decoder_4, encoder as encoder_3 } from "./Comment.js";
12
- import { context_jsonvalue } from "./context/rocrate/isa_investigation_context.js";
13
- import { context_jsonvalue as context_jsonvalue_1, conformsTo_jsonvalue } from "./context/rocrate/rocrate_context.js";
14
- import { object } from "./Decode.js";
15
- import { list as list_1, string } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
16
- import { Investigation } from "../ISA/JsonTypes/Investigation.js";
17
- import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
18
- import { printf, toText } from "../../fable_modules/fable-library-js.4.13.0/String.js";
19
- import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
20
-
21
- export function genID(i) {
22
- return "./";
23
- }
24
-
25
- export function encoder(options, oa) {
26
- return new Json(5, [choose((tupledArg) => {
27
- const v = tupledArg[1];
28
- if (equals(v, new Json(3, []))) {
29
- return void 0;
30
- }
31
- else {
32
- return [tupledArg[0], v];
33
- }
34
- }, toList(delay(() => append(ConverterOptions__get_SetID(options) ? singleton(["@id", new Json(0, [genID(oa)])]) : singleton(tryInclude("@id", (value_1) => (new Json(0, [value_1])), oa.ID)), delay(() => append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", new Json(0, ["Investigation"])]) : empty(), delay(() => append(singleton(tryInclude("filename", (value_4) => (new Json(0, [value_4])), oa.FileName)), delay(() => append(singleton(tryInclude("identifier", (value_6) => (new Json(0, [value_6])), oa.Identifier)), delay(() => append(singleton(tryInclude("title", (value_8) => (new Json(0, [value_8])), oa.Title)), delay(() => append(singleton(tryInclude("description", (value_10) => (new Json(0, [value_10])), oa.Description)), delay(() => append(singleton(tryInclude("submissionDate", (value_12) => (new Json(0, [value_12])), oa.SubmissionDate)), delay(() => append(singleton(tryInclude("publicReleaseDate", (value_14) => (new Json(0, [value_14])), oa.PublicReleaseDate)), delay(() => append(singleton(tryIncludeList("ontologySourceReferences", (osr) => OntologySourceReference_encoder(options, osr), oa.OntologySourceReferences)), delay(() => append(singleton(tryIncludeList("publications", (oa_1) => encoder_1(options, oa_1), oa.Publications)), delay(() => append(singleton(tryIncludeList("people", (oa_2) => encoder_2(options, oa_2), oa.Contacts)), delay(() => append(singleton(tryIncludeList("studies", (oa_3) => Study_encoder(options, oa_3), oa.Studies)), delay(() => append(singleton(tryIncludeList("comments", (comment) => encoder_3(options, comment), oa.Comments)), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue]) : empty()))))))))))))))))))))))))))))))]);
35
- }
36
-
37
- export function encodeRoCrate(options, oa) {
38
- return new Json(5, [choose((tupledArg) => {
39
- const v = tupledArg[1];
40
- if (equals(v, new Json(3, []))) {
41
- return void 0;
42
- }
43
- else {
44
- return [tupledArg[0], v];
45
- }
46
- }, toList(delay(() => append(singleton(tryInclude("@type", (value) => (new Json(0, [value])), "CreativeWork")), delay(() => append(singleton(tryInclude("@id", (value_2) => (new Json(0, [value_2])), "ro-crate-metadata.json")), delay(() => append(singleton(tryInclude("about", (oa_1) => encoder(options, oa_1), oa)), delay(() => append(singleton(["conformsTo", conformsTo_jsonvalue]), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue_1]) : empty()))))))))))))]);
47
- }
48
-
49
- export const allowedFields = ofArray(["@id", "filename", "identifier", "title", "description", "submissionDate", "publicReleaseDate", "ontologySourceReferences", "publications", "people", "studies", "comments", "@type", "@context"]);
50
-
51
- export function decoder(options) {
52
- return object(allowedFields, (get$) => {
53
- let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10, arg_23, objectArg_11;
54
- return new Investigation((objectArg = get$.Optional, objectArg.Field("@id", string)), (objectArg_1 = get$.Optional, objectArg_1.Field("filename", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("identifier", string)), (objectArg_3 = get$.Optional, objectArg_3.Field("title", string)), (objectArg_4 = get$.Optional, objectArg_4.Field("description", string)), (objectArg_5 = get$.Optional, objectArg_5.Field("submissionDate", string)), (objectArg_6 = get$.Optional, objectArg_6.Field("publicReleaseDate", string)), (arg_15 = list_1(OntologySourceReference_decoder(options)), (objectArg_7 = get$.Optional, objectArg_7.Field("ontologySourceReferences", arg_15))), (arg_17 = list_1(decoder_2(options)), (objectArg_8 = get$.Optional, objectArg_8.Field("publications", arg_17))), (arg_19 = list_1(decoder_3(options)), (objectArg_9 = get$.Optional, objectArg_9.Field("people", arg_19))), (arg_21 = list_1(Study_decoder(options)), (objectArg_10 = get$.Optional, objectArg_10.Field("studies", arg_21))), (arg_23 = list_1(decoder_4(options)), (objectArg_11 = get$.Optional, objectArg_11.Field("comments", arg_23))), empty_1());
55
- });
56
- }
57
-
58
- export function fromJsonString(s) {
59
- const matchValue = fromString(decoder(ConverterOptions_$ctor()), s);
60
- if (matchValue.tag === 1) {
61
- throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
62
- }
63
- else {
64
- return matchValue.fields[0];
65
- }
66
- }
67
-
68
- export function toJsonString(p) {
69
- return toString(2, encoder(ConverterOptions_$ctor(), p));
70
- }
71
-
72
- /**
73
- * exports in json-ld format
74
- */
75
- export function toJsonldString(i) {
76
- let returnVal;
77
- return toString(2, encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), i));
78
- }
79
-
80
- export function toJsonldStringWithContext(i) {
81
- let returnVal;
82
- 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)), i));
83
- }
84
-
85
- export function toRoCrateString(i) {
86
- let returnVal;
87
- return toString(2, encodeRoCrate((returnVal = ConverterOptions_$ctor(), ((((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IsRoCrate_Z1FBCCD16(returnVal, true)), returnVal)), i));
88
- }
89
-