@nfdi4plants/arctrl 1.0.0-alpha10

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 (296) hide show
  1. package/ARC.js +262 -0
  2. package/Contract/Contract.js +95 -0
  3. package/Contracts/Contracts.ARCtrl.js +35 -0
  4. package/Contracts/Contracts.ArcAssay.js +65 -0
  5. package/Contracts/Contracts.ArcInvestigation.js +58 -0
  6. package/Contracts/Contracts.ArcStudy.js +65 -0
  7. package/Contracts/Contracts.Git.js +91 -0
  8. package/FileSystem/Commit.js +18 -0
  9. package/FileSystem/DefaultGitignore.js +3 -0
  10. package/FileSystem/FileSystem.js +53 -0
  11. package/FileSystem/FileSystemTree.js +223 -0
  12. package/FileSystem/Path.js +38 -0
  13. package/FileSystemTree.js +51 -0
  14. package/ISA/ISA/ArcTypes/ArcTable.js +848 -0
  15. package/ISA/ISA/ArcTypes/ArcTableAux.js +1105 -0
  16. package/ISA/ISA/ArcTypes/ArcTables.js +479 -0
  17. package/ISA/ISA/ArcTypes/ArcTypes.js +2281 -0
  18. package/ISA/ISA/ArcTypes/CompositeCell.js +180 -0
  19. package/ISA/ISA/ArcTypes/CompositeColumn.js +48 -0
  20. package/ISA/ISA/ArcTypes/CompositeHeader.js +668 -0
  21. package/ISA/ISA/ArcTypes/CompositeRow.js +111 -0
  22. package/ISA/ISA/ArcTypes/IdentifierSetters.js +26 -0
  23. package/ISA/ISA/Builder/Types.js +243 -0
  24. package/ISA/ISA/Fable.js +50 -0
  25. package/ISA/ISA/Helper.js +338 -0
  26. package/ISA/ISA/Identifier.js +76 -0
  27. package/ISA/ISA/JsonTypes/AnnotationValue.js +56 -0
  28. package/ISA/ISA/JsonTypes/Assay.js +620 -0
  29. package/ISA/ISA/JsonTypes/AssayMaterials.js +39 -0
  30. package/ISA/ISA/JsonTypes/ColumnIndex.js +246 -0
  31. package/ISA/ISA/JsonTypes/Comment.js +58 -0
  32. package/ISA/ISA/JsonTypes/CommentList.js +139 -0
  33. package/ISA/ISA/JsonTypes/Component.js +158 -0
  34. package/ISA/ISA/JsonTypes/Data.js +55 -0
  35. package/ISA/ISA/JsonTypes/DataFile.js +68 -0
  36. package/ISA/ISA/JsonTypes/Factor.js +128 -0
  37. package/ISA/ISA/JsonTypes/FactorValue.js +109 -0
  38. package/ISA/ISA/JsonTypes/Investigation.js +204 -0
  39. package/ISA/ISA/JsonTypes/Material.js +66 -0
  40. package/ISA/ISA/JsonTypes/MaterialAttribute.js +101 -0
  41. package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +126 -0
  42. package/ISA/ISA/JsonTypes/MaterialType.js +41 -0
  43. package/ISA/ISA/JsonTypes/OntologyAnnotation.js +219 -0
  44. package/ISA/ISA/JsonTypes/OntologySourceReference.js +85 -0
  45. package/ISA/ISA/JsonTypes/Person.js +137 -0
  46. package/ISA/ISA/JsonTypes/Process.js +401 -0
  47. package/ISA/ISA/JsonTypes/ProcessInput.js +297 -0
  48. package/ISA/ISA/JsonTypes/ProcessOutput.js +263 -0
  49. package/ISA/ISA/JsonTypes/ProcessParameterValue.js +129 -0
  50. package/ISA/ISA/JsonTypes/ProcessSequence.js +255 -0
  51. package/ISA/ISA/JsonTypes/Protocol.js +277 -0
  52. package/ISA/ISA/JsonTypes/ProtocolParameter.js +101 -0
  53. package/ISA/ISA/JsonTypes/Publication.js +105 -0
  54. package/ISA/ISA/JsonTypes/Sample.js +71 -0
  55. package/ISA/ISA/JsonTypes/Source.js +54 -0
  56. package/ISA/ISA/JsonTypes/Study.js +942 -0
  57. package/ISA/ISA/JsonTypes/StudyMaterials.js +45 -0
  58. package/ISA/ISA/JsonTypes/URI.js +19 -0
  59. package/ISA/ISA/JsonTypes/Value.js +210 -0
  60. package/ISA/ISA/Regex.js +588 -0
  61. package/ISA/ISA.Json/Assay.js +123 -0
  62. package/ISA/ISA.Json/Comment.js +84 -0
  63. package/ISA/ISA.Json/ConverterOptions.js +33 -0
  64. package/ISA/ISA.Json/Data.js +271 -0
  65. package/ISA/ISA.Json/Decode.js +46 -0
  66. package/ISA/ISA.Json/Factor.js +194 -0
  67. package/ISA/ISA.Json/GEncode.js +15 -0
  68. package/ISA/ISA.Json/Investigation.js +132 -0
  69. package/ISA/ISA.Json/Material.js +233 -0
  70. package/ISA/ISA.Json/Ontology.js +204 -0
  71. package/ISA/ISA.Json/Person.js +204 -0
  72. package/ISA/ISA.Json/Process.js +291 -0
  73. package/ISA/ISA.Json/Protocol.js +242 -0
  74. package/ISA/ISA.Json/Publication.js +92 -0
  75. package/ISA/ISA.Json/Study.js +230 -0
  76. package/ISA/ISA.Json/Validation/Fable.js +69 -0
  77. package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +88 -0
  78. package/ISA/ISA.Json/Validation/ValidationResult.js +45 -0
  79. package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +137 -0
  80. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +78 -0
  81. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +59 -0
  82. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +478 -0
  83. package/ISA/ISA.Spreadsheet/ArcAssay.js +150 -0
  84. package/ISA/ISA.Spreadsheet/ArcInvestigation.js +314 -0
  85. package/ISA/ISA.Spreadsheet/ArcStudy.js +67 -0
  86. package/ISA/ISA.Spreadsheet/CollectionAux.js +128 -0
  87. package/ISA/ISA.Spreadsheet/Metadata/Assays.js +81 -0
  88. package/ISA/ISA.Spreadsheet/Metadata/Comment.js +60 -0
  89. package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +104 -0
  90. package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +180 -0
  91. package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +27 -0
  92. package/ISA/ISA.Spreadsheet/Metadata/Factors.js +85 -0
  93. package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +65 -0
  94. package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +73 -0
  95. package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +116 -0
  96. package/ISA/ISA.Spreadsheet/Metadata/Publication.js +96 -0
  97. package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +451 -0
  98. package/ISA/ISA.Spreadsheet/Metadata/Study.js +260 -0
  99. package/README.md +277 -0
  100. package/SemVer.js +60 -0
  101. package/Templates/Template.Json.js +85 -0
  102. package/Templates/Template.Spreadsheet.js +315 -0
  103. package/Templates/Template.Web.js +27 -0
  104. package/Templates/Template.js +179 -0
  105. package/Templates/Templates.js +82 -0
  106. package/WebRequest/WebRequest.js +38 -0
  107. package/fable_modules/Fable.Fetch.2.6.0/Fable.Fetch.fableproj +21 -0
  108. package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs +469 -0
  109. package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +111 -0
  110. package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +57 -0
  111. package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +104 -0
  112. package/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +20 -0
  113. package/fable_modules/Fable.Promise.3.2.0/Promise.fs +766 -0
  114. package/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +217 -0
  115. package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +31 -0
  116. package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +19 -0
  117. package/fable_modules/Fable.SimpleHttp.3.5.0/Fable.SimpleHttp.fableproj +23 -0
  118. package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs +357 -0
  119. package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +429 -0
  120. package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs +52 -0
  121. package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +112 -0
  122. package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs +387 -0
  123. package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs.js +240 -0
  124. package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCellsCollection.fs +725 -0
  125. package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCellsCollection.fs.js +522 -0
  126. package/fable_modules/FsSpreadsheet.4.1.0/DSL/CellBuilder.fs +195 -0
  127. package/fable_modules/FsSpreadsheet.4.1.0/DSL/CellBuilder.fs.js +208 -0
  128. package/fable_modules/FsSpreadsheet.4.1.0/DSL/ColumnBuilder.fs +209 -0
  129. package/fable_modules/FsSpreadsheet.4.1.0/DSL/ColumnBuilder.fs.js +137 -0
  130. package/fable_modules/FsSpreadsheet.4.1.0/DSL/DSL.fs +61 -0
  131. package/fable_modules/FsSpreadsheet.4.1.0/DSL/DSL.fs.js +62 -0
  132. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Expression.fs +24 -0
  133. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Expression.fs.js +56 -0
  134. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Operators.fs +102 -0
  135. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Operators.fs.js +6 -0
  136. package/fable_modules/FsSpreadsheet.4.1.0/DSL/RowBuilder.fs +200 -0
  137. package/fable_modules/FsSpreadsheet.4.1.0/DSL/RowBuilder.fs.js +137 -0
  138. package/fable_modules/FsSpreadsheet.4.1.0/DSL/SheetBuilder.fs +139 -0
  139. package/fable_modules/FsSpreadsheet.4.1.0/DSL/SheetBuilder.fs.js +116 -0
  140. package/fable_modules/FsSpreadsheet.4.1.0/DSL/TableBuilder.fs +120 -0
  141. package/fable_modules/FsSpreadsheet.4.1.0/DSL/TableBuilder.fs.js +120 -0
  142. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Transform.fs +229 -0
  143. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Transform.fs.js +421 -0
  144. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Types.fs +151 -0
  145. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Types.fs.js +277 -0
  146. package/fable_modules/FsSpreadsheet.4.1.0/DSL/WorkbookBuilder.fs +114 -0
  147. package/fable_modules/FsSpreadsheet.4.1.0/DSL/WorkbookBuilder.fs.js +104 -0
  148. package/fable_modules/FsSpreadsheet.4.1.0/FsAddress.fs +177 -0
  149. package/fable_modules/FsSpreadsheet.4.1.0/FsAddress.fs.js +249 -0
  150. package/fable_modules/FsSpreadsheet.4.1.0/FsColumn.fs +200 -0
  151. package/fable_modules/FsSpreadsheet.4.1.0/FsColumn.fs.js +125 -0
  152. package/fable_modules/FsSpreadsheet.4.1.0/FsRow.fs +202 -0
  153. package/fable_modules/FsSpreadsheet.4.1.0/FsRow.fs.js +135 -0
  154. package/fable_modules/FsSpreadsheet.4.1.0/FsSpreadsheet.fableproj +58 -0
  155. package/fable_modules/FsSpreadsheet.4.1.0/FsWorkbook.fs +183 -0
  156. package/fable_modules/FsSpreadsheet.4.1.0/FsWorkbook.fs.js +138 -0
  157. package/fable_modules/FsSpreadsheet.4.1.0/FsWorksheet.fs +628 -0
  158. package/fable_modules/FsSpreadsheet.4.1.0/FsWorksheet.fs.js +398 -0
  159. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRange.fs +19 -0
  160. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRange.fs.js +41 -0
  161. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeAddress.fs +222 -0
  162. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeAddress.fs.js +235 -0
  163. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeBase.fs +93 -0
  164. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeBase.fs.js +91 -0
  165. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeColumn.fs +65 -0
  166. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeColumn.fs.js +74 -0
  167. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeRow.fs +22 -0
  168. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeRow.fs.js +40 -0
  169. package/fable_modules/FsSpreadsheet.4.1.0/SheetBuilder.fs +249 -0
  170. package/fable_modules/FsSpreadsheet.4.1.0/SheetBuilder.fs.js +325 -0
  171. package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTable.fs +455 -0
  172. package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTable.fs.js +310 -0
  173. package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableField.fs +140 -0
  174. package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableField.fs.js +173 -0
  175. package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableRow.fs +6 -0
  176. package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableRow.fs.js +17 -0
  177. package/fable_modules/FsSpreadsheet.4.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  178. package/fable_modules/FsSpreadsheet.4.1.0/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +19 -0
  179. package/fable_modules/FsSpreadsheet.4.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  180. package/fable_modules/FsSpreadsheet.4.1.0/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +19 -0
  181. package/fable_modules/Thoth.Json.10.1.0/Decode.fs +1366 -0
  182. package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +1798 -0
  183. package/fable_modules/Thoth.Json.10.1.0/Encode.fs +621 -0
  184. package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +472 -0
  185. package/fable_modules/Thoth.Json.10.1.0/Extra.fs +31 -0
  186. package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +8 -0
  187. package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +30 -0
  188. package/fable_modules/Thoth.Json.10.1.0/Types.fs +59 -0
  189. package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +98 -0
  190. package/fable_modules/Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs +19 -0
  191. package/fable_modules/Thoth.Json.10.1.0/package.json +5 -0
  192. package/fable_modules/fable-library.4.1.4/Array.d.ts +120 -0
  193. package/fable_modules/fable-library.4.1.4/Array.js +1204 -0
  194. package/fable_modules/fable-library.4.1.4/Async.d.ts +32 -0
  195. package/fable_modules/fable-library.4.1.4/Async.js +158 -0
  196. package/fable_modules/fable-library.4.1.4/AsyncBuilder.d.ts +59 -0
  197. package/fable_modules/fable-library.4.1.4/AsyncBuilder.js +183 -0
  198. package/fable_modules/fable-library.4.1.4/BigInt.d.ts +115 -0
  199. package/fable_modules/fable-library.4.1.4/BigInt.js +282 -0
  200. package/fable_modules/fable-library.4.1.4/BitConverter.d.ts +27 -0
  201. package/fable_modules/fable-library.4.1.4/BitConverter.js +138 -0
  202. package/fable_modules/fable-library.4.1.4/Boolean.d.ts +3 -0
  203. package/fable_modules/fable-library.4.1.4/Boolean.js +21 -0
  204. package/fable_modules/fable-library.4.1.4/Char.d.ts +65 -0
  205. package/fable_modules/fable-library.4.1.4/Char.js +169 -0
  206. package/fable_modules/fable-library.4.1.4/Choice.d.ts +138 -0
  207. package/fable_modules/fable-library.4.1.4/Choice.js +227 -0
  208. package/fable_modules/fable-library.4.1.4/Date.d.ts +70 -0
  209. package/fable_modules/fable-library.4.1.4/Date.js +451 -0
  210. package/fable_modules/fable-library.4.1.4/DateOffset.d.ts +63 -0
  211. package/fable_modules/fable-library.4.1.4/DateOffset.js +268 -0
  212. package/fable_modules/fable-library.4.1.4/DateOnly.d.ts +18 -0
  213. package/fable_modules/fable-library.4.1.4/DateOnly.js +124 -0
  214. package/fable_modules/fable-library.4.1.4/Decimal.d.ts +45 -0
  215. package/fable_modules/fable-library.4.1.4/Decimal.js +212 -0
  216. package/fable_modules/fable-library.4.1.4/Double.d.ts +11 -0
  217. package/fable_modules/fable-library.4.1.4/Double.js +46 -0
  218. package/fable_modules/fable-library.4.1.4/Encoding.d.ts +12 -0
  219. package/fable_modules/fable-library.4.1.4/Encoding.js +173 -0
  220. package/fable_modules/fable-library.4.1.4/Event.d.ts +31 -0
  221. package/fable_modules/fable-library.4.1.4/Event.js +93 -0
  222. package/fable_modules/fable-library.4.1.4/FSharp.Collections.d.ts +7 -0
  223. package/fable_modules/fable-library.4.1.4/FSharp.Collections.js +27 -0
  224. package/fable_modules/fable-library.4.1.4/FSharp.Core.d.ts +17 -0
  225. package/fable_modules/fable-library.4.1.4/FSharp.Core.js +69 -0
  226. package/fable_modules/fable-library.4.1.4/Global.d.ts +24 -0
  227. package/fable_modules/fable-library.4.1.4/Global.js +8 -0
  228. package/fable_modules/fable-library.4.1.4/Guid.d.ts +10 -0
  229. package/fable_modules/fable-library.4.1.4/Guid.js +142 -0
  230. package/fable_modules/fable-library.4.1.4/Int32.d.ts +28 -0
  231. package/fable_modules/fable-library.4.1.4/Int32.js +135 -0
  232. package/fable_modules/fable-library.4.1.4/List.d.ts +143 -0
  233. package/fable_modules/fable-library.4.1.4/List.js +1273 -0
  234. package/fable_modules/fable-library.4.1.4/Long.d.ts +3 -0
  235. package/fable_modules/fable-library.4.1.4/Long.js +46 -0
  236. package/fable_modules/fable-library.4.1.4/MailboxProcessor.d.ts +25 -0
  237. package/fable_modules/fable-library.4.1.4/MailboxProcessor.js +93 -0
  238. package/fable_modules/fable-library.4.1.4/Map.d.ts +178 -0
  239. package/fable_modules/fable-library.4.1.4/Map.js +1396 -0
  240. package/fable_modules/fable-library.4.1.4/MapUtil.d.ts +10 -0
  241. package/fable_modules/fable-library.4.1.4/MapUtil.js +112 -0
  242. package/fable_modules/fable-library.4.1.4/MutableMap.d.ts +52 -0
  243. package/fable_modules/fable-library.4.1.4/MutableMap.js +326 -0
  244. package/fable_modules/fable-library.4.1.4/MutableSet.d.ts +39 -0
  245. package/fable_modules/fable-library.4.1.4/MutableSet.js +232 -0
  246. package/fable_modules/fable-library.4.1.4/Native.d.ts +2 -0
  247. package/fable_modules/fable-library.4.1.4/Native.js +8 -0
  248. package/fable_modules/fable-library.4.1.4/Numeric.d.ts +19 -0
  249. package/fable_modules/fable-library.4.1.4/Numeric.js +71 -0
  250. package/fable_modules/fable-library.4.1.4/Observable.d.ts +32 -0
  251. package/fable_modules/fable-library.4.1.4/Observable.js +113 -0
  252. package/fable_modules/fable-library.4.1.4/Option.d.ts +28 -0
  253. package/fable_modules/fable-library.4.1.4/Option.js +96 -0
  254. package/fable_modules/fable-library.4.1.4/README.md +3 -0
  255. package/fable_modules/fable-library.4.1.4/Random.d.ts +37 -0
  256. package/fable_modules/fable-library.4.1.4/Random.js +170 -0
  257. package/fable_modules/fable-library.4.1.4/Range.d.ts +12 -0
  258. package/fable_modules/fable-library.4.1.4/Range.js +45 -0
  259. package/fable_modules/fable-library.4.1.4/Reflection.d.ts +119 -0
  260. package/fable_modules/fable-library.4.1.4/Reflection.js +461 -0
  261. package/fable_modules/fable-library.4.1.4/RegExp.d.ts +10 -0
  262. package/fable_modules/fable-library.4.1.4/RegExp.js +132 -0
  263. package/fable_modules/fable-library.4.1.4/Seq.d.ts +165 -0
  264. package/fable_modules/fable-library.4.1.4/Seq.js +1379 -0
  265. package/fable_modules/fable-library.4.1.4/Seq2.d.ts +18 -0
  266. package/fable_modules/fable-library.4.1.4/Seq2.js +111 -0
  267. package/fable_modules/fable-library.4.1.4/Set.d.ts +190 -0
  268. package/fable_modules/fable-library.4.1.4/Set.js +1789 -0
  269. package/fable_modules/fable-library.4.1.4/String.d.ts +49 -0
  270. package/fable_modules/fable-library.4.1.4/String.js +540 -0
  271. package/fable_modules/fable-library.4.1.4/System.Collections.Generic.d.ts +71 -0
  272. package/fable_modules/fable-library.4.1.4/System.Collections.Generic.js +307 -0
  273. package/fable_modules/fable-library.4.1.4/System.Text.d.ts +30 -0
  274. package/fable_modules/fable-library.4.1.4/System.Text.js +110 -0
  275. package/fable_modules/fable-library.4.1.4/SystemException.d.ts +5 -0
  276. package/fable_modules/fable-library.4.1.4/SystemException.js +5 -0
  277. package/fable_modules/fable-library.4.1.4/TimeOnly.d.ts +15 -0
  278. package/fable_modules/fable-library.4.1.4/TimeOnly.js +122 -0
  279. package/fable_modules/fable-library.4.1.4/TimeSpan.d.ts +34 -0
  280. package/fable_modules/fable-library.4.1.4/TimeSpan.js +177 -0
  281. package/fable_modules/fable-library.4.1.4/Timer.d.ts +19 -0
  282. package/fable_modules/fable-library.4.1.4/Timer.js +67 -0
  283. package/fable_modules/fable-library.4.1.4/Types.d.ts +58 -0
  284. package/fable_modules/fable-library.4.1.4/Types.js +208 -0
  285. package/fable_modules/fable-library.4.1.4/Unicode.13.0.0.d.ts +2 -0
  286. package/fable_modules/fable-library.4.1.4/Unicode.13.0.0.js +4 -0
  287. package/fable_modules/fable-library.4.1.4/Uri.d.ts +29 -0
  288. package/fable_modules/fable-library.4.1.4/Uri.js +142 -0
  289. package/fable_modules/fable-library.4.1.4/Util.d.ts +187 -0
  290. package/fable_modules/fable-library.4.1.4/Util.js +662 -0
  291. package/fable_modules/fable-library.4.1.4/lib/big.d.ts +338 -0
  292. package/fable_modules/fable-library.4.1.4/lib/big.js +826 -0
  293. package/fable_modules/fable-library.4.1.4/package.json +23 -0
  294. package/fable_modules/project_cracked.json +1 -0
  295. package/index.js +13 -0
  296. package/package.json +24 -0
@@ -0,0 +1,401 @@
1
+ import { Record, toString } from "../../../fable_modules/fable-library.4.1.4/Types.js";
2
+ import { zip, tryPick, map as map_1, tryFind, append, collect, choose, empty, length } from "../../../fable_modules/fable-library.4.1.4/List.js";
3
+ import { map, value as value_4, bind, defaultArg } from "../../../fable_modules/fable-library.4.1.4/Option.js";
4
+ import { printf, toText } from "../../../fable_modules/fable-library.4.1.4/String.js";
5
+ import { getRecordFields, makeRecord, record_type, list_type, option_type, string_type } from "../../../fable_modules/fable-library.4.1.4/Reflection.js";
6
+ import { Protocol_$reflection } from "./Protocol.js";
7
+ import { ProcessParameterValue_$reflection } from "./ProcessParameterValue.js";
8
+ import { ProcessInput_tryMaterial_102B6859, ProcessInput_trySample_102B6859, ProcessInput_tryData_102B6859, ProcessInput_trySource_102B6859, ProcessInput_tryGetCharacteristicValues_102B6859, ProcessInput_$reflection } from "./ProcessInput.js";
9
+ import { ProcessOutput_tryGetFactorValues_11830B70, ProcessOutput_tryGetCharacteristicValues_11830B70, ProcessOutput_$reflection } from "./ProcessOutput.js";
10
+ import { Comment$_$reflection } from "./Comment.js";
11
+ import { create, match } from "../../../fable_modules/fable-library.4.1.4/RegExp.js";
12
+ import { parse } from "../../../fable_modules/fable-library.4.1.4/Int32.js";
13
+ import { List_distinct } from "../../../fable_modules/fable-library.4.1.4/Seq2.js";
14
+ import { safeHash, equals } from "../../../fable_modules/fable-library.4.1.4/Util.js";
15
+ import { ProtocolParameter_get_empty } from "./ProtocolParameter.js";
16
+ import { Update_UpdateOptions, Option_fromValueWithDefault } from "../Helper.js";
17
+ import { map2 } from "../../../fable_modules/fable-library.4.1.4/Array.js";
18
+ import { Update_updateOnlyByExistingAppend, Update_updateOnlyByExisting, Update_updateAppend } from "../Helper.js";
19
+
20
+ export class Process extends Record {
21
+ constructor(ID, Name, ExecutesProtocol, ParameterValues, Performer, Date$, PreviousProcess, NextProcess, Inputs, Outputs, Comments) {
22
+ super();
23
+ this.ID = ID;
24
+ this.Name = Name;
25
+ this.ExecutesProtocol = ExecutesProtocol;
26
+ this.ParameterValues = ParameterValues;
27
+ this.Performer = Performer;
28
+ this.Date = Date$;
29
+ this.PreviousProcess = PreviousProcess;
30
+ this.NextProcess = NextProcess;
31
+ this.Inputs = Inputs;
32
+ this.Outputs = Outputs;
33
+ this.Comments = Comments;
34
+ }
35
+ Print() {
36
+ const this$ = this;
37
+ return toString(this$);
38
+ }
39
+ PrintCompact() {
40
+ const this$ = this;
41
+ const inputCount = length(defaultArg(this$.Inputs, empty())) | 0;
42
+ const outputCount = length(defaultArg(this$.Outputs, empty())) | 0;
43
+ const paramCount = length(defaultArg(this$.ParameterValues, empty())) | 0;
44
+ const name = defaultArg(this$.Name, "Unnamed Process");
45
+ return toText(printf("%s [%i Inputs -> %i Params -> %i Outputs]"))(name)(inputCount)(paramCount)(outputCount);
46
+ }
47
+ }
48
+
49
+ export function Process_$reflection() {
50
+ return record_type("ARCtrl.ISA.Process", [], Process, () => [["ID", option_type(string_type)], ["Name", option_type(string_type)], ["ExecutesProtocol", option_type(Protocol_$reflection())], ["ParameterValues", option_type(list_type(ProcessParameterValue_$reflection()))], ["Performer", option_type(string_type)], ["Date", option_type(string_type)], ["PreviousProcess", option_type(Process_$reflection())], ["NextProcess", option_type(Process_$reflection())], ["Inputs", option_type(list_type(ProcessInput_$reflection()))], ["Outputs", option_type(list_type(ProcessOutput_$reflection()))], ["Comments", option_type(list_type(Comment$_$reflection()))]]);
51
+ }
52
+
53
+ export function Process_make(id, name, executesProtocol, parameterValues, performer, date, previousProcess, nextProcess, inputs, outputs, comments) {
54
+ return new Process(id, name, executesProtocol, parameterValues, performer, date, previousProcess, nextProcess, inputs, outputs, comments);
55
+ }
56
+
57
+ export function Process_create_Z42860F3E(Id, Name, ExecutesProtocol, ParameterValues, Performer, Date$, PreviousProcess, NextProcess, Inputs, Outputs, Comments) {
58
+ return Process_make(Id, Name, ExecutesProtocol, ParameterValues, Performer, Date$, PreviousProcess, NextProcess, Inputs, Outputs, Comments);
59
+ }
60
+
61
+ export function Process_get_empty() {
62
+ return Process_create_Z42860F3E();
63
+ }
64
+
65
+ export function Process_composeName(processNameRoot, i) {
66
+ return `${processNameRoot}_${i}`;
67
+ }
68
+
69
+ export function Process_decomposeName_Z721C83C5(name) {
70
+ const r = match(create("(?<name>.+)_(?<num>\\d+)"), name);
71
+ if (r != null) {
72
+ return [(r.groups && r.groups.name) || "", parse((r.groups && r.groups.num) || "", 511, false, 32)];
73
+ }
74
+ else {
75
+ return [name, void 0];
76
+ }
77
+ }
78
+
79
+ /**
80
+ * Returns the name of the protocol the given process executes
81
+ */
82
+ export function Process_tryGetProtocolName_716E708F(p) {
83
+ return bind((p_1) => p_1.Name, p.ExecutesProtocol);
84
+ }
85
+
86
+ /**
87
+ * Returns the name of the protocol the given process executes
88
+ */
89
+ export function Process_getProtocolName_716E708F(p) {
90
+ return value_4(bind((p_1) => p_1.Name, p.ExecutesProtocol));
91
+ }
92
+
93
+ /**
94
+ * Returns the parameter values describing the process
95
+ */
96
+ export function Process_getParameterValues_716E708F(p) {
97
+ return defaultArg(p.ParameterValues, empty());
98
+ }
99
+
100
+ /**
101
+ * Returns the parameters describing the process
102
+ */
103
+ export function Process_getParameters_716E708F(p) {
104
+ return choose((pv) => pv.Category, Process_getParameterValues_716E708F(p));
105
+ }
106
+
107
+ /**
108
+ * Returns the characteristics describing the inputs of the process
109
+ */
110
+ export function Process_getInputCharacteristicValues_716E708F(p) {
111
+ const matchValue = p.Inputs;
112
+ if (matchValue == null) {
113
+ return empty();
114
+ }
115
+ else {
116
+ return List_distinct(collect((inp) => defaultArg(ProcessInput_tryGetCharacteristicValues_102B6859(inp), empty()), matchValue), {
117
+ Equals: equals,
118
+ GetHashCode: safeHash,
119
+ });
120
+ }
121
+ }
122
+
123
+ /**
124
+ * Returns the characteristics describing the outputs of the process
125
+ */
126
+ export function Process_getOutputCharacteristicValues_716E708F(p) {
127
+ const matchValue = p.Outputs;
128
+ if (matchValue == null) {
129
+ return empty();
130
+ }
131
+ else {
132
+ return List_distinct(collect((out) => defaultArg(ProcessOutput_tryGetCharacteristicValues_11830B70(out), empty()), matchValue), {
133
+ Equals: equals,
134
+ GetHashCode: safeHash,
135
+ });
136
+ }
137
+ }
138
+
139
+ /**
140
+ * Returns the characteristic values describing the inputs and outputs of the process
141
+ */
142
+ export function Process_getCharacteristicValues_716E708F(p) {
143
+ return List_distinct(append(Process_getInputCharacteristicValues_716E708F(p), Process_getOutputCharacteristicValues_716E708F(p)), {
144
+ Equals: equals,
145
+ GetHashCode: safeHash,
146
+ });
147
+ }
148
+
149
+ /**
150
+ * Returns the characteristics describing the inputs and outputs of the process
151
+ */
152
+ export function Process_getCharacteristics_716E708F(p) {
153
+ return List_distinct(choose((cv) => cv.Category, Process_getCharacteristicValues_716E708F(p)), {
154
+ Equals: equals,
155
+ GetHashCode: safeHash,
156
+ });
157
+ }
158
+
159
+ /**
160
+ * Returns the factor values of the samples of the process
161
+ */
162
+ export function Process_getFactorValues_716E708F(p) {
163
+ return List_distinct(collect((arg_1) => defaultArg(ProcessOutput_tryGetFactorValues_11830B70(arg_1), empty()), defaultArg(p.Outputs, empty())), {
164
+ Equals: equals,
165
+ GetHashCode: safeHash,
166
+ });
167
+ }
168
+
169
+ /**
170
+ * Returns the factors of the samples of the process
171
+ */
172
+ export function Process_getFactors_716E708F(p) {
173
+ return List_distinct(choose((fv) => fv.Category, Process_getFactorValues_716E708F(p)), {
174
+ Equals: equals,
175
+ GetHashCode: safeHash,
176
+ });
177
+ }
178
+
179
+ /**
180
+ * Returns the units of the process
181
+ */
182
+ export function Process_getUnits_716E708F(p) {
183
+ return append(choose((cv) => cv.Unit, Process_getCharacteristicValues_716E708F(p)), append(choose((pv) => pv.Unit, Process_getParameterValues_716E708F(p)), choose((fv) => fv.Unit, Process_getFactorValues_716E708F(p))));
184
+ }
185
+
186
+ /**
187
+ * If the process implements the given parameter, return the list of input files together with their according parameter values of this parameter
188
+ */
189
+ export function Process_tryGetInputsWithParameterBy(predicate, p) {
190
+ const matchValue = p.ParameterValues;
191
+ if (matchValue == null) {
192
+ return void 0;
193
+ }
194
+ else {
195
+ const matchValue_1 = tryFind((pv) => predicate(defaultArg(pv.Category, ProtocolParameter_get_empty())), matchValue);
196
+ if (matchValue_1 == null) {
197
+ return void 0;
198
+ }
199
+ else {
200
+ const paramValue = matchValue_1;
201
+ return map((list_1) => map_1((i) => [i, paramValue], list_1), p.Inputs);
202
+ }
203
+ }
204
+ }
205
+
206
+ /**
207
+ * If the process implements the given parameter, return the list of output files together with their according parameter values of this parameter
208
+ */
209
+ export function Process_tryGetOutputsWithParameterBy(predicate, p) {
210
+ const matchValue = p.ParameterValues;
211
+ if (matchValue == null) {
212
+ return void 0;
213
+ }
214
+ else {
215
+ const matchValue_1 = tryFind((pv) => predicate(defaultArg(pv.Category, ProtocolParameter_get_empty())), matchValue);
216
+ if (matchValue_1 == null) {
217
+ return void 0;
218
+ }
219
+ else {
220
+ const paramValue = matchValue_1;
221
+ return map((list_1) => map_1((i) => [i, paramValue], list_1), p.Outputs);
222
+ }
223
+ }
224
+ }
225
+
226
+ /**
227
+ * If the process implements the given characteristic, return the list of input files together with their according characteristic values of this characteristic
228
+ */
229
+ export function Process_tryGetInputsWithCharacteristicBy(predicate, p) {
230
+ const matchValue = p.Inputs;
231
+ if (matchValue == null) {
232
+ return void 0;
233
+ }
234
+ else {
235
+ return Option_fromValueWithDefault(empty(), choose((i) => tryPick((mv) => {
236
+ const matchValue_1 = mv.Category;
237
+ let matchResult, m_1;
238
+ if (matchValue_1 != null) {
239
+ if (predicate(matchValue_1)) {
240
+ matchResult = 0;
241
+ m_1 = matchValue_1;
242
+ }
243
+ else {
244
+ matchResult = 1;
245
+ }
246
+ }
247
+ else {
248
+ matchResult = 1;
249
+ }
250
+ switch (matchResult) {
251
+ case 0:
252
+ return [i, mv];
253
+ default:
254
+ return void 0;
255
+ }
256
+ }, defaultArg(ProcessInput_tryGetCharacteristicValues_102B6859(i), empty())), matchValue));
257
+ }
258
+ }
259
+
260
+ /**
261
+ * If the process implements the given characteristic, return the list of output files together with their according characteristic values of this characteristic
262
+ */
263
+ export function Process_tryGetOutputsWithCharacteristicBy(predicate, p) {
264
+ const matchValue = p.Inputs;
265
+ const matchValue_1 = p.Outputs;
266
+ let matchResult, is, os;
267
+ if (matchValue != null) {
268
+ if (matchValue_1 != null) {
269
+ matchResult = 0;
270
+ is = matchValue;
271
+ os = matchValue_1;
272
+ }
273
+ else {
274
+ matchResult = 1;
275
+ }
276
+ }
277
+ else {
278
+ matchResult = 1;
279
+ }
280
+ switch (matchResult) {
281
+ case 0:
282
+ return Option_fromValueWithDefault(empty(), choose((tupledArg) => tryPick((mv) => {
283
+ const matchValue_3 = mv.Category;
284
+ let matchResult_1, m_1;
285
+ if (matchValue_3 != null) {
286
+ if (predicate(matchValue_3)) {
287
+ matchResult_1 = 0;
288
+ m_1 = matchValue_3;
289
+ }
290
+ else {
291
+ matchResult_1 = 1;
292
+ }
293
+ }
294
+ else {
295
+ matchResult_1 = 1;
296
+ }
297
+ switch (matchResult_1) {
298
+ case 0:
299
+ return [tupledArg[1], mv];
300
+ default:
301
+ return void 0;
302
+ }
303
+ }, defaultArg(ProcessInput_tryGetCharacteristicValues_102B6859(tupledArg[0]), empty())), zip(is, os)));
304
+ default:
305
+ return void 0;
306
+ }
307
+ }
308
+
309
+ /**
310
+ * If the process implements the given factor, return the list of output files together with their according factor values of this factor
311
+ */
312
+ export function Process_tryGetOutputsWithFactorBy(predicate, p) {
313
+ const matchValue = p.Outputs;
314
+ if (matchValue == null) {
315
+ return void 0;
316
+ }
317
+ else {
318
+ return Option_fromValueWithDefault(empty(), choose((o) => tryPick((mv) => {
319
+ const matchValue_1 = mv.Category;
320
+ let matchResult, m_1;
321
+ if (matchValue_1 != null) {
322
+ if (predicate(matchValue_1)) {
323
+ matchResult = 0;
324
+ m_1 = matchValue_1;
325
+ }
326
+ else {
327
+ matchResult = 1;
328
+ }
329
+ }
330
+ else {
331
+ matchResult = 1;
332
+ }
333
+ switch (matchResult) {
334
+ case 0:
335
+ return [o, mv];
336
+ default:
337
+ return void 0;
338
+ }
339
+ }, defaultArg(ProcessOutput_tryGetFactorValues_11830B70(o), empty())), matchValue));
340
+ }
341
+ }
342
+
343
+ export function Process_getSources_716E708F(p) {
344
+ return List_distinct(choose(ProcessInput_trySource_102B6859, defaultArg(p.Inputs, empty())), {
345
+ Equals: equals,
346
+ GetHashCode: safeHash,
347
+ });
348
+ }
349
+
350
+ export function Process_getData_716E708F(p) {
351
+ return List_distinct(append(choose(ProcessInput_tryData_102B6859, defaultArg(p.Inputs, empty())), choose(ProcessInput_tryData_102B6859, defaultArg(p.Inputs, empty()))), {
352
+ Equals: equals,
353
+ GetHashCode: safeHash,
354
+ });
355
+ }
356
+
357
+ export function Process_getSamples_716E708F(p) {
358
+ return List_distinct(append(choose(ProcessInput_trySample_102B6859, defaultArg(p.Inputs, empty())), choose(ProcessInput_trySample_102B6859, defaultArg(p.Inputs, empty()))), {
359
+ Equals: equals,
360
+ GetHashCode: safeHash,
361
+ });
362
+ }
363
+
364
+ export function Process_getMaterials_716E708F(p) {
365
+ return List_distinct(append(choose(ProcessInput_tryMaterial_102B6859, defaultArg(p.Inputs, empty())), choose(ProcessInput_tryMaterial_102B6859, defaultArg(p.Inputs, empty()))), {
366
+ Equals: equals,
367
+ GetHashCode: safeHash,
368
+ });
369
+ }
370
+
371
+ export function Process_updateProtocol(referenceProtocols, p) {
372
+ let this$, recordType_1, recordType_2;
373
+ const matchValue = p.ExecutesProtocol;
374
+ let matchResult, protocol_1;
375
+ if (matchValue != null) {
376
+ if (matchValue.Name != null) {
377
+ matchResult = 0;
378
+ protocol_1 = matchValue;
379
+ }
380
+ else {
381
+ matchResult = 1;
382
+ }
383
+ }
384
+ else {
385
+ matchResult = 1;
386
+ }
387
+ switch (matchResult) {
388
+ case 0: {
389
+ const matchValue_1 = tryFind((prot) => (value_4(prot.Name) === defaultArg(protocol_1.Name, "")), referenceProtocols);
390
+ if (matchValue_1 != null) {
391
+ return new Process(p.ID, p.Name, (this$ = (new Update_UpdateOptions(3, [])), (recordType_1 = protocol_1, (recordType_2 = matchValue_1, (this$.tag === 2) ? makeRecord(Protocol_$reflection(), map2(Update_updateAppend, getRecordFields(recordType_1), getRecordFields(recordType_2))) : ((this$.tag === 1) ? makeRecord(Protocol_$reflection(), map2(Update_updateOnlyByExisting, getRecordFields(recordType_1), getRecordFields(recordType_2))) : ((this$.tag === 3) ? makeRecord(Protocol_$reflection(), map2(Update_updateOnlyByExistingAppend, getRecordFields(recordType_1), getRecordFields(recordType_2))) : recordType_2))))), p.ParameterValues, p.Performer, p.Date, p.PreviousProcess, p.NextProcess, p.Inputs, p.Outputs, p.Comments);
392
+ }
393
+ else {
394
+ return p;
395
+ }
396
+ }
397
+ default:
398
+ return p;
399
+ }
400
+ }
401
+
@@ -0,0 +1,297 @@
1
+ import { Union, toString } from "../../../fable_modules/fable-library.4.1.4/Types.js";
2
+ import { printf, toText } from "../../../fable_modules/fable-library.4.1.4/String.js";
3
+ import { Source_create_7A281ED9, Source_getUnits_Z28BE5327, Source_setCharacteristicValues, Source_get_empty, Source_$reflection } from "./Source.js";
4
+ import { Sample_create_E50ED22, Sample_getUnits_Z29207F1E, Sample_setCharacteristicValues, Sample_$reflection } from "./Sample.js";
5
+ import { Data_create_Z326CF519, Data_$reflection } from "./Data.js";
6
+ import { Material_create_Z31BE6CDD, Material_getUnits_Z42815C11, Material_setCharacteristicValues, Material_$reflection } from "./Material.js";
7
+ import { union_type } from "../../../fable_modules/fable-library.4.1.4/Reflection.js";
8
+ import { unwrap, map, defaultArg } from "../../../fable_modules/fable-library.4.1.4/Option.js";
9
+ import { empty, choose } from "../../../fable_modules/fable-library.4.1.4/List.js";
10
+ import { DataFile } from "./DataFile.js";
11
+
12
+ export class ProcessInput extends Union {
13
+ constructor(tag, fields) {
14
+ super();
15
+ this.tag = tag;
16
+ this.fields = fields;
17
+ }
18
+ cases() {
19
+ return ["Source", "Sample", "Data", "Material"];
20
+ }
21
+ Print() {
22
+ const this$ = this;
23
+ return toString(this$);
24
+ }
25
+ PrintCompact() {
26
+ const this$ = this;
27
+ switch (this$.tag) {
28
+ case 0: {
29
+ const arg_1 = this$.fields[0].PrintCompact();
30
+ return toText(printf("Source {%s}"))(arg_1);
31
+ }
32
+ case 3: {
33
+ const arg_2 = this$.fields[0].PrintCompact();
34
+ return toText(printf("Material {%s}"))(arg_2);
35
+ }
36
+ case 2: {
37
+ const arg_3 = this$.fields[0].PrintCompact();
38
+ return toText(printf("Data {%s}"))(arg_3);
39
+ }
40
+ default: {
41
+ const arg = this$.fields[0].PrintCompact();
42
+ return toText(printf("Sample {%s}"))(arg);
43
+ }
44
+ }
45
+ }
46
+ }
47
+
48
+ export function ProcessInput_$reflection() {
49
+ return union_type("ARCtrl.ISA.ProcessInput", [], ProcessInput, () => [[["Item", Source_$reflection()]], [["Item", Sample_$reflection()]], [["Item", Data_$reflection()]], [["Item", Material_$reflection()]]]);
50
+ }
51
+
52
+ export function ProcessInput__get_TryName(this$) {
53
+ switch (this$.tag) {
54
+ case 0:
55
+ return this$.fields[0].Name;
56
+ case 3:
57
+ return this$.fields[0].Name;
58
+ case 2:
59
+ return this$.fields[0].Name;
60
+ default:
61
+ return this$.fields[0].Name;
62
+ }
63
+ }
64
+
65
+ export function ProcessInput__get_Name(this$) {
66
+ return defaultArg(ProcessInput__get_TryName(this$), "");
67
+ }
68
+
69
+ export function ProcessInput_get_Default() {
70
+ return new ProcessInput(0, [Source_get_empty()]);
71
+ }
72
+
73
+ /**
74
+ * Returns name of processInput
75
+ */
76
+ export function ProcessInput_tryGetName_102B6859(pi) {
77
+ return ProcessInput__get_TryName(pi);
78
+ }
79
+
80
+ /**
81
+ * Returns name of processInput
82
+ */
83
+ export function ProcessInput_getName_102B6859(pi) {
84
+ return ProcessInput__get_Name(pi);
85
+ }
86
+
87
+ /**
88
+ * Returns true, if given name equals name of processInput
89
+ */
90
+ export function ProcessInput_nameEquals(name, pi) {
91
+ return ProcessInput__get_Name(pi) === name;
92
+ }
93
+
94
+ /**
95
+ * Returns true, if Process Input is Sample
96
+ */
97
+ export function ProcessInput_isSample_102B6859(pi) {
98
+ if (pi.tag === 1) {
99
+ return true;
100
+ }
101
+ else {
102
+ return false;
103
+ }
104
+ }
105
+
106
+ /**
107
+ * Returns true, if Process Input is Source
108
+ */
109
+ export function ProcessInput_isSource_102B6859(pi) {
110
+ if (pi.tag === 0) {
111
+ return true;
112
+ }
113
+ else {
114
+ return false;
115
+ }
116
+ }
117
+
118
+ /**
119
+ * Returns true, if Process Input is Data
120
+ */
121
+ export function ProcessInput_isData_102B6859(pi) {
122
+ if (pi.tag === 2) {
123
+ return true;
124
+ }
125
+ else {
126
+ return false;
127
+ }
128
+ }
129
+
130
+ /**
131
+ * Returns true, if Process Input is Material
132
+ */
133
+ export function ProcessInput_isMaterial_102B6859(pi) {
134
+ if (pi.tag === 3) {
135
+ return true;
136
+ }
137
+ else {
138
+ return false;
139
+ }
140
+ }
141
+
142
+ /**
143
+ * Returns true, if Process Input is Source
144
+ */
145
+ export function ProcessInput__isSource(this$) {
146
+ return ProcessInput_isSource_102B6859(this$);
147
+ }
148
+
149
+ /**
150
+ * Returns true, if Process Input is Sample
151
+ */
152
+ export function ProcessInput__isSample(this$) {
153
+ return ProcessInput_isSample_102B6859(this$);
154
+ }
155
+
156
+ /**
157
+ * Returns true, if Process Input is Data
158
+ */
159
+ export function ProcessInput__isData(this$) {
160
+ return ProcessInput_isData_102B6859(this$);
161
+ }
162
+
163
+ /**
164
+ * Returns true, if Process Input is Material
165
+ */
166
+ export function ProcessInput__isMaterial(this$) {
167
+ return ProcessInput_isMaterial_102B6859(this$);
168
+ }
169
+
170
+ /**
171
+ * If given process input is a sample, returns it, else returns None
172
+ */
173
+ export function ProcessInput_trySample_102B6859(pi) {
174
+ if (pi.tag === 1) {
175
+ return pi.fields[0];
176
+ }
177
+ else {
178
+ return void 0;
179
+ }
180
+ }
181
+
182
+ /**
183
+ * If given process input is a source, returns it, else returns None
184
+ */
185
+ export function ProcessInput_trySource_102B6859(pi) {
186
+ if (pi.tag === 0) {
187
+ return pi.fields[0];
188
+ }
189
+ else {
190
+ return void 0;
191
+ }
192
+ }
193
+
194
+ /**
195
+ * If given process input is a data, returns it, else returns None
196
+ */
197
+ export function ProcessInput_tryData_102B6859(pi) {
198
+ if (pi.tag === 2) {
199
+ return pi.fields[0];
200
+ }
201
+ else {
202
+ return void 0;
203
+ }
204
+ }
205
+
206
+ /**
207
+ * If given process input is a material, returns it, else returns None
208
+ */
209
+ export function ProcessInput_tryMaterial_102B6859(pi) {
210
+ if (pi.tag === 3) {
211
+ return pi.fields[0];
212
+ }
213
+ else {
214
+ return void 0;
215
+ }
216
+ }
217
+
218
+ export function ProcessInput_setCharacteristicValues(characteristics, pi) {
219
+ switch (pi.tag) {
220
+ case 0:
221
+ return new ProcessInput(0, [Source_setCharacteristicValues(characteristics, pi.fields[0])]);
222
+ case 3:
223
+ return new ProcessInput(3, [Material_setCharacteristicValues(characteristics, pi.fields[0])]);
224
+ case 2:
225
+ return pi;
226
+ default:
227
+ return new ProcessInput(1, [Sample_setCharacteristicValues(characteristics, pi.fields[0])]);
228
+ }
229
+ }
230
+
231
+ /**
232
+ * If given process input contains characteristics, returns them
233
+ */
234
+ export function ProcessInput_tryGetCharacteristicValues_102B6859(pi) {
235
+ switch (pi.tag) {
236
+ case 0:
237
+ return pi.fields[0].Characteristics;
238
+ case 3:
239
+ return pi.fields[0].Characteristics;
240
+ case 2:
241
+ return void 0;
242
+ default:
243
+ return pi.fields[0].Characteristics;
244
+ }
245
+ }
246
+
247
+ /**
248
+ * If given process input contains characteristics, returns them
249
+ */
250
+ export function ProcessInput_tryGetCharacteristics_102B6859(pi) {
251
+ return map((list) => choose((c) => c.Category, list), ProcessInput_tryGetCharacteristicValues_102B6859(pi));
252
+ }
253
+
254
+ export function ProcessInput_getCharacteristicValues_102B6859(pi) {
255
+ return defaultArg(ProcessInput_tryGetCharacteristicValues_102B6859(pi), empty());
256
+ }
257
+
258
+ /**
259
+ * If given process output contains units, returns them
260
+ */
261
+ export function ProcessInput_getUnits_102B6859(pi) {
262
+ switch (pi.tag) {
263
+ case 1:
264
+ return Sample_getUnits_Z29207F1E(pi.fields[0]);
265
+ case 3:
266
+ return Material_getUnits_Z42815C11(pi.fields[0]);
267
+ case 2:
268
+ return empty();
269
+ default:
270
+ return Source_getUnits_Z28BE5327(pi.fields[0]);
271
+ }
272
+ }
273
+
274
+ export function ProcessInput_createSource_7888CE42(name, characteristics) {
275
+ return new ProcessInput(0, [Source_create_7A281ED9(void 0, name, unwrap(characteristics))]);
276
+ }
277
+
278
+ export function ProcessInput_createSample_Z6DF16D07(name, characteristics, factors, derivesFrom) {
279
+ return new ProcessInput(1, [Sample_create_E50ED22(void 0, name, unwrap(characteristics), unwrap(factors), unwrap(derivesFrom))]);
280
+ }
281
+
282
+ export function ProcessInput_createMaterial_2363974C(name, characteristics, derivesFrom) {
283
+ return new ProcessInput(3, [Material_create_Z31BE6CDD(void 0, name, void 0, unwrap(characteristics), unwrap(derivesFrom))]);
284
+ }
285
+
286
+ export function ProcessInput_createImageFile_Z721C83C5(name) {
287
+ return new ProcessInput(2, [Data_create_Z326CF519(void 0, name, new DataFile(2, []))]);
288
+ }
289
+
290
+ export function ProcessInput_createRawData_Z721C83C5(name) {
291
+ return new ProcessInput(2, [Data_create_Z326CF519(void 0, name, new DataFile(0, []))]);
292
+ }
293
+
294
+ export function ProcessInput_createDerivedData_Z721C83C5(name) {
295
+ return new ProcessInput(2, [Data_create_Z326CF519(void 0, name, new DataFile(1, []))]);
296
+ }
297
+