@nfdi4plants/arctrl 1.2.0 → 2.0.0-alpha.1

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 +32 -11
  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,45 +0,0 @@
1
- import { Record } from "../../../fable_modules/fable-library-js.4.13.0/Types.js";
2
- import { Source_$reflection } from "./Source.js";
3
- import { record_type, option_type, list_type } from "../../../fable_modules/fable-library-js.4.13.0/Reflection.js";
4
- import { Sample_$reflection } from "./Sample.js";
5
- import { Material_$reflection } from "./Material.js";
6
- import { defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
7
- import { empty } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
8
-
9
- export class StudyMaterials extends Record {
10
- constructor(Sources, Samples, OtherMaterials) {
11
- super();
12
- this.Sources = Sources;
13
- this.Samples = Samples;
14
- this.OtherMaterials = OtherMaterials;
15
- }
16
- }
17
-
18
- export function StudyMaterials_$reflection() {
19
- return record_type("ARCtrl.ISA.StudyMaterials", [], StudyMaterials, () => [["Sources", option_type(list_type(Source_$reflection()))], ["Samples", option_type(list_type(Sample_$reflection()))], ["OtherMaterials", option_type(list_type(Material_$reflection()))]]);
20
- }
21
-
22
- export function StudyMaterials_make(sources, samples, otherMaterials) {
23
- return new StudyMaterials(sources, samples, otherMaterials);
24
- }
25
-
26
- export function StudyMaterials_create_1BE9FA55(Sources, Samples, OtherMaterials) {
27
- return StudyMaterials_make(Sources, Samples, OtherMaterials);
28
- }
29
-
30
- export function StudyMaterials_get_empty() {
31
- return StudyMaterials_create_1BE9FA55();
32
- }
33
-
34
- export function StudyMaterials_getMaterials_Z34D4FD6D(am) {
35
- return defaultArg(am.OtherMaterials, empty());
36
- }
37
-
38
- export function StudyMaterials_getSamples_Z34D4FD6D(am) {
39
- return defaultArg(am.Samples, empty());
40
- }
41
-
42
- export function StudyMaterials_getSources_Z34D4FD6D(am) {
43
- return defaultArg(am.Sources, empty());
44
- }
45
-
@@ -1,19 +0,0 @@
1
- import { CompositeCell } from "./ArcTypes/CompositeCell.js";
2
-
3
- /**
4
- * Updates current CompositeCell with information from OntologyAnnotation.
5
- *
6
- * For `Term`, OntologyAnnotation (oa) is fully set. For `Unitized`, oa is set as unit while value is untouched.
7
- * For `FreeText` oa.NameText is set.
8
- */
9
- export function updateWithOA(oa, cell) {
10
- switch (cell.tag) {
11
- case 2:
12
- return CompositeCell.createUnitized(cell.fields[0], oa);
13
- case 1:
14
- return CompositeCell.createFreeText(oa.NameText);
15
- default:
16
- return CompositeCell.createTerm(oa);
17
- }
18
- }
19
-
@@ -1,303 +0,0 @@
1
- import { OntologySourceReference_encoder, OntologyAnnotation_encoder, OntologySourceReference_decoder, OntologyAnnotation_decoder } from "../Ontology.js";
2
- import { ConverterOptions__set_IncludeContext_Z1FBCCD16, ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor } from "../ConverterOptions.js";
3
- import { array, object, string, list as list_1 } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
4
- import { ArcTable_compressedDecoder, ArcTable_compressedEncoder, ArcTable_encoder, ArcTable_decoder } from "./ArcTable.js";
5
- import { encoder, decoder as decoder_2 } from "../Person.js";
6
- import { encoder as encoder_1, decoder as decoder_3 } from "../Comment.js";
7
- import { Factor_encoder, Factor_decoder } from "../Factor.js";
8
- import { encoder as encoder_2, decoder as decoder_4 } from "../Publication.js";
9
- import { value as value_2, map, defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
10
- import { toArray } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
11
- import { seq } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
12
- import { empty, singleton, append, delay, toList, map as map_1 } from "../../../fable_modules/fable-library-js.4.13.0/Seq.js";
13
- import { Json } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
14
- import { ArcAssay } from "../../ISA/ArcTypes/ArcTypes.js";
15
- import { OATable_arrayFromMap, OATable_encoder, OATable_decoder, OATable_decodeOA, OATable_encodeOA } from "./OATable.js";
16
- import { toString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
17
- import { Assay_decoder, Assay_encoder } from "../Assay.js";
18
- import { fromString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
19
- import { toFail, printf, toText } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
20
- import { StringTable_arrayFromMap, StringTable_encoder, StringTable_decoder } from "../StringTable.js";
21
- import { CellTable_arrayFromMap, CellTable_encoder, CellTable_decoder } from "./CellTable.js";
22
- import { Dictionary } from "../../../fable_modules/fable-library-js.4.13.0/MutableMap.js";
23
- import { safeHash, equals } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
24
-
25
- export const JsonHelper_DecodeOa = OntologyAnnotation_decoder(ConverterOptions_$ctor());
26
-
27
- export const JsonHelper_DecodeTables = list_1(ArcTable_decoder);
28
-
29
- export const JsonHelper_DecodePersons = list_1(decoder_2(ConverterOptions_$ctor()));
30
-
31
- export const JsonHelper_DecodeComments = list_1(decoder_3(ConverterOptions_$ctor()));
32
-
33
- export const JsonHelper_DecodeFactors = list_1(Factor_decoder(ConverterOptions_$ctor()));
34
-
35
- export const JsonHelper_DecodePublications = list_1(decoder_4(ConverterOptions_$ctor()));
36
-
37
- export const JsonHelper_DecodeOntologySourceReferences = list_1(OntologySourceReference_decoder(ConverterOptions_$ctor()));
38
-
39
- export function JsonHelper_tryGetTables(get$, fieldName) {
40
- let objectArg;
41
- return defaultArg(map((collection) => Array.from(collection), (objectArg = get$.Optional, objectArg.Field(fieldName, JsonHelper_DecodeTables))), []);
42
- }
43
-
44
- export function JsonHelper_tryGetPersons(get$, fieldName) {
45
- let objectArg;
46
- return defaultArg(map(toArray, (objectArg = get$.Optional, objectArg.Field(fieldName, JsonHelper_DecodePersons))), new Array(0));
47
- }
48
-
49
- export function JsonHelper_tryGetComments(get$, fieldName) {
50
- let objectArg;
51
- return defaultArg(map(toArray, (objectArg = get$.Optional, objectArg.Field(fieldName, JsonHelper_DecodeComments))), new Array(0));
52
- }
53
-
54
- export function JsonHelper_tryGetPublications(get$, fieldName) {
55
- let objectArg;
56
- return defaultArg(map(toArray, (objectArg = get$.Optional, objectArg.Field(fieldName, JsonHelper_DecodePublications))), new Array(0));
57
- }
58
-
59
- export function JsonHelper_tryGetOAs(get$, fieldName) {
60
- let arg_1, objectArg;
61
- return defaultArg(map(toArray, (arg_1 = list_1(JsonHelper_DecodeOa), (objectArg = get$.Optional, objectArg.Field(fieldName, arg_1)))), new Array(0));
62
- }
63
-
64
- export function JsonHelper_tryGetFactors(get$, fieldName) {
65
- let objectArg;
66
- return defaultArg(map(toArray, (objectArg = get$.Optional, objectArg.Field(fieldName, JsonHelper_DecodeFactors))), new Array(0));
67
- }
68
-
69
- export function JsonHelper_tryGetStringResizeArray(get$, fieldName) {
70
- let arg_1, objectArg;
71
- return defaultArg(map((collection) => Array.from(collection), (arg_1 = list_1(string), (objectArg = get$.Optional, objectArg.Field(fieldName, arg_1)))), []);
72
- }
73
-
74
- export function JsonHelper_tryGetOntologySourceReferences(get$, fieldName) {
75
- let objectArg;
76
- return defaultArg(map(toArray, (objectArg = get$.Optional, objectArg.Field(fieldName, JsonHelper_DecodeOntologySourceReferences))), new Array(0));
77
- }
78
-
79
- export function JsonHelper_EncoderOA(t) {
80
- return OntologyAnnotation_encoder(ConverterOptions_$ctor(), t);
81
- }
82
-
83
- export function JsonHelper_EncoderOAs(t) {
84
- return seq(map_1(JsonHelper_EncoderOA, t));
85
- }
86
-
87
- export function JsonHelper_EncoderTables(t) {
88
- return seq(map_1(ArcTable_encoder, t));
89
- }
90
-
91
- export function JsonHelper_EncoderPerson(t) {
92
- return encoder(ConverterOptions_$ctor(), t);
93
- }
94
-
95
- export function JsonHelper_EncoderPersons(t) {
96
- return seq(map_1(JsonHelper_EncoderPerson, t));
97
- }
98
-
99
- export function JsonHelper_EncoderComment(t) {
100
- return encoder_1(ConverterOptions_$ctor(), t);
101
- }
102
-
103
- export function JsonHelper_EncoderComments(t) {
104
- return seq(map_1(JsonHelper_EncoderComment, t));
105
- }
106
-
107
- export function JsonHelper_EncoderPublication(t) {
108
- return encoder_2(ConverterOptions_$ctor(), t);
109
- }
110
-
111
- export function JsonHelper_EncoderPublications(t) {
112
- return seq(map_1(JsonHelper_EncoderPublication, t));
113
- }
114
-
115
- export function JsonHelper_EncoderFactor(t) {
116
- return Factor_encoder(ConverterOptions_$ctor(), t);
117
- }
118
-
119
- export function JsonHelper_EncoderFactors(t) {
120
- return seq(map_1(JsonHelper_EncoderFactor, t));
121
- }
122
-
123
- export function JsonHelper_EncoderOntologySourceReference(t) {
124
- return OntologySourceReference_encoder(ConverterOptions_$ctor(), t);
125
- }
126
-
127
- export function JsonHelper_EncoderOntologySourceReferences(t) {
128
- return seq(map_1(JsonHelper_EncoderOntologySourceReference, t));
129
- }
130
-
131
- export function ArcAssay_encoder(assay) {
132
- return new Json(5, [toList(delay(() => append(singleton(["Identifier", new Json(0, [assay.Identifier])]), delay(() => append((assay.MeasurementType != null) ? singleton(["MeasurementType", JsonHelper_EncoderOA(value_2(assay.MeasurementType))]) : empty(), delay(() => append((assay.TechnologyType != null) ? singleton(["TechnologyType", JsonHelper_EncoderOA(value_2(assay.TechnologyType))]) : empty(), delay(() => append((assay.TechnologyPlatform != null) ? singleton(["TechnologyPlatform", JsonHelper_EncoderOA(value_2(assay.TechnologyPlatform))]) : empty(), delay(() => append((assay.Tables.length !== 0) ? singleton(["Tables", JsonHelper_EncoderTables(assay.Tables)]) : empty(), delay(() => append((assay.Performers.length !== 0) ? singleton(["Performers", JsonHelper_EncoderPersons(assay.Performers)]) : empty(), delay(() => ((assay.Comments.length !== 0) ? singleton(["Comments", JsonHelper_EncoderComments(assay.Comments)]) : empty())))))))))))))))]);
133
- }
134
-
135
- export const ArcAssay_decoder = object((get$) => {
136
- let identifier;
137
- const objectArg = get$.Required;
138
- identifier = objectArg.Field("Identifier", string);
139
- let measurementType;
140
- const objectArg_1 = get$.Optional;
141
- measurementType = objectArg_1.Field("MeasurementType", JsonHelper_DecodeOa);
142
- let technologyType;
143
- const objectArg_2 = get$.Optional;
144
- technologyType = objectArg_2.Field("TechnologyType", JsonHelper_DecodeOa);
145
- let technologyPlatform;
146
- const objectArg_3 = get$.Optional;
147
- technologyPlatform = objectArg_3.Field("TechnologyPlatform", JsonHelper_DecodeOa);
148
- const tables = JsonHelper_tryGetTables(get$, "Tables");
149
- const performers = JsonHelper_tryGetPersons(get$, "Performers");
150
- const comments = JsonHelper_tryGetComments(get$, "Comments");
151
- return ArcAssay.make(identifier, measurementType, technologyType, technologyPlatform, tables, performers, comments);
152
- });
153
-
154
- export function ArcAssay_compressedEncoder(stringTable, oaTable, cellTable, assay) {
155
- return new Json(5, [toList(delay(() => append(singleton(["Identifier", new Json(0, [assay.Identifier])]), delay(() => append((assay.MeasurementType != null) ? singleton(["MeasurementType", OATable_encodeOA(oaTable, value_2(assay.MeasurementType))]) : empty(), delay(() => append((assay.TechnologyType != null) ? singleton(["TechnologyType", OATable_encodeOA(oaTable, value_2(assay.TechnologyType))]) : empty(), delay(() => append((assay.TechnologyPlatform != null) ? singleton(["TechnologyPlatform", OATable_encodeOA(oaTable, value_2(assay.TechnologyPlatform))]) : empty(), delay(() => append((assay.Tables.length !== 0) ? singleton(["Tables", seq(map_1((table) => ArcTable_compressedEncoder(stringTable, oaTable, cellTable, table), assay.Tables))]) : empty(), delay(() => append((assay.Performers.length !== 0) ? singleton(["Performers", JsonHelper_EncoderPersons(assay.Performers)]) : empty(), delay(() => ((assay.Comments.length !== 0) ? singleton(["Comments", JsonHelper_EncoderComments(assay.Comments)]) : empty())))))))))))))))]);
156
- }
157
-
158
- export function ArcAssay_compressedDecoder(stringTable, oaTable, cellTable) {
159
- return object((get$) => {
160
- let arg_1, objectArg;
161
- const tables = defaultArg(map((collection) => Array.from(collection), (arg_1 = array(ArcTable_compressedDecoder(stringTable, oaTable, cellTable)), (objectArg = get$.Optional, objectArg.Field("Tables", arg_1)))), []);
162
- let identifier;
163
- const objectArg_1 = get$.Required;
164
- identifier = objectArg_1.Field("Identifier", string);
165
- let measurementType;
166
- const arg_5 = OATable_decodeOA(oaTable);
167
- const objectArg_2 = get$.Optional;
168
- measurementType = objectArg_2.Field("MeasurementType", arg_5);
169
- let technologyType;
170
- const arg_7 = OATable_decodeOA(oaTable);
171
- const objectArg_3 = get$.Optional;
172
- technologyType = objectArg_3.Field("TechnologyType", arg_7);
173
- let technologyPlatform;
174
- const arg_9 = OATable_decodeOA(oaTable);
175
- const objectArg_4 = get$.Optional;
176
- technologyPlatform = objectArg_4.Field("TechnologyPlatform", arg_9);
177
- const performers = JsonHelper_tryGetPersons(get$, "Performers");
178
- const comments = JsonHelper_tryGetComments(get$, "Comments");
179
- return ArcAssay.make(identifier, measurementType, technologyType, technologyPlatform, tables, performers, comments);
180
- });
181
- }
182
-
183
- /**
184
- * exports in json-ld format
185
- */
186
- export function ArcAssay_toJsonldString(a) {
187
- let returnVal;
188
- return toString(2, Assay_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), void 0, a.ToAssay()));
189
- }
190
-
191
- export function ArcAssay_toJsonldStringWithContext(a) {
192
- let returnVal;
193
- return toString(2, Assay_encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), void 0, a.ToAssay()));
194
- }
195
-
196
- export function ArcAssay_fromJsonString(s) {
197
- let a_1;
198
- const matchValue = fromString(Assay_decoder(ConverterOptions_$ctor()), s);
199
- if (matchValue.tag === 1) {
200
- throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
201
- }
202
- else {
203
- a_1 = matchValue.fields[0];
204
- }
205
- return ArcAssay.fromAssay(a_1);
206
- }
207
-
208
- export function ArcAssay_toJsonString(a) {
209
- return toString(2, Assay_encoder(ConverterOptions_$ctor(), void 0, a.ToAssay()));
210
- }
211
-
212
- export function ArcAssay_toArcJsonString(a) {
213
- return toString(0, ArcAssay_encoder(a));
214
- }
215
-
216
- export function ArcAssay_fromArcJsonString(jsonString) {
217
- try {
218
- const matchValue = fromString(ArcAssay_decoder, jsonString);
219
- if (matchValue.tag === 1) {
220
- throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
221
- }
222
- else {
223
- return matchValue.fields[0];
224
- }
225
- }
226
- catch (e_1) {
227
- const arg_1 = e_1.message;
228
- return toFail(printf("Error. Unable to parse json string to ArcAssay: %s"))(arg_1);
229
- }
230
- }
231
-
232
- export function ARCtrl_ISA_ArcAssay__ArcAssay_fromArcJsonString_Static_Z721C83C5(jsonString) {
233
- try {
234
- const matchValue = fromString(ArcAssay_decoder, jsonString);
235
- if (matchValue.tag === 1) {
236
- throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
237
- }
238
- else {
239
- return matchValue.fields[0];
240
- }
241
- }
242
- catch (e_1) {
243
- const arg_1 = e_1.message;
244
- return toFail(printf("Error. Unable to parse json string to ArcAssay: %s"))(arg_1);
245
- }
246
- }
247
-
248
- export function ARCtrl_ISA_ArcAssay__ArcAssay_ToArcJsonString_71136F3F(this$, spaces) {
249
- return toString(defaultArg(spaces, 0), ArcAssay_encoder(this$));
250
- }
251
-
252
- export function ARCtrl_ISA_ArcAssay__ArcAssay_toArcJsonString_Static_1C75D08D(a) {
253
- return ARCtrl_ISA_ArcAssay__ArcAssay_ToArcJsonString_71136F3F(a);
254
- }
255
-
256
- export function ARCtrl_ISA_ArcAssay__ArcAssay_fromCompressedJsonString_Static_Z721C83C5(jsonString) {
257
- const decoder = object((get$) => {
258
- let arg_5, objectArg_2;
259
- let stringTable;
260
- const objectArg = get$.Required;
261
- stringTable = objectArg.Field("stringTable", StringTable_decoder);
262
- let oaTable;
263
- const arg_3 = OATable_decoder(stringTable);
264
- const objectArg_1 = get$.Required;
265
- oaTable = objectArg_1.Field("oaTable", arg_3);
266
- const arg_7 = ArcAssay_compressedDecoder(stringTable, oaTable, (arg_5 = CellTable_decoder(stringTable, oaTable), (objectArg_2 = get$.Required, objectArg_2.Field("cellTable", arg_5))));
267
- const objectArg_3 = get$.Required;
268
- return objectArg_3.Field("assay", arg_7);
269
- });
270
- try {
271
- const matchValue = fromString(decoder, jsonString);
272
- if (matchValue.tag === 1) {
273
- throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
274
- }
275
- else {
276
- return matchValue.fields[0];
277
- }
278
- }
279
- catch (e_1) {
280
- const arg_9 = e_1.message;
281
- return toFail(printf("Error. Unable to parse json string to ArcAssay: %s"))(arg_9);
282
- }
283
- }
284
-
285
- export function ARCtrl_ISA_ArcAssay__ArcAssay_ToCompressedJsonString_71136F3F(this$, spaces) {
286
- const spaces_1 = defaultArg(spaces, 0) | 0;
287
- const stringTable = new Map([]);
288
- const oaTable = new Dictionary([], {
289
- Equals: equals,
290
- GetHashCode: safeHash,
291
- });
292
- const cellTable = new Dictionary([], {
293
- Equals: equals,
294
- GetHashCode: safeHash,
295
- });
296
- const arcAssay = ArcAssay_compressedEncoder(stringTable, oaTable, cellTable, this$);
297
- 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))], ["assay", arcAssay]]]));
298
- }
299
-
300
- export function ARCtrl_ISA_ArcAssay__ArcAssay_toCompressedJsonString_Static_1C75D08D(a) {
301
- return ARCtrl_ISA_ArcAssay__ArcAssay_ToCompressedJsonString_71136F3F(a);
302
- }
303
-
@@ -1,122 +0,0 @@
1
- import { map, empty, singleton, append, delay, toList } from "../../../fable_modules/fable-library-js.4.13.0/Seq.js";
2
- import { Json } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
3
- import { map as map_1, defaultArg, value as value_7 } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
4
- import { JsonHelper_tryGetComments, JsonHelper_tryGetStringResizeArray, JsonHelper_tryGetPersons, JsonHelper_tryGetPublications, JsonHelper_tryGetOntologySourceReferences, ArcAssay_decoder, JsonHelper_EncoderComments, ArcAssay_encoder, JsonHelper_EncoderPersons, JsonHelper_EncoderPublications, JsonHelper_EncoderOntologySourceReferences } from "./ArcAssay.js";
5
- import { seq } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
6
- import { ArcStudy_decoder, ArcStudy_encoder } from "./ArcStudy.js";
7
- import { string, object, list } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
8
- import { ArcInvestigation } from "../../ISA/ArcTypes/ArcTypes.js";
9
- import { toString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
10
- import { decoder as decoder_1, encoder } from "../Investigation.js";
11
- import { ConverterOptions__set_IncludeContext_Z1FBCCD16, ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor } from "../ConverterOptions.js";
12
- import { fromString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
13
- import { toFail, printf, toText } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
14
-
15
- export function ArcInvestigation_encoder(inv) {
16
- return new Json(5, [toList(delay(() => append(singleton(["Identifier", new Json(0, [inv.Identifier])]), delay(() => append((inv.Title != null) ? singleton(["Title", new Json(0, [value_7(inv.Title)])]) : empty(), delay(() => append((inv.Description != null) ? singleton(["Description", new Json(0, [value_7(inv.Description)])]) : empty(), delay(() => append((inv.SubmissionDate != null) ? singleton(["SubmissionDate", new Json(0, [value_7(inv.SubmissionDate)])]) : empty(), delay(() => append((inv.PublicReleaseDate != null) ? singleton(["PublicReleaseDate", new Json(0, [value_7(inv.PublicReleaseDate)])]) : empty(), delay(() => append((inv.OntologySourceReferences.length !== 0) ? singleton(["OntologySourceReferences", JsonHelper_EncoderOntologySourceReferences(inv.OntologySourceReferences)]) : empty(), delay(() => append((inv.Publications.length !== 0) ? singleton(["Publications", JsonHelper_EncoderPublications(inv.Publications)]) : empty(), delay(() => append((inv.Contacts.length !== 0) ? singleton(["Contacts", JsonHelper_EncoderPersons(inv.Contacts)]) : empty(), delay(() => append((inv.Assays.length !== 0) ? singleton(["Assays", seq(map(ArcAssay_encoder, inv.Assays))]) : empty(), delay(() => append((inv.Studies.length !== 0) ? singleton(["Studies", seq(map(ArcStudy_encoder, inv.Studies))]) : empty(), delay(() => append((inv.RegisteredStudyIdentifiers.length !== 0) ? singleton(["RegisteredStudyIdentifiers", seq(map((value_5) => (new Json(0, [value_5])), inv.RegisteredStudyIdentifiers))]) : empty(), delay(() => ((inv.Comments.length !== 0) ? singleton(["Comments", JsonHelper_EncoderComments(inv.Comments)]) : empty())))))))))))))))))))))))))]);
17
- }
18
-
19
- export const ArcInvestigation_decoder = (() => {
20
- const DecodeAssays = list(ArcAssay_decoder);
21
- const DecodeStudies = list(ArcStudy_decoder);
22
- return object((get$_2) => {
23
- let objectArg, objectArg_1;
24
- let identifier;
25
- const objectArg_2 = get$_2.Required;
26
- identifier = objectArg_2.Field("Identifier", string);
27
- let title;
28
- const objectArg_3 = get$_2.Optional;
29
- title = objectArg_3.Field("Title", string);
30
- let description;
31
- const objectArg_4 = get$_2.Optional;
32
- description = objectArg_4.Field("Description", string);
33
- let submissionDate;
34
- const objectArg_5 = get$_2.Optional;
35
- submissionDate = objectArg_5.Field("SubmissionDate", string);
36
- let publicReleaseDate;
37
- const objectArg_6 = get$_2.Optional;
38
- publicReleaseDate = objectArg_6.Field("PublicReleaseDate", string);
39
- const ontologySourceReferences = JsonHelper_tryGetOntologySourceReferences(get$_2, "OntologySourceReferences");
40
- const publications = JsonHelper_tryGetPublications(get$_2, "Publications");
41
- const contacts = JsonHelper_tryGetPersons(get$_2, "Contacts");
42
- const assays = defaultArg(map_1((collection) => Array.from(collection), (objectArg = get$_2.Optional, objectArg.Field("Assays", DecodeAssays))), []);
43
- const studies = defaultArg(map_1((collection_1) => Array.from(collection_1), (objectArg_1 = get$_2.Optional, objectArg_1.Field("Studies", DecodeStudies))), []);
44
- const registeredStudyIdentifiers = JsonHelper_tryGetStringResizeArray(get$_2, "RegisteredStudyIdentifiers");
45
- const comments = JsonHelper_tryGetComments(get$_2, "Comments");
46
- return ArcInvestigation.make(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, registeredStudyIdentifiers, comments, []);
47
- });
48
- })();
49
-
50
- /**
51
- * exports in json-ld format
52
- */
53
- export function ArcInvestigation_toJsonldString(a) {
54
- let returnVal;
55
- return toString(2, encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), a.ToInvestigation()));
56
- }
57
-
58
- export function ArcInvestigation_toJsonldStringWithContext(a) {
59
- let returnVal;
60
- return toString(2, encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), a.ToInvestigation()));
61
- }
62
-
63
- export function ArcInvestigation_fromJsonString(s) {
64
- let i;
65
- const matchValue = fromString(decoder_1(ConverterOptions_$ctor()), s);
66
- if (matchValue.tag === 1) {
67
- throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
68
- }
69
- else {
70
- i = matchValue.fields[0];
71
- }
72
- return ArcInvestigation.fromInvestigation(i);
73
- }
74
-
75
- export function ArcInvestigation_toJsonString(a) {
76
- return toString(2, encoder(ConverterOptions_$ctor(), a.ToInvestigation()));
77
- }
78
-
79
- export function ArcInvestigation_toArcJsonString(a) {
80
- return toString(0, ArcInvestigation_encoder(a));
81
- }
82
-
83
- export function ArcInvestigation_fromArcJsonString(jsonString) {
84
- try {
85
- const matchValue = fromString(ArcInvestigation_decoder, jsonString);
86
- if (matchValue.tag === 1) {
87
- throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
88
- }
89
- else {
90
- return matchValue.fields[0];
91
- }
92
- }
93
- catch (e_1) {
94
- const arg_1 = e_1.message;
95
- return toFail(printf("Error. Unable to parse json string to ArcInvestigation: %s"))(arg_1);
96
- }
97
- }
98
-
99
- export function ARCtrl_ISA_ArcInvestigation__ArcInvestigation_fromArcJsonString_Static_Z721C83C5(jsonString) {
100
- try {
101
- const matchValue = fromString(ArcInvestigation_decoder, jsonString);
102
- if (matchValue.tag === 1) {
103
- throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
104
- }
105
- else {
106
- return matchValue.fields[0];
107
- }
108
- }
109
- catch (e_1) {
110
- const arg_1 = e_1.message;
111
- return toFail(printf("Error. Unable to parse json string to ArcInvestigation: %s"))(arg_1);
112
- }
113
- }
114
-
115
- export function ARCtrl_ISA_ArcInvestigation__ArcInvestigation_ToArcJsonString_71136F3F(this$, spaces) {
116
- return toString(defaultArg(spaces, 0), ArcInvestigation_encoder(this$));
117
- }
118
-
119
- export function ARCtrl_ISA_ArcInvestigation__ArcInvestigation_toArcJsonString_Static_Z4D87C88C(a) {
120
- return ARCtrl_ISA_ArcInvestigation__ArcInvestigation_ToArcJsonString_71136F3F(a);
121
- }
122
-