@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,544 @@
1
+ import { ErrorReason$1_BadOneOf, ErrorReason$1_BadPrimitive, ErrorReason$1_BadPrimitiveExtra, ErrorReason$1_TooSmallArray, ErrorReason$1_BadType, ErrorReason$1_BadField, ErrorReason$1_BadPath } from './Types.fs.js';
2
+ import { join } from '../../../node_modules/@fable-org/fable-library-js/String.js';
3
+ import { empty, isEmpty, head, tail, append, singleton, length, map as map$1, fold as fold$1, tryLast } from '../../../node_modules/@fable-org/fable-library-js/List.js';
4
+ import { FSharpResult$2_Error, FSharpResult$2_Ok, Result_MapError } from '../../../node_modules/@fable-org/fable-library-js/Result.js';
5
+ import { tryParse as tryParse$2 } from '../../../node_modules/@fable-org/fable-library-js/Guid.js';
6
+ import { FSharpRef } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
7
+ import { tryParse } from '../../../node_modules/@fable-org/fable-library-js/Int32.js';
8
+ import { tryParse as tryParse$1 } from '../../../node_modules/@fable-org/fable-library-js/Decimal.js';
9
+ import { some, value, defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
10
+ import { defaultOf, int32ToString, compare } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
11
+ import { item, fold, fill, setItem } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
12
+ import { toList } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
13
+ import { ofSeq } from '../../../node_modules/@fable-org/fable-library-js/Map.js';
14
+ import { Big } from '../../../node_modules/@fable-org/fable-library-js/lib/big.js';
15
+
16
+ function Helpers_prependPath(path, err_, err__1) {
17
+ const err = [err_, err__1];
18
+ return [path + err[0], err[1]];
19
+ }
20
+ function genericMsg(helpers, msg, value_1, newLine) {
21
+ try {
22
+ return "Expecting " + msg + " but instead got:" + (newLine ? "\n" : " ") + helpers.anyToString(value_1);
23
+ } catch (matchValue) {
24
+ return "Expecting " + msg + " but decoder failed. Couldn't report given value due to circular structure." + (newLine ? "\n" : " ");
25
+ }
26
+ }
27
+ function errorToString(helpers, path, error) {
28
+ let reason_1;
29
+ switch (error.tag) {
30
+ case /* BadType */
31
+ 2: {
32
+ reason_1 = genericMsg(helpers, error.fields[0], error.fields[1], true);
33
+ break;
34
+ }
35
+ case /* BadPrimitiveExtra */
36
+ 1: {
37
+ const reason = error.fields[2];
38
+ reason_1 = genericMsg(helpers, error.fields[0], error.fields[1], false) + "\nReason: " + reason;
39
+ break;
40
+ }
41
+ case /* BadField */
42
+ 3: {
43
+ reason_1 = genericMsg(helpers, error.fields[0], error.fields[1], true);
44
+ break;
45
+ }
46
+ case /* BadPath */
47
+ 4: {
48
+ const fieldName = error.fields[2];
49
+ reason_1 = genericMsg(helpers, error.fields[0], error.fields[1], true) + ("\nNode `" + fieldName + "` is unkown.");
50
+ break;
51
+ }
52
+ case /* TooSmallArray */
53
+ 5: {
54
+ const value_6 = error.fields[1];
55
+ reason_1 = "Expecting " + error.fields[0] + ".\n" + helpers.anyToString(value_6);
56
+ break;
57
+ }
58
+ case /* BadOneOf */
59
+ 7: {
60
+ reason_1 = "The following errors were found:\n\n" + join("\n\n", map$1((error_1) => {
61
+ const tupledArg = Helpers_prependPath(path, error_1[0], error_1[1]);
62
+ return errorToString(helpers, tupledArg[0], tupledArg[1]);
63
+ }, error.fields[0]));
64
+ break;
65
+ }
66
+ case /* FailMessage */
67
+ 6: {
68
+ reason_1 = "The following `failure` occurred with the decoder: " + error.fields[0];
69
+ break;
70
+ }
71
+ default:
72
+ reason_1 = genericMsg(helpers, error.fields[0], error.fields[1], false);
73
+ }
74
+ if (error.tag === /* BadOneOf */
75
+ 7) {
76
+ return reason_1;
77
+ } else {
78
+ return "Error at: `" + path + "`\n" + reason_1;
79
+ }
80
+ }
81
+ const string = {
82
+ Decode(helpers, value_1) {
83
+ return helpers.isString(value_1) ? FSharpResult$2_Ok(helpers.asString(value_1)) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a string", value_1)]);
84
+ }
85
+ };
86
+ const guid = {
87
+ Decode(helpers, value_1) {
88
+ if (helpers.isString(value_1)) {
89
+ let matchValue;
90
+ let outArg = "00000000-0000-0000-0000-000000000000";
91
+ matchValue = [tryParse$2(helpers.asString(value_1), new FSharpRef(() => outArg, (v) => {
92
+ outArg = v;
93
+ })), outArg];
94
+ return matchValue[0] ? FSharpResult$2_Ok(matchValue[1]) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a guid", value_1)]);
95
+ } else {
96
+ return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a guid", value_1)]);
97
+ }
98
+ }
99
+ };
100
+ const unit = {
101
+ Decode(helpers, value_1) {
102
+ return helpers.isNullValue(value_1) ? FSharpResult$2_Ok(void 0) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("null", value_1)]);
103
+ }
104
+ };
105
+ const int = {
106
+ Decode(helpers, value_2) {
107
+ if (helpers.isNumber(value_2)) {
108
+ if (helpers.isIntegralValue(value_2)) {
109
+ const floatValue = helpers.asFloat(value_2);
110
+ return -2147483648 <= floatValue && floatValue <= 2147483647 ? FSharpResult$2_Ok(~~floatValue) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitiveExtra("an int", value_2, "Value was either too large or too small for an int")]);
111
+ } else {
112
+ return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitiveExtra("an int", value_2, "Value is not an integral value")]);
113
+ }
114
+ } else if (helpers.isString(value_2)) {
115
+ let matchValue;
116
+ let outArg = 0;
117
+ matchValue = [tryParse(helpers.asString(value_2), 511, false, 32, new FSharpRef(() => outArg, (v) => {
118
+ outArg = v | 0;
119
+ })), outArg];
120
+ return matchValue[0] ? FSharpResult$2_Ok(matchValue[1]) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an int", value_2)]);
121
+ } else {
122
+ return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an int", value_2)]);
123
+ }
124
+ }
125
+ };
126
+ const bool = {
127
+ Decode(helpers, value_1) {
128
+ return helpers.isBoolean(value_1) ? FSharpResult$2_Ok(helpers.asBoolean(value_1)) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a boolean", value_1)]);
129
+ }
130
+ };
131
+ const float = {
132
+ Decode(helpers, value_1) {
133
+ return helpers.isNumber(value_1) ? FSharpResult$2_Ok(helpers.asFloat(value_1)) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a float", value_1)]);
134
+ }
135
+ };
136
+ const decimal = {
137
+ Decode(helpers, value_1) {
138
+ if (helpers.isNumber(value_1)) {
139
+ return FSharpResult$2_Ok(new Big(helpers.asFloat(value_1)));
140
+ } else if (helpers.isString(value_1)) {
141
+ let matchValue;
142
+ let outArg = new Big("0");
143
+ matchValue = [tryParse$1(helpers.asString(value_1), new FSharpRef(() => outArg, (v) => {
144
+ outArg = v;
145
+ })), outArg];
146
+ return matchValue[0] ? FSharpResult$2_Ok(matchValue[1]) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a decimal", value_1)]);
147
+ } else {
148
+ return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a decimal", value_1)]);
149
+ }
150
+ }
151
+ };
152
+ function decodeMaybeNull(helpers, path, decoder, value_1) {
153
+ let tupledArg;
154
+ if (helpers.isNullValue(value_1)) {
155
+ return FSharpResult$2_Ok(void 0);
156
+ } else {
157
+ const matchValue = decoder.Decode(helpers, value_1);
158
+ if (matchValue.tag === /* Error */
159
+ 1) {
160
+ return FSharpResult$2_Error((tupledArg = matchValue.fields[0], Helpers_prependPath(path, tupledArg[0], tupledArg[1])));
161
+ } else {
162
+ return FSharpResult$2_Ok(some(matchValue.fields[0]));
163
+ }
164
+ }
165
+ }
166
+ function optional(fieldName, decoder) {
167
+ return {
168
+ Decode(helpers, value_1) {
169
+ return helpers.isObject(value_1) ? helpers.hasProperty(fieldName, value_1) ? decodeMaybeNull(helpers, "." + fieldName, decoder, helpers.getProperty(fieldName, value_1)) : FSharpResult$2_Ok(void 0) : FSharpResult$2_Error(["", ErrorReason$1_BadType("an object", value_1)]);
170
+ }
171
+ };
172
+ }
173
+ function badPathError(fieldNames, currentPath, value_1) {
174
+ return FSharpResult$2_Error(["." + defaultArg(currentPath, join(".", fieldNames)), ErrorReason$1_BadPath("an object with path `" + join(".", fieldNames) + "`", value_1, defaultArg(tryLast(fieldNames), ""))]);
175
+ }
176
+ function optionalAt(fieldNames, decoder) {
177
+ return {
178
+ Decode(helpers, firstValue) {
179
+ const _arg = fold$1((tupledArg, field_1) => {
180
+ const curPath = tupledArg[0];
181
+ const curValue = tupledArg[1];
182
+ const res = tupledArg[2];
183
+ if (res == null) {
184
+ if (helpers.isNullValue(curValue)) {
185
+ return [curPath, curValue, FSharpResult$2_Ok(void 0)];
186
+ } else if (helpers.isObject(curValue)) {
187
+ if (helpers.hasProperty(field_1, curValue)) {
188
+ return [curPath + "." + field_1, helpers.getProperty(field_1, curValue), void 0];
189
+ } else {
190
+ return [curPath, curValue, FSharpResult$2_Ok(void 0)];
191
+ }
192
+ } else {
193
+ return [curPath, curValue, FSharpResult$2_Error([curPath, ErrorReason$1_BadType("an object", curValue)])];
194
+ }
195
+ } else {
196
+ return [curPath, curValue, res];
197
+ }
198
+ }, ["", firstValue, void 0], fieldNames);
199
+ if (_arg[2] == null) {
200
+ const lastValue = _arg[1];
201
+ return helpers.isNullValue(lastValue) ? FSharpResult$2_Ok(void 0) : decodeMaybeNull(helpers, _arg[0], decoder, lastValue);
202
+ } else {
203
+ return value(_arg[2]);
204
+ }
205
+ }
206
+ };
207
+ }
208
+ function field(fieldName, decoder) {
209
+ return {
210
+ Decode(helpers, value_1) {
211
+ if (helpers.isObject(value_1)) {
212
+ if (helpers.hasProperty(fieldName, value_1)) {
213
+ const fieldValue = helpers.getProperty(fieldName, value_1);
214
+ const path = "." + fieldName;
215
+ return Result_MapError((tupledArg) => Helpers_prependPath(path, tupledArg[0], tupledArg[1]), decoder.Decode(helpers, fieldValue));
216
+ } else {
217
+ return FSharpResult$2_Error(["", ErrorReason$1_BadField("an object with a field named `" + fieldName + "`", value_1)]);
218
+ }
219
+ } else {
220
+ return FSharpResult$2_Error(["", ErrorReason$1_BadType("an object", value_1)]);
221
+ }
222
+ }
223
+ };
224
+ }
225
+ function at(fieldNames, decoder) {
226
+ return {
227
+ Decode(helpers, firstValue) {
228
+ const _arg = fold$1((tupledArg, field_1) => {
229
+ const curPath = tupledArg[0];
230
+ const curValue = tupledArg[1];
231
+ const res = tupledArg[2];
232
+ if (res == null) {
233
+ if (helpers.isNullValue(curValue)) {
234
+ return [curPath, curValue, badPathError(fieldNames, curPath, firstValue)];
235
+ } else if (helpers.isObject(curValue)) {
236
+ if (helpers.hasProperty(field_1, curValue)) {
237
+ return [curPath + "." + field_1, helpers.getProperty(field_1, curValue), void 0];
238
+ } else {
239
+ return [curPath, curValue, badPathError(fieldNames, void 0, firstValue)];
240
+ }
241
+ } else {
242
+ return [curPath, curValue, FSharpResult$2_Error([curPath, ErrorReason$1_BadType("an object", curValue)])];
243
+ }
244
+ } else {
245
+ return [curPath, curValue, res];
246
+ }
247
+ }, ["", firstValue, void 0], fieldNames);
248
+ return _arg[2] == null ? Result_MapError((tupledArg_1) => Helpers_prependPath(_arg[0], tupledArg_1[0], tupledArg_1[1]), decoder.Decode(helpers, _arg[1])) : value(_arg[2]);
249
+ }
250
+ };
251
+ }
252
+ function index(requestedIndex, decoder) {
253
+ return {
254
+ Decode(helpers, value_1) {
255
+ if (helpers.isArray(value_1)) {
256
+ const vArray = helpers.asArray(value_1);
257
+ const path = ".[" + int32ToString(requestedIndex) + "]";
258
+ return requestedIndex < vArray.length ? Result_MapError((tupledArg) => Helpers_prependPath(path, tupledArg[0], tupledArg[1]), decoder.Decode(helpers, item(requestedIndex, vArray))) : FSharpResult$2_Error([path, ErrorReason$1_TooSmallArray("a longer array. Need index `" + int32ToString(requestedIndex) + "` but there are only `" + int32ToString(vArray.length) + "` entries", value_1)]);
259
+ } else {
260
+ return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an array", value_1)]);
261
+ }
262
+ }
263
+ };
264
+ }
265
+ function list(decoder) {
266
+ return {
267
+ Decode(helpers, value_1) {
268
+ let tupledArg;
269
+ if (helpers.isArray(value_1)) {
270
+ const tokens = helpers.asArray(value_1);
271
+ let i = 0;
272
+ let result = empty();
273
+ let error = void 0;
274
+ while (i < tokens.length && error == null) {
275
+ const value_2 = item(i, tokens);
276
+ const matchValue = decoder.Decode(helpers, value_2);
277
+ if (matchValue.tag === /* Error */
278
+ 1) {
279
+ const x = (tupledArg = matchValue.fields[0], Helpers_prependPath(".[" + int32ToString(i) + "]", tupledArg[0], tupledArg[1]));
280
+ error = x;
281
+ } else {
282
+ const value_3 = matchValue.fields[0];
283
+ result = append(result, singleton(value_3));
284
+ }
285
+ i = i + 1 | 0;
286
+ }
287
+ return error == null ? FSharpResult$2_Ok(result) : FSharpResult$2_Error(value(error));
288
+ } else {
289
+ return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a list", value_1)]);
290
+ }
291
+ }
292
+ };
293
+ }
294
+ function resizeArray(decoder) {
295
+ return {
296
+ Decode(helpers, value_1) {
297
+ let tupledArg;
298
+ if (helpers.isArray(value_1)) {
299
+ const tokens = helpers.asArray(value_1);
300
+ let i = 0;
301
+ const result = [];
302
+ let error = void 0;
303
+ while (i < tokens.length && error == null) {
304
+ const value_2 = item(i, tokens);
305
+ const matchValue = decoder.Decode(helpers, value_2);
306
+ if (matchValue.tag === /* Error */
307
+ 1) {
308
+ const er = matchValue.fields[0];
309
+ error = (tupledArg = er, Helpers_prependPath(".[" + int32ToString(i) + "]", tupledArg[0], tupledArg[1]));
310
+ } else {
311
+ const value_3 = matchValue.fields[0];
312
+ void result.push(value_3);
313
+ }
314
+ i = i + 1 | 0;
315
+ }
316
+ return error == null ? FSharpResult$2_Ok(Array.from(result)) : FSharpResult$2_Error(value(error));
317
+ } else {
318
+ return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a ResizeArray", value_1)]);
319
+ }
320
+ }
321
+ };
322
+ }
323
+ function array(decoder) {
324
+ return {
325
+ Decode(helpers, value_1) {
326
+ if (helpers.isArray(value_1)) {
327
+ let i = -1;
328
+ const tokens = helpers.asArray(value_1);
329
+ return fold((acc, value_2) => {
330
+ let tupledArg;
331
+ i = i + 1 | 0;
332
+ if (acc.tag === /* Ok */
333
+ 0) {
334
+ const acc_1 = acc.fields[0];
335
+ const matchValue = decoder.Decode(helpers, value_2);
336
+ if (matchValue.tag === /* Ok */
337
+ 0) {
338
+ const value_3 = matchValue.fields[0];
339
+ setItem(acc_1, i, value_3);
340
+ return FSharpResult$2_Ok(acc_1);
341
+ } else {
342
+ return FSharpResult$2_Error((tupledArg = matchValue.fields[0], Helpers_prependPath(".[" + int32ToString(i) + "]", tupledArg[0], tupledArg[1])));
343
+ }
344
+ } else {
345
+ return acc;
346
+ }
347
+ }, FSharpResult$2_Ok(fill(new Array(tokens.length), 0, tokens.length, null)), tokens);
348
+ } else {
349
+ return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an array", value_1)]);
350
+ }
351
+ }
352
+ };
353
+ }
354
+ function oneOf(decoders) {
355
+ return {
356
+ Decode(helpers, value_1) {
357
+ const runner = (decoders_1_mut, errors_mut) => {
358
+ runner:
359
+ while (true) {
360
+ const decoders_1 = decoders_1_mut, errors = errors_mut;
361
+ if (isEmpty(decoders_1)) {
362
+ return FSharpResult$2_Error(["", ErrorReason$1_BadOneOf(errors)]);
363
+ } else {
364
+ const matchValue = head(decoders_1).Decode(helpers, value_1);
365
+ if (matchValue.tag === /* Error */
366
+ 1) {
367
+ decoders_1_mut = tail(decoders_1);
368
+ errors_mut = append(errors, singleton(matchValue.fields[0]));
369
+ continue runner;
370
+ } else {
371
+ return FSharpResult$2_Ok(matchValue.fields[0]);
372
+ }
373
+ }
374
+ }
375
+ };
376
+ return runner(decoders, empty());
377
+ }
378
+ };
379
+ }
380
+ function succeed(output) {
381
+ return {
382
+ Decode(_arg, _arg_1) {
383
+ return FSharpResult$2_Ok(output);
384
+ }
385
+ };
386
+ }
387
+ function andThen(cb, decoder) {
388
+ return {
389
+ Decode(helpers, value_1) {
390
+ const matchValue = decoder.Decode(helpers, value_1);
391
+ if (matchValue.tag === /* Ok */
392
+ 0) {
393
+ const result = matchValue.fields[0];
394
+ return cb(result).Decode(helpers, value_1);
395
+ } else {
396
+ return FSharpResult$2_Error(matchValue.fields[0]);
397
+ }
398
+ }
399
+ };
400
+ }
401
+ function map(ctor, d1) {
402
+ return {
403
+ Decode(helpers, value_1) {
404
+ const matchValue = d1.Decode(helpers, value_1);
405
+ return matchValue.tag === /* Error */
406
+ 1 ? FSharpResult$2_Error(matchValue.fields[0]) : FSharpResult$2_Ok(ctor(matchValue.fields[0]));
407
+ }
408
+ };
409
+ }
410
+ function unwrapWith(errors, helpers, decoder, value_1) {
411
+ const matchValue = decoder.Decode(helpers, value_1);
412
+ if (matchValue.tag === /* Error */
413
+ 1) {
414
+ const er = matchValue.fields[0];
415
+ void errors.push(er);
416
+ return defaultOf();
417
+ } else {
418
+ return matchValue.fields[0];
419
+ }
420
+ }
421
+ class Getters$2 {
422
+ constructor(helpers, value_1) {
423
+ let _this, _this_1;
424
+ this.errors = [];
425
+ this.required = (_this = this, {
426
+ Field(fieldName, decoder) {
427
+ return unwrapWith(_this.errors, helpers, field(fieldName, decoder), value_1);
428
+ },
429
+ At(fieldNames, decoder_1) {
430
+ return unwrapWith(_this.errors, helpers, at(fieldNames, decoder_1), value_1);
431
+ },
432
+ Raw(decoder_2) {
433
+ return unwrapWith(_this.errors, helpers, decoder_2, value_1);
434
+ }
435
+ });
436
+ this.optional = (_this_1 = this, {
437
+ Field(fieldName_1, decoder_3) {
438
+ return unwrapWith(_this_1.errors, helpers, optional(fieldName_1, decoder_3), value_1);
439
+ },
440
+ At(fieldNames_1, decoder_4) {
441
+ return unwrapWith(_this_1.errors, helpers, optionalAt(fieldNames_1, decoder_4), value_1);
442
+ },
443
+ Raw(decoder_5) {
444
+ const matchValue = decoder_5.Decode(helpers, value_1);
445
+ if (matchValue.tag === /* Error */
446
+ 1) {
447
+ const reason = matchValue.fields[0][1];
448
+ const error = matchValue.fields[0];
449
+ let matchResult, v_1;
450
+ switch (reason.tag) {
451
+ case /* BadField */
452
+ 3:
453
+ case /* BadPath */
454
+ 4: {
455
+ matchResult = 1;
456
+ break;
457
+ }
458
+ case /* TooSmallArray */
459
+ 5:
460
+ case /* FailMessage */
461
+ 6:
462
+ case /* BadOneOf */
463
+ 7: {
464
+ matchResult = 2;
465
+ break;
466
+ }
467
+ case /* BadPrimitiveExtra */
468
+ 1: {
469
+ matchResult = 0;
470
+ v_1 = reason.fields[1];
471
+ break;
472
+ }
473
+ case /* BadType */
474
+ 2: {
475
+ matchResult = 0;
476
+ v_1 = reason.fields[1];
477
+ break;
478
+ }
479
+ default: {
480
+ matchResult = 0;
481
+ v_1 = reason.fields[1];
482
+ }
483
+ }
484
+ switch (matchResult) {
485
+ case 0:
486
+ if (helpers.isNullValue(v_1)) {
487
+ return void 0;
488
+ } else {
489
+ void _this_1.errors.push(error);
490
+ return defaultOf();
491
+ }
492
+ case 1:
493
+ return void 0;
494
+ default: {
495
+ void _this_1.errors.push(error);
496
+ return defaultOf();
497
+ }
498
+ }
499
+ } else {
500
+ return some(matchValue.fields[0]);
501
+ }
502
+ }
503
+ });
504
+ }
505
+ get Required() {
506
+ const __ = this;
507
+ return __.required;
508
+ }
509
+ get Optional() {
510
+ const __ = this;
511
+ return __.optional;
512
+ }
513
+ }
514
+ function Getters$2_$ctor_Z4BE6C149(helpers, value_1) {
515
+ return new Getters$2(helpers, value_1);
516
+ }
517
+ function Getters$2__get_Errors(__) {
518
+ return toList(__.errors);
519
+ }
520
+ function object(builder) {
521
+ return {
522
+ Decode(helpers, value_1) {
523
+ const getters = Getters$2_$ctor_Z4BE6C149(helpers, value_1);
524
+ const result = builder(getters);
525
+ const matchValue = Getters$2__get_Errors(getters);
526
+ if (!isEmpty(matchValue)) {
527
+ const errors = matchValue;
528
+ return length(errors) > 1 ? FSharpResult$2_Error(["", ErrorReason$1_BadOneOf(errors)]) : FSharpResult$2_Error(head(matchValue));
529
+ } else {
530
+ return FSharpResult$2_Ok(result);
531
+ }
532
+ }
533
+ };
534
+ }
535
+ function tuple2(decoder1, decoder2) {
536
+ return andThen((v1) => andThen((v2) => succeed([v1, v2]), index(1, decoder2)), index(0, decoder1));
537
+ }
538
+ function map$0027(keyDecoder, valueDecoder) {
539
+ return map((elements) => ofSeq(elements, {
540
+ Compare: compare
541
+ }), array(tuple2(keyDecoder, valueDecoder)));
542
+ }
543
+
544
+ export { Getters$2, Getters$2_$ctor_Z4BE6C149, Getters$2__get_Errors, Helpers_prependPath, andThen, array, at, bool, decimal, errorToString, field, float, guid, index, int, list, map, map$0027, object, oneOf, optional, optionalAt, resizeArray, string, succeed, tuple2, unit };
@@ -0,0 +1,31 @@
1
+ import { map } from '../../../node_modules/@fable-org/fable-library-js/List.js';
2
+ import { map as map$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
3
+ import { map as map$2 } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
4
+
5
+ function list(values) {
6
+ return {
7
+ Encode(helpers) {
8
+ const arg = map((v) => v.Encode(helpers), values);
9
+ return helpers.encodeList(arg);
10
+ }
11
+ };
12
+ }
13
+ function seq(values) {
14
+ return {
15
+ Encode(helpers) {
16
+ const arg = map$1((v) => v.Encode(helpers), values);
17
+ return helpers.encodeSeq(arg);
18
+ }
19
+ };
20
+ }
21
+ function tuple2(enc1, enc2, v1, v2) {
22
+ const values = [enc1(v1), enc2(v2)];
23
+ return {
24
+ Encode(helpers) {
25
+ const arg = map$2((v) => v.Encode(helpers), values);
26
+ return helpers.encodeArray(arg);
27
+ }
28
+ };
29
+ }
30
+
31
+ export { list, seq, tuple2 };
@@ -0,0 +1,38 @@
1
+ import { Union } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
2
+
3
+ function ErrorReason$1_BadPrimitive(Item1, Item2) {
4
+ return new ErrorReason$1(0, [Item1, Item2]);
5
+ }
6
+ function ErrorReason$1_BadPrimitiveExtra(Item1, Item2, Item3) {
7
+ return new ErrorReason$1(1, [Item1, Item2, Item3]);
8
+ }
9
+ function ErrorReason$1_BadType(Item1, Item2) {
10
+ return new ErrorReason$1(2, [Item1, Item2]);
11
+ }
12
+ function ErrorReason$1_BadField(Item1, Item2) {
13
+ return new ErrorReason$1(3, [Item1, Item2]);
14
+ }
15
+ function ErrorReason$1_BadPath(Item1, Item2, Item3) {
16
+ return new ErrorReason$1(4, [Item1, Item2, Item3]);
17
+ }
18
+ function ErrorReason$1_TooSmallArray(Item1, Item2) {
19
+ return new ErrorReason$1(5, [Item1, Item2]);
20
+ }
21
+ function ErrorReason$1_FailMessage(Item) {
22
+ return new ErrorReason$1(6, [Item]);
23
+ }
24
+ function ErrorReason$1_BadOneOf(Item) {
25
+ return new ErrorReason$1(7, [Item]);
26
+ }
27
+ class ErrorReason$1 extends Union {
28
+ constructor(tag, fields) {
29
+ super();
30
+ this.tag = tag;
31
+ this.fields = fields;
32
+ }
33
+ cases() {
34
+ return ["BadPrimitive", "BadPrimitiveExtra", "BadType", "BadField", "BadPath", "TooSmallArray", "FailMessage", "BadOneOf"];
35
+ }
36
+ }
37
+
38
+ export { ErrorReason$1, ErrorReason$1_BadField, ErrorReason$1_BadOneOf, ErrorReason$1_BadPath, ErrorReason$1_BadPrimitive, ErrorReason$1_BadPrimitiveExtra, ErrorReason$1_BadType, ErrorReason$1_FailMessage, ErrorReason$1_TooSmallArray };
@@ -0,0 +1,79 @@
1
+ import { Helpers_prependPath, errorToString } from '../Thoth.Json.Core.0.7.0/Decode.fs.js';
2
+ import { FSharpResult$2_Error, FSharpResult$2_Ok } from '../../../node_modules/@fable-org/fable-library-js/Result.js';
3
+
4
+ const helpers = {
5
+ isString(jsonValue) {
6
+ return typeof jsonValue === "string";
7
+ },
8
+ isNumber(jsonValue_1) {
9
+ return typeof jsonValue_1 === "number";
10
+ },
11
+ isBoolean(jsonValue_2) {
12
+ return typeof jsonValue_2 === "boolean";
13
+ },
14
+ isNullValue(jsonValue_3) {
15
+ return jsonValue_3 == null;
16
+ },
17
+ isArray(jsonValue_4) {
18
+ return Array.isArray(jsonValue_4);
19
+ },
20
+ isObject(jsonValue_5) {
21
+ return jsonValue_5 === null ? false : Object.getPrototypeOf(jsonValue_5 || false) === Object.prototype;
22
+ },
23
+ hasProperty(fieldName, jsonValue_6) {
24
+ return jsonValue_6.hasOwnProperty(fieldName);
25
+ },
26
+ isIntegralValue(jsonValue_7) {
27
+ return isFinite(jsonValue_7) && Math.floor(jsonValue_7) === jsonValue_7;
28
+ },
29
+ asString(jsonValue_8) {
30
+ return jsonValue_8;
31
+ },
32
+ asBoolean(jsonValue_9) {
33
+ return jsonValue_9;
34
+ },
35
+ asArray(jsonValue_10) {
36
+ return jsonValue_10;
37
+ },
38
+ asFloat(jsonValue_11) {
39
+ return jsonValue_11;
40
+ },
41
+ asFloat32(jsonValue_12) {
42
+ return jsonValue_12;
43
+ },
44
+ asInt(jsonValue_13) {
45
+ return jsonValue_13;
46
+ },
47
+ getProperties(jsonValue_14) {
48
+ return Object.keys(jsonValue_14);
49
+ },
50
+ getProperty(fieldName_1, jsonValue_15) {
51
+ return jsonValue_15[fieldName_1];
52
+ },
53
+ anyToString(jsonValue_16) {
54
+ return JSON.stringify(jsonValue_16, null, 4) + "";
55
+ }
56
+ };
57
+ function fromString(decoder, value) {
58
+ try {
59
+ const json = JSON.parse(value);
60
+ const matchValue = decoder.Decode(helpers, json);
61
+ if (matchValue.tag === /* Error */
62
+ 1) {
63
+ let finalError;
64
+ const tupledArg = matchValue.fields[0];
65
+ finalError = Helpers_prependPath("$", tupledArg[0], tupledArg[1]);
66
+ return FSharpResult$2_Error(errorToString(helpers, finalError[0], finalError[1]));
67
+ } else {
68
+ return FSharpResult$2_Ok(matchValue.fields[0]);
69
+ }
70
+ } catch (matchValue_1) {
71
+ if (matchValue_1 instanceof SyntaxError) {
72
+ return FSharpResult$2_Error("Given an invalid JSON: " + matchValue_1.message);
73
+ } else {
74
+ throw matchValue_1;
75
+ }
76
+ }
77
+ }
78
+
79
+ export { fromString, helpers };