@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,52 @@
1
+ import { split } from '../FileSystem/Path.js';
2
+ import { $007CInvestigationPath$007C_$007C } from './ArcInvestigation.js';
3
+ import { value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
4
+ import { Contract } from './Contract.js';
5
+ import { $007CAssayPath$007C_$007C } from './ArcAssay.js';
6
+ import { $007CStudyPath$007C_$007C } from './ArcStudy.js';
7
+ import { $007CWorkflowPath$007C_$007C } from './ArcWorkflow.js';
8
+ import { $007CRunPath$007C_$007C } from './ArcRun.js';
9
+ import { $007CDatamapPath$007C_$007C } from './Datamap.js';
10
+
11
+ function tryISAReadContractFromPath(path) {
12
+ const split$1 = split(path);
13
+ const activePatternResult = $007CInvestigationPath$007C_$007C(split$1);
14
+ if (activePatternResult != null) {
15
+ const p = value(activePatternResult);
16
+ return Contract.createRead(p, "ISA_Investigation");
17
+ } else {
18
+ const activePatternResult_1 = $007CAssayPath$007C_$007C(split$1);
19
+ if (activePatternResult_1 != null) {
20
+ const p_1 = value(activePatternResult_1);
21
+ return Contract.createRead(p_1, "ISA_Assay");
22
+ } else {
23
+ const activePatternResult_2 = $007CStudyPath$007C_$007C(split$1);
24
+ if (activePatternResult_2 != null) {
25
+ const p_2 = value(activePatternResult_2);
26
+ return Contract.createRead(p_2, "ISA_Study");
27
+ } else {
28
+ const activePatternResult_3 = $007CWorkflowPath$007C_$007C(split$1);
29
+ if (activePatternResult_3 != null) {
30
+ const p_3 = value(activePatternResult_3);
31
+ return Contract.createRead(p_3, "ISA_Workflow");
32
+ } else {
33
+ const activePatternResult_4 = $007CRunPath$007C_$007C(split$1);
34
+ if (activePatternResult_4 != null) {
35
+ const p_4 = value(activePatternResult_4);
36
+ return Contract.createRead(p_4, "ISA_Run");
37
+ } else {
38
+ const activePatternResult_5 = $007CDatamapPath$007C_$007C(split$1);
39
+ if (activePatternResult_5 != null) {
40
+ const p_5 = value(activePatternResult_5);
41
+ return Contract.createRead(p_5, "ISA_Datamap");
42
+ } else {
43
+ return void 0;
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+
52
+ export { tryISAReadContractFromPath };
@@ -0,0 +1,80 @@
1
+ import { equalsWith, item } from '../../node_modules/@fable-org/fable-library-js/Array.js';
2
+ import { combineMany, getAssayFolderPath } from '../FileSystem/Path.js';
3
+ import { defaultOf } from '../../node_modules/@fable-org/fable-library-js/Util.js';
4
+ import { value, defaultArg } from '../../node_modules/@fable-org/fable-library-js/Option.js';
5
+ import { Assay_fileNameFromIdentifier } from '../Core/Helper/Identifier.js';
6
+ import { Contract } from './Contract.js';
7
+ import { ARCtrl_ArcAssay__ArcAssay_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F } from '../Spreadsheet/ArcAssay.js';
8
+ import { toArray, delay, append, singleton, collect, empty } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
9
+ import { FileSystemTree } from '../FileSystem/FileSystemTree.js';
10
+
11
+ function $007CAssayPath$007C_$007C(input) {
12
+ let matchResult;
13
+ if (!equalsWith((x, y) => x === y, input, defaultOf()) && input.length === 3) {
14
+ if (item(0, input) === "assays") {
15
+ if (item(2, input) === "isa.assay.xlsx") {
16
+ matchResult = 0;
17
+ } else {
18
+ matchResult = 1;
19
+ }
20
+ } else {
21
+ matchResult = 1;
22
+ }
23
+ } else {
24
+ matchResult = 1;
25
+ }
26
+ switch (matchResult) {
27
+ case 0: {
28
+ item(1, input);
29
+ return combineMany(input);
30
+ }
31
+ default:
32
+ return void 0;
33
+ }
34
+ }
35
+ function ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(this$, WithFolder) {
36
+ const withFolder = defaultArg(WithFolder, false);
37
+ const path = Assay_fileNameFromIdentifier(this$.Identifier);
38
+ const c = Contract.createCreate(path, "ISA_Assay", ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F(this$));
39
+ return toArray(delay(() => {
40
+ let folderFS;
41
+ return append(withFolder ? (folderFS = FileSystemTree.createAssaysFolder([FileSystemTree.createAssayFolder(this$.Identifier)]), collect((p) => p !== path && p !== "assays/.gitkeep" ? singleton(Contract.createCreate(p, "PlainText")) : empty(), folderFS.ToFilePaths(false))) : empty(), delay(() => singleton(c)));
42
+ }));
43
+ }
44
+ function ARCtrl_ArcAssay__ArcAssay_ToUpdateContract(this$) {
45
+ const path = Assay_fileNameFromIdentifier(this$.Identifier);
46
+ return Contract.createUpdate(path, "ISA_Assay", ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F(this$));
47
+ }
48
+ function ARCtrl_ArcAssay__ArcAssay_ToDeleteContract(this$) {
49
+ const path = getAssayFolderPath(this$.Identifier);
50
+ return Contract.createDelete(path);
51
+ }
52
+ function ARCtrl_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F(c) {
53
+ let matchResult, fsworkbook;
54
+ if (c.Operation === "READ") {
55
+ if (c.DTOType != null) {
56
+ if (value(c.DTOType) === "ISA_Assay") {
57
+ if (c.DTO != null) {
58
+ matchResult = 0;
59
+ fsworkbook = value(c.DTO);
60
+ } else {
61
+ matchResult = 1;
62
+ }
63
+ } else {
64
+ matchResult = 1;
65
+ }
66
+ } else {
67
+ matchResult = 1;
68
+ }
69
+ } else {
70
+ matchResult = 1;
71
+ }
72
+ switch (matchResult) {
73
+ case 0:
74
+ return ARCtrl_ArcAssay__ArcAssay_fromFsWorkbook_Static_32154C9D(fsworkbook);
75
+ default:
76
+ return void 0;
77
+ }
78
+ }
79
+
80
+ export { $007CAssayPath$007C_$007C, ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49, ARCtrl_ArcAssay__ArcAssay_ToDeleteContract, ARCtrl_ArcAssay__ArcAssay_ToUpdateContract, ARCtrl_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F };
@@ -0,0 +1,57 @@
1
+ import { combineMany } from '../FileSystem/Path.js';
2
+ import { equalsWith, item } from '../../node_modules/@fable-org/fable-library-js/Array.js';
3
+ import { defaultOf } from '../../node_modules/@fable-org/fable-library-js/Util.js';
4
+ import { value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
5
+ import { Contract } from './Contract.js';
6
+ import { ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF, ARCtrl_ArcInvestigation__ArcInvestigation_fromFsWorkbook_Static_32154C9D } from '../Spreadsheet/ArcInvestigation.js';
7
+
8
+ function $007CInvestigationPath$007C_$007C(input) {
9
+ let matchResult;
10
+ if (!equalsWith((x, y) => x === y, input, defaultOf()) && input.length === 1) {
11
+ if (item(0, input) === "isa.investigation.xlsx") {
12
+ matchResult = 0;
13
+ } else {
14
+ matchResult = 1;
15
+ }
16
+ } else {
17
+ matchResult = 1;
18
+ }
19
+ switch (matchResult) {
20
+ case 0:
21
+ return combineMany(input);
22
+ default:
23
+ return void 0;
24
+ }
25
+ }
26
+ function ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract(this$) {
27
+ return Contract.createUpdate("isa.investigation.xlsx", "ISA_Investigation", ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF(this$));
28
+ }
29
+ function ARCtrl_ArcInvestigation__ArcInvestigation_tryFromReadContract_Static_7570923F(c) {
30
+ let matchResult, fsworkbook;
31
+ if (c.Operation === "READ") {
32
+ if (c.DTOType != null) {
33
+ if (value(c.DTOType) === "ISA_Investigation") {
34
+ if (c.DTO != null) {
35
+ matchResult = 0;
36
+ fsworkbook = value(c.DTO);
37
+ } else {
38
+ matchResult = 1;
39
+ }
40
+ } else {
41
+ matchResult = 1;
42
+ }
43
+ } else {
44
+ matchResult = 1;
45
+ }
46
+ } else {
47
+ matchResult = 1;
48
+ }
49
+ switch (matchResult) {
50
+ case 0:
51
+ return ARCtrl_ArcInvestigation__ArcInvestigation_fromFsWorkbook_Static_32154C9D(fsworkbook);
52
+ default:
53
+ return void 0;
54
+ }
55
+ }
56
+
57
+ export { $007CInvestigationPath$007C_$007C, ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract, ARCtrl_ArcInvestigation__ArcInvestigation_tryFromReadContract_Static_7570923F };
@@ -0,0 +1,76 @@
1
+ import { equalsWith, item } from '../../node_modules/@fable-org/fable-library-js/Array.js';
2
+ import { combineMany } from '../FileSystem/Path.js';
3
+ import { defaultOf } from '../../node_modules/@fable-org/fable-library-js/Util.js';
4
+ import { value, defaultArg } from '../../node_modules/@fable-org/fable-library-js/Option.js';
5
+ import { Run_fileNameFromIdentifier } from '../Core/Helper/Identifier.js';
6
+ import { Contract } from './Contract.js';
7
+ import { ARCtrl_ArcRun__ArcRun_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcRun__ArcRun_toFsWorkbook_Static_Z3EFAF6F8 } from '../Spreadsheet/ArcRun.js';
8
+ import { toArray, delay, append, singleton, collect, empty } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
9
+ import { FileSystemTree } from '../FileSystem/FileSystemTree.js';
10
+
11
+ function $007CRunPath$007C_$007C(input) {
12
+ let matchResult;
13
+ if (!equalsWith((x, y) => x === y, input, defaultOf()) && input.length === 3) {
14
+ if (item(0, input) === "runs") {
15
+ if (item(2, input) === "isa.run.xlsx") {
16
+ matchResult = 0;
17
+ } else {
18
+ matchResult = 1;
19
+ }
20
+ } else {
21
+ matchResult = 1;
22
+ }
23
+ } else {
24
+ matchResult = 1;
25
+ }
26
+ switch (matchResult) {
27
+ case 0: {
28
+ item(1, input);
29
+ return combineMany(input);
30
+ }
31
+ default:
32
+ return void 0;
33
+ }
34
+ }
35
+ function ARCtrl_ArcRun__ArcRun_ToCreateContract_6FCE9E49(this$, WithFolder) {
36
+ const withFolder = defaultArg(WithFolder, false);
37
+ const path = Run_fileNameFromIdentifier(this$.Identifier);
38
+ const c = Contract.createCreate(path, "ISA_Run", ARCtrl_ArcRun__ArcRun_toFsWorkbook_Static_Z3EFAF6F8(this$));
39
+ return toArray(delay(() => {
40
+ let folderFS;
41
+ return append(withFolder ? (folderFS = FileSystemTree.createRunsFolder([FileSystemTree.createRunFolder(this$.Identifier)]), collect((p) => p !== path && p !== "runs/.gitkeep" ? singleton(Contract.createCreate(p, "PlainText")) : empty(), folderFS.ToFilePaths(false))) : empty(), delay(() => singleton(c)));
42
+ }));
43
+ }
44
+ function ARCtrl_ArcRun__ArcRun_ToUpdateContract(this$) {
45
+ const path = Run_fileNameFromIdentifier(this$.Identifier);
46
+ return Contract.createUpdate(path, "ISA_Run", ARCtrl_ArcRun__ArcRun_toFsWorkbook_Static_Z3EFAF6F8(this$));
47
+ }
48
+ function ARCtrl_ArcRun__ArcRun_tryFromReadContract_Static_7570923F(c) {
49
+ let matchResult, fsworkbook;
50
+ if (c.Operation === "READ") {
51
+ if (c.DTOType != null) {
52
+ if (value(c.DTOType) === "ISA_Run") {
53
+ if (c.DTO != null) {
54
+ matchResult = 0;
55
+ fsworkbook = value(c.DTO);
56
+ } else {
57
+ matchResult = 1;
58
+ }
59
+ } else {
60
+ matchResult = 1;
61
+ }
62
+ } else {
63
+ matchResult = 1;
64
+ }
65
+ } else {
66
+ matchResult = 1;
67
+ }
68
+ switch (matchResult) {
69
+ case 0:
70
+ return ARCtrl_ArcRun__ArcRun_fromFsWorkbook_Static_32154C9D(fsworkbook);
71
+ default:
72
+ return void 0;
73
+ }
74
+ }
75
+
76
+ export { $007CRunPath$007C_$007C, ARCtrl_ArcRun__ArcRun_ToCreateContract_6FCE9E49, ARCtrl_ArcRun__ArcRun_ToUpdateContract, ARCtrl_ArcRun__ArcRun_tryFromReadContract_Static_7570923F };
@@ -0,0 +1,76 @@
1
+ import { equalsWith, item } from '../../node_modules/@fable-org/fable-library-js/Array.js';
2
+ import { combineMany } from '../FileSystem/Path.js';
3
+ import { defaultOf } from '../../node_modules/@fable-org/fable-library-js/Util.js';
4
+ import { value, defaultArg } from '../../node_modules/@fable-org/fable-library-js/Option.js';
5
+ import { Study_fileNameFromIdentifier } from '../Core/Helper/Identifier.js';
6
+ import { Contract } from './Contract.js';
7
+ import { ARCtrl_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522 } from '../Spreadsheet/ArcStudy.js';
8
+ import { toArray, delay, append, singleton, collect, empty } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
9
+ import { FileSystemTree } from '../FileSystem/FileSystemTree.js';
10
+
11
+ function $007CStudyPath$007C_$007C(input) {
12
+ let matchResult;
13
+ if (!equalsWith((x, y) => x === y, input, defaultOf()) && input.length === 3) {
14
+ if (item(0, input) === "studies") {
15
+ if (item(2, input) === "isa.study.xlsx") {
16
+ matchResult = 0;
17
+ } else {
18
+ matchResult = 1;
19
+ }
20
+ } else {
21
+ matchResult = 1;
22
+ }
23
+ } else {
24
+ matchResult = 1;
25
+ }
26
+ switch (matchResult) {
27
+ case 0: {
28
+ item(1, input);
29
+ return combineMany(input);
30
+ }
31
+ default:
32
+ return void 0;
33
+ }
34
+ }
35
+ function ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(this$, WithFolder) {
36
+ const withFolder = defaultArg(WithFolder, false);
37
+ const path = Study_fileNameFromIdentifier(this$.Identifier);
38
+ const c = Contract.createCreate(path, "ISA_Study", ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522(this$));
39
+ return toArray(delay(() => {
40
+ let folderFS;
41
+ return append(withFolder ? (folderFS = FileSystemTree.createStudiesFolder([FileSystemTree.createStudyFolder(this$.Identifier)]), collect((p) => p !== path && p !== "studies/.gitkeep" ? singleton(Contract.createCreate(p, "PlainText")) : empty(), folderFS.ToFilePaths(false))) : empty(), delay(() => singleton(c)));
42
+ }));
43
+ }
44
+ function ARCtrl_ArcStudy__ArcStudy_ToUpdateContract(this$) {
45
+ const path = Study_fileNameFromIdentifier(this$.Identifier);
46
+ return Contract.createUpdate(path, "ISA_Study", ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522(this$));
47
+ }
48
+ function ARCtrl_ArcStudy__ArcStudy_tryFromReadContract_Static_7570923F(c) {
49
+ let matchResult, fsworkbook;
50
+ if (c.Operation === "READ") {
51
+ if (c.DTOType != null) {
52
+ if (value(c.DTOType) === "ISA_Study") {
53
+ if (c.DTO != null) {
54
+ matchResult = 0;
55
+ fsworkbook = value(c.DTO);
56
+ } else {
57
+ matchResult = 1;
58
+ }
59
+ } else {
60
+ matchResult = 1;
61
+ }
62
+ } else {
63
+ matchResult = 1;
64
+ }
65
+ } else {
66
+ matchResult = 1;
67
+ }
68
+ switch (matchResult) {
69
+ case 0:
70
+ return ARCtrl_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D(fsworkbook);
71
+ default:
72
+ return void 0;
73
+ }
74
+ }
75
+
76
+ export { $007CStudyPath$007C_$007C, ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49, ARCtrl_ArcStudy__ArcStudy_ToUpdateContract, ARCtrl_ArcStudy__ArcStudy_tryFromReadContract_Static_7570923F };
@@ -0,0 +1,77 @@
1
+ import { equalsWith, item } from '../../node_modules/@fable-org/fable-library-js/Array.js';
2
+ import { combineMany } from '../FileSystem/Path.js';
3
+ import { defaultOf } from '../../node_modules/@fable-org/fable-library-js/Util.js';
4
+ import { value, defaultArg } from '../../node_modules/@fable-org/fable-library-js/Option.js';
5
+ import { Workflow_fileNameFromIdentifier } from '../Core/Helper/Identifier.js';
6
+ import { ArcWorkflow__get_Identifier } from '../Core/ArcTypes.js';
7
+ import { Contract } from './Contract.js';
8
+ import { ARCtrl_ArcWorkflow__ArcWorkflow_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcWorkflow__ArcWorkflow_toFsWorkbook_Static_Z1C75CB0E } from '../Spreadsheet/ArcWorkflow.js';
9
+ import { toArray, delay, append, singleton, collect, empty } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
10
+ import { FileSystemTree } from '../FileSystem/FileSystemTree.js';
11
+
12
+ function $007CWorkflowPath$007C_$007C(input) {
13
+ let matchResult;
14
+ if (!equalsWith((x, y) => x === y, input, defaultOf()) && input.length === 3) {
15
+ if (item(0, input) === "workflows") {
16
+ if (item(2, input) === "isa.workflow.xlsx") {
17
+ matchResult = 0;
18
+ } else {
19
+ matchResult = 1;
20
+ }
21
+ } else {
22
+ matchResult = 1;
23
+ }
24
+ } else {
25
+ matchResult = 1;
26
+ }
27
+ switch (matchResult) {
28
+ case 0: {
29
+ item(1, input);
30
+ return combineMany(input);
31
+ }
32
+ default:
33
+ return void 0;
34
+ }
35
+ }
36
+ function ARCtrl_ArcWorkflow__ArcWorkflow_ToCreateContract_6FCE9E49(this$, WithFolder) {
37
+ const withFolder = defaultArg(WithFolder, false);
38
+ const path = Workflow_fileNameFromIdentifier(ArcWorkflow__get_Identifier(this$));
39
+ const c = Contract.createCreate(path, "ISA_Workflow", ARCtrl_ArcWorkflow__ArcWorkflow_toFsWorkbook_Static_Z1C75CB0E(this$));
40
+ return toArray(delay(() => {
41
+ let folderFS;
42
+ return append(withFolder ? (folderFS = FileSystemTree.createWorkflowsFolder([FileSystemTree.createWorkflowFolder(ArcWorkflow__get_Identifier(this$))]), collect((p) => p !== path && p !== "workflows/.gitkeep" ? singleton(Contract.createCreate(p, "PlainText")) : empty(), folderFS.ToFilePaths(false))) : empty(), delay(() => singleton(c)));
43
+ }));
44
+ }
45
+ function ARCtrl_ArcWorkflow__ArcWorkflow_ToUpdateContract(this$) {
46
+ const path = Workflow_fileNameFromIdentifier(ArcWorkflow__get_Identifier(this$));
47
+ return Contract.createUpdate(path, "ISA_Workflow", ARCtrl_ArcWorkflow__ArcWorkflow_toFsWorkbook_Static_Z1C75CB0E(this$));
48
+ }
49
+ function ARCtrl_ArcWorkflow__ArcWorkflow_tryFromReadContract_Static_7570923F(c) {
50
+ let matchResult, fsworkbook;
51
+ if (c.Operation === "READ") {
52
+ if (c.DTOType != null) {
53
+ if (value(c.DTOType) === "ISA_Workflow") {
54
+ if (c.DTO != null) {
55
+ matchResult = 0;
56
+ fsworkbook = value(c.DTO);
57
+ } else {
58
+ matchResult = 1;
59
+ }
60
+ } else {
61
+ matchResult = 1;
62
+ }
63
+ } else {
64
+ matchResult = 1;
65
+ }
66
+ } else {
67
+ matchResult = 1;
68
+ }
69
+ switch (matchResult) {
70
+ case 0:
71
+ return ARCtrl_ArcWorkflow__ArcWorkflow_fromFsWorkbook_Static_32154C9D(fsworkbook);
72
+ default:
73
+ return void 0;
74
+ }
75
+ }
76
+
77
+ export { $007CWorkflowPath$007C_$007C, ARCtrl_ArcWorkflow__ArcWorkflow_ToCreateContract_6FCE9E49, ARCtrl_ArcWorkflow__ArcWorkflow_ToUpdateContract, ARCtrl_ArcWorkflow__ArcWorkflow_tryFromReadContract_Static_7570923F };
@@ -0,0 +1,45 @@
1
+ import { Record } from '../../node_modules/@fable-org/fable-library-js/Types.js';
2
+ import { defaultArg } from '../../node_modules/@fable-org/fable-library-js/Option.js';
3
+
4
+ class CLITool extends Record {
5
+ constructor(Name, Arguments) {
6
+ super();
7
+ this.Name = Name;
8
+ this.Arguments = Arguments;
9
+ }
10
+ static create(name, arguments$) {
11
+ return new CLITool(name, arguments$);
12
+ }
13
+ }
14
+ class Contract extends Record {
15
+ constructor(Operation, Path, DTOType, DTO) {
16
+ super();
17
+ this.Operation = Operation;
18
+ this.Path = Path;
19
+ this.DTOType = DTOType;
20
+ this.DTO = DTO;
21
+ }
22
+ static create(op, path, { dtoType, dto }) {
23
+ return new Contract(op, path, dtoType, dto);
24
+ }
25
+ static createCreate(path, dtoType, dto) {
26
+ return new Contract("CREATE", path, dtoType, dto);
27
+ }
28
+ static createUpdate(path, dtoType, dto) {
29
+ return new Contract("UPDATE", path, dtoType, dto);
30
+ }
31
+ static createDelete(path) {
32
+ return new Contract("DELETE", path, void 0, void 0);
33
+ }
34
+ static createRead(path, dtoType) {
35
+ return new Contract("READ", path, dtoType, void 0);
36
+ }
37
+ static createExecute(dto, path) {
38
+ return new Contract("EXECUTE", defaultArg(path, ""), "Cli", dto);
39
+ }
40
+ static createRename(oldPath, newPath) {
41
+ return new Contract("RENAME", oldPath, void 0, newPath);
42
+ }
43
+ }
44
+
45
+ export { CLITool, Contract };
@@ -0,0 +1,221 @@
1
+ import { equalsWith, item } from '../../node_modules/@fable-org/fable-library-js/Array.js';
2
+ import { combineMany } from '../FileSystem/Path.js';
3
+ import { safeHash, defaultOf } from '../../node_modules/@fable-org/fable-library-js/Util.js';
4
+ import { value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
5
+ import { Assay_datamapFileNameFromIdentifier, Study_datamapFileNameFromIdentifier, Workflow_datamapFileNameFromIdentifier, Run_datamapFileNameFromIdentifier } from '../Core/Helper/Identifier.js';
6
+ import { Contract } from './Contract.js';
7
+ import { fromFsWorkbook, toFsWorkbook } from '../Spreadsheet/DataMap.js';
8
+ import { DataMap__set_StaticHash_Z524259A4 } from '../Core/DataMap.js';
9
+
10
+ function $007CDatamapPath$007C_$007C(input) {
11
+ let matchResult;
12
+ if (!equalsWith((x, y) => x === y, input, defaultOf()) && input.length === 3) {
13
+ if (item(0, input) === "assays") {
14
+ if (item(2, input) === "isa.datamap.xlsx") {
15
+ matchResult = 0;
16
+ } else {
17
+ matchResult = 2;
18
+ }
19
+ } else if (item(0, input) === "studies") {
20
+ if (item(2, input) === "isa.datamap.xlsx") {
21
+ matchResult = 1;
22
+ } else {
23
+ matchResult = 2;
24
+ }
25
+ } else {
26
+ matchResult = 2;
27
+ }
28
+ } else {
29
+ matchResult = 2;
30
+ }
31
+ switch (matchResult) {
32
+ case 0: {
33
+ item(1, input);
34
+ return combineMany(input);
35
+ }
36
+ case 1: {
37
+ item(1, input);
38
+ return combineMany(input);
39
+ }
40
+ default:
41
+ return void 0;
42
+ }
43
+ }
44
+ function ARCtrl_DataMap__DataMap_ToCreateContractForAssay_Z721C83C5(this$, assayIdentifier) {
45
+ const path = Assay_datamapFileNameFromIdentifier(assayIdentifier);
46
+ return Contract.createCreate(path, "ISA_Datamap", toFsWorkbook(this$));
47
+ }
48
+ function ARCtrl_DataMap__DataMap_ToUpdateContractForAssay_Z721C83C5(this$, assayIdentifier) {
49
+ const path = Assay_datamapFileNameFromIdentifier(assayIdentifier);
50
+ return Contract.createUpdate(path, "ISA_Datamap", toFsWorkbook(this$));
51
+ }
52
+ function ARCtrl_DataMap__DataMap_tryFromReadContractForAssay_Static(assayIdentifier, c) {
53
+ const path = Assay_datamapFileNameFromIdentifier(assayIdentifier);
54
+ let matchResult, fsworkbook_1;
55
+ if (c.Operation === "READ") {
56
+ if (c.DTOType != null) {
57
+ if (value(c.DTOType) === "ISA_Datamap") {
58
+ if (c.DTO != null) {
59
+ if (value(c.DTO), c.Path === path) {
60
+ matchResult = 0;
61
+ fsworkbook_1 = value(c.DTO);
62
+ c.Path;
63
+ } else {
64
+ matchResult = 1;
65
+ }
66
+ } else {
67
+ matchResult = 1;
68
+ }
69
+ } else {
70
+ matchResult = 1;
71
+ }
72
+ } else {
73
+ matchResult = 1;
74
+ }
75
+ } else {
76
+ matchResult = 1;
77
+ }
78
+ switch (matchResult) {
79
+ case 0: {
80
+ const dm = fromFsWorkbook(fsworkbook_1);
81
+ DataMap__set_StaticHash_Z524259A4(dm, safeHash(dm));
82
+ return dm;
83
+ }
84
+ default:
85
+ return void 0;
86
+ }
87
+ }
88
+ function ARCtrl_DataMap__DataMap_ToCreateContractForStudy_Z721C83C5(this$, studyIdentifier) {
89
+ const path = Study_datamapFileNameFromIdentifier(studyIdentifier);
90
+ return Contract.createCreate(path, "ISA_Datamap", toFsWorkbook(this$));
91
+ }
92
+ function ARCtrl_DataMap__DataMap_ToUpdateContractForStudy_Z721C83C5(this$, studyIdentifier) {
93
+ const path = Study_datamapFileNameFromIdentifier(studyIdentifier);
94
+ return Contract.createUpdate(path, "ISA_Datamap", toFsWorkbook(this$));
95
+ }
96
+ function ARCtrl_DataMap__DataMap_tryFromReadContractForStudy_Static(studyIdentifier, c) {
97
+ const path = Study_datamapFileNameFromIdentifier(studyIdentifier);
98
+ let matchResult, fsworkbook_1;
99
+ if (c.Operation === "READ") {
100
+ if (c.DTOType != null) {
101
+ if (value(c.DTOType) === "ISA_Datamap") {
102
+ if (c.DTO != null) {
103
+ if (value(c.DTO), c.Path === path) {
104
+ matchResult = 0;
105
+ fsworkbook_1 = value(c.DTO);
106
+ c.Path;
107
+ } else {
108
+ matchResult = 1;
109
+ }
110
+ } else {
111
+ matchResult = 1;
112
+ }
113
+ } else {
114
+ matchResult = 1;
115
+ }
116
+ } else {
117
+ matchResult = 1;
118
+ }
119
+ } else {
120
+ matchResult = 1;
121
+ }
122
+ switch (matchResult) {
123
+ case 0: {
124
+ const dm = fromFsWorkbook(fsworkbook_1);
125
+ DataMap__set_StaticHash_Z524259A4(dm, safeHash(dm));
126
+ return dm;
127
+ }
128
+ default:
129
+ return void 0;
130
+ }
131
+ }
132
+ function ARCtrl_DataMap__DataMap_ToCreateContractForWorkflow_Z721C83C5(this$, workflowIdentifier) {
133
+ const path = Workflow_datamapFileNameFromIdentifier(workflowIdentifier);
134
+ return Contract.createCreate(path, "ISA_Datamap", toFsWorkbook(this$));
135
+ }
136
+ function ARCtrl_DataMap__DataMap_ToUpdateContractForWorkflow_Z721C83C5(this$, workflowIdentifier) {
137
+ const path = Workflow_datamapFileNameFromIdentifier(workflowIdentifier);
138
+ return Contract.createUpdate(path, "ISA_Datamap", toFsWorkbook(this$));
139
+ }
140
+ function ARCtrl_DataMap__DataMap_tryFromReadContractForWorkflow_Static(workflowIdentifier, c) {
141
+ const path = Workflow_datamapFileNameFromIdentifier(workflowIdentifier);
142
+ let matchResult, fsworkbook_1;
143
+ if (c.Operation === "READ") {
144
+ if (c.DTOType != null) {
145
+ if (value(c.DTOType) === "ISA_Datamap") {
146
+ if (c.DTO != null) {
147
+ if (value(c.DTO), c.Path === path) {
148
+ matchResult = 0;
149
+ fsworkbook_1 = value(c.DTO);
150
+ c.Path;
151
+ } else {
152
+ matchResult = 1;
153
+ }
154
+ } else {
155
+ matchResult = 1;
156
+ }
157
+ } else {
158
+ matchResult = 1;
159
+ }
160
+ } else {
161
+ matchResult = 1;
162
+ }
163
+ } else {
164
+ matchResult = 1;
165
+ }
166
+ switch (matchResult) {
167
+ case 0: {
168
+ const dm = fromFsWorkbook(fsworkbook_1);
169
+ DataMap__set_StaticHash_Z524259A4(dm, safeHash(dm));
170
+ return dm;
171
+ }
172
+ default:
173
+ return void 0;
174
+ }
175
+ }
176
+ function ARCtrl_DataMap__DataMap_ToCreateContractForRun_Z721C83C5(this$, runIdentifier) {
177
+ const path = Run_datamapFileNameFromIdentifier(runIdentifier);
178
+ return Contract.createCreate(path, "ISA_Datamap", toFsWorkbook(this$));
179
+ }
180
+ function ARCtrl_DataMap__DataMap_ToUpdateContractForRun_Z721C83C5(this$, runIdentifier) {
181
+ const path = Run_datamapFileNameFromIdentifier(runIdentifier);
182
+ return Contract.createUpdate(path, "ISA_Datamap", toFsWorkbook(this$));
183
+ }
184
+ function ARCtrl_DataMap__DataMap_tryFromReadContractForRun_Static(runIdentifier, c) {
185
+ const path = Run_datamapFileNameFromIdentifier(runIdentifier);
186
+ let matchResult, fsworkbook_1;
187
+ if (c.Operation === "READ") {
188
+ if (c.DTOType != null) {
189
+ if (value(c.DTOType) === "ISA_Datamap") {
190
+ if (c.DTO != null) {
191
+ if (value(c.DTO), c.Path === path) {
192
+ matchResult = 0;
193
+ fsworkbook_1 = value(c.DTO);
194
+ c.Path;
195
+ } else {
196
+ matchResult = 1;
197
+ }
198
+ } else {
199
+ matchResult = 1;
200
+ }
201
+ } else {
202
+ matchResult = 1;
203
+ }
204
+ } else {
205
+ matchResult = 1;
206
+ }
207
+ } else {
208
+ matchResult = 1;
209
+ }
210
+ switch (matchResult) {
211
+ case 0: {
212
+ const dm = fromFsWorkbook(fsworkbook_1);
213
+ DataMap__set_StaticHash_Z524259A4(dm, safeHash(dm));
214
+ return dm;
215
+ }
216
+ default:
217
+ return void 0;
218
+ }
219
+ }
220
+
221
+ export { $007CDatamapPath$007C_$007C, ARCtrl_DataMap__DataMap_ToCreateContractForAssay_Z721C83C5, ARCtrl_DataMap__DataMap_ToCreateContractForRun_Z721C83C5, ARCtrl_DataMap__DataMap_ToCreateContractForStudy_Z721C83C5, ARCtrl_DataMap__DataMap_ToCreateContractForWorkflow_Z721C83C5, ARCtrl_DataMap__DataMap_ToUpdateContractForAssay_Z721C83C5, ARCtrl_DataMap__DataMap_ToUpdateContractForRun_Z721C83C5, ARCtrl_DataMap__DataMap_ToUpdateContractForStudy_Z721C83C5, ARCtrl_DataMap__DataMap_ToUpdateContractForWorkflow_Z721C83C5, ARCtrl_DataMap__DataMap_tryFromReadContractForAssay_Static, ARCtrl_DataMap__DataMap_tryFromReadContractForRun_Static, ARCtrl_DataMap__DataMap_tryFromReadContractForStudy_Static, ARCtrl_DataMap__DataMap_tryFromReadContractForWorkflow_Static };