@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,792 @@
1
+ import { map } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
2
+ import { getUnionCases, name, union_type, string_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
3
+ import { Union, toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
4
+ import { ActivePatterns_$007CRegex$007C_$007C, ActivePatterns_$007CTermColumn$007C_$007C, tryParseIOTypeHeader, Pattern_InputPattern, Pattern_OutputPattern, Pattern_CommentPattern } from '../Helper/Regex.js';
5
+ import { value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
6
+ import { toFail, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
7
+ import { OntologyAnnotation, OntologyAnnotation_$reflection } from '../OntologyAnnotation.js';
8
+
9
+ function IOType_Source() {
10
+ return new IOType(0, []);
11
+ }
12
+ function IOType_Sample() {
13
+ return new IOType(1, []);
14
+ }
15
+ function IOType_Data() {
16
+ return new IOType(2, []);
17
+ }
18
+ function IOType_Material() {
19
+ return new IOType(3, []);
20
+ }
21
+ function IOType_FreeText(Item) {
22
+ return new IOType(4, [Item]);
23
+ }
24
+ class IOType extends Union {
25
+ constructor(tag, fields) {
26
+ super();
27
+ this.tag = tag;
28
+ this.fields = fields;
29
+ }
30
+ cases() {
31
+ return ["Source", "Sample", "Data", "Material", "FreeText"];
32
+ }
33
+ static get All() {
34
+ return [IOType_Source(), IOType_Sample(), IOType_Data(), IOType_Material()];
35
+ }
36
+ static get Cases() {
37
+ return map((x) => [x.tag, name(x)], getUnionCases(IOType_$reflection()));
38
+ }
39
+ get asInput() {
40
+ const this$ = this;
41
+ const stringCreate = (x) => {
42
+ let copyOfStruct;
43
+ return `Input [${copyOfStruct = x, toString(copyOfStruct)}]`;
44
+ };
45
+ return this$.tag === /* FreeText */
46
+ 4 ? stringCreate(this$.fields[0]) : stringCreate(this$);
47
+ }
48
+ get asOutput() {
49
+ const this$ = this;
50
+ const stringCreate = (x) => {
51
+ let copyOfStruct;
52
+ return `Output [${copyOfStruct = x, toString(copyOfStruct)}]`;
53
+ };
54
+ return this$.tag === /* FreeText */
55
+ 4 ? stringCreate(this$.fields[0]) : stringCreate(this$);
56
+ }
57
+ Merge(other) {
58
+ const this$ = this;
59
+ switch (this$.tag) {
60
+ case /* Data */
61
+ 2:
62
+ if (other.tag === /* Source */
63
+ 0) {
64
+ return IOType_Data();
65
+ } else {
66
+ throw new Error(`Data IO column and ${other} can not be merged`);
67
+ }
68
+ case /* Sample */
69
+ 1:
70
+ switch (other.tag) {
71
+ case /* Source */
72
+ 0:
73
+ return IOType_Sample();
74
+ case /* Sample */
75
+ 1:
76
+ return IOType_Sample();
77
+ default:
78
+ throw new Error(`Sample IO column and ${other} can not be merged`);
79
+ }
80
+ case /* Source */
81
+ 0:
82
+ return other.tag === /* Source */
83
+ 0 ? IOType_Source() : other;
84
+ case /* Material */
85
+ 3:
86
+ switch (other.tag) {
87
+ case /* Source */
88
+ 0:
89
+ return IOType_Material();
90
+ case /* Material */
91
+ 3:
92
+ return IOType_Material();
93
+ default:
94
+ throw new Error(`Material IO column and ${other} can not be merged`);
95
+ }
96
+ default:
97
+ if (other.tag === /* FreeText */
98
+ 4) {
99
+ if (this$.fields[0] === other.fields[0]) {
100
+ const s1_1 = this$.fields[0];
101
+ other.fields[0];
102
+ return IOType_FreeText(s1_1);
103
+ } else {
104
+ const s1_2 = this$.fields[0];
105
+ const s2_2 = other.fields[0];
106
+ throw new Error(`FreeText IO column names ${s1_2} and ${s2_2} do differ`);
107
+ }
108
+ } else {
109
+ this$.fields[0];
110
+ throw new Error(`FreeText IO column and ${other} can not be merged`);
111
+ }
112
+ }
113
+ }
114
+ toString() {
115
+ const this$ = this;
116
+ return this$.tag === /* Sample */
117
+ 1 ? "Sample Name" : this$.tag === /* Data */
118
+ 2 ? "Data" : this$.tag === /* Material */
119
+ 3 ? "Material" : this$.tag === /* FreeText */
120
+ 4 ? this$.fields[0] : "Source Name";
121
+ }
122
+ static ofString(str) {
123
+ return str === "Source" ? IOType_Source() : str === "Source Name" ? IOType_Source() : str === "Sample" ? IOType_Sample() : str === "Sample Name" ? IOType_Sample() : str === "RawDataFile" ? IOType_Data() : str === "Raw Data File" ? IOType_Data() : str === "DerivedDataFile" ? IOType_Data() : str === "Derived Data File" ? IOType_Data() : str === "ImageFile" ? IOType_Data() : str === "Image File" ? IOType_Data() : str === "Data" ? IOType_Data() : str === "Material" ? IOType_Material() : IOType_FreeText(str);
124
+ }
125
+ static tryOfHeaderString(str) {
126
+ const matchValue = tryParseIOTypeHeader(str);
127
+ if (matchValue == null) {
128
+ return void 0;
129
+ } else {
130
+ const s = value(matchValue);
131
+ return IOType.ofString(s);
132
+ }
133
+ }
134
+ static source() {
135
+ return IOType_Source();
136
+ }
137
+ static sample() {
138
+ return IOType_Sample();
139
+ }
140
+ static data() {
141
+ return IOType_Data();
142
+ }
143
+ static material() {
144
+ return IOType_Material();
145
+ }
146
+ static freeText(s) {
147
+ return IOType_FreeText(s);
148
+ }
149
+ }
150
+ function IOType_$reflection() {
151
+ return union_type("ARCtrl.IOType", [], IOType, () => [[], [], [], [], [["Item", string_type]]]);
152
+ }
153
+ function CompositeHeader_Component(Item) {
154
+ return new CompositeHeader(0, [Item]);
155
+ }
156
+ function CompositeHeader_Characteristic(Item) {
157
+ return new CompositeHeader(1, [Item]);
158
+ }
159
+ function CompositeHeader_Factor(Item) {
160
+ return new CompositeHeader(2, [Item]);
161
+ }
162
+ function CompositeHeader_Parameter(Item) {
163
+ return new CompositeHeader(3, [Item]);
164
+ }
165
+ function CompositeHeader_ProtocolType() {
166
+ return new CompositeHeader(4, []);
167
+ }
168
+ function CompositeHeader_ProtocolDescription() {
169
+ return new CompositeHeader(5, []);
170
+ }
171
+ function CompositeHeader_ProtocolUri() {
172
+ return new CompositeHeader(6, []);
173
+ }
174
+ function CompositeHeader_ProtocolVersion() {
175
+ return new CompositeHeader(7, []);
176
+ }
177
+ function CompositeHeader_ProtocolREF() {
178
+ return new CompositeHeader(8, []);
179
+ }
180
+ function CompositeHeader_Performer() {
181
+ return new CompositeHeader(9, []);
182
+ }
183
+ function CompositeHeader_Date() {
184
+ return new CompositeHeader(10, []);
185
+ }
186
+ function CompositeHeader_Input(Item) {
187
+ return new CompositeHeader(11, [Item]);
188
+ }
189
+ function CompositeHeader_Output(Item) {
190
+ return new CompositeHeader(12, [Item]);
191
+ }
192
+ function CompositeHeader_FreeText(Item) {
193
+ return new CompositeHeader(13, [Item]);
194
+ }
195
+ function CompositeHeader_Comment(Item) {
196
+ return new CompositeHeader(14, [Item]);
197
+ }
198
+ class CompositeHeader extends Union {
199
+ constructor(tag, fields) {
200
+ super();
201
+ this.tag = tag;
202
+ this.fields = fields;
203
+ }
204
+ cases() {
205
+ return ["Component", "Characteristic", "Factor", "Parameter", "ProtocolType", "ProtocolDescription", "ProtocolUri", "ProtocolVersion", "ProtocolREF", "Performer", "Date", "Input", "Output", "FreeText", "Comment"];
206
+ }
207
+ static get Cases() {
208
+ return map((x) => [x.tag, name(x)], getUnionCases(CompositeHeader_$reflection()));
209
+ }
210
+ static jsGetColumnMetaType(inp) {
211
+ return inp === 0 ? 1 : inp === 1 ? 1 : inp === 2 ? 1 : inp === 3 ? 1 : inp === 4 ? 0 : inp === 5 ? 0 : inp === 6 ? 0 : inp === 7 ? 0 : inp === 8 ? 0 : inp === 9 ? 0 : inp === 10 ? 0 : inp === 11 ? 2 : inp === 12 ? 2 : inp === 13 ? 3 : inp === 14 ? 3 : toFail(printf("Cannot assign input `Tag` (%i) to `CompositeHeader`"))(inp);
212
+ }
213
+ toString() {
214
+ const this$ = this;
215
+ switch (this$.tag) {
216
+ case /* Factor */
217
+ 2: {
218
+ const oa_1 = this$.fields[0];
219
+ return `Factor [${oa_1.NameText}]`;
220
+ }
221
+ case /* Characteristic */
222
+ 1: {
223
+ const oa_2 = this$.fields[0];
224
+ return `Characteristic [${oa_2.NameText}]`;
225
+ }
226
+ case /* Component */
227
+ 0: {
228
+ const oa_3 = this$.fields[0];
229
+ return `Component [${oa_3.NameText}]`;
230
+ }
231
+ case /* ProtocolType */
232
+ 4:
233
+ return "Protocol Type";
234
+ case /* ProtocolREF */
235
+ 8:
236
+ return "Protocol REF";
237
+ case /* ProtocolDescription */
238
+ 5:
239
+ return "Protocol Description";
240
+ case /* ProtocolUri */
241
+ 6:
242
+ return "Protocol Uri";
243
+ case /* ProtocolVersion */
244
+ 7:
245
+ return "Protocol Version";
246
+ case /* Performer */
247
+ 9:
248
+ return "Performer";
249
+ case /* Date */
250
+ 10:
251
+ return "Date";
252
+ case /* Input */
253
+ 11: {
254
+ const io = this$.fields[0];
255
+ return io.asInput;
256
+ }
257
+ case /* Output */
258
+ 12: {
259
+ const io_1 = this$.fields[0];
260
+ return io_1.asOutput;
261
+ }
262
+ case /* Comment */
263
+ 14:
264
+ return `Comment [${this$.fields[0]}]`;
265
+ case /* FreeText */
266
+ 13:
267
+ return this$.fields[0];
268
+ default: {
269
+ const oa = this$.fields[0];
270
+ return `Parameter [${oa.NameText}]`;
271
+ }
272
+ }
273
+ }
274
+ ToTerm() {
275
+ const this$ = this;
276
+ return this$.tag === /* Factor */
277
+ 2 ? this$.fields[0] : this$.tag === /* Characteristic */
278
+ 1 ? this$.fields[0] : this$.tag === /* Component */
279
+ 0 ? this$.fields[0] : this$.tag === /* ProtocolType */
280
+ 4 ? OntologyAnnotation.create(toString(this$), void 0, this$.GetFeaturedColumnAccession) : this$.tag === /* ProtocolREF */
281
+ 8 ? OntologyAnnotation.create(toString(this$)) : this$.tag === /* ProtocolDescription */
282
+ 5 ? OntologyAnnotation.create(toString(this$)) : this$.tag === /* ProtocolUri */
283
+ 6 ? OntologyAnnotation.create(toString(this$)) : this$.tag === /* ProtocolVersion */
284
+ 7 ? OntologyAnnotation.create(toString(this$)) : this$.tag === /* Performer */
285
+ 9 ? OntologyAnnotation.create(toString(this$)) : this$.tag === /* Date */
286
+ 10 ? OntologyAnnotation.create(toString(this$)) : this$.tag === /* Input */
287
+ 11 ? OntologyAnnotation.create(toString(this$)) : this$.tag === /* Output */
288
+ 12 ? OntologyAnnotation.create(toString(this$)) : this$.tag === /* Comment */
289
+ 14 ? OntologyAnnotation.create(toString(this$)) : this$.tag === /* FreeText */
290
+ 13 ? OntologyAnnotation.create(toString(this$)) : this$.fields[0];
291
+ }
292
+ static OfHeaderString(str) {
293
+ const matchValue = str.trim();
294
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(Pattern_InputPattern, matchValue);
295
+ if (activePatternResult != null) {
296
+ const r = value(activePatternResult);
297
+ const iotype = r.groups && r.groups.iotype || "";
298
+ return CompositeHeader_Input(IOType.ofString(iotype));
299
+ } else {
300
+ const activePatternResult_1 = ActivePatterns_$007CRegex$007C_$007C(Pattern_OutputPattern, matchValue);
301
+ if (activePatternResult_1 != null) {
302
+ const r_1 = value(activePatternResult_1);
303
+ const iotype_1 = r_1.groups && r_1.groups.iotype || "";
304
+ return CompositeHeader_Output(IOType.ofString(iotype_1));
305
+ } else {
306
+ const activePatternResult_2 = ActivePatterns_$007CRegex$007C_$007C(Pattern_CommentPattern, matchValue);
307
+ if (activePatternResult_2 != null) {
308
+ const r_2 = value(activePatternResult_2);
309
+ return CompositeHeader_Comment(r_2.groups && r_2.groups.commentKey || "");
310
+ } else {
311
+ const activePatternResult_3 = ActivePatterns_$007CTermColumn$007C_$007C(matchValue);
312
+ if (activePatternResult_3 != null) {
313
+ const r_3 = value(activePatternResult_3);
314
+ const matchValue_1 = r_3.TermColumnType;
315
+ switch (matchValue_1) {
316
+ case "Parameter":
317
+ case "Parameter Value":
318
+ return CompositeHeader_Parameter(OntologyAnnotation.create(r_3.TermName));
319
+ case "Factor":
320
+ case "Factor Value":
321
+ return CompositeHeader_Factor(OntologyAnnotation.create(r_3.TermName));
322
+ case "Characteristic":
323
+ case "Characteristics":
324
+ case "Characteristics Value":
325
+ return CompositeHeader_Characteristic(OntologyAnnotation.create(r_3.TermName));
326
+ case "Component":
327
+ return CompositeHeader_Component(OntologyAnnotation.create(r_3.TermName));
328
+ default:
329
+ return CompositeHeader_FreeText(str);
330
+ }
331
+ } else {
332
+ return matchValue === "Date" ? CompositeHeader_Date() : matchValue === "Performer" ? CompositeHeader_Performer() : matchValue === "Protocol Description" ? CompositeHeader_ProtocolDescription() : matchValue === "Protocol Uri" ? CompositeHeader_ProtocolUri() : matchValue === "Protocol Version" ? CompositeHeader_ProtocolVersion() : matchValue === "Protocol Type" ? CompositeHeader_ProtocolType() : matchValue === "Protocol REF" ? CompositeHeader_ProtocolREF() : CompositeHeader_FreeText(matchValue);
333
+ }
334
+ }
335
+ }
336
+ }
337
+ }
338
+ get IsDeprecated() {
339
+ let s, s_1, s_2, s_3;
340
+ const this$ = this;
341
+ let matchResult;
342
+ if (this$.tag === /* FreeText */
343
+ 13) {
344
+ if (s = this$.fields[0], s.toLocaleLowerCase() === "sample name") {
345
+ matchResult = 0;
346
+ this$.fields[0];
347
+ } else if (s_1 = this$.fields[0], s_1.toLocaleLowerCase() === "source name") {
348
+ matchResult = 1;
349
+ this$.fields[0];
350
+ } else if (s_2 = this$.fields[0], s_2.toLocaleLowerCase() === "data file name") {
351
+ matchResult = 2;
352
+ this$.fields[0];
353
+ } else if (s_3 = this$.fields[0], s_3.toLocaleLowerCase() === "derived data file") {
354
+ matchResult = 3;
355
+ this$.fields[0];
356
+ } else {
357
+ matchResult = 4;
358
+ }
359
+ } else {
360
+ matchResult = 4;
361
+ }
362
+ switch (matchResult) {
363
+ case 0:
364
+ return true;
365
+ case 1:
366
+ return true;
367
+ case 2:
368
+ return true;
369
+ case 3:
370
+ return true;
371
+ default:
372
+ return false;
373
+ }
374
+ }
375
+ get IsCvParamColumn() {
376
+ const this$ = this;
377
+ switch (this$.tag) {
378
+ case /* Parameter */
379
+ 3:
380
+ case /* Factor */
381
+ 2:
382
+ case /* Characteristic */
383
+ 1:
384
+ case /* Component */
385
+ 0:
386
+ return true;
387
+ default:
388
+ return false;
389
+ }
390
+ }
391
+ get IsTermColumn() {
392
+ const this$ = this;
393
+ switch (this$.tag) {
394
+ case /* Parameter */
395
+ 3:
396
+ case /* Factor */
397
+ 2:
398
+ case /* Characteristic */
399
+ 1:
400
+ case /* Component */
401
+ 0:
402
+ case /* ProtocolType */
403
+ 4:
404
+ return true;
405
+ default:
406
+ return false;
407
+ }
408
+ }
409
+ get IsDataColumn() {
410
+ const this$ = this;
411
+ let matchResult;
412
+ switch (this$.tag) {
413
+ case /* Input */
414
+ 11: {
415
+ if (this$.fields[0].tag === /* Data */
416
+ 2) {
417
+ matchResult = 0;
418
+ } else {
419
+ matchResult = 1;
420
+ }
421
+ break;
422
+ }
423
+ case /* Output */
424
+ 12: {
425
+ if (this$.fields[0].tag === /* Data */
426
+ 2) {
427
+ matchResult = 0;
428
+ } else {
429
+ matchResult = 1;
430
+ }
431
+ break;
432
+ }
433
+ default: {
434
+ matchResult = 1;
435
+ }
436
+ }
437
+ switch (matchResult) {
438
+ case 0:
439
+ return true;
440
+ default:
441
+ return false;
442
+ }
443
+ }
444
+ get IsFeaturedColumn() {
445
+ const this$ = this;
446
+ return this$.tag === /* ProtocolType */
447
+ 4;
448
+ }
449
+ get GetFeaturedColumnAccession() {
450
+ const this$ = this;
451
+ if (this$.tag === /* ProtocolType */
452
+ 4) {
453
+ return "DPBO:1000161";
454
+ } else {
455
+ throw new Error(`Tried matching ${this$} in getFeaturedColumnAccession, but is not a featured column.`);
456
+ }
457
+ }
458
+ get GetColumnAccessionShort() {
459
+ const this$ = this;
460
+ switch (this$.tag) {
461
+ case /* ProtocolType */
462
+ 4:
463
+ return this$.GetFeaturedColumnAccession;
464
+ case /* Parameter */
465
+ 3: {
466
+ const oa = this$.fields[0];
467
+ return oa.TermAccessionShort;
468
+ }
469
+ case /* Factor */
470
+ 2: {
471
+ const oa_1 = this$.fields[0];
472
+ return oa_1.TermAccessionShort;
473
+ }
474
+ case /* Characteristic */
475
+ 1: {
476
+ const oa_2 = this$.fields[0];
477
+ return oa_2.TermAccessionShort;
478
+ }
479
+ case /* Component */
480
+ 0: {
481
+ const oa_3 = this$.fields[0];
482
+ return oa_3.TermAccessionShort;
483
+ }
484
+ default:
485
+ throw new Error(`Tried matching ${this$}, but is not a column with an accession.`);
486
+ }
487
+ }
488
+ get IsSingleColumn() {
489
+ const this$ = this;
490
+ switch (this$.tag) {
491
+ case /* FreeText */
492
+ 13:
493
+ case /* Input */
494
+ 11:
495
+ case /* Output */
496
+ 12:
497
+ case /* Comment */
498
+ 14:
499
+ case /* ProtocolREF */
500
+ 8:
501
+ case /* ProtocolDescription */
502
+ 5:
503
+ case /* ProtocolUri */
504
+ 6:
505
+ case /* ProtocolVersion */
506
+ 7:
507
+ case /* Performer */
508
+ 9:
509
+ case /* Date */
510
+ 10:
511
+ return true;
512
+ default:
513
+ return false;
514
+ }
515
+ }
516
+ get IsIOType() {
517
+ const this$ = this;
518
+ let matchResult;
519
+ switch (this$.tag) {
520
+ case /* Input */
521
+ 11: {
522
+ matchResult = 0;
523
+ this$.fields[0];
524
+ break;
525
+ }
526
+ case /* Output */
527
+ 12: {
528
+ matchResult = 0;
529
+ this$.fields[0];
530
+ break;
531
+ }
532
+ default:
533
+ matchResult = 1;
534
+ }
535
+ switch (matchResult) {
536
+ case 0:
537
+ return true;
538
+ default:
539
+ return false;
540
+ }
541
+ }
542
+ get isInput() {
543
+ const this$ = this;
544
+ if (this$.tag === /* Input */
545
+ 11) {
546
+ this$.fields[0];
547
+ return true;
548
+ } else {
549
+ return false;
550
+ }
551
+ }
552
+ get isOutput() {
553
+ const this$ = this;
554
+ if (this$.tag === /* Output */
555
+ 12) {
556
+ this$.fields[0];
557
+ return true;
558
+ } else {
559
+ return false;
560
+ }
561
+ }
562
+ get isParameter() {
563
+ const this$ = this;
564
+ return this$.tag === /* Parameter */
565
+ 3;
566
+ }
567
+ get isFactor() {
568
+ const this$ = this;
569
+ return this$.tag === /* Factor */
570
+ 2;
571
+ }
572
+ get isCharacteristic() {
573
+ const this$ = this;
574
+ return this$.tag === /* Characteristic */
575
+ 1;
576
+ }
577
+ get isComponent() {
578
+ const this$ = this;
579
+ return this$.tag === /* Component */
580
+ 0;
581
+ }
582
+ get isProtocolType() {
583
+ const this$ = this;
584
+ return this$.tag === /* ProtocolType */
585
+ 4;
586
+ }
587
+ get isProtocolREF() {
588
+ const this$ = this;
589
+ return this$.tag === /* ProtocolREF */
590
+ 8;
591
+ }
592
+ get isProtocolDescription() {
593
+ const this$ = this;
594
+ return this$.tag === /* ProtocolDescription */
595
+ 5;
596
+ }
597
+ get isProtocolUri() {
598
+ const this$ = this;
599
+ return this$.tag === /* ProtocolUri */
600
+ 6;
601
+ }
602
+ get isProtocolVersion() {
603
+ const this$ = this;
604
+ return this$.tag === /* ProtocolVersion */
605
+ 7;
606
+ }
607
+ get isProtocolColumn() {
608
+ const this$ = this;
609
+ switch (this$.tag) {
610
+ case /* ProtocolREF */
611
+ 8:
612
+ case /* ProtocolDescription */
613
+ 5:
614
+ case /* ProtocolUri */
615
+ 6:
616
+ case /* ProtocolVersion */
617
+ 7:
618
+ case /* ProtocolType */
619
+ 4:
620
+ return true;
621
+ default:
622
+ return false;
623
+ }
624
+ }
625
+ get isPerformer() {
626
+ const this$ = this;
627
+ return this$.tag === /* Performer */
628
+ 9;
629
+ }
630
+ get isDate() {
631
+ const this$ = this;
632
+ return this$.tag === /* Date */
633
+ 10;
634
+ }
635
+ get isComment() {
636
+ const this$ = this;
637
+ return this$.tag === /* Comment */
638
+ 14;
639
+ }
640
+ get isFreeText() {
641
+ const this$ = this;
642
+ return this$.tag === /* FreeText */
643
+ 13;
644
+ }
645
+ TryInput() {
646
+ const this$ = this;
647
+ return this$.tag === /* Input */
648
+ 11 ? this$.fields[0] : void 0;
649
+ }
650
+ TryOutput() {
651
+ const this$ = this;
652
+ return this$.tag === /* Output */
653
+ 12 ? this$.fields[0] : void 0;
654
+ }
655
+ TryIOType() {
656
+ const this$ = this;
657
+ let matchResult, io;
658
+ switch (this$.tag) {
659
+ case /* Output */
660
+ 12: {
661
+ matchResult = 0;
662
+ io = this$.fields[0];
663
+ break;
664
+ }
665
+ case /* Input */
666
+ 11: {
667
+ matchResult = 0;
668
+ io = this$.fields[0];
669
+ break;
670
+ }
671
+ default:
672
+ matchResult = 1;
673
+ }
674
+ switch (matchResult) {
675
+ case 0:
676
+ return io;
677
+ default:
678
+ return void 0;
679
+ }
680
+ }
681
+ get IsUnique() {
682
+ const this$ = this;
683
+ switch (this$.tag) {
684
+ case /* ProtocolType */
685
+ 4:
686
+ case /* ProtocolREF */
687
+ 8:
688
+ case /* ProtocolDescription */
689
+ 5:
690
+ case /* ProtocolUri */
691
+ 6:
692
+ case /* ProtocolVersion */
693
+ 7:
694
+ case /* Performer */
695
+ 9:
696
+ case /* Date */
697
+ 10:
698
+ case /* Input */
699
+ 11:
700
+ case /* Output */
701
+ 12:
702
+ return true;
703
+ default:
704
+ return false;
705
+ }
706
+ }
707
+ Copy() {
708
+ const this$ = this;
709
+ switch (this$.tag) {
710
+ case /* Parameter */
711
+ 3: {
712
+ const oa = this$.fields[0];
713
+ return CompositeHeader_Parameter(oa.Copy());
714
+ }
715
+ case /* Factor */
716
+ 2: {
717
+ const oa_1 = this$.fields[0];
718
+ return CompositeHeader_Factor(oa_1.Copy());
719
+ }
720
+ case /* Characteristic */
721
+ 1: {
722
+ const oa_2 = this$.fields[0];
723
+ return CompositeHeader_Characteristic(oa_2.Copy());
724
+ }
725
+ case /* Component */
726
+ 0: {
727
+ const oa_3 = this$.fields[0];
728
+ return CompositeHeader_Component(oa_3.Copy());
729
+ }
730
+ default:
731
+ return this$;
732
+ }
733
+ }
734
+ TryGetTerm() {
735
+ const this$ = this;
736
+ return this$.tag === /* Parameter */
737
+ 3 ? this$.fields[0] : this$.tag === /* Factor */
738
+ 2 ? this$.fields[0] : this$.tag === /* Characteristic */
739
+ 1 ? this$.fields[0] : this$.tag === /* Component */
740
+ 0 ? this$.fields[0] : void 0;
741
+ }
742
+ static component(oa) {
743
+ return CompositeHeader_Component(oa);
744
+ }
745
+ static characteristic(oa) {
746
+ return CompositeHeader_Characteristic(oa);
747
+ }
748
+ static factor(oa) {
749
+ return CompositeHeader_Factor(oa);
750
+ }
751
+ static parameter(oa) {
752
+ return CompositeHeader_Parameter(oa);
753
+ }
754
+ static protocolType() {
755
+ return CompositeHeader_ProtocolType();
756
+ }
757
+ static protocolDescription() {
758
+ return CompositeHeader_ProtocolDescription();
759
+ }
760
+ static protocolUri() {
761
+ return CompositeHeader_ProtocolUri();
762
+ }
763
+ static protocolVersion() {
764
+ return CompositeHeader_ProtocolVersion();
765
+ }
766
+ static protocolREF() {
767
+ return CompositeHeader_ProtocolREF();
768
+ }
769
+ static performer() {
770
+ return CompositeHeader_Performer();
771
+ }
772
+ static date() {
773
+ return CompositeHeader_Date();
774
+ }
775
+ static input(io) {
776
+ return CompositeHeader_Input(io);
777
+ }
778
+ static output(io) {
779
+ return CompositeHeader_Output(io);
780
+ }
781
+ static freeText(s) {
782
+ return CompositeHeader_FreeText(s);
783
+ }
784
+ static comment(s) {
785
+ return CompositeHeader_Comment(s);
786
+ }
787
+ }
788
+ function CompositeHeader_$reflection() {
789
+ return union_type("ARCtrl.CompositeHeader", [], CompositeHeader, () => [[["Item", OntologyAnnotation_$reflection()]], [["Item", OntologyAnnotation_$reflection()]], [["Item", OntologyAnnotation_$reflection()]], [["Item", OntologyAnnotation_$reflection()]], [], [], [], [], [], [], [], [["Item", IOType_$reflection()]], [["Item", IOType_$reflection()]], [["Item", string_type]], [["Item", string_type]]]);
790
+ }
791
+
792
+ export { CompositeHeader, CompositeHeader_$reflection, CompositeHeader_Characteristic, CompositeHeader_Comment, CompositeHeader_Component, CompositeHeader_Date, CompositeHeader_Factor, CompositeHeader_FreeText, CompositeHeader_Input, CompositeHeader_Output, CompositeHeader_Parameter, CompositeHeader_Performer, CompositeHeader_ProtocolDescription, CompositeHeader_ProtocolREF, CompositeHeader_ProtocolType, CompositeHeader_ProtocolUri, CompositeHeader_ProtocolVersion, IOType, IOType_$reflection, IOType_Data, IOType_FreeText, IOType_Material, IOType_Sample, IOType_Source };