@nfdi4plants/arctrl 3.0.0-beta.3 → 3.0.0-beta.4

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 (380) hide show
  1. package/README.md +2 -0
  2. package/dist/ts/index.js +63 -0
  3. package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +354 -0
  4. package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +28 -0
  5. package/dist/ts/node_modules/@fable-org/fable-library-js/AsyncBuilder.js +186 -0
  6. package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +8 -0
  7. package/dist/ts/node_modules/@fable-org/fable-library-js/Boolean.js +24 -0
  8. package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +73 -0
  9. package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +31 -0
  10. package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +574 -0
  11. package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +59 -0
  12. package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +65 -0
  13. package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +30 -0
  14. package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +5 -0
  15. package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +5 -0
  16. package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +48 -0
  17. package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +120 -0
  18. package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +680 -0
  19. package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +40 -0
  20. package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +655 -0
  21. package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +105 -0
  22. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +320 -0
  23. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +204 -0
  24. package/dist/ts/node_modules/@fable-org/fable-library-js/Native.js +10 -0
  25. package/dist/ts/node_modules/@fable-org/fable-library-js/Numeric.js +73 -0
  26. package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +65 -0
  27. package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +23 -0
  28. package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +111 -0
  29. package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +114 -0
  30. package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +36 -0
  31. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +846 -0
  32. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +65 -0
  33. package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +1160 -0
  34. package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +364 -0
  35. package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +40 -0
  36. package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +193 -0
  37. package/dist/ts/node_modules/@fable-org/fable-library-js/Unicode.13.0.0.js +6 -0
  38. package/dist/ts/node_modules/@fable-org/fable-library-js/Uri.js +160 -0
  39. package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +367 -0
  40. package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +825 -0
  41. package/dist/ts/ts/ARC.js +914 -0
  42. package/dist/ts/ts/Contract/ARC.js +52 -0
  43. package/dist/ts/ts/Contract/ArcAssay.js +80 -0
  44. package/dist/ts/ts/Contract/ArcInvestigation.js +57 -0
  45. package/dist/ts/ts/Contract/ArcRun.js +76 -0
  46. package/dist/ts/ts/Contract/ArcStudy.js +76 -0
  47. package/dist/ts/ts/Contract/ArcWorkflow.js +77 -0
  48. package/dist/ts/ts/Contract/Contract.js +45 -0
  49. package/dist/ts/ts/Contract/Datamap.js +221 -0
  50. package/dist/ts/ts/Contract/Git.js +57 -0
  51. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +57 -0
  52. package/dist/ts/ts/ContractIO/ContractIO.js +202 -0
  53. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -1
  54. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
  55. package/dist/ts/ts/ContractIO/FileSystemHelper.js +273 -0
  56. package/dist/ts/ts/Conversion.js +1247 -0
  57. package/dist/ts/ts/Core/ArcTypes.js +3393 -0
  58. package/dist/ts/ts/Core/Comment.js +91 -0
  59. package/dist/ts/ts/Core/CommentList.js +27 -0
  60. package/dist/ts/ts/Core/Conversion.js +923 -0
  61. package/dist/ts/ts/Core/Data.js +179 -0
  62. package/dist/ts/ts/Core/DataContext.js +108 -0
  63. package/dist/ts/ts/Core/DataFile.js +50 -0
  64. package/dist/ts/ts/Core/DataMap.js +53 -0
  65. package/dist/ts/ts/Core/Helper/Collections.js +323 -0
  66. package/dist/ts/ts/Core/Helper/HashCodes.js +35 -0
  67. package/dist/ts/ts/Core/Helper/Identifier.js +96 -0
  68. package/dist/ts/ts/Core/Helper/ORCID.js +34 -0
  69. package/dist/ts/ts/Core/Helper/Regex.js +296 -0
  70. package/dist/ts/ts/Core/Helper/SemVer.js +31 -0
  71. package/dist/ts/ts/Core/Helper/Url.js +32 -0
  72. package/dist/ts/ts/Core/IdentifierSetters.js +9 -0
  73. package/dist/ts/ts/Core/OntologyAnnotation.js +207 -0
  74. package/dist/ts/ts/Core/OntologySourceReference.js +84 -0
  75. package/dist/ts/ts/Core/Person.js +183 -0
  76. package/dist/ts/ts/Core/Process/ColumnIndex.js +73 -0
  77. package/dist/ts/ts/Core/Process/Component.js +121 -0
  78. package/dist/ts/ts/Core/Process/Factor.js +104 -0
  79. package/dist/ts/ts/Core/Process/FactorValue.js +68 -0
  80. package/dist/ts/ts/Core/Process/Material.js +49 -0
  81. package/dist/ts/ts/Core/Process/MaterialAttribute.js +30 -0
  82. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +68 -0
  83. package/dist/ts/ts/Core/Process/MaterialType.js +28 -0
  84. package/dist/ts/ts/Core/Process/Process.js +136 -0
  85. package/dist/ts/ts/Core/Process/ProcessInput.js +207 -0
  86. package/dist/ts/ts/Core/Process/ProcessOutput.js +178 -0
  87. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +135 -0
  88. package/dist/ts/ts/Core/Process/ProcessSequence.js +56 -0
  89. package/dist/ts/ts/Core/Process/Protocol.js +54 -0
  90. package/dist/ts/ts/Core/Process/ProtocolParameter.js +69 -0
  91. package/dist/ts/ts/Core/Process/Sample.js +44 -0
  92. package/dist/ts/ts/Core/Process/Source.js +38 -0
  93. package/dist/ts/ts/Core/Publication.js +108 -0
  94. package/dist/ts/ts/Core/Table/ArcTable.js +889 -0
  95. package/dist/ts/ts/Core/Table/ArcTableAux.js +993 -0
  96. package/dist/ts/ts/Core/Table/ArcTables.js +415 -0
  97. package/dist/ts/ts/Core/Table/CompositeCell.js +334 -0
  98. package/dist/ts/ts/Core/Table/CompositeColumn.js +52 -0
  99. package/dist/ts/ts/Core/Table/CompositeHeader.js +792 -0
  100. package/dist/ts/ts/Core/Template.js +180 -0
  101. package/dist/ts/ts/Core/Templates.js +75 -0
  102. package/dist/ts/ts/Core/URI.js +8 -0
  103. package/dist/ts/ts/Core/Value.js +194 -0
  104. package/dist/ts/ts/CrossAsync.js +20 -0
  105. package/dist/ts/ts/FileSystem/DefaultGitattributes.js +3 -0
  106. package/dist/ts/ts/FileSystem/DefaultGitignore.js +3 -0
  107. package/dist/ts/ts/FileSystem/FileSystem.js +48 -0
  108. package/dist/ts/ts/FileSystem/FileSystemTree.js +339 -0
  109. package/dist/ts/ts/FileSystem/Path.js +36 -0
  110. package/dist/ts/ts/Json/Assay.d.ts +1 -1
  111. package/dist/ts/ts/Json/Assay.js +221 -0
  112. package/dist/ts/ts/Json/Comment.d.ts +1 -1
  113. package/dist/ts/ts/Json/Comment.js +112 -0
  114. package/dist/ts/ts/Json/Data.d.ts +1 -1
  115. package/dist/ts/ts/Json/Data.js +138 -0
  116. package/dist/ts/ts/Json/DataFile.d.ts +1 -1
  117. package/dist/ts/ts/Json/DataFile.js +55 -0
  118. package/dist/ts/ts/Json/DataMap/DataContext.d.ts +1 -1
  119. package/dist/ts/ts/Json/DataMap/DataContext.js +39 -0
  120. package/dist/ts/ts/Json/DataMap/DataMap.d.ts +1 -1
  121. package/dist/ts/ts/Json/DataMap/DataMap.js +27 -0
  122. package/dist/ts/ts/Json/Decode.d.ts +2 -2
  123. package/dist/ts/ts/Json/Decode.js +209 -0
  124. package/dist/ts/ts/Json/Encode.d.ts +1 -1
  125. package/dist/ts/ts/Json/Encode.js +65 -0
  126. package/dist/ts/ts/Json/IDTable.d.ts +1 -1
  127. package/dist/ts/ts/Json/IDTable.js +28 -0
  128. package/dist/ts/ts/Json/Investigation.d.ts +1 -1
  129. package/dist/ts/ts/Json/Investigation.js +229 -0
  130. package/dist/ts/ts/Json/OntologyAnnotation.d.ts +1 -1
  131. package/dist/ts/ts/Json/OntologyAnnotation.js +194 -0
  132. package/dist/ts/ts/Json/OntologySourceReference.d.ts +1 -1
  133. package/dist/ts/ts/Json/OntologySourceReference.js +119 -0
  134. package/dist/ts/ts/Json/Person.d.ts +1 -1
  135. package/dist/ts/ts/Json/Person.js +316 -0
  136. package/dist/ts/ts/Json/Process/AssayMaterials.d.ts +1 -1
  137. package/dist/ts/ts/Json/Process/AssayMaterials.js +21 -0
  138. package/dist/ts/ts/Json/Process/Component.d.ts +1 -1
  139. package/dist/ts/ts/Json/Process/Component.js +41 -0
  140. package/dist/ts/ts/Json/Process/Factor.d.ts +1 -1
  141. package/dist/ts/ts/Json/Process/Factor.js +53 -0
  142. package/dist/ts/ts/Json/Process/FactorValue.d.ts +1 -1
  143. package/dist/ts/ts/Json/Process/FactorValue.js +44 -0
  144. package/dist/ts/ts/Json/Process/Material.d.ts +1 -1
  145. package/dist/ts/ts/Json/Process/Material.js +112 -0
  146. package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts +1 -1
  147. package/dist/ts/ts/Json/Process/MaterialAttribute.js +43 -0
  148. package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts +1 -1
  149. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +44 -0
  150. package/dist/ts/ts/Json/Process/MaterialType.d.ts +1 -1
  151. package/dist/ts/ts/Json/Process/MaterialType.js +45 -0
  152. package/dist/ts/ts/Json/Process/Process.d.ts +1 -1
  153. package/dist/ts/ts/Json/Process/Process.js +103 -0
  154. package/dist/ts/ts/Json/Process/ProcessInput.d.ts +1 -1
  155. package/dist/ts/ts/Json/Process/ProcessInput.js +42 -0
  156. package/dist/ts/ts/Json/Process/ProcessOutput.d.ts +1 -1
  157. package/dist/ts/ts/Json/Process/ProcessOutput.js +35 -0
  158. package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts +1 -1
  159. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +28 -0
  160. package/dist/ts/ts/Json/Process/Protocol.d.ts +1 -1
  161. package/dist/ts/ts/Json/Process/Protocol.js +166 -0
  162. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +1 -1
  163. package/dist/ts/ts/Json/Process/ProtocolParameter.js +43 -0
  164. package/dist/ts/ts/Json/Process/Sample.d.ts +1 -1
  165. package/dist/ts/ts/Json/Process/Sample.js +165 -0
  166. package/dist/ts/ts/Json/Process/Source.d.ts +1 -1
  167. package/dist/ts/ts/Json/Process/Source.js +133 -0
  168. package/dist/ts/ts/Json/Process/StudyMaterials.d.ts +1 -1
  169. package/dist/ts/ts/Json/Process/StudyMaterials.js +23 -0
  170. package/dist/ts/ts/Json/Process/Value.d.ts +1 -1
  171. package/dist/ts/ts/Json/Process/Value.js +41 -0
  172. package/dist/ts/ts/Json/PropertyValue.d.ts +1 -1
  173. package/dist/ts/ts/Json/PropertyValue.js +280 -0
  174. package/dist/ts/ts/Json/Publication.d.ts +1 -1
  175. package/dist/ts/ts/Json/Publication.js +123 -0
  176. package/dist/ts/ts/Json/ROCrate/LDContext.d.ts +1 -1
  177. package/dist/ts/ts/Json/ROCrate/LDContext.js +115 -0
  178. package/dist/ts/ts/Json/ROCrate/LDGraph.d.ts +1 -1
  179. package/dist/ts/ts/Json/ROCrate/LDGraph.js +83 -0
  180. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -1
  181. package/dist/ts/ts/Json/ROCrate/LDNode.js +190 -0
  182. package/dist/ts/ts/Json/ROCrate/LDRef.d.ts +1 -1
  183. package/dist/ts/ts/Json/ROCrate/LDRef.js +24 -0
  184. package/dist/ts/ts/Json/ROCrate/LDValue.d.ts +1 -1
  185. package/dist/ts/ts/Json/ROCrate/LDValue.js +63 -0
  186. package/dist/ts/ts/Json/StringTable.d.ts +1 -1
  187. package/dist/ts/ts/Json/StringTable.js +66 -0
  188. package/dist/ts/ts/Json/Study.d.ts +1 -1
  189. package/dist/ts/ts/Json/Study.js +326 -0
  190. package/dist/ts/ts/Json/Table/ArcTable.d.ts +1 -1
  191. package/dist/ts/ts/Json/Table/ArcTable.js +210 -0
  192. package/dist/ts/ts/Json/Table/CellTable.d.ts +1 -1
  193. package/dist/ts/ts/Json/Table/CellTable.js +53 -0
  194. package/dist/ts/ts/Json/Table/CompositeCell.d.ts +1 -1
  195. package/dist/ts/ts/Json/Table/CompositeCell.js +106 -0
  196. package/dist/ts/ts/Json/Table/CompositeHeader.d.ts +1 -1
  197. package/dist/ts/ts/Json/Table/CompositeHeader.js +121 -0
  198. package/dist/ts/ts/Json/Table/IOType.d.ts +1 -1
  199. package/dist/ts/ts/Json/Table/IOType.js +15 -0
  200. package/dist/ts/ts/Json/Table/OATable.d.ts +1 -1
  201. package/dist/ts/ts/Json/Table/OATable.js +50 -0
  202. package/dist/ts/ts/Json/Table/Templates.d.ts +1 -1
  203. package/dist/ts/ts/Json/Table/Templates.js +15 -0
  204. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.d.ts +1 -1
  205. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +61 -0
  206. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.d.ts +1 -1
  207. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +29 -0
  208. package/dist/ts/ts/Json/context/rocrate/isa_data_context.d.ts +1 -1
  209. package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +41 -0
  210. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.d.ts +1 -1
  211. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +69 -0
  212. package/dist/ts/ts/Json/context/rocrate/isa_material_context.d.ts +1 -1
  213. package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +37 -0
  214. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.d.ts +1 -1
  215. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +37 -0
  216. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.d.ts +1 -1
  217. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +41 -0
  218. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.d.ts +1 -1
  219. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +25 -0
  220. package/dist/ts/ts/Json/context/rocrate/isa_person_context.d.ts +1 -1
  221. package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +86 -0
  222. package/dist/ts/ts/Json/context/rocrate/isa_process_context.d.ts +1 -1
  223. package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +57 -0
  224. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.d.ts +1 -1
  225. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +61 -0
  226. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.d.ts +1 -1
  227. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +45 -0
  228. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.d.ts +1 -1
  229. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +33 -0
  230. package/dist/ts/ts/Json/context/rocrate/isa_source_context.d.ts +1 -1
  231. package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +33 -0
  232. package/dist/ts/ts/Json/context/rocrate/isa_study_context.d.ts +1 -1
  233. package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +77 -0
  234. package/dist/ts/ts/Json/context/rocrate/property_value_context.d.ts +1 -1
  235. package/dist/ts/ts/Json/context/rocrate/property_value_context.js +61 -0
  236. package/dist/ts/ts/Json/context/rocrate/rocrate_context.d.ts +1 -1
  237. package/dist/ts/ts/Json.js +171 -0
  238. package/dist/ts/ts/JsonIO/Assay.js +77 -0
  239. package/dist/ts/ts/JsonIO/Investigation.js +77 -0
  240. package/dist/ts/ts/JsonIO/LDObject.js +77 -0
  241. package/dist/ts/ts/JsonIO/OntologyAnnotation.js +56 -0
  242. package/dist/ts/ts/JsonIO/Study.js +77 -0
  243. package/dist/ts/ts/JsonIO/Table/Compression.d.ts +1 -1
  244. package/dist/ts/ts/JsonIO/Table/Compression.js +39 -0
  245. package/dist/ts/ts/JsonIO/Table/Templates.d.ts +1 -1
  246. package/dist/ts/ts/JsonIO/Table/Templates.js +25 -0
  247. package/dist/ts/ts/ROCrate/Generic/Comment.js +103 -0
  248. package/dist/ts/ts/ROCrate/Generic/Dataset.js +624 -0
  249. package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +103 -0
  250. package/dist/ts/ts/ROCrate/Generic/File.js +184 -0
  251. package/dist/ts/ts/ROCrate/Generic/LabProcess.js +222 -0
  252. package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +257 -0
  253. package/dist/ts/ts/ROCrate/Generic/Organization.js +63 -0
  254. package/dist/ts/ts/ROCrate/Generic/Person.js +377 -0
  255. package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +143 -0
  256. package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +512 -0
  257. package/dist/ts/ts/ROCrate/Generic/Sample.js +131 -0
  258. package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +173 -0
  259. package/dist/ts/ts/ROCrate/Helper.js +7 -0
  260. package/dist/ts/ts/ROCrate/LDContext.js +288 -0
  261. package/dist/ts/ts/ROCrate/LDObject.js +855 -0
  262. package/dist/ts/ts/ROCrate/ROCrateContext.js +39 -0
  263. package/dist/ts/ts/ROCrateIO.d.ts +1 -1
  264. package/dist/ts/ts/ROCrateIO.js +58 -0
  265. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts +2 -2
  266. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
  267. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +149 -0
  268. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +63 -0
  269. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts +2 -2
  270. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
  271. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +108 -0
  272. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +410 -0
  273. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts +2 -2
  274. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
  275. package/dist/ts/ts/Spreadsheet/ArcAssay.js +169 -0
  276. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts +2 -2
  277. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
  278. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +316 -0
  279. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts +2 -2
  280. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
  281. package/dist/ts/ts/Spreadsheet/ArcRun.js +136 -0
  282. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts +2 -2
  283. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
  284. package/dist/ts/ts/Spreadsheet/ArcStudy.js +92 -0
  285. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts +2 -2
  286. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
  287. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +125 -0
  288. package/dist/ts/ts/Spreadsheet/CollectionAux.js +34 -0
  289. package/dist/ts/ts/Spreadsheet/DataMap.d.ts +1 -1
  290. package/dist/ts/ts/Spreadsheet/DataMap.d.ts.map +1 -1
  291. package/dist/ts/ts/Spreadsheet/DataMap.js +33 -0
  292. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts +2 -2
  293. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts.map +1 -1
  294. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +41 -0
  295. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts +1 -1
  296. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts.map +1 -1
  297. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +418 -0
  298. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts +3 -3
  299. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts.map +1 -1
  300. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +85 -0
  301. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +90 -0
  302. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +58 -0
  303. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +85 -0
  304. package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +133 -0
  305. package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +15 -0
  306. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +74 -0
  307. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +58 -0
  308. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +62 -0
  309. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +94 -0
  310. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +81 -0
  311. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +91 -0
  312. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts +3 -3
  313. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
  314. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +193 -0
  315. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +238 -0
  316. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +105 -0
  317. package/dist/ts/ts/Template.Web.js +22 -0
  318. package/dist/ts/ts/ValidationPackages/ValidationPackage.js +53 -0
  319. package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +78 -0
  320. package/dist/ts/ts/WebRequest/WebRequest.Node.js +13 -0
  321. package/dist/ts/ts/WebRequest/WebRequest.js +19 -0
  322. package/dist/ts/ts/Xlsx.d.ts +1 -1
  323. package/dist/ts/ts/Xlsx.d.ts.map +1 -1
  324. package/dist/ts/ts/Xlsx.js +91 -0
  325. package/dist/ts/ts/Yaml/Encode.js +8 -0
  326. package/dist/ts/ts/Yaml/ValidationPackage.js +26 -0
  327. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +40 -0
  328. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +344 -0
  329. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +103 -0
  330. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +19 -0
  331. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +17 -0
  332. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +7 -0
  333. package/dist/ts/ts/fable_modules/Fable.Exceljs.1.6.0/ExcelJs.fs.js +5 -0
  334. package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +18 -0
  335. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +44 -0
  336. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +5 -0
  337. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +142 -0
  338. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +76 -0
  339. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +359 -0
  340. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +344 -0
  341. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +154 -0
  342. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +116 -0
  343. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +126 -0
  344. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +135 -0
  345. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +422 -0
  346. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +5 -0
  347. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +25 -0
  348. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +28 -0
  349. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -0
  350. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +69 -0
  351. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +42 -0
  352. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +29 -0
  353. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +348 -0
  354. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +86 -0
  355. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +68 -0
  356. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +12 -0
  357. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +54 -0
  358. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +33 -0
  359. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +63 -0
  360. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +66 -0
  361. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +544 -0
  362. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +31 -0
  363. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +38 -0
  364. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +79 -0
  365. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js +57 -0
  366. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +235 -0
  367. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +16 -0
  368. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +45 -0
  369. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +89 -0
  370. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +480 -0
  371. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +11 -0
  372. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +212 -0
  373. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +164 -0
  374. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +136 -0
  375. package/package.json +10 -7
  376. package/dist/ts/__vite-browser-external-2447137e.js +0 -4
  377. package/dist/ts/__vite-browser-external-b3701507.cjs +0 -1
  378. package/dist/ts/arctrl.cjs.js +0 -5691
  379. package/dist/ts/arctrl.es.js +0 -35562
  380. package/dist/ts/arctrl.umd.js +0 -5691
@@ -0,0 +1,280 @@
1
+ import { value, unwrap, map } from '../../node_modules/@fable-org/fable-library-js/Option.js';
2
+ import { OntologyAnnotation } from '../Core/OntologyAnnotation.js';
3
+ import { Value } from '../Core/Value.js';
4
+ import { choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
5
+ import { tryInclude } from './Encode.js';
6
+ import { context_jsonvalue } from './context/rocrate/property_value_context.js';
7
+ import { map as map$1 } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
8
+ import { object, string } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
9
+ import { AnnotationValue_decoder } from './OntologyAnnotation.js';
10
+
11
+ function genID(p) {
12
+ const matchValue = p.GetCategory();
13
+ const matchValue_1 = p.GetValue();
14
+ const matchValue_2 = p.GetUnit();
15
+ let matchResult, t, u, v, t_1, v_1;
16
+ if (matchValue != null) {
17
+ if (matchValue_1 != null) {
18
+ if (matchValue_2 == null) {
19
+ matchResult = 1;
20
+ t_1 = value(matchValue);
21
+ v_1 = value(matchValue_1);
22
+ } else {
23
+ matchResult = 0;
24
+ t = value(matchValue);
25
+ u = value(matchValue_2);
26
+ v = value(matchValue_1);
27
+ }
28
+ } else {
29
+ matchResult = 2;
30
+ }
31
+ } else {
32
+ matchResult = 2;
33
+ }
34
+ switch (matchResult) {
35
+ case 0:
36
+ return `#${p.GetAdditionalType()}/${t.NameText}=${v.Text}${u.NameText}`;
37
+ case 1:
38
+ return `#${p.GetAdditionalType()}/${t_1.NameText}=${v_1.Text}`;
39
+ default:
40
+ return `#Empty${p.GetAdditionalType()}`;
41
+ }
42
+ }
43
+ function encoder(pv) {
44
+ let value_8, value_10;
45
+ let patternInput;
46
+ const matchValue = pv.GetCategory();
47
+ if (matchValue == null) {
48
+ patternInput = [void 0, void 0];
49
+ } else {
50
+ const oa = value(matchValue);
51
+ patternInput = [oa.Name, oa.TermAccessionNumber];
52
+ }
53
+ let patternInput_1;
54
+ const matchValue_1 = pv.GetValue();
55
+ if (matchValue_1 == null) {
56
+ patternInput_1 = [void 0, void 0];
57
+ } else {
58
+ const v = value(matchValue_1);
59
+ switch (v.tag) {
60
+ case /* Int */
61
+ 1: {
62
+ const t_1 = v.fields[0] | 0;
63
+ patternInput_1 = [{
64
+ Encode(helpers_1) {
65
+ return helpers_1.encodeSignedIntegralNumber(t_1);
66
+ }
67
+ }, void 0];
68
+ break;
69
+ }
70
+ case /* Float */
71
+ 2: {
72
+ const t_2 = v.fields[0];
73
+ patternInput_1 = [{
74
+ Encode(helpers_2) {
75
+ return helpers_2.encodeDecimalNumber(t_2);
76
+ }
77
+ }, void 0];
78
+ break;
79
+ }
80
+ case /* Ontology */
81
+ 0: {
82
+ const oa_1 = v.fields[0];
83
+ patternInput_1 = [map((value_3) => ({
84
+ Encode(helpers_3) {
85
+ return helpers_3.encodeString(value_3);
86
+ }
87
+ }), oa_1.Name), map((value_5) => ({
88
+ Encode(helpers_4) {
89
+ return helpers_4.encodeString(value_5);
90
+ }
91
+ }), oa_1.TermAccessionNumber)];
92
+ break;
93
+ }
94
+ default: {
95
+ const t = v.fields[0];
96
+ patternInput_1 = [{
97
+ Encode(helpers) {
98
+ return helpers.encodeString(t);
99
+ }
100
+ }, void 0];
101
+ }
102
+ }
103
+ }
104
+ let patternInput_2;
105
+ const matchValue_2 = pv.GetUnit();
106
+ if (matchValue_2 == null) {
107
+ patternInput_2 = [void 0, void 0];
108
+ } else {
109
+ const oa_2 = value(matchValue_2);
110
+ patternInput_2 = [oa_2.Name, oa_2.TermAccessionNumber];
111
+ }
112
+ const values_1 = choose((tupledArg) => map((v_1_1) => [tupledArg[0], v_1_1], tupledArg[1]), ofArray([["@id", (value_8 = genID(pv), {
113
+ Encode(helpers_5) {
114
+ return helpers_5.encodeString(value_8);
115
+ }
116
+ })], ["@type", {
117
+ Encode(helpers_6) {
118
+ return helpers_6.encodeString("PropertyValue");
119
+ }
120
+ }], ["additionalType", (value_10 = pv.GetAdditionalType(), {
121
+ Encode(helpers_7) {
122
+ return helpers_7.encodeString(value_10);
123
+ }
124
+ })], tryInclude("alternateName", (value_11) => ({
125
+ Encode(helpers_8) {
126
+ return helpers_8.encodeString(value_11);
127
+ }
128
+ }), pv.AlternateName()), tryInclude("measurementMethod", (value_13) => ({
129
+ Encode(helpers_9) {
130
+ return helpers_9.encodeString(value_13);
131
+ }
132
+ }), pv.MeasurementMethod()), tryInclude("description", (value_15) => ({
133
+ Encode(helpers_10) {
134
+ return helpers_10.encodeString(value_15);
135
+ }
136
+ }), pv.Description()), tryInclude("category", (value_17) => ({
137
+ Encode(helpers_11) {
138
+ return helpers_11.encodeString(value_17);
139
+ }
140
+ }), patternInput[0]), tryInclude("categoryCode", (value_19) => ({
141
+ Encode(helpers_12) {
142
+ return helpers_12.encodeString(value_19);
143
+ }
144
+ }), patternInput[1]), tryInclude("value", (x) => x, patternInput_1[0]), tryInclude("valueCode", (x_1) => x_1, patternInput_1[1]), tryInclude("unit", (value_21) => ({
145
+ Encode(helpers_13) {
146
+ return helpers_13.encodeString(value_21);
147
+ }
148
+ }), patternInput_2[0]), tryInclude("unitCode", (value_23) => ({
149
+ Encode(helpers_14) {
150
+ return helpers_14.encodeString(value_23);
151
+ }
152
+ }), patternInput_2[1]), ["@context", context_jsonvalue]]));
153
+ return {
154
+ Encode(helpers_15) {
155
+ const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_15)], values_1);
156
+ return helpers_15.encodeObject(arg);
157
+ }
158
+ };
159
+ }
160
+ function decoder(create) {
161
+ return object((get$) => {
162
+ let value$1, objectArg_7, code_4, objectArg_8;
163
+ let alternateName;
164
+ const objectArg = get$.Optional;
165
+ alternateName = objectArg.Field("alternateName", string);
166
+ let measurementMethod;
167
+ const objectArg_1 = get$.Optional;
168
+ measurementMethod = objectArg_1.Field("measurementMethod", string);
169
+ let description;
170
+ const objectArg_2 = get$.Optional;
171
+ description = objectArg_2.Field("description", string);
172
+ let category;
173
+ let name;
174
+ const objectArg_3 = get$.Optional;
175
+ name = objectArg_3.Field("category", string);
176
+ let code;
177
+ const objectArg_4 = get$.Optional;
178
+ code = objectArg_4.Field("categoryCode", string);
179
+ let matchResult, code_1;
180
+ if (name == null) {
181
+ if (code != null) {
182
+ if (value(code) === "") {
183
+ matchResult = 0;
184
+ } else {
185
+ matchResult = 2;
186
+ code_1 = value(code);
187
+ }
188
+ } else {
189
+ matchResult = 0;
190
+ }
191
+ } else if (code != null) {
192
+ if (value(code) === "") {
193
+ matchResult = 1;
194
+ } else {
195
+ matchResult = 2;
196
+ code_1 = value(code);
197
+ }
198
+ } else {
199
+ matchResult = 1;
200
+ }
201
+ switch (matchResult) {
202
+ case 0: {
203
+ category = void 0;
204
+ break;
205
+ }
206
+ case 1: {
207
+ try {
208
+ category = OntologyAnnotation.create(unwrap(name));
209
+ } catch (err) {
210
+ throw new Error(`Error while decoding category (name:${name}): ${err}`);
211
+ }
212
+ break;
213
+ }
214
+ default:
215
+ try {
216
+ category = OntologyAnnotation.fromTermAnnotation(code_1, unwrap(name));
217
+ } catch (err_1) {
218
+ throw new Error(`Error while decoding category (name:${name}, code:${code_1}): ${err_1}`);
219
+ }
220
+ }
221
+ let unit;
222
+ let name_1;
223
+ const objectArg_5 = get$.Optional;
224
+ name_1 = objectArg_5.Field("unit", string);
225
+ let code_2;
226
+ const objectArg_6 = get$.Optional;
227
+ code_2 = objectArg_6.Field("unitCode", string);
228
+ let matchResult_1, code_3;
229
+ if (name_1 == null) {
230
+ if (code_2 != null) {
231
+ if (value(code_2) === "") {
232
+ matchResult_1 = 0;
233
+ } else {
234
+ matchResult_1 = 2;
235
+ code_3 = value(code_2);
236
+ }
237
+ } else {
238
+ matchResult_1 = 0;
239
+ }
240
+ } else if (code_2 != null) {
241
+ if (value(code_2) === "") {
242
+ matchResult_1 = 1;
243
+ } else {
244
+ matchResult_1 = 2;
245
+ code_3 = value(code_2);
246
+ }
247
+ } else {
248
+ matchResult_1 = 1;
249
+ }
250
+ switch (matchResult_1) {
251
+ case 0: {
252
+ unit = void 0;
253
+ break;
254
+ }
255
+ case 1: {
256
+ try {
257
+ unit = OntologyAnnotation.create(unwrap(name_1));
258
+ } catch (err_2) {
259
+ throw new Error(`Error while decoding unit (name:${name_1}): ${err_2}`);
260
+ }
261
+ break;
262
+ }
263
+ default:
264
+ try {
265
+ unit = OntologyAnnotation.fromTermAnnotation(code_3, unwrap(name_1));
266
+ } catch (err_3) {
267
+ throw new Error(`Error while decoding unit (name:${name_1}, code:${code_3}): ${err_3}`);
268
+ }
269
+ }
270
+ return create(alternateName, measurementMethod, description, category, (value$1 = (objectArg_7 = get$.Optional, objectArg_7.Field("value", AnnotationValue_decoder)), code_4 = (objectArg_8 = get$.Optional, objectArg_8.Field("valueCode", string)), value$1 == null && code_4 == null ? void 0 : (() => {
271
+ try {
272
+ return Value.fromOptions(value$1, void 0, code_4);
273
+ } catch (err_4) {
274
+ throw new Error(`Error while decoding value ${value$1},${code_4}: ${err_4}`);
275
+ }
276
+ })()), unit);
277
+ });
278
+ }
279
+
280
+ export { decoder, encoder, genID };
@@ -1,6 +1,6 @@
1
1
  import { FSharpList } from '@fable-org/fable-library-js/List.js';
2
2
  import { Option } from '@fable-org/fable-library-js/Option.js';
3
- import { Decoder$1, IEncodable } from '../fable_modules/Thoth.Json.Core.0.4.0/Types.fs.js';
3
+ import { Decoder$1, IEncodable } from '../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
4
4
  import { Publication } from '../Core/Publication.js';
5
5
  import { IMap } from '@fable-org/fable-library-js/Util.js';
6
6
  export declare function encoder(oa: Publication): IEncodable;
@@ -0,0 +1,123 @@
1
+ import { ofArray, choose } from '../../node_modules/@fable-org/fable-library-js/List.js';
2
+ import { unwrap, map, value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
3
+ import { tryInclude, tryIncludeSeq } from './Encode.js';
4
+ import { OntologyAnnotation_decoder, OntologyAnnotation_ROCrate_decoderDefinedTerm, OntologyAnnotation_encoder, OntologyAnnotation_ROCrate_encoderDefinedTerm } from './OntologyAnnotation.js';
5
+ import { decoder as decoder$1, ROCrate_decoderDisambiguatingDescription, encoder as encoder$1, ROCrate_encoderDisambiguatingDescription, ISAJson_encoder as ISAJson_encoder$1 } from './Comment.js';
6
+ import { map as map$1 } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
7
+ import { Publication } from '../Core/Publication.js';
8
+ import { object, string, resizeArray } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
9
+ import { Decode_noAdditionalProperties, Decode_uri } from './Decode.js';
10
+ import { replace } from '../../node_modules/@fable-org/fable-library-js/String.js';
11
+ import { ROCrate_decodeAuthorListString, ROCrate_encodeAuthorListString } from './Person.js';
12
+ import { context_jsonvalue } from './context/rocrate/isa_publication_context.js';
13
+
14
+ function encoder(oa) {
15
+ const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("pubMedID", (value) => ({
16
+ Encode(helpers) {
17
+ return helpers.encodeString(value);
18
+ }
19
+ }), oa.PubMedID), tryInclude("doi", (value_2) => ({
20
+ Encode(helpers_1) {
21
+ return helpers_1.encodeString(value_2);
22
+ }
23
+ }), oa.DOI), tryInclude("authorList", (value_4) => ({
24
+ Encode(helpers_2) {
25
+ return helpers_2.encodeString(value_4);
26
+ }
27
+ }), oa.Authors), tryInclude("title", (value_6) => ({
28
+ Encode(helpers_3) {
29
+ return helpers_3.encodeString(value_6);
30
+ }
31
+ }), oa.Title), tryInclude("status", OntologyAnnotation_encoder, oa.Status), tryIncludeSeq("comments", encoder$1, oa.Comments)]));
32
+ return {
33
+ Encode(helpers_4) {
34
+ const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_4)], values_1);
35
+ return helpers_4.encodeObject(arg);
36
+ }
37
+ };
38
+ }
39
+ const decoder = object((get$) => {
40
+ let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, arg_11, objectArg_5;
41
+ return new Publication(unwrap((objectArg = get$.Optional, objectArg.Field("pubMedID", Decode_uri))), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("doi", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("authorList", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("title", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("status", OntologyAnnotation_decoder))), unwrap((arg_11 = resizeArray(decoder$1), objectArg_5 = get$.Optional, objectArg_5.Field("comments", arg_11))));
42
+ });
43
+ function ROCrate_genID(p) {
44
+ const matchValue = p.DOI;
45
+ if (matchValue == null) {
46
+ const matchValue_1 = p.PubMedID;
47
+ if (matchValue_1 == null) {
48
+ const matchValue_2 = p.Title;
49
+ if (matchValue_2 == null) {
50
+ return "#EmptyPublication";
51
+ } else {
52
+ return "#Pub_" + replace(value(matchValue_2), " ", "_");
53
+ }
54
+ } else {
55
+ return value(matchValue_1);
56
+ }
57
+ } else {
58
+ return value(matchValue);
59
+ }
60
+ }
61
+ function ROCrate_encoder(oa) {
62
+ let value;
63
+ const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["@id", (value = ROCrate_genID(oa), {
64
+ Encode(helpers) {
65
+ return helpers.encodeString(value);
66
+ }
67
+ })], ["@type", {
68
+ Encode(helpers_1) {
69
+ return helpers_1.encodeString("Publication");
70
+ }
71
+ }], tryInclude("pubMedID", (value_2) => ({
72
+ Encode(helpers_2) {
73
+ return helpers_2.encodeString(value_2);
74
+ }
75
+ }), oa.PubMedID), tryInclude("doi", (value_4) => ({
76
+ Encode(helpers_3) {
77
+ return helpers_3.encodeString(value_4);
78
+ }
79
+ }), oa.DOI), tryInclude("authorList", ROCrate_encodeAuthorListString, oa.Authors), tryInclude("title", (value_6) => ({
80
+ Encode(helpers_4) {
81
+ return helpers_4.encodeString(value_6);
82
+ }
83
+ }), oa.Title), tryInclude("status", OntologyAnnotation_ROCrate_encoderDefinedTerm, oa.Status), tryIncludeSeq("comments", ROCrate_encoderDisambiguatingDescription, oa.Comments), ["@context", context_jsonvalue]]));
84
+ return {
85
+ Encode(helpers_5) {
86
+ const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_5)], values_1);
87
+ return helpers_5.encodeObject(arg);
88
+ }
89
+ };
90
+ }
91
+ const ROCrate_decoder = object((get$) => {
92
+ let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, arg_11, objectArg_5;
93
+ return new Publication(unwrap((objectArg = get$.Optional, objectArg.Field("pubMedID", Decode_uri))), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("doi", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("authorList", ROCrate_decodeAuthorListString))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("title", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("status", OntologyAnnotation_ROCrate_decoderDefinedTerm))), unwrap((arg_11 = resizeArray(ROCrate_decoderDisambiguatingDescription), objectArg_5 = get$.Optional, objectArg_5.Field("comments", arg_11))));
94
+ });
95
+ function ISAJson_encoder(idMap, oa) {
96
+ const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("pubMedID", (value) => ({
97
+ Encode(helpers) {
98
+ return helpers.encodeString(value);
99
+ }
100
+ }), oa.PubMedID), tryInclude("doi", (value_2) => ({
101
+ Encode(helpers_1) {
102
+ return helpers_1.encodeString(value_2);
103
+ }
104
+ }), oa.DOI), tryInclude("authorList", (value_4) => ({
105
+ Encode(helpers_2) {
106
+ return helpers_2.encodeString(value_4);
107
+ }
108
+ }), oa.Authors), tryInclude("title", (value_6) => ({
109
+ Encode(helpers_3) {
110
+ return helpers_3.encodeString(value_6);
111
+ }
112
+ }), oa.Title), tryInclude("status", OntologyAnnotation_encoder, oa.Status), tryIncludeSeq("comments", (comment) => ISAJson_encoder$1(idMap, comment), oa.Comments)]));
113
+ return {
114
+ Encode(helpers_4) {
115
+ const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_4)], values_1);
116
+ return helpers_4.encodeObject(arg);
117
+ }
118
+ };
119
+ }
120
+ const ISAJson_allowedFields = ofArray(["pubMedID", "doi", "authorList", "title", "status", "comments"]);
121
+ const ISAJson_decoder = Decode_noAdditionalProperties(ISAJson_allowedFields, decoder);
122
+
123
+ export { ISAJson_allowedFields, ISAJson_decoder, ISAJson_encoder, ROCrate_decoder, ROCrate_encoder, ROCrate_genID, decoder, encoder };
@@ -1,4 +1,4 @@
1
- import { IEncodable, Decoder$1 } from '../../fable_modules/Thoth.Json.Core.0.4.0/Types.fs.js';
1
+ import { IEncodable, Decoder$1 } from '../../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
2
2
  import { LDContext } from '../../ROCrate/LDContext.js';
3
3
  export declare const decoder: Decoder$1<LDContext>;
4
4
  export declare function encoder(ctx_mut: LDContext): IEncodable;
@@ -0,0 +1,115 @@
1
+ import { ErrorReason$1_BadOneOf, ErrorReason$1_BadPrimitive } from '../../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
2
+ import { LDContext } from '../../ROCrate/LDContext.js';
3
+ import { Getters$2_$ctor_Z4BE6C149, string, Getters$2__get_Errors, resizeArray } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
4
+ import { getEnumerator, disposeSafe } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
5
+ import { isEmpty, length, head } from '../../../node_modules/@fable-org/fable-library-js/List.js';
6
+ import { FSharpResult$2_Error, FSharpResult$2_Ok } from '../../../node_modules/@fable-org/fable-library-js/Result.js';
7
+ import { initV1_2DRAFT, initV1_1 } from '../../ROCrate/ROCrateContext.js';
8
+ import { value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
9
+ import { map, append, toList, delay, singleton, empty } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
10
+ import { seq } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
11
+
12
+ const decoder = {
13
+ Decode(helpers, value) {
14
+ let objectArg;
15
+ const this$ = this;
16
+ if (helpers.isObject(value)) {
17
+ const getters = Getters$2_$ctor_Z4BE6C149(helpers, value);
18
+ const properties = helpers.getProperties(value);
19
+ let result;
20
+ const get$ = getters;
21
+ const o = new LDContext();
22
+ const enumerator = getEnumerator(properties);
23
+ try {
24
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
25
+ const property = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
26
+ if (property !== "@id" && property !== "@type") {
27
+ o.AddMapping(property, (objectArg = get$.Required, objectArg.Field(property, string)));
28
+ }
29
+ }
30
+ } finally {
31
+ disposeSafe(enumerator);
32
+ }
33
+ result = o;
34
+ const matchValue = Getters$2__get_Errors(getters);
35
+ if (!isEmpty(matchValue)) {
36
+ const errors = matchValue;
37
+ return length(errors) > 1 ? FSharpResult$2_Error(["", ErrorReason$1_BadOneOf(errors)]) : FSharpResult$2_Error(head(matchValue));
38
+ } else {
39
+ return FSharpResult$2_Ok(result);
40
+ }
41
+ } else if (helpers.isString(value)) {
42
+ const s = helpers.asString(value);
43
+ return s === "https://w3id.org/ro/crate/1.2-DRAFT/context" ? FSharpResult$2_Ok(initV1_2DRAFT()) : s === "https://w3id.org/ro/crate/1.1/context" ? FSharpResult$2_Ok(initV1_1()) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an object", value)]);
44
+ } else if (helpers.isArray(value)) {
45
+ const matchValue_1 = resizeArray(this$).Decode(helpers, value);
46
+ return matchValue_1.tag === /* Error */
47
+ 1 ? FSharpResult$2_Error(matchValue_1.fields[0]) : FSharpResult$2_Ok(new LDContext(void 0, matchValue_1.fields[0]));
48
+ } else {
49
+ return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an object", value)]);
50
+ }
51
+ }
52
+ };
53
+ function encoder(ctx_mut) {
54
+ let source_4;
55
+ encoder:
56
+ while (true) {
57
+ const ctx = ctx_mut;
58
+ const matchValue = ctx.Name;
59
+ let matchResult;
60
+ if (matchValue != null) {
61
+ switch (value(matchValue)) {
62
+ case "https://w3id.org/ro/crate/1.2-DRAFT/context": {
63
+ matchResult = 0;
64
+ break;
65
+ }
66
+ case "https://w3id.org/ro/crate/1.1/context": {
67
+ matchResult = 1;
68
+ break;
69
+ }
70
+ default:
71
+ matchResult = 2;
72
+ }
73
+ } else {
74
+ matchResult = 2;
75
+ }
76
+ switch (matchResult) {
77
+ case 0:
78
+ return {
79
+ Encode(helpers) {
80
+ return helpers.encodeString("https://w3id.org/ro/crate/1.2-DRAFT/context");
81
+ }
82
+ };
83
+ case 1:
84
+ return {
85
+ Encode(helpers_1) {
86
+ return helpers_1.encodeString("https://w3id.org/ro/crate/1.1/context");
87
+ }
88
+ };
89
+ default: {
90
+ let mappings;
91
+ const values = map((kv) => [kv[0], {
92
+ Encode(helpers_2) {
93
+ return helpers_2.encodeString(kv[1]);
94
+ }
95
+ }], ctx.Mappings);
96
+ mappings = {
97
+ Encode(helpers_3) {
98
+ const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_3)], values);
99
+ return helpers_3.encodeObject(arg);
100
+ }
101
+ };
102
+ if (ctx.BaseContexts.length === 0) {
103
+ return mappings;
104
+ } else if (ctx.BaseContexts.length === 1 && ctx.Mappings.size === 0) {
105
+ ctx_mut = ctx.BaseContexts[0];
106
+ continue encoder;
107
+ } else {
108
+ return seq((source_4 = map(encoder, ctx.BaseContexts), append(toList(delay(() => ctx.Mappings.size !== 0 ? singleton(mappings) : empty())), source_4)));
109
+ }
110
+ }
111
+ }
112
+ }
113
+ }
114
+
115
+ export { decoder, encoder };
@@ -1,4 +1,4 @@
1
- import { Decoder$1, IEncodable } from '../../fable_modules/Thoth.Json.Core.0.4.0/Types.fs.js';
1
+ import { Decoder$1, IEncodable } from '../../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
2
2
  import { LDGraph } from '../../ROCrate/LDObject.js';
3
3
  export declare function encoder(obj: LDGraph): IEncodable;
4
4
  export declare const decoder: Decoder$1<LDGraph>;
@@ -0,0 +1,83 @@
1
+ import { choose, isEmpty, length, head } from '../../../node_modules/@fable-org/fable-library-js/List.js';
2
+ import { map, unwrap } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
3
+ import { ErrorReason$1_BadOneOf, ErrorReason$1_BadPrimitive } from '../../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
4
+ import { toList, delay, map as map$1, append, singleton, collect, empty } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
5
+ import { tryInclude } from '../Encode.js';
6
+ import { decoder as decoder$1, encoder as encoder$1 } from './LDContext.js';
7
+ import { genericDecoder, decoder as decoder$2, genericEncoder, encoder as encoder$2 } from './LDNode.js';
8
+ import { seq } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
9
+ import { LDGraph } from '../../ROCrate/LDObject.js';
10
+ import { Getters$2_$ctor_Z4BE6C149, string, resizeArray, Getters$2__get_Errors } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
11
+ import { getEnumerator, disposeSafe } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
12
+ import { FSharpResult$2_Error, FSharpResult$2_Ok } from '../../../node_modules/@fable-org/fable-library-js/Result.js';
13
+
14
+ function encoder(obj) {
15
+ const values_2 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), toList(delay(() => append(singleton(tryInclude("@id", (value) => ({
16
+ Encode(helpers) {
17
+ return helpers.encodeString(value);
18
+ }
19
+ }), obj.Id)), delay(() => append(singleton(tryInclude("@context", encoder$1, obj.TryGetContext())), delay(() => append(collect((kv) => {
20
+ const l = kv[0].toLocaleLowerCase();
21
+ return l !== "id" && l !== "@context" && l !== "nodes" && l !== "mappings" ? singleton([kv[0], genericEncoder(kv[1])]) : empty();
22
+ }, obj.GetProperties(true)), delay(() => singleton(["@graph", seq(map$1(encoder$2, obj.Nodes))]))))))))));
23
+ return {
24
+ Encode(helpers_1) {
25
+ const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_1)], values_2);
26
+ return helpers_1.encodeObject(arg);
27
+ }
28
+ };
29
+ }
30
+ const decoder = {
31
+ Decode(helpers, value) {
32
+ let objectArg_3;
33
+ if (helpers.isObject(value)) {
34
+ const getters = Getters$2_$ctor_Z4BE6C149(helpers, value);
35
+ const properties = helpers.getProperties(value);
36
+ let result;
37
+ const get$ = getters;
38
+ let id;
39
+ const objectArg = get$.Optional;
40
+ id = objectArg.Field("@id", string);
41
+ let context;
42
+ const objectArg_1 = get$.Optional;
43
+ context = objectArg_1.Field("@context", decoder$1);
44
+ let nodes;
45
+ const arg_5 = resizeArray(decoder$2);
46
+ const objectArg_2 = get$.Required;
47
+ nodes = objectArg_2.Field("@graph", arg_5);
48
+ const o = new LDGraph(unwrap(id), void 0, unwrap(context));
49
+ const enumerator = getEnumerator(properties);
50
+ try {
51
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
52
+ const property = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
53
+ if (property !== "@id" && property !== "@graph" && property !== "@context") {
54
+ o.SetProperty(property, (objectArg_3 = get$.Required, objectArg_3.Field(property, genericDecoder)));
55
+ }
56
+ }
57
+ } finally {
58
+ disposeSafe(enumerator);
59
+ }
60
+ let enumerator_1 = getEnumerator(nodes);
61
+ try {
62
+ while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
63
+ const node = enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
64
+ o.AddNode(node);
65
+ }
66
+ } finally {
67
+ disposeSafe(enumerator_1);
68
+ }
69
+ result = o;
70
+ const matchValue = Getters$2__get_Errors(getters);
71
+ if (!isEmpty(matchValue)) {
72
+ const errors = matchValue;
73
+ return length(errors) > 1 ? FSharpResult$2_Error(["", ErrorReason$1_BadOneOf(errors)]) : FSharpResult$2_Error(head(matchValue));
74
+ } else {
75
+ return FSharpResult$2_Ok(result);
76
+ }
77
+ } else {
78
+ return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an object", value)]);
79
+ }
80
+ }
81
+ };
82
+
83
+ export { decoder, encoder };
@@ -1,4 +1,4 @@
1
- import { Decoder$1, IEncodable } from '../../fable_modules/Thoth.Json.Core.0.4.0/Types.fs.js';
1
+ import { Decoder$1, IEncodable } from '../../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
2
2
  import { LDNode } from '../../ROCrate/LDObject.js';
3
3
  export declare function genericEncoder(obj: any): IEncodable;
4
4
  export declare function encoder(obj: LDNode): IEncodable;